/* Theme 1 — compact 2-up product tiles + no page scroll (lists scroll internally). */

.pos-theme-1 .subitems {
    width: 100% !important;
}

.pos-theme-1 .bill_area {
    width: 100% !important;
}

.pos-theme-1 .t1-product-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    width: 100%;
    align-content: start;
}

.pos-theme-1 .t1-product-grid .items_card,
.pos-theme-1 .t1-plu {
    width: 100% !important;
    height: auto !important;
    min-height: 54px;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    text-align: left;
    border-radius: 8px !important;
    border: 1px solid rgba(15, 23, 42, 0.08) !important;
    padding: 6px 8px !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
    font-weight: 700;
    line-height: 1.15;
    cursor: pointer;
}

.pos-theme-1 .t1-plu:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.08);
}

.pos-theme-1 .t1-plu:active {
    transform: scale(0.97);
    box-shadow: inset 0 0 0 2px #3b82f6;
}

.pos-theme-1 .t1-plu-name,
.pos-theme-1 .t1-product-grid .items_card_description p {
    font-size: 11px;
    font-weight: 700;
    color: #0f172a;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-align: left !important;
    margin: 0;
    line-height: 1.25;
}

.pos-theme-1 .t1-plu-rate,
.pos-theme-1 .t1-product-grid .items_card_footer {
    font-size: 11px;
    font-weight: 700;
    margin-top: 4px;
    color: #334155;
    text-align: left !important;
    width: 100%;
    border-top: none !important;
    padding: 0 !important;
}

.pos-theme-1 .t1-item-list {
    background: transparent !important;
    padding: 8px !important;
}

.pos-theme-1 .t1-item-list .t1-product-grid {
    background: transparent;
    padding: 0;
}

/* Category chips and product tiles share one catalog panel. */
.pos-theme-1 .t1-catalog-panel {
    display: flex;
    flex-direction: column;
    flex: 1 1 0;
    min-height: 0;
    height: 100%;
    width: 100%;
    gap: 8px;
    padding: 8px;
    background: #fff;
    border: 1px solid #e6ebf2;
    border-radius: 10px;
    box-sizing: border-box;
}

.pos-theme-1 .t1-catalog-search {
    flex: 0 0 auto;
}

.pos-theme-1 .t1-catalog-search .form-control {
    height: 36px;
    border-radius: 8px;
    background: #f4fbfc;
    font-size: 13px;
}

.pos-theme-1 .t1-cats {
    display: flex;
    flex: 0 0 auto;
    flex-wrap: nowrap;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 6px;
    border-bottom: 1px solid #eef2f7;
}

.pos-theme-1 .t1-cats::-webkit-scrollbar {
    height: 6px;
}

.pos-theme-1 .t1-cats::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 8px;
}

.pos-theme-1 .t1-catalog-panel .t1-cat {
    flex: 0 0 auto;
    min-width: 108px;
    max-width: 190px;
    min-height: 36px;
    margin: 0;
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: #f8fafc;
    color: #0f172a;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
}

.pos-theme-1 .t1-catalog-panel .t1-cat-0 { background: #ecfeff; }
.pos-theme-1 .t1-catalog-panel .t1-cat-1 { background: #fee2e2; }
.pos-theme-1 .t1-catalog-panel .t1-cat-2 { background: #fef9c3; }
.pos-theme-1 .t1-catalog-panel .t1-cat-3 { background: #dcfce7; }
.pos-theme-1 .t1-catalog-panel .t1-cat-4 { background: #ffedd5; }
.pos-theme-1 .t1-catalog-panel .t1-cat-5 { background: #dbeafe; }
.pos-theme-1 .t1-catalog-panel .t1-cat-6 { background: #fce7f3; }
.pos-theme-1 .t1-catalog-panel .t1-cat-7 { background: #e0e7ff; }

.pos-theme-1 .t1-catalog-panel .t1-cat.is-on {
    box-shadow: inset 0 0 0 2px #011C50;
}

.pos-theme-1 .t1-catalog-panel .t1-product-grid {
    flex: 1 1 0;
    min-height: 0;
}

/* Category view: catalog | quantity | bill, same three columns as the non-category till. */
.pos-theme-1 .t1-catalog-col {
    flex: 1 1 34%;
    width: 34%;
    max-width: 38%;
    min-width: 0;
    height: 100%;
    max-height: 100%;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding-left: 6px;
    padding-right: 6px;
}

.pos-theme-1 .t1-till:has(.t1-catalog-col) > .t1-qty-col {
    flex: 1 1 28%;
    width: 28%;
    max-width: 30%;
    min-width: 220px;
}

.pos-theme-1 .t1-till:has(.t1-catalog-col) > .col-lg-6 {
    flex: 1 1 38%;
    width: 38%;
    max-width: 40%;
}

/* ===== Fit the POS form to the viewport (no page scroll) ===== */

.layout-page:has(.pos-theme-1.card:not(.ng-hide)) {
    overflow: hidden;
}

.layout-page:has(.pos-theme-1.card:not(.ng-hide)) .content-wrapper {
    height: 100%;
    max-height: 100%;
    overflow: hidden;
}

.layout-page:has(.pos-theme-1.card:not(.ng-hide)) .container-p-y {
    padding: 0 !important;
}

#customize-form:has(.pos-theme-1.card:not(.ng-hide)) {
    padding: 0 !important;
    height: calc(100dvh - 62px);
    max-height: calc(100dvh - 62px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

html.pos-hide-top-menu #customize-form:has(.pos-theme-1.card:not(.ng-hide)) {
    height: 100dvh;
    max-height: 100dvh;
}

.pos-theme-1.card {
    display: flex;
    flex-direction: column;
    flex: 1 1 0;
    height: 100%;
    max-height: 100%;
    margin-bottom: 0 !important;
    overflow: hidden;
    border-radius: 0;
}

.pos-theme-1.card > .card-header {
    flex: 0 0 auto;
    padding-top: 4px !important;
    padding-bottom: 4px !important;
}

.pos-theme-1.card > .card-body {
    flex: 1 1 0;
    min-height: 0;
    overflow: hidden;
    padding: 6px !important;
    display: flex;
    flex-direction: column;
}

.pos-workspace.pos-theme-1 {
    flex: 1 1 0;
    min-height: 0;
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.pos-workspace.pos-theme-1 .t1-till {
    flex: 1 1 0;
    min-height: 0;
}

.pos-workspace.pos-theme-1 > ng-include,
.pos-workspace.pos-theme-1 > [ng-include] {
    display: block;
    height: 100%;
    min-height: 0;
}

.pos-theme-1 .t1-till {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    height: 100%;
    min-height: 0;
    margin-left: 0;
    margin-right: 0;
    overflow: hidden;
}

.pos-theme-1 .t1-till > [class*="col-"] {
    height: 100%;
    max-height: 100%;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding-left: 6px;
    padding-right: 6px;
}

.pos-theme-1 .t1-till .point_of_sales_bill_wrapper,
.pos-theme-1 .t1-till .point_of_sales_bill_wrapper > div,
.pos-theme-1 .t1-till .billing_body_wrapper,
.pos-theme-1 .t1-till .subitems_and_bill_area,
.pos-theme-1 .t1-till .subitems,
.pos-theme-1 .t1-till .bill_area,
.pos-theme-1 .t1-till .bill_body {
    display: flex;
    flex-direction: column;
    flex: 1 1 0;
    min-height: 0;
    height: 100%;
    max-height: 100%;
    width: 100% !important;
}

.pos-theme-1 .t1-till .billing_body_wrapper {
    padding: 0 !important;
    column-gap: 0 !important;
}

.pos-theme-1 .t1-till .subitems {
    flex-wrap: nowrap !important;
    row-gap: 8px !important;
    column-gap: 0 !important;
    align-content: stretch !important;
}

.pos-theme-1 .t1-till .subitems > .card {
    flex: 0 0 auto;
    margin-bottom: 0 !important;
}

.pos-theme-1 .t1-till .scroll-750-y,
.pos-theme-1 .t1-till .scroll-685-y {
    height: auto !important;
    max-height: none !important;
    flex: 1 1 0;
    min-height: 0;
    overflow-y: auto;
}

.pos-theme-1 .t1-till .item_list {
    flex: 1 1 0;
    min-height: 0;
    overflow-y: auto;
    height: auto !important;
    padding: 10px !important;
}

.pos-theme-1 .t1-till .t1-product-grid {
    flex: 1 1 0;
    min-height: 0;
    overflow-y: auto;
}

.pos-theme-1 .t1-till .bill_header {
    flex: 0 0 auto;
}

.pos-theme-1 .t1-till .billing_items {
    flex: 1 1 0;
    min-height: 0;
    overflow-y: auto;
    margin-bottom: 0;
}

.pos-theme-1 .t1-till .bill_total_amount_area,
.pos-theme-1 .t1-till .bill_save_and_print_area,
.pos-theme-1 .t1-till .calculator_area {
    flex: 0 0 auto;
}

.pos-theme-1 .t1-till .bill_total_amount_area {
    padding: 4px 8px !important;
}

.pos-theme-1 .t1-till .bill_total_amount_area ul li button {
    padding: 4px 8px !important;
    font-size: 12px !important;
}

.pos-theme-1 .t1-till .bill_save_and_print_area {
    padding: 2px 8px !important;
}

.pos-theme-1 .t1-till .bill_save_and_print_area ul {
    flex-wrap: wrap !important;
    gap: 4px !important;
}

.pos-theme-1 .t1-till .t1-txn-chip {
    height: 30px !important;
    min-width: 0;
    max-width: 130px;
    padding: 2px 8px !important;
    font-size: 11px !important;
    font-weight: 700;
    line-height: 1.1;
    display: inline-flex !important;
    align-items: center;
    gap: 4px;
    background: #dcfce7 !important;
    color: #166534 !important;
    border: 1px solid #86efac !important;
    border-radius: 6px !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pos-theme-1 .t1-till .t1-txn-chip .ti {
    font-size: 12px;
    opacity: 0.75;
    flex-shrink: 0;
}

.pos-theme-1 .t1-till .bill_save_and_print_area ul li button {
    height: 30px !important;
    font-size: 12px !important;
    padding: 2px 6px !important;
}

.pos-theme-1 .t1-till .calculator_area {
    padding: 4px 0 0 !important;
    margin-top: auto;
}

.pos-theme-1 .t1-till .calculator_area .t1-console-foot {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin-top: 4px;
}

.pos-theme-1 .t1-till .t1-pay-cta,
.pos-theme-1 .t1-till .t1-save-print-cta {
    width: 100%;
    min-height: 36px;
    height: 36px;
    border: none !important;
    border-radius: 8px !important;
    color: #fff !important;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 8px !important;
    line-height: 1.15;
}

.pos-theme-1 .t1-till .t1-pay-cta {
    background: linear-gradient(180deg, #2563eb 0%, #1d4ed8 100%) !important;
    font-size: 14px !important;
    box-shadow: 0 1px 4px rgba(37, 99, 235, 0.22);
}

.pos-theme-1 .t1-till .t1-save-print-cta {
    background: linear-gradient(180deg, #0f766e 0%, #0d9488 100%) !important;
    font-size: 13px !important;
    box-shadow: 0 1px 4px rgba(13, 148, 136, 0.22);
}

.pos-theme-1 .t1-till .t1-save-print-cta i {
    font-size: 16px;
    flex-shrink: 0;
}

.pos-theme-1 .t1-till .t1-pay-cta:disabled,
.pos-theme-1 .t1-till .t1-save-print-cta:disabled {
    opacity: 0.45;
}

.pos-theme-1 .t1-till .calculatorTable tbody tr td button.qty_color,
.pos-theme-1 .t1-till .calculatorTable tbody tr td button.price_color {
    background: #fff !important;
    color: #111 !important;
    border: 1px solid #d0d5dd !important;
}

.pos-theme-1 .t1-till .calculatorTable tbody tr td button.is-on,
.pos-theme-1 .qty_color.is-on,
.pos-theme-1 .price_color.is-on {
    background: #2563eb !important;
    color: #fff !important;
    border-color: #2563eb !important;
}

.pos-theme-1 .t1-qty-col {
    margin-top: 0 !important;
    flex: 1 1 30%;
    max-width: 34%;
    min-width: 260px;
    overflow: hidden;
}

.pos-theme-1 .t1-qty-pad {
    flex: 1 1 0;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    margin-bottom: 0 !important;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.pos-theme-1 .t1-qty-pad > .card-header {
    flex: 0 0 auto;
    padding: 8px 12px !important;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pos-theme-1 .t1-qty-pad > .card-body,
.pos-theme-1 .t1-qty-pad-body {
    flex: 1 1 0;
    min-height: 0;
    overflow: auto;
    padding: 10px 12px !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: 100%;
    box-sizing: border-box;
}

.pos-theme-1 .t1-qty-fields {
    display: flex;
    gap: 8px;
    width: 100%;
    margin-bottom: 10px;
}

.pos-theme-1 .t1-qty-field {
    flex: 1 1 0;
    min-width: 0;
}

.pos-theme-1 .t1-qty-field label {
    display: block;
    margin-bottom: 4px;
    font-size: 12px;
    font-weight: 600;
}

.pos-theme-1 .t1-qty-field .form-control {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.pos-theme-1 .t1-qty-pad .row {
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100%;
    max-width: 100%;
}

.pos-theme-1 .t1-qty-pad .dialrow {
    gap: 6px;
    margin-top: 6px !important;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.pos-theme-1 .t1-qty-pad .digit {
    height: 42px;
    min-width: 0;
    font-size: 15px;
    padding: 0;
    flex: 1 1 0;
}

.pos-theme-1 .t1-till .bill_titel_area {
    margin-bottom: 4px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.pos-theme-1 .t1-till .bill_titel_area h6 {
    font-size: 12px;
}

.pos-theme-1 .t1-till .bill_header {
    padding: 4px 8px !important;
}

.pos-theme-1 .t1-till .billing_items .edit-row {
    padding-top: 4px !important;
    padding-bottom: 4px !important;
}

.pos-theme-1 .t1-line-grid,
.pos-theme-1 .t1-till .billing_items li.t1-line-grid,
.pos-theme-1 .t1-till .bill_titel_area.t1-line-grid {
    display: grid !important;
    grid-template-columns: 52px minmax(0, 1fr) 72px 86px 90px 58px;
    gap: 8px;
    align-items: center;
    justify-content: stretch;
    width: 100%;
    box-sizing: border-box;
}

.pos-theme-1 .t1-till .billing_items li.t1-line-grid {
    padding: 8px !important;
}

.pos-theme-1 .t1-line-product {
    min-width: 0;
}

.pos-theme-1 .t1-line-qty,
.pos-theme-1 .t1-line-disc,
.pos-theme-1 .t1-line-price,
.pos-theme-1 .t1-line-amount {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
}

.pos-theme-1 .t1-line-disc,
.pos-theme-1 .t1-line-price,
.pos-theme-1 .t1-line-amount {
    text-align: right;
}

.pos-theme-1 .t1-line-action {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
}

.pos-theme-1 .t1-line-action .btn-icon {
    width: 26px;
    height: 26px;
    padding: 0;
}

/* Never keep the Theme 1 till visible under the payment screen */
.pos-theme-1.card.ng-hide,
body:has(.t3-pay-card) .pos-theme-1.card {
    display: none !important;
}

/* ===== Responsive: keep desktop till as-is; adapt tablet/phone ===== */

@media (max-width: 1199.98px) {
    .pos-theme-1 .t1-qty-col {
        min-width: 0;
        max-width: 32%;
        flex: 1 1 28%;
    }

    .pos-theme-1 .t1-line-grid,
    .pos-theme-1 .t1-till .billing_items li.t1-line-grid,
    .pos-theme-1 .t1-till .bill_titel_area.t1-line-grid {
        grid-template-columns: 44px minmax(0, 1fr) 64px 74px 78px 48px;
        gap: 6px;
    }

    .pos-theme-1 .t1-till .bill_titel_area h6,
    .pos-theme-1 .t1-line-qty,
    .pos-theme-1 .t1-line-disc,
    .pos-theme-1 .t1-line-price,
    .pos-theme-1 .t1-line-amount {
        font-size: 11px;
    }

    .pos-theme-1 .t1-qty-pad .digit {
        height: 38px;
        font-size: 14px;
    }
}

@media (max-width: 991.98px) {
    .layout-page:has(.pos-theme-1.card:not(.ng-hide)),
    .layout-page:has(.t3-pay-card:not(.ng-hide)) {
        overflow: auto !important;
        height: auto !important;
        max-height: none !important;
    }

    .layout-page:has(.pos-theme-1.card:not(.ng-hide)) .content-wrapper,
    .layout-page:has(.t3-pay-card:not(.ng-hide)) .content-wrapper {
        overflow: visible !important;
        height: auto !important;
        max-height: none !important;
    }

    #customize-form:has(.pos-theme-1.card:not(.ng-hide)),
    html.pos-hide-top-menu #customize-form:has(.pos-theme-1.card:not(.ng-hide)),
    #customize-form:has(.t3-pay-card:not(.ng-hide)) {
        display: block !important;
        height: auto !important;
        max-height: none !important;
        min-height: 100dvh;
        overflow: visible !important;
    }

    .pos-theme-1.card.ng-hide {
        display: none !important;
    }

    .pos-theme-1.card:not(.ng-hide),
    .pos-theme-1.card:not(.ng-hide) > .card-header,
    .pos-theme-1.card:not(.ng-hide) > .card-body,
    .pos-theme-1.card:not(.ng-hide) .pos-workspace.pos-theme-1,
    .pos-theme-1.card:not(.ng-hide) .pos-workspace.pos-theme-1 .t1-till,
    .pos-theme-1.card:not(.ng-hide) .pos-workspace.pos-theme-1 > ng-include,
    .pos-theme-1.card:not(.ng-hide) .pos-workspace.pos-theme-1 > [ng-include] {
        display: block !important;
        flex: none !important;
        height: auto !important;
        max-height: none !important;
        min-height: 0 !important;
        overflow: visible !important;
    }

    .pos-theme-1 .t1-till {
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: flex-start !important;
        overflow: visible !important;
        height: auto !important;
        max-height: none !important;
    }

    .pos-theme-1 .t1-till > [class*="col-"],
    .pos-theme-1 .t1-till > .t1-catalog-col {
        display: block !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        max-height: none !important;
        min-height: 0 !important;
        overflow: visible !important;
        margin-bottom: 10px;
    }

    .pos-theme-1 .t1-till .point_of_sales_bill_wrapper,
    .pos-theme-1 .t1-till .point_of_sales_bill_wrapper > div,
    .pos-theme-1 .t1-till .billing_body_wrapper,
    .pos-theme-1 .t1-till .subitems_and_bill_area,
    .pos-theme-1 .t1-till .subitems,
    .pos-theme-1 .t1-till .bill_area,
    .pos-theme-1 .t1-till .bill_body,
    .pos-theme-1 .t1-qty-pad,
    .pos-theme-1 .t1-qty-pad > .card-body,
    .pos-theme-1 .t1-qty-pad-body {
        display: block !important;
        flex: none !important;
        height: auto !important;
        max-height: none !important;
        min-height: 0 !important;
        overflow: visible !important;
        width: 100% !important;
    }

    .pos-theme-1 .t1-qty-col {
        min-width: 0 !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
    }

    .pos-theme-1 .t1-catalog-panel {
        display: flex !important;
        flex-direction: column !important;
        height: auto !important;
        max-height: none !important;
        min-height: 0 !important;
        flex: none !important;
    }

    .pos-theme-1 .t1-till .t1-product-grid,
    .pos-theme-1 .t1-till .item_list,
    .pos-theme-1 .t1-till .scroll-750-y,
    .pos-theme-1 .t1-till .scroll-685-y,
    .pos-theme-1 .t1-till .billing_items {
        flex: none !important;
        height: auto !important;
        max-height: 50vh;
        min-height: 160px;
        overflow-y: auto !important;
    }

    .pos-theme-1 .t1-cats {
        max-height: none;
        min-height: 0;
        overflow-x: auto;
        overflow-y: hidden;
    }

    .pos-theme-1 .t1-till .bill_body {
        overflow-x: auto !important;
    }

    .pos-theme-1 .t1-line-grid,
    .pos-theme-1 .t1-till .billing_items li.t1-line-grid,
    .pos-theme-1 .t1-till .bill_titel_area.t1-line-grid {
        min-width: 560px;
    }
}

@media (max-width: 767.98px) {
    .pos-theme-1 .t1-till > [class*="col-"] {
        min-height: 0;
        padding-left: 4px;
        padding-right: 4px;
    }

    .pos-theme-1 .t1-product-grid {
        grid-template-columns: 1fr 1fr;
        gap: 4px;
    }

    .pos-theme-1 .t1-qty-fields {
        flex-direction: column;
        gap: 6px;
    }

    .pos-theme-1 .t1-qty-pad .digit {
        height: 36px;
        font-size: 13px;
    }

    .pos-theme-1 .t1-till .t1-console-foot {
        grid-template-columns: 1fr;
    }

    .pos-theme-1 .t1-till .customerbtn {
        width: 100%;
    }

    .pos-theme-1 .t1-till .bill_header .d-flex {
        flex-direction: column;
        align-items: stretch !important;
    }
}

.pos-currency-modal .modal-dialog {
    display: flex;
    max-width: 560px;
    width: calc(100% - 24px);
    height: calc(100vh - 24px);
    max-height: calc(100vh - 24px);
    margin: 12px auto;
}

.pos-currency-modal .pos-bill-card {
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 10px;
    padding: 16px 18px 6px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.pos-currency-modal .pos-bill-title {
    margin: 0 0 18px;
    font-size: 16px;
    font-weight: 700;
    color: #2b2b2b;
}

.pos-currency-modal .pos-bill-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 28px;
}

.pos-currency-modal .pos-bill-line {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
}

.pos-currency-modal .pos-bill-qty {
    display: inline-flex;
    align-items: center;
    border-bottom: 1px solid #bdbdbd;
}

.pos-currency-modal .pos-bill-qty button {
    width: 22px;
    height: 28px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #128c8c;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
}

.pos-currency-modal .pos-bill-qty button:disabled {
    color: #cbd5e1;
}

.pos-currency-modal .pos-bill-line input {
    width: 42px;
    height: 28px;
    padding: 0 2px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    text-align: center;
    color: #4b5563;
    font-size: 15px;
}

.pos-currency-modal .pos-bill-line input:focus {
    outline: none;
    border-bottom-color: #128c8c;
}

.pos-currency-modal .pos-bill-line span {
    color: #4b5563;
    font-size: 15px;
    white-space: nowrap;
}

.pos-currency-modal .pos-bill-total {
    margin: 8px 0 4px;
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    color: #222;
}

.pos-currency-modal .pos-bill-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 8px;
    padding: 14px 0 10px;
    border-top: 1px solid #ededed;
}

.pos-currency-modal .pos-bill-actions button {
    min-width: 118px;
    height: 38px;
    border: 1px solid #1aa6a6;
    border-radius: 6px;
    background: #fff;
    color: #128c8c;
    font-weight: 600;
}

.pos-currency-modal .pos-bill-actions button:disabled {
    opacity: 0.45;
}

.pos-currency-modal .pos-report-actions {
    margin: 10px 0 0;
    border-top: 0;
    padding-top: 0;
}

.pos-currency-modal .pos-pad-target,
.pos-currency-modal .pos-bill-qty input.active,
.pos-currency-modal .pos-pad-target.active {
    border-color: #128c8c;
    box-shadow: 0 0 0 2px rgba(18, 140, 140, 0.2);
}

.pos-currency-modal .pos-numpad {
    flex: 0 0 auto;
    margin: 0;
    padding: 10px 12px 12px;
    background: #eef3f8;
    border-top: 1px solid #dbe3ec;
    border-radius: 0;
}

.pos-currency-modal .pos-numpad-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
    padding: 10px 14px;
    background: #fff;
    border: 1px solid #d7e2ea;
    border-radius: 10px;
}

.pos-currency-modal .pos-numpad-head span {
    color: #64748b;
    font-size: 13px;
    font-weight: 600;
}

.pos-currency-modal .pos-numpad-head strong {
    margin-left: auto;
    color: #011C50;
    font-size: 26px;
    font-weight: 700;
    line-height: 1;
}

.pos-currency-modal .pos-numpad-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.pos-currency-modal .pos-numpad-grid button {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    border: 0;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
    color: #0f172a;
    font-size: 24px;
    font-weight: 600;
}

.pos-currency-modal .pos-numpad-grid button:active {
    background: #e7f6f6;
}

.pos-currency-modal .pos-numpad-fn {
    color: #128c8c;
}

.pos-currency-modal .pos-numpad-fn svg {
    width: 24px;
    height: 24px;
    display: block;
}

.pos-currency-modal .pos-numpad-grid button:disabled {
    color: #cbd5e1;
    background: #f8fafc;
    box-shadow: none;
}

.pos-currency-modal .pos-numpad-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 8px;
}

.pos-currency-modal .pos-numpad-actions button {
    height: 50px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
}

.pos-currency-modal .pos-numpad-clear {
    border: 1px solid #d7e2ea;
    background: #fff;
    color: #334155;
}

.pos-currency-modal .pos-numpad-done {
    border: 0;
    background: #011C50;
    color: #fff;
}

.pos-currency-modal .modal-content {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    max-height: 100%;
    border: 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.28);
}

.pos-currency-modal .pos-currency-head {
    flex: 0 0 auto;
    background: #011C50;
    color: #fff;
    padding: 12px 16px;
    border-bottom: 0;
}

.pos-currency-modal .pos-currency-head .modal-title {
    color: #fff;
}

.modal.pos-currency-modal .pos-currency-head .btn-close {
    position: static;
    top: auto;
    right: auto;
    left: auto;
    margin: 0;
    transform: none;
    flex: 0 0 auto;
    filter: invert(1) grayscale(100%) brightness(200%);
    opacity: 0.95;
}

.modal.pos-currency-modal .pos-currency-head .btn-close:hover,
.modal.pos-currency-modal .pos-currency-head .btn-close:focus,
.modal.pos-currency-modal .pos-currency-head .btn-close:active {
    transform: none;
    opacity: 1;
}

.pos-currency-modal .pos-currency-scroll {
    max-height: 420px;
    overflow-y: auto;
}

.pos-currency-modal {
    z-index: 20000 !important;
}

.pos-currency-modal .pos-currency-body {
    flex: 1 1 auto;
    min-height: 0;
    padding: 16px 18px 18px;
    background: #f8fafc;
}

.pos-currency-modal.pos-odoo-open .modal-dialog {
    height: auto;
    max-height: calc(100vh - 48px);
    max-width: 560px;
}

.pos-currency-modal.pos-odoo-coins .modal-dialog {
    max-width: 780px;
}

.pos-currency-modal.pos-odoo-open .modal-content {
    height: auto;
    max-height: calc(100vh - 48px);
    border-radius: 0.5rem;
    box-shadow: 0 0.25rem 1.125rem rgba(75, 70, 92, 0.2);
    font-family: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #6f6b7d;
}

.pos-currency-modal .pos-currency-head.odoo-plain-head {
    background: #fff;
    color: #5d596c;
    padding: 1.25rem 1.5rem 0.25rem;
    border-bottom: 0;
}

.pos-currency-modal .pos-currency-head.odoo-plain-head .modal-title {
    color: #5d596c;
    font-family: inherit;
    font-size: 1.125rem;
    font-weight: 500;
    line-height: 1.37;
}

.modal.pos-currency-modal .pos-currency-head.odoo-plain-head .btn-close,
.modal.pos-currency-modal .pos-currency-head.odoo-plain-head .btn-close:hover,
.modal.pos-currency-modal .pos-currency-head.odoo-plain-head .btn-close:focus,
.modal.pos-currency-modal .pos-currency-head.odoo-plain-head .btn-close:active {
    filter: none;
    opacity: 0.65;
    transform: none;
}

.pos-currency-modal .pos-currency-body.odoo-plain-body {
    background: #fff;
    padding: 0.75rem 1.5rem 0.25rem;
    color: #6f6b7d;
    font-size: 0.9375rem;
    font-weight: 400;
    line-height: 1.47;
}

.pos-currency-modal .odoo-label {
    color: #5d596c;
    font-size: 0.8125rem;
    font-weight: 400;
    margin-bottom: 0.25rem;
}

.pos-currency-modal #customize-form .odoo-note-label {
    position: static;
    display: block;
    margin-top: 1rem;
    margin-left: 0;
    margin-bottom: 0.35rem;
    padding: 0;
    z-index: auto;
    background: transparent;
    white-space: normal;
}

.pos-currency-modal .odoo-cash-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pos-currency-modal .odoo-cash-input {
    position: relative;
    flex: 1 1 auto;
}

.pos-currency-modal .odoo-cash-input input {
    height: 2.5rem;
    border-radius: 0.375rem;
    border: 1px solid #dbdade;
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 400;
    padding: 0.422rem 2rem 0.422rem 0.875rem;
    color: #6f6b7d;
}

.pos-currency-modal .odoo-cash-input input:focus,
.pos-currency-modal .odoo-note:focus {
    border-color: #011C50;
    box-shadow: 0 0.125rem 0.25rem rgba(165, 163, 174, 0.3);
    color: #6f6b7d;
}

.pos-currency-modal .odoo-cash-clear {
    position: absolute;
    right: 6px;
    top: 0;
    bottom: 0;
    width: 28px;
    border: 0;
    background: transparent;
    color: #a5a3ae;
    font-size: 1.25rem;
    line-height: 1;
}

.pos-currency-modal .odoo-cash-clear:hover {
    color: #011C50;
}

.pos-currency-modal .odoo-money-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    flex: 0 0 2.5rem;
    border-radius: 0.375rem;
    border: 1px solid #dbdade;
    background: #f8f7fa;
    color: #011C50;
}

.pos-currency-modal .odoo-money-btn:hover {
    background: #eef1fb;
    border-color: #011C50;
    color: #011C50;
}

.pos-currency-modal .odoo-note {
    min-height: 7.5rem;
    border-radius: 0.375rem;
    border-color: #dbdade;
    color: #6f6b7d;
    font-family: inherit;
    font-size: 0.9375rem;
    resize: vertical;
}

.pos-currency-modal .odoo-note::placeholder,
.pos-currency-modal .odoo-cash-input input::placeholder,
.pos-currency-modal .odoo-money-step input::placeholder {
    color: #a5a3ae;
    opacity: 1;
}

.pos-currency-modal .modal-footer.odoo-foot {
    border-top: 0;
    background: #fff;
    justify-content: flex-start;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem 1.25rem;
}

.pos-currency-modal .modal-footer.odoo-coin-foot {
    justify-content: space-between;
    align-items: center;
}

.pos-currency-modal .odoo-btn-primary {
    min-width: 8.5rem;
    height: 2.375rem;
    padding: 0 1.125rem;
    border: 1px solid #011C50;
    border-radius: 0.375rem;
    background: #011C50;
    color: #fff;
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 500;
    box-shadow: 0 0.125rem 0.25rem rgba(165, 163, 174, 0.3);
}

.pos-currency-modal .odoo-btn-primary:hover,
.pos-currency-modal .odoo-btn-primary:focus {
    background: #000236;
    border-color: #000236;
    color: #fff;
}

.pos-currency-modal .odoo-btn-primary:disabled {
    opacity: 0.55;
}

.pos-currency-modal .odoo-btn-discard {
    min-width: 6.5rem;
    height: 2.375rem;
    padding: 0 1.125rem;
    border: 1px solid #a8aaae;
    border-radius: 0.375rem;
    background: #a8aaae;
    color: #fff;
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 500;
    box-shadow: 0 0.125rem 0.25rem rgba(165, 163, 174, 0.3);
}

.pos-currency-modal .odoo-btn-discard:hover {
    background: #97999d;
    border-color: #97999d;
    color: #fff;
}

.pos-currency-modal .odoo-coin-total {
    margin-left: auto;
    color: #011C50;
    font-size: 1.125rem;
    font-weight: 500;
    line-height: 1.37;
}

.pos-currency-modal .odoo-money-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 36px;
}

.pos-currency-modal .odoo-money-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
}

.pos-currency-modal .odoo-money-step {
    display: flex;
    align-items: stretch;
    width: 168px;
    height: 2.375rem;
    flex: 0 0 168px;
    overflow: hidden;
    border: 1px solid #dbdade;
    border-radius: 0.375rem;
    background: #f8f7fa;
}

.pos-currency-modal .odoo-money-step button {
    width: 2.5rem;
    border: 0;
    background: transparent;
    color: #011C50;
    font-family: inherit;
    font-size: 1.125rem;
    font-weight: 500;
    line-height: 1;
}

.pos-currency-modal .odoo-money-step button:hover {
    background: #eef1fb;
}

.pos-currency-modal .odoo-money-step input {
    width: 4.5rem;
    border: 0;
    border-left: 1px solid #dbdade;
    border-right: 1px solid #dbdade;
    background: #fff;
    box-shadow: none;
    color: #6f6b7d;
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 400;
    text-align: center;
}

.pos-currency-modal .odoo-money-step input:focus {
    outline: none;
    background: #fff;
    color: #011C50;
}

.pos-currency-modal .odoo-money-face {
    color: #5d596c;
    font-size: 0.9375rem;
    font-weight: 500;
    white-space: nowrap;
}

@media (max-width: 720px) {
    .pos-currency-modal .odoo-money-grid {
        grid-template-columns: 1fr;
    }
}

.pos-currency-modal .pos-currency-filters {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 14px;
}

.pos-currency-modal .pos-currency-field label {
    display: block;
    margin-bottom: 4px;
    font-size: 12px;
    font-weight: 700;
    color: #475569;
}

.pos-currency-modal .pos-currency-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    align-items: start;
}

.pos-currency-modal .pos-currency-col {
    min-width: 0;
}

.pos-currency-modal .pos-currency-col-title {
    margin: 0 0 8px;
    font-size: 15px;
    font-weight: 800;
    color: #011C50;
}

.pos-currency-modal .pos-currency-manual {
    margin-bottom: 10px;
}

.pos-currency-modal .pos-currency-manual label {
    display: block;
    margin-bottom: 4px;
    font-size: 12px;
    font-weight: 700;
    color: #475569;
}

.pos-currency-modal .pos-currency-manual span {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: #64748b;
}

.pos-currency-modal .pos-currency-section {
    padding: 8px 12px 4px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #011C50;
    background: #fff;
}

.pos-currency-modal .pos-currency-coin-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 8px 10px 10px;
    background: #fff;
}

.pos-currency-modal .pos-currency-coin {
    display: grid;
    grid-template-columns: 42px 1fr auto;
    gap: 6px;
    align-items: center;
    padding: 6px;
    border: 1px solid #e8edf3;
    border-radius: 8px;
    background: #f8fafc;
}

.pos-currency-modal .pos-currency-coin strong {
    min-width: 52px;
    text-align: right;
    font-size: 12px;
    color: #0f172a;
}

.pos-currency-modal .pos-currency-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 12px;
}

.pos-currency-modal .pos-summary-block {
    margin-bottom: 10px;
    padding: 10px 12px 4px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
}

.pos-currency-modal .pos-summary-block h6 {
    margin: 0 0 6px;
    color: #011C50;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.pos-currency-modal .pos-summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 7px 0;
    border-top: 1px solid #f1f5f9;
    color: #334155;
    font-size: 14px;
}

.pos-currency-modal .pos-summary-row strong {
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.pos-currency-modal .pos-summary-row.total {
    margin: 4px -12px 0;
    padding: 8px 12px;
    background: #f8fafc;
    color: #011C50;
    font-weight: 700;
}

.pos-currency-modal .pos-session-head,
.pos-currency-modal .pos-session-bill {
    display: grid;
    grid-template-columns: 1.3fr 1fr auto;
    gap: 10px;
    align-items: center;
}

.pos-currency-modal .pos-session-head {
    padding: 4px 0 6px;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
}

.pos-currency-modal .pos-session-bill {
    padding: 8px 0;
    border-top: 1px solid #f1f5f9;
    color: #334155;
    font-size: 14px;
}

.pos-currency-modal .pos-session-bill div {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.pos-currency-modal .pos-session-bill small {
    color: #64748b;
    font-size: 12px;
}

.pos-currency-modal .pos-session-bill strong:last-child {
    text-align: right;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.pos-currency-modal .pos-session-summary .pos-currency-tabs {
    margin-bottom: 12px;
}

.pos-currency-modal .pos-session-date {
    margin-bottom: 8px;
}

.pos-currency-modal .pos-session-list-row {
    display: grid;
    grid-template-columns: 1.4fr auto auto;
    gap: 12px;
    align-items: center;
    padding: 10px 0;
    border-top: 1px solid #e2e8f0;
    color: #334155;
}

.pos-currency-modal .pos-session-list-row div {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.pos-currency-modal .pos-session-list-row small {
    color: #64748b;
    font-size: 12px;
}

.pos-currency-modal .pos-session-list-amt {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.pos-currency-modal .pos-session-list-row button,
.pos-currency-modal .pos-session-back button {
    height: 34px;
    padding: 0 12px;
    border: 1px solid #011C50;
    border-radius: 0.375rem;
    background: #fff;
    color: #011C50;
    font-weight: 500;
}

.pos-currency-modal .pos-session-list-row button:hover,
.pos-currency-modal .pos-session-back button:hover {
    background: #011C50;
    color: #fff;
}

.pos-currency-modal .pos-session-back {
    margin-bottom: 10px;
}

@media (max-width: 900px) {
    .pos-currency-modal .pos-currency-columns,
    .pos-currency-modal .pos-currency-coin-grid {
        grid-template-columns: 1fr;
    }
}

.pos-currency-modal .pos-currency-tabs button {
    border: 0;
    background: transparent;
    padding: 8px 10px 10px;
    color: #64748b;
    font-weight: 700;
    font-size: 13px;
}

.pos-currency-modal .pos-currency-tabs button.active {
    color: #1d4ed8;
    box-shadow: inset 0 -2px 0 #1d4ed8;
}

.pos-currency-modal .pos-currency-note {
    margin-bottom: 10px;
    padding: 8px 12px;
    border-radius: 8px;
    background: #fff7ed;
    color: #9a3412;
    border: 1px solid #fdba74;
    font-size: 13px;
    font-weight: 600;
}

.pos-currency-modal .pos-currency-table-wrap {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
}

.pos-currency-modal .pos-currency-entry {
    width: 100%;
    margin: 0;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
}

.pos-currency-modal .pos-currency-entry thead th {
    background: #011C50 !important;
    color: #fff !important;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    border: 0 !important;
    padding: 10px 12px !important;
    text-align: right;
    position: sticky;
    top: 0;
    z-index: 1;
}

.pos-currency-modal .pos-currency-entry thead th.col-idx,
.pos-currency-modal .pos-currency-entry thead th.col-qty {
    text-align: center;
}

.pos-currency-modal .pos-currency-entry td {
    vertical-align: middle;
    font-size: 14px;
    padding: 8px 12px !important;
    border-color: #e8edf3 !important;
    color: #1e293b;
    background: transparent !important;
}

.pos-currency-modal .pos-currency-entry td:nth-child(1) {
    width: 48px;
    text-align: center;
    color: #64748b;
}

.pos-currency-modal .pos-currency-entry td:nth-child(2),
.pos-currency-modal .pos-currency-entry td:nth-child(4) {
    text-align: right;
}

.pos-currency-modal .pos-currency-entry td:nth-child(3) {
    text-align: center;
}

.pos-currency-modal .pos-currency-entry tbody tr:nth-child(odd) {
    background: #fff;
}

.pos-currency-modal .pos-currency-entry tbody tr:nth-child(even) {
    background: #f4f7fb;
}

.pos-currency-modal .pos-currency-denom {
    font-weight: 700;
    color: #0f172a;
}

.pos-currency-modal .pos-currency-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px;
    border-top: 1px solid #e2e8f0;
    background: #fff;
}

.pos-currency-modal .pos-currency-total {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: #334155;
}

.pos-currency-modal .pos-currency-total strong {
    min-width: 120px;
    padding: 6px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    text-align: right;
    background: #f8fafc;
    color: #0f172a;
}

.pos-currency-modal .pos-currency-actions {
    display: flex;
    gap: 8px;
}

.pos-currency-modal .pos-currency-submit,
.pos-currency-modal .pos-currency-clear {
    min-width: 96px;
    font-weight: 700;
}

.pos-currency-modal .pos-currency-submit {
    background: #011C50;
    border-color: #011C50;
    color: #fff;
}

.pos-currency-modal .pos-currency-clear {
    background: #e2e8f0;
    border-color: #e2e8f0;
    color: #334155;
}

.pos-currency-modal .pos-currency-submit:disabled,
.pos-currency-modal .pos-currency-clear:disabled {
    opacity: 0.55;
}

.pos-currency-modal .pos-currency-qty {
    display: inline-flex;
    align-items: stretch;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
}

.pos-currency-modal .pos-currency-qty input,
.pos-currency-modal .pos-currency-qty .form-control {
    width: 56px;
    height: 30px;
    min-height: 30px;
    padding: 0 4px;
    border: 0;
    border-left: 1px solid #e2e8f0;
    border-right: 1px solid #e2e8f0;
    border-radius: 0;
    text-align: center;
    font-weight: 700;
    color: #0f172a;
    box-shadow: none;
    background: #fff;
}

.pos-currency-modal .pos-currency-qty button {
    width: 30px;
    height: 30px;
    border: 0;
    background: #f8fafc;
    color: #011C50;
    font-weight: 700;
    line-height: 1;
    padding: 0;
}

.pos-currency-modal .pos-currency-qty button:disabled {
    color: #94a3b8;
}

.pos-currency-modal .modal-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    max-height: none;
}

.pos-currency-modal .pos-currency-entry {
    width: 100%;
    display: table;
    background: #fff;
}

.pos-theme-1 .t1-line-disc-btn {
    width: 100%;
    min-height: 31px;
    border: 1px dashed #93c5fd;
    border-radius: 6px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 13px;
    font-weight: 700;
    text-align: right;
    padding: 2px 6px;
    cursor: pointer;
}

.pos-theme-1 .t1-line-disc-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.t3-pay-disc-open {
    width: 100%;
    min-height: 36px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    color: #0f172a;
    font-weight: 700;
    text-align: right;
    padding: 6px 10px;
}

.modal.pos-disc-modal-window {
    z-index: 30050 !important;
    display: block !important;
    overflow: auto;
}

.modal-backdrop.pos-disc-backdrop-layer {
    z-index: 30040 !important;
    opacity: 0.45;
}

.pos-disc-modal-window .modal-dialog {
    max-width: 420px;
    margin: 8vh auto;
}

.pos-disc-modal-window .modal-content {
    border: 0;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.28);
}

.pos-disc-sheet {
    padding: 16px;
}

.pos-disc-modal-window .pos-disc-toggle {
    display: flex;
    gap: 8px;
    margin: 0 0 14px;
    padding: 6px;
    background: #e8eef7;
    border-radius: 12px;
}

.pos-disc-modal-window .pos-disc-toggle button {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-height: 64px;
    border: 2px solid #94a3b8 !important;
    border-radius: 10px;
    background: #ffffff !important;
    color: #0f172a !important;
    box-shadow: none;
}

.pos-disc-modal-window .pos-disc-toggle button span {
    font-size: 22px;
    font-weight: 800;
    line-height: 1;
    color: #0f172a !important;
}

.pos-disc-modal-window .pos-disc-toggle button small {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #475569 !important;
}

.pos-disc-modal-window .pos-disc-toggle button.is-on {
    background: #1d4ed8 !important;
    border-color: #1e3a8a !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(29, 78, 216, 0.35);
}

.pos-disc-modal-window .pos-disc-toggle button.is-on span,
.pos-disc-modal-window .pos-disc-toggle button.is-on small {
    color: #ffffff !important;
}

.pos-disc-popup {
    display: none;
}

.pos-disc-popup.is-open {
    display: block !important;
    position: fixed !important;
    inset: 0 !important;
    z-index: 30000 !important;
}

.pos-disc-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    z-index: 30000;
}

.pos-disc-dialog {
    position: fixed;
    z-index: 30001;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: min(420px, calc(100vw - 24px));
    max-height: calc(100vh - 24px);
    overflow: auto;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.28);
    padding: 16px;
}

.pos-disc-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.pos-disc-head h5 {
    margin: 0;
    color: #1d4ed8;
    font-weight: 700;
}

.pos-disc-head p {
    margin: 4px 0 0;
    color: #64748b;
    font-size: 13px;
}

.pos-disc-dialog .pos-disc-toggle {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.pos-disc-dialog .pos-disc-toggle button {
    flex: 1;
    min-height: 40px;
    border-radius: 8px;
    font-size: 16px;
}

.pos-disc-field-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 4px;
}

.pos-disc-input {
    font-size: 22px;
    font-weight: 700;
    min-height: 48px;
}

.pos-disc-preview {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin: 12px 0;
    padding: 10px 12px;
    border-radius: 10px;
    background: #f8fafc;
}

.pos-disc-preview div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.pos-disc-preview span {
    font-size: 12px;
    color: #64748b;
}

.pos-disc-preview strong {
    font-size: 16px;
    color: #0f172a;
}

.pos-disc-pad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.pos-disc-pad button {
    min-height: 48px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
}

.pos-disc-pad button.is-muted {
    color: #b91c1c;
}

.pos-disc-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.pos-disc-actions .btn {
    flex: 1;
    min-height: 42px;
}

.pos-disc-other {
    margin-top: 14px;
}

.pos-disc-other label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 4px;
}
