:root {
  --hfo-red: #D6384B;
  --coral: #E37263;
  --coral-dark: #d05e4f;
  --teal: #68928E;
  --teal-dark: #587e7a;
  --gold: #F7C169;
  --light-gray: #EFF1F1;
  --text-dark: #272727;
  --text-mid: #585856;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Lato', 'Helvetica Neue', Arial, sans-serif;
  color: var(--text-dark);
  background: var(--light-gray);
}

h1, h2, h3 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--hfo-red);
}

/* ---------- Login ---------- */

.login-page {
  background: var(--teal);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.login-wrap { width: 100%; max-width: 420px; }

.login-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  padding: 40px 36px;
  text-align: center;
}

.login-logo {
  max-width: 220px;
  width: 80%;
  margin-bottom: 20px;
}

.login-card h1 { font-size: 1.5rem; margin-bottom: 4px; }

.login-card .subtitle {
  color: var(--text-mid);
  font-weight: 300;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin-bottom: 24px;
}

.login-card form { text-align: left; }

.login-card label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-mid);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 14px 0 6px;
}

.login-card input {
  width: 100%;
  padding: 11px 12px;
  font-size: 1rem;
  font-family: inherit;
  border: 1px solid #d8dcdc;
  border-radius: 8px;
  background: #fafbfb;
}

.login-card input:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(104, 146, 142, 0.2);
}

.login-card button {
  width: 100%;
  margin-top: 22px;
  padding: 12px;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  color: #fff;
  background: var(--coral);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.login-card button:hover { background: var(--coral-dark); }

.error-banner {
  background: rgba(214, 56, 75, 0.1);
  color: var(--hfo-red);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.login-tagline {
  margin-top: 26px;
  color: var(--teal);
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: 0.95rem;
}

/* ---------- App shell ---------- */

.app-page { min-height: 100vh; display: flex; flex-direction: column; }

.topnav {
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 24px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 10;
}

.topnav-brand { display: flex; align-items: center; gap: 14px; }

.topnav-brand img { height: 44px; }

.topnav-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.1rem;
  color: var(--text-mid);
}

.logout-btn {
  background: var(--coral);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 9px 20px;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.15s ease;
}

.logout-btn:hover { background: var(--coral-dark); }

.layout { display: flex; flex: 1; }

.sidebar {
  background: #2c403d;
  color: #fff;
  width: 230px;
  flex-shrink: 0;
  padding: 20px 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.sidebar ul { list-style: none; }

.nav-section { margin-top: 20px; }

.nav-label {
  display: block;
  padding: 0 22px 6px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.5);
}

.sidebar a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  padding: 11px 22px;
  font-size: 0.95rem;
}

.sidebar a:hover { background: rgba(255, 255, 255, 0.06); }

.sidebar a.active {
  background: rgba(0, 0, 0, 0.28);
  border-left: 4px solid var(--gold);
  padding-left: 18px;
  font-weight: 700;
}

.nav-badges { display: flex; gap: 5px; }

.nav-badge {
  min-width: 22px;
  height: 22px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  font-size: 0.72rem;
  font-weight: 700;
}
.nav-badge-red { background: var(--hfo-red); color: #fff; }
.nav-badge-gold { background: var(--gold); color: var(--text-dark); }

.sidebar a.disabled { opacity: 0.65; cursor: default; }

.soon {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  padding: 2px 8px;
}

.sidebar-tagline {
  padding: 18px 22px 0;
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: 0.85rem;
  opacity: 0.85;
}

.content { flex: 1; padding: 28px; min-width: 0; }

.welcome-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  padding: 28px 32px;
  margin-bottom: 24px;
  border-top: 4px solid var(--gold);
}

.welcome-card h1 { font-size: 1.6rem; margin-bottom: 10px; }

.welcome-card p {
  color: var(--text-mid);
  line-height: 1.6;
  max-width: 64ch;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.stat-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  padding: 26px 20px;
  text-align: center;
}

.stat-number {
  display: block;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--hfo-red);
}

.stat-label {
  display: block;
  margin-top: 6px;
  color: var(--text-mid);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ---------- Responsive ---------- */

@media (max-width: 760px) {
  .layout { flex-direction: column; }

  .sidebar {
    width: 100%;
    padding: 0;
  }

  .nav-groups { display: flex; overflow-x: auto; align-items: center; }
  .nav-groups ul { display: flex; }
  .nav-section { margin-top: 0; display: flex; align-items: center; }
  .nav-label { display: none; }

  .sidebar a { white-space: nowrap; padding: 12px 16px; }

  .sidebar a.active { border-left: none; border-bottom: 3px solid var(--gold); padding-left: 16px; }

  .sidebar-tagline { display: none; }

  .stat-grid { grid-template-columns: 1fr; }

  .topnav-title { display: none; }
}

/* ---------- Hub (Refinery-style overview) ---------- */

.hub-head { margin-bottom: 22px; }
.hub-head h1 {
  font-family: 'Lato', sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 1.9rem;
  color: var(--text-dark);
}
.hub-sub { color: var(--text-mid); margin-top: 4px; }

.app-card {
  background: #fff;
  border-radius: 8px;
  border-left: 5px solid var(--hfo-red);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  padding: 22px 26px;
  margin-bottom: 18px;
}

.app-card-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }

.app-title {
  font-family: 'Lato', sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 1.25rem;
  color: var(--hfo-red);
  text-decoration: none;
}
a.app-title:hover { color: var(--coral); }

.app-hint { color: var(--text-mid); font-size: 0.85rem; }

.app-line { color: var(--text-dark); margin-bottom: 10px; }

.app-status { list-style: none; margin: 0 0 12px; }
.app-status li {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 8px 0;
  border-bottom: 1px solid var(--light-gray);
}
.app-status li:last-child { border-bottom: none; }
.status-group { font-weight: 700; min-width: 150px; }
.status-facts { color: var(--text-mid); font-size: 0.9rem; flex: 1; }

.app-actions { font-size: 0.92rem; }
.app-actions a { color: var(--teal-dark); font-weight: 700; text-decoration: none; }
.app-actions a:hover { text-decoration: underline; }

.app-card-muted { border-left-color: #c9cdcd; }
.app-title-muted { color: var(--text-mid); }

/* ---------- Phase 2: time clock ---------- */

.topnav-right { display: flex; align-items: center; gap: 14px; }
.topnav-user { color: var(--text-mid); font-size: 0.9rem; }

.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}
.page-head h1 { font-size: 1.5rem; }

.card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  padding: 20px 24px;
  margin-bottom: 20px;
}
.card h2 { font-size: 1.1rem; margin-bottom: 12px; }

.flash {
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 18px;
  font-weight: 700;
}
.flash-ok { background: rgba(104, 146, 142, 0.15); color: var(--teal-dark); border-left: 4px solid var(--teal); }
.flash-err { background: rgba(214, 56, 75, 0.1); color: var(--hfo-red); border-left: 4px solid var(--hfo-red); }

.badge {
  display: inline-block;
  border-radius: 8px;
  padding: 4px 12px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.badge-ok { background: rgba(104, 146, 142, 0.18); color: var(--teal-dark); }
.badge-warn { background: rgba(214, 56, 75, 0.12); color: var(--hfo-red); }
.badge-pending { background: rgba(247, 193, 105, 0.3); color: #8a6320; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
th {
  text-align: left;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-mid);
  padding: 8px 10px;
  border-bottom: 2px solid var(--light-gray);
}
td { padding: 9px 10px; border-bottom: 1px solid var(--light-gray); vertical-align: middle; }
.row-inactive td { opacity: 0.5; }
.row-open td { background: rgba(247, 193, 105, 0.12); }

.code {
  font-family: 'Courier New', monospace;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.15em;
  background: var(--light-gray);
  border-radius: 6px;
  padding: 3px 8px;
}

.actions { display: flex; gap: 8px; align-items: center; white-space: nowrap; }
.actions form { display: inline; }

.btn-primary, .btn-small {
  background: var(--coral);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease;
}
.btn-primary { padding: 10px 22px; font-size: 0.95rem; }
.btn-small { padding: 6px 12px; font-size: 0.8rem; }
.btn-primary:hover, .btn-small:hover { background: var(--coral-dark); }
.btn-primary:disabled { background: #c9cdcd; cursor: not-allowed; }
.btn-danger { background: #fff; color: var(--hfo-red); border: 1px solid var(--hfo-red); }
.btn-danger:hover { background: rgba(214, 56, 75, 0.08); }

.row-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.row-form input[type="text"] { flex: 1; min-width: 180px; }
.row-form input, .row-form select, .inline-form select {
  padding: 9px 10px;
  font-size: 0.95rem;
  font-family: inherit;
  border: 1px solid #d8dcdc;
  border-radius: 8px;
  background: #fafbfb;
}
.row-form label { display: flex; align-items: center; gap: 6px; font-size: 0.85rem; color: var(--text-mid); font-weight: 700; }
td input[type="datetime-local"], td input[type="date"] {
  padding: 6px 8px;
  font-family: inherit;
  font-size: 0.88rem;
  border: 1px solid #d8dcdc;
  border-radius: 6px;
  background: #fafbfb;
}

.hint { margin-top: 10px; font-size: 0.83rem; color: var(--text-mid); }
.empty { color: var(--text-mid); font-style: italic; }
.muted { color: var(--text-mid); font-weight: 400; font-size: 0.85em; }
.warn-text { color: var(--hfo-red); font-weight: 700; font-size: 0.85em; }

.approve-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.approve-meta { color: var(--text-mid); font-size: 0.9rem; margin-left: 10px; }

.emp-sheet .emp-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 8px; }
.emp-total { font-family: 'Playfair Display', Georgia, serif; font-size: 1.3rem; font-weight: 700; color: var(--hfo-red); }
.add-entry { margin-top: 12px; }
.add-entry summary { cursor: pointer; color: var(--teal-dark); font-weight: 700; font-size: 0.88rem; }
.add-entry form { margin-top: 10px; }

.groups-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.group-card { text-align: left; }
.group-card h2 { margin-bottom: 12px; }
.group-stats { display: flex; gap: 26px; margin-bottom: 12px; }
.stat-number.small { font-size: 1.7rem; }
.group-links { margin-top: 12px; font-size: 0.9rem; }
.group-links a { color: var(--teal-dark); font-weight: 700; }

/* ---------- Kiosk ---------- */

.kiosk-page {
  background: var(--teal);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.kiosk-wrap { width: 100%; max-width: 440px; text-align: center; }
.kiosk-logo { max-width: 230px; width: 70%; margin-bottom: 22px; }
.kiosk-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
  padding: 36px 32px;
}
.kiosk-card h1 { font-size: 1.7rem; margin-bottom: 6px; }
.kiosk-sub { color: var(--text-mid); margin-bottom: 18px; }
.kiosk-status { font-size: 1.05rem; margin-bottom: 20px; color: var(--text-dark); }
.kiosk-code {
  width: 100%;
  text-align: center;
  font-size: 2.4rem;
  letter-spacing: 0.45em;
  font-family: 'Courier New', monospace;
  font-weight: 700;
  padding: 12px 0 12px 0.45em;
  border: 2px solid #d8dcdc;
  border-radius: 8px;
  background: #fafbfb;
  margin-bottom: 18px;
}
.kiosk-code:focus { outline: none; border-color: var(--teal); }
.kiosk-btn {
  display: block;
  width: 100%;
  padding: 18px;
  font-size: 1.25rem;
  font-weight: 700;
  font-family: inherit;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: filter 0.15s ease;
}
.kiosk-btn:hover { filter: brightness(0.93); }
.kiosk-btn-go { background: var(--coral); }
.kiosk-btn-in { background: var(--teal); }
.kiosk-btn-out { background: var(--gold); color: var(--text-dark); }
.kiosk-cancel { display: inline-block; margin-top: 16px; color: var(--text-mid); font-size: 0.9rem; }
.kiosk-done .kiosk-check { font-size: 3rem; color: var(--teal); margin-bottom: 6px; }
.kiosk-tagline {
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.85);
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
}

.reset-form { display: flex; gap: 8px; align-items: center; }
.reset-form input {
  width: 240px;
  padding: 7px 10px;
  font-family: inherit;
  font-size: 0.85rem;
  border: 1px solid #d8dcdc;
  border-radius: 6px;
  background: #fafbfb;
}

.badge-live { background: rgba(104, 146, 142, 0.18); color: var(--teal-dark); }

/* ---------- Mobile ---------- */

@media (max-width: 700px) {
  .content { padding: 16px 12px; }
  .card { padding: 16px 14px; }
  .topnav { padding: 8px 14px; }
  .topnav-user { display: none; }
  .topnav-brand img { height: 38px; }
  .page-head h1 { font-size: 1.25rem; }
  .hub-head h1 { font-size: 1.5rem; }

  /* selectors take the full row */
  .inline-form { width: 100%; display: flex; gap: 8px; }
  .inline-form select { flex: 1; min-width: 0; }

  /* data tables become stacked cards */
  table.stack, table.stack tbody, table.stack tr, table.stack td { display: block; width: 100%; }
  table.stack thead { display: none; }
  table.stack tr {
    border: 1px solid #e2e6e6;
    border-radius: 8px;
    padding: 12px 14px;
    margin-bottom: 12px;
  }
  table.stack tr.row-open { border-color: var(--gold); }
  table.stack td { border-bottom: none; padding: 6px 0; }
  table.stack td[data-l]::before {
    content: attr(data-l);
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--text-mid);
    margin-bottom: 3px;
  }
  table.stack td input[type="datetime-local"],
  table.stack td input[type="date"] { width: 100%; font-size: 16px; }
  table.stack td.actions { display: flex; gap: 10px; padding-top: 10px; }
  table.stack td.actions form { flex: 1; display: flex; }
  table.stack td.actions .btn-small { flex: 1; }

  /* bigger touch targets */
  .btn-small { padding: 10px 14px; font-size: 0.88rem; }
  .btn-primary { width: 100%; }

  .approve-bar { flex-direction: column; align-items: stretch; }
  .approve-meta { display: block; margin: 6px 0 0; }
  .emp-head { flex-wrap: wrap; gap: 6px; }

  .reset-form { flex-wrap: wrap; width: 100%; }
  .reset-form input { width: 100%; font-size: 16px; }

  .row-form input, .row-form select { font-size: 16px; }
  .row-form label { width: 100%; justify-content: space-between; }
  .row-form input[type="datetime-local"] { flex: 1; min-width: 0; }

  .group-stats { gap: 18px; }
  .status-group { min-width: 100%; }

  .kiosk-card { padding: 28px 20px; }
  .kiosk-code { font-size: 2rem; }
}

.code-input {
  width: 250px;
  padding: 9px 10px;
  font-family: inherit;
  font-size: 0.95rem;
  border: 1px solid #d8dcdc;
  border-radius: 8px;
  background: #fafbfb;
}
.code-input-sm { width: 74px; padding: 7px 8px; font-size: 0.85rem; text-align: center; }
.recode-form { display: flex; gap: 6px; align-items: center; }
@media (max-width: 700px) {
  .code-input { width: 100%; font-size: 16px; }
  .code-input-sm { width: 80px; flex: 0 0 80px; }
  .recode-form { flex: 1; }
}

.status-grand { border-top: 2px solid var(--light-gray); }
.status-grand .status-group { font-weight: 700; text-transform: uppercase; font-size: 0.85rem; letter-spacing: 0.05em; }
.grand-total {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--hfo-red);
}

/* ---------- Reports ---------- */

.report-grand { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin: 10px 0; }
.grand-total.big { font-size: 1.9rem; }
.punch-list { list-style: none; margin: 0; font-size: 0.85rem; color: var(--text-mid); }
.punch-list li { padding: 2px 0; }
.report-unapproved { opacity: 0.55; }
.print-title h2 { font-size: 1.2rem; }

@media print {
  .sidebar, .topnav, .no-print { display: none !important; }
  .layout { display: block; }
  .content { padding: 0; }
  body, .app-page { background: #fff; }
  .card { box-shadow: none; border: 1px solid #d8dcdc; page-break-inside: avoid; }
  .badge { border: 1px solid currentColor; }
}

/* ---------- Hope Dollars ---------- */

.app-card-gold { border-left-color: var(--gold); }
.app-title-gold { color: #b07c1e; }
a.app-title-gold:hover { color: var(--gold); }

.hd-summary {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  border-left: 5px solid var(--gold);
  background: linear-gradient(135deg, #fff 60%, rgba(247, 193, 105, 0.18));
}
.hd-total-label { color: var(--text-mid); }
.hd-total {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: #b07c1e;
}

.kid-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
}
.kid-card { margin-bottom: 0; border-top: 4px solid var(--gold); }
.kid-inactive { opacity: 0.55; border-top-color: #c9cdcd; }
.kid-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.kid-head h2 { font-size: 1.15rem; margin: 0; }
.hd-balance {
  background: rgba(247, 193, 105, 0.28);
  color: #8a6320;
  font-weight: 800;
  font-size: 1.15rem;
  border-radius: 999px;
  padding: 6px 14px;
  white-space: nowrap;
}

.hd-quick { display: flex; gap: 8px; margin-bottom: 10px; }
.hd-quick form { flex: 1; display: flex; }
.hd-chip {
  flex: 1;
  padding: 10px 0;
  font-family: inherit;
  font-weight: 800;
  font-size: 1rem;
  color: var(--teal-dark);
  background: rgba(104, 146, 142, 0.14);
  border: 2px solid rgba(104, 146, 142, 0.35);
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.12s ease;
}
.hd-chip:hover { background: var(--teal); border-color: var(--teal); color: #fff; }

.hd-custom { display: flex; flex-direction: column; gap: 8px; }
.hd-custom input[type="number"], .hd-custom input[type="text"] {
  padding: 9px 10px;
  font-family: inherit;
  font-size: 16px;
  border: 1px solid #d8dcdc;
  border-radius: 8px;
  background: #fafbfb;
}
.hd-custom-btns { display: flex; gap: 8px; }
.hd-custom-btns button { flex: 1; padding: 10px 0; font-size: 0.95rem; }
.hd-add { background: var(--teal); }
.hd-add:hover { background: var(--teal-dark); }
.hd-spend { background: var(--gold); color: var(--text-dark); }
.hd-spend:hover { background: #eaaf4e; }

.hd-history { margin-top: 12px; }
.hd-history summary { cursor: pointer; color: var(--teal-dark); font-weight: 700; font-size: 0.88rem; }
.hd-tx-list { list-style: none; margin: 10px 0 0; }
.hd-tx-list li { display: flex; gap: 10px; align-items: baseline; padding: 4px 0; border-bottom: 1px dashed var(--light-gray); font-size: 0.85rem; }
.hd-tx-plus { color: var(--teal-dark); font-weight: 800; min-width: 34px; }
.hd-tx-minus { color: var(--hfo-red); font-weight: 800; min-width: 34px; }
.hd-tx-meta { color: var(--text-mid); }
.hd-toggle { margin-top: 12px; }

@media (max-width: 700px) {
  .kid-grid { grid-template-columns: 1fr; }
  .hd-total { font-size: 1.7rem; }
}

.hd-chip-minus {
  color: var(--hfo-red);
  background: rgba(214, 56, 75, 0.08);
  border-color: rgba(214, 56, 75, 0.3);
}
.hd-chip-minus:hover { background: var(--hfo-red); border-color: var(--hfo-red); color: #fff; }
.hd-more { margin-top: 4px; }
.hd-more summary { cursor: pointer; color: var(--text-mid); font-size: 0.85rem; font-weight: 700; }
.hd-more form { margin-top: 10px; }
.hd-spend { background: var(--hfo-red); color: #fff; }
.hd-spend:hover { background: #b92e40; }

.kid-head-right { display: flex; align-items: center; gap: 8px; }
.kid-x {
  background: none;
  border: none;
  color: #b9bfbf;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 6px;
}
.kid-x:hover { color: #fff; background: var(--hfo-red); }

/* ---------- Vacation Manager ---------- */

.app-card-teal { border-left-color: var(--teal); }
.app-title-teal { color: var(--teal-dark); }
a.app-title-teal:hover { color: var(--teal); }

.vac-card { text-align: left; }
.vac-card h1, .vac-card > .kiosk-sub { text-align: center; }
.vac-form { display: flex; flex-direction: column; gap: 12px; margin-top: 6px; }
.vac-form label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-mid);
}
.vac-form select, .vac-form input {
  padding: 12px;
  font-size: 16px;
  font-family: inherit;
  border: 1px solid #d8dcdc;
  border-radius: 8px;
  background: #fafbfb;
}
.vac-hint { margin-top: 14px; }

.vac-request {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 14px;
  border: 1px solid var(--light-gray);
  border-left: 4px solid var(--teal);
  border-radius: 8px;
  margin-bottom: 10px;
}
.vac-over { border-left-color: var(--hfo-red); background: rgba(214, 56, 75, 0.04); }
.vac-request-info { display: flex; flex-direction: column; gap: 3px; }
.vac-balance-note { font-size: 0.85rem; color: var(--text-mid); }
.vac-request-actions { display: flex; gap: 8px; }
.vac-allowance-form { display: flex; gap: 6px; align-items: center; }
.vac-allowance-form input { width: 76px; padding: 6px 8px; border: 1px solid #d8dcdc; border-radius: 6px; background: #fafbfb; font-family: inherit; }
.vac-reopen { margin-left: auto; }

@media (max-width: 700px) {
  .vac-request-actions { width: 100%; }
  .vac-request-actions form { flex: 1; display: flex; }
  .vac-request-actions .btn-small { flex: 1; }
}

.vac-name-input {
  padding: 7px 10px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  border: 1px solid #d8dcdc;
  border-radius: 6px;
  background: #fafbfb;
  width: 200px;
  max-width: 100%;
}
@media (max-width: 700px) { .vac-name-input { width: 100%; font-size: 16px; } }
