body { background-color: #f4f7f6; font-family: 'Inter', system-ui, -apple-system, sans-serif; }

.sidebar {
    background-color: #1a1d21;
    min-height: 100vh;
    width: 260px;
    position: fixed; top: 0; left: 0; z-index: 1030;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 4px 0 15px rgba(0,0,0,0.2);
    overflow-x: hidden;
}
.sidebar.collapsed { width: 75px; }

.nav-link {
    color: #94a3b8; padding: 12px 18px; border-radius: 8px; margin: 4px 10px; transition: all 0.2s;
    white-space: nowrap; display: flex; align-items: center; text-decoration: none;
}
.nav-link:hover { color: #fff; background-color: rgba(255,255,255,0.05); }
.nav-link.active { background-color: #f59e0b !important; color: #1a1d21 !important; font-weight: 600; }

.sidebar.collapsed .nav-text { display: none; }
.sidebar.collapsed .sidebar-header-info { display: none; }

.main-content { margin-left: 260px; padding: 30px; transition: all 0.3s; }
.main-content.expanded { margin-left: 75px; }

.card { border: none; border-radius: 14px; box-shadow: 0 4px 20px rgba(0,0,0,0.05); overflow: hidden; margin-bottom: 20px; }
.card-header { background-color: #fff; border-bottom: 1px solid #edf2f7; font-weight: 600; padding: 18px 24px; display: flex; justify-content: space-between; align-items: center; }

.btn-xs { padding: 4px 10px; font-size: 0.75rem; border-radius: 6px; }
.table thead th { background-color: #f8fafc; text-transform: uppercase; font-size: 0.7rem; letter-spacing: 0.05em; color: #64748b; padding: 12px; }
.table tbody td { padding: 10px 12px; vertical-align: middle; }

.rank-circle { width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; margin-right: 12px; color: #fff; font-size: 0.75rem; background-color: #e2e8f0; color: #64748b; }
.rank-top { background-color: #f59e0b; color: #fff; }

.confirm-modal-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5); z-index: 2000;
    display: flex; align-items: center; justify-content: center;
}
.confirm-modal {
    background: white; padding: 25px; border-radius: 12px;
    width: 90%; max-width: 600px; max-height: 90vh; overflow-y: auto; box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.stat-badge { background: #fff; border: 1px solid #eee; padding: 8px 16px; border-radius: 12px; font-size: 0.85rem; font-weight: 600; color: #475569; }
.progress { height: 10px; border-radius: 10px; background-color: #e2e8f0; margin-top: 5px; }

.csv-toolbar { display:flex; gap:8px; align-items:center; }
.csv-toolbar input[type="file"] { display:none; }
.badge-followup-due { background:#ef4444 !important; }
.badge-followup-soon { background:#f59e0b !important; }
.badge-followup-ok { background:#16a34a !important; }
.source-badge { padding: 4px 10px; border-radius: 20px; font-size: 0.7rem; font-weight: 700; color:#fff; text-transform:uppercase; }
.source-whatsapp { background:#25D366; }
.source-mitra { background:#f59e0b; }
.source-tiktok { background:#000000; }
.source-shopee { background:#ee4d2d; }

/* Panel input tambah item (SKU, Qty, Diskon) menempel/sticky saat scroll */
.sticky-item-bar {
    position: sticky;
    top: 12px;
    z-index: 200;
}
@media print { .sticky-item-bar { position: static !important; } }

@media print { .no-print { display: none !important; } }
