.module-page {
    width: min(1180px, calc(100% - 2rem));
    margin: 0 auto;
    padding: .4rem 0 1.25rem;
}

.module-page-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--relf-border);
}

.module-page-header h1 {
    margin: .2rem 0 0;
    color: var(--relf-primary);
    font-size: clamp(1.5rem, 2.4vw, 2.25rem);
    line-height: 1;
}

.module-page-actions,
.module-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
}

.module-page-actions .relf-button,
.module-form-actions .relf-button {
    gap: .5rem;
}

.module-download-dropdown .dropdown-menu {
    min-width: 10rem;
    padding: .35rem;
    border-color: var(--relf-border);
    border-radius: 4px;
    box-shadow: 0 8px 20px rgba(23, 20, 45, .12);
}

.module-download-option {
    display: flex;
    align-items: center;
    gap: .6rem;
    width: 100%;
    min-height: 2.75rem;
    padding: .55rem .75rem;
    color: var(--relf-primary);
    font-weight: 700;
    text-align: left;
    white-space: nowrap;
}

.module-download-option:hover,
.module-download-option:focus {
    color: var(--relf-primary);
    background: var(--relf-surface);
}

.module-table-wrapper {
    overflow-x: auto;
    max-height: min(58vh, 32rem);
    overflow: auto;
    background: var(--relf-white);
    border: 1px solid var(--relf-border);
    border-radius: 10px;
    box-shadow: 0 10px 26px rgba(23, 20, 45, .06);
}

[data-modulo-tabla-contenido] {
    transition: opacity 160ms ease;
}

[data-modulo-tabla-contenido].is-loading {
    opacity: .6;
    pointer-events: none;
}

[data-modulo-tabla-contenedor] {
    position: relative;
}

.module-loading-overlay {
    position: absolute;
    inset: 0;
    z-index: 1040;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .75rem;
    background: rgba(255, 255, 255, .85);
}

.module-loading-overlay img {
    width: 4rem;
    height: 4rem;
    animation: global-loading-spin 1.1s linear infinite;
}

.module-loading-overlay span {
    color: var(--relf-primary);
    font-weight: 700;
    font-size: .95rem;
}

.module-loading-overlay[hidden] {
    display: none;
}

.module-table {
    width: 100%;
    min-width: 620px;
    border-collapse: collapse;
}

.module-table th {
    padding: .9rem 1rem;
    color: var(--relf-white);
    background: var(--relf-primary);
    font-size: .76rem;
    letter-spacing: .08em;
    text-align: left;
    text-transform: uppercase;
}

.module-table td {
    padding: 1rem;
    color: var(--relf-muted);
    border-top: 1px solid var(--relf-border);
}

.module-table tbody tr:hover {
    background: var(--relf-surface);
}

.module-operation-button {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    width: 2rem;
    height: 2rem;
    justify-content: center;
    color: var(--relf-secondary);
    font-size: .85rem;
    font-weight: 700;
    border: 0;
    border-radius: .35rem;
    background: transparent;
    cursor: pointer;
    transition: color 160ms ease, background-color 160ms ease;
}

.module-operation-button:hover {
    color: var(--relf-accent);
}

.operation-spinner {
    margin-right: .35rem;
}

.module-page-actions .is-loading {
    min-width: 8rem;
}

.module-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: end;
    margin-bottom: 1rem;
    padding: .65rem .8rem;
    border: 1px solid var(--relf-border);
    border-radius: 8px;
    background: var(--relf-surface);
}

.module-general-filters-toggle {
    display: none;
}

.module-more-filters-toggle,
.module-general-filters-toggle {
    margin-left: auto;
    min-height: 2.1rem;
    padding: .3rem .65rem;
    font-size: .82rem;
}

.module-more-filters-toggle i,
.module-general-filters-toggle i {
    margin-right: .4rem;
}

.module-more-filters-toggle[aria-expanded="true"],
.module-general-filters-toggle[aria-expanded="true"] {
    color: var(--relf-white);
    background: var(--relf-primary);
}

.module-more-filters-toggle[aria-expanded="true"]:hover,
.module-general-filters-toggle[aria-expanded="true"]:hover {
    color: var(--relf-white);
    background: var(--relf-secondary);
}

.module-more-filters {
    display: none;
    flex-wrap: wrap;
    gap: 1rem;
    flex-basis: 100%;
}

.module-more-filters:not([hidden]) {
    display: flex;
}

.module-filter-field {
    display: grid;
    gap: .2rem;
    min-width: 220px;
}

.module-filter-field label {
    color: var(--relf-muted);
    font-size: .74rem;
    font-weight: 700;
}

[data-role-filters] .module-filter-field label {
    color: #000;
}

.module-filter-field input,
.module-filter-field select {
    min-height: 2.1rem;
    padding: .3rem .55rem;
    border: 1px solid var(--relf-border);
    border-radius: .35rem;
    background: var(--relf-white);
}

.module-column-picker {
    min-width: 0;
    align-self: stretch;
}

.module-filter-field-auditoria {
    min-width: 320px;
}

.module-audit-filter-group {
    display: flex;
    align-items: center;
    gap: .35rem;
}

.module-audit-filter-group select {
    flex: 0 0 auto;
    min-height: 2.1rem;
    padding: .3rem .55rem;
    border: 1px solid var(--relf-border);
    border-radius: .35rem;
    background: var(--relf-white);
}

.module-audit-filter-group input {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 2.1rem;
    padding: .3rem .55rem;
    border: 1px solid var(--relf-border);
    border-radius: .35rem;
    background: var(--relf-white);
}

.module-audit-filter-separator {
    color: var(--relf-muted);
    font-size: .8rem;
}

.module-sort-group {
    display: flex;
}

.module-sort-group select {
    min-height: 2.1rem;
    padding: .3rem .55rem;
    border: 1px solid var(--relf-border);
    background: var(--relf-white);
}

.module-sort-group select:first-child {
    flex: 1 1 auto;
    min-width: 0;
    border-radius: .35rem 0 0 .35rem;
    border-right: none;
}

.module-sort-group select:last-child {
    flex: 0 0 auto;
    border-radius: 0 .35rem .35rem 0;
}

.module-column-label {
    color: var(--relf-muted);
    font-size: .74rem;
    font-weight: 700;
}

.module-column-picker details {
    position: relative;
}

.module-column-picker summary {
    display: flex;
    align-items: center;
    gap: .45rem;
    min-height: 2.1rem;
    padding: .3rem .55rem;
    color: var(--relf-primary);
    border: 1px solid var(--relf-border);
    border-radius: .35rem;
    background: var(--relf-white);
    cursor: pointer;
    font-size: .82rem;
    font-weight: 700;
    list-style: none;
}

.module-column-picker summary::-webkit-details-marker {
    display: none;
}

.module-column-picker summary::after {
    margin-left: auto;
    content: "▾";
    color: var(--relf-muted);
}

.module-column-picker[open] summary::after {
    content: "▴";
}

.module-column-options {
    position: absolute;
    z-index: 3;
    top: 100%;
    left: 0;
    display: grid;
    gap: .45rem;
    min-width: 14rem;
    padding: .7rem .8rem;
    border: 1px solid var(--relf-border);
    border-radius: .5rem;
    background: var(--relf-white);
    box-shadow: 0 12px 24px rgba(23, 20, 45, .14);
}

.module-column-options label {
    display: flex;
    align-items: center;
    gap: .5rem;
    color: var(--relf-muted);
    font-size: .78rem;
    font-weight: 700;
    white-space: nowrap;
}

.module-column-options input {
    accent-color: var(--relf-accent);
}

.module-export-columns {
    display: grid;
    gap: 1rem;
}

.module-export-group {
    margin: 0;
    padding: .9rem 1rem 1rem;
    border: 1px solid var(--relf-border);
    border-left: 4px solid var(--relf-secondary);
    border-radius: 8px;
    background: var(--relf-surface);
}

.module-export-group.is-audit {
    border-left-color: var(--relf-accent);
    background: var(--relf-white);
}

.module-export-group legend {
    float: none;
    width: auto;
    margin: 0 0 .7rem;
    padding: 0 .35rem;
    color: var(--relf-primary);
    font-size: .82rem;
    font-weight: 800;
}

.module-export-toggle-all {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    margin-left: .75rem;
    color: var(--relf-muted);
    font-size: .78rem;
    font-weight: 700;
}

.module-export-toggle-all input {
    accent-color: var(--relf-accent);
}

.module-export-group legend i {
    width: 1rem;
    margin-right: .3rem;
    color: var(--relf-secondary);
    text-align: center;
}

.module-export-group.is-audit legend i {
    color: var(--relf-accent);
}

.module-export-orientation {
    border-left-color: var(--relf-primary);
}

.module-export-orientation[hidden] {
    display: none;
}

.module-export-orientation-row {
    display: grid;
    grid-template-columns: 6rem 1fr;
    align-items: center;
    gap: .75rem;
}

.module-export-orientation-row + .module-export-orientation-row {
    margin-top: .8rem;
    padding-top: .8rem;
}

.module-export-orientation-row[hidden] + .module-export-orientation-row {
    margin-top: 0;
    padding-top: 0;
}

.module-export-orientation-row > span {
    color: var(--relf-primary);
    font-size: .8rem;
    font-weight: 800;
}

.module-export-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .7rem 1rem;
}

.module-export-options label {
    display: flex;
    align-items: center;
    gap: .55rem;
    min-width: 0;
    color: var(--relf-muted);
    font-size: .85rem;
    font-weight: 700;
}

.module-export-options input {
    flex: 0 0 auto;
    accent-color: var(--relf-accent);
}

.module-export-modal .modal-dialog {
    perspective: 900px;
}

.module-export-modal [data-modulo-exportacion-confirmar] {
    gap: .5rem;
}

.module-export-modal.show .modal-content {
    transform-origin: 50% 0;
    animation: module-export-modal-enter .48s cubic-bezier(.16, 1, .3, 1) both;
}

.module-export-modal.show .module-export-group {
    animation: module-export-group-enter .38s .12s cubic-bezier(.16, 1, .3, 1) both;
}

.module-export-modal.show .module-export-group.is-audit {
    animation-delay: .2s;
}

@keyframes module-export-modal-enter {
    from {
        opacity: 0;
        transform: translateY(-28px) rotateX(8deg) scale(.94);
    }
    to {
        opacity: 1;
        transform: translateY(0) rotateX(0) scale(1);
    }
}

@keyframes module-export-group-enter {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .module-export-modal.show .modal-content,
    .module-export-modal.show .module-export-group {
        animation: none;
    }
}

@media (max-width: 575.98px) {
    .module-export-options {
        grid-template-columns: 1fr;
    }

    .module-export-orientation-row {
        grid-template-columns: 1fr;
    }
}

.module-empty-filter {
    padding: 1.5rem;
    color: var(--relf-muted);
    text-align: center;
}

.module-print-modal-hint {
    margin: 0 0 1rem;
    color: var(--relf-muted);
    font-size: .85rem;
}

.module-print-options {
    display: grid;
    gap: .75rem;
}

.module-print-option {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: .65rem;
    row-gap: .2rem;
    padding: .8rem .9rem;
    border: 1px solid var(--relf-border);
    border-radius: 8px;
    cursor: pointer;
}

.module-print-option:has(input:checked) {
    border-color: var(--relf-accent);
    background: var(--relf-surface);
}

.module-print-option input {
    grid-row: 1 / 3;
    align-self: center;
    accent-color: var(--relf-accent);
}

.module-print-option-title {
    display: flex;
    align-items: center;
    gap: .5rem;
    color: var(--relf-primary);
    font-size: .9rem;
    font-weight: 800;
}

.module-print-option-description {
    color: var(--relf-muted);
    font-size: .78rem;
}

@media (max-width: 700px) {
    .module-filters {
        align-items: stretch;
        flex-direction: column;
    }

    .module-general-filters-toggle {
        display: inline-flex;
    }

    .module-filters:not(.is-general-open) > .module-filter-field {
        display: none;
    }

    .module-filter-field {
        min-width: 0;
    }

    .module-more-filters-toggle,
    .module-general-filters-toggle {
        margin-left: 0;
    }

    .module-more-filters:not([hidden]) {
        flex-direction: column;
    }

    .module-audit-filter-group,
    .module-sort-group {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: .35rem;
    }

    .module-audit-filter-group select,
    .module-audit-filter-group input,
    .module-sort-group select {
        width: 100%;
        min-width: 0;
    }

    .module-audit-filter-separator {
        text-align: center;
    }

    .module-sort-group select:first-child,
    .module-sort-group select:last-child {
        border: 1px solid var(--relf-border);
        border-radius: .35rem;
    }

    .module-column-picker {
        width: 100%;
    }

    .module-column-options {
        position: static;
        margin-top: .35rem;
    }
}

.module-status {
    display: inline-flex;
    padding: .3rem .6rem;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 800;
}

.module-status.is-active {
    color: #176b43;
    background: #dff5e8;
}

.module-status.is-inactive {
    color: #842029;
    background: #f8d7da;
}

.module-form-page {
    width: min(1180px, calc(100% - 2rem));
    max-width: none;
}

.module-screen-context {
    display: inline-block;
    margin: 0 0 0 .45rem;
    color: var(--relf-accent);
    font-size: .82rem;
    font-weight: 700;
    text-transform: uppercase;
    vertical-align: baseline;
}

.module-form-page .crud-eyebrow {
    display: none;
}

.module-form-page .module-screen-context {
    margin-left: 0;
    font-size: .72rem;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.module-back-link {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    color: var(--relf-secondary);
    font-size: .88rem;
    font-weight: 700;
}

.module-back-link:hover {
    color: var(--relf-accent);
}

.module-page-header-tools {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.module-info-toggle {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--relf-secondary);
    background: var(--relf-white);
    border: 1px solid var(--relf-border);
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: color 150ms ease, background-color 150ms ease, border-color 150ms ease;
}

.module-info-toggle:hover,
.module-info-toggle.is-active {
    color: var(--relf-white);
    background: var(--relf-accent);
    border-color: var(--relf-accent);
}

.module-info-toggle:focus-visible {
    outline: 3px solid rgba(240, 100, 5, .55);
    outline-offset: 3px;
}

.module-page-actions .module-info-toggle {
    width: 46px;
    height: auto;
    min-height: 38px;
    align-self: stretch;
}

/* Mismo ancho que .dashboard-sidebar (home.css). */
.module-info-panel {
    flex: 0 0 260px;
    width: 260px;
    min-height: 0;
    overflow-y: auto;
    padding: 1rem 1rem;
    background: var(--relf-white);
    border-top: 3px solid var(--relf-accent);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(23, 20, 45, .06);
    scrollbar-width: thin;
}

.module-info-panel[hidden] {
    display: none;
}

body > .module-info-panel {
    position: fixed;
    top: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 1000;
}

.module-info-panel-header {
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--relf-border);
}

.module-info-panel-header h2 {
    margin: .35rem 0 0;
    color: var(--relf-primary);
    font-size: 1.15rem;
}

.module-info-panel-section + .module-info-panel-section {
    margin-top: 1.25rem;
}

.module-info-panel-section h3 {
    margin: 0 0 .6rem;
    color: var(--relf-secondary);
    font-size: .9rem;
    font-weight: 800;
}

.module-info-panel-section ul {
    margin: 0;
    padding-left: 1.1rem;
}

.module-info-panel > p,
.module-info-panel > ul li,
.module-info-panel-section li,
.module-info-panel-section p {
    color: var(--relf-muted);
    font-size: .85rem;
    line-height: 1.5;
    text-align: justify;
}

.module-info-panel > p,
.module-info-panel-section p {
    margin: 0 0 .5rem;
}

@media (max-width: 900px) {
    .dashboard-layout > .module-info-panel {
        flex: 0 0 auto;
        width: auto;
        max-height: 50vh;
    }
}

.module-form {
    padding: clamp(1.25rem, 3vw, 2rem);
    background: var(--relf-white);
    border: 1px solid var(--relf-border);
    border-top: 3px solid var(--relf-accent);
    box-shadow: 0 14px 34px rgba(23, 20, 45, .08);
}

.module-form-field {
    max-width: 680px;
}

.module-form .row .module-form-field {
    max-width: none;
}

.module-form .row {
    row-gap: 1rem;
}

.bitacora-consulta-grid {
    display: grid;
    gap: 1rem;
    container-type: inline-size;
}

.bitacora-consulta-row {
    display: grid;
    gap: 1rem 1.25rem;
    min-width: 0;
}

.bitacora-consulta-row-principal {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
}

.bitacora-consulta-row-detalle {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.bitacora-consulta-row-datos {
    grid-template-columns: minmax(0, 1fr);
}

.bitacora-consulta-field {
    min-width: 0;
    max-width: none;
}

@container (max-width: 760px) {
    .bitacora-consulta-row-principal {
        grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    }

    .bitacora-consulta-row-detalle {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@container (max-width: 460px) {
    .bitacora-consulta-row-principal,
    .bitacora-consulta-row-detalle {
        grid-template-columns: minmax(0, 1fr);
    }
}

.module-form-field label {
    display: block;
    margin-bottom: .4rem;
    color: var(--relf-primary);
    font-size: .86rem;
    font-weight: 800;
}

.module-form-field .form-control {
    min-height: 46px;
    border-color: var(--relf-border);
    border-radius: 4px;
}

.module-form-field .form-control:focus {
    border-color: var(--relf-accent);
    box-shadow: 0 0 0 3px rgba(240, 100, 5, .16);
}

.module-detail-value {
    margin: 0;
    min-height: 46px;
    display: flex;
    align-items: center;
    padding: 0 .1rem;
    color: var(--relf-primary);
    font-size: .95rem;
}

.module-detail-json-list {
    display: grid;
    gap: .75rem;
    align-items: stretch;
    padding: .75rem;
    border: 1px solid var(--relf-border);
    background: var(--relf-surface);
}

.module-detail-json-item {
    display: grid;
    gap: .35rem;
    padding: .65rem .75rem;
    border: 1px solid var(--relf-border);
    background: var(--relf-white);
}

.module-detail-json-property {
    display: grid;
    grid-template-columns: minmax(8rem, 14rem) minmax(0, 1fr);
    gap: .75rem;
}

.module-detail-json-property strong {
    color: var(--relf-primary);
}

.module-detail-json {
    display: block;
    overflow-x: auto;
    white-space: pre-wrap;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}

.module-audit-section {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--relf-border);
    container-type: inline-size;
    container-name: module-audit;
}

.module-component-section {
    margin-top: 2rem;
}

.module-form-groups {
    display: grid;
    gap: 1rem;
}

.module-form-group {
    height: 100%;
    overflow: hidden;
    border: 1px solid var(--relf-border);
    border-radius: .45rem;
    background: var(--relf-surface, #fff);
}

.module-form-group-header {
    display: flex;
    align-items: center;
    gap: .55rem;
    color: var(--relf-primary);
    background: var(--relf-surface-muted, #f5f7f8);
}

.module-form-group-header h2,
.module-form-group-section h3 {
    margin: 0;
    color: var(--relf-primary);
    font-size: 1rem;
    font-weight: 700;
}

.module-form-group-section {
    padding: 1rem 0 1.25rem;
    border-bottom: 1px solid var(--relf-border);
}

.module-form-group-section h3 {
    margin-bottom: 1rem;
}

.module-employee-photo-preview {
    display: block;
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border: 1px solid var(--relf-border);
    border-radius: .35rem;
    background: var(--relf-surface-muted, #f5f7f8);
}

.module-employee-photo-picker {
    position: relative;
    display: grid;
    width: min(100%, 18rem);
    aspect-ratio: 1 / 1;
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid var(--relf-border);
    border-radius: .4rem;
    background: var(--relf-surface-muted, #f5f7f8);
    cursor: pointer;
}

.module-employee-photo-picker:focus-within {
    outline: 3px solid color-mix(in srgb, var(--relf-accent) 45%, transparent);
    outline-offset: 2px;
}

.module-employee-photo-picker > input[type="file"] {
    position: absolute;
    z-index: 2;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.module-employee-photo-picker .module-employee-photo-preview {
    position: absolute;
    inset: 0;
    border: 0;
    border-radius: 0;
}

.module-employee-photo-preview[hidden],
.module-employee-photo-placeholder[hidden] {
    display: none;
}

.module-employee-photo-placeholder {
    display: grid;
    align-content: center;
    justify-items: center;
    gap: .5rem;
    color: var(--relf-primary);
    font-size: .95rem;
    font-weight: 700;
}

.module-employee-photo-placeholder > i {
    font-size: 2rem;
}

.module-employee-photo-action {
    position: absolute;
    z-index: 1;
    right: 0;
    bottom: 0;
    left: 0;
    padding: .65rem .75rem;
    color: #fff;
    background: rgb(18 35 48 / 78%);
    font-size: .85rem;
    font-weight: 700;
    text-align: center;
    pointer-events: none;
}

.module-employee-photo-picker:not(.has-photo) .module-employee-photo-action {
    background: var(--relf-primary);
}

.module-domicilio-form {
    margin-top: 1rem;
}

.module-domicilio + .module-domicilio {
    margin-top: 1.5rem;
}

.module-component-table {
    margin-top: 1.25rem;
}

.module-component-section h2 {
    margin: .2rem 0 0;
    color: var(--relf-primary);
    font-size: 1.4rem;
    line-height: 1.2;
    font-weight: 700;
}

.module-component-section > .module-table-wrapper {
    margin-top: 1.75rem;
}

.module-audit-section-title {
    margin: 0 0 .85rem;
    color: var(--relf-primary);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

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

.module-audit-grid .module-form-field {
    max-width: none;
    min-width: 0;
}

@container module-audit (max-width: 760px) {
    .module-audit-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@container module-audit (max-width: 460px) {
    .module-audit-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

.usuario-roles-options .form-check-label {
    color: #000;
    font-weight: 400;
}

.module-form-actions {
    margin-top: 1.5rem;
}

.module-form .field-validation-error,
.module-form .validation-summary-errors,
.module-form .text-danger {
    font-size: .82rem;
}

@media (max-width: 600px) {
    .module-page {
        width: min(100% - 1.5rem, 1180px);
        padding-top: .5rem;
    }

    .module-page-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 1rem;
    }

    .module-page-header > div {
        width: 100%;
    }

    .module-page-actions {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        grid-auto-flow: row;
        gap: .4rem;
        width: 100%;
    }

    .module-page-actions:has(> .module-info-toggle) {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .module-page-actions > .relf-button-accent {
        order: 1;
    }

    .module-page-actions > .module-download-dropdown {
        order: 2;
    }

    .module-page-actions > .module-info-toggle {
        order: 3;
    }

    .module-page-actions .module-info-toggle {
        width: 100%;
    }

    .module-page-actions .relf-button {
        width: 100%;
        min-width: 0;
        min-height: 2.5rem;
        padding: .4rem .2rem;
        gap: .25rem;
        font-size: .78rem;
        white-space: nowrap;
    }

    .module-page-actions .module-download-dropdown > .dropdown-toggle {
        width: 100%;
        justify-content: center;
    }

    .module-table-footer {
        margin-bottom: .75rem;
    }

    .module-table-wrapper .module-table tbody td:first-child {
        padding-right: .35rem;
        padding-left: .35rem;
    }

    .module-table-wrapper .module-table tbody td:first-child .module-operation-button {
        width: 1.75rem;
    }
}

.module-table-wrapper .module-table th {
    position: sticky;
    top: 0;
    z-index: 1;
    white-space: nowrap;
}

.module-table-wrapper .module-table tbody td {
    padding-top: .4rem;
    padding-bottom: .4rem;
    color: #000;
    white-space: nowrap;
}

.module-table-wrapper .module-table [data-modulo-columna="fechaAlta"],
.module-table-wrapper .module-table [data-modulo-columna="fechaActualizacion"] {
    text-align: center;
}

.module-table-wrapper .module-table tbody td:has(.module-status) {
    color: var(--relf-muted);
}

.module-table-footer {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: flex-end;
    margin-top: .65rem;
    padding: .65rem .85rem;
    color: var(--relf-muted);
    background: var(--relf-white);
    border: 1px solid var(--relf-border);
    border-radius: 8px;
    font-size: .85rem;
    font-weight: 700;
}

.module-table-footer strong {
    color: var(--relf-primary);
}

.module-operation-button[class*="-operation-update"] {
    color: #198754;
}

.module-operation-button[class*="-operation-update"]:hover {
    color: #146c43;
    background: #e2f3e9;
}

.module-operation-button[class*="-operation-inactivate"],
.module-operation-button[class*="-operation-reactivate"] {
    color: #d97706;
}

.module-operation-button[class*="-operation-inactivate"]:hover,
.module-operation-button[class*="-operation-reactivate"]:hover {
    color: #b45309;
    background: #fff0d6;
}

.module-operation-button[class*="-operation-delete"] {
    color: #dc3545;
}

.module-operation-button[class*="-operation-delete"]:hover {
    color: #b02a37;
    background: #fbe4e6;
}
