/* Adaptacion visual de PersianasV1 para las vistas Blade de PersianasV2. */

html {
    font-size: 14px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

body.erp-compact {
    opacity: 1;
}

body.app-authenticated {
    margin: 0 !important;
    padding: 0 !important;
}

.app-shell-fluid {
    padding: 0 !important;
    margin: 0 !important;
    max-width: none !important;
    width: 100% !important;
}

.app-shell-fluid > .row {
    margin: 0 !important;
}

.app-public-fluid {
    min-height: calc(100vh - 30px);
}

.app-mobile-menu-toggle {
    display: none;
    width: 38px;
    height: 38px;
    min-width: 38px;
    padding: 0;
    border: 0;
    border-radius: 4px;
    background: #2f4f6f;
    color: #ffffff;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
}

.app-mobile-menu-toggle:hover {
    color: #ffffff;
    filter: brightness(.95);
}

.app-main-public {
    min-height: calc(100vh - 30px);
    padding: 1.5rem;
    background: #f2f5fa;
}

@media (min-width: 768px) {
    body.app-authenticated::before {
        content: "";
        position: fixed;
        top: 0;
        left: 0;
        width: calc(25% + 1px);
        height: 100vh;
        background: linear-gradient(180deg, #2f4f6f 0%, #243b53 100%);
        z-index: 1290;
        pointer-events: none;
    }

    body.app-authenticated .app-sidebar {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        bottom: 0 !important;
        width: 25% !important;
        max-width: 25% !important;
        flex: 0 0 25% !important;
        height: 100vh !important;
        min-height: 100vh !important;
        background: linear-gradient(180deg, #2f4f6f 0%, #243b53 100%) !important;
        z-index: 1300 !important;
        margin-bottom: 0 !important;
    }

    body.app-authenticated .app-main-content {
        position: fixed !important;
        top: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        left: 25% !important;
        width: auto !important;
        max-width: none !important;
        flex: none !important;
        margin-left: 0 !important;
        height: 100vh !important;
        padding-top: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        padding-bottom: 0 !important;
        overflow-y: auto !important;
    }

    body.app-authenticated .app-main-content header {
        position: fixed !important;
        top: 0 !important;
        left: 25% !important;
        right: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        z-index: 1020 !important;
    }

    body.app-authenticated .app-main-content .navbar {
        margin: 0 !important;
        width: 100% !important;
    }

    body.app-authenticated .app-main-content .navbar > .container-fluid {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
        padding-bottom: 0 !important;
    }

    body.app-authenticated .app-navbar-branch {
        max-width: 30%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        padding-right: 1rem;
    }

    body.app-authenticated .app-main-body {
        padding-top: 5rem;
    }

    body.app-authenticated .app-shell-fluid > .app-auto-alert {
        margin-left: 25%;
        transition: margin-left .22s ease;
    }

    body.app-authenticated.app-sidebar-is-collapsed .app-shell-fluid > .app-auto-alert,
    body.app-authenticated.app-sidebar-is-collapsed .app-main-content {
        margin-left: 0 !important;
    }

    body.app-authenticated.app-sidebar-is-collapsed .app-main-content {
        left: 72px !important;
    }

    body.app-authenticated.app-sidebar-is-collapsed .app-main-content header {
        left: 72px !important;
    }

    body.app-authenticated.app-sidebar-is-collapsed .app-sidebar {
        width: 72px !important;
        max-width: 72px !important;
        flex: 0 0 72px !important;
    }

    body.app-authenticated.app-sidebar-is-collapsed::before {
        width: 73px;
    }
}

@media (min-width: 992px) {
    body.app-authenticated::before {
        width: calc(16.666667% + 1px);
    }

    body.app-authenticated .app-shell-fluid > .app-auto-alert,
    body.app-authenticated .app-main-content {
        margin-left: 0 !important;
    }

    body.app-authenticated .app-main-content {
        left: 16.666667% !important;
    }

    body.app-authenticated .app-main-content header {
        left: 16.666667% !important;
    }

    body.app-authenticated .app-sidebar {
        width: 16.666667% !important;
        max-width: 16.666667% !important;
        flex: 0 0 16.666667% !important;
    }

    body.app-authenticated.app-sidebar-is-collapsed .app-shell-fluid > .app-auto-alert,
    body.app-authenticated.app-sidebar-is-collapsed .app-main-content {
        margin-left: 0 !important;
    }

    body.app-authenticated.app-sidebar-is-collapsed .app-main-content {
        left: 72px !important;
    }

    body.app-authenticated.app-sidebar-is-collapsed .app-main-content header {
        left: 72px !important;
    }

    body.app-authenticated.app-sidebar-is-collapsed .app-sidebar {
        width: 72px !important;
        max-width: 72px !important;
        flex: 0 0 72px !important;
    }

    body.app-authenticated.app-sidebar-is-collapsed::before {
        width: 73px;
    }
}

.shell {
    width: min(1180px, calc(100% - 24px));
    margin: 0 auto 1.5rem;
}

.auth-shell {
    width: min(440px, calc(100% - 32px));
    margin: 64px auto;
}

.app-login-screen {
    min-height: calc(100vh - 96px);
    align-content: start;
}

.app-login-logo {
    max-width: 180px;
    max-height: 86px;
    object-fit: contain;
}

.app-auth-card .card-header {
    background: linear-gradient(180deg, #2f4f6f 0%, #243b53 100%);
    color: #ffffff;
}

.app-auth-card .card-header h3 {
    color: #ffffff;
    font-size: 1.15rem;
}

.app-login-remember {
    display: flex;
    align-items: flex-start;
    gap: .55rem;
    padding-left: 0;
}

.app-login-remember .form-check-input {
    width: 18px;
    height: 18px;
    min-width: 18px;
    min-height: 18px;
    margin: .15rem 0 0;
    padding: 0;
    border-radius: 3px;
    flex: 0 0 18px;
}

.app-login-remember .form-check-label {
    display: block;
    margin: 0;
    line-height: 1.15;
}

.app-login-remember .form-check-label span {
    display: block;
    margin-top: .2rem;
    color: #667085;
    font-size: .82rem;
    font-weight: 500;
}

.panel {
    background: #ffffff;
    border: 1px solid #d9dee7;
    border-radius: .5rem;
    padding: 1rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.panel > h1:first-child,
.panel > h2:first-child {
    margin-top: 0;
}

.panel > div:first-child[style*="display:flex"],
.panel > div:first-child[style*="display: flex"] {
    margin: -1rem -1rem 1rem;
    padding: .65rem .85rem;
    background: linear-gradient(180deg, #2f4f6f 0%, #243b53 100%);
    border-radius: .5rem .5rem 0 0;
    color: #ffffff;
}

.panel > div:first-child[style*="display:flex"] h1,
.panel > div:first-child[style*="display: flex"] h1,
.panel > div:first-child[style*="display:flex"] h2,
.panel > div:first-child[style*="display: flex"] h2,
.panel > div:first-child[style*="display:flex"] .muted,
.panel > div:first-child[style*="display: flex"] .muted {
    color: #ffffff;
}

.panel > div:first-child[style*="display:flex"] p,
.panel > div:first-child[style*="display: flex"] p {
    margin-bottom: 0;
    opacity: .82;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: .85rem;
    min-width: 0;
}

.metric {
    background: #ffffff;
    border: 1px solid #d9dee7;
    border-radius: .5rem;
    padding: 1rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .03);
}

.metric span {
    display: block;
    color: #667085;
    font-size: .82rem;
}

.metric strong {
    display: block;
    margin-top: .35rem;
    font-size: 1.45rem;
    color: #334155;
}

.muted {
    color: #667085;
}

.form-row {
    margin-bottom: .85rem;
}

label {
    display: block;
    margin-bottom: .25rem;
    font-weight: 600;
}

input,
select,
textarea {
    width: 100%;
    min-height: 34px;
    padding: .32rem .6rem;
    font: inherit;
    border: 1px solid #b8c0cc;
    border-radius: .35rem;
    background: #ffffff;
}

.form-check-input {
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    min-height: 18px !important;
    padding: 0 !important;
    border-radius: 3px;
}

.form-check {
    display: flex;
    align-items: center;
    gap: .45rem;
}

.form-check .form-check-input {
    margin: 0;
    flex: 0 0 18px;
}

.form-check .form-check-label {
    margin: 0;
}

input:focus,
select:focus,
textarea:focus,
.form-control:focus,
.form-select:focus {
    border-color: #6ea8fe;
    box-shadow: 0 0 0 .2rem rgba(13, 110, 253, .15);
    outline: 0;
}

.check {
    display: flex;
    gap: .5rem;
    align-items: center;
}

.check input {
    width: auto;
    min-height: auto;
}

.modal {
    z-index: 1600;
}

.modal.app-work-order-modal {
    z-index: 1600;
    pointer-events: auto;
}

.modal.app-work-order-modal .modal-dialog,
.modal.app-work-order-modal .modal-content {
    pointer-events: auto;
}

.modal-backdrop {
    z-index: 1500;
}

.actions {
    display: flex;
    gap: .5rem;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    margin-top: .85rem;
}

button,
.button {
    border: 0;
    border-radius: 3px;
    padding: .35rem .7rem;
    background: #0f7a2f;
    color: #ffffff;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    min-height: 30px;
}

button:hover,
.button:hover {
    color: #ffffff;
    text-decoration: none;
    filter: brightness(.95);
}

.button.secondary,
button.secondary {
    background: #6c757d;
    color: #ffffff;
}

a:not(.navbar-brand):not(.nav-link):not(.button):not(.btn-app) {
    color: #0f5f9f;
    font-weight: 600;
}

a:not(.navbar-brand):not(.nav-link):not(.button):not(.btn-app):hover {
    color: #0b4c7f;
}

.app-main-content .button[href*="Crear"],
.app-main-content a.button:not(.secondary) {
    background: #28a745;
}

.app-main-content a[href*="Editar"]:not(.button):not(.btn-app) {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    min-height: 24px;
    padding: 2px 6px;
    border-radius: 3px;
    background: #ffc107;
    color: #212529;
    text-decoration: none;
    font-size: .78rem;
}

.app-main-content a[href*="Editar"]:not(.button):not(.btn-app)::before {
    content: "\F4CA";
    font-family: "bootstrap-icons";
}

.app-main-content button[type="submit"] {
    background: #0f7a2f;
}

.app-main-content button[style*="danger"],
.app-main-content button[style*="--danger"],
.app-main-content form[action*="Anular"] button {
    background: #dc3545 !important;
}

.alert.error {
    color: #842029;
    background-color: #f8d7da;
    border-color: #f5c2c7;
}

.alert.success {
    color: #0f5132;
    background-color: #d1e7dd;
    border-color: #badbcc;
}

.permissions {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    margin-top: .85rem;
}

.pill {
    border: 1px solid #d9dee7;
    border-radius: 999px;
    padding: .3rem .55rem;
    background: #ffffff;
    color: #667085;
    font-size: .78rem;
}

.pill input {
    width: auto;
    min-height: auto;
    margin-right: .25rem;
}

.app-sidebar-collapsed .app-menu-list.collapsed {
    display: none;
}

.app-menu-link.active {
    background: rgba(255,255,255,.16);
    color: #ffffff;
    font-weight: 600;
}

.app-main-content table {
    background: #ffffff;
    width: 100%;
    border-collapse: collapse;
    font-size: .88rem;
}

.app-main-content .table-responsive,
.app-main-content .table-wrapper,
.app-main-content .table-responsive-system,
.app-main-content .card-body {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.app-main-content .table-responsive-system {
    width: 100%;
}

.app-main-content .table-responsive-system > table {
    margin-bottom: 0 !important;
}

.app-main-content .dataTables_wrapper {
    width: 100%;
}

.app-main-content .dataTables_wrapper .row {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
}

.app-main-content .dataTables_wrapper .dataTables_length,
.app-main-content .dataTables_wrapper .dataTables_filter,
.app-main-content .dataTables_wrapper .dataTables_info,
.app-main-content .dataTables_wrapper .dataTables_paginate {
    padding: .35rem 0;
}

.app-main-content .dataTables_wrapper .dataTables_filter {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: .5rem;
    flex-wrap: wrap;
}

.app-main-content .dataTables_wrapper .dataTables_filter label,
.app-main-content .dataTables_wrapper .dataTables_length label {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    margin-bottom: 0;
    font-weight: 600;
}

.app-main-content .dataTables_wrapper .dataTables_filter input {
    margin-left: 0 !important;
    max-width: 100%;
}

.app-main-content .dataTables_wrapper .dataTables_filter .btn-app-dt-nuevo {
    width: 34px;
    min-width: 34px;
    height: 34px;
    min-height: 34px;
    padding: 0;
    font-size: .95rem;
    flex: 0 0 34px;
}

.app-main-content .dataTables_scroll,
.app-main-content .dataTables_scrollHead,
.app-main-content .dataTables_scrollBody {
    width: 100%;
    -webkit-overflow-scrolling: touch;
}

.app-main-content .dataTables_scrollBody {
    border-bottom: 1px solid #dee2e6;
}

.app-main-content table th {
    background: linear-gradient(180deg, #2f4f6f 0%, #243b53 100%);
    color: #ffffff;
    border-color: #35556d !important;
    text-transform: uppercase;
    letter-spacing: .02em;
    font-size: .78rem;
}

.app-main-content table td,
.app-main-content table th {
    vertical-align: middle;
    padding: .45rem .55rem !important;
}

.app-main-content table td {
    border-bottom: 1px solid #eef1f5 !important;
}

.app-main-content table tbody tr:hover {
    background: #f8fafc;
}

.card {
    border: 1px solid #d9dee7;
    border-radius: .5rem;
}

.card-header {
    background: linear-gradient(180deg, #2f4f6f 0%, #243b53 100%);
    color: #ffffff;
}

.card-header h1,
.card-header h2,
.card-header h3,
.card-header h4,
.card-header h5 {
    color: #ffffff;
}

.pagination {
    gap: .2rem;
}

.page-link {
    color: #0f5f9f;
}

.page-item.active .page-link {
    background-color: #2f4f6f;
    border-color: #2f4f6f;
}

.app-main-public .panel,
.app-main-public .metric {
    box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
}

@media (min-width: 768px) and (max-width: 1199.98px) {
    .app-navbar-center .navbar-brand {
        font-size: 1.55rem;
    }

    body.app-authenticated .app-navbar-branch {
        max-width: 24%;
    }

    body.app-authenticated .app-main-content .navbar .ms-auto {
        gap: .5rem !important;
    }
}

@media (max-width: 767.98px) {
    body.app-guest input,
    body.app-guest select,
    body.app-guest textarea,
    body.app-guest .form-control,
    body.app-guest .form-select {
        font-size: 16px;
    }

    body.app-guest .app-main-public {
        padding: .75rem;
    }

    body.app-guest .auth-shell {
        width: min(440px, calc(100vw - 24px));
        margin: 24px auto;
    }

    body.app-guest .app-login-screen {
        min-height: auto;
        margin-top: 1rem !important;
    }

    body.app-guest .app-login-logo {
        max-width: 150px;
        max-height: 72px;
    }
}

@media (max-width: 767.98px) {
    html {
        font-size: 13px;
        overflow-x: hidden;
    }

    body.erp-compact {
        display: block;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
    }

    body.app-authenticated.app-mobile-sidebar-open {
        overflow: hidden !important;
    }

    .app-shell-fluid > .row {
        display: block;
        width: 100%;
    }

    body.app-authenticated::after {
        content: "";
        position: fixed;
        inset: 0;
        z-index: 1280;
        background: rgba(15, 23, 42, .42);
        opacity: 0;
        pointer-events: none;
        transition: opacity .2s ease;
    }

    body.app-authenticated.app-mobile-sidebar-open::after {
        opacity: 1;
        pointer-events: auto;
    }

    body.app-authenticated .app-sidebar,
    body.app-authenticated .app-sidebar.app-sidebar-collapsed {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        bottom: 0 !important;
        width: min(84vw, 320px) !important;
        max-width: min(84vw, 320px) !important;
        height: 100dvh !important;
        max-height: none;
        min-height: 100dvh !important;
        flex: 0 0 min(84vw, 320px) !important;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        margin: 0 !important;
        border-right: 1px solid rgba(255,255,255,.2);
        border-bottom: 0;
        background: linear-gradient(180deg, #2f4f6f 0%, #243b53 100%) !important;
        z-index: 1300 !important;
        transform: translateX(-105%);
        transition: transform .22s ease;
        box-shadow: 12px 0 28px rgba(15, 23, 42, .24);
    }

    body.app-authenticated.app-mobile-sidebar-open .app-sidebar,
    body.app-authenticated.app-mobile-sidebar-open .app-sidebar.app-sidebar-collapsed {
        transform: translateX(0);
    }

    body.app-authenticated .app-sidebar.app-sidebar-collapsed .app-sidebar-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: .65rem .75rem .85rem;
    }

    body.app-authenticated .app-sidebar.app-sidebar-collapsed .app-sidebar-brand,
    body.app-authenticated .app-sidebar.app-sidebar-collapsed .app-menu-title-text > span,
    body.app-authenticated .app-sidebar.app-sidebar-collapsed .app-menu-link span {
        display: block;
    }

    body.app-authenticated .app-sidebar.app-sidebar-collapsed .sidebar-toggle-icon {
        display: block;
    }

    body.app-authenticated .app-sidebar.app-sidebar-collapsed .sidebar-toggle-logo-img {
        display: none;
    }

    body.app-authenticated .app-sidebar.app-sidebar-collapsed .app-menu-title,
    body.app-authenticated .app-sidebar.app-sidebar-collapsed .app-menu-link {
        justify-content: space-between;
        padding-left: .65rem;
        padding-right: .65rem;
    }

    body.app-authenticated .app-sidebar.app-sidebar-collapsed .app-menu-link {
        justify-content: flex-start;
        gap: .5rem;
    }

    body.app-authenticated .app-main-content {
        position: relative !important;
        top: auto !important;
        right: auto !important;
        bottom: auto !important;
        left: auto !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        min-height: 0;
        margin: 0 !important;
        padding: 0 !important;
        overflow: visible !important;
    }

    body.app-authenticated .app-main-content header {
        position: sticky !important;
        top: 0 !important;
        left: auto !important;
        right: auto !important;
        z-index: 1020 !important;
        width: 100% !important;
    }

    body.app-authenticated .app-main-content .navbar {
        width: 100% !important;
        min-height: 0;
    }

    body.app-authenticated .app-main-content .navbar > .container-fluid {
        display: grid;
        grid-template-columns: auto 1fr auto;
        gap: .35rem .65rem;
        align-items: center;
        padding: .45rem .65rem !important;
    }

    .app-mobile-menu-toggle {
        display: inline-flex;
        grid-column: 1 / 2;
        grid-row: 1;
    }

    body.app-authenticated .app-navbar-branch {
        grid-column: 1 / 3;
        grid-row: 2;
        min-width: 0;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .app-navbar-center {
        position: static !important;
        transform: none !important;
        grid-column: 2 / 4;
        grid-row: 1;
        justify-content: center;
        min-width: 0;
        pointer-events: auto;
    }

    .app-navbar-center .navbar-brand {
        font-size: clamp(1.3rem, 8vw, 2.1rem);
        line-height: 1;
        max-width: 100%;
        overflow-wrap: anywhere;
        white-space: normal;
        text-align: center;
    }

    body.app-authenticated .app-main-content .navbar .ms-auto {
        grid-column: 3 / 4;
        grid-row: 2;
        gap: .35rem !important;
        flex-wrap: wrap;
        justify-content: flex-end;
        min-width: 0;
    }

    body.app-authenticated .app-main-content .navbar .ms-auto > span {
        display: none;
    }

    .app-main-body {
        padding: .75rem .45rem 1.25rem;
        min-height: calc(100dvh - 92px);
        -webkit-overflow-scrolling: touch;
        min-width: 100%;
    }

    .shell {
        width: 100%;
        margin: 0 auto 1rem;
        padding: 0 .25rem;
    }

    .shell > .d-flex.justify-content-between.align-items-center {
        flex-direction: column;
        align-items: stretch !important;
        gap: .75rem;
        margin-bottom: 1rem !important;
    }

    .panel {
        padding: .75rem;
        border-radius: .35rem;
        -webkit-overflow-scrolling: touch;
        overflow-x: hidden;
    }

    .panel > div:first-child[style*="display:flex"],
    .panel > div:first-child[style*="display: flex"] {
        flex-direction: column;
        align-items: stretch !important;
        gap: .65rem !important;
        margin: -.75rem -.75rem .85rem;
        padding: .7rem .75rem;
    }

    .panel h1,
    .panel h2,
    .card h1,
    .card h2 {
        font-size: 1.45rem;
        line-height: 1.15;
    }

    .grid {
        grid-template-columns: 1fr;
        gap: .65rem;
    }

    input,
    select,
    textarea {
        min-width: 0;
        font-size: 16px;
    }

    .actions {
        justify-content: stretch;
        align-items: stretch;
    }

    .actions > a,
    .actions > button,
    .actions > form,
    .actions > .button,
    .actions > .btn-app {
        width: 100%;
    }

    .actions > form > button {
        width: 100%;
    }

    .app-main-content td .actions {
        justify-content: flex-start;
        align-items: center;
    }

    .app-main-content td .actions > a,
    .app-main-content td .actions > button,
    .app-main-content td .actions > form,
    .app-main-content td .actions > .button,
    .app-main-content td .actions > .btn-app,
    .app-main-content td .actions > form > button {
        width: auto;
    }

    .btn-app,
    .button,
    button {
        min-height: 34px;
        white-space: normal;
    }

    .btn-app-sm,
    .btn-app-xs {
        min-height: 30px;
    }

    .app-main-content table {
        min-width: 680px;
        width: 100%;
        font-size: .82rem;
    }

    .app-main-content .table-responsive,
    .app-main-content .table-wrapper,
    .app-main-content .table-responsive-system,
    .app-main-content .card-body,
    .app-main-content .dataTables_scrollBody {
        overflow-x: auto;
        max-width: 100%;
        -webkit-overflow-scrolling: touch;
    }

    .app-main-content .dataTables_wrapper .dataTables_length,
    .app-main-content .dataTables_wrapper .dataTables_filter,
    .app-main-content .dataTables_wrapper .dataTables_info,
    .app-main-content .dataTables_wrapper .dataTables_paginate {
        float: none !important;
        width: 100%;
        text-align: left !important;
    }

    .app-main-content .dataTables_wrapper .dataTables_filter {
        justify-content: flex-start;
    }

    .app-main-content .dataTables_wrapper .dataTables_filter label {
        flex: 1 1 auto;
        min-width: 0;
        align-items: center;
        flex-direction: row;
        gap: .35rem;
    }

    .app-main-content .dataTables_wrapper .dataTables_filter input {
        width: 100% !important;
        font-size: 16px;
    }

    .app-main-content .dataTables_wrapper .dataTables_paginate {
        display: flex;
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: .25rem;
    }

    .app-main-content table td,
    .app-main-content table th {
        padding: .4rem .45rem !important;
    }

    .app-footer {
        height: auto;
        min-height: 30px;
        flex-direction: column;
        align-items: flex-start;
        gap: .15rem;
        padding: .45rem .65rem;
    }

    .home-logo {
        width: min(520px, 96vw);
    }
}

.app-persiana-transition {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: none;
    overflow: hidden;
    pointer-events: none;
    background: #eef2f8;
}

.app-persiana-transition.is-active {
    display: block;
}

.app-persiana-transition.is-opening {
    background: transparent;
}

.app-persiana-riel {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2;
    height: 16px;
    background: linear-gradient(180deg, #204b73 0%, #153a5c 100%);
    box-shadow: 0 2px 8px rgba(15, 35, 55, .35);
}

.app-persiana-riel::after {
    content: "";
    position: absolute;
    top: 4px;
    left: 5%;
    right: 5%;
    height: 2px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .24);
}

.app-persiana-lamas {
    position: absolute;
    inset: 16px 0 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.app-persiana-lamas span {
    position: relative;
    flex: 1 1 auto;
    min-height: 24px;
    transform-origin: top center;
    will-change: transform, opacity;
    background: linear-gradient(
        180deg,
        #f8fafc 0%,
        #d9e1ec 10%,
        #aebdca 28%,
        #7891a8 46%,
        #52708c 60%,
        #294f73 100%
    );
    border-bottom: 2px solid rgba(16, 55, 89, .5);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .65);
}

.app-persiana-lamas span::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, .22) 100%);
}

.app-persiana-transition.is-opening .app-persiana-lamas span {
    animation: appPersianaAbrir .8s cubic-bezier(.42, 0, .18, 1) forwards;
}

.app-persiana-transition.is-closing .app-persiana-lamas span {
    transform: scaleY(0) perspective(420px) rotateX(-52deg);
    opacity: 0;
    animation: appPersianaCerrar .78s cubic-bezier(.22, .7, .2, 1) forwards;
}

@keyframes appPersianaAbrir {
    0% {
        transform: scaleY(1) perspective(420px) rotateX(0deg);
        opacity: 1;
    }

    60% {
        transform: scaleY(.2) perspective(420px) rotateX(-35deg);
        opacity: .72;
    }

    100% {
        transform: scaleY(0) perspective(420px) rotateX(-58deg);
        opacity: 0;
    }
}

@keyframes appPersianaCerrar {
    0% {
        transform: scaleY(0) perspective(420px) rotateX(-52deg);
        opacity: 0;
    }

    42% {
        opacity: .92;
    }

    100% {
        transform: scaleY(1) perspective(420px) rotateX(0deg);
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .app-persiana-transition {
        display: none !important;
    }
}
