body {
    background-color: #e6e5e5;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

/* --- 1. Fuerza 100 % de ancho --- */
#EditSelectCainiao,
#EditSelectCainiao+.select2-container {
    width: 100% !important;
    /* nunca se pasa de la col */
}

/* --- 2. “Caja” principal (lo que ves cerrado) --- */
#EditSelectCainiao+.select2-container .select2-selection--single {
    height: 38px;
    /* alto estándar Bootstrap */
    padding: 0.375rem 0.75rem;
    display: flex;
    align-items: center;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    background: #fff;
    transition: box-shadow .15s ease-in-out;
}

/* texto dentro del select */
#EditSelectCainiao+.select2-container .select2-selection__rendered {
    color: #495057;
    line-height: 24px;
    /* centra verticalmente */
    padding-right: 20px;
    /* separa del icono flecha */
}

/* flechita */
#EditSelectCainiao+.select2-container .select2-selection__arrow {
    height: 38px;
    right: 10px;
    width: 20px;
}

/* foco como cualquier input de Bootstrap */
#EditSelectCainiao+.select2-container .select2-selection--single.select2-selection--focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 .25rem rgba(13, 110, 253, .25);
}

/* --- 3. Dropdown: mismo ancho y buscador bonito --- */
.select2-container .select2-dropdown {
    min-width: 100% !important;
    /* no se desborda */
    border-color: #ced4da;
}

.select2-container .select2-search--dropdown .select2-search__field {
    padding: 0.375rem 0.75rem;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
}

/* remueve borde feo cuando el search tiene el foco */
.select2-container .select2-search--dropdown .select2-search__field:focus {
    outline: none;
    box-shadow: 0 0 0 .25rem rgba(13, 110, 253, .25);
}


.card {
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: none;
}

.relevant {
    text-transform: uppercase;
    background-color: #f5f5f5 !important;
    width: 100% !important;
    height: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    -webkit-box-shadow: -1px 10px 6px -10px rgba(183, 183, 183, 0.32);
    -moz-box-shadow: -1px 10px 16px -10px rgba(0, 0, 0, 0.32);
    box-shadow: -1px 10px 16px -10px rgba(0, 0, 0, 0.32);
    border: none;
}

.relevant a {
    color: rgb(0, 0, 0) !important;
}

.relevant a:hover:not(:has(img)) {
    background-color: #c2c2c2a9;
    border-radius: 10px;
    color: rgb(0, 0, 0) !important;
}


.relevant .dropdown-menu a {
    color: #000000 !important;
}

.relevant .dropdown-menu a:hover {
    color: rgb(0, 0, 0) !important;
}

.relevant .dropdown-menu img {
    color: #ffffff !important;
}

.navbar {
    font-size: 12px !important;
}

.dropdown-menu-custom {
    background-color: #f8f9fa;
    width: 600px;
}

.dropdown-menu-custom .row {
    margin: 2px;
}

.dropdown-menu-custom .nav-link {
    padding: 4px 10px;
}

.dropdown-menu-custom .dropdown-divider {
    margin: 0;
}

.relevant .dropdown-menu a {
    color: #000000 !important;
}

.relevant .dropdown-menu a:hover {
    color: rgb(0, 0, 0) !important;
}

.relevant .dropdown-menu img {
    color: #ffffff !important;
}

.nav-link {
    font-size: 12px;
}

.dropdown-toggle {
    min-height: 40px;
}

.filter-option {
    min-height: 100px;
}

.modal-header {
    background-color: #ffffff;
    color: #000000;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.dropdown-menu-custom {
    background-color: #f8f9fa;
    width: 600px;
}

.dropdown-menu-custom .row {
    margin: 0;
}

.dropdown-menu-custom .nav-link {
    padding: 8px 20px;
}

.dropdown-menu-custom .dropdown-divider {
    margin: 0;
}

/* Loader styles */
.loader {
    position: fixed;
    left: 50%;
    top: 50%;
    width: 100px;
    height: 100px;
    margin: -40px 0 0 -40px;
    /* Adjusted margin to center */
    border: 15px solid #ffffff;
    border-radius: 50%;
    border-top: 15px solid #39a0e9;
    animation: spin 2s linear infinite;
    z-index: 10001;
    /* Higher z-index to ensure it's on top of the overlay */
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Overlay styles */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.96);
    /* Gray background with opacity */
    z-index: 10000;
    /* Lower z-index than the loader but higher than other content */
    display: none;
    /* Initially hidden */
}

/* Disable pointer events on the overlay */
.overlay.show {
    display: block;
    pointer-events: all;
    /* Prevent interaction with underlying elements */
}

.btn-close-white {
    filter: invert(1);
    background-color: transparent;
    border: none;
}

.dropdown-item {
    font-size: 13px;
}

.btn-primary {
    background-color: rgb(10, 88, 202) !important;
    color: white;
    border: rgb(4, 126, 225) !important;
    border-radius: 5px;
    outline: none;
}

.btn-primary:focus {
    box-shadow: 0 0 8px 4px rgb(20, 95, 204);
    /* Resplandor personalizado al hacer clic */
}

.form-control {
    border: 1px solid #ccc;
    padding: 10px;
    border-radius: 5px;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
    outline: none;
    /* Elimina el borde azul predeterminado */
}


.form-control:focus {
    border-color: #047EE1FF;
    /* Cambia el color del borde */
    box-shadow: 0 0 10px rgba(4, 159, 255, 0.7);
    /* Resplandor naranja */
}

#show_password {
    padding: 12px;
}

.btn-primary:hover {
    box-shadow: 0 0 2px 2px rgb(21, 94, 199);
    /* Resplandor en hover */
}

.btn-primary:active {
    background-color: #047EE1FF;
    /* Color al hacer clic y mantener presionado */
}

.tooltip {
    font-size: 18px;
}

/* Ocultar la flecha del tooltip */
.tooltip .tooltip-arrow,
.tooltip .arrow,
.bs-tooltip-top .tooltip-arrow,
.bs-tooltip-bottom .tooltip-arrow,
.bs-tooltip-left .tooltip-arrow,
.bs-tooltip-right .tooltip-arrow,
.bs-tooltip-auto[data-popper-placement^="top"] .tooltip-arrow,
.bs-tooltip-auto[data-popper-placement^="bottom"] .tooltip-arrow,
.bs-tooltip-auto[data-popper-placement^="left"] .tooltip-arrow,
.bs-tooltip-auto[data-popper-placement^="right"] .tooltip-arrow {
    display: none !important;
}

/* También ocultar usando pseudo-elementos */
.tooltip::before,
.tooltip::after {
    display: none !important;
}

#messageContainer {
    position: fixed !important;
    top: 25px !important;
    /* Distancia desde la parte superior */
    right: 25px !important;
    /* Distancia desde la parte derecha */
    z-index: 10005 !important;
    /* Siempre encima de otros elementos */
    display: flex !important;
    flex-direction: column-reverse !important;
    /* Los mensajes nuevos aparecen encima */
    gap: 10px !important;
    /* Espaciado entre mensajes */
}

.message {
    padding: 15px 20px !important;
    border-radius: 5px !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2) !important;
    transition: opacity 0.5s ease-in-out !important;
    opacity: 1 !important;
    /* Por defecto, visible */
    display: block !important;
}

.message.success {
    background-color: #36563e !important;
    color: #ffffff !important;
}

.message.error {
    background-color: #f8d7da !important;
    color: #721c24 !important;
}

#espaciospro {
    margin: 10px 0 10px 0;
    padding: 10px 0 10px 0;
    border-bottom: 5px dashed #555;
}

.bootstrap-select .dropdown-toggle {
    padding: 10px !important;
    border: .5px solid rgba(183, 180, 180, 0.92);
    border-radius: 5px;
}

.bootstrap-select .dropdown-menu.inner {
    width: 100% !important;
    max-height: 250px !important;
}

.card {
    overflow: visible !important;
}

.mfile_modal-content {
    border-radius: 1rem;
    background-color: #f8f9fa;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.mfile_modal-header {
    background-color: #343a40;
    color: #fff;
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
    padding: 1rem 1.5rem;
}

.mfile_modal-body {
    padding: 1.5rem;
}

.mfile_summary-cards {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.mfile_card {
    background-color: #e9ecef;
    border-radius: 0.75rem;
    text-align: center;
    padding: 1rem;
    flex: 1;
    margin: 0 0.5rem;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.mfile_card:hover {
    background-color: #dee2e6;
    transform: translateY(-2px);
}

.mfile_card h6 {
    font-size: 0.9rem;
    color: #6c757d;
}

.mfile_card p {
    font-size: 1.2rem;
    font-weight: bold;
    margin: 0;
    color: #343a40;
}

.mfile_dropzone {
    border: 3px dashed #6c757d;
    border-radius: 1rem;
    background-color: #f8f9fa;
    padding: 4rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 1rem;
    position: relative;
}

.mfile_dropzone:hover {
    background-color: #e2e6ea;
    border-color: #495057;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.mfile_dropzone.dragover {
    background-color: #d4eafd;
    border-color: #6fb1fc;
    color: #6fb1fc;
    padding: 4rem 2.5rem;
    box-shadow: 0 0 15px rgba(111, 177, 252, 0.5);
}

.mfile_label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.mfile_icon {
    font-size: 3rem;
    color: #6c757d;
    margin-bottom: 0.5rem;
    transition: transform 0.3s ease;
}

.mfile_dropzone.dragover .mfile_icon {
    transform: scale(1.2);
    color: #4a90e2;
}

.mfile_text {
    font-weight: 600;
    color: #495057;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.mfile_input {
    display: none;
}

.mfile_filename {
    font-size: 0.9rem;
    color: #6c757d;
    margin-top: 0.5rem;
}

.mfile_hint {
    font-size: 0.85rem;
    color: #6c757d;
    margin-top: 0.5rem;
}

.mfile_modal-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
}

.mfile_selected-file {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #f8f9fa;
    border: 1px solid #6c757d;
    border-radius: 0.5rem;
    padding: 0.5rem 1rem;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #495057;
}

.mfile_remove-btn {
    background: transparent;
    border: none;
    color: #dc3545;
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.2s ease;
}

.mfile_remove-btn:hover {
    color: #a71d2a;
}

.dropdown-menu {
    box-shadow: 0px 20px 60px rgba(0, 0, 0, 0.7);
}

.custom-modal-content {
    border-radius: 12px;
    overflow: hidden;
    background-color: #f9f9f9;
}

.custom-modal-header {
    background-color: #222;
    color: #fff;
    border-bottom: none;
}

.custom-dropzone {
    border: 2px dashed #444;
    border-radius: 12px;
    background-color: #fff;
    transition: background-color 0.3s ease;
    cursor: pointer;
    position: relative;
}

.custom-dropzone.dragover {
    background-color: #f0f0f0;
    border-color: #000;
}

.retained-status-list-container {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.6rem;
    padding: 0.3rem 0;
    max-width: 100%;
    max-height: 150px;
    overflow-y: auto;
    overflow-x: auto;
    background: #fff;
    margin-bottom: 10px;
}

.status-card {
    background: #fff;
    border: 1.7px solid #232323;
    border-radius: 1rem;
    box-shadow: 0 2px 8px rgba(40, 40, 40, 0.07);
    padding: 0.8rem 1rem;
    cursor: pointer;
    transition: box-shadow 0.22s, border 0.22s, background 0.18s, color 0.18s;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    color: #232323;
    width: auto;
    min-width: 160px;
    max-width: 350px;
    flex-shrink: 0;
    font-size: 0.75rem;
    white-space: normal;
    word-wrap: break-word;
}

.status-card:hover:not(.selected) {
    border-color: #000;
    box-shadow: 0 4px 18px rgba(30, 30, 30, 0.10);
    background: #fafafa;
}

.status-card.selected {
    border-color: #000;
    background: #181818;
    color: #fff !important;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
}

.status-card.selected * {
    color: #fff !important;
}

.status-code {
    font-size: 0.85rem;
    font-weight: 700;
    color: #191919;
    background: #f1f1f1;
    border-radius: 0.5rem;
    padding: 0.18rem 0.65rem;
    margin-bottom: 0.29rem;
    letter-spacing: 0.03em;
    box-shadow: 0 1px 3px rgba(30, 30, 30, 0.06);
    transition: background 0.18s, color 0.18s;
}

.status-card.selected .status-code {
    background: #232323;
    color: #fff !important;
}

.status-desc {
    font-size: 0.75rem;
    color: #323232;
    line-height: 1.32;
    padding-left: 0.1rem;
    word-break: break-word;
    transition: color 0.18s;
}

.status-card.selected .status-desc {
    color: #fff !important;
}


.language-select-wrapper {
    background: linear-gradient(90deg, #e3e6f3 0%, #d9e7fa 100%);
    box-shadow: 0 2px 8px rgba(60, 40, 90, 0.10);
    display: flex;
    align-items: center;
    border-radius: 2rem;
}

.language-select-custom {
    background: transparent;
    border: none;
    box-shadow: none;
    font-weight: 500;
    color: #2c1936;
    min-width: 130px;
    outline: none;
}

.language-select-custom:focus {
    box-shadow: none;
    border: none;
}

.bi-translate {
    color: #5b1c8a;
    font-size: 1.3rem;
}


#retainedBizKeyTable_wrapper {
    width: 100% !important;
    overflow-x: auto;
}

#retainedBizKeyTable {
    width: 100% !important;
    table-layout: fixed;
}

.modal-content {
    width: 100% !important;
    max-width: 100% !important;
}

/* Modal específico para Historial Cainiao - Ancho extra para que quepan mejor los títulos */
#modalHistorialCainiaoNuevo .modal-dialog {
    max-width: 95vw !important;
    width: 95vw !important;
}

#modalHistorialCainiaoNuevo .modal-content {
    width: 100% !important;
    max-width: none !important;
}

#modalHistorialCainiaoNuevo .table-responsive {
    overflow-x: auto;
}

#modalHistorialCainiaoNuevo .table th {
    white-space: nowrap;
    min-width: 120px;
}

.status-disabled {
    opacity: 0.5;
    pointer-events: none;
}

.status-legend {
    font-size: 0.75rem;
    color: #222222;
    margin-top: 4px;
}

.disabled-state {
    opacity: 0.5;
    cursor: not-allowed !important;
    pointer-events: none;
    user-select: none;
    color: white !important;
    background-color: #999999;
}

/* ———————————————————————————————————————————————————————————————
   OVERALL OVERRIDES: Make both Select2 and Bootstrap-Select search
   inputs exactly match your form-control style (height, padding, border, etc.)
   ——————————————————————————————————————————————————————————————— */

/* 1) Caja de selección “cerrada” de Select2 */
.select2-container .select2-selection--single {
  height: calc(2.25rem + 2px) !important;
  padding: 0.375rem 0.75rem !important;
  border: 1px solid #ced4da !important;
  border-radius: 0.25rem !important;
  background-color: #fff !important;
  box-sizing: border-box !important;
  display: flex !important;
  align-items: center !important;
}

/* 2) Input de búsqueda dentro del dropdown abierto de Select2 */
.select2-container--open .select2-search--dropdown .select2-search__field {
  margin: 0 !important;
  width: 100% !important;
  height: calc(2.25rem + 2px) !important;
  padding: 0.375rem 0.75rem !important;
  font-size: 0.875rem !important;
  line-height: 1.5 !important;
  color: #495057 !important;
  background-color: #fff !important;
  border: 1px solid #ced4da !important;
  border-radius: 0.25rem !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
}

/* 3) Efecto de foco idéntico al de tus demás inputs */
.select2-container--open .select2-search--dropdown .select2-search__field:focus {
  border-color: #047EE1 !important;
  box-shadow: 0 0 10px rgba(4, 159, 255, 0.7) !important;
  outline: none !important;
}

/* 4) Input de búsqueda dentro del dropdown de Bootstrap-Select (bs-searchbox) */
.bootstrap-select .bs-searchbox .form-control {
  height: calc(2.25rem + 2px) !important;
  padding: 0.375rem 0.75rem !important;
  border: 1px solid #ced4da !important;
  border-radius: 0.25rem !important;
  background-color: #fff !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
  margin-bottom: 0 !important;
}

/* 5) Foco en el input de bs-searchbox */
.bootstrap-select .bs-searchbox .form-control:focus {
  border-color: #047EE1 !important;
  box-shadow: 0 0 10px rgba(4, 159, 255, 0.7) !important;
  outline: none !important;
}


/* ———————————————————————————————————————————————————————————————
   OVERALL OVERRIDES: Make both Select2 and Bootstrap-Select search
   inputs exactly match your form-control style (height, padding, border, etc.)
   ——————————————————————————————————————————————————————————————— */

/* 1) Caja de selección “cerrada” de Select2 */
.select2-container .select2-selection--single {
  height: calc(2.25rem + 2px) !important;
  padding: 0.375rem 0.75rem !important;
  border: 1px solid #ced4da !important;
  border-radius: 0.25rem !important;
  background-color: #fff !important;
  box-sizing: border-box !important;
  display: flex !important;
  align-items: center !important;
}

/* 2) Input de búsqueda dentro del dropdown abierto de Select2 */
.select2-container--open .select2-search--dropdown .select2-search__field {
  margin: 0 !important;
  width: 100% !important;
  height: calc(2.25rem + 2px) !important;
  padding: 0.375rem 0.75rem !important;
  font-size: 0.875rem !important;
  line-height: 1.5 !important;
  color: #495057 !important;
  background-color: #fff !important;
  border: 1px solid #ced4da !important;
  border-radius: 0.25rem !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
}

/* 3) Efecto de foco idéntico al de tus demás inputs */
.select2-container--open .select2-search--dropdown .select2-search__field:focus {
  border-color: #047EE1 !important;
  box-shadow: 0 0 10px rgba(4, 159, 255, 0.7) !important;
  outline: none !important;
}

/* 4) Input de búsqueda dentro del dropdown de Bootstrap-Select (bs-searchbox) */
.bootstrap-select .bs-searchbox .form-control {
  height: calc(2.25rem + 2px) !important;
  padding: 0.375rem 0.75rem !important;
  border: 1px solid #ced4da !important;
  border-radius: 0.25rem !important;
  background-color: #fff !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
  margin-bottom: 0 !important;
}

/* 5) Foco en el input de bs-searchbox */
.bootstrap-select .bs-searchbox .form-control:focus {
  border-color: #047EE1 !important;
  box-shadow: 0 0 10px rgba(4, 159, 255, 0.7) !important;
  outline: none !important;
}



.main-cainiao {
    background-color: #ffffff;
    padding: 1rem;
    border-radius: 0.75rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.cainiao-currentplaying {
    margin-bottom: 1rem;
}

.cainiao-heading {
    font-weight: bold;
    font-size: 1.25rem;
    color: #333;
}

.cainiao-loader {
    margin-bottom: 1rem;
}

.cainiao-song {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.label {
    font-weight: 500;
    color: #555;
}

.value {
    font-weight: bold;
    color: #000;
}

#top-days-cards .card,
#bottom-days-cards .card {
    border-width: 2px;
    border-radius: 0.75rem;
}

#top-days-cards .card.border-success {
    background-color: #e9f7ef;
    color: #155724;
}

#bottom-days-cards .card.border-danger {
    background-color: #f8d7da;
    color: #721c24;
}

.card .bi {
    margin-bottom: 0.25rem;
}


.scrollable-card-list {
    max-height: 320px;
    overflow-y: auto;
    padding-right: 8px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.scrollable-card-list::-webkit-scrollbar {
    width: 6px;
}

.scrollable-card-list::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}


.scrollable-dual-card-list {
    display: flex;
    gap: 12px;
    max-height: 360px;
    overflow-y: auto;
    padding-right: 6px;
}

.stat-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stat-section-label {
    font-weight: bold;
    font-size: 0.9rem;
    background-color: #eaeaea;
    padding: 6px 10px;
    border-left: 4px solid #047EE1;
    border-radius: 4px;
    color: #2c1936;
}

.stat-card-small {
    border-radius: 0.75rem;
    background-color: #ffffff;
    border: 1px solid #ccc;
    padding: 10px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.stat-card-title {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 3px;
}

.stat-card-count {
    font-size: 0.85rem;
    color: #666;
}

.stat-icon-box {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon-box.success {
    background-color: #198754;
}

.stat-icon-box.danger {
    background-color: #dc3545;
}

.stat-icon-box i {
    color: white;
    font-size: 1.2rem;
}

.scrollable-dual-card-list {
    display: flex;
    gap: 12px;
    overflow-y: auto;
    padding-right: 6px;
}

.compact-height {
    max-height: 300px;
}

.stat-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stat-card-compact {
    background-color: white;
    border: 1px solid #dcdcdc;
    border-radius: 12px;
    padding: 8px 10px;
    min-height: 80px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.stat-card-compact .stat-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.stat-card-compact .stat-type {
    font-size: 0.7rem;
    font-weight: 600;
    color: #444;
}

.stat-card-compact .stat-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.75rem;
    color: #fff;
}

.stat-card-compact.success .stat-icon {
    background-color: #198754;
}

.stat-card-compact.danger .stat-icon {
    background-color: #dc3545;
}

.stat-card-compact .stat-card-body {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.stat-card-compact .stat-title {
    font-weight: 600;
    font-size: 0.9rem;
    color: #2c2c2c;
}

.stat-card-compact .stat-count {
    font-size: 0.75rem;
    color: #555;
}

.new-placeholder-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 1rem;
    height: 300px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cainiao-page-title {
    background-color: #fff;
    border-radius: 10px 5px 10px 5px;
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c1936;
    border-left: 6px solid rgb(0, 0, 0);
    padding: 16px;
    text-align: left;
    text-transform: uppercase;
}

.cainiao-page-title2 {
    background-color: #e9e9e9;
    border-radius: 10px 5px 10px 5px;
    font-weight: 700;
    font-size: 1.2rem;
    color: #2c1936;
    border-left: 6px solid rgb(0, 0, 0);
    padding: 16px;
    text-align: center;
}



.status-indicator {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.stat-summary {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.stat-box {
    flex: 1;
    border-radius: 10px;
    padding: 10px;
    text-align: center;
    background: #f8f9fa;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.stat-box .label {
    font-size: 0.85rem;
    color: #6c757d;
}

.stat-box .value {
    font-size: 1.3rem;
    font-weight: bold;
    color: #343a40;
}

.dot-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.bg-orange {
    background-color: orange;
}


.semaforo-box-lg {
    width: 35px;
    height: 35px;
    border-radius: 6px;
    opacity: 0.3;
    transition: 0.3s ease;
}

.semaforo-box-lg.red {
    background-color: #dc3545;
    opacity: 1;
}

.semaforo-box-lg.orange {
    background-color: orange;
    opacity: 1;
}

.semaforo-box-lg.yellow {
    background-color: #ffc107;
    opacity: 1;
}

.semaforo-box-lg.green {
    background-color: #198754;
    opacity: 1;
}

.semaforo-box-lg.disabled {
    background-color: #dcdcdc;
}


.chart-wrapper {
    max-height: 320px;
    overflow-y: auto;
}

.chart-container {
    height: 300px;
    min-width: 100%;
}


#comparisonManifestAndMTable th {
  white-space: normal !important;
  word-break: break-word;
}

#comparisonInfoCard > .card {
  width: 100%;
}


.mfile_dropzone.dragover {
  background-color: #d4eafd;
  border-color: #6fb1fc;
  color: #6fb1fc;
  padding: 4rem 2.5rem;
  box-shadow: 0 0 15px rgba(111, 177, 252, 0.5);
}

.mfile_dropzone.dragover {
  background-color: #d4eafd;
  border-color: #6fb1fc;
  color: #6fb1fc;
  padding: 4rem 2.5rem;
  box-shadow: 0 0 15px rgba(111, 177, 252, 0.5);
}

.mfile_dropzone.dragover .mfile_icon {
  transform: scale(1.2);
  color: #4a90e2;
}


.mfsql_file-list {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 0.5rem 0;
  margin-top: 1rem;
}

.mfsql_file-item {
  min-width: 100px;
  max-width: 120px;
  background-color: #f1f3f5;
  border: 1px solid #ced4da;
  border-radius: 0.75rem;
  text-align: center;
  padding: 0.75rem 0.5rem;
  position: relative;
  flex-shrink: 0;
  transition: all 0.2s ease-in-out;
}

.mfsql_file-item:hover {
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.mfsql_file-icon {
  font-size: 2rem;
  color: #0d6efd;
}

.mfsql_file-name {
  font-size: 0.75rem;
  margin-top: 0.5rem;
  word-break: break-word;
}

.mfsql_file-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  background: transparent;
  border: none;
  font-size: 1rem;
  color: #dc3545;
  cursor: pointer;
}

.mfsql_file-remove:hover {
  color: #a71d2a;
}


.mfsql_file-list {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 1rem 1rem 1rem 2rem; /* margen izquierdo extra */
  margin-top: 1rem;
}

.mfsql_file-item {
  min-width: 100px;
  max-width: 120px;
  background-color: #f1f3f5;
  border: 1px solid #ced4da;
  border-radius: 0.75rem;
  text-align: center;
  padding: 0.75rem 0.5rem;
  position: relative;
  flex-shrink: 0;
  transition: all 0.2s ease-in-out;
}

.mfsql_file-item:hover {
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.mfsql_file-icon {
  font-size: 2rem;
  color: #000; 
}

.mfsql_file-name {
  font-size: 0.75rem;
  margin-top: 0.5rem;
  word-break: break-word;
}

.mfsql_file-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  background: transparent;
  border: none;
  font-size: 1rem;
  color: #dc3545;
  cursor: pointer;
}

.mfsql_file-remove:hover {
  color: #a71d2a;
}


.mfsql_file-list {
  min-height: 100px;
  position: relative;
}

.mfile_filename {
  margin: auto;
  text-align: center;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.filem-v2 {
    background-color: #161616 !important;
    color: #ffffff !important;
}

.upper {
    text-transform: uppercase;
}

.NodeTaxTitle{
    background-color: white;
    color:  black;
    padding: 3px 8px;
    border-radius: 4px;
}