ul.pos-category-custom {
    list-style: none;
    margin: 0 0 20px;
    padding: 0;
}

ul.pos-category-custom li {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 14px 12px;
    margin: 4px 6px;
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    cursor: pointer;
    transition: border-color .2s, box-shadow .2s, background .2s;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .05);
    user-select: none;
    text-align: center;
    min-height: 70px;
}

ul.pos-category-custom li:hover {
    border-color: #f4a535;
    box-shadow: 0 3px 10px rgba(244, 165, 53, .18);
}

ul.pos-category-custom li.active {
    background: #f4a535;
    border-color: #f4a535;
    box-shadow: 0 4px 14px rgba(244, 165, 53, .35);
}

ul.pos-category-custom li>a:first-child {
    display: none !important;
}

ul.pos-category-custom li h6 {
    margin: 0 0 4px;
    font-size: 13px;
    font-weight: 600;
    color: #2d2d2d;
    line-height: 1.3;
}

ul.pos-category-custom li h6 a {
    color: inherit;
    text-decoration: none;
    pointer-events: none;
}

ul.pos-category-custom li span {
    font-size: 11.5px;
    font-weight: 500;
    color: #888;
}

ul.pos-category-custom li.active h6,
ul.pos-category-custom li.active h6 a,
ul.pos-category-custom li.active span {
    color: #ffffff !important;
}

.pos-categories .owl-nav {
    display: flex;
    gap: 6px;
    margin-top: 10px;
}

.pos-categories .owl-nav button {
    width: 30px;
    height: 30px;
    border-radius: 50% !important;
    background: #f1f1f1 !important;
    border: none !important;
    color: #555 !important;
    font-size: 16px !important;
    line-height: 1 !important;
    transition: background .2s, color .2s;
}

.pos-categories .owl-nav button:hover {
    background: #f4a535 !important;
    color: #fff !important;
}

.pos-categories .owl-dots {
    display: none;
}

.tabs_wrapper ul.tabs li {
    width: 20%;
}

.tabs_wrapper ul.tabs {
    display: inline-block;
    width: 100%;
    padding-left: 0;
    display: flex;
    flex-wrap: wrap;
}

aside.product-order-list .block-section {
    border-bottom: 0px;
}

aside.product-order-list .btn-block {
    border-bottom: 0;
}

aside.product-order-list .selling-info {
    margin-bottom: -20px;
}

aside.product-order-list .order-total {
    margin-top: 35px;
}

.pay-method-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    margin-bottom: 16px;
}

.pay-method-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 10px 4px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    transition: all .2s ease;
    position: relative;
    user-select: none;
}

.pay-method-btn:hover {
    border-color: #adb5bd;
    box-shadow: 0 3px 10px rgba(0, 0, 0, .08);
    transform: translateY(-1px);
}

.pay-method-btn.active {
    border-color: var(--mc);
    background: var(--mb);
    box-shadow: 0 4px 14px var(--ms);
}

.pay-method-btn .method-icon {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 900;
    color: #fff;
}

.pay-method-btn .method-label {
    font-size: 10px;
    font-weight: 700;
    color: #555;
    text-align: center;
    line-height: 1.2;
}

.pay-method-btn.active .method-label {
    color: var(--mc);
}

.pay-method-btn[data-method="bkash"] {
    --mc: #e91e8c;
    --mb: #fff0f8;
    --ms: rgba(233, 30, 140, .18);
}

.pay-method-btn[data-method="nagad"] {
    --mc: #f05a28;
    --mb: #fff5f1;
    --ms: rgba(240, 90, 40, .18);
}

.pay-method-btn[data-method="rocket"] {
    --mc: #8B1ACA;
    --mb: #f8f0ff;
    --ms: rgba(139, 26, 202, .18);
}

.pay-method-btn[data-method="cash"] {
    --mc: #16a34a;
    --mb: #f0fff4;
    --ms: rgba(22, 163, 74, .18);
}

.pay-method-btn[data-method="card"] {
    --mc: #0891b2;
    --mb: #f0fbff;
    --ms: rgba(8, 145, 178, .18);
}

.pay-method-btn[data-method="bkash"] .method-icon {
    background: #e91e8c;
}

.pay-method-btn[data-method="nagad"] .method-icon {
    background: #f05a28;
}

.pay-method-btn[data-method="rocket"] .method-icon {
    background: #8B1ACA;
}

.pay-method-btn[data-method="cash"] .method-icon {
    background: #16a34a;
}

.pay-method-btn[data-method="card"] .method-icon {
    background: #0891b2;
}

.pay-method-btn .method-check {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: var(--mc);
    color: #fff;
    font-size: 8px;
    display: none;
    align-items: center;
    justify-content: center;
}

.pay-method-btn.active .method-check {
    display: flex;
}

.payment-fields-area {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 14px 16px;
    border: 1px solid #e9ecef;
    animation: slideDown .2s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

.payment-fields-area .form-label {
    font-size: 12px;
    font-weight: 600;
    color: #555;
    margin-bottom: 4px;
}

.payment-fields-area .form-control {
    font-size: 13px;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    padding: 7px 12px;
}

.change-display {
    font-size: 12px;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 6px;
    margin-top: 5px;
}

.change-display.due {
    background: #fee2e2;
    color: #991b1b;
}

.change-display.paid {
    background: #d1fae5;
    color: #065f46;
}

.pay-summary-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 14px;
}

.pay-summary-bar .lbl {
    font-size: 12px;
    color: #999;
    font-weight: 500;
    margin-bottom: 2px;
}

.pay-summary-bar .amt {
    font-size: 22px;
    font-weight: 800;
    color: #1a1a1a;
}

.pay-method-section-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .6px;
    color: #aaa;
    margin-bottom: 8px;
}

.product-details span {
    line-height: 1.5;
}

.product-details:hover {
    background: transparent;
}

.small-text {
    font-size: 11px;
}

.product-info .price {
    margin-top: 5px;
    padding-top: 5px;
    border-top: 1px dashed #eee;
}

.product-details {
    background: #ffffff;
    border-radius: 5px;
    padding: 0;
    box-shadow: 0 4px 4px 0 rgba(237, 237, 237, .25);
    border: 1px solid #F8F8F8 !important;
    font-weight: 600;
    height: 80px;
    display: flex;
    align-items: start;
    justify-content: start;
    flex-direction: column;
}

.product-sku,
.product-color,
.product-size {
    font-weight: 600;
}

.product-info.card.in-cart {
    border: 2px solid #5c67f2 !important;
}

.product-info.card .img-bg span {
    display: none;
}

.product-info.card.in-cart .img-bg span {
    display: flex !important;
}

.btn-add-to-cart {
    width: 100%;
    margin-top: 8px;
    padding: 6px 0;
    font-size: 12px;
    font-weight: 600;
    border-radius: 6px;
    border: none;
    background: #f4a535;
    color: #fff;
    cursor: pointer;
    transition: background .2s, transform .1s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.btn-add-to-cart:hover {
    background: #e09520;
}

.btn-add-to-cart:active {
    transform: scale(0.97);
}

.product-info.card.in-cart .btn-add-to-cart {
    background: #5c67f2;
}

.product-info.card.in-cart .btn-add-to-cart:hover {
    background: #4a55e0;
}

#pos-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .15);
    transition: opacity .3s, transform .3s;
    transform: translateY(60px);
    opacity: 0;
    pointer-events: none;
}

.owl-stage {
    display: flex;
}

.owl-nav {
    display: flex;
}

.order-items-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11px;
    margin-top: 8px;
}

.order-items-table th {
    background: #f1f5f9;
    color: #64748b;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .4px;
    padding: 6px 8px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.order-items-table td {
    padding: 6px 8px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
    color: #1e293b;
}

.order-items-table tr:last-child td {
    border-bottom: none;
}

.order-items-table .line-total {
    font-weight: 700;
    color: #0f766e;
    text-align: right;
}

.order-items-table .sku-badge {
    background: #e0f2fe;
    color: #0369a1;
    border-radius: 4px;
    padding: 1px 5px;
    font-size: 10px;
    font-weight: 700;
}

.order-receipt-wrap {
    max-height: 220px;
    overflow-y: auto;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.order-meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin-bottom: 10px;
}

.order-meta-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 8px 12px;
}

.order-meta-item .meta-lbl {
    font-size: 10px;
    color: #94a3b8;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .4px;
    margin-bottom: 2px;
}

.order-meta-item .meta-val {
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
}

.order-items-section-title {
    font-size: 10px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 6px;
}

/* ================================================================
               POS INVOICE PRINT STYLES
            ================================================================ */
@media print {
    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    body>*:not(#pos-invoice-printarea) {
        display: none !important;
    }

    #pos-invoice-printarea {
        display: block !important;
        position: static !important;
        width: 100% !important;
    }

    .modal,
    .modal-backdrop {
        display: none !important;
    }
}

#pos-invoice-printarea {
    display: none;
}

/* Invoice design */
.inv-wrap {
    font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    max-width: 680px;
    margin: 0 auto;
    background: #fff;
    color: #1a1a2e;
}

/* Header band */
.inv-header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 60%, #0f3460 100%);
    color: #fff;
    padding: 28px 32px 22px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.inv-brand-name {
    font-size: 26px;
    font-weight: 900;
    letter-spacing: -0.5px;
    line-height: 1;
    margin-bottom: 4px;
}

.inv-brand-name span {
    color: #f4a535;
}

.inv-brand-sub {
    font-size: 11px;
    opacity: .65;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.inv-brand-contact {
    font-size: 11px;
    opacity: .75;
    line-height: 1.8;
}

.inv-header-right {
    text-align: right;
}

.inv-title {
    font-size: 28px;
    font-weight: 900;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #f4a535;
    line-height: 1;
    margin-bottom: 6px;
}

.inv-no {
    font-size: 13px;
    font-weight: 700;
    color: rgba(255, 255, 255, .85);
    margin-bottom: 3px;
}

.inv-date-label {
    font-size: 10px;
    opacity: .55;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.inv-date-value {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, .9);
}

/* Accent stripe */
.inv-stripe {
    height: 4px;
    background: linear-gradient(90deg, #f4a535 0%, #e91e8c 50%, #0891b2 100%);
}

/* Info section */
.inv-info-row {
    display: flex;
    gap: 0;
    border-bottom: 1px solid #e9ecef;
}

.inv-bill-to {
    flex: 1;
    padding: 18px 32px;
    border-right: 1px solid #e9ecef;
}

.inv-payment-info {
    flex: 1;
    padding: 18px 32px;
}

.inv-section-label {
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #94a3b8;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.inv-section-label::before {
    content: '';
    display: inline-block;
    width: 3px;
    height: 12px;
    background: #f4a535;
    border-radius: 2px;
}

.inv-cust-name {
    font-size: 15px;
    font-weight: 800;
    color: #1a1a2e;
    margin-bottom: 3px;
}

.inv-cust-meta {
    font-size: 12px;
    color: #64748b;
    line-height: 1.7;
}

.inv-pay-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 6px;
}

.inv-pay-pill.bKash {
    background: #fff0f8;
    color: #e91e8c;
    border: 1px solid #f9c;
}

.inv-pay-pill.Nagad {
    background: #fff5f1;
    color: #f05a28;
    border: 1px solid #fcc;
}

.inv-pay-pill.Rocket {
    background: #f8f0ff;
    color: #8B1ACA;
    border: 1px solid #dbb;
}

.inv-pay-pill.Cash {
    background: #f0fff4;
    color: #16a34a;
    border: 1px solid #9dc;
}

.inv-pay-pill.Card {
    background: #f0fbff;
    color: #0891b2;
    border: 1px solid #9ce;
}

.inv-pay-ref {
    font-size: 11px;
    color: #94a3b8;
}

.inv-pay-ref strong {
    color: #1a1a2e;
}

/* Items table */
.inv-table-wrap {
    padding: 0 32px 20px;
}

.inv-items-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    margin-top: 16px;
}

.inv-items-table thead tr {
    background: #1a1a2e;
    color: #fff;
}

.inv-items-table thead th {
    padding: 9px 12px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.inv-items-table thead th:last-child {
    text-align: right;
}

.inv-items-table thead th:nth-child(3),
.inv-items-table thead th:nth-child(4) {
    text-align: center;
}

.inv-items-table tbody tr {
    border-bottom: 1px solid #f1f5f9;
}

.inv-items-table tbody tr:nth-child(even) {
    background: #f8fafc;
}

.inv-items-table tbody td {
    padding: 9px 12px;
    vertical-align: top;
}

.inv-items-table tbody td:last-child {
    text-align: right;
    font-weight: 700;
    color: #0f3460;
}

.inv-items-table tbody td:nth-child(3),
.inv-items-table tbody td:nth-child(4) {
    text-align: center;
}

.inv-sku-tag {
    display: inline-block;
    background: #e0f2fe;
    color: #0369a1;
    border-radius: 4px;
    padding: 1px 6px;
    font-size: 9.5px;
    font-weight: 700;
    margin-bottom: 3px;
}

.inv-prod-name {
    font-weight: 700;
    color: #1a1a2e;
    font-size: 12.5px;
}

.inv-prod-meta {
    font-size: 10.5px;
    color: #94a3b8;
    margin-top: 1px;
}

.inv-unit-price {
    font-size: 12px;
    color: #475569;
}

/* Totals */
.inv-totals-row {
    display: flex;
    justify-content: flex-end;
    padding: 0 32px 20px;
}

.inv-totals-box {
    min-width: 260px;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    overflow: hidden;
}

.inv-total-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 16px;
    font-size: 12.5px;
    border-bottom: 1px solid #f1f5f9;
}

.inv-total-line:last-child {
    border-bottom: none;
}

.inv-total-line .lbl {
    color: #64748b;
}

.inv-total-line .val {
    font-weight: 700;
    color: #1a1a2e;
}

.inv-total-line.discount .lbl {
    color: #ef4444;
}

.inv-total-line.discount .val {
    color: #ef4444;
}

.inv-total-line.grand {
    background: #1a1a2e;
    padding: 12px 16px;
}

.inv-total-line.grand .lbl {
    color: rgba(255, 255, 255, .75);
    font-weight: 700;
    font-size: 13px;
}

.inv-total-line.grand .val {
    color: #f4a535;
    font-size: 18px;
    font-weight: 900;
}

.inv-total-line.paid .val {
    color: #16a34a;
}

.inv-total-line.due-row .val {
    color: #ef4444;
}

/* Notes / Terms */
.inv-footer-row {
    display: flex;
    gap: 0;
    border-top: 1px solid #e9ecef;
    padding: 18px 32px;
    align-items: flex-start;
    justify-content: space-between;
}

.inv-terms {
    font-size: 10.5px;
    color: #94a3b8;
    line-height: 1.7;
    flex: 1;
}

.inv-terms strong {
    color: #475569;
    display: block;
    margin-bottom: 3px;
    font-size: 11px;
}

.inv-qr-box {
    width: 60px;
    height: 60px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    font-size: 9px;
    color: #94a3b8;
    text-align: center;
}

.inv-qr-box svg {
    margin-bottom: 3px;
}

/* Bottom band */
.inv-bottom-band {
    background: #f8fafc;
    border-top: 1px solid #e9ecef;
    padding: 10px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.inv-bottom-band .thank {
    font-size: 12px;
    font-weight: 700;
    color: #1a1a2e;
}

.inv-bottom-band .thank span {
    color: #f4a535;
}

.inv-bottom-band .powered {
    font-size: 9.5px;
    color: #aaa;
}

/* Watermark for print */
.inv-paid-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-30deg);
    font-size: 80px;
    font-weight: 900;
    color: rgba(22, 163, 74, .06);
    pointer-events: none;
    letter-spacing: 6px;
    white-space: nowrap;
    z-index: 0;
}

.inv-content-z {
    position: relative;
    z-index: 1;
}