:root {
    --bg: #F5F7FA;
    --bg-card: #FFFFFF;
    --bg-card-hover: #F1F5F9;
    --primary: #1B64B7;
    --secondary: #F38020;
    --primary-hover: #154D8D;
    --secondary-hover: #D96E14;
    --text: #0D1117;
    --text-sec: #5A6A85;
    --border: #E2E8F0;
    --success: #22C55E;
    --danger: #EF4444;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Sidebar styling (Oscuro en Desktop) */
aside {
    width: 250px;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    background: linear-gradient(135deg, #25447b 0%, #305595 100%) !important;
    color: #F8FAFC;
    display: flex;
    flex-direction: column;
    padding: 2rem 1.25rem;
    position: fixed;
    height: 100vh;
    z-index: 99;
}

.aside-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 2.5rem;
    padding-left: 0.5rem;
}

.aside-logo {
    max-height: 38px;
    width: auto;
    object-fit: contain;
}

.aside-menu {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    flex: 1;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.85rem;
    color: #8899B8;
    text-decoration: none;
    border-radius: 9px;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.18s ease;
    cursor: pointer;
}

.menu-item:hover {
    background-color: rgba(255, 255, 255, 0.07);
    color: #E2E8F0;
    transform: translateX(2px);
}

.menu-item.active {
    background: linear-gradient(135deg, #1B64B7 0%, #2477D4 100%);
    color: #FFFFFF;
    box-shadow: 0 4px 14px rgba(27, 100, 183, 0.4);
    font-weight: 600;
}

.menu-item i {
    font-size: 1.05rem;
    width: 20px;
    text-align: center;
}

/* User block at bottom of sidebar */
.user-block {
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 600;
    font-size: 0.85rem;
    color: #E2E8F0;
}

.user-role {
    font-size: 0.68rem;
    color: #8899B8;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.07em;
    margin-top: 0.1rem;
}

/* Top Header Bar */
/* Top Header Bar */
.top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.7rem 1.25rem;
    background: linear-gradient(135deg, #25447b 0%, #305595 100%) !important;
    border: none !important;
    border-radius: 12px;
    margin-bottom: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 6px 16px rgba(0, 0, 0, 0.04);
}

.top-header-logo {
    max-height: 28px;
    width: auto;
    object-fit: contain;
}

.top-header .user-pill {
    background: linear-gradient(135deg, #F38020 0%, #D96E14 100%) !important;
    color: #FFFFFF !important;
    box-shadow: 0 2px 8px rgba(243, 128, 32, 0.28) !important;
    border: none !important;
}

.top-header .user-pill:hover {
    background: linear-gradient(135deg, #D96E14 0%, #F38020 100%) !important;
    box-shadow: 0 4px 14px rgba(243, 128, 32, 0.4) !important;
    transform: translateY(-1px);
}

.user-pill {
    padding: 0.3rem 0.85rem !important;
    font-size: 0.73rem !important;
    border-radius: 20px !important;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: linear-gradient(135deg, #1B64B7 0%, #2477D4 100%);
    border: none;
    color: #FFFFFF;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: 0.01em;
    box-shadow: 0 2px 8px rgba(27, 100, 183, 0.28);
}

.user-pill:hover {
    background: linear-gradient(135deg, #154D8D 0%, #1B64B7 100%);
    box-shadow: 0 4px 14px rgba(27, 100, 183, 0.4);
    transform: translateY(-1px);
}

/* Main Container */
main {
    flex: 1;
    margin-left: 250px;
    padding: 1.3rem;
}

.view-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.view-title {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;

}

/* Cards Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-bottom: 1.75rem;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid #E8EDF4;
    border-radius: 14px;
    padding: 1.4rem 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 6px 18px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #1B64B7, #2477D4);
    border-radius: 14px 14px 0 0;
}

.stat-card:nth-child(2)::before {
    background: linear-gradient(90deg, #F38020, #F9A03A);
}

.stat-card:nth-child(3)::before {
    background: linear-gradient(90deg, #64748B, #94A3B8);
}

.stat-card:hover {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.07), 0 12px 28px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

.stat-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-sec);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.55rem;
}

.stat-val {
    font-size: 1.9rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
}

.color-prim { color: var(--primary); }
.color-sec { color: var(--secondary); }

/* Card Table Container */
.card-table-container {
    background: var(--bg-card);
    border: 1px solid #E8EDF4;
    border-radius: 14px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 6px 18px rgba(0, 0, 0, 0.04);
    margin-bottom: 2rem;
}

.table-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text);
    letter-spacing: -0.01em;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

th {
    text-align: left;
    padding: 0.7rem 1rem;
    color: var(--text-sec);
    font-weight: 700;
    border-bottom: 1.5px solid var(--border);
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    background-color: #F8FAFC;
}

th:first-child { border-radius: 6px 0 0 0; }
th:last-child  { border-radius: 0 6px 0 0; }

td {
    padding: 0.9rem 1rem;
    border-bottom: 1px solid #F1F5F9;
    vertical-align: middle;
}

tr:last-child td {
    border-bottom: none;
}

tbody tr:nth-child(even) td {
    background-color: #FAFBFD;
}

tbody tr:hover td {
    background-color: #EEF4FF !important;
    transition: background-color 0.15s ease;
}

/* Forms & Inputs */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-sec);
    margin-bottom: 0.4rem;
    letter-spacing: 0.02em;
}

.form-control {
    width: 100%;
    padding: 0.65rem 0.9rem;
    border-radius: 8px;
    border: 1px solid #D8E1EE;
    background-color: #FFFFFF;
    color: var(--text);
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    transition: all 0.2s ease;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(27, 100, 183, 0.1);
    background-color: #FAFCFF;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.25rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    text-decoration: none;
    background: linear-gradient(135deg, #1B64B7 0%, #2477D4 100%);
    color: #FFFFFF;
    box-shadow: 0 2px 8px rgba(27, 100, 183, 0.22);
}

.btn:hover {
    background: linear-gradient(135deg, #154D8D 0%, #1B64B7 100%);
    box-shadow: 0 4px 14px rgba(27, 100, 183, 0.38);
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(27, 100, 183, 0.2);
}

.btn-orange {
    background: linear-gradient(135deg, #F38020 0%, #F9A03A 100%);
    box-shadow: 0 2px 8px rgba(243, 128, 32, 0.28);
}

.btn-orange:hover {
    background: linear-gradient(135deg, #D96E14 0%, #F38020 100%);
    box-shadow: 0 4px 14px rgba(243, 128, 32, 0.42);
}

.btn-sec {
    background: var(--bg-card-hover);
    background-image: none;
    color: var(--text);
    border: 1px solid var(--border);
    box-shadow: none;
}

.btn-sec:hover {
    background-color: var(--border);
    box-shadow: none;
    transform: translateY(-1px);
}

/* Tabs */
.tabs-header {
    display: flex;
    gap: 1.25rem;
    border-bottom: 1.5px solid var(--border);
    padding-bottom: 0;
    margin-bottom: 1.5rem;
}

.tab-btn {
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    padding: 0.55rem 0.25rem;
    margin-bottom: -1.5px;
    color: var(--text-sec);
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.18s ease;
}

.tab-btn:hover {
    color: var(--text);
}

.tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

/* Upload Area */
.upload-area {
    border: 2px dashed #C8D6E8;
    border-radius: 12px;
    padding: 3rem 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.22s ease;
    background-color: #FAFBFC;
}

.upload-area:hover {
    border-color: var(--primary);
    background-color: #EEF4FF;
    box-shadow: 0 0 0 4px rgba(27, 100, 183, 0.06);
}

.upload-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

/* Login screen styles */
.login-body {
    background: linear-gradient(135deg, #25447b 0%, #305595 100%) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.login-card {
    width: 100%;
    max-width: 400px;
    background: #FFFFFF;
    border: 1px solid #DDE3EE;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.04), 0 20px 50px rgba(0, 0, 0, 0.09);
}

.login-logo {
    max-height: 42px;
    width: auto;
    object-fit: contain;
    margin: 0 auto 2rem auto;
    display: block;
}

@media (max-width: 900px) {
    body {
        flex-direction: column;
        padding-bottom: 58px;
        font-size: 12px;
    }
    aside {
        position: fixed;
        bottom: 12px;
        left: 12px;
        right: 12px;
        width: calc(100% - 24px);
        height: 48px;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 0.2rem 0.5rem;
        border: none !important;
        border-radius: 16px !important;
        background: linear-gradient(135deg, #25447b 0%, #305595 100%) !important;
        color: #FFFFFF !important;
        z-index: 1000;
        box-shadow: 0 8px 24px rgba(9, 9, 11, 0.22) !important;
    }
    body.has-active-cart aside {
        border-radius: 0 0 16px 16px !important;
    }
    .aside-header {
        display: none;
    }
    .aside-menu {
        flex-direction: row;
        justify-content: space-around;
        width: 100%;
        margin: 0;
    }
    .menu-item {
        padding: 0.2rem 0.4rem;
        font-size: 0.65rem;
        flex-direction: column;
        gap: 0.05rem;
        align-items: center;
        border: none;
        background: transparent !important;
        color: rgba(255, 255, 255, 0.65) !important;
        box-shadow: none !important;
        transform: none !important;
    }
    .menu-item i {
        font-size: 0.95rem;
        color: #FFFFFF !important;
    }
    .menu-item.active {
        background: transparent !important;
        color: #F38020 !important;
        box-shadow: none !important;
    }
    .menu-item.active i {
        color: #F38020 !important;
    }
    .menu-item span {
        font-size: 0.6rem;
        display: block;
    }
    .user-block {
        display: none;
    }
    main {
        margin-left: 0;
        padding: 0.75rem 0.75rem 1.5rem 0.75rem;
    }
    .view-header {
        margin-bottom: 1rem;
        padding-bottom: 0.5rem;
    }
    .view-title {
        font-size: 1.05rem;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
        margin-bottom: 1rem;
    }
    .stat-card {
        padding: 0.65rem 0.75rem;
        border-radius: 8px;
        transform: none !important;
    }
    .stat-label {
        font-size: 0.55rem;
        margin-bottom: 0.15rem;
    }
    .stat-val {
        font-size: 1.1rem;
    }
    .card-table-container {
        padding: 0.75rem;
        margin-bottom: 1rem;
        border-radius: 8px;
    }
    .table-title {
        font-size: 0.85rem;
        margin-bottom: 0.75rem;
    }
    table {
        font-size: 0.7rem;
        table-layout: fixed !important;
        width: 100% !important;
    }
    th {
        padding: 0.4rem 4px !important;
        font-size: 0.6rem;
    }
    td {
        padding: 0.5rem 4px !important;
        font-size: 0.7rem;
        word-wrap: break-word;
    }
    .qty-picker {
        gap: 0.15rem !important;
        padding: 0.1rem 0.2rem !important;
        max-width: 95px !important;
    }
    .qty-btn {
        width: 20px !important;
        height: 20px !important;
        font-size: 0.8rem !important;
    }
    .qty-input {
        width: 24px !important;
        height: 20px !important;
        font-size: 0.75rem !important;
    }
    .form-group {
        margin-bottom: 0.75rem;
    }
    .form-group label {
        font-size: 0.6rem;
        margin-bottom: 0.2rem;
    }
    .form-control {
        padding: 0.4rem 0.6rem;
        font-size: 0.75rem;
        border-radius: 6px;
    }
    .btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
        border-radius: 6px;
    }
    .tab-btn {
        padding: 0.3rem 0.5rem;
        font-size: 0.75rem;
    }
    .order-layout {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    .upload-area {
        padding: 1.5rem 0.75rem;
    }
    .upload-icon {
        font-size: 1.75rem;
        margin-bottom: 0.75rem;
    }
}

/* Responsive Helper Utilities */
@media (min-width: 901px) {
    .hide-on-desktop {
        display: none !important;
    }
}
@media (max-width: 900px) {
    .hide-on-mobile {
        display: none !important;
    }
}

/* Custom Sutil Scrollbars (Estilo Apple) */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: #CBD5E1;
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94A3B8;
}

/* Para navegadores Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: #CBD5E1 transparent;
}

/* Barra de Carrito / Total Sticky */
.cart-bar {
    position: sticky;
    bottom: -1px;
    background: #fff;
    border-top: 1px solid var(--border);
    padding: 1.25rem 1.5rem;
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    box-shadow: 0 -8px 24px rgba(9, 9, 11, 0.05);
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

@media (max-width: 900px) {
    .cart-bar {
        position: fixed;
        bottom: 60px; /* Pegado justo sobre la barra flotante sin espacio intermedio */
        left: 12px;
        right: 12px;
        width: calc(100% - 24px);
        margin: 0 !important;
        border-radius: 16px 16px 0 0 !important;
        border: 1px solid #E2E8F0 !important;
        box-shadow: 0 8px 24px rgba(9, 9, 11, 0.12) !important;
        z-index: 999;
        padding: 0.6rem 1rem;
    }
    
    .cart-bar #order-subtotal {
        font-size: 1.05rem !important;
    }
    
    .cart-bar .btn-orange {
        padding: 0.5rem 1rem !important;
        font-size: 0.8rem !important;
    }
    
    /* Evitar que el contenido se oculte detrás de la barra fija */
    #tab-nuevo-pedido {
        padding-bottom: 75px !important;
    }
    
    #details-list-title {
        font-size: 0.85rem !important;
    }

    /* Modales en móvil */
    .modal-content {
        padding: 1.25rem !important;
        gap: 1rem !important;
        width: 95% !important;
        max-width: 100% !important;
        margin: 0 auto;
    }
    .modal-content h3 {
        font-size: 1.05rem !important;
        margin: -1.25rem -1.25rem 1rem -1.25rem !important;
        padding: 0.85rem 1.25rem !important;
        border-radius: 15px 15px 0 0 !important;
        background-image: url('../../logo_gdp.png'), linear-gradient(135deg, #25447b 0%, #305595 100%) !important;
        background-repeat: no-repeat, no-repeat !important;
        background-position: right 1rem center, center !important;
        background-size: auto 0.7rem, cover !important;
        padding-right: 3.5rem !important;
        color: #FFFFFF !important;
    }
    .modal-content form > div {
        gap: 0.65rem !important;
    }
    .modal-content label {
        font-size: 0.8rem !important;
        margin-bottom: 0.15rem !important;
    }
    .modal-content .form-control {
        height: 38px !important;
        font-size: 0.8rem !important;
        padding: 0.35rem 0.6rem !important;
    }
    
    /* Evitar que la tarjeta de login toque los bordes laterales del celular */
    .login-body {
        padding: 1.25rem !important;
    }
}

/* Botones de acción en tablas CRUD (Estandarización de Estilo) */
.btn-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    aspect-ratio: 1 / 1;
    flex-shrink: 0;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.65rem;
    transition: all 0.2s ease;
    color: #FFFFFF !important;
}

.btn-action.edit {
    background: linear-gradient(135deg, #1B64B7 0%, #2477D4 100%) !important;
}

.btn-action.edit:hover {
    background: linear-gradient(135deg, #154D8D 0%, #1B64B7 100%) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(27, 100, 183, 0.25);
}

.btn-action.delete {
    background: linear-gradient(135deg, #EF4444 0%, #F87171 100%) !important;
}

.btn-action.delete:hover {
    background: linear-gradient(135deg, #DC2626 0%, #EF4444 100%) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.25);
}

.btn-action.save {
    background: linear-gradient(135deg, #F38020 0%, #F9A03A 100%) !important;
}

.btn-action.save:hover {
    background: linear-gradient(135deg, #D96E14 0%, #F38020 100%) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(243, 128, 32, 0.25);
}

/* Modales Modernos y Premium */
.modal {
    position: fixed !important;
    inset: 0 !important;
    background: rgba(9, 9, 11, 0.45) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    z-index: 1000 !important;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-content {
    background: #FFFFFF !important;
    border-radius: 16px !important;
    padding: 2rem !important;
    width: 100%;
    border: 1px solid rgba(9, 9, 11, 0.06) !important;
    box-shadow: 0 25px 50px -12px rgba(9, 9, 11, 0.18) !important;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    position: relative;
    animation: modalFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-content h3 {
    font-weight: 700 !important;
    font-size: 1.25rem !important;
    color: #FFFFFF !important;
    background-image: url('../../logo_gdp.png'), linear-gradient(135deg, #25447b 0%, #305595 100%) !important;
    background-repeat: no-repeat, no-repeat !important;
    background-position: right 1.5rem center, center !important;
    background-size: auto 1.3rem, cover !important;
    margin: -2rem -2rem 1.25rem -2rem !important;
    padding: 1.15rem 2rem !important;
    border-radius: 15px 15px 0 0 !important;
    border-bottom: none !important;
    padding-right: 4.5rem !important;
}

.modal-content label {
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    color: #475569 !important; /* slate-600 */
    margin-bottom: 0.35rem !important;
    display: block !important;
}

/* Personalización premium del input select (eliminar flecha nativa) */
select.form-control {
    appearance: none !important;
    -webkit-appearance: none !important;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 0.85rem center !important;
    background-size: 1.1rem !important;
    padding-right: 2.2rem !important;
}

/* Borde superior para la sección de botones de acción de formularios */
.modal-content form > div:last-child {
    border-top: 1px solid #F1F5F9;
    padding-top: 1.25rem;
    margin-top: 1.5rem !important;
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.96) translateY(8px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Selector de Cantidades (Qty Picker) Premium */
.qty-picker {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    background: #F1F5F9;
    border-radius: 20px;
    padding: 0.1rem 0.2rem;
    border: 1px solid #E2E8F0;
    max-width: 120px;
    margin: 0 auto;
}

.qty-btn {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: none;
    background: #FFFFFF;
    color: #475569;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    transition: all 0.2s ease;
    user-select: none;
}

.qty-btn:hover {
    background: #E2E8F0;
    color: #0F172A;
    transform: scale(1.05);
}

.qty-btn:active {
    transform: scale(0.95);
}

.qty-input {
    width: 22px !important;
    height: 20px !important;
    border: none !important;
    background: transparent !important;
    text-align: center !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    color: #0F172A !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Fila de producto seleccionada con fondo naranja muy ligero */
.prod-row.selected-prod-row td {
    background-color: #ffc06b59 !important;
}

/* Cabecera superior adaptada para Escritorio y Móvil */
@media (min-width: 901px) {
    .top-header-logo {
        display: none !important;
    }
    .desktop-header-title {
        display: block !important;
        color: #FFFFFF !important;
        font-size: 1.15rem !important;
        font-weight: 700 !important;
        margin: 0 !important;
        text-transform: capitalize;
    }
}

@media (max-width: 900px) {
    .desktop-header-title {
        display: none !important;
    }
    .top-header-logo {
        display: block !important;
    }
}

/* Autocomplete Custom Select */
.custom-select-option {
    padding: 0.65rem 1rem;
    cursor: pointer;
    border-bottom: 1px solid rgba(9, 9, 11, 0.03);
    transition: background 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.custom-select-option:hover {
    background: #FFF7ED !important; /* tono naranja claro al pasar cursor */
}

.custom-select-option:last-child {
    border-bottom: none;
}

/* Cabeceras de categorías fijas (sticky) al hacer scroll */
.category-header-row {
    position: sticky !important;
    top: -1px !important;
    z-index: 10 !important;
}
