/*
 * Static page styles extracted from view-level CSP style blocks.
 * Dynamic theme variables remain in PHP views.
 */

/* app/Views/login.php */
        .login-brand-logo {
            display: block;
            max-height: 72px;
            max-width: 240px;
            object-fit: contain;
            margin: 0 auto 1rem;
        }

/* app/Views/dashboard.php */
        .dashboard-hero {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 1rem;
            padding: 1.1rem 1.25rem;
            border: 1px solid #e7eef2;
            border-radius: 8px;
            background: #fff;
            box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
        }

        .dashboard-hero h4,
        .dashboard-section-title h5,
        .dashboard-empty h6 {
            margin-bottom: 0;
        }

        .dashboard-hero-meta {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
            justify-content: flex-end;
        }

        .dashboard-pill {
            display: inline-flex;
            align-items: center;
            gap: 0.35rem;
            min-height: 32px;
            padding: 0.25rem 0.65rem;
            border-radius: 999px;
            background: #f8fafc;
            border: 1px solid #e2e8f0;
            color: #475569;
            font-size: 0.75rem;
            font-weight: 700;
            text-transform: uppercase;
        }

        .dashboard-metrics {
            display: grid;
            grid-template-columns: repeat(4, minmax(0, 1fr));
            gap: 1rem;
        }

        .dashboard-metric-card {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 1rem;
            min-height: 132px;
            padding: 1rem;
            border-radius: 8px;
            border: 1px solid #e5e7eb;
            background: #fff;
            color: #0f172a;
            box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
            transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
        }

        .dashboard-metric-card:hover {
            color: #0f172a;
            border-color: #cbd5e1;
            box-shadow: 0 16px 34px rgba(15, 23, 42, 0.09);
            transform: translateY(-1px);
            text-decoration: none;
        }

        .dashboard-metric-label {
            display: block;
            min-height: 34px;
            color: #64748b;
            font-size: 0.72rem;
            font-weight: 800;
            line-height: 1.35;
            text-transform: uppercase;
        }

        .dashboard-metric-value {
            display: block;
            margin-top: 0.35rem;
            font-size: 1.8rem;
            font-weight: 800;
            line-height: 1;
            letter-spacing: 0;
        }

        .dashboard-metric-helper {
            display: block;
            margin-top: 0.45rem;
            color: #64748b;
            font-size: 0.82rem;
            line-height: 1.35;
        }

        .dashboard-metric-icon {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            flex: 0 0 42px;
            width: 42px;
            height: 42px;
            border-radius: 8px;
            font-size: 1.05rem;
        }

        .dashboard-tone-primary .dashboard-metric-icon,
        .dashboard-action-primary {
            background: #e7f1ff;
            color: #084298;
        }

        .dashboard-tone-warning .dashboard-metric-icon,
        .dashboard-action-warning {
            background: #fff3cd;
            color: #664d03;
        }

        .dashboard-tone-success .dashboard-metric-icon,
        .dashboard-action-success {
            background: #d1e7dd;
            color: #0f5132;
        }

        .dashboard-tone-danger .dashboard-metric-icon,
        .dashboard-action-danger {
            background: #f8d7da;
            color: #842029;
        }

        .dashboard-tone-info .dashboard-metric-icon,
        .dashboard-action-info {
            background: #cff4fc;
            color: #055160;
        }

        .dashboard-tone-secondary .dashboard-metric-icon,
        .dashboard-action-secondary {
            background: #e2e3e5;
            color: #41464b;
        }

        .dashboard-section-card {
            height: 100%;
            min-width: 0;
            overflow: hidden;
            border: 1px solid #e7eef2;
            border-radius: 8px;
            background: #fff;
            box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
        }

        .dashboard-section-title {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 1rem;
            min-width: 0;
            padding: 1rem 1.1rem;
            border-bottom: 1px solid #edf2f7;
        }

        .dashboard-section-title > div {
            min-width: 0;
        }

        .dashboard-section-title .badge.text-bg-light {
            flex: 0 0 auto;
            background: #f8fafc !important;
            border: 1px solid #e2e8f0;
            color: #334155 !important;
        }

        .dashboard-list {
            display: grid;
            gap: 0.65rem;
            min-width: 0;
            padding: 1rem;
            width: 100%;
        }

        .dashboard-queue-item,
        .dashboard-recent-item,
        .dashboard-action-item {
            box-sizing: border-box;
            display: flex;
            align-items: center;
            gap: 0.8rem;
            max-width: 100%;
            min-width: 0;
            width: 100%;
            min-height: 58px;
            padding: 0.75rem;
            border: 1px solid #eef2f6;
            border-radius: 8px;
            background: #fbfdff;
            color: #0f172a;
        }

        .dashboard-queue-item:hover,
        .dashboard-recent-item:hover,
        .dashboard-action-item:hover {
            color: #0f172a;
            border-color: #d7dee8;
            background: #fff;
            text-decoration: none;
        }

        .dashboard-queue-icon,
        .dashboard-action-icon {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            flex: 0 0 38px;
            width: 38px;
            height: 38px;
            border-radius: 8px;
            background: #eef2f7;
            color: #334155;
        }

        .dashboard-item-main {
            min-width: 0;
            flex: 1;
        }

        .dashboard-item-main strong,
        .dashboard-item-main span {
            display: block;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .dashboard-item-main small {
            display: block;
            overflow: hidden;
            text-overflow: ellipsis;
            color: #64748b;
            line-height: 1.35;
            white-space: nowrap;
        }

        .dashboard-queue-value {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-width: 44px;
            min-height: 32px;
            padding: 0.25rem 0.6rem;
            border-radius: 999px;
            background: #0f172a;
            color: #fff;
            font-weight: 800;
        }

        .dashboard-recent-status {
            flex: 0 0 auto;
            max-width: 120px;
            padding: 0.22rem 0.5rem;
            border-radius: 999px;
            background: #eef2f7;
            color: #334155;
            font-size: 0.68rem;
            font-weight: 800;
            overflow: hidden;
            text-overflow: ellipsis;
            text-transform: uppercase;
            white-space: nowrap;
        }

        .dashboard-empty {
            padding: 1rem;
            border: 1px dashed #cbd5e1;
            border-radius: 8px;
            color: #64748b;
            background: #f8fafc;
        }

        @media (max-width: 1199.98px) {
            .dashboard-metrics {
                grid-template-columns: repeat(2, minmax(0, 1fr));
            }
        }

        @media (max-width: 767.98px) {
            .dashboard-hero {
                align-items: flex-start;
                flex-direction: column;
            }

            .dashboard-hero-meta {
                justify-content: flex-start;
            }

            .dashboard-metrics {
                grid-template-columns: 1fr;
            }

            .dashboard-recent-status {
                max-width: 96px;
            }
        }

/* app/Views/general/creditos_clientes/index.php */
        .creditos-clientes-filters {
            background: #fff;
            border: 1px solid #e9ecef;
            border-radius: 0.5rem;
            padding: 1rem;
            margin-bottom: 1rem;
        }

        .creditos-clientes-table-shell {
            overflow-x: auto;
        }

        .credito-status-badge {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-width: 92px;
            padding: 0.25rem 0.5rem;
            border-radius: 999px;
            font-size: 0.72rem;
            font-weight: 700;
        }

        .credito-status-borrador { background: #f1f3f5; color: #495057; }
        .credito-status-formalizado { background: #cff4fc; color: #055160; }
        .credito-status-activo { background: #d1e7dd; color: #0f5132; }
        .credito-status-cancelado { background: #f8d7da; color: #842029; }
        .credito-status-liquidado { background: #e2e3e5; color: #41464b; }

        .creditos-clientes-summary {
            display: grid;
            gap: 0.75rem;
            grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
            margin-bottom: 1rem;
        }

        .creditos-clientes-summary__item {
            border: 1px solid #edf0f2;
            border-radius: 0.5rem;
            padding: 0.75rem;
            background: #fff;
        }

        .creditos-clientes-summary__label {
            color: #6c757d;
            font-size: 0.72rem;
            font-weight: 700;
        }

        .creditos-clientes-summary__value {
            font-size: 1rem;
            font-weight: 700;
        }

        #CreditosClientesModal .credito-form-panel {
            border: 1px solid var(--erp-shell-border, #d7dee8);
            border-left: 4px solid var(--erp-shell-accent, #24695c);
            border-radius: 8px;
            background: #fff;
            padding: 0.95rem 1rem;
            box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
        }

        #CreditosClientesModal .credito-side-stack {
            display: flex;
            flex-direction: column;
            gap: 0.85rem;
            height: 100%;
        }

        #CreditosClientesModal .credito-panel-heading {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 0.75rem;
            margin-bottom: 0.85rem;
        }

        #CreditosClientesModal .credito-panel-heading h6 {
            margin: 0;
            color: #0f172a;
            font-size: 0.86rem;
            font-weight: 800;
        }

        #CreditosClientesModal .credito-panel-heading small {
            display: block;
            margin-top: 0.2rem;
            color: #64748b;
            line-height: 1.35;
        }

        #CreditosClientesModal .credito-origin-pill {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-height: 26px;
            border-radius: 999px;
            background: rgba(var(--sofom-primary-rgb, 36, 105, 92), 0.1);
            color: var(--erp-shell-accent, #24695c);
            padding: 0.25rem 0.6rem;
            font-size: 0.66rem;
            font-weight: 800;
            line-height: 1;
            text-align: center;
        }

        #CreditosClientesModal .credito-side-facts {
            display: grid;
            grid-template-columns: minmax(94px, 0.42fr) minmax(0, 1fr);
            gap: 0.45rem 0.75rem;
            align-items: baseline;
        }

        #CreditosClientesModal .credito-side-facts span,
        #CreditosClientesModal .credito-origin-pending span {
            color: #64748b;
            font-size: 0.68rem;
            font-weight: 800;
            line-height: 1.25;
        }

        #CreditosClientesModal .credito-side-facts strong,
        #CreditosClientesModal .credito-origin-pending strong {
            color: #0f172a;
            font-size: 0.84rem;
            line-height: 1.25;
            overflow-wrap: anywhere;
        }

        #CreditosClientesModal .credito-origin-pending {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 0.75rem;
            margin-top: 0.85rem;
            border-top: 1px solid #e2e8f0;
            padding-top: 0.75rem;
        }

        #CreditosClientesModal .credito-form-checks {
            display: grid;
            gap: 0.55rem;
            margin-bottom: 1rem;
        }

        #CreditosClientesModal .credito-formalization-guide {
            display: grid;
            gap: 0.2rem;
            border: 1px solid #d7e8e4;
            border-radius: 8px;
            background: #f3faf8;
            color: #2c5f56;
            padding: 0.7rem 0.8rem;
            margin-bottom: 1rem;
        }

        #CreditosClientesModal .credito-formalization-guide strong {
            color: #17463f;
            font-size: 0.78rem;
            font-weight: 800;
        }

        #CreditosClientesModal .credito-formalization-guide span {
            color: #4f6f6a;
            font-size: 0.78rem;
            line-height: 1.35;
        }

        #CreditosClientesModal .credito-readiness-list {
            display: grid;
            gap: 0.55rem;
            margin-top: 0.45rem;
        }

        #CreditosClientesModal .credito-readiness-list li {
            padding-left: 0.1rem;
        }

        #CreditosClientesModal .credito-readiness-list li > span {
            display: block;
            font-weight: 800;
        }

        #CreditosClientesModal .credito-readiness-help {
            display: block;
            color: #7c5c24;
            line-height: 1.35;
            margin-top: 0.15rem;
        }

        #CreditosClientesModal .credito-readiness-action {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            border: 1px solid rgba(var(--sofom-primary-rgb, 36, 105, 92), 0.25);
            border-radius: 6px;
            background: #fff;
            color: var(--erp-shell-accent, #24695c);
            font-size: 0.7rem;
            font-weight: 800;
            line-height: 1;
            padding: 0.35rem 0.55rem;
            margin-top: 0.35rem;
            text-decoration: none;
        }

        #CreditosClientesModal button.credito-readiness-action {
            cursor: pointer;
        }

        #CreditosClientesModal .credito-document-row-highlight {
            outline: 3px solid rgba(var(--sofom-primary-rgb, 36, 105, 92), 0.3);
            outline-offset: -3px;
            background: #eef8f5;
            transition: background 0.2s ease, outline-color 0.2s ease;
        }

/* app/Views/general/prospeccion_creditos/index.php */
        .prospectos-filters-shell {
            background: #fff;
            border: 1px solid #e9ecef;
            border-radius: 0.5rem;
            padding: 1rem;
            margin-bottom: 1rem;
        }

        .prospectos-table-toolbar {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 1rem;
            margin-bottom: 0.75rem;
        }

        .prospectos-status-badge {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-width: 92px;
            padding: 0.25rem 0.5rem;
            border-radius: 999px;
            font-size: 0.72rem;
            font-weight: 700;
        }

        .prospectos-status-borrador { background: #f1f3f5; color: #495057; }
        .prospectos-status-capturado { background: #e7f1ff; color: #084298; }
        .prospectos-status-calculado { background: #fff3cd; color: #664d03; }
        .prospectos-status-simulado { background: #d1e7dd; color: #0f5132; }
        .prospectos-status-en_revision { background: #cff4fc; color: #055160; }
        .prospectos-status-preaprobado { background: #d1e7dd; color: #0f5132; }
        .prospectos-status-rechazado { background: #f8d7da; color: #842029; }
        .prospectos-status-convertido { background: #e2e3e5; color: #41464b; }

        .prospectos-table-shell {
            overflow-x: auto;
        }

        #ProspeccionCreditosModal .prospeccion-originacion-card {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 1rem;
            border: 1px solid var(--erp-shell-border, #d7dee8);
            border-left: 4px solid var(--erp-shell-accent, #24695c);
            border-radius: 8px;
            background: #fff;
            padding: 0.9rem 1rem;
            margin-bottom: 1rem;
            box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
        }

        #ProspeccionCreditosModal .prospeccion-originacion-card span {
            display: block;
            color: #64748b;
            font-size: 0.68rem;
            font-weight: 800;
            line-height: 1.25;
        }

        #ProspeccionCreditosModal .prospeccion-originacion-card strong {
            display: block;
            margin-top: 0.25rem;
            color: #0f172a;
            font-size: 0.95rem;
            line-height: 1.25;
        }

        #ProspeccionCreditosModal .prospeccion-originacion-card small {
            display: block;
            max-width: 720px;
            margin-top: 0.3rem;
            color: #64748b;
            line-height: 1.35;
        }

        .prospectos-filter-actions {
            display: flex;
            align-items: end;
            gap: 0.5rem;
            height: 100%;
        }

/* app/Views/general/clientes/documentos.php */
    .cliente-doc-stat {
        background: #fff;
        border: 1px solid #e9ecef;
        border-radius: 8px;
        height: 100%;
        padding: 0.85rem 0.95rem;
    }

    .cliente-doc-stat small {
        color: #738395;
        display: block;
        margin-bottom: 0.35rem;
    }

    .cliente-doc-stat strong {
        color: #16324f;
        display: block;
    }

    .cliente-doc-table-card {
        background: #fff;
        border: 1px solid #e9ecef;
        border-radius: 8px;
        overflow: hidden;
    }

    .cliente-doc-table-card .table {
        margin-bottom: 0;
    }

    .cliente-doc-table-card .table thead th {
        background: #f8f9fa;
        border-bottom-color: #e9ecef;
        color: #212529;
        white-space: nowrap;
    }

/* app/Views/general/clientes/index.php */
        .clientes-filters-shell {
            background: #fff;
            border: 1px solid #e9ecef;
            border-radius: 8px;
            padding: 1rem;
            margin-bottom: 1rem;
        }

        .clientes-filters-title {
            margin-bottom: 0.75rem;
        }

        .clientes-filters-title h6 {
            margin-bottom: 0;
            color: #212529;
        }

        .clientes-primary-filters {
            row-gap: 0.75rem;
        }

        .clientes-view-switcher {
            flex-wrap: wrap;
            justify-content: flex-end;
            max-width: 100%;
        }

        .clientes-view-switcher .btn {
            white-space: normal;
        }

        .clientes-approval-shell {
            margin-bottom: 0.85rem;
        }

        .clientes-approval-title {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 0.75rem;
            margin-bottom: 0.45rem;
        }

        .clientes-approval-title h6 {
            margin-bottom: 0;
            color: #0f172a;
        }

        .clientes-approval-grid {
            display: grid;
            grid-template-columns: repeat(4, minmax(0, 1fr));
            gap: 0.45rem;
            padding: 0.35rem;
            background: #f8fafc;
            border: 1px solid #e5edf3;
            border-radius: 8px;
        }

        .clientes-approval-card {
            display: flex;
            flex-direction: row;
            align-items: center;
            justify-content: space-between;
            gap: 0.45rem;
            min-height: 2.55rem;
            width: 100%;
            height: auto !important;
            border: 1px solid transparent !important;
            border-radius: 7px;
            background: #ffffff !important;
            color: #334155 !important;
            text-align: left;
            padding: 0.48rem 0.62rem !important;
            transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
            box-shadow: none !important;
            overflow: hidden;
        }

        .clientes-approval-card:hover {
            background: #ffffff !important;
            border-color: #cbd5e1 !important;
            box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06) !important;
        }

        .clientes-approval-card.is-active {
            border-color: #0f172a !important;
            box-shadow: 0 8px 18px rgba(15, 23, 42, 0.1) !important;
        }

        .clientes-approval-card small,
        .clientes-approval-card strong,
        .clientes-approval-card span {
            display: inline-flex;
        }

        .clientes-approval-card span {
            align-items: center;
            min-width: 0;
            color: inherit !important;
            font-size: 0.74rem;
            font-weight: 900;
            letter-spacing: 0;
            line-height: 1.15;
            overflow-wrap: anywhere;
            text-transform: uppercase;
        }

        .clientes-approval-card strong {
            align-items: center;
            flex: 0 0 auto;
            gap: 0;
            color: inherit !important;
            font-size: 0.86rem;
            margin-bottom: 0;
            line-height: 1.22;
            overflow-wrap: anywhere;
        }

        .clientes-approval-count {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-width: 1.65rem;
            min-height: 1.5rem;
            padding: 0.08rem 0.42rem;
            margin-left: 0;
            border-radius: 6px;
            background: rgba(15, 23, 42, 0.08) !important;
            color: inherit !important;
            font-size: 0.78rem;
            font-weight: 900;
            vertical-align: middle;
        }

        .clientes-approval-card small {
            display: none;
        }

        .clientes-approval-card[data-approval-value=""] {
            color: #334155 !important;
        }

        .clientes-approval-card[data-approval-value=""].is-active {
            background: #111827 !important;
            border-color: #111827 !important;
            color: #f8fafc !important;
        }

        .clientes-approval-card[data-approval-value=""].is-active span,
        .clientes-approval-card[data-approval-value=""].is-active strong,
        .clientes-approval-card[data-approval-value=""].is-active small {
            color: #f8fafc !important;
        }

        .clientes-approval-card[data-approval-value="APROBADO"] {
            background: #f2fbf5 !important;
            color: #166534 !important;
        }

        .clientes-approval-card[data-approval-value="APROBADO"].is-active {
            background: #dcfce7 !important;
            border-color: #22c55e !important;
        }

        .clientes-approval-card[data-approval-value="PENDIENTE_POR_APROBAR"] {
            background: #fffbeb !important;
            color: #92400e !important;
        }

        .clientes-approval-card[data-approval-value="PENDIENTE_POR_APROBAR"].is-active {
            background: #fef3c7 !important;
            border-color: #f59e0b !important;
        }

        .clientes-approval-card[data-approval-value="NO_APROBADO"] {
            background: #fff1f2 !important;
            color: #9f1239 !important;
        }

        .clientes-approval-card[data-approval-value="NO_APROBADO"].is-active {
            background: #ffe4e6 !important;
            border-color: #fb7185 !important;
        }

        body.dark-only .clientes-approval-grid {
            background: rgba(15, 23, 42, 0.7);
            border-color: var(--erp-dark-border);
        }

        body.dark-only .clientes-approval-card {
            background: rgba(27, 38, 59, 0.92) !important;
            color: #cbd5e1 !important;
        }

        body.dark-only .clientes-approval-card:hover {
            border-color: rgba(148, 163, 184, 0.35) !important;
            box-shadow: 0 8px 18px rgba(2, 6, 23, 0.24) !important;
        }

        body.dark-only .clientes-approval-card[data-approval-value=""].is-active {
            background: #243145 !important;
            border-color: #7dd3c7 !important;
            color: #f8fafc !important;
        }

        body.dark-only .clientes-approval-card[data-approval-value="APROBADO"] {
            background: rgba(22, 101, 52, 0.28) !important;
            color: #bbf7d0 !important;
        }

        body.dark-only .clientes-approval-card[data-approval-value="APROBADO"].is-active {
            background: rgba(22, 101, 52, 0.48) !important;
            border-color: #4ade80 !important;
        }

        body.dark-only .clientes-approval-card[data-approval-value="PENDIENTE_POR_APROBAR"] {
            background: rgba(133, 77, 14, 0.28) !important;
            color: #fde68a !important;
        }

        body.dark-only .clientes-approval-card[data-approval-value="PENDIENTE_POR_APROBAR"].is-active {
            background: rgba(133, 77, 14, 0.46) !important;
            border-color: #facc15 !important;
        }

        body.dark-only .clientes-approval-card[data-approval-value="NO_APROBADO"] {
            background: rgba(127, 29, 29, 0.3) !important;
            color: #fecdd3 !important;
        }

        body.dark-only .clientes-approval-card[data-approval-value="NO_APROBADO"].is-active {
            background: rgba(127, 29, 29, 0.5) !important;
            border-color: #f87171 !important;
        }

        .clientes-filter-actions {
            display: flex;
            gap: 0.75rem;
            justify-content: flex-start;
            align-items: center;
            padding-top: 0.25rem;
        }

        .clientes-filter-actions .btn {
            min-width: 132px;
        }

        .clientes-filters-shell .select2-container {
            width: 100% !important;
        }

        .clientes-filters-shell .select2-container .select2-selection--single {
            min-height: 36px;
            display: flex;
            align-items: center;
            border-color: #dee2e6;
            border-radius: 0.375rem;
        }

        .clientes-filters-shell .select2-container .select2-selection__rendered {
            width: 100%;
            padding-left: 0.65rem;
            padding-right: 2rem;
            line-height: 34px;
        }

        .clientes-filters-shell .select2-container .select2-selection__arrow {
            height: 34px;
        }

        .clientes-filters-meta {
            border-top: 1px solid #f1f3f5;
            margin-top: 0.9rem;
            padding-top: 0.85rem;
        }

        .clientes-filters-meta .btn-link {
            color: #495057;
        }

        .clientes-advanced-grid {
            background: #f8f9fa;
            border: 1px solid #edf0f2;
            border-radius: 8px;
            padding: 1rem;
        }

        .clientes-table-toolbar {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 1rem;
            margin-bottom: 0.75rem;
        }

        .clientes-table-toolbar h6 {
            margin-bottom: 0;
        }

        .clientes-table-toolbar .btn {
            min-width: 180px;
        }

        .clientes-table-shell {
            width: 100%;
            overflow: hidden;
            background: #fff;
            border: 1px solid #e9ecef;
            border-radius: 8px;
            padding: 0.85rem;
        }

        #ClientesTable {
            width: 100% !important;
        }

        .clientes-table-shell .dataTables_wrapper .dataTables_filter {
            margin-bottom: 1rem;
        }

        .clientes-table-shell .dataTables_wrapper .dataTables_filter input {
            min-width: 240px;
        }

        .clientes-table-shell .dataTables_wrapper .dataTables_info {
            padding-top: 0.85rem;
        }

        @media (max-width: 991.98px) {
            .clientes-filters-shell {
                padding: 0.9rem;
            }

            .clientes-approval-grid {
                grid-template-columns: repeat(2, minmax(0, 1fr));
            }

            .clientes-table-shell .dataTables_wrapper .dataTables_filter input {
                min-width: 100%;
            }

            .clientes-filter-actions {
                flex-direction: column;
                align-items: stretch;
            }

            .clientes-filter-actions .btn,
            .clientes-table-toolbar .btn {
                width: 100%;
            }

            .clientes-table-toolbar {
                flex-direction: column;
                align-items: stretch;
            }
        }

        @media (max-width: 575.98px) {
            .clientes-view-switcher {
                display: grid;
                grid-template-columns: repeat(2, minmax(0, 1fr));
                gap: 0.35rem;
                width: 100%;
            }

            .clientes-view-switcher .btn {
                min-width: 0;
                border-radius: 0.375rem !important;
            }

            .clientes-approval-grid {
                grid-template-columns: repeat(2, minmax(0, 1fr));
            }
        }

/* app/Views/general/clientes/delete.php */
    .cliente-delete-card {
        background: linear-gradient(180deg, #fff7f7 0%, #fff 100%);
        border: 1px solid #f3d7d7;
        border-radius: 8px;
        padding: 1.35rem;
    }

    .cliente-delete-icon {
        align-items: center;
        background: #ffe6e6;
        border-radius: 999px;
        color: #c0392b;
        display: inline-flex;
        font-size: 1.2rem;
        height: 52px;
        justify-content: center;
        margin-bottom: 1rem;
        width: 52px;
    }

    .cliente-delete-grid small {
        color: #7a8795;
        display: block;
        margin-bottom: 0.3rem;
    }

/* app/Views/general/simulador_creditos/index.php */
        .simulador-quick-shell {
            background: #f8fafc;
            border: 1px solid #e9ecef;
            border-radius: 0.5rem;
        }

        .simulador-section,
        .simulador-policy-panel {
            background: #fff;
            border: 1px solid #e9ecef;
            border-radius: 0.5rem;
            padding: 1rem;
        }

        .simulador-section + .simulador-section {
            margin-top: 1rem;
        }

        .simulador-section-title {
            display: flex;
            align-items: center;
            gap: 0.65rem;
            margin-bottom: 0.9rem;
            color: #212529;
            font-weight: 800;
            letter-spacing: 0;
            text-transform: uppercase;
        }

        .simulador-section-index {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 1.75rem;
            height: 1.75rem;
            flex: 0 0 1.75rem;
            border-radius: 0.4rem;
            background: var(--sofom-primary, #24695c);
            color: #fff;
            font-size: 0.8rem;
            font-weight: 800;
        }

        .simulador-control-hint,
        .simulador-policy-muted {
            color: #6c757d;
            font-size: 0.78rem;
            line-height: 1.35;
        }

        .simulador-range-row {
            display: flex;
            justify-content: space-between;
            gap: 0.75rem;
        }

        .simulador-slider {
            width: 100%;
            accent-color: var(--sofom-primary, #24695c);
        }

        .simulador-chip-group {
            display: flex;
            flex-wrap: wrap;
            gap: 0.4rem;
        }

        .simulador-chip-group .btn {
            border-radius: 0.4rem;
            min-height: 32px;
        }

        .simulador-chip-group .btn.active {
            background: var(--sofom-primary, #24695c);
            border-color: var(--sofom-primary, #24695c);
            color: #fff;
        }

        .simulador-policy-panel {
            position: sticky;
            top: 1rem;
        }

        .simulador-policy-heading {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 1rem;
            margin-bottom: 0.85rem;
        }

        .simulador-policy-title {
            color: #212529;
            font-weight: 800;
            line-height: 1.25;
            overflow-wrap: anywhere;
        }

        .simulador-policy-list {
            display: grid;
            gap: 0.7rem;
        }

        .simulador-policy-item {
            border-bottom: 1px solid #f0f2f5;
            padding-bottom: 0.65rem;
        }

        .simulador-policy-item:last-child {
            border-bottom: 0;
            padding-bottom: 0;
        }

        .simulador-policy-label {
            color: #6c757d;
            font-size: 0.72rem;
            font-weight: 800;
            letter-spacing: 0;
            text-transform: uppercase;
        }

        .simulador-policy-value {
            color: #212529;
            font-size: 0.95rem;
            font-weight: 700;
            overflow-wrap: anywhere;
        }

        .simulador-live-check {
            border-radius: 0.45rem;
            background: rgba(var(--sofom-primary-rgb, 36, 105, 92), 0.1);
            color: var(--sofom-primary, #24695c);
            font-size: 0.84rem;
            font-weight: 700;
            line-height: 1.35;
            padding: 0.75rem;
        }

        .simulador-live-check.is-warning {
            background: #fff8e6;
            color: #996b00;
        }

        .simulador-live-check.is-danger {
            background: #fff1f0;
            color: #b42318;
        }

        .simulador-result-grid {
            display: grid;
            grid-template-columns: repeat(4, minmax(0, 1fr));
            gap: 0.75rem;
        }

        .simulador-result-item {
            border: 1px solid #e9ecef;
            border-radius: 0.5rem;
            padding: 0.85rem;
            min-height: 86px;
        }

        .simulador-result-item.is-primary {
            border-color: rgba(var(--sofom-primary-rgb, 36, 105, 92), 0.22);
            background: rgba(var(--sofom-primary-rgb, 36, 105, 92), 0.07);
        }

        .simulador-result-label {
            color: #6c757d;
            font-size: 0.72rem;
            font-weight: 700;
            letter-spacing: 0;
            text-transform: uppercase;
        }

        .simulador-result-value {
            color: #212529;
            font-size: 1.15rem;
            font-weight: 800;
            line-height: 1.2;
            overflow-wrap: anywhere;
        }

        .simulador-table-shell {
            max-height: 440px;
            overflow: auto;
            border: 1px solid #e9ecef;
            border-radius: 0.5rem;
        }

        .simulador-table-shell table {
            margin-bottom: 0;
        }

        .simulador-actions {
            display: flex;
            justify-content: flex-end;
            gap: 0.5rem;
            flex-wrap: wrap;
        }

        @media (max-width: 1199.98px) {
            .simulador-result-grid {
                grid-template-columns: repeat(2, minmax(0, 1fr));
            }
        }

        @media (max-width: 575.98px) {
            .simulador-section,
            .simulador-policy-panel {
                padding: 0.85rem;
            }

            .simulador-result-grid {
                grid-template-columns: 1fr;
            }

            .simulador-actions {
                justify-content: stretch;
            }

            .simulador-actions .btn {
                width: 100%;
            }
        }

/* app/Views/cobranza/reportes/index.php */
        .cartera-filters {
            background: #fff;
            border: 1px solid #e9ecef;
            border-radius: 0.5rem;
            padding: 1rem;
            margin-bottom: 1rem;
        }

        .cartera-summary-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
            gap: 0.75rem;
            margin-bottom: 1rem;
        }

        .cartera-summary-item {
            border: 1px solid #e9ecef;
            border-radius: 0.5rem;
            padding: 0.75rem;
            min-height: 78px;
            background: #fff;
        }

        .cartera-summary-item .label {
            color: #6c757d;
            font-size: 0.72rem;
            font-weight: 700;
            text-transform: uppercase;
        }

        .cartera-summary-item .value {
            font-size: 1.05rem;
            font-weight: 700;
            line-height: 1.35;
            margin-top: 0.25rem;
        }

        .cartera-status-badge {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-width: 92px;
            padding: 0.25rem 0.5rem;
            border-radius: 999px;
            font-size: 0.72rem;
            font-weight: 700;
        }

        .cartera-status-activo { background: #d1e7dd; color: #0f5132; }
        .cartera-status-liquidado { background: #cff4fc; color: #055160; }
        .cartera-status-vencido { background: #f8d7da; color: #842029; }

/* app/Views/general/reportes_operativos/index.php */
        .operativos-filters {
            background: #fff;
            border: 1px solid #e9ecef;
            border-radius: 0.5rem;
            padding: 1rem;
            margin-bottom: 1rem;
        }

        .operativos-periodo {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 1rem;
            padding: 0.75rem 1rem;
            border: 1px solid rgba(var(--sofom-primary-rgb, 36, 105, 92), 0.18);
            border-radius: 0.5rem;
            background: rgba(var(--sofom-primary-rgb, 36, 105, 92), 0.06);
            margin-bottom: 1rem;
        }

        .operativos-periodo .label {
            display: block;
            color: #6c757d;
            font-size: 0.72rem;
            font-weight: 700;
            text-transform: uppercase;
        }

        .operativos-periodo strong {
            color: var(--sofom-theme-ink, #1f4f46);
            font-size: 1rem;
        }

        .operativos-metric-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
            gap: 0.75rem;
            margin-bottom: 1rem;
        }

        .operativos-metric {
            position: relative;
            min-height: 118px;
            border: 1px solid #e9ecef;
            border-radius: 0.5rem;
            background: #fff;
            padding: 0.9rem 0.9rem 0.85rem;
        }

        .operativos-metric .icon {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 2rem;
            height: 2rem;
            border-radius: 0.5rem;
            background: rgba(var(--sofom-primary-rgb, 36, 105, 92), 0.12);
            color: var(--sofom-primary, #24695c);
            margin-bottom: 0.5rem;
        }

        .operativos-metric .icon.danger {
            background: #f8d7da;
            color: #842029;
        }

        .operativos-metric .label {
            display: block;
            color: #6c757d;
            font-size: 0.72rem;
            font-weight: 700;
            text-transform: uppercase;
        }

        .operativos-metric strong {
            display: block;
            color: var(--sofom-theme-ink, #1f4f46);
            font-size: 1.15rem;
            font-weight: 800;
            line-height: 1.3;
            margin-top: 0.2rem;
            overflow-wrap: anywhere;
        }

        .operativos-metric small {
            display: block;
            color: #6c757d;
            font-weight: 600;
            line-height: 1.35;
            margin-top: 0.25rem;
        }

        .operativos-accordion {
            border: 1px solid #e1e8ee;
            border-radius: 0.5rem;
            background: #fff;
            margin-bottom: 0.75rem;
            overflow: hidden;
        }

        .operativos-accordion summary {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 1rem;
            min-height: 54px;
            padding: 0.85rem 1rem;
            background: #f8fafc;
            color: var(--sofom-theme-ink, #1f4f46);
            cursor: pointer;
            font-weight: 800;
            list-style: none;
        }

        .operativos-accordion summary::-webkit-details-marker {
            display: none;
        }

        .operativos-accordion summary::after {
            content: "\f107";
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 2rem;
            height: 2rem;
            border-radius: 0.5rem;
            background: rgba(var(--sofom-primary-rgb, 36, 105, 92), 0.1);
            color: var(--sofom-primary, #24695c);
            font-family: FontAwesome;
            font-weight: 400;
            transition: transform 0.16s ease;
        }

        .operativos-accordion[open] summary::after {
            transform: rotate(180deg);
        }

        .operativos-accordion summary span {
            display: block;
            font-size: 0.9rem;
            text-transform: uppercase;
        }

        .operativos-accordion summary small {
            display: block;
            color: #6c757d;
            font-size: 0.72rem;
            font-weight: 700;
            text-transform: uppercase;
        }

        .operativos-accordion-body {
            padding: 1rem;
        }

        .operativos-panel {
            height: 100%;
            border: 1px solid #e9ecef;
            border-radius: 0.5rem;
            background: #fff;
            overflow: hidden;
        }

        .operativos-panel-header {
            padding: 0.85rem 1rem;
            border-bottom: 1px solid #e9ecef;
            background: #f8fafc;
        }

        .operativos-panel-header h6 {
            margin: 0;
            color: var(--sofom-theme-ink, #1f4f46);
            font-size: 0.88rem;
            font-weight: 800;
            letter-spacing: 0;
        }

        .operativos-detail-list {
            padding: 0.35rem 1rem;
        }

        .operativos-detail-list > div {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 1rem;
            min-height: 44px;
            border-bottom: 1px solid #f1f3f5;
        }

        .operativos-detail-list > div:last-child {
            border-bottom: 0;
        }

        .operativos-detail-list span {
            color: #6c757d;
            font-weight: 700;
            text-transform: uppercase;
            font-size: 0.72rem;
        }

        .operativos-detail-list strong {
            color: var(--sofom-theme-ink, #1f4f46);
            font-size: 0.95rem;
            font-weight: 800;
            text-align: right;
        }

        .operativos-table thead th {
            background: #eef3f6;
            color: #344050;
            font-size: 0.72rem;
            font-weight: 800;
            text-transform: uppercase;
            border-bottom: 1px solid #d8e0e7;
        }

        .operativos-table tbody td {
            color: #344050;
            font-weight: 600;
            border-color: #edf1f4;
        }

        .operativos-status {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-width: 86px;
            padding: 0.2rem 0.45rem;
            border-radius: 999px;
            background: rgba(var(--sofom-primary-rgb, 36, 105, 92), 0.1);
            color: var(--sofom-primary, #24695c);
            font-size: 0.68rem;
            font-weight: 800;
        }

        @media (max-width: 575.98px) {
            .operativos-periodo {
                align-items: flex-start;
                flex-direction: column;
            }

            .operativos-metric {
                min-height: 104px;
            }
        }

/* app/Views/cobranza/convenios/index.php */
        .convenios-status-badge {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-width: 92px;
            padding: 0.25rem 0.5rem;
            border-radius: 999px;
            font-size: 0.72rem;
            font-weight: 700;
        }

        .convenios-status-ok { background: #d1e7dd; color: #0f5132; }
        .convenios-status-alerta { background: #f8d7da; color: #842029; }

/* app/Views/cobranza/pagos/index.php */
        .cobranza-filters {
            background: #fff;
            border: 1px solid #e9ecef;
            border-radius: 0.5rem;
            padding: 1rem;
            margin-bottom: 1rem;
        }

        .cobranza-status-badge {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-width: 92px;
            padding: 0.25rem 0.5rem;
            border-radius: 999px;
            font-size: 0.72rem;
            font-weight: 700;
        }

        .cobranza-status-activo { background: #d1e7dd; color: #0f5132; }
        .cobranza-status-liquidado { background: #cff4fc; color: #055160; }
        .cobranza-status-vencido { background: #f8d7da; color: #842029; }

/* app/Views/tesoreria/cuentas/index.php */
        .tesoreria-cuentas-filters {
            background: #fff;
            border: 1px solid #e9ecef;
            border-radius: 0.5rem;
            padding: 1rem;
            margin-bottom: 1rem;
        }

        .tesoreria-account-badge {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-width: 82px;
            padding: 0.25rem 0.5rem;
            border-radius: 999px;
            font-size: 0.72rem;
            font-weight: 700;
        }

        .tesoreria-account-activa { background: #d1e7dd; color: #0f5132; }
        .tesoreria-account-inactiva { background: #f8d7da; color: #842029; }

/* app/Views/tesoreria/movimientos/index.php */
        .tesoreria-filters {
            background: #fff;
            border: 1px solid #e9ecef;
            border-radius: 0.5rem;
            padding: 1rem;
            margin-bottom: 1rem;
        }

        .tesoreria-filter-actions {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 0.35rem;
        }

        .page-body .tesoreria-filter-actions .app-filter-button,
        body:not(.dark-only) .page-body .tesoreria-filter-actions .app-filter-button,
        .tesoreria-filter-actions .btn {
            width: 100%;
            min-width: 0 !important;
            padding-right: 0.35rem !important;
            padding-left: 0.35rem !important;
        }

        .tesoreria-status-badge {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-width: 92px;
            padding: 0.25rem 0.5rem;
            border-radius: 999px;
            font-size: 0.72rem;
            font-weight: 700;
        }

        .tesoreria-status-aplicado { background: #d1e7dd; color: #0f5132; }
        .tesoreria-status-conciliado { background: #cff4fc; color: #055160; }
        .tesoreria-status-cancelado { background: #f8d7da; color: #842029; }
        .tesoreria-status-match_propuesto { background: #fff3cd; color: #664d03; }
        .tesoreria-status-no_identificado { background: #f8d7da; color: #842029; }
        .tesoreria-status-descartado { background: #e2e3e5; color: #41464b; }
        .tesoreria-status-pendiente { background: #fff3cd; color: #664d03; }
        .tesoreria-status-incompleto { background: #f8d7da; color: #842029; }
        .tesoreria-status-generado { background: #cff4fc; color: #055160; }
        .tesoreria-status-resultado_cargado { background: #d1e7dd; color: #0f5132; }
        .tesoreria-status-no_aplica { background: #e2e3e5; color: #41464b; }

/* app/Views/configuraciones/general/productos_financieros/index.php */
        .productos-financieros-table-shell {
            width: 100%;
        }

        #ProductosFinancierosTable {
            width: 100% !important;
        }

/* app/Views/configuraciones/general/prospeccion_cumplimiento/index.php */
        .compliance-shell {
            width: min(100%, calc(100vw - 2rem));
            background: #fff;
            border: 1px solid rgba(15, 23, 42, 0.08);
            border-radius: 8px;
            box-shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
            overflow: hidden;
        }

        .compliance-header {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            justify-content: space-between;
            gap: 1rem;
            padding: 1.25rem;
            border-bottom: 1px solid rgba(15, 23, 42, 0.08);
            background: linear-gradient(180deg, #fbfdfd 0%, #f6f9f8 100%);
        }

        .compliance-header h5 {
            margin: 0;
            letter-spacing: 0;
        }

        .compliance-kicker,
        .compliance-label {
            display: block;
            color: #64748b;
            font-size: 0.72rem;
            font-weight: 800;
            letter-spacing: 0;
            text-transform: uppercase;
        }

        .compliance-subtitle {
            margin: 0.25rem 0 0;
            color: #475569;
            font-size: 0.9rem;
        }

        .compliance-actions {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            justify-content: flex-end;
            gap: 0.75rem;
        }

        .compliance-status-badge {
            border-radius: 999px;
            padding: 0.55rem 0.8rem;
            font-size: 0.75rem;
            font-weight: 800;
            letter-spacing: 0;
        }

        .compliance-status-badge.is-ready {
            background: #dcfce7;
            color: #166534;
        }

        .compliance-status-badge.is-pending {
            background: #fee2e2;
            color: #991b1b;
        }

        .compliance-body {
            padding: 1.25rem;
        }

        .compliance-regulatory {
            padding: 1rem;
            border-bottom: 1px solid rgba(15, 23, 42, 0.08);
            background: #f8fafc;
        }

        .compliance-regulatory .regulatory-hero {
            box-shadow: none;
        }

        .compliance-body .regulatory-filter-panel {
            margin-bottom: 1rem;
        }

        .compliance-metrics {
            display: grid;
            grid-template-columns: repeat(4, minmax(0, 1fr));
            gap: 0.75rem;
            margin-bottom: 1rem;
        }

        .compliance-metric {
            border: 1px solid rgba(15, 23, 42, 0.08);
            border-radius: 8px;
            padding: 0.95rem;
            background: #fff;
        }

        .compliance-metric strong {
            display: block;
            margin-top: 0.25rem;
            color: #0f172a;
            font-size: 1.35rem;
            line-height: 1.1;
        }

        .compliance-metric small {
            display: block;
            margin-top: 0.25rem;
            color: #64748b;
            line-height: 1.35;
        }

        .compliance-reference {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 0.5rem;
            margin-bottom: 1.25rem;
            padding: 0.85rem;
            border: 1px solid rgba(var(--sofom-primary-rgb, 36, 105, 92), 0.18);
            border-radius: 8px;
            background: var(--sofom-theme-surface, #f6fbfa);
        }

        .compliance-reference span:not(.compliance-label) {
            display: inline-flex;
            align-items: center;
            min-height: 30px;
            padding: 0.3rem 0.6rem;
            border: 1px solid rgba(var(--sofom-primary-rgb, 36, 105, 92), 0.18);
            border-radius: 999px;
            background: #fff;
            color: var(--sofom-theme-ink, #1f4f46);
            font-size: 0.78rem;
            font-weight: 700;
        }

        .compliance-workbench {
            display: grid;
            grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
            gap: 1rem;
            align-items: start;
        }

        .compliance-nav {
            position: sticky;
            top: 92px;
            border: 1px solid rgba(15, 23, 42, 0.08);
            border-radius: 8px;
            padding: 0.75rem;
            background: #fff;
        }

        .compliance-nav .nav-link {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 0.75rem;
            width: 100%;
            margin-bottom: 0.45rem;
            border: 1px solid rgba(15, 23, 42, 0.08);
            border-radius: 8px;
            color: #334155;
            text-align: left;
        }

        .compliance-nav .nav-link:last-child {
            margin-bottom: 0;
        }

        .compliance-nav .nav-link.active {
            background: var(--sofom-primary, #24695c);
            border-color: var(--sofom-primary, #24695c);
            color: #fff;
        }

        .compliance-nav .nav-link span {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            font-weight: 800;
        }

        .compliance-nav .nav-link small {
            flex: 0 0 auto;
            color: inherit;
            font-weight: 700;
            opacity: 0.8;
        }

        .compliance-panel {
            border: 1px solid rgba(15, 23, 42, 0.08);
            border-radius: 8px;
            overflow: hidden;
            background: #fff;
        }

        .compliance-panel-header {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            justify-content: space-between;
            gap: 0.75rem;
            padding: 1rem;
            border-bottom: 1px solid rgba(15, 23, 42, 0.08);
            background: #f8fafc;
        }

        .compliance-panel-header h6 {
            margin: 0;
            font-weight: 800;
        }

        .compliance-panel-header p {
            margin: 0.25rem 0 0;
            color: #64748b;
            font-size: 0.85rem;
        }

        .compliance-group {
            padding: 1rem;
            border-bottom: 1px solid rgba(15, 23, 42, 0.08);
        }

        .compliance-group:last-child {
            border-bottom: 0;
        }

        .compliance-group-title {
            display: flex;
            flex-wrap: wrap;
            align-items: flex-start;
            justify-content: space-between;
            gap: 0.75rem;
            margin-bottom: 0.9rem;
        }

        .compliance-group-title h6 {
            margin: 0;
            font-weight: 800;
        }

        .compliance-group-title p {
            max-width: 780px;
            margin: 0.25rem 0 0;
            color: #64748b;
            font-size: 0.85rem;
        }

        .compliance-progress-pill,
        .compliance-field-state {
            display: inline-flex;
            align-items: center;
            min-height: 24px;
            padding: 0.2rem 0.5rem;
            border-radius: 999px;
            font-size: 0.7rem;
            font-weight: 800;
            letter-spacing: 0;
        }

        .compliance-progress-pill {
            background: #eff6ff;
            color: var(--sofom-primary, #1d4ed8);
        }

        .compliance-field {
            height: 100%;
            padding: 0.75rem;
            border: 1px solid rgba(15, 23, 42, 0.08);
            border-radius: 8px;
            background: #fff;
        }

        .compliance-field.is-missing {
            border-color: rgba(217, 119, 6, 0.4);
            background: #fffbeb;
        }

        .compliance-field.is-invalid-field {
            border-color: rgba(220, 38, 38, 0.35);
            background: #fff7f7;
        }

        .compliance-field.is-ready {
            border-color: rgba(var(--sofom-primary-rgb, 22, 101, 52), 0.18);
        }

        .compliance-field .form-label {
            margin: 0;
            color: #1e293b;
            font-weight: 800;
        }

        .compliance-field-state.is-ready {
            background: #dcfce7;
            color: #166534;
        }

        .compliance-field-state.is-missing {
            background: #fef3c7;
            color: #92400e;
        }

        .compliance-field-state.is-invalid-field {
            background: #fee2e2;
            color: #991b1b;
        }

        .compliance-field-state.is-optional {
            background: #f1f5f9;
            color: #475569;
        }

        .compliance-control {
            margin-top: 0.55rem;
        }

        .compliance-field .form-text {
            color: #64748b;
            font-size: 0.78rem;
            line-height: 1.35;
        }

        .compliance-field .form-control-color {
            width: 4.5rem;
            min-height: 42px;
            padding: 0.25rem;
        }

        .compliance-theme-presets {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 0.75rem;
            margin-top: 0.75rem;
        }

        .compliance-theme-option {
            appearance: none;
            position: relative;
            display: grid;
            grid-template-rows: auto 1fr auto;
            gap: 0.65rem;
            min-height: 154px;
            width: 100%;
            padding: 0.85rem;
            border: 1px solid rgba(var(--theme-primary-rgb, 36, 105, 92), 0.18);
            border-radius: 8px;
            overflow: hidden;
            background:
                linear-gradient(180deg, rgba(255, 255, 255, 0.82) 0%, rgba(255, 255, 255, 0.58) 100%),
                linear-gradient(135deg, var(--theme-surface, #fff) 0%, var(--theme-surface-alt, #fff) 100%);
            color: #0f172a;
            text-align: left;
            transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
        }

        .compliance-theme-option::before {
            content: "";
            position: absolute;
            inset: 0;
            background:
                linear-gradient(135deg, rgba(var(--theme-primary-rgb, 36, 105, 92), 0.1), transparent 44%),
                linear-gradient(315deg, rgba(var(--theme-secondary-rgb, 186, 137, 93), 0.12), transparent 52%);
            opacity: 0.58;
            pointer-events: none;
        }

        .compliance-theme-option > * {
            position: relative;
            z-index: 1;
        }

        .compliance-theme-option:hover,
        .compliance-theme-option:focus {
            border-color: var(--theme-primary, #24695c);
            box-shadow: 0 12px 28px rgba(var(--theme-primary-rgb, 36, 105, 92), 0.16);
            outline: none;
            transform: translateY(-1px);
        }

        .compliance-theme-option.is-active {
            border-color: var(--theme-primary, #24695c);
            box-shadow:
                0 0 0 3px rgba(var(--theme-primary-rgb, 36, 105, 92), 0.16),
                0 16px 34px rgba(var(--theme-primary-rgb, 36, 105, 92), 0.14);
        }

        .compliance-theme-option:disabled {
            cursor: not-allowed;
            opacity: 0.72;
            transform: none;
        }

        .compliance-theme-preview {
            display: grid;
            grid-template-columns: 1fr 0.55fr;
            gap: 0.35rem;
            height: 42px;
        }

        .compliance-theme-preview span {
            border-radius: 6px;
        }

        .compliance-theme-preview span:first-child {
            background: linear-gradient(135deg, var(--theme-primary, #24695c), var(--theme-primary-hover, #1b4f45));
        }

        .compliance-theme-preview span:last-child {
            background: linear-gradient(135deg, var(--theme-secondary, #ba895d), var(--theme-secondary-hover, #93683f));
        }

        .compliance-theme-name {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 0.75rem;
            color: var(--theme-ink, #0f172a);
            font-size: 0.86rem;
            font-weight: 800;
            line-height: 1.2;
        }

        .compliance-theme-check {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            flex: 0 0 24px;
            width: 24px;
            height: 24px;
            border: 1px solid rgba(15, 23, 42, 0.18);
            border-radius: 999px;
            background: #fff;
            color: transparent;
            font-size: 0.75rem;
        }

        .compliance-theme-option.is-active .compliance-theme-check {
            border-color: var(--theme-primary, #24695c);
            background: var(--theme-primary, #24695c);
            color: var(--theme-primary-contrast, #fff);
        }

        .compliance-theme-copy {
            margin: 0;
            color: var(--theme-ink, #0f172a);
            font-size: 0.78rem;
            line-height: 1.35;
            opacity: 0.78;
        }

        .compliance-theme-swatches {
            display: flex;
            flex-wrap: wrap;
            gap: 0.4rem;
        }

        .compliance-theme-swatch {
            display: inline-flex;
            align-items: center;
            gap: 0.35rem;
            color: var(--theme-ink, #0f172a);
            font-size: 0.72rem;
            font-weight: 700;
        }

        .compliance-theme-swatch::before {
            content: "";
            width: 14px;
            height: 14px;
            border: 1px solid rgba(15, 23, 42, 0.16);
            border-radius: 999px;
            background: var(--swatch-color, #24695c);
        }

        .compliance-theme-custom-note {
            display: none;
            margin-top: 0.75rem;
            color: #475569;
            font-size: 0.78rem;
            font-weight: 700;
        }

        .compliance-theme-custom-note.is-visible {
            display: block;
        }

        @media (max-width: 1399.98px) {
            .compliance-metrics {
                grid-template-columns: repeat(2, minmax(0, 1fr));
            }
        }

        @media (max-width: 1199.98px) {
            .compliance-workbench {
                grid-template-columns: 1fr;
            }

            .compliance-nav {
                position: static;
            }

            .compliance-theme-presets {
                grid-template-columns: repeat(2, minmax(0, 1fr));
            }
        }

        @media (max-width: 575.98px) {
            .compliance-header,
            .compliance-body {
                padding: 1rem;
            }

            .compliance-actions,
            .compliance-actions .btn,
            .compliance-metrics {
                width: 100%;
            }

            .compliance-metrics {
                grid-template-columns: 1fr;
            }

            .compliance-nav .nav-link {
                align-items: flex-start;
                flex-direction: column;
            }

            .compliance-theme-presets {
                grid-template-columns: 1fr;
            }
        }

/* app/Views/templates/header.php */
        .sofom-brand-logo {
            max-height: 46px;
            max-width: 190px;
            object-fit: contain;
        }

/* app/Views/credito/garantias/index.php */
        .garantias-filters {
            background: #fff;
            border: 1px solid #e9ecef;
            border-radius: 0.5rem;
            padding: 1rem;
            margin-bottom: 1rem;
        }

        .garantia-status-badge {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-width: 92px;
            padding: 0.25rem 0.5rem;
            border-radius: 999px;
            font-size: 0.72rem;
            font-weight: 700;
        }

        .garantia-status-vigente { background: #d1e7dd; color: #0f5132; }
        .garantia-status-liberada { background: #cff4fc; color: #055160; }
        .garantia-status-ejecutada { background: #f8d7da; color: #842029; }
        .garantia-status-cancelada { background: #e2e3e5; color: #41464b; }
        .garantia-alert-badge {
            display: inline-flex;
            align-items: center;
            margin: 0.125rem;
            padding: 0.2rem 0.45rem;
            border-radius: 999px;
            font-size: 0.68rem;
            font-weight: 700;
        }
        .garantia-alert-danger { background: #f8d7da; color: #842029; }
        .garantia-alert-warning { background: #fff3cd; color: #664d03; }
        .garantia-alert-ok { background: #e2e3e5; color: #41464b; }

/* Regulatory PLD/SITI workspaces */
.regulatory-workspace {
    display: grid;
    gap: 1rem;
}

.regulatory-hero {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid #e6edf1;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
}

.regulatory-hero-main {
    display: grid;
    gap: 0.65rem;
    min-width: 0;
}

.regulatory-kicker {
    color: #64748b;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.regulatory-title-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.regulatory-title-row h5,
.regulatory-title-row h4 {
    margin-bottom: 0;
}

.regulatory-copy {
    max-width: 860px;
    margin-bottom: 0;
    color: #475569;
    font-size: 0.9rem;
    line-height: 1.5;
}

.regulatory-actions {
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    min-width: 230px;
}

.regulatory-guide-grid,
.regulatory-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
}

.regulatory-guide-step,
.regulatory-stat-card {
    min-width: 0;
    min-height: 104px;
    padding: 0.85rem;
    border: 1px solid #e7edf2;
    border-radius: 8px;
    background: #fff;
}

.regulatory-guide-step {
    display: grid;
    align-content: start;
    gap: 0.45rem;
}

.regulatory-step-top {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.regulatory-step-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: var(--sofom-primary-soft, rgba(36, 105, 92, 0.1));
    color: var(--sofom-primary, #24695c);
}

.regulatory-step-top strong,
.regulatory-stat-label {
    color: #0f172a;
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1.3;
    text-transform: uppercase;
}

.regulatory-guide-step p,
.regulatory-stat-help,
.regulatory-note {
    margin-bottom: 0;
    color: #64748b;
    font-size: 0.82rem;
    line-height: 1.45;
}

.regulatory-stat-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0.4rem;
}

.regulatory-stat-value {
    color: #0f172a;
    font-size: 1.45rem;
    font-weight: 800;
    line-height: 1;
}

.regulatory-note {
    padding: 0.8rem 0.9rem;
    border: 1px solid rgba(var(--sofom-secondary-rgb, 186, 137, 93), 0.28);
    border-radius: 8px;
    background: rgba(var(--sofom-secondary-rgb, 186, 137, 93), 0.08);
}

.regulatory-filter-panel {
    padding: 0.85rem;
    border: 1px solid #e7edf2;
    border-radius: 8px;
    background: #fbfdff;
}

.regulatory-tabs .nav-link {
    min-height: 40px;
    border-radius: 8px 8px 0 0;
    color: #475569;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.regulatory-tabs .nav-link.active {
    color: var(--sofom-primary, #24695c);
}

.regulatory-table-card .card-header {
    border-bottom: 1px solid #edf2f7;
}

.regulatory-modal-note {
    padding: 0.75rem 0.85rem;
    border: 1px solid #dbe7ee;
    border-radius: 8px;
    background: #f8fbfd;
    color: #475569;
    font-size: 0.84rem;
    line-height: 1.45;
}

.regulatory-source-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.regulatory-source-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    min-height: 30px;
}

@media (max-width: 1199.98px) {
    .regulatory-guide-grid,
    .regulatory-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .regulatory-hero {
        flex-direction: column;
    }

    .regulatory-actions {
        justify-content: flex-start;
        min-width: 0;
    }

    .regulatory-guide-grid,
    .regulatory-stat-grid {
        grid-template-columns: 1fr;
    }
}

/* app/Views/general/prospeccion_creditos/partials/privacy_consent_fields.php */
        .privacy-help-icon {
            width: 1rem;
            height: 1rem;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            margin-left: 0.25rem;
            padding: 0;
            border: 1px solid rgba(26, 54, 93, 0.35);
            border-radius: 50%;
            background: #f8fbff;
            color: #1a365d;
            font-size: 0.68rem;
            font-weight: 700;
            line-height: 1;
            vertical-align: text-bottom;
        }

        .privacy-help-icon:hover,
        .privacy-help-icon:focus {
            border-color: #1f6f78;
            background: #e7f4f5;
            color: #164e56;
            outline: none;
        }

/* public/assets/custom/js/global.js */
        .app-confirm-modal__body {
            display: flex;
            gap: 1rem;
            align-items: flex-start;
        }

        .app-confirm-modal__icon {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            flex: 0 0 44px;
            width: 44px;
            height: 44px;
            border-radius: 8px;
            font-size: 1.15rem;
            background: #fff7ed;
            color: #9a3412;
        }

        .app-confirm-modal--danger .app-confirm-modal__icon {
            background: #fef2f2;
            color: #991b1b;
        }

        .app-confirm-modal__copy p {
            margin: 0;
            color: #172033;
            font-size: 0.95rem;
            font-weight: 700;
            line-height: 1.45;
            white-space: pre-line;
        }

        .app-confirm-modal__copy small {
            display: block;
            margin-top: 0.35rem;
            color: #64748b;
            font-size: 0.82rem;
            line-height: 1.35;
        }

/* Q-Detect/PEP capture precheck */
        .capture-pep-precheck {
            border-radius: 8px;
            padding: 0.85rem 1rem;
        }

        .capture-pep-precheck__summary {
            align-items: center;
            display: flex;
            flex-wrap: wrap;
            gap: 0.45rem 0.65rem;
        }

        .capture-pep-precheck__summary > span {
            flex: 1 1 24rem;
        }

        .capture-pep-precheck__toggle {
            margin-left: auto;
            white-space: nowrap;
        }

        .capture-pep-precheck__details {
            border-top: 1px solid rgba(15, 23, 42, 0.12);
            margin-top: 0.85rem;
            padding-top: 0.85rem;
        }

        .capture-pep-precheck__chips {
            display: flex;
            flex-wrap: wrap;
            gap: 0.35rem 0.5rem;
            margin-bottom: 0.75rem;
        }

        .capture-pep-precheck__chip {
            background: rgba(255, 255, 255, 0.72);
            border: 1px solid rgba(100, 116, 139, 0.24);
            border-radius: 999px;
            color: #334155;
            font-size: 0.75rem;
            font-weight: 800;
            letter-spacing: 0.02em;
            padding: 0.18rem 0.55rem;
            text-transform: uppercase;
        }

        .capture-pep-precheck__table-wrap {
            background: rgba(255, 255, 255, 0.62);
            border: 1px solid rgba(100, 116, 139, 0.18);
            border-radius: 8px;
            max-height: 340px;
            overflow: auto;
        }

        .capture-pep-precheck__table {
            color: #1f2937;
            min-width: 760px;
        }

        .capture-pep-precheck__table th {
            background: rgba(241, 245, 249, 0.88);
            color: #334155;
            font-size: 0.78rem;
            font-weight: 900;
            letter-spacing: 0.02em;
            position: sticky;
            text-transform: uppercase;
            top: 0;
            z-index: 1;
        }

        .capture-pep-precheck__table td {
            border-color: rgba(100, 116, 139, 0.16);
            vertical-align: middle;
        }

        .capture-pep-precheck__table small {
            color: #64748b;
            display: block;
            font-weight: 700;
            letter-spacing: 0.04em;
            margin-top: 0.15rem;
        }

        .capture-pep-precheck__record {
            font-weight: 800;
            letter-spacing: 0.03em;
        }

        .capture-pep-precheck__empty {
            color: #64748b;
            font-weight: 800;
            letter-spacing: 0.03em;
            padding: 0.75rem;
            text-align: center;
        }

        @media (max-width: 575.98px) {
            .capture-pep-precheck__toggle {
                margin-left: 0;
                width: 100%;
            }
        }

/* Sidebar */
@media (min-width: 1200px) {
        .page-wrapper.compact-wrapper .page-body-wrapper header.main-nav,
        .box-layout .page-wrapper.compact-wrapper .page-body-wrapper header.main-nav {
            --sidebar-main-offset: 92px;
            --sidebar-bottom-reserve: 300px;
            bottom: 12px !important;
            height: calc(100vh - 102px) !important;
        }

        .page-wrapper.compact-wrapper .page-body-wrapper header.main-nav .main-navbar,
        .box-layout .page-wrapper.compact-wrapper .page-body-wrapper header.main-nav .main-navbar,
        .page-wrapper.compact-wrapper .page-body-wrapper header.main-nav .main-navbar #mainnav,
        .box-layout .page-wrapper.compact-wrapper .page-body-wrapper header.main-nav .main-navbar #mainnav {
            min-height: 0;
        }

        .page-wrapper.compact-wrapper .page-body-wrapper header.main-nav .main-navbar .nav-menu,
        .box-layout .page-wrapper.compact-wrapper .page-body-wrapper header.main-nav .main-navbar .nav-menu {
            height: calc(100vh - var(--sidebar-main-offset) - var(--sidebar-bottom-reserve)) !important;
            max-height: calc(100vh - var(--sidebar-main-offset) - var(--sidebar-bottom-reserve)) !important;
            overflow-y: auto !important;
            padding-bottom: 22px !important;
            overscroll-behavior: contain;
        }

        .page-wrapper.compact-wrapper .page-body-wrapper header.main-nav .main-navbar-down,
        .box-layout .page-wrapper.compact-wrapper .page-body-wrapper header.main-nav .main-navbar-down {
            bottom: 0 !important;
            padding-bottom: max(14px, env(safe-area-inset-bottom)) !important;
        }

        @media (max-height: 760px) {
            .page-wrapper.compact-wrapper .page-body-wrapper header.main-nav,
            .box-layout .page-wrapper.compact-wrapper .page-body-wrapper header.main-nav {
                --sidebar-main-offset: 82px;
                --sidebar-bottom-reserve: 315px;
            }

            .page-wrapper.compact-wrapper .page-body-wrapper header.main-nav .main-navbar .nav-menu,
            .box-layout .page-wrapper.compact-wrapper .page-body-wrapper header.main-nav .main-navbar .nav-menu {
                padding-top: 12px !important;
                padding-bottom: 18px !important;
            }

            .page-wrapper.compact-wrapper .page-body-wrapper header.main-nav .main-navbar-down,
            .box-layout .page-wrapper.compact-wrapper .page-body-wrapper header.main-nav .main-navbar-down {
                padding-top: 7px !important;
                padding-bottom: 9px !important;
            }

            .navbar-nav-down .nav-item-down,
            .navbar-nav-down .nav-link-down {
                min-height: 29px !important;
            }
        }
}
