.cliente-codes-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.35rem 0.5rem;
}

.cliente-codes-remove {
    background: none;
    border: none;
    color: inherit;
    font-size: 1rem;
    line-height: 1;
    padding: 0;
    margin-left: 0.15rem;
    cursor: pointer;
    opacity: 0.85;
}

.cliente-codes-remove:hover {
    opacity: 1;
}

.containerdd {
/* arreglar background en xq en create .blade se ve blanco el fondo */
background-color: rgb(255, 255, 255);
padding: 2rem;
margin-top: 1rem;
min-height: 500px !important ;
}

.draggable {
/* padding: 1rem; */
background-color: rgb(255, 255, 255);
/* border: 1px solid rgb(176, 176, 176); */
/*cursor: move;*/
}

.draggable.dragging {
opacity: .5;
}

.seleccionado{
background-color: #e6ffe6; /* Verde manzana muy suave */
}
.menuoffon{
margin-left: 0 !important;
}

.max-columna-ref{max-width: 200px;
    text-overflow: ellipsis;
    overflow: hidden;
}

.max-columna-dir{max-width: 350px;
    text-overflow: ellipsis;
    overflow: hidden;
}

.max-columna-id{max-width: 50px;
    text-overflow: ellipsis;
    overflow: hidden;
}
.max-columna-dest{max-width: 200px;
    text-overflow: ellipsis;
    overflow: hidden;
}

.max-columna-estado{max-width: 150px;
}

/* ----  GOOGLE MAPS ---- */
.modalGoogle{
width: 640px;
}

#country-input,#apt{
display: none;
}


.card-container {
display: flex;
height: 570px;
width: 600px;
/* display: none; */
}

.panel {
background: white;
width: 300px;
padding: 10px;
/* display: flex; */
flex-direction: column;
justify-content: space-around;
}

.card-container > .panel > .botones {
    margin-top: 20px;
 }

.half-input-container {
display: flex;
justify-content: space-between;
}

.half-input {
max-width: 120px;
}

.map {
width: 400px;
text-align: center;
}

input:focus::placeholder {
color: white;
}

.pac-container {
    z-index: 1051; /* Valor mayor que el z-index del modal */
    width: 500px !important;
}
/* ------Modalesp---- */

.modal-edicion{
    max-width: 950px !important;
}

.modal-header {
    justify-content: flex-start !important;
}

.modal-header-edit > * {
    margin-right: 10px;
}

.loading{
    width: 30px;
    display: none;
}

/* .table-responsive{
    height: 75hv !important;
} */

#subirParadas{
    text-align: center;
}

.hrs{
    margin-top: 2px;
    margin-bottom: 2px;
}

#botonBuscar{
    margin-left: 5px;
}

#searchColumn{
    margin-left: 5px;
}

.pagination{
    margin: 8px !important;
}

.separador>td {
    background-color: rgb(148, 126, 121);
    padding: 1px;
    margin: 0px; /* Adjust margin as needed */
}

.badge{
    display: block;
}

.logo{
    width: 150px !important;
    padding-top: 10px;
    padding-right: 10px;
}

.logo-cliente{
    width: 150px;
}

.logo-container {
    flex: 0 0 auto; /* Evita que ocupe espacio adicional */
}

.input-group, .form-select {
    flex: 1 1 auto; /* Permite que estos elementos se adapten al espacio disponible */
}

.custom-font-size-7{
    font-size: 10pt;
    color: rgb(113, 113, 113);
}

.enviando.processing {
    pointer-events: none;
    opacity: 0.5;
}

thead th {
    position: sticky ;
    top: 0 ;
    z-index: 10 ;
    background-color: white; /* O el color de fondo de tu elección */
}
thead.sticky-header th {
    background-color: white; /* O el color de fondo de tu elección */
}

/* Ordenamiento client-side en tablas de paquetes (table-column-sort.js) */
th.table-sortable {
    cursor: pointer;
    user-select: none;
}

.table-sorter-label {
    display: inline-block;
    position: relative;
    padding-right: 1.25rem;
}

.table-sorter-label::before,
.table-sorter-label::after {
    content: "";
    height: 0;
    width: 0;
    position: absolute;
    right: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    opacity: 0.25;
}

.table-sorter-label::before {
    border-bottom: 6px solid #4e5263;
    top: calc(50% - 7px);
}

.table-sorter-label::after {
    border-top: 6px solid #4e5263;
    top: calc(50% + 1px);
}

th.table-sort-asc .table-sorter-label::before {
    opacity: 1;
    border-bottom-color: #4caf50;
}

th.table-sort-desc .table-sorter-label::after {
    opacity: 1;
    border-top-color: #4caf50;
}

/* Columna Fecha: reset con dot (verde = default, gris = sort custom) */
th.table-sort-reset {
    cursor: pointer;
    user-select: none;
}

.table-reset-dot {
    font-size: 12px;
    vertical-align: middle;
    color: #7b809a;
}

th.table-sort-reset.is-default-sort .table-reset-dot {
    color: #4caf50;
}

.js-day-separator-row.is-sort-hidden {
    display: none !important;
}

.bg-filtro {
    background-color: #98818a; /* Color personalizado */
}

/* Los inputs de rango de fechas van dentro de .input-group, que anula el
   border-radius. Los redondeamos igual que los botones del filtro (0.375rem). */
.filtro-datepicker {
    border-radius: 0.375rem !important;
}

/* Filtro: reducir 2px de alto (1px por lado) en los boxes/botones y datepickers.
   Los .form-select traen p-1 (4px -> 3px) y el boton Filtrar 0.375rem (6px -> 5px). */
.bg-filtro .filtro-multiselect .form-select,
.bg-filtro .filtro-datepicker {
    padding-top: 2px !important;
    padding-bottom: 2px !important;
}
.bg-filtro form button[type="submit"].btn {
    padding-top: 4px !important;
    padding-bottom: 4px !important;
}

/* Select "fecha_base" (creado/retiro): lo mas bajo posible sin cortar el texto. */
.filtro-fecha-base {
    font-size: 0.7rem;
    padding: 0 1.1rem 0 0.3rem !important;
    height: auto !important;
    min-height: 0 !important;
    line-height: 1.1;
    background-size: 0.6rem !important;
}

/* El thead sticky usa z-index:10 y tapa los desplegables del filtro.
   Elevamos el contenedor del filtro por encima de la cabecera (10) pero por
   debajo del sidenav (z-index:999) para respetar la jerarquia. */
.card-header:has(.filtro-multiselect) {
    z-index: 20 !important;
}
.filtro-multiselect .dropdown-menu {
    z-index: 30;
}

/* material-dashboard dibuja el caret con un glyph de FontAwesome (\f107);
   si la fuente no esta cargada se ve un cuadrado vacio. Lo ocultamos porque
   el boton ya usa su propia flecha. */
.dropdown.filtro-multiselect .dropdown-toggle::after {
    display: none;
}

/* material-dashboard deja los .dropdown-menu cerrados en display:block (solo los
   oculta con opacity/transform). Dentro del collapse "Ver mas filtros" eso hace
   que Bootstrap mida un scrollHeight enorme (suma la altura de cada menu oculto)
   y la animacion "salta": crece de mas y luego se ajusta. Al forzar display:none
   mientras el menu no esta abierto, la medicion del collapse es correcta. */
#filtrosAvanzados .filtro-multiselect .dropdown-menu:not(.show) {
    display: none !important;
}

/* Checkbox del multiselect en verde (confirmacion) al estar marcado.
   El tema pinta el fondo con un linear-gradient rojo (background-image), por eso
   hay que sobrescribir tambien background-image. Le ponemos el tilde blanco. */
.filtro-multiselect .form-check-input:checked,
.filtro-multiselect .form-check-input:checked[type="checkbox"] {
    background-color: #4caf50 !important;
    border-color: #4caf50 !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10l3 3l6-6'/%3e%3c/svg%3e") !important;
}
.filtro-multiselect .form-check-input:focus {
    border-color: #4caf50 !important;
    box-shadow: 0 0 0 0.2rem rgba(76, 175, 80, 0.25) !important;
}

.bg-export {
    background-color: #769975; /* Color personalizado */
}

.bg-gradient-purple {
     background-color: #7220c4;
  }

.badge.bg-gradient-teal {
    background-image: linear-gradient(195deg, #26a69a 0%, #00897b 100%);
    color: #fff;
}

.badge.bg-gradient-cyan {
    background-image: linear-gradient(195deg, #26c6da 0%, #0097a7 100%);
    color: #fff;
}

.badge.bg-gradient-en-camino {
    background-image: linear-gradient(195deg, #4287e2 0%, #4287e2 100%);
    color: #fff;
}

.badge.bg-gradient-brown {
    background-image: linear-gradient(195deg, #c79a6b 0%, #a9744a 100%);
    color: #fff;
}

.rueddo-stepper__dot.rueddo-stepper__dot--en-camino {
    background: #4287e2;
    box-shadow: 0 0 0 1px rgba(66, 135, 226, 0.45);
}

.hidden-row {
    display: none;
}

/* Búsqueda Ctrl+F en tablas (table-live-search.js) */
.table-live-search-bar {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1030;
    display: none;
    align-items: center;
    gap: 0.75rem;
    background: #fff;
    border-bottom: 1px solid #dee2e6;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    padding: 0.5rem 1rem;
    border-radius: 0 0 0.5rem 0.5rem;
}

.table-live-search-bar.is-visible {
    display: flex;
}

.table-live-search-input {
    min-width: 280px;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    padding: 0.375rem 0.75rem;
    font-size: 0.95rem;
}

.table-live-search-input:focus {
    outline: none;
    border-color: #4caf50;
    box-shadow: 0 0 0 0.2rem rgba(76, 175, 80, 0.25);
}

.table-live-search-counter {
    font-size: 0.875rem;
    color: #7b809a;
    white-space: nowrap;
}

.table-live-search-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    color: #7b809a;
    cursor: pointer;
    padding: 0 0.25rem;
}

.table-live-search-close:hover {
    color: #344767;
}

.table-search-mark {
    background-color: #ffeb3b;
    padding: 0;
    color: inherit;
}

.table-search-hidden {
    display: none;
}

#mostrar-sin-georeferencia{
    display: none;
}

.table-wrapper {
    position: relative;
    overflow-x: auto;
}

.fixed-column {
    position: sticky;
    right: 0;
    background-color: white !important;
    z-index: 10;
}
.fixed-column-celda {

    z-index: 11;
}

.fixed-column-row{
    background-color: white !important;
}

.fixed-column .table tbody tr td,
.fixed-column .table thead tr th {
    background-color: white;
}

.direccionii{
    font-family: "Roboto", Helvetica, Arial, sans-serif;
    font-size: 16px;
}

.sub_cliente{
    max-width: 136px;
    text-overflow: ellipsis;
    overflow: hidden;
}
