.connected-pos {
  --pos-green: #126458;
  --pos-ink: #151d28;
  --pos-border: #dce1e5;
  --pos-sidebar-width: clamp(158px, 16vw, 192px);
  background: #fff;
  color: var(--pos-ink);
  font-size: 14px;
}

.connected-pos > header { background: #faf7ee; color: #18362f; padding: 16px 22px; }
.connected-pos > header span { color: #434b53; }
.pos-signed-in > header { display: none; }
.pos-sidebar { background: #faf7ee; border-right: 1px solid #f0eee7; padding: 17px 8px; }
.pos-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 8px;
  color: #18362f;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -.055em;
}
.pos-brand span { display: flex; align-items: end; gap: 3px; height: 22px; }
.pos-brand i { width: 5px; border-radius: 4px; background: #3b896e; }
.pos-brand i:nth-child(1) { height: 9px; }
.pos-brand i:nth-child(2) { height: 15px; }
.pos-brand i:nth-child(3) { height: 22px; }
#pos-menu > p { margin: 25px 10px 12px; color: #434b53; font-size: 11px; font-weight: 800; letter-spacing: .07em; }
.pos-sidebar nav { display: grid; gap: 4px; margin: 0; }
.pos-sidebar nav button, .pos-account button {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 36px;
  border-color: transparent;
  background: transparent;
  color: #303944;
  text-align: left;
}
.pos-sidebar svg { width: 19px; height: 19px; flex: none; }
.pos-account { display: grid; border-top: 1px solid #e9e5da; margin-top: 10px; padding-top: 5px; }
.pos-account[hidden], .pos-menu-toggle { display: none; }

.connected-pos button, .connected-pos input, .connected-pos select { padding: 7px 9px; border-radius: 8px; }
.connected-pos button.primary, .connected-pos button.active {
  background: var(--pos-green);
  border-color: var(--pos-green);
  color: #fff;
}
.connected-pos h1 { font-size: 28px; margin-bottom: 12px; }
.connected-pos h2 { font-size: 19px; margin-bottom: 8px; }
.connected-pos section { border-color: var(--pos-border); padding: 14px; margin-bottom: 12px; }
.connected-pos #page { min-width: 0; outline: none; }
.connected-pos #page:focus-visible { outline: 2px solid var(--pos-green); outline-offset: -2px; }
.connected-pos #message { margin: 0; min-height: 0; color: var(--pos-green); }
.connected-pos #message:empty { display: none; }
.connected-pos .category, .connected-pos .report-metrics div { background: #edf6f2; color: #24584d; }
.connected-pos summary, .connected-pos .product-profile .product-edit-action { color: var(--pos-green); }
.connected-pos .inventory-table th { background: #edf0f2; letter-spacing: .035em; }
.connected-pos .inventory-table td button { color: var(--pos-green); }
.connected-pos #page > section:has(form[data-form="close"]),
.connected-pos #page > section:has(form[data-form="open"]) {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  align-items: center;
}
.connected-pos #page > section:has(form[data-form="close"]) :is(h2,p),
.connected-pos #page > section:has(form[data-form="open"]) h2 { margin: 0; }

@media (min-width: 720px) {
  .pos-signed-in { display: grid; grid-template-columns: var(--pos-sidebar-width) minmax(0, 1fr); height: 100vh; height: 100dvh; overflow: hidden; }
  .pos-sidebar { min-height: 0; overflow: auto; }
  .pos-signed-in > main { display: flex; flex-direction: column; width: 100%; max-width: none; min-height: 0; margin: 0; padding: 18px 22px 10px; }
  .pos-signed-in #page { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; scrollbar-gutter: stable; }
  .pos-signed-in main > small { padding-top: 5px; }
}
@media (max-width: 719px) {
  .pos-sidebar { display: grid; grid-template-columns: 1fr auto; align-items: center; padding: 10px 13px; }
  .pos-sidebar[hidden] { display: none; }
  .pos-brand { padding: 0; }
  .pos-menu-toggle { display: block; min-height: 44px; }
  #pos-menu { grid-column: 1 / -1; }
  .pos-menu-toggle[aria-expanded="false"] + #pos-menu { display: none; }
  #pos-menu > p { margin: 10px 0; }
  .pos-sidebar nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pos-sidebar button, .connected-pos #page button { min-height: 44px; }
  .pos-signed-in > main { padding: 13px; }
  .connected-pos .grid { grid-template-columns: minmax(0, 1fr); }
}
@media print {
  .pos-sidebar, .connected-pos > header, .connected-pos > main { display: none; }
  .pos-signed-in { display: block; height: auto; overflow: visible; }
}

.sale-return-form { display: grid; gap: 10px; justify-items: start; }
.sale-return-form fieldset, .sale-return-items { width: 100%; min-width: 0; }
.sale-return-form fieldset { border: 1px solid var(--pos-border); border-radius: 8px; }
.sale-return-items > div, .sale-replacement { padding: 6px 0; border-bottom: 1px solid var(--pos-border); }
.return-total { font-weight: 700; }

.staff-card summary { padding: 5px 0; }
.staff-card summary + p { margin: 8px 0; }
.staff-form { align-items: end; margin-top: 10px; }
.staff-form > label { flex: 1 1 175px; }
.staff-modules {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  flex: 0 1 100%;
  min-width: 0;
  margin: 4px 0;
  border: 1px solid var(--pos-border);
  border-radius: 8px;
}
.staff-modules label { display: inline-flex; align-items: center; }
.staff-delete { color: #a02727; border-color: #c79494; }

/* Control360 — shared Sistemas360 visual theme */
.connected-pos{--pos-green:#425e00;--pos-ink:#171c24;--pos-border:#dfe4eb;--control-lime:#c5ff16;background:#f3f5f8;color:var(--pos-ink)}
.connected-pos > header{background:#171c24;color:#f5f7fa}
.connected-pos > header span{color:#bac3cf}
.connected-pos > header strong{display:block;width:220px;max-width:65vw}
.control-logo{display:block;width:100%;height:auto}
.pos-sidebar{background:#171c24;border-color:#2e3642;color:#f5f7fa}
.pos-brand{padding:0;margin:4px 8px;letter-spacing:normal}
#pos-menu > p{color:#bac3cf}
.pos-sidebar nav button,.pos-account button{color:#f5f7fa}
.pos-sidebar nav button:hover,.pos-account button:hover{background:#29323e}
.pos-account{border-top-color:#39414e}
.connected-pos .pos-sidebar nav button.active{background:var(--control-lime);border-color:var(--control-lime);color:#11170a}
.connected-pos button.primary,.connected-pos button.active{background:var(--control-lime);border-color:#b5ec10;color:#172008;font-weight:700}
.connected-pos button.primary:hover,.connected-pos button.active:hover{background:#b5ed0e;border-color:#a7db0b}
.connected-pos section{background:#fff;box-shadow:0 3px 12px #17223808}
.connected-pos .report-metrics div{background:#fff;border:1px solid var(--pos-border);border-top:3px solid var(--control-lime);color:#252c36;box-shadow:0 3px 10px #1722380b}
.connected-pos .category{background:#f0ffd2;color:#436600}
.connected-pos .product-profile-tabs button[aria-pressed="true"]{background:var(--control-lime);border-color:#b5ec10;color:#172008}
.connected-pos .inventory-table th{background:#edf0f4}
.connected-pos .inventory-table td button{color:#374b00;border-color:#b9c4a1}
.connected-pos .inventory-table td button:hover{background:#f1ffd5}
.connected-pos a,.connected-pos summary,.connected-pos .cash-fields output{color:#425e00}
.connected-pos .staff-delete{color:#a02727;border-color:#c79494}
.connected-pos :is(input,select,button,a,summary):focus-visible{outline:3px solid #749900;outline-offset:3px}
.connected-pos .pos-menu-toggle{background:#29323e;border-color:#485363;color:#f5f7fa}
.connected-pos .pos-menu-toggle[aria-expanded="true"]{background:var(--control-lime);border-color:#b5ec10;color:#172008}
.connected-pos #page .cash-closed-alert{background:#fff6df;color:#603b00}
@media(max-width:719px){.pos-brand{width:min(230px,60vw);margin:0}}

/* Clip the white canvas outside the rounded Control360 badge. */
.control-logo{clip-path:inset(1px round 999px);border-radius:999px}


/* Checkout financing and saved payment plans. */
.sale-party-row{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(150px,1fr);gap:12px;align-items:start;margin:10px 0 16px}
.sale-party-row label,.finance-editor label{font-size:14px;gap:6px}
.sale-party-row select,.sale-party-row input{width:100%;min-width:0}
.sale-party-row .customer-picker{margin:0}.sale-customer-slot{min-width:0}
#sale-checkout{display:flex;align-items:end;gap:12px;flex-wrap:wrap}
#sale-checkout .credit-fields{flex:1 1 100%;display:block;margin:0}
#sale-checkout .credit-fields[hidden]{display:none}
#sale-checkout .credit-fields>button{margin-top:10px}
.finance-terms{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;width:100%;margin:12px 0}
.finance-terms label{font-size:14px;min-width:0}.finance-terms input{width:100%;min-width:0}
.money-input{width:160px;max-width:100%;font-variant-numeric:tabular-nums}
.credit-preview{background:#f6faed;border:1px solid #dce8c5;padding:14px;border-radius:12px;margin:12px 0}
.credit-preview p{font-size:14px;margin:8px 0;line-height:1.5}
.finance-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.finance-summary strong{display:block;font-size:22px;letter-spacing:-.035em;margin-top:4px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.finance-summary small{font-size:14px;color:#4c5b36}.credit-preview details{margin-top:12px}
.finance-editor form{display:block}.finance-editor form>label{margin:14px 0;max-width:480px}
.finance-editor .finance-product-row{display:grid;grid-template-columns:minmax(0,1fr) 100px auto;align-items:end;gap:10px;padding:12px 0;border-bottom:1px solid #e0e6ed}
.finance-product-row select{max-width:100%;width:100%;min-width:0}
.finance-product-row input{width:100%}.finance-lines{margin:8px 0 12px}
.finance-total{margin:20px 0 12px;font-size:20px}
.finance-editor .finance-terms{max-width:850px}
.finance-confirm{display:flex;align-items:center;gap:8px;flex:1 1 100%;margin:10px 0}
.finance-confirm input{width:auto}
.connected-pos #page[data-module="Calculadora"] section{margin-top:12px}
.connected-pos #page[data-module="Calculadora"] form{align-items:end}
.connected-pos #page[data-module="Calculadora"] td{font-size:14px}
@media(max-width:719px){
 .sale-party-row{grid-template-columns:minmax(0,1.3fr) minmax(120px,1fr);gap:8px}
 .finance-summary strong{font-size:20px}.finance-terms{grid-template-columns:1fr}
 .finance-editor .finance-product-row{grid-template-columns:minmax(0,1fr) 80px}
 .finance-product-row>button{grid-column:1/-1;justify-self:start}
 .sale-party-row input,.sale-party-row select,.finance-terms input{min-height:44px}
}

/* Customer directory: fixed ten-row pages and independent filters. */
.customers-table,.closures-table,.finance-table{width:100%;font-size:14px}
.customers-table th,.closures-table th,.finance-table th{background:#edf0f4;font-weight:700}
.customers-table th:first-child{width:27%}
.customers-table td:first-child{white-space:normal;overflow-wrap:anywhere;min-width:150px}
.customers-table td:nth-child(4){font-variant-numeric:tabular-nums}
.customers-table td:last-child{width:120px}
.customer-list-filters{align-items:end;margin:14px 0}
.customer-list-filters label{font-size:14px}
.customer-list-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:12px 0;font-size:14px}
.customer-list-footer .inventory-pager{margin:0}
@media(max-width:719px){.customers-table{min-width:620px}.customer-list-filters label{flex-basis:100%}}

/* Cash closures use the customer directory table and ten-row pagination. */
.closures-table td{font-variant-numeric:tabular-nums;white-space:nowrap}
.closures-table td:last-child{width:120px}
@media(max-width:719px){.closures-table{min-width:900px}}

/* Saved simulations match the customer table. */
.finance-table td{font-variant-numeric:tabular-nums}
.finance-table td:nth-child(2){min-width:150px;white-space:normal;overflow-wrap:anywhere}
.finance-table td:last-child{width:120px}
@media(max-width:719px){.finance-table{min-width:760px}}

/* Searchable customer/product pickers in the calculator. */
.finance-picker{position:relative;min-width:0;flex:1 1 320px}
.finance-picker>label{display:block;font-size:14px;margin-bottom:4px}
.finance-picker>input[type=search]{width:100%;min-width:0}
.finance-picker-results{position:absolute;top:100%;left:0;right:0;z-index:40;max-height:260px;overflow-y:auto;background:#fff;border:1px solid #cbd5e1;border-radius:10px;box-shadow:0 10px 24px #19212d24;padding:5px}
.finance-picker-results[hidden]{display:none}
.finance-picker-results button{display:block;width:100%;text-align:left;border:0;background:transparent;padding:10px;min-height:44px;white-space:normal;overflow-wrap:anywhere}
.finance-picker-results button:hover,.finance-picker-results button:focus-visible{background:#eff7d8}
.finance-picker-results strong{display:block;font-size:14px;font-weight:600}
.finance-picker-results small{display:block;color:#64748b;margin-top:3px}
.finance-picker-results p{padding:8px;font-size:13px;margin:0;color:#64748b}

.collection-customer .inventory-toolbar{justify-content:space-between;align-items:start}
.collection-customer h2,.collection-customer p{margin:0 0 8px}.collection-debt{text-align:right}.collection-debt strong{display:block;font-size:23px}
.collection-sale{margin-top:20px}.collection-sale h3{margin-bottom:8px}.collection-progress{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-bottom:12px;font-size:13px;color:#64748b}
.collection-progress progress{width:180px;height:9px;accent-color:#91b815}.collection-table{width:100%;min-width:760px;table-layout:fixed;font-size:14px}.collection-table th{background:#edf0f4}.collection-table .collection-balance{font-weight:750;text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}.collection-table th:nth-child(3){text-align:right}
.collection-check{display:flex;align-items:center;gap:8px;white-space:nowrap}.collection-check input{width:18px;height:18px}.collection-table small{display:block;color:#64748b;margin-top:4px;font-size:12px}
.collection-state{display:inline-block;border-radius:30px;padding:5px 9px;font-weight:650;font-size:12px;white-space:nowrap}.collection-state.late{background:#fee2e2;color:#991b1b}.collection-state.soon{background:#fef3c7;color:#92400e}.collection-state.current{background:#e7f5dd;color:#35631d}.collection-bulk{display:flex;align-items:center;justify-content:flex-end;gap:12px;margin-top:14px;font-size:13px}
#receipt [data-collection-error]{color:#991b1b}#receipt:has([data-form="collection-payment"]){max-width:560px;width:calc(100% - 32px)}
@media(max-width:719px){.collection-table{min-width:760px}.collection-debt strong{font-size:19px}.collection-customer .inventory-toolbar{flex-wrap:wrap}}

.collection-summary-table{width:100%;font-size:14px}.collection-summary-table th{background:#edf0f4}.collection-summary-table td{padding:12px 10px}.collection-summary-table small{display:block;color:#64748b;font-size:12px;margin-top:3px}.collection-summary-table .collection-balance{font-weight:750;text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}.collection-summary-table th:nth-child(2){text-align:right}
@media(max-width:719px){.collection-summary-table{min-width:650px}}

/* Shared column widths keep every sale's installment table aligned. */
.collection-table th:nth-child(1){width:28%}
.collection-table th:nth-child(2){width:17%}
.collection-table th:nth-child(3){width:20%}
.collection-table th:nth-child(4){width:22%}
.collection-table th:nth-child(5){width:13%}
.collection-table td:first-child{white-space:normal;overflow-wrap:anywhere}
.collection-table small{white-space:normal;overflow-wrap:anywhere}

.collection-bulk{flex-wrap:wrap}.collection-bulk [data-collection-total]{font-weight:750;font-size:15px;white-space:nowrap;font-variant-numeric:tabular-nums}

.closure-detail-table{width:100%;table-layout:fixed;font-size:14px;min-width:400px}
.closure-detail-table thead th{background:#edf0f4;font-weight:700}
.closure-detail-table th{width:50%;white-space:normal;overflow-wrap:anywhere}
.closure-detail-table tbody th{font-weight:500}
.closure-detail-table td,.closure-detail-table thead th:last-child{text-align:right;font-variant-numeric:tabular-nums}
.closure-detail-table td{font-weight:650}

.collection-reminder-action{margin-top:6px}.collection-reminder-action small{display:block;font-size:12px;color:#64748b}
#collection-reminder-message{width:100%;min-height:260px;resize:vertical;font:inherit;padding:10px;border:1px solid #cbd5e1;border-radius:8px}
#receipt:has(#collection-reminder-message){max-width:640px;width:calc(100% - 32px)}
.collection-whatsapp-link{display:inline-flex;padding:10px 14px;border-radius:8px;background:#e7f5dd;color:#245015;font-weight:700;text-decoration:none}
.collection-whatsapp-link[aria-disabled=true]{opacity:.5;pointer-events:none}

.retail-grid,.retail-rule{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:14px 0}.retail-rule [hidden]{display:none}.retail-user{padding:14px 0;border-bottom:1px solid var(--border,#e1e4e9)}.retail-permissions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:16px 0}.retail-permissions label{display:flex;align-items:center;gap:8px}.retail-permissions input{width:auto}.retail-collector{padding:12px;background:var(--surface,#f6f8f1)}
@media(max-width:640px){.retail-grid,.retail-rule,.retail-permissions{grid-template-columns:1fr}}

.vendor-table{width:100%;min-width:720px;border-collapse:collapse}.vendor-table small{display:block;color:#64748b;margin-top:4px}.vendor-table td,.vendor-table th{vertical-align:middle}.vendor-table .vendor-money{text-align:right;font-weight:700;font-variant-numeric:tabular-nums;white-space:nowrap}.vendor-state{display:inline-block;padding:4px 9px;border-radius:999px;font-size:12px;font-weight:650}.vendor-state.active{background:#e6f5dc;color:#3e6126}.vendor-state.inactive{background:#eef0f3;color:#586274}.vendor-profile{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.vendor-profile dt{font-size:13px;color:#64748b}.vendor-profile dd{margin:5px 0 0;overflow-wrap:anywhere}.vendor-tabs{display:flex;gap:8px;overflow-x:auto;margin:12px 0;padding-bottom:6px}.vendor-tabs button{white-space:nowrap}.vendor-tabs button.active{background:#d1ff40;color:#182010}.vendor-filters .inventory-filters{grid-template-columns:repeat(auto-fit,minmax(155px,1fr));align-items:end}.vendor-filters .row{align-self:end}
@media(max-width:640px){.vendor-profile{grid-template-columns:1fr}.vendor-table{min-width:640px}.vendor-filters .inventory-filters{grid-template-columns:1fr 1fr}}

.staff-access-groups{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.staff-access-group{border:1px solid #e2e6ec;border-radius:10px;padding:10px}.staff-access-group summary{display:flex;align-items:center;justify-content:space-between;gap:8px}.staff-access-group summary label,.staff-permission-grid label,.permission-inline{display:flex;align-items:center;gap:8px}.staff-access-group input[type=checkbox],.permission-inline input{width:auto;min-width:16px}.staff-access-group small{color:#64748b;font-size:12px;white-space:nowrap}.staff-permission-grid{display:grid;gap:9px;margin-top:12px}.staff-permission-grid label{font-size:14px}.advanced-line{display:grid;grid-template-columns:minmax(200px,2fr) minmax(80px,1fr) minmax(120px,1fr) auto;gap:10px;align-items:end;margin:12px 0}.advanced-line button{margin-bottom:4px}.advanced-total{display:block;font-size:20px;font-weight:700;margin:12px 0}.retail-collection-rule{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.access-active,.purchase-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.shift-user-picker{width:100%;margin-top:10px}.shift-user-picker label{margin:8px 0}#receipt:has(.advanced-lines){max-width:950px;width:calc(100% - 30px)}
@media(max-width:720px){.staff-access-groups,.retail-collection-rule{grid-template-columns:1fr}.advanced-line{grid-template-columns:1fr 1fr}.advanced-line label:first-child{grid-column:1/-1}}
.cash-register-toolbar{display:flex;align-items:end;justify-content:space-between;gap:16px;flex-wrap:wrap}.cash-register-toolbar label{min-width:220px}.order-cash-field[hidden]{display:none!important}#receipt fieldset .permission-inline{display:flex;align-items:center;gap:8px}#receipt .permission-inline input{width:auto}@media(max-width:700px){.cash-register-toolbar label{width:100%;min-width:0}.cash-register-toolbar .row{flex-wrap:wrap}}

/* Central checkout uses the same dialog and submission flow as the receipt. */
#receipt:has(.order-confirmation){width:1100px;max-width:calc(100vw - 32px);max-height:calc(100dvh - 32px);padding:28px;overflow:auto;background:#fff;color:#191e25;border-radius:22px}
.order-confirmation-heading{display:flex;align-items:center;gap:16px;margin-bottom:24px}.order-confirmation-heading h2{font-size:28px;letter-spacing:-.025em;margin:0 0 4px}.order-confirmation-heading p{margin:0}.order-confirmation-icon{display:grid;place-items:center;flex:none;width:60px;height:60px;border-radius:20px;background:#ceff28;font-size:30px;color:#17200b}.order-confirmation-close{margin-left:auto;align-self:flex-start;background:#f1f2f6;border:0;font-size:26px;line-height:1;padding:10px 14px}
#receipt .order-confirmation section{margin:0;padding:0;border:0;background:transparent;box-shadow:none}.order-confirmation h3{font-size:17px;margin:0 0 12px}.order-confirmation dl{margin:0}.order-confirmation dt{font-size:14px;color:#586276;font-weight:600}.order-confirmation dd{margin:5px 0 0;font-size:20px;font-weight:750;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
#receipt .order-party{padding:16px 20px;background:#fafbfe;border:1px solid #e0e3ea;border-radius:15px;margin-bottom:24px}.order-section-label{font-size:13px!important;color:#586276}.order-party dl{display:grid;grid-template-columns:.8fr 1fr 1fr;gap:20px}.order-party .order-summary-item+div{border-left:1px solid #dfe3e9;padding-left:20px}.order-number dd{display:inline-block;background:#efffc5;border-radius:20px;padding:3px 16px}
.order-confirmation-body{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(230px,1fr);gap:24px;margin-bottom:24px;align-items:start}.order-detail{grid-column:1;grid-row:1}.order-plan{grid-column:1;grid-row:2}.order-summary{grid-column:2;grid-row:1/3;min-width:0}.order-summary-item{padding:10px 0}.order-summary .order-sale-total{background:#f3ffd4;border-radius:14px;padding:16px;margin-bottom:8px}.order-sale-total dd{font-size:28px}.order-rounding{font-size:12px;margin-top:12px}
.order-confirmation .report-table{border:1px solid #edf0f4;border-radius:12px;max-height:320px;overflow:auto}.order-confirmation table{width:100%;font-size:14px}.order-confirmation th{background:#eff0f5;position:sticky;top:0}.order-confirmation td,.order-confirmation th{padding:11px 12px}.order-detail td:first-child{white-space:normal;min-width:110px;overflow-wrap:anywhere}.order-detail th:nth-child(2),.order-detail td:nth-child(2){text-align:center}.order-detail th:nth-child(n+3),.order-detail td:nth-child(n+3),.order-plan th:last-child,.order-plan td:last-child{text-align:right;font-variant-numeric:tabular-nums}.order-plan small{display:block;font-size:11px}.order-confirmation form{display:block}
#receipt .order-cash{display:grid;grid-template-columns:1fr 1.2fr;gap:24px;background:#f4ffd4;padding:20px;border-radius:16px}.order-cash strong{display:block;font-size:32px;font-variant-numeric:tabular-nums}.order-cash h3{font-size:13px;color:#586276;margin-bottom:5px}.order-cash span{font-weight:650}.order-payment{border-left:1px solid #d7e7a4;padding-left:24px;display:flex;flex-wrap:wrap;gap:12px;align-items:center}.order-payment p{margin:0;color:#29321e}.order-payment label{flex:1;min-width:150px}.order-payment input,.order-payment select{width:100%}.order-confirmation-actions{display:flex;justify-content:flex-end;gap:12px;margin-top:22px}.order-confirmation-actions button{padding:12px 24px}
@media(max-width:760px){#receipt:has(.order-confirmation){padding:20px;max-width:calc(100vw - 20px);max-height:calc(100dvh - 20px)}.order-confirmation-heading{gap:10px}.order-confirmation-heading h2{font-size:22px}.order-confirmation-icon{width:44px;height:44px;border-radius:14px;font-size:24px}.order-party dl{grid-template-columns:1fr;gap:8px}.order-party .order-summary-item+div{border-left:0;border-top:1px solid #e0e3ea;padding:10px 0 0}.order-confirmation-body{grid-template-columns:minmax(0,1fr);gap:20px}.order-summary{grid-column:1;grid-row:2}.order-plan{grid-row:3}.order-summary dl{display:grid;grid-template-columns:1fr 1fr;gap:8px}.order-summary .order-sale-total{grid-column:1/-1}#receipt .order-cash{grid-template-columns:1fr;gap:14px}.order-payment{border-left:0;border-top:1px solid #d7e7a4;padding:14px 0 0}.order-confirmation-actions button{flex:1;padding:12px}.order-confirmation dd{font-size:18px}.order-sale-total dd{font-size:26px}}

/* Authenticated identity stays inside the existing collapsible menu. */
.pos-session-user{display:flex;align-items:center;gap:6px;min-width:0;margin:14px 8px 0;padding:0 0 12px;border-bottom:1px solid #48515d;color:#fff;white-space:nowrap;font-size:12px;line-height:1.4}
.pos-session-user[hidden]{display:none}.pos-session-user svg{display:block;flex:none;width:18px;height:21px;color:#fff}.pos-session-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:700;color:#fff}.pos-session-divider{flex:none;width:1px;height:18px;background:#7e8793}.pos-session-role{flex:none;color:var(--control-lime,#c5ff16);font-weight:600;font-size:11px;white-space:nowrap}
#pos-menu>.pos-session-user:not([hidden])+p{margin-top:16px}
@media(max-width:719px){.pos-session-user{margin:14px 0 0;padding-bottom:12px;font-size:14px;gap:8px}.pos-session-role{font-size:13px}.pos-session-user svg{width:21px;height:24px}#pos-menu>.pos-session-user:not([hidden])+p{margin-top:12px}}

.promo-metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(135px,1fr));gap:.75rem;margin-block:1rem}
.promo-metrics section{margin:0;padding:1rem}.promo-metrics strong,.promo-editor td small{display:block}
.promotion-price{color:var(--accent-dark,#286840)}.promo-editor input[type=checkbox]{width:auto}
.promo-editor [data-rule=value]{width:8em}.promo-editor fieldset label{display:inline-flex;align-items:center;margin:.3rem .6rem}
