/* Cards, status lines, buttons, toggles, search boxes, and form messages shared across views. */

.content-card { background: var(--card); border: 1px solid #31404d; border-radius: 7px; box-shadow: 0 20px 75px rgba(0,0,0,.16); }
.card-topline { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--divider); min-height: 53px; padding: 0 var(--gutter); }
.status, .group-total { color: #9eabb5; font-size: 16px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.status { display: flex; align-items: center; gap: 8px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #77818a; }
.status.saved .status-dot { background: #72b58d; }
.status.changed .status-dot { background: var(--focus); }
.section-heading { padding: 30px var(--gutter) 20px; display: flex; justify-content: space-between; align-items: center; gap: 15px; }
.section-heading h2 { font: 600 25px/1.3 var(--font-display); color: var(--heading); letter-spacing: -.015em; margin-bottom: 7px; }
.section-heading p { color: #9facb7; font-size: 19px; line-height: 1.55; margin: 0; }
.card-footer { min-height: 84px; border-top: 1px solid #34424d; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px var(--gutter); color: #9cabb6; font-size: 16px; }

.primary-button { display: inline-flex; align-items: center; justify-content: center; gap: 30px; background: linear-gradient(#eac57e, #c69951); border: 1px solid #f2d695; border-radius: 3px; color: #1a2228; font-size: 18px; font-weight: 700; padding: 12px 17px; min-height: 48px; box-shadow: inset 0 1px #fff5bc55; }
.primary-button:hover:not(:disabled) { filter: brightness(1.09); }
.primary-button span { font-size: 17px; line-height: 1; }
.secondary-button { flex-shrink: 0; white-space: nowrap; color: #e4c790; border: 1px solid #796342; background: #26313a; padding: 8px 12px; height: 44px; font-size: 16px; font-weight: 700; border-radius: 2px; }
.secondary-button:hover { background: #34424b; }

.view-toggle { display: flex; border: 1px solid var(--input-border); background: #1b2a37; height: 44px; padding: 2px; border-radius: 3px; white-space: nowrap; }
.view-toggle button { border: 0; background: transparent; color: #a8b6bf; font-size: 16px; font-weight: 700; padding: 0 10px; border-radius: 2px; }
.view-toggle button.selected { background: #43515a; color: #f1d393; }
.view-toggle button:hover:not(.selected) { color: #fff; }
/* Narrows before anything beside it has to wrap. */
.search-box { flex: 1 1 150px; min-width: 0; display: flex; align-items: center; height: 44px; border: 1px solid #465460; background: #1a2a39; padding: 0 10px; color: #a7b5bf; }
.search-box span { font-size: 23px; line-height: 1; }
.search-box input { border: none; outline: none; background: transparent; color: #f0f1ef; flex: 1; min-width: 0; width: 170px; font-size: 18px; }
.search-box input::placeholder { color: #8797a4; }
.search-box input::-webkit-search-cancel-button { display: none; }
.search-clear { border: 0; background: transparent; color: #a7b5bf; font-size: 22px; line-height: 1; padding: 0 2px; }
.search-clear:hover { color: #fff; }
.search-clear.empty { visibility: hidden; }

.form-success { color: #a3dfba; font-size: 16px; padding-bottom: 10px; }
.form-error { min-height: 30px; padding-top: 8px; color: var(--error); font-size: 16px; }

@media (max-width: 560px) {
  .section-heading h2 { font-size: 19px; }
  .section-heading p { font-size: 16px; }
  .card-footer { flex-direction: column; align-items: stretch; }
  .card-footer .primary-button { align-self: stretch; }
  .view-toggle { width: 100%; }
  .view-toggle button { flex: 1; }
}
