.imagenppal{
    text-align:center;
}
.ordenamiento{
    cursor:pointer;
}
.ordenamiento th{
    background-image: url(../../image/ordenamiento.png);
    background-position: right;
    background-repeat: no-repeat;
    padding-right:15px;
}
th.headerSortUp{
    background-image: url(../../image/ordenamientoabajo.png);
}
th.headerSortDown{
    background-image: url(../../image/ordenamientoarriba.png);
}
th{
    white-space: nowrap;
}

body:not(.loginPage) {
    min-height: 100vh;
    background:
        radial-gradient(circle at 8% 0%, rgba(200, 16, 46, 0.055), transparent 26%),
        radial-gradient(circle at 92% 6%, rgba(11, 95, 179, 0.06), transparent 28%),
        linear-gradient(180deg, #f7f9fc 0%, #eef2f6 100%);
    background-attachment: fixed;
}

body:not(.loginPage)::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    background-image:
        linear-gradient(rgba(17, 24, 39, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(17, 24, 39, 0.02) 1px, transparent 1px);
    background-size: 32px 32px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.42), transparent 70%);
}

.navbar.bg-light {
    position: relative;
    z-index: 1040;
    background: rgba(255, 255, 255, 0.88) !important;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 8px 26px rgba(15, 23, 42, 0.055);
    backdrop-filter: blur(10px);
}

.navbar.navbar-expand-lg {
    min-height: 62px;
    padding: 9px 0;
}

.navbar .container-fluid {
    align-items: center;
    gap: 14px;
    padding-left: 14px;
    padding-right: 14px;
}

.navbar-brand {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    margin-right: 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.75);
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.06);
}

.navbar-brand .imagen_favicon {
    max-width: 112px;
    height: auto;
    display: block;
}

.navbar-collapse {
    align-items: center;
}

.navbar-nav {
    align-items: center;
    gap: 2px;
}

.navbar-light .navbar-nav .nav-link {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    padding: 8px 10px;
    border-radius: 999px;
    color: #445064;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    transition: color 0.16s ease, background-color 0.16s ease, box-shadow 0.16s ease;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link:focus {
    color: #0b5fb3;
    background: rgba(11, 95, 179, 0.075);
    box-shadow: inset 0 0 0 1px rgba(11, 95, 179, 0.08);
}

.navbar-light .navbar-nav .show > .nav-link,
.navbar-light .navbar-nav .nav-link[aria-expanded="true"] {
    color: #8f1025;
    background: rgba(200, 16, 46, 0.08);
    box-shadow: inset 0 0 0 1px rgba(200, 16, 46, 0.10);
}

.navbar .dropdown-toggle::after {
    margin-left: 6px;
    vertical-align: middle;
    opacity: 0.65;
}

.navbar .dropdown-menu {
    z-index: 1060;
    min-width: 220px;
    margin-top: 8px;
    padding: 8px;
    border: 1px solid rgba(15, 23, 42, 0.10);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.14);
}

.navbar .dropdown-item {
    min-height: 34px;
    display: flex;
    align-items: center;
    padding: 8px 10px;
    border-radius: 7px;
    color: #303b4c;
    font-size: 12px;
    font-weight: 600;
}

.navbar .dropdown-item:hover,
.navbar .dropdown-item:focus {
    color: #0b5fb3;
    background: rgba(11, 95, 179, 0.08);
}

.navbar-toggler {
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 8px;
    padding: 6px 8px;
    background: rgba(255, 255, 255, 0.82);
}

#mensajeAlertaPendiente {
    flex: 0 0 auto;
}

.mobileQuickNav {
    display: none;
}

.mobileQuickMenuPanel {
    display: none;
}

.container:not(.loginShell) {
    padding-bottom: 24px;
}

.card,
.modal-content,
.table,
.accordion-item {
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.035);
}

.container {
    width: 95%;
    max-width: 1600px;
    margin-top: 10px;
}
.grande{
    max-width: 95%;
}
.dropdown-menu{
    right: 0;
    left: auto;
}
.letrarroja{
    color:red;
    font-weight: bold;
}
.btn_busqueda > button{
    width: 100%;
}

.dropdown-menu[data-bs-popper]{
    left: auto;
    top: 125%;
    border-color: rgba(0, 0, 0, 0.3);
}
.form-floating{
    margin-bottom: 7px;
}
.imglogo{
    text-align: center;
}
.imglogo img{
    width: 70%;
}
#inicio_sesion{
    margin-top: 120px;
}

.loginPage {
    min-height: 100vh;
    margin: 0;
    color: #172033;
    background:
        radial-gradient(circle at 14% 18%, rgba(210, 16, 52, 0.12), transparent 28%),
        radial-gradient(circle at 88% 16%, rgba(0, 74, 173, 0.11), transparent 30%),
        linear-gradient(135deg, #f6f8fb 0%, #ffffff 48%, #eef3f8 100%);
    font-family: Arial, Helvetica, sans-serif;
}

.loginShell {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px 16px;
}

.loginPage #inicio_sesion {
    margin-top: 0;
}

.loginPanel {
    width: min(100%, 420px);
    padding: 34px 34px 30px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(16, 33, 58, 0.10);
    border-top: 5px solid #c8102e;
    border-radius: 8px;
    box-shadow: 0 24px 70px rgba(24, 36, 55, 0.16);
}

.loginBrand {
    display: flex;
    justify-content: center;
    margin-bottom: 28px;
}

.loginBrand img {
    width: min(100%, 300px);
    height: auto;
    display: block;
}

.loginForm {
    display: grid;
    gap: 18px;
}

.loginField label {
    display: block;
    margin-bottom: 7px;
    color: #2a3447;
    font-size: 13px;
    font-weight: 700;
}

.loginField .form-control {
    height: 48px;
    border: 1px solid #cfd6df;
    border-radius: 7px;
    color: #172033;
    background: #ffffff;
    box-shadow: none;
    font-size: 15px;
}

.loginField .form-control:focus {
    border-color: #0b5fb3;
    box-shadow: 0 0 0 3px rgba(11, 95, 179, 0.14);
}

.passwordField {
    position: relative;
}

.passwordField .form-control {
    padding-right: 52px;
}

.passwordToggle {
    position: absolute;
    top: 50%;
    right: 8px;
    width: 38px;
    height: 38px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 7px;
    color: #5e6a79;
    background: transparent;
    cursor: pointer;
    transform: translateY(-50%);
}

.passwordToggle:hover,
.passwordToggle:focus {
    color: #0b5fb3;
    background: rgba(11, 95, 179, 0.08);
    outline: none;
}

.passwordToggle svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.passwordToggle .iconEyeOff,
.passwordToggle.is-visible .iconEye {
    display: none;
}

.passwordToggle.is-visible .iconEyeOff {
    display: block;
}

.loginButton.btn {
    height: 48px;
    margin-top: 4px;
    border: 0;
    border-radius: 7px;
    background: #c8102e;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    box-shadow: 0 12px 26px rgba(200, 16, 46, 0.25);
}

.loginButton.btn:hover,
.loginButton.btn:focus {
    background: #a90f28;
    box-shadow: 0 14px 30px rgba(200, 16, 46, 0.30);
}

.loginMessage {
    margin-top: 18px;
}

.loginMessage .alert {
    margin-bottom: 0;
    border-radius: 7px;
    font-size: 14px;
}

@media (max-width: 480px) {
    .loginPanel {
        padding: 28px 22px 24px;
    }

    .loginBrand img {
        width: min(100%, 260px);
    }
}
.centrar{
    text-align: center
}
.imagen_favicon{
    max-width: 110px;
}
.textoBodega{
    margin-top: 273px;
    color: black;
    font-size: 37px;
}
#iniciar_conteo{
    font-size: 30px;
}
.verde_guardar{
    background-color: rgba(0,255,68,0.10) !important;
}
.verde{
    background-color: green !important;
}
.rojo_guardar{
    background: red;
}
.letra_roja{
    color: red;
}
.td_conteo{
    border-bottom-width: 5px !important;
    padding: 0 !important;
}

.e_conteo_detalleGuardar{
    text-align: center;
    width: 100%;
    padding-right: 5px;
    border: none;
    font-size: 25px;
}

input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type=number] {
    -moz-appearance:textfield;
}
#tbl_producto_ubicacion_detalle{
    font-size: 11px;
}
.e_detalleProductoCargar{
    cursor: pointer;
}
.rojo {
    background-color: rgba(255,0,0,0.10) !important;
}
.bordefinalizardiv{
    margin-bottom: 38px;
}
#tbl_diferencia{
    font-size: 13px;
}
.margen_abajobarras{
    margin-bottom: 10px;
}
#listadoActualModulo{
    overflow: auto;
    height: 300px;
}
#overproductolinea{
    overflow: auto;
    height: 420px;
}
#tablaentradaover{
    overflow: auto;
    height: 430px;
}

.tam_horizontal{
    width: 26cm;
    position: relative;
}
.tam_codigo{
    height: 1.8cm;
}
.amarillo {
    background-color: yellow !important;
}
.centradover {
    vertical-align: middle;
    text-align: center;
}

.tb_codigobarras td {
    border: solid 2px #d9d9d9 !important;
}

.tb_codigobarras td {
    font-size: 15pt;
}

table.print-friendly tr td, table.print-friendly tr th {
    -webkit-column-break-inside: avoid;
    page-break-inside: avoid;
    break-inside: avoid;
}
.impresion{
    -webkit-column-break-inside: avoid;
    page-break-inside: avoid;
    break-inside: avoid;
}


.listaPedidosUsuario .card-header {
    height: 24px;
    font-size: 20px;
    line-height: 0.3;
    text-align: center;
    font-weight: bolder;
}

/*.listaPedidosUsuario .actualPedido {
    width: 110px;
    padding-top: 5px;
}*/

.listaPedidosUsuario .informacion_pedido {
    width: calc(100% - 115px);
}

.listaPedidosUsuario  .cod_pedido{
    font-weight: bolder;
}

.listaPedidosUsuario .nombre {
    font-size: 0.8em;
}

/*.listaPedidosUsuario .cantidad {
    position: absolute;
    top: 22px;
    right: 10px;
}*/

.listaPedidosUsuario .card-body {
    padding: 0;
}

/*.listaPedidosUsuario .registro_pedido {
   /*padding: 2px;
   border: 2px solid black;
}*/
.registro_pedido {
    /*padding: 2px;*/
    border: 1px solid black;
    padding: 0px 2px;
}
.letraCantidadTotal{
    font-size: 13px;
}
.linearecorridoUsuario{
    border: 1px solid;
    border-radius: 2px;
}

.casillaNumeroY, .casillaNumeroX {
    float: left;
    width: 25px;
    height: 25px;
}
.casillaNumeroY{
    text-align: center;
}
.casillaNumeroX{
    text-align: left;
}
.borrar{
    clear: both;
}
.casillaPlano {
    float: left;
    border: 1px solid #e8e8e8;
    width: 25px;
    height: 25px;
    font-size: 8pt;
    text-align: center;
    line-height: 1;
    overflow: hidden;
}

#ubicacion_sectorListar {
    margin: 0 auto;
    width: fit-content;
}

#barrafija {
    position: fixed;
    bottom: 20px;
    right: 20px;
    font-size: 60px;
    width: 80px;
    height: 80px;
    border-radius: 40px;
    box-shadow: 0px 0px 3px 2px rgba(0,0,0,0.4);
    line-height: 1;
    text-align: center;
    padding-top: 8px;
    background: white;
}

#barrafija:hover {
    box-shadow: 0px 0px 3px 2px #c0c0c0;
    color: #FFFFFF;
    background: black;
}

.ventana_recorrido{
    min-height: 100vh;
    margin: 0;
    padding-bottom: 0;
}

.recorridoShell {
    width: min(100%, 460px);
    min-height: 100vh;
    margin: 0 auto;
    padding: 14px 14px 86px;
}

.recorridoResumen {
    margin-bottom: 12px;
    padding: 14px;
    border: 1px solid rgba(15, 23, 42, 0.09);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.recorridoResumen__titulo {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e3e8ef;
}

.recorridoResumen__titulo span,
.recorridoResumen__grid span {
    display: block;
    color: #667085;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.recorridoResumen__titulo strong {
    color: #0f172a;
    font-size: 18px;
}

.recorridoResumen__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 14px;
}

.recorridoResumen__grid strong {
    display: block;
    margin-top: 3px;
    color: #111827;
    font-size: 13px;
    line-height: 1.25;
}

.recorridoResumen__full {
    grid-column: 1 / -1;
}

.recorridoLista > p {
    display: none;
}

.recorridoLista {
    display: grid;
    gap: 9px;
}

/* Código de barras */

#interactive.viewport {
    width: 640px;
    height: 480px;
}


#interactive.viewport canvas, video {
    float: left;
    width: 640px;
    height: 480px;
}

#interactive.viewport canvas.drawingBuffer, video.drawingBuffer {
    margin-left: -640px;
}

#result_strip {
    margin: 10px 0;
    border-top: 1px solid #EEE;
    border-bottom: 1px solid #EEE;
    padding: 10px 0;
}

#result_strip > ul {
    padding: 0;
    margin: 0;
    list-style-type: none;
    width: auto;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
}

#result_strip > ul > li {
    display: inline-block;
    vertical-align: middle;
    width: 160px;
}

#result_strip > ul > li .thumbnail {
    padding: 5px;
    margin: 4px;
    border: 1px dashed #CCC;
}

#result_strip > ul > li .thumbnail img {
    max-width: 140px;
}

#result_strip > ul > li .thumbnail .caption {
    white-space: normal;
}

#result_strip > ul > li .thumbnail .caption h4 {
    text-align: center;
    word-wrap: break-word;
    height: 40px;
    margin: 0px;
}

#result_strip > ul:after {
    content: "";
    display: table;
    clear: both;
}


.scanner-overlay {
    display: none;
    width: 640px;
    height: 510px;
    position: absolute;
    padding: 20px;
    top: 50%;
    margin-top: -275px;
    left: 50%;
    margin-left: -340px;
    background-color: #FFF;
    -moz-box-shadow: #333333 0px 4px 10px;
    -webkit-box-shadow: #333333 0px 4px 10px;
    box-shadow: #333333 0px 4px 10px;
}

.scanner-overlay > .header {
    position: relative;
    margin-bottom: 14px;
}

.scanner-overlay > .header h4, .scanner-overlay > .header .close {
    line-height: 16px;
}

.scanner-overlay > .header h4 {
    margin: 0px;
    padding: 0px;
}

.scanner-overlay > .header .close {
    position: absolute;
    right: 0px;
    top: 0px;
    height: 16px;
    width: 16px;
    text-align: center;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
}

@media (max-width: 603px) {

    #container {
        width: 300px;
        margin: 10px auto;
        -moz-box-shadow: none;
        -webkit-box-shadow: none;
        box-shadow: none;
    }

    #container form.voucher-form input.voucher-code {
        width: 180px;
    }
}
@media (max-width: 603px) {

    .reader-config-group {
        width: 100%;
    }

    .reader-config-group label > span {
        width: 50%;
    }

    .reader-config-group label > select, .reader-config-group label > input {
        max-width: calc(50% - 2px);
    }

    #interactive.viewport {
        width: 300px;
        height: 300px;
        overflow: hidden;
    }


    #interactive.viewport canvas, video {
        margin-top: -50px;
        width: 300px;
        height: 400px;
    }

    #interactive.viewport canvas.drawingBuffer, video.drawingBuffer {
        margin-left: -300px;
    }


    #result_strip {
        margin-top: 5px;
        padding-top: 5px;
    }

    #result_strip ul.thumbnails > li {
        width: 150px;
    }

    #result_strip ul.thumbnails > li .thumbnail .imgWrapper {
        width: 130px;
        height: 130px;
        overflow: hidden;
    }

    #result_strip ul.thumbnails > li .thumbnail .imgWrapper img {
        margin-top: -25px;
        width: 130px;
        height: 180px;
    }
}
@media (max-width: 603px) {

    .overlay.scanner {
        width: 640px;
        height: 510px;
        padding: 20px;
        margin-top: -275px;
        margin-left: -340px;
        background-color: #FFF;
        -moz-box-shadow: none;
        -webkit-box-shadow: none;
        box-shadow: none;
    }

    .overlay.scanner > .header {
        margin-bottom: 14px;
    }

    .overlay.scanner > .header h4, .overlay.scanner > .header .close {
        line-height: 16px;
    }

    .overlay.scanner > .header .close {
        height: 16px;
        width: 16px;
    }
}

.alertaUsuariosBodegaPedidos {
    position: fixed;
    right: 16px;
    top: 82px;
    z-index: 1090;
    width: 320px;
    max-width: calc(100vw - 32px);
    max-height: calc(100vh - 112px);
    overflow-y: auto;
    background: #fff8e1;
    border: 1px solid #f0c36d;
    border-left: 6px solid #f59f00;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
    color: #4a3410;
    font-size: 13px;
    user-select: none;
}

.alertaUsuariosBodegaPedidos--moviendo {
    opacity: 0.9;
}

.alertaUsuariosBodegaPedidos__cabecera {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    cursor: move;
    padding: 9px 10px 8px 12px;
}

.alertaUsuariosBodegaPedidos__titulo {
    font-weight: 700;
    font-size: 14px;
    line-height: 1.2;
}

.alertaUsuariosBodegaPedidos__total {
    display: inline-block;
    min-width: 22px;
    padding: 2px 6px;
    border-radius: 10px;
    background: #f59f00;
    color: #ffffff;
    text-align: center;
}

.alertaUsuariosBodegaPedidos__acciones {
    display: flex;
    gap: 4px;
    flex: 0 0 auto;
}

.alertaUsuariosBodegaPedidos__acciones button {
    width: 26px;
    height: 24px;
    border: 1px solid #d69b36;
    background: #ffffff;
    color: #4a3410;
    border-radius: 4px;
    line-height: 1;
    font-weight: 700;
}

.alertaUsuariosBodegaPedidos__contenido {
    padding: 0 12px 10px 12px;
}

.alertaUsuariosBodegaPedidos__lista {
    margin: 0;
    padding-left: 18px;
}

.alertaUsuariosBodegaPedidos__item {
    margin-bottom: 4px;
}

.alertaUsuariosBodegaPedidos__cantidad {
    font-weight: 700;
}

.alertaUsuariosBodegaPedidos--colapsada {
    width: 270px;
}

.alertaUsuariosBodegaPedidos--colapsada .alertaUsuariosBodegaPedidos__contenido {
    display: none;
}

@media (max-width: 603px) {
    .alertaUsuariosBodegaPedidos {
        left: 10px;
        right: 10px;
        top: auto;
        bottom: 10px;
        width: auto;
        max-width: none;
        max-height: 45vh;
    }
}
/* Fin Código de barras */

#completoproducto, #incompletoproducto, #terminarIncompleto, #reiniciarProceso{
    font-size: 23px;
}

#btn_escanearproducto{
    font-size: 26pt;
    line-height: 1;
    padding: 0 10px;
}


.divs_spanbotones {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d6dee8;
    border-radius: 50%;
    box-shadow: 0 5px 14px rgba(15, 23, 42, 0.14);
    line-height: 1;
    color: #243244;
    background: white;
    font-size: 26px;
    margin-bottom: 0;
    transition: color 0.16s ease, background-color 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.divs_spanbotones:hover {
    border-color: #0b5fb3;
    color: #FFFFFF;
    background: #0b5fb3;
    transform: translateY(-1px);
}

.badge.bg-primary.rounded-pill.letraCantidadTotal {
    margin: 0;
    font-size: 13px;
}

.badge.bg-primary.rounded-pill.letraCantidadTotal {
    margin: 0;
    font-size: 13px;
    float: none;
    margin-right: 0;
}
.linearecorridoUsuario {
    border: 1px solid #d7e0ea;
    border-radius: 8px;
    padding: 0;
}

.botones_recorrido {
    width: auto;
    padding-top: 0;
    float: none;
}

.descripcion_recorrido_general{
    float: none;
    width: auto;
    min-width: 0;
}

.referencia_producto_recorrido{
    color: #0f172a;
    font-size: 14px;
    font-weight: bolder;
    line-height: 1.15;
}
.descripcion_producto_recorrido{
    color: #182234;
    font-size: 12px;
    line-height: 1.18;
    margin-top: 3px;
}
.ubicacion_producto_recorrido{
    display: block;
    color: #334155;
    font-size: 11px;
    line-height: 1.2;
    margin-top: 6px;
}

.recorridoProducto {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-height: 72px;
    padding: 11px 10px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.recorridoProducto.verde_guardar {
    border-color: #80c99a;
    background: #f1fff6 !important;
}

.recorridoProducto.rojo {
    border-color: #efb4b4;
    background: #fff4f4 !important;
}

.recorridoProducto__cantidad {
    min-width: 35px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 8px;
    background: #0d6efd !important;
}

.recorridoProducto__acciones {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: flex-end;
}

.recorridoAcciones {
    position: fixed;
    left: 50%;
    bottom: 0;
    z-index: 1030;
    width: min(100%, 460px);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 10px 14px 12px;
    border-top: 1px solid rgba(15, 23, 42, 0.10);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 -12px 32px rgba(15, 23, 42, 0.10);
    transform: translateX(-50%);
    backdrop-filter: blur(10px);
}

.recorridoAcciones .btn {
    min-height: 44px;
    border-radius: 7px;
    font-weight: 700;
}

#vtn_productorecoger .modal-content {
    min-height: 100vh;
    background:
        radial-gradient(circle at 18% 0%, rgba(200, 16, 46, 0.05), transparent 28%),
        radial-gradient(circle at 88% 8%, rgba(11, 95, 179, 0.06), transparent 30%),
        linear-gradient(180deg, #f8fafc 0%, #eef2f6 100%);
}

#vtn_productorecoger .modal-header {
    min-height: 58px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(10px);
}

#vtn_productorecoger .modal-title {
    font-size: 16px;
    font-weight: 700;
}

#vtn_productorecoger .modal-body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 22px 14px 90px;
}

#vtn_productorecoger #listarProductoRecoger,
#vtn_productorecoger #mensajeGuardando {
    width: min(100%, 520px);
    margin: 0 auto;
}

#vtn_productorecoger .modal-footer {
    position: sticky;
    bottom: 0;
    justify-content: center;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
}

#vtn_productorecoger .modal-footer .btn {
    min-width: 132px;
    min-height: 42px;
    border-radius: 7px;
    font-weight: 700;
}

.recogerProductoCard {
    width: 100%;
    border: 1px solid rgba(15, 23, 42, 0.10);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 46px rgba(15, 23, 42, 0.12);
    overflow: hidden;
}

.recogerProductoCard__cabecera {
    padding: 18px 18px 16px;
    border-bottom: 1px solid #e4eaf2;
    text-align: center;
}

.recogerProductoCard__eyebrow {
    display: inline-flex;
    margin-bottom: 8px;
    color: #667085;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.recogerProductoCard__cabecera h4 {
    margin: 0;
    color: #0f172a;
    font-size: 19px;
    font-weight: 800;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.recogerProductoCard__cantidad {
    width: fit-content;
    min-width: 118px;
    margin: 14px auto 0;
    padding: 8px 14px;
    border-radius: 999px;
    color: #0b3f79;
    background: #eaf3ff;
}

.recogerProductoCard__cantidad span {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.recogerProductoCard__cantidad strong {
    display: block;
    color: #0d6efd;
    font-size: 24px;
    line-height: 1;
}

.recogerProductoCard__contenido {
    padding: 18px;
}

.recogerProductoCard__contenido h3 {
    margin: 0 0 14px;
    color: #101828;
    font-size: 22px;
    font-weight: 700;
}

.recogerProductoCard__acciones {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.recogerProductoCard__acciones .btn {
    min-height: 46px;
    border-radius: 7px;
    font-size: 16px;
    font-weight: 700;
}

.recogerProductoCard__incompleto {
    margin-top: 16px;
    text-align: left;
}

.recogerProductoCard__incompleto .form-floating {
    margin-bottom: 10px;
}

.recogerProductoCard__incompleto textarea.form-control {
    min-height: 92px;
}

@media (max-width: 480px) {
    #vtn_productorecoger .modal-body {
        padding: 14px 10px 86px;
    }

    .recogerProductoCard__cabecera {
        padding: 16px 14px 14px;
    }

    .recogerProductoCard__cabecera h4 {
        font-size: 17px;
    }

    .recogerProductoCard__contenido {
        padding: 14px;
    }

    .recogerProductoCard__contenido h3 {
        font-size: 20px;
    }
}

@media (max-width: 340px) {
    .recogerProductoCard__acciones {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .recorridoShell {
        padding: 10px 10px 82px;
    }

    .recorridoResumen {
        padding: 12px;
        margin-bottom: 10px;
    }

    .recorridoResumen__titulo {
        margin-bottom: 10px;
        padding-bottom: 9px;
    }

    .recorridoResumen__titulo strong {
        font-size: 16px;
    }

    .recorridoResumen__grid {
        gap: 9px 10px;
    }

    .recorridoResumen__grid strong {
        font-size: 12px;
        overflow-wrap: anywhere;
    }

    .recorridoProducto {
        grid-template-columns: auto minmax(0, 1fr);
        gap: 9px;
        padding: 10px;
    }

    .recorridoProducto__acciones {
        grid-column: 1 / -1;
        justify-content: flex-end;
        padding-top: 2px;
    }

    .referencia_producto_recorrido {
        font-size: 13px;
        overflow-wrap: anywhere;
    }

    .descripcion_producto_recorrido,
    .ubicacion_producto_recorrido {
        overflow-wrap: anywhere;
    }

    .divs_spanbotones {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }

    .recorridoAcciones {
        width: 100%;
        padding: 9px 10px 10px;
    }
}

@media (max-width: 360px) {
    .recorridoResumen__grid {
        grid-template-columns: 1fr;
    }

    .recorridoResumen__full {
        grid-column: auto;
    }

    .recorridoAcciones {
        grid-template-columns: 1fr;
    }
}

.fondo_amarillo{
    background-color: yellow;
}

#listarUbicacionMapa {
    min-width: 1000px;
}

.borde_oscuro{
    border: 1px solid black;
}
.visualizacion_imagen{
    max-width: 100%;
}
.visualizacion_imagen2{
    max-width: 50%;
}
.e_codigo_ordenesProceso{
    margin-right: 10px;
}
.letraRecorridoMensajeAct{
    font-size: 17px;
}
.e_subirUbicacion, .e_bajarUbicacion{
    font-size: 21px;
}

.oculto{
    display: none;
}
.claseacordeonEmpaquetado{
 
    margin-bottom: 5px;
}
#mensajeAlertacantidad{
    text-align: center;
    color: red;
}
.letraUbilista {
    font-size: 16px;
    text-align: center;
}
#tbl_orden_pedido2{
    font-size: 13px;
}
.imagenprod{
    width: 100%;
}
.imagenprodmargen{
    margin-top: 97px;

}
.actualPedido{
    font-size: 1.2em;
}
.e_reproducirTono{
    font-size: 44px;
    cursor: pointer;
}
.letratono{
    font-size: 20px;
}
.letraEntrada{
    font-size: 11px;
}
.btn_quitar_asignacion{
    cursor: pointer;
}
.btn_quitarasignacion {
    color: red;
}
.actualPedido, .prioridad, .cod_pedido, .nombre {
    display: inline-block;
    padding: 0 1px;
}
.cod_pedido, .nombre {
    font-size: 0.7em;
}
.cod_pedido {
    font-weight: bold;
}
.badge.bg-primary.rounded-pill.cantidad {
    font-size: 0.6em;
}
.card-body.paddingbodyordenes {
    padding: 0 1rem;
}
.btn_cambiarasignacion {
    color: green;
}
.informacion_pedido {
    float: left;
}
.opciones_ordenespedido {
    float: right;
}
.enproceso_pedido{
    color: orange;
}
.botonpedidosvendedor{
    font-size: 50px;
}
.checkearenvio{
    width: 105%;
    height: 26px;
}
.checkearenvioMasivo{
    width: 105%;
    height: 26px;
}
.checkearenvioPendiente{
    width: 105%;
    height: 26px;
}
.checkearenvioPendiente2{
    width: 105%;
    height: 26px;
}
.checkearenvioPendienteEliminado2{
    width: 105%;
    height: 26px;
}
.checkearenvioPendienteEliminado2:checked {
    accent-color: red;
}
/*.checkearordencompra{
    width: 105%;
    height: 26px;
}*/
.e_actualizarMinimos, .e_actualizarSugerido, .e_valorOrden, .e_actualizarMaximos, .e_descuento_compra, .e_valor_compra_editar{
    width: 100px !important;
    text-align: right;
}
.checkearenviorden {
    width: 18px;
    height: 18px;
    margin-left: 25px;
}
.checkearenviordenPendiente {
    width: 18px;
    height: 18px;
    margin-left: 25px;
}
.codigo_internofacturaorden{
    vertical-align: middle;
}
.tamanofirmaproveedor{
    height: 38px;
}
.letraOrdencompraFac{
    font-size: 12px;
}
.subrayarNombreOrden{
    text-decoration: underline;
}
#tbl_orde_peditrans{
    font-size: 12px;
}
#tbl_enviarSiigo{
    font-size: 12px;
}

/* Tablero de asignacion de pedidos */
body.tableroAsignacionBody {
    background:
        radial-gradient(circle at 8% 0%, rgba(200, 16, 46, 0.05), transparent 26%),
        radial-gradient(circle at 92% 6%, rgba(11, 95, 179, 0.055), transparent 28%),
        linear-gradient(180deg, #f7f9fc 0%, #eef2f6 100%);
    background-attachment: fixed;
}

body:has(.tableroAsignacion) {
    background:
        radial-gradient(circle at 8% 0%, rgba(200, 16, 46, 0.05), transparent 26%),
        radial-gradient(circle at 92% 6%, rgba(11, 95, 179, 0.055), transparent 28%),
        linear-gradient(180deg, #f7f9fc 0%, #eef2f6 100%);
    background-attachment: fixed;
}

.tableroAsignacion {
    align-items: flex-start;
    gap: 14px 0;
    padding-bottom: 28px;
}

.tableroAsignacionPrincipal {
    padding-right: 12px;
}

.tarjetaUsuarioAsignacion,
.tarjetaSinAsignar {
    border: 1px solid #d8dee6;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
    margin-bottom: 10px;
    overflow: hidden;
}

.cabeceraUsuarioAsignacion,
.cabeceraSinAsignar {
    align-items: center;
    background: #ffffff;
    border-bottom: 1px solid #d8dee6;
    color: #111827;
    display: flex;
    justify-content: center;
    min-height: 42px;
    padding: 8px 12px;
}

.cabeceraUsuarioAsignacion {
    flex-wrap: wrap;
    font-size: 15px;
    gap: 5px 8px;
    line-height: 1.25;
}

.cabeceraSinAsignar {
    font-size: 20px;
    font-weight: 700;
    gap: 8px;
}

.tituloAsignacionNumero {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.tituloAsignacionNumero .badge {
    border-radius: 6px;
    font-size: 12px;
    line-height: 1;
    padding: 4px 6px;
}

.cuerpoUsuarioAsignacion,
.cuerpoSinAsignar {
    background: #ffffff;
}

.card-body.paddingbodyordenes.cuerpoUsuarioAsignacion {
    padding: 8px;
}

.cuerpoSinAsignar {
    padding: 8px;
}

.tableroAsignacion .registro_pedido {
    background: #ffffff;
    border: 1px solid #cfd7e2;
    border-radius: 6px;
    color: #111827;
    min-height: 72px;
    padding: 9px 46px 9px 10px;
    position: relative;
    transition: border-color 120ms ease, box-shadow 120ms ease, transform 120ms ease;
}

.tableroAsignacion .registro_pedido:hover {
    border-color: #8aa1bd;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.10);
    transform: translateY(-1px);
}

.tableroAsignacion .registro_pedido.verde_guardar {
    background: #f2fff7 !important;
    border-color: #7ccf9a;
}

.tableroAsignacion .informacion_pedido {
    float: none;
    width: auto;
}

.tableroAsignacion .cod_pedido,
.tableroAsignacion .nombre {
    display: block;
    padding: 0;
}

.tableroAsignacion .cod_pedido {
    color: #111827;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 8px;
}

.tableroAsignacion .cod_pedido .Ferreteria {
    color: #0a8a37;
    font-weight: 800;
}

.tableroAsignacion .nombre {
    color: #1f2937;
    font-size: 11px;
    line-height: 1.25;
}

.tableroAsignacion .opciones_ordenespedido {
    align-items: center;
    bottom: 7px;
    display: flex;
    float: none;
    gap: 5px;
    position: absolute;
    right: 7px;
}

.tableroAsignacion .badge.bg-primary.rounded-pill.cantidad {
    align-items: center;
    display: inline-flex;
    font-size: 11px;
    height: 20px;
    justify-content: center;
    min-width: 20px;
    padding: 0 6px;
}

.tableroAsignacion .actualPedido,
.tableroAsignacion .prioridad {
    display: inline-flex;
    font-size: 20px;
    line-height: 1;
    padding: 0;
}

.tableroAsignacion .prioridad:empty,
.tableroAsignacion .actualPedido:empty {
    display: none;
}

.tableroAsignacion .mdi {
    cursor: pointer;
}

.tableroAsignacion .btn_cambiarasignacion {
    color: #15803d;
}

.tableroAsignacion .btn_quitarasignacion {
    color: #dc2626;
}

.tableroAsignacion .btn_darprioridad {
    color: #f59e0b;
}

.tableroAsignacion .btn_quitarprioridad {
    color: #2563eb;
}

.tableroAsignacion .enproceso_pedido {
    color: #64748b;
}

.tableroAsignacion .alertaSinPedidosAsignados {
    padding: 0;
}

.tableroAsignacion .alertaSinPedidosAsignados .alert {
    background: #fff7d6;
    border-color: #f5df8d;
    border-radius: 6px;
    color: #7a5200;
    font-size: 14px;
}

.panelSinAsignar {
    padding-left: 12px;
}

.tarjetaSinAsignar {
    position: sticky;
    top: 72px;
}

.cuerpoSinAsignar {
    max-height: calc(100vh - 140px);
    overflow-y: auto;
}

.panelSinAsignar .registro_pedido {
    margin-bottom: 8px;
    min-height: 58px;
    padding-right: 84px;
}

.panelSinAsignar .opciones_ordenespedido {
    right: 8px;
}

.e_sinasignarheader .badge {
    background-color: #f59e0b !important;
    color: #111827 !important;
}

@media (max-width: 767px) {
    .tableroAsignacionPrincipal,
    .panelSinAsignar {
        padding-left: 8px;
        padding-right: 8px;
    }

    .tarjetaSinAsignar {
        position: static;
    }

    .cuerpoSinAsignar {
        max-height: none;
    }

    .cabeceraSinAsignar {
        font-size: 18px;
    }
}
#listarUbicacionMapa2{
    width: 100%;
    overflow: auto;
}
.td_fechaorden{
    position: relative;
}
.naranja{
    background-color: orange !important;
}
.e_guardarCantidadRealPendiente{
    width: 30%;
}
.div_margenpendiente{
    margin-bottom: 0px !important;
    width: 50%;
}
#codigo_barras_dian{
    height: 300px;
}
#listarCodigos {
    border: 1px solid black;
    padding: 5px;
}
.ajustar th{
    white-space: normal;
    text-align: center;
    font-size: 11px;
    vertical-align: middle !important;
}
#tbl_diferenciaProductos{
    font-size: 14px;
}
.tamtextogrande{
    height: 200px !important;
}
#tbl_traslado2{
    font-size: 11px;
}
.letrapequeñaaprobar{
    font-size: 12px;
}
#observacion_pedid{
    height: 300px;
}
#observacionTraslado{
    height: 250px;
}
.Industria{
    color: red;
}
.Ferreteria{
    color: green;
}
.Estructura{
    color: blue;
}
.e_sinasignarheader{
    height: 47px !important;
}
.tituloAsignacionNumero{
    display: inline-block;
    font-size: 13px;
}
#descargarPedidosBod{
    font-size: 15px;
}
.container-fluid, .dropdown-menu{
    font-size: 12px;
}

@media (max-width: 991px) {
    body:not(.loginPage) {
        padding-bottom: calc(76px + env(safe-area-inset-bottom));
    }

    .navbar .container-fluid {
        align-items: stretch;
    }

    .navbar-collapse {
        margin-top: 10px;
        padding: 10px;
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.92);
        box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.06);
    }

    .navbar-nav {
        align-items: stretch;
        gap: 4px;
    }

    .navbar-light .navbar-nav .nav-link {
        width: 100%;
        justify-content: space-between;
        border-radius: 7px;
    }

    .navbar .dropdown-menu {
        margin-top: 4px;
        box-shadow: none;
    }

    .mobileQuickNav {
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 1035;
        min-height: 64px;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
        gap: 2px;
        padding: 7px 10px calc(7px + env(safe-area-inset-bottom));
        border-top: 1px solid rgba(15, 23, 42, 0.12);
        background: rgba(255, 255, 255, 0.94);
        box-shadow: 0 -14px 34px rgba(15, 23, 42, 0.14);
        backdrop-filter: blur(14px);
    }

    .navbar-toggler {
        display: none;
    }

    .mobileQuickMenuPanel {
        position: fixed;
        right: 10px;
        bottom: calc(76px + env(safe-area-inset-bottom));
        left: 10px;
        z-index: 1065;
        max-height: min(68vh, 520px);
        overflow: hidden;
        border: 1px solid rgba(15, 23, 42, 0.10);
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.98);
        box-shadow: 0 -18px 46px rgba(15, 23, 42, 0.18);
        backdrop-filter: blur(14px);
    }

    body.mobileQuickMenuIsOpen {
        overflow: hidden;
        touch-action: none;
    }

    .mobileQuickMenuPanel--open {
        display: block !important;
        touch-action: pan-y;
    }

    .mobileQuickMenuPanel__header {
        min-height: 46px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 10px 12px;
        border-bottom: 1px solid #e5eaf1;
        color: #172033;
        background: #f8fafc;
    }

    .mobileQuickMenuPanel__header strong {
        font-size: 14px;
        font-weight: 900;
    }

    .mobileQuickMenuPanel__header button {
        width: 34px;
        height: 34px;
        border: 0;
        border-radius: 7px;
        color: #475467;
        background: #eef2f6;
        font-size: 24px;
        line-height: 1;
    }

    .mobileQuickMenuPanel__list {
        max-height: calc(min(68vh, 520px) - 46px);
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        padding: 8px;
    }

    .mobileQuickMenuPanel .navbar-nav {
        align-items: stretch;
        gap: 4px;
    }

    .mobileQuickMenuPanel .navbar-nav.me-auto {
        display: none;
    }

    .mobileQuickMenuPanel .nav-item {
        width: 100%;
    }

    .mobileQuickMenuPanel .nav-link,
    .mobileQuickMenuPanel .dropdown-item {
        min-height: 40px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 9px 10px;
        border-radius: 7px;
        color: #263242;
        font-size: 13px;
        font-weight: 700;
        text-decoration: none;
    }

    .mobileQuickMenuPanel .nav-link:hover,
    .mobileQuickMenuPanel .nav-link:focus,
    .mobileQuickMenuPanel .dropdown-item:hover,
    .mobileQuickMenuPanel .dropdown-item:focus {
        color: #0b5fb3;
        background: rgba(11, 95, 179, 0.08);
    }

    .mobileQuickMenuPanel .dropdown-menu {
        position: static;
        min-width: 0;
        display: none;
        margin: 4px 0 8px;
        padding: 6px;
        border: 1px solid #e3e8ef;
        border-radius: 7px;
        background: #f8fafc;
        box-shadow: none;
    }

    .mobileQuickMenuPanel .dropdown-menu.show,
    .mobileQuickMenuPanel .dropdown.show > .dropdown-menu {
        display: block;
    }

    .mobileQuickMenuPanel .dropdown-item {
        min-height: 36px;
        font-size: 12px;
        font-weight: 650;
    }

    .mobileQuickNav__item {
        position: relative;
        min-width: 0;
        min-height: 50px;
        display: inline-flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        border: 0;
        border-radius: 8px;
        color: #334155;
        background: transparent;
        text-decoration: none;
        line-height: 1;
    }

    .mobileQuickNav__item:hover,
    .mobileQuickNav__item:focus,
    .mobileQuickNav__button.is-open {
        color: #a40e25;
        background: #fff1f3;
    }

    .mobileQuickNav__item .mdi {
        color: #0b5fb3;
        font-size: 22px;
        line-height: 1;
    }

    .mobileQuickNav__item:hover .mdi,
    .mobileQuickNav__item:focus .mdi,
    .mobileQuickNav__button.is-open .mdi {
        color: #c8102e;
    }

    .mobileQuickNav__item strong {
        max-width: 100%;
        display: block;
        overflow: hidden;
        color: inherit;
        font-size: 10.5px;
        font-weight: 800;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .mobileQuickNav__button {
        font-family: inherit;
        cursor: pointer;
    }

    .mobileQuickNav__badges {
        position: absolute;
        top: 5px;
        right: 16%;
        display: inline-flex;
        gap: 3px;
        pointer-events: none;
    }

    .mobileQuickNav__badge {
        min-width: 17px;
        height: 17px;
        display: none;
        align-items: center;
        justify-content: center;
        padding: 0 5px;
        border: 2px solid #ffffff;
        border-radius: 999px;
        color: #ffffff;
        font-size: 10px;
        font-weight: 900;
        line-height: 1;
        box-shadow: 0 4px 10px rgba(15, 23, 42, 0.18);
    }

    .mobileQuickNav__badge--warning {
        background: #f59e0b;
    }

    .mobileQuickNav__badge--danger {
        background: #c8102e;
    }

    #btn_instalar_pwa {
        right: 12px;
        bottom: calc(78px + env(safe-area-inset-bottom));
    }
}
.letrafechapeque{
    font-size: 11px;
    color:red
}
.letranegrath{
    font-weight: bold;
}
.bordeverde{
    border-left: solid green !important;
}
.bordeverderight{
    border-right: solid green !important;
}
.bordeverdeArriba{
    border-top: solid green !important;
}
.bordeverdeAbajo{
    border-bottom: solid green !important;
}
#tbl_pedidosbodega{
    font-size: 15px;
}
#tbl_orden_pendiente{
    font-size: 12px;
}
.ajustar th{
    white-space: normal;
    text-align: center;
    font-size: 11px;
    vertical-align: middle !important;
}
.color_barra{
    background-color: gray;
    color: white
}
.letrapequen{
    font-size: 13px;
}
#observacionAct_remision{
    height: 160px;
}
#tbl_ordenes_producto{
    font-size: 10px;
}
.lineaactualizar2{
    padding: 0px;
    height: 9px;
    width: 12px;
}
.e_cabecera_estatica{
    position: sticky;
    top: 0;
    background: #333333;
    color: white;
    z-index: 10;
}
.verde_orden{
    background: #00C800 !important;
    color: white
}
.amarillo_orden{
    background: #EBD215 !important;
    color: white
}
.morado_orden{
    background: #A804C8 !important;
    color: white
}
.azul_orden{
    background: #1513AA !important;
    color: white
}
tr.rojo_orden, tr.rojo_orden td{
    color: black;
    background-color: rgba(255,0,0,0.10) !important;
}
.alertaPendiente{
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-left: 18px;
    padding: 6px 12px 6px 8px;
    border: 1px solid rgba(200, 16, 46, 0.18);
    border-radius: 999px;
    color: #8f1025;
    background: linear-gradient(135deg, #fff7f9 0%, #ffffff 100%);
    box-shadow: 0 8px 22px rgba(200, 16, 46, 0.13);
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.alertaPendiente:hover,
.alertaPendiente:focus {
    border-color: rgba(200, 16, 46, 0.34);
    box-shadow: 0 12px 28px rgba(200, 16, 46, 0.20);
    transform: translateY(-1px);
}

.alertaPendiente__icono {
    width: 21px;
    height: 21px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #ffffff;
    background: #c8102e;
    font-size: 13px;
    font-weight: 800;
}

.alertaPendiente__numero {
    min-width: 24px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 7px;
    border-radius: 999px;
    color: #ffffff;
    background: #0b5fb3;
    font-size: 12px;
}

.alertaPendiente__texto {
    color: #263242;
}

.alertaRecorrido {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-left: 18px;
    padding: 6px 12px 6px 8px;
    border: 1px solid rgba(245, 158, 11, 0.30);
    border-radius: 999px;
    color: #8a4b00;
    background: linear-gradient(135deg, #fff9e8 0%, #ffffff 100%);
    box-shadow: 0 8px 22px rgba(245, 158, 11, 0.16);
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
}

.alertaRecorrido__icono {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #ffffff;
    background: #f59e0b;
    font-size: 15px;
}

.alertaRecorrido__numero {
    min-width: 24px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 7px;
    border-radius: 999px;
    color: #ffffff;
    background: #0d6efd;
    font-size: 12px;
}

.alertaRecorrido__texto {
    color: #7a3f00;
}

.fmIndexPage .card:has(.e_aprobarOrdenFinal) {
    overflow: hidden;
    border: 1px solid rgba(245, 158, 11, 0.18);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.10);
}

.fmIndexPage .card:has(.e_aprobarOrdenFinal) .card-header {
    display: grid;
    gap: 5px;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(245, 158, 11, 0.18);
    color: #14213d;
    background:
        linear-gradient(90deg, rgba(245, 158, 11, 0.12), rgba(13, 110, 253, 0.06)),
        #ffffff;
    font-size: 13px;
    line-height: 1.45;
}

.fmIndexPage .card:has(.e_aprobarOrdenFinal) .card-body {
    padding: 14px 16px 16px;
}

.fmIndexPage .card:has(.e_aprobarOrdenFinal) table {
    margin-bottom: 12px;
    overflow: hidden;
    border: 1px solid #dbe3ee;
    border-radius: 7px;
    font-size: 12px;
}

.fmIndexPage .card:has(.e_aprobarOrdenFinal) thead th {
    border-bottom: 1px solid #dbe3ee;
    color: #25324a;
    background: #f3f6fa;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.fmIndexPage .card:has(.e_aprobarOrdenFinal) tbody td {
    vertical-align: middle;
    background: #ffffff;
}

.fmIndexPage .card:has(.e_aprobarOrdenFinal) .form-check {
    min-height: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 999px;
    background: #eef6ff;
}

.fmIndexPage .card:has(.e_aprobarOrdenFinal) .form-check-input {
    margin-top: 0;
    margin-left: 0;
}

.fmIndexPage .card:has(.e_aprobarOrdenFinal) .form-check-label {
    color: #1f3b65;
    font-size: 12px;
    font-weight: 700;
}

.fmIndexPage .card:has(.e_aprobarOrdenFinal) strong {
    color: #101828;
}

.fmIndexPage .card:has(.e_aprobarOrdenFinal) label {
    margin-bottom: 4px;
    color: #475467;
    font-size: 12px;
    font-weight: 800;
}

.fmIndexPage .card:has(.e_aprobarOrdenFinal) .form-control {
    height: 38px;
    border-color: #cfd8e3;
    border-radius: 7px;
    font-weight: 700;
}

.fmIndexPage .card:has(.e_aprobarOrdenFinal) .e_aprobarOrdenFinal {
    min-width: 150px;
    min-height: 40px;
    margin-top: 8px;
    border-radius: 7px;
    font-weight: 800;
    box-shadow: 0 8px 18px rgba(25, 135, 84, 0.20);
}

@media (max-width: 768px) {
    .alertaRecorrido {
        margin-left: 0;
        margin-top: 8px;
    }

    .fmIndexPage .card:has(.e_aprobarOrdenFinal) .card-header,
    .fmIndexPage .card:has(.e_aprobarOrdenFinal) .card-body {
        padding: 12px;
    }
}

.pedidos-alerta {
    border: 0;
    border-radius: 6px;
    margin-bottom: 12px;
}

.pedidos-encabezado {
    display: grid;
    gap: 8px;
    margin-bottom: 12px;
}

.pedidos-encabezado h2 {
    margin-bottom: 0;
}

.pedidos-buscador {
    position: relative;
    width: min(100%, 420px);
}

.pedidos-buscador .mdi {
    position: absolute;
    top: 50%;
    left: 12px;
    color: #667085;
    font-size: 19px;
    line-height: 1;
    transform: translateY(-50%);
    pointer-events: none;
}

.pedidos-buscador .form-control {
    height: 38px;
    padding-left: 38px;
    padding-right: 38px;
    border-color: #ccd5df;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    font-size: 13px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

.pedidos-buscador .form-control:focus {
    border-color: #0b5fb3;
    box-shadow: 0 0 0 3px rgba(11, 95, 179, 0.12);
}

.pedidos-buscador-limpiar {
    position: absolute;
    top: 50%;
    right: 8px;
    width: 24px;
    height: 24px;
    display: none;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    color: #667085;
    background: rgba(15, 23, 42, 0.08);
    font-size: 14px;
    line-height: 1;
    transform: translateY(-50%);
}

.pedidos-buscador-limpiar.is-visible {
    display: inline-flex;
}

.pedidos-buscador-limpiar:hover,
.pedidos-buscador-limpiar:focus {
    color: #ffffff;
    background: #c8102e;
    outline: none;
}

.fmIndexContainer {
    padding-top: 10px;
}

.fmIndexPage h3,
.fmIndexPage h5 {
    color: #0f172a;
    font-weight: 700;
}

.fmIndexPage .card {
    border: 1px solid rgba(15, 23, 42, 0.10);
    border-radius: 8px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.07);
}

.fmIndexPage .card-header {
    border-bottom: 1px solid #e3e8ef;
    background: #f8fafc;
    color: #111827;
    font-size: 13px;
    line-height: 1.45;
}

.fmIndexPage .table-responsive {
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.80);
}

.fmIndexPage .table {
    margin-bottom: 0;
    background: #ffffff;
}

.fmIndexPage .table th {
    background: #f8fafc;
    color: #344054;
    font-size: 12px;
    vertical-align: middle;
}

.fmIndexPage .table td {
    vertical-align: middle;
}

@media (max-width: 768px) {
    .fmIndexContainer {
        width: 100%;
        padding-left: 12px;
        padding-right: 12px;
    }

    .fmIndexPage #btn_ajustarProductos,
    .fmIndexPage #btn_aVendedor,
    .fmIndexPage #btn_aAdmin,
    .fmIndexPage .botonpedidosvendedor,
    .fmIndexPage #leidosSelecciones {
        width: 100%;
        min-height: 42px;
        margin-bottom: 8px;
    }

    .fmIndexPage h3 {
        font-size: 1.18rem;
        text-align: left;
    }

    .fmIndexPage h5 {
        font-size: 1rem;
    }

    .fmIndexPage .input-group {
        flex-wrap: nowrap;
    }

    .fmIndexPage .input-group .btn {
        white-space: nowrap;
    }

    .fmIndexPage .table-responsive {
        overflow: visible;
    }

    .fmIndexPage #tbl_traslado2,
    .fmIndexPage #tbl_ubicacion,
    .fmIndexPage .card table {
        border: 0;
        background: transparent;
    }

    .fmIndexPage #tbl_traslado2 thead,
    .fmIndexPage #tbl_ubicacion thead,
    .fmIndexPage .card table thead {
        display: none;
    }

    .fmIndexPage #tbl_traslado2 tbody,
    .fmIndexPage #tbl_ubicacion tbody,
    .fmIndexPage .card table tbody {
        display: grid;
        gap: 10px;
    }

    .fmIndexPage #tbl_traslado2 tr,
    .fmIndexPage #tbl_ubicacion tr,
    .fmIndexPage .card table tr {
        display: grid;
        gap: 6px;
        padding: 11px;
        border: 1px solid #d8e1ea;
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.95);
        box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
    }

    .fmIndexPage #tbl_traslado2 td,
    .fmIndexPage #tbl_ubicacion td,
    .fmIndexPage .card table td {
        display: grid;
        grid-template-columns: minmax(96px, 38%) minmax(0, 1fr);
        align-items: center;
        gap: 8px;
        width: 100%;
        padding: 0;
        border: 0;
        white-space: normal !important;
        overflow-wrap: anywhere;
        font-size: 13px;
    }

    .fmIndexPage #tbl_traslado2 td::before,
    .fmIndexPage #tbl_ubicacion td::before,
    .fmIndexPage .card table td::before {
        color: #667085;
        font-size: 11px;
        font-weight: 700;
        text-transform: uppercase;
    }

    .fmIndexPage #tbl_traslado2 td:nth-child(1)::before { content: "Fecha"; }
    .fmIndexPage #tbl_traslado2 td:nth-child(2)::before { content: "Referencia"; }
    .fmIndexPage #tbl_traslado2 td:nth-child(3)::before { content: "Descripcion"; }
    .fmIndexPage #tbl_traslado2 td:nth-child(4)::before { content: "Cliente"; }
    .fmIndexPage #tbl_traslado2 td:nth-child(5)::before { content: "Vendedor"; }
    .fmIndexPage #tbl_traslado2 td:nth-child(6)::before { content: "Cantidad"; }
    .fmIndexPage #tbl_traslado2 td:nth-child(7)::before { content: "Saldo"; }
    .fmIndexPage #tbl_traslado2 td:nth-child(8)::before { content: "Abrir"; }
    .fmIndexPage #tbl_traslado2 td:nth-child(9)::before { content: "Leido"; }

    .fmIndexPage #tbl_ubicacion td:nth-child(1)::before { content: "Nombre"; }
    .fmIndexPage #tbl_ubicacion td:nth-child(2)::before { content: "Inicio sesion"; }
    .fmIndexPage #tbl_ubicacion td:nth-child(3)::before { content: "Ultima ubicacion"; }
    .fmIndexPage #tbl_ubicacion td:nth-child(4)::before { content: "Tiempo"; }
    .fmIndexPage #tbl_ubicacion td:nth-child(5)::before { content: "Llamadas"; }
    .fmIndexPage #tbl_ubicacion td:nth-child(6)::before { content: "Codigo barras"; }

    .fmIndexPage .card table td:nth-child(1)::before { content: "#"; }
    .fmIndexPage .card table td:nth-child(2)::before { content: "Remision"; }
    .fmIndexPage .card table td:nth-child(3)::before { content: "Cliente"; }
    .fmIndexPage .card table td:nth-child(4)::before { content: "Cantidad"; }
    .fmIndexPage .card table td:nth-child(5)::before { content: "Seleccion"; }

    .fmIndexPage #tbl_traslado2 .btn,
    .fmIndexPage #tbl_ubicacion .btn,
    .fmIndexPage .card table .btn {
        width: 100%;
    }

    .fmIndexPage .card {
        margin-bottom: 12px;
    }
}

@media (max-width: 380px) {
    .fmIndexPage #tbl_traslado2 td,
    .fmIndexPage #tbl_ubicacion td,
    .fmIndexPage .card table td {
        grid-template-columns: 1fr;
        gap: 3px;
    }
}

.pedidos-sin-resultados {
    margin-top: 12px;
    border: 1px dashed #cbd5e1;
    border-radius: 7px;
    color: #475569;
    background: rgba(255, 255, 255, 0.74);
}

.pedidos-iniciar-lista {
    gap: 10px;
}

.pedidos-iniciar-lista .list-group-item {
    border-radius: 6px;
}

.pedido-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 10px;
    border: 1px solid #dee2e6 !important;
    padding: 12px 14px;
}

.pedido-card-check {
    margin: 0;
}

.pedido-card-info {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    margin: 0;
}

.pedido-card-titulo {
    font-weight: 600;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.pedido-card-meta {
    color: #5d6773;
    font-size: 0.9rem;
    line-height: 1.25;
}

.pedido-card-accion,
.empaque-observacion-btn {
    width: 32px;
    height: 32px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.pedidos-iniciar-accion {
    margin: 14px 0 18px;
}

.pedidos-seccion-titulo {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 12px 0 10px;
}

.empaque-acordeon {
    margin-bottom: 12px;
    border: 1px solid #d7e3f5;
    border-radius: 6px;
    overflow: hidden;
}

.empaque-acordeon .accordion-item {
    border: 0;
}

.empaque-acordeon-boton {
    background: #eaf3ff;
    color: #0d6efd;
    font-weight: 600;
    line-height: 1.25;
}

.pedido-empaque-tabla {
    margin-top: 4px;
}

.tabla-empaque {
    margin-bottom: 0;
    vertical-align: middle;
}

.tabla-empaque th {
    background: #f8f9fa;
    font-size: 0.78rem;
    text-transform: uppercase;
}

.tabla-empaque td {
    font-size: 0.9rem;
}

@media (max-width: 576px) {
    #d_contenedor.container {
        width: 100%;
        padding-left: 14px;
        padding-right: 14px;
    }

    .pedido-card {
        grid-template-columns: auto minmax(0, 1fr) auto;
        padding: 12px;
    }

    .pedido-card-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .pedido-card-info .badge {
        align-self: flex-start;
    }

    .pedido-card-titulo {
        font-size: 0.98rem;
    }

    .pedidos-iniciar-accion .btn {
        min-width: 112px;
    }

    .pedidos-seccion-titulo {
        font-size: 1.12rem;
        margin-top: 8px;
    }

    .pedidos-buscador {
        width: 100%;
    }

    .pedido-card-check,
    .tabla-empaque .form-check-input {
        width: 20px;
        height: 20px;
    }

    .empaque-acordeon .accordion-body {
        padding: 12px 10px;
    }

    .pedido-empaque-tabla {
        overflow-x: visible;
    }

    .tabla-empaque {
        width: 100%;
        min-width: 0;
        table-layout: auto;
        border: 0;
    }

    .tabla-empaque thead {
        display: none;
    }

    .tabla-empaque tbody,
    .tabla-empaque tr,
    .tabla-empaque td {
        display: block;
    }

    .tabla-empaque tbody tr {
        display: grid;
        grid-template-columns: 28px minmax(0, 1fr) 34px;
        gap: 6px 8px;
        padding: 10px 8px;
        border: 1px solid #dee2e6;
        border-radius: 6px;
        margin-bottom: 8px;
        background: #fff;
    }

    .tabla-empaque th,
    .tabla-empaque td {
        padding: 0;
        font-size: 0.82rem;
        border: 0;
    }

    .tabla-empaque td:nth-child(1) {
        grid-column: 1;
        grid-row: 1 / span 3;
        text-align: center;
        align-self: center;
    }

    .tabla-empaque td:nth-child(2) {
        grid-column: 2 / 4;
        grid-row: 1;
        overflow-wrap: anywhere;
        line-height: 1.35;
    }

    .tabla-empaque td:nth-child(3) {
        grid-column: 2;
        grid-row: 2;
        min-width: 0;
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .tabla-empaque td:nth-child(4) {
        grid-column: 2;
        grid-row: 3;
        min-width: 0;
    }

    .tabla-empaque td:nth-child(5) {
        grid-column: 3;
        grid-row: 2 / span 2;
        text-align: right;
        align-self: center;
    }

    .tabla-empaque td:nth-child(3),
    .tabla-empaque td:nth-child(4) {
        display: flex;
        align-items: baseline;
        gap: 6px;
        text-align: left;
        white-space: normal;
    }

    .tabla-empaque td:nth-child(3)::before {
        content: "Ref.";
        flex: 0 0 34px;
        color: #5d6773;
        font-size: 0.72rem;
        font-weight: 700;
        text-transform: uppercase;
    }

    .tabla-empaque td:nth-child(4)::before {
        content: "Cant.";
        flex: 0 0 34px;
        color: #5d6773;
        font-size: 0.72rem;
        font-weight: 700;
        text-transform: uppercase;
    }

    .empaque-observacion-btn {
        width: 28px;
        height: 28px;
    }
}

@media (max-width: 991px) {
    .navbar .navbar-toggler,
    .navbar-toggler,
    button.navbar-toggler {
        display: none !important;
        visibility: hidden !important;
        width: 0 !important;
        min-width: 0 !important;
        height: 0 !important;
        min-height: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        border: 0 !important;
        overflow: hidden !important;
        pointer-events: none !important;
    }
}
