:root { --nav-w: 220px; --primary: #2b5fd9; --dark: #1e2a3a; --border: #d9dee5; }
.register-control-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:18px;width:100%}.register-control-cards fieldset{min-width:0;margin:0;padding:20px;border:1px solid #8ba4bb;border-radius:10px;background:#fff}.register-control-cards legend{font-weight:700;color:#204a62;padding:0 8px}.register-control-cards p{line-height:1.6;color:#39556c}.register-control-cards label{display:flex;gap:8px;align-items:start;font-weight:600}.register-report-filters{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:14px;padding:18px;background:#fff;border:1px solid #92aabe;border-radius:8px}.register-report-filters label{display:flex;flex-direction:column;gap:6px;font-size:13px;font-weight:600}.register-report-filters :is(input,select){width:100%;padding:9px;border:1px solid #91a7bb;border-radius:5px;font:inherit}.register-activity-page{width:100%;min-width:0}.register-activity-page .table-wrap{max-width:100%;overflow:auto}.register-activity-page td{max-width:350px;min-width:100px;overflow-wrap:anywhere}.register-activity-page th{white-space:nowrap}.register-monitoring-notice{position:fixed;bottom:14px;right:14px;z-index:12500;max-width:min(430px,90vw);background:#fff0c2;color:#533b00;border:1px solid #bc922c;border-left:5px solid #a87700;padding:12px 16px;border-radius:8px;box-shadow:0 5px 20px #172f4540;font:600 13px/1.5 system-ui;pointer-events:none;animation:register-notice 10s forwards}@keyframes register-notice{0%,80%{opacity:1;visibility:visible}100%{opacity:0;visibility:hidden}}@media(prefers-reduced-motion:reduce){.register-monitoring-notice{animation-timing-function:steps(1,end)}}@media print{.register-monitoring-notice{display:none}}
/* Persistent item-maintenance ribbon; commands wrap rather than disappear into menus. */
.gz-maintenance-header{position:sticky;top:0;z-index:20;margin:-4px 0 18px;background:#edf3f8;border:1px solid #9db3c8;border-radius:10px;box-shadow:0 5px 14px #16324b18}
.gz-maintenance-title{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 16px;background:linear-gradient(115deg,#173951,#285773);color:#fff;border-radius:9px 9px 0 0}
.gz-maintenance-title h1{margin:2px 0 0;font-size:23px;color:#fff}.gz-eyebrow{font-size:10px;font-weight:700;letter-spacing:1.1px;color:#bbdce8}.gz-selection{font-size:12px;max-width:45%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:5px 10px;border:1px solid #ffffff45;border-radius:20px}
.gz-ribbon{display:flex;flex-wrap:wrap;align-items:stretch;gap:0;padding:7px 4px;background:linear-gradient(#fbfdff,#e6eef6);border-radius:0 0 9px 9px}
.gz-ribbon-group{display:flex;flex-direction:column;justify-content:space-between;padding:0 8px;border-right:1px solid #bacbdd;gap:5px}.gz-ribbon-group:last-child{border:0}.gz-ribbon-buttons{display:flex;flex-wrap:wrap;gap:4px}.gz-group-label{text-align:center;text-transform:uppercase;font-size:9px;font-weight:700;letter-spacing:.7px;color:#526b80}
.gz-command{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;min-height:65px;min-width:64px;padding:7px 10px;border:1px solid transparent;border-radius:6px;background:transparent;font:600 12px/1.25 system-ui;color:#233f56;text-decoration:none;cursor:pointer;transition:background .12s,box-shadow .12s}
.gz-command svg{color:#167d92}.gz-command:hover:not(:disabled){background:#fff;border-color:#9bb9d0;box-shadow:0 2px 5px #16324b1a}.gz-command:focus-visible{outline:3px solid #008b99;outline-offset:1px}.gz-command.primary{background:#255bb4;color:white;border-color:#1b4a98;box-shadow:0 2px 3px #15334b25}.gz-command.primary svg{color:#fff}.gz-command.primary:hover:not(:disabled){background:#174b9e}.gz-command.danger svg{color:#b63b47}.gz-command:disabled{opacity:.45;cursor:not-allowed;filter:grayscale(.7)}
.gz-maintenance-header .tabs{margin:0;padding:4px 10px 0;border-top:1px solid #c4d2df;border-bottom:0;gap:3px;flex-wrap:wrap}.gz-maintenance-header .tabs .tab{font-size:13px;padding:8px 12px}.gz-maintenance-overlay{position:fixed;inset:0;z-index:1200;display:grid;place-items:center;background:#142c4680;padding:20px}.gz-maintenance-dialog{width:min(550px,100%);padding:26px;background:white;color:#17334b;border:1px solid #8da6bd;border-radius:12px;box-shadow:0 16px 60px #102a4770}.gz-maintenance-dialog p{line-height:1.6}
@media(max-width:900px){.gz-command{min-height:48px;min-width:0;flex-direction:row;padding:6px;font-size:11px;gap:4px}.gz-command svg{width:18px;height:18px}.gz-ribbon-group{padding:4px 6px}.gz-maintenance-title{padding:8px 12px}.gz-maintenance-title h1{font-size:20px}.gz-eyebrow{font-size:8px}}
@media print{.gz-maintenance-header{position:static}.gz-ribbon{display:none}}
@media print {
 body:has(.drawer-z-paper) .pos-topbar,body:has(.drawer-z-paper) .pos-viewport { display:none; }
 body:has(.drawer-z-paper) .pos-shell,body:has(.drawer-z-paper) .pos-main { height:auto; overflow:visible; display:block; padding:0; }
 body:has(.drawer-z-paper) * { visibility:hidden; }
 body:has(.drawer-z-paper) .drawer-z-paper,body:has(.drawer-z-paper) .drawer-z-paper * { visibility:visible; }
 body:has(.drawer-z-paper) .drawer-batch-dialog { position:static; transform:none; max-height:none; overflow:visible; width:100%; border:0; box-shadow:none; }
 body:has(.drawer-z-paper) .drawer-z-paper { position:absolute; top:0; left:0; width:100%; padding:0; background:white; color:black; }
 body:has(.drawer-z-paper) .drawer-z-paper td { white-space:normal; }
}
* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: #222; background: #f4f6f9; }
h1 { font-size: 1.5rem; margin: 0 0 1rem; }
a { color: var(--primary); }

.app-shell { display: flex; flex-direction: column; min-height: 100vh; }
.app-header { display: flex; align-items: center; gap: .75rem; background: var(--dark); color: #fff; padding: .6rem 1rem; }
.app-title { font-weight: 600; }
.header-spacer { flex: 1; }
.header-user { font-size: .9rem; opacity: .85; }
.nav-toggle { background: none; border: 0; color: #fff; font-size: 1.3rem; cursor: pointer; }
.app-body { display: flex; flex: 1; min-height: 0; }
.app-nav { width: var(--nav-w); background: #fff; border-right: 1px solid var(--border); padding: 1rem 0; flex-shrink: 0; }
.nav-open .app-nav { display: none; }
.app-main { flex: 1; padding: 1.5rem; min-width: 0; }
.nav-list { list-style: none; margin: 0; padding: 0; }
.nav-list a { display: block; padding: .6rem 1.25rem; color: #333; text-decoration: none; }
.nav-list a:hover { background: #eef2f8; }
.nav-list a.active { background: #e3ebfb; color: var(--primary); font-weight: 600; }

.page-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.page-head h1 { margin: 0; }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.filters input, .filters select { padding: .4rem .5rem; border: 1px solid var(--border); border-radius: 4px; }

.btn { display: inline-block; padding: .4rem .9rem; border: 1px solid var(--border); border-radius: 4px; background: #fff; color: #222; text-decoration: none; cursor: pointer; font-size: .9rem; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-sm { padding: .2rem .6rem; }
.btn-outline-light { background: transparent; border-color: #fff; color: #fff; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 1rem; }
.card { display: flex; flex-direction: column; gap: .25rem; background: #fff; border: 1px solid var(--border); border-radius: 6px; padding: 1.25rem; text-decoration: none; color: #333; }
.card:hover { border-color: var(--primary); }
.hub-group { margin: 1.25rem 0 .5rem; font-size: 1.05rem; }
/* Shared administration section headings: compact navy text and a teal navigation cue. */
.app-main .card > :is(h2,h3),
.app-main .hub-group {
 color:#17324d; font-weight:750; line-height:1.35;
 border-left:4px solid #07858b; padding:.4rem .65rem;
 background:#edf4f7; border-radius:0 5px 5px 0;
}
.app-main details > summary {
 color:#17324d; font-weight:700; background:#edf4f7;
 border-left:4px solid #07858b; border-radius:4px;
 padding:.5rem .65rem; cursor:pointer;
}
.app-main details > summary:hover { background:#deedf2; }
.app-main details > summary:focus-visible { outline:3px solid #07858b; outline-offset:2px; }
@media print {
 .app-main .card > :is(h2,h3), .app-main .hub-group,
 .app-main details > summary { background:transparent; color:#000; border-left-color:#000; }
}
.hub-tile span { color: #666; font-size: .85rem; }
.hub-workspace { min-height: 110px; justify-content: center; text-align: center; font-size: 1.15rem; border-width: 2px; }
.pos-btn[draggable="true"] { cursor: grab; }
.pos-btn-dragover { outline: 2px dashed var(--primary); }
.card-count { font-size: 2rem; font-weight: 700; color: var(--primary); }

.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--border); border-radius: 6px; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: .55rem .75rem; text-align: left; border-bottom: 1px solid #eef0f3; white-space: nowrap; }
.table th { background: #f0f3f8; font-size: .85rem; }
.actions a { margin-right: .5rem; }
.pager { display: flex; align-items: center; gap: 1rem; margin-top: .75rem; }
.empty, .hint { color: #666; }

.form { max-width: 520px; }
.form-row { display: flex; flex-direction: column; margin-bottom: .9rem; }
.form-row label { font-size: .85rem; margin-bottom: .25rem; font-weight: 600; }
.form-row input:not([type=checkbox]), .form-row select, .form-row textarea { padding: .45rem .55rem; border: 1px solid var(--border); border-radius: 4px; font-size: 1rem; }
.form-row.check label { font-weight: 400; }
.details { display: grid; grid-template-columns: 180px 1fr; gap: .4rem 1rem; background: #fff; border: 1px solid var(--border); border-radius: 6px; padding: 1rem; margin-bottom: 1rem; max-width: 720px; }
.details dt { font-weight: 600; }
.details dd { margin: 0; }
ul.plain { margin: 0; padding-left: 1.1rem; }

.validation-message, .validation-errors { color: #b3261e; font-size: .85rem; }
.invalid { outline: 1px solid #b3261e; }
.alert { padding: .7rem 1rem; border-radius: 4px; margin-bottom: 1rem; }
.alert-danger { background: #fdecea; color: #8a1f17; }
.alert-warning { background: #fff4d6; color: #6b4e00; }
.alert-success { background: #e4f5e8; color: #1c5e2d; }
.alert-info { background: #e3ebfb; color: #1d3f8f; }
.temp-password code { font-size: 1.2rem; padding: .2rem .5rem; background: #fff; border: 1px solid var(--border); border-radius: 4px; user-select: all; }

.loading { display: flex; align-items: center; gap: .6rem; color: #555; padding: 1rem 0; }
.spinner { width: 1.1rem; height: 1.1rem; border: 3px solid #cfd6e2; border-top-color: var(--primary); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.login-shell { min-height: 100vh; display: flex; align-items: center; justify-content: center; }
.login-card { width: 100%; max-width: 380px; background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 2rem; }
.login-card .form-row input { width: 100%; }
.login-brand { text-align: center; color: var(--primary); }

#blazor-error-ui { display: none; }

@media (max-width: 768px) {
    .app-body { flex-direction: column; }
    .app-nav { width: 100%; border-right: 0; border-bottom: 1px solid var(--border); padding: 0; }
    .nav-open .app-nav { display: none; }
    .nav-list { display: flex; flex-wrap: wrap; }
    .details { grid-template-columns: 1fr; }
}

.nav-list .nav-section { padding: .6rem 1.25rem .2rem; font-size: .75rem; text-transform: uppercase; color: #777; }
.tabs { display: flex; flex-wrap: wrap; gap: .25rem; border-bottom: 1px solid var(--border); margin-bottom: 1rem; }
.tab { padding: .5rem 1rem; border: 1px solid transparent; border-bottom: 0; background: none; cursor: pointer; font-size: .95rem; border-radius: 4px 4px 0 0; }
.tab-active { background: #fff; border-color: var(--border); color: var(--primary); font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.chip { display: inline-block; padding: .2rem .7rem; border-radius: 999px; border: 1px solid var(--border); background: #fff; font-size: .85rem; cursor: pointer; }
.chip-critical { background: #fdecea; border-color: #f5b5b0; color: #9b1c1c; }
.variance-short { color: #9b1c1c; font-weight: 600; }
.variance-over { color: #1d5fa8; font-weight: 600; }
.chip-warning { background: #fff4e0; border-color: #f2cf8f; color: #8a5a00; }
.chip-info { background: #e8f1fd; border-color: #b4cff5; color: #1d4f91; }
.chip-selected { outline: 2px solid var(--primary); }

.nav-list .nav-subsection { padding-top: .35rem; font-size: .85rem; font-weight: 600; }
.nav-list .nav-sub { padding-left: .9rem; }
.muted { color: #888; }

.bar-track { background: #eef1f5; border-radius: 3px; min-width: 8rem; height: .9rem; }
.bar-fill { background: var(--primary); height: 100%; border-radius: 3px; min-width: 0; }
/* Hospitality POS (ADR-022): touch-first */
.hk { display: flex; flex-direction: column; gap: .4rem; max-width: 640px; }
.hk-label { font-weight: 600; text-transform: capitalize; }
.hk-display { min-height: 2.2rem; padding: .5rem; border: 1px solid var(--border); border-radius: 4px; background: #fff; font-size: 1.2rem; }
.hk-row { display: flex; gap: .35rem; }
.hk-key { flex: 1; min-height: 3rem; font-size: 1.1rem; border: 1px solid var(--border); border-radius: 6px; background: #fff; cursor: pointer; }
.hk-key:active { background: #e6eefc; }
.hk-wide { flex: 1.6; }
.hk-space { flex: 4; }
.hk-on, .hk-enter { background: var(--primary); color: #fff; }
.pos-bar { display: flex; gap: 1rem; align-items: center; margin-bottom: .75rem; }
.pos-start { display: flex; flex-direction: column; gap: .6rem; margin-bottom: 1rem; }
.pos-field { display: flex; gap: .75rem; align-items: center; padding: .6rem; border: 1px solid var(--border); border-radius: 6px; background: #fff; cursor: pointer; }
.pos-field > span { min-width: 5rem; color: #666; }
.pos-active { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(0,100,200,.15); }
.pos-btn { min-height: 4.5rem; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .2rem; padding: .4rem; font-size: 1rem; border: 1px solid var(--border); border-radius: 8px; background: #fff; cursor: pointer; }
.pos-btn img { max-height: 2.6rem; max-width: 100%; object-fit: contain; }
.pos-btn:disabled { opacity: .5; }
.pos-btn-selected { outline: 3px solid var(--primary); }
.pos-mods { margin-top: .75rem; padding: .75rem; border: 1px solid var(--border); border-radius: 6px; background: #fff; }
.pos-actions { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .5rem; }
.pos-ticket { background: #fffbe6; border: 1px dashed #bba; padding: .6rem; white-space: pre-wrap; }
.pos-tablegrid { display: grid; grid-template-columns: repeat(5, 200px); gap: .75rem; margin-bottom: 1.5rem; }
.pos-table { display: flex; flex-direction: column; gap: .3rem; padding: .8rem; border: 1px solid var(--border); border-radius: 8px; background: #fff; }
.pos-table-busy { border-color: #c0392b; background: #fdf0ee; }
.pos-table-free { border-color: #2e8b57; }
.journal { border: 1px solid var(--border); border-radius: 6px; background: #fff; padding: .5rem; font-family: monospace; max-height: 28rem; overflow-y: auto; position: sticky; top: .5rem; }
.journal-title { font-weight: 700; border-bottom: 1px solid var(--border); margin-bottom: .3rem; }
.journal-row { display: flex; justify-content: space-between; gap: .5rem; white-space: pre-wrap; }
.journal-void { text-decoration: line-through; color: #888; }
.journal-grand { font-weight: 700; border-top: 1px solid var(--border); }
.journal-empty { color: #888; }

/* Fixed hospitality terminal (ADR-038): absolute regions in a fixed logical canvas, scaled by transform only. */
.pos-viewport { position: relative; width: 100%; height: calc(100vh - 3.4rem); overflow: hidden; background: #1f2937; }
.pos-screen { position: absolute; left: 0; top: 0; transform-origin: top left; transform: scale(var(--pos-scale, 1)); background: var(--pos-bg, #f4f6f9); color: var(--pos-text, #111827); overflow: hidden; font-size: 14px; }
.pos-region { position: absolute; box-sizing: border-box; overflow: hidden; border: 1px solid var(--border); background: #fff; }
.pos-region button { min-height: 0 !important; }
.pos-header { display: flex; align-items: center; gap: 14px; padding: 4px 10px; background: var(--dark, #1f2937); color: #fff; }
.pos-header-logo { height: 44px; max-width: 140px; object-fit: contain; }
.pos-search { flex: 1; min-width: 0; height: 36px; padding: 0 10px; font-size: 15px; border-radius: 6px; border: 1px solid var(--border); }
.pos-h-item { display: flex; flex-direction: column; font-size: 14px; min-width: 70px; white-space: nowrap; }
.pos-h-item small { font-size: 10px; opacity: .7; }
.pos-h-total { font-size: 26px; font-weight: 700; min-width: 120px; text-align: right; }
.pos-taskpanel { display: grid; grid-template-columns: repeat(6, 1fr); gap: 3px; padding: 3px; background: #e5e7eb; }
.pos-task, .pos-abtn, .pos-dept { border: 1px solid var(--border); border-radius: 6px; background: #fff; cursor: pointer; font-size: 13px; padding: 2px 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pos-task:disabled, .pos-abtn:disabled { opacity: .45; cursor: default; }
.pos-journalpanel { display: flex; flex-direction: column; font-family: monospace; }
.pos-j-head, .pos-j-line { display: grid; grid-template-columns: 44px 1fr 80px; gap: 4px; padding: 3px 6px; }
.pos-j-head { font-weight: 700; border-bottom: 1px solid var(--border); background: #f3f4f6; flex: none; }
.pos-j-lines { flex: 1 1 0; min-height: 0; overflow: auto; }
.pos-j-line { cursor: pointer; border-bottom: 1px dotted var(--border); }
.pos-j-line > span:last-child { text-align: right; }
.pos-j-sel { background: #dbeafe; }
.pos-j-void { text-decoration: line-through; color: #888; }
.pos-j-sub { display: block; color: #555; padding-left: 8px; }
.pos-j-totals { flex: none; display: grid; grid-template-columns: 1fr auto; padding: 4px 8px; border-top: 2px solid var(--border); background: #f9fafb; }
.pos-j-totals strong { text-align: right; }
.pos-slotgrid { display: grid; width: 100%; height: 100%; gap: 3px; padding: 3px; box-sizing: border-box; }
.pos-slot { min-width: 0; min-height: 0; overflow: hidden; border: 1px solid var(--border); border-radius: 6px; background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 13px; padding: 2px; }
.pos-region .pos-slot-empty { background-color:var(--rb, #fff); color:var(--rt, inherit); background-image:var(--rbi, none); background-size:cover; background-position:center; border-style:solid; opacity:1; pointer-events:none; }
.pos-has-img { text-shadow: 0 0 3px #fff, 0 0 3px #fff; font-weight: 600; }
.pos-slot img { max-width: 100%; max-height: 55%; object-fit: contain; }
.pos-deptregion { display: flex; flex-direction: column; gap: 3px; padding: 3px; overflow-y: auto; }
.pos-dept { flex: none; height: 52px; text-align: left; padding: 4px 10px; }
.pos-slotgrid .pos-dept { height: auto; text-align: center; font-weight: 600; }
.pos-stripregion { display: flex; flex-direction: row; align-items: stretch; gap: 3px; }
.pos-stripregion .pos-slotgrid { flex: 1 1 auto; min-width: 0; }
.pos-stripregion .pos-strip-pager { flex: none; width: 36px; height: auto; margin: 3px 0; }
.pos-paging { display: flex; align-items: center; gap: 6px; padding: 4px; }
.pos-paging .pos-task { flex: none; width: 90px; height: 40px; }
.pos-paging-gap { flex: 1; }
.pos-actionbar { display: flex; gap: 6px; padding: 3px 6px; background: #e5e7eb; }
.pos-agroup { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.pos-agroup small { font-size: 10px; font-weight: 700; letter-spacing: .05em; }
.pos-agroup > div { display: flex; gap: 3px; flex: 1; }
.pos-abtn { flex: 1; min-width: 0; }
.pos-footer { display: flex; align-items: center; gap: 24px; padding: 0 12px; background: var(--dark, #1f2937); color: #fff; font-size: 13px; }
.pos-footer-tpl { margin-left: auto; font-weight: 700; }
.pos-ok { color: #34d399; } .pos-bad { color: #f87171; }
.pos-screen .pos-overlay { position: absolute; left: 50%; top: 50%; bottom: auto; transform: translate(-50%, -50%); max-height: 740px; max-width: 900px; z-index: 50; }
.pos-modal { min-width: 420px; }
.pos-mod-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.pos-mod-opt { display: flex; align-items: center; gap: 6px; padding: 10px; border: 1px solid var(--border); border-radius: 6px; background: #fff; text-align: left; }
.pos-mod-on { background: #dbeafe; border-color: var(--primary); }
.pos-mod-radio, .pos-mod-check { width: 14px; height: 14px; border: 2px solid #555; display: inline-block; flex: none; }
.pos-mod-radio { border-radius: 50%; } .pos-mod-check { border-radius: 3px; }
.pos-mod-on .pos-mod-radio, .pos-mod-on .pos-mod-check { background: var(--primary); }
.pos-logo { display: block; margin-bottom: .5rem; max-width: 100%; object-fit: contain; }
.pos-logo-top-left { margin-right: auto; } .pos-logo-top-center { margin-left: auto; margin-right: auto; } .pos-logo-top-right { margin-left: auto; }
.pos-dept-sm { font-size: .8rem; padding: .2rem .5rem; } .pos-dept-md { font-size: 1rem; padding: .4rem .8rem; } .pos-dept-lg { font-size: 1.2rem; padding: .7rem 1.1rem; }
.pos-funcs { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .5rem; }
.pos-saver { position: fixed; inset: 0; z-index: 100; background: #111; color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; font-size: 2rem; cursor: pointer; }
.pos-change-screen { position: fixed; inset: 0; z-index: 1000; background: #000; color: #fff; }
.pos-change-continue { box-sizing: border-box; min-width: 0; overflow-y: auto; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2rem; width: 100%; height: 100%; padding: 2rem; border: 0; background: #000; color: #fff; text-align: center; cursor: pointer; }
.pos-change-continue:focus-visible { outline: 4px solid #fff; outline-offset: -8px; }
.pos-change-amount { max-width: 100%; min-width: 0; overflow-wrap: anywhere; white-space: normal; font-size: clamp(2.5rem, 7vw, 7rem); font-weight: 800; line-height: 1.2; }
.pos-change-instruction { max-width: 100%; overflow-wrap: anywhere; font-size: clamp(1.3rem, 3vw, 3rem); font-weight: 700; }
.pos-saver img { max-width: 80%; max-height: 70%; object-fit: contain; }
.floor-canvas { position: relative; width: 1000px; max-width: 100%; height: 600px; border: 1px solid var(--border); background: #fafafa; overflow: auto; }
.floor-zone { position: absolute; border: 2px dashed #999; opacity: .6; } .floor-zone > span { font-size: .8rem; padding: .2rem; }
.floor-table { position: absolute; display: flex; align-items: center; justify-content: center; border: 1px solid #2e8b57; background: #fff; overflow: hidden; text-decoration: none; color: inherit; }
.floor-table.floor-busy { border-color: #c0392b; background: #fdf0ee; }
/* POS terminal layout (ADR-024) */
.pos-shell { display: flex; flex-direction: column; height: 100vh; width: 100vw; overflow: hidden; background: #f4f6f9; touch-action: manipulation; }
.pos-topbar { display: flex; align-items: center; gap: .75rem; padding: .25rem .75rem; background: var(--dark); color: #fff; min-height: 2.4rem; }
.pos-operator { font-weight: 600; }
.pos-exit { margin-left: auto; font-size: .7rem; color: #9aa7b8; text-decoration: none; opacity: .7; }
.pos-main { flex: 1; overflow: auto; padding: .75rem; }
.pos-main:has(.hospitality-signin){padding:0;min-height:0;overflow:hidden;display:flex;flex-direction:column;background:#000}.pos-main:has(.hospitality-signin)>.hospitality-signin{flex:1;min-height:0;height:100%;width:100%;box-sizing:border-box}
.pos-main:has(.retail-screen) { padding:0; min-height:0; display:flex; flex-direction:column; overflow:hidden; }
.pos-main:has(.retail-screen) > .pos-viewport { flex:1; min-height:0; height:auto; overflow:auto; background:#edf3f7; }
.pos-main:has(.retail-screen) > .retail-notices { flex:none; }
.pos-main .btn, .pos-main button { min-height: 2.75rem; }
.pos-loading { padding: 2rem; text-align: center; color: #666; }
.pos-login { max-width: 420px; margin: 1rem auto; display: flex; flex-direction: column; gap: .6rem; }
.nk { display: flex; flex-direction: column; gap: .4rem; max-width: 320px; }
.nk-key { min-height: 3.5rem; font-size: 1.4rem; }
.pos-overlay { position: fixed; left: 50%; top:50%; bottom:auto; transform: translate(-50%,-50%); z-index: 50; background: #fff; border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 6px 24px rgba(0,0,0,.3); padding: .75rem; max-height: 90dvh; max-width:96vw; overflow: auto; }
.pos-tender { width: min(1080px, 94%); display: flex; flex-direction: column; max-height: min(80dvh, 700px); overflow: hidden; }
.pos-tender > form { display: flex; flex-direction: column; flex: 1; min-height: 0; gap: .5rem; }
.pos-tender-workspace { display: grid; grid-template-columns: minmax(0, 1fr) 260px; flex: 1; gap: 1rem; min-height: 0; }
.pos-tender-workspace > .pos-tender-rows { overflow-y: auto; min-height: 0; margin: 0; padding-right: .25rem; }
.pos-tender-keypad { min-width: 0; }
.pos-tender-keypad .nk { max-width: none; }
.pos-tender-keypad .nk-key { min-height: 3rem; }
.pos-tender-cash-tools { grid-column: 1 / -1; }
.pos-tender-cash-tools h3 { margin: .25rem 0; font-size: 1rem; }
.pos-fast-cash { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .4rem; margin: .5rem 0; }
.pos-fast-cash-button { min-height: 3.5rem; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .25rem; white-space: normal; overflow-wrap: anywhere; }
.pos-fast-cash-button img { width: 100%; height: 3rem; object-fit: contain; }
.pos-fast-cash-empty { min-height: 3.5rem; }
.pos-tender h2 { margin: 0 0 .5rem; }
.pos-tender-summary { display: flex; flex-wrap: wrap; flex-shrink: 0; gap: .5rem 1rem; padding: .6rem 0; background: #fff; }
.pos-tender-rows { display: grid; gap: .65rem; margin: .75rem 0; }
.pos-tender-row { display: grid; grid-template-columns: minmax(120px, 1fr) minmax(0, 1.5fr) auto; gap: .5rem .75rem; align-items: center; border: 1px solid var(--border); border-radius: 6px; padding: .65rem; }
.pos-tender-selected { border-color: var(--pos-primary, #2563eb); }
.pos-tender-row .form-row { margin: 0; min-width: 0; }
.pos-tender-method { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .25rem; width: 100%; min-height: 4rem; text-align: center; }
.pos-tender-method img { width: 100%; height: 3rem; object-fit: contain; }
.pos-tender-reference, .pos-tender-row > .pos-tender-denominations { grid-column: 1 / -1; }
.pos-tender-denominations { display: flex; flex-wrap: wrap; gap: .25rem; padding-top: .25rem; }
@media (max-width: 600px) {
    .pos-tender-workspace { grid-template-columns: 1fr; grid-template-rows: minmax(90px, 1fr) auto; }
    .pos-tender-keypad .nk { max-width: 320px; margin: 0 auto; }
    .pos-tender-keypad .nk-key { min-height: 2.25rem; padding: .2rem; }
    .pos-tender-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); }
    .pos-tender-row > .pos-actions { grid-column: 2; }
}
.pos-receipt-paper img { display: block; max-width: 100%; height: auto; margin-top: 1rem; }
.pos-receipt-preview { width: fit-content; max-width: 100%; margin: 1rem auto; border: 1px solid var(--border); box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.pos-receipt-preview img { margin: 0; }
@media print {
    body:has(.pos-receipt-paper) * { visibility: hidden; }
    body:has(.pos-receipt-paper) .pos-receipt-paper, body:has(.pos-receipt-paper) .pos-receipt-paper * { visibility: visible; }
    body:has(.pos-receipt-paper) .pos-receipt-paper { position: absolute; top: 0; left: 0; }
    body:has(.pos-receipt-paper) .pos-receipt-paper img { margin: 0; }
    body:has(.pos-receipt-paper) .pos-receipt-preview { border: 0; box-shadow: none; margin: 0; }
    body:has(.pos-order-document) .pos-shell,
    body:has(.pos-order-document) .pos-main,
    body:has(.pos-order-document) .pos-viewport,
    body:has(.pos-order-document) .pos-screen,
    body:has(.pos-order-document) .pos-overlay:has(.pos-order-document) {
        position: static; transform: none; overflow: visible; width: auto !important; height: auto !important; max-height: none;
    }
    body:has(.pos-order-document) *:not(:has(.pos-order-document), .pos-order-document, .pos-order-document *) { display: none !important; }
}
.pos-table-closed { border-color: #999; background: #eee; opacity: .6; }

/* POS visual designer & media (ADR-026) */
.pos-widgets { display: grid; grid-template-columns: repeat(40, 1fr); grid-template-rows: repeat(40, minmax(0, 1fr)); height: 80vh; gap: 2px; background: var(--pos-bg, #fff); color: var(--pos-text, #111827); }
.pos-widget { overflow: auto; min-width: 0; min-height: 0; }
.pos-widget-logo { max-width: 100%; max-height: 100%; object-fit: contain; }
.pos-clock { font-size: 2rem; font-weight: 600; display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; }
.pos-clock small { font-size: 0.9rem; font-weight: 400; }
.pos-btn img { max-width: 100%; max-height: 60%; object-fit: contain; }
.pos-logoregion, .pos-clockregion, .pos-alertsregion { display: flex; align-items: center; gap: 14px; padding: 2px 10px; }
.pos-logoregion { justify-content: center; } .pos-logo-img { max-width: 100%; max-height: 100%; object-fit: contain; }
.pos-clockregion { flex-direction: column; justify-content: center; gap: 0; background: var(--dark, #1f2937); color: #fff; }
.pos-alertsregion { background: var(--dark, #1f2937); color: #fff; font-size: 13px; }
.pos-tenderregion, .pos-printregion { align-items: stretch; }
.pos-pager { position: absolute; right: 4px; bottom: 4px; display: flex; gap: 3px; align-items: center; background: rgba(255,255,255,.9); border-radius: 6px; padding: 2px; }
.pos-pager .pos-task { width: 36px; height: 30px; }
.pos-region .pos-task, .pos-region .pos-abtn, .pos-region .pos-dept, .pos-region .pos-strip { background-color: var(--rb, #fff); color: var(--rt, inherit); background-image: var(--rbi, none); background-size: cover; background-position: center; font-size: var(--rs, 13px); }
.pos-region .pos-btn { background-color: var(--rb, #fff); color: var(--rt, inherit); background-image:var(--rbi,none); background-size:100% 100%; background-position:center; background-repeat:no-repeat; font-size: var(--rs, 1rem); }
/* A supplied 3D face owns its frame. Transparent image corners must reveal the
   panel rather than a second white button face. Selection markers remain separate. */
button[style*="--pos-button-skin:1"],button[style*="--pos-button-skin:1"]:active{background-color:transparent!important;border:0!important;box-shadow:none!important}
.pos-region[style*="--rbi:"] .pos-slot-empty{background-color:transparent!important;border:0!important;box-shadow:none!important}
.designer-region { position: absolute; box-sizing: border-box; border: 2px solid #2563eb; background: rgba(37, 99, 235, 0.15); display: flex; align-items: flex-start; justify-content: flex-start; font-size: 11px; cursor: move; overflow: hidden; color: #1e293b; padding: 2px; }
.designer-region.designer-selected { border-color: #f59e0b; background: rgba(245, 158, 11, 0.22); }
.designer-region.designer-hidden { opacity: 0.35; border-style: dashed; }
.designer-region.designer-core { border-color: #059669; }
.designer-wrap { display: flex; gap: 1rem; align-items: flex-start; }
.designer-btnbox { position: absolute; margin: -2px 0 0 -2px; box-sizing: border-box; border: 1px solid #1d4ed8; background: rgba(255, 255, 255, 0.75); pointer-events: none; }
.designer-warn { color: #b91c1c; }
.designer-canvas { position: relative; border: 1px solid #94a3b8; background: #f8fafc; touch-action: none; user-select: none; flex: none; }
.designer-canvas.designer-grid { background-image: linear-gradient(to right, #cbd5e1 1px, transparent 1px), linear-gradient(to bottom, #cbd5e1 1px, transparent 1px); background-size: 20px 15px; }
.designer-widget { position: absolute; box-sizing: border-box; border: 2px solid var(--pos-primary, #2563eb); background: rgba(37, 99, 235, 0.15); display: flex; align-items: center; justify-content: center; cursor: move; overflow: hidden; }
.designer-widget.designer-selected { border-color: var(--pos-accent, #f59e0b); background: rgba(245, 158, 11, 0.2); }
.designer-widget.designer-hidden { opacity: 0.35; border-style: dashed; }
.designer-handle { position: absolute; right: 0; bottom: 0; width: 14px; height: 14px; background: #1e293b; cursor: nwse-resize; }
.designer-side { min-width: 14rem; }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: 1rem; }
.media-card { border: 1px solid #cbd5e1; border-radius: 6px; padding: 0.5rem; display: flex; flex-direction: column; gap: 0.25rem; }
.media-card.media-inactive { opacity: 0.55; }
.media-thumb { height: 7rem; display: flex; align-items: center; justify-content: center; background: #f1f5f9; }
.media-thumb img { max-width: 100%; max-height: 100%; }
.media-preview { max-width: 24rem; height: 12rem; }
.media-actions { display: flex; gap: 0.25rem; flex-wrap: wrap; }
.brand-preview { display: flex; gap: 1rem; align-items: center; padding: 0.75rem; background: var(--pos-bg); color: var(--pos-text); border: 1px solid #cbd5e1; }
.brand-preview-bar { background: var(--pos-primary); color: #fff; padding: 0.5rem 1rem; display: flex; gap: 0.5rem; align-items: center; }
.brand-preview-bar img { max-height: 2rem; }
.brand-preview-btn { background: var(--pos-accent); border: 0; padding: 0.5rem 1rem; }
/* Special instructions (ADR-038): distinct from modifiers, emphasised for the kitchen */
.pos-j-instr { color: #8a4b00; font-weight: 600; background: #fff4e0; border-left: 3px solid #e08a00; margin: 1px 0; }
.pos-j-notebtn { margin-left: 4px; padding: 0 4px; }
.pos-instr-has { border-color: #e08a00; background: #fff4e0; }
.pos-instr-editor { display: flex; flex-direction: column; gap: .4rem; }
.pos-instr-presets { display: flex; flex-wrap: wrap; gap: .3rem; }
.pos-instr-chip.pos-instr-on { background: #e08a00; color: #fff; border-color: #b06b00; }
.pos-instr-list { list-style: none; margin: 0; padding: 0; }
.pos-instr-list li { display: flex; justify-content: space-between; align-items: center; padding: 2px 4px; border-bottom: 1px solid var(--border); }
.pos-instr-hint { color: #8a4b00; font-weight: 600; }
.pos-ticket-kitchen { font-weight: 600; }
/* Layout button instances: selection edits properties; no POS action is executed here. */
.layout-button-slot { box-sizing:border-box;overflow:hidden; }
.layout-design-button { display:flex;flex-direction:column;align-items:center;justify-content:center;width:100%;height:100%;border:1px solid #9aa8bf;background:#fff;color:#172033;border-radius:4px;padding:2px;overflow:hidden;cursor:grab;box-sizing:border-box; }
.layout-design-button small { font-size:8px;opacity:.7; }
.layout-button-empty { width:100%;height:100%;border:1px dashed #aab7cc;background:transparent;color:#667085;font-size:9px;cursor:pointer; }
.layout-button-selected { outline:3px solid #2563eb;outline-offset:-3px; }
.layout-button-resize { position:absolute;right:0;bottom:0;width:12px;height:12px;background:#2563eb;border:1px solid white;cursor:nwse-resize;z-index:3; }
.layout-button-library { display:flex;flex-direction:column;align-items:stretch;gap:4px;max-height:230px;overflow:auto;margin:8px 0; }
.layout-button-library small { display:block; }
.designer-side label { display:block;margin:6px 0; }
.layout-numeric-preview { display:grid;grid-template-columns:repeat(3,minmax(0,160px));gap:5px;width:490px;align-content:start; }
.layout-numeric-slot { position:relative;min-height:70px; }
.layout-numeric-slot button { width:100%;min-height:70px;display:flex;flex-direction:column;justify-content:center;align-items:center;overflow:hidden; }
.layout-numeric-slot small { font-size:10px; }
@media print {
 body:has(#account-print-document) * {visibility:hidden !important;}
 body:has(#account-print-document) #account-print-document,body:has(#account-print-document) #account-print-document * {visibility:visible !important;}
 body:has(#account-print-document) #account-print-document{position:absolute;left:0;top:0;width:100%;max-width:none;background:white;color:black;}
 body:has(#account-print-document) .account-print-preview{position:absolute;inset:0;overflow:visible;padding:0;}
 body:has(#account-print-document) table{width:100%;border-collapse:collapse;font-size:10pt;}
 body:has(#account-print-document) th,body:has(#account-print-document) td{padding:6px;border-bottom:1px solid #ccc;text-align:left;}
 body:has(#account-print-document) tr{break-inside:avoid;} body:has(#account-print-document) thead{display:table-header-group;}
}

@media print {body:has(#account-print-document) .account-collection-shade{position:absolute;display:block;inset:0;padding:0}body:has(#account-print-document) .account-collection-panel{max-height:none;overflow:visible;width:100%;padding:0}}


/* Hospitality runtime viewport fitting: full workspace, readable text, no page gutters. */
.pos-main:has(.hospitality-workspace){padding:0;min-width:0}
.pos-main:has(.hospitality-workspace .pos-screen){min-height:0;display:flex;flex-direction:column;overflow:hidden}
.hospitality-workspace{width:100%;max-width:none;min-width:0}
.pos-main:has(.hospitality-workspace .pos-screen) .hospitality-workspace{display:flex;flex:1;flex-direction:column;min-height:0}
.hospitality-workspace .pos-viewport{flex:1;min-height:0;height:auto;overflow:auto;background:var(--pos-bg,#f4f6f9)}
.hospitality-workspace .pos-screen{left:0;top:0}
.hospitality-workspace>.page-head,.hospitality-workspace>.pos-bar{padding-left:8px;padding-right:8px}
@media print{.pos-main:has(.hospitality-workspace .pos-screen){display:block;height:auto;overflow:visible}}

/* Only the spendable certificates belong on the certificate printout. */
@media print {
 body:has(.voucher-certificate-print) * { visibility: hidden; }
 body:has(.voucher-certificate-print) .voucher-certificate-print,
 body:has(.voucher-certificate-print) .voucher-certificate-print * { visibility: visible; }
 body:has(.voucher-certificate-print) .voucher-certificate-print { position: absolute; top: 0; left: 0; width: 72mm; }
}
@media print { body:has(.commercial-print-preview) * { visibility:hidden !important; } body:has(.commercial-print-preview) .commercial-print-preview,body:has(.commercial-print-preview) .commercial-print-preview img { visibility:visible !important; } body:has(.commercial-print-preview) .commercial-overlay { position:static !important; overflow:visible !important; max-height:none !important; } body:has(.commercial-print-preview) .commercial-print-preview { position:absolute !important; inset:0 auto auto 0 !important; width:100% !important; max-width:180mm !important; border:0 !important; padding:0 !important; margin:0 !important; } body:has(.commercial-print-preview) .commercial-print-preview button { display:none !important; } }

.pos-main:has(.salon-pos){padding:0;min-width:0}
.pos-main .salon-pos button{min-height:0}

h1:focus { outline:none; }

button[style*="--pos-raised:1"] { transition: filter .12s, translate .08s; }
button[style*="--pos-raised:1"]:active:not(:disabled) { box-shadow: inset 0 3px 5px #0007,inset 0 -1px 1px #fff6 !important; translate: 0 2px; filter: brightness(.94); }
button[style*="--pos-raised:1"]:disabled { box-shadow: none !important; }
@media (prefers-reduced-motion: reduce) { button[style*="--pos-raised:1"] { transition: none; } }

.pos-pager .pos-task { width:auto; min-width:80px; height:36px; padding:4px 8px; background:#087f83; color:white; font-weight:700; }
.pos-pager .pos-task:disabled { background:#dde5ea; color:#667581; }
.pos-strip-pager { background:#087f83; color:white; display:flex; flex-direction:column; justify-content:center; align-items:center; }
.pos-strip-pager small { font-size:9px; }
.pos-grid-navigation { background:#087f83 !important; color:#fff !important; font-weight:700; display:flex; flex-direction:column; justify-content:center; align-items:center; border:2px solid #066166; }
.pos-grid-navigation:disabled { background:#e1e8ec !important; color:#667581 !important; border-color:#bdcbd2; }
button.pos-grid-navigation { background:#087f83 !important; color:#fff !important; font-weight:700; display:flex; flex-direction:column; justify-content:center; align-items:center; border:2px solid #065c60; }
button.pos-grid-navigation:disabled { background:#dce7e9 !important; color:#65777a !important; border-color:#bdcfd1; }
.pos-screen,.designer-canvas{isolation:isolate}
.pos-btn img { width:100%; height:var(--product-image-percent,75%); max-height:var(--product-image-percent,75%); object-fit:var(--product-image-fit,contain); flex:0 1 auto; min-height:0; }
.pos-saver>span{position:relative;z-index:2;text-shadow:0 1px 4px #000;}
.register-media-status{position:fixed;right:12px;bottom:8px;z-index:45;background:#f5fafb;color:#30434c;border:1px solid #bdced4;border-radius:8px;font-size:11px;padding:3px 8px;max-width:330px}.register-media-status summary{cursor:pointer}.register-media-status p{margin:6px 0}

/* Compact administration forms; POS transaction screens use a separate shell. */
.app-main :where(fieldset) { min-width:0; border:1px solid #b9c7d5; border-radius:7px; padding:10px 12px; margin:8px 0; background:#fff; }
.app-main :where(legend) { font-size:.9rem; font-weight:700; padding:0 5px; color:#263f55; }
.app-main :where(.form-row) { margin-bottom:.6rem; gap:4px; }
.app-main :where(.table) { border:1px solid #b9c7d5; border-collapse:collapse; background:#fff; }
.app-main :where(.table th,.table td) { border-bottom:1px solid #d5dfe8; padding:8px 10px; }
.app-main :where(.table th) { background:#eaf1f6; color:#243e53; }
.app-main :where(input:not([type=checkbox]):not([type=radio]):not([type=color]),select,textarea) { border:1px solid #9eafc0; border-radius:5px; }
.app-main :where(input,select,textarea,button,a):focus-visible { outline:2px solid #087f83; outline-offset:2px; }

/* The designer's three panels share one bounded workspace. */
.pos-designer-page { min-width:0; }
.pos-designer-page .page-head { margin-bottom:6px; }
.pos-designer-page .hint { font-size:12px; line-height:1.45; margin:5px 0 8px; }
.pos-designer-page .designer-toolbar { display:flex; flex-direction:row; flex-wrap:wrap; align-items:end; gap:8px 12px; padding:10px; margin:8px 0; background:#fff; border:1px solid #b4c4d3; border-radius:8px; }
.pos-designer-page .designer-toolbar label { display:flex; flex-direction:column; gap:4px; margin:0; min-width:0; }
.pos-designer-page .designer-toolbar label:first-child { flex:1; min-width:220px; max-width:390px; }
.pos-designer-page .designer-toolbar input,.pos-designer-page .designer-toolbar select { min-height:34px; padding:5px 8px; max-width:100%; font-size:13px; }
.pos-designer-page .designer-toolbar .designer-inline { flex-direction:row; align-items:center; min-height:34px; }
.designer-mode-switch { display:flex; align-items:center; flex-wrap:wrap; gap:8px; font-weight:700; padding:7px 10px; background:#e9f3f5; border:1px solid #acc8d0; border-left:4px solid #087f83; border-radius:5px; margin:8px 0; }
.designer-mode-switch span { font-weight:400; font-size:12px; color:#4d6173; }
.designer-wrap.designer-three-pane { display:grid; grid-template-columns:minmax(160px,190px) minmax(0,1fr) minmax(250px,290px); gap:10px; align-items:start; }
.designer-three-pane > .designer-tools,.designer-three-pane > .designer-properties { min-width:0; max-height:calc(100dvh - 235px); overflow:auto; overscroll-behavior:contain; scrollbar-width:thin; padding:10px; border:1px solid #aebfd0; border-radius:8px; background:#fff; }
.designer-three-pane > .designer-stage { min-width:0; padding:8px; border:1px solid #aebfd0; border-radius:8px; background:#eaf0f5; overflow:hidden; }
.designer-panel-title { font-size:13px; line-height:1.3; letter-spacing:.03em; margin:-10px -10px 10px; padding:10px; font-weight:750; color:#204656; border-bottom:1px solid #b7cbd5; background:#e7f2f5; position:sticky; top:-10px; z-index:30; }
.designer-three-pane .designer-tools h3,.designer-three-pane .designer-properties h3 { font-size:14px; padding:6px 0; margin:8px 0 5px; border-bottom:1px solid #cfdae4; }
.designer-three-pane .designer-tools h4,.designer-three-pane .designer-properties h4 { margin:10px 0 6px; font-size:13px; color:#285265; }
.designer-three-pane .designer-tools label,.designer-three-pane .designer-properties label { display:block; margin:6px 0; font-size:12px; }
.designer-three-pane :is(input:not([type=checkbox]):not([type=radio]):not([type=color]),select,textarea) { width:100%; min-width:0; max-width:100%; padding:5px 7px; min-height:32px; font-size:13px; }
.designer-three-pane :is(input[type=checkbox],input[type=radio]) { width:auto; }
.designer-three-pane .form-row { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; margin-bottom:8px; }
.designer-three-pane fieldset { margin:8px 0; padding:8px; }
.designer-three-pane ul { list-style:none; padding:0; margin:6px 0; display:grid; gap:5px; }
.designer-three-pane ul .btn { width:100%; text-align:left; white-space:normal; }
.designer-three-pane .actions { display:flex; flex-wrap:wrap; gap:5px; margin:6px 0; }
.designer-three-pane .btn { font-size:12px; padding:5px 8px; min-height:32px; }
.designer-three-pane .layout-button-library { display:grid; gap:5px; }
.designer-three-pane .layout-button-library .btn { width:100%; text-align:left; white-space:normal; }
.designer-three-pane .layout-button-library small { display:block; font-size:10px; }
.designer-three-pane details,.designer-advanced,.designer-help { border:1px solid #c1cfdb; border-radius:6px; background:white; margin:6px 0 10px; padding:8px; }
.designer-three-pane summary,.designer-advanced>summary,.designer-help>summary { cursor:pointer; color:#22495c; font-size:12px; font-weight:700; }
.designer-three-pane .designer-canvas-viewport { max-width:100%; max-height:calc(100dvh - 285px); min-height:230px; overflow:auto; overscroll-behavior:contain; scrollbar-width:thin; padding:2px; }
.designer-three-pane .designer-canvas { margin:6px auto; border:2px solid #71879d; box-shadow:0 3px 12px #243b531c; }
.designer-stage-heading { display:flex; align-items:center; flex-wrap:wrap; gap:6px; font-size:12px; padding:0 0 7px; margin-bottom:5px; border-bottom:1px solid #c3d0dc; }
.designer-stage-heading strong { flex:1; }.designer-stage-heading span { color:#546b7d; }
.designer-savebar { position:sticky; bottom:8px; z-index:35; display:flex; flex-wrap:wrap; gap:8px; background:#fff; padding:8px; border:1px solid #aebfd0; border-radius:7px; box-shadow:0 -2px 9px #263e5314; }
.designer-advanced>h2 { font-size:15px; margin-top:12px; }
@media(max-width:1250px) {
 .designer-wrap.designer-three-pane { grid-template-columns:155px minmax(0,1fr) 245px; gap:8px; }
}
@media(max-width:1000px) {
 .designer-wrap.designer-three-pane { grid-template-columns:145px minmax(0,1fr); }
 .designer-three-pane > .designer-properties { grid-column:1/-1; max-height:400px; }
}
@media(max-width:650px) {
 .designer-wrap.designer-three-pane { grid-template-columns:minmax(0,1fr); }
 .designer-three-pane > .designer-tools { max-height:230px; }
 .designer-three-pane > .designer-properties { grid-column:auto; }
 .designer-three-pane .form-row { grid-template-columns:repeat(2,minmax(0,1fr)); }
}


.pos-mod-empty { pointer-events:none; opacity:1; border-style:solid; }
.modifier-designer-preview { display:grid; width:460px; max-width:100%; min-height:160px; gap:4px; padding:6px; background:#f5f6f8; border:1px solid #bcc9d4; }

/* Explicit button content modes and a larger, non-shrinking image area. */
.pos-btn { position:relative; }
.pos-btn img { display:var(--button-image-display,block); flex:0 0 auto; height:var(--product-image-percent,75%); max-height:var(--product-image-percent,75%); width:100%; object-fit:var(--product-image-fit,contain); }
.pos-catalog-label, .pos-btn > small { display:var(--button-label-display,block); }
button[style*="--button-label-display:none"] { padding:0; }
button[style*="--button-label-display:none"] > span,
button[style*="--button-label-display:none"] > small { display:none; }

.pos-region .pos-strip, .pos-region .pos-dept { background-size:var(--product-image-fit,cover); }

.retail-product img { display:var(--button-image-display,block); object-fit:var(--product-image-fit,contain); height:var(--product-image-percent,75%); max-height:var(--product-image-percent,75%); }
.retail-product > strong, .retail-product > span { display:var(--button-label-display,block); }
.retail-product[style*="--button-image-display:none"] .retail-photo-placeholder { display:none; }
.treatment-card[style*="--button-image-display:none"] .treatment-photo { display:none; }
.treatment-card[style*="--button-label-display:none"] .treatment-body,
.treatment-card[style*="--button-label-display:none"] .item-type { display:none; }
.treatment-card[style*="--button-label-display:none"] .treatment-photo { height:100%; min-height:180px; }
.treatment-card .treatment-photo img { object-fit:var(--product-image-fit,cover); }

/* Keep selection distinct from keyboard focus and from the button's configured colour. */
.pos-slotgrid .pos-strip, .pos-slotgrid .pos-dept { position:relative; }
.pos-slotgrid .pos-slot-on {
    outline:3px solid #17263c; outline-offset:-4px;
    box-shadow:inset 0 0 0 6px #fff,inset 0 -9px 0 #17263c !important;
}
.pos-slotgrid .pos-slot-on::after {
    content:"✓"; position:absolute; right:5px; top:4px; width:22px; height:22px;
    border-radius:50%; background:#17263c; color:white; display:grid; place-items:center;
    font:700 15px/1 Arial,sans-serif; pointer-events:none;
}

/* Shared touch keyboard: tactile keys with a stable layout when pressed. */
.hk { display:grid; gap:9px; padding:16px; max-width:900px; box-sizing:border-box; border:1px solid #bac6d4; border-radius:16px; background:linear-gradient(145deg,#edf2f8,#d8e1ec); box-shadow:inset 0 1px 0 #fff,0 8px 22px #182b4526; }
.hk .hk-label { color:#25374d; font-size:14px; letter-spacing:.02em; }
.hk .hk-display { padding:12px 14px; min-height:46px; box-sizing:border-box; border:1px solid #b7c6d6; border-radius:9px; background:#fff; color:#17263c; box-shadow:inset 0 2px 4px #182b4518; overflow-wrap:anywhere; }
.hk .hk-row { gap:8px; padding-bottom:4px; }
.hk .hk-key { min-width:0; min-height:54px; border:1px solid #aebdd0; border-top-color:#fff; border-bottom:3px solid #9bacbf; border-radius:10px; background:linear-gradient(#fff,#e8eef5); color:#24344b; font-size:19px; font-weight:600; box-shadow:inset 0 1px 0 #fff,0 4px 0 #a9b8ca,0 5px 7px #182b4520; touch-action:manipulation; transition:transform .07s,box-shadow .07s,filter .1s; }
.hk .hk-key:hover { filter:brightness(1.035); }
.hk .hk-key:active { transform:translateY(3px); box-shadow:inset 0 2px 4px #182b4533,0 1px 0 #a9b8ca; background:linear-gradient(#dae4f0,#f5f8fc); }
.hk .hk-edit,.hk .hk-shift { background:linear-gradient(#dce7f4,#c2d3e7); }
.hk .hk-clear { background:linear-gradient(#fff2e5,#f4ddc5); color:#824820; border-bottom-color:#c6a889; }
.hk .hk-enter,.hk .hk-on { background:linear-gradient(#3b7bda,#2258a9); color:#fff; border-color:#1d509b; border-top-color:#72a7ed; border-bottom-color:#153f7d; box-shadow:inset 0 1px 0 #ffffff55,0 4px 0 #173c72,0 5px 7px #182b4526; }
.hk .hk-enter:active,.hk .hk-on:active { background:linear-gradient(#1d4e98,#3472cb); }
.hk .hk-key:focus-visible { outline:3px solid #138b99; outline-offset:3px; }
@media(max-width:600px){.hk{padding:9px;gap:6px}.hk .hk-row{gap:4px}.hk .hk-key{font-size:15px;min-height:48px;border-radius:7px}}
@media(prefers-reduced-motion:reduce){.hk .hk-key{transition:none}}

.modifier-correction-form { display:grid; gap:10px; padding:12px; border:1px solid #b7cbd8; border-radius:8px; background:#f3f7fa; }
.modifier-correction-form label { display:block; font-size:14px; line-height:1.5; }
.modifier-correction-form input:not([type=checkbox]),.modifier-correction-form textarea { display:block; width:100%; box-sizing:border-box; padding:8px; border:1px solid #b7cbd8; border-radius:5px; }
/* Store -> location -> register setup uses the same records as the overview lists. */
.setup-section { margin-top:1.5rem; padding:1.2rem; border:1px solid #cbd5e1; border-radius:12px; background:#fff; scroll-margin-top:5rem; }
.setup-section-head,.setup-tile-head { display:flex; justify-content:space-between; align-items:flex-start; gap:1rem; flex-wrap:wrap; }
.setup-section h2,.setup-tile h3 { margin:0 0 .5rem; }
.setup-section-head p { margin:0 0 1rem; color:#526277; }
.setup-tiles { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr)); gap:1rem; }
.setup-tile { padding:1rem; border:1px solid #cbd5e1; border-radius:10px; background:#f8fafc; }
.setup-tile p { margin:.5rem 0; overflow-wrap:anywhere; }
.setup-actions { display:flex; flex-wrap:wrap; gap:.5rem; align-items:center; }
.setup-status { padding:.2rem .6rem; border:1px solid #cbd5e1; border-radius:999px; font-size:.85rem; background:#fff; }
.setup-tender-disabled { color:#9a3412; font-weight:600; }
.sales-total-summary { display:grid;grid-template-columns:2fr 1fr 1fr;gap:1rem;margin:1rem 0;border:2px solid #155e75;border-radius:10px;overflow:hidden;background:#f0f9ff;color:#102a43; }
.sales-total-summary > div { padding:1rem;display:flex;flex-direction:column;gap:.35rem; }
.sales-total-summary .sales-total-primary { background:#15374d;color:#fff; }
.sales-total-summary strong { font-size:1.8rem;font-variant-numeric:tabular-nums; }
.sales-total-summary small { line-height:1.45; }
.backoffice-theme-picker { display:flex;align-items:center;gap:.4rem;font-size:.8rem;color:white; }
.backoffice-theme-picker select { max-width:210px;padding:.3rem;border:1px solid #b8c7d8;border-radius:4px;background:white;color:#102a43; }
:root[data-backoffice-theme="contrast"] .app-shell,:root[data-backoffice-theme="blue"] .app-shell { --primary:#174eaa;--border:#889db3;--bo-nav:#183247;--bo-active:#086872;color:#13283d;background:#e4ebf2; }
:root[data-backoffice-theme="blue"] .app-shell { --bo-nav:#172c56;--bo-active:#244caa;--primary:#214b9f; }
:root:is([data-backoffice-theme="contrast"],[data-backoffice-theme="blue"]) .app-shell .app-header { background:#10253b;color:#fff;flex-wrap:wrap; }
:root:is([data-backoffice-theme="contrast"],[data-backoffice-theme="blue"]) .app-shell .app-nav { background:var(--bo-nav);border-right:2px solid #0a1a2b; }
:root:is([data-backoffice-theme="contrast"],[data-backoffice-theme="blue"]) .app-shell .nav-list a { color:#f4f8fc;border-left:4px solid transparent; }
:root:is([data-backoffice-theme="contrast"],[data-backoffice-theme="blue"]) .app-shell .nav-list a:hover { background:#2a4d68;color:#fff; }
:root:is([data-backoffice-theme="contrast"],[data-backoffice-theme="blue"]) .app-shell .nav-list a.active { background:var(--bo-active);color:#fff;border-left-color:#9ee9ed;font-weight:750; }
:root:is([data-backoffice-theme="contrast"],[data-backoffice-theme="blue"]) .app-shell .app-main :is(.card,.report-card,.details,.table-wrap,.setup-section,.setup-tile) { border-color:#889db3;box-shadow:0 1px 3px #10253b18; }
:root:is([data-backoffice-theme="contrast"],[data-backoffice-theme="blue"]) .app-shell .app-main :is(input:not([type=checkbox]):not([type=radio]):not([type=color]),select,textarea) { border:1px solid #738aa2;background:#fff;color:#13283d; }
:root:is([data-backoffice-theme="contrast"],[data-backoffice-theme="blue"]) .app-shell .app-main :is(.hint,.hub-tile span) { color:#40556b; }
:root:is([data-backoffice-theme="contrast"],[data-backoffice-theme="blue"]) .app-shell .app-main :is(.table th,.report-table th) { background:#dce8f2;color:#13283d;border-bottom:2px solid #8299af; }
.app-shell :is(a,button,input,select,textarea):focus-visible { outline:3px solid #087c8c;outline-offset:2px; }
@media(max-width:750px) { .sales-total-summary { grid-template-columns:1fr;gap:0; }.app-shell .app-header { flex-wrap:wrap; } }
@media print { .backoffice-theme-picker { display:none; }.sales-total-summary { break-inside:avoid;background:white;color:black; }.sales-total-summary .sales-total-primary { background:white;color:black; } }
.product-identity { display:inline-flex;align-items:center;gap:.5rem;white-space:nowrap;vertical-align:middle;line-height:1.2; }
.product-symbol { width:28px;height:28px;object-fit:contain;border-radius:6px; }
.product-default-logo { display:block;width:112px;height:44px;object-fit:contain;background:#fff;border-radius:6px;padding:3px 5px;box-sizing:content-box; }
.login-brand .product-default-logo { width:230px;height:100px;padding:8px 12px; }
.download-ribbon .product-default-logo { width:156px;height:64px; }
.product-wordmark { max-width:160px;height:28px;object-fit:contain;background:white;border-radius:3px;padding:2px; }
.product-identity strong { font-size:1rem;letter-spacing:.02em; }
.app-title { display:flex;align-items:center;gap:.6rem;flex-wrap:wrap; }
.identity-area { font-size:.85rem;opacity:.9; }
.login-brand .product-symbol { width:44px;height:44px; }.login-brand .product-identity strong { font-size:1.7rem; }
.login-brand .product-wordmark { height:44px;max-width:260px; }
.branded-loading { min-height:120px;display:flex;align-items:center;justify-content:center;gap:1rem;padding:2rem;color:#15374d; }
#platform-boot-brand { position:fixed;inset:0;background:#edf3f8;z-index:100000;flex-direction:column; }
.platform-appearance-editor { display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr));gap:1rem;border:0;padding:0; }
.platform-appearance-editor label { display:flex;flex-direction:column;gap:.4rem;margin:.5rem 0; }
.platform-appearance-editor input,.platform-appearance-editor select { padding:.5rem;max-width:100%; }
.appearance-image-preview { max-width:240px;max-height:80px;object-fit:contain;background:#eef3f8;padding:.5rem;border:1px solid #92a8bd; }
.appearance-brand-preview { display:flex;align-items:center;gap:.5rem;padding:1rem;background:#e8eff5;border:1px solid #92a8bd;color:#13283d; }
.appearance-brand-preview img { max-width:180px;max-height:48px;object-fit:contain; }
.screen-build-label { font-size:10px;line-height:1.3;opacity:.85;max-width:300px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }
.pos-topbar { flex-wrap:wrap;gap:.6rem; }.pos-topbar .product-identity { flex-shrink:0; }
:root[data-platform-branding] .pos-overlay:not(.retail-tender-dark) { background:var(--gz-dialog-bg,#f2f7fa);color:var(--gz-dialog-text,#13283d);border:1px solid #7b96ad;box-shadow:0 18px 65px #10253b55; }
:root[data-platform-branding] .pos-overlay:not(.retail-tender-dark) :is(input:not([type=checkbox]):not([type=radio]),select,textarea) { background:white;color:#13283d;border:1px solid #7892aa;border-radius:6px;padding:.5rem; }
:root[data-platform-branding] .pos-overlay:not(.retail-tender-dark) h2 { color:inherit; }
:root[data-platform-branding] .pos-overlay:not(.retail-tender-dark) .hint { color:inherit;opacity:.85; }
:root[data-platform-branding] .pos-shell :is(.delivery-panel,.account-collection-panel,.customer-picker-panel) { background:var(--gz-dialog-bg,#f2f7fa);color:var(--gz-dialog-text,#13283d);border:1px solid #7b96ad; }
:root[data-platform-branding][data-tender-size="comfortable"] .pos-overlay.pos-tender[role="dialog"] { width:min(1100px,94vw);max-width:94vw;min-height:min(580px,80dvh);max-height:90dvh;padding:24px;font-size:16px; }
:root[data-platform-branding][data-tender-size="comfortable"] .pos-screen .pos-overlay.pos-tender[role="dialog"] { max-width:94%;max-height:740px; }
.pos-overlay.commercial-overlay { width:min(1200px,96vw);max-width:96vw;max-height:92dvh; }
.commercial-overlay .table-wrap,.commercial-overlay table { background:#fff;color:#13283d; }
.commercial-overlay :is(.filters,fieldset) { min-width:0; }.commercial-overlay .filters { padding:1rem;border:1px solid #8ca1b6;border-radius:8px; }
@media print { .product-identity,.screen-build-label,#platform-boot-brand { display:none; } }

/* Shared POS task surfaces: keep every cashier dialog visually distinct. */
:root body .pos-overlay:not([style*="inset:0"]):not([role="region"]),
:root body :is(.customer-picker-panel,.customer-maintenance-panel,.account-collection-panel,.delivery-panel,.hp-pos-panel,.utility-dialog) {
    background:linear-gradient(145deg,var(--gz-dialog-bg,#f1f7fa) 0%,var(--gz-dialog-bg,#e3eef3) 100%);
    color:#183249;border:1px solid #b9cfd9;border-top:5px solid #07868b;
    border-radius:18px;box-shadow:0 24px 70px #071b2d66;
}
:root body .pos-overlay:not([style*="inset:0"]):not([role="region"]) {
    box-shadow:0 24px 70px #071b2d66,0 0 0 100vmax #071b2d99;
}
:root body :is(.customer-picker-shade,.customer-maintenance-shade,.account-collection-shade,.delivery-shade,.hp-pos-shade,.utility-backdrop) {
    background:#071b2d99;backdrop-filter:blur(3px);
}
:root body :is(.pos-overlay,.customer-picker-panel,.customer-maintenance-panel,.account-collection-panel,.delivery-panel,.hp-pos-panel) h2 {
    background:linear-gradient(110deg,#122b40,#185067);color:#fff;
    border-radius:11px;padding:15px 20px;margin:0 0 18px;
    font-size:clamp(22px,2vw,29px);font-weight:700;letter-spacing:.01em;
    border-bottom:3px solid #13b6b0;
}
:root body .pos-overlay[style*="inset:0"] > section {
    border-top:5px solid #07868b;box-shadow:0 24px 70px #071b2d66;
}
:root body :is(.pos-overlay,.customer-picker-panel,.customer-maintenance-panel,.account-collection-panel,.delivery-panel,.hp-pos-panel) .btn {
    border-radius:9px;min-height:42px;
}
:root body :is(.pos-overlay,.customer-picker-panel,.customer-maintenance-panel,.account-collection-panel,.delivery-panel,.hp-pos-panel) .btn-primary {
    background:#087f83;border-color:#087f83;color:#fff;font-weight:650;
}
:root body :is(.pos-overlay,.customer-picker-panel,.customer-maintenance-panel,.account-collection-panel,.delivery-panel,.hp-pos-panel) :is(button,input,select,textarea):focus-visible {
    outline:3px solid #07868b;outline-offset:3px;
}
:root body .pos-overlay:is(.retail-tender-dark,.receipt-dark,.drawer-dark,.retail-dark) {
    background:linear-gradient(145deg,#142b3d,#10202f);color:#edf6fa;border-color:#3c5b70;border-top-color:#20b8b0;
}
@media(max-width:600px) {
    :root body :is(.pos-overlay,.customer-picker-panel,.customer-maintenance-panel,.account-collection-panel,.delivery-panel,.hp-pos-panel) h2 {padding:12px 14px;margin-bottom:12px;}
    :root body .pos-modal {min-width:0;box-sizing:border-box;}
}
@media print {
    :root body .pos-overlay:not([style*="inset:0"]):not([role="region"]) {box-shadow:none;}
}

/* Shared touch-first messages for every POS workspace and nested dialog. */
[data-pos-feedback-hidden]{display:none!important}
#gz-pos-feedback-dialog{position:fixed;inset:0;margin:auto;width:min(780px,96vw);height:max-content;max-height:96dvh;padding:18px;border:0;background:transparent;color:#152538;overflow:auto;box-sizing:border-box;z-index:2147483647;touch-action:manipulation}
#gz-pos-feedback-dialog::backdrop{background:rgba(8,18,31,.72);backdrop-filter:blur(3px)}
#gz-pos-feedback-dialog .gz-feedback-panel{--message:#a61b24;--light:#fff0f1;--edge:#71121a;background:linear-gradient(145deg,#fff,var(--light));border:2px solid var(--message);border-top:7px solid var(--message);border-radius:20px;padding:clamp(24px,4vw,44px);box-shadow:inset 2px 2px 0 #fff,inset -2px -3px 0 #00000018,0 9px 0 var(--edge),0 25px 65px #0009;text-align:center;cursor:pointer}
#gz-pos-feedback-dialog[data-severity=warning] .gz-feedback-panel{--message:#b17a00;--light:#fff8d8;--edge:#785400}
#gz-pos-feedback-dialog[data-severity=success] .gz-feedback-panel{--message:#14753f;--light:#eaf9ef;--edge:#0c4d28}
#gz-pos-feedback-dialog header{display:flex;justify-content:center;align-items:center;gap:16px;margin-bottom:22px}
#gz-pos-feedback-dialog h2{font-size:clamp(25px,3vw,34px);line-height:1.2;color:var(--message);margin:0;font-weight:800}
#gz-pos-feedback-dialog .gz-feedback-icon{display:grid;place-items:center;flex-shrink:0;width:54px;height:54px;border-radius:50%;background:var(--message);color:white;font-size:34px;font-weight:900;box-shadow:inset 0 2px 2px #ffffff60,0 3px 0 var(--edge)}
#gz-pos-feedback-dialog[data-severity=warning] .gz-feedback-icon{background:#f3cc38;color:#392900}
#gz-pos-feedback-dialog p{font-size:clamp(22px,2.8vw,30px);line-height:1.5;font-weight:600;margin:24px 0 32px;white-space:pre-wrap;overflow-wrap:anywhere;max-height:48dvh;overflow:auto}
#gz-pos-feedback-dialog button{width:100%;min-height:78px;padding:18px 20px;border:2px solid var(--edge);border-top-color:#ffffff90;border-radius:13px;background:linear-gradient(#ffffff30,#00000012),var(--message);color:white;font:800 clamp(21px,2.7vw,28px)/1.25 system-ui,sans-serif;box-shadow:inset 0 2px 0 #ffffff70,0 7px 0 var(--edge),0 10px 15px #0003;cursor:pointer;touch-action:manipulation}
#gz-pos-feedback-dialog[data-severity=warning] button{background:linear-gradient(#ffe47a,#efc331);color:#392900}
#gz-pos-feedback-dialog button:active{transform:translateY(5px);box-shadow:inset 0 2px 0 #ffffff50,0 2px 0 var(--edge)}
#gz-pos-feedback-dialog button:focus-visible{outline:4px solid #1769cf;outline-offset:6px}
@media print{#gz-pos-feedback-dialog{display:none!important}}

/* Shared backoffice form treatment, coordinated with the item-list panels. */
:where(.app-main:not(:has(.pos-screen,.hospitality-workspace,.retail-terminal,.salon-workspace)) form.form):not(:where([role=dialog] form,.pos-overlay form)) {
    box-sizing:border-box;border:1px solid #96aec4;border-radius:10px;
    background:#fff;padding:20px;box-shadow:0 2px 7px #1832490d;
}
:where(.app-main:not(:has(.pos-screen,.hospitality-workspace,.retail-terminal,.salon-workspace)) form.form) :where(fieldset) {
    border:1px solid #a5bbce;border-radius:8px;padding:16px;margin:0 0 18px;background:#fff;
}
:where(.app-main:not(:has(.pos-screen,.hospitality-workspace,.retail-terminal,.salon-workspace)) form.form) :where(legend) {
    padding:4px 10px;border:1px solid #b2c7d8;border-radius:5px;background:#e5eff6;color:#183d57;font-size:.95rem;font-weight:700;
}
:where(.app-main:not(:has(.pos-screen,.hospitality-workspace,.retail-terminal,.salon-workspace)) form.form) :where(h2,h3) {
    color:#183d57;background:#e5eff6;border:1px solid #b2c7d8;border-left:4px solid #176c90;border-radius:5px;padding:10px 12px;font-size:1.05rem;
}
:where(.app-main:not(:has(.pos-screen,.hospitality-workspace,.retail-terminal,.salon-workspace)) form.form) :where(input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select,textarea) {
    box-sizing:border-box;max-width:100%;border:1px solid #91a9bf;border-radius:5px;background:#fff;color:#183249;padding:8px 10px;font:inherit;
}
:where(.app-main form.form) :where(input,select,textarea,button):focus-visible {outline:3px solid #2485ac;outline-offset:2px}
@media(max-width:600px){:where(.app-main form.form):not(:where([role=dialog] form,.pos-overlay form)){padding:14px}}
/* The POS itself renders this shade; messages never depend on native dialog.showModal(). */
.gz-pos-feedback-shade{position:fixed;inset:0;z-index:2147483647;background:rgba(8,18,31,.72);backdrop-filter:blur(3px);display:flex;align-items:center;justify-content:center;isolation:isolate;touch-action:manipulation}
.pos-interaction-surface{height:100%;width:100%}
@media print{.gz-pos-feedback-shade{display:none!important}}
.cloud-workspace{width:100%;max-width:none;min-width:0}.cloud-ribbon{position:sticky;top:0;z-index:20;display:flex;flex-wrap:wrap;align-items:center;gap:10px;background:#e4ecf3;border:1px solid #94adbd;border-radius:8px;padding:12px 16px}.cloud-ribbon>div{margin-right:auto}.cloud-ribbon h1{margin:3px 0}.cloud-ribbon small{font-weight:700;letter-spacing:1px;color:#087680}.cloud-grid{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:18px}.cloud-card{background:white;padding:20px;border:1px solid #9eb4c5;border-radius:9px;margin:18px 0;min-width:0}.cloud-card h2{font-size:20px;margin:0 0 18px;padding-bottom:10px;border-bottom:1px solid #ccdbe4}.cloud-card label{display:flex;flex-direction:column;gap:6px;font-weight:600;margin-bottom:12px}.cloud-card :is(input,select,textarea){font:inherit;min-width:0;max-width:100%;box-sizing:border-box;padding:10px;border:1px solid #91a9bf;border-radius:6px}.cloud-fields{display:flex;gap:14px;flex-wrap:wrap;align-items:end}.cloud-fields label{flex:1 1 190px}.cloud-fields .cloud-check{flex-direction:row;align-items:center}.cloud-workspace fieldset{border:0;padding:0;margin:0;background:transparent;min-width:0}.cloud-notice,.cloud-secret{padding:16px 20px;border:1px solid #adbed0;border-left:5px solid #157e88;background:#f1f7fa;margin:18px 0;border-radius:6px}.cloud-secret{border-color:#b6932f;background:#fff8dc}.cloud-secret input{width:100%;font-family:monospace;font-size:16px}.cloud-table{overflow:auto;width:100%}.cloud-table table{width:100%;border-collapse:collapse}.cloud-table :is(th,td){padding:10px;border-bottom:1px solid #d6e1e9;text-align:left}.cloud-table th{background:#e8f1f6;white-space:nowrap}.cloud-success{color:#125b33;font-weight:600}.cloud-workspace .btn{margin:5px 5px 5px 0}@media(max-width:1000px){.cloud-grid{grid-template-columns:1fr}.cloud-fields label{flex-basis:240px}}
.report-status-kpis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin:20px 0}.report-status-kpis section{position:relative;padding:20px;background:#fff;border:1px solid #c2d3df;border-top:4px solid #087f79;border-radius:10px;box-shadow:0 4px 12px #193e5710}.report-status-kpis .report-icon{position:absolute;right:18px;top:18px;color:#087f79}.report-status-kpis span,.report-status-kpis small{display:block;color:#45617a}.report-status-kpis strong{display:block;font-size:2.2rem;color:#173751;margin:12px 0}.report-status-kpis .attention{border-top-color:#c38a22}.report-status-kpis .attention .report-icon{color:#9f6b0f}.report-launch{display:inline-flex;align-items:center;gap:8px;min-height:45px;border-radius:8px;box-shadow:0 2px 5px #1a385112}@media(max-width:700px){.report-status-kpis{grid-template-columns:1fr}}
/* Print only the employee declaration when its preview is open. */
@media print {
 body:has(#declaration-slip) * { visibility:hidden; }
 body:has(#declaration-slip) #declaration-slip { visibility:visible;position:absolute;top:0;left:0;width:80mm;max-width:none;margin:0;border:0; }
}

/* Shared online request review, used inside POS and back office. */
.customer-request-workspace fieldset{border:0;padding:0;margin:0;min-width:0}
.customer-request-workspace .request-customer-tools{display:flex;flex-wrap:wrap;align-items:center;gap:.75rem;margin:1rem 0}
.customer-request-workspace .request-customer-create{padding:1.25rem;margin:1rem 0;border:1px solid #bacfda;border-radius:12px;background:#f3f8fb;color:#12334b}
.customer-request-workspace .request-customer-confirm{display:flex;align-items:center;gap:.65rem;margin-top:1rem}
.customer-request-workspace .request-customer-confirm input{width:20px;height:20px;flex:0 0 20px}
.customer-request-workspace .btn{min-height:44px}

.customer-request-workspace .request-success{padding:18px;margin:14px 0;background:#e6f5eb;color:#15452b;border:1px solid #7fbd96;border-left:5px solid #27824b;border-radius:10px;overflow-wrap:anywhere}.customer-request-workspace .request-success strong{font-size:1.15rem}.customer-request-workspace .request-error{padding:16px;margin:12px 0;background:#fff0ee;color:#8b201d;border:1px solid #d6a09a;border-left:5px solid #b23830;border-radius:10px}.customer-request-workspace .request-pending{padding:12px;background:#fff5dc;color:#674c12;border-radius:8px}

/* Wholesale desk remains separate from the transaction journal. */
.retail-wholesale{--wholesale-board-width:248px}.retail-wholesale .wholesale-content{position:absolute;left:var(--wholesale-board-width);right:0;top:0;bottom:0;min-width:0}
.retail-wholesale .wholesale-sideboard{position:absolute;inset:0 auto 0 0;width:var(--wholesale-board-width);box-sizing:border-box;padding:14px 12px;background:#edf3f8;color:#17344d;border-right:2px solid #a8c0d0;display:flex;flex-direction:column;gap:8px;overflow-y:auto;z-index:30}
.wholesale-sideboard header{padding:8px 4px 12px;border-bottom:1px solid #becfdb}.wholesale-sideboard header small{display:block;letter-spacing:.12em;color:#087f85;font-weight:700;font-size:11px}.wholesale-sideboard header strong{display:block;font-size:19px;margin-top:6px}.wholesale-sideboard h3{font-size:14px;margin:8px 0 2px}.wholesale-side-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.wholesale-sideboard button{min-width:0;min-height:48px;padding:8px 6px;border:1px solid #a8bfce;border-bottom:3px solid #7d9bad;border-radius:9px;background:linear-gradient(#fff,#dfeaf3);color:#14334a;font-size:13px;font-weight:650;line-height:1.2;white-space:normal;cursor:pointer;box-shadow:0 2px 4px #17344d15}.wholesale-sideboard button:disabled{opacity:.48;cursor:default}.wholesale-sideboard button:focus-visible{outline:3px solid #079b9b;outline-offset:2px}.wholesale-sideboard .pos-grid-navigation:not(:disabled){background:#087f85;color:white;border-color:#05676d}.wholesale-sideboard .wholesale-current-customer{margin:0;font-size:13px;overflow-wrap:anywhere}.wholesale-sideboard .wholesale-hint{font-size:11px;line-height:1.35;color:#664b15}.retail-wholesale[data-theme=dark] .wholesale-sideboard{background:#162534;color:#e7f1f8}.retail-wholesale .retail-header{min-width:0}.retail-wholesale .retail-region-canvas.wholesale-content .retail-journal{padding-bottom:4px}
@media(max-width:1150px){.retail-wholesale{--wholesale-board-width:210px}.wholesale-sideboard button{font-size:12px;min-height:44px}.wholesale-sideboard h3{margin-top:4px}}
/* Compact operational controls preserve space for the selling workspace. */
.pos-check-actionbar.pos-check-actionbar-compact{gap:6px;padding:5px 8px;flex-wrap:nowrap;overflow-x:auto;min-height:44px}
.pos-check-actionbar.pos-check-actionbar-compact button{font-size:13px;min-height:34px;padding:6px 12px;white-space:nowrap}
/* Header content must remain inside its region on the wholesale screen. */
.retail-wholesale .retail-header{overflow-y:auto;align-items:flex-start}
.retail-wholesale .retail-parties{flex-wrap:wrap;gap:4px}
.retail-wholesale .retail-parties button{font-size:12px;padding:3px 8px;min-height:26px}
.pos-overlay.commercial-overlay{background:#f4f8fb;border:1px solid #b3c8d7;border-top:5px solid #087f83;border-radius:14px;box-shadow:0 18px 65px #12283f40;overflow:auto}
.commercial-overlay>.page-head{position:sticky;top:-20px;z-index:4;margin:-20px -20px 18px;padding:14px 20px;background:#17354c;color:white;display:flex;align-items:center;justify-content:space-between;gap:12px}
.commercial-overlay>.page-head h2{margin:0;color:white;font-size:23px}.commercial-overlay>.page-head .btn{font-size:13px;white-space:nowrap}
body:has(.retail-supermarket) .pos-topbar{min-height:52px;padding:4px 10px;gap:8px;flex-wrap:nowrap}
body:has(.retail-supermarket) .pos-topbar button{min-height:32px;font-size:12px;padding:5px 10px}
body:has(.retail-supermarket) .pos-topbar img{max-height:46px;object-fit:contain}
body:has(.retail-supermarket) .pos-topbar select{max-width:100px;font-size:12px}
.retail-supermarket .retail-command-grid{box-sizing:border-box}
.retail-supermarket .retail-function .retail-command{font-size:clamp(11px,1vw,14px)!important;white-space:normal;overflow-wrap:anywhere}
.retail-supermarket .supermarket-department-scroll button{min-height:68px!important}
@media(max-width:1100px){.retail-supermarket .retail-function .retail-command{padding:4px 2px!important}}

body:has(.hospitality-service) .pos-overlay:not(.pos-tender){background:#f4f8fb;color:#17344d;border:1px solid #b7ccd8;border-top:4px solid #0c8c82;border-radius:14px;box-shadow:0 18px 60px #17324840;padding:20px;max-height:90dvh;overflow:auto}
body:has(.hospitality-service) .pos-overlay h2,body:has(.hospitality-service) .pos-overlay h3{color:#173248;margin-top:0}
body:has(.hospitality-service) .pos-topbar{padding:4px 10px;gap:8px;min-height:52px}
body:has(.hospitality-service) .pos-topbar button{font-size:12px;padding:5px 10px;min-height:32px}
/* Shared landscape text keyboard: reason, tab naming, instructions and corrections. */
.pos-overlay:has(.touch-text-keyboard){width:min(1100px,94vw)!important;max-width:94vw!important;max-height:92dvh;overflow:auto}.check-split-dialog{width:min(1400px,96vw)!important;max-width:96vw!important;max-height:94dvh;overflow:auto;padding:16px}.check-split-dialog h3{margin:0 0 8px}.check-split-dialog:has(.touch-text-keyboard) .split-journal-lines{height:120px}.check-split-dialog .touch-text-keyboard{max-width:none;margin-top:12px}.check-split-dialog:has(.touch-text-keyboard) .split-help{display:none}.check-split-dialog:has(.touch-text-keyboard) .split-journal footer{padding:6px 10px;gap:3px}.check-split-dialog .split-journal,.check-split-dialog .split-journal header,.check-split-dialog .split-journal footer{color:#193d50}
@media(max-height:850px){.check-split-dialog:has(.touch-text-keyboard){padding:10px 16px}.check-split-dialog:has(.touch-text-keyboard) .split-journal-lines{height:56px}.check-split-dialog:has(.touch-text-keyboard) .split-journal header{padding:7px 10px}.check-split-dialog:has(.touch-text-keyboard) .split-journal footer{flex-direction:row;justify-content:space-between;gap:8px}.check-split-dialog:has(.touch-text-keyboard) .split-journal footer span,.check-split-dialog:has(.touch-text-keyboard) .split-journal footer strong{gap:6px;font-size:12px}.check-split-dialog .touch-text-keyboard{margin-top:6px}}
.staff-signin:has(.touch-text-keyboard) .signin-card{width:min(100%,1000px);max-width:none}.hospitality-signin:has(.touch-text-keyboard){grid-template-columns:minmax(220px,.6fr) minmax(520px,1.4fr)}@media(max-width:850px){.hospitality-signin:has(.touch-text-keyboard){grid-template-columns:1fr}.hospitality-signin:has(.touch-text-keyboard) .hospitality-welcome{display:none}}
body:has(.hospitality-service) .pos-topbar{min-height:44px;box-sizing:border-box;padding:3px 10px;flex-wrap:nowrap;gap:10px}body:has(.hospitality-service) .pos-topbar .product-default-logo{height:38px;max-height:38px;width:auto}body:has(.hospitality-service) .pos-topbar .product-identity{padding:2px 6px}body:has(.hospitality-service) .pos-topbar .screen-build-label{font-size:10px;max-width:160px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}body:has(.hospitality-service) .pos-check-actionbar-compact{padding:4px 8px;gap:6px}body:has(.hospitality-service) .pos-check-actionbar-compact>button{min-height:36px;font-size:13px;padding:5px 10px}.register-media-status.register-media-status-inline{position:relative;right:auto;bottom:auto;flex:none;margin-left:8px;z-index:45;max-width:240px}.register-media-status.register-media-status-inline[open]{position:fixed;right:12px;bottom:56px;padding:10px;max-width:330px;box-shadow:0 4px 16px #0003}@media(max-width:1100px){body:has(.hospitality-service) .pos-topbar .screen-build-label{display:none}.hospitality-service .pos-footer-tpl{max-width:100px}}
.hospitality-signin-modern .signin-product-brand span{color:#274d60!important}.hospitality-signin-modern .signin-product-brand .signin-security-icon{color:#087f83!important}
.hospitality-signin-modern{font-family:"Segoe UI",Arial,sans-serif}.hospitality-signin-modern .signin-field>span{color:#4a6b7c!important}.hospitality-signin-modern .nk .hk-key{font-family:"Segoe UI",Arial,sans-serif!important;background:linear-gradient(#fff,#dfecf5)!important;color:#173b50!important;border:1px solid #b0c8d7!important;border-bottom:4px solid #819fb0!important;border-radius:10px!important;box-shadow:0 2px 3px #122d4020!important}.hospitality-signin-modern .nk .hk-enter{background:linear-gradient(#149b92,#087e79)!important;color:white!important;border-color:#08746e!important}.hospitality-signin-modern .nk .hk-key:disabled{opacity:.45}.hospitality-service .pos-btn,.hospitality-service .pos-dept,.hospitality-service .service-order-cluster button{font-family:"Segoe UI",Arial,sans-serif}
/* Backoffice density is screen-only. POS layouts and print output do not inherit it. */
.backoffice-density-picker{display:flex;align-items:center;gap:.35rem;font-size:12px;color:inherit;white-space:nowrap}.backoffice-density-picker select{font:inherit;padding:4px 6px;max-width:130px}
@media screen{
 :root:not([data-backoffice-density="comfortable"]) :is(.backoffice-shell,.platform-shell){--nav-w:200px;font-size:14px;line-height:1.35}
 :root:not([data-backoffice-density="comfortable"]) :is(.backoffice-shell,.platform-shell) .app-main{font-size:14px;padding:16px}
 :root:not([data-backoffice-density="comfortable"]) :is(.backoffice-shell,.platform-shell) .app-nav{padding:.5rem 0}
 :root:not([data-backoffice-density="comfortable"]) :is(.backoffice-shell,.platform-shell) .nav-list a{font-size:14px;padding:8px 12px}
 :root:not([data-backoffice-density="comfortable"]) :is(.backoffice-shell,.platform-shell) .app-header{gap:.5rem;padding:.4rem .75rem;flex-wrap:wrap}
 :root:not([data-backoffice-density="comfortable"]) :is(.backoffice-shell,.platform-shell) .app-main h1{font-size:22px;margin-bottom:.7rem}
 :root:not([data-backoffice-density="comfortable"]) :is(.backoffice-shell,.platform-shell) .app-main h2{font-size:18px;margin-top:.8rem;margin-bottom:.6rem}
 :root:not([data-backoffice-density="comfortable"]) :is(.backoffice-shell,.platform-shell) .app-main h3{font-size:16px}
 :root:not([data-backoffice-density="comfortable"]) :is(.backoffice-shell,.platform-shell) .table :is(th,td){font-size:14px;padding:6px 9px;line-height:1.35}
 :root:not([data-backoffice-density="comfortable"]) :is(.backoffice-shell,.platform-shell) :is(.form,.filters) :is(input,select,textarea):not([type="checkbox"]):not([type="radio"]){font-size:14px;padding:6px 8px;min-height:32px}
 :root:not([data-backoffice-density="comfortable"]) :is(.backoffice-shell,.platform-shell) .form-row{margin-bottom:.55rem}
 :root:not([data-backoffice-density="comfortable"]) :is(.backoffice-shell,.platform-shell) :is(.form,.filters,.pager) .btn{font-size:13px;padding:6px 10px;min-height:32px}
 :root:not([data-backoffice-density="comfortable"]) :is(.backoffice-shell,.platform-shell) .card{padding:.85rem;gap:.25rem}
 :root:not([data-backoffice-density="comfortable"]) :is(.backoffice-shell,.platform-shell) .cards{gap:.65rem}
 :root:not([data-backoffice-density="comfortable"]) :is(.backoffice-shell,.platform-shell) .setup-section{padding:.85rem;margin-top:1rem}
 :root:not([data-backoffice-density="comfortable"]) :is(.backoffice-shell,.platform-shell) .gz-command{min-height:52px;gap:4px;padding:5px 8px}
}

/* ADR-082: shared maintenance density tokens; POS touch surfaces are excluded. */
:is(.backoffice-shell,.platform-shell){--maintenance-control-height:32px;--maintenance-font-size:14px;--maintenance-label-size:13px;--maintenance-card-padding:10px 12px;--maintenance-gap:8px 10px;--maintenance-check-size:16px}
:root[data-backoffice-density="comfortable"] :is(.backoffice-shell,.platform-shell){--maintenance-control-height:40px;--maintenance-font-size:16px;--maintenance-label-size:14px;--maintenance-card-padding:14px 16px;--maintenance-gap:12px 14px;--maintenance-check-size:18px}