/* Application CSS (Pure PHP / Vanilla CSS) */

/* Vaity Aqua Waterpark — UI/UX Pro Max Redesign */
:root {
    --app-font: "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --bs-font-sans-serif: "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --bs-body-font-family: "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

    /* Theme colors */
    --brand-navy: #0b1329;
    --brand-dark: #070d1e;
    --brand-blue: #2563eb;
    --brand-blue-hover: #1d4ed8;
    --brand-teal: #0891b2;
    --page-bg: #f4f6fa;
    --card-border: #eef2f6;

    /* Text colors */
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --text-light: #94a3b8;

    /* Header & Sidebar dimensions */
    --sidebar-width: 185px;
    --topbar-height: 64px;
}

*, *::before, *::after {
    box-sizing: border-box;
}

input[type="number"] {
    appearance: textfield;
    -moz-appearance: textfield;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

body.admin-body {
    background-color: var(--page-bg);
    color: var(--text-primary);
    font-family: var(--app-font);
    font-size: 0.875rem;
    line-height: 1.5;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.admin-body :is(h1, h2, h3, h4, h5, h6, .btn, .nav, .navbar, button, input, select, textarea, .offcanvas) {
    font-family: inherit;
}

/* ==========================================================================
   LAYOUT: STICKY SIDEBAR & STICKY HEADER
   ========================================================================== */
.admin-layout {
    display: flex;
    min-height: 100vh;
    position: relative;
    background-color: var(--page-bg);
}

/* --------------------------------------------------------------------------
   STICKY LEFT SIDEBAR (Desktop)
   -------------------------------------------------------------------------- */
.admin-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: linear-gradient(180deg, #0d1730 0%, #080f24 60%, #050a18 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    z-index: 1040;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}

.admin-sidebar::-webkit-scrollbar {
    width: 4px;
}
.admin-sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

/* Brand header section perfectly aligned with topbar */
.sidebar-brand-wrapper {
    height: var(--topbar-height);
    display: flex;
    align-items: center;
    padding: 0 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
    box-sizing: border-box;
}

.admin-brand {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    text-decoration: none;
    width: 100%;
    padding: 0;
    margin: 0;
}

.brand-logo-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0891b2, #0284c7);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    flex-shrink: 0;
}

/* Brand header — logo covers the full header section, no padding, no text */
.sidebar-brand-wrapper.brand-cover {
    padding-inline: .55rem;
    overflow: hidden;
    background: #ffffff;
}

.brand-cover-link {
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
}

.brand-logo-cover {
    display: block;
    width: auto;
    height: var(--topbar-height);
}

.brand-cover-mobile {
    padding: 0 !important;
    overflow: hidden;
    background: #ffffff;
}

.brand-cover-mobile .brand-cover-link {
    height: 56px;
}

.brand-cover-mobile .brand-logo-cover {
    height: 56px;
}

.auth-brand-logo.has-image {
    width: 84px;
    height: 84px;
    background: #ffffff;
    overflow: hidden;
    padding: 4px;
}

.auth-brand-logo.has-image img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
}

.brand-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.brand-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.15;
    letter-spacing: -0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.brand-sub {
    font-size: 0.58rem;
    color: #7e91bb;
    line-height: 1.15;
    margin-top: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Sidebar navigation links */
.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding: 0.85rem 0.55rem;
}

.side-link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 0.65rem;
    color: #a4b4d6;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 500;
    border-radius: 10px;
    transition: all 0.2s ease;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.side-link i {
    font-size: 1.05rem;
    width: 18px;
    text-align: center;
    flex-shrink: 0;
    opacity: 0.9;
}

.side-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.side-link.active {
    background-color: var(--brand-blue);
    color: #ffffff;
    font-weight: 600;
}

.side-link.active i {
    opacity: 1;
}

/* Mobile Offcanvas Sidebar */
.admin-sidebar-offcanvas {
    background: linear-gradient(180deg, #0d1730 0%, #080f24 60%, #050a18 100%);
    width: 240px;
}
.admin-sidebar-offcanvas .offcanvas-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* --------------------------------------------------------------------------
   MAIN AREA & STICKY TOPBAR
   -------------------------------------------------------------------------- */
.admin-wrapper {
    margin-left: var(--sidebar-width);
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: var(--page-bg);
}

.admin-topbar.sticky-top {
    position: sticky;
    top: 0;
    z-index: 1020;
    background-color: #ffffff;
    border-bottom: 1px solid #edf1f7;
    height: var(--topbar-height);
    padding: 0 1.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
}

/* Topbar search */
.admin-search-form {
    flex: 1;
    max-width: 500px;
    position: relative;
}

.admin-search-form .search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 0.95rem;
    pointer-events: none;
}

.admin-search-input {
    width: 100%;
    background-color: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.52rem 1.25rem 0.52rem 2.5rem;
    font-size: 0.85rem;
    color: #1e293b;
    transition: all 0.2s ease;
}

.admin-search-input:focus {
    outline: none;
    background-color: #ffffff;
    border-color: var(--brand-blue);
}

.admin-search-input::placeholder {
    color: #94a3b8;
}

/* Topbar right items */
.admin-top-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: auto;
}

.top-date-badge {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding-right: 1rem;
    border-right: 1px solid #e2e8f0;
}

.top-date-badge i {
    font-size: 1.25rem;
    color: #475569;
}

.top-date-badge .date-text {
    display: flex;
    flex-direction: column;
}

.top-date-badge .date-main {
    font-size: 0.82rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.15;
}

.top-date-badge .date-day {
    font-size: 0.72rem;
    color: #64748b;
    line-height: 1.15;
}

.top-btn-icon {
    position: relative;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid #e2e8f0;
    background-color: #ffffff;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.top-btn-icon:hover {
    background-color: #f8fafc;
    color: #0f172a;
    border-color: #cbd5e1;
}

.top-btn-icon .notification-dot {
    position: absolute;
    top: 7px;
    right: 7px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #ef4444;
    border: 1.5px solid #ffffff;
}

.top-user-btn {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    background: transparent;
    border: 0;
    padding: 0.25rem 0.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.top-user-btn:hover {
    background-color: #f1f5f9;
}

.top-user-btn .user-avatar {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background-color: #dbeafe;
    color: var(--brand-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
}

.top-user-btn .user-label {
    font-size: 0.84rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.15;
}

.top-user-btn .user-role-badge {
    font-size: 0.65rem;
    font-weight: 600;
    color: #2563eb;
    line-height: 1.1;
    text-transform: capitalize;
}

/* --------------------------------------------------------------------------
   MAIN DASHBOARD CONTENT
   -------------------------------------------------------------------------- */
.admin-main {
    flex: 1;
    padding: 0.9rem 1.25rem 1.5rem;
}

/* Tight vertical rhythm project-wide */
.admin-main > .dash-header,
.admin-main > .d-flex.flex-column.flex-md-row {
    margin-bottom: 0.75rem !important;
}

.admin-main .row.g-3 {
    --bs-gutter-x: 0.75rem;
    --bs-gutter-y: 0.75rem;
    margin-bottom: 0.75rem !important;
}

.admin-main .row.g-3:last-child {
    margin-bottom: 0 !important;
}

.admin-main .dash-panel {
    padding: 1rem 1.1rem;
}

/* Welcome Header */
.dash-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.welcome-badge {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #64748b;
    text-transform: uppercase;
    margin-bottom: 0.15rem;
}

.dash-heading {
    font-size: 1.85rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.025em;
    margin: 0;
    line-height: 1.2;
}

.dash-subheading {
    font-size: 0.88rem;
    color: #64748b;
    margin: 0.25rem 0 0;
}

/* Period & Date Controls */
.dash-controls {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0.55rem;
}

.period-button-group {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: nowrap;
}

.period-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 1rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    color: #475569;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.period-pill:hover {
    border-color: #cbd5e1;
    color: #0f172a;
    background-color: #f8fafc;
}

.period-pill.active {
    background-color: var(--brand-blue);
    border-color: var(--brand-blue);
    color: #ffffff;
}

.dashboard-filter-bar {
    padding: 0.35rem;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    box-shadow: 0 2px 8px rgb(15 23 42 / 4%);
}

.dashboard-date-range {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding-left: 0.55rem;
    border-left: 1px solid #e2e8f0;
    white-space: nowrap;
}

.dashboard-filter-label {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: #64748b;
    font-size: 0.76rem;
    font-weight: 700;
}

.dashboard-date-range .form-control {
    width: 9.5rem;
    min-height: 2rem;
    border-color: #dbe3ee;
    font-size: 0.76rem;
}

.date-range-separator {
    color: #94a3b8;
    font-size: 0.75rem;
    font-weight: 600;
}

.dashboard-filter-submit {
    min-height: 2rem;
    padding-inline: 0.8rem;
    font-size: 0.76rem;
    font-weight: 700;
}

@media (max-width: 1200px) {
    .dashboard-filter-bar {
        width: 100%;
        justify-content: space-between;
    }

    .dashboard-date-range {
        margin-left: auto;
    }
}

@media (max-width: 768px) {
    .dash-controls {
        align-items: stretch;
        flex-wrap: wrap;
        width: 100%;
    }

    .period-button-group {
        flex-wrap: wrap;
    }

    .dashboard-date-range {
        width: 100%;
        margin-left: 0;
        padding: 0.55rem 0 0;
        border-top: 1px solid #e2e8f0;
        border-left: 0;
    }

    .dashboard-date-range .form-control {
        flex: 1 1 0;
        width: auto;
    }
}

/* ==========================================================================
   METRIC CARDS (Pastel Soft Backgrounds + Watermarks + Radial Gauges)
   ========================================================================== */
.metric-card {
    border-radius: 12px;
    padding: 0.7rem 0.8rem;
    height: 100%;
    position: relative;
    overflow: hidden;
    border: 1px solid transparent;
    transition: transform 0.2s ease;
    cursor: default;
}

.metric-card:hover {
    transform: translateY(-2px);
}

.metric-card-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    position: relative;
    z-index: 2;
    height: 100%;
}

.metric-icon-wrap {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
    background-color: #ffffff;
}

.metric-content {
    flex: 1;
    min-width: 0;
    margin-left: 0.15rem;
}

.metric-label {
    font-size: 0.68rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 0.05rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.metric-value {
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1.1;
    color: #0f172a;
    margin-bottom: 0.1rem;
}

.metric-trend {
    font-size: 0.68rem;
    font-weight: 700;
    color: #16a34a;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.metric-sub {
    font-size: 0.68rem;
    font-weight: 600;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Watermark Ghost Icon */
.metric-watermark {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2.2rem;
    opacity: 0.12;
    pointer-events: none;
    line-height: 1;
    z-index: 1;
}

/* Circular Radial Progress Gauge */
.metric-gauge-wrap {
    position: relative;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.circular-gauge {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.gauge-bg {
    stroke: rgba(0, 0, 0, 0.06);
}

.gauge-val {
    position: absolute;
    font-size: 0.72rem;
    font-weight: 800;
    text-align: center;
}

/* Metric Color Themes */
/* Blue (Total Guests / Lockers) */
.metric-blue {
    background-color: #eef7ff;
    border-color: #dbeafe;
}
.metric-blue .metric-icon-wrap {
    color: #2563eb;
}
.metric-blue .metric-watermark {
    color: #2563eb;
}
.metric-blue .gauge-bar {
    stroke: #2563eb;
}
.metric-blue .gauge-val {
    color: #2563eb;
}

/* Green (Adults / Veg Meals) */
.metric-green {
    background-color: #f0fbf4;
    border-color: #dcfce7;
}
.metric-green .metric-icon-wrap {
    color: #16a34a;
}
.metric-green .metric-watermark {
    color: #16a34a;
}

/* Orange (Children / Staff Present) */
.metric-orange {
    background-color: #fef9ed;
    border-color: #fef3c7;
}
.metric-orange .metric-icon-wrap {
    color: #d97706;
}
.metric-orange .metric-watermark {
    color: #d97706;
}

/* Pink (Free / Non-Veg Meals) */
.metric-pink {
    background-color: #fef2f2;
    border-color: #ffe4e6;
}
.metric-pink .metric-icon-wrap {
    color: #e11d48;
}
.metric-pink .metric-watermark {
    color: #e11d48;
}

/* Purple (Rooms) */
.metric-purple {
    background-color: #f5f3ff;
    border-color: #ede9fe;
}
.metric-purple .metric-icon-wrap {
    color: #7c3aed;
}
.metric-purple .metric-watermark {
    color: #7c3aed;
}
.metric-purple .gauge-bar {
    stroke: #7c3aed;
}
.metric-purple .gauge-val {
    color: #7c3aed;
}

/* 5 Column Layout for Row 2 */
@media (min-width: 1200px) {
    .metrics-five-cols .col-xl-5th {
        flex: 0 0 20%;
        max-width: 20%;
    }
}

/* ==========================================================================
   DASH PANELS (WHITE CONTAINER CARDS)
   ========================================================================== */
.dash-panel {
    background-color: #ffffff;
    border-radius: 18px;
    border: 1px solid var(--card-border);
    padding: 1.35rem 1.45rem;
}

.panel-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.panel-title i {
    font-size: 1.15rem;
}

.panel-link {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--brand-blue);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: all 0.15s ease;
}

.panel-link:hover {
    color: var(--brand-blue-hover);
    text-decoration: underline;
    gap: 0.5rem;
}

.badge-trend-green {
    display: inline-flex;
    align-items: center;
    font-size: 0.74rem;
    font-weight: 700;
    color: #16a34a;
    background-color: #dcfce7;
    padding: 0.2rem 0.6rem;
    border-radius: 9999px;
    line-height: 1.2;
}

/* --------------------------------------------------------------------------
   REVENUE OVERVIEW CHART PANEL
   -------------------------------------------------------------------------- */
.chart-container {
    width: 100%;
}

.revenue-svg-chart {
    width: 100%;
    height: 200px;
    overflow: visible;
}

.chart-peak-tooltip {
    position: absolute;
    top: 8px;
    left: 61%;
    transform: translateX(-50%);
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 9999px;
    padding: 0.3rem 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    z-index: 10;
}

.chart-peak-tooltip .peak-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: #16a34a;
    flex-shrink: 0;
}

.chart-peak-tooltip .peak-info strong {
    font-size: 0.76rem;
    font-weight: 800;
    color: #0f172a;
}

.chart-peak-tooltip .peak-info small {
    font-size: 0.68rem;
    color: #64748b;
    margin-left: 0.25rem;
}

/* --------------------------------------------------------------------------
   GUEST TYPE BREAKDOWN DONUT PANEL
   -------------------------------------------------------------------------- */
.guest-breakdown-body {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding-top: 0.5rem;
}

.donut-chart-wrap {
    position: relative;
    width: 145px;
    height: 145px;
    flex-shrink: 0;
}

.donut-chart-svg {
    width: 100%;
    height: 100%;
    transform: rotate(0deg);
}

.donut-center-info {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    pointer-events: none;
}

.donut-center-info .center-count {
    display: block;
    font-size: 1.35rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1;
}

.donut-center-info .center-unit {
    display: block;
    font-size: 0.72rem;
    color: #64748b;
    margin-top: 2px;
}

.guest-legend-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.legend-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.82rem;
}

.legend-label-wrap {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.legend-bullet {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.legend-name {
    color: #475569;
    font-weight: 500;
}

.legend-stats strong {
    color: #0f172a;
    font-weight: 700;
}

.legend-stats small {
    color: #64748b;
    margin-left: 0.2rem;
}

/* --------------------------------------------------------------------------
   FOOD COUNT PANEL
   -------------------------------------------------------------------------- */
.food-metric-block {
    background-color: #f8fafc;
    border: 1px solid #eef2f6;
    border-radius: 14px;
    padding: 0.85rem 1rem;
}

.food-metric-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.food-badge-icon {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}

.veg-icon {
    background-color: #dcfce7;
    color: #16a34a;
}

.nonveg-icon {
    background-color: #ffe4e6;
    color: #e11d48;
}

.food-metric-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: #334155;
}

.food-metric-count {
    font-size: 0.82rem;
    color: #475569;
}

.food-metric-count strong {
    color: #0f172a;
    font-weight: 700;
}

.food-progress-bar {
    height: 8px;
    border-radius: 9999px;
    background-color: #e2e8f0;
    margin-top: 0.65rem;
    overflow: hidden;
}

.bg-success-bar {
    background-color: #10b981;
    border-radius: 9999px;
}

.bg-danger-bar {
    background-color: #ef4444;
    border-radius: 9999px;
}

/* --------------------------------------------------------------------------
   REVENUE SUMMARY (TODAY) PANEL
   -------------------------------------------------------------------------- */
.revenue-summary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.rev-col {
    display: flex;
    flex-direction: column;
}

.rev-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.84rem;
}

.rev-item:last-child {
    border-bottom: 0;
}

.rev-label {
    color: #64748b;
    font-weight: 500;
}

.rev-value {
    color: #0f172a;
    font-weight: 700;
}

.rev-item.highlight-diff .rev-value {
    color: #16a34a !important;
    font-weight: 800;
}

/* --------------------------------------------------------------------------
   QUICK ACTIONS PANEL
   -------------------------------------------------------------------------- */
.quick-actions-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.65rem;
    padding-top: 0.35rem;
}

.quick-action-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    border-radius: 14px;
    border: 1px solid transparent;
    padding: 1.15rem 0.5rem;
    text-decoration: none;
    transition: transform 0.2s ease;
    cursor: pointer;
    text-align: center;
}

.quick-action-tile:hover {
    transform: translateY(-2px);
}

.qa-icon {
    font-size: 1.5rem;
    line-height: 1;
}

.qa-label {
    font-size: 0.76rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.2;
}

/* --------------------------------------------------------------------------
   RECENT ACTIVITIES PANEL
   -------------------------------------------------------------------------- */
.activities-timeline {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.activity-timeline-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.activity-dot-line {
    padding-top: 4px;
}

.activity-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    display: block;
    flex-shrink: 0;
}

.activity-details {
    flex: 1;
    min-width: 0;
}

.activity-headline {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
}

.activity-title {
    font-size: 0.83rem;
    font-weight: 700;
    color: #0f172a;
}

.activity-id {
    font-size: 0.78rem;
    font-weight: 700;
    color: #0f172a;
}

.activity-subline {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    font-size: 0.74rem;
    color: #64748b;
    margin-top: 1px;
}

.activity-time {
    color: #64748b;
}

.activity-meta {
    color: #64748b;
    font-weight: 500;
}

/* --------------------------------------------------------------------------
   RESPONSIVE BREAKPOINTS
   -------------------------------------------------------------------------- */
@media (max-width: 991.98px) {
    .admin-wrapper {
        margin-left: 0;
    }

    .admin-topbar.sticky-top {
        padding: 0 1rem;
    }

    .top-date-badge {
        display: none;
    }

    .admin-main {
        padding: 1.25rem 1rem 2rem;
    }

    .guest-breakdown-body {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .guest-legend-list {
        width: 100%;
    }

    .quick-actions-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575.98px) {
    .revenue-summary-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .period-button-group {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 0.25rem;
    }
}

/* ==========================================================================
   APP DRAWER (OFFCANVAS FORM SLIDE-OVER SHEET)
   ========================================================================== */
.app-drawer.offcanvas-end {
    width: 480px;
    max-width: 100vw;
    border-left: 1px solid #e2e8f0;
    z-index: 1060;
    background-color: #ffffff;
}

.app-drawer .offcanvas-header {
    background-color: #ffffff;
    border-bottom: 1px solid #eef2f6;
    padding: 0.65rem 1.25rem;
    min-height: 48px;
    z-index: 5;
}

.app-drawer .offcanvas-body {
    background-color: #fbfcfe;
    padding: 1.15rem 1.25rem;
}

.app-drawer .offcanvas-footer {
    background-color: #ffffff;
    border-top: 1px solid #eef2f6;
    padding: 0.65rem 1.25rem;
    z-index: 5;
}

/* ==========================================================================
   REUSABLE INPUT & SELECT (MATCHING HEADER SEARCH WITH CONSTANT BACKGROUND)
   ========================================================================== */
.app-input,
.app-select,
.form-control.app-input,
.form-select.app-select {
    background-color: #f1f5f9 !important;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.52rem 0.85rem;
    font-size: 0.85rem;
    color: #1e293b;
    transition: border-color 0.18s ease;
}

.app-input:hover,
.app-select:hover,
.form-control.app-input:hover,
.form-select.app-select:hover {
    background-color: #f1f5f9 !important;
    border-color: #cbd5e1;
}

.app-input:focus,
.app-select:focus,
.form-control.app-input:focus,
.form-select.app-select:focus {
    background-color: #f1f5f9 !important;
    border-color: var(--brand-blue);
    outline: none;
}

.app-input::placeholder {
    color: #94a3b8;
}

.app-input-wrap {
    position: relative;
    width: 100%;
}

.app-input-wrap .app-input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 0.95rem;
    pointer-events: none;
    z-index: 2;
}

.app-input-wrap.has-icon .app-input {
    padding-left: 2.25rem;
}

.app-input-wrap.has-password-toggle .app-input {
    padding-right: 2.65rem;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 0.65rem;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    padding: 0.25rem;
    background: transparent;
    color: #64748b;
    cursor: pointer;
    z-index: 2;
}

.password-toggle:hover,
.password-toggle:focus-visible {
    color: var(--brand-blue, #2563eb);
}

.password-toggle:focus-visible {
    outline: 2px solid var(--brand-blue, #2563eb);
    outline-offset: 2px;
    border-radius: 4px;
}

/* No-shadow policy: shadows disabled project-wide */
*,
*::before,
*::after {
    box-shadow: none !important;
    text-shadow: none !important;
}

.shadow,
.shadow-sm,
.shadow-lg {
    box-shadow: none !important;
}

.booking-stepper {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0;
    padding: 0.75rem 0.25rem;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
}

.booking-step-button {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    border: 0;
    padding: 0.35rem 0.1rem;
    background: transparent;
    color: var(--text-muted);
    font-size: 0.68rem;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    cursor: pointer;
}

.booking-step-button:focus-visible,
.booking-category-choice:focus-within {
    outline: 2px solid var(--brand-blue);
    outline-offset: 2px;
}

.booking-step-number {
    display: flex;
    width: 1.9rem;
    height: 1.9rem;
    align-items: center;
    justify-content: center;
    border: 1px solid #cbd5e1;
    border-radius: 50%;
    background: #ffffff;
    color: var(--text-muted);
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.booking-step-button.is-active {
    color: var(--brand-blue);
}

.booking-step-button.is-active .booking-step-number,
.booking-step-button.is-complete .booking-step-number {
    border-color: var(--brand-blue);
    background: var(--brand-blue);
    color: #ffffff;
}

.booking-step-heading {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.booking-step-heading h6 {
    color: var(--text-primary);
    font-weight: 700;
}

.booking-step-heading-icon {
    display: flex;
    width: 2.5rem;
    height: 2.5rem;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #eff6ff;
    color: var(--brand-blue);
    font-size: 1.1rem;
}

.booking-category-choice {
    display: flex;
    min-height: 4.2rem;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    padding: 0.4rem 0.35rem;
    text-align: center;
    line-height: 1.25;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #ffffff;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 600;
    transition: border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.booking-category-choice i {
    font-size: 1rem;
}

.booking-category-choice:hover {
    border-color: #93c5fd;
    background: #f8fbff;
}

.btn-check:checked + .booking-category-choice {
    border-color: var(--brand-blue);
    background: #eff6ff;
    color: var(--brand-blue);
    box-shadow: inset 0 0 0 1px var(--brand-blue);
}

.btn-check:focus-visible + .booking-category-choice {
    outline: 2px solid var(--brand-blue);
    outline-offset: 2px;
}

@media (max-width: 400px) {
    .booking-stepper {
        gap: 0.1rem;
    }

    .booking-step-button {
        font-size: 0.62rem;
    }

    .booking-step-number {
        width: 1.7rem;
        height: 1.7rem;
    }
}

/* Reusable Multi-Select Component */
.app-multi-select-container {
    position: relative;
}

.multi-select-control-wrap {
    position: relative;
}

.multi-select-control-wrap .multi-select-search-input {
    background-color: #f1f5f9 !important;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    min-height: 2.5rem;
    padding-right: 3.25rem !important;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.multi-select-control-wrap .multi-select-search-input:hover {
    border-color: #cbd5e1;
}

.multi-select-control-wrap .multi-select-search-input:focus {
    background-color: #ffffff !important;
    border-color: var(--brand-blue, #2563eb);
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.multi-select-actions {
    z-index: 5;
    pointer-events: auto;
}

.multi-select-actions .multi-select-toggle-btn {
    color: #64748b;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: none;
    background: transparent;
    line-height: 1;
}

.multi-select-actions .multi-select-toggle-btn:hover {
    color: var(--brand-blue, #2563eb);
}

.multi-select-caret {
    display: inline-block;
    transition: transform 0.2s ease;
}

.multi-select-caret.is-open {
    transform: rotate(180deg);
}

.multi-select-actions .multi-select-clear-btn {
    color: #94a3b8;
    border: none;
    background: transparent;
    line-height: 1;
    transition: color 0.15s ease;
}

.multi-select-actions .multi-select-clear-btn:hover {
    color: #ef4444;
}

.multi-select-chips-wrap {
    transition: all 0.2s ease;
}

.app-multi-select-container[data-show-chips="false"] .multi-select-chips-wrap {
    display: none !important;
}

.app-multi-select-container[data-show-badge="false"] .badge {
    display: none !important;
}

.multi-select-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.2rem 0.45rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: #1e40af;
    background-color: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 6px;
    line-height: 1.2;
}

.multi-select-chip .chip-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    padding: 0;
    margin-left: 2px;
    color: #3b82f6;
    font-size: 0.85rem;
    cursor: pointer;
    line-height: 1;
}

.multi-select-chip .chip-remove:hover {
    color: #b91c1c;
}

.multi-select-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    z-index: 1060;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    animation: fadeInDropdown 0.15s ease;
}

@keyframes fadeInDropdown {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

.multi-select-options-list {
    max-height: 240px;
    overflow-y: auto;
}

.multi-select-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.75rem;
    font-size: 0.825rem;
    color: var(--text-dark, #1e293b);
    cursor: pointer;
    border-bottom: 1px solid #f1f5f9;
    transition: background-color 0.12s ease;
}

.multi-select-option:last-child {
    border-bottom: none;
}

.multi-select-option:hover:not(.is-disabled) {
    background-color: #f8fafc;
}

.multi-select-option.is-selected {
    background-color: #f0f7ff;
}

.multi-select-option.is-disabled,
.multi-select-option.is-unavailable {
    background-color: #fee2e2 !important;
    color: #991b1b !important;
    cursor: not-allowed !important;
    opacity: 0.92;
}

.multi-select-option.is-disabled:hover,
.multi-select-option.is-unavailable:hover {
    background-color: #fecaca !important;
    cursor: not-allowed !important;
}

.multi-select-option.is-disabled .text-dark,
.multi-select-option.is-unavailable .text-dark {
    color: #991b1b !important;
}

.multi-select-option.is-disabled .text-muted,
.multi-select-option.is-unavailable .text-muted {
    color: #b91c1c !important;
    opacity: 0.8;
}

.multi-select-option.is-disabled .badge.bg-light,
.multi-select-option.is-unavailable .badge.bg-light {
    background-color: #fef2f2 !important;
    border-color: #fecaca !important;
    color: #991b1b !important;
}

.multi-select-option .option-checkbox {
    width: 16px;
    height: 16px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.5rem;
    flex-shrink: 0;
    background: #ffffff;
    font-size: 0.7rem;
    color: transparent;
}

.multi-select-option.is-selected .option-checkbox {
    background-color: var(--brand-blue, #2563eb);
    border-color: var(--brand-blue, #2563eb);
    color: #ffffff;
}

.multi-select-option.is-disabled .option-checkbox,
.multi-select-option.is-unavailable .option-checkbox {
    background-color: #fca5a5 !important;
    border-color: #f87171 !important;
    color: transparent !important;
    cursor: not-allowed !important;
}

/* Clean Booking Summary & Settlement */
.booking-summary-wrap {
    background-color: #f8fafc !important;
    border-color: #e2e8f0 !important;
}

/* Redesigned Modern Booking Summary Panel (Unboxed / Minimal Card) */
.booking-summary-panel {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
    font-family: var(--app-font);
}

.booking-summary-panel,
.booking-summary-panel * {
    font-family: var(--app-font) !important;
}

.booking-summary-panel .border-dashed {
    border-top: 1px dashed #e2e8f0 !important;
}

.booking-summary-panel .payment-row {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.5rem 0.625rem;
    transition: all 0.15s ease-in-out;
}

.booking-summary-panel .payment-row:focus-within {
    background-color: #ffffff;
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

.payment-row-clean {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.5rem 0.65rem;
    transition: border-color 0.15s ease;
}

.payment-row-clean:hover {
    border-color: #cbd5e1;
}

.payment-row-clean:focus-within {
    border-color: var(--brand-blue, #2563eb);
}

/* Clickable Booking Table Row */
.booking-table-row {
    cursor: pointer;
    transition: background-color 0.15s ease-in-out;
}

.booking-table-row:hover {
    background-color: #f8fafc !important;
}

.booking-table-row:hover td {
    background-color: transparent !important;
}
