    :root {
        --main-blue: #74b9ff;
        --main-blue-dark: #4a90e2;
        --soft-bg: #f8f9fa;
        --card-bg: #ffffff;
        --text-dark: #2c3e50;
        --border: #dee2e6;

        /* paleta gris/neutral para gráficas */
        --gray-900: #1f2937;
        --gray-700: #374151;
        --gray-500: #6b7280;
        --gray-300: #d1d5db;
        --gray-200: #e5e7eb;
    }

    .dashboard-container,
    .dashboard-container * {
        text-transform: uppercase !important;
    }

    ::-webkit-input-placeholder {
        text-transform: uppercase !important;
    }

    ::-moz-placeholder {
        text-transform: uppercase !important;
    }

    :-ms-input-placeholder {
        text-transform: uppercase !important;
    }

    :-moz-placeholder {
        text-transform: uppercase !important;
    }

    .dashboard-container {
        font-family: inherit;
        padding: 20px;
        background-color: var(--soft-bg);
        color: var(--text-dark);
        margin: 0 auto 20px;
        border-radius: 8px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
        width: 100%;
        max-width: 100%;
        position: relative;
        left: auto;
        transform: none;
        box-sizing: border-box;
    }

    body.atencion-refugiado-graficos-pagina .entry-content,
    body.atencion-refugiado-graficos-pagina .page-content,
    body.atencion-refugiado-graficos-pagina .wp-block-post-content {
        max-width: 100%;
    }

    body.atencion-refugiado-graficos-pagina .dashboard-container {
        margin-top: 68px;
    }

    @media (min-width: 1200px) {
        .dashboard-container {
            width: 120%;
            max-width: 120%;
            left: 50%;
            transform: translateX(-50%);
        }
    }

    .atencion-refugiado-logout-temporalmente-oculto {
        display: none !important;
    }

    .dashboard-container h2 {
        margin: 24px 0px;
        font-size: 26px;
        color: var(--main-blue);
    }

    .total-box {
        background: #fff;
        border: 1px solid var(--border);
        padding: 10px 14px;
        border-radius: 6px;
        display: inline-block;
        font-size: 15px;
        margin-bottom: 15px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
    }

    .filter-bar {
        background: #ffffff;
        padding: 12px 14px;
        border-radius: 6px;
        margin-bottom: 20px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .filter-section {
        border: 1px solid #e9ecef;
        border-radius: 8px;
        padding: 10px 12px 12px;
        background: #fbfcfd;
    }

    .filter-section-title {
        color: var(--main-blue-dark);
        font-size: 12px;
        font-weight: 800;
        letter-spacing: 0.04em;
        margin-bottom: 10px;
        text-transform: uppercase;
    }

    .filter-row {
        display: flex;
        gap: 10px;
        align-items: flex-end;
        flex-wrap: wrap;
        width: 100%;
    }

    .filter-bar .filter-row {
        display: grid;
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 10px 12px;
        align-items: end;
        flex-wrap: nowrap;
    }

    .filter-bar .filter-row--basic {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }

    .filter-bar .filter-row--4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .filter-bar .filter-row--5 {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    .filter-bar .filter-row--health {
        grid-template-columns: repeat(7, minmax(0, 1fr));
    }

    .filter-bar .filter-row--actions {
        grid-template-columns: 1fr;
        align-items: end;
        gap: 12px;
        justify-items: end;
    }

    .filter-bar .filter-group--wide {
        grid-column: span 6;
    }

    .filter-group label {
        font-size: 13px;
        font-weight: 600;
        color: #6c757d;
        text-transform: uppercase;
    }

    .filter-bar .filter-group {
        display: flex;
        flex-direction: column;
        gap: 4px;
        min-width: 0;
    }

    .filter-bar .filter-group label {
        font-size: 11px;
        font-weight: 600;
        color: #6c757d;
        text-transform: uppercase;
        line-height: 1.2;
        min-height: 26px;
        display: flex;
        align-items: flex-end;
    }

    .filter-bar .filter-group select,
    .filter-bar .filter-group input {
        padding: 6px 10px;
        border: 1px solid #ced4da;
        border-radius: 4px;
        background-color: #fff;
        font-size: 13px;
        height: 38px;
        box-sizing: border-box;
        width: 100%;
        min-width: 0;
    }

    .filter-bar .filter-inline-pair {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 6px;
        align-items: center;
    }

    .filter-bar .filter-inline-pair span {
        display: none;
    }

    .filter-bar .filter-inline-doc {
        display: grid;
        grid-template-columns: 52px 1fr;
        gap: 6px;
        align-items: center;
    }

    .filter-bar .filter-inline-doc select {
        padding-left: 6px;
        padding-right: 6px;
    }

    .filter-bar .filter-group--actions label {
        visibility: hidden;
    }

    .filter-bar .filter-actions {
        display: flex;
        gap: 6px;
        align-items: center;
        height: 38px;
    }

    @media (max-width: 1400px) {
        .filter-bar .filter-row {
            grid-template-columns: repeat(4, minmax(0, 1fr));
        }

        .filter-bar .filter-row--basic {
            grid-template-columns: repeat(4, minmax(0, 1fr));
        }

        .filter-bar .filter-group--wide {
            grid-column: span 4;
        }
    }

    @media (max-width: 992px) {
        .filter-bar .filter-row,
        .filter-bar .filter-row--4,
        .filter-bar .filter-row--5,
        .filter-bar .filter-row--basic,
        .filter-bar .filter-row--health {
            grid-template-columns: repeat(2, minmax(0, 1fr));
        }

        .filter-bar .filter-row--actions {
            grid-template-columns: 1fr;
        }

        .filter-bar .filter-group--wide {
            grid-column: span 2;
        }
    }

    @media (max-width: 576px) {
        .filter-bar .filter-row,
        .filter-bar .filter-row--4,
        .filter-bar .filter-row--5,
        .filter-bar .filter-row--basic,
        .filter-bar .filter-row--health {
            grid-template-columns: 1fr;
        }

        .filter-bar .filter-group--wide {
            grid-column: span 1;
        }
    }

    .btn-filter {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        background-color: var(--main-blue);
        color: #ffffff;
        border: none;
        border-radius: 4px;
        cursor: pointer;
        padding: 0 16px;
        height: 38px;
        font-size: 14px;
        font-weight: 500;
        text-decoration: none;
        transition: opacity 0.2s ease;
    }

    .btn-filter:hover {
        opacity: 0.85;
        color: #ffffff;
    }
    
    .btn-filter i {
        font-size: 14px;
    }
    .dashboard-tabs-nav {
        margin-bottom: 0;
        border: 1px solid var(--border);
        border-radius: 6px 6px 0 0;
        background: #fff;
        overflow: hidden;
    }

    .dashboard-tabs-scroll {
        position: relative;
    }

    .dashboard-tabs-scroll--primary {
        border-bottom: 2px solid #dee2e6;
    }

    .dashboard-tabs-scroll--catalog {
        background: #f4f6f8;
        border-top: 1px solid #e9ecef;
    }

    .dashboard-tabs {
        display: flex;
        gap: 8px;
        margin-bottom: 0;
        padding: 4px 6px 0;
        border-bottom: none;
    }

    .dashboard-tabs-scroll--catalog .dashboard-tabs {
        padding: 2px 6px 4px;
    }

    .dashboard-tabs-scroll.is-scrollable::before,
    .dashboard-tabs-scroll.is-scrollable::after {
        content: '';
        position: absolute;
        top: 0;
        bottom: 0;
        width: 20px;
        pointer-events: none;
        z-index: 1;
        opacity: 0;
        transition: opacity 0.2s ease;
    }

    .dashboard-tabs-scroll.is-scrollable::before {
        left: 0;
        background: linear-gradient(to right, #ffffff 15%, transparent);
    }

    .dashboard-tabs-scroll.is-scrollable::after {
        right: 0;
        background: linear-gradient(to left, #ffffff 15%, transparent);
    }

    .dashboard-tabs-scroll--catalog.is-scrollable::before {
        background: linear-gradient(to right, #f4f6f8 15%, transparent);
    }

    .dashboard-tabs-scroll--catalog.is-scrollable::after {
        background: linear-gradient(to left, #f4f6f8 15%, transparent);
    }

    .dashboard-tabs-scroll.is-scrollable.is-scrolled-start::before,
    .dashboard-tabs-scroll.is-scrollable.is-scrolled-end::after {
        opacity: 1;
    }

    .tab-tag {
        padding: 10px 16px;
        background: #e9ecef;
        border: none;
        border-radius: 4px 4px 0 0;
        cursor: pointer;
        font-weight: 600;
        color: #495057;
        font-size: 15px;
        transition: all 0.2s;
        margin-bottom: -2px;
        border-bottom: 2px solid transparent;
        flex-shrink: 0;
    }

    .tab-tag--catalog {
        font-size: 13px;
        padding: 8px 12px;
        background: transparent;
        margin-bottom: 0;
    }

    .tab-tag--catalog.active {
        background: #fff;
    }

    .tab-tag:hover {
        color: var(--main-blue);
    }

    .tab-tag.active {
        color: var(--main-blue);
        border-bottom: 3px solid var(--main-blue);
        font-weight: 700;
        background: #fff;
        box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.03);
    }

    .tab-content {
        display: none;
        padding: 20px;
        background: #fff;
        border: 1px solid var(--border);
        border-radius: 0 0 6px 6px;
        border-top: none;
    }

    .tab-content.active {
        display: block;
        animation: fadeIn 0.3s ease;
    }

    .btn-action {
        border: none;
        padding: 6px 10px;
        border-radius: 4px;
        cursor: pointer;
        color: white;
        transition: background 0.2s;
    }

    .btn-action.btn-view {
        background: #175d9c;
    }

    .btn-action.btn-view:hover {
        background: #0f3f67;
    }

    .btn-action.btn-print {
        background: #175d9c;
    }

    .btn-action.btn-print:hover {
        background: #0f3f67;
    }

    .btn-action.btn-carnet {
        background: #198754;
        cursor: default;
        opacity: 0.85;
    }

    .btn-action.btn-carnet:hover {
        background: #198754;
    }

    .btn-action.btn-delete {
        background: #dc3545;
    }

    .btn-action.btn-edit {
        background: #ffc107;
        color: #000;
    }

    .btn-action.btn-edit:hover {
        background: #e0a800;
    }

    .btn-action.btn-action-sm {
        padding: 4px 6px;
        font-size: 11px;
        line-height: 1;
        min-width: 28px;
    }

    .dbc-actions-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 3px;
        justify-items: center;
        max-width: 108px;
        margin: 0 auto;
    }

    .data-table .dbc-col-brazalete {
        width: 4%;
        min-width: 52px;
        max-width: 70px;
        text-align: center;
        font-size: 12px;
        white-space: nowrap;
    }

    .data-table .dbc-col-familiares {
        width: 22%;
        min-width: 180px;
        font-size: 13px;
        vertical-align: top;
    }

    .data-table .dbc-col-descripcion {
        width: 18%;
    }

    .data-table .dbc-col-acciones {
        width: 6%;
        min-width: 84px;
        text-align: center;
    }

    .data-table th.dbc-col-brazalete,
    .data-table th.dbc-col-familiares,
    .data-table th.dbc-col-descripcion,
    .data-table th.dbc-col-acciones {
        white-space: nowrap;
    }

    .charts-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

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

    .chart-box {
        background: #ffffff;
        padding: 20px;
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    }

    .chart-box .chart-canvas-wrap {
        position: relative;
        height: 300px;
    }

    .dbc-charts-header {
        background: #fff;
        padding: 16px 20px;
        border-radius: 8px;
        margin-bottom: 20px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
        border-left: 4px solid #0f3f67;
    }

    .tab-tag .fa-chart-column {
        margin-right: 4px;
    }

    .chart-box h3 {
        margin: 0 0 8px;
        font-size: 16px;
        color: #333;
        border-bottom: 1px solid #eee;
        padding-bottom: 10px;
        font-weight: 600;
    }

    .dbc-chart-scope-note {
        margin: 0 0 10px;
        font-size: 12px;
        color: #6c757d;
        font-style: italic;
    }

    .dbc-chart-box--tabla-demografica {
        margin-bottom: 24px;
    }

    .dbc-charts-tabla-demografica-wrap {
        overflow-x: auto;
    }

    .dbc-charts-tabla-demografica {
        width: 100%;
        min-width: 720px;
        border-collapse: collapse;
        font-size: 13px;
    }

    .dbc-charts-tabla-demografica th,
    .dbc-charts-tabla-demografica td {
        border: 1px solid #dee2e6;
        padding: 8px 10px;
        text-align: center;
        vertical-align: middle;
    }

    .dbc-charts-tabla-demografica thead th {
        background: #0f3f67;
        color: #fff;
        font-weight: 600;
        font-size: 12px;
    }

    .dbc-charts-tabla-demografica .dbc-charts-tabla-label-col,
    .dbc-charts-tabla-demografica tbody th[scope="row"] {
        background: #f4f8fb;
        color: #0f3f67;
        text-align: left;
        font-weight: 600;
        white-space: nowrap;
    }

    .dbc-charts-tabla-demografica .dbc-charts-tabla-camp-header {
        font-size: 13px;
        letter-spacing: 0.02em;
    }

    .dbc-charts-tabla-demografica .dbc-charts-tabla-total {
        background: #eef5fb;
        font-weight: 700;
    }

    .dbc-charts-tabla-demografica .dbc-charts-tabla-muted {
        color: #adb5bd;
        background: #fafbfc;
    }

    .dbc-charts-tabla-empty {
        margin: 0;
        padding: 24px 16px;
        text-align: center;
        color: #6c757d;
        background: #f8f9fa;
        border: 1px dashed #ced4da;
        border-radius: 6px;
    }

    .dbc-chart-box--edad-rangos {
        grid-column: 1 / -1;
    }

    .chart-canvas-wrap--edad-rangos {
        height: 360px;
    }

    .dbc-charts-tabla-demografica tr.dbc-charts-tabla-row-lactantes th,
    .dbc-charts-tabla-demografica tr.dbc-charts-tabla-row-lactantes td {
        background: #eef3f8;
    }

    .dbc-charts-tabla-demografica tr.dbc-charts-tabla-row-lactantes th[scope="row"] {
        background: #dce8f2;
    }

    #dbc-totales-content-wrap {
        display: block;
    }

    .dbc-totales-header {
        background: #f4f8fb;
        border: 1px solid #c8d7e1;
        border-radius: 8px;
        padding: 16px 18px;
        margin-bottom: 20px;
    }

    .dbc-chart-box--totales {
        max-width: 960px;
        margin: 0 auto;
    }

    .dbc-totales-summary {
        display: flex;
        justify-content: center;
        margin-bottom: 20px;
    }

    .dbc-totales-summary-card {
        background: linear-gradient(135deg, #0f3f67 0%, #175d9c 100%);
        color: #fff;
        border-radius: 10px;
        padding: 20px 28px;
        text-align: center;
        min-width: 280px;
        box-shadow: 0 4px 14px rgba(15, 63, 103, 0.2);
    }

    .dbc-totales-summary-label {
        display: block;
        font-size: 13px;
        letter-spacing: 0.04em;
        text-transform: uppercase;
        opacity: 0.9;
        margin-bottom: 6px;
    }

    .dbc-totales-summary-value {
        display: block;
        font-size: 42px;
        line-height: 1.1;
        margin-bottom: 6px;
    }

    .dbc-totales-summary-detail {
        display: block;
        font-size: 14px;
        opacity: 0.92;
    }

    .dbc-chart-lactantes-note {
        font-size: 12px;
        color: #6c757d;
        margin: 0 0 14px;
        line-height: 1.5;
    }

    .dbc-chart-lactantes-note__sample {
        display: inline-block;
        width: 14px;
        height: 14px;
        background: #c5d5e3;
        border-radius: 3px;
        vertical-align: middle;
        margin-right: 4px;
    }

    .chart-canvas-wrap--totales {
        height: 360px;
    }

    .table-responsive {
        background: #fff;
        padding: 20px;
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .dataTables_wrapper .dataTables_scroll {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .dataTables_wrapper .dt-buttons {
        float: left;
        margin-bottom: 15px;
        gap: 5px;
        display: flex;
    }

    .dataTables_wrapper .dataTables_filter {
        float: right;
        text-align: right;
        margin-bottom: 15px;
        display: flex;
        align-items: center;
    }

    .dataTables_wrapper::after {
        content: "";
        clear: both;
        display: table;
    }

    .data-table {
        width: 100% !important;
        border-collapse: collapse;
        font-size: 14px;
        text-align: left;
    }

    .data-table th {
        background-color: var(--main-blue) !important;
        color: white !important;
        padding: 10px;
        font-weight: 600;
        text-align: center;
        vertical-align: middle;
    }

    .data-table td {
        padding: 8px 10px;
        border-bottom: 1px solid #dee2e6;
        vertical-align: middle;
    }

    /* Alineaciones solicitadas */
    .data-table td:nth-child(1),
    /* N° SOL */
    .data-table td:nth-child(2),
    /* Clasificación - Origen */
    .data-table td:nth-child(3),
    /* Estatus */
    .data-table td:nth-child(5),
    /* Ubicación */
    .data-table td:nth-child(6)

    /* Descripción */
        {
        text-align: center;
    }

    .data-table td:nth-child(8) {
        /* Jefe de Familia */
        text-align: center;
    }

    .data-table td:nth-child(10) {
        /* Acciones */
        text-align: center;
    }

    .dt-button {
        padding: 6px 16px !important;
        border-radius: 4px !important;
        font-size: 14px !important;
        font-weight: bold !important;
        color: white !important;
        border: none !important;
        cursor: pointer;
        margin: 0 !important;
    }

    .dt-button.buttons-excel {
        background: var(--main-blue) !important;
    }

    .dt-button.buttons-pdf {
        background: #7a8288 !important;
    }

    .dt-button:hover {
        opacity: 0.9;
    }

    .badge {
        padding: 4px 6px;
        border-radius: 4px;
        font-size: 12px;
        font-weight: bold;
        text-transform: uppercase;
        display: inline-block;
    }

    .badge.anon {
        background: #ffe8cc;
        color: #ff9800;
    }

    .badge.nomin {
        background: #d4f8fc;
        color: var(--main-blue);
    }

    .badge.origen {
        background: #e0f2fe;
        color: #0284c7;
    }

    .badge.clasificacion {
        background: #e0e7ff;
        color: #4338ca;
    }

    .db-alert-danger {
        background-color: #f8d7da;
        color: #721c24;
        padding: 15px;
        border: 1px solid #f5c6cb;
        border-radius: 4px;
        margin-bottom: 20px;
    }

    .ar-multi-checklist {
        max-height: 120px;
        overflow-y: auto;
        border: 1px solid var(--border);
        border-radius: 4px;
        padding: 6px 8px;
        background: #fff;
    }

    .ar-multi-checklist label {
        display: flex;
        align-items: flex-start;
        gap: 8px;
        margin-bottom: 4px;
        font-size: 13px;
        cursor: pointer;
        font-weight: normal;
    }

    .ar-multi-checklist input[type="checkbox"] {
        margin-top: 2px;
        flex-shrink: 0;
        width: auto;
        height: auto;
    }

    .dbc-filtro-resultado-banner {
        background: linear-gradient(135deg, #eef6ff 0%, #f8fbff 55%, #ffffff 100%);
        border: 1px solid #b8d4f0;
        border-left: 4px solid var(--main-blue-dark);
        border-radius: 8px;
        padding: 14px 16px;
        margin-bottom: 16px;
        color: #1e3a5f;
        box-shadow: 0 2px 8px rgba(74, 144, 226, 0.08);
    }

    .dbc-filtro-resultado-banner--compact {
        margin-bottom: 0;
        padding: 10px 12px;
    }

    .dbc-filtro-resultado-banner__titulo {
        font-size: 13px;
        font-weight: 700;
        color: var(--main-blue-dark);
        margin-bottom: 10px;
        letter-spacing: 0.02em;
    }

    .dbc-filtro-resultado-banner__titulo i {
        margin-right: 6px;
        opacity: 0.9;
    }

    .dbc-filtro-resultado-banner__ecuacion {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 8px 10px;
        margin-bottom: 8px;
    }

    .dbc-filtro-resultado-banner__chip {
        display: inline-flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        min-width: 72px;
        padding: 8px 12px;
        background: #ffffff;
        border: 1px solid #d7e6f5;
        border-radius: 8px;
        line-height: 1.2;
    }

    .dbc-filtro-resultado-banner__chip strong {
        font-size: 22px;
        color: #1a4d8c;
        font-weight: 800;
    }

    .dbc-filtro-resultado-banner__chip small {
        font-size: 10px;
        color: #5a7a9a;
        margin-top: 2px;
        font-weight: 600;
    }

    .dbc-filtro-resultado-banner__chip--total {
        background: #e8f4fd;
        border-color: #9ec5eb;
    }

    .dbc-filtro-resultado-banner__chip--total strong {
        color: #0d47a1;
        font-size: 26px;
    }

    .dbc-filtro-resultado-banner__op {
        font-size: 20px;
        font-weight: 700;
        color: #6b8caf;
        padding: 0 2px;
    }

    .dbc-filtro-resultado-banner__criterio {
        font-size: 12px;
        color: #3d5a73;
        margin-bottom: 4px;
        line-height: 1.5;
    }

    .dbc-filtro-resultado-banner__criterio-texto {
        font-weight: 700;
        color: #1e4a72;
    }

    .dbc-filtro-resultado-banner__meta {
        font-size: 11px;
        color: #6b8299;
    }

    .dbc-filtro-resultado-banner--compact .dbc-filtro-resultado-banner__chip strong {
        font-size: 18px;
    }

    .dbc-filtro-resultado-banner--compact .dbc-filtro-resultado-banner__chip--total strong {
        font-size: 20px;
    }

    .dbc-filtro-resultado-banner--compact .dbc-filtro-resultado-banner__chip {
        min-width: 60px;
        padding: 6px 10px;
    }

    #dbc-results-summary .dbc-filtro-resultado-banner {
        width: 100%;
    }

    /* ==========================================================================
       DBC — Barra de administración
       ========================================================================== */

    .dbc-admin-toolbar {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        justify-content: flex-end;
        margin-bottom: 20px;
        width: 100%;
    }

    .dbc-admin-toolbar .dbc-admin-btn {
        background: #17a2b8;
        color: #fff;
        border: none;
        padding: 10px 15px;
        border-radius: 6px;
        font-size: 13px;
        font-weight: bold;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        display: inline-flex;
        align-items: center;
        gap: 8px;
        cursor: pointer;
        transition: background 0.2s;
        text-decoration: none;
        line-height: 1.2;
        box-sizing: border-box;
    }

    .dbc-admin-btn--parentescos { background: #17a2b8; }
    .dbc-admin-btn--parentescos:hover { background: #138496; }
    .dbc-admin-btn--salud { background: #6f42c1; }
    .dbc-admin-btn--salud:hover { background: #5a32a3; }
    .dbc-admin-btn--vivienda { background: #fd7e14; }
    .dbc-admin-btn--vivienda:hover { background: #e96b00; }
    .dbc-admin-btn--ocupacion { background: #198754; }
    .dbc-admin-btn--ocupacion:hover { background: #146c43; }
    .dbc-admin-btn--sector { background: #20c997; }
    .dbc-admin-btn--sector:hover { background: #1aa179; }
    .dbc-admin-btn--campamentos { background: #007bff; }
    .dbc-admin-btn--campamentos:hover { background: #0056b3; }
    .dbc-admin-btn--logout { background: #dc3545; }
    .dbc-admin-btn--logout:hover { background: #c82333; }

    /* ==========================================================================
       DBC — Formularios de edición y configuración
       ========================================================================== */

    .dbc-form-row {
        display: flex;
        gap: 12px;
        flex-wrap: wrap;
        margin-top: 10px;
        width: 100%;
        box-sizing: border-box;
    }

    .dbc-form-row--tight {
        margin-top: 0;
    }

    .dbc-form-col {
        flex: 1 1 calc(25% - 12px);
        min-width: 140px;
        box-sizing: border-box;
    }

    .dbc-form-col--half {
        flex: 1 1 calc(50% - 12px);
        min-width: 200px;
        box-sizing: border-box;
    }

    .dbc-edit-form label {
        display: block;
        margin-bottom: 4px;
        font-size: 13px;
        font-weight: 600;
    }

    .dbc-edit-form input,
    .dbc-edit-form select,
    .dbc-edit-form textarea {
        max-width: 100%;
        box-sizing: border-box;
    }

    .dbc-edit-form .dbc-edit-photo-wrap {
        flex: 0 0 160px;
        text-align: center;
    }

    .dbc-edit-form .dbc-edit-fields-wrap {
        flex: 1;
        min-width: 0;
    }

    .fam-edit-row {
        border: 1px solid #ccc;
        padding: 10px;
        margin-bottom: 10px;
        border-radius: 4px;
        background: #f9f9f9;
        position: relative;
        box-sizing: border-box;
    }

    .fam-edit-row .dbc-fam-remove-btn {
        position: absolute;
        top: 10px;
        right: 10px;
        background: #dc3545;
        color: #fff;
        border: none;
        border-radius: 4px;
        padding: 5px 10px;
        cursor: pointer;
        z-index: 1;
    }

    .fam-edit-row .dbc-fam-body {
        display: flex;
        gap: 15px;
        flex-wrap: wrap;
        margin-right: 40px;
    }

    .fam-edit-row .dbc-fam-photo {
        flex: 0 0 120px;
        text-align: center;
    }

    .fam-edit-row .dbc-fam-fields {
        flex: 1;
        min-width: 0;
    }

    .dbc-config-form {
        background: #fff;
        padding: 20px;
        border: 1px solid #dee2e6;
        border-radius: 6px;
        max-width: 600px;
        width: 100%;
        box-sizing: border-box;
    }

    .dbc-config-list {
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin-bottom: 15px;
    }

    .dbc-config-row {
        display: flex;
        gap: 10px;
        align-items: center;
    }

    .dbc-config-row input {
        flex: 1;
        min-width: 0;
        padding: 8px;
        box-sizing: border-box;
    }

    .dbc-config-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

    .dbc-modal-overlay {
        display: none;
        position: fixed;
        inset: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.6);
        z-index: 9999;
        justify-content: center;
        align-items: center;
        padding: 12px;
        box-sizing: border-box;
    }

    .dbc-modal-panel {
        background: #fff;
        width: 100%;
        max-width: 600px;
        border-radius: 8px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
        overflow: hidden;
        display: flex;
        flex-direction: column;
        max-height: 90vh;
    }

    .dbc-modal-header {
        background: #0f3f67;
        color: #fff;
        padding: 15px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 12px;
    }

    .dbc-modal-header h3 {
        margin: 0;
        font-size: 18px;
        line-height: 1.3;
    }

    .dbc-modal-close {
        background: none;
        border: none;
        color: #fff;
        font-size: 24px;
        cursor: pointer;
        line-height: 1;
        flex-shrink: 0;
    }

    .dbc-modal-body {
        padding: 20px;
        overflow-y: auto;
        flex: 1;
    }

    #print-container,
    .edit-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .edit-container {
        background: #fff;
        padding: 20px;
        border-radius: 8px;
        border: 1px solid #ddd;
        box-sizing: border-box;
    }

    .print-container {
        word-break: break-word;
        overflow-wrap: anywhere;
    }

    /* ==========================================================================
       DBC — Responsive global
       ========================================================================== */

    @media (max-width: 992px) {
        .dbc-form-col {
            flex: 1 1 calc(50% - 12px);
        }

        .data-table .dbc-col-familiares {
            min-width: 140px;
        }

        .dashboard-tabs-scroll .dashboard-tabs {
            flex-wrap: nowrap;
            overflow-x: auto;
            -webkit-overflow-scrolling: touch;
            scroll-snap-type: x proximity;
            scrollbar-width: thin;
            scrollbar-color: #adb5bd transparent;
        }

        .dashboard-tabs-scroll .dashboard-tabs::-webkit-scrollbar {
            height: 5px;
        }

        .dashboard-tabs-scroll .dashboard-tabs::-webkit-scrollbar-thumb {
            background: #ced4da;
            border-radius: 4px;
        }

        .tab-tag {
            scroll-snap-align: start;
        }
    }

    @media (max-width: 768px) {
        .dashboard-container {
            padding: 12px;
            border-radius: 6px;
        }

        .dashboard-container h2 {
            font-size: 22px;
        }

        .tab-tag {
            font-size: 13px;
            padding: 8px 12px;
            white-space: nowrap;
        }

        .tab-tag--catalog {
            font-size: 12px;
            padding: 7px 10px;
        }

        .tab-content {
            padding: 12px;
        }

        .table-responsive {
            padding: 12px;
        }

        .data-table {
            min-width: 880px;
        }

        .dataTables_wrapper .dt-buttons,
        .dataTables_wrapper .dataTables_filter {
            float: none;
            width: 100%;
            text-align: left;
            margin-bottom: 10px;
        }

        .dataTables_wrapper .dataTables_filter {
            display: block;
        }

        .dataTables_wrapper .dataTables_filter label {
            width: 100%;
            display: block;
        }

        .dataTables_wrapper .dataTables_filter input {
            width: 100%;
            max-width: 100%;
            margin-left: 0 !important;
            box-sizing: border-box;
        }

        .dataTables_wrapper .dt-buttons {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
        }

        .dataTables_wrapper .dataTables_length,
        .dataTables_wrapper .dataTables_info,
        .dataTables_wrapper .dataTables_paginate {
            float: none;
            width: 100%;
            text-align: left;
            margin-top: 8px;
        }

        .dataTables_wrapper .dataTables_scroll {
            overflow-x: auto;
            -webkit-overflow-scrolling: touch;
        }

        .dbc-filtro-resultado-banner__ecuacion {
            gap: 6px 8px;
        }

        .dbc-filtro-resultado-banner__chip strong {
            font-size: 18px;
        }

        .dbc-filtro-resultado-banner__chip--total strong {
            font-size: 22px;
        }

        .dbc-edit-form .dbc-edit-photo-wrap,
        .fam-edit-row .dbc-fam-photo {
            flex: 0 0 auto;
            width: 100%;
            max-width: 180px;
            margin: 0 auto;
        }

        .fam-edit-row .dbc-fam-body {
            margin-right: 0;
            padding-top: 36px;
        }

        .chart-box {
            padding: 14px;
        }

        .chart-box .chart-canvas-wrap {
            height: 260px;
        }
    }

    @media (max-width: 576px) {
        .dashboard-container {
            padding: 10px;
        }

        .filter-bar {
            padding: 10px;
        }

        .filter-section {
            padding: 8px 10px 10px;
        }

        .filter-bar .filter-row--actions {
            justify-items: stretch;
        }

        .filter-bar .filter-group--actions label {
            display: none;
        }

        .filter-bar .filter-actions {
            width: 100%;
            flex-direction: column;
            height: auto;
            align-items: stretch;
        }

        .filter-bar .filter-actions .btn-filter {
            width: 100%;
        }

        .dbc-admin-toolbar {
            justify-content: stretch;
        }

        .dbc-admin-toolbar .dbc-admin-btn {
            flex: 1 1 100%;
            justify-content: center;
        }

        .dbc-form-col,
        .dbc-form-col--half,
        .dbc-edit-form [style*="flex-wrap:wrap"] > * {
            flex: 1 1 100% !important;
            min-width: 0 !important;
            max-width: 100% !important;
        }

        .dbc-config-form {
            padding: 14px;
            max-width: 100%;
        }

        .dbc-config-row {
            flex-direction: column;
            align-items: stretch;
        }

        .dbc-config-row .btn-action {
            width: 100%;
        }

        .dbc-config-actions {
            flex-direction: column;
        }

        .dbc-config-actions .btn-nav {
            width: 100%;
            text-align: center;
        }

        .dbc-modal-overlay {
            padding: 8px;
        }

        .dbc-modal-body {
            padding: 14px;
        }

        .dbc-actions-grid {
            max-width: none;
            width: 100%;
        }

        .total-box {
            display: block;
            width: 100%;
            box-sizing: border-box;
        }

        .dashboard-tabs-nav {
            border-radius: 4px 4px 0 0;
        }

        .tab-tag {
            font-size: 12px;
            padding: 7px 10px;
        }

        .tab-tag--catalog {
            font-size: 11px;
            padding: 6px 8px;
        }
    }