/* Theme 3 — terminal single-page till + same-screen checkout. Theme 2 color language. */

.pos-theme-3.card {
    background: #e2e8f0;
    border: none;
    box-shadow: none;
    margin-bottom: 0 !important;
    border-radius: 0;
    overflow: visible;
}

.pos-theme-3 .card-body {
    background: #e2e8f0;
    padding: 0 !important;
}

#customize-form:has(.pos-theme-3) {
    padding: 0 !important;
}

.layout-page:has(.pos-theme-3) .container-p-y {
    padding: 0 !important;
}

.t3-till {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: calc(100vh - 72px);
    max-height: calc(100vh - 72px);
    padding: 8px;
    font-family: "Public Sans", "Segoe UI", sans-serif;
    color: #0f172a;
    background: #e2e8f0;
    box-sizing: border-box;
}

.t3-till.is-pay {
    gap: 0;
}

.t3-till button,
.t3-till input,
.t3-till select {
    font-family: inherit;
}

.t3-top {
    display: grid;
    grid-template-columns: minmax(240px, 0.9fr) minmax(340px, 1.2fr);
    gap: 8px;
    flex: 0 0 auto;
    min-height: 300px;
    max-height: 46vh;
    overflow: visible;
}

.t3-till.is-pay .t3-top {
    flex: 1;
    max-height: none;
    min-height: 0;
    grid-template-columns: minmax(220px, 0.75fr) minmax(0, 1.4fr);
}

.t3-receipt {
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.t3-receipt-toolbar {
    display: flex;
    gap: 6px;
    align-items: center;
    padding: 8px 10px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.t3-theme-select {
    max-width: 110px;
    min-height: 30px !important;
    font-size: 12px;
}

.t3-mini-btn {
    border: 1px solid #cbd5e1 !important;
    background: #fff !important;
    color: #0f172a !important;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 10px !important;
    border-radius: 8px;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.t3-home-btn {
    background: #eff6ff !important;
    border-color: #bfdbfe !important;
    color: #1d4ed8 !important;
}

.t3-back-sale {
    margin-left: auto;
    color: #2563eb !important;
    border-color: #bfdbfe !important;
    background: #eff6ff !important;
}

.t3-barcode {
    flex: 1;
    min-width: 0;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    height: 30px;
    padding: 0 10px;
    font-size: 12px;
    background: #fff;
}

.t3-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 6px 8px;
    border-bottom: 1px solid #f1f5f9;
    background: #f8fafc;
}

.t3-chip {
    border: 1px solid #e2e8f0 !important;
    background: #fff !important;
    color: #334155 !important;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px !important;
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.t3-sync {
    font-size: 10px;
    font-weight: 700;
    border-radius: 999px;
    padding: 3px 8px;
}
.t3-sync.ok { background: #dcfce7; color: #166534; }
.t3-sync.no { background: #ffedd5; color: #9a3412; }

.t3-txn-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    max-width: 160px;
}

.t3-txn-chip .ti {
    font-size: 12px;
    opacity: 0.7;
}

.t3-txn-panel {
    width: min(320px, 92vw) !important;
}

.t3-txn-menu {
    display: flex;
    flex-direction: column;
    padding: 8px;
    gap: 4px;
}

.t3-txn-opt {
    display: block;
    width: 100%;
    text-align: left;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px;
    background: #f8fafc !important;
    color: #0f172a !important;
    font-size: 14px;
    font-weight: 600;
    padding: 12px 14px !important;
}

.t3-txn-opt.badge {
    border-radius: 8px;
}

.t3-txn-opt.bg-primary {
    background: #2563eb !important;
    border-color: #2563eb !important;
    color: #fff !important;
}

.t3-txn-opt.bg-success {
    background: #16a34a !important;
    border-color: #16a34a !important;
    color: #fff !important;
}

.t3-txn-opt.bg-secondary {
    background: #94a3b8 !important;
    border-color: #94a3b8 !important;
    color: #fff !important;
    cursor: not-allowed !important;
}

.t3-disc-toggle {
    display: flex;
    gap: 4px;
}

.t3-disc-toggle button {
    flex: 1;
    border: 1px solid #e2e8f0 !important;
    border-radius: 6px;
    background: #f8fafc !important;
    color: #64748b !important;
    font-size: 11px;
    font-weight: 700;
    padding: 4px !important;
    min-height: 28px;
}

.t3-disc-toggle button.is-on {
    background: #2563eb !important;
    color: #fff !important;
    border-color: #2563eb !important;
}

.t3-nav-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
}

.t3-pay-disc {
    margin-bottom: 8px;
}

.t3-pay-disc-label {
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 4px;
}

.t3-pay-disc-row {
    display: flex;
    gap: 6px;
    align-items: center;
}

.t3-pay-disc-toggle {
    flex: 0 0 auto;
}

.t3-pay-disc-input {
    flex: 1;
    height: 34px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 0 10px;
    font-weight: 600;
}

.t3-pay-txn label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 4px;
}

.t3-pay-txn select {
    width: 100%;
    height: 36px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 0 8px;
    font-weight: 600;
}

.t3-pay-actions {
    display: grid;
    grid-template-columns: 1fr auto auto auto auto;
    gap: 6px;
    margin-top: auto;
    align-items: center;
}

.t3-pay-actions .t3-save-print {
    margin-top: 0;
    height: 42px;
}

.t3-pay-ico {
    width: 42px;
    height: 42px;
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px;
    background: #fff !important;
    color: #334155 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.t3-pay-ico:disabled {
    opacity: 0.4;
}

.t3-receipt-head {
    display: flex;
    justify-content: space-between;
    padding: 8px 12px;
    background: #fff;
    border-bottom: 1px dashed #e2e8f0;
    font-size: 12px;
    color: #64748b;
}

.t3-receipt-head strong {
    color: #0f172a;
    letter-spacing: 0.04em;
}

.t3-lines {
    flex: 1;
    min-height: 0;
    overflow: auto;
    padding: 6px 8px;
    background: #fff;
}

.t3-empty {
    color: #94a3b8;
    font-size: 13px;
    padding: 20px 8px;
    text-align: center;
}

.t3-line {
    border-bottom: 1px solid #f1f5f9;
    padding: 7px 4px;
    cursor: pointer;
}

.t3-line.is-edit,
.t3-line-pending {
    background: #eff6ff;
    border-radius: 8px;
}

.t3-line-main {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.t3-line-idx {
    font-size: 11px;
    color: #64748b;
    width: 16px;
}

.t3-line-name {
    flex: 1;
    font-size: 13px;
    font-weight: 600;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.t3-line-amt {
    font-size: 13px;
    font-weight: 700;
}

.t3-line-sub {
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: 11px;
    color: #64748b;
    margin-top: 2px;
    padding-left: 22px;
}

.t3-finyear {
    min-width: 100px;
    max-width: 130px;
}

.t3-finyear .ui-select-toggle,
.t3-finyear .select2-choice {
    min-height: 30px !important;
    font-size: 12px;
}

.t3-stepper-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    padding-left: 22px;
}

.t3-stepper {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #f1f5f9;
    border-radius: 8px;
    padding: 2px;
}

.t3-stepper button {
    width: 28px;
    height: 28px;
    border: none !important;
    border-radius: 6px;
    background: #fff !important;
    color: #0f172a !important;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
}

.t3-inline-qty {
    width: 48px;
    height: 28px;
    border: 1px solid #cbd5e1 !important;
    border-radius: 6px;
    text-align: center;
    font-weight: 700;
    font-size: 13px;
    background: #fff !important;
}

.t3-qty-ro {
    min-width: 28px;
    text-align: center;
    font-weight: 700;
    font-size: 13px;
}

.t3-line-actions {
    margin-left: auto;
    display: flex;
    gap: 4px;
}

.t3-line-edit {
    border: none !important;
    border-radius: 6px;
    background: #dbeafe !important;
    color: #1d4ed8 !important;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 8px !important;
}

.t3-line-edit-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 6px;
    padding-left: 22px;
}

.t3-line-edit-meta label {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 10px;
    font-weight: 700;
    color: #64748b;
    margin: 0;
}

.t3-line-edit-meta input {
    height: 30px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 0 8px;
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
    background: #fff;
}

.t3-line.is-edit {
    background: #eff6ff;
    border-radius: 10px;
    border: 1px solid #bfdbfe;
    padding: 8px;
    margin-bottom: 4px;
}

.t3-plu:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.08);
}

.t3-tab:hover:not(.is-on) {
    background: #e2e8f0 !important;
}

.t3-cash-total:hover {
    filter: brightness(1.08);
}

.t3-line-ok {
    border: none !important;
    border-radius: 6px;
    background: #16a34a !important;
    color: #fff !important;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px !important;
}

.t3-line-del {
    border: none !important;
    border-radius: 6px;
    background: #ffe4e6 !important;
    color: #e11d48 !important;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 8px !important;
}

.t3-total-box {
    padding: 10px 12px;
    background: #061a40;
    color: #fff;
}

.t3-total-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.t3-total-main span {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: #fff;
}

.t3-total-main strong {
    font-size: 24px;
    font-weight: 800;
}

.t3-total-pay {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(255,255,255,0.15);
    font-size: 12px;
}

.t3-total-pay em {
    font-style: normal;
    color: #94a3b8;
    margin-right: 4px;
}

.t3-red { color: #fb7185 !important; }
.t3-green { color: #4ade80 !important; }

.t3-console,
.t3-checkout {
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    min-height: 0;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.t3-checkout {
    overflow: hidden;
}

.t3-console {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 118px;
    gap: 8px;
    padding: 8px;
    overflow: visible;
    position: relative;
    z-index: 5;
}

.t3-actions-col {
    display: flex;
    flex-direction: column;
    gap: 6px;
    overflow: visible;
    position: relative;
    z-index: 6;
}

.t3-sec-action {
    flex: 1;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px;
    background: #f8fafc !important;
    color: #0f172a !important;
    font-size: 11px;
    font-weight: 700;
    padding: 6px 4px !important;
    line-height: 1.15;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.t3-sec-action img {
    width: 16px;
    height: 16px;
}

.t3-pad-block {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.t3-pad-fields {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
}

.t3-field {
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px;
    background: #f8fafc !important;
    color: #0f172a !important;
    padding: 4px 6px !important;
    text-align: left;
}

.t3-field em {
    display: block;
    font-style: normal;
    font-size: 9px;
    color: #64748b;
    font-weight: 700;
}

.t3-field strong { font-size: 14px; font-weight: 700; }

.t3-field.is-on {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 1px #3b82f6;
    background: #fff !important;
}

.t3-pad {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 5px;
    flex: 1;
}

.t3-pad > button {
    min-height: 42px;
    border: none !important;
    border-radius: 8px;
    background: #f1f5f9 !important;
    color: #0f172a !important;
    font-size: 18px;
    font-weight: 700;
}

.t3-pad-cl { background: #fef08a !important; font-size: 13px !important; }
.t3-pad-bk { background: #ffedd5 !important; color: #c2410c !important; font-size: 12px !important; }
.t3-pad-star { background: #dbeafe !important; color: #2563eb !important; }
.t3-pad-enter {
    grid-column: span 2;
    background: #2563eb !important;
    color: #fff !important;
    font-size: 13px !important;
}

.t3-pad-payment {
    font-size: 12px !important;
    font-weight: 800 !important;
    letter-spacing: 0.02em;
}

.t3-cash-total {
    flex: 1.5;
    border: none !important;
    border-radius: 10px;
    background: #061a40 !important;
    color: #fff !important;
    font-size: 14px;
    font-weight: 800;
    padding: 10px 6px !important;
}

.t3-save-print-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #0f766e !important;
    font-size: 12px !important;
    line-height: 1.2;
}

.t3-console.is-pay-mode {
    grid-template-columns: 118px;
    justify-content: end;
}

.t3-actions-pay {
    width: 118px;
}

.t3-more-wrap {
    position: relative;
    z-index: 30;
    overflow: visible;
}

.t3-more-wrap > .t3-sec-action {
    width: 100%;
}

.t3-more-wrap .dropdown-toggle::after {
    display: none;
}

.t3-more-menu {
    z-index: 1080 !important;
    min-width: 200px;
    max-height: min(70vh, 420px);
    overflow-y: auto;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.18);
}

.t3-more-menu.show {
    display: block !important;
}

.t3-more-menu button {
    display: block;
    width: 100%;
    border: none;
    background: transparent;
    text-align: left;
    padding: 8px 10px;
    font-size: 13px;
    color: #0f172a;
}

.t3-more-menu button:hover {
    background: #f1f5f9;
}

/* ===== Same-screen checkout ===== */
.t3-checkout {
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 10px;
    gap: 8px;
}

.t3-pay-methods {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 6px;
    flex-shrink: 0;
}

.t3-pay-method {
    min-height: 44px;
    border: 1.5px solid transparent !important;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    padding: 6px 4px !important;
}

.t3-pay-m0 { background: #ecfdf5 !important; }
.t3-pay-m1 { background: #dbeafe !important; }
.t3-pay-m2 { background: #dbeafe !important; }
.t3-pay-m3 { background: #ffedd5 !important; }
.t3-pay-m4 { background: #ccfbf1 !important; }
.t3-pay-m5 { background: #fef9c3 !important; }

.t3-pay-method.is-on {
    background: #fff !important;
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 1px #3b82f6;
}

.t3-pay-body {
    flex: 1;
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(200px, 0.85fr);
    gap: 10px;
}

.t3-pay-left,
.t3-pay-right {
    min-height: 0;
    overflow: auto;
}

.t3-pay-amount {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #f8fafc;
    padding: 8px 12px;
    margin-bottom: 8px;
}

.t3-pay-amount em {
    font-style: normal;
    font-weight: 700;
    color: #64748b;
}

.t3-pay-amount input {
    flex: 1;
    border: none !important;
    background: transparent !important;
    font-size: 22px;
    font-weight: 700;
    min-width: 0;
    padding: 0 !important;
}

.t3-pay-clear {
    border: none !important;
    background: transparent !important;
    color: #2563eb !important;
    font-size: 12px;
    font-weight: 700;
    padding: 0 !important;
}

.t3-pay-mid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(140px, 0.8fr);
    gap: 8px;
    margin-bottom: 8px;
}

.t3-pay-pad {
    background: #eef2f7;
    border-radius: 10px;
    padding: 8px;
}

.t3-pay-add {
    grid-column: span 2 !important;
    background: #061a40 !important;
    font-size: 12px !important;
}

.t3-denoms {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 8px;
    background: #fff;
}

.t3-denoms-title {
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 6px;
}

.t3-denoms-notes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    margin-bottom: 6px;
}

.t3-denom-note {
    position: relative;
    height: 34px;
    border: 1px solid #e2e8f0 !important;
    border-radius: 6px;
    overflow: hidden;
    padding: 0 !important;
    background: #f1f5f9 !important;
}

.t3-denom-note img {
    width: 100%;
    height: 34px;
    object-fit: cover;
    display: block;
}

.t3-denom-note span {
    position: absolute;
    left: 4px;
    bottom: 3px;
    background: rgba(71, 85, 105, 0.92);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    padding: 1px 4px;
    border-radius: 3px;
}

.t3-denoms-coins {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
}

.t3-denoms-coins button {
    border: none !important;
    border-radius: 999px;
    background: #e2e8f0 !important;
    color: #334155 !important;
    font-size: 11px;
    font-weight: 700;
    height: 28px;
}

.t3-pay-extra {
    display: flex;
    gap: 8px;
}

.t3-exact {
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px;
    background: #fff !important;
    color: #0f172a !important;
    font-weight: 600;
    font-size: 12px;
    padding: 8px 12px !important;
    white-space: nowrap;
}

.t3-remark {
    flex: 1;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    height: 38px;
    padding: 0 10px;
    font-size: 13px;
}

.t3-pay-right {
    border-left: 1px solid #e2e8f0;
    padding-left: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.t3-sum-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    padding: 4px 0;
    border-bottom: 1px solid #f1f5f9;
}

.t3-sum-row span { color: #64748b; }
.t3-sum-total span,
.t3-sum-total strong {
    font-weight: 800;
    color: #0f172a;
    font-size: 14px;
}

.t3-added-title {
    margin-top: 8px;
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
}

.t3-added-list {
    max-height: 72px;
    overflow: auto;
    margin-bottom: 6px;
}

.t3-added-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    padding: 4px 0;
}

.t3-added-item strong { margin-left: auto; }
.t3-added-item button {
    border: none !important;
    background: #ffe4e6 !important;
    color: #e11d48 !important;
    width: 22px;
    height: 22px;
    border-radius: 4px;
    font-weight: 700;
}

.t3-await {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #e0f2fe;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 12px;
    font-weight: 600;
    color: #075985;
    margin: 6px 0;
}

.t3-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #f97316;
    flex-shrink: 0;
}

.t3-await.is-paid {
    background: #dcfce7;
    color: #166534;
}

.t3-await.is-paid .t3-dot { background: #22c55e; }

.t3-save-print {
    width: 100%;
    height: 46px;
    border: none !important;
    border-radius: 10px;
    background: #061a40 !important;
    color: #fff !important;
    font-size: 14px;
    font-weight: 700;
    margin-top: auto;
}

.t3-save-print:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

/* ===== Items / PLU ===== */
.t3-items {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 8px;
    gap: 6px;
    position: relative;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.t3-search-row { position: relative; }

.t3-search {
    width: 100%;
    height: 36px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #f8fafc;
    color: #0f172a;
    padding: 0 32px 0 12px;
    font-size: 13px;
}

.t3-search-clear {
    position: absolute;
    right: 4px;
    top: 4px;
    border: none !important;
    background: transparent !important;
    color: #94a3b8 !important;
    font-size: 18px;
    padding: 4px 8px !important;
}

.t3-grid {
    flex: 1;
    min-height: 0;
    overflow: auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 6px;
    align-content: start;
    padding: 2px;
}

.t3-grid-empty {
    grid-column: 1 / -1;
    color: #94a3b8;
    text-align: center;
    padding: 24px 8px;
    font-size: 13px;
}

.t3-plu {
    min-height: 68px;
    border: 1px solid rgba(15, 23, 42, 0.08) !important;
    border-radius: 10px;
    padding: 8px 6px !important;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: left;
    font-weight: 700;
    line-height: 1.15;
}

.t3-plu-name {
    font-size: 12px;
    color: #0f172a;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.t3-plu-rate {
    font-size: 12px;
    margin-top: 4px;
    color: #334155;
}

.t3-plu-0 { background: #ecfeff !important; }
.t3-plu-1 { background: #fee2e2 !important; }
.t3-plu-2 { background: #fef9c3 !important; }
.t3-plu-3 { background: #dcfce7 !important; }
.t3-plu-4 { background: #ffedd5 !important; }
.t3-plu-5 { background: #dbeafe !important; }
.t3-plu-6 { background: #fce7f3 !important; }
.t3-plu-7 { background: #dbeafe !important; }

.t3-tabs {
    display: flex;
    flex-wrap: nowrap;
    gap: 4px;
    overflow-x: auto;
    padding-top: 4px;
    border-top: 1px solid #e2e8f0;
}

.t3-tab {
    flex: 0 0 auto;
    border: none !important;
    border-radius: 8px;
    background: #f1f5f9 !important;
    color: #475569 !important;
    font-size: 11px;
    font-weight: 700;
    padding: 8px 12px !important;
    white-space: nowrap;
}

.t3-tab.is-on {
    background: #061a40 !important;
    color: #fff !important;
}

.t3-batch-popup {
    position: absolute;
    left: 12px;
    right: 12px;
    top: 48px;
    bottom: 48px;
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    z-index: 20;
    overflow: auto;
    padding: 8px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}

.t3-batch-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.t3-batch-head button {
    border: none !important;
    background: #ffe4e6 !important;
    color: #e11d48 !important;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    font-size: 18px;
}

@media (max-width: 1100px) {
    .t3-top,
    .t3-till.is-pay .t3-top {
        grid-template-columns: 1fr;
        max-height: none;
    }
    .t3-console {
        grid-template-columns: 90px minmax(0, 1fr) 100px;
    }
    .t3-pay-body {
        grid-template-columns: 1fr;
    }
    .t3-pay-right {
        border-left: none;
        padding-left: 0;
        border-top: 1px solid #e2e8f0;
        padding-top: 10px;
    }
}

@media (max-width: 700px) {
    .t3-console {
        grid-template-columns: 1fr;
    }
    .t3-pay-methods {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .t3-pay-mid {
        grid-template-columns: 1fr;
    }
}

/* ===== t3-18 Odoo layout overrides (compact keypad, larger line list) ===== */

.t3-till {
    display: grid !important;
    grid-template-columns: minmax(300px, 0.9fr) minmax(0, 1.55fr) !important;
    grid-template-rows: minmax(0, 1fr) !important;
    gap: 8px !important;
}

.t3-till.is-pay {
    grid-template-columns: minmax(280px, 0.88fr) minmax(0, 1.55fr) !important;
}

.t3-till:not(.is-pay) .t3-top {
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
    min-height: 0 !important;
    max-height: none !important;
    height: 100% !important;
    grid-column: 1;
    grid-row: 1;
}

.t3-till.is-pay .t3-top {
    display: contents !important;
    max-height: none !important;
}

.t3-till.is-pay .t3-receipt {
    grid-column: 1;
    grid-row: 1;
    height: 100%;
    max-height: none;
}

.t3-till.is-pay .t3-checkout {
    grid-column: 2;
    grid-row: 1;
    height: 100%;
    min-height: 0;
}

.t3-receipt {
    flex: 1 1 0 !important;
    min-height: 0 !important;
}

.t3-till:not(.is-pay) .t3-total-box {
    background: #fff !important;
    color: #0f172a !important;
    border-top: 1px solid #e2e8f0;
    padding: 8px 10px !important;
}

.t3-till:not(.is-pay) .t3-total-main span,
.t3-till:not(.is-pay) .t3-total-main strong {
    color: #0f172a !important;
}

.t3-till:not(.is-pay) .t3-total-main strong {
    font-size: 20px !important;
}

.t3-meta {
    gap: 4px !important;
    padding: 5px 8px !important;
    max-height: 52px;
    overflow: auto;
    border-top: 1px solid #e2e8f0;
    border-bottom: none !important;
}

.t3-lines {
    padding: 4px 6px !important;
}

.t3-line {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 7px 6px !important;
    border-bottom: 1px solid #f1f5f9 !important;
    cursor: pointer;
    min-height: 40px;
}

.t3-line.is-edit,
.t3-line-pending {
    background: #dbeafe !important;
    border-radius: 8px !important;
    border-bottom-color: transparent !important;
    box-shadow: inset 0 0 0 1px #93c5fd;
    margin: 2px 0;
}

.t3-line-qtybadge {
    flex: 0 0 26px;
    width: 26px;
    height: 26px;
    border-radius: 7px;
    background: #0f172a;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.t3-line-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.t3-line-name {
    font-size: 12px !important;
    font-weight: 700 !important;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block !important;
}

.t3-line-sub {
    display: block !important;
    font-size: 10px;
    color: #3b82f6;
    font-weight: 600;
}

.t3-line-amt {
    flex: 0 0 auto;
    font-size: 12px !important;
    font-weight: 800 !important;
    white-space: nowrap;
}

.t3-line-del {
    border: none !important;
    border-radius: 6px !important;
    background: #ffe4e6 !important;
    color: #e11d48 !important;
    font-size: 15px !important;
    font-weight: 700;
    padding: 0 !important;
    width: 22px !important;
    height: 22px !important;
    line-height: 1;
    flex-shrink: 0;
}

/* Compact calculator — frees space for line items */
.t3-console {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: none !important;
    gap: 4px !important;
    padding: 5px !important;
    flex: 0 0 auto !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
}

.t3-console.is-calc-open {
    box-shadow: 0 0 0 2px #93c5fd, 0 3px 10px rgba(37, 99, 235, 0.12);
}

.t3-left-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    align-items: center;
}

.t3-chip-act {
    border: 1px solid #e2e8f0 !important;
    border-radius: 6px;
    background: #f8fafc !important;
    color: #0f172a !important;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 6px !important;
    min-height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
}

.t3-chip-act img {
    width: 12px;
    height: 12px;
}

.t3-nav-row {
    display: inline-grid;
    grid-template-columns: 1fr 1fr;
    gap: 3px;
}

.t3-pad-display {
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 26px;
    padding: 2px 8px;
    border-radius: 7px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.t3-pad-display.is-on {
    background: #eff6ff;
    border-color: #93c5fd;
}

.t3-pad-display em {
    font-style: normal;
    font-size: 9px;
    font-weight: 800;
    color: #64748b;
    text-transform: uppercase;
}

.t3-pad-display strong {
    font-size: 14px;
    font-weight: 800;
    color: #0f172a;
}

.t3-pad-hint {
    margin-left: auto;
    font-size: 9px;
    color: #94a3b8;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 50%;
}

.t3-odoo-pad {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 52px;
    gap: 3px;
}

.t3-odoo-nums {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 3px;
}

.t3-odoo-nums > button,
.t3-odoo-modes > button {
    min-height: 28px !important;
    height: 28px !important;
    border: none !important;
    border-radius: 6px !important;
    background: #f1f5f9 !important;
    color: #0f172a !important;
    font-size: 13px !important;
    font-weight: 700;
    padding: 0 !important;
}

.t3-odoo-modes {
    display: grid;
    grid-template-rows: repeat(4, 28px);
    gap: 3px;
}

.t3-mode-qty.is-on,
.t3-mode-disc.is-on,
.t3-mode-price.is-on {
    background: #93c5fd !important;
    color: #4c1d95 !important;
    box-shadow: inset 0 0 0 1px #3b82f6;
}

.t3-pad-sign { background: #fde68a !important; color: #92400e !important; font-size: 10px !important; }
.t3-pad-dot { background: #fed7aa !important; color: #9a3412 !important; }
.t3-odoo-modes .t3-pad-bk {
    background: #fecaca !important;
    color: #991b1b !important;
    font-size: 13px !important;
}

.t3-console-foot {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    flex-shrink: 0;
}

.t3-pay-cta {
    width: 100%;
    min-height: 34px !important;
    border: none !important;
    border-radius: 8px !important;
    background: linear-gradient(180deg, #2563eb 0%, #1d4ed8 100%) !important;
    color: #fff !important;
    font-size: 12px !important;
    font-weight: 800;
    box-shadow: 0 1px 4px rgba(37, 99, 235, 0.22);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 8px !important;
}

.t3-save-print-cta {
    width: 100%;
    min-height: 34px !important;
    border: none !important;
    border-radius: 8px !important;
    background: linear-gradient(180deg, #0f766e 0%, #0d9488 100%) !important;
    color: #fff !important;
    font-size: 11px !important;
    font-weight: 800;
    box-shadow: 0 1px 4px rgba(13, 148, 136, 0.22);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 6px 6px !important;
    line-height: 1.15;
}

.t3-save-print-cta i {
    font-size: 14px;
    flex-shrink: 0;
}

.t3-pay-cta:disabled,
.t3-save-print-cta:disabled {
    opacity: 0.45;
}

.t3-more-wrap {
    position: relative;
    z-index: 30;
    overflow: visible;
}

.t3-more-wrap .dropdown-toggle::after { display: none; }

.t3-more-menu {
    z-index: 1080 !important;
    min-width: 200px;
    max-height: min(70vh, 420px);
    overflow-y: auto;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.18);
}

.t3-more-menu button {
    display: block;
    width: 100%;
    border: none;
    background: transparent;
    text-align: left;
    padding: 8px 10px;
    font-size: 13px;
    color: #0f172a;
}

.t3-till > .offcanvas {
    position: fixed !important;
    z-index: 1100;
}

/* Right product panel */
.t3-items {
    grid-column: 2 !important;
    grid-row: 1 !important;
    flex: unset !important;
    max-height: none !important;
    height: 100% !important;
    min-height: 0 !important;
    padding: 8px !important;
    gap: 6px !important;
}

.t3-search {
    height: 36px !important;
    border-radius: 8px !important;
    font-size: 13px !important;
}

.t3-cats-bar {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    overflow-x: auto;
    flex-shrink: 0;
    padding-bottom: 2px;
}

.t3-cat-tile {
    flex: 0 0 auto;
    min-width: 96px;
    min-height: 36px !important;
    height: 36px !important;
    border: 2px solid transparent !important;
    border-radius: 8px;
    padding: 4px 6px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-weight: 800;
    box-shadow: inset 0 -2px 0 rgba(15, 23, 42, 0.1);
}

.t3-cat-label {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.t3-cat-all { background: #0f172a !important; color: #f8fafc !important; }
.t3-cat-0 { background: #22d3ee !important; color: #083344 !important; }
.t3-cat-1 { background: #f43f5e !important; color: #fff !important; }
.t3-cat-2 { background: #facc15 !important; color: #422006 !important; }
.t3-cat-3 { background: #22c55e !important; color: #052e16 !important; }
.t3-cat-4 { background: #fb923c !important; color: #7c2d12 !important; }
.t3-cat-5 { background: #a78bfa !important; color: #2e1065 !important; }
.t3-cat-6 { background: #f472b6 !important; color: #500724 !important; }
.t3-cat-7 { background: #60a5fa !important; color: #1e3a8a !important; }

.t3-cat-tile.is-on {
    border-color: #0f172a !important;
    box-shadow: 0 0 0 2px #0f172a;
}

.t3-grid {
    grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)) !important;
    gap: 6px !important;
}

.t3-plu {
    min-height: 56px !important;
    border-radius: 8px !important;
    padding: 6px 7px !important;
}

.t3-plu-name { font-size: 11px !important; }
.t3-plu-rate { font-size: 11px !important; margin-top: 2px !important; }

/* Payment actions refined */
.t3-pay-actions {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    margin-top: auto;
}

.t3-pay-actions .t3-save-print {
    width: 100%;
    height: 44px !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 800;
    border-radius: 10px;
    background: linear-gradient(180deg, #0f766e 0%, #0d9488 100%) !important;
}

.t3-pay-icos {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
}

.t3-pay-ico {
    width: 100% !important;
    height: 36px !important;
}

.t3-txn-panel .t3-txn-menu {
    display: flex;
    flex-direction: column;
}

.t3-txn-opt {
    display: block;
    width: 100%;
    text-align: left;
    border: none !important;
    border-bottom: 1px solid #e2e8f0 !important;
    border-radius: 0 !important;
    background: #fff !important;
    padding: 12px 16px !important;
    font-size: 14px;
    font-weight: 600;
    color: #0f172a !important;
}

@media (max-width: 1100px) {
    .t3-till:not(.is-pay) {
        grid-template-columns: 1fr !important;
        grid-template-rows: minmax(0, 0.95fr) minmax(260px, 0.85fr) !important;
        max-height: none !important;
    }
    .t3-till:not(.is-pay) .t3-top { grid-column: 1; grid-row: 1; }
    .t3-till:not(.is-pay) .t3-items { grid-column: 1; grid-row: 2; }
    .t3-till.is-pay {
        grid-template-columns: 1fr !important;
        grid-template-rows: minmax(220px, 0.42fr) minmax(0, 1fr) !important;
    }
    .t3-till.is-pay .t3-receipt { grid-column: 1; grid-row: 1; }
    .t3-till.is-pay .t3-checkout { grid-column: 1; grid-row: 2; }
}

/* ===== t3-20 Odoo polish: slim chrome, action pad, stronger cards ===== */

.t3-receipt-toolbar {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 4px !important;
    padding: 4px 6px !important;
    min-height: 34px;
}

.t3-receipt-toolbar .t3-theme-select {
    max-width: 88px;
    min-height: 28px !important;
    font-size: 11px !important;
    padding: 2px 4px !important;
}

.t3-receipt-toolbar .t3-mini-btn {
    min-height: 28px !important;
    padding: 2px 8px !important;
    font-size: 11px !important;
    font-weight: 700;
    white-space: nowrap;
}

.t3-receipt-toolbar .t3-home-btn {
    min-width: 28px;
    padding: 2px 6px !important;
}

.t3-receipt-toolbar .t3-barcode {
    flex: 1 1 auto;
    min-width: 72px;
    height: 28px !important;
    font-size: 11px !important;
    padding: 2px 8px !important;
}

.t3-receipt-head {
    padding: 4px 10px !important;
}

.t3-meta {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 4px !important;
    padding: 4px 8px !important;
    max-height: 36px !important;
    overflow-x: auto;
    overflow-y: hidden;
}

.t3-meta .t3-chip {
    flex: 0 0 auto;
    font-size: 10px !important;
    padding: 3px 8px !important;
    min-height: 26px;
}

.t3-left-actions {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 4px !important;
    justify-content: space-between;
}

.t3-chip-new {
    background: #0f172a !important;
    color: #fff !important;
    border-color: #0f172a !important;
    min-width: 56px;
}

.t3-left-actions .t3-more-wrap {
    margin-left: auto;
}

.t3-finyear-in-more {
    display: block;
    width: 100%;
    margin: 4px 0 6px;
    padding: 0 4px;
}

.t3-pad-display {
    min-height: 30px !important;
    padding: 4px 10px !important;
}

.t3-pad-display strong {
    font-size: 16px !important;
}

.t3-odoo-nums > button,
.t3-odoo-modes > button {
    min-height: 32px !important;
    height: 32px !important;
    font-size: 14px !important;
    border-radius: 8px !important;
}

.t3-odoo-modes {
    grid-template-rows: repeat(4, 32px) !important;
}

.t3-mode-qty.is-on,
.t3-mode-disc.is-on,
.t3-mode-price.is-on {
    background: #3b82f6 !important;
    color: #fff !important;
    box-shadow: none !important;
}

.t3-console-foot {
    display: flex !important;
    flex-direction: column !important;
    gap: 5px !important;
}

.t3-customer-cta {
    width: 100%;
    min-height: 38px !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 10px !important;
    background: #fff !important;
    color: #0f172a !important;
    font-size: 12px !important;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 10px !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.t3-customer-cta i {
    font-size: 15px;
    color: #64748b;
    flex-shrink: 0;
}

.t3-customer-cta span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.t3-console-foot-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.t3-pay-cta,
.t3-save-print-cta {
    min-height: 44px !important;
    border-radius: 10px !important;
    font-size: 13px !important;
}

.t3-save-print-cta {
    font-size: 12px !important;
}

.t3-line.is-edit {
    background: #eff6ff !important;
    box-shadow: inset 3px 0 0 #3b82f6, inset 0 0 0 1px #bfdbfe !important;
}

.t3-line.is-edit .t3-line-qtybadge {
    background: #3b82f6 !important;
}

.t3-cats-bar {
    gap: 6px !important;
    padding: 2px 0 4px !important;
    scrollbar-width: thin;
}

.t3-cat-tile {
    min-width: 108px !important;
    min-height: 40px !important;
    height: 40px !important;
    border-radius: 10px !important;
    border-width: 2px !important;
}

.t3-cat-tile.is-on {
    border-color: #fff !important;
    outline: 2px solid #0f172a;
    outline-offset: 1px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.22) !important;
    transform: translateY(-1px);
}

.t3-cat-label {
    font-size: 11px !important;
}

.t3-grid {
    grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)) !important;
    gap: 8px !important;
}

.t3-plu {
    min-height: 72px !important;
    border-radius: 10px !important;
    padding: 8px 9px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    border: 1px solid rgba(15, 23, 42, 0.06) !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
    transition: transform 0.08s ease, box-shadow 0.08s ease;
}

.t3-plu:active {
    transform: scale(0.97);
    box-shadow: inset 0 0 0 2px #3b82f6;
}

.t3-plu-name {
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-align: left;
    width: 100%;
}

.t3-plu-rate {
    font-size: 12px !important;
    font-weight: 800 !important;
    margin-top: 4px !important;
    color: #0f172a !important;
    opacity: 0.85;
}

.t3-search {
    height: 40px !important;
    border-radius: 10px !important;
    font-size: 14px !important;
    padding-left: 12px !important;
}

/* ===== t3-21 restore full actions + compact pay foot ===== */

.t3-receipt-toolbar {
    flex-wrap: wrap !important;
    gap: 4px !important;
    padding: 5px 6px !important;
    min-height: 0;
}

.t3-receipt-toolbar .t3-theme-select {
    max-width: 96px;
}

.t3-receipt-toolbar .t3-finyear {
    min-width: 90px;
    max-width: 120px;
}

.t3-meta {
    flex-wrap: wrap !important;
    max-height: 56px !important;
    overflow: auto !important;
    gap: 4px !important;
    padding: 5px 8px !important;
}

.t3-left-actions {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 3px !important;
    justify-content: flex-start !important;
}

.t3-console-foot {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 5px !important;
    flex-direction: unset !important;
}

.t3-customer-cta,
.t3-console-foot-row {
    display: none !important;
}

.t3-pay-cta,
.t3-save-print-cta {
    min-height: 32px !important;
    height: 32px !important;
    border-radius: 8px !important;
    font-size: 11px !important;
    padding: 4px 6px !important;
    box-shadow: none !important;
}

.t3-save-print-cta i {
    font-size: 12px;
}

/* ===== t3-22 single-row toolbar: compact controls + big barcode ===== */

.t3-receipt-toolbar {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 4px !important;
    padding: 4px 6px !important;
    min-height: 32px !important;
    overflow: hidden;
}

.t3-receipt-toolbar .t3-theme-select {
    flex: 0 0 auto !important;
    width: 78px !important;
    max-width: 78px !important;
    min-height: 26px !important;
    height: 26px !important;
    font-size: 10px !important;
    padding: 0 4px !important;
}

.t3-receipt-toolbar .t3-mini-btn {
    flex: 0 0 auto !important;
    min-height: 26px !important;
    height: 26px !important;
    padding: 0 7px !important;
    font-size: 10px !important;
    border-radius: 6px !important;
    gap: 2px !important;
}

.t3-receipt-toolbar .t3-home-btn {
    min-width: auto;
    padding: 0 6px !important;
}

.t3-receipt-toolbar .t3-home-btn i {
    font-size: 12px;
}

.t3-receipt-toolbar .t3-finyear {
    flex: 0 0 auto !important;
    width: 72px !important;
    max-width: 72px !important;
    min-width: 64px !important;
}

.t3-receipt-toolbar .t3-finyear .ui-select-toggle,
.t3-receipt-toolbar .t3-finyear .select2-choice,
.t3-receipt-toolbar .t3-finyear .ui-select-match {
    min-height: 26px !important;
    height: 26px !important;
    font-size: 10px !important;
    padding: 0 6px !important;
    line-height: 24px !important;
}

.t3-receipt-toolbar .t3-barcode {
    flex: 1 1 auto !important;
    min-width: 120px !important;
    width: auto !important;
    height: 26px !important;
    font-size: 12px !important;
    padding: 0 8px !important;
    border-radius: 6px !important;
    border: 1.5px solid #0f172a !important;
}

.t3-receipt-toolbar .t3-back-sale {
    margin-left: 0 !important;
    flex: 0 0 auto !important;
}

/* ===== t3-23 fix year + more dropdown clipping/position ===== */

.t3-till:not(.is-pay) .t3-top,
.t3-till:not(.is-pay) .t3-receipt {
    overflow: visible !important;
}

.t3-till:not(.is-pay) .t3-lines {
    overflow: auto !important;
}

.t3-receipt-toolbar {
    overflow: visible !important;
    position: relative;
    z-index: 40;
}

.t3-receipt-toolbar .t3-finyear,
.t3-receipt-toolbar .t3-finyear.ui-select-container {
    position: relative !important;
    z-index: 45 !important;
    overflow: visible !important;
}

.t3-receipt-toolbar .t3-finyear.open,
.t3-receipt-toolbar .t3-finyear.ui-select-container.open,
.t3-receipt-toolbar .t3-finyear.direction-up,
.t3-receipt-toolbar .t3-finyear.direction-down {
    z-index: 60 !important;
}

.t3-receipt-toolbar .t3-finyear .ui-select-dropdown,
.t3-receipt-toolbar .t3-finyear .ui-select-choices,
.t3-receipt-toolbar .t3-finyear .select2-drop {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: auto !important;
    min-width: 140px !important;
    max-height: 220px !important;
    overflow-y: auto !important;
    z-index: 70 !important;
    background: #fff !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px !important;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.16) !important;
}

.t3-console {
    overflow: visible !important;
    z-index: 25;
}

.t3-left-actions {
    overflow: visible !important;
    position: relative;
    z-index: 30;
}

.t3-more-wrap {
    position: relative !important;
    z-index: 50 !important;
    overflow: visible !important;
}

.t3-more-menu {
    position: absolute !important;
    top: calc(100% + 4px) !important;
    left: auto !important;
    right: 0 !important;
    bottom: auto !important;
    inset: auto auto auto auto !important;
    transform: none !important;
    margin: 0 !important;
    min-width: 200px !important;
    max-height: min(55vh, 360px) !important;
    z-index: 1080 !important;
    background: #fff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 10px !important;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.18) !important;
}

.t3-more-menu.show {
    display: block !important;
}

/* ===== t3-24 Odoo line: qty x price + smooth edit ===== */

.t3-line-unit {
    display: block !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    color: #64748b !important;
    line-height: 1.2;
    margin-top: 1px;
}

.t3-line.is-edit .t3-line-unit {
    color: #2563eb !important;
}

.t3-line-qtybadge {
    transition: background 0.12s ease, transform 0.12s ease;
}

.t3-line.is-edit .t3-line-qtybadge {
    transform: scale(1.05);
}

.t3-line-amt {
    transition: color 0.12s ease;
}

.t3-pad-display.is-on strong {
    letter-spacing: 0.02em;
}

/* ===== t3-25 Odoo payment screen layout ===== */

.t3-till.is-pay {
    grid-template-columns: minmax(220px, 0.72fr) minmax(0, 1.9fr) !important;
}

.t3-till.is-pay .t3-receipt {
    border-radius: 12px !important;
}

.t3-till.is-pay .t3-checkout.t3-odoo-pay {
    display: grid !important;
    grid-template-columns: minmax(160px, 0.85fr) minmax(0, 1.2fr) minmax(220px, 0.95fr) !important;
    grid-template-rows: minmax(0, 1fr) !important;
    gap: 10px !important;
    padding: 10px !important;
    background: #f1f5f9 !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 12px !important;
    min-height: 0 !important;
    height: 100% !important;
    overflow: hidden !important;
}

.t3-odoo-pay-left,
.t3-odoo-pay-center,
.t3-odoo-pay-right {
    display: flex;
    flex-direction: column;
    min-height: 0;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 10px;
}

.t3-odoo-methods {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1 1 auto;
    overflow: auto;
    min-height: 0;
}

.t3-odoo-method {
    width: 100%;
    min-height: 48px !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 10px !important;
    background: #f8fafc !important;
    color: #0f172a !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    text-align: left !important;
    padding: 10px 12px !important;
    box-shadow: none !important;
}

.t3-odoo-method.is-on {
    background: #2563eb !important;
    border-color: #2563eb !important;
    color: #fff !important;
}

.t3-odoo-method-name {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.t3-odoo-pay-tools {
    flex: 0 0 auto;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #e2e8f0;
}

.t3-odoo-pay-foot {
    display: grid;
    grid-template-columns: 1fr 1.35fr;
    gap: 8px;
    margin-top: 10px;
    flex-shrink: 0;
}

.t3-odoo-back {
    min-height: 48px !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 10px !important;
    background: #fff !important;
    color: #0f172a !important;
    font-size: 14px !important;
    font-weight: 700 !important;
}

.t3-odoo-validate {
    min-height: 48px !important;
    border: none !important;
    border-radius: 10px !important;
    background: #c7b7c4 !important;
    color: #fff !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    opacity: 0.85;
}

.t3-odoo-validate.is-ready {
    background: linear-gradient(180deg, #2563eb 0%, #1d4ed8 100%) !important;
    opacity: 1;
    box-shadow: 0 2px 8px rgba(113, 75, 103, 0.35);
}

.t3-odoo-validate:disabled {
    opacity: 0.45;
}

.t3-odoo-pay-center {
    justify-content: flex-start;
    gap: 10px;
}

.t3-odoo-due {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 160px;
    border-radius: 12px;
    background: #f8fafc;
    padding: 16px 12px;
}

.t3-odoo-due.is-empty {
    background: transparent;
}

.t3-odoo-due.is-paid {
    background: #ecfdf5;
}

.t3-odoo-due em {
    font-style: normal;
    font-size: 14px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 6px;
}

.t3-odoo-due strong {
    font-size: clamp(36px, 6vw, 72px);
    font-weight: 800;
    color: #0f172a;
    line-height: 1.05;
    letter-spacing: -0.02em;
}

.t3-odoo-due.is-paid strong {
    color: #15803d;
}

.t3-odoo-paylines {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 180px;
    overflow: auto;
}

.t3-odoo-payline {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.t3-odoo-payline-name {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
}

.t3-odoo-payline strong {
    font-size: 14px;
    font-weight: 800;
}

.t3-odoo-payline-del {
    width: 28px !important;
    height: 28px !important;
    border: none !important;
    border-radius: 8px !important;
    background: #fee2e2 !important;
    color: #b91c1c !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    padding: 0 !important;
}

.t3-odoo-summary {
    border-top: 1px solid #e2e8f0;
    padding-top: 8px;
}

.t3-odoo-summary .t3-sum-row {
    padding: 4px 0 !important;
    font-size: 13px;
}

.t3-odoo-pay-icos {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    margin-top: auto;
}

.t3-odoo-pay-icos .t3-pay-ico {
    width: 100% !important;
    height: 36px !important;
}

.t3-odoo-pay-right {
    gap: 8px;
}

.t3-odoo-amount-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.t3-odoo-amount-row {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #f8fafc;
    padding: 8px 10px;
}

.t3-odoo-amount-row em {
    font-style: normal;
    font-weight: 800;
    color: #64748b;
}

.t3-odoo-amount-row input {
    flex: 1;
    border: none !important;
    background: transparent !important;
    font-size: 22px !important;
    font-weight: 800 !important;
    min-width: 0;
    padding: 0 !important;
}

.t3-odoo-numpad {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: minmax(42px, 1fr);
    gap: 6px;
    flex: 1 1 auto;
}

.t3-odoo-numpad > button {
    min-height: 42px !important;
    border: none !important;
    border-radius: 10px !important;
    background: #f1f5f9 !important;
    color: #0f172a !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    padding: 0 !important;
}

.t3-odoo-numpad > button:disabled {
    opacity: 0.4;
}

.t3-odoo-bk {
    background: #fee2e2 !important;
    color: #991b1b !important;
}

.t3-odoo-clear {
    background: #ffedd5 !important;
    color: #9a3412 !important;
}

.t3-odoo-add,
.t3-odoo-add-tall {
    background: #2563eb !important;
    color: #fff !important;
    font-size: 14px !important;
    font-weight: 800 !important;
}

.t3-odoo-add-tall {
    grid-row: span 2;
}

.t3-odoo-pay-right .t3-exact {
    width: 100%;
    min-height: 40px !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 10px !important;
    background: #fff !important;
    color: #0f172a !important;
    font-weight: 700 !important;
}

.t3-odoo-pay-right .t3-denoms {
    max-height: 120px;
    overflow: auto;
}

.t3-odoo-pay-right .t3-remark {
    margin-top: auto;
}

@media (max-width: 1100px) {
    .t3-till.is-pay .t3-checkout.t3-odoo-pay {
        grid-template-columns: 1fr !important;
        grid-template-rows: auto auto auto !important;
        overflow: auto !important;
    }

    .t3-odoo-due strong {
        font-size: 42px !important;
    }
}


/* ===== t3-26 full-width payment (no left ticket) ===== */

.t3-till.is-pay {
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: minmax(0, 1fr) !important;
}

.t3-till.is-pay .t3-top {
    display: contents !important;
}

.t3-till.is-pay .t3-receipt {
    display: none !important;
}

.t3-till.is-pay .t3-checkout.t3-odoo-pay {
    grid-column: 1 / -1 !important;
    grid-row: 1 / -1 !important;
    width: 100% !important;
    height: 100% !important;
    display: grid !important;
    grid-template-columns: minmax(180px, 0.9fr) minmax(0, 1.35fr) minmax(240px, 1fr) !important;
    grid-template-rows: auto minmax(0, 1fr) !important;
    gap: 10px !important;
    padding: 12px !important;
}

.t3-odoo-pay-banner {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 14px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
}

.t3-odoo-pay-banner strong {
    font-size: 15px;
    color: #2563eb;
}

.t3-odoo-pay-banner-total {
    margin-left: auto;
    font-size: 14px;
    font-weight: 800;
}

.t3-till.is-pay .t3-odoo-pay-left,
.t3-till.is-pay .t3-odoo-pay-center,
.t3-till.is-pay .t3-odoo-pay-right {
    grid-row: 2;
    min-height: 0;
}

.t3-till.is-pay .t3-odoo-due {
    min-height: 200px;
}

.t3-till.is-pay .t3-odoo-due strong {
    font-size: clamp(48px, 7vw, 88px);
}

.t3-till.is-pay .t3-odoo-numpad {
    grid-auto-rows: minmax(48px, 1fr);
}

.t3-till.is-pay .t3-odoo-numpad > button {
    min-height: 48px !important;
    font-size: 20px !important;
}

@media (max-width: 1100px) {
    .t3-till.is-pay .t3-checkout.t3-odoo-pay {
        grid-template-columns: 1fr !important;
        grid-template-rows: auto auto auto auto !important;
        overflow: auto !important;
    }

    .t3-till.is-pay .t3-odoo-pay-left,
    .t3-till.is-pay .t3-odoo-pay-center,
    .t3-till.is-pay .t3-odoo-pay-right {
        grid-row: auto;
    }
}

/* ===== t3-27 payment: minimize nested scroll ===== */

.t3-till.is-pay {
    max-height: calc(100vh - 72px) !important;
    overflow: hidden !important;
}

.t3-till.is-pay .t3-checkout.t3-odoo-pay {
    gap: 8px !important;
    padding: 8px !important;
    overflow: hidden !important;
    grid-template-columns: minmax(170px, 0.85fr) minmax(0, 1.25fr) minmax(230px, 0.95fr) !important;
}

.t3-odoo-pay-banner {
    padding: 6px 12px !important;
    border-radius: 8px !important;
    min-height: 0;
}

.t3-odoo-pay-left,
.t3-odoo-pay-center,
.t3-odoo-pay-right {
    padding: 8px !important;
    border-radius: 10px !important;
    overflow: hidden !important;
}

/* LEFT: methods fill space, tools+actions pinned, scroll only if many methods */
.t3-odoo-pay-left {
    display: grid !important;
    grid-template-rows: minmax(0, 1fr) auto auto !important;
    gap: 6px !important;
}

.t3-odoo-methods {
    flex: unset !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 5px !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
}

.t3-odoo-method {
    min-height: 36px !important;
    height: 36px !important;
    padding: 6px 10px !important;
    border-radius: 8px !important;
    font-size: 12px !important;
    flex: 0 0 auto !important;
}

.t3-odoo-pay-tools {
    margin-top: 0 !important;
    padding-top: 6px !important;
}

.t3-odoo-pay-tools .t3-pay-disc-label,
.t3-odoo-pay-tools .t3-pay-txn label {
    font-size: 10px !important;
    margin-bottom: 2px !important;
}

.t3-odoo-pay-tools .t3-pay-disc-input,
.t3-odoo-pay-tools .t3-pay-txn select {
    min-height: 30px !important;
    height: 30px !important;
    font-size: 12px !important;
    padding: 2px 6px !important;
}

.t3-odoo-pay-tools .t3-disc-toggle button {
    min-height: 28px !important;
    padding: 2px 8px !important;
    font-size: 11px !important;
}

.t3-odoo-pay-foot {
    margin-top: 0 !important;
    gap: 6px !important;
}

.t3-odoo-back,
.t3-odoo-validate {
    min-height: 40px !important;
    height: 40px !important;
    font-size: 13px !important;
    border-radius: 8px !important;
}

/* CENTER: compact paid/due when lines exist; lines grow without clipping */
.t3-odoo-pay-center {
    display: grid !important;
    grid-template-rows: auto minmax(0, 1fr) auto auto !important;
    gap: 6px !important;
    overflow: hidden !important;
}

.t3-odoo-due {
    flex: unset !important;
    min-height: 0 !important;
    padding: 10px 8px !important;
    border-radius: 10px !important;
}

.t3-odoo-due.is-empty {
    min-height: 120px !important;
}

.t3-odoo-due.has-lines {
    min-height: 64px !important;
    padding: 8px !important;
}

.t3-odoo-due em {
    font-size: 11px !important;
    margin-bottom: 2px !important;
}

.t3-odoo-due strong {
    font-size: clamp(28px, 4.5vw, 52px) !important;
}

.t3-odoo-due.has-lines strong {
    font-size: clamp(24px, 3.5vw, 36px) !important;
}

.t3-odoo-paylines {
    max-height: none !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    gap: 4px !important;
    flex: unset !important;
}

.t3-odoo-payline {
    padding: 7px 10px !important;
    border-radius: 8px !important;
    min-height: 36px;
}

.t3-odoo-payline-name {
    font-size: 12px !important;
}

.t3-odoo-payline strong {
    font-size: 13px !important;
}

.t3-odoo-payline-del {
    width: 24px !important;
    height: 24px !important;
    font-size: 14px !important;
}

.t3-odoo-summary {
    padding-top: 4px !important;
}

.t3-odoo-summary .t3-sum-row {
    padding: 2px 0 !important;
    font-size: 12px !important;
}

.t3-odoo-pay-icos {
    margin-top: 0 !important;
    gap: 4px !important;
}

.t3-odoo-pay-icos .t3-pay-ico {
    height: 32px !important;
}

/* RIGHT: compact keypad, denoms in one thin strip */
.t3-odoo-pay-right {
    display: grid !important;
    grid-template-rows: auto minmax(0, 1fr) auto auto auto !important;
    gap: 6px !important;
    overflow: hidden !important;
}

.t3-odoo-amount-label {
    font-size: 10px !important;
    margin-bottom: 2px !important;
}

.t3-odoo-amount-row {
    padding: 6px 8px !important;
    border-radius: 8px !important;
}

.t3-odoo-amount-row input {
    font-size: 18px !important;
}

.t3-odoo-numpad {
    gap: 5px !important;
    grid-auto-rows: minmax(0, 1fr) !important;
    min-height: 0 !important;
}

.t3-odoo-numpad > button {
    min-height: 0 !important;
    height: auto !important;
    font-size: 16px !important;
    border-radius: 8px !important;
}

.t3-till.is-pay .t3-odoo-numpad {
    grid-auto-rows: minmax(0, 1fr) !important;
}

.t3-till.is-pay .t3-odoo-numpad > button {
    min-height: 0 !important;
    font-size: 16px !important;
}

.t3-till.is-pay .t3-odoo-due {
    min-height: 0 !important;
}

.t3-till.is-pay .t3-odoo-due.is-empty {
    min-height: 110px !important;
}

.t3-till.is-pay .t3-odoo-due.has-lines {
    min-height: 58px !important;
}

.t3-till.is-pay .t3-odoo-due strong {
    font-size: clamp(28px, 4vw, 48px) !important;
}

.t3-till.is-pay .t3-odoo-due.has-lines strong {
    font-size: clamp(22px, 3vw, 34px) !important;
}

.t3-odoo-pay-right .t3-exact {
    min-height: 34px !important;
    height: 34px !important;
    font-size: 12px !important;
    border-radius: 8px !important;
}

.t3-odoo-pay-right .t3-denoms {
    max-height: 72px !important;
    overflow: auto !important;
    margin: 0 !important;
    padding: 0 !important;
}

.t3-odoo-pay-right .t3-denoms-title {
    font-size: 10px !important;
    margin-bottom: 2px !important;
}

.t3-odoo-pay-right .t3-denoms-notes {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 4px !important;
    overflow-x: auto !important;
}

.t3-odoo-pay-right .t3-denom-note {
    min-width: 52px !important;
    padding: 2px !important;
}

.t3-odoo-pay-right .t3-denom-note img {
    max-height: 28px !important;
}

.t3-odoo-pay-right .t3-denoms-coins {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 3px !important;
}

.t3-odoo-pay-right .t3-denoms-coins button {
    min-height: 24px !important;
    padding: 2px 6px !important;
    font-size: 10px !important;
}

.t3-odoo-pay-right .t3-remark {
    margin-top: 0 !important;
    min-height: 30px !important;
    height: 30px !important;
    font-size: 12px !important;
    padding: 4px 8px !important;
}

/* ===== t3-28 Due spacing + Fiji text denom buttons ===== */

.t3-odoo-pay-center {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    overflow: hidden !important;
}

.t3-odoo-due {
    flex: 0 0 auto !important;
    min-height: 0 !important;
    width: 100%;
    padding: 12px 10px !important;
    justify-content: center !important;
    background: #f8fafc !important;
}

.t3-odoo-due.is-empty {
    min-height: 0 !important;
    padding: 14px 10px !important;
}

.t3-odoo-due.has-lines {
    min-height: 0 !important;
    padding: 8px 10px !important;
}

.t3-odoo-due strong {
    font-size: clamp(32px, 4.2vw, 48px) !important;
}

.t3-odoo-due.has-lines strong {
    font-size: clamp(24px, 3vw, 34px) !important;
}

.t3-odoo-paylines {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow-y: auto !important;
}

.t3-odoo-summary {
    flex: 0 0 auto !important;
    margin-top: 0 !important;
}

.t3-odoo-pay-spacer {
    flex: 1 1 auto;
    min-height: 0;
}

.t3-odoo-pay-icos {
    flex: 0 0 auto !important;
    margin-top: 0 !important;
}

.t3-till.is-pay .t3-odoo-due,
.t3-till.is-pay .t3-odoo-due.is-empty,
.t3-till.is-pay .t3-odoo-due.has-lines {
    min-height: 0 !important;
}

.t3-till.is-pay .t3-odoo-due strong {
    font-size: clamp(32px, 4vw, 46px) !important;
}

.t3-till.is-pay .t3-odoo-due.has-lines strong {
    font-size: clamp(24px, 3vw, 34px) !important;
}

/* Fiji denomination text buttons â€” no images, no horizontal scroll */
.t3-fiji-denoms {
    flex: 0 0 auto;
}

.t3-fiji-denoms .t3-denoms-title {
    font-size: 10px !important;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.t3-fiji-denom-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 5px !important;
}

.t3-fiji-denom {
    min-height: 34px !important;
    height: 34px !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px !important;
    background: #fff !important;
    color: #0f172a !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    padding: 0 4px !important;
    line-height: 1 !important;
}

.t3-fiji-denom.is-coin {
    background: linear-gradient(180deg, #fde68a 0%, #f59e0b 58%, #d97706 100%) !important;
    border-color: #b45309 !important;
    color: #78350f !important;
}

.t3-fiji-denom:active {
    background: #2563eb !important;
    border-color: #2563eb !important;
    color: #fff !important;
}

.t3-odoo-pay-right .t3-denoms,
.t3-odoo-pay-right .t3-denoms-notes,
.t3-odoo-pay-right .t3-denoms-coins {
    display: none !important;
}


/* ===== t3-29 Theme 3 colors + light Sale Type dropdown ===== */

.t3-odoo-pay-tools .t3-pay-txn select,
.t3-pay-txn select {
    background: #fff !important;
    background-color: #fff !important;
    color: #0f172a !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    -webkit-appearance: auto;
    appearance: auto;
    color-scheme: light;
}

.t3-odoo-pay-tools .t3-pay-txn select option,
.t3-pay-txn select option {
    background: #fff !important;
    color: #0f172a !important;
}

.t3-odoo-method.is-on {
    background: #2563eb !important;
    border-color: #1d4ed8 !important;
    color: #fff !important;
}

.t3-odoo-validate {
    background: #93c5fd !important;
    color: #fff !important;
}

.t3-odoo-validate.is-ready {
    background: linear-gradient(180deg, #2563eb 0%, #1d4ed8 100%) !important;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.28) !important;
}

.t3-odoo-pay-banner strong {
    color: #1d4ed8 !important;
}

.t3-odoo-add,
.t3-odoo-add-tall {
    background: #2563eb !important;
    color: #fff !important;
}

.t3-fiji-denom:active {
    background: #2563eb !important;
    border-color: #1d4ed8 !important;
    color: #fff !important;
}

.t3-odoo-pay-tools .t3-disc-toggle button.is-on,
.t3-pay-disc-toggle button.is-on {
    background: #2563eb !important;
    border-color: #1d4ed8 !important;
    color: #fff !important;
}

/* ===== t3-30 single-row compact line items ===== */

.t3-line {
    display: grid !important;
    grid-template-columns: 24px minmax(0, 1fr) auto auto auto 22px !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 5px 6px !important;
    min-height: 32px !important;
    border-bottom: 1px solid #f1f5f9 !important;
}

.t3-line-body {
    display: none !important;
}

.t3-line-qtybadge {
    flex: unset !important;
    width: 24px !important;
    height: 24px !important;
    font-size: 10px !important;
    border-radius: 6px !important;
}

.t3-line-name {
    display: block !important;
    min-width: 0 !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    margin: 0 !important;
}

.t3-line-unit {
    display: inline-block !important;
    font-size: 10px !important;
    font-weight: 600 !important;
    color: #64748b !important;
    white-space: nowrap !important;
    margin: 0 !important;
}

.t3-line-disc {
    display: inline-block !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    color: #3b82f6 !important;
    white-space: nowrap !important;
    background: #eff6ff;
    border-radius: 4px;
    padding: 1px 5px;
}

.t3-line-sub {
    display: none !important;
}

.t3-line-amt {
    font-size: 12px !important;
    font-weight: 800 !important;
    white-space: nowrap !important;
    text-align: right;
}

.t3-line-del {
    width: 20px !important;
    height: 20px !important;
    font-size: 13px !important;
}

.t3-line.is-edit .t3-line-unit {
    color: #2563eb !important;
}

/* When no discount, keep columns aligned: name can span into disc slot via auto columns */
.t3-lines {
    padding: 2px 4px !important;
}

/* ===== t3-30b flex single-row (no empty disc gap) ===== */
.t3-line {
    display: flex !important;
    grid-template-columns: none !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 4px 6px !important;
    min-height: 30px !important;
}

.t3-line-name {
    flex: 1 1 auto !important;
}

.t3-line-unit,
.t3-line-disc,
.t3-line-amt,
.t3-line-qtybadge,
.t3-line-del {
    flex: 0 0 auto !important;
}

/* ===== t3-32 column header + price only ===== */

.t3-lines-head {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) 72px 78px 22px;
    gap: 6px;
    align-items: center;
    padding: 6px 8px 4px;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
    flex-shrink: 0;
}

.t3-lines-head span {
    font-size: 10px;
    font-weight: 800;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.t3-lines-head .t3-col-qty,
.t3-lines-head .t3-col-price,
.t3-lines-head .t3-col-amt {
    text-align: center;
}

.t3-lines-head .t3-col-amt {
    text-align: right;
}

.t3-line {
    display: grid !important;
    grid-template-columns: 36px minmax(0, 1fr) 72px 78px 22px !important;
    gap: 6px !important;
    align-items: center !important;
    padding: 5px 8px !important;
    min-height: 30px !important;
}

.t3-line-qtybadge,
.t3-col-qty.t3-line-qtybadge {
    width: 28px !important;
    height: 24px !important;
    justify-self: center;
}

.t3-line-name {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    min-width: 0 !important;
}

.t3-line-name .t3-line-disc {
    flex: 0 0 auto;
    font-style: normal;
    font-size: 9px !important;
    padding: 0 4px;
}

.t3-line-price,
.t3-col-price {
    font-size: 11px !important;
    font-weight: 700 !important;
    color: #334155 !important;
    text-align: right !important;
    white-space: nowrap !important;
}

.t3-line-unit {
    display: none !important;
}

.t3-line-amt,
.t3-col-amt {
    text-align: right !important;
    font-size: 12px !important;
}

.t3-col-del {
    width: 22px;
    justify-self: end;
}

/* ===== t3-33 qty without black background ===== */
.t3-line-qtybadge,
.t3-col-qty.t3-line-qtybadge {
    background: transparent !important;
    color: #0f172a !important;
    border: none !important;
    box-shadow: none !important;
    font-weight: 800 !important;
}

.t3-line.is-edit .t3-line-qtybadge {
    background: transparent !important;
    color: #1d4ed8 !important;
}


/* ===== t3-34 base theme blue (override any leftover violet) ===== */
.t3-till {
    --t3-primary: var(--primary-color, var(--bs-primary, #2563eb));
    --t3-primary-dark: var(--primary-color-dark, #1d4ed8);
    --t3-primary-soft: #dbeafe;
    --t3-primary-bg: #eff6ff;
}

.t3-pay-cta,
.t3-odoo-method.is-on,
.t3-odoo-add,
.t3-odoo-add-tall,
.t3-odoo-validate.is-ready,
.t3-mode-qty.is-on,
.t3-mode-disc.is-on,
.t3-mode-price.is-on,
.t3-fiji-denom:active,
.t3-odoo-pay-tools .t3-disc-toggle button.is-on,
.t3-pay-disc-toggle button.is-on {
    background: var(--t3-primary) !important;
    border-color: var(--t3-primary-dark) !important;
    color: #fff !important;
}

.t3-odoo-validate.is-ready,
.t3-pay-cta {
    background: linear-gradient(180deg, var(--t3-primary) 0%, var(--t3-primary-dark) 100%) !important;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.28) !important;
}

.t3-odoo-validate:not(.is-ready) {
    background: #93c5fd !important;
    color: #fff !important;
}

.t3-line.is-edit {
    background: var(--t3-primary-bg) !important;
    box-shadow: inset 3px 0 0 var(--t3-primary), inset 0 0 0 1px #bfdbfe !important;
}

.t3-line.is-edit .t3-line-qtybadge,
.t3-line.is-edit .t3-line-unit,
.t3-odoo-pay-banner strong,
.t3-line-disc {
    color: var(--t3-primary-dark) !important;
}

.t3-line-disc {
    background: var(--t3-primary-soft) !important;
}

.t3-pad-display.is-on {
    background: var(--t3-primary-bg) !important;
    border-color: #93c5fd !important;
}

.t3-console.is-calc-open {
    box-shadow: 0 0 0 2px #93c5fd, 0 3px 10px rgba(37, 99, 235, 0.12) !important;
}

.t3-plu:active {
    box-shadow: inset 0 0 0 2px var(--t3-primary) !important;
}

/* ===== t3-35 barcode-only toolbar; menu extras in More ===== */
.t3-receipt-toolbar.t3-barcode-only {
    display: flex !important;
    flex-wrap: nowrap !important;
    padding: 6px 8px !important;
    gap: 0 !important;
    overflow: visible !important;
}

.t3-receipt-toolbar.t3-barcode-only .t3-barcode {
    flex: 1 1 auto !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 34px !important;
    font-size: 13px !important;
    border-radius: 8px !important;
    border: 1.5px solid #0f172a !important;
}

.t3-more-section {
    padding: 4px 6px 8px;
}

.t3-more-label {
    display: block;
    font-size: 10px;
    font-weight: 800;
    color: #64748b;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.t3-theme-in-more,
.t3-finyear-in-more {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
}

.t3-more-link {
    display: flex !important;
    align-items: center;
    gap: 6px;
    width: 100%;
    padding: 8px 10px;
    font-size: 13px;
    font-weight: 600;
    color: #0f172a !important;
    text-decoration: none !important;
    border-radius: 6px;
}

.t3-more-link:hover {
    background: #f1f5f9;
}

.t3-more-sep {
    margin: 6px 0;
    border: 0;
    border-top: 1px solid #e2e8f0;
}

/* ===== t3-36/37 barcode ⋯ (nav) + bottom ⋯ (More) kept separate ===== */
.t3-receipt-toolbar.t3-barcode-toolbar {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 6px 8px !important;
    overflow: visible !important;
    position: relative;
    z-index: 50;
}

.t3-receipt-toolbar.t3-barcode-toolbar .t3-barcode {
    flex: 1 1 auto !important;
    width: auto !important;
    min-width: 0 !important;
    height: 34px !important;
    font-size: 13px !important;
    border-radius: 8px !important;
    border: 1.5px solid #0f172a !important;
}

.t3-toolbar-more {
    flex: 0 0 auto !important;
    position: relative !important;
    z-index: 55 !important;
}

.t3-toolbar-more-btn {
    width: 34px !important;
    min-width: 34px !important;
    height: 34px !important;
    min-height: 34px !important;
    padding: 0 !important;
    border-radius: 8px !important;
    border: 1px solid #cbd5e1 !important;
    background: #fff !important;
}

.t3-toolbar-more-btn img {
    width: 16px;
    height: 16px;
}

.t3-toolbar-more .t3-more-menu {
    right: 0 !important;
    left: auto !important;
    top: calc(100% + 4px) !important;
    min-width: 220px !important;
}

/* ===== t3-39 product cards — moderate larger size ===== */
.t3-grid {
    grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)) !important;
    gap: 8px !important;
}

.t3-plu {
    min-height: 84px !important;
    border-radius: 10px !important;
    padding: 10px 10px !important;
}

.t3-plu-name {
    font-size: 13px !important;
    line-height: 1.28 !important;
    -webkit-line-clamp: 3;
}

.t3-plu-rate {
    font-size: 12px !important;
    margin-top: 5px !important;
}

/* Shared Theme 3 payment include (Theme 1 + Theme 3) */
.t3-pay-include {
    display: contents;
}

.t3-pay-card.card {
    background: #e2e8f0;
    border: none;
    box-shadow: none;
    margin-bottom: 0 !important;
    border-radius: 0;
    overflow: visible;
}

.t3-pay-card .card-body {
    background: #e2e8f0;
    padding: 0 !important;
}

/* Fiji notes: full bill image, natural aspect, no crop or squash */
.t3-odoo-pay-center:has(.t3-fiji-denoms) {
    overflow-x: hidden !important;
    overflow-y: auto !important;
}

.t3-odoo-pay-center:has(.t3-fiji-denoms) .t3-odoo-due {
    padding: 8px !important;
}

.t3-odoo-pay-center:has(.t3-fiji-denoms) .t3-odoo-due strong {
    font-size: clamp(22px, 3vw, 34px) !important;
}

.t3-odoo-pay-center .t3-fiji-denoms {
    flex: 0 0 auto !important;
    margin-top: 2px;
    min-width: 0;
    overflow: visible;
}

.t3-odoo-pay-center .t3-denoms-title {
    font-size: 10px !important;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.t3-fiji-notes {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.t3-fiji-note {
    position: relative;
    display: block;
    width: 100%;
    height: auto;
    padding: 0 !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px !important;
    overflow: hidden;
    background: #fff !important;
    box-shadow: none !important;
    line-height: 0;
}

.t3-fiji-note img {
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
}

.t3-fiji-note span {
    position: absolute;
    left: 6px;
    bottom: 6px;
    background: rgba(15, 23, 42, 0.82);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    line-height: 1.2;
}

.t3-fiji-note:active {
    outline: 2px solid #2563eb;
    outline-offset: 0;
}

.t3-fiji-coins {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 6px;
    margin-top: 8px;
}

.t3-odoo-pay-center .t3-fiji-denom.is-coin {
    min-height: 36px !important;
    height: 36px !important;
    border-radius: 999px !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    padding: 0 4px !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 1px 2px rgba(15, 23, 42, 0.18);
}

.t3-fiji-coins .t3-fiji-denom.is-coin:nth-child(1) {
    background: linear-gradient(180deg, #fde68a 0%, #f59e0b 55%, #d97706 100%) !important;
    border: 1px solid #b45309 !important;
    color: #78350f !important;
}

.t3-fiji-coins .t3-fiji-denom.is-coin:nth-child(2) {
    background: linear-gradient(180deg, #bbf7d0 0%, #34d399 55%, #059669 100%) !important;
    border: 1px solid #047857 !important;
    color: #064e3b !important;
}

.t3-fiji-coins .t3-fiji-denom.is-coin:nth-child(3) {
    background: linear-gradient(180deg, #e0f2fe 0%, #38bdf8 55%, #0284c7 100%) !important;
    border: 1px solid #0369a1 !important;
    color: #0c4a6e !important;
}

.t3-fiji-coins .t3-fiji-denom.is-coin:nth-child(4) {
    background: linear-gradient(180deg, #ddd6fe 0%, #a78bfa 55%, #7c3aed 100%) !important;
    border: 1px solid #6d28d9 !important;
    color: #4c1d95 !important;
}

.t3-fiji-coins .t3-fiji-denom.is-coin:nth-child(5) {
    background: linear-gradient(180deg, #fecdd3 0%, #fb7185 55%, #e11d48 100%) !important;
    border: 1px solid #be123c !important;
    color: #881337 !important;
}

.t3-fiji-coins .t3-fiji-denom.is-coin:nth-child(6) {
    background: linear-gradient(180deg, #fed7aa 0%, #fb923c 52%, #ea580c 100%) !important;
    border: 1px solid #c2410c !important;
    color: #7c2d12 !important;
}

.t3-odoo-pay-center .t3-fiji-denom.is-coin:hover {
    filter: brightness(1.07);
}

.t3-odoo-pay-center .t3-fiji-denom.is-coin:active {
    filter: brightness(0.9);
    color: #fff !important;
}

.t3-odoo-pay-right {
    grid-template-rows: auto minmax(0, 1fr) auto auto !important;
}

/* ===== Responsive payment (desktop 3-col unchanged) ===== */

@media (max-width: 1100px) {
    .layout-page:has(.t3-pay-card:not(.ng-hide)),
    .layout-page:has(.t3-pay-card:not(.ng-hide)) .content-wrapper,
    #customize-form:has(.t3-pay-card:not(.ng-hide)) {
        overflow: auto !important;
        height: auto !important;
        max-height: none !important;
    }

    #customize-form:has(.t3-pay-card:not(.ng-hide)) {
        display: block !important;
        min-height: 100dvh;
    }

    .t3-till.is-pay {
        display: block !important;
        max-height: none !important;
        height: auto !important;
        min-height: 0 !important;
        overflow: visible !important;
        grid-template-columns: none !important;
        grid-template-rows: none !important;
    }

    .t3-till.is-pay .t3-checkout.t3-odoo-pay {
        display: flex !important;
        flex-direction: column !important;
        grid-template-columns: none !important;
        grid-template-rows: none !important;
        height: auto !important;
        min-height: 0 !important;
        overflow: visible !important;
        gap: 10px !important;
    }

    .t3-till.is-pay .t3-odoo-pay-left,
    .t3-till.is-pay .t3-odoo-pay-center,
    .t3-till.is-pay .t3-odoo-pay-right {
        display: block !important;
        grid-row: auto !important;
        overflow: visible !important;
        min-height: 0 !important;
        height: auto !important;
        max-height: none !important;
        flex: none !important;
    }

    .t3-odoo-pay-left {
        display: flex !important;
        flex-direction: column !important;
    }

    .t3-odoo-methods {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        flex-direction: unset !important;
        flex-wrap: unset !important;
        overflow: visible !important;
        max-height: none !important;
        flex: none !important;
        gap: 6px !important;
    }

    .t3-odoo-method {
        flex: none !important;
        width: 100% !important;
        height: auto !important;
        min-height: 40px !important;
        margin: 0 !important;
    }

    .t3-odoo-pay-tools {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        margin-top: 8px !important;
        padding-top: 8px !important;
    }

    .t3-odoo-pay-foot {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        position: sticky;
        bottom: 0;
        z-index: 5;
        background: #fff;
        padding: 8px 0 4px;
        margin-top: 8px !important;
    }

    .t3-fiji-notes {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .t3-odoo-due {
        min-height: 0 !important;
        padding: 10px !important;
    }

    .t3-odoo-due strong {
        font-size: clamp(26px, 7vw, 40px) !important;
    }

    .t3-odoo-numpad {
        display: grid !important;
        grid-auto-rows: minmax(44px, auto) !important;
        height: auto !important;
        min-height: 0 !important;
    }

    .t3-pay-card.card,
    .t3-pay-card .card-body,
    .t3-pay-include {
        display: block !important;
        height: auto !important;
        max-height: none !important;
        min-height: 0 !important;
        overflow: visible !important;
        flex: none !important;
    }

    .t3-odoo-pay-center:has(.t3-fiji-denoms) {
        overflow: visible !important;
    }
}

@media (max-width: 700px) {
    .t3-fiji-notes {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .t3-fiji-coins {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }

    .t3-odoo-pay-foot {
        grid-template-columns: 1fr !important;
    }

    .t3-odoo-pay-banner {
        flex-wrap: wrap;
        gap: 4px;
    }

    .t3-odoo-due strong {
        font-size: clamp(22px, 8vw, 36px) !important;
    }
}

/* POS theme switch — same segmented toggle in Theme 1, Theme 2, and Theme 3 */
.pos-theme-toggle-slot {
    flex: 0 0 auto;
    width: auto;
    max-width: none;
}

.pos-theme-toggle {
    display: inline-flex !important;
    flex: 0 0 auto !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    height: 28px !important;
    margin: 0 !important;
    padding: 2px !important;
    gap: 2px !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px !important;
    background: #f1f5f9 !important;
    box-shadow: none !important;
    vertical-align: middle;
}

.pos-theme-toggle > .pos-theme-toggle-cap {
    display: inline-flex !important;
    align-items: center !important;
    flex: 0 0 auto !important;
    padding: 0 4px 0 6px !important;
    color: #64748b !important;
    font-family: "Public Sans", "Segoe UI", sans-serif !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    letter-spacing: 0.04em !important;
    text-transform: uppercase !important;
    white-space: nowrap !important;
    pointer-events: none;
}

.pos-theme-toggle > button.pos-theme-toggle-btn {
    appearance: none !important;
    -webkit-appearance: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 22px !important;
    max-width: none !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 7px !important;
    border: 0 !important;
    border-radius: 6px !important;
    background: transparent !important;
    background-image: none !important;
    color: #475569 !important;
    font-family: "Public Sans", "Segoe UI", sans-serif !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    letter-spacing: normal !important;
    text-transform: none !important;
    text-align: center !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    box-shadow: none !important;
    cursor: pointer !important;
}

.pos-theme-toggle > button.pos-theme-toggle-btn.is-on {
    background: #1d4ed8 !important;
    color: #ffffff !important;
}

.pos-theme-toggle > button.pos-theme-toggle-btn:hover:not(.is-on),
.pos-theme-toggle > button.pos-theme-toggle-btn:focus:not(.is-on) {
    background: #e2e8f0 !important;
    color: #0f172a !important;
    outline: none !important;
    box-shadow: none !important;
}

.dropdown-menu .pos-theme-menu-row {
    padding: 2px 2px 8px;
    margin: 0 0 6px;
    border-bottom: 1px solid #e2e8f0;
}

.dropdown-menu .pos-theme-toggle {
    width: 100% !important;
    justify-content: flex-start !important;
}

.pos-theme-1 .t1-till .bill_save_and_print_area ul li .pos-theme-toggle > button.pos-theme-toggle-btn,
.pos-theme-2 .t2-more-menu .pos-theme-toggle > button.pos-theme-toggle-btn,
.t3-more-menu .pos-theme-toggle > button.pos-theme-toggle-btn {
    display: inline-flex !important;
    width: auto !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 7px !important;
    border: 0 !important;
    border-radius: 6px !important;
    background: transparent !important;
    color: #475569 !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    text-align: center !important;
    box-shadow: none !important;
}

.pos-theme-1 .t1-till .bill_save_and_print_area ul li .pos-theme-toggle > button.pos-theme-toggle-btn.is-on,
.pos-theme-2 .t2-more-menu .pos-theme-toggle > button.pos-theme-toggle-btn.is-on,
.t3-more-menu .pos-theme-toggle > button.pos-theme-toggle-btn.is-on {
    background: #1d4ed8 !important;
    color: #ffffff !important;
}

.pos-theme-1 .t1-till .bill_save_and_print_area ul li .pos-theme-toggle > button.pos-theme-toggle-btn:hover,
.pos-theme-2 .t2-more-menu .pos-theme-toggle > button.pos-theme-toggle-btn:hover:not(.is-on),
.t3-more-menu .pos-theme-toggle > button.pos-theme-toggle-btn:hover:not(.is-on) {
    background: #e2e8f0 !important;
    color: #0f172a !important;
    border: 0 !important;
}
