:root {
    --sidebar-left: 20px;
    --sidebar-top: 20px;
    --sidebar-width: 260px;
    --sidebar-gap: 36px;
    --content-max-width: 1080px;
    --bg-main: #f5f7fb;
    --bg-surface: #ffffff;
    --bg-surface-soft: #f1f3f6;
    --text-main: #1f2937;
    --text-soft: #4b5563;
    --border-soft: #d7dce3;
    --hover-soft: #e9ecef;
    --shadow-main: 0 10px 28px rgba(15, 23, 42, 0.12);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    overflow-x: hidden;
    transition: background-color 0.25s ease, color 0.25s ease;
}

    /* =========================
   DARK MODE
========================= */
    body.dark-mode {
        --bg-main: #111827;
        --bg-surface: #1f2937;
        --bg-surface-soft: #111827;
        --text-main: #f3f4f6;
        --text-soft: #cbd5e1;
        --border-soft: #374151;
        --hover-soft: #2b3648;
        --shadow-main: 0 10px 28px rgba(0, 0, 0, 0.35);
    }

        body.dark-mode .form-control,
        body.dark-mode .form-select,
        body.dark-mode input,
        body.dark-mode textarea,
        body.dark-mode select {
            background-color: #111827;
            color: #f3f4f6;
            border-color: #374151;
        }

            body.dark-mode .form-control::placeholder,
            body.dark-mode input::placeholder,
            body.dark-mode textarea::placeholder {
                color: #94a3b8;
            }

        body.dark-mode label,
        body.dark-mode h1,
        body.dark-mode h2,
        body.dark-mode h3,
        body.dark-mode h4,
        body.dark-mode h5,
        body.dark-mode h6,
        body.dark-mode p,
        body.dark-mode span,
        body.dark-mode small,
        body.dark-mode div {
            color: inherit;
        }

/* =========================
   BOTÓN HAMBURGUESA
========================= */
#menuToggle {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 1100;
}

/* =========================
   SIDEBAR
========================= */
.sidebar {
    position: fixed;
    top: var(--sidebar-top);
    left: var(--sidebar-left);
    width: var(--sidebar-width);
    height: calc(100vh - (var(--sidebar-top) * 2));
    background: var(--bg-surface);
    border-radius: 18px;
    z-index: 1001;
    transform: translateX(0);
    transition: transform 0.35s ease, box-shadow 0.3s ease, background-color 0.25s ease;
    box-shadow: var(--shadow-main);
    overflow: hidden;
}

.sidebar-inner {
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 20px 16px 16px 16px;
}

.sidebar-header {
    margin-bottom: 16px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 40px;
}

    .sidebar-header h5 {
        margin: 0;
        font-weight: 700;
        font-size: 1.9rem;
        letter-spacing: 0.3px;
        text-align: center;
        width: 100%;
    }

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding-right: 2px;
}

.sidebar .nav-link {
    color: var(--text-main);
    border-radius: 12px;
    margin-bottom: 8px;
    padding: 10px 12px;
    transition: background-color 0.2s ease, color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1.25;
}

    .sidebar .nav-link i {
        width: 18px;
        min-width: 18px;
        text-align: center;
        font-size: 1rem;
    }

    .sidebar .nav-link:hover,
    .sidebar .nav-link.active {
        background: var(--hover-soft);
        color: var(--text-main);
    }

.sidebar-footer {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-soft);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.sidebar-footer-btn {
    width: 42px;
    height: 42px;
    border: 1px solid var(--border-soft);
    border-radius: 50%;
    background: var(--bg-surface-soft);
    color: var(--text-main);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.2s ease;
    box-shadow: none;
}

    .sidebar-footer-btn:hover {
        transform: translateY(-1px);
        background: var(--hover-soft);
    }

    .sidebar-footer-btn i {
        font-size: 1.05rem;
    }

.sidebar-logout-btn {
    color: #b42318;
    border-color: rgba(180, 35, 24, 0.18);
    background: rgba(180, 35, 24, 0.06);
}

    .sidebar-logout-btn:hover {
        background: rgba(180, 35, 24, 0.12);
    }

/* =========================
   CONTENIDO PRINCIPAL
========================= */
#content {
    margin-left: calc(var(--sidebar-left) + var(--sidebar-width) + var(--sidebar-gap));
    min-height: 100vh;
    padding: 16px 28px 30px 24px;
    transition: filter 0.3s ease;
}

.page-shell {
    width: 100%;
    max-width: var(--content-max-width);
    margin-left: 0;
    margin-right: auto;
}

/* Logo superior del contenido */
.content-brand {
    width: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    margin-bottom: 6px;
    min-height: 100px;
}

.content-brand-logo {
    display: block;
    width: auto;
    height: auto;
    max-width: 140px;
    max-height: 100px;
    object-fit: contain;
}

/* Contenedor del formulario */
.form-shell,
#contenedorSeccion {
    width: 100%;
    max-width: var(--content-max-width);
    margin-left: 0;
    margin-right: auto;
}

#content .row {
    margin-left: 0;
    margin-right: 0;
}

#content > .row > .col-md-3 {
    display: none;
}

#content > .row > .col-md-9 {
    flex: 0 0 100%;
    max-width: 100%;
    width: 100%;
    padding-left: 0;
    padding-right: 0;
}

#content .form-control,
#content .form-select {
    width: 100%;
    border-color: var(--border-soft);
    background: var(--bg-surface);
    color: var(--text-main);
}

/* =========================
   OVERLAY
========================= */
#overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1000;
}

    #overlay.active {
        opacity: 1;
        visibility: visible;
    }

@media (max-width: 992px) {
    :root {
        --sidebar-width: 240px;
        --sidebar-gap: 28px;
        --content-max-width: 100%;
    }

    #content {
        padding: 14px 28px 34px 20px;
    }

    .content-brand {
        min-height: 68px;
        margin-bottom: 6px;
    }

    .content-brand-logo {
        max-width: 180px;
        max-height: 100px;
    }
}

@media (max-width: 768px) {
    .sidebar {
        top: 0;
        left: 0;
        width: min(280px, 86vw);
        height: 100vh;
        border-radius: 0;
        transform: translateX(-110%);
        box-shadow: none;
    }

        .sidebar.active {
            transform: translateX(0);
            box-shadow: 10px 0 30px rgba(0, 0, 0, 0.2);
        }

    .sidebar-header {
        justify-content: center;
        text-align: center;
    }

        .sidebar-header h5 {
            text-align: center;
            width: 100%;
        }

    #content {
        margin-left: 0;
        padding: 16px 20px 24px 20px;
    }

        #content.blur {
            filter: blur(2px);
        }

    .page-shell,
    .form-shell,
    #contenedorSeccion {
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

    .content-brand {
        justify-content: center;
        align-items: center;
        text-align: center;
        margin-bottom: 18px;
        min-height: 100px;
        padding-top: 0;
    }

    .content-brand-logo {
        max-width: 140px;
        max-height: 100px;
        margin: 0 auto;
    }
}
/* =========================
   TOASTS
========================= */
.site-toast-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

    .site-toast-container .toast {
        pointer-events: auto;
    }

.site-toast {
    width: min(420px, calc(100vw - 2rem));
    border: none;
    border-radius: 12px;
    overflow: hidden;
    background: transparent;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.18);
}

    .site-toast .site-toast-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 12px 14px;
        background: #141414;
        border-bottom: none;
    }

    .site-toast .site-toast-header-left {
        display: flex;
        align-items: center;
        gap: 10px;
        min-width: 0;
    }

    .site-toast .site-toast-logo {
        width: 28px;
        height: 28px;
        min-width: 28px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

        .site-toast .site-toast-logo img {
            width: 100%;
            height: 100%;
            object-fit: contain;
        }

    .site-toast .site-toast-title {
        margin: 0;
        font-size: 0.96rem;
        font-weight: 700;
        letter-spacing: 0.2px;
        color: #f5b400;
    }

    .site-toast .site-toast-close {
        opacity: 1;
        filter: invert(79%) sepia(84%) saturate(1266%) hue-rotate(357deg) brightness(100%) contrast(101%);
    }

    .site-toast .site-toast-body {
        background: #ffffff;
        color: #1f1f1f;
        padding: 14px 16px 16px 16px;
    }

    .site-toast .site-toast-message {
        margin: 0 0 8px 0;
        font-size: 0.95rem;
        line-height: 1.4;
    }

    .site-toast .site-toast-list {
        margin: 0;
        padding-left: 18px;
    }

        .site-toast .site-toast-list li {
            margin-bottom: 4px;
            font-size: 0.93rem;
            line-height: 1.35;
        }

    .site-toast.toast-warning .site-toast-header {
        background: #141414;
    }

    .site-toast.toast-warning .site-toast-title {
        color: #f5b400;
    }

    .site-toast.toast-danger .site-toast-header {
        background: #2a0d0d;
    }

    .site-toast.toast-danger .site-toast-title {
        color: #ffd2d2;
    }

    .site-toast.toast-success .site-toast-header {
        background: #0f2418;
    }

    .site-toast.toast-success .site-toast-title {
        color: #d8f5df;
    }

    .site-toast.toast-info .site-toast-header {
        background: #0f1b2a;
    }

    .site-toast.toast-info .site-toast-title {
        color: #d8ebff;
    }

/* =========================
   ALERT MODAL PERSONALIZADO
========================= */
.site-alert-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    z-index: 3000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

    .site-alert-backdrop.active {
        opacity: 1;
        visibility: visible;
    }

.site-alert-dialog {
    width: min(460px, 100%);
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.22);
    overflow: hidden;
    transform: translateY(8px) scale(0.98);
    transition: transform 0.2s ease;
}

.site-alert-backdrop.active .site-alert-dialog {
    transform: translateY(0) scale(1);
}

.site-alert-header {
    background: #101010;
    color: #f5b400;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.site-alert-logo {
    width: 34px;
    height: 34px;
    min-width: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .site-alert-logo img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

.site-alert-title-wrap {
    flex: 1;
}

.site-alert-title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.2;
}

.site-alert-body {
    padding: 22px 22px 14px 22px;
    color: #1f1f1f;
    text-align: center;
}

.site-alert-icon {
    width: 76px;
    height: 76px;
    margin: 0 auto 14px auto;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    font-weight: 700;
    border: 4px solid;
}

    .site-alert-icon.warning {
        color: #d39b00;
        border-color: #f5b400;
        background: #fff8df;
    }

    .site-alert-icon.danger {
        color: #b42318;
        border-color: #f97066;
        background: #fff1f0;
    }

    .site-alert-icon.success {
        color: #027a48;
        border-color: #12b76a;
        background: #ecfdf3;
    }

    .site-alert-icon.info {
        color: #175cd3;
        border-color: #53b1fd;
        background: #eff8ff;
    }

.site-alert-message {
    margin: 0;
    font-size: 1rem;
    line-height: 1.5;
}

.site-alert-footer-text {
    margin-top: 14px;
    color: #4b5563;
    font-size: 0.95rem;
    line-height: 1.45;
}

.site-alert-actions {
    padding: 0 22px 22px 22px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.site-alert-btn {
    min-width: 130px;
    border: none;
    border-radius: 10px;
    padding: 11px 18px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s ease;
}

.site-alert-btn-confirm {
    background: #f5b400;
    color: #1f1f1f;
}

    .site-alert-btn-confirm:hover {
        background: #dba100;
    }

.site-alert-btn-cancel {
    background: #e5e7eb;
    color: #111827;
}

    .site-alert-btn-cancel:hover {
        background: #d1d5db;
    }



/* =========================
   AJUSTE LOGO EN PANTALLAS GRANDES
========================= */
@media (min-width: 1400px) {
    #content {
        position: relative;
    }

    .content-brand {
        width: calc(100vw - (var(--sidebar-left) + var(--sidebar-width) + var(--sidebar-gap)) - 72px);
        max-width: none;
        justify-content: flex-end;
    }

    .content-brand-logo {
        max-width: 170px;
        max-height: 120px;
        margin-right: 0;
    }
}

/* =========================
   ENCABEZADO DE SECCIÓN
========================= */
.section-topbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 18px;
    padding-bottom: 8px;
}

.section-topbar-text {
    flex: 1;
    min-width: 0;
    padding-top: 6px;
}

.section-title {
    margin: 0;
    font-size: 2.15rem;
    line-height: 1.15;
    font-weight: 700;
    color: var(--text-main);
}

.section-description {
    margin: 8px 0 0 0;
    font-size: 1rem;
    line-height: 1.45;
    color: var(--text-soft);
}

.section-topbar-logo {
    flex: 0 0 auto;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    min-width: 100px;
}

.section-logo-img {
    display: block;
    width: auto;
    height: auto;
    max-width: 78px;
    max-height: 100px;
    object-fit: contain;
}

.section-body {
    width: 100%;
}
@media (min-width: 1400px) {
    #content {
        padding: 16px 22px 30px 24px;
    }

    .section-topbar {
        gap: 32px;
        margin-bottom: 20px;
    }

    .section-topbar-logo {
        min-width: 96px;
        padding-right: 4px;
    }

    .section-logo-img {
        max-width: 82px;
        max-height: 92px;
    }
}
@media (max-width: 992px) {
    #content {
        padding: 14px 22px 28px 20px;
    }

    .section-topbar {
        gap: 18px;
        margin-bottom: 16px;
    }

    .section-title {
        font-size: 1.9rem;
    }

    .section-description {
        font-size: 0.97rem;
    }

    .section-logo-img {
        max-width: 72px;
        max-height: 84px;
    }
}

@media (max-width: 768px) {
    .sidebar {
        top: 0;
        left: 0;
        width: min(280px, 86vw);
        height: 100vh;
        border-radius: 0;
        transform: translateX(-110%);
        box-shadow: none;
    }

        .sidebar.active {
            transform: translateX(0);
            box-shadow: 10px 0 30px rgba(0, 0, 0, 0.2);
        }

    .sidebar-header {
        justify-content: center;
        text-align: center;
    }

        .sidebar-header h5 {
            text-align: center;
            width: 100%;
        }

    #content {
        margin-left: 0;
        padding: 10px 20px 24px 20px;
    }

        #content.blur {
            filter: blur(2px);
        }

    .page-shell,
    .form-shell,
    #contenedorSeccion {
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

    .section-topbar {
        flex-direction: column-reverse;
        align-items: center;
        justify-content: center;
        text-align: center;
        gap: 10px;
        margin-bottom: 16px;
    }

    .section-topbar-text {
        padding-top: 0;
        width: 100%;
    }

    .section-title {
        font-size: 1.55rem;
    }

    .section-description {
        margin-top: 6px;
        font-size: 0.98rem;
    }

    .section-topbar-logo {
        justify-content: center;
        min-width: auto;
    }

    .section-logo-img {
        max-width: 66px;
        max-height: 76px;
    }
}

.form-section-label {
    margin-top: 18px;
    margin-bottom: 12px;
}

    .form-section-label h5 {
        margin: 0;
        font-size: 1.08rem;
        font-weight: 600;
        color: var(--text-main);
    }

    .form-section-label small {
        display: block;
        margin-top: 4px;
        font-size: 0.9rem;
        font-weight: 400;
        color: var(--text-soft);
    }

/* =========================
   FIX SUBCAMPOS DEPENDIENTES
========================= */

.campo-hijos {
    display: block !important;
    width: 100%;
    margin-top: 10px;
    margin-left: 22px;
    padding-left: 18px;
    border-left: 3px solid rgba(13, 110, 253, 0.25);
}

.campo-bloque.nivel-1 {
    display: block;
    width: 100%;
    margin-top: 12px;
    margin-bottom: 14px;
}

    .campo-bloque.nivel-1 .campo-control {
        background: rgba(13, 110, 253, 0.04);
        border: 1px solid rgba(13, 110, 253, 0.12);
        border-radius: 12px;
        padding: 14px 16px;
    }

body.dark-mode .campo-bloque.nivel-1 .campo-control {
    background: rgba(96, 165, 250, 0.08);
    border-color: rgba(96, 165, 250, 0.18);
}

@media (max-width: 768px) {
    .campo-hijos {
        margin-left: 8px;
        padding-left: 12px;
    }

    .campo-bloque.nivel-1 .campo-control {
        padding: 12px;
    }
}


/* =========================
   TABLAS Y CARDS EN MODO OSCURO
========================= */

.sicme-table-wrapper {
    border-radius: 12px;
    overflow: hidden;
}

.sicme-table {
    margin-bottom: 0;
    background: var(--bg-surface);
    color: var(--text-main);
    border-color: var(--border-soft);
}

    .sicme-table th,
    .sicme-table td {
        background: var(--bg-surface);
        color: var(--text-main);
        border-color: var(--border-soft);
        vertical-align: middle;
    }

.sicme-table-head th {
    background: #f8fafc;
    color: #111827;
    font-weight: 700;
}

.sicme-file-muted {
    color: #6b7280;
}

.sicme-required {
    color: #dc2626;
}

/* Card de formatos */
.sicme-format-card {
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    padding: 16px;
    background: var(--bg-surface);
    box-shadow: var(--shadow-main);
}

.sicme-format-row {
    padding-top: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-soft);
}

    .sicme-format-row:last-child {
        border-bottom: none;
    }

.sicme-outline-button {
    border: 1px solid #111827;
    color: #111827;
    background: transparent;
    transition: 0.2s ease;
}

    .sicme-outline-button:hover {
        background: #111827;
        color: #ffffff;
    }

.sicme-format-link {
    color: #0d6efd;
    font-weight: 600;
    text-decoration: none;
}

    .sicme-format-link:hover {
        text-decoration: underline;
    }

/* =========================
   DARK MODE PARA TABLAS/CARDS
========================= */

body.dark-mode .sicme-table {
    --bs-table-bg: var(--bg-surface);
    --bs-table-color: var(--text-main);
    --bs-table-border-color: var(--border-soft);
    --bs-table-striped-bg: #1f2937;
    --bs-table-striped-color: var(--text-main);
    --bs-table-hover-bg: #243244;
    --bs-table-hover-color: var(--text-main);
    background: var(--bg-surface);
    color: var(--text-main);
    border-color: var(--border-soft);
}

    body.dark-mode .sicme-table th,
    body.dark-mode .sicme-table td {
        background: var(--bg-surface);
        color: var(--text-main);
        border-color: var(--border-soft);
    }

body.dark-mode .sicme-table-head th {
    background: #243244;
    color: #f9fafb;
    border-color: var(--border-soft);
}

body.dark-mode .sicme-file-muted {
    color: #cbd5e1;
}

body.dark-mode .sicme-format-card {
    background: var(--bg-surface);
    border-color: var(--border-soft);
    color: var(--text-main);
}

body.dark-mode .sicme-format-row {
    border-color: var(--border-soft);
}

body.dark-mode .sicme-outline-button {
    border-color: #cbd5e1;
    color: #f9fafb;
    background: transparent;
}

    body.dark-mode .sicme-outline-button:hover {
        background: #f9fafb;
        color: #111827;
    }

body.dark-mode .sicme-format-link {
    color: #93c5fd;
}

body.dark-mode .table,
body.dark-mode .table-bordered,
body.dark-mode .table-responsive {
    color: var(--text-main);
    border-color: var(--border-soft);
}

/* =========================
   TABLAS DINÁMICAS / DATATABLE VISUAL
========================= */

.sicme-datatable-wrapper,
.table-responsive {
    border-radius: 12px;
}

.sicme-table {
    width: 100%;
    margin-bottom: 0;
    border-color: var(--border-soft);
    background-color: var(--bg-surface);
    color: var(--text-main);
}

.sicme-table thead th {
    background-color: #f8fafc;
    color: #111827;
    border-color: var(--border-soft);
    font-weight: 700;
    vertical-align: middle;
}

.sicme-table tbody td {
    background-color: #ffffff;
    color: #111827;
    border-color: var(--border-soft);
    vertical-align: middle;
}

.sicme-table.table-striped > tbody > tr:nth-of-type(odd) > * {
    background-color: #ffffff;
    color: #111827;
}

.sicme-table.table-striped > tbody > tr:nth-of-type(even) > * {
    background-color: #f9fafb;
    color: #111827;
}

.sicme-table-empty {
    text-align: center;
    color: #6b7280 !important;
    font-weight: 400;
    padding: 14px !important;
}

/* Botón eliminar en tablas */
.sicme-table .btn-outline-danger {
    border-color: #dc3545;
    color: #dc3545;
}

.sicme-table .btn-outline-danger:hover {
    background-color: #dc3545;
    color: #ffffff;
}

/* =========================
   TABLAS EN MODO OSCURO
========================= */

body.dark-mode .sicme-table {
    --bs-table-bg: var(--bg-surface);
    --bs-table-color: var(--text-main);
    --bs-table-border-color: var(--border-soft);
    --bs-table-striped-bg: #182233;
    --bs-table-striped-color: var(--text-main);
    --bs-table-hover-bg: #243244;
    --bs-table-hover-color: var(--text-main);

    background-color: var(--bg-surface);
    color: var(--text-main);
    border-color: var(--border-soft);
}

body.dark-mode .sicme-table thead th {
    background-color: #243244;
    color: #f9fafb;
    border-color: var(--border-soft);
}

body.dark-mode .sicme-table tbody td {
    background-color: var(--bg-surface);
    color: var(--text-main);
    border-color: var(--border-soft);
}

body.dark-mode .sicme-table.table-striped > tbody > tr:nth-of-type(odd) > * {
    background-color: #111827;
    color: #f9fafb;
}

body.dark-mode .sicme-table.table-striped > tbody > tr:nth-of-type(even) > * {
    background-color: #182233;
    color: #f9fafb;
}

body.dark-mode .sicme-table-empty {
    color: #cbd5e1 !important;
    background-color: #111827 !important;
}

body.dark-mode .sicme-table a {
    color: #93c5fd;
}

body.dark-mode .sicme-table strong,
body.dark-mode .sicme-table b {
    color: inherit;
}

body.dark-mode .sicme-table .btn-outline-danger {
    border-color: #f87171;
    color: #fca5a5;
}

body.dark-mode .sicme-table .btn-outline-danger:hover {
    background-color: #dc2626;
    color: #ffffff;
}

body.dark-mode .dataTables_wrapper,
body.dark-mode .dt-container {
    color: var(--text-main);
}

    body.dark-mode .dataTables_wrapper .dataTables_length,
    body.dark-mode .dataTables_wrapper .dataTables_filter,
    body.dark-mode .dataTables_wrapper .dataTables_info,
    body.dark-mode .dataTables_wrapper .dataTables_paginate,
    body.dark-mode .dt-container .dt-length,
    body.dark-mode .dt-container .dt-search,
    body.dark-mode .dt-container .dt-info,
    body.dark-mode .dt-container .dt-paging {
        color: var(--text-main);
    }

    body.dark-mode .dataTables_wrapper input,
    body.dark-mode .dataTables_wrapper select,
    body.dark-mode .dt-container input,
    body.dark-mode .dt-container select {
        background-color: var(--bg-surface);
        color: var(--text-main);
        border: 1px solid var(--border-soft);
    }

body.dark-mode .paginate_button,
body.dark-mode .dt-paging-button {
    color: var(--text-main) !important;
}