.app-picker{max-width:960px;margin:0 auto}.app-picker-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;margin:24px 0}.app-choice{display:flex;flex-direction:column;align-items:center;text-align:center;border:1px solid var(--border);border-radius:24px;padding:24px;background:#fff;box-shadow:0 8px 24px #072b6009}.app-choice img{width:100%;max-width:300px;height:150px;object-fit:contain}.app-choice p{line-height:1.6;color:var(--muted)}.app-choice button{margin-top:auto;min-width:180px}.app-picker-context{color:var(--muted)}.pos-nav{display:flex;gap:8px;flex-wrap:wrap;margin:20px 0}.pos-page main{max-width:1240px}.pos-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(320px,.8fr);gap:20px;align-items:start}.pos-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px}.pos-product{text-align:left;background:#fff;border:1px solid var(--border);display:flex;flex-direction:column;gap:8px;min-height:120px}.pos-product small{color:var(--muted)}.pos-product strong{color:var(--navy)}.pos-product:disabled{opacity:.6;cursor:not-allowed}.pos-search{display:flex;gap:8px;align-items:end;flex-wrap:wrap}.pos-search label{flex:1;min-width:170px}.pos-cart-row{border-bottom:1px solid var(--border);padding:14px 0}.pos-cart-row .field{margin:8px 0}.pos-cart-controls{display:grid;grid-template-columns:90px 1fr;gap:10px;align-items:start}.pos-total{font-size:1.5rem;color:var(--navy);font-weight:750;margin:16px 0}.pos-warning{background:#fff4d8;border:1px solid #ead094;padding:16px;border-radius:14px;line-height:1.6}.pos-commercial-note{color:var(--muted);font-size:12px;line-height:1.6}.pos-table-wrap{overflow-x:auto}.pos-table{width:100%;border-collapse:collapse;font-size:14px}.pos-table th,.pos-table td{text-align:left;padding:12px 8px;border-bottom:1px solid var(--border);vertical-align:top}.pos-table th{background:#edf4ff;color:var(--navy)}.pos-table button{margin:3px}.pos-metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px;margin:16px 0}.pos-metric{padding:16px;border:1px solid var(--border);background:#fff;border-radius:14px}.pos-metric strong{display:block;font-size:20px;margin-top:8px;color:var(--navy)}.pos-check{display:flex;gap:10px;align-items:flex-start;margin:12px 0}.pos-check input{width:20px;height:20px;flex:none}.pos-page dialog{width:min(94vw,760px);max-height:90vh;overflow:auto}.pos-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.pos-section-header{display:flex;justify-content:space-between;gap:12px;align-items:center;flex-wrap:wrap}.pos-small{font-size:12px;color:var(--muted)}.pos-low{color:#985800;font-weight:700}#posBusiness{color:var(--navy);font-size:14px;max-width:250px}#posBusiness img{width:44px;height:44px;object-fit:contain;vertical-align:middle;margin-right:8px}@media(max-width:1000px){.pos-layout{grid-template-columns:1fr}.pos-cart{position:static}.app-header #changeApplication{font-size:12px;padding:8px}}@media(max-width:600px){.app-picker-grid{grid-template-columns:1fr}.app-choice{padding:18px}.pos-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.pos-form-grid{grid-template-columns:1fr}.pos-cart-controls{grid-template-columns:80px 1fr}.pos-page .actions{flex-wrap:wrap}.pos-page main{padding-top:16px}.pos-page h1{font-size:24px}}
@media print{body.pos-page header,body.pos-page main,body.pos-page footer,#posDialog{display:none!important}#posReceipt{position:static;display:block!important;border:0;width:100%;max-height:none;box-shadow:none}#posReceipt .actions,#posReceiptClose{display:none!important}}

/* Shared application shell: same header, side menu and mobile bar as services. */
body.pos-page.workspace-mode main{max-width:1500px}
#posNav .nav-menu>a{display:block;text-align:left;font-size:13px;text-decoration:none;margin:3px 0}
@media(max-width:1000px){body.pos-page.workspace-mode main{padding-top:calc(var(--shell-height) + 14px)}}

@media(max-width:1000px){}

@media(max-width:1000px){}

body.application-picker-mode .app-header #changeApplication,body.application-picker-mode .app-header #internalNotices,body.application-picker-mode .app-header #changeProfile{display:none!important}

#desktopNavigation #posNav .nav-menu>a{display:block;width:100%;min-height:44px;padding:11px 14px;border-radius:9px;color:#385a78;font-size:13px;white-space:normal;border:1px solid transparent;background:transparent;text-align:left;box-shadow:none}#desktopNavigation #posNav .nav-menu>a:hover{background:#f1f6fc}#posNav .nav-menu>a:focus-visible{outline:3px solid #087bd4;outline-offset:2px}

@media(max-width:1000px){}

#syncPanel #posStatus{font-size:11px;color:#53677f;margin:0;min-width:0}#posRefresh{display:flex;align-items:center;gap:8px;font-size:12px;min-height:40px}#posAbout{scroll-margin-top:calc(var(--shell-height) + 18px)}@media(max-width:1000px){#posRefresh{min-width:40px;padding:8px;justify-content:center}}
@media(max-width:1000px){body.pos-page.workspace-mode .brand{grid-column:1;grid-row:1}}

.pos-invoice-customer{display:grid;grid-template-columns:minmax(200px,1.2fr) minmax(180px,1fr) auto;gap:16px;align-items:end;margin:22px 0}.pos-invoice-customer>.field{margin:0}.pos-invoice-customer>button{min-height:46px}.pos-invoice-quantity input{width:80px;max-width:100%;min-height:44px;border:1px solid #bacce3;border-radius:10px;padding:10px;background:#fbfdff;color:#142b4b}.pos-invoice-table .money-field{min-width:145px;margin:0!important}.pos-invoice-table .money-feedback{white-space:normal}.pos-invoice-table th,.pos-invoice-table td{padding:10px 8px;vertical-align:middle}.pos-invoice-totals{max-width:420px;margin:20px 0 20px auto}.pos-invoice-totals>div{display:flex;justify-content:space-between;gap:20px;margin:10px 0}.pos-invoice-totals dd{margin:0;text-align:right;font-variant-numeric:tabular-nums}.pos-invoice-empty{padding:25px 12px;border:1px dashed #bdcfdf;border-radius:12px;text-align:center;color:var(--muted)}#posProductPickerBody .pos-grid{margin-top:18px}.pos-invoice-table td:first-child{min-width:0}.pos-invoice-table .money-expanded-row dd{margin-bottom:16px}
@media(max-width:800px){.pos-invoice-customer{grid-template-columns:1fr}.pos-invoice-customer>button{justify-self:start}.pos-invoice-table.money-mobile-detail td,.pos-invoice-table.money-mobile-detail th{min-width:0!important;white-space:normal!important}.pos-invoice-table.money-mobile-detail td:nth-child(2){width:46%}.pos-invoice-table.money-mobile-detail td:nth-child(3){width:24%}.pos-invoice-table.money-mobile-detail td:nth-child(7){width:30%}.pos-invoice-table.money-mobile-detail .pos-invoice-quantity input{width:100%;padding:8px 4px}.pos-invoice-table.money-mobile-detail .money-expanded-row td{width:auto}.pos-invoice-panel{padding:16px}.pos-invoice-totals{max-width:none}}

.pos-sale-feedback{background:#fff4d8;border:1px solid #ead094;border-radius:12px;padding:14px;color:#664712;line-height:1.5}#posCardAuthorization{border:1px solid #d6e2f0;border-radius:12px;padding:14px;margin:14px 0}#posCardAuthorization legend{color:var(--navy);font-weight:700;padding:0 6px}

#posDialog #posForm>.actions{position:sticky;bottom:0;z-index:2;background:#fff;border-top:1px solid #d6e2f0;padding:12px 0;margin-top:14px}#posFormStatus:not(:empty){background:#fff4d8;border:1px solid #ead094;border-radius:12px;padding:12px;line-height:1.5}

/* Keep the return link available when POS opens without a session. */
body .header-actions:has(#posSwitch):has(#sessionIdentity[hidden]){display:flex}
