/* Full-screen fast-entry workspace for supplier invoices. */
.purchase-bill-dialog{width:100vw;max-width:none;height:100vh;max-height:none;margin:0;padding:0;border:0;border-radius:0;overflow:hidden;background:var(--bg,#f7f5fc);color:var(--ink,#251b43)}
.purchase-bill-dialog>h2{position:sticky;top:0;z-index:4;margin:0;padding:22px 84px 20px 250px;background:var(--surface,#fff);border-bottom:1px solid var(--line,#e8e3f3);font-size:24px;line-height:1.2}
.purchase-bill-back{position:absolute;top:16px;left:28px;z-index:6;min-height:42px;margin:0!important;padding:9px 14px!important;white-space:nowrap}
.purchase-bill-close{position:absolute;top:16px;right:28px;z-index:6;min-width:42px;width:42px;height:42px;min-height:42px;padding:0;border-radius:10px;font-size:28px;line-height:1;background:var(--purple,#673de6);color:#fff;border-color:var(--purple,#673de6)}
.purchase-bill-editor{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));grid-template-areas:"intro intro intro intro intro intro intro intro intro intro intro intro" "supplier supplier supplier supplier supplier supplier supplier supplier create create create create" "balance balance balance balance balance balance balance balance po po po po" "number number number reference reference reference date date due due vat vat" "notes notes notes notes notes notes notes notes notes notes notes notes" "lines lines lines lines lines lines lines lines lines lines lines lines" "add add add help help help help help totals totals totals totals" "actions actions actions actions actions actions actions actions actions actions actions actions";align-items:start;gap:14px 16px;height:calc(100vh - 72px);overflow-y:auto;padding:24px 36px 32px;background:var(--bg,#f7f5fc)}
.purchase-bill-editor>.purchase-bill-intro{grid-area:intro;margin:0;padding:12px 14px;background:var(--surface-soft,#f0eaff);border-radius:10px;font-size:13px;line-height:1.45}
.purchase-bill-editor>.purchase-bill-supplier{grid-area:supplier}.purchase-bill-editor>.purchase-bill-create-vendor{grid-area:create;width:100%!important;min-height:44px;margin:0!important;align-self:end}.purchase-bill-editor>.trading-balance{grid-area:balance;margin:0!important;min-height:70px;align-self:stretch;display:flex;flex-wrap:wrap;align-content:center;gap:8px 10px;padding:10px 13px!important;background:var(--surface-soft,#f0eaff);border:1px solid var(--line,#e8e3f3);border-radius:10px}.purchase-bill-editor>.purchase-bill-po{grid-area:po}
.purchase-bill-editor>.purchase-bill-number{grid-area:number}.purchase-bill-editor>.purchase-bill-reference{grid-area:reference}.purchase-bill-editor>.purchase-bill-date{grid-area:date}.purchase-bill-editor>.purchase-bill-due{grid-area:due}.purchase-bill-editor>.purchase-bill-vat-date{grid-area:vat}.purchase-bill-editor>.purchase-bill-notes{grid-area:notes}.purchase-bill-editor>.purchase-bill-notes textarea{min-height:54px;resize:vertical}
.purchase-bill-lines{grid-area:lines;display:grid;gap:8px;padding:14px;border:1px solid var(--line,#e8e3f3);border-radius:14px;background:var(--surface,#fff)}
.purchase-bill-line{display:grid;grid-template-columns:minmax(250px,2.2fr) minmax(135px,1fr) minmax(76px,.45fr) minmax(100px,.58fr) minmax(76px,.43fr) minmax(70px,.4fr) minmax(145px,.8fr) auto;gap:8px;align-items:end;padding:10px;border:1px solid var(--line,#e8e3f3);border-radius:10px;background:var(--surface-soft,#faf9fd)}
.purchase-bill-line label{margin:0;min-width:0}.purchase-bill-line label>span{font-size:11px;font-weight:700;color:var(--muted,#706785)}.purchase-bill-line :is(input,select){min-height:40px;padding:8px 10px}.purchase-bill-line .product-search{min-height:33px;font-size:12px}.purchase-bill-line .purchase-line-remove{min-height:40px;padding:8px 12px;white-space:nowrap}
.purchase-bill-add-line{grid-area:add;min-height:42px;align-self:stretch}.purchase-bill-help{grid-area:help;margin:0;font-size:12px;line-height:1.45}.purchase-bill-totals{grid-area:totals;justify-self:stretch;align-self:stretch;width:100%;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.purchase-bill-totals>div{display:grid;gap:3px;padding:10px 13px;background:var(--surface,#fff);border:1px solid var(--line,#e8e3f3);border-radius:10px}.purchase-bill-totals small{font-size:11px;color:var(--muted,#706785)}.purchase-bill-totals strong{font-size:17px;font-variant-numeric:tabular-nums}.purchase-bill-totals .purchase-bill-grand-total{background:var(--purple,#673de6);border-color:var(--purple,#673de6);color:#fff}.purchase-bill-totals .purchase-bill-grand-total small{color:#fff}
.purchase-bill-editor>.form-actions{grid-area:actions;position:static;z-index:auto;margin:6px 0 0;padding:16px 0 0;background:transparent;border-top:1px solid var(--line,#e8e3f3);box-shadow:none;justify-content:flex-end}
html[data-theme="dark"] .purchase-bill-dialog,html[data-theme="dark"] .purchase-bill-editor{background:#1e172c;color:#f4efff}html[data-theme="dark"] .purchase-bill-dialog>h2,html[data-theme="dark"] .purchase-bill-editor>.form-actions{background:#20172f;color:#f4efff;border-color:#49385f}html[data-theme="dark"] .purchase-bill-line,html[data-theme="dark"] .purchase-bill-lines{background:#291f3b;border-color:#49385f}html[data-theme="dark"] .purchase-bill-line{background:#241b35}html[data-theme="dark"] .purchase-bill-editor :is(input,select,textarea){background:#160f20!important;color:#f4efff!important;border-color:#57426f!important}html[data-theme="dark"] .purchase-bill-editor .muted,html[data-theme="dark"] .purchase-bill-line label>span,html[data-theme="dark"] .purchase-bill-totals small{color:#cabee1!important}html[data-theme="dark"] .purchase-bill-totals>div{background:#302149;border-color:#57426f}html[data-theme="dark"] .purchase-bill-editor>.trading-balance,html[data-theme="dark"] .purchase-bill-editor>.purchase-bill-intro{background:#302149;border-color:#57426f}
@media(max-width:1120px){.purchase-bill-editor{grid-template-columns:repeat(6,minmax(0,1fr));grid-template-areas:"intro intro intro intro intro intro" "supplier supplier supplier supplier create create" "balance balance balance balance po po" "number number reference reference date date" "due due vat vat vat vat" "notes notes notes notes notes notes" "lines lines lines lines lines lines" "add add help help totals totals" "actions actions actions actions actions actions";padding:20px 24px 28px}.purchase-bill-line{grid-template-columns:minmax(220px,2fr) minmax(130px,1fr) repeat(4,minmax(72px,.55fr));}.purchase-bill-line .purchase-line-category{grid-column:span 2}.purchase-bill-editor>.form-actions{margin:6px 0 0;padding:16px 0 0}}
@media(max-width:720px){.purchase-bill-dialog>h2{padding:68px 64px 18px 20px;font-size:21px}.purchase-bill-back{top:11px;left:14px}.purchase-bill-close{top:11px;right:14px}.purchase-bill-editor{display:flex;flex-direction:column;align-items:stretch;height:calc(100vh - 112px);padding:16px;gap:12px}.purchase-bill-editor>label,.purchase-bill-editor>.purchase-bill-create-vendor,.purchase-bill-editor>.trading-balance,.purchase-bill-editor>.purchase-bill-intro,.purchase-bill-lines,.purchase-bill-add-line,.purchase-bill-help,.purchase-bill-totals{width:100%}.purchase-bill-line{grid-template-columns:repeat(2,minmax(0,1fr))}.purchase-bill-line .purchase-line-product{grid-column:1/-1}.purchase-bill-line .purchase-line-unit{grid-column:span 2}.purchase-bill-line .purchase-line-category{grid-column:span 2}.purchase-bill-line .purchase-line-remove{grid-column:1/-1}.purchase-bill-add-line{min-height:44px}.purchase-bill-totals{grid-template-columns:1fr}.purchase-bill-editor>.form-actions{margin:4px 0 0;padding:12px 0}.purchase-bill-editor>.form-actions button{flex:1}}
