.todo
    {
        width: 100%;
        height: auto;
    }
.mayuscula{	text-transform: uppercase;  }
#estilo5{color:	#FFFF00;background:#0000FF;height:40px	}	
#estilo1{color:#FF0000;background:#020E61;height:100px	}	
#estilo2{color:#020E61;background:#FAD6A5;height:100px	}
#estilo3{color:#020E61;background:#ccc;height:40px	}
#estilo4{color:#020E61;background:#eee;height:40px	}
#foto{
   /* border: 3px solid #000;
    position: absolute;
    width: 100px;
    height: 100px;*/
    z-index: 2;
	}
#enla{
   /* position: relative;
    background-color: #336699;
    color: #fff;
    width: 100px;
    height: 100px;
    padding: 3px;
    text-align: center;*/
    z-index: 1;
    }
button, select, input
 {    border-radius: 10px 0px 10px 0px; }
textarea{border-radius: 10px 10px 10px 10px;}
input[type="text"]
    {   /*height: 10px;*/       width: 180px;    }    
textarea,select, td, input {padding:5px;}
.descuento {  width: 50px !important;}
input[type="password"]     
    {   width: 150px;}
input[type="date"]     
    {   width: 150px;}/**/
/* +++++++++++++++++++ Color estado Mesa  ++++++++++++++++++++++++*/
	.cero{ background-color: yellow;}
	.uno{  background-color: red;}
	.dos{  background-color: #848484 !important;}

/* +++++++++++++++++++ Color estado Mesa  ++++++++++++++++++++++++*/

.filaTotal {
    font:Arial, Helvetica, sans-serif;
    font-family:Arial, Helvetica, sans-serif;
    font-size:22px;
    text-decoration:none;
    color:#000;
    font-weight:bold;
    border:0;
    background-color: #FFFF00 !important;}

.filaTotal1 {
    font:Arial, Helvetica, sans-serif;
    font-family:Arial, Helvetica, sans-serif;
    font-size:26px;
    text-decoration:none;
    color:#000;
    font-weight:bold;
    border:0;
    background-color: #00f0ff !important;
}
thead {
    font:Arial, Helvetica, sans-serif;
    font-family:Arial, Helvetica, sans-serif;
    font-size:14px;
    text-align: center;
    text-decoration:none;
    color:#fff;
    font-weight:bold;
    border:0;
    background-color:   #020E61;
    padding:5px;
}

tbody {
    font:Arial, Helvetica, sans-serif;
    font-family:Arial, Helvetica, sans-serif;
      font-weight:bold;
    border:0;
    background-color: #76b5cd; 

}
.orden
 {
     font:Arial, Helvetica, sans-serif;
    font-family:Arial, Helvetica, sans-serif;
    font-size:20px;
    font-weight:bold;
    border:1;
    background-color: #fff;
 }
.enlace {
    font:Arial, Helvetica, sans-serif;
    font-family:Arial, Helvetica, sans-serif;
    font-size:12px;
    text-align: center;
    text-decoration:none;
    color:#fff;
    font-weight:bold;

}
.nombre {
    font:Arial, Helvetica, sans-serif;
    font-family:Arial, Helvetica, sans-serif;
    font-size:14px;
    text-align: center;

    color:#fff;
    font-weight:bold;

}
caption {
    display: table-caption;
    text-align: center;
}

/* ===================== Evitar desbordamiento horizontal ===================== */
html, body {
    overflow-x: hidden;
    max-width: 100vw;
}

/* ===================== Navbar Styles ===================== */
.navbar {
    z-index: 1050;
    padding: 0.5rem 1rem;
}

.navbar-brand {
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 1rem;
}

/* Hacer que los items del navbar sean mas pequeños */
.navbar-nav .nav-link {
    padding: 0.4rem 0.6rem !important;
    font-size: 0.85rem;
}

/* Dropdowns */
.navbar-nav .dropdown-menu {
    font-size: 0.85rem;
}

/* ===================== Mobile Navigation ===================== */
@media (max-width: 991.98px) {
    /* Toggler siempre visible */
    .navbar-toggler {
        display: flex !important;
        align-items: center;
        justify-content: center;
        border: 2px solid rgba(255, 255, 255, 0.5) !important;
        padding: 0.4rem 0.6rem !important;
        order: -1;
    }

    .navbar-toggler-icon {
        width: 1.2em;
        height: 1.2em;
    }

    .navbar-brand {
        max-width: 140px;
        font-size: 0.85rem;
        margin-left: 0.5rem;
    }

    /* Menu colapsable */
    .navbar-collapse {
        position: fixed;
        top: 56px;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: #212529;
        z-index: 1040;
        overflow-y: auto;
        padding: 1rem;
    }

    .navbar-collapse:not(.show) {
        display: none;
    }

    .navbar-collapse.show {
        display: block !important;
    }

    .navbar-collapse.collapsing {
        display: block;
        height: 0;
        overflow: hidden;
        transition: height 0.35s ease;
    }

    /* Nav items en móvil */
    .navbar-nav {
        flex-direction: column !important;
        width: 100%;
    }

    .navbar-nav .nav-item {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .navbar-nav .nav-link {
        padding: 0.75rem 1rem !important;
        font-size: 1rem;
    }

    /* Dropdowns en móvil */
    .navbar-nav .dropdown-menu {
        position: static !important;
        float: none !important;
        width: 100%;
        background-color: rgba(0, 0, 0, 0.3);
        border: none;
        border-radius: 0;
        padding: 0;
        margin: 0;
    }

    .navbar-nav .dropdown-menu.show {
        display: block;
    }

    .navbar-nav .dropdown-menu .dropdown-item {
        padding: 0.6rem 1rem 0.6rem 2rem;
        color: rgba(255, 255, 255, 0.8);
    }

    .navbar-nav .dropdown-menu .dropdown-item:hover,
    .navbar-nav .dropdown-menu .dropdown-item:focus {
        background-color: rgba(255, 255, 255, 0.1);
        color: #fff;
    }

    .navbar-nav .dropdown-divider {
        border-color: rgba(255, 255, 255, 0.1);
        margin: 0;
    }

    /* Ocultar info de usuario en navbar en móvil */
    .navbar-text {
        display: none !important;
    }
}

/* ===================== Info Bar ===================== */
@media (max-width: 767.98px) {
    .bg-light.border-bottom {
        font-size: 0.75rem !important;
        flex-direction: column;
        text-align: center;
        gap: 0.25rem;
    }
}

/* ===================== DataTable Scroll Horizontal para Móviles ===================== */
@media (max-width: 768px) {
    .card-body .table-responsive,
    .todo .table-responsive {
        width: 100vw !important;
        max-width: 100vw !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        margin-left: -1rem;
        margin-right: -1rem;
    }

    .table-responsive #tablaTurnos_wrapper {
        width: 100% !important;
        overflow-x: auto !important;
    }

    .table-responsive .dt-scroll {
        width: 100% !important;
        min-width: 100vw !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    .table-responsive #tablaTurnos {
        min-width: 900px !important;
        width: 900px !important;
    }

    .table-responsive #tablaTurnos td,
    .table-responsive #tablaTurnos th {
        white-space: nowrap !important;
        min-width: 80px !important;
    }

    .table-responsive #tablaTurnos th:nth-child(1),
    .table-responsive #tablaTurnos td:nth-child(1) {
        min-width: 50px !important;
    }

    .table-responsive #tablaTurnos th:nth-child(3),
    .table-responsive #tablaTurnos td:nth-child(3) {
        min-width: 150px !important;
    }

    .table-responsive #tablaTurnos th:nth-child(5),
    .table-responsive #tablaTurnos td:nth-child(5),
    .table-responsive #tablaTurnos th:nth-child(6),
    .table-responsive #tablaTurnos td:nth-child(6),
    .table-responsive #tablaTurnos th:nth-child(7),
    .table-responsive #tablaTurnos td:nth-child(7),
    .table-responsive #tablaTurnos th:nth-child(8),
    .table-responsive #tablaTurnos td:nth-child(8) {
        min-width: 100px !important;
    }

    .table-responsive #tablaTurnos th:nth-child(9),
    .table-responsive #tablaTurnos td:nth-child(9) {
        min-width: 80px !important;
    }

    /* ===================== Tablas del Buscador de Productos ===================== */
    @media (max-width: 768px) {
        /* Wrapper table-responsive para buscador de productos */
        #dos .table-responsive {
            width: 100vw !important;
            max-width: 100vw !important;
            overflow-x: auto !important;
            -webkit-overflow-scrolling: touch;
            margin-left: -1rem;
            margin-right: -1rem;
        }

        /* Tabla dentro del buscador */
        #dos table {
            min-width: 900px !important;
            width: 900px !important;
        }

        /* Asegurar scroll horizontal en móvil */
        #dos .table-responsive::-webkit-scrollbar {
            height: 8px;
            width: 8px;
        }

        #dos .table-responsive::-webkit-scrollbar-thumb {
            background: #888;
            border-radius: 4px;
        }

        #dos .table-responsive::-webkit-scrollbar-track {
            background: #f1f1f1;
        }
    }

    .dataTables_wrapper {
        width: 100% !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    .dataTables_wrapper .dataTables_scroll {
        overflow-x: auto !important;
        width: 100% !important;
    }

    .dataTables_wrapper .dataTables_scrollBody {
        overflow-x: auto !important;
    }
}

/* ===================== Estilos Cotizaciones/Remisiones ===================== */

.card-producto {
    border: 2px solid #e9ecef;
    border-radius: 15px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.card-producto:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
    transform: translateY(-5px);
    border-color: #0d6efd;
}

.card-producto .card-header {
    border-radius: 15px 15px 0 0 !important;
    padding: 12px 15px;
    font-size: 0.95rem;
}

.card-producto .card-body {
    padding: 15px;
}

.card-producto .card-footer {
    border-radius: 0 0 15px 15px !important;
    padding: 10px 15px;
    background-color: #f8f9fa;
}

.btn-cantidad {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.btn-cantidad:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.btn-cantidad:active {
    transform: scale(0.95);
}

.btn-action {
    font-weight: 600;
    padding: 10px 15px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.btn-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}

.toast {
    min-width: 300px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.toast-header {
    border-radius: 10px 10px 0 0;
    padding: 12px 15px;
}

.toast-body {
    padding: 15px;
    font-size: 0.95rem;
}

.toast-success {
    border-left: 4px solid #28a745;
}

.toast-error {
    border-left: 4px solid #dc3545;
}

.toast-info {
    border-left: 4px solid #17a2b8;
}

.toast-warning {
    border-left: 4px solid #ffc107;
}

.input_container ul {
    max-height: 250px;
    overflow-y: auto;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.input_container ul li {
    padding: 10px 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid #e9ecef;
}

.input_container ul li:hover {
    background-color: #0d6efd;
    color: white;
}

.input_container ul li:last-child {
    border-bottom: none;
}

.etiqueta {
    font-weight: 600;
    color: #495057;
}

.input_container input {
    border: 2px solid #dee2e6;
    border-radius: 8px;
    padding: 10px 15px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.input_container input:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1);
    outline: none;
}

/* Responsive adjustments for cards */
@media (max-width: 767.98px) {
    .card-producto {
        margin-bottom: 1rem !important;
    }
    
    .btn-cantidad {
        width: 40px;
        height: 40px;
    }
    
    .card-producto .card-header {
        font-size: 0.85rem;
    }
}