/* Preview scope; remove uiNext to leave original styles untouched. */
body.uiNext{--ui-line:#dce5ee;--ui-muted:#596d83;background:#f3f6fa;color:var(--text,#23364e)}
body.uiNext>header.uiNext-header{display:flex!important;align-items:center;gap:20px;padding:10px 24px!important;min-height:66px;height:auto;border-bottom:1px solid var(--ui-line);background:var(--surface,#fff);box-shadow:none}
.uiNext-header>strong,.uiNext-header>span,body.uiNext>.notice{display:none!important}
.uiNext-brand{display:flex;align-items:center;gap:10px;flex-shrink:0}.uiNext-brandMark{display:grid;place-items:center;width:38px;height:38px;border-radius:11px;background:var(--accent,#5265d8);color:white;font-size:24px;font-weight:bold}.uiNext-brandText{font-size:20px;font-weight:bold;line-height:1.2}.uiNext-brandText small{display:block;font-weight:normal;font-size:11px;color:var(--ui-muted);margin-top:5px}
body.uiNext #sessionBar{display:flex;align-items:center;gap:12px;margin:0;padding:0!important;border:0;background:transparent;flex:1;justify-content:flex-end;font-size:12px;min-width:0}
body.uiNext #sessionBar[hidden]{display:none!important}.uiNext #sessionName{white-space:nowrap}.uiNext-userMenu{position:relative;font-size:12px}.uiNext-userMenu>summary{cursor:pointer;padding:8px 11px;border:1px solid var(--ui-line);border-radius:8px;white-space:nowrap}.uiNext-userMenu>div{position:absolute;top:100%;left:0;z-index:1400;min-width:235px;padding:12px;display:grid;gap:8px;background:var(--surface,#fff);border:1px solid var(--ui-line);box-shadow:0 12px 35px #20355022;border-radius:10px}.uiNext-userMenu>div>button{width:100%}.uiNext #fileVersion169{font-size:11px;padding:8px;color:var(--ui-muted)}
body.uiNext .theme-control{margin:0!important;gap:0}.uiNext .theme-control>label{display:none}.uiNext .theme-control select{height:34px;min-height:34px;font-size:12px;max-width:115px;border-radius:8px}
body.uiNext .demo38-banner{display:none!important}body.uiNext #restaurantDemoBanner180{margin:0;padding:7px 24px!important;min-height:38px;gap:12px!important;background:#eaf4f1!important;color:#1e6659!important;font-size:12px!important;border-bottom:1px solid #d4e8e0;display:flex;align-items:center}
.uiNext #restaurantDemoBanner180>strong,.uiNext #restaurantDemoBanner180>span:not(.uiNext-demoText):not(.uiNext-demoHint),.uiNext #restaurantDemoBanner180>small{display:none!important}.uiNext #restaurantDemoBanner180>button{padding:3px 9px!important;min-height:25px!important;font-size:11px!important;background:transparent!important;border:1px solid #bad8d0!important;color:#1e6659!important;border-radius:6px!important}.uiNext-demoText{font-weight:bold}.uiNext-demoHint{margin-inline-end:auto;opacity:.85}
body.uiNext #appShell{grid-template-columns:230px minmax(0,1fr)}body.uiNext main{padding:18px 24px!important;min-width:0}.uiNext .workspace-heading{padding:0 0 12px!important;min-height:28px;font-size:12px;margin-bottom:0}.uiNext #appShell>aside{padding-top:16px}.uiNext aside nav .navigation-group>summary{padding:12px 10px}.uiNext .nav-caption{font-size:12px}.uiNext #homeContent{padding:22px!important;border-radius:14px;box-shadow:0 4px 20px #1f365005}.uiNext .home-heading{margin-bottom:20px!important}.uiNext .home-heading h1{font-size:25px!important}.uiNext .home-heading p{font-size:12px}.uiNext .stat-card{border-radius:11px;padding:17px!important;border:1px solid var(--ui-line)}.uiNext .stat-card>strong{font-size:26px!important;font-variant-numeric:tabular-nums;letter-spacing:-.6px}.uiNext .stat-card>small{font-size:12px;color:var(--ui-muted)}.uiNext .stat-card>span{font-size:11px}
body.uiNext #accountsPanel,body.uiNext #financialPanel{padding:22px;border-radius:14px}.uiNext #accountsPanel>h1,.uiNext #financialPanel>h1{font-size:23px;margin:0 0 15px}.uiNext .ledger-toolbar{display:flex;gap:9px;align-items:end;flex-wrap:wrap;padding:12px!important;margin:12px 0;background:#f4f7fb;border-radius:10px}.uiNext .ledger-toolbar label{flex:1;min-width:150px;font-size:12px}.uiNext .ledger-toolbar button{padding:7px 10px;min-height:34px;font-size:12px}.uiNext .ledger-toolbar input,.uiNext .ledger-toolbar select{height:36px;min-height:36px}.uiNext #accountTable{margin-top:10px}.uiNext #accountTable :is(td,th){padding:10px;font-size:13px}.uiNext #accountTable button{min-height:32px;padding:4px 8px}
.uiNext-accountEditor{margin:0 0 10px}.uiNext-accountEditor>summary{display:inline-block;cursor:pointer;background:var(--accent,#5265d8);color:white;border-radius:8px;padding:8px 15px;font-size:13px;font-weight:bold}.uiNext-accountEditor[open]{position:fixed;inset:70px max(20px,calc((100% - 600px)/2)) 24px;z-index:1250;max-width:600px;background:var(--surface,#fff);border:1px solid var(--ui-line);box-shadow:0 0 0 100vmax #12253855,0 20px 60px #12253833;border-radius:14px;padding:18px;overflow:auto}.uiNext-accountEditor[open]>summary{display:none}.uiNext-accountEditorBody{position:relative}.uiNext-editorClose{position:absolute;left:0;top:0;z-index:1;font-size:12px;padding:5px 12px;min-height:30px}.uiNext #accountForm{padding:0!important;border:0!important;background:transparent;box-shadow:none;gap:12px}.uiNext #accountCardTitle{font-size:19px;padding-inline-end:70px;margin-top:0}.uiNext #accountForm label{font-size:12px}.uiNext #accountForm :is(input,select){min-height:36px;height:36px}
.uiNext .uiNext-reportFilters{padding:13px!important;display:flex!important;align-items:end;gap:12px!important;flex-wrap:wrap;border:1px solid var(--ui-line);border-radius:10px;margin:12px 0!important}.uiNext-reportFilters>label{flex:1;min-width:155px;font-size:12px}.uiNext-reportFilters>label>input{min-height:36px!important;height:36px!important}.uiNext-reportFilters>button{height:36px;min-height:36px;margin:0;padding:5px 18px;font-size:13px}.uiNext-reportAdvanced{position:relative;min-width:120px;font-size:12px;align-self:center}.uiNext-reportAdvanced>summary{cursor:pointer;padding:7px 12px;border-radius:8px;background:#edf1f8}.uiNext-reportAdvanced[open]>div{position:absolute;top:100%;left:0;z-index:10;min-width:270px;background:var(--surface,#fff);box-shadow:0 10px 30px #1c334626;border:1px solid var(--ui-line);padding:14px;border-radius:10px;display:grid;gap:12px}.uiNext #financialResult>h2{font-size:18px;margin:18px 0 3px}.uiNext #financialResult>p{font-size:12px;margin:3px 0 10px}.uiNext .financial155-tree :is(td,th){padding:9px 12px!important;font-size:13px}
body.uiNext form.studio170{padding:10px!important;gap:9px!important;border-radius:12px!important;--studio-muted:#536881}body.uiNext :is(#stock41Editor,#documentForm,#voucherForm,#journalForm,#openingForm).studio170 .document126-title{flex-wrap:wrap;align-items:center}.uiNext-docState{font-size:11px;padding:3px 8px;background:#e6f4ef;color:#236d5c;border-radius:5px;white-space:nowrap}.uiNext-navLabel{font-size:11px;color:#5a6f85;white-space:nowrap;margin-inline-end:5px}body.uiNext :is(#stock41Editor,#documentForm,#voucherForm,#journalForm,#openingForm).studio170 .navigator122{flex-wrap:wrap}body.uiNext :is(#stock41Editor,#documentForm,#voucherForm,#journalForm,#openingForm).studio170 .numeric171-value.uiNext-numberPending{font-size:0!important;direction:rtl;justify-content:start}.uiNext-numberPending::after{content:'يُحدد عند الحفظ';font-size:12px;color:#5a6f85;font-weight:normal}body.uiNext :is(#stock41Editor,#documentForm,#voucherForm,#journalForm,#openingForm).studio170 .document126-head>label{font-size:12px}body.uiNext :is(#stock41Editor,#documentForm,#voucherForm,#journalForm,#openingForm).studio170 .studio170-columns{color:#536881;font-size:12px}body.uiNext :is(#stock41Editor,#documentForm,#voucherForm,#journalForm,#openingForm).studio170 .studio170-keys{font-size:11px!important;color:#536881!important}body.uiNext :is(#stock41Editor,#documentForm,#voucherForm,#journalForm,#openingForm).studio170 .document126-title strong{font-size:17px}
/* POS: larger product area, compact totals, no empty fixed-width held-order column. */
body.uiNextPos.cashier-focus116 main{height:calc(100dvh - 104px)!important;padding:8px!important}body.uiNextPos.cashier-focus116 #appShell{display:block!important}body.uiNextPos.cashier-focus116 #posPanel{height:100%!important;padding:0!important}.uiNextPos.cashier-focus116 #posPanel>label{min-height:30px!important;font-size:12px!important;gap:12px}.uiNextPos.cashier-focus116 #posPanel>label .fast139-combo{max-width:350px}
body.uiNextPos .cashier117{grid-template-columns:145px minmax(0,1fr) minmax(280px,.75fr)!important;grid-template-areas:'top top top' 'controls controls controls' 'extra extra extra' 'groups products invoice' 'held held held' 'rail rail rail' 'actions actions actions' 'pay pay pay'!important;grid-template-rows:54px 38px auto minmax(160px,1fr) auto 48px auto auto!important;height:100%!important;padding:8px!important;gap:8px!important;border-radius:11px!important}
.uiNextPos .cashier116-top{border-radius:9px;border-color:var(--ui-line);grid-template-columns:1.35fr 1fr 1fr!important}.uiNextPos .cashier116-top>div{padding:5px 13px!important}.uiNextPos .cashier116-top>div:first-child{grid-column:auto!important}.uiNextPos .cashier116-top strong{font-size:25px!important}.uiNextPos .cashier116-top small{font-size:11px!important}.uiNextPos .cashier116-controls{gap:10px!important}.uiNextPos .cashier116-controls :is(input,select,button){min-height:36px!important;height:36px!important}.uiNextPos .cashier116-controls>label{font-size:12px!important}.uiNextPos .cashier116-extra{padding:4px 10px!important;border-radius:8px}.uiNextPos .cashier116-extra>summary{font-size:12px}
.uiNextPos .cashier116-products,.uiNextPos .cashier116-categories,.uiNextPos .cashier116-invoice{min-height:0!important;max-height:none!important;height:100%;border-radius:10px;border-color:var(--ui-line);overflow:auto!important}.uiNextPos .cashier116-products{padding:12px!important;background:#f7f9fc}.uiNext-posCaption{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:10px}.uiNext-posCaption strong{font-size:15px}.uiNext-posCaption span{font-size:11px;color:#5b7186}.uiNextPos #posCatalog{grid-template-columns:repeat(auto-fill,minmax(125px,1fr))!important;gap:9px!important}.uiNextPos #posCatalog button{min-height:100px!important;display:flex;flex-direction:column;align-items:start;justify-content:center;text-align:right;padding:11px!important;border-radius:10px;background:var(--surface,#fff);box-shadow:0 2px 5px #20355005;border:1px solid var(--ui-line)}.uiNextPos #posCatalog button br{display:none}.uiNext-productName{font-size:14px;line-height:1.5}.uiNext-productUnit{font-size:11px;color:#61768d;font-weight:normal}.uiNext-productPrice{font-size:17px;color:var(--accent,#5265d8);margin-top:7px;direction:ltr}.uiNextPos .cashier116-categories button{font-size:12px!important;min-height:39px!important;padding:7px!important;border-radius:7px}.uiNextPos .cashier116-categories>label{font-size:12px}
.uiNextPos .cashier116-held{grid-area:held!important;min-height:0!important;max-height:170px!important;display:block!important;width:100%!important}.uiNextPos .cashier116-held>summary{font-size:12px!important;padding:5px 10px!important;border:1px solid var(--ui-line);border-radius:7px}.uiNextPos .cashier116-held summary:after{content:none!important}.uiNextPos .cashier117-rail{grid-area:rail;display:flex!important;gap:9px;overflow:visible!important}.uiNextPos .cashier117-rail>button{flex:1;max-width:none!important;min-height:44px!important;height:44px;font-size:14px!important;border-radius:9px;padding:9px!important}.uiNextPos [data-command117=cash]{background:#0d8458!important;color:#fff!important;border-color:#0d8458!important}.uiNextPos [data-command128=cancel]{background:#fff1f2!important;color:#a63248!important;border-color:#eecbd1!important}.uiNextPos .cashier116-invoice #posCart{max-height:none!important;height:100%;font-size:12px}.uiNextPos .cashier116-invoice #posCart table{min-width:560px}.uiNextPos .cashier116-invoice #posCart th{font-size:11px!important}
@media(max-width:700px){
 body.uiNext>header.uiNext-header{padding:9px 13px!important;min-height:60px;gap:8px;flex-wrap:wrap}.uiNext-brandText{font-size:18px}.uiNext-brandText small{display:none}.uiNext-brandMark{width:31px;height:31px;font-size:20px}.uiNext .theme-control{order:2}.uiNext #sessionBar{order:3!important;flex-basis:100%!important;justify-content:space-between;font-size:11px}.uiNext #sessionName{max-width:63%;overflow:hidden;text-overflow:ellipsis}.uiNext-userMenu>summary{padding:5px 8px}.uiNext-header .file-menu{display:none!important}
 body.uiNext #restaurantDemoBanner180{padding:6px 12px!important;gap:6px!important;flex-wrap:wrap;min-height:0}.uiNext #restaurantDemoBanner180>button{font-size:10px!important;padding:3px 6px!important}.uiNext-demoHint{display:none}.uiNext-demoText{flex-basis:100%;font-size:11px}.uiNext #appShell{display:block}.uiNext main{padding:10px!important}.uiNext #homeContent{padding:15px!important}.uiNext .home-heading h1{font-size:21px!important}.uiNext .home-heading{gap:10px}.uiNext .stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px}.uiNext .stat-card{padding:12px!important}.uiNext .stat-card>strong{font-size:21px!important}.uiNext .ledger-toolbar{gap:7px}.uiNext .ledger-toolbar label{flex-basis:100%;min-width:0}.uiNext #accountsPanel{padding:12px}.uiNext-accountEditor[open]{inset:12px;max-width:none}.uiNext .uiNext-reportFilters{gap:9px!important}.uiNext-reportFilters>label{min-width:0;flex:1 1 42%}.uiNext-reportFilters>button{flex:1}.uiNext-reportAdvanced{flex:1}.uiNext #financialPanel{padding:12px}
 body.uiNext form.studio170{inset:4px!important;width:calc(100% - 8px)!important;height:calc(100dvh - 8px)!important;max-height:none!important;padding:9px!important;grid-template-rows:auto minmax(100px,1fr) auto!important;gap:7px!important}body.uiNext :is(#stock41Editor,#documentForm,#voucherForm,#journalForm,#openingForm).studio170 .document126-head{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important;padding:8px!important;max-height:46dvh!important;overflow:auto!important}body.uiNext :is(#stock41Editor,#documentForm,#voucherForm,#journalForm,#openingForm).studio170 .document126-title{display:grid!important;grid-template-columns:1fr auto!important;gap:7px!important;padding-bottom:6px!important}body.uiNext :is(#stock41Editor,#documentForm,#voucherForm,#journalForm,#openingForm).studio170 .document126-title>strong{grid-column:1!important;grid-row:1;font-size:14px!important;min-width:0}body.uiNext :is(#stock41Editor,#documentForm,#voucherForm,#journalForm,#openingForm).studio170 .document-close135{grid-column:2;grid-row:1}body.uiNext :is(#stock41Editor,#documentForm,#voucherForm,#journalForm,#openingForm).studio170 .uiNext-docState{grid-row:2;grid-column:1}body.uiNext :is(#stock41Editor,#documentForm,#voucherForm,#journalForm,#openingForm).studio170 .document126-title>.navigator122{grid-column:1/-1!important;grid-row:3;flex-basis:auto!important;display:flex!important;flex-wrap:wrap!important;gap:4px!important;width:100%;margin:0!important}body.uiNext :is(#stock41Editor,#documentForm,#voucherForm,#journalForm,#openingForm).studio170 .navigator122>.uiNext-navLabel{flex-basis:100%;margin:0;font-size:10px}body.uiNext :is(#stock41Editor,#documentForm,#voucherForm,#journalForm,#openingForm).studio170 .navigator122 [data-new124]{font-size:10px}body.uiNext :is(#stock41Editor,#documentForm,#voucherForm,#journalForm,#openingForm).studio170 .document126-head :is(input,select){font-size:12px!important;min-height:31px!important;height:31px!important}body.uiNext :is(#stock41Editor,#documentForm,#voucherForm,#journalForm,#openingForm).studio170 .document126-head>label{font-size:11px!important;grid-column:auto!important;min-width:0}body.uiNext :is(#stock41Editor,#documentForm,#voucherForm,#journalForm,#openingForm).studio170 .document126-head>label:has(.numeric171-value){grid-column:1/-1!important}body.uiNext :is(#stock41Editor,#documentForm,#voucherForm,#journalForm,#openingForm).studio170 .document126-head .studio170-posting{grid-column:1/-1!important}body.uiNext :is(#stock41Editor,#documentForm,#voucherForm,#journalForm,#openingForm).studio170 .studio170-advanced{padding-top:4px!important}
 body.uiNext :is(#stock41Editor,#documentForm,#voucherForm,#journalForm,#openingForm).studio170[data-studio-kind170=invoice] .studio170-columns{display:none!important}body.uiNext :is(#stock41Editor,#documentForm,#voucherForm,#journalForm,#openingForm).studio170[data-studio-kind170=invoice] .document126-lines{padding:7px!important;overflow:auto!important}body.uiNext :is(#stock41Editor,#documentForm,#voucherForm,#journalForm,#openingForm).studio170[data-studio-kind170=invoice] .document126-lines>div{min-width:0!important;width:100%!important}body.uiNext :is(#stock41Editor,#documentForm,#voucherForm,#journalForm,#openingForm).studio170 :is(.stock41-line,.invoice-item){grid-template-columns:repeat(3,minmax(0,1fr))!important;min-width:0!important;padding:10px!important;border:1px solid var(--ui-line)!important;border-radius:10px!important;margin-bottom:8px!important;gap:8px!important}body.uiNext :is(#stock41Editor,#documentForm,#voucherForm,#journalForm,#openingForm).studio170 :is(.stock41-line,.invoice-item)::before{grid-row:1;grid-column:1;text-align:right;content:'صنف ' counter(studio170-row);font-size:10px}body.uiNext :is(#stock41Editor,#documentForm,#voucherForm,#journalForm,#openingForm).studio170 :is(.stock41-line,.invoice-item)>.studio170-delete{grid-row:1!important;grid-column:3!important;justify-self:end;width:28px}body.uiNext :is(#stock41Editor,#documentForm,#voucherForm,#journalForm,#openingForm).studio170 :is(.stock41-line,.invoice-item)>.studio170-item{grid-row:2!important;grid-column:1/-1!important;padding-inline-end:25px!important}body.uiNext :is(#stock41Editor,#documentForm,#voucherForm,#journalForm,#openingForm).studio170 :is(.stock41-line,.invoice-item)>.studio170-unit{grid-row:3!important;grid-column:1!important}body.uiNext :is(#stock41Editor,#documentForm,#voucherForm,#journalForm,#openingForm).studio170 :is(.stock41-line,.invoice-item)>.studio170-quantity{grid-row:3!important;grid-column:2!important}body.uiNext :is(#stock41Editor,#documentForm,#voucherForm,#journalForm,#openingForm).studio170 :is(.stock41-line,.invoice-item)>.studio170-price{grid-row:3!important;grid-column:3!important}body.uiNext :is(#stock41Editor,#documentForm,#voucherForm,#journalForm,#openingForm).studio170 [data-ui-label]::before{content:attr(data-ui-label);display:block;font-size:10px!important;line-height:1.4;color:#586b80;margin:0 0 3px}body.uiNext :is(#stock41Editor,#documentForm,#voucherForm,#journalForm,#openingForm).studio170 :is(.stock41-line,.invoice-item) :is(input,select){background:#fff!important;border:1px solid #d3dde7!important;border-radius:6px!important;height:33px!important;font-size:12px!important}body.uiNext :is(#stock41Editor,#documentForm,#voucherForm,#journalForm,#openingForm).studio170 .studio170-row-totals>span:first-child{grid-row:4!important;grid-column:1!important;font-size:10px!important}body.uiNext :is(#stock41Editor,#documentForm,#voucherForm,#journalForm,#openingForm).studio170 .studio170-row-totals>label{grid-row:4!important;grid-column:2!important;font-size:10px!important}body.uiNext :is(#stock41Editor,#documentForm,#voucherForm,#journalForm,#openingForm).studio170 .studio170-row-totals>span:last-child{grid-row:4!important;grid-column:3!important;font-size:10px!important}body.uiNext :is(#stock41Editor,#documentForm,#voucherForm,#journalForm,#openingForm).studio170 .studio170-row-totals output{display:block;font-size:13px!important;font-weight:bold}body.uiNext :is(#stock41Editor,#documentForm,#voucherForm,#journalForm,#openingForm).studio170 .document126-foot{padding:7px!important;gap:7px!important;max-height:29dvh!important;overflow:auto}body.uiNext :is(#stock41Editor,#documentForm,#voucherForm,#journalForm,#openingForm).studio170 .invoice-summary167{gap:6px!important}body.uiNext :is(#stock41Editor,#documentForm,#voucherForm,#journalForm,#openingForm).studio170 .invoice-summary167>strong{font-size:11px!important;line-height:1.6}body.uiNext :is(#stock41Editor,#documentForm,#voucherForm,#journalForm,#openingForm).studio170 .document126-foot>button:not([type=button]){min-height:38px!important}body.uiNext :is(#stock41Editor,#documentForm,#voucherForm,#journalForm,#openingForm).studio170 .studio170-keys{display:none!important}
 body.uiNextPos.cashier-focus116 main{height:auto!important;overflow:visible!important;padding:7px!important}.uiNextPos.cashier-focus116 #posPanel{height:auto!important;min-height:calc(100dvh - 145px);padding-bottom:74px!important}.uiNextPos.cashier-focus116 #posPanel>label{font-size:11px!important;gap:7px}.uiNextPos.cashier-focus116 #posPanel>label .fast139-combo{max-width:none;flex:1}.uiNextPos .cashier117{display:grid!important;height:auto!important;grid-template-columns:minmax(0,1fr)!important;grid-template-areas:'controls' 'groups' 'products' 'invoice' 'extra' 'top' 'held' 'pay' 'actions' 'rail'!important;grid-template-rows:auto!important;padding:8px!important;gap:8px!important}.uiNextPos .cashier116-top{grid-template-columns:1.4fr 1fr 1fr!important}.uiNextPos .cashier116-top>div{padding:6px!important}.uiNextPos .cashier116-top strong{font-size:18px!important}.uiNextPos .cashier116-top small{font-size:10px!important}.uiNextPos .cashier116-controls{display:flex;flex-wrap:wrap}.uiNextPos .cashier116-controls>label{flex-basis:100%!important;flex-direction:column!important;gap:4px!important}.uiNextPos .cashier116-controls>[data-focus116]{position:static!important;font-size:11px}.uiNextPos .cashier116-controls .cashier117-service{min-height:32px;flex:1}.uiNextPos .cashier116-categories{padding:4px!important;height:auto!important;max-height:58px!important;overflow:auto!important;border:0;background:transparent}.uiNextPos .cashier116-categories h3,.uiNextPos .cashier116-categories>label{display:none!important}.uiNextPos .cashier116-categories [data-groups116]{display:flex!important;flex-wrap:nowrap!important;gap:5px}.uiNextPos .cashier116-categories button{flex:0 0 auto!important;min-width:0!important;font-size:11px!important;min-height:32px!important;white-space:nowrap;margin:0;padding:5px 10px!important}.uiNextPos .cashier116-products{height:auto!important;max-height:none!important;padding:8px!important}.uiNext-posCaption span{display:none}.uiNext-posCaption{margin-bottom:7px}.uiNextPos #posCatalog{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important}.uiNextPos #posCatalog button{min-height:94px!important;padding:10px!important}.uiNext-productName{font-size:13px}.uiNext-productPrice{font-size:16px}.uiNext-productUnit{font-size:10px}.uiNextPos .cashier116-invoice{height:auto!important;min-height:100px!important;max-height:250px!important}.uiNextPos .cashier116-invoice #posCart{height:auto!important;max-height:240px!important}.uiNextPos .cashier117-rail{position:fixed;bottom:0;left:0;right:0;z-index:1100;display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;background:var(--surface,#fff);padding:8px!important;border-top:1px solid #d2dfeb;box-shadow:0 -5px 20px #17344b12;gap:5px;min-height:64px}.uiNextPos .cashier117-rail>button{font-size:11px!important;min-height:44px!important;padding:5px!important}.uiNextPos .cashier116-held{max-height:150px!important}
}
body.uiNext .uiNext-userMenu{padding:0!important;border:0!important;margin:0!important;background:transparent!important;min-height:0!important;box-shadow:none!important;flex:0 0 auto}
body.uiNext .uiNext-accountEditor:not([open]){padding:0!important;border:0!important;margin:0 0 10px!important;background:transparent!important;box-shadow:none!important;min-height:0!important}
@media(max-width:700px){body.uiNext #sessionBar{display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;justify-content:space-between!important;align-items:center!important;width:100%!important;min-height:28px!important;margin:0!important;padding:0!important}body.uiNext #sessionName{margin:0!important;flex:0 1 auto!important;font-size:11px!important;white-space:nowrap}body.uiNext .uiNext-userMenu>summary{font-size:10px;padding:5px 7px!important}}
.uiNext .uiNext-toggleNav{display:none!important}
.uiNext .uiNext-reportAdvanced,.uiNext .uiNext-accountOptions{padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;min-height:0!important;margin:0!important}
.uiNext-accountOptions{display:inline-block;float:left;font-size:12px}.uiNext-accountOptions>summary{padding:8px 12px;cursor:pointer;border:1px solid var(--ui-line);border-radius:8px}.uiNext-accountOptions[open]>button{position:absolute;z-index:15;background:var(--surface,#fff);box-shadow:0 5px 20px #12253822;padding:12px;left:20px}
body.uiNextPos .uiNext-keypad{grid-area:pay!important;padding:0!important;border:0!important;margin:0!important;background:transparent;min-height:0!important;max-height:190px;overflow:auto;font-size:12px}
body.uiNextPos .uiNext-keypad>summary{padding:7px 10px;cursor:pointer;border:1px solid var(--ui-line);border-radius:7px}.uiNextPos .uiNext-keypad:is(details):not([open])>.cashier116-pay{display:none!important}.uiNextPos .uiNext-keypad[open]>.cashier116-pay{height:auto!important;max-height:150px!important;overflow:auto;display:flex;align-items:start;gap:12px}
@media(max-width:700px){
 body.uiNext :is(#stock41Editor,#documentForm,#voucherForm,#journalForm,#openingForm).studio170 .document126-head{grid-template-rows:none!important;grid-auto-rows:max-content!important}
 body.uiNext :is(#stock41Editor,#documentForm,#voucherForm,#journalForm,#openingForm).studio170 .document126-title{grid-template-rows:max-content max-content!important;min-height:0!important;height:auto!important;grid-auto-rows:max-content!important}
 body.uiNext :is(#stock41Editor,#documentForm,#voucherForm,#journalForm,#openingForm).studio170 .document126-title>.navigator122{grid-row:2!important;grid-column:2!important;min-width:0;justify-content:flex-end}
 body.uiNext :is(#stock41Editor,#documentForm,#voucherForm,#journalForm,#openingForm).studio170 .document126-title .uiNext-docState{grid-row:2!important;grid-column:1!important;justify-self:start}
 body.uiNext :is(#stock41Editor,#documentForm,#voucherForm,#journalForm,#openingForm).studio170 .navigator122:not(.uiNext-navExpanded)>:not(.uiNext-toggleNav){display:none!important}
 body.uiNext :is(#stock41Editor,#documentForm,#voucherForm,#journalForm,#openingForm).studio170 .navigator122>.uiNext-toggleNav{display:inline-block!important;font-size:10px!important;padding:3px 7px!important;min-height:25px!important;white-space:nowrap}
 body.uiNext :is(#stock41Editor,#documentForm,#voucherForm,#journalForm,#openingForm).studio170 .document126-title>.navigator122.uiNext-navExpanded{grid-row:3!important;grid-column:1/-1!important}
 body.uiNextPos #posSaleForm.cashier117{grid-template-columns:minmax(0,1fr)!important;grid-template-areas:'controls' 'groups' 'products' 'invoice' 'extra' 'top' 'held' 'pay' 'actions' 'rail'!important;grid-template-rows:none!important;grid-auto-rows:max-content!important;min-width:0!important;width:100%!important;max-width:100%!important}
 body.uiNextPos #posSaleForm>*{min-width:0!important;max-width:100%!important}
 body.uiNextPos #posSaleForm>.cashier117-rail{position:fixed!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;width:100%!important;left:0!important;right:0!important;bottom:0!important;height:auto!important}
 body.uiNextPos #posPanel,body.uiNextPos #posBody{min-width:0!important;max-width:100%!important;width:100%!important}
}
@media(max-width:700px){
 body.uiNextPos #posSaleForm>.cashier117-rail{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;grid-template-rows:44px!important;grid-auto-flow:row!important;align-content:stretch!important;flex-direction:row!important;flex-wrap:nowrap!important;top:auto!important;height:64px!important;min-height:64px!important;max-height:64px!important;overflow:hidden!important}
 body.uiNextPos #posSaleForm>.cashier117-rail>button:not([hidden]){grid-column:auto!important;grid-row:auto!important;width:100%!important;min-width:0!important;height:44px!important;max-height:44px!important;min-height:44px!important;font-size:11px!important}
 body.uiNext :is(#stock41Editor,#documentForm,#voucherForm,#journalForm,#openingForm).studio170 .document126-head>label:has(.numeric171-value){grid-column:auto!important}
}
body.uiNext #accountsPanel{position:relative}.uiNext .uiNext-accountOptions{position:absolute;left:22px;top:84px;float:none}.uiNext .ledger-toolbar #accountPage60{max-width:235px;font-size:11px;line-height:1.5}.uiNext .ledger-toolbar>label:nth-child(2){max-width:190px;min-width:125px}.uiNext .ledger-toolbar>button{font-size:11px}
@media(max-width:700px){.uiNext .uiNext-accountOptions{position:static;float:left}.uiNext .ledger-toolbar>label:nth-child(2){max-width:none}.uiNext #accountsPanel .ledger-toolbar{clear:both}body.uiNext :is(#stock41Editor,#documentForm).studio170 .studio170-extra{grid-template-columns:repeat(2,minmax(0,1fr))!important}body.uiNext :is(#stock41Editor,#documentForm).studio170 .studio170-extra>label{font-size:11px!important}}
@media print{body.uiNext{background:white}.uiNext .uiNext-docState,.uiNext .uiNext-navLabel,.uiNext .uiNext-userMenu,.uiNext-brand{display:none!important}}


/* Revised POS: right sidebar for categories and large numeric keys. */
body.uiNextPos #posSaleForm.cashier117{grid-template-columns:260px minmax(260px,1fr) minmax(380px,1.05fr)!important;grid-template-areas:'controls controls controls' 'groups products invoice' 'pay products invoice' 'extra extra extra' 'held held held' 'rail rail rail' 'actions actions actions' 'top top top'!important;grid-template-rows:38px minmax(90px,.55fr) minmax(280px,1fr) auto auto 44px auto 50px!important}
body.uiNextPos .cashier116-categories>label{display:none!important}
body.uiNextPos .uiNext-keypad{max-height:none!important;overflow:visible!important}
body.uiNextPos .uiNext-keypad>.cashier116-pay{display:block!important;height:100%!important;max-height:none!important;padding:8px!important}
body.uiNextPos .cashier116-keypad>div{gap:7px!important;grid-template-columns:repeat(4,minmax(0,1fr))!important}
body.uiNextPos [data-key117]{min-height:51px!important;font-size:21px!important;border-radius:9px!important;padding:8px!important}
body.uiNextPos .cashier117-entry input{height:52px!important;min-height:52px!important;font-size:26px!important;text-align:center}
body.uiNextPos #posCatalog{grid-template-columns:repeat(auto-fill,minmax(108px,1fr))!important;gap:7px!important}
body.uiNextPos #posCatalog button{min-height:72px!important;padding:7px!important;border-radius:8px!important}
body.uiNextPos .uiNext-productPrice{font-size:15px;margin-top:3px}
body.uiNextPos .uiNext-productName{font-size:13px;line-height:1.35}
body.uiNextPos .cashier117-rail{justify-content:flex-end!important}
body.uiNextPos .cashier117-rail>button:not([hidden]){flex:0 1 145px!important;min-height:40px!important;height:40px!important;font-size:13px!important}
@media(max-width:1000px) and (min-width:701px){body.uiNextPos #posSaleForm.cashier117{grid-template-columns:225px minmax(180px,1fr) minmax(290px,1fr)!important}}
@media(max-width:700px){body.uiNextPos #posSaleForm.cashier117{grid-template-columns:minmax(0,1fr)!important;grid-template-areas:'controls' 'groups' 'products' 'invoice' 'pay' 'extra' 'top' 'held' 'rail' 'actions'!important;grid-template-rows:none!important;grid-auto-rows:max-content!important}body.uiNextPos #posSaleForm>.cashier117-rail>button:not([hidden]){height:44px!important;min-height:44px!important}body.uiNextPos .cashier116-pay{max-height:none!important}body.uiNextPos .uiNext-keypad{max-height:none!important}body.uiNextPos #posCatalog button{min-height:72px!important}}

body.uiNextPos #posSaleForm .cashier116-keypad button{height:51px!important;min-height:51px!important;font-size:21px!important}body.uiNextPos #posSaleForm .cashier116-keypad [data-key117=Enter]{height:auto!important}body.uiNextPos #posSaleForm .cashier117-entry input{height:52px!important;min-height:52px!important;font-size:26px!important}

body.uiNextPos.cashier-focus116>header,body.uiNextPos.cashier-focus116>#restaurantDemoBanner180{display:none!important}body.uiNextPos.cashier-focus116 main{height:100dvh!important}body.uiNextPos.cashier-focus116 #posSaleForm{height:calc(100% - 48px)!important}


body.uiNextPos #posSaleForm .cashier116-keypad button{height:46px!important;min-height:46px!important}body.uiNextPos #posSaleForm .cashier116-keypad [data-key117=Enter]{height:auto!important}body.uiNextPos .uiNext-keypad>.cashier116-pay{padding:2px!important}body.uiNextPos #posSaleForm .cashier117-entry input{height:46px!important;min-height:46px!important}body.uiNextPos.cashier-focus116 #sessionBar{display:none!important}body.uiNextPos #posSaleForm .cashier116-top strong{font-size:20px!important}body.uiNextPos #posSaleForm .cashier116-top>div{padding:2px 10px!important}

/* Ten visible category slots; auxiliary details share one compact toolbar row. */
@media(min-width:701px){
 body.uiNextPos #posSaleForm.cashier117{grid-template-areas:'controls controls controls' 'groups products invoice' 'pay products invoice' 'extra held held' 'rail rail rail' 'top top top'!important;grid-template-rows:36px 202px minmax(270px,1fr) 28px 42px 46px!important;gap:6px!important}
 body.uiNextPos #posSaleForm .cashier116-categories{padding:6px!important;overflow:auto!important}
 body.uiNextPos #posSaleForm .cashier116-categories h3{margin:0 0 5px!important;font-size:12px}
 body.uiNextPos #posSaleForm [data-groups116]{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:5px!important}
 body.uiNextPos #posSaleForm [data-groups116]>button{margin:0!important;min-width:0!important;min-height:30px!important;height:30px!important;padding:3px 5px!important;font-size:11px!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 body.uiNextPos #posSaleForm :is(.cashier116-extra,.cashier116-held){position:relative!important;inset:auto!important;align-self:start!important;width:auto!important;min-height:0!important;height:28px!important;max-height:none!important;overflow:visible!important;padding:0!important;margin:0!important;border:0!important;background:transparent!important;box-shadow:none!important}
 body.uiNextPos #posSaleForm .cashier116-held{justify-self:start!important}
 body.uiNextPos #posSaleForm :is(.cashier116-extra,.cashier116-held)>summary{display:inline-block!important;pointer-events:auto!important;cursor:pointer!important;padding:4px 10px!important;height:28px!important;min-height:0!important;border:1px solid var(--ui-line)!important;border-radius:7px!important;font-size:11px!important;background:var(--surface,#fff)!important}
 body.uiNextPos #posSaleForm :is(.cashier116-extra,.cashier116-held)[open]{height:auto!important;z-index:1200!important;background:var(--surface,#fff)!important;border:1px solid var(--ui-line)!important;border-radius:8px!important;padding:8px!important;max-height:300px!important;overflow:auto!important;box-shadow:0 6px 24px #17344b22!important;min-width:240px!important}
}
/* Open orders below the invoice on the left: three visible rows. */
@media(min-width:701px){
 body.uiNextPos #posSaleForm.cashier117{grid-template-areas:'controls controls controls' 'groups products invoice' 'pay products invoice' 'extra extra extra' 'rail rail rail' 'top top top'!important}
 body.uiNextPos #posSaleForm .cashier116-invoice{display:flex!important;flex-direction:column!important;overflow:hidden!important}
 body.uiNextPos #posSaleForm .cashier116-invoice #posCart{flex:1 1 0!important;height:auto!important;min-height:0!important;overflow:auto!important}
 body.uiNextPos #posSaleForm .cashier116-invoice .cashier116-held{flex:0 0 auto!important;align-self:stretch!important;width:100%!important;min-width:0!important;max-height:174px!important;height:auto!important;padding:4px!important;box-shadow:none!important;border:1px solid var(--ui-line)!important;overflow:hidden!important;z-index:auto!important;margin-top:5px!important}
 body.uiNextPos #posSaleForm .cashier116-invoice .cashier116-held>summary{display:block!important;height:25px!important;padding:3px 8px!important;border:0!important}
 body.uiNextPos #posSaleForm #posHeld{display:grid!important;grid-auto-rows:44px!important;gap:3px!important;max-height:138px!important;overflow:auto!important}
 body.uiNextPos #posSaleForm #posHeld>h3{display:none!important}
 body.uiNextPos #posSaleForm #posHeld>button{width:100%!important;min-height:44px!important;height:44px!important;margin:0!important;padding:3px 8px!important;font-size:11px!important;text-align:right!important}
}
/* Preferred horizontal catalogue: invoice above products, open orders left. */
@media(min-width:701px){
 body.uiNextPos #posSaleForm.cashier117{grid-template-columns:260px minmax(0,1fr) 180px!important;grid-template-areas:'top top top' 'controls controls controls' 'extra extra extra' 'groups invoice held' 'pay products held' 'rail rail held'!important;grid-template-rows:46px 36px 28px 202px minmax(270px,1fr) 42px!important;gap:6px!important}
 body.uiNextPos #posSaleForm .cashier116-invoice{display:block!important}
 body.uiNextPos #posSaleForm .cashier116-invoice #posCart{height:100%!important;overflow:auto!important}
 body.uiNextPos #posSaleForm>.cashier116-held,body.uiNextPos #posSaleForm>.cashier116-held[open]{grid-area:held!important;align-self:start!important;justify-self:stretch!important;width:100%!important;min-width:0!important;max-height:174px!important;height:auto!important;padding:4px!important;box-shadow:none!important;border:1px solid var(--ui-line)!important;overflow:hidden!important;z-index:auto!important;margin:0!important;background:var(--surface,#fff)!important}
 body.uiNextPos #posSaleForm>.cashier116-held>summary{display:block!important;pointer-events:auto!important;height:25px!important;padding:3px 5px!important;border:0!important;font-size:12px!important}
 body.uiNextPos #posSaleForm #posCatalog{grid-template-columns:repeat(auto-fill,minmax(108px,1fr))!important;align-content:start!important}
 body.uiNextPos #posSaleForm .cashier116-products{padding:8px!important}
}
@media(min-width:701px) and (max-width:1100px){body.uiNextPos #posSaleForm.cashier117{grid-template-columns:225px minmax(0,1fr) 145px!important}}
@media(min-width:701px){body.uiNextPos #posSaleForm .cashier116-top>div{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:8px!important;min-height:0!important;padding:4px 10px!important}body.uiNextPos #posSaleForm .cashier116-top :is(small,strong){margin:0!important;line-height:1.2!important}body.uiNextPos #posSaleForm .cashier116-top strong{font-size:20px!important}}
/* Keep totals on one centered line rather than wrapping below the fixed row. */
@media(min-width:701px){
 body.uiNextPos #posSaleForm .cashier116-top>div{flex-wrap:nowrap!important;align-items:center!important;min-width:0!important;height:100%!important;box-sizing:border-box!important;overflow:hidden!important}
 body.uiNextPos #posSaleForm .cashier116-top small{flex:0 1 auto!important;min-width:0!important;white-space:nowrap!important;font-size:11px!important}
 body.uiNextPos #posSaleForm .cashier116-top strong{flex:0 0 auto!important;white-space:nowrap!important;line-height:1.3!important;font-size:22px!important}
 body.uiNextPos #posSaleForm .cashier116-top span{flex:0 0 auto!important;font-size:12px!important;line-height:1.3!important}
}
/* Runtime stock alerts must not create implicit grid rows or move checkout. */
@media(min-width:701px){
 body.uiNextPos #posSaleForm{position:relative!important;min-height:0!important;min-width:0!important}
 body.uiNextPos #posSaleForm>[data-stock-warning160]{position:absolute!important;bottom:52px!important;right:275px!important;left:195px!important;z-index:30!important;margin:0!important;padding:5px 10px!important;font-size:11px!important;pointer-events:none!important;max-height:50px!important;overflow:auto!important}
 body.uiNextPos #posSaleForm.cashier117{grid-template-rows:46px 36px 28px minmax(100px,202px) minmax(0,1fr) 42px!important}
 body.uiNextPos #posSaleForm>.cashier117-rail{position:fixed!important;bottom:10px!important;left:200px!important;right:280px!important;top:auto!important;width:auto!important;height:44px!important;min-height:44px!important;max-height:44px!important;z-index:1000!important;background:var(--surface,#fff)!important;border-radius:8px!important;align-items:center!important;overflow:visible!important}
 body.uiNextPos #posSaleForm .uiNext-keypad{min-height:0!important;overflow:auto!important}
}
@media(min-width:701px) and (max-width:1100px){body.uiNextPos #posSaleForm>.cashier117-rail{left:165px!important;right:245px!important}}

@media(min-width:701px){body.uiNextPos #posSaleForm.cashier117{grid-template-rows:46px 36px 28px minmax(300px,2fr) minmax(70px,.6fr) 42px!important}body.uiNextPos #posSaleForm #posCatalog button{min-height:50px!important;padding:3px!important;font-size:11px!important}body.uiNextPos #posSaleForm #posCart td{padding:2px 4px!important}body.uiNextPos #posSaleForm #posCart .pos-note253{height:22px!important;padding:2px!important}}














/* Document entry 274: compact visible header; no changes to posting values. */
body :is(form.document126,form.studio170-secondary) button{border:1px solid #111!important}
body :is(#stock41Editor,#documentForm,#voucherForm,#journalForm,#openingForm).studio170 .document126-head{display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:4px 8px!important;padding:6px 8px!important;max-height:40dvh;overflow:auto}
body :is(#stock41Editor,#documentForm,#voucherForm,#journalForm,#openingForm).studio170 .document126-head>label{margin:0!important;gap:2px!important;min-width:0}
body form.studio170 .document126-head>.document126-title{grid-column:1/-1!important;margin:0!important;padding:2px!important}
body form.studio170 .document126-head>label:has([name=description]){grid-column:span 2!important}
body form.studio170 :is(.document126-help,.studio170-posting,[data-posting158],.fast139-session){display:none!important}
body form.studio170 .document126-advanced:has([data-trace70-editor][hidden]){display:none!important}
body form.studio170 .document126-head>.document126-advanced{grid-column:1/-1}
body form.studio170 [data-unit-choice274]{width:100%;min-width:0}
@media(max-width:900px){body :is(#stock41Editor,#documentForm,#voucherForm,#journalForm,#openingForm).studio170 .document126-head{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
@media(max-width:550px){body :is(#stock41Editor,#documentForm,#voucherForm,#journalForm,#openingForm).studio170 .document126-head{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
/* Header refinement: compact choices, tinted surface, automatic invoice posting. */
body #stock41Editor.studio170>.document126-head{display:flex!important;flex-wrap:wrap;align-items:flex-start;background:#e7edf9!important;border:1px solid #b5c4e1!important}
body #stock41Editor.studio170>.document126-head>.document126-title,body #stock41Editor.studio170>.document126-head>.wide:not(label):not([data-payment158]){flex:0 0 100%;box-sizing:border-box}
body #stock41Editor.studio170>.document126-head>label,body #stock41Editor.studio170>.document126-head>[data-payment158]>label{flex:1 1 155px;max-width:100%;box-sizing:border-box}
body #stock41Editor.studio170>.document126-head>label:has([name=reference],.numeric171-value){flex:0 0 78px}
body #stock41Editor.studio170 .document126-head .numeric171-value{display:block;width:max-content;min-width:4ch;max-width:100%;white-space:nowrap;font-variant-numeric:tabular-nums}
body #stock41Editor.studio170>.document126-head>label:has([name=currency]),body #stock41Editor.studio170>.document126-head>[data-payment158]>label:has([name=payment158]){flex:0 0 90px}
body #stock41Editor.studio170>.document126-head>label:has([name=description]){flex:2 1 250px}
body #stock41Editor.studio170>.document126-head>label:has([name=exchangeRate]){flex:0 1 195px}
body #stock41Editor.studio170:has([name=kind] option[value=Sale]:checked,[name=kind] option[value=Purchase]:checked) label#stock42Post:has([name=postAccounting]:checked){display:none!important}
body #stock41Editor.studio170>.document126-head :is(input:not([type=checkbox]),select,output.numeric171-value){background-color:#fff!important}

/* Shared invoice header: sales, purchases, returns, editing and quotes/orders. */
/* Header refinement: compact choices, tinted surface, automatic invoice posting. */
body :is(#stock41Editor.studio170,#documentForm.studio170,#returnDocumentForm,form.studio170-secondary)>:is(.document126-head,.invoice-head274){display:flex!important;flex-wrap:wrap;align-items:flex-start;background:#e7edf9!important;border:1px solid #b5c4e1!important}
body :is(#stock41Editor.studio170,#documentForm.studio170,#returnDocumentForm,form.studio170-secondary)>:is(.document126-head,.invoice-head274)>.document126-title,body :is(#stock41Editor.studio170,#documentForm.studio170,#returnDocumentForm,form.studio170-secondary)>:is(.document126-head,.invoice-head274)>.wide:not(label):not([data-payment158]){flex:0 0 100%;box-sizing:border-box}
body :is(#stock41Editor.studio170,#documentForm.studio170,#returnDocumentForm,form.studio170-secondary)>:is(.document126-head,.invoice-head274)>label,body :is(#stock41Editor.studio170,#documentForm.studio170,#returnDocumentForm,form.studio170-secondary)>:is(.document126-head,.invoice-head274)>[data-payment158]>label{flex:1 1 155px;max-width:100%;box-sizing:border-box}
body :is(#stock41Editor.studio170,#documentForm.studio170,#returnDocumentForm,form.studio170-secondary)>:is(.document126-head,.invoice-head274)>label:has([name=reference],.numeric171-value){flex:0 0 78px}
body :is(#stock41Editor.studio170,#documentForm.studio170,#returnDocumentForm,form.studio170-secondary) :is(.document126-head,.invoice-head274) .numeric171-value{display:block;width:max-content;min-width:4ch;max-width:100%;white-space:nowrap;font-variant-numeric:tabular-nums}
body :is(#stock41Editor.studio170,#documentForm.studio170,#returnDocumentForm,form.studio170-secondary)>:is(.document126-head,.invoice-head274)>label:has([name=currency]),body :is(#stock41Editor.studio170,#documentForm.studio170,#returnDocumentForm,form.studio170-secondary)>:is(.document126-head,.invoice-head274)>[data-payment158]>label:has([name=payment158]){flex:0 0 90px}
body :is(#stock41Editor.studio170,#documentForm.studio170,#returnDocumentForm,form.studio170-secondary)>:is(.document126-head,.invoice-head274)>label:has([name=description]){flex:2 1 250px}
body :is(#stock41Editor.studio170,#documentForm.studio170,#returnDocumentForm,form.studio170-secondary)>:is(.document126-head,.invoice-head274)>label:has([name=exchangeRate]){flex:0 1 195px}
body :is(#stock41Editor.studio170,#documentForm.studio170,#returnDocumentForm,form.studio170-secondary):has([name=kind] option[value=Sale]:checked,[name=kind] option[value=Purchase]:checked) label#stock42Post:has([name=postAccounting]:checked){display:none!important}
body :is(#stock41Editor.studio170,#documentForm.studio170,#returnDocumentForm,form.studio170-secondary)>:is(.document126-head,.invoice-head274) :is(input:not([type=checkbox]),select,output.numeric171-value){background-color:#fff!important}

/* Material card: group first; compact fields; optional unit details. */
body dialog.item-card274{width:min(1100px,96vw)!important;max-width:96vw!important;padding:16px!important}
body dialog.item-card274 #inventory40Editor{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px 12px!important;padding:12px!important}
body dialog.item-card274 #inventory40Editor>label{margin:0!important;gap:3px!important;font-size:13px}
body dialog.item-card274 #inventory40Editor :is(input:not([type=checkbox]),select){min-height:32px!important;height:34px!important;padding:4px 8px!important}
body dialog.item-card274 textarea{min-height:44px!important;height:44px!important}
body dialog.item-card274 .wide{grid-column:1/-1}
body dialog.item-card274 button,body dialog.item-card274 summary{border:1px solid #111;border-radius:7px;padding:6px 10px;cursor:pointer}
body dialog.item-card274 .item-card274-options{background:#e7edf9}
@media(max-width:650px){body dialog.item-card274 #inventory40Editor{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:420px){body dialog.item-card274 #inventory40Editor{grid-template-columns:1fr!important}}

/* Material card compact, directly visible unit controls. */
body dialog.item-card274{padding:10px!important}
body dialog.item-card274 h2{margin:4px 0 8px!important;font-size:19px!important}
body dialog.item-card274 #inventory40Editor{gap:5px 10px!important;padding:8px!important}
body dialog.item-card274 #inventory40Editor>label{font-size:12px!important;gap:2px!important}
body dialog.item-card274 #inventory40Editor :is(input:not([type=checkbox]),select){height:29px!important;min-height:29px!important;padding:3px 7px!important}
body dialog.item-card274 #inventory40Editor .fast139-combo{min-height:29px!important}
body dialog.item-card274 textarea{height:32px!important;min-height:32px!important}
body dialog.item-card274 .item-card274-options{display:grid;grid-template-columns:auto minmax(120px,1fr) auto;gap:6px 10px;align-items:end;background:transparent!important;padding:0!important}
body dialog.item-card274 #inventory40Units{grid-column:1/-1}
body dialog.item-card274 #inventory40Units:empty{display:none}
body dialog.item-card274 .item-card274-options label{grid-column:auto!important;margin:0!important;font-size:12px!important}
body dialog.item-card274 .inventory40-unit-line{display:grid;grid-template-columns:1fr 1fr 1fr 1fr auto;gap:6px;padding:5px 0}
body dialog.item-card274 button{padding:5px 9px!important;min-height:29px!important}
@media(max-width:650px){body dialog.item-card274 .item-card274-options{grid-template-columns:1fr}body dialog.item-card274 .inventory40-unit-line{grid-template-columns:1fr 1fr}}

/* Controls274: visible editable surfaces across forms, including compact document rows. */
@media screen {
html body :is(#voucherForm,#journalForm,#openingForm,#stock41Editor,#documentForm,form,dialog,main) :is(input,select,textarea):not([type=hidden]):not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not([type=button]):not([type=submit]):not([type=reset]):not([hidden]):not([readonly]):not(:disabled){
 background:#fff!important;color:#172b4d!important;border:1px solid #627b9e!important;border-radius:4px!important;box-sizing:border-box;
}
html body :is(#voucherForm,#journalForm,#openingForm,#stock41Editor,#documentForm,form,dialog,main) :is(input,select,textarea):not([hidden])::placeholder{color:#586980!important;opacity:1}
html body :is(#voucherForm,#journalForm,#openingForm,#stock41Editor,#documentForm,form,dialog,main) :is(input,select,textarea):is([readonly],:disabled):not([hidden]){background:#e9eef5!important;color:#40516a!important;border-color:#8b99ad!important}
html body :is(#voucherForm,#journalForm,#openingForm,#stock41Editor,#documentForm,form,dialog,main) :is(input,select,textarea,button):focus-visible{outline:2px solid #1266db!important;outline-offset:1px!important}
html body :is(button,input[type=button],input[type=submit],input[type=reset]):not([hidden]){border:1px solid #334155!important;box-shadow:0 1px 2px #172b4d26;}
html body :is(button,input[type=button],input[type=submit],input[type=reset]):disabled{opacity:.65;cursor:not-allowed}

}

