/* ─────────────────────────────────────────────────────────────────────────────
   SafarSense — App CSS
   Bootstrap 5 base + AdminKit-inspired layout shell
   ───────────────────────────────────────────────────────────────────────────── */

/* ── Variables ─────────────────────────────────────────────────────────────── */
:root {
    --sidebar-width:     260px;
    --sidebar-bg:        #1a2035;
    --sidebar-text:      #adb5bd;
    --sidebar-active-bg: rgba(255,255,255,.08);
    --sidebar-active:    #fff;
    --sidebar-hover:     rgba(255,255,255,.05);
    --sidebar-header:    rgba(255,255,255,.25);
    --sidebar-brand:     #fff;

    --topbar-bg:         #fff;
    --topbar-border:     #e9ecef;

    --page-bg:           #f4f6f9;
    --card-shadow:       0 1px 3px rgba(0,0,0,.08);
    --card-radius:       8px;

    --accent:            #3b7ddd;
    --attention-bg:      #fff8e1;
    --attention-border:  #ffc107;
    --issue-bg:          #ffeef0;
    --issue-border:      #dc3545;
}

/* ── Reset & base ──────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body {
    background: var(--page-bg);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
    font-size: .9rem;
    color: #343a40;
    margin: 0;
}

/* ── Layout wrapper ────────────────────────────────────────────────────────── */
.wrapper {
    display: flex;
    min-height: 100vh;
}

/* ── Sidebar ───────────────────────────────────────────────────────────────── */
.sidebar {
    min-width: var(--sidebar-width);
    max-width: var(--sidebar-width);
    background: var(--sidebar-bg);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    transition: margin-left .2s ease, transform .2s ease;
    z-index: 1000;
}

.sidebar-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Brand */
.sidebar-brand {
    display: flex;
    align-items: center;
    padding: 1.25rem 1.5rem;
    text-decoration: none;
    color: var(--sidebar-brand);
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: -.3px;
    border-bottom: 1px solid rgba(255,255,255,.06);
    flex-shrink: 0;
}
.sidebar-brand-icon {
    margin-right: .6rem;
    color: var(--accent);
}
.sidebar-brand:hover { color: var(--sidebar-brand); }

/* Nav */
.sidebar-nav {
    list-style: none;
    padding: .75rem 0;
    margin: 0;
    flex: 1;
}

.sidebar-header {
    padding: .5rem 1.5rem .25rem;
    font-size: .65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .8px;
    color: var(--sidebar-header);
    margin-top: .5rem;
}

.sidebar-item { margin: 1px 0; }

.sidebar-link {
    display: flex;
    align-items: center;
    padding: .55rem 1.5rem;
    color: var(--sidebar-text);
    text-decoration: none;
    font-size: .875rem;
    border-radius: 0;
    transition: background .15s, color .15s;
}
.sidebar-link:hover {
    background: var(--sidebar-hover);
    color: #fff;
}
.sidebar-item.active .sidebar-link {
    background: var(--sidebar-active-bg);
    color: var(--sidebar-active);
    font-weight: 500;
}
.sidebar-link i { font-size: 1rem; opacity: .7; }
.sidebar-item.active .sidebar-link i { opacity: 1; }

/* Partner legend */
.sidebar-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(255,255,255,.06);
    flex-shrink: 0;
}
.partner-legend { }
.legend-title {
    font-size: .65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .8px;
    color: var(--sidebar-header);
    margin-bottom: .5rem;
}
.legend-item {
    display: flex;
    align-items: center;
    font-size: .78rem;
    color: var(--sidebar-text);
    margin-bottom: .25rem;
}
.legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: .5rem;
    flex-shrink: 0;
}

/* ── Main area ─────────────────────────────────────────────────────────────── */
.main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow-x: hidden;
}

/* ── Topbar ────────────────────────────────────────────────────────────────── */
.navbar-bg {
    background: var(--topbar-bg);
    border-bottom: 1px solid var(--topbar-border);
    padding: .625rem 1.5rem;
    box-shadow: 0 1px 0 rgba(0,0,0,.04);
}

/* Sidebar toggle (hamburger) */
.sidebar-toggle {
    cursor: pointer;
    color: #6c757d;
    font-size: 1.1rem;
    text-decoration: none;
    padding: .25rem .5rem;
}
.sidebar-toggle:hover { color: #343a40; }

.hamburger,
.hamburger::before,
.hamburger::after {
    display: block;
    width: 18px;
    height: 2px;
    background: currentColor;
    border-radius: 1px;
    transition: all .2s;
}
.hamburger { position: relative; margin: .4rem 0; }
.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
}
.hamburger::before { top: -5px; }
.hamburger::after  { top: 5px; }

/* ── Page header ───────────────────────────────────────────────────────────── */
.page-header {
    padding: 1.25rem 1.5rem .75rem;
    background: var(--topbar-bg);
    border-bottom: 1px solid var(--topbar-border);
}
.page-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0;
    color: #212529;
}
.page-date {
    font-size: .95rem;
    font-weight: 400;
    color: #6c757d;
    margin-left: .5rem;
}

/* ── Page body ─────────────────────────────────────────────────────────────── */
.page-body {
    padding: 1.5rem;
}

/* ── Cards ─────────────────────────────────────────────────────────────────── */
.card {
    border: 1px solid #e3e6ea;
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
}
.card-header {
    background: #fff;
    border-bottom: 1px solid #e9ecef;
    padding: .75rem 1.25rem;
    border-radius: var(--card-radius) var(--card-radius) 0 0;
}
.card-title { font-size: .95rem; font-weight: 600; color: #343a40; }

/* ── Stat cards ────────────────────────────────────────────────────────────── */
.stat-card {
    background: #fff;
    border: 1px solid #e3e6ea;
    border-radius: var(--card-radius);
    padding: 1rem 1.25rem;
    box-shadow: var(--card-shadow);
}
.stat-value { font-size: 1.75rem; font-weight: 700; line-height: 1; color: #212529; }
.stat-label { font-size: .8rem; color: #6c757d; margin-top: .25rem; }
.stat-card--warn { border-left: 3px solid var(--attention-border); }
.stat-card--warn .stat-value { color: #856404; }

/* ── Booking list ──────────────────────────────────────────────────────────── */
.booking-list { display: flex; flex-direction: column; }

.booking-row-link { text-decoration: none; color: inherit; }

.booking-row {
    display: flex;
    align-items: stretch;
    border-bottom: 1px solid #f1f3f5;
    min-height: 64px;
    transition: background .12s;
    position: relative;
}
.booking-row:last-child { border-bottom: none; }
.booking-row:hover { background: #f8f9fa; }

.booking-row.needs-attention { background: var(--attention-bg); }
.booking-row.needs-attention:hover { background: #fff3cd; }
.booking-row.has-issue { background: var(--issue-bg); }
.booking-row.has-issue:hover { background: #ffe5e8; }

.booking-row-stripe {
    width: 4px;
    flex-shrink: 0;
    border-radius: 0;
}

.booking-row-body {
    flex: 1;
    padding: .625rem 1rem;
    display: grid;
    grid-template-columns: 90px 1fr auto;
    grid-template-rows: auto auto;
    gap: 0 .75rem;
    align-items: center;
}

.booking-row-meta {
    grid-column: 1;
    grid-row: 1 / 3;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.booking-time {
    font-size: .875rem;
    font-weight: 600;
    color: #212529;
}
.booking-ref {
    font-size: .7rem;
    color: #adb5bd;
    font-family: monospace;
}

.booking-row-main {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.booking-product { font-size: .875rem; font-weight: 500; color: #212529; }
.booking-partner  { font-size: .775rem; font-weight: 500; }

.booking-row-customer {
    grid-column: 2;
    grid-row: 2;
    display: flex;
    align-items: center;
    gap: .75rem;
    font-size: .8rem;
    color: #6c757d;
}
.booking-pax { display: flex; align-items: center; gap: 3px; }

.booking-row-status {
    padding: .625rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 4px;
    flex-shrink: 0;
}
.flag-icon { font-size: .9rem; }
.flag-icon.attention { color: #ffc107; }
.flag-icon.issue     { color: #dc3545; }

/* ── Week view ─────────────────────────────────────────────────────────────── */
.week-day-block {
    border: 1px solid #e3e6ea;
    border-radius: var(--card-radius);
    background: #fff;
    box-shadow: var(--card-shadow);
    overflow: hidden;
}
.week-day-block.today { border-left: 3px solid var(--accent); }
.week-day-block.past  { opacity: .7; }

.week-day-header {
    padding: .625rem 1.25rem;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    gap: .25rem;
}
.week-day-label { font-weight: 600; font-size: .875rem; }
.week-day-pax   { font-size: .8rem; }
.week-day-empty {
    padding: .75rem 1.25rem;
    color: #adb5bd;
    font-size: .8rem;
    font-style: italic;
}

/* ── Detail view ───────────────────────────────────────────────────────────── */
.detail-label { font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; color: #adb5bd; margin-bottom: 2px; }
.detail-value { font-size: .9rem; }

.partner-name-badge {
    display: inline-block;
    padding: .2rem .6rem;
    background: #f8f9fa;
    border-radius: 4px;
    font-weight: 500;
    font-size: .875rem;
}

.customer-notes-text {
    background: #f8f9fa;
    border-radius: 4px;
    padding: .5rem .75rem;
    font-size: .875rem;
    color: #495057;
    border-left: 3px solid #dee2e6;
}

/* Timeline */
.timeline { padding: .75rem 1.25rem; }
.timeline-event {
    display: flex;
    gap: .75rem;
    padding: .5rem 0;
    border-bottom: 1px solid #f1f3f5;
}
.timeline-event:last-child { border-bottom: none; }
.timeline-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0;
    margin-top: .35rem;
}
.timeline-description { font-size: .85rem; color: #343a40; }
.timeline-meta { display: flex; gap: .5rem; margin-top: 2px; }
.timeline-actor { font-size: .72rem; color: #adb5bd; font-weight: 500; }
.timeline-time  { font-size: .72rem; color: #adb5bd; }

/* Import */
.code-block {
    background: #1a2035;
    color: #a8b0c0;
    border-radius: 6px;
    padding: .75rem 1rem;
    font-size: .8rem;
    overflow-x: auto;
}
.pipeline-steps { padding-left: 1.25rem; }
.pipeline-steps li { margin-bottom: .4rem; font-size: .875rem; }

/* Empty state */
.empty-state {
    text-align: center;
    padding: 2rem;
    color: #adb5bd;
}
.empty-state i { font-size: 2rem; display: block; margin-bottom: .5rem; }
.empty-state p { margin: 0; font-size: .875rem; }

/* Footer */
.footer {
    padding: 1rem 1.5rem;
    background: var(--topbar-bg);
    border-top: 1px solid var(--topbar-border);
    margin-top: auto;
    font-size: .78rem;
}

/* Breadcrumb */
.breadcrumb { font-size: .8rem; margin-bottom: 0; }

/* ── Mobile ────────────────────────────────────────────────────────────────── */
@media (max-width: 767.98px) {

    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        height: 100%;
        transform: translateX(-100%);
        z-index: 1050;
    }
    .sidebar.show {
        transform: translateX(0);
        box-shadow: 4px 0 20px rgba(0,0,0,.3);
    }

    .main { width: 100%; }

    .page-header { padding: 1rem; }
    .page-title  { font-size: 1.1rem; }
    .page-body   { padding: 1rem; }

    .booking-row-body {
        grid-template-columns: 70px 1fr;
        grid-template-rows: auto auto auto;
    }
    .booking-row-meta  { grid-column: 1; grid-row: 1 / 4; }
    .booking-row-main  { grid-column: 2; grid-row: 1; }
    .booking-row-customer { grid-column: 2; grid-row: 2; }

    .booking-row-status {
        flex-direction: row;
        padding: .5rem .75rem;
        gap: .25rem;
    }

    .sidebar-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,.5);
        z-index: 1040;
    }
    .sidebar-overlay.show { display: block; }
}

/* ── FullCalendar overrides ────────────────────────────────────────────────── */
.fc {
    font-family: inherit;
    font-size: .85rem;
}
.fc .fc-toolbar-title { font-size: 1.1rem; font-weight: 700; }
.fc .fc-button {
    background: #fff;
    border: 1px solid #dee2e6;
    color: #495057;
    font-size: .8rem;
    padding: .3rem .7rem;
}
.fc .fc-button:hover, .fc .fc-button-active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}
.fc .fc-button-primary:not(.fc-button-active):hover { background: #f8f9fa; color: #343a40; }
.fc-event { border-radius: 4px; font-size: .78rem; font-weight: 500; }


/* ── Settings ──────────────────────────────────────────────────────────────── */

/* Auth type selector cards */
.auth-option {
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    padding: .75rem;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    cursor: pointer;
    transition: border-color .15s, background .15s;
    width: 100%;
    margin: 0;
}
.auth-option input[type="radio"] {
    margin-top: .2rem;
    flex-shrink: 0;
    accent-color: var(--accent);
}
.auth-option-content { flex: 1; }
.auth-option-title   { font-size: .875rem; font-weight: 600; color: #343a40; }
.auth-option-desc    { font-size: .775rem; color: #6c757d; margin-top: 1px; }

.auth-option:hover { border-color: #adb5bd; background: #f8f9fa; }
.auth-option--active {
    border-color: var(--accent);
    background: #eef4fd;
}
.auth-option--active .auth-option-title { color: var(--accent); }

/* Test result block */
.test-result {
    border-radius: 6px;
    padding: .875rem 1rem;
    border: 1px solid transparent;
}
.test-result--success {
    background: #f0fdf4;
    border-color: #bbf7d0;
}
.test-result--fail {
    background: #fff8f8;
    border-color: #fecaca;
}

.test-result-header {
    display: flex;
    align-items: baseline;
    gap: .5rem;
    flex-wrap: wrap;
}
.test-result-icon {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1;
}
.test-result--success .test-result-icon { color: #16a34a; }
.test-result--fail    .test-result-icon { color: #dc2626; }

.test-result-message {
    font-size: .9rem;
    font-weight: 500;
    flex: 1;
}
.test-result--success .test-result-message { color: #166534; }
.test-result--fail    .test-result-message { color: #991b1b; }

.test-status-code {
    font-size: .75rem;
    font-family: monospace;
    background: rgba(0,0,0,.06);
    padding: .1rem .4rem;
    border-radius: 3px;
    color: #495057;
}

.test-result-url {
    margin-top: .4rem;
    font-size: .78rem;
    font-family: monospace;
    color: #6c757d;
    word-break: break-all;
}
.test-result-detail {
    margin-top: .3rem;
    font-size: .78rem;
    color: #6c757d;
    font-style: italic;
}
.test-result-time {
    margin-top: .5rem;
    font-size: .72rem;
    color: #9ca3af;
}

/* Help guide */
.settings-help { }
.help-section { }
.help-title {
    font-size: .875rem;
    font-weight: 600;
    color: #343a40;
    margin-bottom: .4rem;
}
.help-steps {
    padding-left: 1.25rem;
    margin: 0;
}
.help-steps li {
    font-size: .82rem;
    color: #495057;
    margin-bottom: .25rem;
    line-height: 1.5;
}


/* ── Import screen ─────────────────────────────────────────────────────────── */

.integration-empty-state {
    text-align: center;
    padding: 1.5rem 1rem;
}
.integration-empty-state p { margin-bottom: .5rem; }

.connection-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .75rem;
}
@media (max-width: 576px) {
    .connection-detail-grid { grid-template-columns: 1fr; }
}

.conn-field { }
.conn-label {
    font-size: .7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #adb5bd;
    margin-bottom: 2px;
}
.conn-value { font-size: .875rem; font-weight: 500; word-break: break-all; }

/* ── Danger zone / soft delete ─────────────────────────────────────────────── */

.border-danger-subtle { border-color: #f1aeb5 !important; }
.bg-danger-subtle     { background-color: #fff5f5 !important; }

/* Modal — booking remove */
.modal-content { border-radius: 10px; }

/* ── Auth layout ────────────────────────────────────────────────────────────── */

body.auth-body {
    background: linear-gradient(135deg, #1a2035 0%, #2d3a5c 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-wrapper {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.auth-card {
    background: #fff;
    border-radius: 12px;
    padding: 2.5rem;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 8px 40px rgba(0,0,0,.25);
}

.auth-brand {
    display: flex;
    align-items: center;
    gap: .6rem;
    color: var(--accent);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.auth-brand svg {
    color: var(--accent);
}

.auth-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: .25rem;
    color: #1a2035;
}

.auth-subtitle {
    color: #6c757d;
    font-size: .875rem;
    margin-bottom: 1.75rem;
}

.auth-footer {
    text-align: center;
    color: #adb5bd;
    font-size: .75rem;
    margin-top: 1.75rem;
    margin-bottom: 0;
}

/* ── Experience images ──────────────────────────────────────────────────────── */

/* List thumbnail */
.exp-thumb {
    width: 52px;
    height: 52px;
    object-fit: cover;
    border-radius: 7px;
    display: block;
    background: #eef2f8;
    flex-shrink: 0;
}

/* Slightly dimmed placeholder in the list */
.exp-thumb--placeholder {
    opacity: .72;
}

/* Muted row for inactive experiences */
tr.opacity-60 { opacity: .6; }

/* Cover image preview block in forms */
.exp-cover-preview {
    display: block;
    border-radius: 8px;
    overflow: hidden;
    background: #eef3f9;
    border: 1px solid #e2eaf4;
}

.exp-cover-img {
    width: 100%;
    height: 164px;
    object-fit: cover;
    display: block;
    transition: opacity .2s;
}

/* Placeholder version: slightly muted */
.exp-cover-img--placeholder {
    opacity: .85;
}

/* ── User avatar circle (topbar) ─────────────────────────────────────────────── */

.avatar-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-size: .75rem;
    font-weight: 700;
    flex-shrink: 0;
}

/* ── Settings section nav cards ─────────────────────────────────────────────── */
.card-hover {
    transition: border-color .15s, box-shadow .15s;
}
.card-hover:hover {
    border-color: var(--accent, #0d6efd) !important;
    box-shadow: 0 0 0 3px rgba(13,110,253,.08);
}

/* ═══════════════════════════════════════════════════════════════════════════
   Standard / Core view — shared design system
   Used by: dashboard/standard.php, bookings/index_standard.php
   ═══════════════════════════════════════════════════════════════════════════ */

.std-page { padding: 1.75rem 1.5rem; }

/* Premium card */
.std-card {
    background:    #fff;
    border-radius: 14px;
    box-shadow:    0 0 0 1px rgba(17,17,26,.05),
                   0 2px 4px  rgba(17,17,26,.04),
                   0 8px 20px rgba(17,17,26,.05);
}

/* ── KPI card ────────────────────────────────────────────────────────────── */
.std-kpi         { display: flex; align-items: center; gap: 16px; padding: 20px 22px; }
.std-kpi-icon    { width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 19px; }
.std-kpi-body    { flex: 1; min-width: 0; }
.std-kpi-value   { font-size: 30px; font-weight: 700; line-height: 1; color: #0f172a; letter-spacing: -.5px; }
.std-kpi-label   { font-size: 12.5px; color: #7c8fa6; margin-top: 4px; font-weight: 500; }

/* ── Section header ──────────────────────────────────────────────────────── */
.std-panel       { padding: 22px 24px 0; }
.std-panel-body  { padding: 0 24px 22px; }
.std-section-hd  { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.std-section-title { font-size: 14px; font-weight: 700; color: #0f172a; letter-spacing: -.1px; }
.std-section-link  { font-size: 12px; color: #94a3b8; text-decoration: none; display: flex; align-items: center; gap: 4px; transition: color .12s; }
.std-section-link:hover { color: #3b7ddd; }

/* ── Badges ──────────────────────────────────────────────────────────────── */
.std-badge         { display: inline-block; padding: 3px 9px; border-radius: 20px; font-size: 11px; font-weight: 600; white-space: nowrap; }
.std-badge--green  { background: #dcfce7; color: #15803d; }
.std-badge--blue   { background: #dbeafe; color: #1d4ed8; }
.std-badge--amber  { background: #fef3c7; color: #b45309; }
.std-badge--indigo { background: #e0e7ff; color: #4338ca; }
.std-badge--red    { background: #fee2e2; color: #b91c1c; }
.std-badge--orange { background: #ffedd5; color: #c2410c; }
.std-badge--neutral{ background: #f1f5f9; color: #475569; }

/* ── Upcoming list row (dashboard) ───────────────────────────────────────── */
.std-bk-row { display: flex; align-items: center; gap: 14px; padding: 11px 0; border-bottom: 1px solid #f1f5f9; text-decoration: none; transition: background .1s; margin: 0 -24px; padding-left: 24px; padding-right: 24px; }
.std-bk-row:last-child { border-bottom: none; }
.std-bk-row:hover      { background: #f8fafc; }

.std-date-cal           { width: 46px; min-width: 46px; text-align: center; background: #f8fafc; border: 1px solid #e8edf2; border-radius: 9px; padding: 5px 4px; flex-shrink: 0; transition: border-color .1s; }
.std-bk-row:hover .std-date-cal { border-color: #c7d2dd; }
.std-date-cal__day      { font-size: 17px; font-weight: 800; color: #0f172a; line-height: 1.1; }
.std-date-cal__month    { font-size: 9.5px; font-weight: 700; color: #7c8fa6; text-transform: uppercase; letter-spacing: .4px; }
.std-date-cal--today    { border-color: #bfdbfe; background: #eff6ff; }
.std-date-cal--today    .std-date-cal__day   { color: #2563eb; }
.std-date-cal--today    .std-date-cal__month { color: #3b82f6; }
.std-date-cal--tomorrow { border-color: #d1fae5; background: #f0fdf4; }
.std-date-cal--tomorrow .std-date-cal__day   { color: #16a34a; }
.std-date-cal--tomorrow .std-date-cal__month { color: #22c55e; }

.std-bk-body     { flex: 1; min-width: 0; }
.std-bk-name     { font-size: 14px; font-weight: 600; color: #0f172a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.std-bk-sub      { font-size: 12px; color: #7c8fa6; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.std-bk-actions  { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.std-bk-arrow    { color: #cbd5e1; font-size: 15px; transition: color .1s, transform .1s; line-height: 1; }
.std-bk-row:hover .std-bk-arrow { color: #64748b; transform: translateX(2px); }

/* ── Needs-attention list row (dashboard) ───────────────────────────────── */
.std-att-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid #f1f5f9; text-decoration: none; transition: background .1s; margin: 0 -24px; padding-left: 24px; padding-right: 24px; }
.std-att-row:last-child { border-bottom: none; }
.std-att-row:hover      { background: #fff8f8; }
.std-att-dot   { width: 7px; height: 7px; border-radius: 50%; background: #f87171; flex-shrink: 0; }
.std-att-body  { flex: 1; min-width: 0; }
.std-att-name  { font-size: 13px; font-weight: 600; color: #0f172a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.std-att-meta  { font-size: 11px; color: #94a3b8; margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.std-att-arrow { color: #e5e7eb; font-size: 13px; transition: color .1s; }
.std-att-row:hover .std-att-arrow { color: #9ca3af; }

/* ── Count pill ──────────────────────────────────────────────────────────── */
.std-count-pill { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; font-size: 11.5px; font-weight: 700; }
.std-count-pill--red { background: #fee2e2; color: #b91c1c; }

/* ── Payment bar (dashboard) ─────────────────────────────────────────────── */
.std-payment-bar   { display: flex; align-items: center; flex-wrap: wrap; padding: 18px 24px; }
.std-pay-stat      { display: flex; flex-direction: column; gap: 2px; padding-right: 24px; margin-right: 24px; border-right: 1px solid #f1f5f9; }
.std-pay-stat:last-of-type      { border-right: none; margin-right: 0; }
.std-pay-stat__value            { font-size: 22px; font-weight: 700; color: #0f172a; line-height: 1; }
.std-pay-stat__label            { font-size: 11.5px; color: #94a3b8; font-weight: 500; }
.std-pay-outstanding            { margin-left: auto; text-align: right; display: flex; flex-direction: column; gap: 2px; }
.std-pay-outstanding__label     { font-size: 11.5px; color: #94a3b8; font-weight: 500; }
.std-pay-outstanding__value     { font-size: 20px; font-weight: 700; }

/* ── Empty state ─────────────────────────────────────────────────────────── */
.std-empty       { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 28px 0; color: #94a3b8; gap: 8px; text-align: center; }
.std-empty i     { font-size: 28px; color: #dde3ec; }
.std-empty span  { font-size: 13px; }

/* ── View switcher button ─────────────────────────────────────────────────── */
.std-view-switch { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 8px; border: 1px solid #e2e8f0; background: #fff; color: #64748b; font-size: 12.5px; font-weight: 500; cursor: pointer; text-decoration: none; transition: border-color .12s, color .12s; white-space: nowrap; }
.std-view-switch:hover { border-color: #94a3b8; color: #0f172a; }
.std-view-switch i { font-size: 13px; opacity: .7; }

/* ── Preset pills ─────────────────────────────────────────────────────────── */
.std-preset-pills { display: flex; gap: 4px; flex-wrap: wrap; }
.std-preset-pill  { padding: 5px 13px; border-radius: 7px; border: 1px solid #e2e8f0; background: #fff; color: #64748b; font-size: 12.5px; font-weight: 500; cursor: pointer; transition: background .1s, color .1s, border-color .1s; white-space: nowrap; line-height: 1.4; }
.std-preset-pill:hover  { background: #f8fafc; border-color: #94a3b8; color: #0f172a; }
.std-preset-pill.active { background: #1e293b; border-color: #1e293b; color: #fff; }

/* ── Bookings list — grouped by day ──────────────────────────────────────── */
.std-day-group { margin-bottom: 14px; }
.std-day-hd    { display: flex; align-items: center; gap: 8px; padding: 0 4px 8px; }
.std-day-hd-date   { font-size: 13px; font-weight: 700; color: #334155; }
.std-day-today-pill    { padding: 2px 8px; border-radius: 20px; font-size: 11px; font-weight: 600; background: #dbeafe; color: #1d4ed8; }
.std-day-tomorrow-pill { padding: 2px 8px; border-radius: 20px; font-size: 11px; font-weight: 600; background: #dcfce7; color: #15803d; }
.std-day-stats { font-size: 12px; color: #94a3b8; margin-left: auto; }

/* Booking list row */
.std-booking-row {
    display: flex; align-items: stretch;
    text-decoration: none; color: inherit;
    transition: background .1s;
    border-bottom: 1px solid #f1f5f9;
}
.std-booking-row:last-child  { border-bottom: none; border-radius: 0 0 14px 14px; }
.std-booking-row:hover       { background: #f8fafc; }
.std-booking-row.is-attention { background: #fffbeb; }
.std-booking-row.is-attention:hover { background: #fef9c3; }
.std-booking-row.is-issue    { background: #fff1f2; }
.std-booking-row.is-issue:hover    { background: #ffe4e6; }

.std-booking-stripe { width: 4px; min-width: 4px; flex-shrink: 0; border-radius: 0; }
.std-booking-row:first-child .std-booking-stripe { border-radius: 14px 0 0 0; }
.std-booking-row:last-child  .std-booking-stripe { border-radius: 0 0 0 14px; }

.std-booking-inner {
    display: flex; align-items: center; flex: 1; padding: 12px 18px; gap: 14px; min-width: 0;
}
.std-brow-time       { font-size: 13px; font-weight: 600; color: #475569; min-width: 42px; flex-shrink: 0; }
.std-brow-time--none { color: #cbd5e1; font-style: italic; font-weight: 400; font-size: 12px; }
.std-brow-main       { flex: 1; min-width: 0; }
.std-brow-name       { font-size: 14px; font-weight: 600; color: #0f172a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.std-brow-exp        { font-size: 12px; color: #7c8fa6; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.std-brow-right      { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.std-brow-pax        { font-size: 12px; color: #94a3b8; display: flex; align-items: center; gap: 3px; white-space: nowrap; }
.std-brow-arrow      { color: #cbd5e1; font-size: 13px; transition: color .1s, transform .1s; }
.std-booking-row:hover .std-brow-arrow { color: #64748b; transform: translateX(2px); }

/* Filters card */
.std-filters { padding: 14px 18px; margin-bottom: 16px; }
.std-filters .form-select,
.std-filters .form-control {
    font-size: 13px;
    border-color: #e8edf2;
    border-radius: 8px;
    color: #334155;
    background-color: #f8fafc;
    transition: border-color .15s, background-color .15s, box-shadow .15s;
}
.std-filters .form-select:focus,
.std-filters .form-control:focus {
    border-color: #93c5fd;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(147,197,253,.2);
}

/* ── Standard view — responsive ──────────────────────────────────────────── */
@media (max-width: 991.98px) {
    .std-panel,
    .std-panel-body { padding-left: 16px; padding-right: 16px; }
    .std-bk-row     { margin: 0 -16px; padding-left: 16px; padding-right: 16px; }
    .std-att-row    { margin: 0 -16px; padding-left: 16px; padding-right: 16px; }
    .std-payment-bar { padding: 14px 16px; }
    .std-pay-stat   { padding-right: 16px; margin-right: 16px; }
}
@media (max-width: 575.98px) {
    .std-page          { padding: 1.25rem 1rem; }
    .std-kpi           { padding: 16px; }
    .std-booking-inner { padding: 11px 12px; gap: 10px; }
    .std-pay-outstanding { margin-left: 0; margin-top: 12px; width: 100%; text-align: left; }
    .std-brow-right .std-badge + .std-badge { display: none; }
}
