/* ============================================================
   site.css — Verso Cafe POS
   Theme: Dark sidebar / White & Orange modern main content
   Fonts: DM Sans (UI) + DM Serif Display (wordmark)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400&family=DM+Serif+Display&display=swap');

/* ── Reset & Base ───────────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ── CSS Variables ──────────────────────────────────────────── */
:root {
    /* Main content (white & orange modern theme) */
    --cream: #FAFAFA;
    --warm-50: #FAFAFA;
    --warm-100: rgba(255,140,0,0.08);
    --warm-200: rgba(255,140,0,0.18);
    --brown: #FF8C00;
    --brown-dark: #e07b00;
    --espresso: #1a1a1a;
    --espresso-80: rgba(26,26,26,0.80);
    --text: #333333;
    --text-sub: #666666;
    --text-mute: #aaaaaa;
    --border: rgba(255,140,0,0.12);
    --border-md: rgba(255,140,0,0.20);
    --border-strong: rgba(255,140,0,0.35);
    --white: #FFFFFF;
    --success: #2D7A4F;
    --success-bg: #EAF3DE;
    --danger: #B53D2D;
    --danger-bg: #FBF0EE;
    --warning: #9A6E1C;
    --warning-bg: #FAEEDA;
    --info: #1C5C8A;
    --info-bg: #E6F1FB;
    --radius: 10px;
    --radius-lg: 16px;
    --shadow: 0 2px 12px rgba(255,140,0,0.06);
    --shadow-lg: 0 8px 32px rgba(255,140,0,0.10);
    --sidebar-width: 232px;
    --topbar-height: 60px;
    /* Sidebar dark theme */
    --primary-orange: #FF8C00;
    --primary-dark: #1a1a1a;
    --primary-darker: #0f0f0f;
    --secondary-dark: #2a2a2a;
    --border-color: #3a3a3a;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --radius-md: 10px;
    --transition-smooth: all 0.25s ease;
    font-family: 'DM Sans', sans-serif;
}

html, body {
    height: 100%;
    background: var(--warm-50);
    color: var(--text);
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ── App Layout ─────────────────────────────────────────────── */
.app-layout {
    display: flex;
    height: 100vh;
    overflow: hidden;
    background: var(--warm-50);
}

/* ── Sidebar ────────────────────────────────────────────────── */
.sidebar {
    width: var(--sidebar-width);
    background: var(--primary-darker);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    z-index: 100;
    border-right: 1px solid var(--border-color);
}

    .sidebar::before {
        content: '';
        position: absolute;
        top: -70px;
        right: -70px;
        width: 200px;
        height: 200px;
        border-radius: 50%;
        background: rgba(255, 140, 0, 0.04);
        pointer-events: none;
    }

    .sidebar::after {
        content: '';
        position: absolute;
        bottom: -50px;
        left: -50px;
        width: 160px;
        height: 160px;
        border-radius: 50%;
        background: rgba(255, 140, 0, 0.03);
        pointer-events: none;
    }

/* Logo / Wordmark */
.sidebar-logo {
    padding: 24px 20px 18px;
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
}

.sidebar-wordmark {
    display: flex;
    align-items: center;
    gap: 9px;
}

.sidebar-icon {
    width: 30px;
    height: 30px;
    background: var(--primary-orange);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
}

.sidebar-name {
    font-family: 'DM Serif Display', serif;
    font-size: 18px;
    color: var(--text-primary);
    letter-spacing: 0.01em;
}

.sidebar-sub {
    font-size: 10.5px;
    color: rgba(255, 255, 255, 0.28);
    margin-top: 4px;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

/* Nav */
.nav-menu {
    padding: 16px 12px 0;
    flex: 1;
    overflow-y: auto;
}

    .nav-menu::-webkit-scrollbar {
        width: 0;
    }

.nav-label {
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.25);
    padding: 0 8px;
    margin-bottom: 5px;
    margin-top: 4px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 11px;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 13.5px;
    font-weight: 400;
    cursor: pointer;
    transition: var(--transition-smooth);
    margin-bottom: 2px;
    position: relative;
}

    .nav-item:hover {
        background: var(--secondary-dark);
        color: var(--text-primary);
    }

    .nav-item.active {
        background: rgba(255, 140, 0, 0.15);
        color: var(--primary-orange);
        font-weight: 500;
    }

        .nav-item.active::before {
            content: '';
            position: absolute;
            left: -12px;
            top: 50%;
            transform: translateY(-50%);
            width: 3px;
            height: 20px;
            background: var(--primary-orange);
            border-radius: 0 3px 3px 0;
        }

    .nav-item i {
        font-size: 17px;
        width: 20px;
        text-align: center;
        flex-shrink: 0;
    }

/* Sidebar Footer */
.sidebar-footer {
    padding: 14px 12px;
    border-top: 1px solid var(--border-color);
    flex-shrink: 0;
}

.user-chip {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 10px;
    border-radius: var(--radius-md);
    margin-bottom: 4px;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary-orange);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11.5px;
    font-weight: 600;
    color: #fff;
    flex-shrink: 0;
    letter-spacing: 0.02em;
}

.user-info {
    flex: 1;
    min-width: 0;
}

.user-name {
    font-size: 12.5px;
    color: var(--text-primary);
    font-weight: 500;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-role {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.30);
}

.logout-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 11px;
    border-radius: 8px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.35);
    transition: var(--transition-smooth);
    cursor: pointer;
}

    .logout-link:hover {
        background: var(--secondary-dark);
        color: rgba(255, 255, 255, 0.75);
    }

    .logout-link i {
        font-size: 16px;
    }

/* ── Main Content ────────────────────────────────────────────── */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-width: 0;
}

/* ── Topbar ──────────────────────────────────────────────────── */
.topbar {
    background: var(--white);
    border-bottom: 1px solid rgba(255,140,0,0.15);
    padding: 0 26px;
    height: var(--topbar-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    gap: 16px;
        margin-top: 10px;
}

.topbar-left {
    min-width: 0;
}

.topbar-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--espresso);
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.topbar-sub {
    font-size: 12px;
    color: var(--text-mute);
    margin-top: 1px;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

/* ── Page Content ────────────────────────────────────────────── */
.content {
    flex: 1;
    overflow-y: auto;
    padding: 24px 26px;
    background: #FAFAFA;
}

    .content::-webkit-scrollbar {
        width: 6px;
    }

    .content::-webkit-scrollbar-track {
        background: transparent;
    }

    .content::-webkit-scrollbar-thumb {
        background: rgba(255,140,0,0.20);
        border-radius: 10px;
    }

/* ── Form Groups ────────────────────────────────────── */
.form-group {
    margin-bottom: 1rem;
}

.input-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 12px;
    width: 18px;
    height: 18px;
    color: #888;
    pointer-events: none;
    z-index: 1;
}

.form-input {
    width: 100%;
    padding: 0.75rem 2.5rem 0.75rem 2.5rem;
    background: #1a1a1a;
    border: 1px solid #444;
    border-radius: 8px;
    color: #fff;
    font-size: 0.95rem;
    outline: none;
    appearance: none;
    transition: border-color 0.2s;
}

    .form-input:focus {
        border-color: #FF8C00;
    }

    .form-input option {
        background: #2a2a2a;
        color: #fff;
    }

/* ── Password Toggle ────────────────────────────────── */
.password-toggle {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    cursor: pointer;
    color: #888;
    padding: 4px;
    display: flex;
    align-items: center;
}

    .password-toggle svg {
        width: 18px;
        height: 18px;
    }

    .password-toggle:hover {
        color: #FF8C00;
    }

/* ── Error Alert ────────────────────────────────────── */
.alert-error {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(220, 53, 69, 0.15);
    border: 1px solid rgba(220, 53, 69, 0.4);
    color: #ff6b6b;
    border-radius: 8px;
    padding: 0.65rem 0.9rem;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

    .alert-error svg {
        width: 16px;
        height: 16px;
        flex-shrink: 0;
    }

/* ── Login Button ───────────────────────────────────── */
.btn-login {
    width: 100%;
    padding: 0.8rem;
    background: #FF8C00;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    transition: background 0.2s, opacity 0.2s;
}

    .btn-login:hover:not(:disabled) {
        background: #e07b00;
    }

    .btn-login:disabled {
        opacity: 0.6;
        cursor: not-allowed;
    }

/* ── Spinner ────────────────────────────────────────── */
.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ── Footer ─────────────────────────────────────────── */
.login-footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.875rem;
    color: #888;
}

.login-link {
    color: #FF8C00;
    text-decoration: none;
    margin-left: 4px;
    font-weight: 500;
}

    .login-link:hover {
        text-decoration: underline;
    }

/* ── Buttons ─────────────────────────────────────────────────── */
.btn-primary-cafe {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #FF8C00;
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-size: 13.5px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
    font-family: 'DM Sans', sans-serif;
    line-height: 1;
}

    .btn-primary-cafe:hover {
        background: #e07b00;
    }

    .btn-primary-cafe:active {
        transform: scale(0.98);
    }

    .btn-primary-cafe i {
        font-size: 16px;
    }

.btn-ghost-cafe {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    background: transparent;
    color: var(--text-sub);
    border: 1px solid var(--border-md);
    border-radius: var(--radius);
    font-size: 13.5px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
    font-family: 'DM Sans', sans-serif;
    line-height: 1;
}

    .btn-ghost-cafe:hover {
        background: rgba(255,140,0,0.06);
        border-color: var(--border-strong);
    }

    .btn-ghost-cafe i {
        font-size: 16px;
    }

.btn-danger-cafe {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--danger-bg);
    color: var(--danger);
    border: 1px solid rgba(181,61,45,0.2);
    border-radius: var(--radius);
    font-size: 13.5px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s;
    font-family: 'DM Sans', sans-serif;
    line-height: 1;
}

    .btn-danger-cafe:hover {
        background: rgba(181,61,45,0.15);
    }

/* ── Icon Buttons ────────────────────────────────────────────── */
.icon-btn {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,140,0,0.20);
    background: rgba(255,140,0,0.04);
    cursor: pointer;
    color: #FF8C00;
    font-size: 17px;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    flex-shrink: 0;
    font-family: 'tabler-icons';
}

    .icon-btn:hover {
        background: rgba(255,140,0,0.12);
        border-color: rgba(255,140,0,0.40);
        color: #e07b00;
    }

    .icon-btn.icon-btn-danger:hover {
        background: var(--danger-bg);
        color: var(--danger);
        border-color: rgba(181,61,45,0.22);
    }

/* ── Stat Cards ──────────────────────────────────────────────── */
.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.stat-card {
    background: var(--white);
    border: 1px solid rgba(255,140,0,0.12);
    border-top: 3px solid rgba(255,140,0,0.20);
    border-radius: var(--radius);
    padding: 16px 18px;
}

.stat-card-accent {
    border-top-color: #FF8C00;
}

.stat-card-label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11.5px;
    color: var(--text-mute);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 500;
}

    .stat-card-label i {
        font-size: 14px;
        color: #FF8C00;
    }

.stat-card-value {
    font-size: 26px;
    font-weight: 600;
    color: var(--espresso);
    line-height: 1;
    letter-spacing: -0.02em;
}

.stat-card-sub {
    font-size: 11.5px;
    color: var(--text-mute);
    margin-top: 5px;
}

.text-success {
    color: var(--success);
    font-weight: 500;
}

.text-danger {
    color: var(--danger);
    font-weight: 500;
}

.text-warning {
    color: var(--warning);
    font-weight: 500;
}

/* ── Table Card ──────────────────────────────────────────────── */
.table-card {
    background: var(--white);
    border: 1px solid rgba(255,140,0,0.12);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.table-card-header {
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255,140,0,0.10);
    gap: 12px;
    flex-wrap: wrap;
}

.table-card-title {
    font-size: 14.5px;
    font-weight: 600;
    color: var(--espresso);
}

    .table-card-title span {
        font-size: 12px;
        color: var(--text-mute);
        font-weight: 400;
        margin-left: 6px;
    }

.table-tools {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* Search box */
.search-box {
    display: flex;
    align-items: center;
    gap: 7px;
    background: #fafafa;
    border: 1px solid rgba(255,140,0,0.15);
    border-radius: 9px;
    padding: 7px 12px;
    font-size: 13px;
    color: var(--text-mute);
    min-width: 200px;
}

    .search-box i {
        font-size: 15px;
        flex-shrink: 0;
        color: #FF8C00;
    }

    .search-box input {
        border: none;
        background: transparent;
        font-size: 13px;
        color: var(--text);
        font-family: 'DM Sans', sans-serif;
        width: 100%;
        outline: none;
    }

        .search-box input::placeholder {
            color: var(--text-mute);
        }

/* Filter/select */
.filter-select {
    appearance: none;
    background: #fafafa url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23FF8C00' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center;
    border: 1px solid rgba(255,140,0,0.15);
    border-radius: 9px;
    padding: 7px 30px 7px 12px;
    font-size: 13px;
    color: var(--text-sub);
    font-family: 'DM Sans', sans-serif;
    cursor: pointer;
    outline: none;
    transition: border-color 0.15s;
}

    .filter-select:focus {
        border-color: #FF8C00;
    }

/* ── Data Table ──────────────────────────────────────────────── */
.data-table {
    width: 100%;
    border-collapse: collapse;
}

    .data-table thead tr {
        background: #FFF8F0;
    }

    .data-table th {
        padding: 10px 20px;
        text-align: left;
        font-size: 11px;
        font-weight: 600;
        color: #b08060;
        text-transform: uppercase;
        letter-spacing: 0.06em;
        border-bottom: 1px solid rgba(255,140,0,0.10);
        white-space: nowrap;
    }

    .data-table td {
        padding: 13px 20px;
        font-size: 13.5px;
        color: var(--text);
        border-bottom: 1px solid rgba(255,140,0,0.07);
        vertical-align: middle;
    }

    .data-table tbody tr:last-child td {
        border-bottom: none;
    }

    .data-table tbody tr:hover td {
        background: rgba(255,140,0,0.03);
    }

/* Avatar cell */
.avatar-cell {
    display: flex;
    align-items: center;
    gap: 11px;
}

.av {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
    letter-spacing: 0.03em;
}

.av-brown {
    background: rgba(255,140,0,0.14);
    color: #c06a00;
}

.av-green {
    background: #D4E8E0;
    color: #2D7A4F;
}

.av-amber {
    background: var(--warning-bg);
    color: var(--warning);
}

.av-red {
    background: var(--danger-bg);
    color: var(--danger);
}

.av-purple {
    background: #E8E0F0;
    color: #5C3D8A;
}

.av-blue {
    background: var(--info-bg);
    color: var(--info);
}

.av-name {
    font-weight: 500;
    font-size: 13.5px;
    color: var(--espresso);
    line-height: 1.2;
}

.av-email {
    font-size: 12px;
    color: var(--text-mute);
    margin-top: 1px;
}

/* Role badges */
.role-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.role-admin {
    background: rgba(255,140,0,0.12);
    color: #c06a00;
}

.role-cashier {
    background: #D4E8E0;
    color: #1C5C40;
}

.role-manager {
    background: #E8E0F0;
    color: #42296B;
}

/* Status dots */
.status-dot {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
}

.dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}

.dot-active {
    background: var(--success);
    box-shadow: 0 0 0 2px rgba(45,122,79,0.15);
}

.dot-inactive {
    background: var(--text-mute);
}

/* Action buttons row */
.action-btns {
    display: flex;
    gap: 4px;
}

/* ── Pagination ──────────────────────────────────────────────── */
.pagination-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 20px;
    border-top: 1px solid rgba(255,140,0,0.10);
    flex-wrap: wrap;
    gap: 10px;
}

.pagination-info {
    font-size: 12.5px;
    color: var(--text-mute);
}

.pagination-btns {
    display: flex;
    gap: 4px;
}

.pg-btn {
    width: 30px;
    height: 30px;
    border-radius: 7px;
    border: 1px solid rgba(255,140,0,0.15);
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 13px;
    color: var(--text-sub);
    font-family: 'DM Sans', sans-serif;
    transition: background 0.12s, border-color 0.12s;
}

    .pg-btn:hover:not(.pg-btn-active) {
        background: rgba(255,140,0,0.06);
        border-color: rgba(255,140,0,0.30);
    }

.pg-btn-active {
    background: #FF8C00;
    color: #fff;
    border-color: #FF8C00;
    font-weight: 500;
}

/* ── Cards / Panels ──────────────────────────────────────────── */
.card-cafe {
    background: var(--white);
    border: 1px solid rgba(255,140,0,0.12);
    border-radius: var(--radius-lg);
    padding: 20px 22px;
    box-shadow: var(--shadow);
}

    .card-cafe + .card-cafe {
        margin-top: 16px;
    }

/* ── Form Controls ───────────────────────────────────────────── */
.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    font-size: 12.5px;
    font-weight: 500;
    color: var(--text-sub);
    margin-bottom: 5px;
    letter-spacing: 0.01em;
}

.form-control-cafe {
    width: 100%;
    padding: 9px 13px;
    background: #fafafa;
    border: 1px solid rgba(255,140,0,0.18);
    border-radius: var(--radius);
    font-size: 13.5px;
    color: var(--text);
    font-family: 'DM Sans', sans-serif;
    outline: none;
    transition: border-color 0.15s, background 0.15s;
}

    .form-control-cafe::placeholder {
        color: var(--text-mute);
    }

    .form-control-cafe:focus {
        border-color: #FF8C00;
        background: var(--white);
        box-shadow: 0 0 0 3px rgba(255,140,0,0.10);
    }

    .form-control-cafe:disabled {
        opacity: 0.55;
        cursor: not-allowed;
    }

/* ── Badges (generic) ────────────────────────────────────────── */
.badge-success {
    background: var(--success-bg);
    color: var(--success);
    padding: 3px 9px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.badge-danger {
    background: var(--danger-bg);
    color: var(--danger);
    padding: 3px 9px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.badge-warning {
    background: var(--warning-bg);
    color: var(--warning);
    padding: 3px 9px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.badge-info {
    background: var(--info-bg);
    color: var(--info);
    padding: 3px 9px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.badge-muted {
    background: rgba(255,140,0,0.08);
    color: var(--text-sub);
    padding: 3px 9px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

/* ── Modal (Bootstrap override) ──────────────────────────────── */
.modal-content {
    border: 1px solid rgba(255,140,0,0.15);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    font-family: 'DM Sans', sans-serif;
}

.modal-header {
    background: #FFF8F0;
    border-bottom: 1px solid rgba(255,140,0,0.12);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    padding: 16px 22px;
}

.modal-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--espresso);
}

.modal-body {
    padding: 22px;
}

.modal-footer {
    border-top: 1px solid rgba(255,140,0,0.10);
    padding: 14px 22px;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.btn-close {
    opacity: 0.4;
}

    .btn-close:hover {
        opacity: 0.75;
    }

/* ── Alert / Toast overrides ─────────────────────────────────── */
.alert-cafe {
    border-radius: var(--radius);
    font-size: 13.5px;
    padding: 12px 16px;
    border-left-width: 3px;
}

/* ── Dividers ────────────────────────────────────────────────── */
.divider {
    height: 1px;
    background: rgba(255,140,0,0.10);
    margin: 20px 0;
}

/* ── Section Headers ─────────────────────────────────────────── */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.section-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--espresso);
}

.section-sub {
    font-size: 12.5px;
    color: var(--text-mute);
    margin-top: 2px;
}

/* ── Empty State ─────────────────────────────────────────────── */
.empty-state {
    text-align: center;
    padding: 48px 24px;
    color: var(--text-mute);
}

    .empty-state i {
        font-size: 40px;
        margin-bottom: 12px;
        display: block;
        color: rgba(255,140,0,0.30);
    }

    .empty-state p {
        font-size: 14px;
    }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 768px) {
    :root {
        --sidebar-width: 0px;
    }

    .sidebar {
        position: fixed;
        left: -232px;
        top: 0;
        bottom: 0;
        width: 232px;
        transition: left 0.25s ease;
        z-index: 200;
    }

        .sidebar.open {
            left: 0;
        }

    .topbar {
        padding: 0 16px;
    }

    .content {
        padding: 16px;
    }

    .stats-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .stats-row {
        grid-template-columns: 1fr 1fr;
    }

    .table-card-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .search-box {
        min-width: 100%;
    }
}

