/* Focused 2026-09-13 refinements: booking guidance and inventory availability. */
body[data-page="index"] .booking-calendar-intro {
    align-items: center;
    background:
        linear-gradient(120deg, rgba(31, 95, 191, .07), transparent 58%),
        var(--home-surface, #fff);
}

body[data-page="index"] .booking-calendar-lead {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    min-width: 0;
}

body[data-page="index"] .booking-calendar-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(31, 95, 191, .18);
    border-radius: 13px;
    background: rgba(31, 95, 191, .09);
    color: #1f5fbf;
    font-size: 20px;
}

body[data-page="index"] .booking-calendar-kicker {
    margin-bottom: 4px;
    color: #1f5fbf;
    letter-spacing: .045em;
    text-transform: uppercase;
}

body[data-page="index"] .booking-calendar-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 0 0 auto;
}

body[data-page="index"] .booking-step-badge {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    border: 1px solid rgba(31, 95, 191, .18);
    border-radius: 7px;
    padding: 5px 9px;
    background: rgba(31, 95, 191, .07);
    color: #17498f;
    font-size: 11px;
    font-weight: 800;
}

body[data-page="index"] .booking-progress {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    margin: 0;
    border-top: 1px solid rgba(20, 72, 112, .1);
    padding: 0 24px;
    background: color-mix(in srgb, var(--home-surface, #fff) 88%, #edf5fb);
    list-style: none;
}

body[data-page="index"] .booking-progress li {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 48px;
    color: var(--home-muted, #61788b);
    font-size: 12px;
}

body[data-page="index"] .booking-progress li + li {
    border-left: 1px solid rgba(20, 72, 112, .1);
    padding-left: 20px;
}

body[data-page="index"] .booking-progress li > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border: 1px solid rgba(85, 111, 135, .3);
    border-radius: 50%;
    font-size: 11px;
    font-weight: 850;
}

body[data-page="index"] .booking-progress li.is-current { color: #17498f; }
body[data-page="index"] .booking-progress li.is-current > span {
    border-color: #1f5fbf;
    background: #1f5fbf;
    color: #fff;
}

body[data-page="index"] .inventory-section {
    background: linear-gradient(180deg, color-mix(in srgb, var(--home-bg, #eef7f8) 88%, #fff), var(--home-bg, #eef7f8));
}

body[data-page="index"] .inventory-heading {
    max-width: 760px;
    margin-inline: auto;
    margin-bottom: clamp(18px, 3vw, 28px);
    text-align: center;
}

body[data-page="index"] .section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 7px;
    color: #1f5fbf;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .045em;
    text-transform: uppercase;
}

body[data-page="index"] .inventory-heading h2 {
    margin-bottom: 7px;
    font-size: clamp(1.85rem, 4vw, 2.65rem);
    line-height: 1.08;
}

body[data-page="index"] .inventory-heading p {
    margin: 0;
    color: var(--home-muted, #5d7487);
    font-size: 14px;
    line-height: 1.55;
}

body[data-page="index"] .inventory-chart-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(14px, 2vw, 20px);
}

body[data-page="index"] .inventory-chart-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(31, 95, 191, .14);
    border-radius: 16px;
    background: color-mix(in srgb, var(--home-surface, #fff) 94%, transparent);
    box-shadow: 0 12px 34px rgba(31, 69, 102, .08);
}

body[data-page="index"] .inventory-card-header {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 11px;
    border-bottom: 1px solid rgba(31, 95, 191, .1);
    padding: 14px 16px 12px;
}

body[data-page="index"] .inventory-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 11px;
    font-size: 18px;
}
body[data-page="index"] .inventory-card-icon.medicine { background: rgba(31, 95, 191, .1); color: #1f5fbf; }
body[data-page="index"] .inventory-card-icon.vaccine { background: rgba(15, 118, 110, .1); color: #0f766e; }
body[data-page="index"] .inventory-card-header > div > span {
    display: block;
    margin-bottom: 1px;
    color: var(--home-muted, #63798b);
    font-size: 10px;
    font-weight: 700;
}
body[data-page="index"] .inventory-card-header h3 {
    margin: 0;
    color: var(--home-ink, #17334c);
    font-size: 17px;
    font-weight: 850;
}
body[data-page="index"] .inventory-total {
    display: grid;
    justify-items: end;
    font-variant-numeric: tabular-nums;
}
body[data-page="index"] .inventory-total strong {
    color: var(--home-ink, #17334c);
    font-size: 20px;
    line-height: 1;
}
body[data-page="index"] .inventory-total span {
    margin-top: 2px;
    color: var(--home-muted, #63798b);
    font-size: 10px;
    font-weight: 700;
}

body[data-page="index"] .inventory-chart-card .chart-container {
    width: 100%;
    min-height: 250px;
    padding: 12px 12px 4px;
}
body[data-page="index"] .inventory-chart-card canvas { max-width: 100% !important; }

body[data-page="index"] .inventory-data-details {
    border-top: 1px solid rgba(31, 95, 191, .1);
    padding: 0 16px;
}
body[data-page="index"] .inventory-data-details summary {
    min-height: 44px;
    padding: 13px 0;
    color: #17498f;
    cursor: pointer;
    font-size: 12px;
    font-weight: 800;
}
body[data-page="index"] .inventory-data-details dl { margin: 0 0 12px; }
body[data-page="index"] .inventory-data-details dl > div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    border-top: 1px solid rgba(31, 95, 191, .08);
    padding: 8px 0;
    font-size: 12px;
}
body[data-page="index"] .inventory-data-details :is(dt, dd) { margin: 0; }
body[data-page="index"] .inventory-data-details dd { color: var(--home-muted, #63798b); font-variant-numeric: tabular-nums; }
body[data-page="index"] .inventory-empty { margin: 0; padding: 28px 16px; color: var(--home-muted, #63798b); text-align: center; }

html[data-bs-theme="dark"] body[data-page="index"] .booking-calendar-intro,
html[data-bs-theme="dark"] body[data-page="index"] .booking-progress,
html[data-bs-theme="dark"] body[data-page="index"] .inventory-chart-card {
    border-color: rgba(150, 190, 220, .16);
    background: #102a40;
}
html[data-bs-theme="dark"] body[data-page="index"] :is(.booking-calendar-icon, .booking-step-badge) {
    border-color: rgba(118, 169, 255, .26);
    background: rgba(118, 169, 255, .12);
    color: #b9d4ff;
}
html[data-bs-theme="dark"] body[data-page="index"] .booking-progress li.is-current,
html[data-bs-theme="dark"] body[data-page="index"] .section-kicker,
html[data-bs-theme="dark"] body[data-page="index"] .inventory-data-details summary { color: #bfdbfe; }
html[data-bs-theme="dark"] body[data-page="index"] .inventory-card-header h3,
html[data-bs-theme="dark"] body[data-page="index"] .inventory-total strong { color: #f4f8fb; }

@media (max-width: 900px) {
    body[data-page="index"] .inventory-chart-grid { grid-template-columns: 1fr; }
}

@media (max-width: 767.98px) {
    body[data-page="index"] .booking-calendar-intro { padding: 14px !important; }
    body[data-page="index"] .booking-calendar-lead { gap: 10px; }
    body[data-page="index"] .booking-calendar-icon { flex-basis: 40px; width: 40px; height: 40px; border-radius: 11px; font-size: 18px; }
    body[data-page="index"] .booking-calendar-intro h2 { font-size: clamp(1.45rem, 7vw, 1.85rem); }
    body[data-page="index"] .booking-calendar-meta { display: none; }
    body[data-page="index"] .booking-progress { padding: 0 14px; }
    body[data-page="index"] .booking-progress li { min-height: 43px; font-size: 10px; }
    body[data-page="index"] .booking-progress li + li { padding-left: 10px; }
    body[data-page="index"] .booking-progress li > span { width: 22px; height: 22px; }
    body[data-page="index"] .inventory-heading { text-align: left; }
    body[data-page="index"] .inventory-heading h2 { font-size: clamp(1.65rem, 8vw, 2rem); }
    body[data-page="index"] .inventory-chart-card { border-radius: 14px; }
    body[data-page="index"] .inventory-card-header { padding: 12px; }
    body[data-page="index"] .inventory-chart-card .chart-container { padding: 10px 8px 2px; }
    body[data-page="index"] .inventory-data-details { padding-inline: 12px; }
}

@media (max-width: 359px) {
    body[data-page="index"] .booking-calendar-icon { display: none; }
    body[data-page="index"] .booking-progress li strong { max-width: 12ch; }
    body[data-page="index"] .inventory-card-icon { width: 36px; height: 36px; }
}

@media (prefers-reduced-motion: reduce) {
    body[data-page="index"] .inventory-data-details { scroll-behavior: auto; }
}
