:root{--navy:#102a43;--navy-2:#173d5d;--blue:#2563eb;--blue-soft:#eaf1ff;--green:#138a62;--green-soft:#e9f8f1;--amber:#c57b10;--amber-soft:#fff5df;--violet:#7457d8;--red:#c53c4a;--ink:#17212b;--muted:#687684;--line:#dfe5ea;--bg:#f5f7f9;--card:#fff;--shadow:0 8px 26px rgba(28,45,61,.06);font-family:"Segoe UI",Tahoma,Arial,sans-serif;color:var(--ink)}
*{box-sizing:border-box}body{margin:0;background:var(--bg);font-size:14px}.app-shell{min-height:100vh}.sidebar{position:fixed;right:0;top:0;bottom:0;width:248px;background:linear-gradient(180deg,#102a43,#0c2237);color:#fff;padding:22px 14px;display:flex;flex-direction:column;z-index:10}.brand{display:flex;align-items:center;gap:12px;padding:0 8px 24px;border-bottom:1px solid rgba(255,255,255,.1)}.brand-mark{width:44px;height:44px;border-radius:13px;background:linear-gradient(145deg,#4f8cff,#2563eb);display:grid;place-items:center;font-size:15px;font-weight:800;box-shadow:0 7px 18px rgba(37,99,235,.35)}.brand strong,.brand span{display:block}.brand strong{font-size:17px}.brand span{color:#aebdca;font-size:11px;margin-top:3px}.nav-list{display:flex;flex-direction:column;gap:6px;margin-top:22px}.nav-item{border:0;background:transparent;color:#c5d0d9;border-radius:10px;padding:12px 13px;display:flex;gap:12px;align-items:center;font:inherit;cursor:pointer;text-align:right}.nav-item:hover,.nav-item.active{background:rgba(255,255,255,.1);color:#fff}.nav-item.active{box-shadow:inset -3px 0 #5b91ff}.nav-item b{margin-right:auto;background:#2e68d6;padding:2px 7px;border-radius:12px;font-size:10px}.nav-icon{width:22px;text-align:center;font-size:18px}.sidebar-footer{margin-top:auto;border-top:1px solid rgba(255,255,255,.1);padding:18px 8px 0;display:flex;align-items:center;gap:10px}.sidebar-footer strong,.sidebar-footer span{display:block}.sidebar-footer strong{font-size:12px}.sidebar-footer span{font-size:10px;color:#9fb0bf;margin-top:2px}.avatar{width:35px;height:35px;background:#d9e6f4;color:#173d5d;border-radius:50%;display:grid;place-items:center;font-weight:800}.sidebar-footer .icon-button{margin-right:auto;color:#fff}.main-area{margin-right:248px;min-height:100vh}.topbar{height:66px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 30px;position:sticky;top:0;z-index:5}.crumbs{display:flex;gap:9px;color:var(--muted);font-size:12px}.crumbs i{font-style:normal;color:#abb5bf}.crumbs strong{color:var(--ink)}.top-actions{display:flex;align-items:center;gap:11px}.global-search,.table-search{display:flex;align-items:center;gap:8px;border:1px solid var(--line);background:#fafbfc;border-radius:9px;padding:0 11px;height:38px}.global-search{width:280px}.global-search input,.table-search input{border:0;outline:0;background:transparent;width:100%;font:inherit}.icon-button{border:0;background:transparent;width:36px;height:36px;border-radius:9px;cursor:pointer;font-size:18px}.icon-button:hover{background:#edf2f6}.notification{position:relative}.notification b{position:absolute;width:7px;height:7px;background:#ee5b65;border-radius:50%;right:6px;top:6px}.connection{font-size:11px;color:var(--green);background:var(--green-soft);padding:7px 10px;border-radius:20px}.connection i{display:inline-block;width:7px;height:7px;background:var(--green);border-radius:50%;margin-left:4px}.page-view{padding:28px 30px 50px}.hidden{display:none!important}.page-heading,.document-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px}.page-heading h1,.document-title h1{font-size:26px;margin:3px 0 4px}.page-heading p{margin:0;color:var(--muted)}.eyebrow{color:var(--blue)!important;text-transform:uppercase;font-size:10px;font-weight:800;letter-spacing:.5px;margin:0}.button{border:0;border-radius:9px;padding:10px 15px;font:inherit;font-weight:650;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:7px}.button.primary{background:var(--blue);color:#fff;box-shadow:0 6px 14px rgba(37,99,235,.2)}.button.secondary{background:#fff;color:#344555;border:1px solid var(--line)}.button.success{background:var(--green);color:#fff}.button:disabled{opacity:.45;cursor:not-allowed}.button.tiny{padding:7px 11px;background:var(--blue-soft);color:var(--blue);font-size:12px}.stats-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:15px;margin-bottom:18px}.stat-card{background:#fff;border:1px solid #e5eaee;border-radius:13px;padding:18px;display:flex;align-items:center;gap:13px;box-shadow:var(--shadow)}.stat-card span,.stat-card strong,.stat-card small{display:block}.stat-card span{color:var(--muted);font-size:11px}.stat-card strong{font-size:23px;margin:3px 0}.stat-card small{font-size:10px;color:#92a0ac}.stat-icon{width:43px;height:43px;border-radius:12px;display:grid;place-items:center;font-size:18px;font-weight:800}.stat-icon.blue{background:var(--blue-soft);color:var(--blue)}.stat-icon.green{background:var(--green-soft);color:var(--green)}.stat-icon.violet{background:#f1edff;color:var(--violet)}.stat-icon.amber{background:var(--amber-soft);color:var(--amber)}.content-card{background:#fff;border:1px solid #e3e8ec;border-radius:13px;box-shadow:var(--shadow)}.card-toolbar{padding:18px 20px;display:flex;justify-content:space-between;align-items:center}.card-toolbar h2,.section-title h2,.summary-heading h2,.timeline-card h2{margin:0;font-size:15px}.card-toolbar p,.section-title p{margin:4px 0 0;color:var(--muted);font-size:11px}.toolbar-actions{display:flex;gap:8px}.table-search{width:210px}.tabs{border-top:1px solid #edf0f2;border-bottom:1px solid #edf0f2;padding:0 20px;display:flex;gap:25px}.tabs button{border:0;background:transparent;padding:13px 2px;color:var(--muted);font:inherit;cursor:pointer;border-bottom:2px solid transparent}.tabs button.active{color:var(--blue);font-weight:700;border-color:var(--blue)}.table-wrap{overflow:auto}table{border-collapse:collapse;width:100%}th{background:#fafbfc;color:#788793;font-size:10px;text-align:right;padding:11px 16px;font-weight:650;white-space:nowrap}td{padding:14px 16px;border-top:1px solid #eef1f3;font-size:12px}tbody tr:hover{background:#fbfcfd}.order-number{font-weight:750;color:#29455e}.customer-cell strong,.customer-cell span{display:block}.customer-cell span{color:var(--muted);font-size:10px;margin-top:3px}.status{display:inline-flex;padding:5px 9px;border-radius:14px;font-size:10px;font-weight:750}.status.draft{background:#edf1f4;color:#667682}.status.confirmed,.status.planning{background:var(--blue-soft);color:var(--blue)}.status.ready{background:var(--green-soft);color:var(--green)}.status.on_hold{background:var(--amber-soft);color:var(--amber)}.status.delivered,.status.invoiced{background:#e7f7ef;color:#137c59}.loading-cell{text-align:center;color:var(--muted);padding:35px}.document-title{display:flex;align-items:center;gap:12px}.document-title .back{background:#fff;border:1px solid var(--line)}.document-title .status{margin-right:5px}.document-actions{display:flex;gap:9px}.editor-layout{display:grid;grid-template-columns:minmax(0,1fr) 285px;gap:17px}.editor-main{display:flex;flex-direction:column;gap:17px}.editor-side{display:flex;flex-direction:column;gap:14px}.form-card,.lines-card,.summary-card,.availability-card,.timeline-card{padding:19px}.section-title{display:flex;align-items:center;gap:10px;margin-bottom:18px}.section-icon{width:34px;height:34px;border-radius:9px;background:var(--blue-soft);color:var(--blue);display:grid;place-items:center}.form-grid{display:grid;gap:14px}.form-grid.four{grid-template-columns:repeat(4,1fr)}.form-grid.two{grid-template-columns:repeat(2,1fr)}.span-2{grid-column:span 2}.field{display:flex;flex-direction:column;gap:6px}.field>span{font-size:11px;font-weight:650;color:#465561}.field>span b{color:var(--red)}.field input,.field select,.field textarea,.line-input{border:1px solid #d9e0e5;border-radius:8px;background:#fff;padding:9px 10px;outline:none;font:inherit;min-width:0}.field input:focus,.field select:focus,.field textarea:focus,.line-input:focus{border-color:#6d9bff;box-shadow:0 0 0 3px rgba(37,99,235,.08)}.field small{color:var(--muted);font-size:9px}.field textarea{min-height:82px;resize:vertical}.lines-title{justify-content:space-between}.lines-table-wrap{overflow-x:auto;margin:0 -19px}.lines-table{min-width:1030px}.lines-table th{padding:10px 7px}.lines-table td{padding:7px}.lines-table .product-col{min-width:190px}.line-input{width:100%;padding:8px 7px;font-size:11px}.size-group{display:grid;grid-template-columns:repeat(3,55px);gap:3px}.size-group input{width:55px}.line-total{font-weight:750;white-space:nowrap}.delete-line{color:#b63845}.add-line-wide{width:100%;margin-top:12px;border:1px dashed #b9cae8;background:#f8faff;color:var(--blue);border-radius:9px;padding:10px;cursor:pointer}.summary-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:17px}.summary-heading span{font-size:9px;background:#f0f3f6;padding:4px 7px;border-radius:10px;color:var(--muted)}.summary-row{display:flex;justify-content:space-between;padding:9px 0;color:#667582;font-size:11px}.summary-row strong{color:#34424d}.summary-row.discount strong{color:var(--red)}.summary-total{border-top:1px dashed #cfd7de;margin-top:9px;padding-top:17px;display:flex;justify-content:space-between;align-items:end}.summary-total span{font-weight:700}.summary-total strong{font-size:20px;color:var(--navy)}.summary-total small{font-size:9px}.route-item{display:flex;align-items:center;gap:9px}.route-item strong,.route-item span{display:block}.route-item strong{font-size:11px}.route-item span{font-size:9px;color:var(--muted);margin-top:3px}.route-dot{width:10px;height:10px;border-radius:50%;background:var(--blue);box-shadow:0 0 0 5px var(--blue-soft)}.route-info{margin-top:14px;background:#f5f8fb;border-radius:8px;padding:10px;color:#5d6d7a;font-size:9px;line-height:1.7}.timeline-card h2{margin-bottom:18px}.timeline-item{display:flex;gap:11px;min-height:58px;position:relative}.timeline-item i{width:10px;height:10px;border:2px solid #c7d0d8;border-radius:50%;margin-top:2px;z-index:1;background:#fff}.timeline-item:not(:last-child):after{content:"";position:absolute;right:4px;top:12px;height:44px;border-right:1px dashed #ccd4db}.timeline-item.active i{border-color:var(--green);background:var(--green)}.timeline-item strong,.timeline-item span{display:block}.timeline-item strong{font-size:10px}.timeline-item span{font-size:9px;color:var(--muted);margin-top:4px}.form-message{padding:11px 14px;border-radius:9px;margin-bottom:15px}.form-message.error{background:#fdecef;color:#a72e3b}.form-message.success{background:var(--green-soft);color:#0f7654}.toast{position:fixed;left:25px;bottom:25px;background:#172b3d;color:#fff;padding:12px 17px;border-radius:9px;box-shadow:0 9px 30px rgba(0,0,0,.2);transform:translateY(80px);opacity:0;transition:.25s;z-index:30}.toast.show{transform:none;opacity:1}@media(max-width:1100px){.stats-grid{grid-template-columns:repeat(2,1fr)}.editor-layout{grid-template-columns:1fr}.editor-side{display:grid;grid-template-columns:repeat(3,1fr)}.form-grid.four{grid-template-columns:repeat(2,1fr)}}@media(max-width:760px){.sidebar{width:74px}.brand>div:not(.brand-mark),.nav-item span:not(.nav-icon),.nav-item b,.sidebar-footer>div:not(.avatar),.sidebar-footer button{display:none}.main-area{margin-right:74px}.topbar{padding:0 14px}.global-search{display:none}.page-view{padding:20px 14px}.stats-grid{grid-template-columns:1fr}.page-heading,.document-header{align-items:flex-start;gap:14px}.form-grid.four,.form-grid.two,.editor-side{grid-template-columns:1fr}.span-2{grid-column:auto}.document-actions{flex-direction:column}.card-toolbar{align-items:flex-start;gap:12px;flex-direction:column}.toolbar-actions{width:100%;flex-wrap:wrap}.table-search{flex:1}}
/* Specialized warehouse workspaces */
.warehouse-page-heading{align-items:flex-start;margin-bottom:8px}.warehouse-heading-actions{display:flex;gap:6px;flex-wrap:wrap}.warehouse-kpis{grid-template-columns:repeat(5,minmax(0,1fr));margin-bottom:8px}.warehouse-kpis .stat-card{min-height:78px}.warehouse-alert-kpi{border-color:#f0c36b!important;background:#fffaf0!important}.warehouse-module-tabs{display:flex;gap:3px;padding:4px;margin-bottom:8px;border:1px solid #b9c8d8;border-radius:9px;background:#eaf0f6;overflow-x:auto}.warehouse-module-tabs button{border:1px solid transparent;background:transparent;color:#25384d;font-weight:800;padding:7px 12px;border-radius:6px;white-space:nowrap;cursor:pointer}.warehouse-module-tabs button.active{background:#fff;border-color:#8fa8c0;color:#0b58a3;box-shadow:0 1px 3px #183a5b1a}.warehouse-panel>.content-card{margin-bottom:8px}.warehouse-overview-grid{display:grid;grid-template-columns:2fr 1fr;gap:8px;margin-bottom:8px}.warehouse-identity{display:flex;justify-content:space-between;gap:20px;align-items:center;padding:14px}.warehouse-identity h2{margin:7px 0 2px}.warehouse-identity p{margin:0}.warehouse-identity dl{display:grid;grid-template-columns:repeat(2,minmax(120px,1fr));gap:6px;margin:0;min-width:390px}.warehouse-identity dl div{border:1px solid #c5d1dd;border-radius:7px;padding:6px 9px;background:#f8fafc}.warehouse-identity dt{font-size:12px;color:#4b6178}.warehouse-identity dd{margin:2px 0 0;font-weight:800}.warehouse-type-badge{display:inline-flex;border:1px solid #9db5cc;background:#edf5fc;color:#174f7f;border-radius:999px;padding:2px 7px;font-size:12px;font-weight:800}.warehouse-alert-card{padding:14px;border-color:#e2b14c}.warehouse-alert-card h2{margin:0}.warehouse-alert-number{font-size:30px;font-weight:900;color:#a45c00;margin:8px 0 0}.warehouse-alert-card span{display:block;margin-top:4px;color:#42576d}.warehouse-panel table th,.warehouse-panel table td{padding-top:6px;padding-bottom:6px;color:#1b2c3e;border-color:#b8c7d5}.warehouse-panel table th{background:#e9f0f6;color:#16293c}.warehouse-panel td small{display:block;color:#4a6075;margin-top:2px}.warehouse-panel .customer-cell strong{color:#102b44}.stock-warning{background:#fff8e8}.stock-expired{background:#fff0f0}.stock-expired td{color:#8b1e1e}.positive-number{color:#08754f}.negative-number{color:#b12a2a}.warehouse-modal-card{width:min(980px,96vw)}.warehouse-profile-fields{border-top:1px solid #bdcbd8;margin-top:10px;padding-top:10px}.form-grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}.span-3{grid-column:1/-1}
@media(max-width:1100px){.warehouse-kpis{grid-template-columns:repeat(3,1fr)}.warehouse-overview-grid{grid-template-columns:1fr}.warehouse-identity{align-items:flex-start;flex-direction:column}.warehouse-identity dl{min-width:0;width:100%}}
@media(max-width:720px){.warehouse-kpis{grid-template-columns:repeat(2,1fr)}.form-grid.three{grid-template-columns:1fr}.span-2,.span-3{grid-column:auto}.warehouse-identity dl{grid-template-columns:1fr}.warehouse-heading-actions{width:100%}}
/* Compact operational warehouse layout */
#warehouse-finished-view,#warehouse-spares-view,#warehouse-chemicals-view{padding:7px 10px 28px}.warehouse-compact-header{height:46px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #aebfce;margin-bottom:5px}.warehouse-compact-header>div:first-child{display:flex;align-items:center;gap:8px;min-width:0}.warehouse-compact-header h1{font-size:18px;line-height:1;margin:0;color:#102b44}.warehouse-compact-header small{font-size:10px;color:#53687b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.warehouse-refresh{border:1px solid #afc0d0;background:#fff;color:#174f7f;width:30px;height:30px}.warehouse-three-tabs{display:grid;grid-template-columns:repeat(3,minmax(120px,190px));justify-content:start;margin-bottom:5px;padding:2px;background:#e6edf3}.warehouse-three-tabs button{padding:6px 16px}.warehouse-balance-strip{min-height:36px;display:flex;align-items:center;gap:0;border:1px solid #aebfce;background:#fff;border-radius:7px;margin-bottom:5px;overflow:auto}.warehouse-balance-strip span{display:flex;gap:6px;align-items:center;padding:6px 14px;border-left:1px solid #c5d0da;font-size:11px;color:#40576c;white-space:nowrap}.warehouse-balance-strip span:last-child{border-left:0}.warehouse-balance-strip strong{font-size:13px;color:#102b44}.warehouse-data-card{border-color:#aebfce;border-radius:7px;box-shadow:none}.preparation-movements-card{margin-bottom:5px}.warehouse-table-toolbar{min-height:40px;padding:5px 9px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #b9c7d3}.warehouse-table-toolbar>div{display:flex;align-items:baseline;gap:9px}.warehouse-table-toolbar strong{font-size:13px;color:#102b44}.warehouse-table-toolbar span{font-size:10px;color:#53687b}.warehouse-table-toolbar .button,.warehouse-movement-actions .button{padding:6px 10px;border-radius:6px;font-size:11px}.warehouse-panel table th,.warehouse-panel table td{padding:5px 8px}.warehouse-panel table th{font-size:10px}.warehouse-panel table td{font-size:11px}.warehouse-panel .loading-cell{padding:22px}.warehouse-movement-actions{display:flex;gap:5px;margin-bottom:5px}.warehouse-ledger-card{margin-top:5px}.warehouse-panel .document-action-cell{gap:2px;flex-wrap:nowrap}.warehouse-panel .doc-action{padding:4px 5px;font-size:9px}.warehouse-profile-fields{margin-top:6px;padding-top:6px}
@media(max-width:760px){.warehouse-compact-header small{display:none}.warehouse-three-tabs{grid-template-columns:repeat(3,1fr)}.warehouse-balance-strip span{padding:5px 9px}.warehouse-table-toolbar{align-items:flex-start}.warehouse-table-toolbar>div{display:block}.warehouse-movement-actions{flex-wrap:wrap}}
#issue-requests-view{padding:7px 10px 28px}#issue-requests-view>.page-heading{min-height:46px;margin-bottom:5px;border-bottom:1px solid #aebfce}#issue-requests-view>.page-heading h1{font-size:18px;line-height:1;margin:2px 0}#issue-requests-view>.page-heading p{font-size:10px}#issue-requests-view>.page-heading .button{padding:6px 10px;font-size:11px}#issue-requests-view>.content-card{border-color:#aebfce;border-radius:7px;box-shadow:none;margin-bottom:5px}#issue-requests-view .card-toolbar{padding:6px 9px;min-height:40px}#issue-requests-view th,#issue-requests-view td{padding:5px 8px}
.inventory-content-nav{display:flex;align-items:center;gap:2px;min-height:34px;margin-bottom:4px;padding:2px;border:1px solid #aebfce;border-radius:7px;background:#e6edf3}.inventory-content-nav button{border:1px solid transparent;background:transparent;color:#263d52;padding:5px 11px;border-radius:5px;font:inherit;font-size:11px;font-weight:750;cursor:pointer}.inventory-content-nav button.active{background:#fff;border-color:#91a9bf;color:#0b58a3}.inventory-content-nav button:hover{background:#f8fbfd}#issue-history-view{padding:7px 10px 28px}#issue-history-view>.page-heading{min-height:46px;margin-bottom:5px;border-bottom:1px solid #aebfce}#issue-history-view>.page-heading h1{font-size:18px;line-height:1;margin:2px 0}#issue-history-view>.page-heading p{font-size:10px}#issue-history-view>.page-heading .button{padding:6px 10px;font-size:11px}#issue-history-view>.content-card{border-color:#aebfce;border-radius:7px;box-shadow:none;margin-bottom:5px}#issue-history-view .card-toolbar{padding:6px 9px;min-height:40px}#issue-history-view th,#issue-history-view td{padding:5px 8px}
.stats-grid,.sales-kpi-grid,.warehouse-balance-strip{display:none!important}
.warehouse-opening-fields{margin-top:7px;padding-top:7px;border-top:2px solid #9fb3c5}.warehouse-opening-title{display:flex;align-items:baseline;gap:8px;margin-bottom:6px}.warehouse-opening-title strong{font-size:13px;color:#102b44}.warehouse-opening-title span{font-size:10px;color:#40576c}.warehouse-opening-fields .field input{min-height:30px}
.warehouse-three-tabs{grid-template-columns:repeat(3,minmax(105px,190px))}.warehouse-receipt-modal-card{width:min(1120px,96vw)}.warehouse-receipt-head{margin-bottom:6px}.warehouse-receipt-lines-head{display:flex;align-items:center;justify-content:space-between;padding:5px 0}.warehouse-receipt-lines-head strong{font-size:13px;color:#102b44}.warehouse-receipt-lines-wrap{border:1px solid #aebfce;border-radius:7px;max-height:48vh}.warehouse-receipt-lines-wrap th,.warehouse-receipt-lines-wrap td{padding:5px}.warehouse-receipt-lines-wrap select,.warehouse-receipt-lines-wrap input{height:30px;min-height:30px;border:1px solid #90a7bb;border-radius:5px;background:#fff;color:#102b44;font-size:12px;padding:3px 6px}.warehouse-receipt-lines-wrap .receipt-product{min-width:220px;width:100%}.warehouse-receipt-lines-wrap .receipt-number{width:105px}.warehouse-receipt-lines-wrap .receipt-lot{width:130px}.warehouse-receipt-lines-wrap .receipt-date{width:135px}.warehouse-receipt-remove{width:28px;height:28px;border:1px solid #e2a4a4;border-radius:5px;background:#fff;color:#b42318;cursor:pointer}.warehouse-receipt-notes{margin-top:6px}
.warehouse-receipt-modal-card{max-height:96vh}.warehouse-receipt-modal-card .modal-header{padding:7px 10px 6px}.warehouse-receipt-modal-card .modal-header h2{font-size:16px;margin:1px 0 2px}.warehouse-receipt-modal-card .modal-header p{font-size:9px}.warehouse-receipt-modal-card .modal-header .icon-button{width:28px;height:28px}.warehouse-receipt-modal-card .modal-form{padding:7px 10px;gap:6px}.warehouse-receipt-modal-card .field{gap:2px}.warehouse-receipt-modal-card .field>span{font-size:9px}.warehouse-receipt-modal-card .field input,.warehouse-receipt-modal-card .field textarea{padding:4px 7px;min-height:29px;border-radius:5px}.warehouse-receipt-modal-card .form-grid{gap:6px}.warehouse-receipt-modal-card .warehouse-receipt-lines-head{padding:3px 10px}.warehouse-receipt-lines-head strong{display:flex;align-items:baseline;gap:7px}.warehouse-receipt-lines-head strong small{font-size:8px;font-weight:600;color:#506477}.warehouse-receipt-modal-card .warehouse-receipt-lines-wrap{margin:0 10px;max-height:52vh}.warehouse-receipt-modal-card .warehouse-receipt-lines-wrap th,.warehouse-receipt-modal-card .warehouse-receipt-lines-wrap td{padding:3px 4px}.warehouse-receipt-modal-card .warehouse-receipt-lines-wrap select,.warehouse-receipt-modal-card .warehouse-receipt-lines-wrap input{height:27px;min-height:27px;padding:2px 5px;font-size:11px}.warehouse-receipt-modal-card .warehouse-receipt-remove{width:25px;height:25px}.warehouse-receipt-modal-card .warehouse-receipt-notes{margin:4px 10px}.warehouse-receipt-modal-card .warehouse-receipt-notes textarea{min-height:38px;height:38px}.warehouse-receipt-modal-card .modal-actions{padding:6px 10px;gap:5px}.warehouse-receipt-modal-card .modal-actions .button{padding:6px 10px;font-size:10px}
.issue-quantity-with-uom{display:grid;grid-template-columns:minmax(80px,1fr) minmax(95px,auto);gap:4px;align-items:center}.issue-quantity-with-uom input,.issue-quantity-with-uom select,.weight-issue-uom,.receipt-uom{height:28px;min-height:28px;border:1px solid #8fa7ba;border-radius:4px;background:#fff;color:#102f46;font:inherit;font-size:10px;padding:2px 5px}
.record-pager{min-height:38px;display:flex;align-items:center;justify-content:center;gap:10px;padding:5px 8px;border-top:1px solid #b8c7d5;background:#f8fafb}.record-pager span,.record-pager strong{font-size:9px;color:#4b6072}.record-pager .button{padding:5px 10px;border-radius:5px;font-size:10px}

/* Integrated accounting: compact, data-first, no statistical cards */
#accounting-general-view,#accounting-customers-view,#accounting-suppliers-view,#accounting-costs-view,#accounting-treasury-view{padding:7px 10px 28px}.accounting-pro-head{height:46px;display:flex;align-items:center;border-bottom:1px solid #aebfce;margin-bottom:4px}.accounting-pro-head h1{font-size:18px;line-height:1;margin:2px 0;color:#102b44}.accounting-pro-head p{margin:0;font-size:10px;color:#53687b}.accounting-inner-tabs{display:flex;align-items:center;gap:2px;min-height:34px;margin-bottom:4px;padding:2px;border:1px solid #aebfce;border-radius:7px;background:#e6edf3}.accounting-inner-tabs button{border:1px solid transparent;background:transparent;color:#263d52;padding:5px 12px;border-radius:5px;font:inherit;font-size:11px;font-weight:750;cursor:pointer}.accounting-inner-tabs button.active{background:#fff;border-color:#91a9bf;color:#0b58a3}.accounting-table-card{border-color:#aebfce;border-radius:7px;box-shadow:none}.accounting-table-card .card-toolbar.compact{min-height:40px;padding:5px 9px;border-bottom:1px solid #b9c7d3}.accounting-table-card .card-toolbar h2{font-size:13px;color:#102b44}.accounting-table-card .card-toolbar p{font-size:9px}.accounting-table-card .button,.accounting-compact-form .button{padding:6px 10px;border-radius:6px;font-size:10px}.accounting-table-card th,.accounting-table-card td{padding:5px 8px;color:#1b2c3e;border-color:#b8c7d5}.accounting-table-card th{background:#e9f0f6;color:#16293c;font-size:10px}.accounting-table-card td{font-size:11px}.accounting-table-card td small{display:block;margin-top:2px;color:#53687b}.accounting-compact-form{border:1px solid #91a9bf;border-radius:7px;background:#fff;margin-bottom:4px;padding:7px 9px}.compact-form-row{display:grid;grid-template-columns:repeat(5,minmax(120px,1fr));gap:5px}.compact-form-row label{display:flex;flex-direction:column;gap:2px}.compact-form-row label.wide{grid-column:span 2}.compact-form-row label span{font-size:9px;font-weight:750;color:#40576c}.compact-form-row input,.compact-form-row select,.journal-edit-line input,.journal-edit-line select{height:29px;min-width:0;border:1px solid #9eb1c2;border-radius:5px;background:#fff;padding:3px 6px;font:inherit;font-size:11px;color:#102b44}.compact-form-actions{display:flex;justify-content:flex-start;gap:5px;margin-top:6px}.journal-lines-editor{margin-top:6px;border:1px solid #b7c6d3;border-radius:6px;overflow:hidden}.journal-edit-line{display:grid;grid-template-columns:28px minmax(190px,1.4fr) minmax(150px,1fr) 95px 95px minmax(150px,1fr);gap:4px;padding:3px 5px;border-top:1px solid #d5dee6}.journal-edit-line:first-child{border-top:0}.journal-edit-line b{display:grid;place-items:center;color:#53687b}.journal-mini-lines{display:flex;flex-direction:column;gap:2px;max-width:330px}.journal-mini-lines span{white-space:nowrap;font-size:9px}.treasury-direction{display:inline-flex;padding:2px 7px;border-radius:10px;font-size:10px;font-weight:800}.treasury-direction.in{background:#e8f7ef;color:#08754f}.treasury-direction.out{background:#fff0f0;color:#b12a2a}.amount-due{color:#b12a2a}.amount-paid{color:#08754f}
@media(max-width:900px){.compact-form-row{grid-template-columns:repeat(2,minmax(120px,1fr))}.journal-edit-line{grid-template-columns:25px 1fr 1fr}.journal-edit-line input,.journal-edit-line select{width:100%}}@media(max-width:620px){.accounting-pro-head p{display:none}.accounting-inner-tabs{overflow:auto}.compact-form-row{grid-template-columns:1fr}.compact-form-row label.wide{grid-column:auto}}
.financial-report-card{border-color:#aebfce;box-shadow:none}.financial-statements-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;padding:6px}.financial-statement{border:1px solid #aebfce;border-radius:6px;padding:6px 9px}.financial-statement h2{margin:0 0 4px;font-size:13px;color:#102b44}.statement-line{display:flex;justify-content:space-between;align-items:center;min-height:27px;border-top:1px solid #d8e0e7;font-size:11px}.statement-line.total{font-weight:800;border-top:2px solid #8196a9}.statement-line.grand{font-weight:900;background:#eaf2f8;margin:2px -5px -2px;padding:0 5px}.report-filter{margin:0;padding:0;border:0}.report-filter label{display:flex;align-items:center;gap:4px;font-size:9px}.report-filter input{height:27px}.accounting-table-card tfoot th{background:#dfe8ef;color:#102b44;border-top:2px solid #8196a9}.accounting-pro-head{height:38px}.accounting-pro-head h1{font-size:16px}.accounting-pro-head p{margin:1px 0;font-size:9px}.accounting-inner-tabs{min-height:31px;margin-bottom:3px}.accounting-inner-tabs button{padding:5px 9px}.accounting-table-card .card-toolbar{padding:5px 8px;min-height:34px}.accounting-table-card th,.accounting-table-card td{padding:4px 7px}.accounting-table-card .status{padding:2px 6px}.button{border-radius:5px;padding:6px 10px;font-size:11px;box-shadow:none!important}
@media(max-width:760px){.financial-statements-grid{grid-template-columns:1fr}.report-filter{width:100%;display:grid;grid-template-columns:1fr 1fr auto}.accounting-pro-head{height:34px}}
.tax-summary-lines{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;padding:6px}.tax-summary-lines>div{border:1px solid #aebfce;border-radius:5px;padding:7px 9px;display:flex;justify-content:space-between;align-items:center;font-size:11px}.tax-summary-lines .grand{background:#eaf2f8;border-color:#8098ad;font-weight:900}@media(max-width:620px){.tax-summary-lines{grid-template-columns:1fr}}
#enterprise-reports-view{padding:7px 10px 28px}.reports-head{height:43px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #aebfce;margin-bottom:4px}.reports-head h1{font-size:17px;line-height:1;margin:2px 0}.reports-head p{font-size:9px;margin:1px 0;color:#526779}.reports-actions{display:flex;gap:4px}.reports-filter{display:grid;grid-template-columns:minmax(230px,1.5fr) 135px 135px minmax(180px,1fr) auto;gap:5px;align-items:end;border:1px solid #aebfce;border-radius:6px;background:#fff;padding:5px 7px;margin-bottom:4px}.reports-filter label{display:flex;flex-direction:column;gap:2px}.reports-filter label span{font-size:9px;font-weight:800;color:#40576c}.reports-filter input,.reports-filter select{height:28px;border:1px solid #9eb1c2;border-radius:4px;padding:3px 6px;font:inherit;font-size:11px;color:#102b44}.report-category-tabs{display:flex;gap:2px;padding:2px;margin-bottom:4px;border:1px solid #aebfce;border-radius:6px;background:#e7eef4;overflow-x:auto}.report-category-tabs button{border:1px solid transparent;background:transparent;padding:5px 10px;border-radius:4px;white-space:nowrap;font:inherit;font-size:10px;font-weight:800;color:#30485e;cursor:pointer}.report-category-tabs button.active{background:#fff;border-color:#8fa8c0;color:#0b58a3}.enterprise-report-card{border-color:#aebfce;border-radius:6px;box-shadow:none}.report-result-head{min-height:38px;padding:5px 8px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #b9c7d3}.report-result-head h2{font-size:13px;margin:0}.report-result-head p,.report-result-head span{font-size:9px;margin:2px 0;color:#526779}.enterprise-report-card th,.enterprise-report-card td{padding:4px 7px;border-color:#b9c7d3;font-size:10px;color:#142b40}.enterprise-report-card th{background:#e8eff5;color:#18334c}.enterprise-report-card tfoot th{background:#dce7ef;font-weight:900}.report-pagination{display:flex;justify-content:center;align-items:center;gap:8px;padding:5px;border-top:1px solid #b9c7d3}.report-pagination span{font-size:10px;font-weight:800}.sidebar .nav-list{overflow-y:auto;overflow-x:hidden;padding-left:2px}.sidebar .nav-list::-webkit-scrollbar{width:4px}.sidebar .nav-list::-webkit-scrollbar-thumb{background:#47637b;border-radius:4px}@media(max-width:800px){.reports-filter{grid-template-columns:1fr 1fr}.reports-filter label:first-child,.reports-filter .report-search{grid-column:1/-1}.reports-head{height:auto;min-height:42px}.reports-head>div:first-child p{display:none}}
.accounting-inline-filter{display:flex;align-items:end;gap:6px;padding:7px;border-bottom:1px solid #b8c9d8;background:#fff;flex-wrap:wrap}.accounting-inline-filter select,.accounting-inline-filter input{height:32px;min-width:150px;border:1px solid #9fb3c5;border-radius:5px;padding:4px 7px;color:#10283d;background:#fff;font-weight:600}.accounting-inline-filter select{min-width:260px}.check-label{display:flex!important;align-items:center!important;justify-content:flex-start;gap:6px;min-width:130px}.check-label input{width:16px!important;height:16px!important;min-width:16px!important}.small-action.danger{color:#a61b1b;border-color:#e8b1b1;background:#fff7f7}

/* Delivery measurement and billing: compact operational layout */
.delivery-measure-wrap{border:1px solid #aebfce;border-radius:7px;overflow:auto}.delivery-measure-wrap th,.delivery-measure-wrap td{padding:5px 6px;vertical-align:top}.delivery-measure-wrap th{background:#e9f0f6;color:#16293c}.delivery-size-inputs,.delivery-percent-inputs{display:flex;gap:3px;align-items:end}.delivery-size-inputs label,.delivery-percent-inputs label,.measure-field{display:flex;flex-direction:column;gap:2px}.delivery-size-inputs span,.delivery-percent-inputs span,.measure-field span{font-size:9px;font-weight:750;color:#40576c;white-space:nowrap}.delivery-size-inputs input{width:68px}.delivery-percent-inputs input{width:64px}.measure-field input{width:105px}.delivery-measure-wrap input{height:29px;border:1px solid #91a7ba;border-radius:5px;padding:3px 5px;font:inherit;font-size:11px;color:#102b44}.delivery-measure-wrap input:disabled{background:#f1f4f6;color:#263d52;opacity:1}.delivery-billable,.delivery-measured-total{font-weight:800;white-space:nowrap}.delivery-measure-total{display:flex;justify-content:flex-end;align-items:center;gap:14px;padding:8px 10px;border:1px solid #9fb3c5;border-top:0;background:#f8fafc}.delivery-measure-total strong{font-size:16px;color:#08754f}
@media(max-width:760px){.delivery-size-inputs{min-width:215px}.delivery-measure-wrap table{min-width:980px}}
.cost-cycle-strip{min-height:32px;display:flex;align-items:center;gap:8px;margin-bottom:4px;padding:4px 8px;border:1px solid #9fb2c3;border-radius:5px;background:#eef4f8;color:#2d455b;font-size:9px}.cost-cycle-strip i{font-style:normal;color:#7890a5}.cost-cycle-strip strong{color:#08754f}.profit-totals{display:flex;gap:4px;flex-wrap:wrap}.profit-totals span{padding:3px 7px;border:1px solid #b8c7d4;border-radius:4px;background:#f7fafc;font-size:9px}.profit-totals b{margin-right:3px;color:#102b44}.margin-badge{display:inline-flex;min-width:46px;justify-content:center;padding:2px 6px;border-radius:10px;font-weight:800}.margin-badge.good{background:#e8f7ef;color:#08754f}.margin-badge.low{background:#fff5dd;color:#9a6200}.margin-badge.negative{background:#fff0f0;color:#b12a2a}#prices-view{padding:7px 10px 28px}#prices-view>.page-heading{min-height:43px;margin-bottom:4px;border-bottom:1px solid #aebfce}#prices-view>.page-heading h1{font-size:17px;margin:2px 0}#prices-view>.page-heading p{font-size:9px}#prices-view>.price-lists-grid{margin-bottom:4px}#prices-view>.content-card{border-color:#aebfce;border-radius:6px;box-shadow:none}#prices-view .card-toolbar{min-height:36px;padding:4px 7px}#prices-view th,#prices-view td{padding:4px 7px;font-size:10px;border-color:#b9c7d3}@media(max-width:760px){.cost-cycle-strip{overflow:auto}.cost-cycle-strip span,.cost-cycle-strip strong{white-space:nowrap}.profit-totals{margin-top:3px}}
.customers-heading{min-height:43px;margin-bottom:4px;border-bottom:1px solid #aebfce}.customers-heading h1{font-size:17px;margin:2px 0}.customers-heading p{font-size:9px}.customer-directory-tabs{display:flex;gap:2px;min-height:32px;margin-bottom:4px;padding:2px;border:1px solid #aebfce;border-radius:6px;background:#e7eef4}.customer-directory-tabs button{min-width:130px;border:1px solid transparent;border-radius:4px;background:transparent;padding:5px 12px;font:inherit;font-size:10px;font-weight:800;color:#30485e;cursor:pointer}.customer-directory-tabs button.active{background:#fff;border-color:#8fa8c0;color:#0b58a3}.customer-directory-tabs b{display:inline-grid;place-items:center;min-width:19px;height:17px;margin-right:5px;padding:0 4px;border-radius:9px;background:#d8e5f1;font-size:9px}.customer-directory-tabs button.active b{background:#dceaff;color:#0757a0}#customers-view{padding:7px 10px 28px}#customers-view>.content-card{border-color:#aebfce;border-radius:6px;box-shadow:none}#customers-view .card-toolbar{min-height:39px;padding:4px 7px;border-bottom:1px solid #b9c7d3}#customers-view .card-toolbar h2{font-size:12px}#customers-view .card-toolbar p{font-size:9px}#customers-view th,#customers-view td{padding:4px 7px;border-color:#b9c7d3;font-size:10px}#customers-view th{background:#e8eff5;color:#18334c}.customer-actions{display:flex;gap:3px;white-space:nowrap}.customer-actions .small-action{padding:3px 6px;font-size:9px}.agent-customers-card{width:min(1120px,96vw)}.agent-summary-line{display:flex;align-items:center;gap:0;border-bottom:1px solid #afbfcd;background:#f5f8fa}.agent-summary-line span{padding:7px 14px;border-left:1px solid #c2ced8;font-size:10px;color:#40576c}.agent-summary-line strong{margin-right:5px;color:#102b44}.agent-customers-card th,.agent-customers-card td{padding:5px 8px;font-size:10px}@media(max-width:700px){.customer-directory-tabs button{flex:1;min-width:0}.customers-heading>div p{display:none}.customer-actions{flex-direction:column}.agent-summary-line{overflow:auto}.agent-summary-line span{white-space:nowrap}}

/* Ultra-dense warehouse workspace: one command line, maximum data area */
.topbar{height:40px;padding:0 10px}.topbar .global-search{height:29px;width:220px;border-radius:6px}.topbar .icon-button{width:28px;height:28px;font-size:14px}.topbar .connection{padding:4px 8px;font-size:9px}.topbar .crumbs{font-size:10px;gap:5px}
#warehouse-finished-view,#warehouse-spares-view,#warehouse-chemicals-view{padding:2px 6px 12px}
.warehouse-command-bar{height:35px;display:flex;align-items:center;gap:6px;border-bottom:1px solid #9fb2c3;margin-bottom:3px;background:#f7f9fb}
.warehouse-command-bar .warehouse-compact-header{height:34px;min-width:max-content;flex:0 0 auto;border:0;margin:0;padding:0 2px;gap:5px}
.warehouse-command-bar .warehouse-compact-header>div:first-child{gap:5px}.warehouse-command-bar .warehouse-compact-header h1{font-size:15px}.warehouse-command-bar .warehouse-compact-header small{max-width:230px;font-size:8px}.warehouse-command-bar .warehouse-type-badge{padding:1px 5px;font-size:9px}
.warehouse-command-bar .warehouse-heading-actions{order:3}.warehouse-command-bar .warehouse-refresh{width:25px;height:25px;border-radius:5px;font-size:13px}
.warehouse-command-bar .warehouse-three-tabs{flex:1;height:30px;min-width:320px;margin:0;padding:1px;border:0;border-radius:5px;grid-template-columns:repeat(3,minmax(90px,1fr));background:#e4ebf1}
.warehouse-command-bar .warehouse-three-tabs button{height:27px;padding:2px 8px;border-radius:4px;font-size:10px;line-height:1}
.warehouse-table-toolbar{min-height:31px;height:31px;padding:2px 6px}.warehouse-table-toolbar>div{gap:6px}.warehouse-table-toolbar strong{font-size:11px}.warehouse-table-toolbar span{font-size:8px}.warehouse-table-toolbar .button,.warehouse-movement-actions .button{min-height:24px;padding:3px 7px;border-radius:4px;font-size:9px;box-shadow:none}
.warehouse-panel table th{padding:3px 6px;height:24px;font-size:9px;line-height:1.05}.warehouse-panel table td{padding:3px 6px;height:30px;font-size:10px;line-height:1.12}.warehouse-panel table td small,.warehouse-panel .customer-cell span{margin-top:1px;font-size:8px;line-height:1.05}.warehouse-panel table td strong{line-height:1.05}.warehouse-panel .warehouse-type-badge{padding:2px 5px;font-size:8px}.warehouse-panel .document-action-cell{gap:1px}.warehouse-panel .doc-action,.warehouse-panel .small-action{min-height:22px;padding:2px 4px;font-size:8px;border-radius:4px}.warehouse-data-card{border-radius:5px}.warehouse-panel .table-wrap{scrollbar-width:thin}
.warehouse-movement-actions{min-height:27px;margin-bottom:3px;gap:3px}.warehouse-ledger-card,.preparation-movements-card{margin-top:3px;margin-bottom:3px}.record-pager{min-height:30px;height:30px;padding:2px 5px}
@media(max-width:900px){.warehouse-command-bar{height:auto;align-items:stretch;flex-wrap:wrap}.warehouse-command-bar .warehouse-compact-header{width:100%}.warehouse-command-bar .warehouse-three-tabs{width:100%;flex-basis:100%}}

/* Combined preparation form: grouped by density with compact operational rows */
.batch-preparation-modal{width:min(1320px,97vw);padding:10px}.batch-preparation-modal .modal-header{margin-bottom:5px}.batch-preparation-modal .modal-header h2{margin:1px 0;font-size:17px}.batch-preparation-modal .modal-header p{margin:1px 0;font-size:9px}.batch-preparation-modal .modal-form{gap:4px;margin:4px 0}.batch-preparation-lines{max-height:58vh;border:1px solid #9fb2c3;border-radius:5px}.batch-preparation-lines table{min-width:1120px}.batch-preparation-lines th,.batch-preparation-lines td{padding:4px 6px;font-size:10px;border-color:#b9c7d3}.batch-preparation-lines th{position:sticky;top:0;z-index:2;background:#e7eef4;color:#152d43}.batch-preparation-lines td small{display:block;margin-top:1px;font-size:8px;color:#4c6174}.batch-preparation-lines .preparation-piece-input{width:82px;height:27px;border:1px solid #7f9ab1;border-radius:4px;padding:2px 5px;font:inherit;font-weight:800}.preparation-density-header td{position:sticky;top:26px;z-index:1;background:#dceaf4!important;border-top:2px solid #6988a3!important;color:#102b44}.preparation-density-header td>strong,.preparation-density-header td>span{display:inline-block;margin-left:22px;font-size:11px}.preparation-density-header td>span:last-child{color:#075f43}.batch-preparation-modal .modal-actions{padding-top:6px;gap:5px}.batch-preparation-modal .modal-actions .button{min-height:29px}
.toast{z-index:1000;max-width:min(520px,calc(100vw - 30px));font-weight:750}

/* Compact product catalog, read-only sales invoices, and table-first preparation form */
#sales-invoices-view{padding:7px 10px 28px}#sales-invoices-view>.page-heading{min-height:42px;margin-bottom:4px;border-bottom:1px solid #aebfce}#sales-invoices-view>.page-heading h1{font-size:17px;margin:1px 0}#sales-invoices-view>.page-heading p{font-size:9px}#sales-invoices-view>.content-card{border-color:#aebfce;border-radius:6px;box-shadow:none}#sales-invoices-view th,#sales-invoices-view td{padding:4px 6px;font-size:10px;border-color:#b9c7d3}
.preparation-density-summary{margin:3px 0 5px;border:1px solid #8ea6ba;border-radius:5px;overflow:auto}.preparation-density-summary table{width:100%;border-collapse:collapse;min-width:780px}.preparation-density-summary th,.preparation-density-summary td{padding:3px 5px;border-bottom:1px solid #bdcad5;border-left:1px solid #d4dde5;font-size:9px;white-space:nowrap}.preparation-density-summary th{background:#dce8f1;color:#132f47;font-weight:850}.preparation-density-summary tbody tr:last-child td{border-bottom:0}.preparation-density-summary td:last-child{background:#edf8f2;color:#086444}.batch-preparation-modal{width:min(1160px,97vw);padding:6px}.batch-preparation-modal .modal-header{margin-bottom:2px}.batch-preparation-modal .modal-header h2{font-size:15px}.batch-preparation-modal .modal-form{gap:2px;margin:2px 0}.batch-preparation-lines{max-height:50vh}.batch-preparation-lines table{min-width:880px}.batch-preparation-lines th,.batch-preparation-lines td{padding:2px 4px;font-size:9px;line-height:1.2}.batch-preparation-lines td small{font-size:8px}.batch-preparation-lines .preparation-piece-input{width:64px;height:23px;padding:1px 4px}.batch-preparation-modal .modal-actions{padding-top:3px}.batch-preparation-modal .modal-actions .button{min-height:26px;padding:3px 8px}
/* Authenticated agent workspace: deliberately independent from the ERP shell. */
.agent-portal-shell{min-height:100vh;background:#f3f7fb;color:#10283d}
.agent-portal-header{height:56px;padding:0 18px;background:#0c304d;color:#fff;display:flex;align-items:center;justify-content:space-between;box-shadow:0 2px 10px #0c304d24;position:sticky;top:0;z-index:10}
.agent-portal-header .login-brand{display:flex;align-items:center;gap:9px}.agent-portal-header .login-brand span,.agent-session span{display:block;color:#c5d9e8;font-size:12px}.agent-session{display:flex;align-items:center;gap:14px}.agent-session>div{text-align:left}.agent-portal-header .button{min-height:32px;padding:5px 12px;color:#fff;border-color:#66869d;background:#ffffff0f}
.agent-portal-main{width:min(1400px,calc(100% - 24px));margin:12px auto 30px}
.agent-welcome{background:linear-gradient(115deg,#fff,#f1f8ff);border:1px solid #b7ccdc;border-radius:9px;padding:12px 15px;display:flex;align-items:center;justify-content:space-between;margin-bottom:9px}.agent-welcome h1{font-size:22px;margin:1px 0 2px}.agent-welcome p{margin:0;color:#49677d;font-size:13px}
.agent-order-form{padding:10px;margin-bottom:10px}.agent-order-head{display:grid;grid-template-columns:2fr 1fr 1fr;gap:8px;padding-bottom:8px;border-bottom:1px solid #c4d4e0}.agent-lines-title{display:flex;justify-content:space-between;align-items:center;padding:8px 0 5px}.agent-lines-title h2{margin:0;font-size:17px}.agent-lines-title p{margin:1px 0 0;color:#5b7182;font-size:12px}
.agent-lines{display:grid;gap:6px}.agent-order-line{display:grid;grid-template-columns:28px minmax(220px,2fr) 92px 120px minmax(250px,1.5fr) 86px 100px minmax(150px,1fr) 105px 28px;gap:6px;align-items:end;border:1px solid #aebfcd;border-right:4px solid #2d70d6;border-radius:7px;padding:7px;background:#fff}.agent-line-no{align-self:center;background:#103c61;color:#fff;border-radius:5px;text-align:center;padding:5px 0;font-weight:800}.agent-order-line .field{gap:2px}.agent-order-line .field span{font-size:11px;font-weight:700;color:#243f54}.agent-order-line input,.agent-order-line select,.agent-order-head input,.agent-order-head select{min-height:31px;height:31px;padding:3px 6px;border-color:#9fb5c5;color:#10283d}.agent-measures{display:grid;grid-template-columns:repeat(3,1fr);gap:4px}.agent-weight-note{height:31px;display:flex;align-items:center;justify-content:center;border:1px dashed #9fb5c5;border-radius:5px;color:#49677d;font-size:12px}.agent-line-total{height:31px;display:flex;flex-direction:column;justify-content:center}.agent-line-total span{font-size:10px;color:#5b7182}.agent-line-total strong{font-size:13px}.agent-order-line>.line-action{align-self:center}.agent-notes{margin-top:8px}.agent-notes textarea{min-height:52px}.agent-order-footer{display:flex;justify-content:space-between;align-items:center;border-top:1px solid #c4d4e0;padding-top:8px;margin-top:8px}.agent-order-footer>span{font-weight:800;color:#24577f}.agent-recent{padding:0;overflow:hidden}.agent-recent .card-toolbar{padding:8px 10px}
@media(max-width:1050px){.agent-order-line{grid-template-columns:28px minmax(220px,2fr) 90px 120px 1fr 86px 100px 28px}.agent-measures,.agent-weight-note{grid-column:2/6}.agent-line-notes{grid-column:2/7}.agent-line-total{grid-column:7}.agent-order-line>.line-action{grid-column:8}.agent-portal-main{width:calc(100% - 16px)}}
@media(max-width:700px){.agent-portal-header{height:50px;padding:0 8px}.agent-portal-header .brand-mark{width:30px;height:30px}.agent-session{gap:7px}.agent-session span{display:none}.agent-portal-main{width:calc(100% - 10px);margin-top:6px}.agent-welcome{padding:9px;align-items:flex-start;gap:8px}.agent-welcome h1{font-size:17px}.agent-welcome p{font-size:11px;line-height:1.5}.agent-order-form{padding:6px}.agent-order-head{grid-template-columns:1fr 1fr}.agent-order-head .field:first-child{grid-column:1/-1}.agent-order-line{grid-template-columns:25px minmax(0,1fr) 80px 28px;padding:6px;gap:5px}.agent-product{grid-column:2/4}.agent-quantity{grid-column:2}.agent-order-line>label:nth-of-type(3){grid-column:3}.agent-measures,.agent-weight-note{grid-column:2/4}.agent-small{grid-column:auto}.agent-line-notes{grid-column:2/4}.agent-line-total{grid-column:2/4;height:auto;padding:4px 0;border-top:1px dashed #cad5de}.agent-order-line>.line-action{grid-column:4;grid-row:1}.agent-lines-title p{display:none}.agent-order-footer{position:sticky;bottom:0;background:#fff;padding:7px 0}.agent-recent table{min-width:650px}}
.small-action.warning{color:#855200;border-color:#dfbd75;background:#fff9eb}.catalog-row-actions{display:flex;align-items:center;gap:3px;white-space:nowrap}.catalog-row-actions .small-action{min-height:23px;padding:3px 6px}.warehouse-products-card table{min-width:900px}.warehouse-products-card th,.warehouse-products-card td{padding-block:4px!important}.warehouse-products-card .catalog-inactive{opacity:.72;background:#f4f5f7}
/* Dense accounting, cutting-order and invoice workspaces */
.account-tree-name{padding-inline-start:calc(var(--account-depth,0)*18px);position:relative}.account-tree-name>i{display:inline-block;width:calc(var(--account-depth,0)*12px);border-top:1px solid #8fa7b9;vertical-align:middle;margin-inline-end:5px}.inactive-account{opacity:.68;background:#f4f5f6}.cutting-preview-modal,.sales-invoice-editor-modal{width:min(1420px,98vw);max-height:94vh;overflow:auto}.cutting-preview-page{border:1px solid #9eb2c1;border-radius:5px;margin:5px 0 8px;overflow:hidden}.cutting-preview-group-head{display:flex;justify-content:space-between;gap:8px;align-items:center;background:#eaf1f6;border-bottom:1px solid #9eb2c1;padding:5px 7px}.cutting-preview-group-head div{display:flex;gap:8px;align-items:center}.cutting-preview-group-head strong{font-size:12px}.cutting-preview-group-head span{font-size:11px}.cutting-grid th,.cutting-grid td{padding:3px 5px!important;font-size:11px!important;white-space:nowrap}.cutting-preview-notes{margin:5px 0}.invoice-editor-head{display:grid;grid-template-columns:140px 140px 150px 1fr;gap:6px;margin-bottom:6px}.invoice-editor-lines th,.invoice-editor-lines td{padding:3px 4px!important;font-size:11px!important;vertical-align:middle;white-space:nowrap}.invoice-editor-lines input{height:27px;width:72px;min-width:0;border:1px solid #9eb2c1;border-radius:4px;padding:3px 5px;font:inherit}.invoice-editor-lines td:nth-child(3) input{display:block;width:100%;margin-top:3px}.invoice-editor-lines td:nth-child(3){min-width:180px;white-space:normal}.invoice-editor-lines td:nth-child(5){min-width:150px;white-space:normal}.invoice-editor-total{display:flex;justify-content:flex-end;gap:12px;align-items:center;padding:6px 8px;border-top:1px solid #aabac6;font-size:13px}.invoice-editor-total strong{font-size:16px;color:#0b6b50}.delivery-actual-pair{display:flex;gap:5px;align-items:flex-end}.delivery-actual-pair .measure-field input{width:118px}.delivery-actual-values{display:flex;gap:10px;white-space:nowrap}@media(max-width:800px){.invoice-editor-head{grid-template-columns:1fr 1fr}.invoice-editor-notes{grid-column:1/-1}.cutting-preview-group-head{align-items:flex-start;flex-direction:column}.delivery-actual-pair{min-width:250px}}
.account-tree-name{display:grid;grid-template-columns:22px minmax(130px,auto);align-items:center;justify-content:start;column-gap:4px}.account-tree-name>small{grid-column:2;color:#5a6d7e!important;margin:0!important}.account-tree-name>i{width:12px;margin:0}.account-tree-toggle{width:20px;height:20px;padding:0;border:1px solid #8fa7b9;border-radius:4px;background:#f7fafc;color:#123d60;font-weight:900;line-height:1;cursor:pointer}.account-tree-toggle:hover{background:#e3eef7}.accounting-table-card button[disabled]{opacity:.48;cursor:not-allowed}
.coa-card{overflow:hidden}.coa-card .card-toolbar{height:33px;min-height:33px!important;padding:3px 6px!important;background:#f8fafc}.coa-toolbar{display:flex;gap:3px}.coa-toolbar .small-action{min-height:23px;padding:2px 7px;font-size:9px}.coa-table{table-layout:fixed}.coa-table th{height:25px;padding:3px 6px!important;font-size:9px!important}.coa-table th:first-child{width:49%}.coa-table th:nth-child(2){width:10%}.coa-table th:nth-child(3){width:10%}.coa-table th:nth-child(4){width:11%}.coa-table th:nth-child(5){width:7%}.coa-table th:nth-child(6){width:13%}.coa-table .coa-row td{height:29px;padding:2px 6px!important;line-height:1.05;border-top-color:#d3dde5;vertical-align:middle}.coa-row.coa-root td{background:#dfeaf3;border-top:2px solid #8fa6ba;font-weight:800}.coa-row.coa-branch td{background:#f0f5f8}.coa-row.coa-leaf:hover td{background:#f7fbfe}.coa-row.inactive-account{opacity:1}.coa-row.inactive-account td{background:#f6f6f6;color:#68737c}.coa-account-cell{padding-inline-start:3px!important}.coa-table .account-tree-name{position:relative;display:grid;grid-template-columns:18px 76px minmax(130px,1fr) auto;align-items:center;gap:4px;min-height:24px;padding-inline-start:calc(var(--account-depth)*18px);white-space:nowrap}.account-tree-rail{display:none}.account-tree-name[data-depth]:not([data-depth="0"]) .account-tree-rail{display:block;position:absolute;inset-inline-start:calc(var(--account-depth)*18px - 10px);top:-5px;width:10px;height:18px;border-inline-start:1px solid #9db0bf;border-bottom:1px solid #9db0bf}.account-tree-toggle,.account-tree-leaf{grid-column:1;width:16px;height:16px}.account-tree-toggle{display:grid;place-items:center;padding:0;border:1px solid #879fb3;border-radius:3px;background:#fff;color:#174b75;cursor:pointer;font-size:0}.account-tree-toggle::before{content:"▸";font-size:11px;line-height:1;transform:rotate(180deg);transition:transform .12s}.account-tree-toggle.expanded::before{transform:rotate(90deg)}.account-tree-toggle:hover{background:#e6f0f7;border-color:#527b9c}.account-tree-leaf{position:relative}.account-tree-leaf::after{content:"";position:absolute;inset:6px;border-radius:50%;background:#8aa0b2}.coa-code{direction:ltr;text-align:right;font:700 10px Consolas,"Segoe UI",sans-serif;color:#173c5a}.coa-name{display:flex;align-items:baseline;gap:6px;min-width:0;overflow:hidden}.coa-name strong{font-size:11px;overflow:hidden;text-overflow:ellipsis}.coa-name small{display:inline!important;min-width:0;overflow:hidden;text-overflow:ellipsis;margin:0!important;color:#687a89!important;font-size:8px!important;font-weight:500}.coa-kind{justify-self:end;border:1px solid #b5c4d0;border-radius:8px;padding:1px 5px;font-size:8px;font-weight:800;color:#40576b;background:#fff}.coa-kind.root{color:#174b75;border-color:#7fa1bd}.coa-kind.leaf{color:#217054;border-color:#a8cdbf}.coa-type,.coa-nature{font-size:9px;font-weight:700}.coa-nature{display:inline-flex;min-width:39px;justify-content:center;padding:2px 5px;border-radius:8px}.coa-nature.debit{background:#edf3fb;color:#245886}.coa-nature.credit{background:#fff3e1;color:#875711}.coa-balance{direction:ltr;text-align:right;white-space:nowrap}.coa-balance strong{font-size:10px}.coa-balance small{display:inline!important;margin:0 2px!important;font-size:8px!important}.coa-actions .document-action-cell{display:flex;gap:2px;flex-wrap:nowrap;white-space:nowrap}.coa-actions .small-action{min-height:21px;padding:2px 5px;border-radius:3px;font-size:8px}.coa-table .status{padding:2px 5px;font-size:8px}.coa-row[data-depth="0"] .coa-name strong{font-size:12px}.coa-row[data-depth="1"] .coa-name strong{font-weight:800}@media(max-width:950px){.coa-table{min-width:900px}.coa-table th:first-child{width:430px}}
.sales-cycle-actions{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.sales-order-module-tabs{min-height:34px;padding:3px;margin-bottom:6px}
.sales-order-module-tabs button{min-height:27px;padding:3px 12px;font-weight:700}
.cutting-order-sheet{border:1px solid #b9c9d8;border-radius:7px;margin:0 0 8px;background:#fff;overflow:hidden}
.cutting-order-sheet-head{display:flex;justify-content:space-between;align-items:center;padding:6px 9px;background:#eef4f8;border-bottom:1px solid #b9c9d8}
.cutting-order-sheet table th,.cutting-order-sheet table td,.cutting-grid th,.cutting-grid td{padding:4px 6px;white-space:nowrap}
.cutting-order-sheet input{width:68px;min-height:25px;padding:2px 4px;text-align:center}
.cutting-order-sheet tfoot th{background:#f3f6f8;border-top:2px solid #8da5b8}
.cutting-unavailable-title{padding:5px 8px;margin-top:4px;border-top:1px solid #c7d3dc;color:#5a6975;font-size:11px;font-weight:700;background:#f3f6f8}.cutting-order-unavailable{opacity:.78;cursor:default;background:#f7f8f9}.cutting-order-unavailable:hover{background:#f7f8f9}.cutting-order-lock{display:grid;place-items:center;width:20px;height:20px;border-radius:50%;background:#dfe9e4;color:#187654;font-weight:800;flex:0 0 20px}
.cutting-preview-page{margin-bottom:8px}
.workflow-banner.compact{padding:6px 9px;margin-bottom:6px;min-height:auto}
.order-detail-lines th:nth-child(n+6),.order-detail-lines td:nth-child(n+6){display:none}
.order-overview .detail-metrics>div:nth-child(5){display:none}
.delivery-measure-wrap input{min-height:28px;padding:3px 6px;max-width:130px}
.delivery-measure-wrap th,.delivery-measure-wrap td{padding:5px 7px}
.delivery-edit-fields{margin:4px 0;gap:4px}.delivery-edit-fields .field{gap:1px}.delivery-edit-fields input{min-height:28px;padding:3px 6px}.delivery-edit-fields .span-4{grid-column:span 4}
#delivery-modal .modal-header p,#preparation-modal .modal-header p.eyebrow,#accounting-sales-invoices-root .accounting-pro-head p,#accounting-sales-invoices-root .card-toolbar p{display:none}
#accounting-sales-invoices-root .accounting-pro-head{padding:4px 2px;margin-bottom:5px;min-height:auto}
#accounting-sales-invoices-root .accounting-pro-head h1{margin:0;font-size:1.3rem}
.catalog-tabs{display:flex;gap:4px;padding:3px;margin:0 0 6px;background:#e8eff7;border:1px solid #b8c9da;border-radius:7px}.catalog-tabs button{min-width:120px;height:30px;padding:0 14px;border:1px solid transparent;border-radius:5px;background:transparent;color:#183b5b;font:700 14px inherit;cursor:pointer}.catalog-tabs button.active{background:#fff;border-color:#91acc5;color:#075ea8}.catalog-heading-actions.compact{display:flex;justify-content:flex-start;gap:5px;margin:0 0 6px}.catalog-heading-actions.compact .button{min-height:30px;padding:4px 10px}.product-catalog-card table th,.product-catalog-card table td,#catalog-prices-body td,#opening-balances-body td{padding-top:5px;padding-bottom:5px}.product-catalog-form-grid{grid-template-columns:repeat(4,minmax(120px,1fr));gap:7px}.product-catalog-modal-card .modal-header{padding-block:9px}.product-catalog-modal-card .modal-actions{padding-block:7px}
/* Compact hierarchical product catalog and pricing */
.catalog-tree-card{overflow:hidden;border-color:#9eb3c4}.catalog-tree-card .card-toolbar{min-height:34px;padding:4px 7px}.catalog-tree-card .card-toolbar h2{font-size:13px;margin:0}.catalog-tree-card .table-search,.catalog-tree-card .table-search input{height:27px;min-height:27px}.catalog-tree-table{table-layout:fixed;min-width:980px}.catalog-tree-table th{height:25px;padding:3px 6px!important;font-size:10px!important;background:#e9f0f5}.catalog-tree-table td{height:29px;padding:3px 6px!important;font-size:11px;line-height:1.05;vertical-align:middle}.catalog-tree-table th:first-child{width:29%}.catalog-tree-table th:last-child{width:150px}.catalog-family-row td{height:28px!important;padding:2px 7px!important;background:#dfeaf3;border-top:2px solid #91a9bc;color:#153d5d;white-space:nowrap}.catalog-family-row strong{font-size:12px;margin-inline:5px}.catalog-family-row span{font-size:9px;color:#5e7485}.catalog-tree-toggle{display:inline-grid;place-items:center;width:18px;height:18px;padding:0;border:1px solid #7f9bb1;border-radius:3px;background:#fff;color:#164d77;font-size:13px;line-height:1;cursor:pointer;transform:rotate(180deg)}.catalog-tree-toggle.expanded{transform:rotate(90deg)}.catalog-product-row:hover td{background:#f7fbfe}.catalog-product-row td:first-child{white-space:nowrap}.catalog-product-row td:first-child strong{display:inline-block;min-width:70px;font:700 10px Consolas,"Segoe UI",sans-serif;color:#174366}.catalog-product-row td:first-child>span:last-child{font-weight:700;color:#172f43}.catalog-tree-branch{display:inline-block;width:22px;color:#8299aa;text-align:center}.catalog-inactive td{background:#f5f5f5;color:#6d7780}.catalog-list-filter{display:flex;align-items:center;gap:5px;margin-inline-start:auto;font-size:11px;font-weight:700;color:#29465c}.catalog-list-filter select{height:30px;min-height:30px;min-width:190px;padding:3px 7px}.catalog-heading-actions.compact{align-items:center}.catalog-heading-actions.compact+.content-card{margin-top:0}#catalog-opening-panel .content-card th,#catalog-opening-panel .content-card td{padding:4px 6px!important}.product-catalog-form-grid .field{gap:2px}.product-catalog-form-grid input,.product-catalog-form-grid select{height:31px;min-height:31px;padding:3px 6px}.product-catalog-modal-card{width:min(920px,96vw)}
.catalog-warehouse-picker{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;max-height:150px;overflow:auto;padding:5px;border:1px solid #9fb5c8;border-radius:5px;background:#fff}.catalog-warehouse-choice{display:flex;align-items:flex-start;gap:6px;min-height:27px;padding:4px 6px;border:1px solid #d4e0e9;border-radius:4px;background:#f8fbfd;color:#173b58;font-size:10px;cursor:pointer}.catalog-warehouse-choice:hover{border-color:#6f9abd;background:#eef6fb}.catalog-warehouse-choice input{flex:0 0 auto;width:15px!important;height:15px!important;min-height:15px!important;margin:0}.catalog-warehouse-choice span{display:block;min-width:0;overflow:visible;text-overflow:clip;white-space:normal;overflow-wrap:anywhere;line-height:1.35}.catalog-warehouses-field>small{color:#536d80}
#catalog-pricing-panel .catalog-heading-actions{flex-wrap:wrap}#catalog-pricing-panel .catalog-list-filter{margin-inline-start:0}#catalog-pricing-panel .catalog-list-filter:first-of-type{margin-inline-start:auto}#catalog-pricing-panel .catalog-list-filter select{min-width:145px;max-width:250px}#catalog-price-family-filter{min-width:180px!important}
/* Compact manual sales invoicing workspace */
.invoice-workspace-head{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:3px 2px 6px}.invoice-workspace-head>div{display:flex;align-items:baseline;gap:10px}.invoice-workspace-head h1{margin:0;font-size:18px;color:#123751}.invoice-workspace-head span{font-size:11px;color:#5b7181}.invoice-workspace-head .button{min-height:30px;padding:4px 11px}.invoice-register-card{margin-top:0}.invoice-register-card .card-toolbar{height:31px;min-height:31px!important;padding:3px 7px!important}.invoice-register-card .card-toolbar h2{margin:0;font-size:13px}.invoice-register-card th,.invoice-register-card td{padding:4px 6px!important}.invoice-register-card .document-action-cell{gap:2px;flex-wrap:nowrap}.invoice-register-card .small-action,.invoice-register-card .doc-action{min-height:23px;padding:2px 5px;font-size:9px}
@media(max-width:800px){.catalog-tabs{overflow:auto}.catalog-tabs button{min-width:105px}.catalog-heading-actions.compact{flex-wrap:wrap}.catalog-list-filter{width:100%;margin:0}.catalog-list-filter select{flex:1}.product-catalog-form-grid{grid-template-columns:1fr 1fr}.invoice-workspace-head{align-items:flex-start}.invoice-workspace-head>div{display:block}.catalog-tree-table{min-width:900px}}
/* Unified compact screen chrome */
.topbar{height:36px;padding:0 8px}.crumbs{gap:5px;font-size:10px}.top-actions{gap:5px}.global-search{width:220px;height:28px;border-radius:5px;padding:0 7px}.global-search input{font-size:11px}.topbar .icon-button{width:28px;height:28px;border-radius:5px;font-size:14px}.connection{padding:4px 7px;font-size:9px}.page-view{padding:4px 7px 22px}.page-heading,.document-header,.warehouse-page-heading,.accounting-pro-head,.invoice-workspace-head{height:34px!important;min-height:34px!important;margin:0 0 4px!important;padding:2px 1px!important;border-bottom:1px solid #9fb2c1;align-items:center!important}.page-heading h1,.document-title h1,.warehouse-page-heading h1,.accounting-pro-head h1,.invoice-workspace-head h1{font-size:16px!important;line-height:1!important;margin:0!important;color:#102d45}.page-heading p,.warehouse-page-heading p,.accounting-pro-head p,.invoice-workspace-head p,.page-heading .eyebrow,.warehouse-page-heading .eyebrow,.accounting-pro-head .eyebrow{display:none!important}.page-heading>div,.warehouse-page-heading>div,.accounting-pro-head>div{display:flex;align-items:center;gap:7px}.page-heading .button,.warehouse-page-heading .button,.accounting-pro-head .button,.invoice-workspace-head .button{height:27px;min-height:27px;padding:3px 8px;border-radius:5px;font-size:10px;box-shadow:none}.document-actions,.warehouse-heading-actions,.toolbar-actions,.catalog-heading-actions,.sales-cycle-actions{gap:4px}.button{border-radius:5px;min-height:28px;padding:4px 9px;font-size:10px;box-shadow:none!important}.icon-button{border:1px solid #aabcc9;background:#fff;width:27px;height:27px;border-radius:5px;font-size:14px}.card-toolbar{min-height:34px!important;padding:4px 7px!important;border-bottom:1px solid #b9c7d3}.card-toolbar h2{font-size:13px!important}.card-toolbar p{display:none}.content-card{border-radius:6px;box-shadow:none}.page-view .card-toolbar .table-search{display:none}.tabs,.catalog-tabs,.warehouse-module-tabs,.inventory-content-nav,.accounting-inner-tabs,.sales-order-module-tabs,.admin-tabs,.approvals-tabs{min-height:30px!important;height:30px;padding:2px!important;margin:0 0 4px!important;gap:2px!important;border:1px solid #aebfce!important;border-radius:5px!important;background:#e7eef4!important;overflow-x:auto}.tabs button,.catalog-tabs button,.warehouse-module-tabs button,.inventory-content-nav button,.accounting-inner-tabs button,.sales-order-module-tabs button,.admin-tabs button,.approvals-tabs button{height:24px!important;min-height:24px!important;padding:2px 9px!important;margin:0!important;border-radius:4px!important;font-size:10px!important;white-space:nowrap}.tabs button.active,.catalog-tabs button.active,.warehouse-module-tabs button.active,.inventory-content-nav button.active,.accounting-inner-tabs button.active,.sales-order-module-tabs button.active,.admin-tabs button.active,.approvals-tabs button.active{background:#fff!important;border:1px solid #8ea8bd!important;color:#075ea8!important}.unified-screen-filter{display:grid;grid-template-columns:minmax(210px,1fr) 150px 150px auto auto;align-items:end;gap:4px;height:34px;margin:0 0 4px;padding:3px 4px;border:1px solid #9fb4c5;border-radius:5px;background:#f8fafc}.unified-screen-filter label{display:flex;align-items:center;gap:4px;min-width:0}.unified-screen-filter label>span{font-size:9px;font-weight:800;color:#405b70;white-space:nowrap}.unified-screen-filter input{height:26px;min-height:26px;min-width:0;width:100%;padding:2px 6px;border:1px solid #a6bac9;border-radius:4px;background:#fff;font:inherit;font-size:10px;color:#142f44;outline:none}.unified-screen-filter input:focus{border-color:#3978ae;box-shadow:0 0 0 2px #3978ae18}.unified-search{position:relative}.unified-search>span{position:absolute;right:7px;font-size:12px!important}.unified-search input{padding-right:25px!important}.unified-screen-filter .button{height:26px;min-height:26px;padding:2px 8px}.unified-filter-results{margin:0 0 5px;border:1px solid #8da8bd;border-radius:6px;background:#fff;overflow:hidden}.unified-filter-meta{height:30px;display:flex;align-items:center;gap:8px;padding:3px 7px;background:#e9f1f7;border-bottom:1px solid #a9bac8}.unified-filter-meta strong{font-size:11px}.unified-filter-meta span{font-size:9px;color:#536b7e}.unified-filter-meta .icon-button{margin-inline-start:auto;width:22px;height:22px}.unified-filter-results th,.unified-filter-results td{padding:4px 6px!important;font-size:10px!important}.unified-filter-pager{height:30px;display:flex;justify-content:center;align-items:center;gap:7px;border-top:1px solid #becbd5;background:#f8fafb}.unified-filter-pager span{font-size:9px;font-weight:700}.unified-filter-pager .small-action{min-height:22px;padding:2px 7px}.page-view table th{padding-top:4px;padding-bottom:4px}.page-view table td{padding-top:5px;padding-bottom:5px}
@media(max-width:760px){.topbar{height:34px}.page-view{padding:3px 5px 18px}.unified-screen-filter{height:auto;grid-template-columns:1fr 1fr}.unified-search{grid-column:1/-1}.unified-screen-filter .button{width:100%}.page-heading,.document-header,.warehouse-page-heading,.accounting-pro-head,.invoice-workspace-head{height:auto!important;min-height:34px!important}.global-search{display:none}}

/* Smart searchable selects — one implementation for every module. */
.smart-select{position:relative;display:block;min-width:0;width:100%;direction:rtl}.smart-select-native{position:absolute!important;inset:0 auto auto 0!important;width:1px!important;height:1px!important;opacity:0!important;pointer-events:none!important;padding:0!important;border:0!important}.smart-select-input{width:100%!important;min-width:0!important;height:inherit;min-height:28px;padding:4px 27px 4px 7px!important;border:1px solid #9fb4c5!important;border-radius:5px!important;background:#fff!important;color:#142f44!important;font:inherit!important;line-height:1.35;outline:none}.smart-select-input:focus{border-color:#286fa9!important;box-shadow:0 0 0 2px #286fa91c!important}.smart-select-input[aria-invalid="true"]{border-color:#c83f4c!important}.smart-select-toggle{position:absolute;right:2px;top:50%;transform:translateY(-50%);width:23px;height:23px;padding:0;border:0;border-left:1px solid #d1dbe3;background:transparent;color:#36566f;cursor:pointer;font-size:12px}.smart-select.disabled{opacity:.62}.smart-select-list{position:absolute;z-index:120;top:calc(100% + 3px);right:0;left:0;max-height:230px;overflow:auto;padding:3px;background:#fff;border:1px solid #7898b0;border-radius:6px;box-shadow:0 10px 28px #1531492e}.smart-select-option{display:block;width:100%;min-height:27px;padding:4px 7px;border:0;border-radius:4px;background:#fff;color:#18344a;font:inherit;font-size:10px;text-align:right;cursor:pointer;white-space:normal}.smart-select-option:hover,.smart-select-option.active{background:#e5f0fa;color:#075b99}.smart-select-option[aria-selected="true"]{font-weight:800;color:#075b99}.smart-select-option:disabled{color:#9ba8b2;cursor:not-allowed}.smart-select-group{position:sticky;top:0;padding:4px 6px;background:#eef3f7;color:#587084;font-size:9px;font-weight:800;border-radius:3px}.smart-select-empty{padding:10px;text-align:center;color:#758795;font-size:10px}.lines-table .smart-select{min-width:130px}.modal-layer .smart-select-list{max-height:190px}.smart-select.open{z-index:121}

/* Keep searchable-select text clear of the RTL toggle/arrow. */
.smart-select-input{padding-right:34px!important;padding-left:8px!important}
.smart-select-toggle{right:3px!important;z-index:2!important}
.approval-command-bar{height:34px!important;min-height:34px!important;margin:0 0 4px!important;padding:2px 1px!important;border-bottom:1px solid #9fb2c1;box-shadow:none!important;display:flex;align-items:center;gap:5px}.approval-command-bar>div:first-child{display:flex;align-items:center;gap:5px}.approval-command-bar h1{font-size:16px!important;line-height:1!important;margin:0!important}.approval-command-bar>div:first-child>span{display:none}.approval-command-bar .approval-inline-counts{margin-inline-start:auto;gap:3px}.approval-command-bar .approval-inline-counts span{padding:2px 5px;font-size:8px}.approval-command-bar .button{height:27px;min-height:27px;padding:3px 7px;font-size:9px}
.warehouse-directory-card .card-toolbar{display:flex;justify-content:space-between;align-items:center}.warehouse-directory-tools{display:flex;align-items:center;gap:4px}.warehouse-directory-tools .unified-search{width:min(330px,34vw);height:25px}.warehouse-directory-tools .unified-search input{width:100%;height:25px;padding:2px 25px 2px 6px;border:1px solid #a6bac9;border-radius:4px;font-size:10px}.warehouse-directory-table th:first-child{width:38%}.warehouse-directory-table th:nth-child(2){width:11%}.warehouse-directory-table th:nth-child(3){width:17%}.warehouse-directory-table th:nth-child(4){width:12%}.warehouse-directory-table th:nth-child(5){width:7%}.warehouse-directory-table th:nth-child(6){width:15%}.warehouse-directory-modal-card{width:min(850px,95vw)}.warehouse-account-map-card table{min-width:1120px}.warehouse-account-map-card td{font-size:10px}.warehouse-account-map-card td small{display:block;color:#607487;font-size:8px}.warehouse-directory-table .coa-actions .document-action-cell{overflow:visible}@media(max-width:850px){.warehouse-directory-tools{width:100%}.warehouse-directory-tools .unified-search{width:100%}.warehouse-directory-table{min-width:980px}}
.erp-context-menu{position:fixed;z-index:300;width:235px;padding:4px;background:#fff;border:1px solid #7897ae;border-radius:7px;box-shadow:0 14px 38px #102a433d;direction:rtl}.erp-context-title{padding:5px 7px;margin-bottom:2px;border-bottom:1px solid #d9e2e9;color:#526b7d;font-size:9px;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.erp-context-menu button{display:flex;align-items:center;gap:7px;width:100%;min-height:30px;padding:5px 7px;border:0;border-radius:4px;background:#fff;color:#18364c;font:inherit;font-size:10px;text-align:right;cursor:pointer}.erp-context-menu button:hover{background:#e7f1f8;color:#075b99}.erp-context-menu button span{display:grid;place-items:center;width:18px;color:#39749f;font-size:12px}.erp-context-menu button b{font-weight:700}.erp-context-menu button.danger{color:#aa2938}.erp-context-menu button.danger:hover{background:#fcecef}.coa-row,.catalog-family-row,.catalog-product-row{cursor:context-menu}
.page-view .card-toolbar .coa-tree-search{display:flex!important;width:235px;height:26px}.coa-tree-search input{font-size:10px}

/* Accounting actions: one compact, legible command language across the module. */
.accounting-pro-root .accounting-toolbar-actions,.accounting-pro-root .document-action-cell{display:flex;align-items:center;gap:4px;flex-wrap:wrap}
.journal-register-card{overflow:hidden}.journal-register-bar{min-height:35px;display:flex;align-items:center;justify-content:space-between;gap:5px;padding:3px 5px;border-bottom:1px solid #aebfce;background:#f8fafc}.journal-register-bar form{display:grid;grid-template-columns:120px 105px minmax(180px,1fr) 125px 125px auto auto;align-items:center;gap:3px;flex:1}.journal-register-bar input,.journal-register-bar select{height:27px;min-width:0;border:1px solid #9eb1c2;border-radius:4px;background:#fff;padding:2px 6px;font:inherit;font-size:10px;color:#102b44}.journal-register-search{min-width:180px}.journal-register-table{min-width:1180px}.journal-register-table th,.journal-register-table td{height:29px;padding:3px 5px!important;vertical-align:middle}.journal-register-table th{font-size:9px!important}.journal-register-table td{font-size:10px!important}.journal-register-table th:nth-child(1){width:105px}.journal-register-table th:nth-child(2){width:82px}.journal-register-table th:nth-child(3){width:125px}.journal-register-table th:nth-child(4){width:180px}.journal-register-table th:nth-child(5){width:330px}.journal-register-table th:nth-child(6),.journal-register-table th:nth-child(7){width:90px}.journal-register-table th:nth-child(8){width:72px}.journal-register-table th:nth-child(9){width:190px}.journal-chain-no{font-size:11px;color:#0b568d}.journal-source-tag{display:inline-flex;padding:2px 5px;border:1px solid #b7c8d6;border-radius:9px;background:#f3f7fa;font-size:8px;font-weight:800;white-space:nowrap}.journal-description{max-width:180px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.journal-register-table .journal-mini-lines{max-width:330px;gap:0}.journal-register-table .journal-mini-lines span{display:flex;align-items:center;gap:4px;min-width:0;font-size:8px;line-height:1.25;overflow:hidden;text-overflow:ellipsis}.journal-register-table .journal-mini-lines i{margin-inline-start:auto;font-style:normal;font-weight:750;white-space:nowrap}.journal-register-table .number-cell{direction:ltr;text-align:right;font-weight:750}.journal-register-footer{min-height:31px;display:flex;align-items:center;justify-content:space-between;padding:3px 6px;border-top:1px solid #c5d0da;color:#53687b;font-size:9px}.journal-register-footer .button,.journal-register-bar .button{min-height:26px;padding:3px 7px;font-size:9px}@media(max-width:1000px){.journal-register-bar{align-items:stretch;flex-direction:column}.journal-register-bar form{grid-template-columns:repeat(3,minmax(100px,1fr))}.journal-register-search{grid-column:span 2}}
.document-sequence-nav{direction:rtl;display:inline-flex;align-items:center;gap:3px;margin-inline-start:auto;padding:2px;border:1px solid #b2c2cf;border-radius:6px;background:#f7fafc;white-space:nowrap}.document-sequence-nav span{padding:0 3px;color:#50677a;font-size:9px;font-weight:700}.document-sequence-button{display:grid;place-items:center;width:27px;height:25px;padding:0;border:1px solid #8fa8bb;border-radius:4px;background:#fff;color:#123f63;font:900 14px/1 Tahoma;cursor:pointer}.document-sequence-button:hover:not(:disabled){background:#e3eef7;border-color:#39749f}.document-sequence-button:disabled{opacity:.35;cursor:not-allowed}.modal-header>.document-sequence-nav{margin-inline-start:auto;margin-inline-end:8px}.order-detail-header .document-header-actions{align-items:center}
.accounting-pro-root .button,.accounting-pro-root .small-action,.accounting-pro-root .doc-action{min-height:26px;height:26px;padding:3px 9px;border:1px solid #8fa8bb;border-radius:5px;background:#fff;color:#173d59;font-size:10px;font-weight:750;line-height:1;box-shadow:none!important;cursor:pointer;transition:background-color .12s,border-color .12s,color .12s}
.accounting-pro-root .button:hover,.accounting-pro-root .small-action:hover,.accounting-pro-root .doc-action:hover{background:#e9f2f8;border-color:#5f89a8;color:#064f87}
.accounting-pro-root .button.primary,.accounting-pro-root .small-action.primary{background:#176a9e;border-color:#176a9e;color:#fff}
.accounting-pro-root .button.success,.accounting-pro-root .small-action.success{background:#117a59;border-color:#117a59;color:#fff}
.accounting-pro-root .button.secondary{background:#fff;border-color:#8fa8bb;color:#173d59}
.accounting-pro-root .button.danger,.accounting-pro-root .small-action.danger,.accounting-pro-root .doc-action.danger{background:#fff4f4;border-color:#d8a1a7;color:#a32130}
.accounting-pro-root .doc-action.details{background:#eef5fa;border-color:#8eacc1;color:#124d75}
.accounting-pro-root .button:focus-visible,.accounting-pro-root .small-action:focus-visible,.accounting-pro-root .doc-action:focus-visible{outline:2px solid #2f79ae;outline-offset:1px}
.accounting-pro-root .button:disabled,.accounting-pro-root .small-action:disabled,.accounting-pro-root .doc-action:disabled{opacity:.45;cursor:not-allowed}
.accounting-currency-grid{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);gap:5px}
.accounting-currency-grid .accounting-table-card{min-width:0}
.accounting-currency-grid table{min-width:600px}
.accounting-compact-form .check-label{justify-content:flex-end;flex-direction:row;align-items:center;gap:5px;padding-bottom:5px}
.accounting-compact-form .check-label input{width:15px;height:15px;min-height:15px}

/* One atomic opening-balance document with fast multi-product entry. */
.bulk-opening-modal{width:min(1120px,97vw)}
.opening-batch-head{display:grid;grid-template-columns:minmax(180px,1.1fr) 145px minmax(180px,1fr) auto auto;gap:5px;align-items:end;margin-bottom:5px}
.opening-batch-head .field{gap:2px}.opening-batch-head .field>span{font-size:9px}.opening-batch-head input,.opening-batch-head select{height:29px;min-height:29px;padding:3px 6px}
.opening-batch-head .button{height:29px;min-height:29px;padding:3px 8px;white-space:nowrap}
.bulk-opening-lines{max-height:52vh;border:1px solid #aebfce;border-radius:6px}
.bulk-opening-lines table{min-width:800px}.bulk-opening-lines th,.bulk-opening-lines td{padding:4px 6px}.bulk-opening-lines td input,.bulk-opening-lines td select{width:100%;height:28px;min-height:28px;padding:3px 6px;border:1px solid #9fb2c2;border-radius:4px;font:inherit;font-size:10px}
.bulk-opening-lines td:nth-child(1){width:36px}.bulk-opening-lines td:nth-child(3),.bulk-opening-lines td:nth-child(4){width:135px}.bulk-opening-lines td:nth-child(5){width:160px}.bulk-opening-lines td:nth-child(6){width:42px}
.opening-notes{margin-top:5px;gap:2px}.opening-notes input{height:29px;min-height:29px}
@media(max-width:900px){.accounting-currency-grid{grid-template-columns:1fr}.opening-batch-head{grid-template-columns:1fr 1fr}.opening-family-picker{grid-column:1/-1}}
@media(max-width:560px){.opening-batch-head{grid-template-columns:1fr}.opening-family-picker{grid-column:auto}.opening-batch-head .button{width:100%}}

/* Currency screen: aligned command bar and predictable button hierarchy. */
.accounting-currency-grid .card-toolbar.compact{height:35px!important;min-height:35px!important;padding:4px 6px!important;background:#f6f9fb}
.accounting-currency-grid .accounting-toolbar-actions{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(92px,auto);gap:3px;margin-inline-start:auto}
.accounting-currency-grid .accounting-toolbar-actions .button{width:100%;height:25px;min-height:25px;padding:2px 9px;border-radius:4px;font-size:10px}
.accounting-currency-grid .accounting-toolbar-actions .button.primary{background:#145f91;border-color:#145f91;color:#fff}
.accounting-currency-grid .accounting-toolbar-actions .button.secondary{background:#fff;border-color:#8da7ba;color:#173f5b}
.accounting-currency-grid .small-action{height:23px;min-height:23px;min-width:58px;padding:2px 7px;border-radius:4px;background:#eef5fa;border-color:#91aabd;color:#124d75}
#currency-form-panel .compact-form-actions,#exchange-rate-form-panel .compact-form-actions{justify-content:flex-end;padding-top:5px;border-top:1px solid #d5e0e7}
#currency-form-panel .compact-form-actions .button,#exchange-rate-form-panel .compact-form-actions .button{min-width:96px;height:27px;min-height:27px}
#currency-form-panel .compact-form-actions .button.success,#exchange-rate-form-panel .compact-form-actions .button.success{background:#117658;border-color:#117658;color:#fff}
@media(max-width:560px){.accounting-currency-grid .accounting-toolbar-actions{grid-auto-flow:row;grid-template-columns:1fr 1fr;width:100%}.accounting-currency-grid .card-toolbar.compact{height:auto!important;align-items:stretch!important}}

/* Warehouse directory command: compact, explicit and consistent with the tree. */
.warehouse-directory-command{height:32px;margin-bottom:3px;border:0;background:transparent}
.warehouse-directory-nav{width:100%;height:30px!important;margin:0!important;padding:2px!important;align-items:center;overflow:visible!important}
.warehouse-directory-tab{display:inline-flex!important;align-items:center;gap:5px;height:24px!important;padding:2px 8px!important;font-weight:800}
.warehouse-tab-icon{display:grid;place-items:center;width:17px;height:17px;border-radius:3px;background:#e5f0f9;color:#0b5f97;font-size:12px;line-height:1}
.warehouse-create-button{display:inline-flex;align-items:center;gap:5px;height:24px;min-height:24px;padding:1px 8px 1px 5px;border:1px solid #075d91;border-radius:4px;background:#0c6b9f;color:#fff;font:inherit;font-size:10px;font-weight:800;cursor:pointer;box-shadow:none}
.warehouse-create-button:hover{background:#075681;border-color:#064a70}
.warehouse-create-button:focus-visible{outline:2px solid #5fa6d2;outline-offset:1px}
.warehouse-create-icon{display:grid;place-items:center;width:17px;height:17px;border-radius:3px;background:#ffffff24;font-size:13px;line-height:1}

/* Full posting matrix: every document component, amount source and journal side. */
.posting-matrix{display:grid;gap:4px;margin-bottom:5px}
.posting-matrix-title{display:flex;align-items:center;gap:8px;min-height:31px;padding:4px 7px;border:1px solid #9eb3c3;border-radius:5px;background:#f5f8fa}
.posting-matrix-title strong{font-size:12px;color:#123b57}.posting-matrix-title span{font-size:9px;color:#526b7d}
.posting-event-card{border:1px solid #a8bac8;border-radius:5px;background:#fff;overflow:hidden}
.posting-event-card>summary{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:31px;padding:4px 8px;background:#edf3f7;cursor:pointer;list-style-position:inside;color:#173c55}
.posting-event-card>summary span{display:flex;align-items:center;gap:7px;min-width:0}.posting-event-card>summary b{font-size:11px}.posting-event-card>summary small{font-size:9px;color:#50697b}.posting-event-card>summary em{font-style:normal;font-size:9px;font-weight:800;color:#0b5e92;border:1px solid #9eb8ca;border-radius:999px;padding:1px 6px;background:#fff;white-space:nowrap}
.posting-event-card[open]>summary{border-bottom:1px solid #a8bac8;background:#e5eff6}
.posting-event-table{width:100%;table-layout:fixed}
.posting-event-table th,.posting-event-table td{padding:4px 6px!important;vertical-align:top;white-space:normal;font-size:9px!important;line-height:1.35}
.posting-event-table th:nth-child(1){width:13%}.posting-event-table th:nth-child(2){width:9%}.posting-event-table th:nth-child(3){width:26%}.posting-event-table th:nth-child(4){width:16%}.posting-event-table th:nth-child(5){width:29%}.posting-event-table th:nth-child(6){width:7%}
.posting-event-table td>strong,.posting-event-table td>b{display:block;font-size:10px;color:#17384f}.posting-event-table td>small{display:block;margin-top:2px;color:#597083}
.posting-side{display:inline-flex;padding:2px 7px;border:1px solid;border-radius:999px;font-size:9px;font-weight:900;white-space:nowrap}.posting-side.debit{color:#0a664d;border-color:#75bda8;background:#edf9f5}.posting-side.credit{color:#8a4713;border-color:#ddb080;background:#fff7ee}.posting-side.either{color:#37546b;border-color:#a5b8c6;background:#f4f7f9}
.posting-bindings{display:flex;flex-wrap:wrap;gap:3px}.posting-binding{display:inline-flex;padding:2px 6px;border-radius:4px;border:1px solid #aabcc9;background:#f7fafc;color:#38566b;font-weight:700}.posting-binding.missing{border-color:#dc8d8d;background:#fff2f2;color:#9b2525}.posting-binding.automatic{border-color:#8eb8a9;background:#f0faf6;color:#17684f}
.posting-account-chip{display:inline-flex;align-items:center;gap:4px;padding:2px 5px;border:1px solid #8fb0c5;border-radius:4px;background:#f3f8fb;color:#234a63}.posting-account-chip small{display:inline;color:#5c7280}
.posting-role-detail{display:flex;align-items:center;gap:7px;min-height:29px;margin-top:4px;padding:4px 7px;border:1px solid #9eb7c8;border-radius:4px;background:#eef6fb;color:#274b63;font-size:9px}.posting-role-detail b{padding:2px 7px;border-radius:999px;background:#fff;border:1px solid #89aabd;color:#0b5c8d}.posting-role-detail small{margin-inline-start:auto;color:#5d7180}
.posting-register{margin-top:4px}
@media(max-width:850px){.posting-event-table{min-width:900px}.posting-event-card>summary small{display:none}.posting-matrix-title span{display:none}.posting-role-detail{align-items:flex-start;flex-direction:column}.posting-role-detail small{margin-inline-start:0}}

/* Document-first posting setup: one clear screen, one atomic save. */
.document-posting-editor{margin-bottom:5px;overflow:hidden}
.document-posting-command{display:grid;grid-template-columns:minmax(260px,420px) 1fr;gap:8px;align-items:end;min-height:45px;padding:5px 7px;border-bottom:1px solid #9fb4c4;background:#eef4f8}
.document-posting-command label{display:grid;grid-template-columns:110px 1fr;align-items:center;gap:6px}.document-posting-command label>span{font-size:10px;font-weight:900;color:#1c4058}.document-posting-command select{height:29px;min-height:29px;padding:3px 7px;border:1px solid #7f9db2;border-radius:4px;background:#fff;color:#12354d;font:inherit;font-size:11px;font-weight:800}
.document-posting-command>div{display:flex;align-items:center;gap:7px;min-width:0}.document-posting-command>div strong{padding:3px 8px;border:1px solid #8eabbf;border-radius:999px;background:#fff;color:#0d5b8b;font-size:10px;white-space:nowrap}.document-posting-command>div small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#516a7d;font-size:9px}
.document-posting-table{width:100%;table-layout:fixed}.document-posting-table th,.document-posting-table td{padding:5px 6px!important;vertical-align:middle;white-space:normal;font-size:10px!important;line-height:1.35}.document-posting-table th:nth-child(1){width:3%}.document-posting-table th:nth-child(2){width:18%}.document-posting-table th:nth-child(3){width:9%}.document-posting-table th:nth-child(4){width:29%}.document-posting-table th:nth-child(5){width:28%}.document-posting-table th:nth-child(6){width:13%}
.document-posting-table td>strong{display:block;color:#183a51}.document-posting-table td>small{display:block;margin-top:1px;color:#607486;font-size:9px}.document-posting-table select{width:100%;height:29px;min-height:29px;padding:3px 6px;border:1px solid #809fb4;border-radius:4px;background:#fff;color:#142f44;font:inherit;font-size:10px}
.posting-current-source{margin-top:2px!important;color:#326785!important}.posting-current-source.missing{color:#a02f2f!important}.posting-derived-account{display:inline-flex;align-items:center;min-height:25px;padding:3px 7px;border:1px solid #94b4a8;border-radius:4px;background:#eff9f5;color:#17624c;font-size:9px;font-weight:800}
.document-posting-footer{display:flex;align-items:center;justify-content:flex-end;gap:8px;min-height:37px;padding:4px 7px;border-top:1px solid #a8bac7;background:#f7f9fa}.document-posting-footer>span:first-child{margin-inline-end:auto;color:#546c7d;font-size:9px}.document-posting-footer .button{min-width:150px;height:28px;min-height:28px}
.posting-advanced{border:1px solid #aabac6;border-radius:5px;background:#f7f9fb;overflow:hidden}.posting-advanced>summary{height:31px;display:flex;align-items:center;padding:4px 8px;color:#274b62;font-size:10px;font-weight:900;cursor:pointer}.posting-advanced[open]>summary{border-bottom:1px solid #aabac6;background:#eaf1f6}.posting-advanced .posting-register{margin:4px}
@media(max-width:850px){.document-posting-command{grid-template-columns:1fr}.document-posting-command>div small{display:none}.document-posting-table{min-width:900px}.document-posting-footer>span:first-child{display:none}}

/* Warehouse balances and source-document movements */
.inventory-balance-heading{gap:8px}.inventory-balance-heading>div:first-child{min-width:190px}.inventory-balance-heading small{font-size:9px;color:#587084}.inventory-balance-actions{display:flex;align-items:center;gap:3px;flex-wrap:nowrap}.inventory-balance-toolbar{display:grid;grid-template-columns:minmax(230px,360px) minmax(260px,1fr) auto;align-items:end;gap:4px;min-height:36px;margin-bottom:4px;padding:3px 5px;border:1px solid #9fb4c5;border-radius:5px;background:#f8fafc}.inventory-balance-toolbar .field{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:5px}.inventory-balance-toolbar .field>span{font-size:9px;white-space:nowrap}.inventory-balance-toolbar select,.inventory-balance-toolbar input{height:27px;min-height:27px;padding:2px 7px;border:1px solid #9db3c4;border-radius:4px;background:#fff;font:inherit;font-size:10px}.inventory-balance-toolbar .unified-search input{width:100%;padding-right:25px}.warehouse-balance-inline{display:flex;align-items:center;min-height:29px;margin:0 0 4px;padding:2px 5px;border:1px solid #aebfce;border-radius:5px;background:#eef4f8;overflow:auto}.warehouse-balance-inline span{display:flex;align-items:center;gap:4px;padding:2px 9px;border-inline-end:1px solid #becbd5;color:#476075;font-size:9px;white-space:nowrap}.warehouse-balance-inline span:last-child{border-inline-end:0}.warehouse-balance-inline strong{color:#102f47;font-size:11px}.inventory-balance-card .card-toolbar{height:29px!important;min-height:29px!important}.inventory-balance-card th,.inventory-balance-card td{padding:4px 6px!important}.linked-document-controls{grid-template-columns:minmax(260px,1.6fr) repeat(4,minmax(135px,1fr))!important}.linked-document-picker select{font-weight:800;color:#124d75}.issue-modal-card .issue-controls{gap:5px}.issue-modal-card .issue-controls .field{gap:2px}.issue-modal-card .issue-controls input,.issue-modal-card .issue-controls select{min-height:29px;height:29px;padding:3px 6px}
@media(max-width:900px){.inventory-balance-toolbar{grid-template-columns:1fr 1fr}.inventory-balance-toolbar button{width:100%}.linked-document-controls{grid-template-columns:1fr 1fr!important}.linked-document-picker{grid-column:1/-1}}@media(max-width:620px){.inventory-balance-heading{height:auto!important;align-items:flex-start!important}.inventory-balance-actions{flex-wrap:wrap}.inventory-balance-toolbar{grid-template-columns:1fr}.warehouse-balance-inline span{padding-inline:6px}.linked-document-controls{grid-template-columns:1fr!important}.linked-document-picker{grid-column:auto}}

/* Invoice quantity and price clarity */
.invoice-billable-quantity{display:inline-block;min-width:72px;color:#073f61;font-size:12px}.invoice-price-missing{background:#fff8e7}.invoice-price-missing [data-invoice-field="unitPrice"]{border-color:#c98000;background:#fffdf6}.invoice-price-missing [data-invoice-field="unitPrice"]+small{color:#9a5700;font-weight:800}.invoice-editor-lines td:nth-child(5){min-width:unset;white-space:nowrap}.invoice-editor-lines td:nth-child(10){min-width:92px}.invoice-editor-lines td:nth-child(11){min-width:100px}

/* Compact sales workspace and measured warehouse receipts */
#orders-view{padding-top:3px}.sales-orders-command-bar{height:29px!important;min-height:29px!important}.sales-orders-command-bar .unified-tab-actions{margin-inline-start:auto;display:flex;gap:3px}.sales-orders-command-bar .button{height:23px;min-height:23px;padding:2px 7px;font-size:9px}.orders-card>.tabs{display:none!important}.orders-card>.card-toolbar{height:34px!important;min-height:34px!important;padding:2px 4px!important}.orders-card>.card-toolbar>div:first-child,.orders-card>.card-toolbar>.toolbar-actions{display:none}.orders-card>.card-toolbar>.unified-screen-filter{width:100%;height:29px;margin:0;padding:1px;border:0;background:transparent;grid-template-columns:minmax(240px,1fr) 130px 130px auto auto}.orders-card th,.orders-card td{padding:4px 6px!important}.orders-card .document-action-cell{gap:2px;flex-wrap:nowrap}.orders-card .doc-action,.orders-card .small-action{height:22px;min-height:22px;padding:2px 5px;font-size:8px}
#editor-view{padding-top:3px}#editor-view>.document-header{height:32px!important;min-height:32px!important}#editor-view .document-title{gap:5px}#editor-view .document-title h1{font-size:14px!important}#editor-view .document-actions{gap:3px}#editor-view .editor-layout{gap:5px;grid-template-columns:minmax(0,1fr) 220px}#editor-view .editor-main,#editor-view .editor-side{gap:5px}#editor-view .form-card,#editor-view .lines-card,#editor-view .summary-card,#editor-view .availability-card,#editor-view .timeline-card{padding:6px}#editor-view .section-title{min-height:24px;margin:0 0 4px;gap:5px}#editor-view .section-title h2{font-size:12px;margin:0}#editor-view .section-title p{display:none}#editor-view .section-icon{width:22px;height:22px;border-radius:4px}#editor-view .order-head-grid{gap:4px}#editor-view .field{gap:2px}#editor-view .field input,#editor-view .field select{height:28px;min-height:28px;padding:3px 6px}#editor-view .field textarea{min-height:42px;padding:5px 7px}#editor-view .lines-table-wrap{margin:0 -6px}#editor-view .professional-lines-table th,#editor-view .professional-lines-table td{padding:3px 4px!important}#editor-view .add-line-wide{height:24px;margin-top:3px;padding:2px}.summary-row{padding:4px 0}.summary-heading{margin-bottom:4px}.order-notes-card .section-title{display:none}
.warehouse-receipt-modal-card{width:min(1400px,98vw)}.warehouse-receipt-lines-wrap table{min-width:1050px;table-layout:fixed}.warehouse-receipt-lines-wrap th,.warehouse-receipt-lines-wrap td{padding:3px 4px!important}.warehouse-receipt-lines-wrap th:nth-child(1){width:28px}.warehouse-receipt-lines-wrap th:nth-child(2){width:230px}.warehouse-receipt-lines-wrap th:nth-child(3){width:70px}.warehouse-receipt-lines-wrap th:nth-child(4){width:65px}.warehouse-receipt-lines-wrap th:nth-child(5),.warehouse-receipt-lines-wrap th:nth-child(6),.warehouse-receipt-lines-wrap th:nth-child(7){width:68px}.warehouse-receipt-lines-wrap th:nth-child(8){width:80px}.warehouse-receipt-lines-wrap th:nth-child(9){width:90px}.warehouse-receipt-lines-wrap th:nth-child(10){width:102px}.warehouse-receipt-lines-wrap th:nth-child(11){width:82px}.warehouse-receipt-lines-wrap th:nth-child(12){width:30px}.warehouse-receipt-lines-wrap input,.warehouse-receipt-lines-wrap select{height:27px;min-height:27px;padding:2px 4px;font-size:9px}.fixed-uom-badge{display:inline-flex;align-items:center;justify-content:center;min-height:27px;width:100%;border:1px solid #8fa7ba;border-radius:4px;background:#eef5fa;color:#123b57;font-size:10px;font-weight:800}.receipt-weight-input{display:flex;align-items:center;gap:3px}.receipt-weight-input input{width:90px}.receipt-weight-input span,.receipt-no-measurement{font-size:9px;color:#5c7181;white-space:nowrap}.receipt-measurement-cell{padding-inline:3px!important}
@media(max-width:900px){#editor-view .editor-layout{grid-template-columns:1fr}#editor-view .editor-side{grid-template-columns:repeat(3,1fr)}.orders-card>.card-toolbar>.unified-screen-filter{grid-template-columns:1fr 1fr}.orders-card>.card-toolbar{height:auto!important}.sales-orders-command-bar{height:auto!important;flex-wrap:wrap}.sales-orders-command-bar .unified-tab-actions{width:100%}}

/* Purchasing directory and supplier invoices: compact ERP document language. */
.supplier-directory-command{margin:0 0 3px}.supplier-directory-command .warehouse-module-tabs{width:100%;margin:0!important}.supplier-directory-card{margin-top:0;overflow:hidden;border-color:#9eb3c4}.supplier-directory-card>.card-toolbar{height:32px!important;min-height:32px!important;display:flex;align-items:center;justify-content:space-between;gap:6px;padding:2px 5px!important;background:#f7fafc}.supplier-register-heading{display:flex;align-items:baseline;gap:7px;white-space:nowrap}.supplier-register-heading h2{margin:0}.supplier-register-heading small{margin:0!important;color:#587083!important}.supplier-directory-filter{display:flex;align-items:center;gap:3px;margin-inline-start:auto;min-width:min(590px,62vw)}.supplier-directory-filter .unified-search{flex:1;min-width:220px}.supplier-directory-filter .unified-search input{width:100%;height:25px;min-height:25px;padding:2px 25px 2px 6px;border:1px solid #9eb3c4;border-radius:4px;background:#fff;font:inherit;font-size:10px}.supplier-directory-table{table-layout:fixed;min-width:1050px}.supplier-directory-table th,.supplier-directory-table td{height:29px!important;padding:3px 6px!important;vertical-align:middle}.supplier-directory-table th:nth-child(1){width:9%}.supplier-directory-table th:nth-child(2){width:20%}.supplier-directory-table th:nth-child(3){width:16%}.supplier-directory-table th:nth-child(4){width:12%}.supplier-directory-table th:nth-child(5){width:12%}.supplier-directory-table th:nth-child(6){width:11%}.supplier-directory-table th:nth-child(7){width:8%}.supplier-directory-table th:nth-child(8){width:12%}.supplier-directory-table tbody tr:hover td{background:#f6fbff}.supplier-code,.supplier-code-chip{direction:ltr;font:800 10px Consolas,"Segoe UI",sans-serif;color:#17466a}.supplier-code-chip{display:inline-flex;margin-top:2px;padding:2px 7px;border:1px solid #9bb3c5;border-radius:10px;background:#eef5fa}.supplier-name-cell strong,.supplier-contact-cell strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.supplier-name-cell small,.supplier-contact-cell small{display:block!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.supplier-actions .document-action-cell{display:flex;gap:2px;flex-wrap:nowrap}.supplier-actions .small-action{height:22px;min-height:22px;padding:2px 5px;font-size:8.5px}.supplier-directory-modal-card{width:min(920px,96vw);max-height:94vh;overflow:auto}.supplier-directory-modal-card .modal-header{min-height:39px;padding:5px 8px}.supplier-form-section{margin:5px 7px 0;border:1px solid #b8c8d4;border-radius:5px;overflow:hidden;background:#fff}.supplier-form-section>header{height:25px;display:flex;align-items:center;padding:2px 7px;border-bottom:1px solid #c5d1da;background:#edf3f7;color:#173e5c;font-size:10px;font-weight:900}.supplier-form-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;padding:6px}.supplier-form-grid .field{gap:2px}.supplier-form-grid .field>span{font-size:9px;font-weight:800;color:#304b60}.supplier-form-grid input{height:29px;min-height:29px;padding:3px 6px}.supplier-name-field{grid-column:span 2}.supplier-address-field{grid-column:span 2}.supplier-finance-grid{grid-template-columns:repeat(2,minmax(160px,240px))}.supplier-invoice-modal-card .modal-header{min-height:39px}.supplier-invoice-source-summary{min-height:31px;display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 6px 4px;padding:4px 7px;border:1px solid #a9bdcc;border-radius:5px;background:#eef5fa;color:#29475e;font-size:10px}.supplier-invoice-source-summary strong{color:#153b59}.supplier-invoice-lines-wrap table{table-layout:fixed}.supplier-invoice-lines-wrap th:nth-child(1){width:42px}.supplier-invoice-lines-wrap th:nth-child(3){width:110px}.supplier-invoice-lines-wrap th:nth-child(4){width:110px}.supplier-invoice-lines-wrap th:nth-child(5),.supplier-invoice-lines-wrap th:nth-child(6){width:145px}.supplier-invoice-lines-wrap .supplier-invoice-unit-price{direction:ltr;text-align:left}.supplier-invoice-lines-wrap tfoot th{height:28px;padding:3px 6px;background:#f3f7fa;border-top:1px solid #afc0cd}.supplier-invoice-lines-wrap .supplier-invoice-grand-row th{background:#e6f1f7;color:#123f60;font-size:11px}.purchasing-invoice-tabs .unified-tab-actions{margin-inline-start:auto}.supplier-invoice-register .document-action-cell{flex-wrap:nowrap;gap:2px}
@media(max-width:760px){.supplier-directory-card>.card-toolbar{height:auto!important;flex-wrap:wrap}.supplier-directory-filter{width:100%;min-width:0}.supplier-form-grid{grid-template-columns:1fr}.supplier-name-field,.supplier-address-field{grid-column:auto}.supplier-finance-grid{grid-template-columns:1fr 1fr}.supplier-invoice-source-summary{align-items:flex-start;flex-direction:column;gap:2px}}
.supplier-directory-head{min-height:31px!important;margin-bottom:2px!important}.supplier-directory-head>div{display:flex;align-items:baseline;gap:8px}.supplier-directory-head small{color:#60788a;font-size:9px}.supplier-directory-bar{min-height:36px;display:flex;align-items:center;gap:7px;padding:3px 5px;margin-bottom:3px;border:1px solid #9db3c3;border-radius:5px;background:#eaf1f6}.supplier-directory-primary-actions{display:flex;align-items:center;gap:3px;margin-inline-start:auto}.supplier-directory-primary-actions .button{height:27px;min-height:27px;padding:2px 8px;font-size:9px}.supplier-tree-hint{color:#6a7e8d;font-size:8px}.supplier-tree-table{table-layout:fixed;min-width:1120px}.supplier-tree-table th:nth-child(1){width:23%}.supplier-tree-table th:nth-child(2){width:14%}.supplier-tree-table th:nth-child(3){width:9%}.supplier-tree-table th:nth-child(4){width:10%}.supplier-tree-table th:nth-child(5){width:12%}.supplier-tree-table th:nth-child(6){width:11%}.supplier-tree-table th:nth-child(7){width:8%}.supplier-tree-table th:nth-child(8){width:13%}.supplier-category-row{--supplier-depth:0}.supplier-category-row td{height:29px!important;padding:2px 6px!important;background:#e4edf3!important;border-top:1px solid #91a8b9!important;border-bottom:1px solid #afc0cc!important}.supplier-category-row[style*="--supplier-depth:0"] td{background:#dce9f2!important}.supplier-category-line{display:grid;grid-template-columns:20px 23px minmax(210px,1fr) auto auto;align-items:center;gap:5px;padding-inline-start:calc(var(--supplier-depth) * 18px);min-height:25px}.supplier-category-icon{width:22px;height:22px;display:grid;place-items:center;border-radius:4px;background:#164e75;color:#fff;font-size:11px}.supplier-category-identity{display:flex;align-items:baseline;gap:7px;min-width:0}.supplier-category-identity strong{font-size:11px;color:#123c5b;white-space:nowrap}.supplier-category-identity small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#587084;font-size:8px!important}.supplier-category-summary,.supplier-category-actions{display:flex;align-items:center;gap:3px;white-space:nowrap}.supplier-category-summary>span:not(.status){padding:2px 6px;border:1px solid #aec0cc;border-radius:9px;background:#f9fbfc;color:#38566c;font-size:8px}.supplier-category-actions .small-action{height:21px;min-height:21px;padding:1px 5px;font-size:8px!important}.supplier-tree-item{--supplier-depth:1}.supplier-tree-item td{height:30px!important;padding:2px 5px!important}.supplier-tree-item td:first-child{padding-inline-start:calc(12px + var(--supplier-depth) * 18px)!important}.supplier-tree-branch{display:inline-block;margin-inline-end:5px;color:#8399a9}.supplier-tree-item .supplier-name-cell strong{display:inline;font-size:10px}.supplier-tree-item .supplier-name-cell small{margin-inline-start:5px;display:inline!important;font-size:8px!important}.supplier-category-modal-card{width:min(700px,95vw)}.supplier-category-form-grid{display:grid;grid-template-columns:150px minmax(220px,1fr) minmax(220px,1fr);gap:6px;padding:8px}.supplier-category-form-grid .field{display:grid;gap:2px}.supplier-category-form-grid input,.supplier-category-form-grid select{height:30px;min-height:30px}.supplier-category-description{grid-column:span 2}.supplier-category-form-grid .check-label{align-self:end;height:30px}.supplier-directory-modal-card .supplier-form-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.supplier-directory-modal-card .supplier-name-field{grid-column:span 2}.supplier-directory-modal-card .supplier-address-field{grid-column:span 2}.supplier-directory-modal-card .supplier-finance-grid{grid-template-columns:repeat(2,minmax(180px,240px))}
@media(max-width:900px){.supplier-directory-bar{align-items:stretch;flex-direction:column}.supplier-directory-primary-actions{width:100%;margin:0;overflow:auto}.supplier-directory-filter{width:100%;min-width:0}.supplier-directory-modal-card .supplier-form-grid{grid-template-columns:1fr 1fr}.supplier-category-form-grid{grid-template-columns:1fr 1fr}.supplier-category-description{grid-column:span 2}}

/* One compact command header across the sales document cycle */
#preparation-work-view,#deliveries-view{padding-top:3px}.sales-orders-command-bar{display:flex;align-items:center;gap:2px;overflow-x:auto}.sales-orders-command-bar>.unified-tab-actions{margin-inline-start:auto;display:flex;align-items:center;gap:3px;padding-inline-start:8px}.sales-orders-command-bar>.unified-tab-actions .button{white-space:nowrap}.sales-orders-command-bar+.content-card{margin-top:0}#preparation-work-view .card-toolbar,#deliveries-view .card-toolbar{height:30px!important;min-height:30px!important;padding:3px 6px!important}#preparation-work-view th,#preparation-work-view td,#deliveries-view th,#deliveries-view td{padding:4px 6px!important}.workflow-banner.compact{min-height:31px;margin:0 0 4px;padding:3px 7px;border-radius:5px}.workflow-banner.compact>div:first-child{display:flex;align-items:center;gap:7px}.workflow-banner.compact .order-chips{gap:3px;max-height:27px;overflow:auto}
.price-list-picker{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;padding:6px;border:1px solid #a9bfd3;border-radius:7px;background:#f8fbfe;max-height:150px;overflow:auto}.price-list-picker>label{display:flex;align-items:center;gap:7px;min-height:38px;padding:5px 8px;border:1px solid #c7d6e3;border-radius:6px;background:#fff;cursor:pointer}.price-list-picker>label:has(input:checked){border-color:#1479b8;background:#eef8ff;box-shadow:inset 3px 0 #1479b8}.price-list-picker input{width:16px;height:16px;margin:0}.price-list-picker span{display:flex;flex-direction:column;gap:1px;min-width:0}.price-list-picker b{font-size:13px;color:#102f46}.price-list-picker small{font-size:11px;color:#536d80}@media(max-width:620px){.price-list-picker{grid-template-columns:1fr}}

/* Hierarchical cost-center directory and document dimensions */
.cost-center-tools{display:flex;align-items:center;gap:5px;flex-wrap:wrap}.cost-center-tools input{width:min(270px,36vw);height:30px;border:1px solid var(--line);border-radius:6px;padding:3px 9px;background:#fff}.cost-center-directory .card-toolbar{min-height:38px;padding:4px 7px}.cost-center-tree-table th,.cost-center-tree-table td{padding:4px 7px;height:34px}.cost-center-tree-table .account-tree-name{min-height:25px}.cost-center-tree-table .coa-name strong{font-size:12px}.cost-center-tree-table .document-action-cell{gap:3px;flex-wrap:nowrap}.cost-center-tree-table .small-action{min-height:25px;padding:2px 7px}.document-posting-table td select[data-document-posting-cost-center]{min-width:170px}.document-posting-table td>small{display:block;margin-top:2px;color:#526575}.accounting-pro-head:has(+.accounting-inner-tabs){min-height:30px;padding-block:2px}.accounting-pro-head:has(+.accounting-inner-tabs) h1{font-size:18px;line-height:1.15}
@media(max-width:760px){.cost-center-tools{width:100%}.cost-center-tools input{width:100%}.cost-center-tree-table{min-width:780px}.document-posting-table{min-width:1050px}}
.posting-tree-link{display:flex;align-items:center;gap:8px;min-height:34px;margin-bottom:4px;padding:4px 7px;border:1px solid #83a9c3;border-radius:5px;background:#edf6fb;color:#183b53}.posting-tree-link strong{font-size:11px}.posting-tree-link span{font-size:10px;color:#49677b}.posting-tree-link .small-action{margin-inline-start:auto;white-space:nowrap}.cost-center-directory .loading-cell{height:58px;color:#31556d;font-weight:800}.document-posting-table th:nth-child(2){width:16%}.document-posting-table th:nth-child(4){width:18%}.document-posting-table th:nth-child(5){width:22%}.document-posting-table th:nth-child(6){width:21%}.document-posting-table th:nth-child(7){width:11%}
@media(max-width:760px){.posting-tree-link{align-items:flex-start;flex-wrap:wrap}.posting-tree-link .small-action{margin-inline-start:0}}

/* Traceable documents, purchase expenses and account-statement preview */
.doc-action.relations{border-color:#7054b8;background:#f2efff;color:#4d338e;font-weight:900}.doc-action.relations:hover{background:#6847b7;color:#fff}.document-relations-card{width:min(820px,96vw)}.document-relations-content{max-height:67vh;padding:5px;overflow:auto;background:#f4f7fa}.document-relation-tree,.document-relation-tree ul{list-style:none;margin:0;padding:0}.document-relation-tree ul{position:relative;margin-inline-start:22px;padding-inline-start:15px;border-inline-start:2px solid #b8c9d7}.relation-node{position:relative;margin:4px 0}.document-relation-tree ul>.relation-node:before{content:"";position:absolute;inset-inline-start:-15px;top:22px;width:13px;border-top:2px solid #b8c9d7}.relation-node-card{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:2px 8px;min-height:42px;padding:4px 7px;border:1px solid #9eb4c5;border-radius:6px;background:#fff}.relation-node.current>.relation-node-card{border-color:#5a3db0;box-shadow:inset 4px 0 #6541bf;background:#f7f4ff}.relation-node-card>small{grid-column:1/-1;color:#6b528f;font-size:9px;font-weight:900}.relation-node-card>span{grid-column:2;color:#536b7c;font-size:9px;white-space:nowrap}.relation-document-open{display:flex;align-items:center;gap:7px;min-width:0;padding:0;border:0;background:transparent;color:#153d58;font:inherit;text-align:right;cursor:pointer}.relation-document-open span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px;font-weight:800}.relation-document-open strong{color:#075f94;font-size:11px;white-space:nowrap}.relation-document-open.locked{cursor:default;opacity:.65}
.warehouse-receipt-head.four{grid-template-columns:repeat(4,minmax(0,1fr))}.warehouse-receipt-head input,.warehouse-receipt-head select{height:28px;min-height:28px}.statement-toolbar-actions{display:flex;align-items:center;gap:4px}.accounting-statement-preview-card{width:min(1050px,97vw)}.statement-preview-sheet{padding:8px;border:1px solid #8fa7b8;background:#fff;color:#132f43}.statement-preview-sheet>header{display:flex;align-items:end;justify-content:space-between;padding:2px 2px 7px;margin-bottom:7px;border-bottom:2px solid #244f6d}.statement-preview-sheet h3{margin:0 0 2px;font-size:17px}.statement-preview-sheet header strong{font-size:12px}.statement-preview-sheet header>span{font-size:10px}.statement-preview-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;margin-bottom:6px}.statement-preview-summary>div{padding:4px 6px;border:1px solid #9fb1be;border-radius:4px}.statement-preview-summary span{display:block;color:#596f7e;font-size:9px}.statement-preview-summary strong{font-size:12px}.statement-preview-sheet th,.statement-preview-sheet td{padding:4px 5px!important;font-size:10px!important}.statement-preview-sheet td:nth-child(n+5){direction:ltr;text-align:left}.statement-total-row th{background:#dce7ee!important;color:#102f46!important;font-weight:900!important;border-top:2px solid #244f6d!important}
.statement-preview-table-wrap{max-width:100%;overflow:auto}.statement-preview-table{width:100%;min-width:760px;table-layout:fixed}.statement-preview-table .statement-entry-col{width:8%}.statement-preview-table .statement-date-col{width:11%}.statement-preview-table .statement-source-col{width:14%}.statement-preview-table .statement-description-col{width:31%}.statement-preview-table .statement-money-col{width:12%}.statement-preview-table th,.statement-preview-table td{overflow-wrap:anywhere}.statement-preview-table td:nth-child(n+5){white-space:nowrap}
.statement-preview-sheet>.statement-preview-head{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:18px}.statement-preview-head>h3{margin:0;text-align:center;white-space:nowrap}.statement-preview-party,.statement-preview-print{display:grid;gap:1px;min-width:0}.statement-preview-party span,.statement-preview-print span{color:#596f7e;font-size:9px;font-weight:700}.statement-preview-party strong{overflow-wrap:anywhere;font-size:12px}.statement-preview-party b{direction:ltr;text-align:right;font-size:10px}.statement-preview-print{text-align:left}.statement-preview-print strong{font-size:11px}.statement-preview-print b{margin-top:3px;font-size:9px;line-height:1.4}
@media(max-width:760px){.warehouse-receipt-head.four{grid-template-columns:1fr 1fr}.relation-node-card{grid-template-columns:1fr}.relation-node-card>span{grid-column:1}.statement-preview-sheet{min-width:760px}.accounting-statement-preview-card{overflow:auto}}

/* Block warehouses: one compact measurement row for receipts, issues and transfers. */
.issue-modal-card{width:min(1380px,98vw)}.issue-modal-card .table-wrap table{min-width:1030px;table-layout:fixed}.issue-modal-card .table-wrap th,.issue-modal-card .table-wrap td{padding:3px 4px!important}.issue-modal-card .table-wrap th:nth-last-child(-n+5){width:76px}.issue-modal-card .issue-quantity,.issue-modal-card .issue-block-length,.issue-modal-card .issue-block-width,.issue-modal-card .issue-block-height,.weight-issue-quantity,.weight-block-length,.weight-block-width,.weight-block-height{width:100%;min-width:58px;height:27px;min-height:27px;padding:2px 4px;border:1px solid #8fa7ba;border-radius:4px;background:#fff;text-align:center;font:inherit;font-size:10px}.issue-block-volume,.weight-block-volume{display:inline-flex;align-items:center;justify-content:center;min-width:58px;min-height:27px;padding:2px 5px;border:1px solid #9eb5c5;border-radius:4px;background:#edf5fa;color:#103f5e;white-space:nowrap;font-size:10px}.weight-issue-lines-wrap table{min-width:1020px;table-layout:fixed}.weight-issue-lines-wrap th,.weight-issue-lines-wrap td{padding:3px 4px!important}

/* Recoverable per-user sales-order workspace and inherited document notes */
.sales-order-workspace-notice{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:30px;margin:3px 0;padding:3px 7px;border:1px solid #8fb7d4;border-radius:5px;background:#eef7fd;color:#173f5d}.sales-order-workspace-notice>div{display:flex;align-items:center;gap:7px;min-width:0}.sales-order-workspace-notice strong{font-size:11px;white-space:nowrap}.sales-order-workspace-notice span{font-size:10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sales-order-workspace-notice .document-action-cell{flex-wrap:nowrap}.document-source-note{margin:4px 0;padding:5px 8px;border:1px solid #9eb8ca;border-inline-start:4px solid #2577a9;border-radius:5px;background:#f5f9fc;color:#183d58;white-space:pre-wrap;font-size:11px;line-height:1.45}.document-source-note strong{margin-inline-end:5px;color:#0d527e}@media(max-width:700px){.sales-order-workspace-notice{align-items:flex-start;flex-direction:column}.sales-order-workspace-notice>div{width:100%}}

/* Cross-browser sales-order field labels */
#editor-view #credit-note{display:none!important}#editor-view .compact-measure-cell{min-width:315px}#editor-view .compact-measure-fields{display:grid!important;grid-template-columns:repeat(3,minmax(96px,1fr));gap:4px;align-items:center;overflow:visible}#editor-view .compact-measure-fields>label{display:grid!important;grid-template-columns:max-content minmax(48px,1fr);align-items:center;gap:3px;min-width:0;overflow:visible;white-space:nowrap}#editor-view .compact-measure-fields>label>span{display:block!important;min-width:max-content;overflow:visible!important;text-overflow:clip!important;white-space:nowrap!important;font-size:10px;line-height:1.2}#editor-view .compact-measure-fields input{width:100%!important;min-width:48px!important;height:27px!important;padding:2px 4px!important}@media(max-width:1180px){#editor-view .compact-measure-cell{min-width:288px}#editor-view .compact-measure-fields{grid-template-columns:repeat(3,minmax(88px,1fr))}#editor-view .compact-measure-fields>label{grid-template-columns:1fr;gap:1px}#editor-view .compact-measure-fields>label>span{text-align:center;font-size:9px}}
.warehouse-document-classification{margin:2px 0 0;color:#1769aa;font-size:.82rem;font-weight:600}
.supplier-dual-role{display:inline-flex!important;align-items:center;width:max-content;margin-top:3px;padding:2px 7px;border:1px solid #9fd8c3;border-radius:999px;background:#effbf6;color:#126349;font-size:10px;font-weight:700}
.supplier-statement-filter{align-items:end!important;grid-template-columns:minmax(260px,1.5fr) minmax(180px,1fr) 150px 150px auto!important}
.supplier-statement-filter label{display:grid;gap:4px;min-width:0}.supplier-statement-filter label>span{font-size:10px;font-weight:800;color:#51687a}
.party-statement-summary{display:grid;grid-template-columns:repeat(3,minmax(150px,1fr));gap:7px;padding:8px;border-bottom:1px solid #c7d5e0;background:#f8fbfd}
.party-statement-summary div{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:7px 10px;border:1px solid #ccd9e2;border-radius:6px;background:#fff}.party-statement-summary span{font-size:11px;color:#557083}.party-statement-summary strong{direction:ltr;color:#173f60}.party-statement-summary .net{border-color:#77b79e;background:#f0faf6}.party-side{display:inline-flex;min-width:48px;justify-content:center;padding:2px 7px;border-radius:999px;font-size:10px;font-weight:800}.party-side.supplier{background:#fff1e6;color:#8b451d}.party-side.customer{background:#eaf3ff;color:#145a92}
@media(max-width:1050px){.supplier-statement-filter{grid-template-columns:1fr 1fr!important}.party-statement-summary{grid-template-columns:1fr}}
.journal-register-table th:nth-child(9){width:72px}.journal-register-table .journal-open-action{display:inline-flex;align-items:center;justify-content:center;min-width:48px!important}.journal-register-table td:last-child{text-align:center}
