/*
 * COLORES: esta hoja NO define colores. Todos los colores de la web (modo
 * claro y modo oscuro) están en /public/css/theme.css y aquí se usan
 * siempre con var(--...). No escribas códigos de color (#fff, rgb(...),
 * white...) en este archivo: añade o reutiliza una variable en theme.css.
 */
/**
 * =========================================================================
 * PROJECT MANAGEMENT — MODERN SAAS RESKIN
 * Inspired by Linear, Vercel, Notion — clean, fast, professional
 * =========================================================================
 */

@import url('/public/css/fonts.css');

/* =========================================================================
   CSS VARIABLES
   ========================================================================= */
:root {
    --brand:           var(--ot-5b5ef6);
    --brand-dark:      var(--ot-4845e4);
    --brand-light:     var(--bg-ebebff);
    --brand-muted:     var(--bg-5b5ef6-a9);

    --bg:              var(--bg-f4f5fa);
    --surface:         var(--bg-white);
    --surface-2:       var(--bg-f9f9fc);
    --border:          var(--bd-e8e9f0);
    --border-strong:   var(--bd-d0d2df);

    --text-1:          var(--tx-0d0e14);
    --text-2:          var(--tx-4a4c62);
    --text-3:          var(--tx-8b8fa8);
    --text-inv:        var(--tx-white);

    --green:           var(--ot-green-600);
    --green-bg:        var(--bg-green-50);
    --green-border:    var(--bd-green-200);
    --yellow:          var(--ot-yellow-600);
    --yellow-bg:       var(--bg-yellow-50);
    --yellow-border:   var(--bd-amber-200);
    --red:             var(--ot-red-600);
    --red-bg:          var(--bg-red-50);
    --red-border:      var(--bd-red-200);
    --blue:            var(--ot-blue-600);
    --blue-bg:         var(--bg-blue-50);
    --blue-border:     var(--bd-blue-200);
    --purple:          var(--ot-violet-600);
    --purple-bg:       var(--bg-violet-50);
    --purple-border:   var(--bd-violet-200);
    --orange:          var(--ot-orange-600);

    --shadow-xs: 0 1px 2px var(--sh-0d0e14-a4);
    --shadow-sm: 0 1px 3px var(--sh-0d0e14-a6), 0 1px 2px var(--sh-0d0e14-a4);
    --shadow-md: 0 4px 6px -1px var(--sh-0d0e14-a7), 0 2px 4px -2px var(--sh-0d0e14-a4);
    --shadow-lg: 0 10px 15px -3px var(--sh-0d0e14-a8), 0 4px 6px -4px var(--sh-0d0e14-a4);
    --shadow-xl: 0 20px 25px -5px var(--sh-0d0e14-a10), 0 8px 10px -6px var(--sh-0d0e14-a4);
    --shadow-focus: 0 0 0 3px var(--sh-5b5ef6-a20);

    --r-sm:   6px;
    --r-md:   8px;
    --r-lg:   12px;
    --r-xl:   16px;
    --r-full: 9999px;

    --font: 'Plus Jakarta Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
    --mono: 'JetBrains Mono', 'Fira Code', ui-monospace, monospace;

    --sp-1:  4px;
    --sp-2:  8px;
    --sp-3:  12px;
    --sp-4:  16px;
    --sp-5:  20px;
    --sp-6:  24px;
    --sp-8:  32px;
    --sp-10: 40px;
    --sp-12: 48px;

    --sidebar-width:    260px;
    --sidebar-collapsed: 68px;
    /* 40px de logo + 20px de área de respeto arriba y abajo (brand.css) */
    --topbar-h:         80px;

    --t-fast: 120ms cubic-bezier(.4,0,.2,1);
    --t-base: 200ms cubic-bezier(.4,0,.2,1);
    --t-slow: 300ms cubic-bezier(.4,0,.2,1);

    /* Keep legacy names for compatibility */
    --primary-blue:       var(--brand);
    --primary-blue-hover: var(--brand-dark);
    --secondary-blue:     var(--ot-7779f8);
    --light-blue-bg:      var(--brand-muted);
    --text-primary:       var(--text-1);
    --text-secondary:     var(--text-3);
    --gray-100: var(--surface-2);
    --gray-200: var(--border);
    --gray-300: var(--border-strong);
    --gray-400: var(--ot-b0b3c8);
    --gray-500: var(--text-3);
    --gray-600: var(--text-2);
    --gray-700: var(--text-1);
    --white: var(--bg-white);
    --success-green: var(--green);
    --success-light: var(--green-bg);
    --warning-orange: var(--ot-amber-500);
    --warning-light: var(--yellow-bg);
    --error-red: var(--red);
    --error-light: var(--red-bg);
    --info-blue: var(--blue);
    --info-light: var(--blue-bg);
    --radius-sm: var(--r-sm);
    --radius-md: var(--r-md);
    --radius-lg: var(--r-lg);
    --radius-xl: var(--r-xl);
    --radius-full: var(--r-full);
    --font-family: var(--font);
    --font-size-xs:  11px;
    --font-size-sm:  13px;
    --font-size-base:14px;
    --font-size-md:  15px;
    --font-size-lg:  16px;
    --font-size-xl:  18px;
    --font-size-2xl: 20px;
    --font-size-3xl: 24px;
    --font-size-4xl: 28px;
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-8: 32px;
    --space-10: 40px;
    --space-12: 48px;
    --space-16: 64px;
    --transition-fast: var(--t-fast);
    --transition-base: var(--t-base);
    --transition-slow: var(--t-slow);
    --max-width-container: 1600px;
}

/* =========================================================================
   RESET
   ========================================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    font-size: 15px;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font);
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-1);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
}

a { color: var(--brand); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--brand-dark); }
ul, ol { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

/* =========================================================================
   ICONS
   ========================================================================= */
svg.icon    { width: 20px; height: 20px; stroke: currentColor; display: inline-block; vertical-align: middle; }
svg.icon-sm { width: 16px; height: 16px; }
svg.icon-xs { width: 14px; height: 14px; }
svg.icon-lg { width: 24px; height: 24px; }
svg.icon-xl { width: 28px; height: 28px; }
svg.icon-primary { color: var(--brand); }
svg.icon-success { color: var(--green); }
svg.icon-warning { color: var(--yellow); }
svg.icon-danger  { color: var(--red); }
svg.icon-muted   { color: var(--text-3); }
.stat-icon svg { width: 24px; height: 24px; }
.action-icon svg { width: 15px; height: 15px; stroke-width: 1.8; transition: transform var(--t-fast); }
.action-icon:hover svg { transform: scale(1.12); }
.nav-icon svg, .brand-icon svg { width: 18px; height: 18px; stroke-width: 1.6; }

/* =========================================================================
   LAYOUT
   ========================================================================= */
.main-content {
    padding: var(--sp-8) var(--sp-6);
    max-width: 1600px;
    margin: 0 auto;
}

/* =========================================================================
   CONTAINER & SECTION
   ========================================================================= */
.container {
    background: var(--surface);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    padding: var(--sp-8);
    margin-bottom: var(--sp-6);
}

.section {
    background: var(--surface);
    border-radius: var(--r-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-xs);
    padding: var(--sp-6);
    margin-bottom: var(--sp-5);
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--sp-3);
    margin-bottom: var(--sp-5);
    padding-bottom: var(--sp-4);
    border-bottom: 1px solid var(--border);
}

/* =========================================================================
   PAGE HEADER
   ========================================================================= */
.page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--sp-4);
    margin-bottom: var(--sp-8);
    padding-bottom: var(--sp-5);
    border-bottom: 1px solid var(--border);
}

.page-header h1 {
    font-size: 21px;
    font-weight: 700;
    color: var(--text-1);
    letter-spacing: -.025em;
    line-height: 1.25;
    display: flex;
    align-items: center;
    gap: var(--sp-2);
}

.page-header .text-muted {
    margin-top: 4px;
    font-size: 13px;
    color: var(--text-3);
}

.section h2 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-1);
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    margin-bottom: var(--sp-4);
    padding-bottom: var(--sp-3);
    border-bottom: 1px solid var(--border);
}

.section h3 {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-2);
    margin-bottom: var(--sp-3);
}

/* =========================================================================
   BUTTONS
   ========================================================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 15px;
    font-size: 13px;
    font-weight: 600;
    font-family: var(--font);
    border-radius: var(--r-md);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all var(--t-fast);
    text-decoration: none;
    white-space: nowrap;
    line-height: 1;
    letter-spacing: -.01em;
    background: var(--brand);
    color: var(--tx-white);
}

.btn:hover:not(:disabled) { background: var(--brand-dark); color: var(--tx-white); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn:active:not(:disabled) { transform: translateY(0); box-shadow: none; }
.btn:focus-visible { outline: none; box-shadow: var(--shadow-focus); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }

.btn-primary {
    background: var(--brand);
    color: var(--tx-white);
    box-shadow: 0 1px 2px var(--sh-5b5ef6-a25), inset 0 1px 0 var(--sh-white-a12);
}
.btn-primary:hover:not(:disabled) {
    background: var(--brand-dark);
    color: var(--tx-white);
    box-shadow: 0 4px 10px var(--sh-5b5ef6-a30), inset 0 1px 0 var(--sh-white-a10);
}

.btn-secondary {
    background: var(--surface);
    color: var(--text-2);
    border-color: var(--border-strong);
    box-shadow: var(--shadow-xs);
}
.btn-secondary:hover:not(:disabled) { background: var(--surface-2); color: var(--text-1); }

.btn-success { background: var(--green); color: var(--tx-white); }
.btn-success:hover:not(:disabled) { background: var(--bg-green-700); }

.btn-danger { background: var(--red); color: var(--tx-white); }
.btn-danger:hover:not(:disabled) { background: var(--bg-red-700); }

.btn-warning { background: var(--yellow); color: var(--tx-white); }
.btn-warning:hover:not(:disabled) { background: var(--bg-yellow-700); }

.btn-outline { background: transparent; color: var(--brand); border-color: var(--brand); }
.btn-outline:hover:not(:disabled) { background: var(--brand-muted); }

.btn-sm { padding: 5px 11px; font-size: 12px; border-radius: var(--r-sm); }
.btn-lg { padding: 11px 22px; font-size: 15px; border-radius: var(--r-lg); }

/* =========================================================================
   FORMS
   ========================================================================= */
.form-group { margin-bottom: var(--sp-5); }

.form-group label {
    display: block;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-2);
    margin-bottom: 6px;
    letter-spacing: .01em;
}

.form-group label.required::after { content: ' *'; color: var(--red); }

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="number"],
.form-group input[type="date"],
.form-group input[type="datetime-local"],
.form-group input[type="time"],
.form-group input[type="search"],
.form-group select,
.form-group textarea,
.form-control {
    width: 100%;
    padding: 9px 12px;
    font-size: 13.5px;
    font-family: var(--font);
    color: var(--text-1);
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: var(--r-md);
    transition: border-color var(--t-fast), box-shadow var(--t-fast);
    line-height: 1.5;
    appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus,
.form-control:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: var(--shadow-focus);
}

.form-group input:disabled,
.form-group select:disabled,
.form-group textarea:disabled {
    background: var(--surface-2);
    color: var(--text-3);
    cursor: not-allowed;
}

.form-group select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%238b8fa8' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 34px;
}

.form-group textarea { resize: vertical; min-height: 90px; line-height: 1.6; }

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--sp-5);
}

.form-actions {
    display: flex;
    gap: var(--sp-3);
    margin-top: var(--sp-8);
    padding-top: var(--sp-5);
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
}

small.text-muted {
    font-size: 11.5px;
    color: var(--text-3);
    display: block;
    margin-top: 4px;
}

/* =========================================================================
   TABLES
   ========================================================================= */
.table-responsive {
    overflow-x: auto;
    border-radius: var(--r-lg);
    border: 1px solid var(--border);
    background: var(--surface);
    box-shadow: var(--shadow-xs);
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
}

.table thead tr {
    background: var(--surface-2);
    border-bottom: 1px solid var(--border);
}

.table thead th {
    padding: 10px 14px;
    text-align: left;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: .07em;
    white-space: nowrap;
}

.table thead th:first-child { padding-left: 20px; }
.table thead th:last-child  { padding-right: 20px; }

.table tbody tr {
    border-bottom: 1px solid var(--border);
    transition: background var(--t-fast);
}
.table tbody tr:last-child { border-bottom: none; }
.table tbody tr:hover { background: var(--bg-fafbff); }

.table tbody td {
    padding: 12px 14px;
    vertical-align: middle;
    color: var(--text-1);
}
.table tbody td:first-child { padding-left: 20px; font-weight: 500; }
.table tbody td:last-child  { padding-right: 20px; }

.table tfoot {
    background: var(--surface-2);
    border-top: 1px solid var(--border);
    font-weight: 700;
}
.table tfoot td { padding: 12px 14px; color: var(--text-2); }

/* =========================================================================
   BADGES & STATUS
   ========================================================================= */
/* Etiqueta de registro vinculado con una integración (Holded…) */
.integ-tag { display:inline-flex; align-items:center; gap:4px; margin-left:8px; height:20px; padding:0 8px 0 6px; box-sizing:border-box;
             font-size:11px; font-weight:600; letter-spacing:.1px; line-height:1; white-space:nowrap; vertical-align:middle;
             border-radius:6px; background:#fff1f0; color:#c8342f; border:1px solid #ffd3cf; box-shadow:0 1px 0 rgba(200,52,47,.06); }
.integ-tag::before { content:""; width:11px; height:11px; flex:0 0 11px; background:currentColor;
             -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 14a5 5 0 0 0 7.07 0l3-3a5 5 0 0 0-7.07-7.07l-1.5 1.5'/%3E%3Cpath d='M14 10a5 5 0 0 0-7.07 0l-3 3a5 5 0 0 0 7.07 7.07l1.5-1.5'/%3E%3C/svg%3E") center/contain no-repeat;
                     mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 14a5 5 0 0 0 7.07 0l3-3a5 5 0 0 0-7.07-7.07l-1.5 1.5'/%3E%3Cpath d='M14 10a5 5 0 0 0-7.07 0l-3 3a5 5 0 0 0 7.07 7.07l1.5-1.5'/%3E%3C/svg%3E") center/contain no-repeat; }
/* Colores de marca de cada integración (fondo, con texto blanco): las etiquetas y los botones "Sincronizar con…" */
/* Fondo blanco con el texto y el borde del color de cada marca (en modo oscuro, el fondo del tema y un tono más claro) */
:root { --integ-holded:#d6392f; --integ-holded-soft:#fff1f0; --integ-bc:#00796d; --integ-bc-soft:#e6f4f2; }
:root[data-theme="dark"] { --integ-holded:#ff8a80; --integ-holded-soft:rgba(255,138,128,.12); --integ-bc:#4fd1c1; --integ-bc-soft:rgba(79,209,193,.12); }
.integ-tag { background:var(--bg-white); color:var(--integ-holded); border-color:var(--integ-holded); box-shadow:none; }
.integ-tag.bc { color:var(--integ-bc); border-color:var(--integ-bc); }
.btn.btn-integ { background:var(--bg-white); border:1px solid currentColor; }
.btn.btn-integ.holded { color:var(--integ-holded); }
.btn.btn-integ.bc { color:var(--integ-bc); }
.btn.btn-integ.holded:hover:not([disabled]) { background:var(--integ-holded-soft); color:var(--integ-holded); }
.btn.btn-integ.bc:hover:not([disabled]) { background:var(--integ-bc-soft); color:var(--integ-bc); }
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    font-size: 11px;
    font-weight: 700;
    border-radius: var(--r-full);
    white-space: nowrap;
    letter-spacing: .02em;
    border: 1px solid transparent;
}

.badge-status-completed, .badge-success     { background: var(--green-bg);  color: var(--green);  border-color: var(--green-border); }
.badge-status-pending,   .badge-warning     { background: var(--yellow-bg); color: var(--yellow); border-color: var(--yellow-border); }
.badge-status-active,    .badge-priority-high { background: var(--yellow-bg); color: var(--yellow); border-color: var(--yellow-border); }
.badge-status-cancelled, .badge-danger      { background: var(--red-bg);   color: var(--red);    border-color: var(--red-border); }
.badge-status-on_hold                       { background: var(--red-bg);   color: var(--red);    border-color: var(--red-border); }
.badge-status-in_progress, .badge-info, .badge-priority-medium { background: var(--blue-bg); color: var(--blue); border-color: var(--blue-border); }
.badge-secondary, .badge-priority-low       { background: var(--surface-2); color: var(--text-2); border-color: var(--border-strong); }
.badge-status-budgeted                      { background: var(--purple-bg); color: var(--tx-violet-600); border-color: var(--purple-border); }

/* =========================================================================
   ALERTS
   ========================================================================= */
.alert {
    padding: 11px 15px;
    margin-bottom: var(--sp-5);
    border-radius: var(--r-md);
    border-left: 3px solid;
    font-size: 13.5px;
    display: flex;
    align-items: flex-start;
    gap: var(--sp-3);
    line-height: 1.5;
}

.alert-success              { background: var(--green-bg);  border-color: var(--green);  color: var(--tx-green-800); }
.alert-error, .alert-danger { background: var(--red-bg);    border-color: var(--red);    color: var(--tx-red-800); }
.alert-warning              { background: var(--yellow-bg); border-color: var(--yellow); color: var(--tx-amber-800); }
.alert-info                 { background: var(--blue-bg);   border-color: var(--blue);   color: var(--tx-blue-800); }

/* =========================================================================
   ACTION ICONS
   ========================================================================= */
.actions-cell { text-align: center; white-space: nowrap; }

.action-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    margin: 0 1px;
    border-radius: var(--r-sm);
    background: transparent;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all var(--t-fast);
    font-size: 15px;
    text-decoration: none;
    color: var(--text-3);
}

.action-icon:hover {
    background: var(--brand-muted);
    border-color: var(--bd-5b5ef6-a20);
    color: var(--brand);
    transform: scale(1.08);
}

.action-delete { color: var(--text-3); }
.action-delete:hover { background: var(--red-bg); border-color: var(--red-border); color: var(--red); }

/* =========================================================================
   PROJECT CODE PILL
   ========================================================================= */
.project-code {
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 600;
    color: var(--brand);
    background: var(--brand-muted);
    border: 1px solid var(--bd-5b5ef6-a18);
    padding: 3px 8px;
    border-radius: var(--r-sm);
    letter-spacing: .03em;
}

/* =========================================================================
   STATS GRID
   ========================================================================= */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: var(--sp-4);
    margin-bottom: var(--sp-8);
}

.stat-card {
    background: var(--surface);
    padding: var(--sp-5);
    border-radius: var(--r-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-xs);
    display: flex;
    align-items: center;
    gap: var(--sp-4);
    transition: all var(--t-base);
    position: relative;
    overflow: hidden;
}

.stat-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--brand), var(--bg-9b9ef8));
    opacity: 0;
    transition: opacity var(--t-base);
}

.stat-card:hover { box-shadow: var(--shadow-md); border-color: var(--bd-5b5ef6-a25); transform: translateY(-2px); }
.stat-card:hover::after { opacity: 1; }

.stat-icon {
    width: 46px; height: 46px;
    display: flex; align-items: center; justify-content: center;
    background: var(--brand-muted);
    border-radius: var(--r-md);
    flex-shrink: 0;
    color: var(--brand);
    font-size: 20px;
}

.stat-info h3 {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-1);
    line-height: 1;
    letter-spacing: -.03em;
    margin-bottom: 3px;
}

.stat-info p {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: .05em;
}

/* =========================================================================
   EMPTY STATE
   ========================================================================= */
.empty-state {
    padding: var(--sp-12) var(--sp-8);
    text-align: center;
    color: var(--text-3);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--sp-4);
}

.empty-state svg { opacity: .25; }
.empty-state p { font-size: 14px; color: var(--text-3); max-width: 320px; }

/* =========================================================================
   TIMESHEET / FILTER
   ========================================================================= */
.timesheet-form, .filters-section {
    background: var(--surface);
    padding: var(--sp-5);
    border-radius: var(--r-lg);
    border: 1px solid var(--border);
    margin-bottom: var(--sp-5);
    box-shadow: var(--shadow-xs);
}

.user-info-box {
    background: linear-gradient(135deg, var(--brand-muted) 0%, var(--bg-5b5ef6-a5) 100%);
    padding: var(--sp-5);
    border-radius: var(--r-lg);
    border-left: 3px solid var(--brand);
    margin-bottom: var(--sp-5);
}

.user-info-box h3 { font-size: 11px; font-weight: 700; color: var(--text-3); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 4px; }
.user-info-box .user-name { font-size: 17px; font-weight: 700; color: var(--brand); }

.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--sp-4);
    align-items: end;
}

/* =========================================================================
   UTILITIES
   ========================================================================= */
.text-muted    { color: var(--text-3); }
.text-center   { text-align: center; }
.text-right    { text-align: right; }
.text-primary  { color: var(--brand); }
.text-success  { color: var(--green); }
.text-danger   { color: var(--red); }
.c-primary { color: var(--brand); }
.c-success { color: var(--green); }
.c-danger  { color: var(--red); }
.c-warning { color: var(--yellow); }

.mt-0 { margin-top: 0; } .mt-1 { margin-top: var(--sp-2); } .mt-2 { margin-top: var(--sp-4); } .mt-3 { margin-top: var(--sp-6); } .mt-4 { margin-top: var(--sp-8); }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: var(--sp-2); } .mb-2 { margin-bottom: var(--sp-4); } .mb-3 { margin-bottom: var(--sp-6); }
.p-0 { padding: 0; } .p-1 { padding: var(--sp-2); } .p-2 { padding: var(--sp-4); } .p-3 { padding: var(--sp-6); }

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 1024px) {
    .main-content { padding: var(--sp-6) var(--sp-4); }
    .container, .section { padding: var(--sp-5); }
}

@media (max-width: 768px) {
    .page-header h1 { font-size: 18px; }
    .form-grid { grid-template-columns: 1fr; }
    .form-actions { flex-direction: column; }
    .form-actions .btn { width: 100%; justify-content: center; }
    .stats-grid { grid-template-columns: 1fr 1fr; gap: var(--sp-3); }
    .main-content { padding: var(--sp-4) var(--sp-3); }
    .table { font-size: 12.5px; }
    .table thead th, .table tbody td { padding: 9px 10px; }
    .hide-mobile { display: none; }
}

@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr; }
    .stat-card { padding: var(--sp-4); }
    .stat-icon { width: 40px; height: 40px; }
}

/* =========================================================================
   ACCESSIBILITY
   ========================================================================= */
*:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* =========================================================================
   PRINT
   ========================================================================= */
@media print {
    .sidebar, .top-header, .btn-logout, .form-actions, .action-icon { display: none !important; }
    body { background: var(--bg-white); }
    .container, .section { box-shadow: none; border: 1px solid var(--bd-cccccc); }
}
