@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

*:focus,
button.btn.btn-buscartop:focus,
button.btn.btn-buscartop:active {
    outline: none
}

* {
    font-family: 'roboto', sans-serif
}

body {
    background:
        /*#f4f8f9*/
        #fdfdfd
}

header#header {
    border-bottom: 1px solid #e7e7e7;
}

.container {
    width: 100%;
    max-width: 1350px;
    margin: 0 auto;
    border: 0px solid #f00
}

.center {
    text-align: center
}

.right {
    text-align: right
}

.left {
    text-align: left
}

table thead {
    font-weight: bold
}

div#buscador .row div {margin-bottom: 8px; margin-top: 7px;}

#buscador {
    background: #eee;
    border-radius: 5px;
    margin-bottom: 25px;
    padding: 15px 20px 15px 20px;
}

footer {
    padding: 15px;
    padding-right: 30px;
    text-align: center;
    font-size: 12px;
    color: #666;
    border-top: 1px solid #ccc;
    margin-top: 50px
}

ul.nav.navbar-nav > li.nombre_empresa a#btn-salir {
    font-weight: 500;
}

.navbar-default .navbar-toggle:hover,
.navbar-default .navbar-toggle:focus {
    background-color: transparent;
}

div.paginado a:hover {
    background: none
}

.navbar {
    min-height: 65px;
    height: 65px
}

.navbar-default {
    background: #fff
}

div.navbar-header {
    margin-top: 4px
}

ul.nav.navbar-nav > li > a {
    padding-top: 25px;
    padding-bottom: 17px;
    font-size: 16px;
    font-weight: 400;
}

.navbar-default .navbar-nav > .open > a,
.navbar-default .navbar-nav > .open > a:hover,
.navbar-default .navbar-nav > .open > a:focus {
    background-color: #eeeeee;
    color: #444;
}

ul.nav.navbar-nav > li.usuario > a {
    padding: 19px;
    display: inline-block
}

ul.nav.navbar-nav > li.nombre_empresa {
    padding: 23px 8px
}

.btn.btn-info {
    background: #29b6d8
}

.btn.btn-todos {
    background: none;
    color: #03809e !important;
    border-color: #29b6d8;
}

a.btn.btn-warning.pull-right.agregar-articulo-icono {
    background: none;
    border: none;
    color: #009688;
    font-weight: 500;
}

a.btn.btn-warning.pull-right.agregar-articulo-icono i {
    background: #009688;
    color: #fff;
    padding: 10px 12px;
    border-radius: 50%;
    margin-left: 5px;
    font-size: 16px;
}

.botones_detalle_pedido a.btn.btn-default.btn-volver {
    padding: 8px 20px;
    font-size: 15px;
    float: left;
}

.botones_detalle_pedido a.btn.btn-default.btn-volver i {
    margin-right: 5px;
}

.botones_detalle_pedido .agregar-articulo-icono {
    margin-top: -10px;
}

input[type=text],
input[type=password] {
    padding-left: 15px !important
}

.table > thead > tr > th,
.table > tbody > tr > th,
.table > tfoot > tr > th,
.table > thead > tr > td,
.table > tbody > tr > td,
.table > tfoot > tr > td {
    padding: 10px 8px;
    line-height: 1.42857143;
    vertical-align: top;
    border-top: 1px solid #ddd;
}

.table-striped > tbody > tr.enRevision:nth-of-type(odd) {
    background: #f3fbf5 !important
}

td.edicion-articulo a i {
    margin-right: 10px;
    font-size: 18px;
}

td.edicion-articulo a.deshacer {
    color: #087e68;
}

td.edicion-articulo a.borrar-item {
    cursor: pointer;
}

h1.titSeccion {
    font: 400 20px 'roboto', sans-serif;
    margin-bottom: 20px;
    color: #333;
}

h1.titSeccion i {
    color: #68b4ef;
    font-size: 28px;
}

h1.titSeccion a {
    color: #000;
    font-weight: 400;
}

h2.subTitSeccion {
    font-size: 22px;
    font-weight: 400;
    color: #68b4ef;
    margin-top: 10px;
}

a.btn.btn-default.btn-volver i {
    font-size: initial;
    color: initial;
}

.row.paginado input.btn.btn-default {
    padding: 5px 12px;
    margin-left: 10px;
}

i.fa-sign-in-alt {
    color: #68bcf3;
    font-size: 20px;
}

thead {
    background: #ECEFF1
}

.table > thead > tr > th,
.table > tbody > tr > th,
.table > tfoot > tr > th,
.table > thead > tr > td,
.table > tbody > tr > td,
.table > tfoot > tr > td {
    padding: 10px 8px;
    line-height: 1.42857143;
    vertical-align: middle;
    border-top: 1px solid #ddd;
}

div.accesosHome .acceso1 {
    /* box-shadow: 0 1px 20px #455a6414; */
    border-radius: 15px;
    display: inline-block;
    text-decoration: none;
    background: #f2f2f2;
    width: 100%;
}
div.accesosHome .acceso2 i {
    background: #E65100;
}
div.accesosHome a {
    text-decoration: none;
    padding: 20px 15px;
}

div.accesosHome i {
    font-size: 18px;
    color: #ffffff;
    padding: 15px;
    border-radius: 15px;
    text-align: center;
    background: #007bff;
    float: left;
    margin-right: 15px;
}

div.accesosHome a h3 {
    font-size: 18px;
    margin-top: 15px;
    color: #333;
}

.m-auto {
    margin: 0 auto
}

.datos-generales,
.datos_pedido {
    line-height: 2.1em;
}

.row.datos_obs {
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-bottom: 20px !important;
}

.nombre-cliente,
.importe-final,
#total_nuevo,
#total_nuevo2,
#total_nuevoX,
.importes-detalle span {
    font-size: 120%;
}

#total_nuevo,
#total_nuevoX,
.importe-final,
#total_nuevo2,
.importes-detalle span {
    padding: 5px 10px;
    border-radius: 4px;
    -moz-border-radius: 4px;
    -webkit-border-radius: 4px;
    color: #007bff;
    background: #edecff;
    color: #000;
}

.importes-detalle span {
    background: none;
}

.importes-detalle.importe-final2 span#total_nuevo2 {
    margin-right: 1%;
    background: #edecff;
}

.datos_pedido i {
    color: #68b4ef
}

.datos_pedido .col-md-4 span {
    padding-left: 18px;
    display: block
}

.datos_pedido {
    padding: 10px;
    background: #edecff;
    margin-top: 25px;
    border-radius: 4px;
}

.dato-nombre-vendedor {
    color: #8f8f8f;
}

.row.datos-generales p {
    margin: 0;
}

.nro_pedido {
    color: #007bff
}

.modificado {
    color: #007bff!important;
}

.insuficiente {
    background-color: #ffdddd;
    border-color: #f44336;
} 

input[type=number] {
    text-align: center
}

td.borrado {
    opacity: .3
}

.botones_detalle_pedido {
    text-align: center;
    margin-bottom: 15px;
    border-top: 1px solid #d4d0d0;
    padding-top: 15px;
}

.botones_detalle_pedido a {
    margin: 0 5px
}

.botones_detalle_pedido a.btn.btn-success.confirmar,
input#grabar {
    padding: 8px 20px;
    background: #007bff;
    border-color: #007bff;
    font-size: 15px;
}

input.btn.btn-default {
    padding: 8px 20px;
    font-size: 15px;
}

.pendienteRevision {
    background-color: #faeddd;
    color: #d87400;
    padding: 5px 10px;
    border-radius: 4px;
    -moz-border-radius: 4px;
    -webkit-border-radius: 4px;
    font-weight: 500;
}

.enRevision {
    background-color: #d2fadd;
    color: #087e51;
    padding: 5px 10px;
    border-radius: 4px;
    -moz-border-radius: 4px;
    -webkit-border-radius: 4px;
    font-weight: 500;
}

.confirmado {
    background-color: #edecff;
    color: #007bff;
    padding: 5px 10px;
    border-radius: 4px;
    -moz-border-radius: 4px;
    -webkit-border-radius: 4px;
    font-weight: 500;
}

.datos-generales .enRevision,
.datos-generales .pendienteRevision,
.datos-generales .confirmado {
    padding: 6px 30px;
    font-size: 16px;
}

.datos-generales .dato-pedido span {
    font-size: 16px;
}

.importes-detalle.importe-final2 b {
    float: none;
    width: initial;
    display: initial;
}

.importes-detalle b,
.dato-pedido b {
    display: block;
    width: inherit;
    text-align: left;
    float: left;
}

.datos-generales .dato-pedido {
    text-align: right;
}

.row.datos_pedido .dato-pedido b {
    float: none;
    display: initial;
}

.datos-generales .dato-pedido.dato-pedido2 {
    text-align: center;
}

.importes-detalle span b {
    float: none;
    display: initial;
}

span.pull-right.importes-detalle2 {
    padding: 8px 10px 8px 0px;
}

div#detalle-pedido-historico .importes-detalle.importe-final2 {
    padding-right: 0;
}

.importes-detalle2 b {
    display: block;
    width: inherit;
    text-align: left;
    float: left;
    margin-right: 10px;
    margin-top: 3px;
}

.agregar-articulo2 {
    margin-top: -10px;
    padding-right: 20px;
}

p.nombre-vendedor {
    font-size: 16px;
}

div.accesosHome a {
    width: 100%;
    display: block;
}

tr.enRevision {
    background: #edfff2 !important;
    color: initial;
    font-weight: 400;
}

tr.pendienteRevision {
    background: initial;
    color: initial;
    font-weight: 400;
}

.table-striped > tbody > tr.enRevision:hover {
    background: #e2ffea !important;
}

.navbar-brand {
    padding: 0px 15px; margin-top: 3px;
}

.nombre_empresa {
    font-size: 16px;
}

.nombre_empresa span a {
    color: #777777;
}

table.table.table-striped.table-hover {
    border-bottom: 1px solid #ddd;
}

i.edit {
    background: #2ab6d8;
}

i.ico {
    border-radius: 50%;
    -webkit-border-radius: 50%;
    color: #fff;
    padding: 6px;
}

.codigo_articulo {
    padding-right: 20px !important;
}

.row.paginado {
    margin-top: 50px;
}


@media (max-width:767px) {
    ul.dropdown-menu li a {
        height: 50px;
        display: flex;
        align-content: flex-start;
        flex-direction: column;
        flex-wrap: wrap;
        justify-content: center;
        align-items: flex-start;
        border-top: 1px solid #ccc;
    }
}

@media (max-width:480px) {
    div.accesosHome .acceso1 {
        margin-bottom: 20px;
    }

    .datos-generales .dato-pedido.dato-pedido2 {
        text-align: right;
    }

    .importes-detalle.importe-final2 span#total_nuevo {
        margin-right: 0;
    }

    .datos-generales .dato-pedido p {
        clear: both;
    }

    .nombre_empresa {
        padding: 5px 10px;
        background: #ECEFF1;
        margin-top: 20px;
    }

    p.nombre-vendedor {
        font-size: 14px;
    }

    .datos-generales {
        padding: 10px !important;
    }

    .datos-generales .dato-pedido b {
        display: block;
    }

    .datos-generales .dato-pedido {
        text-align: right;
    }

    .datos_pedido {
        margin: 0 -15px !important;
    }

    .importes-detalle {
        text-align: right !important;
        padding: 10px 15px;
    }

    li.usuario {
        text-align: right
    }

    li.usuario a {
        padding-top: 0px !important;
        display: inline;
        top: 5px;
    }

    li.usuario .fa-user:before {
        font-size: 18px
    }

    .navbar-nav {
        margin: 0
    }

    /* .navbar-header { position:absolute; top:0 } */
    div.navbar-collapse {
        margin-top: 10px
    }

    ul.nav.navbar-nav > li > a {
        padding-top: 15px;
        padding-bottom: 15px
    }

    .navbar-default .navbar-nav > .open > a,
    .navbar-default .navbar-nav > .open > a:hover,
    .navbar-default .navbar-nav > .open > a:focus {
        background: none !important
    }

    img.logo-movil {
        width: 170px !important
    }

    button.navbar-toggle {
        top: 10px;
        background: none;
        border: none;
        float: left
    }

    .navbar-brand {
        padding-left: 0
    }

    button.navbar-toggle:focus,
    button.navbar-toggle:hover {
        border: none;
        background: none
    }

    ul.nav.navbar-right {
        position: absolute;
        right: 10px;
        top: 18px
    }

    h1.titSeccion {
        font-size: 20px;
    }

    h2.subTitSeccion {
        font-size: 20px;
    }

    li.usuario ul.dropdown-menu {
        background: #222 !important;
        position: relative !important;
        top: 0px !important;
    }

    li.usuario ul.dropdown-menu a {
        color: #fff
    }

    div.navbar-collapse {
        background: #efefef;
        position: relative;
        z-index: 10
    }

    .navbar-default .navbar-nav .open .dropdown-menu > li > a {
        color: #333;
        font-size: 16px;
    }

    div.overflow {
        overflow-x: scroll;
        width: 100%;
    }

    div.overflow > div {
        width: 300%
    }

    div#buscador div.row > div {
        margin-bottom: 15px;
    }

    .col-md-2.col-xs-12.filtro-vendedor {
        margin-top: 0;
    }

    .col-md-10.col-xs-12.botones-filtros {
        margin-top: 0;
    }
}

span#total_nuevo.modificado,
span#total_nuevoX.modificado,
span#total_nuevoL.modificado {
    color: #007bff;
}

.oculta_filtrar{
    display: none;
}

.picker_asignados, .picker_noasignados {
    height: 150px !important;
}

.d-flex .flechas {
    margin: 0;
}

.col-12.col-md-12.d-flex.justify-content-center.flex-row.align-items-center.flechas{
    margin-bottom: -10px;
    margin-top: 5px;
}

#options_right, #options_left {
    rotate: 90deg;
    margin-top: 10px;
    margin-right: 30px;
}

.picker_cancelar, .picker_agregar {
    margin: 20px 0;
}



@media screen and (max-width: 480px) {
    .oculta_filtrar{
        display: block;
    }
    .d-flex .flechas {
        display: flex;
        flex-direction: row !important;
        align-items: center;
        justify-content: space-between;
        align-content: center;
        margin: 20px 0;
    }

        #options_right, #options_left {
        margin: 0 20px;
    }

    .picker_asignados, .picker_noasignados {
        height: auto !important;
    }
    
}


.panel-heading img {margin: 0 auto 20px auto;}
a.navbar-brand img {height: -webkit-fill-available;}

td.triangle-up {
    color: #00a85c;
    transform: none;
}
td.triangle-down {
    color: #F44336;
    transform: rotate(180deg);
}
i.fa.fa-sort {
font-size: 150%;
line-height: 0.6;
vertical-align: middle;
}
i.fa.fa-pause-circle {
font-size: 150%;
transform: rotate(90deg);
color: #cacaca;
}
.eliminado {
    background-color: #ffd7d7;
    color: #de0000;
    padding: 5px 10px;
    border-radius: 4px;
    -moz-border-radius: 4px;
    -webkit-border-radius: 4px;
    font-weight: 500;
}

.btn-warning.eliminar {
    color: #fff;
    background-color: #f44336;
    border-color: #f44336;
    padding: 8px 20px;
    font-size: 15px;
}

.btn-warning.eliminar:hover {
    color: #fff;
    background-color: #000000;
    border-color: #000000;
}

.caja_color div#preview_color {
    height: 40px;
    width: 40px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-top: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.picker_talle_color .talle-color-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}
.picker_talle_color .talle-section, .picker_talle_color .color-section {
    flex: 1;
    min-width: 150px;
}
.picker_talle_color .preview-section {
    flex-basis: 100%;
    margin-top: 10px;
}
.picker_talle_color .preview-color {
    height: 40px;
    width: 40px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-top: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}
@media (max-width: 767px) {
    .picker_talle_color .talle-section, .color-section {
        width: 100%;
    }
}

body#ventas-detPedPen a.modificar-talle-color {
    background: transparent;
    color: #3498db;
    border: 1px solid #3498db;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.85em;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

body#ventas-detPedPen span.product-code {
    font-size: 0.85em;
    color: #6c757d;
    margin-bottom: 8px;
}
body#ventas-detPedPen span.talle-color {
    font-size: 0.9em;
    padding: 4px 8px;
    border-radius: 4px;
    padding-left: 0;
}

span#costo_entrega {
    margin-right: 1%;
}

body#ventas-pedido-celular .panel-pedido-celular {
    border-radius: 8px;
    border: 1px solid #e2e6ea;
}

body#ventas-pedido-celular .cliente-ficha {
    margin-top: 10px;
    border: 1px solid #e2e6ea;
    border-radius: 8px;
    background: #fff;
}

body#ventas-pedido-celular .cliente-ficha-toggle {
    width: 100%;
    background: #f8f9fa;
    border: 0;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 600;
    color: #495057;
}

body#ventas-pedido-celular .cliente-ficha-abierta .cliente-ficha-toggle i {
    transform: rotate(180deg);
}

body#ventas-pedido-celular .cliente-ficha-toggle i {
    transition: transform 0.15s ease;
}

body#ventas-pedido-celular .cliente-ficha-body {
    padding: 10px 12px;
    display: none;
}

body#ventas-pedido-celular .cliente-ficha-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 8px;
}

body#ventas-pedido-celular .cliente-ficha-item {
    flex: 1 1 220px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

body#ventas-pedido-celular .cliente-ficha-label {
    font-size: 11px;
    text-transform: uppercase;
    color: #6c757d;
    letter-spacing: 0.4px;
}

body#ventas-pedido-celular .cliente-ficha-valor {
    font-size: 13px;
    color: #212529;
    display: flex;
    align-items: center;
    gap: 8px;
}

body#ventas-pedido-celular .cliente-ficha-item.destacado .cliente-ficha-valor {
    font-weight: 700;
    color: #212529;
    background: #fff3cd;
    padding: 4px 6px;
    border-radius: 4px;
}

body#ventas-pedido-celular .cliente-ficha-acciones a {
    margin-left: 12px;
    color: #495057;
    font-size: 18px;
    padding: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #dee2e6;
    background: #f8f9fa;
}

body#ventas-pedido-celular .cliente-ficha-acciones a:active,
body#ventas-pedido-celular .cliente-ficha-acciones a:focus {
    background: #e2e6ea;
    outline: none;
}

body#ventas-pedido-celular #lista-clientes {
    margin-top: 10px;
    max-height: 220px;
    overflow-y: auto;
}

body#ventas-pedido-celular #lista-productos {
    margin-top: 10px;
    overflow-y: auto;
}

body#ventas-pedido-celular .lista-inline {
    display: none;
}

body#ventas-pedido-celular .modal-fullscreen .modal-dialog {
    width: 100%;
    height: 100%;
    margin: 0;
}

body#ventas-pedido-celular .modal-fullscreen .modal-content {
    height: 100%;
    border-radius: 0;
}

body#ventas-pedido-celular .modal-fullscreen .modal-body {
    height: calc(100% - 55px);
    overflow-y: auto;
}

body#ventas-pedido-celular .modal-buscador-body > .form-control {
    margin-bottom: 10px;
}

body#ventas-pedido-celular .modal-header-productos {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

body#ventas-pedido-celular .btn-carrito-modal {
    position: relative;
    min-width: 44px;
}

body#ventas-pedido-celular .list-group-item {
    padding: 8px 10px;
}

body#ventas-pedido-celular .btn-select-cliente {
    padding: 0;
    font-size: 14px;
}

body#ventas-pedido-celular .cliente-seleccionado {
    margin-top: 6px;
    font-size: 12px;
    color: #6c757d;
    font-weight: 600;
}

body#ventas-pedido-celular .cliente-seleccionado-top {
    margin: 4px 0 8px;
}

body#ventas-pedido-celular .producto-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

body#ventas-pedido-celular .producto-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

body#ventas-pedido-celular .producto-texto {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

body#ventas-pedido-celular .producto-precio {
    font-size: 12px;
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: 6px;
}

body#ventas-pedido-celular .producto-precio-linea {
    display: flex;
    align-items: center;
    gap: 6px;
        justify-content: space-between
}

body#ventas-pedido-celular .producto-precio-original {
    text-decoration: line-through;
    color: #a0a4a8;
}

body#ventas-pedido-celular .producto-precio-actual {
    font-weight: 600;
    color: #212529
}

body#ventas-pedido-celular .producto-precio-descuento {
    color: #d9534f;
    font-weight: 600;
}

body#ventas-pedido-celular .producto-stock-inline {
    margin-left: auto;
    font-size: 12px;
    color: #6c757d;
}

body#ventas-pedido-celular .producto-no-disponible,
body#ventas-pedido-celular .producto-no-disponible-texto,
body#ventas-pedido-celular .producto-cantidad-agregada {
    font-size: 12px;
    color: #6c757d;
    font-weight: 600;
}

body#ventas-pedido-celular .producto-img {
    width: 36px;
    height: 36px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #dee2e6;
}

body#ventas-pedido-celular .producto-acciones {
    display: flex;
    gap: 8px;
    align-items: center;
    width: 100%;
        justify-content: space-between
}

body#ventas-pedido-celular .producto-acciones .input-cantidad {
    max-width: 90px;
    border-radius: 8px
}
body#ventas-pedido-celular .producto-sin-stock-texto {
    font-size: 12px;
    font-weight: 600;
    color: #842029;
}
body#ventas-pedido-celular .producto-acciones .btn-qty {
    min-width: 32px;
}
body#ventas-pedido-celular .producto-img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    background: #fff;
}
body#ventas-pedido-celular .list-group-item .producto-texto span.producto-nombre-texto {
    font-weight: 500;
    font-size: 14px;
    line-height: 1.3;
    word-break: break-word;
    color: #212529;
}
body#ventas-pedido-celular .list-group-item  .producto-precio-linea .producto-precio-info {
    display: grid;
    grid-template-columns: 1fr auto;
    row-gap: 6px;
    gap: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    width: auto;
        font-weight: 600;
    color: #212529
}
body#ventas-pedido-celular .producto-agregado {
    background: #f8f9fa;
    border-color: #cfd4da;
}

body#ventas-pedido-celular .producto-sin-stock {
    opacity: 0.65;
}

body#ventas-pedido-celular .producto-sin-stock-texto {
    font-size: 12px;
    font-weight: 600;
    color: #d9534f;
            width: 100%;
        background: #fdecea;
        color: #d32f2f;
        border: none;
        padding: 12px;
        border-radius: 10px;
        font-weight: 600;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px
}
body#ventas-pedido-celular .producto-precio.producto-precio-linea.precio-sin-stock {
    justify-content: flex-end !important;
}
body#ventas-pedido-celular .btn-agregado {
    background: #6c757d;
    border-color: #6c757d;
    color: #fff;
    min-width: 120px
}

body#ventas-pedido-celular .panel-heading-productos {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

body#ventas-pedido-celular .btn-carrito-panel {
    display: none;
}

body#ventas-pedido-celular.modo-lista-productos .btn-carrito-panel {
    display: inline-block;
}

body#ventas-pedido-celular.modo-lista-productos #lista-productos {
    max-height: none;
}

body#ventas-pedido-celular .producto-hint {
    font-size: 12px;
    color: #6c757d;
}

body#ventas-pedido-celular .producto-dimensiones {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #6c757d;
    font-size: 12px;
    margin-top: 2px;
}

body#ventas-pedido-celular .producto-dimensiones .producto-bultos,
body#ventas-pedido-celular .producto-dimensiones .producto-cajas {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

body#ventas-pedido-celular .producto-footer {
    text-align: center;
}

body#ventas-pedido-celular .link-ir-carrito {
    font-weight: 600;
    display: inline-block;
}

body#ventas-pedido-celular #tabla-carrito .input-cantidad,
body#ventas-pedido-celular #tabla-carrito .input-descuento {
    max-width: 90px;
}

body#ventas-pedido-celular .carrito-item-nombre {
    font-weight: 600;
    padding-bottom: 6px;
}

body#ventas-pedido-celular .carrito-item-info {
    display: flex;
    gap: 10px;
    align-items: center;
}

body#ventas-pedido-celular .carrito-item-img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #dee2e6;
}

body#ventas-pedido-celular .carrito-item-texto {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

body#ventas-pedido-celular .carrito-control {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

body#ventas-pedido-celular .carrito-control .control-input-group {
    display: flex;
    align-items: center;
    gap: 6px;
}

body#ventas-pedido-celular .carrito-control .btn-qty {
    min-width: 28px;
}

body#ventas-pedido-celular .carrito-control-del {
    align-items: flex-start;
}

body#ventas-pedido-celular .carrito-dimensiones {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-right: auto;
    min-width: 110px;
    justify-content: space-between;
    color: #6c757d;
    font-size: 12px;
}

body#ventas-pedido-celular .carrito-dimensiones .carrito-bultos,
body#ventas-pedido-celular .carrito-dimensiones .carrito-cajas {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

body#ventas-pedido-celular .control-label {
    font-size: 12px;
    color: #6c757d;
}

body#ventas-pedido-celular .pedido-celular-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

body#ventas-pedido-celular .carrito-header-info {
    display: flex;
    flex-direction: column;
}

body#ventas-pedido-celular .btn-carrito {
    position: relative;
    min-width: 44px;
}

body#ventas-pedido-celular .badge-carrito {
    background: #f28c28;
    color: #fff;
    position: absolute;
    top: -8px;
    right: -6px;
    border-radius: 10px;
    padding: 2px 6px;
    font-size: 11px;
}

body#ventas-pedido-celular #delivery-vacio {
    margin-top: 8px;
}

body#ventas-pedido-celular .resultado-pedido {
    margin-top: 12px;
}

body#ventas-pedido-celular .carrito-item-precio {
    font-size: 13px;
    color: #6c757d;
    margin-top: 4px;
}

body#ventas-pedido-celular .carrito-precio-linea {
    display: flex;
    align-items: center;
    gap: 6px;
}

body#ventas-pedido-celular .carrito-precio-original {
    text-decoration: line-through;
    color: #a0a4a8;
    margin-right: 6px;
}

body#ventas-pedido-celular .carrito-precio-descuento {
    color: #d9534f;
    font-weight: 600;
    margin-left: 6px;
}

body#ventas-pedido-celular .carrito-stock-inline {
    margin-left: auto;
    font-size: 12px;
    color: #6c757d;
        background: #f2dede;
    padding: 2px 6px;
    border-radius: 4px;
    background-color: #d2fadd;
    color: #087e51;
}

body#ventas-pedido-celular .stock-cero {
    color: #a94442;
    background: #f2dede;
    padding: 2px 6px;
    border-radius: 4px;
}

body#ventas-pedido-celular .cantidad-excede-stock {
    border-color: #d9534f;
    color: #d9534f;
}

body#ventas-pedido-celular input[type=number]::-webkit-outer-spin-button,
body#ventas-pedido-celular input[type=number]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

body#ventas-pedido-celular input[type=number] {
    -moz-appearance: textfield;
}

body#ventas-pedido-celular .total-carrito {
    font-weight: 600;
    margin: 10px 0;
    text-align: right;
}

body#ventas-home .icon-celular {
    background: #f28c28;
    color: #ffffff;
    width: 50.25px;
}
@media (max-width: 767px) {

    /* La tabla deja de comportarse como tabla */
    body#ventas-pedido-celular #tabla-carrito,
    body#ventas-pedido-celular #tabla-carrito thead,
    body#ventas-pedido-celular #tabla-carrito tbody,
    body#ventas-pedido-celular #tabla-carrito tr,
    body#ventas-pedido-celular #tabla-carrito td {
        display: block;
        width: 100%;
    }

    /* Ocultamos encabezado */
    body#ventas-pedido-celular #tabla-carrito thead {
        display: none;
    }

    /* Card por producto */
    body#ventas-pedido-celular #tabla-carrito tr {
        background: #fff;
        padding: 5px 5px;
    }

    body#ventas-pedido-celular .carrito-item-info {
        align-items: flex-start;
        gap: 10px;
        width: 100%;
    }

    body#ventas-pedido-celular .carrito-item-texto {
        width: 100%;
        min-width: 0;
        display: block;
    }

    body#ventas-pedido-celular .carrito-item-nombre {
        word-break: break-word;
        line-height: 1.3;
    }



    body#ventas-pedido-celular .control-input-group {
        display: flex;
        gap: 6px;
        width: 100%;
    }

    body#ventas-pedido-celular .control-input-group input {
        flex: 1;
        min-width: 0;
        text-align: center;
    }

    body#ventas-pedido-celular .control-input-group button {
        flex: 0 0 36px;
    }


    body#ventas-pedido-celular .carrito-control-del {
        display: flex;
        grid-auto-columns: 1fr;
    }

    body#ventas-pedido-celular .carrito-item-precio {
        margin-top: 6px;
        font-size: 13px;
    }

    body#ventas-pedido-celular .total-carrito {
        font-size: 18px;
        font-weight: 700;
        text-align: right;
    }

    /* Más aire entre cards */
    body#ventas-pedido-celular .panel-body {
        padding: 12px;
    }

    /* Inputs cómodos al tacto */
    body#ventas-pedido-celular input,
    body#ventas-pedido-celular button {
        min-height: 40px;
    }


    body#ventas-pedido-celular .carrito-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px 12px;
        width: 100%;
        align-items: start;
    }

    /* Cantidad */
    body#ventas-pedido-celular .carrito-actions .carrito-control:nth-child(1) {
        grid-column: 1;
        grid-row: 1;
    }

    /* Descuento */
    body#ventas-pedido-celular .carrito-actions .carrito-control:nth-child(2) {
        grid-column: 2;
        grid-row: 1;
    }

    /* Eliminar debajo del descuento */
    body#ventas-pedido-celular .carrito-control-del {
        grid-row: 1;
        align-self: end;
    }

/* Permitir que el nombre del producto use hasta 2 líneas */
body#ventas-pedido-celular .producto-nombre-texto {
    -webkit-line-clamp: 2;        /* máximo 2 líneas */
    -webkit-box-orient: vertical;
    overflow: hidden;
    white-space: normal;
    word-break: break-word;
    line-height: 1.2;
}

/* Volvemos el TD a comportamiento normal */
body#ventas-pedido-celular .table-responsive td.carrito-item-nombre {
    width: 100%;
}

/* Contenedor */
body#ventas-pedido-celular .carrito-item-info {
    display: block;
    width: 100%;
}

/* Imagen */
body#ventas-pedido-celular .carrito-item-img {
    float: left !important;
    width: 48px;
    margin-right: 10px;
}



/* Precios abajo */
body#ventas-pedido-celular .carrito-item-precio {
    clear: both !important;
    margin-top: 6px;
    font-size: 13px;
}

}
@media (max-width: 767px) {

    /* Card base */
    body#ventas-pedido-celular #tabla-carrito tr {
        background: #ffffff;
        border-radius: 12px;
    }

    /* ======================
       IMAGEN + TITULO + STOCK
       ====================== */

    body#ventas-pedido-celular .carrito-item-info {
        gap: 10px;
        align-items: start;
        width: 100%;
    }

    body#ventas-pedido-celular .carrito-item-img {
        width: 56px;
        height: 56px;
        object-fit: cover;
        border-radius: 8px;
        border: 1px solid #dee2e6;
        background: #fff;
    }



    body#ventas-pedido-celular .carrito-item-nombre {
        font-weight: 500;
        font-size: 14px;
        line-height: 1.3;
        word-break: break-word;
        color: #212529;
    }

    body#ventas-pedido-celular .carrito-item-sku,
    body#ventas-pedido-celular .product-code {
        font-size: 12px;
        color: #6c757d;
    }

    body#ventas-pedido-celular .carrito-stock-inline, body#ventas-pedido-celular .producto-stock-inline {
    white-space: nowrap;
    font-size: 10px;
    padding: 4px 8px;
    border-radius: 6px;
    background: #d4edda;
    color: #155724;
    font-weight: 600;
    align-self: flex-start;
    display: flex;
    gap: 5px;
    width: fit-content;
    margin-left: 0;
}
body#ventas-pedido-celular .producto-acciones button.btn.btn-success.btn-xs.btn-agregar {
    width: 100%;
    border: none;
    padding: 12px;
    border-radius: 10px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
body#ventas-pedido-celular .producto-item .producto-acciones button {
    border-radius: 8px;
}
    body#ventas-pedido-celular .stock-cero {
        background: #f8d7da;
        color: #842029;
    }

    /* ======================
       PRECIOS (BLOQUE INFERIOR)
       ====================== */

    body#ventas-pedido-celular .carrito-item-precio {
        display: grid;
        grid-template-columns: 1fr auto;
        row-gap: 6px;
        margin-top: 10px;
        font-size: 13px;
        color: #6c757d;
    }

    body#ventas-pedido-celular .carrito-precio-linea {
    display: grid;
    grid-template-columns: 1fr auto;
    row-gap: 6px;
    gap: 20px;
}
.carrito-precio-grupo1 {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    width: auto;
}
.carrito-precio-grupo1.promocional {
    display: flex;
    justify-content: space-between;
    grid-column: 1/2;
    gap: 10px;
}


.carrito-precio-grupo2 {
    display: flex;
    justify-content: flex-end;
    gap: 20px;
    /* width: 100%; */
}
    body#ventas-pedido-celular .carrito-precio-original {
        text-decoration: line-through;
        color: #adb5bd;
    }

    body#ventas-pedido-celular .carrito-precio-valor {
        font-size: 15px;
        font-weight: 700;
        color: #212529;
    }

    body#ventas-pedido-celular .carrito-precio-descuento, body#ventas-pedido-celular .producto-precio-descuento {
        background: #f44336;
        color: #fff;
        padding: 2px 6px;
        border-radius: 6px;
        font-size: 12px;
        font-weight: 600;
    }

    body#ventas-pedido-celular .carrito-subtotal-linea {
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-end;
    font-weight: 600;
    margin-top: 4px;
    gap: 10px;
}

    body#ventas-pedido-celular .carrito-subtotal-valor {
        font-size: 15px;
        color: #212529;
    }

    /* ======================
       ACCIONES (CANT + DESC)
       ====================== */

    body#ventas-pedido-celular .carrito-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        width: 100%;
    }

    body#ventas-pedido-celular .carrito-control {
        display: flex;
        flex-direction: column;
        gap: 6px;
    }

    body#ventas-pedido-celular .control-label {
        font-size: 12px;
        color: #6c757d;
        font-weight: 500;
    }

    body#ventas-pedido-celular .control-input-group {
        display: flex;
        gap: 8px;
        align-items: center;
    }

    body#ventas-pedido-celular .control-input-group button {
        min-width: 40px;
        height: 40px;
        border-radius: 8px;
    }

    body#ventas-pedido-celular .control-input-group input {
        flex: 1;
        min-width: 44px;
        height: 40px;
        text-align: center;
        border-radius: 8px;
    }

    /* ======================
       BOTON ELIMINAR
       ====================== */

    body#ventas-pedido-celular .carrito-control-del {
        grid-column: 1 / -1;
        margin-top: 70px;
    }

    body#ventas-pedido-celular .btn-eliminar {
        width: 100%;
        background: #fdecea;
        color: #d32f2f;
        border: none;
        padding: 12px;
        border-radius: 10px;
        font-weight: 600;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }

    body#ventas-pedido-celular .btn-eliminar i {
        font-size: 16px;
    }

    /* ======================
       TOTAL CARRITO
       ====================== */

    body#ventas-pedido-celular .total-carrito {
        font-size: 18px;
        font-weight: 700;
        text-align: right;
        margin-top: 12px;
    }

}
