.master-screen,.settings-screen{height:100%;min-height:0;display:flex;flex-direction:column;gap:7px;font-size:12px}.master-toolbar{display:flex;flex-wrap:wrap;gap:5px}.master-toolbar button,.master-footer button,.settings-tabs button{padding:7px 10px;font-size:11px;white-space:nowrap}.master-search{display:flex;gap:10px;align-items:end}.master-search label{display:flex;align-items:center;gap:6px;margin:0}.master-search label:first-child{flex:1}.master-search input{width:100%;min-width:80px}.master-search select{max-width:180px}.master-screen input,.master-screen select,.master-form input,.master-form select,.settings-screen input,.settings-screen select{font-size:12px;padding:6px 8px;min-height:30px}.master-screen>.ledger-table{flex:1;min-height:100px;overflow:auto}.master-screen .ledger-table td,.master-screen .ledger-table th{padding:7px 8px;white-space:nowrap}.master-screen .ledger-table input,.master-screen .ledger-table select{min-width:90px;max-width:210px}.master-footer{display:flex;gap:8px;align-items:center;font-size:11px}.master-footer span:first-child{margin-right:auto}.master-help{font-size:11px;line-height:1.45;margin:3px 0 6px;color:#63786e}.master-dialog{max-width:min(1050px,94vw);width:900px;max-height:90vh;padding:16px}.master-dialog h2{font-size:18px;margin:0 0 10px}.master-form{display:flex;flex-direction:column;gap:7px}.master-form label,.settings-card label,.settings-access label{display:flex;flex-direction:column;gap:3px;margin:0;font-size:12px}.master-product-columns{display:grid;grid-template-columns:1fr 1fr;gap:12px;overflow:auto}.master-product-columns fieldset{display:flex;flex-direction:column;gap:6px;border:1px solid #d7e3dc;border-radius:5px;min-width:0;padding:12px}.master-product-columns legend{font-size:12px;font-weight:600}.master-flags{background:#f3f7f4;padding:8px;display:flex;flex-direction:column;gap:6px}.master-form label.master-check{display:flex;flex-direction:row;align-items:center;gap:8px}.master-check input[type=checkbox]{width:15px;min-height:15px;height:15px;margin:0}.master-vat{display:flex;gap:12px;align-items:center;background:#f3f7f4;padding:6px}.master-vat input[type=number]{width:80px}.master-two{display:grid;grid-template-columns:1fr 1fr;gap:8px}.master-account-form{max-width:580px;margin:auto}.master-account-form small{font-size:10px;color:#63786e;margin-top:-4px}.master-form .dialog-actions{position:sticky;bottom:-16px;background:white;padding:10px 0 0;border-top:1px solid #d7e3dc;z-index:2}.master-dialog .ledger-table{max-height:55vh;overflow:auto}.settings-tabs{display:flex;flex-wrap:wrap;gap:3px;flex-shrink:0;border-bottom:1px solid #d7e3dc;padding-bottom:5px}.settings-tabs [aria-selected=true]{background:var(--zen-accent,#13795b);color:white}.settings-content{min-height:0;flex:1;overflow:auto;display:grid;grid-template-columns:1fr 1fr;gap:8px;align-content:start}.settings-card{padding:12px;display:flex;flex-direction:column;gap:8px;min-width:0}.settings-card h2{font-size:13px;margin:0}.settings-card p{font-size:11px;line-height:1.5;margin:3px 0}.settings-card-wide{grid-column:1/-1}.settings-card form{display:flex;flex-direction:column;gap:8px}.settings-card button{padding:7px 10px;font-size:11px}.settings-swatches{display:flex;gap:4px}.settings-swatches span{width:35px;height:20px;border-radius:3px}.settings-power{display:grid;grid-template-columns:1fr auto;gap:7px;font-size:11px}.settings-style{display:flex;gap:12px;align-items:end}.settings-style label{flex:1}.settings-style input{width:100%;max-width:150px}.settings-threshold,.settings-footer{display:flex;align-items:end;gap:10px}.settings-threshold label{max-width:200px}.settings-footer span{font-size:10px;color:#63786e}.settings-warning-form>.ledger-table{height:clamp(160px,34vh,400px);overflow:auto}.settings-negative{height:clamp(150px,30vh,350px);overflow:auto;margin:0;line-height:1.8}.settings-maintenance{display:flex;flex-direction:column;gap:7px}.settings-access{padding:20px;max-width:550px}.settings-access button{width:fit-content}.settings-card pre{white-space:pre-wrap;font-size:11px}#owner-password-field[hidden]{display:none}.master-screen button:disabled,.settings-screen button:disabled{cursor:not-allowed;opacity:.55}
.workspace{background:var(--zen-bg,#f4f7f6);color:var(--zen-title,#19352d)}.topbar{background:var(--zen-top,#122d25)}.sidebar{background:var(--zen-sidebar,#122d25)}.sidebar nav button.active,.primary{background:var(--zen-accent,#13795b)}.sidebar nav button.active:hover,.primary:hover{background:var(--zen-accent-dark,#0d5943)}
@media(max-width:900px){.master-product-columns,.settings-content{grid-template-columns:1fr}.master-search{flex-wrap:wrap}.settings-card-wide{grid-column:auto}.settings-power{grid-template-columns:1fr}.settings-threshold{flex-wrap:wrap}.master-dialog{width:90vw}.settings-style{flex-wrap:wrap}}
.pos-stock-warnings{padding:5px 10px;flex-shrink:0;max-height:180px;overflow:auto;background:#fff4dc;border:1px solid #efdba8;border-radius:6px;margin-bottom:6px}.pos-stock-warnings:empty{display:none}.pos-stock-warnings>div{display:flex;align-items:baseline;flex-wrap:wrap;gap:3px 7px;font-size:12px;line-height:1.4;padding:2px 0}.pos-stock-warnings strong{white-space:nowrap;animation:zen-warning-blink 650ms steps(2,start) infinite}.pos-stock-warnings span{white-space:normal;overflow-wrap:anywhere}@keyframes zen-warning-blink{to{opacity:.3}}@media(prefers-reduced-motion:reduce){.pos-stock-warnings strong{animation:none}}
@media(min-width:1000px){.workspace:is([data-screen=products],[data-screen=customers],[data-screen=employees],[data-screen=settings]) main{display:flex;flex-direction:column;overflow:hidden;padding:10px 14px}.workspace:is([data-screen=products],[data-screen=customers],[data-screen=employees],[data-screen=settings]) #screen{flex:1;display:flex;flex-direction:column;min-height:0;margin:0}.master-screen,.settings-screen{flex:1}}
.master-history-summary{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;background:#f3f7f4;padding:10px}.master-history-summary>div{display:flex;flex-direction:column;gap:4px}.master-history-summary small{font-size:10px}.master-history-summary strong{font-size:18px}#master-stock-detail{white-space:pre-wrap;font-size:11px;max-height:90px;overflow:auto}
/* Employee editor: retain every field but group them to fit the desktop. */
.master-dialog:has(.employee-form){max-width:860px;padding:15px 18px}
.master-form.employee-form{max-width:none;width:100%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 12px}
.employee-form>label:first-child,.employee-form>.master-two,.employee-form>.employee-financial,.employee-form>#owner-password-field,.employee-form>.error,.employee-form>.dialog-actions{grid-column:1/-1}
.employee-form .employee-financial{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.employee-form label{margin:0;font-size:11px}
.employee-form input,.employee-form select{min-height:28px;height:28px;padding:4px 7px;margin-top:3px;font-size:12px}
.employee-form input[type=checkbox]{width:14px;height:14px;min-height:14px;margin:0}
.employee-form small,.employee-form .master-help{font-size:10px;line-height:1.3;margin-top:3px}
.employee-form .master-two{gap:6px 12px}
.employee-form .dialog-actions{margin-top:5px;padding-top:7px}
.employee-form .dialog-actions button{min-height:30px;padding:5px 9px}
@media(max-width:640px){.employee-form .employee-financial{grid-template-columns:1fr}.master-form.employee-form{grid-template-columns:1fr}}
