/* ESTILOS PROPIOS */

.custom-bg-dashboard {
    background-color: #021993 !important;
    clip-path: ellipse(70% 65% at 50% 25%);
}

.custom-frosted-glass {
}

.custom-bgcolor-primary {
    background-color: #021993 !important;
}

.custom-font-family-primary {
    font-family: "Poppins", sans-serif !important;
}

.custom-btn-primary {
    background-color: #021993 !important;
    color: #fff !important;
    font-size: .875rem;
    font-family: "Poppins", sans-serif !important;
}

.custom-btn-secondary {
    background-color: #fff !important;
    color: #021993 !important;
    font-size: .875rem;
    font-family: "Poppins", sans-serif !important;
}

.custom-btn-primary[disabled]{
    background-color: #021993 !important;
    opacity: 0.65 !important;
    cursor: not-allowed !important;
}

.custom-btn-cancel {
    background-color: rgb(239 68 68) !important;
    color: #fff !important;
    font-size: .875rem;
    font-family: "Poppins", sans-serif !important;
}

.custom-palette-bg-primary {
    background-color: #021993 !important;
}

.custom-palette-bg-secondary {
    background-color: #fff !important;
}

.custom-palette-color-secondary {
    color: #021993 !important;
    font-size: .875rem !important;
    font-weight: 500 !important;
    line-height: 1.5 !important;
    font-family: "Poppins", sans-serif !important;
}

.custom-palette-color-primary {
    color: #021993 !important;
    font-size: .875rem !important;
    font-weight: 500 !important;
    line-height: 1.5 !important;
    font-family: "Poppins", sans-serif !important;
}

.custom-palette-bg-cancel {
    background-color: rgb(239 68 68) !important;
}

/* ESTILOS BASE */
.graph {
    max-height: 275px;
    max-width: 275px;
}


.view-bills {
    font-weight: 550;
}

.table-wrapper-scroll-y {
    display: block;

}

.my-custom-scrollbar {
    position: relative;
    height: 320px;
    overflow: auto;
    width: 100%;
    min-height: 41vh !important
}

.my-custom-scrollbar::-webkit-scrollbar {
    width: 3px !important;
    height: 5px !important;
}



.input-sm {
    height: 30px;
}

.input-sm-2 {
    height: 10px;
}

.report-text {
    font-size: 11px;
}

.ledger-text {
    font-size: 12px;
}

.bill-text {
    font-size: 15px;
}

.my-custom-scrollbar-stock {
    position: relative;
    height: 380px;
    overflow: auto;
    width: 100%;
    min-height: 53vh !important
}

.status-container {
    height: 250px;
    overflow-y: scroll;
    padding: 5px;
}

.my-custom-scrollbar-stock::-webkit-scrollbar {
    width: 3px !important;
    height: 5px !important;
}


.my-custom-scrollbar-ledger {
    position: relative;
    height: 450px;
    overflow: auto;
    width: 100%;
    min-height: 65vh !important
}

.my-custom-scrollbar-ledger::-webkit-scrollbar {
    width: 3px !important;
    height: 5px !important;
}


.my-custom-scrollbar-bill2 {
    position: relative;
    height: 300px;
    overflow: auto;
    width: 100%;
    min-height: 50vh !important
}

.my-custom-scrollbar-bill2::-webkit-scrollbar {
    width: 3px !important;
    height: 5px !important;
}

.pos-code {
    font-weight: 750;
    font-size: 16px;
}

.pos-text {
    font-size: 13px;
}


.pos-card:active + .pos-card,
.pos-card:checked + .pos-card,
.pos-card.active,
.pos-card:active,
.pos-card:focus {
    color: #FFF;
    background-color: rgba(0, 204, 189, .5);
}

.pos-card:hover:not(.disabled):not(:disabled) {
    color: #FFF;
    background-color: rgba(0, 204, 189, .5);
}


.pos-card-wrapper-scroll-y {
    display: block;

}

.my-custom-scrollbar-pos-card {
    position: relative;
    height: 400px;
    overflow: auto;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    min-height: 55vh !important
}

.my-custom-scrollbar-pos-card::-webkit-scrollbar {
    width: 3px !important;

}


.my-custom-scrollbar-pos-card::-webkit-scrollbar-track {
    background: transparent;
}

.my-custom-scrollbar-pos-card::-webkit-scrollbar-thumb {
    background: transparent;
}

.my-custom-scrollbar-pos-card::-webkit-scrollbar-thumb:hover {
    background: transparent;
}




.order-list-wrapper-scroll-y {
    display: block;

}

.my-custom-scrollbar-order-list {
    position: relative;
    height: 210px;
    overflow: auto;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    min-height: 30vh !important
}

.my-custom-scrollbar-order-list::-webkit-scrollbar {
    width: 3px !important;

}


.my-custom-scrollbar-order-list::-webkit-scrollbar-track {
    background: transparent;
}

.my-custom-scrollbar-order-list::-webkit-scrollbar-thumb {
    background: transparent;
}

.my-custom-scrollbar-order-list::-webkit-scrollbar-thumb:hover {
    background: transparent;
}




.btn-counter {
    max-height: 30px;
    max-width: 30px;
}


.customer-badge {
    height: 30px;
    width: 30px;
}

.login-cover {
    min-height: 780px;
    max-width: 1200px;
}

.inventory-text {
    font-size: 13px;
}



.match-height > [class*=col] {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-flow: column;
    -ms-flex-flow: column;
    flex-flow: column
}

.match-height > [class*=col] > .card {
    -webkit-box-flex: 1;
    -webkit-flex: 1 1 auto;
    -ms-flex: 1 1 auto;
    flex: 1 1 auto
}

.login-logo {
    width: 60px;
}


.board-title {
    background-color: #f1f1f1;
    padding: 5px 20px;
}

.flex {
    display: flex;
    flex-direction: row;
}

.whitespace-no-wrap {
    white-space: nowrap;
}

.scrum-board {
    flex: 1;
    padding: 20px;
}

.scrum-board-processing {
    flex: 1;
    padding: 20px;
    border-right: 1px solid #ddd;
    border-left: 1px solid #ddd;
}




.scrum-task-pending {
    position: relative;
    display: block;
    padding: 10px;
    border: .5px solid #8392ab;
    border-left: 5px solid #8392ab;
    margin-bottom: 10px;
    border-radius: 15px;
    background-color: #fff;
    cursor: all-scroll;
}


.scrum-task-processing {
    position: relative;
    display: block;
    padding: 10px;
    border: .5px solid #faae42;
    border-left: 5px solid #faae42;
    margin-bottom: 10px;
    border-radius: 15px;
    background-color: #fff;
    cursor: all-scroll;
}


.scrum-task-ready {
    position: relative;
    display: block;
    padding: 10px;
    border: .5px solid #2dce89;
    border-left: 5px solid #2dce89;
    margin-bottom: 10px;
    border-radius: 15px;
    background-color: #fff;
    cursor: all-scroll;
}



.scrum-board-column {
    min-height: 200px;
    padding: 10px;
    height: 100%;
}







.today-task-pending {
    position: relative;
    display: block;
    padding: 5px;
    border: .5px solid #8392ab;
    border-left: 5px solid #8392ab;
    margin-bottom: 5px;
    border-radius: 15px;
    background-color: #fff;
}


.today-task-processing {
    position: relative;
    display: block;
    padding: 5px;
    border: .5px solid #faae42;
    border-left: 5px solid #faae42;
    margin-bottom: 5px;
    border-radius: 15px;
    background-color: #fff;
}


.today-task-ready {
    position: relative;
    display: block;
    padding: 5px;
    border: .5px solid #2dce89;
    border-left: 5px solid #2dce89;
    margin-bottom: 5px;
    border-radius: 15px;
    background-color: #fff;
}

.today-task-delivered {
    position: relative;
    display: block;
    padding: 5px;
    border: .5px solid #0083ff;
    border-left: 5px solid #0083ff;
    margin-bottom: 5px;
    border-radius: 15px;
    background-color: #fff;
}

.today-task-returned {
    position: relative;
    display: block;
    padding: 5px;
    border: .5px solid #f5365c;
    border-left: 5px solid #f5365c;
    margin-bottom: 5px;
    border-radius: 15px;
    background-color: #fff;
}

.input-counter {
    max-width: 80px !important;
}

.prevent-scroll{
    overflow: hidden;
}
.text-wrap{
    text-wrap: wrap;
}

.custom-pos-grid {
    display: grid;
    gap: 0.5rem;
    grid-template-columns: 1fr;
    grid-auto-flow: row;
}

@media (min-width: 600px) {
    .custom-pos-grid {
        grid-template-columns: none;
        grid-template-rows: repeat(10, max-content);
        grid-auto-flow: column;
    }
}

@media (min-width: 1024px) {
    .custom-pos-grid {
        grid-template-columns: none;
        grid-template-rows: repeat(8, max-content);
        grid-auto-flow: column;
    }
}

/* ========== DASHBOARD REDESIGN ========== */

/* Stat Cards */
.dash-stat-card {
    border: none;
    border-radius: 0.875rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
    position: relative;
}

.dash-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    border-radius: 0.875rem 0 0 0.875rem;
}

.dash-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.dash-stat-pending::before { background: #8392ab; }
.dash-stat-processing::before { background: #faae42; }
.dash-stat-ready::before { background: #2dce89; }
.dash-stat-delivered::before { background: #021993; }

.dash-stat-label {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #8898aa;
}

.dash-stat-value {
    font-size: 1.35rem;
    font-weight: 700;
    color: #32325d;
    line-height: 1.2;
}

.dash-stat-amount {
    font-size: 0.72rem;
    font-weight: 500;
    color: #525f7f;
}

.dash-stat-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
    font-size: 0.85rem;
}

.dash-stat-icon-pending { background: linear-gradient(135deg, #8392ab, #6c7fa0); }
.dash-stat-icon-processing { background: linear-gradient(135deg, #faae42, #f5a623); }
.dash-stat-icon-ready { background: linear-gradient(135deg, #2dce89, #24b573); }
.dash-stat-icon-delivered { background: linear-gradient(135deg, #021993, #0033cc); }

/* Period Tabs */
.dash-period-tabs {
    gap: 0.35rem;
}

.dash-period-tabs .nav-link {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.45rem 1rem;
    border-radius: 0.5rem !important;
    color: #525f7f !important;
    background: #e2e6ea !important;
    border: none !important;
    transition: all 0.2s ease;
}

.dash-period-tabs .nav-link:hover {
    color: #fff !important;
    background: #8392ab !important;
}

.dash-period-tabs .nav-link.active {
    color: #fff !important;
    background: #021993 !important;
    box-shadow: 0 3px 10px rgba(2, 25, 147, 0.3);
}

/* Sales Table */
.dash-sales-table-wrapper {
    overflow-x: auto;
    border-radius: 0.5rem;
    border: 1px solid #f0f0f0;
}

.dash-sales-table {
    font-size: 0.78rem;
}

.dash-sales-table thead th {
    background: #f7f8fa;
    color: #8898aa;
    font-weight: 600;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    text-align: center;
    padding: 0.5rem 0.4rem;
    border-bottom: 2px solid #e9ecef;
    white-space: nowrap;
}

.dash-sales-table tbody td {
    text-align: center;
    padding: 0.4rem;
    vertical-align: middle;
    border-color: #f3f4f6;
    white-space: nowrap;
}

.dash-row-highlight {
    background: #fafbfc;
}

.dash-row-highlight td {
    font-weight: 600;
    color: #32325d;
}

/* ========== POS FICHAS ========== */

.pos-fichas-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.4rem;
    width: 100%;
    height: fit-content;
}

.pos-ficha {
    text-decoration: none !important;
    display: block;
}

.pos-ficha-inner {
    background: #fff;
    border-radius: 0.5rem;
    border: 1.5px solid #e2e6ea;
    overflow: hidden;
    transition: all 0.15s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.pos-ficha-inner:hover {
    border-color: #021993;
    box-shadow: 0 3px 12px rgba(2, 25, 147, 0.15);
    transform: translateY(-1px);
}

.pos-ficha-inner:active {
    transform: translateY(0);
    box-shadow: 0 1px 6px rgba(2, 25, 147, 0.1);
}

.pos-ficha-icon {
    padding: 1rem 0.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.pos-ficha-icon img {
    width: 88px;
    height: 88px;
    object-fit: contain;
}

.pos-ficha-name {
    width: 100%;
    padding: 0.35rem 0.3rem;
    background: #021993;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.2;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* Responsive: fichas categorías POS */
@media (max-width: 576px) {
    .pos-fichas-grid { grid-template-columns: repeat(3, 1fr); gap: 0.25rem; }
    .pos-ficha-icon { padding: 0.7rem 0.2rem; }
    .pos-ficha-icon img { width: 64px; height: 64px; }
    .pos-ficha-name { font-size: 0.65rem; padding: 0.25rem 0.2rem; }
}
@media (min-width: 577px) and (max-width: 1023px) {
    .pos-fichas-grid { grid-template-columns: repeat(4, 1fr); }
    .pos-ficha-icon img { width: 76px; height: 76px; }
}

/* ========== POS LAYOUT - BAR & HEADER ========== */

.pos-bar-btn {
    padding: 0.4rem 0.5rem;
    border-radius: 0.4rem;
    border: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
    cursor: pointer;
}

/* ========== POS CART HEADER ========== */

/* Fix: tw-h-[calc(100vh-2rem)] not in compiled Tailwind */
.tw-h-\[calc\(100vh-2rem\)\] {
    height: calc(100vh - 2rem);
}

.pos-cart-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.pos-cart-header-left {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.pos-customer-input-group {
    display: flex;
    flex: 1;
    min-width: 0;
}

.pos-customer-input {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
    padding: 0 0.5rem;
    background: #F0F3F5;
    border: 1px solid #dee2e5;
    border-radius: 0.4rem 0 0 0.4rem;
    position: relative;
}

.pos-customer-add-btn {
    padding: 0.45rem 0.6rem;
    border: 0;
    border-radius: 0 0.4rem 0.4rem 0;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.pos-points-badge {
    background: #ffc107;
    color: #333;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.15rem 0.45rem;
    border-radius: 1rem;
    white-space: nowrap;
}

.pos-cart-header-right {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
}

.pos-order-badge {
    background: #021993;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 0.35rem;
    white-space: nowrap;
}

.pos-date-chip {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 0.2rem 0.45rem;
    border-radius: 0.35rem;
    cursor: pointer;
    position: relative;
    white-space: nowrap;
    transition: background 0.15s;
}

.pos-date-chip:hover {
    background: rgba(255,255,255,0.25);
}

/* ========== POS CART TABLE ========== */

.pos-cart-table-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    border-radius: 0.5rem;
    overflow: hidden;
    border: 1px solid #e2e6ea;
    min-height: 0;
}

.pos-cart-table {
    width: 100%;
    border-collapse: collapse;
}

.pos-cart-table thead {
    background: #edf0f3;
}

.pos-cart-table th {
    padding: 0.35rem 0.4rem;
    font-size: 0.65rem;
    font-weight: 700;
    color: #525f7f;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.pos-cart-table td {
    padding: 0.15rem 0.35rem;
    font-size: 0.72rem;
    vertical-align: middle;
    line-height: 1.2;
}

.pos-cart-row {
    border-bottom: 1px solid #edf0f3;
}

/* Fila de notas colapsada: sin espacio */
.pos-cart-notes-cell {
    padding: 0 !important;
}

.pos-cart-row:hover {
    background: #f8f9fb;
}

.pos-note-btn {
    padding: 0.2rem;
    border-radius: 0.25rem;
    border: 0;
    background: #edf0f3;
    display: inline-flex;
    cursor: pointer;
}

.pos-price-input {
    width: 3.5rem;
    padding: 0.2rem 0.35rem;
    background: #F0F3F5;
    border: 1px solid #dee2e5;
    border-radius: 0.3rem;
    font-size: 0.7rem;
    text-align: center;
    color: #2C3249;
}

.pos-qty-btn {
    padding: 0.2rem 0.4rem;
    border-radius: 0.3rem;
    border: 0;
    color: #fff;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

.pos-del-btn {
    padding: 0.25rem 0.35rem;
    background: #ef4444;
    border-radius: 0.3rem;
    border: 0;
    color: #fff;
    display: inline-flex;
    cursor: pointer;
}

/* ========== POS TOTALS ========== */

.pos-totals-grid {
    display: flex;
    justify-content: space-between;
    padding: 0.2rem 0.5rem;
    border-top: 1px dashed #d1d5db;
    margin-top: 0.1rem;
    gap: 0.5rem;
}

.pos-totals-left,
.pos-totals-right {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.pos-totals-right {
    text-align: right;
}

.pos-total-line {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.68rem;
    color: #6b7280;
}

.pos-total-line b {
    color: #374151;
    white-space: nowrap;
}

.pos-grand-total {
    font-size: 0.8rem;
    font-weight: 800;
    color: #111;
    border-top: 1px solid #d1d5db;
    padding-top: 0.2rem;
    margin-top: 0.1rem;
}

.pos-grand-total b {
    color: #021993;
    font-size: 0.85rem;
}

.pos-icon-btn {
    padding: 0.15rem;
    border-radius: 0.2rem;
    border: 1px solid #d1d5db;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    line-height: 1;
}

/* ========== POS ACTION BAR ========== */

.pos-action-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.2rem 0.25rem;
    margin-top: 0.1rem;
}

.pos-badge-dark {
    background: #1f2937;
    color: #fff;
    font-size: 0.62rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 1rem;
}

.pos-save-btn {
    padding: 0.45rem 1.2rem;
    border-radius: 0.4rem;
    border: 0;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(2,25,147,0.2);
}

.pos-clear-btn {
    padding: 0.4rem 0.5rem;
    border-radius: 0.4rem;
    border: 0;
    color: #fff;
    display: flex;
    align-items: center;
    cursor: pointer;
}

/* FAB flotante carrito (solo móvil) */
.pos-fab-cart {
    display: none;
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    z-index: 50;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #021993;
    color: #fff;
    border: none;
    box-shadow: 0 4px 14px rgba(2,25,147,0.4);
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}
.pos-fab-cart:active { transform: scale(0.92); }
.pos-fab-cart .pos-fab-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #f5365c;
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}
@media (max-width: 1023px) {
    .pos-fab-cart { display: flex; }
}

/* Responsive: cart header y totals en móvil */
@media (max-width: 576px) {
    .pos-cart-header { flex-direction: column; gap: 0.25rem; }
    .pos-cart-header-right { width: 100%; justify-content: space-between; }
    .pos-totals-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.1rem 0.5rem;
        padding: 0.3rem 0.4rem;
        margin-top: 0.2rem;
    }
    .pos-totals-left,
    .pos-totals-right {
        width: 100%;
        gap: 0.05rem;
    }
    .pos-totals-right {
        text-align: right;
        border-top: none;
        padding-top: 0;
        margin-top: 0;
    }
    .pos-total-line {
        justify-content: space-between;
        width: 100%;
        font-size: 0.65rem;
        padding: 0;
        line-height: 1.3;
    }
    .pos-total-line b {
        font-size: 0.65rem;
    }
    .pos-grand-total {
        font-size: 0.75rem;
        padding-top: 0.15rem;
        margin-top: 0.05rem;
    }
    .pos-grand-total b {
        font-size: 0.8rem;
    }
    .pos-action-bar {
        padding: 0.25rem 0.15rem;
        margin-top: 0.15rem;
    }
    .pos-save-btn {
        padding: 0.35rem 0.8rem;
        font-size: 0.7rem;
    }
}

/* ========== SERVICE TYPE MODAL REDESIGN ========== */

.pos-stype-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.5rem;
    width: 100%;
}

.pos-stype-card {
    background: #fdf8f0;
    border: 2px solid #f0e6d6;
    border-radius: 0.6rem;
    padding: 0.6rem 0.5rem;
    cursor: pointer;
    text-align: center;
    transition: all 0.15s ease;
    user-select: none;
}

.pos-stype-card:hover {
    border-color: #d4c4a8;
    background: #fff9f0;
}

.pos-stype-card.active {
    border-color: #5e72e4;
    background: #eef0fd;
    box-shadow: 0 0 0 1px #5e72e4;
}

.pos-stype-card-name {
    font-weight: 600;
    font-size: 0.85rem;
    color: #2C3249;
    line-height: 1.2;
    margin-bottom: 0.25rem;
}

.pos-stype-card-price {
    font-weight: 700;
    font-size: 0.95rem;
    color: #5e72e4;
}

/* Responsive: modal servicios */
@media (max-width: 576px) {
    .pos-stype-grid { grid-template-columns: repeat(3, 1fr); gap: 0.35rem; }
    .pos-stype-card { padding: 0.4rem 0.25rem; }
    .pos-stype-card-name { font-size: 0.7rem; }
    .pos-stype-card-price { font-size: 0.75rem; }
    .pos-stype-qty-panel { flex-direction: column; gap: 0.4rem; padding: 0.5rem; }
    .pos-stype-qty-controls { justify-content: center; }
}
@media (min-width: 577px) and (max-width: 768px) {
    .pos-stype-grid { grid-template-columns: repeat(3, 1fr); }
}

.pos-stype-qty-panel {
    background: #fff;
    border: 2px solid #5e72e4;
    border-radius: 0.6rem;
    padding: 0.75rem 1rem;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.pos-stype-qty-label {
    font-weight: 600;
    font-size: 0.85rem;
    color: #2C3249;
    flex: 1;
    min-width: 0;
}

.pos-stype-qty-label small {
    display: block;
    font-weight: 500;
    color: #5e72e4;
    font-size: 0.8rem;
}

.pos-stype-qty-controls {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.pos-stype-qty-btn {
    width: 36px;
    height: 36px;
    border-radius: 0.4rem;
    border: 0;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 700;
}

.pos-stype-qty-input {
    width: 70px;
    text-align: center;
    padding: 0.35rem 0.25rem;
    background: #F0F3F5;
    border: 1px solid #dee2e5;
    border-radius: 0.4rem;
    font-size: 1rem;
    font-weight: 600;
    color: #2C3249;
}

.pos-stype-qty-input:focus {
    outline: none;
    border-color: #5e72e4;
    box-shadow: 0 0 0 2px rgba(94,114,228,0.15);
}

/* Gap utility for older Bootstrap */
.gap-2 { gap: 0.5rem; }
