/* =========================================
   GLOBAL.CSS — Variables, Layout y Componentes Base
   Paleta fijada: no cambiar tokens de color
   ========================================= */

:root {
    /* ── Fondos y Tipografía ── */
    --bg: #f2f5fb;
    --surface: #ffffff;
    --surface-2: #f0f4fb;
    --primary: #0d1f3c;
    --secondary: #4a6080;
    --muted: #8ca0bc;

    /* ── Paleta de Colores ── */
    --navy: #0d1f3c;
    --navy-2: #1a3256;
    --navy-3: #274270;
    --navy-soft: #e8f0fb;
    --accent: #1d4ed8;
    --accent-light: #dbeafe;
    --accent-mid: #93c5fd;
    --success: #059669;
    --success-bg: #ecfdf5;
    --success-border: #a7f3d0;
    --danger: #dc2626;
    --danger-bg: #fef2f2;
    --danger-border: #fecaca;
    --warning: #d97706;
    --warning-bg: #fffbeb;
    --warning-border: #fde68a;

    /* ── Estructura ── */
    --border: #dce4f0;
    --border-strong: #b8c8e0;
    --shadow-sm: 0 1px 3px rgba(13, 31, 60, 0.06);
    --shadow-md: 0 4px 16px -2px rgba(13, 31, 60, 0.10);
    --shadow-lg: 0 20px 30px -8px rgba(13, 31, 60, 0.14);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

::selection {
    background: var(--accent-light);
    color: var(--navy);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', 'Inter', system-ui, sans-serif;
    background-color: var(--bg);
    background-image:
        radial-gradient(ellipse 90% 55% at 100% -10%, rgba(29, 78, 216, 0.07), transparent 55%),
        radial-gradient(ellipse 70% 45% at -10% 110%, rgba(13, 31, 60, 0.06), transparent 50%);
    background-attachment: fixed;
    color: var(--primary);
    min-height: 100vh;
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--surface-2); }
::-webkit-scrollbar-thumb {
    background: var(--border-strong);
    border-radius: 999px;
    border: 2px solid var(--surface-2);
}
::-webkit-scrollbar-thumb:hover { background: var(--muted); }

.text-mono { font-family: 'DM Mono', monospace; }
.text-muted { color: var(--muted); }
.hidden { display: none !important; }
.container { max-width: 1180px; margin: 0 auto; }
main { padding: 40px 20px; }

/* ── Animaciones ── */
.fade-in-container {
    width: 100%;
    animation: fadeIn 0.5s var(--ease-out);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Layouts Globales ── */
body.gray-layout {
    background: linear-gradient(145deg, #e8f0fb 0%, #dce8f8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

body.layout-sidebar {
    display: flex;
    height: 100vh;
    overflow: hidden;
    background: var(--bg);
    margin: 0;
}

body.layout-sidebar main {
    padding: 0 !important;
    display: flex !important;
    flex-direction: row !important;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
}

/* ── Tarjetas Estructurales ── */
.layout-wrapper {
    display: flex;
    gap: 24px;
    max-width: 1060px;
    margin: 0 auto;
    align-items: flex-start;
    justify-content: center;
}

.card {
    background: var(--surface);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    width: 100%;
}

.card-header {
    padding: 24px 28px;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(180deg, var(--surface-2), #ffffff);
    text-align: center;
}

.card-body { padding: 24px 28px; }
.form-container { width: 100%; max-width: 520px; margin: 40px auto; padding: 0 20px; }

/* ── Sidebar ── */
.sidebar {
    width: 272px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, transparent 180px),
        linear-gradient(180deg, var(--navy-2) 0%, var(--navy) 42%, #06101f 100%);
    color: #ffffff;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    overflow-y: auto;
    z-index: 10;
    height: 100%;
    box-shadow: 8px 0 28px -12px rgba(13, 31, 60, 0.45);
}

.sidebar-header {
    padding: 22px 20px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 80%);
    position: relative;
}

.sidebar-header::after {
    content: '';
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 0;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--accent), transparent);
}

.sidebar-project-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 6px;
}

.sidebar-project-name {
    font-size: 16.5px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.35;
    letter-spacing: -0.2px;
    margin-bottom: 12px;
}

.sidebar-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.55);
}

.sidebar-meta i { font-size: 11px; color: var(--accent-mid); }
.sidebar-meta strong { color: rgba(255, 255, 255, 0.9); font-weight: 600; }

.sidebar .btn-outline {
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    border-color: rgba(147, 197, 253, 0.35);
}

.sidebar .btn-outline:hover {
    background: rgba(29, 78, 216, 0.35);
    color: #ffffff;
    border-color: var(--accent-mid);
}

.sidebar-footer {
    padding: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-section {
    padding: 14px 12px 8px;
    flex: 1;
    overflow-y: auto;
}

.nav-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    padding: 0 8px;
    margin-bottom: 8px;
    margin-top: 4px;
}

.nav-btn {
    width: 100%;
    border: none;
    background: none;
    text-align: left;
    padding: 10px 12px;
    font-size: 13.5px;
    font-family: inherit;
    color: rgba(255, 255, 255, 0.72);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: var(--radius-md);
    transition: background 0.18s var(--ease-out), color 0.18s, box-shadow 0.18s;
    margin-bottom: 4px;
    position: relative;
}

.nav-btn i { width: 16px; text-align: center; flex-shrink: 0; font-size: 13px; opacity: 0.8; }
.nav-btn:hover { background: rgba(255, 255, 255, 0.1); color: #ffffff; }
.nav-btn.active {
    background: linear-gradient(90deg, var(--accent), #2563eb);
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 8px 18px -8px rgba(29, 78, 216, 0.85);
}
.nav-btn.active i { color: #ffffff; opacity: 1; }

.main-content {
    flex: 1;
    overflow-y: auto;
    padding: 32px 36px;
    background:
        radial-gradient(ellipse 70% 40% at 0% 0%, rgba(232, 240, 251, 0.9), transparent 50%),
        var(--bg);
    height: 100%;
}

/* ── Exportaciones (Sidebar) ── */
.export-section {
    padding: 14px 12px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.22);
}

.export-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    padding: 0 8px;
    margin-bottom: 8px;
}

.btn-export {
    display: flex;
    align-items: center;
    gap: 9px;
    width: 100%;
    padding: 8px 10px;
    margin-bottom: 4px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-size: 12.5px;
    font-family: inherit;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 2px solid transparent;
    background: rgba(255, 255, 255, 0.05);
    transition: background 0.15s, transform 0.15s var(--ease-out), border-color 0.15s;
    cursor: pointer;
}

.btn-export:hover { background: rgba(255, 255, 255, 0.12); transform: translateX(3px); }

.export-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08);
}

.dot-tech { background: #60a5fa; }
.dot-aux { background: #a78bfa; }
.dot-prov { background: #fbbf24; }
.dot-buy { background: #f87171; }
.dot-admin { background: #34d399; }

.btn-export:has(.dot-tech):hover { border-left-color: #60a5fa; }
.btn-export:has(.dot-aux):hover { border-left-color: #a78bfa; }
.btn-export:has(.dot-prov):hover { border-left-color: #fbbf24; }
.btn-export:has(.dot-buy):hover { border-left-color: #f87171; }
.btn-export:has(.dot-admin):hover { border-left-color: #34d399; }
.btn-export:has(.export-dot[style*="0ea5e9"]):hover { border-left-color: #0ea5e9; }

/* ── Tarjetas de Estadísticas (Stats Strip) ── */
.stats-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 22px; }

.stat-card {
    background: linear-gradient(180deg, #ffffff 0%, var(--surface) 100%);
    border: 1px solid var(--border);
    border-left: 3px solid var(--border-strong);
    border-radius: var(--radius-lg);
    padding: 16px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s var(--ease-out), box-shadow 0.2s ease, border-color 0.18s ease;
}

.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.stat-card:has(.stat-icon[style*="--accent"]) { border-left-color: var(--accent); }
.stat-card:has(.stat-icon[style*="--success"]) { border-left-color: var(--success); }
.stat-card:has(.stat-icon[style*="--warning"]) { border-left-color: var(--warning); }
.stat-card:has(.stat-icon[style*="--danger"]) { border-left-color: var(--danger); }

.stat-icon {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
    box-shadow: inset 0 0 0 1px rgba(13, 31, 60, 0.04);
}

.stat-val { font-size: 22px; font-weight: 700; color: var(--navy); line-height: 1; letter-spacing: -0.4px; }
.stat-lbl { font-size: 12px; color: var(--secondary); margin-top: 4px; }

/* ── Encabezados de Página ── */
.page-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border);
}

.page-header-left h1,
.page-header h1,
.page-header h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.35px;
}

.page-header h1 i,
.page-header h2 i,
.page-header-left h1 i {
    font-size: 14px;
    color: var(--accent);
    background: linear-gradient(145deg, var(--accent-light), #ffffff);
    border: 1px solid var(--accent-mid);
    box-shadow: 0 3px 8px rgba(29, 78, 216, 0.14);
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sub {
    font-size: 13px;
    color: var(--secondary);
    margin-top: 6px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.header-actions .input-wrapper {
    min-width: 220px;
    border-radius: 999px;
}

/* ── Formularios e Inputs ── */
.input-group { margin-bottom: 20px; }

.input-group label,
.label-normal {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--secondary);
    margin-bottom: 6px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    border: 1.5px solid var(--border-strong);
    border-radius: var(--radius-md);
    background: var(--surface);
    transition: border-color 0.15s, box-shadow 0.15s;
    overflow: hidden;
}

.input-wrapper:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.12);
}

.input-wrapper > i:first-child {
    position: absolute;
    left: 14px;
    color: var(--muted);
    font-size: 14px;
    pointer-events: none;
    z-index: 1;
}

.input-wrapper input,
.input-wrapper select,
.input-wrapper textarea {
    width: 100%;
    border: none !important;
    outline: none !important;
    background: transparent !important;
    font-family: inherit;
    font-size: 14px;
    color: var(--primary);
    padding: 12px 14px 12px 42px !important;
    box-sizing: border-box;
}

.input-wrapper select {
    padding-right: 36px !important;
    cursor: pointer;
}

.input-wrapper.no-icon input,
.input-wrapper.no-icon select,
.input-wrapper.no-icon textarea {
    padding-left: 14px !important;
}

.select-arrow {
    position: absolute;
    right: 14px;
    color: var(--muted);
    font-size: 11px;
    pointer-events: none;
}

textarea {
    resize: none !important;
    overflow-y: hidden !important;
    font-family: 'DM Sans', 'Inter', system-ui, sans-serif !important;
    font-size: 13.5px !important;
    color: var(--primary) !important;
    line-height: 1.6 !important;
    min-height: 44px;
    box-sizing: border-box;
    transition: border-color 0.15s, box-shadow 0.15s;
    padding-top: 10px;
}

.btn-toggle-pass {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: var(--muted);
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    transition: color 0.2s;
    z-index: 2;
}
.btn-toggle-pass:hover { color: var(--accent); }

.help-text {
    font-size: 11.5px;
    color: var(--muted);
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ── Botones ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 9px 18px;
    border-radius: var(--radius-md);
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, transform 0.12s, box-shadow 0.15s, border-color 0.15s, color 0.15s;
    border: 1.5px solid transparent;
    text-decoration: none;
    font-family: inherit;
    white-space: nowrap;
    line-height: 1;
}

.btn:active { transform: scale(0.97) !important; }

.btn-primary {
    background: linear-gradient(180deg, var(--navy-2), var(--navy));
    color: white;
    border-color: var(--navy);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12) inset;
}
.btn-primary:hover {
    background: linear-gradient(180deg, var(--navy-3), var(--navy-2));
    border-color: var(--navy-2);
    transform: translateY(-1px);
    box-shadow: 0 8px 18px -8px rgba(13, 31, 60, 0.45);
}

.btn-outline { background: var(--surface); color: var(--secondary); border-color: var(--border-strong); }
.btn-outline:hover { background: var(--navy-soft); color: var(--navy); border-color: #c0d0e8; }

.btn-danger {
    background: var(--danger);
    color: #ffffff;
    border-color: var(--danger);
}
.btn-danger:hover {
    background: #b91c1c;
    border-color: #b91c1c;
    transform: translateY(-1px);
    box-shadow: 0 8px 16px -8px rgba(220, 38, 38, 0.55);
}

.btn-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 6px 12px !important;
    width: auto !important;
    height: auto !important;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
    font-family: inherit;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: background 0.15s, color 0.15s, transform 0.1s, box-shadow 0.15s;
    text-decoration: none;
    background: var(--surface);
    color: var(--secondary);
    white-space: nowrap;
}

.btn-action:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }

.btn-action.edit { background: var(--accent-light); color: var(--accent); border-color: var(--accent-mid); }
.btn-action.edit:hover { background: #c7ddfc; }

.btn-action.delete { background: var(--danger-bg); color: var(--danger); border-color: var(--danger-border); }
.btn-action.delete:hover { background: #fecaca; }

.btn-action.btn-deactivate { background: var(--warning-bg); color: var(--warning); border-color: var(--warning-border); }
.btn-action.btn-deactivate:hover { background: #fde68a; }

.btn-action.btn-activate { background: var(--success-bg); color: var(--success); border-color: var(--success-border); }
.btn-action.btn-activate:hover { background: #a7f3d0; }

/* ── Tablas Base ── */
.table-wrapper {
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}

.table-scroll { overflow-x: auto; }

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    white-space: nowrap;
}

thead { background: linear-gradient(180deg, var(--navy-soft), #eef4fc); }

th {
    padding: 13px 18px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--secondary);
    font-weight: 700;
    border-bottom: 1.5px solid var(--border);
    vertical-align: middle;
    position: sticky;
    top: 0;
    z-index: 1;
    background: inherit;
}

td {
    padding: 15px 18px;
    font-size: 13.5px;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
    color: var(--primary);
    line-height: 1.5;
}

tbody tr { transition: background 0.12s ease; }
tbody tr:nth-child(even) { background: rgba(232, 240, 251, 0.35); }
tbody tr:hover { background: #f6f9ff; }
tbody tr:last-child td { border-bottom: none; }

.date-cell {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--secondary);
    font-family: 'DM Mono', monospace;
    font-size: 12.5px;
    font-weight: 500;
}

.date-cell i { color: var(--accent); }

.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    border: 1px solid var(--border);
    background: var(--surface-2);
    color: var(--secondary);
    white-space: nowrap;
}

.badge.success { background: var(--success-bg); color: var(--success); border-color: var(--success-border); }
.badge.warning { background: var(--warning-bg); color: var(--warning); border-color: var(--warning-border); }
.badge.danger  { background: var(--danger-bg);  color: var(--danger);  border-color: var(--danger-border);  }

.actions-cell { display: flex; align-items: center; gap: 6px; }

/* ── Zona de carga ── */
.upload-zone {
    border: 2px dashed var(--border-strong);
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    background: var(--surface-2);
    margin-top: 20px;
}

.upload-zone:hover,
.upload-zone.drag-over {
    border-color: var(--accent);
    background: var(--accent-light);
    box-shadow: 0 0 0 4px rgba(29, 78, 216, 0.08);
}

/* ── Modales ── */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(13, 31, 60, 0.62);
    backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal-overlay.active { display: flex; }

.modal-content {
    background: var(--surface);
    width: 100%;
    max-width: 440px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, 0.4) inset;
    overflow: hidden;
    transform: scale(0.97) translateY(8px);
    opacity: 0;
    transition: transform 0.25s var(--ease-out), opacity 0.2s ease;
}

.modal-overlay.active .modal-content {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.modal-header {
    padding: 18px 24px;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(180deg, var(--navy-soft), #f7faff);
}

.modal-header h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--navy);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 0;
}

.modal-body {
    padding: 22px 24px;
    font-size: 13.5px;
    color: var(--secondary);
    line-height: 1.65;
}

.modal-footer {
    padding: 14px 24px;
    border-top: 1px solid var(--border);
    background: var(--surface-2);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* ── Flash Messages ── */
.flash-container {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 360px;
    z-index: 9999;
    pointer-events: none;
}

.flash {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-radius: var(--radius-md);
    font-size: 13.5px;
    font-weight: 500;
    margin-bottom: 10px;
    border: 1px solid;
    box-shadow: var(--shadow-md);
    pointer-events: all;
    animation: flashSlideIn 0.35s var(--ease-out) forwards;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.flash i { font-size: 15px; flex-shrink: 0; }
.flash.success { background: var(--success-bg); color: var(--success); border-color: var(--success-border); }
.flash.error   { background: var(--danger-bg);  color: var(--danger);  border-color: var(--danger-border);  }
.flash.warning { background: var(--warning-bg); color: var(--warning); border-color: var(--warning-border); }

@keyframes flashSlideIn {
    from { opacity: 0; transform: translateX(110%); }
    to   { opacity: 1; transform: translateX(0); }
}

/* ── Responsividad Global ── */
@media (max-width: 768px) {
    body.layout-sidebar { flex-direction: column; overflow-y: auto; height: auto; min-height: 100vh; }
    body.layout-sidebar main { flex-direction: column !important; height: auto; overflow: visible; }

    .sidebar { width: 100%; height: auto; border-right: none; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
    .nav-section { display: flex; flex-direction: row; overflow-x: auto; padding: 10px; gap: 8px; flex-wrap: nowrap; border-bottom: none; }
    .nav-btn { white-space: nowrap; width: auto; margin-bottom: 0; padding: 8px 12px; }

    .main-content { padding: 20px 15px; }
    .page-header { flex-direction: column; align-items: flex-start; gap: 14px; }

    .form-grid-2 { grid-template-columns: 1fr; }
    .stats-strip { grid-template-columns: 1fr; }

    .table-wrapper { border-radius: var(--radius-md); margin-left: -15px; margin-right: -15px; border-left: none; border-right: none; }
    th, td { padding: 11px 10px; font-size: 12.5px; }

    .flash-container { width: calc(100% - 24px); right: 12px; left: 12px; }
}
