/* ==========================================================================
   QR DINE SAAS - VIP LUXURY ADMIN STYLESHEET
   Clean, modern, responsive, no horizontal scroll bugs.
   ========================================================================== */

:root {
    --bg-dark: #0b0f19;
    --bg-card: #131b2e;
    --bg-card-hover: #18233c;
    --bg-sidebar: #0e1424;
    --border-color: rgba(255, 255, 255, 0.08);
    --border-highlight: rgba(255, 255, 255, 0.16);

    --primary: #f97316;       /* Vibrant Food Orange */
    --primary-hover: #ea580c;
    --primary-glow: rgba(249, 115, 22, 0.25);

    --accent-blue: #3b82f6;
    --accent-emerald: #10b981;
    --accent-purple: #8b5cf6;
    --accent-rose: #f43f5e;
    --accent-amber: #f59e0b;

    --text-white: #ffffff;
    --text-muted: #94a3b8;
    --text-sub: #64748b;

    --sidebar-width: 260px;
    --sidebar-mini-width: 76px;
    --header-height: 70px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-full: 9999px;

    --shadow-card: 0 4px 20px -2px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 25px rgba(249, 115, 22, 0.35);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.admin-body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-white);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.5;
}

/* Scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: var(--border-highlight);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* App Wrapper */
.admin-wrapper {
    display: flex;
    min-height: 100vh;
    position: relative;
}

/* ==========================================================================
   SIDEBAR
   ========================================================================== */
.admin-sidebar {
    width: var(--sidebar-width);
    background-color: var(--bg-sidebar);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 1000;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-brand {
    height: var(--header-height);
    display: flex;
    align-items: center;
    padding: 0 20px;
    border-bottom: 1px solid var(--border-color);
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-white);
    overflow: hidden;
}

.brand-icon-box {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--primary), #ef4444);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 4px 12px var(--primary-glow);
}

.brand-text {
    display: flex;
    flex-direction: column;
    white-space: nowrap;
}

.brand-name {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.3px;
    background: linear-gradient(to right, #fff, #cbd5e1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-sub {
    font-size: 11px;
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-section-label {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-sub);
    letter-spacing: 1px;
    padding: 12px 12px 6px;
    white-space: nowrap;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
    position: relative;
}

.nav-item:hover {
    color: var(--text-white);
    background-color: rgba(255, 255, 255, 0.05);
}

.nav-item.active {
    color: var(--text-white);
    background: linear-gradient(90deg, rgba(249, 115, 22, 0.18), rgba(249, 115, 22, 0.05));
    border-left: 3px solid var(--primary);
    font-weight: 600;
}

.nav-item.active .nav-icon {
    color: var(--primary);
}

.nav-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.nav-badge {
    margin-left: auto;
    background-color: var(--primary);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: var(--radius-full);
}

.sidebar-footer {
    padding: 12px;
    border-top: 1px solid var(--border-color);
}

.logout-link {
    color: var(--accent-rose);
}
.logout-link:hover {
    background-color: rgba(244, 63, 94, 0.1);
    color: #ff6b81;
}

/* Sidebar Minimized State */
.admin-sidebar.minimized {
    width: var(--sidebar-mini-width);
}
.admin-sidebar.minimized .brand-text,
.admin-sidebar.minimized .nav-label,
.admin-sidebar.minimized .nav-section-label,
.admin-sidebar.minimized .nav-badge {
    display: none;
}
.admin-sidebar.minimized .nav-item {
    justify-content: center;
    padding: 12px;
}

/* ==========================================================================
   MAIN CONTENT AREA
   ========================================================================== */
.admin-main {
    flex: 1;
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: calc(100% - var(--sidebar-width));
}

.admin-sidebar.minimized + .admin-main {
    margin-left: var(--sidebar-mini-width);
    width: calc(100% - var(--sidebar-mini-width));
}

/* Header */
.admin-header {
    height: var(--header-height);
    background-color: rgba(14, 20, 36, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    position: sticky;
    top: 0;
    z-index: 90;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.sidebar-toggle-btn {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}
.sidebar-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--border-highlight);
}

.header-brand-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-title {
    font-size: 19px;
    font-weight: 700;
    color: var(--text-white);
}

.restaurant-name-pill {
    display: none !important;
}

.pill-icon {
    width: 14px;
    height: 14px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.header-action-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sound-toggle-btn {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--accent-emerald);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}
.sound-toggle-btn.muted {
    color: var(--text-sub);
}

.live-orders-badge-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(249, 115, 22, 0.15);
    border: 1px solid rgba(249, 115, 22, 0.3);
    color: var(--primary);
    padding: 8px 14px;
    border-radius: var(--radius-full);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    position: relative;
    transition: all 0.2s;
}
.live-orders-badge-btn:hover {
    background: rgba(249, 115, 22, 0.25);
}

.pulse-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--accent-emerald);
    box-shadow: 0 0 10px var(--accent-emerald);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(1.15); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.8; }
}

@keyframes waiterAlertBreathe {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(220, 38, 38, 0.35);
    }
    50% {
        transform: scale(1.012);
        box-shadow: 0 8px 28px rgba(239, 68, 68, 0.55);
    }
}

.header-currency-chip {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    padding: 6px 12px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
}
.currency-tag {
    color: var(--text-muted);
}
.currency-symbol {
    color: var(--accent-emerald);
}

.preview-menu-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, var(--primary), #ef4444);
    color: #fff;
    padding: 8px 14px;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 4px 12px var(--primary-glow);
    transition: transform 0.2s, box-shadow 0.2s;
}
.preview-menu-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px var(--primary-glow);
}

.avatar-circle {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, #4f46e5, #06b6d4);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    border: 2px solid var(--border-highlight);
}

/* Flash Alerts */
.flash-alert {
    margin: 20px 28px 0;
    padding: 14px 18px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 500;
    position: relative;
    animation: slideDown 0.3s ease;
}

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

.flash-success {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #34d399;
}
.flash-error {
    background: rgba(244, 63, 94, 0.12);
    border: 1px solid rgba(244, 63, 94, 0.3);
    color: #fb7185;
}
.flash-close {
    margin-left: auto;
    background: transparent;
    border: none;
    color: inherit;
    font-size: 20px;
    cursor: pointer;
}

/* Main Content Body */
.admin-content {
    padding: 28px;
    flex: 1;
}

/* ==========================================================================
   METRIC STATS CARDS
   ========================================================================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 20px;
    margin-bottom: 28px;
}

.stat-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 22px;
    display: flex;
    align-items: center;
    gap: 18px;
    box-shadow: var(--shadow-card);
    transition: transform 0.2s, border-color 0.2s;
}

.stat-card:hover {
    transform: translateY(-2px);
    border-color: var(--border-highlight);
}

.stat-icon-wrapper {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon-wrapper.sales {
    background: rgba(249, 115, 22, 0.15);
    color: var(--primary);
}
.stat-icon-wrapper.orders {
    background: rgba(59, 130, 246, 0.15);
    color: var(--accent-blue);
}
.stat-icon-wrapper.occupied {
    background: rgba(245, 158, 11, 0.15);
    color: var(--accent-amber);
}
.stat-icon-wrapper.free {
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent-emerald);
}

.stat-details {
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-white);
    letter-spacing: -0.5px;
    margin-top: 4px;
}

.stat-sub {
    font-size: 12px;
    color: var(--text-sub);
    margin-top: 2px;
}

/* ==========================================================================
   CARDS & SECTIONS
   ========================================================================== */
.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}

.content-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

.card-header-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
}

.card-title-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-white);
}

.card-badge {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: var(--radius-full);
}

.card-badge.live {
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent-emerald);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.card-body {
    padding: 24px;
}

/* ==========================================================================
   TABLE GRID MAP (VISUAL TABLES VIEW)
   ========================================================================== */
.tables-map-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 14px;
}

.table-node {
    background: var(--bg-sidebar);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px 12px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    position: relative;
    transition: all 0.2s;
    text-decoration: none;
    color: var(--text-white);
}

.table-node:hover {
    border-color: var(--border-highlight);
    transform: translateY(-2px);
}

.table-node.occupied {
    background: rgba(245, 158, 11, 0.08);
    border-color: rgba(245, 158, 11, 0.35);
}

.table-node.free {
    border-color: rgba(16, 185, 129, 0.25);
}

.table-icon-status {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.table-node.occupied .table-icon-status {
    background: rgba(245, 158, 11, 0.2);
    color: var(--accent-amber);
}

.table-node.free .table-icon-status {
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent-emerald);
}

.table-number-label {
    font-size: 14px;
    font-weight: 700;
}

.table-bill-amount {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
}

.table-status-pill {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 8px;
    border-radius: var(--radius-full);
}

.table-status-pill.occupied {
    background: rgba(245, 158, 11, 0.2);
    color: var(--accent-amber);
}
.table-status-pill.free {
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent-emerald);
}

/* ==========================================================================
   LIVE ORDER CARDS & KDS (KITCHEN TICKETS)
   ========================================================================== */
.orders-stream {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.order-ticket {
    background: var(--bg-sidebar);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 18px;
    transition: all 0.25s ease;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.order-ticket:hover {
    border-color: var(--border-highlight);
}

/* Distinct Status Color Coding for Order Cards */
/* 1. New Pending Order (Vibrant Amber / Action Alert) */
.order-ticket.order-status-pending {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.14) 0%, rgba(20, 26, 44, 0.98) 100%);
    border: 1.5px solid rgba(245, 158, 11, 0.5);
    border-left: 6px solid #f59e0b;
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.14);
}
.order-ticket.order-status-pending:hover {
    border-color: #f59e0b;
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.28);
}
.order-ticket.order-status-pending .order-ticket-header {
    border-bottom: 1px solid rgba(245, 158, 11, 0.25);
}

/* 2. In Kitchen / Cooking (Electric Cyan-Blue) */
.order-ticket.order-status-preparing {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.14) 0%, rgba(20, 26, 44, 0.98) 100%);
    border: 1.5px solid rgba(59, 130, 246, 0.5);
    border-left: 6px solid #3b82f6;
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.14);
}
.order-ticket.order-status-preparing:hover {
    border-color: #3b82f6;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.28);
}
.order-ticket.order-status-preparing .order-ticket-header {
    border-bottom: 1px solid rgba(59, 130, 246, 0.25);
}

/* 3. Served on Table (Royal Purple) */
.order-ticket.order-status-served {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.14) 0%, rgba(20, 26, 44, 0.98) 100%);
    border: 1.5px solid rgba(139, 92, 246, 0.5);
    border-left: 6px solid #8b5cf6;
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.14);
}
.order-ticket.order-status-served:hover {
    border-color: #8b5cf6;
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.28);
}
.order-ticket.order-status-served .order-ticket-header {
    border-bottom: 1px solid rgba(139, 92, 246, 0.25);
}

/* 4. Completed & Settled (Crisp Emerald Green) */
.order-ticket.order-status-completed {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.10) 0%, rgba(18, 23, 38, 0.98) 100%);
    border: 1px solid rgba(16, 185, 129, 0.4);
    border-left: 6px solid #10b981;
    box-shadow: 0 4px 18px rgba(16, 185, 129, 0.1);
}
.order-ticket.order-status-completed:hover {
    border-color: #10b981;
    box-shadow: 0 8px 26px rgba(16, 185, 129, 0.22);
}
.order-ticket.order-status-completed .order-ticket-header {
    border-bottom: 1px solid rgba(16, 185, 129, 0.2);
}

/* 5. Cancelled Order (Muted Crimson Red) */
.order-ticket.order-status-cancelled {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.08) 0%, rgba(18, 23, 38, 0.98) 100%);
    border: 1px solid rgba(239, 68, 68, 0.35);
    border-left: 6px solid #ef4444;
    opacity: 0.78;
}
.order-ticket.order-status-cancelled:hover {
    border-color: #ef4444;
    opacity: 1;
}
.order-ticket.order-status-cancelled .order-ticket-header {
    border-bottom: 1px solid rgba(239, 68, 68, 0.2);
}

.order-ticket-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.order-table-badge {
    background: var(--primary);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 6px;
}

.order-time-stamp {
    font-size: 12px;
    color: var(--text-sub);
}

.status-badge {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    border-radius: var(--radius-full);
}

.status-badge.pending {
    background: rgba(245, 158, 11, 0.15);
    color: var(--accent-amber);
    border: 1px solid rgba(245, 158, 11, 0.3);
}
.status-badge.preparing {
    background: rgba(59, 130, 246, 0.15);
    color: var(--accent-blue);
    border: 1px solid rgba(59, 130, 246, 0.3);
}
.status-badge.served {
    background: rgba(139, 92, 246, 0.15);
    color: var(--accent-purple);
    border: 1px solid rgba(139, 92, 246, 0.3);
}
.status-badge.completed {
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent-emerald);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.order-ticket-items {
    padding: 12px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ticket-item-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
}

.ticket-item-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.item-qty-tag {
    background: rgba(255, 255, 255, 0.1);
    color: var(--primary);
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 12px;
}

.item-name {
    font-weight: 600;
    color: var(--text-white);
}

.item-flavor-pill {
    font-size: 11px;
    color: var(--text-muted);
    font-style: italic;
}

.ticket-item-price {
    font-weight: 600;
    color: #cbd5e1;
    display: flex;
    align-items: center;
    gap: 8px;
}

.item-delete-btn {
    background: none;
    border: none;
    color: var(--accent-rose);
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s;
    padding: 2px;
}
.item-delete-btn:hover {
    opacity: 1;
}

.order-ticket-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px dashed var(--border-color);
}

.order-total-sum {
    font-size: 16px;
    font-weight: 800;
    color: var(--text-white);
}

.order-actions-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ==========================================================================
   BUTTONS & CONTROLS
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    border: none;
    transition: all 0.2s;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #ef4444);
    color: #fff;
    box-shadow: 0 2px 8px var(--primary-glow);
}
.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px var(--primary-glow);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-white);
    border: 1px solid var(--border-color);
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--border-highlight);
}

.btn-success {
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent-emerald);
    border: 1px solid rgba(16, 185, 129, 0.3);
}
.btn-success:hover {
    background: rgba(16, 185, 129, 0.25);
}

.btn-danger {
    background: rgba(244, 63, 94, 0.15);
    color: var(--accent-rose);
    border: 1px solid rgba(244, 63, 94, 0.3);
}
.btn-danger:hover {
    background: rgba(244, 63, 94, 0.25);
}

.btn-sm {
    padding: 6px 10px;
    font-size: 12px;
}

/* ==========================================================================
   FORMS & INPUTS
   ========================================================================== */
.form-group {
    margin-bottom: 18px;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #cbd5e1;
    margin-bottom: 6px;
}

.form-control, .form-select {
    width: 100%;
    padding: 10px 14px;
    background-color: var(--bg-sidebar);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-white);
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s;
}

.form-control:focus, .form-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px var(--primary-glow);
}

/* ==========================================================================
   TABLES (DATA TABLES)
   ========================================================================== */
.data-table-container {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 13px;
}

.data-table th {
    background-color: rgba(255, 255, 255, 0.02);
    padding: 12px 16px;
    font-weight: 600;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.5px;
}

.data-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-color);
    color: #cbd5e1;
}

.data-table tr:hover td {
    background-color: rgba(255, 255, 255, 0.02);
}

/* ==========================================================================
   RESPONSIVENESS
   ========================================================================== */
@media (max-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   GLOBAL RESPONSIVENESS & MOBILE OVERFLOW FIXES
   ========================================================================== */
html, body.admin-body {
    overflow-x: hidden !important;
    max-width: 100vw;
}

.admin-wrapper {
    overflow-x: hidden !important;
    max-width: 100vw;
}

.admin-main {
    overflow-x: hidden !important;
    max-width: 100vw;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

@media (max-width: 1024px) {
    .dashboard-grid, .pos-main-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
}

@media (max-width: 768px) {
    .admin-sidebar {
        transform: translateX(-100%);
        z-index: 1000;
        box-shadow: none;
    }
    .admin-sidebar.mobile-open {
        transform: translateX(0);
        box-shadow: 4px 0 30px rgba(0,0,0,0.6);
    }
    .admin-main {
        margin-left: 0 !important;
        width: 100% !important;
        max-width: 100vw !important;
        overflow-x: hidden !important;
    }

    /* --- Mobile Header Overhaul --- */
    .admin-header {
        height: 56px;
        padding: 0 10px;
        max-width: 100vw;
        box-sizing: border-box;
        overflow: hidden;
        gap: 6px;
        /* Sticky on mobile — stays at top while scrolling */
        position: sticky;
        top: 0;
        z-index: 997;
        /* Smooth auto-hide transition */
        transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    }

    /* Auto-hide: slides up out of view when scrolling down */
    .admin-header.header-hidden {
        transform: translateY(-100%);
    }

    .header-left {
        gap: 8px;
        min-width: 0;
        flex: 1;
        overflow: hidden;
    }

    .sidebar-toggle-btn {
        width: 34px;
        height: 34px;
        min-width: 34px;
        border-radius: 8px;
        flex-shrink: 0;
    }
    .sidebar-toggle-btn svg {
        width: 18px;
        height: 18px;
    }

    .header-brand-info {
        gap: 6px;
        min-width: 0;
        overflow: hidden;
    }

    .header-title {
        font-size: 15px;
        font-weight: 700;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 125px;
        line-height: 1.2;
    }

    /* Hide redundant badges that overflow mobile screens */
    .restaurant-name-pill {
        display: none !important;
    }

    .header-currency-chip {
        display: none !important;
    }

    .superadmin-status-pill .status-pill-text {
        display: none !important;
    }

    /* --- Header Right Actions on Mobile --- */
    .header-right {
        gap: 6px;
        flex-shrink: 0;
        display: flex;
        align-items: center;
    }

    .header-action-group {
        gap: 5px;
        display: flex;
        align-items: center;
    }

    .sound-toggle-btn {
        width: 32px;
        height: 32px;
        min-width: 32px;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .sound-toggle-btn svg {
        width: 15px;
        height: 15px;
    }

    .live-orders-badge-btn {
        padding: 5px 8px;
        gap: 4px;
        font-size: 11px;
        border-radius: var(--radius-full);
    }
    .live-orders-badge-btn svg {
        width: 13px;
        height: 13px;
    }
    .pulse-indicator {
        width: 6px;
        height: 6px;
    }
    .badge-count {
        font-size: 11px;
        font-weight: 800;
    }

    .preview-menu-btn {
        padding: 0;
        width: 32px;
        height: 32px;
        min-width: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 8px;
    }
    .preview-menu-btn span {
        display: none !important;
    }
    .preview-menu-btn svg {
        width: 16px;
        height: 16px;
    }

    /* Hide profile avatar on mobile — saves header space */
    .user-profile-badge {
        display: none !important;
    }

    /* --- Content, Cards & Buttons across all pages on Mobile --- */
    .admin-content {
        padding: 12px;
        max-width: 100vw;
        box-sizing: border-box;
        overflow-x: hidden;
    }

    .content-card {
        border-radius: 12px;
        margin-bottom: 14px;
    }

    .card-header-flex {
        padding: 12px 14px;
        flex-wrap: wrap;
        gap: 10px;
    }

    .card-title {
        font-size: 14px;
    }

    .card-body {
        padding: 14px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 16px;
    }

    .stat-card {
        padding: 14px;
        gap: 12px;
    }

    .stat-value {
        font-size: 20px;
    }

    /* Buttons across all pages on Mobile */
    .btn {
        padding: 7px 12px;
        font-size: 12px;
        gap: 6px;
    }
    .btn-sm {
        padding: 5px 8px;
        font-size: 11px;
    }

    .form-control {
        font-size: 13px;
        padding: 8px 10px;
    }

    /* Tables map grid on mobile */
    .tables-map-grid {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
        gap: 10px;
    }

    /* Table responsive container */
    .table-responsive, .content-card > div[style*="overflow-x"] {
        width: 100%;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    .data-table th, .data-table td {
        padding: 10px 10px;
        font-size: 12px;
        white-space: nowrap;
    }

    .flash-alert {
        margin: 10px 12px 0;
        padding: 10px 14px;
        font-size: 12px;
    }

    /* POS Mobile 2 Products Per Line Grid */
    #posProductsGrid,
    .pos-products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
    .pos-item-card {
        padding: 9px !important;
        border-radius: 10px !important;
    }
    .pos-item-card .pos-card-img,
    .pos-item-card img {
        height: 95px !important;
        margin-bottom: 6px !important;
        border-radius: 6px !important;
    }
    .pos-item-card .pos-card-title,
    .pos-item-card h4 {
        font-size: 12px !important;
        line-height: 1.25 !important;
        height: 30px !important;
        margin-bottom: 4px !important;
    }
    .pos-deal-badge {
        top: 6px !important;
        left: 6px !important;
        font-size: 8.5px !important;
        padding: 2px 5px !important;
        border-radius: 4px !important;
    }
    .pos-card-price {
        font-size: 12.5px !important;
    }
    .pos-card-strike {
        font-size: 10px !important;
        margin-left: 2px !important;
    }
    .pos-card-action-hint {
        font-size: 10px !important;
    }
}

/* Extra small mobile screens (iPhone SE, Galaxy A-series <= 390px) */
@media (max-width: 390px) {
    .header-title {
        max-width: 90px;
        font-size: 13px;
    }
    /* Hide preview menu button on very narrow screens so bell and user avatar fit with zero overflow */
    .preview-menu-btn {
        display: none !important;
    }
    .admin-header {
        padding: 0 8px;
    }
    #posProductsGrid,
    .pos-products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }
    .pos-item-card {
        padding: 7px !important;
    }
    .pos-item-card .pos-card-img,
    .pos-item-card img {
        height: 80px !important;
    }
    .pos-item-card .pos-card-title,
    .pos-item-card h4 {
        font-size: 11px !important;
        height: 27px !important;
    }
    .pos-card-price {
        font-size: 11.5px !important;
    }
    .pos-card-action-hint {
        display: none !important;
    }
}

/* ==========================================================================
   WAITER CALLS BANNER & VIP MODAL STYLES
   ========================================================================== */
.waiter-banner-container {
    background: linear-gradient(135deg, #991b1b, #dc2626);
    color: #fff;
    padding: 12px 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.35);
    animation: waiterAlertBreathe 3s ease-in-out infinite;
    transition: all 0.3s ease;
    flex-wrap: wrap;
}

.waiter-banner-left {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
}

.waiter-banner-bell-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: waiterBellWiggle 2.5s ease-in-out infinite;
}

.waiter-banner-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-waiter-count-badge {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}
.btn-waiter-count-badge:hover {
    background: rgba(0, 0, 0, 0.5);
    border-color: #fff;
    transform: scale(1.04);
}

.btn-waiter-attend-white {
    background: #ffffff;
    color: #b91c1c;
    border: none;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}
.btn-waiter-attend-white:hover {
    background: #f1f5f9;
    transform: translateY(-1px);
}

.waiter-call-card {
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    transition: all 0.25s ease;
}
.waiter-call-card:hover {
    border-color: rgba(239, 68, 68, 0.4);
    background: #243248;
}

@keyframes waiterAlertBreathe {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(220, 38, 38, 0.35);
    }
    50% {
        box-shadow: 0 8px 30px rgba(220, 38, 38, 0.65);
    }
}

@keyframes waiterBellWiggle {
    0%, 80%, 100% {
        transform: rotate(0deg);
    }
    82% {
        transform: rotate(14deg);
    }
    86% {
        transform: rotate(-14deg);
    }
    90% {
        transform: rotate(10deg);
    }
    94% {
        transform: rotate(-8deg);
    }
    97% {
        transform: rotate(0deg);
    }
}

/* ==========================================================================
   PREVIEW MENU BUTTON — Hidden everywhere (removed from header HTML)
   ========================================================================== */
.preview-menu-btn {
    display: none !important;
}

/* ==========================================================================
   DEALS PAGE — Responsive Grid
   ========================================================================== */
.deals-page-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 24px;
    align-items: start;
}

.deal-card-item {
    background: linear-gradient(135deg, rgba(249,115,22,0.15), rgba(239,68,68,0.15));
    border: 1px solid rgba(249,115,22,0.3);
    border-radius: 12px;
    padding: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.deal-card-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    /* Deals page stacks to single column on mobile */
    .deals-page-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    /* Deal cards: wrap content and actions on narrow screens */
    .deal-card-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
        padding: 14px;
    }

    .deal-card-actions {
        width: 100%;
        justify-content: flex-end;
    }
}

/* ==========================================================================
   QR CODES / TABLES PAGE — Responsive Layout
   ========================================================================== */
.qr-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.qr-generator-card {
    padding: 16px 20px;
    flex: 1;
    max-width: 480px;
}

.qr-generator-form {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.qr-gen-btn {
    margin-top: 18px;
}

.qr-actions-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.qr-notice-bar {
    background: rgba(59,130,246,0.1);
    border: 1px solid rgba(59,130,246,0.25);
    border-radius: 12px;
    padding: 12px 18px;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 13px;
    color: #93c5fd;
    line-height: 1.5;
}

.qr-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

@media (max-width: 768px) {
    /* QR page header stacks on mobile */
    .qr-page-header {
        flex-direction: column;
        align-items: stretch;
    }

    .qr-generator-card {
        max-width: 100%;
        flex: none;
        padding: 14px;
    }

    .qr-generator-form {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .qr-gen-btn {
        margin-top: 0;
        width: 100%;
        justify-content: center;
    }

    .qr-actions-row {
        width: 100%;
    }

    .qr-actions-row .btn {
        width: 100%;
        justify-content: center;
    }

    /* QR Cards: 1 column on very small, 2 on medium mobile */
    .qr-cards-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 14px;
    }

    /* Notice bar: smaller text on mobile */
    .qr-notice-bar {
        font-size: 12px;
        padding: 10px 14px;
    }
}

@media (max-width: 480px) {
    /* Single column QR grid on small phones */
    .qr-cards-grid {
        grid-template-columns: 1fr;
    }

    /* QR card content: center everything on single column */
    .qr-cards-grid .content-card {
        text-align: center;
        padding: 18px 14px;
    }

    /* Generator input full width */
    .qr-generator-form .form-control {
        width: 100% !important;
    }
}

/* ==========================================================================
   SUBSCRIPTION PAGE — Responsive Layout
   ========================================================================== */
.sub-page-wrap {
    max-width: 850px;
    margin: 0 auto;
}

/* Current plan banner */
.sub-current-card {
    margin-bottom: 28px;
    background: linear-gradient(135deg, rgba(249,115,22,0.1), rgba(59,130,246,0.1));
    border-color: var(--border-highlight);
}

.sub-current-body {
    padding: 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

/* Pending request banner */
.sub-pending-card {
    margin-bottom: 24px;
    border: 1px solid #f59e0b;
    background: linear-gradient(135deg, rgba(245,158,11,0.15), rgba(234,88,12,0.15));
}

.sub-pending-body {
    padding: 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

/* Pricing region block (right side of current banner) */
.sub-region-block {
    text-align: right;
    flex-shrink: 0;
}

/* Plans grid — 2 columns on desktop */
.sub-plans-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

/* ---- Mobile: Subscription page ---- */
@media (max-width: 768px) {
    /* Plans stack 1 per row on mobile */
    .sub-plans-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    /* Current plan banner: stack info + region vertically */
    .sub-current-body {
        padding: 18px;
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    /* Region block: left-aligned on mobile */
    .sub-region-block {
        text-align: left;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 8px;
    }

    /* Pending banner: stack vertically on mobile */
    .sub-pending-body {
        padding: 16px;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .sub-pending-body .btn {
        width: 100%;
        justify-content: center;
    }

    /* Plan cards: reduce padding on mobile */
    .sub-plans-grid .content-card {
        padding: 20px 16px !important;
    }

    /* Page wrapper: full width on mobile */
    .sub-page-wrap {
        max-width: 100%;
    }
}

/* ==========================================================================
   QR TABLE CARDS — Desktop Base Styles
   ========================================================================== */
.qr-table-card {
    text-align: center;
    padding: 22px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.qr-delete-form {
    position: absolute;
    top: 12px;
    right: 12px;
}

.qr-table-badge {
    display: inline-flex;
    margin-bottom: 12px;
}

.qr-code-box {
    background: #fff;
    padding: 12px;
    border-radius: 12px;
    display: inline-block;
    margin-bottom: 14px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.qr-code-img {
    width: 170px;
    height: 170px;
    display: block;
}

.qr-pin-row {
    background: var(--bg-sidebar);
    border: 1px solid var(--border-color);
    padding: 8px 12px;
    border-radius: 8px;
    margin-bottom: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
}

.qr-pin-label {
    color: var(--text-sub);
}

.qr-pin-value {
    display: flex;
    align-items: center;
    gap: 6px;
}

.qr-pin-number {
    color: var(--accent-amber);
    letter-spacing: 1px;
    font-size: 14px;
}

.qr-regen-btn {
    padding: 2px 6px;
    font-size: 10px;
}

.qr-btn-row {
    display: flex;
    gap: 8px;
}

.qr-action-btn {
    flex: 1;
}

/* Desktop: badge + delete in flex row above the QR code block */
.qr-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    gap: 8px;
    width: 100%;
}

/* On desktop the delete form is inside header — not absolute */
.qr-delete-form {
    position: static;
    margin: 0;
}

/* PIN and button rows full width on desktop */
.qr-pin-row,
.qr-btn-row {
    width: 100%;
}

/* ==========================================================================
   QR TABLE CARDS — Mobile Redesign (Horizontal compact list)
   ========================================================================== */
@media (max-width: 768px) {
    /* Single column list on mobile */
    .qr-cards-grid {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }

    /* Card: CSS grid layout — QR on left, info on right */
    .qr-table-card {
        display: grid;
        grid-template-columns: auto 1fr;
        grid-template-rows: auto auto auto;
        grid-template-areas:
            "qr  header"
            "qr  pin"
            "qr  btns";
        align-items: center;
        column-gap: 14px;
        row-gap: 8px;
        padding: 14px;
        text-align: left;
        position: relative;
    }

    /* Delete button: pulled out of absolute, into header row */
    .qr-delete-form {
        position: static;
        display: flex;
        align-items: center;
    }

    /* Badge + delete button share a flex row */
    .qr-card-header {
        grid-area: header;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 6px;
        min-width: 0;
    }

    .qr-code-box        { grid-area: qr; align-self: center; margin-bottom: 0; }
    .qr-pin-row         { grid-area: pin; margin-bottom: 0; padding: 6px 10px; font-size: 11px; }
    .qr-btn-row         { grid-area: btns; }

    .qr-table-badge {
        margin-bottom: 0;
        font-size: 11px;
        flex: 1;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .qr-pin-number {
        font-size: 13px;
    }

    /* Buttons: full row, smaller text */
    .qr-btn-row {
        gap: 6px;
    }

    .qr-action-btn {
        font-size: 11px;
        padding: 5px 8px;
    }
}

/* ==========================================================================
   REPORTS — Mobile Filter Collapse & Responsive Controls
   ========================================================================== */
.mobile-filter-header {
    display: none;
    align-items: center;
    justify-content: space-between;
    padding: 13px 16px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid transparent;
    user-select: none;
    transition: background 0.2s ease;
}
.mobile-filter-header:active {
    background: rgba(255, 255, 255, 0.05);
}
.mobile-filter-header.is-open {
    border-bottom-color: rgba(255, 255, 255, 0.08);
    background: rgba(249, 115, 22, 0.04);
}
.filter-icon-badge {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: rgba(249, 115, 22, 0.15);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.filter-pill-badge {
    background: rgba(249, 115, 22, 0.15);
    color: var(--primary);
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
    border: 1px solid rgba(249, 115, 22, 0.3);
}
.filter-toggle-action {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}
.chevron-circle {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all 0.25s ease;
}
.mobile-filter-header.is-open .chevron-circle {
    background: var(--primary);
    color: #fff;
    transform: rotate(180deg);
}
.reports-filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    align-items: flex-end;
}

@media (max-width: 768px) {
    .mobile-filter-header {
        display: flex !important;
    }
    .reports-filter-body {
        display: none;
        background: rgba(15, 23, 42, 0.35);
    }
    .reports-filter-body.is-open {
        display: block !important;
        animation: reportsFilterSlideDown 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .reports-filter-body form {
        padding: 14px 14px !important;
    }
    .reports-filter-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

@media (min-width: 769px) {
    .mobile-filter-header {
        display: none !important;
    }
    .reports-filter-body {
        display: block !important;
    }
}

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

