:root {
    --bg: #0b1120;
    --sidebar: #111827;
    --surface: #0f172a;
    --card: #172033;
    --card-soft: #1e293b;

    --border: #253045;
    --border-soft: rgba(255, 255, 255, .06);

    --primary: #2563eb;
    --primary-soft: rgba(37, 99, 235, .16);
    --success: #16a34a;
    --warning: #f59e0b;
    --danger: #dc2626;

    --text: #f8fafc;
    --muted: #94a3b8;
    --muted-2: #64748b;

    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 24px;

    --shadow-card: 0 20px 45px rgba(0, 0, 0, .22);
    --transition: .25s ease;

    --overlay-rgb: 255, 255, 255;
    --panel-strong-rgb: 15, 23, 42;
    --border-rgb: 148, 163, 184;

    --text-strong: #ffffff;
    --text-soft: #cbd5e1;
    --primary-text: #93c5fd;
    --success-text: #4ade80;
    --warning-text: #fbbf24;
    --danger-text: #fca5a5;

    --btn-secondary-bg: #1e293b;
    --btn-secondary-border: #334155;
    --input-bg: #0f172a;
    --input-border: #334155;
}

[data-theme="light"] {
    --bg: #eef2f7;
    --sidebar: #ffffff;
    --surface: #ffffff;
    --card: #ffffff;
    --card-soft: #f8fafc;

    --border: #e2e8f0;
    --border-soft: rgba(15, 23, 42, .06);

    --primary: #2563eb;
    --primary-soft: rgba(37, 99, 235, .10);
    --success: #16a34a;
    --warning: #d97706;
    --danger: #dc2626;

    --text: #0f172a;
    --muted: #64748b;
    --muted-2: #94a3b8;

    --shadow-card: 0 10px 30px rgba(15, 23, 42, .08);

    --overlay-rgb: 15, 23, 42;
    --panel-strong-rgb: 255, 255, 255;
    --border-rgb: 100, 116, 139;

    --text-strong: #0f172a;
    --text-soft: #334155;
    --primary-text: #1d4ed8;
    --success-text: #15803d;
    --warning-text: #b45309;
    --danger-text: #b91c1c;

    --btn-secondary-bg: #ffffff;
    --btn-secondary-border: #cbd5e1;
    --input-bg: #ffffff;
    --input-border: #cbd5e1;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background:
        linear-gradient(rgba(2, 6, 23, .88),
            rgba(2, 6, 23, .96)),
        url('/assets/img/background.jpg');

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;

    color: var(--text);
    font-family: Inter, Segoe UI, sans-serif;
}

a {
    text-decoration: none;
}

.app {

    display: flex;

    min-height: 100vh;
}

.sidebar {

    width: 280px;

    background: var(--sidebar);

    border-right: 1px solid var(--border);

    display: flex;

    flex-direction: column;
}

.sidebar-logo {

    padding: 20px;

    border-bottom: 1px solid var(--border);

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 15px;

    min-height: 90px;
}

.logo-company {

    width: 90px;
    height: 50px;

    object-fit: contain;

    display: block;
}

.logo-divider {

    width: 1px;
    height: 35px;

    background: #334155;
}

.sidebar-logo h2 {

    font-size: 18px;
}

.menu {

    padding: 15px;
}

.menu a {

    display: flex;

    align-items: center;

    gap: 12px;

    color: #cbd5e1;

    padding: 14px 18px;

    border-radius: 12px;

    margin-bottom: 8px;

    transition: .25s;
}

.menu a:hover {

    background: #1f2937;

    color: white;
}

.menu-section {
    margin: 22px 18px 8px;
    font-size: 11px;
    font-weight: 900;
    color: var(--muted-2);
    text-transform: uppercase;
    letter-spacing: .08em;
}

.menu a.active {
    background: var(--primary-soft);
    color: #fff;
    border: 1px solid rgba(96, 165, 250, .25);
}

.menu a i {
    width: 18px;
    text-align: center;
}

.main {

    flex: 1;
}

.topbar {

    height: 70px;

    border-bottom: 1px solid var(--border);

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 0 30px;

    background: #0f172a;
}

.page {

    padding: 35px;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--muted);
    font-size: 14px;
}

.theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, .06);
    color: var(--text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.theme-toggle:hover {
    border-color: var(--primary);
    color: #60a5fa;
}

.hero {

    margin-bottom: 40px;
}

.hero h1 {

    font-size: 42px;

    margin-bottom: 10px;
}

.hero p {

    color: var(--muted);
}

.cards {

    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 30px;
}

.card {

    background: var(--card);

    border: 1px solid var(--border);

    border-radius: 22px;

    padding: 35px;

    transition: .25s;
}

.card:hover {

    transform: translateY(-5px);

    border-color: #2563eb;

    box-shadow:
        0 15px 35px rgba(37, 99, 235, .20);
}

.card-icon {

    width: 60px;
    height: 60px;

    border-radius: 14px;

    background: #2563eb20;

    display: flex;

    align-items: center;

    justify-content: center;

    margin-bottom: 20px;
}

.card-icon i {

    font-size: 26px;

    color: #60a5fa;
}

.card h2 {

    margin-bottom: 10px;
}

.card p {

    color: var(--muted);

    line-height: 1.7;
}


@media(max-width:900px) {

    .sidebar {

        display: none;
    }

    .cards {

        grid-template-columns: 1fr;
    }

    .hero h1 {

        font-size: 32px;
    }

}

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    margin: 35px 0;
}

.kpi-card {
    background: linear-gradient(180deg, #172033, #111827);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .18);
}

.kpi-card span {
    display: block;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 10px;
}

.kpi-card strong {
    display: block;
    font-size: 36px;
    line-height: 1;
    color: #fff;
}

.table-card {
    background: linear-gradient(180deg, #172033, #111827);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 28px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, .22);
}

.table-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 25px;
}

.table-header h2 {
    font-size: 26px;
}

.table-header p {
    color: var(--muted);
    margin-top: 6px;
}

.btn-export {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #16a34a;
    color: #fff;
    padding: 12px 18px;
    border-radius: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.table-responsive {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    min-width: 1050px;
}

.data-table th {
    text-align: left;
    color: #94a3b8;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .5px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
}

.data-table td {
    padding: 15px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
    color: #e5e7eb;
    font-size: 14px;
    vertical-align: middle;
}

.data-table tbody tr:hover {
    background: rgba(37, 99, 235, .10);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 11px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .4px;
}

.status-ok {
    background: #16a34a22;
    color: #4ade80;
}

.status-pending {
    background: #f59e0b22;
    color: #fbbf24;
}

@media(max-width:900px) {
    .kpi-grid {
        grid-template-columns: 1fr;
    }

    .table-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

.main {
    flex: 1;

    background:
        linear-gradient(rgba(2, 6, 23, .78),
            rgba(2, 6, 23, .90)),
        url('/assets/img/background.jpg');

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.card h2,
.module-card h2 {
    color: #f8fafc;
}

.card:hover h2 {
    color: #60a5fa;
}

.card {
    position: relative;
    overflow: hidden;
}

.card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(37, 99, 235, .18), transparent 45%);
    opacity: 0;
    transition: .25s;
}

.card:hover::before {
    opacity: 1;
}

.card>* {
    position: relative;
    z-index: 1;
}

a,
a:visited {
    color: inherit;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;

    background:
        radial-gradient(circle at top right,
            rgba(37, 99, 235, .20),
            transparent 35%);

    pointer-events: none;
    z-index: -1;
}

.filter-card {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
    align-items: end;

    background: rgba(23, 32, 51, .92);
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 22px;
    margin-bottom: 28px;
    box-shadow: 0 18px 38px rgba(0, 0, 0, .22);
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-group label {
    color: #cbd5e1;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .4px;
}

.filter-group input,
.filter-group select {
    height: 44px;
    border-radius: 12px;
    border: 1px solid #334155;
    background: #0f172a;
    color: #f8fafc;
    padding: 0 12px;
    outline: none;
}

.filter-group input:focus,
.filter-group select:focus {
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, .15);
}

.filter-actions {
    display: flex;
    gap: 10px;
}

.btn-primary,
.btn-secondary {
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 12px;
    padding: 0 16px;
    border: 0;
    cursor: pointer;
    font-weight: 900;
    white-space: nowrap;
}

.btn-primary {
    background: #2563eb;
    color: white;
}

.btn-secondary {
    background: #1e293b;
    color: #cbd5e1;
    border: 1px solid #334155;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    margin-top: 22px;
    color: #cbd5e1;
}

.pagination a {
    background: #1e293b;
    border: 1px solid #334155;
    padding: 10px 14px;
    border-radius: 10px;
    color: #f8fafc;
    font-weight: 800;
}

.pagination span {
    color: #94a3b8;
    font-weight: 700;
}

@media(max-width:1100px) {
    .filter-card {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media(max-width:700px) {
    .filter-card {
        grid-template-columns: 1fr;
    }

    .filter-actions {
        flex-direction: column;
    }

    .pagination {
        justify-content: center;
    }
}

/* ================================
   MEJORA CONTINUA - MOBILE ONLY
================================ */

@media (max-width: 700px) {

    .page {
        padding: 18px;
    }

    .topbar {
        height: auto;
        min-height: 62px;
        padding: 14px 18px;
        gap: 10px;
    }

    .hero {
        margin-bottom: 24px;
    }

    .hero h1 {
        font-size: 30px;
        line-height: 1.15;
    }

    .hero p {
        font-size: 14px;
        line-height: 1.45;
    }

    .kpi-grid {
        grid-template-columns: 1fr;
        gap: 14px;
        margin: 24px 0;
    }

    .kpi-card {
        padding: 18px;
        border-radius: 18px;
    }

    .kpi-card strong {
        font-size: 32px;
    }

    .table-card {
        padding: 16px;
        border-radius: 18px;
    }

    .table-header {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        margin-bottom: 18px;
    }

    .table-header h2 {
        font-size: 22px;
    }

    .table-header p {
        font-size: 13px;
    }

    .table-header .btn-primary,
    .table-header .btn-secondary,
    .table-header .btn-export {
        width: 100%;
    }

    .table-responsive {
        overflow-x: visible;
    }

    .data-table {
        min-width: 0;
        width: 100%;
        border-collapse: separate;
        border-spacing: 0 14px;
    }

    .data-table thead {
        display: none;
    }

    .data-table tbody,
    .data-table tr,
    .data-table td {
        display: block;
        width: 100%;
    }

    .data-table tr {
        background: rgba(15, 23, 42, .92);
        border: 1px solid var(--border);
        border-radius: 16px;
        padding: 14px;
        box-shadow: 0 12px 28px rgba(0, 0, 0, .22);
    }

    .data-table td {
        border-bottom: 1px solid rgba(255, 255, 255, .06);
        padding: 10px 0;
        font-size: 14px;
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        gap: 14px;
        text-align: right;
    }

    .data-table td:last-child {
        border-bottom: none;
    }

    .data-table td::before {
        font-weight: 900;
        color: #94a3b8;
        text-transform: uppercase;
        font-size: 11px;
        letter-spacing: .4px;
        flex: 0 0 95px;
        text-align: left;
    }

    .data-table td:nth-child(1)::before {
        content: "Código";
    }

    .data-table td:nth-child(2)::before {
        content: "Título";
    }

    .data-table td:nth-child(3)::before {
        content: "Proceso";
    }

    .data-table td:nth-child(4)::before {
        content: "Severidad";
    }

    .data-table td:nth-child(5)::before {
        content: "Estado";
    }

    .data-table td:nth-child(6)::before {
        content: "Norma";
    }

    .data-table td:nth-child(7)::before {
        content: "Fecha";
    }
}

/* ================================
   UNIVERSALES
================================ */

.section {
    margin-bottom: 34px;
}

.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.section-title h2 {
    font-size: 26px;
    margin-bottom: 6px;
}

.section-title p {
    color: var(--muted);
    line-height: 1.5;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.panel {
    background: linear-gradient(180deg, var(--card), var(--sidebar));
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 28px;
    box-shadow: var(--shadow-card);
}

.panel-soft {
    background: rgba(23, 32, 51, .88);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 22px;
}

.muted {
    color: var(--muted);
}

.text-small {
    font-size: 13px;
}

.text-uppercase {
    text-transform: uppercase;
    letter-spacing: .06em;
    font-weight: 900;
}

.divider {
    height: 1px;
    background: var(--border);
    margin: 24px 0;
}

.action-card {
    display: block;
    background: linear-gradient(180deg, var(--card), var(--sidebar));
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 28px;
    transition: var(--transition);
}

.action-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: 0 18px 38px rgba(37, 99, 235, .20);
}

.action-card-icon {
    width: 54px;
    height: 54px;
    border-radius: var(--radius-md);
    background: var(--primary-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

.action-card-icon i {
    font-size: 24px;
    color: #60a5fa;
}

.action-card h3 {
    font-size: 22px;
    margin-bottom: 8px;
}

.action-card p {
    color: var(--muted);
    line-height: 1.6;
}

.stat-card {
    background: linear-gradient(180deg, var(--card), var(--sidebar));
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 22px;
}

.stat-card span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 10px;
}

.stat-card strong {
    display: block;
    font-size: 34px;
    color: #fff;
}

.stat-card small {
    display: block;
    margin-top: 8px;
    color: var(--muted);
}

.stat-card-link {
    display: block;
    cursor: pointer;
    transition: var(--transition);
}

.stat-card-link:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(37, 99, 235, .18);
}

.chart-placeholder {
    min-height: 280px;
    border: 1px dashed #334155;
    border-radius: var(--radius-lg);
    background: rgba(15, 23, 42, .55);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    text-align: center;
    padding: 24px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 11px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .04em;
}

.badge-primary {
    background: var(--primary-soft);
    color: #93c5fd;
}

.badge-success {
    background: rgba(22, 163, 74, .16);
    color: #4ade80;
}

.badge-warning {
    background: rgba(245, 158, 11, .16);
    color: #fbbf24;
}

.badge-danger {
    background: rgba(220, 38, 38, .16);
    color: #fca5a5;
}
@media(max-width:1100px) {
    .grid-4,
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media(max-width:700px) {
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .panel,
    .action-card {
        padding: 20px;
    }
}

/* ==============================
   Module cards
   ============================== */

.module-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.module-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: rgba(15, 25, 42, 0.88);
    border: 1px solid rgba(120, 145, 175, 0.18);
    border-radius: 22px;
    padding: 28px;
    min-height: 190px;
    transition: 0.2s ease;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

.module-card:hover {
    transform: translateY(-4px);
    border-color: rgba(135, 200, 70, 0.7);
    background: rgba(18, 31, 52, 0.95);
}

.module-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(62, 125, 230, 0.18);
    color: #8fc943;
    font-size: 26px;
    margin-bottom: 18px;
}

.module-card h2 {
    font-size: 26px;
    margin: 0 0 10px 0;
    color: #ffffff;
}

.module-card p {
    margin: 0;
    color: #b8c4d6;
    line-height: 1.5;
}


/* Formularios - Panel Administrativo */
@import url('/assets/css/formularios/admin-formularios.css');

/* Responsive tablas/forms generales Workspace */
@media (max-width: 900px) {
    .kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .filter-card {
        grid-template-columns: 1fr !important;
    }

    .filter-actions {
        display: flex;
        justify-content: stretch;
    }

    .filter-actions button,
    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .table-responsive {
        overflow: visible;
    }

    .data-table {
        min-width: 0;
        width: 100%;
        border-collapse: separate;
        border-spacing: 0 12px;
    }

    .data-table thead {
        display: none;
    }

    .data-table,
    .data-table tbody,
    .data-table tr,
    .data-table td {
        display: block;
    }

    .data-table tr {
        background: rgba(15, 23, 42, .92);
        border: 1px solid rgba(148, 163, 184, .18);
        border-radius: 16px;
        padding: 14px;
    }

    .data-table td {
        border: 0;
        padding: 8px 0;
        display: grid;
        grid-template-columns: 110px 1fr;
        gap: 10px;
    }

    .data-table td::before {
        color: #94a3b8;
        font-size: 11px;
        font-weight: 900;
        text-transform: uppercase;
        letter-spacing: .06em;
    }

    .data-table td:nth-child(1)::before { content: "ID"; }
    .data-table td:nth-child(2)::before { content: "Usuario"; }
    .data-table td:nth-child(3)::before { content: "Nombre"; }
    .data-table td:nth-child(4)::before { content: "Rol"; }
    .data-table td:nth-child(5)::before { content: "Estado"; }
    .data-table td:nth-child(6)::before { content: "Creado"; }
    .data-table td:nth-child(7)::before { content: "Acciones"; }
}

@media (max-width: 520px) {
    .kpi-grid {
        grid-template-columns: 1fr;
    }

    .table-card,
    .card {
        padding: 18px;
        border-radius: 18px;
    }

    .data-table td {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}

/* ================================
   MODO CLARO (LIGHT THEME)
   Overrides aditivos - no modifica reglas oscuras existentes
================================ */

[data-theme="light"] body,
[data-theme="light"] .main {
    background:
        linear-gradient(rgba(241, 245, 249, .93), rgba(226, 232, 240, .97)),
        url('/assets/img/background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

[data-theme="light"] body::before {
    background: radial-gradient(circle at top right, rgba(37, 99, 235, .10), transparent 35%);
}

[data-theme="light"] .menu a {
    color: #475569;
}

[data-theme="light"] .menu a:hover {
    background: #eef2f7;
    color: #0f172a;
}

[data-theme="light"] .menu a.active {
    color: #1d4ed8;
}

[data-theme="light"] .topbar {
    background: #ffffff;
}

[data-theme="light"] .theme-toggle {
    background: rgba(15, 23, 42, .05);
    border-color: #cbd5e1;
    color: #0f172a;
}

[data-theme="light"] .kpi-card,
[data-theme="light"] .table-card {
    background: linear-gradient(180deg, #ffffff, #f8fafc);
}

[data-theme="light"] .data-table th {
    color: #64748b;
}

[data-theme="light"] .data-table td {
    color: #1e293b;
}

[data-theme="light"] .data-table tbody tr:hover {
    background: rgba(37, 99, 235, .06);
}

[data-theme="light"] .status-ok {
    color: #15803d;
}

[data-theme="light"] .status-pending {
    color: #b45309;
}

[data-theme="light"] .btn-secondary {
    background: #ffffff;
    color: #334155;
    border-color: #cbd5e1;
}

[data-theme="light"] .pagination a {
    background: #ffffff;
    border-color: #cbd5e1;
    color: #0f172a;
}

[data-theme="light"] .pagination span {
    color: #64748b;
}

[data-theme="light"] .filter-card {
    background: rgba(255, 255, 255, .92);
}

[data-theme="light"] .filter-group label {
    color: #475569;
}

[data-theme="light"] .filter-group input,
[data-theme="light"] .filter-group select {
    background: #ffffff;
    border-color: #cbd5e1;
    color: #0f172a;
}

[data-theme="light"] .badge-primary {
    color: #1d4ed8;
}

[data-theme="light"] .badge-success {
    color: #15803d;
}

[data-theme="light"] .badge-warning {
    color: #b45309;
}

[data-theme="light"] .badge-danger {
    color: #b91c1c;
}

[data-theme="light"] .module-card {
    background: rgba(255, 255, 255, .92);
    border-color: #e2e8f0;
}

[data-theme="light"] .module-card:hover {
    background: rgba(255, 255, 255, .98);
}

[data-theme="light"] .module-card p {
    color: #64748b;
}

[data-theme="light"] .kpi-card strong,
[data-theme="light"] .stat-card strong {
    color: #0f172a;
}

[data-theme="light"] .card h2,
[data-theme="light"] .module-card h2 {
    color: #0f172a;
}

[data-theme="light"] .card:hover h2 {
    color: #1d4ed8;
}

@media (max-width: 900px) {
    [data-theme="light"] .data-table tr {
        background: rgba(255, 255, 255, .95);
        border-color: #e2e8f0;
    }
}

@media (max-width: 700px) {
    [data-theme="light"] .data-table tr {
        background: rgba(255, 255, 255, .95);
        border-color: #e2e8f0;
        box-shadow: 0 12px 28px rgba(15, 23, 42, .08);
    }

    [data-theme="light"] .data-table td::before {
        color: #64748b;
    }
}
