/* ========================================================================
   JUSTCUTOFFS - MASTER GLOBAL STYLESHEET
   ======================================================================== */

* { box-sizing: border-box; }

:root {
    --brand-primary: #4f46e5;
    --brand-gradient: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    --text-main: #0f172a;
    --text-muted: #334155;
    --bg-body: #f8fafc;
    --border-color: #cbd5e1; 
}

body { 
    font-family: 'Inter', sans-serif; 
    background: var(--bg-body); 
    margin: 0; 
    padding: 0; 
    color: var(--text-main); 
    line-height: 1.6; 
}

a { text-decoration: none; }

/* --- NAVBAR --- */
.navbar { background: var(--brand-gradient); height: 70px; padding: 0 24px; position: sticky; top: 0; z-index: 1000; display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.25rem; font-weight: 800; color: white; display: flex; align-items: center; gap: 10px; }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a:not(.nav-premium) { color: #ffffff !important; font-weight: 500; font-size: 0.95rem; transition: color 0.2s; }
.nav-premium { color: #fbbf24 !important; font-weight: 700 !important; display: flex; align-items: center; gap: 6px; font-size: 0.95rem; }
.menu-toggle { display: none; }

.container { max-width: 1100px; margin: 40px auto; padding: 0 20px; }

/* --- HERO SECTION --- */
.header-card { background: var(--brand-gradient); color: white; padding: 40px; border-radius: 16px; margin-bottom: 24px; box-shadow: 0 4px 6px rgba(0,0,0,0.05); }
.header-card h1 { margin: 0 0 10px 0; font-size: 2.2rem; font-weight: 800; line-height: 1.2; }
.header-desc { font-size: 1.05rem; opacity: 0.9; margin: 0; max-width: 800px; }
.badge-label { background: rgba(255,255,255,0.2); padding: 6px 14px; border-radius: 50px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; display: inline-block; margin-bottom: 15px; }

/* --- SECTION HEADERS --- */
.section-header-row { display: flex; align-items: center; margin-bottom: -1px; position: relative; z-index: 2; margin-top: 50px; }
.section-icon-box { width: 48px; height: 48px; background: var(--brand-primary); color: white; border-radius: 12px 12px 0 0; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0; }
.section-title-large { font-size: 1rem; font-weight: 800; color: var(--text-main); text-transform: uppercase; background: #eef2ff; padding: 0 16px; border-radius: 0 12px 0 0; height: 48px; display: flex; align-items: center; flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

/* --- CARDS & GRIDS --- */
.card { background: white; border-radius: 0 12px 12px 12px; border: 1px solid #e2e8f0; margin-bottom: 50px; overflow: hidden; width: 100%; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05); }
.metrics-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 40px; }
.metric-card { background: white; border: 1px solid #e2e8f0; border-radius: 12px; padding: 20px; text-align: center; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05); }
.metric-label { font-size: 0.75rem; font-weight: 700; color: #6b7280; text-transform: uppercase; margin-bottom: 5px; }
.metric-value { font-size: 1.6rem; font-weight: 800; color: var(--brand-primary); }
.metric-sub { font-size: 0.85rem; color: #64748b; margin-top: 5px; }

/* --- TABLES --- */
.table-wrap { overflow-x: auto; width: 100%; }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; min-width: 850px; }
th { background: #f8fafc; color: var(--text-muted); padding: 15px 20px; text-align: left; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; position: sticky; top: 0; cursor: pointer; user-select: none; border-bottom: 1px solid #e2e8f0; }
th:hover { background: #f1f5f9; color: var(--brand-primary); }
th::after { content: '\f0dc'; font-family: 'Font Awesome 6 Free'; font-weight: 900; position: absolute; right: 10px; opacity: 0.3; }
th[aria-sort="ascending"]::after { content: '\f0de'; opacity: 1; color: var(--brand-primary); }
th[aria-sort="descending"]::after { content: '\f0dd'; opacity: 1; color: var(--brand-primary); }
td { padding: 15px 20px; border-bottom: 1px solid #f1f5f9; vertical-align: middle; }
.parent-cell { background: #fff; border-right: 2px solid #f1f5f9; font-weight: 700; color: var(--text-main); vertical-align: middle; }
.branch-text { font-size: 0.8rem; color: #64748b; margin-top: 4px; display: block; font-weight: normal;}

/* --- BADGES & BUTTONS --- */
.q-badge { padding: 3px 8px; border-radius: 4px; font-size: 0.7rem; font-weight: 800; display: inline-block; margin-bottom: 4px; margin-right: 4px;}
.q-hs { background: #dcfce7; color: #166534; }
.q-os { background: #fee2e2; color: #991b1b; }
.q-ai { background: #e0f2fe; color: #075985; }
.q-go { background: #fef3c7; color: #92400e; }
.q-special { background: #f3e8ff; color: #6b21a8; }
.btn-action { background: var(--brand-primary); color: white; padding: 8px 16px; border-radius: 6px; font-weight: 700; font-size: 0.85rem; text-decoration: none; display: inline-block; transition: background 0.2s; white-space: nowrap; }
.btn-action:hover { background: #4338ca; }

/* --- CONTROLS & UTILS --- */
.filter-toolbar { background: #fff; padding: 20px; border-bottom: 1px solid #e2e8f0; display: flex; align-items: center; gap: 15px; }
select { padding: 10px 15px; border-radius: 8px; border: 1px solid #cbd5e1; outline: none; background: white; cursor: pointer; font-family: inherit; font-size: 0.9rem; }

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
    .navbar { background: #4f46e5 !important; height: 64px !important; padding: 0 12px !important; flex-direction: row !important; justify-content: space-between !important; }
    .menu-toggle { display: flex; background: transparent !important; border: none; color: white; font-size: 1.8rem; cursor: pointer; z-index: 2002; padding: 5px; }
    .nav-links { position: fixed; top: 0; right: 0; height: 100vh; width: 260px; background: #4f46e5 !important; flex-direction: column; padding: 80px 30px; gap: 25px; transform: translateX(100%); transition: transform 0.3s; z-index: 2000; align-items: flex-start; }
    .nav-links.active { transform: translateX(0); box-shadow: -10px 0 30px rgba(0,0,0,0.5); }
    .nav-links a:not(.nav-premium) { font-size: 1.2rem; border-bottom: 1px solid rgba(255,255,255,0.1); width: 100%; padding-bottom: 15px; text-align: left; }
    .metrics-grid { grid-template-columns: 1fr; }
}