@charset "UTF-8";
.modal-backdrop.show {
    opacity: 0.75 !important;
}

.tableCustom.dataTable-table th#id,
#tablaDetalle.dataTable-table th#id,
.tableCustom.table th#id,
#tablaDetalle.table th#id,
.tableSingle.table th#id {
    width: 30px !important;
}

.tableCustom.dataTable-table th#action,
#tablaDetalle.dataTable-table th#action,
.tableCustom.table th#action,
#tablaDetalle.table th#action,
.tableSingle.table th#action {
    width: 50px !important;
}

table.dataTable > thead .sorting:before,
table.dataTable > thead .sorting_asc:before,
table.dataTable > thead .sorting_asc_disabled:before,
table.dataTable > thead .sorting_desc:before,
table.dataTable > thead .sorting_desc_disabled:before {
    content: "▲" !important;
    font-size: 0.6rem !important;
    right: 0.5em !important;
    top: 0.4rem !important;
}

table.dataTable > thead .sorting:after,
table.dataTable > thead .sorting_asc:after,
table.dataTable > thead .sorting_asc_disabled:after,
table.dataTable > thead .sorting_desc:after,
table.dataTable > thead .sorting_desc_disabled:after {
    bottom: 0.4rem !important;
    content: "▼" !important;
    font-size: 0.6rem !important;
    right: 0.5em !important;
}
.tableCustom thead th,
.tableSingle thead th {
    text-transform: uppercase;
    font-size: 0.68rem;
}

.tableCustom.dataTable,
.tableSingle {
    border-collapse: collapse !important;
}

.tableCustom.dataTable.dataTable-table td,
.tableCustom.dataTable.dataTable-table th,
.tableCustom.dataTable.table-bordered td,
.tableSingle td,
.tableSingle th,
.tableCustom.table-bordered th {
    border-bottom-width: 0 !important;
}
.table {
    text-transform: uppercase;
    width: 100% !important;
}

.table thead th {
    font-size: 0.68rem !important;
}

.pages-404-2 {
    align-items: center;
    background: #1b1b1b;
    bottom: 0;
    display: flex;
    justify-content: center;
    min-height: 100vh;
    opacity: 1;
    padding: 25px 15px;
    position: relative;
    top: 0;
    width: 100%;
}

.pages-404-2 .btn-2 {
    padding: 0 60px;
}

.pages-404-2 .error404 {
    color: #3f3f3f;
    font-size: 260px;
    font-weight: 700;
    line-height: 0.8;
    margin-bottom: 40px;
    opacity: 1;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.4);
}

.pages-404-2 .h1,
.pages-404-2 h1 {
    color: #dedede;
    font-size: 34px;
    font-weight: 500;
    margin-bottom: 30px;
}

.pages-404-2 p {
    color: #b9b3b3;
    font-size: 18px;
    margin-bottom: 30px;
}

.btn-2 {
    background: #ffa400;
    border: 2px solid #ffa400;
    border-radius: 3px;
    color: #fff !important;
    font-size: 15px;
    font-weight: 400;
    letter-spacing: 0.5px;
    line-height: 46px;
    overflow: hidden;
    padding: 0 30px;
}

.btn-2:before,
.btn-2:hover {
    background-color: transparent !important;
    border: 2px solid #ffa400;
    color: #ffa400 !important;
}

.bg-thumbnail {
    background-position: 50%;
    background-repeat: no-repeat;
    background-size: cover;
    height: 60px;
    width: 60px;
}

.nav-borders .nav-item.show .nav-link,
.nav-borders .nav-item.show .nav-link:focus,
.nav-borders .nav-item.show .nav-link:hover,
.nav-borders .nav-link.active,
.nav-borders .nav-link.active:focus,
.nav-borders .nav-link.active:hover {
    border-left-color: transparent;
    border-right-color: transparent;
    border-top-color: transparent;
}

.contact-section:before {
    background-color: rgba(0, 0, 0, 0.5);
    bottom: 0;
    content: "";
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
}

.contact-section .form-section {
    align-items: center;
    background: #fff9f7;
    display: flex;
    justify-content: center;
    min-height: 100vh;
    padding: 15px;
    position: relative;
    text-align: center;
}

.contact-section .form-inner {
    background: #fff;
    margin: 0 auto;
    max-width: 450px;
    padding: 50px 30px;
    text-align: center;
    width: 100%;
}

.contact-section .bg-img {
    align-items: center;
    background: #f59d27 url(../images/puerto-valparaiso.webp) 50% / cover no-repeat;
    display: flex;
    justify-content: center;
    min-height: 100vh;
    padding: 15px;
    position: relative;
    z-index: 999;
}

.contact-section .bg-img:before {
    background: rgba(245, 157, 39, 0.85);
    bottom: 0;
    content: "";
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
}

.contact-section .form-section .extra-login {
    float: left;
    position: relative;
    text-align: center;
    width: 100%;
}

.contact-section .form-section .extra-login:before {
    background: #e4e4e4;
    content: "";
    height: 1px;
    left: 0;
    position: absolute;
    top: 10px;
    width: 100%;
}

.contact-section .form-section .extra-login > span {
    background: #fff;
    color: #535353;
    display: inline-block;
    float: none;
    font-family: Open Sans;
    font-size: 14px;
    padding: 1px 20px;
    position: relative;
    text-transform: capitalize;
    width: auto;
    z-index: 1;
}

.contact-section .pad-0 {
    padding: 0;
}

.contact-section .form-section p {
    color: #535353;
    font-size: 16px;
    font-weight: 400;
    margin-bottom: 0;
}

.contact-section .form-section p a {
    color: #535353;
}

.contact-section .form-section .thembo {
    margin-left: 4px;
}

.contact-section .form-section .h3,
.contact-section .form-section h3 {
    font-size: 22px;
    font-weight: 400;
    margin: 0 0 25px;
}

.contact-section .form-section .form-group {
    margin-bottom: 25px;
}

.contact-section .form-section .form-box {
    float: left;
    position: relative;
    text-align: left;
    width: 100%;
}

.contact-section .form-section .form-box input {
    float: left;
    width: 100%;
}

.contact-section .form-section .input-text {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.161);
    border-radius: 3px;
    color: #616161;
    font-size: 15px;
    font-weight: 500;
    height: 50px;
    outline: none;
    padding: 10px 20px;
}

.contact-section .form-section img {
    margin-bottom: 5px;
}

.contact-section .form-section .form-box i {
    color: #616161;
    font-size: 23px;
    position: absolute;
    right: 20px;
    top: 10px;
}

.contact-section .form-section .checkbox .terms {
    margin-left: 3px;
}

.contact-section .form-section .btn-md {
    border-radius: 3px;
    cursor: pointer;
    font-family: Jost, sans-serif;
    font-size: 17px;
    font-weight: 400;
    padding: 13px 50px 12px;
}

.contact-section .form-section input[type="checkbox"],
input[type="radio"] {
    margin-right: 3px;
}

.contact-section .form-section button:focus-visible {
    outline: 2px solid #212832;
    outline-offset: 2px;
}

.contact-section .none-2 {
    display: none;
}

.contact-section .form-section .terms {
    margin-left: 3px;
}

.contact-section .form-section .checkbox {
    font-size: 14px;
}

.contact-section .form-section .form-check {
    float: left;
    margin-bottom: 0;
}

.contact-section .form-section .form-check a {
    color: #535353;
    float: right;
}

.contact-section .form-section .form-check-input {
    margin-left: -15px;
    position: absolute;
}

.contact-section .form-section .form-check-label {
    color: #535353;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 0;
    padding-left: 5px;
}

.contact-section .form-section input[type="checkbox"]:checked + label:before {
    color: #fff;
    content: "✓";
    font-size: 14px;
    font-weight: 300;
    line-height: 15px;
}

.contact-section .form-section input[type="checkbox"],
input[type="radio"] {
    margin-top: 4px;
}

.contact-section .form-section .forgot-password {
    color: #535353;
    float: right;
    font-size: 16px;
}

.contact-section .form-section .input-text:focus {
    border-color: #f59d27;
    box-shadow: 0 0 0 0.25rem rgba(245, 157, 39, 0.25);
}

.contact-section .form-section .form-label {
    color: #363d47;
    display: block;
    font-size: 14px;
    font-weight: 600;
}

.contact-section .btn-primary,
.contact-section .btn-primary:disabled {
    background-color: #f59d27;
    border-color: #f59d27;
    color: #212832;
}

.contact-section .btn-primary:hover,
.contact-section .btn-primary:focus,
.contact-section .btn-primary:active {
    background-color: #e08a16;
    border-color: #e08a16;
    color: #212832;
}

.contact-section .btn-primary:focus {
    box-shadow: 0 0 0 0.25rem rgba(245, 157, 39, 0.5);
}

.contact-section .logo img {
    height: 30px;
    margin-bottom: 15px;
}

.contact-section .info {
    max-width: 610px;
    padding: 10px 30px;
    z-index: 999;
}

.contact-section .info .h1,
.contact-section .info h1 {
    color: #212832;
    font-size: 50px;
    font-weight: 700;
    margin-bottom: 30px;
}

.contact-section .info .h1 a,
.contact-section .info h1 a {
    color: #fff;
}

.contact-section .info p {
    color: #212832;
    line-height: 28px;
}

.contact-section .form-section ul {
    list-style: none;
    margin: 0 0 20px;
    padding: 0;
}

.contact-section .social-list {
    padding: 0;
    text-align: center;
}

.contact-section .social-list li {
    display: inline-block;
}

.contact-section .social-list li a {
    border-radius: 0;
    color: #fff;
    display: inline-block;
    font-size: 14px;
    font-weight: 500;
    height: 40px;
    line-height: 40px;
    margin: 1px;
    text-align: center;
    width: 110px;
}

.contact-section .social-list li a:hover {
    text-decoration: none;
}

.contact-section .facebook-bg {
    background: #4867aa;
}

.contact-section .facebook-bg:hover {
    background: #3d5996;
    color: #fff;
}

.contact-section .twitter-bg {
    background: #3cf;
}

.contact-section .twitter-bg:hover {
    background: #56d7fe;
}

.contact-section .google-bg {
    background: #db4437;
}

.contact-section .google-bg:hover {
    background: #dc4e41;
}

:root {
    --ck-border-radius: 4px;
    --ck-font-size-base: 14px;
    --ck-custom-background: #4a494b;
    --ck-custom-foreground: #2d2d2f;
    --ck-custom-border: #393839;
    --ck-custom-white: #fff;
    --ck-color-base-foreground: var(--ck-custom-background);
    --ck-color-focus-border: #47a4f5;
    --ck-color-text: #fafafa;
    --ck-color-shadow-drop: rgba(0, 0, 0, 0.2);
    --ck-color-shadow-inner: rgba(0, 0, 0, 0.1);
    --ck-color-button-default-background: var(--ck-custom-background);
    --ck-color-button-default-hover-background: #383839;
    --ck-color-button-default-active-background: #333234;
    --ck-color-button-default-active-shadow: #3b393c;
    --ck-color-button-default-disabled-background: var(--ck-custom-background);
    --ck-color-button-on-background: var(--ck-custom-foreground);
    --ck-color-button-on-hover-background: #28272a;
    --ck-color-button-on-active-background: #232225;
    --ck-color-button-on-active-shadow: #2f2f32;
    --ck-color-button-on-disabled-background: var(--ck-custom-foreground);
    --ck-color-button-action-background: #1abc9c;
    --ck-color-button-action-hover-background: #17ab8d;
    --ck-color-button-action-active-background: #16a286;
    --ck-color-button-action-active-shadow: #16987e;
    --ck-color-button-action-disabled-background: #1abc9c;
    --ck-color-button-action-text: var(--ck-custom-white);
    --ck-color-button-save: #00eb00;
    --ck-color-button-cancel: #ff571f;
    --ck-color-dropdown-panel-background: var(--ck-custom-background);
    --ck-color-dropdown-panel-border: var(--ck-custom-foreground);
    --ck-color-split-button-hover-background: var(
        --ck-color-button-default-hover-background
    );
    --ck-color-split-button-hover-border: var(--ck-custom-foreground);
    --ck-color-input-background: var(--ck-custom-background);
    --ck-color-input-border: #6c6a71;
    --ck-color-input-text: #fafafa;
    --ck-color-input-disabled-background: #343338;
    --ck-color-input-disabled-border: #5f5e64;
    --ck-color-input-disabled-text: #c7c7c7;
    --ck-color-labeled-field-label-background: var(--ck-custom-background);
    --ck-color-list-background: var(--ck-custom-background);
    --ck-color-list-button-hover-background: var(--ck-custom-foreground);
    --ck-color-list-button-on-background: #198cf0;
    --ck-color-list-button-on-text: var(--ck-custom-white);
    --ck-color-panel-background: var(--ck-custom-background);
    --ck-color-panel-border: var(--ck-custom-border);
    --ck-color-toolbar-background: var(--ck-custom-background);
    --ck-color-toolbar-border: var(--ck-custom-border);
    --ck-color-tooltip-background: #222126;
    --ck-color-tooltip-text: #ededed;
    --ck-color-image-caption-background: #f7f7f7;
    --ck-color-image-caption-text: #333;
    --ck-color-widget-blurred-border: #dedede;
    --ck-color-widget-hover-border: #ffd15c;
    --ck-color-widget-editable-focus-background: var(--ck-custom-white);
    --ck-color-link-default: #80eaff;
}

.object-cover {
    -o-object-fit: cover;
    object-fit: cover;
}

#page_loader {
    background-color: #fff;
    height: 100%;
    left: 0;
    position: fixed;
    top: 0;
    transition: 0.2s;
    width: 100%;
    z-index: 999999;
}

@media (prefers-reduced-motion: reduce) {
    #page_loader {
        transition: none;
    }
}

#page_loader .spinner-grow {
    color: #ffa400;
}

label.small.mb-1 {
    font-size: 0.8rem;
}

.is-required:after {
    content: "*";
    margin-left: 3px;
    color: #dc3545;
    font-weight: bold;
}

.dataTable-input,
.form-control {
    border-radius: 0.35rem;
    font-size: 0.75rem;
    padding: 0.5rem 1rem;
    width: 100%;
}

.input-group .form-control {
    padding: 0.5rem 0.5rem;
}

.dataTable-selector,
.form-select {
    border-radius: 0.35rem;
    font-size: 0.875rem;
    padding: 0.5rem 3.375rem 0.5rem 1rem;
}

.input-group-text {
    border-radius: 0.35rem;
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
}
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 99;
    display: flex;
    justify-content: center;
    align-items: center;
}
.dataTables_wrapper table.dataTable td {
    white-space: nowrap;
}

/* Ocultar "Mostrar" y "registros" en dispositivos pequeños */
@media (max-width: 767.98px) {
    .dataTables_length label span.d-none.d-md-inline {
        display: none;
    }
}

.dataTables_wrapper .form-select.form-select-sm {
    font-size: 0.75rem !important;
}

/* Estilos personalizados para el action-toggle */
#action-toggle .offcanvas-end-custom {
    width: 300px;
    transition: transform 0.3s ease-in-out;
}

#action-toggle .toggle-btn {
    position: fixed;
    right: 0;
    top: 14%;
    transform: translateY(-50%);
    z-index: 1050;
    width: 40px;
    height: 40px;
    border-radius: 0.35rem 0 0 0.35rem;
    background-color: #0d6efd;
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

#action-toggle .toggle-btn:hover {
    background-color: #0b5ed7;
    width: 45px;
}

#action-toggle .sidebar-menu {
    display: flex;
    flex-direction: column;
}

#action-toggle .sidebar-menu .btn {
    text-align: left;
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
}

#action-toggle .sidebar-menu .btn i {
    margin-right: 0.5rem;
}

/* Responsividad */
@media (max-width: 576px) {
    #action-toggle .offcanvas-end-custom {
        width: 280px;
    }

    #action-toggle .toggle-btn {
        top: 10%;
        width: 36px;
        height: 36px;
    }
}
@media print {
    .pdf-export-container,
    .pdf-export-container *,
    .pdf-export-container *:before,
    .pdf-export-container *:after {
        /* Reseteo general */
        box-sizing: border-box;

        /* ¡LA CLAVE ESTÁ AQUÍ! Forzamos la tipografía y el peso de fuente. */
        font-family: Arial, "Helvetica Neue", Helvetica, sans-serif !important;
        font-weight: normal !important;
        /* Anula cualquier negrilla heredada */
        font-style: normal !important;
        /* Anula cualquier cursiva heredada */
        color: #212529 !important;
        /* Color de texto estándar de Bootstrap */
    }

    .pdf-export-container table thead tr th {
        font-size: 1.25rem !important;
    }
}

/* Badge de servidor y ambiente de Aduanas en la barra superior (includes/topnav.php, vista/js/ambiente-badge.js):
   una sola línea que no se encoge (bajo 1200 px es solo un punto de color), para no cambiar el alto de la barra que
   usan las cabeceras fijas de las tablas */
.badge-ambiente {
    flex-shrink: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 22rem;
}

@media (max-width: 575.98px) {
    #badgeAmbiente {
        display: none !important;
    }
}

/* Enlace para saltar al contenido: solo aparece con el foco del teclado */
.mih-saltar:focus {
    background-color: #fff;
    border-radius: 0.35rem;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(33, 40, 50, 0.15);
    color: #212832;
    left: 0.5rem;
    padding: 0.5rem 1rem;
    position: fixed !important;
    top: 0.5rem;
    z-index: 1100;
}

/* El salto mueve el foco al contenido sin cambiar la URL; el contenedor no muestra anillo */
#layoutSidenav_content:focus {
    outline: 0;
}

/* Movimiento reducido: sin animaciones ni transiciones para quien lo pide en su sistema */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }

    /* Los indicadores de carga siguen girando, más lento, como en Bootstrap */
    .spinner-border,
    .spinner-grow {
        animation-duration: 1.5s !important;
        animation-iteration-count: infinite !important;
    }
}
