/* Staff (owner / reception) screens. Uses the colours from style.css. */

.staff-body { background: #eef7f8; }
.inline { display: inline; margin: 0; }

/* ---------- Top bar ---------- */
.topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid var(--line);
}
.topbar__in {
    max-width: 1100px;
    margin: 0 auto;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
.topbar__brand {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--ink);
    text-decoration: none;
}
.topbar__tag {
    margin-left: 6px;
    padding: 2px 9px;
    font-family: "DM Sans", system-ui, sans-serif;
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #fff;
    background: var(--rose);
    border-radius: 999px;
    vertical-align: middle;
}
.topbar__user { display: flex; align-items: center; gap: 12px; font-size: 0.85rem; color: var(--muted); }

.staff-main { max-width: 1100px; margin: 0 auto; padding: 20px 16px 56px; }

.pagehead { margin: 4px 0 16px; }
.pagehead__title { margin: 0; font-family: "Cormorant Garamond", Georgia, serif; font-size: 2rem; font-weight: 600; }
.pagehead__date { margin: 2px 0 0; color: var(--muted); }
.backlink { margin: 0 0 8px; font-size: 0.9rem; }
.backlink a { color: var(--rose-dark); }

/* ---------- Messages ---------- */
.flash { margin: 0 0 16px; padding: 12px 16px; border-radius: 10px; font-size: 0.92rem; border: 1px solid transparent; }
.flash--ok  { background: #e1f0e8; color: #2f6b4a; border-color: #bcdcca; }
.flash--bad { background: #f8e0de; color: var(--error); border-color: #ecbab6; }

/* ---------- Summary numbers ---------- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 0 0 20px; }
@media (min-width: 720px) { .stats { grid-template-columns: repeat(5, 1fr); } }
.stat { padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.stat__n { font-family: "Cormorant Garamond", Georgia, serif; font-size: 2.2rem; font-weight: 600; line-height: 1; }
.stat__l { margin-top: 6px; font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.stat--alert { background: var(--blush); border-color: var(--rose); }

/* ---------- Panels ---------- */
.panel { margin: 0 0 18px; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.panel--alert { border-color: var(--rose); }
.panel__title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 12px;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 1.4rem;
    font-weight: 600;
}
.count {
    padding: 1px 10px;
    font-family: "DM Sans", system-ui, sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--rose-dark);
    background: var(--blush);
    border-radius: 999px;
}
.empty { margin: 0; color: var(--muted); font-size: 0.92rem; }
.panel--fold > summary { cursor: pointer; list-style: none; margin: 0; }
.panel--fold > summary::-webkit-details-marker { display: none; }
.panel--fold[open] > summary { margin-bottom: 12px; }
.two-col { display: grid; gap: 0 18px; }
@media (min-width: 900px) { .two-col { grid-template-columns: 1fr 1fr; align-items: start; } }

/* ---------- Booking rows ---------- */
.jobs { list-style: none; margin: 0; padding: 0; }
.job { display: flex; flex-direction: column; gap: 10px; padding: 14px 0; border-top: 1px solid var(--line); }
.job:first-child { border-top: 0; padding-top: 0; }
.job:last-child { padding-bottom: 0; }
@media (min-width: 720px) {
    .two-col .job { flex-direction: column; align-items: stretch; }
    .panel:not(.two-col .panel) .job { flex-direction: row; align-items: center; justify-content: space-between; }
}
.job__main { display: flex; gap: 14px; align-items: flex-start; min-width: 0; }
.job__badge {
    flex: none;
    min-width: 62px;
    padding: 8px 10px;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--rose-dark);
    background: var(--blush);
    border-radius: 10px;
}
.job__text { min-width: 0; }
.job__name { font-weight: 600; color: var(--ink); text-decoration: none; }
.job__name:hover { color: var(--rose-dark); text-decoration: underline; }
.job__sub { display: block; font-size: 0.88rem; color: var(--muted); }
.job__sub a { color: var(--rose-dark); }
.job__actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.chip { padding: 3px 10px; font-size: 0.72rem; font-weight: 600; color: var(--ink); background: #dfeef1; border-radius: 999px; }
.chip--warn   { background: #fdf0d5; color: #8a5a00; }
.chip--ok     { background: #e1f0e8; color: #2f6b4a; }
.chip--info   { background: #e3edf7; color: #2c5a85; }
.chip--active { background: var(--rose); color: #fff; }
.chip--muted  { background: #eeeeee; color: #666666; }
.chip--bad    { background: #f8e0de; color: var(--error); }

.btn--sm { min-width: 0; padding: 8px 16px; font-size: 0.88rem; }

/* Reschedule box */
.resched { display: inline-block; }
.resched > summary { list-style: none; cursor: pointer; }
.resched > summary::-webkit-details-marker { display: none; }
.resched[open] { flex-basis: 100%; }
.resched__form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; }
.resched__form input[type="date"],
.resched__form select { width: auto; padding: 8px 10px; font-size: 0.9rem; }

/* ---------- Booking detail ---------- */
.detail-grid { display: grid; gap: 0 18px; }
@media (min-width: 800px) { .detail-grid { grid-template-columns: 1fr 1fr; align-items: start; } }
.statements-list { margin: 8px 0 12px; padding-left: 20px; font-size: 0.92rem; }
.statements-list li { margin-bottom: 4px; }
.sigimg { display: block; max-width: 280px; width: 100%; background: #fff; border: 1px solid var(--line); border-radius: 8px; }

/* ---------- Login ---------- */
.login { max-width: 420px; margin: 40px auto 0; }

.topbar__logo { width: 34px; height: 34px; border-radius: 50%; vertical-align: middle; margin-right: 8px; }
.login-logo { display: block; width: 130px; height: auto; margin: 0 auto 12px; }

/* ---- Clients: search, profile, notes ---- */
.topbar__nav { display: flex; gap: 14px; margin-left: auto; margin-right: 14px; }
.topbar__nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.92rem; padding: 6px 4px; border-bottom: 2px solid transparent; }
.topbar__nav a:hover, .topbar__nav a:focus-visible { border-bottom-color: var(--sage); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.searchbar { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.searchbar input[type="search"] { flex: 1 1 220px; min-width: 0; padding: 12px 14px; font: inherit; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.back { margin: 0 0 6px; font-size: 0.92rem; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline__item { padding: 12px 0 12px 14px; border-left: 3px solid var(--line); margin-left: 4px; position: relative; }
.timeline__item::before { content: ""; position: absolute; left: -7px; top: 18px; width: 11px; height: 11px; border-radius: 50%; background: var(--sage); }
.timeline__head { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; }
.timeline__note { margin: 6px 0; padding: 10px 12px; background: var(--blush); border-radius: 10px; }
.noteform textarea { width: 100%; padding: 12px 14px; font: inherit; border: 1px solid var(--line); border-radius: 10px; background: #fff; resize: vertical; }
@media (max-width: 640px) {
    .topbar__in { flex-wrap: wrap; row-gap: 6px; }
    .topbar__nav { order: 3; width: 100%; margin: 0; }
}
.staff-main a:not(.btn):not(.job__name) { color: var(--rose-dark); }

/* ---- Daily log ---- */
.tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.logtable { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.logtable th { text-align: left; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.logtable td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.logtable td .job__sub { display: block; }
.daynav { align-items: center; }
.daynav input[type="date"] { width: auto; }
@media (max-width: 640px) {
    .logtable thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
    .logtable, .logtable tbody, .logtable tr, .logtable td { display: block; width: 100%; }
    .logtable tr { padding: 10px 0; border-bottom: 1px solid var(--line); }
    .logtable td { border: 0; padding: 3px 0; display: flex; justify-content: space-between; gap: 12px; text-align: right; }
    .logtable td::before { content: attr(data-label); color: var(--muted); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; text-align: left; }
}

@media (max-width: 640px) { .logtable td .cell { text-align: right; } }
/* keep times, waits and status tags on one line; only client and treatment names may wrap */
.logtable td { white-space: nowrap; }
.logtable td[data-label="Client"], .logtable td[data-label="Treatment"] { white-space: normal; }
.logtable td .chip, .logtable td .status { white-space: nowrap; }
@media (max-width: 640px) { .logtable td { white-space: normal; } }

/* ---- Top-bar menu with the three booking pages ---- */
.topbar__nav { flex-wrap: wrap; gap: 4px 16px; }
.topbar__nav a.is-here { border-bottom-color: var(--rose); color: var(--rose-dark); }
.navcount { display: inline-block; min-width: 18px; margin-left: 6px; padding: 1px 6px; border-radius: 999px; background: var(--error); color: #fff; font-size: 0.72rem; line-height: 1.4; text-align: center; vertical-align: 1px; }
.stats--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) {
    .topbar__in { flex-wrap: wrap; row-gap: 6px; }
    .topbar__nav { order: 3; width: 100%; margin: 0; }
}

/* Follow-ups */
.is-late { color: #b3261e !important; font-weight: 600; }
.job--closed { opacity: .6; }
.fu-form { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.fu-form label { font-weight: 600; }
.fu-form input[type=text], .fu-form input[type=date] { padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; max-width: 100%; }
.fu-form__row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.fu-quick { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.fu-form .hint { margin: 0; font-size: 0.82rem; color: var(--muted); }

/* Session packages */
.pkg { padding: 12px 0; border-top: 1px solid var(--line); }
.pkg:first-of-type { border-top: 0; }
.pkg--closed { opacity: .7; }
.pkg__head { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.pkg__dots { display: flex; gap: 8px; margin: 8px 0 4px; }
.pkg__dot { width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; border: 2px solid var(--line); color: var(--muted); font-weight: 600; background: #fff; }
.pkg__dot.is-done { background: var(--sage); border-color: var(--sage); color: #fff; }
.fu-form select { padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; max-width: 100%; background: #fff; }

/* Calendar */
.calbar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin: 6px 0 10px; }
.calbar__nav, .calbar__views { display: flex; gap: 6px; }
.calweek { display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .calweek { grid-template-columns: repeat(7, 1fr); } }
.calday { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 8px; min-height: 90px; }
.calday.is-today { border-color: var(--sage); box-shadow: inset 0 0 0 1px var(--sage); }
.calday__head { margin: 0 0 6px; font-size: 0.95rem; display: flex; gap: 6px; align-items: baseline; }
.calday__head span { color: var(--muted); font-weight: 400; font-size: 0.85rem; }
.calday__head em { margin-left: auto; font-style: normal; background: var(--sage); color: #fff; border-radius: 999px; padding: 0 8px; font-size: 0.78rem; }
.calday__empty { margin: 0; color: var(--muted); font-size: 0.82rem; }
.calitem { display: grid; gap: 1px; padding: 6px 8px; margin-bottom: 6px; border-radius: 8px; background: var(--blush, #eef6f6); border-left: 4px solid var(--sage); text-decoration: none; color: inherit; font-size: 0.82rem; }
.calitem--pending { border-left-color: #d98a00; }
.calitem--done, .calitem--no_show { opacity: .6; }
.calitem__time { font-weight: 700; }
.calitem__svc { color: var(--muted); }
.calitem .chip { justify-self: start; }
.calmonth { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.calmonth__dow { text-align: center; font-weight: 600; font-size: 0.8rem; color: var(--muted); padding: 4px 0; }
.calcell { display: flex; flex-direction: column; gap: 2px; min-height: 84px; padding: 5px 6px; background: #fff; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; color: inherit; overflow: hidden; }
.calcell:hover { border-color: var(--sage); }
.calcell.is-today { border-color: var(--sage); box-shadow: inset 0 0 0 1px var(--sage); }
.calcell.is-out { opacity: .45; }
.calcell__n { font-weight: 700; font-size: 0.9rem; }
.calcell__count { font-size: 0.78rem; color: var(--sage); font-weight: 700; }
.calcell__pend { font-size: 0.72rem; color: #b36a00; font-weight: 600; }
.calcell__line { font-size: 0.72rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 640px) { .calcell { min-height: 56px; } .calcell__line, .calcell__lbl, .calcell__pend { display: none; } }

/* Reports, merge */
.reportbar { display: flex; flex-wrap: wrap; gap: 10px 16px; justify-content: space-between; margin: 6px 0 12px; }
.reportbar__presets, .reportbar__custom { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.reportbar input[type=date] { padding: 7px 10px; border: 1px solid var(--line); border-radius: 10px; font: inherit; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 14px; }
.tile { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; display: grid; gap: 2px; }
.tile__n { font-size: 1.9rem; font-weight: 700; color: var(--ink, #1d3b53); line-height: 1.1; }
.tile__l { color: var(--muted); font-size: 0.88rem; }
.tile__l small { font-size: 0.76rem; }
.reportgrid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .reportgrid { grid-template-columns: 1fr 1fr; } }
.bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.bar { display: grid; grid-template-columns: minmax(90px, 40%) 1fr 36px; gap: 8px; align-items: center; font-size: 0.88rem; }
.bar__track { background: #e6f3f0; border-radius: 999px; height: 12px; overflow: hidden; }
.bar__fill { display: block; height: 100%; background: var(--sage); border-radius: 999px; }
.bar__n { text-align: right; }
.mergegrid { display: grid; gap: 12px; grid-template-columns: 1fr; margin-bottom: 14px; }
@media (min-width: 700px) { .mergegrid { grid-template-columns: 1fr 1fr; } }
.mergecard { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: #fff; }
.mergecard h3 { margin: 0 0 6px; font-size: 0.82rem; text-transform: uppercase; letter-spacing: .06em; color: var(--sage); }
.mergecard p { margin: 2px 0; }
.mergecard__name { font-weight: 700; font-size: 1.05rem; }
.mergechoice { border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; display: grid; gap: 6px; }
.checkline { display: flex; gap: 8px; align-items: flex-start; }

/* Staff menu groups */
.topbar__nav { align-items: center; gap: 6px 18px; }
.navgroup { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 16px; }
.navgroup--bookings { background: rgba(255,255,255,0.7); border: 1px solid var(--line, rgba(60,100,110,0.2)); border-radius: 999px; padding: 2px 16px; }
.navgroup--owner { padding-left: 18px; border-left: 1px solid var(--line, rgba(60,100,110,0.25)); }
@media (max-width: 760px) {
    .navgroup--owner { padding-left: 0; border-left: 0; }
    .navgroup--bookings { border-radius: 14px; padding: 4px 12px; }
}

.topbar__pw { font-size: 0.85rem; color: var(--ink); text-decoration: underline; }

.fu-email { margin: 10px 0 2px; font-size: 0.92rem; color: var(--ink); }
.fu-email input { margin-top: 3px; }

/* Same menu layout for owner and reception: name + log out on the first row (right), menu on its own row, left-aligned. */
.topbar__in { flex-wrap: wrap; row-gap: 8px; }
.topbar__brand { order: 1; }
.topbar__user { order: 2; margin-left: auto; }
.topbar__nav { order: 3; width: 100%; margin: 0; justify-content: flex-start; }
.topbar__nav { gap: 6px 12px; }
.navgroup { gap: 2px 12px; }
.navgroup--bookings { padding: 2px 12px; }
.navgroup--owner { padding-left: 12px; }

/* Client profile tabs. Without JavaScript every section simply shows one after another. */
.tabs { display: flex; gap: 6px; margin: 0 0 16px; overflow-x: auto; border-bottom: 1px solid var(--line); }
.tabs__btn { padding: 10px 14px; background: none; border: 0; border-bottom: 3px solid transparent; font: inherit; font-weight: 600; color: var(--muted); cursor: pointer; white-space: nowrap; }
.tabs__btn.is-on { color: var(--rose-dark); border-bottom-color: var(--rose-dark); }
.tabs__btn:hover { color: var(--rose-dark); }
.tabs__btn .count { margin-left: 4px; }
html:not(.js) .tabs { display: none; }
.js .tabpanel:not(.is-on) { display: none; }
@media (max-width: 520px) { .tabs { gap: 0; } .tabs__btn { padding: 10px 8px; font-size: 0.88rem; } .tabs__btn .count { margin-left: 2px; padding: 0 7px; } }

/* Vital signs */
.vitals { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px 4px; margin: 0 0 16px; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0 14px; }
.vitals legend { padding: 0 6px; font-weight: 600; }
.vitalgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; margin: 0 0 8px; }
.vitalgrid dt { font-size: 0.8rem; color: var(--muted); }
.vitalgrid dd { margin: 0; font-size: 1.15rem; font-weight: 700; }
.vitalgrid small { font-weight: 400; color: var(--muted); }

/* Payments and sales */
.bars--money .bar { grid-template-columns: minmax(90px, 38%) 1fr 92px; }
.bars--money .bar__n { text-align: right; font-size: 0.84rem; }
.payform { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); align-items: end; margin-top: 8px; }
.payform .payform__note { grid-column: 1 / -1; }
.payform .btn { justify-self: start; }
.paylist { list-style: none; margin: 0 0 6px; padding: 0; display: grid; gap: 6px; }
.panel__sub { font-size: 1rem; margin: 16px 0 0; }
.pkg__pay { margin-top: 8px; }
.pkg__payadd { margin-top: 8px; }
.pkg__payadd summary { cursor: pointer; color: var(--rose-dark, #164b83); font-weight: 600; font-size: 0.92rem; }
.logtable .num { text-align: right; white-space: nowrap; }
.payquick { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 8px 0 4px; }
.payquick select { min-height: 44px; }

/* Sales: comparison, closing report */
.delta { display: inline-block; margin-top: 2px; font-weight: 600; }
.delta--up { color: #1f7a4d; }
.delta--down { color: #b3372f; }
.delta--same { color: var(--muted); }
.tile__link { text-decoration: none; color: inherit; display: grid; gap: 2px; }
.logtable .sumrow td { border-top: 2px solid var(--line); }
.signoff { display: none; }
@media print {
    .topbar, .no-print, .foot, .flash:not(.flash--bad) { display: none !important; }
    body, .page { background: #fff !important; }
    .panel, .tile { box-shadow: none !important; break-inside: avoid; }
    .signoff { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 56px; text-align: center; font-size: 0.85rem; }
    .signoff__line { display: block; border-top: 1px solid #000; margin-bottom: 4px; }
}

/* Per-service price breakdown in the Payment box */
.pricelines { width: 100%; border-collapse: collapse; margin: 0 0 14px; font-size: .95rem; }
.pricelines th, .pricelines td { padding: 6px 8px; text-align: left; border-bottom: 1px solid var(--line, #d3e5ea); vertical-align: top; }
.pricelines__svc th { background: var(--blush, #e2f1f3); font-weight: 700; border-bottom: 0; }
.pricelines__amt { text-align: right !important; white-space: nowrap; font-weight: 600; }
.pricelines__amt--tbc { font-weight: 400; font-style: italic; color: #6c7f8d; }
.pricelines__sub td { color: #55697a; font-size: .9rem; }
.pricelines tfoot th, .pricelines tfoot td { border-top: 2px solid var(--line, #d3e5ea); border-bottom: 0; font-size: 1.05rem; }

/* ---------- Client profile polish ---------- */
.hero { display: grid; grid-template-columns: auto 1fr; gap: 14px 18px; align-items: center; margin: 0 0 18px; padding: 20px; background: linear-gradient(135deg, #ffffff 0%, #eaf4f6 100%); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 6px 22px rgba(20, 60, 90, .07); }
.hero__avatar { width: 64px; height: 64px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font: 700 1.35rem/1 Georgia, serif; letter-spacing: .02em; color: #fff; background: linear-gradient(135deg, var(--rose-dark, #164b83), #4aa3a3); box-shadow: 0 4px 12px rgba(22, 75, 131, .28); }
.hero__name { margin: 0 0 4px; font-size: 1.55rem; line-height: 1.2; }
.hero .chip a { color: inherit; text-decoration: none; }
.hero__stats { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat { padding: 10px 12px; text-align: center; background: rgba(255, 255, 255, .85); border: 1px solid var(--line); border-radius: 12px; }
.stat b { display: block; font-size: 1.45rem; line-height: 1.1; color: var(--rose-dark, #164b83); }
.stat span { font-size: .74rem; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; color: var(--muted); }
.stat--warn b { color: #b26a00; }
@media (min-width: 900px) { .hero { grid-template-columns: auto 1fr auto; } .hero__stats { grid-column: auto; min-width: 360px; } }

.tabs { gap: 8px; padding: 6px; background: rgba(255, 255, 255, .7); border: 1px solid var(--line); border-radius: 999px; width: fit-content; max-width: 100%; }
.tabs__btn { padding: 8px 16px; border: 0; border-radius: 999px; }
.tabs__btn.is-on { background: var(--rose-dark, #164b83); color: #fff; }
.tabs__btn.is-on .count { background: rgba(255, 255, 255, .25); color: #fff; }
.tabs__btn:hover:not(.is-on) { background: #e8f1f4; }

.summary--grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px 22px; }
.summary--grid > div { padding: 10px 12px; background: #f5fafb; border-radius: 10px; }

.pkg { margin: 0 0 14px; padding: 16px; border: 1px solid var(--line); border-top: 1px solid var(--line); border-left: 5px solid var(--sage); border-radius: 14px; background: linear-gradient(180deg, #ffffff, #f4faf8); box-shadow: 0 3px 12px rgba(20, 60, 90, .05); }
.pkg:first-of-type { border-top: 1px solid var(--line); }
.pkg--closed { border-left-color: #c9d3d6; background: #f7f9f9; }
.pkg__head strong { font-size: 1.05rem; }
.pkg__bar { height: 10px; margin: 12px 0 6px; background: #e3edef; border-radius: 999px; overflow: hidden; }
.pkg__bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--sage), #4aa3a3); border-radius: 999px; }
.pkg__dots { gap: 10px; flex-wrap: wrap; }
.pkg__dot { width: 38px; height: 38px; }
.pkg__dot.is-done { box-shadow: 0 2px 8px rgba(47, 107, 74, .35); }
.pkg__pay { padding: 8px 12px; background: #fff; border: 1px dashed var(--line); border-radius: 10px; }
.panel__title { letter-spacing: .01em; }

.fu-book { flex: 1 0 100%; width: 100%; margin-top: 6px; }
.fu-book summary { cursor: pointer; color: var(--rose-dark, #164b83); font-weight: 600; font-size: .92rem; }
.fu-book .fu-form { margin-top: 8px; }
.fu-book .fu-form__row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.fu-book .fu-form__row select, .fu-book .fu-form__row input { width: auto; flex: 1 1 170px; }
.job:has(> .fu-book) { flex-wrap: wrap; }
