:root {
  color-scheme: light;
  --ink: #252b30;
  --muted: #59636e;
  --line: #d3d7db;
  --ground: #efefef;
  --paper: #fff;
  --green: #08634f;
  --green-hover: #074e40;
  --pale: #e8f3ee;
  --amber: #80500c;
  --amber-pale: #fff4dc;
  --danger: #a42b32;
  --rail-width: 200px;
  font: 14px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--ground); }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
button, input, select, textarea { min-height: 44px; border: 1px solid var(--line); border-radius: 5px; background: var(--paper); color: var(--ink); padding: 9px 12px; }
textarea { width: 100%; resize: vertical; }
.commercial-document-note { white-space: pre-wrap; overflow-wrap: anywhere; }
.commercial-customer-identity, .ci-draft-customer-details { overflow-wrap: anywhere; }
#employee-register p, #employee-register th, #employee-register td, #employee-register dd, #employee-register button { overflow-wrap: anywhere; }
#employee-register table { min-width: 900px; table-layout: fixed; }
#employee-compose fieldset { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; min-width: 0; }
#employee-compose fieldset > .footnote, #employee-compose fieldset > .editor-actions { grid-column: 1 / -1; }
@media (max-width: 680px) {
  #employee-compose fieldset { grid-template-columns: minmax(0, 1fr); }
}
#employee-compose fieldset { min-width: 0; padding: 16px; margin: 16px 0 0; border: 1px solid var(--line); }
.employee-revision { padding-block: 18px; border-bottom: 1px solid var(--line); }
.employee-revision dl { margin-block: 8px 20px; }
#merchandise-returns p, #merchandise-returns td, #merchandise-returns button { overflow-wrap: anywhere; }
#merchandise-returns small { display: block; }
#merchandise-returns .journal-fields > div:first-child { max-width: none; }
#refund-records p, #refund-records td, #refund-records button { overflow-wrap: anywhere; }
#refund-records .journal-fields > div:first-child { max-width: none; }
#refund-records .tag, #merchandise-returns .tag { max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
#credit-sales p, #credit-sales code, #credit-sales button { overflow-wrap: anywhere; }
#credit-sales .journal-fields > div:first-child { max-width: none; }
#credit-repayments td, #credit-repayments .tag { overflow-wrap: anywhere; white-space: normal; }
#credit-repayments .tag { max-width: 100%; }
#purchase-orders p, #purchase-orders code, #purchase-orders button { overflow-wrap: anywhere; }
#purchase-orders .tag { max-width: 100%; white-space: normal; }
#purchase-orders fieldset { border: 1px solid var(--line); margin: 18px 0; padding: 16px; min-width: 0; }
#purchase-orders .journal-fields > div:first-child { max-width: none; }
#purchase-invoices p, #purchase-invoices code, #purchase-invoices button { overflow-wrap: anywhere; }
#purchase-invoices .tag { max-width: 100%; white-space: normal; }
#purchase-invoices fieldset { border: 1px solid var(--line); margin: 18px 0; padding: 16px; min-width: 0; }
#purchase-invoices .journal-fields > div:first-child { max-width: none; }
#purchase-intake p, #purchase-intake code, #purchase-intake button { overflow-wrap: anywhere; }
#purchase-intake .tag { max-width: 100%; white-space: normal; }
#purchase-intake fieldset { border: 1px solid var(--line); margin: 18px 0; padding: 16px; min-width: 0; }
#purchase-intake .journal-fields > div:first-child { max-width: none; }
#purchase-intake-correction p, #purchase-intake-correction code { overflow-wrap: anywhere; }
#purchase-intake-correction .tag { max-width: 100%; white-space: normal; }
#supplier-bank-records p, #supplier-bank-records code, #supplier-bank-records button, #supplier-bank-records dd { overflow-wrap: anywhere; }
#supplier-bank-records fieldset { border: 1px solid var(--line); margin: 18px 0; padding: 16px; min-width: 0; width: 100%; }
#supplier-bank-records input[type="checkbox"] { width: auto; vertical-align: middle; }
#supplier-bank-correction p, #supplier-bank-correction code, #supplier-bank-correction dd { overflow-wrap: anywhere; }
#supplier-balances p, #supplier-balances code, #supplier-balances dd, #supplier-balances th { overflow-wrap: anywhere; }
#production-recipes p, #production-recipes code, #production-recipes th { overflow-wrap: anywhere; }
#production-recipes fieldset { border: 1px solid var(--line); margin: 18px 0; padding: 16px; min-width: 0; }
#production-recipes .journal-fields > div:first-child { max-width: none; }
#production-recipes .tag { max-width: 100%; white-space: normal; }
#production-posting p, #production-posting code, #production-posting th { overflow-wrap: anywhere; }
#fiscal-credentials p, #fiscal-credentials code, #fiscal-credentials dd { overflow-wrap: anywhere; }
#fiscal-credentials fieldset { min-width: 0; border: 1px solid var(--line); margin-top: 20px; padding: 16px; }
.fiscal-evidence dd, .fiscal-evidence a, .fiscal-evidence p, #fiscal-cash-declaration p { overflow-wrap: anywhere; }
.fiscal-verification { margin-block: 16px; padding: 12px; border: 1px solid var(--line); }
#financial-registers fieldset { min-width: 0; border: 1px solid var(--line); padding: 16px; }
#financial-registers dd, #financial-registers code, #financial-registers summary { overflow-wrap: anywhere; }
#treasury-entries fieldset { min-width: 0; border: 1px solid var(--line); padding: 16px; }
#treasury-entries code, #treasury-entries dd, #treasury-entries p { overflow-wrap: anywhere; }
#chart fieldset { min-width: 0; border: 1px solid var(--line); padding: 16px; }
#chart code, #chart dd, #chart summary { overflow-wrap: anywhere; }
.journal-document code, .journal-document dd, .journal-document p,
.journal-document small, .journal-draft-document small { overflow-wrap: anywhere; }
@media screen { #production-posting table { min-width: 650px; } }
@media screen {
  .production-correction-document table { min-width: 900px; }
  .production-correction-document th:nth-child(3) { min-width: 90px; }
  .production-correction-document th:nth-child(4) { min-width: 55px; }
  .production-correction-document td:nth-child(3) { white-space: nowrap; }
}
@media screen {
  #supplier-balances table { min-width: 1080px; }
  #supplier-balances th:first-child { min-width: 180px; }
}
.document-meta { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px 16px; margin: 18px 0; }
.document-meta dd { margin: 0; font-variant-numeric: tabular-nums; }
#fixed-assets p, #fixed-assets dd, #fixed-assets summary { overflow-wrap: anywhere; }
.table-wrap.register-table.asset-register-table table { min-width: 1000px; }
#asset-compose fieldset { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; min-width: 0; }
#asset-compose fieldset > .checkbox-label, #asset-compose fieldset > p, #asset-compose fieldset > .editor-actions { grid-column: 1 / -1; }
@media (max-width: 680px) { #asset-compose fieldset { grid-template-columns: minmax(0, 1fr); } }
#asset-projection-form { margin: 16px 0 24px; }
#asset-opening-form fieldset { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; min-width: 0; }
#asset-document-form fieldset, #asset-document-add fieldset, #asset-document-search fieldset { min-width: 0; }
#asset-document-form .document-header { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 20px; margin-bottom: 16px; }
#asset-document-form .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (max-width: 680px) { #asset-document-form .document-header { grid-template-columns: minmax(0, 1fr); } }
#party-directory p, #party-directory th, #party-directory td { overflow-wrap: anywhere; }
#party-directory small { display: block; font-weight: 400; }
#supplier-maturities p, #supplier-maturities th, #supplier-maturities td { overflow-wrap: anywhere; }
#supplier-maturities small { display: block; font-weight: 400; }
#supplier-maturities table { min-width: 1180px; }
#credit-maturities p, #credit-maturities th, #credit-maturities td { overflow-wrap: anywhere; }
#credit-maturities small { display: block; font-weight: 400; }
#credit-maturities table { min-width: 1400px; }
#manual-trial-balance p, #manual-trial-balance th, #manual-trial-balance td { overflow-wrap: anywhere; }
#manual-trial-balance small { display: block; font-weight: 400; }
#manual-trial-balance table { min-width: 760px; }
#manual-account-ledger p, #manual-account-ledger th, #manual-account-ledger td { overflow-wrap: anywhere; }
#manual-account-ledger small { display: block; font-weight: 400; }
#manual-account-ledger table { min-width: 1100px; }
#ledger-filter { flex-wrap: wrap; }
#ledger-filter > div:first-child { max-width: none; flex: 2; min-width: 180px; }
#manual-journal-register p, #manual-journal-register th, #manual-journal-register td { overflow-wrap: anywhere; }
#manual-journal-register small { display: block; font-weight: 400; }
#manual-journal-register table { min-width: 1000px; }
.journal-register-pager { flex-wrap: wrap; }
@media screen {
  #manual-journal-register .journal-other-page { display: none; }
}
#journal-register-filter { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); align-items: start; }
#journal-register-filter > div:first-child { max-width: none; }
#journal-register-filter .editor-actions { grid-column: 1 / -1; }
#cost-center-movements p, #cost-center-movements th, #cost-center-movements td { overflow-wrap: anywhere; }
#cost-center-movements small { display: block; font-weight: 400; }
#cost-center-movements .cost-group-table { min-width: 700px; }
#cost-center-movements .cost-source-table { min-width: 1150px; }
#cost-center-movements .cost-source-table th:first-child { min-width: 100px; }
#cost-movement-filter { flex-wrap: wrap; }
#supplier-account-ledger p, #supplier-account-ledger th, #supplier-account-ledger td { overflow-wrap: anywhere; }
#supplier-account-ledger small { display: block; font-weight: 400; }
#supplier-account-ledger table { min-width: 1200px; }
#supplier-ledger-filter { flex-wrap: wrap; }
#supplier-ledger-filter > div:first-child { max-width: none; min-width: 180px; flex: 2; }
#cost-center-register p, #cost-center-register th, #cost-center-register td, #cost-center-register dd { overflow-wrap: anywhere; }
#center-compose fieldset { border: 0; padding: 0; margin: 0; }
.center-revision + .center-revision { border-top: 1px solid var(--line); margin-top: 20px; padding-top: 20px; }
#center-compose fieldset { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; min-width: 0; }
#center-compose fieldset > .checkbox-label, #center-compose fieldset > .editor-actions { grid-column: 1 / -1; }
#chart-compose fieldset { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; min-width: 0; }
#chart-compose fieldset > p, #chart-compose fieldset > .editor-actions { grid-column: 1 / -1; }
#chart-compose select { width: 100%; }
@media (max-width: 680px) { #chart-compose fieldset { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 680px) { #center-compose fieldset { grid-template-columns: minmax(0, 1fr); } }
button:hover { background: var(--ground); border-color: #9babaf; }
button:disabled { cursor: not-allowed; opacity: .58; }
input { width: 100%; }
input::placeholder { color: var(--muted); opacity: 1; }
:focus-visible { outline: 3px solid #1977a3; outline-offset: 3px; }
a { color: var(--green); }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 26px; letter-spacing: -.025em; line-height: 1.25; }
h2 { font-size: 18px; letter-spacing: -.015em; }
h3 { font-size: 15px; }
small, .muted { color: var(--muted); }
small { font-size: 12px; }
.primary { background: var(--green); border-color: var(--green); color: #fff; font-weight: 650; }
.primary:hover { background: var(--green-hover); border-color: var(--green-hover); }
.skip { position: fixed; top: -60px; left: 12px; z-index: 40; padding: 12px; background: white; }
.skip:focus { top: 8px; }
.layout { display: grid; grid-template-columns: var(--rail-width) minmax(0, 1fr); grid-template-areas: "logo master" "rail workspace"; grid-template-rows: 48px 1fr; min-height: 100dvh; font: 12px/1.5 Verdana, Geneva, sans-serif; }
.rail-brand { grid-area: logo; position: sticky; top: 0; z-index: 22; padding: 8px 14px; background: var(--paper); border-right: 1px solid var(--line); color: var(--green); }
.masterbar { grid-area: master; position: sticky; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 12px 0 44px; background: #2b4054; color: #fff; }
.master-navigation { display: flex; gap: 0; min-width: 0; }
.master-menu { display: flex; position: relative; max-width: 100%; }
.master-dropdown > summary { list-style: none; min-width: 44px; min-height: 44px; padding: 12px 8px; cursor: pointer; }
.master-dropdown > summary::-webkit-details-marker { display: none; }
.master-dropdown[open] > summary, .master-dropdown > summary:hover { background: #415b73; }
.master-options { position: absolute; left: 0; top: 100%; z-index: 15; min-width: 200px; max-width: min(280px,calc(100vw - 28px)); max-height: calc(100dvh - 64px); overflow-y: auto; overscroll-behavior: contain; background: var(--paper); color: var(--ink); border: 1px solid var(--line); border-radius: 2px; box-shadow: 2px 4px 12px #172f3426; padding: 4px; }
.master-options button { display: block; text-align: left; width: 100%; border-color: transparent; }
.master-options .nav-unavailable, .master-options .nav-unavailable small { color: var(--muted); }
.master-navigation [aria-current="page"] { background: var(--pale); border-color: #bed6ca; color: var(--green); }
.toolbar-title { position: absolute; left: 50%; transform: translateX(-50%); font: 600 18px/1.3 Arial,sans-serif; }
.rail { grid-area: rail; }
.workspace { grid-area: workspace; }
.rail { background: var(--paper); color: var(--ink); border-right: 1px solid var(--line); padding: 32px 14px 16px; display: flex; flex-direction: column; gap: 12px; position: sticky; z-index: 22; top: 48px; height: calc(100dvh - 48px); }
.masterbar { z-index: 21; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 700; letter-spacing: -.04em; }
.mark { width: 25px; height: 25px; color: #a0d8c6; display: grid; place-items: center; font-size: 30px; line-height: 1; }
.rail nav { display: grid; gap: 0; min-height: 0; flex: 1; overflow: visible; }
.rail nav button { text-align: left; background: transparent; color: var(--ink); border-color: transparent; padding: 6px 10px; width: 100%; white-space: normal; }
.rail nav button:hover { background: #edf1f5; }
.rail nav button.active { background: #e5edf4; color: #1f405d; font-weight: 650; }
.workspace-menu { min-width: 0; min-height: 0; flex: 1; display: flex; flex-direction: column; overflow-y: auto; overflow-x: hidden; }
.workspace-menu > summary { position: fixed; left: var(--rail-width); top: 0; z-index: 22; width: 40px; height: 48px; padding: 12px; color: #fff; background: #2b4054; list-style: none; }
.workspace-menu > summary::-webkit-details-marker { display: none; }
.rail .workspace-menu > summary:hover { background: #415b73; }
.menu-trigger-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.rail summary { min-height: 36px; padding: 8px 6px; cursor: pointer; overflow-wrap: anywhere; }
.rail summary:hover { background: #edf1f5; }
.nav-module { border-bottom: 1px solid var(--line); }
@media (min-width: 981px) { .nav-module { margin-inline: -14px; padding-inline: 14px; } }
.nav-module > summary { list-style: none; font-weight: 400; }
.nav-module > summary::-webkit-details-marker { display: none; }
.nav-module > summary::after { content: '›'; float: right; color: var(--muted); }
@media (max-width: 980px) {
  .nav-module[open] > summary::after { content: '⌄'; }
}
.nav-module[open] > summary, .nav-module.current-module > summary { color: #1f405d; background: #edf1f5; }
.module-options { padding: 0 0 6px 8px; }
@media (min-width: 981px) {
  .layout:has(.workspace-menu:not([open])) { grid-template-columns: 0 minmax(0,1fr); }
  .layout:has(.workspace-menu:not([open])) .rail-brand,
  .layout:has(.workspace-menu:not([open])) .rail-foot { display: none; }
  .layout:has(.workspace-menu:not([open])) .rail { padding: 0; border: 0; min-width: 0; }
  .layout:has(.workspace-menu:not([open])) .workspace-menu > summary { left: 0; }
}
.nav-submenu { margin-left: 8px; }
.nav-submenu > summary { list-style: none; font-size: 12px; color: var(--muted); font-weight: 600; }
.nav-submenu > summary::-webkit-details-marker { display: none; }
.nav-submenu > summary::before { content: '›'; display: inline-block; width: 14px; color: var(--muted); }
.nav-submenu[open] > summary::before { content: '⌄'; }
.nav-submenu button, .nav-submenu .nav-unavailable { margin-left: 14px; }
.nav-unavailable { display: block; padding: 6px 10px; color: var(--muted); overflow-wrap: anywhere; font-size: 12px; }
.nav-unavailable small { display: block; color: var(--muted); font-size: 10px; }
.nav-note { font-size: 10px; color: var(--muted); margin-top: 12px; }
.navigation-trail { color: var(--muted); font-size: 12px; margin-bottom: 12px; overflow-wrap: anywhere; }
.catalog-counts { margin: 14px 0; }
.report-catalog { max-width: 700px; }
.catalog-group { margin-top: 0; }
.catalog-group > summary { min-height: 28px; padding: 4px 0; cursor: pointer; font-weight: 400; overflow-wrap: anywhere; }
.catalog-group ul { list-style: none; padding: 0; margin: 8px 0 0; }
.catalog-group li { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 4px 0; border-top: 1px solid var(--line); }
.catalog-group li span { min-width: 0; overflow-wrap: anywhere; }
.catalog-group code { white-space: nowrap; font-size: 12px; color: var(--muted); }
.rail-foot { margin-top: auto; font-size: 10px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 10px; }
.workspace { min-width: 0; }
.topbar { border-bottom: 1px solid var(--line); min-height: 36px; padding: 4px 12px; display: flex; align-items: center; gap: 12px; }
.context { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.context strong { font-size: 12px; }
.context .branch { color: var(--muted); padding-left: 10px; border-left: 1px solid var(--line); }
#workspace-context { max-width: 220px; font-size: 12px; }
.utilities { display: flex; align-items: center; gap: 8px; }
.utilities select, .utilities button { font-size: 11px; padding: 6px 8px; min-height: 32px; border-color: #65798b; background: transparent; color: #fff; }
.utilities select option { background: var(--paper); color: var(--ink); }
.utilities button:hover { background: #415b73; }
main { padding: 8px 12px 24px; max-width: none; margin: 0; }
.page-heading { position: relative; display: flex; justify-content: center; align-items: center; gap: 12px; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--line); text-align: center; }
.page-heading h1 { font: 500 24px/1.25 Arial,sans-serif; letter-spacing: 0; }
.invoice-page-heading h1 { font-size: 42px; }
.page-heading p { margin-top: 4px; color: var(--muted); font-size: 11px; }
.page-heading .tag { position: absolute; right: 0; top: 0; }
.layout button, .layout input, .layout select, .layout textarea { min-height: 32px; border-radius: 2px; padding: 5px 8px; }
.layout .master-dropdown > summary { min-height: 44px; }
.layout .panel { border-radius: 2px; }
.layout .panel-head, .layout .cart-bottom, .layout .journal-fields { padding: 12px; }
.layout td, .layout th { padding: 6px 8px; }
.layout .navigation-trail { font-size: 10px; margin-bottom: 4px; }
.tag { display: inline-flex; gap: 5px; align-items: center; border: 1px solid var(--line); border-radius: 4px; padding: 4px 8px; font-size: 12px; white-space: nowrap; }
.tag.green { color: var(--green); background: var(--pale); border-color: #bed6ca; }
.tag.amber { color: var(--amber); background: var(--amber-pale); border-color: #e8d2a6; }
.shiftbar { border: 1px solid var(--line); background: var(--paper); padding: 14px 18px; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.shiftbar form { display: flex; align-items: end; gap: 8px; }
.shiftbar input { max-width: 135px; }
.shiftbar #close-shift { align-items: start; }
.cash-count-editor { min-width: 270px; }
.cash-count-rows { display: grid; gap: 6px; margin: 8px 0; }
.cash-count-row { display: grid; grid-template-columns: minmax(100px,1fr) 72px auto; align-items: end; gap: 6px; }
.cash-count-row input { width: 100%; }
.cash-count-row button { min-height: 34px; }
.cash-count-editor > p { margin: 6px 0 0; font-variant-numeric: tabular-nums; }
label { display: block; font-size: 12px; font-weight: 600; margin-bottom: 5px; }
.checkbox-label { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.checkbox-label input { width: 20px; min-height: 20px; }
.pos-settings-card { padding: 16px; margin-bottom: 16px; }
.pos-settings-card form { display: grid; gap: 10px; margin-top: 12px; }
.pos-settings-card input[type="number"] { max-width: 160px; }
.pos-settings-card button { justify-self: start; }
.workbench { display: grid; grid-template-columns: minmax(320px, 1fr) 370px; gap: 20px; align-items: start; }
.panel { background: var(--paper); border: 1px solid var(--line); min-width: 0; border-radius: 7px; overflow: clip; }
.panel-head { padding: 20px; border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.panel-head h2 + p { color: var(--muted); margin-top: 4px; font-size: 12px; }
.search { padding: 18px 20px; border-bottom: 1px solid var(--line); }
.search input { background: #f8fafb; }
.table-wrap { overflow-x: auto; }
.inventory-batches .table-wrap table { table-layout: fixed; min-width: 1120px; }
.inventory-batches th:nth-child(1) { width: 38px; }
.inventory-batches th:nth-child(2) { width: 110px; }
.inventory-batches th:nth-child(3) { width: 230px; }
.inventory-batches th:nth-child(4) { width: 65px; }
.inventory-batches th:nth-child(5) { width: 135px; }
.inventory-batches th:nth-child(6) { width: 130px; }
.inventory-batches th:nth-child(7) { width: 145px; }
.inventory-batches th:nth-child(n+8) { width: 90px; }
#stock-holds p, #stock-holds small { overflow-wrap: anywhere; }
#stock-holds small { display: block; }
#stock-holds table { table-layout: fixed; min-width: 720px; }
#stock-holds th:first-child { width: 30%; }
#stock-holds th:nth-child(2) { width: 28%; }
#stock-holds select { max-width: 100%; }
#sales-orders p, #sales-orders small, #sales-orders button { overflow-wrap: anywhere; }
#sales-orders small { display: block; }
#sales-orders .tag { white-space: normal; }
#sales-orders table { table-layout: fixed; min-width: 780px; }
#sales-orders th:first-child { width: 32%; }
#sales-orders th:nth-child(2) { width: 16%; }
#order-compose { align-items: end; }
#order-compose .footnote { flex-basis: 100%; }
table { width: 100%; border-collapse: collapse; text-align: left; font-variant-numeric: tabular-nums; }
th { padding: 11px 16px; color: var(--muted); background: #f7f9fa; font-size: 11px; font-weight: 650; }
td { padding: 16px; border-top: 1px solid #e6ecee; }
td strong { font-size: 13px; display: block; }
td small { display: block; margin-top: 3px; }
.number { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
td .add { width: 44px; padding: 6px; font-size: 21px; color: var(--green); }
.stock-note { display: flex; gap: 10px; justify-content: space-between; padding: 14px 20px; background: #f9fbfb; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.cart { position: sticky; top: 18px; }
.cart-empty { text-align: center; padding: 46px 28px; color: var(--muted); }
.cart-empty strong { display: block; color: var(--ink); margin-bottom: 8px; }
.cart-lines { padding: 0 20px; }
.cart-line { padding: 16px 0; border-bottom: 1px solid var(--line); }
.line-heading { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.line-heading strong { font-size: 13px; }
.line-controls { display: grid; grid-template-columns: 64px 1fr 44px; gap: 8px; align-items: end; margin-top: 10px; }
.line-controls select { width: 100%; font-size: 12px; padding: 9px 5px; }
.line-controls input { padding: 9px; }
.batch-proof { color: var(--muted); font-size: 11px; margin-top: 7px; }
.cart-bottom { padding: 20px; }
.total-row { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 8px; font-variant-numeric: tabular-nums; }
.total-row.grand { font-size: 22px; font-weight: 700; margin: 13px 0 17px; }
.invoice-note { border: 1px solid #bed6ca; background: var(--pale); padding: 10px 12px; border-radius: 4px; color: var(--green); font-size: 12px; margin-bottom: 14px; }
.tenders { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.tenders input { padding: 9px 7px; font-variant-numeric: tabular-nums; }
.checkout { width: 100%; margin-top: 10px; }
.workbench.pos-workbench { grid-template-columns: minmax(0,1fr) 280px; gap: 8px; }
.pos-basket-column { display: grid; align-content: start; gap: 8px; min-width: 0; }
.pos-customer { padding: 8px 10px; }
.pos-customer p { overflow-wrap: anywhere; }
.pos-customer form { display: flex; flex-wrap: wrap; gap: 6px; align-items: end; }
.pos-customer form > div { flex: 1 1 220px; min-width: 0; }
.pos-customer input { min-width: 0; }
.pos-customer > details > summary, #pos-payment-panel > summary { font-weight: 700; color: var(--green); overflow-wrap: anywhere; }
.pos-customer > details[open] > summary, #pos-payment-panel[open] > summary { margin-bottom: 8px; }
#pos-payment-panel kbd { font-family: inherit; }
.pos-shiftbar { padding: 6px 10px; }
.pos-shiftbar > div { min-width: 0; }
.pos-shiftbar > details { min-width: 0; }
.pos-shiftbar summary { color: var(--green); font-weight: 700; }
.pos-shiftbar details[open] > form { margin-top: 8px; flex-wrap: wrap; }
.pos-checkout #receipt-discount { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 12px; }
.pos-workbench .cart { position: static; }
.pos-workbench .panel-head { padding: 6px 10px; }
.pos-workbench .panel-head h2 { font-size: 13px; }
.pos-workbench .search { padding: 8px 10px; }
.pos-entry { display: flex; flex-wrap: wrap; gap: 6px; align-items: end; }
.pos-entry > div { flex: 0 1 100px; min-width: 0; }
.pos-entry > .pos-entry-search { flex: 1 1 220px; }
.pos-entry input, .pos-entry select { min-width: 0; width: 100%; }
.pos-scan-summary { display: grid; grid-template-columns: minmax(0,1fr) minmax(160px,24%); align-items: stretch; }
.pos-sale-total { display: flex; flex-direction: column; justify-content: center; align-items: end; gap: 4px; padding: 8px 10px; background: var(--pale); color: var(--green); border-left: 1px solid var(--line); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.pos-sale-total strong { font-size: 36px; line-height: 1.1; }
.pos-sale-total span { color: var(--ink); font-size: 12px; }
.pos-entry-hint { padding: 0 10px; }
.pos-shortcuts { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; }
.pos-shortcuts button { display: flex; align-items: center; gap: 6px; }
.pos-shortcuts kbd { font-family: inherit; font-weight: 700; }
.pos-shortcuts p { flex-basis: 100%; margin: 0; }
.pos-workbench .articles .table-wrap { max-height: 180px; overflow: auto; }
.pos-workbench #pos-catalogue > summary { padding: 6px 10px; color: var(--green); }
.pos-workbench .articles th { position: sticky; top: 0; }
.pos-workbench .articles td { padding: 6px 10px; }
.pos-workbench .stock-note { padding: 6px 10px; }
.pos-basket-table { min-height: 380px; max-height: 65dvh; overflow: auto; background: #f4f4f4; }
.pos-basket-table table { min-width: 1420px; table-layout: fixed; }
.pos-basket-table th { position: sticky; top: 0; z-index: 1; }
.pos-basket-table th, .pos-basket-table td { border: 1px solid var(--line); padding: 6px; vertical-align: top; }
.pos-basket-table td { position: relative; background: white; }
.pos-basket-table th:nth-child(1) { width: 90px; }
.pos-basket-table th:nth-child(2) { width: 190px; }
.pos-basket-table th:nth-child(3) { width: 80px; }
.pos-basket-table th:nth-child(4) { width: 100px; }
.pos-basket-table th:nth-child(5) { width: 140px; }
.pos-basket-table th:nth-child(6) { width: 240px; }
.pos-basket-table th:nth-child(7) { width: 100px; }
.pos-basket-table th:nth-child(8) { width: 220px; }
.pos-basket-table th:nth-child(9) { width: 100px; }
.pos-basket-table th:nth-child(10) { width: 100px; }
.pos-basket-table th:nth-child(11) { width: 60px; }
.pos-basket-table label { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); }
.pos-basket-table input, .pos-basket-table select { width: 100%; min-width: 0; }
.pos-basket-table .pos-line-selector { width: auto; min-height: 0; margin: 0 4px 4px 0; }
.pos-basket-table tr[data-selected="true"] > td { background: var(--pale); }
.pos-basket-table .batch-proof { margin: 0 0 6px; }
.pos-basket-table .footnote { margin-top: 4px; }
.pos-basket-table p, .pos-basket-table strong { overflow-wrap: anywhere; }
.pos-basket-table .discount-form { display: grid; gap: 4px; }
.pos-checkout { position: sticky; top: 56px; }
.pos-checkout .grand { flex-wrap: wrap; font-size: 28px; color: var(--green); }
.pos-checkout .tenders { grid-template-columns: 1fr; }
.pos-checkout .tenders > div { min-width: 0; }
.pos-checkout input, .pos-checkout select { min-width: 0; max-width: 100%; }
.pos-checkout p, .pos-checkout label, .pos-checkout button { overflow-wrap: anywhere; }
@media (max-width: 980px) {
  .workbench.pos-workbench { grid-template-columns: minmax(0,1fr); }
  .pos-checkout { position: static; }
  .pos-checkout .tenders { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 680px) {
  .pos-scan-summary { grid-template-columns: minmax(0,1fr); }
  .pos-sale-total { border-left: 0; border-top: 1px solid var(--line); }
}
.wide { width: 100%; }
.footnote { font-size: 11px; color: var(--muted); margin-top: 10px; }
.warning, .error { padding: 12px; border: 1px solid #e2c29d; background: var(--amber-pale); color: var(--amber); border-radius: 4px; margin: 12px 0; }
.error { border-color: #e3b5b8; color: var(--danger); background: #fff1f2; }
.receipt { margin: 20px 0; padding: 20px; background: white; border: 1px solid #bed6ca; }
.receipt p { margin-top: 6px; }
.receipt code, .panel code { overflow-wrap: anywhere; }
.login-shell { min-height: 100dvh; display: grid; grid-template-columns: 1fr 1fr; }
.login-intro { background: #19333a; color: #fff; padding: max(40px, 10vw); display: flex; flex-direction: column; justify-content: center; align-items: start; }
.login-intro h1 { font-size: 42px; margin-top: 42px; max-width: 13ch; }
.login-intro p { margin-top: 20px; color: #c6d9db; max-width: 36ch; }
.login-form-wrap { padding: 40px; display: grid; align-content: center; justify-content: center; }
.login-form { width: min(360px, 100%); }
.login-form h2 { font-size: 26px; margin-bottom: 8px; }
.login-form > p { margin-bottom: 28px; color: var(--muted); }
.field { margin-bottom: 16px; }
.demo-help { margin-top: 24px; padding: 16px; border: 1px solid var(--line); font-size: 12px; line-height: 1.8; }
.scope { max-width: 850px; }
.scope p { max-width: 72ch; margin: 16px 0; color: var(--muted); }
.scope td:first-child { font-weight: 650; }
.accounting-grid { display: grid; grid-template-columns: 280px minmax(0,1fr); gap: 20px; align-items: start; }
.price-list-grid { grid-template-columns: minmax(0,1fr); }
.catalog-search { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; padding: 12px; align-items: end; }
.catalog-search > div { min-width: 0; }
.catalog-search input, .catalog-search select { width: 100%; }
.catalog-search .footnote { grid-column: 1 / -1; }
.catalog-search > details { grid-column: 1 / -1; min-width: 0; }
.catalog-search > details > label { margin-top: 12px; }
.catalog-applied-description { overflow-wrap: anywhere; white-space: pre-wrap; }
@media (max-width: 980px) {
  .catalog-search { grid-template-columns: minmax(0,1fr); }
}
.price-list-grid.has-editor { grid-template-columns: minmax(0,1.65fr) minmax(320px,.9fr); }
.price-list-search { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: end; gap: 8px 12px; margin: 14px 0; }
.price-list-search label { grid-column: 1 / -1; }
.price-list-search input { width: 100%; }
.article-unit-table table { min-width: 32rem; }
.article-unit-table th, .article-unit-table td { overflow-wrap: anywhere; }
.article-unit-table th[aria-sort] button { width: 100%; display: flex; justify-content: space-between; gap: 12px; text-align: left; }
.article-unit-table th[aria-sort]:not([aria-sort="none"]) button { background: var(--pale); color: var(--green); }
.article-group-table table { min-width: 44rem; }
.article-group-table th, .article-group-table td { overflow-wrap: anywhere; }
.article-group-table td:nth-child(3) { white-space: nowrap; }
.article-group-toggle { margin-inline-end: 8px; }
.classification-rename-history { padding: 12px; }
.classification-rename-history .table-wrap table { min-width: 64rem; table-layout: fixed; }
.classification-rename-history th, .classification-rename-history td { overflow-wrap: anywhere; }
#article-unit-history article { margin-top: 20px; }
#article-unit-history p, #article-unit-history th, #article-unit-history td { overflow-wrap: anywhere; }
#article-unit-history .table-wrap table { min-width: 36rem; table-layout: fixed; }
#article-classifiers .table-wrap table { min-width: 32rem; table-layout: fixed; }
#article-classifiers #classifier-history table { min-width: 76rem; }
#article-classifiers th, #article-classifiers td { overflow-wrap: anywhere; }
#classifier-sort-name { display: flex; justify-content: space-between; gap: 12px; width: 100%; text-align: left; background: var(--pale); color: var(--green); }
.article-description { min-width: 16rem; max-width: 32rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.price-list-search .journal-actions { grid-column: 2; grid-row: 2; margin: 0; }
.price-list-table { max-height: min(62vh,680px); overflow: auto; border: 1px solid var(--line); }
.price-list-table table { min-width: 900px; table-layout: fixed; }
.price-list-table thead th { position: sticky; top: 0; z-index: 1; }
.price-list-table th:first-child, .price-list-table td:first-child { width: 56px; text-align: right; }
.price-list-table th:nth-child(2) { width: 150px; }
.price-list-table th:nth-child(3) { width: 320px; }
.price-list-table th:nth-child(4) { width: 120px; }
.price-list-table th:nth-child(5) { width: 260px; }
.article-unit-table.price-list-table th:first-child,
.article-unit-table.price-list-table td:first-child { width: 150px; text-align: left; }
.price-list-select { min-height: 32px; padding: 2px 6px; border: 0; background: transparent; color: var(--ink); text-align: left; }
.price-list-select:hover:not(:disabled) { background: transparent; text-decoration: underline; }
.price-list-pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
.price-list-pager span { text-align: center; font-variant-numeric: tabular-nums; }
.journal-list { max-height: 580px; overflow-y: auto; }
.journal-list button { display: block; width: 100%; text-align: left; border: 0; border-radius: 0; border-bottom: 1px solid var(--line); padding: 14px 18px; }
.journal-list strong, .journal-list small { display: block; overflow-wrap: anywhere; }
.journal-list .tag { margin-top: 6px; }
.journal-list .tag, [data-journal-status] { max-width: 100%; white-space: normal; }
.treasury-history-table { max-height: 420px; }
.table-wrap.treasury-history-table table { min-width: 1100px; table-layout: fixed; }
.treasury-history-table thead { position: sticky; top: 0; z-index: 1; background: var(--paper); }
.treasury-history-table th, .treasury-history-table td { overflow-wrap: anywhere; }
.treasury-history-table th:first-child { width: 25%; }
.treasury-history-table th:nth-child(3), .treasury-history-table th:last-child { width: 18%; }
.treasury-history-table button { width: 100%; text-align: left; }
.treasury-history-table small { display: block; }
.treasury-history-table .treasury-selected { background: #edf1f5; }
.journal-fields { display: flex; align-items: end; gap: 14px; padding: 20px; }
.journal-fields > div { flex: 1; min-width: 0; }
.journal-fields > div:first-child { max-width: 180px; }
.document-preview fieldset { min-width: 0; margin: 12px; border: 1px solid var(--line); }
.document-preview .journal-fields { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); }
.document-preview .journal-fields > div:first-child { max-width: none; }
.document-preview .journal-fields input:not([type="checkbox"]), .document-preview .journal-fields select { width: 100%; }
.document-preview .commercial-entry-table th { width: 120px; }
.document-preview .commercial-entry-table th:first-child { width: 45px; }
.document-preview .commercial-entry-table th:nth-child(2) { width: 130px; }
.document-preview .commercial-entry-table th:nth-child(3) { width: 260px; }
#purchase-return-shell table { min-width: 1515px; }
#promotions-preview .promotion-register-table table { min-width: 1280px; }
#promotions-preview .promotion-register-table th:first-child { width: 110px; }
#promotion-article-register-preview table { min-width: 1880px; }
@media (max-width: 700px) {
  .document-preview .journal-fields { grid-template-columns: minmax(0,1fr); }
}
#stock-history-search { flex-wrap: wrap; }
#stock-history-search > div { flex: 1 1 180px; }
#stock-history-search > div:first-child { max-width: none; }
#journal-draft-lookup > div:first-child { max-width: none; }
.journal-table td, .journal-table th { padding: 10px 12px; }
.journal-table select { width: 100%; min-width: 140px; max-width: 260px; }
.journal-table input { min-width: 85px; text-align: right; }
.journal-table .journal-line-description { min-width: 180px; text-align: left; }
.commercial-entry-table { margin: 12px 0; max-height: 460px; overflow: auto; border: 1px solid var(--line); }
.commercial-entry-table table { min-width: 1120px; table-layout: fixed; }
.commercial-entry-table thead th { position: sticky; top: 0; z-index: 1; }
.commercial-entry-table th, .commercial-entry-table td { padding: 6px; border: 1px solid var(--line); vertical-align: middle; }
.commercial-entry-table td { position: relative; }
.commercial-entry-table td:focus-within { background: #edf1f5; }
.commercial-entry-table th:nth-child(1) { width: 34px; }
.commercial-entry-table th:nth-child(2) { width: 110px; }
.commercial-entry-table th:nth-child(3) { width: 230px; }
.commercial-entry-table th:nth-child(4) { width: 65px; }
.commercial-entry-table th:nth-child(5) { width: 90px; }
.commercial-entry-table th:nth-child(6) { width: 90px; }
.commercial-entry-table th:nth-child(7) { width: 130px; }
.commercial-entry-table th:nth-child(n+8) { width: 100px; }
.price-override-entry-table table { min-width: 1480px; }
.price-override-entry-table th:nth-child(1) { width: 34px; }
.price-override-entry-table th:nth-child(2) { width: 110px; }
.price-override-entry-table th:nth-child(3) { width: 220px; }
.price-override-entry-table th:nth-child(4) { width: 65px; }
.price-override-entry-table th:nth-child(5), .price-override-entry-table th:nth-child(6) { width: 80px; }
.price-override-entry-table th:nth-child(7) { width: 130px; }
.price-override-entry-table th:nth-child(8) { width: 100px; }
.price-override-entry-table th:nth-child(9) { width: 150px; }
.price-override-entry-table.calculated-lines th:nth-child(10) { width: 110px; }
.price-override-entry-table.calculated-lines th:nth-child(11) { width: 90px; }
.price-override-entry-table.calculated-lines th:nth-child(12) { width: 100px; }
.price-override-entry-table.calculated-lines th:nth-child(13) { width: 130px; }
.price-override-entry-table.calculated-lines th:nth-child(14) { width: 80px; }
.commercial-entry-table input, .commercial-entry-table select { width: 100%; min-width: 0; }
.commercial-entry-table label { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); }
.purchase-entry-table th:nth-child(6) { width: 100px; }
.purchase-entry-table th:nth-child(7) { width: 100px; }
.intake-entry-table th:nth-child(2) { width: 110px; }
.intake-entry-table th:nth-child(3) { width: 230px; }
.intake-entry-table th:nth-child(4) { width: 65px; }
.intake-entry-table th:nth-child(5), .intake-entry-table th:nth-child(6) { width: 100px; }
.intake-entry-table th:nth-child(7) { width: 140px; }
.intake-entry-table th:nth-child(8) { width: 135px; }
.count-entry-table th:nth-child(3) { width: 150px; }
.count-entry-table th:nth-child(4) { width: 130px; }
.count-entry-table th:nth-child(5), .count-entry-table th:nth-child(6) { width: 140px; }
.count-entry-table th:nth-child(7), .count-entry-table th:nth-child(8) { width: 100px; }
.count-entry-table th:nth-child(9) { width: 150px; }
.recipe-entry-table table { min-width: 820px; }
.recipe-entry-table th:nth-child(1) { width: 50px; }
.recipe-entry-table th:nth-child(2) { width: 420px; }
.recipe-entry-table th:nth-child(3) { width: 100px; }
.recipe-entry-table th:nth-child(4), .recipe-entry-table th:nth-child(5) { width: 120px; }
.recipe-entry-table th:nth-child(6) { width: 140px; }
#recipe-search .journal-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.table-wrap.register-table.recipe-register-table table { min-width: 1100px; }
.table-wrap.recipe-register-table th:nth-child(-n+2), .table-wrap.recipe-register-table td:nth-child(-n+2) { width: 16%; }
.table-wrap.recipe-register-table th:nth-child(3) { width: 25%; }
#intake-compose > .journal-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); padding: 0; margin-block: 12px; }
#intake-compose > .journal-fields > div:first-child { max-width: none; }
#purchase-order-compose > .journal-fields, #invoice-compose > .journal-fields {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; padding: 0; margin-block: 12px;
}
#invoice-compose > .journal-fields > div:nth-child(5) { grid-column: span 2; }
#purchase-supplier-search, #invoice-supplier-search {
  display: grid; grid-template-columns: minmax(180px, 1fr) minmax(0, 2fr) auto; gap: 10px; align-items: center;
}
#ci-draft-compose .journal-fields > div:first-child,
#offer-compose .journal-fields > div:first-child,
#draft-compose .journal-fields > div:first-child { max-width: none; }
#ci-draft-customer-search, #offer-customer-search, #draft-customer-search {
  display: grid; grid-template-columns: minmax(180px, 1fr) minmax(0, 2fr) auto; gap: 10px; align-items: center;
}
#ci-draft-compose > .ci-draft-entry-header {
  display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-items: start; gap: 12px;
  margin-block: 12px;
}
.ci-draft-customer-details {
  display: grid; grid-template-columns: minmax(0,1fr); align-content: start; gap: 8px;
  min-width: 0; margin: 0; padding: 12px; border: 1px solid var(--line); background: #f7f9fa;
}
.ci-draft-customer-details p { margin: 0; overflow-wrap: anywhere; }
.ci-draft-customer-details small { display: block; color: var(--muted); }
.ci-draft-document-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-content: start; gap: 10px 12px; min-width: 0; }
.ci-draft-document-fields > div, .ci-draft-description-field { min-width: 0; }
.ci-draft-document-fields select, .ci-draft-document-fields input, .ci-draft-description-field input { width: 100%; }
.ci-draft-controls { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.4fr); align-items: end; gap: 16px; margin-block: 12px; }
.ci-draft-currency-fields { display: grid; grid-template-columns: minmax(90px,.7fr) minmax(120px,1fr); align-items: end; gap: 12px; padding: 0; }
.ci-draft-currency-fields > div:first-child { max-width: none; }
.ci-draft-terms { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; }
.ci-draft-note-field { min-width: 0; margin-block: 12px; }
.ci-draft-note-field textarea { min-height: 64px; }
.ci-draft-bottom { display: flex; align-items: end; justify-content: flex-end; gap: 16px; margin-top: 12px; }
.ci-draft-bottom:has(.ci-draft-preview) { display: grid; grid-template-columns: minmax(220px,.7fr) minmax(0,1.3fr); }
.ci-draft-preview { min-width: 0; margin: 0; padding: 12px; border: 1px solid var(--line); background: #f7f9fa; }
.ci-draft-preview h3 { margin-bottom: 6px; }
.ci-draft-preview .warning { margin-top: 6px; }
.ci-draft-actions { justify-content: flex-end; margin-top: 0; }
.ci-draft-register table { min-width: 1000px; }
.ci-draft-note { white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 980px) {
  #ci-draft-compose > .ci-draft-entry-header { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .ci-draft-customer-details { grid-column: 1 / -1; }
  .ci-draft-controls { grid-template-columns: minmax(0,1fr); }
  .ci-draft-bottom:has(.ci-draft-preview) { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 700px) {
  #ci-draft-customer-search, #offer-customer-search, #draft-customer-search { grid-template-columns: minmax(0, 1fr); }
  #purchase-supplier-search, #invoice-supplier-search,
  #purchase-order-compose > .journal-fields, #invoice-compose > .journal-fields { grid-template-columns: minmax(0, 1fr); }
  #invoice-compose > .journal-fields > div:nth-child(5) { grid-column: auto; }
  #intake-compose > .journal-fields { grid-template-columns: minmax(0, 1fr); }
  #ci-draft-compose > .ci-draft-entry-header, .ci-draft-document-fields, .ci-draft-currency-fields { grid-template-columns: minmax(0, 1fr); }
  .ci-draft-customer-details { grid-column: auto; }
  .ci-draft-terms { grid-column: auto; }
  .ci-draft-actions { justify-content: stretch; }
  .ci-draft-actions button { flex: 1 1 140px; }
}
.journal-table tfoot td { font-weight: 650; background: var(--ground); }
.journal-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.balance-panel { margin-top: 22px; }
#sales-offers small { display: block; white-space: normal; }
#sales-offers p, #sales-offers button { overflow-wrap: anywhere; }
#sales-offers select { max-width: 100%; }
#sales-offers .tag { max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
#sales-offers td, #sales-offers th { overflow-wrap: anywhere; }
#sales-offers table { table-layout: fixed; min-width: 720px; }
#sales-offers th:first-child { width: 38%; }
#offer-compose > .commercial-entry-header, #draft-compose > .commercial-entry-header {
  display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-items: start; gap: 12px; margin-block: 12px;
}
.commercial-entry-customer { min-width: 0; padding: 12px; border: 1px solid var(--line); background: #f7f9fa; }
.commercial-entry-customer p { margin: 0; }
.commercial-entry-customer .commercial-customer-identity { margin: 0; }
.commercial-document-fields { display: grid; grid-template-columns: minmax(0,1fr); align-content: start; gap: 10px; min-width: 0; }
.commercial-document-fields > div, .commercial-entry-description { min-width: 0; }
.commercial-document-fields input, .commercial-entry-description input { width: 100%; }
@media (max-width: 980px) {
  #offer-compose > .commercial-entry-header, #draft-compose > .commercial-entry-header { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .commercial-entry-customer { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  #offer-compose > .commercial-entry-header, #draft-compose > .commercial-entry-header,
  .commercial-document-fields { grid-template-columns: minmax(0,1fr); }
  .commercial-entry-customer { grid-column: auto; }
}
.stock-exact-lookup { align-self: end; }
.stock-exact-lookup > summary { cursor: pointer; padding: 8px 0; }
.stock-exact-lookup input { margin-top: 6px; }
.journal-fields.compact { padding: 0; gap: 10px; align-items: start; }
.count-list { max-height: 260px; overflow-y: auto; }
.count-list button { display: block; width: 100%; text-align: left; margin-top: 8px; overflow-wrap: anywhere; }
#count-sheets small { display: block; overflow-wrap: anywhere; }
#count-sheets .cart-bottom > p { overflow-wrap: anywhere; }
#count-sheets .journal-fields > div:first-child { max-width: none; }
#count-sheets select { width: 100%; }
.parties summary { cursor: pointer; min-height: 44px; overflow-wrap: anywhere; }
.parties details + details { border-top: 1px solid var(--line); }
.parties dt { font-size: 12px; color: var(--muted); margin-top: 8px; }
.parties dd { margin-left: 0; overflow-wrap: anywhere; }
.parties details h3 { margin-top: 18px; }
.parties select { width: 100%; }
.party-workspace, .register-workspace { display: grid; gap: 20px; }
.party-workspace > .panel, .register-workspace > .panel { min-width: 0; }
.party-register, .register-table { max-height: 420px; }
.party-register table, .register-table table { width: 100%; min-width: 620px; }
.table-wrap.register-table table { min-width: 900px; table-layout: fixed; }
.party-register thead, .register-table thead { position: sticky; top: 0; z-index: 1; background: var(--paper); }
.party-register th, .party-register td, .register-table th, .register-table td { overflow-wrap: anywhere; }
.party-register th:first-child, .register-table th:first-child { width: 16%; }
.party-register td:nth-child(2), .register-table td:nth-child(2) { width: 40%; }
.register-table th:first-child { width: 18%; }
.register-table td:nth-child(2) { width: 32%; }
.party-register button, .register-table button { text-align: left; width: 100%; }
.party-register .party-selected, .register-table .register-selected { background: #edf1f5; }
.party-workspace .search, .register-workspace .search { display: flex; align-items: end; gap: 12px; }
.party-workspace .search .field, .register-workspace .search .field { flex: 1; margin: 0; }
#party-form { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px 20px; }
#party-form > :not(.field) { grid-column: 1 / -1; }
#party-form .field { margin: 0; }
.party-additional { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px 20px; min-width: 0; margin: 8px 0; padding: 16px; border: 1px solid var(--line); }
.party-additional > .footnote { grid-column: 1 / -1; }
@media (max-width: 680px) {
  #party-form, .party-additional { grid-template-columns: minmax(0,1fr); }
  .party-workspace .search, .register-workspace .search { flex-wrap: wrap; }
  .party-workspace .search .field, .register-workspace .search .field { flex-basis: 100%; }
}
.report-filter { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; border-bottom: 1px solid var(--line); }
.report-filter .footnote { flex-basis: 100%; }
.filter-match { display: flex; gap: 4px; }
.filter-match select { max-width: 150px; }
.filter-match input { min-width: 180px; }
.operational-report .table-wrap { margin: 20px 0; }
.operational-report p { margin-top: 8px; }
.daily-report tfoot { font-weight: 650; }
.daily-report tbody th { white-space: nowrap; }
#sales-register table { min-width: 1060px; }
#sales-register th:first-child { min-width: 190px; }
#sales-register th small { display: block; margin-top: 6px; font-weight: 400; }
#sales-register.by-article table { min-width: 720px; }
#sales-register tfoot { font-weight: 650; }
@media (max-width: 1200px) {
  .accounting-grid { grid-template-columns: 1fr; }
  .journal-list { max-height: 200px; }
}
#notice { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 30; max-width: calc(100vw - 32px); background: #19333a; color: white; border-radius: 5px; box-shadow: 0 8px 24px #172f3426; }
#notice:not(:empty) { padding: 12px 20px; }
@media (max-width: 1200px) {
  .workbench { grid-template-columns: minmax(270px,1fr) 330px; gap: 14px; }
  .toolbar-title { display: none; }
  td, th { padding-left: 12px; padding-right: 12px; }
}
@media (max-width: 980px) {
  .price-list-grid, .price-list-grid.has-editor { grid-template-columns: minmax(0,1fr); }
  .price-list-table { max-height: 50vh; }
  .layout { grid-template-columns: minmax(0,1fr); grid-template-areas: "logo" "master" "rail" "workspace"; grid-template-rows: auto auto auto 1fr; }
  .rail { position: static; height: auto; display: block; padding: 4px 12px; }
  .masterbar { flex-wrap: wrap; padding: 4px 12px; gap: 4px; z-index: 23; }
  .master-options { max-height: calc(100dvh - 160px); }
  .utilities { margin-left: auto; flex-wrap: wrap; }
  .workspace-menu { margin-top: 0; }
  .workspace-menu > summary { position: static; width: auto; height: auto; color: var(--muted); background: var(--paper); }
  .rail .workspace-menu > summary:hover { color: var(--ink); background: #edf1f5; }
  .menu-trigger-text { position: static; width: auto; height: auto; clip-path: none; margin-left: 8px; }
  .rail-brand { position: static; }
  .rail nav { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); max-height: 280px; overflow-y: auto; align-items: start; gap: 4px 12px; }
  .nav-module[open] { grid-column: 1 / -1; }
  .layout .rail summary, .layout .rail button, .layout .master-options button { min-height: 44px; }
  .nav-note { margin-top: 8px; }
  .rail-foot { display: none; }
  .workbench { grid-template-columns: minmax(280px,1fr) 340px; }
}
@media (max-width: 600px) {
  .price-list-search { grid-template-columns: minmax(0,1fr); }
  .price-list-search .journal-actions { grid-column: 1; grid-row: auto; }
}
@media (max-width: 700px) {
  .login-shell { grid-template-columns: 1fr; }
  .login-intro { padding: 28px; }
  .login-intro h1 { font-size: 28px; max-width: none; margin-top: 20px; }
  .login-intro p { margin-top: 10px; }
  .login-form-wrap { padding: 28px; }
  .layout { display: block; }
  .rail { padding: 10px 14px; gap: 8px; flex-wrap: wrap; }
  .brand { font-size: 18px; }
  .masterbar { padding: 4px 8px; gap: 4px; }
  .master-navigation { width: 100%; gap: 0; }
  .master-menu { position: static; }
  .master-navigation { position: relative; }
  .master-dropdown { position: static; }
  .master-options { top: 100%; left: 0; right: 0; width: auto; min-width: 0; max-width: calc(100vw - 24px); }
  .rail nav button { padding: 8px; font-size: 12px; }
  .rail nav { grid-template-columns: 1fr; margin: 0; max-height: 220px; }
  .topbar { padding: 8px 12px; align-items: start; flex-wrap: wrap; }
  .context { display: block; }
  .context .branch { display: block; padding: 0; border: 0; font-size: 12px; margin-top: 4px; }
  #workspace-context { max-width: 185px; margin-top: 8px; }
  .utilities { gap: 5px; margin-left: auto; }
  .utilities .user { display: none; }
  main { padding: 8px 12px 20px; }
  h1 { font-size: 23px; }
  .page-heading { align-items: start; text-align: left; justify-content: flex-start; flex-wrap: wrap; }
  .page-heading .tag { position: static; }
  .page-heading h1 { font-size: 21px; }
  .invoice-page-heading h1 { font-size: 28px; }
  .page-heading p { font-size: 11px; }
  .workbench { grid-template-columns: 1fr; }
  .cart { position: static; }
  .shiftbar { align-items: start; flex-direction: column; padding: 14px; }
  .shiftbar > div { min-width: 0; max-width: 100%; }
  .shiftbar form { width: 100%; flex-wrap: wrap; justify-content: space-between; }
  .shiftbar form > div { min-width: 0; flex: 1 1 110px; }
  .shiftbar #close-shift { display: grid; grid-template-columns: 1fr; }
  .cash-count-editor { min-width: 0; width: 100%; }
  .cash-count-row { grid-template-columns: minmax(0,1fr) 72px auto; }
  .shiftbar label { font-size: 11px; }
  .panel-head { padding: 16px; }
  .table-wrap table { min-width: 420px; }
  .pos-basket-table th { position: static; }
  .articles .table-wrap table { min-width: 0; }
  .articles td, .articles th { padding: 12px 8px; }
  .articles td:first-child { width: 43%; }
  .articles td strong { overflow-wrap: anywhere; }
  .stock-note { flex-wrap: wrap; }
  .journal-fields { flex-wrap: wrap; padding: 16px; }
  .journal-fields > div { flex-basis: 100%; }
  .journal-fields > div:first-child { max-width: none; }
  #recipe-search .journal-fields { grid-template-columns: minmax(0, 1fr); }
}
@media (pointer: coarse) {
  .layout button, .layout input, .layout select, .layout textarea,
  .layout .catalog-group > summary, .layout .rail summary { min-height: 44px; }
}
@media (prefers-reduced-motion: no-preference) {
  button { transition: background-color 120ms ease-out, border-color 120ms ease-out; }
}
@page internal-document { margin: 12mm; }
.order-draft-document table { min-width: 640px; table-layout: fixed; }
.order-draft-document th:first-child { width: 45%; }
.ci-draft-document table { min-width: 640px; table-layout: fixed; }
.ci-draft-document th:first-child { width: 45%; }
.table-wrap.treasury-report-table table { min-width: 1050px; }
.table-wrap.treasury-report-table.trTotals table { min-width: 640px; }
#treasury-report-filter { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px 12px; align-items: end; }
#treasury-report-filter > div { min-width: 0; }
#treasury-report-filter input, #treasury-report-filter select { width: 100%; }
#treasury-report-filter button { justify-self: start; grid-column: 1 / -1; }
@media (max-width: 680px) {
  #treasury-report-filter { grid-template-columns: 1fr; }
}
#manual-treasury-register td { overflow-wrap: anywhere; }
@media print {
  body[data-print="count-sheet"] main > :not(#count-sheets),
  body[data-print="count-sheet"] #count-sheets > :not(#count-posted-print) { display: none; }
  body[data-print="count-sheet"] #count-posted-print { display: block !important; }
  body[data-print="count-sheet"] #count-posted-print table { min-width: 0; width: 100%; }
  body[data-print="stock-document"] main > :not(#stock-posted-document),
  body[data-print="stock-document"] #stock-posted-document > .erp-doc-actions { display: none; }
  body[data-print="stock-document"] #stock-posted-print table { min-width: 0; width: 100%; }
  body[data-print="manual-treasury-register"] main > :not(#manual-treasury-register),
  body[data-print="manual-treasury-register"] #manual-treasury-register > :not(.treasury-register-result) { display: none; }
  body[data-print="manual-treasury-register"] #manual-treasury-register table { min-width: 0; width: 100%; table-layout: fixed; }
  body[data-print="manual-treasury-register"] #manual-treasury-register tr { break-inside: avoid; }
  body[data-print="manual-treasury-register"] #manual-treasury-register th,
  body[data-print="manual-treasury-register"] #manual-treasury-register td { padding: 6px 4px; font-size: 10px; }
  body[data-print="manual-treasury-register"] .trGroups th:nth-child(1),
  body[data-print="manual-treasury-register"] .trSources th:nth-child(1) { width: 12%; }
  body[data-print="manual-treasury-register"] .trGroups th:nth-child(2) { width: 30%; }
  body[data-print="manual-treasury-register"] .trSources th:nth-child(2) { width: 26%; }
  body[data-print="manual-treasury-register"] .trSources th:nth-child(3) { width: 6%; }
  body[data-print="manual-treasury-register"] .trSources th:nth-child(4),
  body[data-print="manual-treasury-register"] .trSources th:nth-child(5),
  body[data-print="manual-treasury-register"] .trSources th:nth-child(6) { width: 8%; }
  body[data-print="manual-treasury-register"] .trSources th:nth-child(7) { width: 14%; }
  body[data-print="manual-treasury-register"] .trSources th:nth-child(8) { width: 18%; }
  body[data-print="sales-register"] main > :not(#sales-register) { display: none; }
  body[data-print="daily-report"] main > :not(.daily-report) { display: none; }
  body[data-print="minimum-report"] main > :not(.minimums-report) { display: none; }
  body[data-print="stock-balance"] main > :not(.stock-balance-report) { display: none; }
  body[data-print="party-directory"] main > :not(#party-directory),
  body[data-print="party-directory"] #party-directory > :not(.directory-result) { display: none; }
  body[data-print="party-directory"] #party-directory table { min-width: 0; width: 100%; table-layout: fixed; }
  body[data-print="supplier-maturities"] main > :not(#supplier-maturities),
  body[data-print="supplier-maturities"] #supplier-maturities > :not(.maturity-result) { display: none; }
  body[data-print="supplier-maturities"] #supplier-maturities table { min-width: 0; width: 100%; table-layout: fixed; }
  body[data-print="credit-maturities"] main > :not(#credit-maturities),
  body[data-print="credit-maturities"] #credit-maturities > :not(.credit-maturity-result) { display: none; }
  body[data-print="credit-maturities"] #credit-maturities table { min-width: 0; width: 100%; table-layout: fixed; }
  body[data-print="manual-trial-balance"] main > :not(#manual-trial-balance),
  body[data-print="manual-trial-balance"] #manual-trial-balance > :not(.trial-result) { display: none; }
  body[data-print="manual-trial-balance"] #manual-trial-balance table { min-width: 0; width: 100%; table-layout: fixed; }
  body[data-print="manual-account-ledger"] main > :not(#manual-account-ledger),
  body[data-print="manual-account-ledger"] #manual-account-ledger > :not(.ledger-result) { display: none; }
  body[data-print="manual-account-ledger"] #manual-account-ledger table { min-width: 0; width: 100%; table-layout: fixed; }
  body[data-print="manual-account-ledger"] #manual-account-ledger tr { break-inside: avoid; }
  body[data-print="manual-journal-register"] main > :not(#manual-journal-register),
  body[data-print="manual-journal-register"] #manual-journal-register > :not(.journal-register-result) { display: none; }
  body[data-print="manual-journal-register"] #manual-journal-register table { min-width: 0; width: 100%; table-layout: fixed; }
  body[data-print="manual-journal-register"] #manual-journal-register tr { break-inside: avoid; }
  body[data-print="cost-center-movements"] main > :not(#cost-center-movements),
  body[data-print="cost-center-movements"] #cost-center-movements > :not(.cost-movement-result) { display: none; }
  body[data-print="cost-center-movements"] #cost-center-movements table { min-width: 0; width: 100%; table-layout: fixed; }
  body[data-print="cost-center-movements"] #cost-center-movements tr { break-inside: avoid; }
  body[data-print="cost-center-movements"] #cost-center-movements th,
  body[data-print="cost-center-movements"] #cost-center-movements td { padding: 6px 4px; font-size: 11px; }
  body[data-print="cost-center-movements"] #cost-center-movements .cost-source-table th:nth-child(1) { width: 10%; }
  body[data-print="cost-center-movements"] #cost-center-movements .cost-source-table th:nth-child(2) { width: 26%; }
  body[data-print="cost-center-movements"] #cost-center-movements .cost-source-table th:nth-child(3) { width: 18%; }
  body[data-print="cost-center-movements"] #cost-center-movements .cost-source-table th:nth-child(4) { width: 17%; }
  body[data-print="cost-center-movements"] #cost-center-movements .cost-source-table th:nth-child(5) { width: 15%; }
  body[data-print="cost-center-movements"] #cost-center-movements .cost-source-table th:nth-child(6),
  body[data-print="cost-center-movements"] #cost-center-movements .cost-source-table th:nth-child(7) { width: 7%; }
  body[data-print="supplier-account-ledger"] main > :not(#supplier-account-ledger),
  body[data-print="supplier-account-ledger"] #supplier-account-ledger > :not(.supplier-ledger-result) { display: none; }
  body[data-print="supplier-account-ledger"] #supplier-account-ledger table { min-width: 0; width: 100%; table-layout: fixed; }
  body[data-print="supplier-account-ledger"] #supplier-account-ledger tr { break-inside: avoid; }
  body[data-print="supplier-account-ledger"] #supplier-account-ledger th,
  body[data-print="supplier-account-ledger"] #supplier-account-ledger td { padding: 6px 4px; font-size: 11px; }
  body[data-print="supplier-account-ledger"] #supplier-account-ledger small { font-size: 10px; }
  body[data-print="supplier-account-ledger"] #supplier-account-ledger th:nth-child(1) { width: 9%; }
  body[data-print="supplier-account-ledger"] #supplier-account-ledger th:nth-child(2) { width: 12%; }
  body[data-print="supplier-account-ledger"] #supplier-account-ledger th:nth-child(3) { width: 14%; }
  body[data-print="supplier-account-ledger"] #supplier-account-ledger th:nth-child(4) { width: 30%; }
  body[data-print="supplier-account-ledger"] #supplier-account-ledger th:nth-child(5) { width: 14%; }
  body[data-print="supplier-account-ledger"] #supplier-account-ledger th:nth-child(n+6) { width: 7%; }
  .screen-only { display: none; }
  body[data-print="asset"] main > :not(#fixed-assets),
  body[data-print="asset"] #fixed-assets > :not(.asset-card, #asset-opening),
  body[data-print="asset"] #asset-opening-form { display: none; }
  body[data-print="asset-projection"] main > :not(#fixed-assets),
  body[data-print="asset-projection"] #fixed-assets > :not(#asset-projection),
  body[data-print="asset-projection"] #asset-projection > .panel-head,
  body[data-print="asset-projection"] #asset-projection > .cart-bottom > :not(.asset-projection-result) { display: none; }
  body[data-print="asset-projection"] #asset-projection,
  body[data-print="asset-projection"] #asset-projection .table-wrap { overflow: visible; }
  body[data-print="asset-projection"] #asset-projection table { min-width: 0; width: 100%; table-layout: fixed; }
  body[data-print="asset-opening-document"] main > :not(#asset-opening-documents),
  body[data-print="asset-opening-document"] #asset-opening-documents > .panel-head,
  body[data-print="asset-opening-document"] #asset-opening-documents > .cart-bottom > :not(.asset-opening-document-result) { display: none; }
  body[data-print="asset-opening-document"] #asset-opening-documents .table-wrap { overflow: visible; }
  body[data-print="asset-opening-document"] #asset-opening-documents table { min-width: 0; width: 100%; table-layout: fixed; }
  #sales-register table, #sales-register.by-article table { min-width: 0; table-layout: fixed; width: 100%; }
  #sales-register th:first-child { min-width: 0; }
  body:not([data-print]) main:has(> .sale-receipt) > :not(.sale-receipt),
  body[data-print="receipt"] main > :not(.sale-receipt) { display: none; }
  .masterbar { display: none; }
  .rail-brand { display: none; }
  body[data-print^="order"] #sales-orders { border: 0; margin: 0; overflow: visible; }
  body[data-print^="order"] #sales-orders table { min-width: 0; }
  body[data-print="order"] main > :not(#sales-orders),
  body[data-print="order"] #sales-orders > :not(.order-document),
  body[data-print="order-cancel"] main > :not(#sales-orders),
  body[data-print="order-cancel"] #sales-orders > :not(.order-cancellation-document) { display: none; }
  body[data-print="order-draft"] main > :not(#order-drafts),
  body[data-print="order-draft"] #order-drafts > :not(.order-draft-document) { display: none; }
  body[data-print="order-draft"] #order-drafts { border: 0; margin: 0; overflow: visible; }
  body[data-print="order-draft"] #order-drafts table { min-width: 0; }
  body[data-print="ci-draft"] main > :not(#customer-invoice-drafts),
  body[data-print="ci-draft"] #customer-invoice-drafts > :not(.ci-draft-document) { display: none; }
  body[data-print="ci-draft"] #customer-invoice-drafts { border: 0; margin: 0; overflow: visible; }
  body[data-print="ci-draft"] #customer-invoice-drafts table { min-width: 0; }
  body:not([data-print]) main:has(#customer-invoice-drafts .ci-draft-document) > :not(#customer-invoice-drafts),
  body:not([data-print]) #customer-invoice-drafts:has(.ci-draft-document) > :not(.ci-draft-document) { display: none; }
  body:not([data-print]) main:has(#order-drafts .order-draft-document) > :not(#order-drafts),
  body:not([data-print]) #order-drafts:has(.order-draft-document) > :not(.order-draft-document) { display: none; }
  body[data-print^="hold"] #stock-holds { border: 0; margin: 0; overflow: visible; }
  body[data-print^="hold"] #stock-holds table { min-width: 0; }
  body[data-print="hold"] main > :not(#stock-holds),
  body[data-print="hold"] #stock-holds > :not(.hold-document),
  body[data-print="hold-release"] main > :not(#stock-holds),
  body[data-print="hold-release"] #stock-holds > :not(.hold-release-document) { display: none; }
  body[data-print^="offer"] #sales-offers { border: 0; margin: 0; overflow: visible; }
  body[data-print^="offer"] #sales-offers table { min-width: 0; }
  body[data-print="offer"] main > :not(#sales-offers),
  body[data-print="offer"] #sales-offers > :not(.offer-document),
  body[data-print="offer-withdrawal"] main > :not(#sales-offers),
  body[data-print="offer-withdrawal"] #sales-offers > :not(.offer-withdrawal-document) { display: none; }
  body[data-print="journal-date"] main > :not(#journal-date-locks),
  body[data-print="journal-date"] #journal-date-locks > :not(.journal-date-document),
  body[data-print="journal-draft"] main > :not(#accounting-workspace),
  body[data-print="journal-draft"] #accounting-workspace > :not(.journal-draft-document),
  body[data-print="journal"] main > :not(#accounting-workspace),
  body[data-print="journal"] #accounting-workspace > :not(.journal-document) { display: none; }
  body[data-print="production-correction"] main > :not(#production-posting),
  body[data-print="production-correction"] #production-posting > :not(.production-correction-document) { display: none; }
  body[data-print="production"] main > :not(#production-posting),
  body[data-print="production"] #production-posting > :not(.production-document) { display: none; }
  body[data-print="recipe"] main > :not(#production-recipes),
  body[data-print="recipe"] #production-recipes > :not(.recipe-document) { display: none; }
  body[data-print="supplier-balances"] main > :not(#supplier-balances) { display: none; }
  body[data-print="supplier-bank-correction"] main > :not(#supplier-bank-correction),
  body[data-print="supplier-bank-correction"] #supplier-bank-correction > :not(.supplier-bank-correction-document) { display: none; }
  body[data-print="supplier-bank"] main > :not(#supplier-bank-records),
  body[data-print="supplier-bank"] #supplier-bank-records > :not(.supplier-bank-document) { display: none; }
  body[data-print="purchase-intake-correction"] main > :not(#purchase-intake-correction),
  body[data-print="purchase-intake-correction"] #purchase-intake-correction > :not(.purchase-intake-correction-document) { display: none; }
  body[data-print="purchase-intake"] main > :not(#purchase-intake),
  body[data-print="purchase-intake"] #purchase-intake > :not(.purchase-intake-document) { display: none; }
  body[data-print="treasury"] main > :not(#treasury-entries),
  body[data-print="treasury"] #treasury-entries > :not(.treasury-document) { display: none; }
  body[data-print="purchase-invoice"] main > :not(#purchase-invoices),
  body[data-print="purchase-invoice"] #purchase-invoices > :not(.purchase-invoice-document) { display: none; }
  body[data-print="purchase-order"] main > :not(#purchase-orders),
  body[data-print="purchase-order"] #purchase-orders > :not(.purchase-order-document) { display: none; }
  body[data-print="purchase-coverage"] main > :not(#purchase-orders),
  body[data-print="purchase-coverage"] #purchase-orders > :not(.purchase-order-coverage) { display: none; }
  body[data-print="purchase-order-cancellation"] main > :not(#purchase-orders),
  body[data-print="purchase-order-cancellation"] #purchase-orders > :not(.purchase-cancellation-document) { display: none; }
  #credit-sales { display: none; }
  body[data-print^="repayment"] #credit-sales { display: block; border: 0; }
  body[data-print^="repayment"] main > :not(#credit-sales),
  body[data-print^="repayment"] #credit-sales > :not(#credit-repayments),
  body[data-print="repayment"] #credit-repayments > :not(.repayment-document) { display: none; }
  body[data-print="repayment-correction"] #credit-repayments > :not(.repayment-correction-document) { display: none; }
  #refund-records > :not(.refund-record-document) { display: none; }
  body { background: white; }
  .rail, .topbar, .page-heading, .navigation-trail, .shiftbar, .workbench, .closed-shifts, .sale-history, .skip, #notice, .error, .receipt button { display: none; }
  .layout { display: block; }
  main { padding: 0; }
  .receipt { border: 0; margin: 0; padding: 0; }
  .shift-close-report, .sale-receipt, .operational-report { page: internal-document; }
  .operational-report { border: 0; overflow: visible; }
  .operational-report .report-filter, .operational-report button { display: none; }
  .operational-report .table-wrap { overflow: visible; }
  .operational-report th, .operational-report td { padding: 8px 5px; font-size: 10px; white-space: normal; }
  .purchase-order-report.order-analytic th:nth-child(1) { width: 24%; }
  .purchase-order-report.order-analytic th:nth-child(2) { width: 12%; }
  .purchase-order-report.order-analytic th:nth-child(3) { width: 15%; }
  .purchase-order-report.order-analytic th:nth-child(4) { width: 18%; }
  .purchase-order-report.order-analytic th:nth-child(5) { width: 6%; }
  .purchase-order-report.order-analytic th:nth-child(6) { width: 9%; }
  .purchase-order-report.order-analytic th:nth-child(7) { width: 7%; }
  .purchase-order-report.order-analytic th:nth-child(8) { width: 9%; }
}
.expiry-print { display: none; }
.expiry-grid table { min-width: 1050px; }
.expiry-stock-report .report-filter { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; }
.expiry-stock-report .report-filter h2 { flex-basis: 100%; }
.expiry-stock-report .field { flex: 1 1 150px; min-width: 0; }
.expiry-totals { display: flex; flex-wrap: wrap; gap: 12px; margin: 12px 0; }
.expiry-totals > div { border: 1px solid #d3d7db; padding: 6px 10px; }
.expiry-totals dd { margin: 3px 0 0; font-weight: 700; font-variant-numeric: tabular-nums; }
@media print {
  body[data-print="expiry-stock"] main > :not(.expiry-stock-report):not(.reports-workspace),
  body[data-print="expiry-stock"] .report-tree-layout,
  body[data-print="expiry-stock"] .expiry-stock-report > :not(.expiry-result),
  body[data-print="expiry-stock"] .expiry-controls,
  body[data-print="expiry-stock"] .expiry-screen { display: none !important; }
  body[data-print="expiry-stock"] .reports-workspace,
  body[data-print="expiry-stock"] .report-output,
  body[data-print="expiry-stock"] .expiry-stock-report,
  body[data-print="expiry-stock"] .expiry-result,
  body[data-print="expiry-stock"] .expiry-print { display: block !important; }
  body[data-print="expiry-stock"] .expiry-print table { min-width: 0; width: 100%; table-layout: fixed; }
  body[data-print="expiry-stock"] .expiry-print th,
  body[data-print="expiry-stock"] .expiry-print td { padding: 4px; font-size: 9px; overflow-wrap: anywhere; }
}
.expiry-screen .expiry-grid{max-height:430px;overflow:auto}
.expiry-scope{margin-bottom:6px}
@media(pointer:fine) and (min-width:981px){
  .expiry-grid td,.expiry-grid th{padding:2px 6px}
  .expiry-grid .tag{padding:1px 5px;line-height:20px;min-height:0}
  .expiry-grid th button{border:0;background:transparent;padding:0;min-height:24px}
}
