@import url('/pwa/TTc_v730.css');

/* ============================================================
   IDc_v728.css – InDash³7s Unified Styles
   Extracted from InDash.ab_726.html
   © PayBridge (Pty) Ltd 2026
   ============================================================ */

/* ===== RESET & GLOBAL ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Nunito', 'Inconsolata', monospace; background: #0B0E14; color: #E0E0E0; display: flex; min-height: 100vh; }

/* ===== LOGIN ===== */
#loginPage { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 100vh; width: 100%; background: #0B0E14; padding: 2rem; }
.login-card { background: #141A24; border: 1px solid #2A3344; border-radius: 16px; padding: 2.5rem 2rem; max-width: 400px; width: 100%; box-shadow: 0 20px 40px rgba(0,0,0,0.4); }
.login-brand { text-align: center; margin-bottom: 2rem; }
.login-brand .brand-title { font-family: 'Orbitron', sans-serif; font-weight: 900; font-style: italic; font-size: 1.8rem; letter-spacing: -0.02em; }
.login-brand .brand-title .treasure { color: #00FFCC; }
.login-brand .brand-title .trail { color: #FF69B4; }
.login-brand .brand-sub { font-family: 'Nunito', sans-serif; font-weight: 900; font-size: 1rem; color: #D4AF37; margin-top: 2px; letter-spacing: 0.5px; }
.login-brand .tagline { color: #8A94A6; font-size: 0.85rem; margin-top: 0.5rem; font-weight: 400; }
.login-form .form-group { margin-bottom: 1rem; }
.login-form label { display: block; font-weight: 500; font-size: 0.85rem; color: #8A94A6; margin-bottom: 0.3rem; }
.login-form input { width: 100%; padding: 0.6rem 0.8rem; background: #0B0E14; border: 1px solid #2A3344; border-radius: 8px; color: #E0E0E0; font-family: 'Nunito', sans-serif; font-size: 0.95rem; }
.login-form input:focus { outline: none; border-color: #D4AF37; }
.login-form .login-btn { width: 100%; padding: 0.7rem; background: #D4AF37; color: #0B0E14; border: none; border-radius: 30px; font-weight: 700; font-size: 1rem; cursor: pointer; transition: 0.2s; font-family: 'Nunito', sans-serif; }
.login-form .login-btn:hover { background: #C49A2A; }
.login-error { color: #FF6B6B; font-size: 0.85rem; margin-top: 0.5rem; text-align: center; }

/* ===== SIDEBAR ===== */
.sidebar { width: 240px; background: #141A24; border-right: 1px solid #2A3344; padding: 1.5rem 0; display: flex; flex-direction: column; position: fixed; top: 0; left: 0; bottom: 0; overflow-y: auto; transition: transform 0.3s ease; z-index: 1000; }
.sidebar-brand { padding: 0 1.5rem 1.2rem; border-bottom: 1px solid #2A3344; margin-bottom: 0.5rem; }
.sidebar-brand .brand-text { font-family: 'Orbitron', sans-serif; font-weight: 900; font-style: italic; font-size: 1.2rem; letter-spacing: -0.02em; }
.sidebar-brand .brand-text .treasure { color: #00FFCC; }
.sidebar-brand .brand-text .trail { color: #FF69B4; }
.sidebar-brand .brand-sub { font-family: 'Nunito', sans-serif; font-weight: 900; font-size: 0.75rem; color: #D4AF37; margin-top: 2px; letter-spacing: 0.3px; }
.sidebar-close-wrap { padding: 0 1.5rem 1.2rem; border-bottom: 1px solid #1F2937; margin-bottom: 0.8rem; }
.sidebar-close-btn { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border: 1px solid #2A3344; border-radius: 6px; background: transparent; color: #8A94A6; font-size: 1rem; cursor: pointer; transition: all 0.2s; }
.sidebar-close-btn:hover { border-color: #D4AF37; color: #D4AF37; background: #1F2937; }

/* ===== CONTEXT SWITCHER ===== */
.context-switcher { padding: 0.5rem 1.5rem 0.8rem; border-bottom: 1px solid #2A3344; position: relative; }
.context-btn { background: none; border: none; color: #E0E0E0; font-family: 'Nunito', sans-serif; font-size: 0.95rem; font-weight: 600; cursor: pointer; display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 0.3rem 0; }
.context-btn:hover { color: #D4AF37; }
.context-btn .chevron { font-size: 0.7rem; margin-left: 0.5rem; transition: transform 0.2s; }
.context-btn.open .chevron { transform: rotate(180deg); }
.context-label { font-size: 0.65rem; font-style: italic; color: #00FFCC; letter-spacing: 0.3px; opacity: 0.8; margin-top: 2px; }
.context-dropdown { display: none; position: absolute; top: calc(100% + 4px); left: 1.5rem; right: 1.5rem; background: #1F2937; border: 1px solid #2A3344; border-radius: 8px; padding: 0.5rem; z-index: 100; max-height: 300px; overflow: hidden; }
.context-dropdown.open { display: block; }
.context-dropdown .search-box { width: 100%; padding: 0.4rem 0.6rem; background: #0B0E14; border: 1px solid #2A3344; border-radius: 6px; color: #E0E0E0; font-size: 0.85rem; margin-bottom: 0.4rem; }
.context-dropdown .search-box:focus { outline: none; border-color: #D4AF37; }
.context-dropdown .options-list { max-height: 200px; overflow-y: auto; }
.context-dropdown .options-list .option { padding: 0.3rem 0.6rem; border-radius: 4px; cursor: pointer; font-size: 0.85rem; color: #E0E0E0; transition: background 0.2s; }
.context-dropdown .options-list .option:hover { background: #2A3344; }
.context-dropdown .options-list .option.active { background: #2A3344; color: #D4AF37; }
.context-dropdown .options-list .option .code { color: #8A94A6; font-size: 0.7rem; margin-left: 0.5rem; }

/* ===== NAV ===== */
.sidebar-nav { flex: 1; padding: 0 1rem; }
.sidebar-nav .nav-item { display: flex; align-items: center; gap: 0.75rem; padding: 0.6rem 1rem; border-radius: 8px; color: #8A94A6; text-decoration: none; transition: background 0.2s, color 0.2s; margin-bottom: 0.2rem; cursor: pointer; }
.sidebar-nav .nav-item:hover { background: #1F2937; color: #E0E0E0; }
.sidebar-nav .nav-item.active { background: #1F2937; color: #D4AF37; }
.sidebar-nav .nav-item i { width: 1.4rem; font-size: 1.1rem; text-align: center; }
.sidebar-nav .nav-item .badge { margin-left: auto; background: #2A3344; padding: 0.1rem 0.6rem; border-radius: 20px; font-size: 0.7rem; color: #8A94A6; }

/* ===== MAIN ===== */
.main-content { margin-left: 240px; flex: 1; min-height: 100vh; display: flex; flex-direction: column; }
.topbar { display: flex; justify-content: space-between; align-items: center; padding: 1rem 2rem; border-bottom: 1px solid #1F2937; flex-wrap: wrap; gap: 1rem; background: #0B0E14; }
.topbar-left { display: flex; align-items: center; gap: 1rem; }
.topbar-left .hamburger { display: none; background: none; border: none; color: #E0E0E0; font-size: 1.5rem; cursor: pointer; }
.topbar-left .page-title { font-size: 1.2rem; font-weight: 600; font-family: 'Nunito', sans-serif; color: #E0E0E0; }
.topbar-right { display: flex; align-items: center; gap: 0.8rem; flex-wrap: wrap; }
.global-shortcut { width: 34px; height: 34px; padding: 0; border-radius: 6px; border: 1px solid #2A3344; background: transparent; font-size: 1.2rem; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.2s; }
.global-shortcut:hover { background: rgba(255,255,255,0.04); }
.global-shortcut.campaign { color: #FF4444; border-color: #FF4444; }
.global-shortcut.campaign:hover { border-color: #FF4444; background: rgba(255,68,68,0.08); }
.global-shortcut.product { color: #44BB88; border-color: #44BB88; }
.global-shortcut.product:hover { border-color: #44BB88; background: rgba(68,187,136,0.08); }
.global-shortcut.export { color: #5A8ABA; border-color: #5A8ABA; }
.global-shortcut.export:hover { border-color: #5A8ABA; background: rgba(90,138,186,0.08); }
.global-shortcut.refresh { color: #8A94A6; border-color: #2A3344; }
.global-shortcut.refresh:hover { border-color: #8A94A6; background: rgba(138,148,166,0.08); }
.action-btn { background: #1F2937; border: 1px solid #2A3344; color: #E0E0E0; padding: 0.4rem 1rem; border-radius: 30px; font-family: 'Nunito', sans-serif; font-size: 0.85rem; cursor: pointer; transition: 0.2s; display: inline-flex; align-items: center; gap: 0.4rem; }
.action-btn:hover { background: #2A3344; border-color: #D4AF37; color: #D4AF37; }
.debug-btn { background: #2A3344; border: 1px solid #2A3344; color: #8A94A6; padding: 0.3rem 0.8rem; border-radius: 20px; font-size: 0.7rem; cursor: pointer; transition: 0.2s; font-family: 'Nunito', sans-serif; }
.debug-btn:hover { border-color: #D4AF37; color: #D4AF37; }
.debug-panel { display: none; background: #1F2937; border: 1px solid #2A3344; border-radius: 8px; padding: 1rem; margin: 0 2rem 1rem 2rem; font-size: 0.8rem; font-family: 'Inconsolata', monospace; color: #8A94A6; overflow-wrap: break-word; word-break: break-all; }
.debug-panel.open { display: block; }
.debug-panel .label { color: #D4AF37; font-weight: 600; }
.debug-panel pre { background: #0B0E14; padding: 0.5rem; border-radius: 4px; overflow-x: auto; max-height: 200px; overflow-y: auto; font-size: 0.75rem; color: #E0E0E0; margin-top: 0.2rem; }
.debug-panel .copy-btn { margin-bottom: 0.5rem; }
.page-action { background: transparent; border: 1px solid #2A3344; padding: 0.4rem 1rem; border-radius: 30px; font-family: 'Nunito', sans-serif; font-size: 0.85rem; cursor: pointer; transition: 0.2s; display: inline-flex; align-items: center; gap: 0.4rem; }
.page-action:hover { background: #2A3344; border-color: #D4AF37; color: #D4AF37; }
.page-action.campaign-text { color: #FF4444; border-color: #FF4444; }
.page-action.campaign-text:hover { background: rgba(255,68,68,0.08); }
.page-action.product-text { color: #44BB88; border-color: #44BB88; }
.page-action.product-text:hover { background: rgba(68,187,136,0.08); }
.content-area { padding: 1.5rem 2rem 2rem; flex: 1; }

/* ===== STATS ===== */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1.2rem; margin-bottom: 2rem; }
.stat-card { background: #141A24; border: 1px solid #1F2937; border-radius: 12px; padding: 1rem 1.2rem; transition: border-color 0.2s; }
.stat-card:hover { border-color: #2A3344; }
.stat-card .stat-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: #8A94A6; }
.stat-card .stat-value { font-size: 2rem; font-weight: 700; margin-top: 0.2rem; line-height: 1.2; }
.stat-card .stat-value .trend { font-size: 0.7rem; font-weight: 400; color: #8A94A6; margin-left: 0.5rem; }
.stat-card .stat-value .trend.up { color: #00FFCC; }
.stat-card .stat-value .trend.down { color: #FF6B6B; }
.chart-container { background: #141A24; border: 1px solid #1F2937; border-radius: 12px; padding: 1.2rem; margin-bottom: 2rem; }
.chart-container .chart-title { font-size: 0.9rem; font-weight: 600; margin-bottom: 0.8rem; color: #E0E0E0; }
.chart-container canvas { width: 100% !important; height: auto !important; max-height: 200px; }

/* ===== TABLES & GRIDS ===== */
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; flex-wrap: wrap; gap: 0.5rem; }
.section-header h3 { font-size: 1rem; font-weight: 600; color: #E0E0E0; }
.section-header .view-all { color: #8A94A6; font-size: 0.8rem; text-decoration: none; cursor: pointer; }
.section-header .view-all:hover { color: #D4AF37; }
.table-search { width: 100%; padding: 0.4rem 0.7rem; margin-bottom: 0.5rem; background: #0B0E14; border: 1px solid #2A3344; border-radius: 8px; color: #E0E0E0; font-size: 0.85rem; font-family: 'Nunito', sans-serif; }
.table-search:focus { outline: none; border-color: #D4AF37; }
.table-search::placeholder { color: #6A7A8A; }
.table-wrap { overflow-x: auto; background: #141A24; border: 1px solid #1F2937; border-radius: 12px; padding: 0.5rem 0; }
table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
table th { text-align: left; padding: 0.7rem 1rem; color: #8A94A6; font-weight: 500; border-bottom: 1px solid #1F2937; }
table td { padding: 0.6rem 1rem; border-bottom: 1px solid #1F2937; color: #E0E0E0; }
table tr:last-child td { border-bottom: none; }
table .highlight { color: #D4AF37; }
table .product-code { color: #44BB88; font-weight: 600; }

/* ===== CAMPAIGN CARDS ===== */
.campaign-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.2rem; margin-top: 1rem; }
.campaign-card { background: #141A24; border: 1px solid #1F2937; border-radius: 12px; padding: 1rem 1.2rem; transition: border-color 0.2s; }
.campaign-card:hover { border-color: #2A3344; }
.campaign-card .campaign-name { font-weight: 600; font-size: 1rem; margin-bottom: 0.2rem; }
.campaign-card .campaign-meta { font-size: 0.75rem; color: #8A94A6; margin-bottom: 0.5rem; }
.campaign-card .campaign-status { display: inline-block; padding: 0.1rem 0.6rem; border-radius: 20px; font-size: 0.7rem; font-weight: 500; }
.campaign-status.active { background: #1A3A2A; color: #00FFCC; }
.campaign-status.paused { background: #3A3A1A; color: #FFA500; }
.campaign-status.ended { background: #3A1A1A; color: #FF6B6B; }
.campaign-status.draft { background: #2A2A2A; color: #8A94A6; }
.campaign-actions { display: flex; gap: 0.5rem; margin-top: 0.6rem; flex-wrap: wrap; }
.campaign-actions button { background: none; border: 1px solid #2A3344; color: #8A94A6; padding: 0.2rem 0.6rem; border-radius: 4px; font-size: 0.7rem; cursor: pointer; font-family: 'Nunito', sans-serif; transition: 0.2s; }
.campaign-actions button:hover { border-color: #D4AF37; color: #D4AF37; }
.campaign-actions .delete-btn { color: #FF6B6B; border-color: #FF6B6B; }
.campaign-actions .delete-btn:hover { background: #3A1A1A; border-color: #FF6B6B; color: #FF6B6B; }
.campaign-actions .status-btn.active { color: #00FFCC; border-color: #00FFCC; }
.campaign-actions .status-btn.paused { color: #FFA500; border-color: #FFA500; }
.campaign-actions .status-btn.ended { color: #FF6B6B; border-color: #FF6B6B; }
.campaign-actions .status-btn.draft { color: #8A94A6; border-color: #8A94A6; }

/* ===== MODALS ===== */
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.7); align-items: center; justify-content: center; z-index: 2000; backdrop-filter: blur(4px); }
.modal-overlay.open { display: flex; }
.modal { background: #141A24; border: 1px solid #2A3344; border-radius: 16px; max-width: 700px; width: 90%; max-height: 90dvh; display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.modal-header { display: flex; justify-content: space-between; align-items: center; padding: 1.2rem 1.5rem 0.8rem 1.5rem; flex-shrink: 0; border-bottom: 1px solid #2A3344; }
.modal-header h2 { font-size: 1.2rem; font-weight: 600; margin: 0; }
.modal-close { background: none; border: none; color: #8A94A6; font-size: 1.4rem; cursor: pointer; padding: 0 0.3rem; }
.modal-close:hover { color: #E0E0E0; }
.modal-body { flex: 1; overflow-y: auto; padding: 1.2rem 1.5rem 0.5rem 1.5rem; }
.modal-footer { flex-shrink: 0; padding: 0.8rem 1.5rem 1.2rem 1.5rem; border-top: 1px solid #2A3344; display: flex; justify-content: flex-end; gap: 0.8rem; flex-wrap: wrap; background: #141A24; border-radius: 0 0 16px 16px; }
.modal .form-group { margin-bottom: 1rem; }
.modal .form-group label { display: block; font-size: 0.8rem; font-weight: 500; color: #8A94A6; margin-bottom: 0.2rem; }
.modal .form-group input, .modal .form-group select { width: 100%; padding: 0.5rem 0.7rem; background: #0B0E14; border: 1px solid #2A3344; border-radius: 8px; color: #E0E0E0; font-family: 'Nunito', sans-serif; font-size: 0.9rem; }
.modal .form-group input:focus, .modal .form-group select:focus { outline: none; border-color: #D4AF37; }
.modal .form-group input[type="checkbox"] { width: auto; margin-right: 0.5rem; }

.modal-footer .btn-secondary,
.modal-footer .btn-primary {
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    border: none;
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s ease;
    font-size: 0.95rem;
}
.modal-footer .btn-secondary {
    background: #1F2937;
    color: #8A94A6;
    border: 1px solid #2A3344;
}
.modal-footer .btn-secondary:hover {
    background: #2A3344;
    color: #E0E0E0;
}
.modal-footer .btn-primary {
    background: #D4AF37;
    color: #0B0E14;
    border: none;
}
.modal-footer .btn-primary:hover {
    background: #C49A2A;
}
@media (max-width: 640px) {
    .modal-footer {
        flex-direction: column;
        align-items: stretch;
    }
    .modal-footer .btn-secondary,
    .modal-footer .btn-primary {
        width: 100%;
        text-align: center;
    }
}

.modal .confirm-input { width: 100%; padding: 0.5rem 0.7rem; background: #0B0E14; border: 1px solid #2A3344; border-radius: 8px; color: #E0E0E0; font-family: 'Nunito', sans-serif; font-size: 0.9rem; text-align: center; letter-spacing: 0.5px; }
.modal .confirm-input:focus { outline: none; border-color: #FF6B6B; }
.modal .warning-text { color: #FF6B6B; font-weight: 700; text-align: center; margin: 0.5rem 0; }
.modal .warning-icon { font-size: 2rem; text-align: center; margin: 0.5rem 0; }

/* ===== PRODUCT LIST (visible, searchable) ===== */
#productListContainer {
    margin-top: 0.5rem;
    max-height: 150px;
    overflow-y: auto;
    background: #0B0E14;
    border: 1px solid #2A3344;
    border-radius: 8px;
    padding: 0.3rem;
    display: block;
}
.product-option {
    padding: 0.4rem;
    border-bottom: 1px solid #1F2937;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    transition: background 0.15s;
}
.product-option:last-child { border-bottom: none; }
.product-option:hover { background: #1F2937; }
.product-option.selected {
    background: #1F2937;
    border-left: 3px solid #D4AF37;
}
.product-option .prod-code { color: #44BB88; font-size: 0.8rem; }
.product-option .prod-name { color: #E0E0E0; }

/* ===== OVERRIDE CARDS (mobile-friendly) ===== */
.override-card {
    background: #1F2937;
    border: 1px solid #2A3344;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
}
.override-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
    border-bottom: 1px solid #2A3344;
    padding-bottom: 0.5rem;
    font-weight: 600;
    color: #E0E0E0;
}
.override-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
}
.override-grid .full-width {
    grid-column: 1 / -1;
}
.override-grid label {
    color: #8A94A6;
    font-size: 0.75rem;
    display: block;
    margin-bottom: 0.3rem;
}
.override-card select, .override-card input {
    width: 100%;
    background: #0B0E14;
    border: 1px solid #2A3344;
    border-radius: 8px;
    color: #E0E0E0;
    padding: 0.6rem;
    font-family: 'Nunito', sans-serif;
    font-size: 0.9rem;
    box-sizing: border-box;
}
.override-card select:focus, .override-card input:focus {
    outline: none;
    border-color: #D4AF37;
}
.remove-override-btn {
    background: none;
    border: none;
    color: #FF6B6B;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}
.remove-override-btn:hover { background: rgba(255,107,107,0.1); }

@media (max-width: 480px) {
    .override-grid { grid-template-columns: 1fr; }
}

/* ===== HEAD OFFICE CARD ===== */
.head-office-card { background: #141A24; border: 1px solid #D4AF37; border-radius: 12px; padding: 0.6rem 1rem; margin-bottom: 1.5rem; }
.ho-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 1.5rem; row-gap: 0.25rem; align-items: baseline; }
.ho-title { grid-column: 1 / -1; color: #D4AF37; font-weight: 700; font-size: 1rem; }
.ho-divider { grid-column: 1 / -1; height: 1px; background: #2A3344; margin: 0.15rem 0; }
.ho-row { display: flex; align-items: baseline; gap: 0.2rem; }
.ho-row .label { color: #8A94A6; font-weight: 500; font-size: 0.85rem; display: inline-block; text-align: right; min-width: 110px; }
.ho-row .colon { color: #8A94A6; width: 8px; display: inline-block; text-align: center; }
.ho-row .value { color: #E0E0E0; font-weight: 600; font-size: 0.9rem; word-break: break-word; }
.ho-address-block { display: flex; flex-direction: column; gap: 0.05rem; }
.ho-address-block span { color: #E0E0E0; font-weight: 600; font-size: 0.9rem; line-height: 1.1; }
.ho-lat-lng { display: flex; gap: 1rem; }
.ho-lat-lng .ho-row .label { min-width: 40px; }

/* ===== SCANS TAB SPECIFIC ===== */
.scans-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    align-items: center;
    background: #141A24;
    padding: 0.8rem 1rem;
    border-radius: 12px;
    border: 1px solid #1F2937;
}
.scans-filter-bar select,
.scans-filter-bar input {
    background: #0B0E14;
    border: 1px solid #2A3344;
    border-radius: 8px;
    color: #E0E0E0;
    padding: 0.4rem 0.8rem;
    font-family: 'Nunito', sans-serif;
    font-size: 0.85rem;
    min-width: 100px;
    flex: 1 0 auto;
}
.scans-filter-bar select:focus,
.scans-filter-bar input:focus {
    outline: none;
    border-color: #D4AF37;
}
.scans-filter-bar .filter-label {
    color: #8A94A6;
    font-size: 0.8rem;
    font-weight: 500;
    margin-right: -0.2rem;
}
.scans-pagination {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-top: 1rem;
    flex-wrap: wrap;
    justify-content: space-between;
}
.scans-pagination button {
    background: #1F2937;
    border: 1px solid #2A3344;
    color: #E0E0E0;
    padding: 0.3rem 0.8rem;
    border-radius: 6px;
    cursor: pointer;
    font-family: 'Nunito', sans-serif;
    font-size: 0.85rem;
    transition: 0.2s;
}
.scans-pagination button:hover:not(:disabled) {
    border-color: #D4AF37;
    color: #D4AF37;
}
.scans-pagination button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
.scans-pagination .page-info {
    color: #8A94A6;
    font-size: 0.85rem;
}
.qr-modal .modal {
    max-width: 400px;
}
.qr-modal .qr-image {
    text-align: center;
    padding: 1rem 0;
}
.qr-modal .qr-image img {
    max-width: 100%;
    background: white;
    padding: 0.5rem;
    border-radius: 8px;
}

/* ===== REPORTS TAB SPECIFIC ===== */
.reports-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    align-items: center;
    background: #141A24;
    padding: 0.8rem 1rem;
    border-radius: 12px;
    border: 1px solid #1F2937;
}
.reports-filter-bar select,
.reports-filter-bar input {
    background: #0B0E14;
    border: 1px solid #2A3344;
    border-radius: 8px;
    color: #E0E0E0;
    padding: 0.4rem 0.8rem;
    font-family: 'Nunito', sans-serif;
    font-size: 0.85rem;
    min-width: 100px;
    flex: 1 0 auto;
}
.reports-filter-bar select:focus,
.reports-filter-bar input:focus {
    outline: none;
    border-color: #D4AF37;
}
.reports-filter-bar .filter-label {
    color: #8A94A6;
    font-size: 0.8rem;
    font-weight: 500;
    margin-right: -0.2rem;
}
.reports-filter-bar .date-group {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    flex-wrap: wrap;
}
.reports-filter-bar .date-group input[type="date"] {
    min-width: 120px;
    width: auto;
}
.export-dropdown {
    position: relative;
    display: inline-block;
}
.export-dropdown-content {
    display: none;
    position: absolute;
    background: #1F2937;
    min-width: 120px;
    border: 1px solid #2A3344;
    border-radius: 8px;
    z-index: 10;
    top: 100%;
    right: 0;
    margin-top: 4px;
}
.export-dropdown-content.open {
    display: block;
}
.export-dropdown-content button {
    display: block;
    width: 100%;
    padding: 0.5rem 1rem;
    background: transparent;
    border: none;
    color: #E0E0E0;
    text-align: left;
    font-family: 'Nunito', sans-serif;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.2s;
}
.export-dropdown-content button:hover {
    background: #2A3344;
}
.export-dropdown-content button i {
    margin-right: 0.5rem;
}

/* ===== MISC ===== */
.footer { padding: 1rem 2rem; border-top: 1px solid #1F2937; text-align: center; font-family: 'Nunito', sans-serif; font-weight: 900; font-size: 0.8rem; color: #8A94A6; letter-spacing: 0.3px; margin-top: auto; }
.footer .gold { color: #D4AF37; }
.footer .copy { font-weight: 400; color: #4A5A6A; }
.settings-section { margin-top: 1rem; }
.settings-btn { display: block; width: 100%; padding: 0.8rem; margin-bottom: 0.8rem; background: #1F2937; border: 1px solid #2A3344; border-radius: 10px; color: #E0E0E0; font-family: 'Nunito', sans-serif; font-size: 1rem; cursor: pointer; transition: 0.2s; text-align: left; display: flex; align-items: center; gap: 0.8rem; }
.settings-btn:hover { background: #2A3344; border-color: #D4AF37; }
.settings-btn .icon { font-size: 1.3rem; width: 2rem; text-align: center; }
.settings-btn .label { flex: 1; }
.settings-btn .badge-danger { background: #FF6B6B; color: #0B0E14; padding: 0.1rem 0.6rem; border-radius: 20px; font-size: 0.7rem; font-weight: 700; margin-left: 0.5rem; }
.settings-btn .badge-warning { background: #FFA500; color: #0B0E14; padding: 0.1rem 0.6rem; border-radius: 20px; font-size: 0.7rem; font-weight: 700; margin-left: 0.5rem; }
.settings-btn .badge-info { background: #5A8ABA; color: #0B0E14; padding: 0.1rem 0.6rem; border-radius: 20px; font-size: 0.7rem; font-weight: 700; margin-left: 0.5rem; }
.admin-desk { display: none; }
.admin-desk.visible { display: block; }
.admin-tabs { display: flex; gap: 0.5rem; margin-bottom: 1rem; border-bottom: 1px solid #2A3344; padding-bottom: 0.5rem; flex-wrap: wrap; }
.admin-tabs button { background: none; border: none; color: #8A94A6; padding: 0.4rem 1rem; cursor: pointer; font-family: 'Nunito', sans-serif; border-bottom: 2px solid transparent; transition: 0.2s; }
.admin-tabs button.active { color: #D4AF37; border-bottom-color: #D4AF37; }
.admin-tab-content { display: none; }
.admin-tab-content.active { display: block; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.admin-table th { text-align: left; padding: 0.5rem 0.5rem; color: #8A94A6; border-bottom: 1px solid #1F2937; }
.admin-table td { padding: 0.4rem 0.5rem; border-bottom: 1px solid #1F2937; }
.admin-table .action-btn-small { background: none; border: 1px solid #2A3344; color: #8A94A6; padding: 0.1rem 0.6rem; border-radius: 4px; cursor: pointer; font-size: 0.7rem; font-family: 'Nunito', sans-serif; transition: 0.2s; }
.admin-table .action-btn-small:hover { border-color: #D4AF37; color: #D4AF37; }

/* ===== RESPONSIVE ===== */
@media (max-width: 640px) {
    .ho-grid { grid-template-columns: 1fr; gap: 0.2rem; }
    .ho-title { font-size: 0.9rem; }
    .ho-lat-lng { flex-wrap: wrap; gap: 0.2rem; }
    .modal { width: 95%; max-height: 95dvh; }
    .modal-header { padding: 0.8rem 1rem 0.5rem 1rem; }
    .modal-body { padding: 0.8rem 1rem 0.3rem 1rem; }
    .scans-filter-bar select,
    .scans-filter-bar input { min-width: 60px; flex: 1 1 100%; }
    .reports-filter-bar select,
    .reports-filter-bar input { min-width: 60px; flex: 1 1 100%; }
}
@media (max-width: 768px) {
    .sidebar { transform: translateX(-100%); width: 220px; }
    .sidebar.open { transform: translateX(0); }
    .main-content { margin-left: 0; }
    .topbar-left .hamburger { display: block; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .campaign-grid { grid-template-columns: 1fr; }
    .debug-panel { margin: 0 1rem 1rem 1rem; }
}
@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr; }
}
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #0B0E14; }
::-webkit-scrollbar-thumb { background: #2A3344; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #3A4A5A; }

@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@300;400;600;700&display=swap');
.dev-tools-btn { display: block; padding: 0.6rem 1rem; text-decoration: none; font-family: 'Rajdhani','Nunito',sans-serif; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.3px; border-radius: 8px; transition: all 0.2s ease; cursor: pointer; background: transparent; border: none; color: #8A94A6; margin-top: 0.5rem; text-align: left; width: 100%; }
.dev-tools-btn .dev { color: rgba(230,126,34,0.6); }
.dev-tools-btn .tools { color: rgba(52,152,219,0.6); }
.dev-tools-btn .prompt { color: rgba(255,255,255,0.7); font-size: 1.2rem; font-weight: 700; margin-left: 0.1rem; font-family: 'Rajdhani','Orbitron',monospace; }
.dev-tools-btn:hover .dev { color: rgba(230,126,34,0.9); }
.dev-tools-btn:hover .tools { color: rgba(52,152,219,0.9); }
.dev-tools-btn:hover .prompt { color: rgba(255,255,255,1); }
.dev-tools-btn:hover { background: rgba(255,255,255,0.04); }
