/* ============================================================
   RotaOps - Ana Stil Dosyasi
   Tema: Premium Floating Sidebar + Header Logo
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --primary: #c41e3a;
    --primary-dark: #96152b;
    --primary-light: #fce8e9;
    --primary-rgb: 196, 30, 58;

    --secondary: #6c757d;
    --secondary-light: #e9ecef;

    --sidebar-bg: #1a1a2e;
    --sidebar-text: #8a8fa8;
    --sidebar-active: #ffffff;
    --sidebar-hover: rgba(196, 30, 58, 0.12);

    --sidebar-width: 260px;
    --sidebar-collapsed-width: 0px;
    --header-height: 64px;

    --body-bg: #f4f7fe;
    --card-bg: #ffffff;
    --card-border: rgba(0, 0, 0, 0.08);
}

* { box-sizing: border-box; }

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 0.875rem;
    background: var(--body-bg);
    margin: 0;
    overflow-x: hidden;
    color: #1e293b;
    line-height: 1.6;
    font-weight: 400;
    position: relative;
}

body::before {
    display: none;
}

/* --- Layout --- */
.preload * {
    transition: none !important;
}

.app-wrapper {
    display: flex;
    min-height: calc(100vh - var(--header-height));
}

.app-main {
    margin-left: var(--sidebar-width);
    width: calc(100% - var(--sidebar-width));
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - var(--header-height));
    transition: margin-left 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.app-content {
    flex: 1;
    padding: 1.5rem;
    animation: fadeInUp 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* ============================================================
   HEADER - Full width, logo lives here
   ============================================================ */
.app-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    height: var(--header-height);
    position: sticky;
    top: 0;
    z-index: 1050;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.app-header .navbar {
    height: 100%;
    min-height: auto;
    padding-top: 0;
    padding-bottom: 0;
}

.header-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    height: var(--header-height);
    padding: 8px 0;
}

.header-brand img {
    height: 100%;
    object-fit: contain;
}

.sidebar-toggle {
    color: var(--primary);
    font-size: 1.25rem;
    padding: 0.25rem 0.5rem;
    border: none;
    background: transparent;
    transition: color 0.2s;
}

.sidebar-toggle:hover {
    color: var(--primary-dark);
}

/* ============================================================
   SIDEBAR - Floating panel from left edge
   ============================================================ */
.app-sidebar {
    width: var(--sidebar-width);
    background: var(--sidebar-bg);
    border-right: none;
    position: fixed;
    top: calc(var(--header-height) + 14px);
    left: 0;
    bottom: 14px;
    z-index: 1040;
    display: flex;
    flex-direction: column;
    border-radius: 0 18px 18px 0;
    overflow: hidden;
    box-shadow:
        4px 0 24px rgba(0, 0, 0, 0.12),
        0 8px 32px rgba(0, 0, 0, 0.08);
    transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.3s ease;
}

.app-sidebar,
.sidebar-nav {
    scrollbar-width: thin;
    scrollbar-color: rgba(196, 30, 58, 0.35) transparent;
}

.app-sidebar::-webkit-scrollbar,
.sidebar-nav::-webkit-scrollbar { width: 5px; }
.app-sidebar::-webkit-scrollbar-track,
.sidebar-nav::-webkit-scrollbar-track { background: transparent; }
.app-sidebar::-webkit-scrollbar-thumb,
.sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(196, 30, 58, 0.35);
    border-radius: 4px;
}
.app-sidebar::-webkit-scrollbar-thumb:hover,
.sidebar-nav::-webkit-scrollbar-thumb:hover {
    background: rgba(196, 30, 58, 0.6);
}

/* Pin bar at top of sidebar */
.sidebar-pin-bar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0.75rem 1rem 0.25rem;
    flex-shrink: 0;
}

.sidebar-toggle-btn {
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--sidebar-text);
    font-size: 13px;
    transition: all 0.2s ease;
}

.sidebar-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

/* Pinned state */
body:not(.sidebar-collapsed) .sidebar-toggle-btn {
    background: rgba(196, 30, 58, 0.2);
    color: var(--primary);
}
body:not(.sidebar-collapsed) .sidebar-toggle-btn i {
    transform: rotate(0deg);
}

/* Unpinned state */
body.sidebar-collapsed .sidebar-toggle-btn i {
    transform: rotate(45deg);
    transition: transform 0.3s ease;
}

/* --- Sidebar Nav --- */
.sidebar-nav {
    flex: 1;
    padding: 0.5rem 0;
    overflow-y: auto;
    overflow-x: hidden;
}

.sidebar-nav .nav-item {
    margin-bottom: 1px;
}

.sidebar-nav .nav-item.sidebar-divider {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.sidebar-nav .nav-link {
    color: var(--sidebar-text);
    padding: 0.65rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.01em;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
    white-space: nowrap;
    border-radius: 0 12px 12px 0;
    margin-right: 0.75rem;
}

.sidebar-nav .nav-link:hover {
    color: #ddd;
    background: var(--sidebar-hover);
}

.sidebar-nav .nav-link.active {
    color: var(--sidebar-active);
    background: var(--sidebar-hover);
    border-left-color: var(--primary);
    font-weight: 600;
}

.sidebar-nav .nav-link i:first-child {
    width: 20px;
    text-align: center;
    font-size: 1.05rem;
    flex-shrink: 0;
}

.sidebar-nav .nav-link .arrow {
    margin-left: auto;
    font-size: 0.65rem;
    transition: transform 0.2s ease;
    opacity: 0.5;
}

.sidebar-nav .nav-link:not(.collapsed) .arrow {
    transform: rotate(180deg);
}

.sidebar-nav .sub-menu {
    padding-left: 0;
    background: rgba(0,0,0,0.12);
    border-radius: 0 0 12px 0;
    margin-right: 0.75rem;
}

.sidebar-nav .sub-menu .nav-link {
    padding-left: 3.25rem;
    font-size: 0.82rem;
    border-left: none;
    padding-top: 0.4rem;
    padding-bottom: 0.4rem;
    margin-right: 0;
    border-radius: 0;
    color: var(--sidebar-text);
}

.sidebar-nav .sub-menu .nav-link:hover {
    color: #fff;
    background: rgba(255,255,255,0.05);
}

.sidebar-footer {
    padding: 0.75rem 1rem;
    text-align: center;
    white-space: nowrap;
    flex-shrink: 0;
}

.sidebar-footer small {
    color: rgba(255,255,255,0.2);
    font-size: 0.7rem;
}

/* ============================================================
   COLLAPSED STATE - Sidebar slides off-screen
   ============================================================ */
body.sidebar-collapsed .app-sidebar {
    transform: translateX(calc(-100% + 6px));
    pointer-events: none;
}

body.sidebar-collapsed .app-main {
    margin-left: 12px;
    width: calc(100% - 12px);
}

/* The visible hint strip when collapsed */
.sidebar-hint-strip {
    display: none;
}

body.sidebar-collapsed .sidebar-hint-strip {
    display: block;
    position: fixed;
    top: calc(var(--header-height) + 14px);
    left: 0;
    width: 10px;
    bottom: 14px;
    background: var(--sidebar-bg);
    border-radius: 0 6px 6px 0;
    z-index: 1041;
    cursor: pointer;
    transition: width 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 2px 0 8px rgba(0,0,0,0.1);
}

body.sidebar-collapsed .sidebar-hint-strip::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 3px;
    height: 40px;
    background: var(--primary);
    border-radius: 3px;
    opacity: 0.6;
    transition: opacity 0.2s, height 0.2s;
}

body.sidebar-collapsed .sidebar-hint-strip:hover {
    width: 14px;
    box-shadow: 2px 0 12px rgba(0,0,0,0.2);
}

body.sidebar-collapsed .sidebar-hint-strip:hover::after {
    opacity: 1;
    height: 60px;
}

/* Hover to reveal when collapsed */
body.sidebar-collapsed.sidebar-hover-open .app-sidebar {
    transform: translateX(0);
    pointer-events: auto;
    box-shadow:
        4px 0 30px rgba(0, 0, 0, 0.2),
        0 8px 40px rgba(0, 0, 0, 0.15);
}

body.sidebar-collapsed.sidebar-hover-open .sidebar-hint-strip {
    display: none;
}

/* ============================================================
   CARDS
   ============================================================ */
.card {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    margin-bottom: 1.5rem;
    background: #ffffff;
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}
.card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.07);
}

.card-header {
    background-color: #ffffff;
    border-bottom: 1px solid #f1f5f9;
    padding: 14px 18px;
    font-weight: 600;
    color: #1e293b;
    font-size: 14px;
}

/* stat-card styles defined above in Dashboard section */

/* --- Dashboard Stat Cards (DidimNetOps SuperAdmin Style) --- */
.stat-card-compact {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px 18px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    transition: box-shadow 0.2s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}
.stat-card-compact:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.07);
}

.stat-card-compact .sc-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.stat-card-compact .sc-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #fff;
    flex-shrink: 0;
}

.stat-card-compact .sc-number {
    font-size: 28px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1;
    letter-spacing: -0.5px;
}

.stat-card-compact .sc-body {
    flex: 1;
}

.stat-card-compact .sc-label {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
    margin-bottom: 2px;
}

.stat-card-compact .sc-meta {
    font-size: 11px;
    color: #9ca3af;
}

.stat-card-compact .sc-footer {
    border-top: 1px solid #f1f5f9;
    padding: 8px 0;
    text-align: center;
    margin: 0 -18px;
}

.stat-card-compact .sc-footer .btn {
    font-size: 12px;
    font-weight: 500;
    border-radius: 0;
    border: none;
    width: 100%;
    padding: 6px;
}

/* Renk varyantları - ikon arka planları (Gradients) */
.sc-icon.primary { background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%); box-shadow: 0 4px 10px rgba(59, 130, 246, 0.3); }
.sc-icon.success { background: linear-gradient(135deg, #10b981 0%, #059669 100%); box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3); }
.sc-icon.warning { background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); box-shadow: 0 4px 10px rgba(245, 158, 11, 0.3); }
.sc-icon.info { background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%); box-shadow: 0 4px 10px rgba(6, 182, 212, 0.3); }
.sc-icon.danger { background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%); box-shadow: 0 4px 10px rgba(239, 68, 68, 0.3); }
.sc-icon.secondary { background: linear-gradient(135deg, #64748b 0%, #475569 100%); box-shadow: 0 4px 10px rgba(100, 116, 139, 0.3); }
.sc-icon.purple { background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%); box-shadow: 0 4px 10px rgba(139, 92, 246, 0.3); }
.sc-icon.pink { background: linear-gradient(135deg, #ec4899 0%, #db2777 100%); box-shadow: 0 4px 10px rgba(236, 72, 153, 0.3); }
.sc-icon.indigo { background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%); box-shadow: 0 4px 10px rgba(99, 102, 241, 0.3); }
.sc-icon.teal { background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%); box-shadow: 0 4px 10px rgba(20, 184, 166, 0.3); }
.sc-icon.orange { background: linear-gradient(135deg, #f97316 0%, #ea580c 100%); box-shadow: 0 4px 10px rgba(249, 115, 22, 0.3); }
.sc-icon.cyan { background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%); box-shadow: 0 4px 10px rgba(14, 165, 233, 0.3); }

/* Alt border renkleri */
.stat-card-compact.border-primary { border-bottom: 3px solid #3b82f6 !important; }
.stat-card-compact.border-success { border-bottom: 3px solid #10b981 !important; }
.stat-card-compact.border-warning { border-bottom: 3px solid #f59e0b !important; }
.stat-card-compact.border-info { border-bottom: 3px solid #06b6d4 !important; }
.stat-card-compact.border-danger { border-bottom: 3px solid #ef4444 !important; }
.stat-card-compact.border-secondary { border-bottom: 3px solid #64748b !important; }
.stat-card-compact.border-purple { border-bottom: 3px solid #8b5cf6 !important; }
.stat-card-compact.border-pink { border-bottom: 3px solid #ec4899 !important; }

@media (max-width: 575.98px) {
    .stat-card-compact { padding: 12px 14px; }
    .stat-card-compact .sc-icon { width: 36px; height: 36px; font-size: 0.9rem; }
    .stat-card-compact .sc-number { font-size: 22px; }
}

/* --- Summary Cards (Alt sayfa metrik kartları - beyaz arka plan) --- */
.summary-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    height: 100%;
    transition: box-shadow 0.2s ease;
}
.summary-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.07);
}
.summary-card .summary-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}
.summary-card .summary-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.2;
}
.summary-card .summary-label {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 500;
}

/* Eski dashboard-card sınıfı (alt sayfalar için geriye uyumluluk) */
.dashboard-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    height: 100%;
    transition: transform 0.2s;
}
.dashboard-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.12);
}
.dashboard-card .stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}
.dashboard-card .stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.2;
}
.dashboard-card .stat-label {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 500;
}

/* --- Info Cards (DidimNetOps Style) --- */
.info-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    height: 100%;
}
.info-card .card-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* --- Table Cards (DidimNetOps Style) --- */
.table-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.table-card .card-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #2c3e50;
}

/* --- Chart Cards --- */
.chart-card {
    background: white;
    border-radius: 12px;
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    overflow: hidden;
}
.chart-card .card-header {
    background: #fff;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    padding: 14px 18px;
    font-weight: 600;
}

/* --- Dashboard Info Cards --- */
.info-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}
.info-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.07);
}
.info-card .card-header {
    background: transparent;
    border-bottom: 1px solid rgba(0,0,0,0.04);
    padding: 14px 18px;
    font-weight: 600;
    font-size: 14px;
}
.info-card .card-body { padding: 0; }

/* --- Dashboard Alert Cards --- */
.dash-alert-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}
.dash-alert-card:hover {
    box-shadow: 0 15px 50px rgba(0,0,0,0.06);
}

.dash-alert-header {
    border-bottom: 1px solid rgba(0,0,0,0.06);
    padding: 14px 18px;
    background: #fff !important;
}
.dash-alert-header h6 {
    font-weight: 600;
    font-size: 14px;
}

.dash-alert-card .list-group-item {
    border-color: rgba(0,0,0,0.04);
    font-size: 0.85rem;
    transition: background 0.2s;
}
.dash-alert-card .list-group-item:hover { background: #f8fafc; }

/* --- Dashboard Table Cards --- */
.table-card {
    background: #fff;
    border-radius: 12px;
    border: none;
    box-shadow: 0 2px 15px rgba(0,0,0,0.06);
    overflow: hidden;
}
.table-card .card-header {
    background: transparent;
    border-bottom: 1px solid rgba(0,0,0,0.04);
    padding: 14px 18px;
    font-weight: 600;
}

/* --- Dashboard Chart Cards --- */
.chart-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    overflow: hidden;
}
.chart-card .card-header {
    background: transparent;
    border-bottom: 1px solid rgba(0,0,0,0.04);
    padding: 14px 18px;
    font-weight: 600;
}

/* ============================================================
   TABLES
   ============================================================ */
.table { margin-bottom: 0; border-collapse: separate; border-spacing: 0 4px; }

.table-sm th, .table-sm td {
    padding: 0.5rem 0.75rem;
}

.table th {
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #64748b;
    border: none;
    padding: 1rem 1.25rem;
    background-color: transparent;
}

.table td {
    vertical-align: middle;
    font-size: 0.875rem;
    padding: 1rem 1.25rem;
    border-top: 1px solid transparent;
    border-bottom: 1px solid transparent;
    background-color: transparent;
    transition: background-color 0.15s ease;
}

.table td:first-child {
    border-left: 1px solid transparent;
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}

.table td:last-child {
    border-right: 1px solid transparent;
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}

.table-hover tbody tr {
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.table-hover tbody tr:hover td {
    background-color: #f8fafc;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    border-radius: 10px;
    font-weight: 500;
    padding: 0.6rem 1.25rem;
    font-size: 0.875rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(196, 30, 58, 0.25);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border: none;
    color: #fff;
    box-shadow: 0 4px 12px rgba(196, 30, 58, 0.25);
}

.btn-primary:hover, .btn-primary:focus {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #7a1022 100%);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(196, 30, 58, 0.35);
}

.btn-outline-primary { color: var(--primary); border-color: var(--primary); }
.btn-outline-primary:hover { background-color: var(--primary); border-color: var(--primary); color: #fff; }

/* ============================================================
   FORMS
   ============================================================ */
.form-control, .form-select {
    border-radius: 8px;
    border: 1px solid #d1d5db;
    padding: 0.6rem 1rem;
    font-size: 0.875rem;
    color: #1e293b;
    background-color: #ffffff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-control:focus, .form-select:focus {
    background-color: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(196, 30, 58, 0.12);
    outline: none;
}

.input-group-text {
    border-radius: 8px;
    border: 1px solid #d1d5db;
    padding: 0.6rem 1rem;
    background-color: #f9fafb;
    color: #64748b;
}

.form-label {
    font-weight: 500;
    color: #475569;
    margin-bottom: 0.4rem;
    font-size: 0.85rem;
}

/* ============================================================
   BADGE & CONTEXTUAL COLORS
   ============================================================ */
.badge { font-weight: 600; padding: 0.4em 0.8em; border-radius: 8px; font-size: 0.75rem; letter-spacing: 0.02em; }

.badge.bg-primary { background-color: rgba(196, 30, 58, 0.1) !important; color: var(--primary) !important; }
.badge.bg-success { background-color: rgba(16, 185, 129, 0.1) !important; color: #10b981 !important; }
.badge.bg-warning { background-color: rgba(245, 158, 11, 0.1) !important; color: #d97706 !important; }
.badge.bg-info { background-color: rgba(6, 182, 212, 0.1) !important; color: #0891b2 !important; }
.badge.bg-danger { background-color: rgba(239, 68, 68, 0.1) !important; color: #dc2626 !important; }
.badge.bg-secondary { background-color: rgba(100, 116, 139, 0.1) !important; color: #475569 !important; }
.badge.bg-dark { background-color: rgba(30, 41, 59, 0.1) !important; color: #1e293b !important; }

.bg-primary { background-color: var(--primary) !important; }
.text-primary { color: var(--primary) !important; }

.bg-success { background-color: #10b981 !important; }
.text-success { color: #10b981 !important; }
.btn-success { background-color: #10b981; border-color: #10b981; color: #fff; }
.btn-success:hover { background-color: #059669; border-color: #059669; }
.btn-outline-success { color: #10b981; border-color: #10b981; }
.btn-outline-success:hover { background-color: #10b981; color: #fff; }

.bg-danger { background-color: #ef4444 !important; }
.text-danger { color: #ef4444 !important; }
.btn-danger { background-color: #ef4444; border-color: #ef4444; color: #fff; }
.btn-danger:hover { background-color: #dc2626; border-color: #dc2626; }
.btn-outline-danger { color: #ef4444; border-color: #ef4444; }
.btn-outline-danger:hover { background-color: #ef4444; color: #fff; }

.bg-warning { background-color: #f59e0b !important; color: #fff !important; }
.text-warning { color: #f59e0b !important; }
.btn-warning { background-color: #f59e0b; border-color: #f59e0b; color: #fff; }
.btn-warning:hover { background-color: #d97706; border-color: #d97706; }

.bg-info { background-color: #06b6d4 !important; }
.text-info { color: #06b6d4 !important; }
.btn-info { background-color: #06b6d4; border-color: #06b6d4; color: #fff; }
.btn-info:hover { background-color: #0891b2; border-color: #0891b2; }

.alert-success { background-color: rgba(16, 185, 129, 0.15); border-color: #10b981; color: #065f46; }
.alert-danger { background-color: rgba(239, 68, 68, 0.15); border-color: #ef4444; color: #991b1b; }
.alert-warning { background-color: rgba(245, 158, 11, 0.15); border-color: #f59e0b; color: #92400e; }
.alert-info { background-color: rgba(6, 182, 212, 0.15); border-color: #06b6d4; color: #164e63; }

/* ============================================================
   LOGIN PAGE
   ============================================================ */
.login-wrapper {
    min-height: 100vh;
    display: flex;
    background: #f0f2f5;
}

.login-left {
    flex: 0 0 45%;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.login-left::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 70%, rgba(196, 30, 58, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 70% 30%, rgba(196, 30, 58, 0.1) 0%, transparent 50%);
    animation: loginPulse 15s ease-in-out infinite;
}

@keyframes loginPulse {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.05) rotate(3deg); }
}

.login-brand {
    position: relative;
    z-index: 1;
    text-align: center;
}

.login-brand-logo {
    max-width: 220px;
    height: auto;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 4px 20px rgba(196, 30, 58, 0.3));
}

.login-brand-text h1 {
    color: #fff;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin: 0;
}

.login-brand-text p {
    color: rgba(255,255,255,0.5);
    font-size: 1rem;
    margin: 0.25rem 0 0;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 300;
}

.login-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.login-card {
    width: 100%;
    max-width: 420px;
}

.login-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 0.25rem;
}

.login-subtitle {
    color: #6c757d;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.login-card .input-group-text {
    background: #f8f9fa;
    border-color: #dee2e6;
    color: #6c757d;
    min-width: 48px;
    justify-content: center;
}

.login-card .form-control {
    border-color: #dee2e6;
}

.login-card .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(196, 30, 58, 0.15);
}

.btn-toggle-pass {
    cursor: pointer;
    border: 1px solid #dee2e6;
    background: #f8f9fa;
    color: #6c757d;
    transition: color 0.2s;
}

.btn-toggle-pass:hover {
    color: var(--primary);
}

.btn-login {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark, #a01530));
    border: none;
    color: #fff;
    padding: 0.75rem;
    font-size: 1.05rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(196, 30, 58, 0.3);
}

.btn-login:hover {
    background: linear-gradient(135deg, var(--primary-dark, #a01530), var(--primary));
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(196, 30, 58, 0.4);
}

.login-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e9ecef;
    color: #adb5bd;
}

@media (max-width: 991.98px) {
    .login-left { display: none; }
    .login-right { min-height: 100vh; background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%); }
    .login-card { background: #fff; padding: 2.5rem 2rem; border-radius: 16px; box-shadow: 0 15px 50px rgba(0,0,0,0.3); }
}

/* ============================================================
   STAT CARD MINI
   ============================================================ */
.stat-card-mini {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1rem 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.9rem;
    height: 100%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    transition: box-shadow 0.2s ease;
}

.stat-card-mini:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-color: #dde1e8;
}

.stat-card-mini-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    background: #f8f9fc;
}

.stat-card-mini-body {
    display: flex;
    flex-direction: column;
}

.scm-number {
    font-size: 1.35rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
    letter-spacing: -0.5px;
}
.scm-label {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 500;
}
.scm-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    background: #f8fafc;
}

.stat-card-mini-value {
    font-size: 1.35rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.stat-card-mini-label {
    font-size: 0.7rem;
    color: #8a94a6;
    letter-spacing: 0.2px;
}

/* ============================================================
   CUSTOMER LIST
   ============================================================ */
.customer-avatar {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.tbl-action-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.tbl-action-view {
    background: #f0f4ff;
    color: #4e73df;
}
.tbl-action-view:hover {
    background: #4e73df;
    color: #fff;
}

.tbl-action-edit {
    background: #f0f5f1;
    color: #5a8f6a;
}
.tbl-action-edit:hover {
    background: #5a8f6a;
    color: #fff;
}

.tbl-action-delete {
    background: #fdf0f0;
    color: #d9534f;
}
.tbl-action-delete:hover {
    background: #d9534f;
    color: #fff;
}

.tbl-action-deliver {
    background: #fff3e6;
    color: #e67e22;
}
.tbl-action-deliver:hover {
    background: #e67e22;
    color: #fff;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 991.98px) {
    .app-sidebar {
        transform: translateX(-100%);
        top: calc(var(--header-height) + 8px);
        bottom: 8px;
        border-radius: 0 16px 16px 0;
    }

    .app-sidebar.show {
        transform: translateX(0);
        pointer-events: auto;
    }

    .app-main {
        margin-left: 0 !important;
        width: 100% !important;
    }

    .sidebar-hint-strip { display: none !important; }

    .sidebar-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.4);
        backdrop-filter: blur(3px);
        z-index: 1035;
        display: none;
    }

    .sidebar-overlay.show { display: block; }

    body.sidebar-collapsed .app-sidebar {
        transform: translateX(-100%);
    }
}

/* Hover trigger is now handled by .sidebar-hint-strip element */

/* ============================================================
   DETAIL PAGE TABS
   ============================================================ */
.nav-tabs .nav-link {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    color: #64748b;
    border: none;
    border-bottom: 2px solid transparent;
    padding: 0.8rem 1.2rem;
    transition: all 0.2s ease;
}
.nav-tabs .nav-link:hover {
    color: var(--primary);
    border-color: transparent;
}
.nav-tabs .nav-link.active {
    color: var(--primary);
    background: transparent;
    border-color: transparent;
    border-bottom: 2px solid var(--primary);
}

.nav-tabs.detail-tabs {
    border-bottom: 2px solid #e9ecef;
    gap: 2px;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.nav-tabs.detail-tabs::-webkit-scrollbar { display: none; }

.nav-tabs.detail-tabs .nav-link {
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    padding: 0.7rem 1.1rem;
    font-size: 0.82rem;
    font-weight: 500;
    color: #6c757d;
    background: transparent;
    white-space: nowrap;
    transition: all 0.2s ease;
    border-radius: 0;
}
.nav-tabs.detail-tabs .nav-link:hover {
    color: var(--primary);
    border-bottom-color: rgba(200, 35, 51, 0.3);
    background: rgba(200, 35, 51, 0.03);
}
.nav-tabs.detail-tabs .nav-link.active {
    color: var(--primary);
    font-weight: 600;
    border-bottom-color: var(--primary);
    background: transparent;
}
.nav-tabs.detail-tabs .tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    margin-left: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    line-height: 1;
    border-radius: 10px;
    background: #e9ecef;
    color: #6c757d;
}
.nav-tabs.detail-tabs .nav-link.active .tab-count {
    background: var(--primary);
    color: #fff;
}
.nav-tabs.detail-tabs .nav-link:hover .tab-count {
    background: rgba(200, 35, 51, 0.15);
    color: var(--primary);
}
.nav-tabs.detail-tabs .nav-link.active:hover .tab-count {
    background: var(--primary);
    color: #fff;
}

/* ============================================================
   GLOBAL SEARCH (Ctrl+K)
   ============================================================ */
.global-search-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    justify-content: center;
    padding-top: 12vh;
    animation: gsOverlayIn 0.15s ease;
}
.global-search-overlay.active {
    display: flex;
}

@keyframes gsOverlayIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.global-search-modal {
    width: 100%;
    max-width: 640px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 16px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-height: 70vh;
    animation: gsModalIn 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.global-search-input-wrap {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    gap: 12px;
}

.global-search-icon {
    color: #94a3b8;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.global-search-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 1.05rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 500;
    color: #0f172a;
}
.global-search-input::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

.global-search-kbd {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 2px 8px;
    font-size: 0.7rem;
    font-family: monospace;
    color: #64748b;
    flex-shrink: 0;
}

.global-search-results {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
    min-height: 100px;
}

.global-search-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.global-search-category {
    padding: 6px 12px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #94a3b8;
}

.global-search-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 14px;
    border-radius: 10px;
    text-decoration: none;
    color: #1e293b;
    transition: all 0.15s ease;
    cursor: pointer;
}
.global-search-item:hover,
.global-search-item.active {
    background: rgba(196, 30, 58, 0.06);
    color: #1e293b;
}

.global-search-item-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: #fff;
    flex-shrink: 0;
}

.global-search-item-text {
    flex: 1;
    min-width: 0;
}

.global-search-item-title {
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.global-search-item-subtitle {
    font-size: 0.75rem;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.global-search-item-arrow {
    color: #cbd5e1;
    font-size: 0.8rem;
    flex-shrink: 0;
    opacity: 0;
    transition: opacity 0.15s;
}
.global-search-item:hover .global-search-item-arrow,
.global-search-item.active .global-search-item-arrow {
    opacity: 1;
}

.global-search-footer {
    display: flex;
    gap: 16px;
    padding: 10px 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    font-size: 0.72rem;
    color: #94a3b8;
}
.global-search-footer kbd {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    padding: 1px 5px;
    font-size: 0.65rem;
    font-family: monospace;
    color: #64748b;
    margin-right: 3px;
}

.global-search-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    color: #94a3b8;
}

.global-search-no-results {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px;
    color: #94a3b8;
}

/* ============================================================
   CUSTOM DATE PICKER
   ============================================================ */
.rdp-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9998;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    justify-content: center;
    align-items: flex-start;
    padding-top: 14vh;
    animation: rdpOverlayIn 0.12s ease;
}
.rdp-overlay.active { display: flex; }
@keyframes rdpOverlayIn { from { opacity: 0; } to { opacity: 1; } }

.rdp-modal {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 16px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.18);
    overflow: hidden;
    animation: rdpModalIn 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    width: auto;
    min-width: 320px;
}
.rdp-modal.rdp-range-mode { min-width: 640px; }
@keyframes rdpModalIn { from { opacity: 0; transform: translateY(-12px) scale(0.97); } to { opacity: 1; transform: translateY(0) scale(1); } }

.rdp-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px 12px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
.rdp-header-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.rdp-header-close {
    width: 28px; height: 28px;
    border: none; background: #f1f5f9;
    border-radius: 8px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    color: #64748b; font-size: 0.75rem;
    transition: all 0.15s;
}
.rdp-header-close:hover { background: #e2e8f0; color: #334155; }

.rdp-body { display: flex; }
.rdp-calendar { padding: 12px 16px 16px; flex: 1; }

.rdp-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.rdp-nav-btn {
    width: 32px; height: 32px;
    border: none; background: #f1f5f9;
    border-radius: 10px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    color: #475569; font-size: 0.75rem;
    transition: all 0.15s;
}
.rdp-nav-btn:hover { background: #e2e8f0; color: #1e293b; }
.rdp-nav-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1e293b;
    cursor: pointer;
    padding: 4px 12px;
    border-radius: 8px;
    transition: background 0.15s;
}
.rdp-nav-title:hover { background: #f1f5f9; }

.rdp-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    margin-bottom: 4px;
}
.rdp-weekday {
    text-align: center;
    font-size: 0.7rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 0;
}

.rdp-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}
.rdp-day {
    position: relative;
    text-align: center;
    padding: 0;
    width: 38px; height: 38px;
    border: none; background: transparent;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #334155;
    cursor: pointer;
    transition: all 0.12s;
    display: flex; align-items: center; justify-content: center;
}
.rdp-day:hover { background: #f1f5f9; }
.rdp-day.other-month { color: #cbd5e1; }
.rdp-day.today {
    font-weight: 800;
    color: var(--primary);
    background: rgba(59, 130, 246, 0.08);
}
.rdp-day.selected {
    background: var(--primary) !important;
    color: #fff !important;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}
.rdp-day.in-range {
    background: rgba(59, 130, 246, 0.1);
    border-radius: 0;
    color: var(--primary);
}
.rdp-day.range-start {
    background: var(--primary) !important;
    color: #fff !important;
    font-weight: 700;
    border-radius: 10px 0 0 10px;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}
.rdp-day.range-end {
    background: var(--primary) !important;
    color: #fff !important;
    font-weight: 700;
    border-radius: 0 10px 10px 0;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}
.rdp-day.range-start.range-end { border-radius: 10px; }
.rdp-day.disabled { color: #e2e8f0; pointer-events: none; }

.rdp-months {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    padding: 8px 0;
}
.rdp-month-btn, .rdp-year-btn {
    border: none;
    background: transparent;
    padding: 10px 8px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #334155;
    cursor: pointer;
    transition: all 0.12s;
}
.rdp-month-btn:hover, .rdp-year-btn:hover { background: #f1f5f9; }
.rdp-month-btn.active, .rdp-year-btn.active {
    background: var(--primary);
    color: #fff;
    font-weight: 700;
}

.rdp-years {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    padding: 8px 0;
    max-height: 280px;
    overflow-y: auto;
}

.rdp-shortcuts {
    width: 180px;
    border-right: 1px solid rgba(0,0,0,0.05);
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.rdp-shortcut {
    border: none;
    background: transparent;
    text-align: left;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 500;
    color: #475569;
    cursor: pointer;
    transition: all 0.12s;
}
.rdp-shortcut:hover { background: #f1f5f9; color: #1e293b; }
.rdp-shortcut.active { background: rgba(59, 130, 246, 0.1); color: var(--primary); font-weight: 600; }

.rdp-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    border-top: 1px solid rgba(0,0,0,0.05);
    gap: 8px;
}
.rdp-footer-info {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 500;
}
.rdp-footer-actions { display: flex; gap: 8px; }
.rdp-btn {
    border: none;
    padding: 7px 16px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
}
.rdp-btn-clear { background: #f1f5f9; color: #64748b; }
.rdp-btn-clear:hover { background: #e2e8f0; }
.rdp-btn-today { background: rgba(59, 130, 246, 0.1); color: var(--primary); }
.rdp-btn-today:hover { background: rgba(59, 130, 246, 0.18); }
.rdp-btn-apply { background: var(--primary); color: #fff; }
.rdp-btn-apply:hover { background: var(--primary-dark); }

.rdp-divider {
    width: 1px;
    background: rgba(0,0,0,0.06);
    margin: 16px 0;
}

.rdp-input-display {
    cursor: pointer !important;
    background-color: #fff !important;
}
.rdp-input-display:read-only { background-color: #fff !important; }

@media (max-width: 640px) {
    .rdp-modal.rdp-range-mode { min-width: auto; width: 95vw; }
    .rdp-body { flex-direction: column; }
    .rdp-shortcuts { width: 100%; border-right: none; border-bottom: 1px solid rgba(0,0,0,0.05); flex-direction: row; flex-wrap: wrap; padding: 8px; }
    .rdp-shortcut { padding: 6px 10px; font-size: 0.75rem; }
    .rdp-range-mode .rdp-body > .rdp-calendar:nth-child(3) { display: none; }
}

/* ============================================================
   MISC
   ============================================================ */
.cursor-pointer { cursor: pointer; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }

/* Modal z-index fix */
.modal-backdrop { z-index: 1055 !important; }
.modal { z-index: 1060 !important; }

/* Product search dropdown */
.pdd-item:hover { background: #f0f7ff; }
.pdd-item.bg-primary.bg-opacity-10 { background: #e0edff !important; }
#productDropdown::-webkit-scrollbar { width: 4px; }
#productDropdown::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
