﻿/* =========================================================
   Call Analytics Dashboard — Custom CSS
   Tailwind v4 browser CDN handles utility classes.
   This file: scrollbar styling, table overrides, print rules.
   ========================================================= */

/* ---- Scrollbar styling for sidebar ---- */
#sidebar::-webkit-scrollbar { width: 6px; }
#sidebar::-webkit-scrollbar-track { background: transparent; }
#sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 3px; }
#sidebar::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.3); }

/* ---- Table styling ---- */
#tableContainer table,
#rankingTableContainer table {
    border-collapse: collapse;
    width: 100%;
    font-size: 0.8125rem;
}
#tableContainer th,
#rankingTableContainer th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #f8fafc;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.6875rem;
    letter-spacing: 0.05em;
    color: #64748b;
    padding: 0.625rem 0.75rem;
    text-align: center;
    white-space: nowrap;
    border-bottom: 2px solid #e2e8f0;
}
#tableContainer td,
#rankingTableContainer td {
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid #f1f5f9;
    white-space: nowrap;
    text-align: center;
}
#rankingTableContainer td {
    border-right: 1px solid #e5e7eb;
}
#rankingTableContainer td:last-child {
    border-right: none;
}
#tableContainer td:first-child {
    text-align: left;
}
#tableContainer tfoot td {
    padding: 0.625rem 0.75rem;
    border-top: 2px solid #cbd5e1;
    border-bottom: none;
    font-weight: 700;
    background: #f1f5f9;
    text-align: center;
}
#tableContainer tfoot td:first-child {
    text-align: left;
}
#tableContainer th {
    text-align: center;
}
#tableContainer th:first-child {
    text-align: left;
}
#tableContainer tbody tr:hover,
#rankingTableContainer tbody tr:hover {
    background-color: #f8fafc;
}

/* ---- Print styles ---- */
@media print {
    #sidebar { display: none !important; }
    main { margin: 0; padding: 0.5rem; }
    .shadow-sm { box-shadow: none !important; }
    #loadingOverlay { display: none !important; }
}

/* ---- Smooth transitions ---- */
#dashboardContent section,
#rankingContent section {
    transition: opacity 0.15s ease;
}
