/*
|--------------------------------------------------------------------------
| Custom Stylesheet
|--------------------------------------------------------------------------
|
| This file is organized into the following sections:
|
| 1. FONTS
| 2. GENERAL & HELPERS
| 3. DARK MODE STYLES
| 4. COMPONENTS
|    - Buttons
|    - Cards
|    - Modals
|    - Forms & Inputs
|    - Alerts & Notifications
|    - Switch
|    - Images & Thumbnails
|    - Tables
| 5. LAYOUT & SECTIONS
|    - Navbar
|    - Sidebar / Menu
|    - Login Page
|    - Config Page
|    - DataTables
|    - Collage Editor
|    - Binnacle
|    - Audit
|    - Staff
| 6. ANIMATIONS
| 7. MEDIA QUERIES
|
*/

/*=============================================
=            1. FONTS                      =
=============================================*/

@font-face {
    font-display: swap;
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 300;
    src: url('../fonts/poppins/Poppins-Light.ttf') format('truetype');
}

@font-face {
    font-display: swap;
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/poppins/Poppins-Regular.ttf') format('truetype');
}

@font-face {
    font-display: swap;
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 500;
    src: url('../fonts/poppins/Poppins-Medium.ttf') format('truetype');
}

@font-face {
    font-display: swap;
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 600;
    src: url('../fonts/poppins/Poppins-SemiBold.ttf') format('truetype');
}

@font-face {
    font-display: swap;
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 700;
    src: url('../fonts/poppins/Poppins-Bold.ttf') format('truetype');
}

.dark-mode .fa-xmark {
    color: #fff !important;
}

/*=============================================
=            2. GENERAL & HELPERS             =
=============================================*/

a {
    color: #6c757d;
}

.dark-mode a {
   color: rgba(255, 255, 255, .75);
}

a:hover {
    color: #343a40;
}

.dark-mode a:hover {
    text-decoration: none;
}

textarea {
    resize: none;
    text-align: justify;
}

.bg-orange {
    background-color: #fd7e14;
    color: #fff !important
}

.descripcion-ajustable {
    display: -webkit-box;
    -webkit-line-clamp: 2; 
    -webkit-box-orient: vertical;
    overflow: hidden;       
    text-overflow: ellipsis; 
    white-space: pre-wrap;   
    word-break: break-word;  
}

table.dataTable td {
    font-size: 0.9em;
}

.fila-resaltada {
    background-color: #3f6791 !important;
    color: #ffffff !important;
    transition: background-color 1.5s ease-out, color 1.5s ease-out;
}

.img-size-80 {
    width: 80px !important;
}

.inputCenter {
    text-align: center !important;
}

.is-invalid-temp {
    border: 1px solid #e08e0b !important;
}

.marginBT label {
    margin: 0 !important;
}

.notificaciones {
    text-wrap: break-word;
}

.swal2-top {
    top: 3.5rem !important;
}

.alturaMax {
    height: auto;
    max-height: 500px;
    overflow-y: auto;
    height: calc(100vh - calc(3.5rem + 1px));
    scrollbar-width: thin;
    scrollbar-color: #a9a9a9 #f1f1f1;
}

.alturaMax::-webkit-scrollbar {
    width: 10px;
}

.dark-mode .alturaMax {
    scrollbar-color: #a9a9a9 #343a40;
}

.sticky-top {
    padding: 1rem;
    position: sticky;
    top: 0;
    z-index: 10;
}

.text-mini {
    font-size: 12px;
}

.tiempo {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Scrollbar Global */
html {
    scrollbar-color: #a9a9a9 #f1f1f1;
    scrollbar-width: thin;
}

body.modal-open {
    overflow: auto !important;
    padding-right: 0 !important;
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #a9a9a9;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #6c757d;
}

.text-2xl {
    font-size: 1.5rem;
    line-height: 2rem;
    font-weight: 900;
}

.bg-botonera{
    box-shadow: 0 0 1px rgba(0, 0, 0, 0.125), 0 1px 3px rgba(0, 0, 0, 0.2);
    border-radius: 0.25rem;
    background-color: #fff;
    padding: .5rem;
    min-height: 60px;
    align-content: center;
}

.dark-mode .bg-botonera {
    background-color: #343a40;
}

/*=============================================
=            3. DARK MODE STYLES              =
=============================================*/

.dark-mode .align-btn,
#applySizeBtn {
    background: #343a40;
    border: 1px solid #6c757d;
}

.dark-mode .align-btn:hover,
#applySizeBtn:hover{
    background: #6c757d !important;
}

.dark-mode svg {
    color: #fff;
}

.dark-mode a:not(.btn):hover {
    color: #fff !important;
}

.dark-mode a.text-dark:focus,
.dark-mode a.text-dark:hover {
    color: #fff !important;
}

.dark-mode .bg-white {
    background-color: #343a40 !important;
    color: #fff !important;
}

.dark-mode .btn-ver-mas {
    color: #b9c3cf !important;
}

.dark-mode .btn-ver-mas:hover {
    color: #b9c3cf !important;
}

.dark-mode .dropdown-header {
    color: rgb(255, 255, 255) !important;
}

.dark-mode .img-binnacle {
    background-color: #434547;
}

.dark-mode .img-binnacle-miniatura {
    background-color: #434547;
}

.dark-mode .img-staff {
    background-color: #434547;
}

.dark-mode .img-thumbnail {
    background-color: #434547;
}

.dark-mode .jumbotron {
    background-color: #343a40;
    border-radius: 0.3rem;
    margin-bottom: 2rem;
}

.dark-mode .modal-body {
    background-color: #454d55 !important;
}

.dark-mode .modal-title {
    color: #FFF
}

.dark-mode .modal {
scrollbar-color: #a9a9a9 #6c757d !important;
    scrollbar-width: thin;
}

.dark-mode .polling-toast-alert {
    background-color: #343a40 !important;
    color: #fff;
}

html.dark-mode,
html:has(body.dark-mode) {
    scrollbar-color: #a9a9a9 #6c757d;
}

.dark-mode::-webkit-scrollbar-track,
.dark-mode ::-webkit-scrollbar-track,
html:has(body.dark-mode)::-webkit-scrollbar-track {
    background: #6c757d;
}

.dark-mode::-webkit-scrollbar-thumb,
.dark-mode ::-webkit-scrollbar-thumb,
html:has(body.dark-mode)::-webkit-scrollbar-thumb {
    background: #a9a9a9;
}

.dark-mode::-webkit-scrollbar-thumb:hover,
.dark-mode ::-webkit-scrollbar-thumb:hover,
html:has(body.dark-mode)::-webkit-scrollbar-thumb:hover {
    background: #b9c3cf;
}

/* .btn, .card, .list-group-item, .nav-link, .img-binnacle-miniatura {
    transition: background-color .5s ease, color .5s ease;
} */

/*=============================================
=            4. COMPONENTS                    =
=============================================*/

/*----------  Buttons  ----------*/

.boton-img {
    width: auto;
}

.btnActivar{
    width: 75px;
}

.btn-eye {
    box-shadow: none !important;
}

.btn{
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.22);
    border-radius: 0.25rem;
}

.btn-editar {
    background-color: #28a745;
    border-color: #28a745;
    color: #fff;
}

.botonera {
    border-radius: 0.25em !important;
}

.customBT-staff {
    align-items: baseline !important;
}

#addImageBtn,
#saveCollageBtn,
#editarAddImageBtn,
#editarSaveCollageBtn {
    background-color: #007bff;
    border: none;
    border-color: #007bff;
    border-radius: 4px;
    box-shadow: none;
    color: #fff;
    cursor: pointer;
    padding: 10px 20px;
    transition: background-color 0.3s;
}

#addImageBtn:hover,
#saveCollageBtn:hover,
#editarAddImageBtn:hover,
#editarSaveCollageBtn:hover {
    background-color: #0069d9;
    border-color: #0062cc;
    color: #fff;
}

/*----------  Cards  ----------*/

.card-body {
    padding: 0.5rem !important;
}

.card-header-admin {
    background-color: #007bff;
    color: white !important;
}

.card-header-received {
    background-color: #17a2b8;
    color: white;
}

.card-header-sent {
    background-color: #6c757d;
    color: white;
}

/*----------  Modals  ----------*/

.modal {
    scrollbar-color: #a9a9a9 #f1f1f1 !important;
    scrollbar-width: thin;
}

.modal-body {
    background-color: #f8f9fa !important;
}

.modal-header {
    align-items: center;
}

/*----------  Forms & Inputs  ----------*/

.input-group-text {
    width: 40px;
    justify-content: center;
}

.form-select {
    font-size: 1rem !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='%23ffffff' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
}

.dark-mode .form-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='%23343a40' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
}

.invalid-feedback {
    background-color: #f39c12;
    border-color: #e08e0b;
    border-radius: 0.25rem;
    color: #1f2d3d;
    display: none;
    font-size: 0.8rem;
    margin-top: 0.25rem;
    padding: 0.25rem;
}

.styled-file-input {
    overflow: hidden;
    position: relative;
    width: 190px;
}

.styled-file-input::file-selector-button {
    background-color: #007bff;
    border: none;
    border-color: #007bff;
    border-radius: 4px;
    box-shadow: none;
    color: #fff;
    cursor: pointer;
    padding: 10px 20px;
    transition: background-color 0.3s;
}

.styled-file-input::file-selector-button:hover {
    background-color: #0069d9;
    border-color: #0062cc;
    color: #fff;
}

.ver {
    background-color: transparent !important;
    border: none;
    resize: none;
    text-align: justify;
}

/*----------  Alerts & Notifications  ----------*/

.navbar-badge {
    border-radius: 30px;
    height: 14px;
    padding: 2px 1px !important;
    width: 14px;
}

.polling-toast-alert {
    background-color: #e2e3e5;
    border-left: 5px solid #007bff;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.1);
    color: #383d41 !important;
}

.polling-toast-alert .swal2-icon.swal2-info {
    border-color: #007bff !important;
    color: #007bff !important;
}

.polling-toast-alert .swal2-timer-progress-bar {
    background-color: #007bff;
}

.polling-toast-alert .swal2-title {
    color: #383d41;
}

.pulsating-dot-container {
    display: inline-block;
    position: relative;
}

.pulsating-dot {
    animation: pulse 1.5s infinite;
    background-color: red;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(255, 0, 0, 1);
    height: 5px;
    left: 55%;
    position: absolute;
    top: 45%;
    transform: translate(-50%, -50%);
    width: 5px;
}

.swal2-success-circular-line-left,
.swal2-success-circular-line-right,
.swal2-success-fix {
    background-color: transparent !important;
}

/*----------  Switch  ----------*/

.switch {
    width: 50px;
    font-size: 0.85rem;
    background: #343058;
    border: none;
    border-radius: 1000px;
    cursor: pointer;
    display: flex;
    outline: none;
    position: relative;
    transition: .3s ease all;
}

.switch::after {
    background: #f1f1f1;
    border-radius: 100px;
    box-shadow: 0px 0px 2px 2px rgba(0, 0, 0, .2);
    content: "";
    display: block;
    height: 25px;
    left: 0;
    position: absolute;
    right: unset;
    transition: .3s ease all;
    width: 25px;
}

.switch span {
    background: none;
    color: #fff;
    display: block;
    height: 25px;
    line-height: 25px;
    width: 25px;
}

.switch.activo {
    background: #d4860b;
    color: #000;
}

.switch.activo::after {
    left: calc(100% - 25px);
}

/*----------  Images & Thumbnails  ----------*/

.img-binnacle {
    background-color: #dfdfdf;
    border: none;
    border-radius: 0.25rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.075);
    height: auto;
    object-fit: contain;
    padding: 0.25rem;
    max-height: 400px;
    width: 100%;
}

.img-binnacle-miniatura {
    background-color: #dfdfdf;
    border: none;
    border-radius: 0.25rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.075);
    object-fit: cover;
    padding: 0.25rem;
    height: 60px;
    width: 60px;
}

.img-staff {
    background-color: #dfdfdf;
    border: none;
    border-radius: 0.25rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.075);
    object-fit: contain;
    padding: 0.25rem;
    max-height: 300px;
    width: 300px;
}

.img-user-dropdown {
    background-color: #dfdfdf;
    border: none;
    border-radius: 0.25rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.075);
    object-fit: contain;
    padding: 0.25rem;
    max-height: 300px;
    width: 300px;
}

.img-thumbnail {
    background-color: #dfdfdf;
    border-radius: 0.25rem;
    border: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.075);
    object-fit: contain;
    padding: 0.25rem;
    width: 60px;
    height: 60px;
}

/*----------  Tables  ----------*/

thead, tfoot{
  text-transform: uppercase;
}

table.dataTable {
    border-collapse: collapse !important;
} 

table.dataTable thead th, 
table.dataTable thead td,
table.dataTable tbody td,
table.dataTable tfoot th, 
table.dataTable tfoot td {
    border-bottom: none !important;
    border-top: none !important;
    border: none !important;
}

table.dataTable.no-footer {
    border-bottom: none !important;
}

table tfoot th {
    border-top: 2px solid darkgray !important;
}

.table> :not(:last-child)> :last-child>* {
    border-bottom-color: darkgray !important;
}

table.table.dataTable>tbody>tr {
    text-align: justify;
}

.dark-mode .card .overlay, .overlay-wrapper .overlay, .info-box .overlay, .small-box .overlay {
    background-color: rgba(255, 255, 255, 0.11);
}

.dark-mode .card .overlay>.fas {
    color: #fff;
}

table.table.dataTable>:not(caption)>*>* {
    align-content: center;
}

table.dataTable thead>tr>th.dt-orderable-asc span.dt-column-order:before, table.dataTable thead>tr>th.dt-ordering-asc span.dt-column-order:before, table.dataTable thead>tr>td.dt-orderable-asc span.dt-column-order:before, table.dataTable thead>tr>td.dt-ordering-asc span.dt-column-order:before {
    position: absolute;
    display: block;
    bottom: 50%;
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    content: "\f0de";
}

table.dataTable thead>tr>th.dt-orderable-desc span.dt-column-order:after, table.dataTable thead>tr>th.dt-ordering-desc span.dt-column-order:after, table.dataTable thead>tr>td.dt-orderable-desc span.dt-column-order:after, table.dataTable thead>tr>td.dt-ordering-desc span.dt-column-order:after {
    position: absolute;
    display: block;
    top: 50%;
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    content: "\f0dd";
}

table.dataTable {
    border-collapse: separate !important;
    border-spacing: 0;
    border-radius: 0.25rem;
    overflow: hidden;
    border: 1px solid #dee2e6;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

table.dataTable tbody tr:last-child td {
    border-bottom: none;
}

/* Ajustes para modo oscuro */
.dark-mode table.dataTable {
    border-color: #6c757d;
}
.dark-mode table.dataTable thead th {
    border-bottom-color: #6c757d !important;
}
.dark-mode table.dataTable tbody td {
    border-bottom-color: #6c757d;
}
/*=============================================
=            5. LAYOUT & SECTIONS             =
=============================================*/

/*----------  Navbar  ----------*/
.navbar-dark .navbar-nav .nav-link:focus,
.navbar-dark .navbar-nav .nav-link:hover {
    color: #fff !important;
}

.navbar-nav .nav-link,
.dark-mode .navbar-nav .nav-link {
    color: rgba(255, 255, 255, .75);
}

.navbar-white a:not(.btn):hover {
    color: #212529;
}

/*----------  Sidebar / Menu  ----------*/

[class*="sidebar-dark-"] {
    background-color: #343a40;
}

[class*="sidebar-dark-"] .nav-treeview>.nav-item>.nav-link {
    color: #fff;
}

[class*="sidebar-dark-"] .sidebar a {
    color: #fff;
}

[class*="sidebar-dark"] .brand-link {
    border-bottom: none;
    justify-self: center;
}

.configuracion {
    align-items: center;
    display: flex;
    justify-content: center;
}

.dark-mode .brand-link .brand-text {
    background-color: #343a40;
    color: rgba(255, 255, 255, .75);
}

.dark-mode .brand-link span:hover {
    color: #fff;
}

.dark-mode .nav-pills .nav-link {
    color: #fff;
}

.dark-mode .sidebar-dark-primary .nav-sidebar>.nav-item>.nav-link.active,
.sidebar-dark-primary .nav-sidebar>.nav-item>.nav-link.active {
    background-color: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.sidebar-dark-primary .nav-sidebar .nav-treeview {
    background-color: rgba(0, 0, 0, 0.2) !important;
    border-radius: 0.25rem;
}

.sidebar-dark-primary .nav-sidebar .nav-treeview>.nav-item>.nav-link.active {
    background-color: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.sidebar-dark-primary .brand-text .nav-sidebar .nav-item .nav-link {
    color: #fff !important;
}

.nav-sidebar .nav-link {
    position: relative;
    overflow: hidden;
}

.nav-sidebar .nav-link::before {
    background: radial-gradient(circle 80px at var(--x, 50%) var(--y, 50%), rgba(255, 255, 255, 0.1), transparent);
    content: "";
    height: 100%;
    left: 0;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    top: 0;
    transition: opacity 0.3s;
    width: 100%;
    z-index: 0;
}

.nav-sidebar .nav-link:hover::before {
    opacity: 1;
}

.nav-sidebar .nav-link::after {
    content: '';
    position: absolute;
    left: 0; top: 0; width: 100%; height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: inherit;
    pointer-events: none;
    -webkit-mask-image: radial-gradient(circle 60px at var(--x, 50%) var(--y, 50%), black 45%, transparent);
    mask-image: radial-gradient(circle 60px at var(--x, 50%) var(--y, 50%), black 45%, transparent);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 1;
}

.nav-sidebar .nav-link:hover::after {
    opacity: 1;
}

.nav-sidebar .nav-link p,
.nav-sidebar .nav-link i {
    z-index: 2;
}

/*----------  Login Page  ----------*/

.login-page {
    align-items: center;
    display: flex;
    font-family: 'Poppins';
    background-color: transparent !important;
}

.login-page::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(255, 255, 255, 0.6);
    background-image: url('../../img/login/fondo-login.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(5px);
    z-index: -1;
    height: 100vh;
    transform: scale(1.1);
}

.login-box {
    width: 380px;
}

.login-page .alert {
    border-radius: 5px;
}

.login-page .btn-primary {
    background-color: #007bff;
    border-color: #007bff;
    border-radius: 5px;
    font-weight: bold;
    padding: 0.6rem;
    transition: all 0.3s ease;
}

.login-page .btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.3);
    transform: translateY(-2px);
}

.login-page .card {
    background: rgba(255, 255, 255, 0.98);
    border: none;
    border-radius: 0.25rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.login-page .card-header {
    padding: 1.25rem;
    text-align: center;
}

.login-page .card-header img {
    width: 70% !important;
}

.login-page .card-outline {
    border-top: none;
}

.login-page .input-group .btn {
    border-color: #ced4da;
    border-left: 0;
}

.login-page .input-group .btn:hover {
    background-color: #e9ecef;
}

.login-page .input-group .form-control {
    border-radius: 0.25rem 0 0 0.25rem;
    border-right: 0;
}

.login-page .input-group .input-group-text {
    background-color: #fff;
    border-left: 0;
}

.login-page .login-box-msg {
    color: #333;
    font-size: 1.1rem;
    font-weight: 500;
}

/*----------  Config Page  ----------*/

.config-box {
    border-radius: 0.25rem;
    display: flex;
    margin-bottom: 1rem;
    min-height: 80px;
    padding: .5rem;
    position: relative;
    width: 100%;
}

.config-box,
.config-box * {
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-user-drag: none;
    -webkit-user-select: none;
    user-select: none;
}

.config-box:hover {
    border-color: transparent;
    transform: scale(1.02);
    transition: all 0.4s linear 0s;
    color: #343a40;
}

.config-box::before {
    background: radial-gradient(circle 200px at var(--x, 50%) var(--y, 50%), rgba(0, 0, 0, 0.1), transparent);
    content: "";
    height: 100%;
    left: 0;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    top: 0;
    transition: opacity 0.3s;
    width: 100%;
    z-index: 1;
}

.config-box:hover::before {
    opacity: 1;
}

.config-box::after {
    content: '';
    position: absolute;
    left: 0; top: 0; width: 100%; height: 100%;
    border: 1px solid rgb(32, 32, 32);
    border-radius: inherit;
    pointer-events: none;
    -webkit-mask-image: radial-gradient(circle 100px at var(--x, 50%) var(--y, 50%), black 45%, transparent);
    mask-image: radial-gradient(circle 100px at var(--x, 50%) var(--y, 50%), black 45%, transparent);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 3;
}

.config-box:hover::after {
    opacity: 1;
}

.dark-mode .config-box:hover {
    color: #343a40;
    border-color: transparent;
}

.dark-mode .config-box {
    color: rgba(255, 255, 255, .75);
}

.dark-mode .config-box::before {
    background: radial-gradient(circle 200px at var(--x, 50%) var(--y, 50%), rgba(255, 255, 255, 0.15), transparent);
}

.dark-mode .config-box::after {
    border-color: rgb(255, 255, 255);
}

.config-box .config-box-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: center;
    line-height: 1.8;
    overflow: hidden;
    padding: 0 10px;
    position: relative;
    z-index: 2;
}

.config-box .config-box-icon {
    align-items: center;
    border-radius: .25rem;
    display: flex;
    font-size: 2.875rem;
    justify-content: center;
    text-align: center;
    width: 70px;
    position: relative;
    z-index: 2;
}

.config-box .config-box-text,
.config-box .progress-description {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/*----------  DataTables  ----------*/

div.dt-processing {
    top: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    z-index: 100 !important;
}

div.dt-container div.dt-length select {
    margin-right: 0em !important;
}

.dark-mode table.dataTable.dtr-inline.collapsed>tbody>tr.dtr-expanded>td.dtr-control:before,
.dark-mode table.dataTable.dtr-inline.collapsed>tbody>tr.dtr-expanded>th.dtr-control:before {
    background: #f9fafb !important;
    color: red !important;
}

.dark-mode table.dataTable.dtr-inline.collapsed>tbody>tr>td.dtr-control::before {
    background: #f9fafb !important;
    color: gray !important;
}

table.dataTable.dtr-inline.collapsed>tbody>tr.dtr-expanded>td.dtr-control:before,
table.dataTable.dtr-inline.collapsed>tbody>tr.dtr-expanded>th.dtr-control:before {
    background: gray !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    color: red !important;
    content: "\f078";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    transform: rotate(0deg);
}

table.dataTable.dtr-inline.collapsed>tbody>tr>td.dtr-control::before {
    background: gray !important;
    background-image: none !important;
    border: none !important;
    border-radius: 50%;
    box-shadow: none;
    color: #f9fafb !important;
    content: "\f054";
    font-family: "Font Awesome 5 Free";
    font-size: 20px;
    font-weight: 900;
    height: 30px;
    margin: 0 0 1em 0!important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 30px;
}

table.dataTable.dtr-inline.collapsed>tbody>tr>td.dtr-control::before,
table.dataTable.dtr-inline.collapsed>tbody>tr>th.dtr-control::before {
    background-image: none !important;
    border: none !important;
    box-shadow: none !important;
}


/*----------  Collage Editor  ----------*/

#collageArea,
#editarCollageArea {
    background-color: #fff;
    border: 1px solid #ced4da;
    height: 400px;
    margin-bottom: 20px;
    overflow: visible;
    position: relative;
    width: 100%;
    border-radius: 0.25rem;
}

.dark-mode #collageArea,
.dark-mode #editarCollageArea {
    background-color: #343a40 !important;
    border: 1px solid #6c757d !important;
}

.collage-controls {
    display: flex;
    justify-content: space-between;
}

.collage-img {
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    pointer-events: none;
    user-select: none;
}

.collage-toolbar {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-bottom: 15px;
}

.align-btn,
#applySizeBtn {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    cursor: pointer;
    padding: 5px 8px;
    transition: all 0.2s;
    width: auto;
}

.align-btn:hover,
#applySizeBtn:hover {
    background: #e9ecef;
}

.align-btn i,
#applySizeBtn i {
    font-size: 18px;
    vertical-align: middle;
}

.delete-btn {
    align-items: center;
    background-color: #ff4444;
    border: 2px solid white;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    color: white;
    cursor: pointer;
    display: flex;
    font-size: 16px;
    height: 28px;
    justify-content: center;
    position: absolute;
    right: -12px;
    top: -12px;
    transition: all 0.2s ease;
    width: 28px;
    z-index: 10;
}

.delete-btn:hover {
    background-color: #cc0000;
    transform: scale(1.1);
}

.dragging {
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    opacity: 0.8;
    transform: scale(1.02);
}

.guia-horizontal,
.guia-vertical {
    display: none;
    position: absolute;
    z-index: 5;
}

.guia-horizontal {
    height: 1px;
    left: 0;
    width: 100%;
}

.guia-vertical {
    height: 100%;
    top: 0;
    width: 1px;
}

.hotspot {
    border-radius: 50%;
    pointer-events: none;
    position: absolute;
}

.img-container {
    border: none;
    box-sizing: border-box;
    cursor: move;
    display: inline-block;
    overflow: visible;
    position: absolute;
    transition: z-index 0.2s ease;
    z-index: 1;
    border-radius: 0.25rem;
}

.img-container:hover {
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}

.img-container.selected {
    z-index: 10;
}

.img-container img {
    height: 100%;
    object-fit: contain;
    width: 100%;
}

.img-wrapper {
    display: inline-block;
    position: relative;
}

#imageSizeCm {
    border: 1px solid #ced4da;
    border-radius: 4px;
    color: #000;
    padding: 5px;
    width: 60px;
}

.resize-handle {
    background-color: #4285f4;
    border: 2px solid white;
    border-radius: 50%;
    bottom: 0px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    cursor: nwse-resize;
    height: 12px;
    position: absolute;
    right: 0px;
    width: 12px;
}

.resize-handle:hover {
    background-color: #3367d6;
    transform: scale(1.2);
}

.toolbar-group {
    align-items: center;
    border-radius: 5px;
    display: flex;
    gap: 5px;
    justify-content: center;
    text-align: center;
}

.toolbar-group label {
    font-weight: 500;
    margin-bottom: 0;
    white-space: nowrap;
}

/*----------  Binnacle  ----------*/
.td>img {
    width: 50px;
}

/*----------  Audit  ----------*/
.description-wrapper .btn-ver-mas {
    font-size: 0.85rem;
    padding: 0;
    vertical-align: baseline;
}

.description-wrapper .truncated-text {
    max-height: 4.5em;
    overflow: hidden;
    position: relative;
    transition: max-height 0.3s ease-out;
}

.description-wrapper .truncated-text.expanded {
    max-height: 1000px;
    transition: max-height 0.5s ease-in;
}

/*----------  Staff  ----------*/

.info-staff {
    display: flex;
    flex-direction: row-reverse;
    text-align: center;
}

.info-staff input {
    text-align: center;
}

/*=============================================
=            6. ANIMATIONS                    =
=============================================*/

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.7);
        transform: translate(-50%, -50%) scale(0.95);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 0, 0, 0);
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 0, 0, 0);
        transform: translate(-50%, -50%) scale(0.95);
    }
}

/*=============================================
=            7. MEDIA QUERIES                 =
=============================================*/

@media screen and (max-width: 767px) {
    div.custom-buttons-container {
        float: none !important;
        margin-bottom: .5em;
        text-align: center;
        width: 100%;
    }
}

@media screen and (max-width: 576px) {
    div.dt-container div.dt-layout-table>div {
        -webkit-overflow-scrolling: touch;
        overflow-x: auto;
    }
}

@media screen and (max-width: 554px) {
    .configuracion {
        font-size: 25px;
        margin: 0px 50px;
    }
}

@media screen and (max-width: 720px) {

    .ExporPDF {
        display: none;
    }

    .btn-attendance {
        display: none;
    }

    /* Forzar que las columnas ocupen todo el ancho en móviles */
    table.dataTable {
        width: auto
    }
    table.dataTable th, table.dataTable td {
        width: 100% !important;
    }

    .bienvenida {
       display: none;
    }

    .subTexto {
        font-size: 2.5rem;
    }

    svg {
        width: 15px;
    }
}