:root{--background:#f4f6f8;--foreground:#172026;--muted:#66737f;--line:#d7dee5;--panel:#fff;--panel-soft:#f7faf9;--accent:#176b5d;--accent-strong:#0d4d44;--accent-soft:#e8f4f0;--danger:#a83f39;--warning:#8a6116;--shadow:0 10px 28px #10182814}*{box-sizing:border-box}html{overflow-x:hidden}body{background:var(--background);min-height:100vh;color:var(--foreground);margin:0;font-family:Arial,Tahoma,Segoe UI,Noto Sans Arabic,sans-serif;font-size:16px;line-height:1.45;overflow-x:hidden}button,input,select,textarea{font:inherit}button{border:1px solid var(--line);min-height:44px;color:var(--foreground);cursor:pointer;background:#fff;border-radius:6px;padding:0 14px;font-weight:700}button:hover:not(:disabled){border-color:var(--accent);color:var(--accent-strong);background:var(--accent-soft)}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline-offset:1px;outline:3px solid #176b5d2e}button:disabled{cursor:not-allowed;opacity:.55}input,select,textarea{border:1px solid var(--line);width:100%;min-height:46px;color:var(--foreground);background:#fff;border-radius:6px;outline:none;padding:10px 12px}textarea{resize:vertical;min-height:110px}input:focus,select:focus,textarea:focus{border-color:var(--accent);box-shadow:0 0 0 3px #176b5d1f}.workspace-shell{grid-template-columns:300px minmax(0,1fr);min-height:100vh;display:grid}[dir=rtl].workspace-shell{grid-template-columns:minmax(0,1fr) 300px}.sidebar{color:#f7faf9;z-index:5;background:#1f282d;border-right:1px solid #ffffff1a;align-self:start;min-height:100vh;padding:24px 18px;position:sticky;top:0}[dir=rtl] .sidebar{border-left:1px solid #ffffff1a;border-right:0;grid-area:1/2}[dir=rtl] .content-area{grid-area:1/1}.brand-block{border-bottom:1px solid #ffffff21;align-items:center;gap:12px;padding:0 6px 20px;display:flex}.brand-mark{background:#2e7a68;border:1px solid #ffffff59;border-radius:8px;flex:none;place-items:center;width:48px;height:48px;font-weight:800;display:inline-grid}.brand-block h1{margin:0;font-size:22px;line-height:1.15}.brand-block p{color:#c5d0cd;margin:5px 0 0;font-size:14px}.language-toggle{color:#fff;background:#ffffff14;border-color:#ffffff3d;width:100%;margin-top:16px}.language-toggle:hover{color:#103f38;background:#eef7f4}.module-nav{grid-template-columns:1fr 1fr;gap:8px;margin-top:16px;display:grid}.module-nav button,.resource-nav button{color:#dfe7e5;text-align:start;background:0 0;border-color:#0000;width:100%}.module-nav button{text-align:center;background:#ffffff0f;border-color:#ffffff2e}.resource-nav{gap:6px;margin-top:18px;display:grid}.resource-nav button{justify-content:flex-start;min-height:42px;padding:11px 12px}.module-nav button.active,.resource-nav button.active,.module-nav button:hover,.resource-nav button:hover{color:#103f38;background:#eef7f4}.content-area{width:100%;min-width:0;padding:28px}.topbar{justify-content:space-between;align-items:flex-start;gap:22px;max-width:1680px;margin:0 auto 18px;display:flex}.eyebrow{color:var(--accent-strong);margin:0 0 5px;font-size:14px;font-weight:800}h2{margin:0;font-size:34px;line-height:1.12}.page-description{max-width:760px;color:var(--muted);margin:8px 0 0;font-size:16px}.functional-panel{border:1px solid var(--line);background:var(--panel);box-shadow:var(--shadow);border-radius:8px;align-items:center;gap:10px;padding:12px;display:flex}.functional-panel div{min-width:170px}.functional-panel span{color:var(--muted);font-size:13px;font-weight:700;display:block}.functional-panel strong{margin-top:2px;font-size:16px;display:block}.functional-panel select,.functional-panel button{width:auto}.toolbar{border:1px solid var(--line);background:var(--panel);max-width:1680px;box-shadow:var(--shadow);border-radius:8px;flex-wrap:wrap;align-items:center;gap:12px;margin:0 auto 14px;padding:14px;display:flex}.searchbar{flex:1;gap:10px;min-width:min(520px,100%);display:flex}.toolbar select,.toolbar button{width:auto;min-width:150px}.message{color:#17483f;background:#e7f4ee;border:1px solid #accabe;border-radius:8px;max-width:1680px;margin:0 auto 14px;padding:12px 14px;font-weight:700}.message.error{color:var(--danger);background:#fff0ef;border-color:#e2aaa6}.starter-setup-panel{max-width:1680px;box-shadow:var(--shadow);background:#fff;border:1px solid #cfd8df;border-radius:8px;justify-content:space-between;align-items:center;gap:18px;margin:0 auto 14px;padding:16px 18px;display:flex}.starter-setup-panel h3{margin:0;font-size:18px;line-height:1.3}.starter-setup-panel p:last-child{color:var(--muted);margin:6px 0 0}.starter-setup-panel button{width:auto;min-width:190px}.main-grid{grid-template-columns:minmax(0,1fr) minmax(440px,560px);align-items:start;gap:18px;max-width:1680px;margin:0 auto;display:grid}.table-panel,.editor-panel{border:1px solid var(--line);background:var(--panel);min-width:0;box-shadow:var(--shadow);border-radius:8px;overflow:hidden}.panel-heading{border-bottom:1px solid var(--line);justify-content:space-between;align-items:center;gap:12px;min-height:62px;padding:16px 18px;font-size:18px;font-weight:800;display:flex}.table-wrap{overscroll-behavior-x:contain;max-width:100%;overflow-x:auto}table{border-collapse:separate;border-spacing:0;width:100%;min-width:980px}th,td{border-bottom:1px solid var(--line);text-align:start;vertical-align:top;overflow-wrap:anywhere;padding:14px 16px;font-size:15px}th{z-index:1;color:#42515c;text-transform:uppercase;background:#f3f6f8;font-size:13px;font-weight:900;position:sticky;top:0}tbody tr:nth-child(2n){background:#fbfcfd}tbody tr:hover{background:#eef7f4}td:first-child,th:first-child{min-width:150px}.actions-cell{min-width:230px}.row-actions{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.row-actions button{white-space:nowrap;min-height:38px;padding:6px 12px;font-size:14px}.state-cell{color:var(--muted);text-align:center;padding:28px 18px;font-weight:700}.pager{justify-content:flex-end;align-items:center;gap:10px;padding:14px 18px;display:flex}.pager span{color:var(--muted);font-size:15px;font-weight:700}.editor-panel{position:sticky;top:22px}.form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;padding:18px;display:grid}.field,.checkbox-field{gap:7px;display:grid}.field span,.checkbox-field span,.inline-field span{color:#344054;font-size:14px;font-weight:800}.field-wide,.message,.nested-fieldset{grid-column:1/-1}.required-mark{color:var(--danger);margin-inline-start:4px;font-style:normal}.checkbox-field{border:1px solid var(--line);background:#fff;border-radius:6px;grid-template-columns:1fr auto;align-items:center;padding:12px}.checkbox-field input{width:20px;min-height:20px}.checkbox-field.disabled{color:var(--muted);background:#f2f4f7}.form-actions{justify-content:flex-end;gap:10px;padding:0 18px 18px;display:flex}.primary-action{border-color:var(--accent-strong);background:var(--accent);color:#fff;font-weight:800}.primary-action:hover:not(:disabled){background:var(--accent-strong);color:#fff}.primary-action.compact{width:auto;margin:0;padding:0 18px}.inventory-toolbar select,.inventory-toolbar input,.inventory-toolbar button{width:auto;min-width:180px}.inventory-table-panel table{min-width:1220px}.muted-count{color:var(--muted);font-size:15px;font-weight:700}.inventory-badge{border:1px solid var(--line);vertical-align:middle;white-space:nowrap;border-radius:999px;align-items:center;min-height:28px;padding:3px 10px;font-size:13px;font-weight:800;display:inline-flex}.inventory-badge.in{color:#17483f;background:#e7f4ee;border-color:#accabe}.inventory-badge.out,.inventory-badge.warn{color:var(--warning);background:#fff8e8;border-color:#e7c68f}.production-material-summary{flex-wrap:wrap;align-items:center;gap:8px 12px;display:flex}.production-material-name{font-weight:800}.production-material-quantity{color:var(--muted);white-space:nowrap;font-weight:800}.owner-quantity-unit{grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px;display:grid}.owner-quantity-unit strong,.production-unit-value{border:1px solid var(--line);background:#f3f6f8;border-radius:6px;align-items:center;min-width:84px;min-height:46px;padding:10px 12px;display:inline-flex}.production-recipe-line-head,.production-recipe-line{grid-template-columns:minmax(240px,1fr) minmax(110px,.35fr) minmax(110px,.35fr) auto;align-items:end;gap:10px;display:grid}.production-recipe-line-head{color:var(--muted);padding:10px 18px 0;font-size:13px;font-weight:900}.production-recipe-line{border:1px solid var(--line);background:#fbfcfd;border-radius:8px;margin:10px 18px;padding:12px}.production-recipe-line .owner-combobox-list button{justify-content:space-between;align-items:center;gap:12px;display:flex}.production-recipe-line .owner-combobox-list small{color:var(--muted);white-space:nowrap}.nested-fieldset{border:1px solid var(--line);border-radius:8px;margin:0;padding:14px}.nested-fieldset legend{color:var(--muted);padding:0 8px;font-size:14px;font-weight:800}.inline-field{gap:7px;min-width:min(380px,100%);display:grid}.confirm-list{color:var(--foreground);margin:0 0 18px;padding-inline-start:20px}.dialog-backdrop{z-index:20;background:#151c237a;place-items:center;padding:20px;display:grid;position:fixed;inset:0}.confirm-dialog{border:1px solid var(--line);background:#fff;border-radius:10px;width:min(520px,100%);padding:22px;box-shadow:0 18px 45px #10182838}.confirm-dialog h3{margin:0 0 8px;font-size:22px}.confirm-dialog p{color:var(--muted);margin:0 0 12px}.confirm-dialog strong{overflow-wrap:anywhere;margin-bottom:18px;display:block}.start-fresh-panel{max-width:900px;padding:34px}.start-fresh-panel h2{margin:0 0 18px}.start-fresh-panel>p{color:var(--muted)}.start-fresh-warning{color:#7b1f1a;background:#fff0ef;border:2px solid #d74b42;border-radius:10px;margin:20px 0;padding:18px}.start-fresh-warning p{margin:8px 0 0}.start-fresh-panel .message{margin:18px 0 0}.start-fresh-dialog{width:min(620px,100%)}.start-fresh-preview{border:1px solid var(--line);border-radius:8px;margin:16px 0;overflow:hidden}.start-fresh-preview div{border-bottom:1px solid var(--line);justify-content:space-between;gap:20px;padding:9px 12px;display:flex}.start-fresh-preview div:last-child{border-bottom:0}.start-fresh-preview dt,.start-fresh-preview dd{margin:0}.start-fresh-preview dd{font-variant-numeric:tabular-nums;font-weight:800}.danger-action{color:#fff!important;background:#b93630!important;border-color:#a72d27!important}.danger-action:disabled{opacity:.45;cursor:not-allowed}.dialog-actions{justify-content:flex-end;gap:10px;display:flex}@media (max-width:1180px){.workspace-shell,[dir=rtl].workspace-shell{grid-template-columns:1fr}.sidebar,[dir=rtl] .sidebar{border:0;border-bottom:1px solid var(--line);grid-column:1;min-height:auto;position:static}.content-area,[dir=rtl] .content-area{grid-column:1}.resource-nav{grid-template-columns:repeat(auto-fit,minmax(170px,1fr))}.main-grid{grid-template-columns:1fr}.editor-panel{position:static}}@media (max-width:760px){body{font-size:15px}.content-area{padding:16px}.topbar,.functional-panel,.searchbar,.starter-setup-panel{flex-direction:column;align-items:stretch}.toolbar select,.toolbar input,.toolbar button,.functional-panel select,.functional-panel button,.inventory-toolbar select,.inventory-toolbar input,.inventory-toolbar button,.starter-setup-panel button{width:100%}.module-nav{grid-template-columns:1fr}h2{font-size:28px}.form-grid{grid-template-columns:1fr}.form-actions,.dialog-actions{flex-direction:column-reverse}.form-actions button,.dialog-actions button{width:100%}table{min-width:760px}th,td{padding:12px}}.content-area>.table-panel,.content-area>.inventory-table-panel{max-width:1680px;margin:0 auto}.topbar-action{flex:none;min-width:180px}.section-actions{justify-content:flex-end;max-width:1680px;margin:0 auto 14px;display:flex}.nav-group{margin-top:20px}.nav-group-label{color:#98b2ad;letter-spacing:0;margin:0;padding:0 8px 4px;font-size:13px;font-weight:900}.table-panel,.editor-panel,.toolbar,.functional-panel,.message{border-color:#cfd8df}.table-wrap{border-radius:0 0 8px 8px}table{table-layout:auto}th,td{overflow-wrap:normal;word-break:normal}th.nowrap-cell,td.nowrap-cell,.actions-cell,.row-actions,.inventory-badge{white-space:nowrap}th.text-cell,td.text-cell{white-space:normal;min-width:210px}td.text-cell{max-width:360px}[dir=rtl] th,[dir=rtl] td,[dir=rtl] input,[dir=rtl] select,[dir=rtl] textarea{text-align:right}[dir=rtl] .brand-mark,[dir=rtl] .nowrap-cell,[dir=rtl] .inventory-badge,[dir=rtl] code{direction:ltr;unicode-bidi:isolate}.editor-backdrop{place-items:stretch end;padding:0}[dir=rtl] .editor-backdrop{justify-items:start}.editor-drawer{background:var(--panel);width:min(760px,100vw);height:100vh;overflow-y:auto;box-shadow:-18px 0 46px #1018283d}[dir=rtl] .editor-drawer{box-shadow:18px 0 46px #1018283d}.editor-drawer .editor-panel{min-height:100vh;box-shadow:none;border:0;border-radius:0}.drawer-footer{justify-content:flex-end;padding:0 18px 18px;display:flex}.drawer-note{color:var(--muted);margin:0;padding:14px 18px 0;font-size:14px;font-weight:700}.drawer-note p{color:var(--muted);margin:4px 0 0;font-weight:600}.form-error{color:var(--danger);background:#fff0ef;border:1px solid #e2aaa6;border-radius:8px;margin:0;padding:12px 14px;font-weight:800}.inventory-form-panel{max-width:1080px;margin:0 auto}:is(.inventory-form-panel .form-grid>.field:has(textarea),.inventory-form-panel .form-grid>.nested-fieldset){grid-column:1/-1}.field-help{color:var(--muted);font-size:13px;font-weight:600}.panel-heading button,.form-actions button,.drawer-footer button,.row-actions button{flex:none}.toolbar input,.toolbar select{max-width:320px}.searchbar input{max-width:none}.confirm-dialog{max-height:calc(100vh - 40px);overflow-y:auto}.confirm-list li,.confirm-dialog strong{word-break:normal;overflow-wrap:break-word}@media (max-width:1180px){.topbar{flex-direction:column}.topbar-action,.section-actions .primary-action{width:100%}.editor-drawer{width:min(720px,100vw)}}@media (max-width:760px){.editor-backdrop{place-items:end stretch}.editor-drawer{border-radius:14px 14px 0 0;width:100vw;height:92vh}.panel-heading{flex-direction:column;align-items:flex-start}.panel-heading button{width:100%}.toolbar{grid-template-columns:1fr;display:grid}.toolbar input,.toolbar select,.toolbar button,.searchbar{width:100%;max-width:none}th.text-cell,td.text-cell{min-width:190px}}.workspace-shell{direction:ltr;grid-template-columns:300px minmax(0,1fr)}.workspace-shell>.sidebar{text-align:left;direction:ltr;border-left:0;border-right:1px solid #ffffff1a;grid-area:1/1}.workspace-shell>.content-area{text-align:left;direction:ltr;grid-area:1/2}.workspace-shell[dir=rtl]{direction:ltr;grid-template-columns:minmax(0,1fr) 300px}.workspace-shell[dir=rtl]>.sidebar{text-align:right;direction:rtl;border-left:1px solid #ffffff1a;border-right:0;grid-column:2}.workspace-shell[dir=rtl]>.content-area{text-align:right;direction:rtl;grid-column:1}.workspace-shell[dir=rtl] .topbar,.workspace-shell[dir=rtl] .panel-heading,.workspace-shell[dir=rtl] .toolbar,.workspace-shell[dir=rtl] .form-actions,.workspace-shell[dir=rtl] .dialog-actions,.workspace-shell[dir=rtl] .section-actions,.dialog-backdrop[dir=rtl] .dialog-actions{direction:rtl}.workspace-shell[dir=rtl] .row-actions{justify-content:flex-start}.dialog-backdrop[dir=rtl] .confirm-dialog,.dialog-backdrop[dir=rtl] .editor-drawer,.workspace-shell[dir=rtl] .confirm-dialog,.workspace-shell[dir=rtl] .editor-drawer{text-align:right;direction:rtl}.dialog-backdrop[dir=ltr] .confirm-dialog,.dialog-backdrop[dir=ltr] .editor-drawer,.workspace-shell[dir=ltr] .confirm-dialog,.workspace-shell[dir=ltr] .editor-drawer{text-align:left;direction:ltr}.workspace-shell[dir=rtl] .editor-backdrop,.dialog-backdrop[dir=rtl].editor-backdrop,.workspace-shell[dir=ltr] .editor-backdrop,.dialog-backdrop[dir=ltr].editor-backdrop{justify-items:end}.code-cell,.nowrap-cell,.inventory-badge,.brand-mark,td.nowrap-cell,th.nowrap-cell,select option,input[type=number],input[inputmode=decimal]{unicode-bidi:isolate}.workspace-shell[dir=rtl] .code-cell,.workspace-shell[dir=rtl] .nowrap-cell,.workspace-shell[dir=rtl] .inventory-badge,.workspace-shell[dir=rtl] .brand-mark,.dialog-backdrop[dir=rtl] .nowrap-cell,.dialog-backdrop[dir=rtl] .inventory-badge{text-align:left;direction:ltr}.workspace-shell[dir=rtl] input,.workspace-shell[dir=rtl] select,.workspace-shell[dir=rtl] textarea,.dialog-backdrop[dir=rtl] input,.dialog-backdrop[dir=rtl] select,.dialog-backdrop[dir=rtl] textarea{text-align:right;direction:rtl}.workspace-shell[dir=rtl] input[inputmode=decimal],.dialog-backdrop[dir=rtl] input[inputmode=decimal]{text-align:left;direction:ltr}@media (max-width:1180px){.workspace-shell,.workspace-shell[dir=rtl]{grid-template-columns:1fr}.workspace-shell>.sidebar,.workspace-shell>.content-area,.workspace-shell[dir=rtl]>.sidebar,.workspace-shell[dir=rtl]>.content-area{grid-column:1}.workspace-shell[dir=rtl]>.sidebar{border-left:0;border-bottom:1px solid var(--line)}}.workspace-shell[dir=rtl] .nowrap-cell,.dialog-backdrop[dir=rtl] .nowrap-cell,.workspace-shell[dir=rtl] .inventory-badge,.dialog-backdrop[dir=rtl] .inventory-badge{text-align:right;direction:rtl;unicode-bidi:isolate}.workspace-shell[dir=rtl] .code-cell,.workspace-shell[dir=rtl] .number-cell,.dialog-backdrop[dir=rtl] .code-cell,.dialog-backdrop[dir=rtl] .number-cell,.workspace-shell[dir=rtl] .brand-mark{text-align:left;direction:ltr;unicode-bidi:isolate}.module-nav{grid-template-columns:1fr}.purchase-toolbar{grid-template-columns:minmax(260px,1.4fr) repeat(4,minmax(170px,1fr));display:grid}.purchase-toolbar input,.purchase-toolbar select,.purchase-toolbar button{width:100%;min-width:0;max-width:none}.purchase-table-panel table{min-width:1480px}.purchase-drawer{width:min(1120px,100vw)}.purchase-form-grid{grid-template-columns:1fr;gap:16px;display:grid}.purchase-field-grid,.purchase-line-grid,.purchase-detail-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;display:grid}.purchase-line-card{border:1px solid var(--line);background:#fbfcfd;border-radius:8px;margin-bottom:14px;padding:14px}.purchase-line-heading{justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px;display:flex}.purchase-line-heading strong{font-size:17px}.purchase-line-heading button{min-height:38px}.advanced-options{border:1px solid var(--line);background:#fff;border-radius:8px;grid-column:1/-1;padding:0}.advanced-options summary{cursor:pointer;color:#344054;min-height:46px;padding:12px 14px;font-size:14px;font-weight:900}.advanced-options[open] summary{border-bottom:1px solid var(--line)}.advanced-options .purchase-field-grid{padding:14px}.purchase-summary{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;display:grid}.purchase-read-field{border:1px solid var(--line);background:#fff;border-radius:8px;min-width:0;padding:12px}.purchase-read-field span{color:var(--muted);margin-bottom:5px;font-size:13px;font-weight:800;display:block}.purchase-read-field strong{overflow-wrap:break-word;font-size:16px;line-height:1.35;display:block}.purchase-lines-wrap{border:1px solid var(--line);border-radius:8px;margin:18px}.purchase-lines-wrap table{min-width:980px}.purchase-owner-form{gap:16px;padding:18px;display:grid}.owner-form-section{border:1px solid var(--line);background:#fff;border-radius:8px;padding:14px}.owner-section-heading{justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px;display:flex}.owner-section-heading h3{margin:0;font-size:18px}.owner-section-heading button{min-height:38px}.owner-line-table{gap:8px;display:grid}.owner-line-head,.owner-line-row{grid-template-columns:minmax(220px,1.8fr) minmax(90px,.7fr) minmax(120px,.9fr) minmax(100px,.8fr) minmax(110px,.8fr) auto;align-items:start;gap:8px;display:grid}.owner-line-head{color:var(--muted);padding:0 4px;font-size:13px;font-weight:900}.owner-line-row{background:#fbfcfd;border:1px solid #dfe5ea;border-radius:8px;padding:10px}.owner-line-row .field{gap:0}.owner-combobox{position:relative}.owner-combobox-list{inset-inline:0;z-index:25;background:#fff;border:1px solid #cfd8df;border-radius:8px;gap:4px;max-height:230px;padding:6px;display:grid;position:absolute;top:calc(100% + 4px);overflow-y:auto;box-shadow:0 12px 30px #10182829}.owner-combobox-list button{text-align:start;background:#fff;border-color:#0000;justify-content:flex-start;min-height:36px}.owner-combobox-list button:hover{color:#103f38;background:#eef7f4;border-color:#accabe}.owner-combobox-list .owner-combobox-add{color:#17483f;background:#e7f4ee;border-color:#accabe;font-weight:900}.owner-inline-add{color:#17483f;background:#e7f4ee;border-color:#accabe;min-height:34px;margin-top:6px;font-size:13px;font-weight:900}.compact-remove{white-space:nowrap;min-height:46px}.owner-payment-summary{background:#f7faf9;border:1px solid #cfd8df;border-radius:8px;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:14px;display:grid}.owner-payment-summary div,.owner-payment-summary label{gap:6px;margin:0;display:grid}.owner-payment-summary span{color:var(--muted);font-size:13px;font-weight:900}.owner-payment-summary strong{font-size:24px}.owner-save-actions{padding-top:0}.owner-save-button{min-width:220px}.quick-material-dialog{width:min(560px,100%)}.sr-only{clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.workspace-shell[dir=rtl] .purchase-read-field .code-cell,.dialog-backdrop[dir=rtl] .purchase-read-field .code-cell,.workspace-shell[dir=rtl] .purchase-line-card .number-cell,.dialog-backdrop[dir=rtl] .purchase-line-card .number-cell{text-align:left;direction:ltr;unicode-bidi:isolate}.dashboard-area{background:linear-gradient(180deg, #ffffffa6, #f4f6f800 240px), var(--background)}.dashboard-card-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;max-width:1680px;margin:0 auto 16px;display:grid}.dashboard-card{min-height:126px;box-shadow:var(--shadow);background:#fff;border:1px solid #cfd8df;border-radius:8px;padding:18px}.dashboard-card span{color:var(--muted);font-size:14px;font-weight:900;display:block}.dashboard-card strong{color:#111827;overflow-wrap:anywhere;margin-top:12px;font-size:24px;line-height:1.25;display:block}.dashboard-updated{max-width:1680px;color:var(--muted);margin:0 auto 16px;font-size:14px;font-weight:700}.dashboard-recent-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;max-width:1680px;margin:0 auto;display:grid}.report-export-actions{flex-wrap:wrap;gap:10px;display:flex}.report-toolbar{align-items:end}.report-toolbar .field{min-width:190px}.report-total-grid,.report-cash-grid{grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:14px;max-width:1680px;margin:0 auto 16px;display:grid}.report-summary-panel,.report-accounting-label{border:1px solid var(--line);max-width:1680px;box-shadow:var(--shadow);background:#fff;border-radius:8px;margin:0 auto 16px;padding:16px 18px}.report-summary-panel h3{margin:0 0 12px}.report-summary-panel>div{flex-wrap:wrap;gap:10px;display:flex}.report-summary-panel span{background:var(--accent-soft);border-radius:999px;padding:8px 12px}.report-table{max-width:1680px;margin:0 auto}.report-table table{min-width:1180px}.report-pager{max-width:1680px;margin:0 auto}.report-cash-card{border:1px solid var(--line);box-shadow:var(--shadow);background:#fff;border-radius:8px;padding:18px}.report-cash-card h3{margin:0;font-size:20px}.report-cash-card>p{color:var(--muted);margin:4px 0 14px}.report-cash-card dl,.report-cash-card dl div{margin:0}.report-cash-card dl div{border-top:1px solid var(--line);justify-content:space-between;gap:18px;padding:10px 0;display:flex}.report-cash-card dt{color:var(--muted)}.report-cash-card dd{text-align:end;margin:0;font-weight:800}.report-accounting-label{color:var(--muted);font-weight:800}.dashboard-panel{min-width:0;box-shadow:var(--shadow);background:#fff;border:1px solid #cfd8df;border-radius:8px;overflow:hidden}.recent-list{gap:0;display:grid}.recent-row{border-bottom:1px solid var(--line);grid-template-columns:minmax(0,1.3fr) minmax(120px,.7fr);gap:14px;padding:14px 18px;display:grid}.recent-row:last-child{border-bottom:0}.recent-row strong,.recent-row span{overflow-wrap:anywhere;display:block}.recent-row span{color:var(--muted);margin-top:3px;font-size:13px;font-weight:700}.empty-state{color:var(--muted);margin:0;padding:22px;font-weight:800}@media (max-width:1380px){.purchase-toolbar{grid-template-columns:repeat(3,minmax(0,1fr))}.dashboard-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (max-width:900px){.purchase-toolbar,.purchase-field-grid,.purchase-line-grid,.purchase-detail-grid,.purchase-summary{grid-template-columns:1fr}.purchase-drawer{width:100vw}.owner-line-head{display:none}.owner-line-row,.owner-payment-summary{grid-template-columns:1fr}.production-recipe-line-head{display:none}.production-recipe-line{grid-template-columns:1fr}.compact-remove,.owner-save-button{width:100%}.dashboard-card-grid,.dashboard-recent-grid,.recent-row{grid-template-columns:1fr}}.mobile-app-header,.mobile-nav-scrim,.mobile-nav-close{display:none}.table-wrap,.table-scroll{overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;max-width:100%;overflow-x:auto}@media (max-width:900px){.workspace-shell,.workspace-shell[dir=rtl]{grid-template-columns:minmax(0,1fr);min-width:0;display:grid}.mobile-app-header{z-index:15;background:#fffffff7;border-bottom:1px solid #cfd8df;grid-column:1;align-items:center;gap:10px;min-width:0;min-height:64px;padding:8px 14px;display:flex;position:sticky;top:0;box-shadow:0 4px 18px #10182814}.mobile-menu-button{border-color:#c5d0d8;place-items:center;width:46px;min-width:46px;height:46px;padding:0;font-size:25px;line-height:1;display:inline-grid}.mobile-brand-mark{background:var(--accent);color:#fff;border-radius:7px;place-items:center;width:38px;min-width:38px;height:38px;font-size:13px;font-weight:900;display:inline-grid}.mobile-header-title{min-width:0;line-height:1.2;display:grid}.mobile-header-title strong,.mobile-header-title small{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.mobile-header-title strong{font-size:15px}.mobile-header-title small{color:var(--muted);margin-top:3px;font-size:12px;font-weight:700}.mobile-nav-scrim{z-index:25;opacity:0;pointer-events:none;background:#0f171c8f;border:0;border-radius:0;width:100%;min-height:0;padding:0;transition:opacity .18s;display:block;position:fixed;inset:0}.mobile-nav-scrim.open{opacity:1;pointer-events:auto}.workspace-shell>.sidebar,.workspace-shell[dir=rtl]>.sidebar{z-index:30;overscroll-behavior:contain;width:min(320px,100vw - 44px);max-width:100%;min-height:100dvh;max-height:100dvh;padding:18px 14px max(20px, env(safe-area-inset-bottom));visibility:hidden;border:0;grid-column:auto;transition:transform .2s;position:fixed;inset-block:0;inset-inline-start:0;overflow:hidden auto;transform:translate(-105%)}.workspace-shell[dir=rtl]>.sidebar{transform:translate(105%)}.workspace-shell>.sidebar.mobile-open,.workspace-shell[dir=rtl]>.sidebar.mobile-open{visibility:visible;transform:translate(0)}.mobile-nav-close{z-index:1;color:#fff;background:#ffffff14;border-color:#ffffff47;place-items:center;width:44px;min-width:44px;height:44px;padding:0;font-size:28px;line-height:1;display:inline-grid;position:absolute;inset-block-start:12px;inset-inline-end:12px}.sidebar .brand-block{padding-inline-end:46px}.workspace-shell>.content-area,.workspace-shell[dir=rtl]>.content-area{grid-area:auto/1;width:auto;min-width:0;max-width:100%;padding:16px;overflow-x:clip}.topbar,.functional-panel,.starter-setup-panel,.searchbar{flex-direction:column;align-items:stretch}.topbar{gap:14px}h2{overflow-wrap:anywhere;font-size:clamp(26px,8vw,32px)}.page-description,.topbar p{overflow-wrap:anywhere}.topbar-action,.section-actions,.section-actions .primary-action,.report-export-actions,.report-export-actions button{width:100%}.section-actions,.report-export-actions{grid-template-columns:minmax(0,1fr);display:grid}.toolbar,.purchase-toolbar{grid-template-columns:minmax(0,1fr);align-items:stretch;display:grid}.toolbar input,.toolbar select,.toolbar button,.toolbar .field,.toolbar .inline-field,.functional-panel select,.functional-panel button,.inventory-toolbar input,.inventory-toolbar select,.inventory-toolbar button,.report-toolbar .field{width:100%;min-width:0;max-width:none}input,select,textarea{min-width:0;font-size:16px}.main-grid,.form-grid,.purchase-field-grid,.purchase-line-grid,.purchase-detail-grid,.purchase-summary,.owner-line-row,.owner-payment-summary,.production-recipe-line,.dashboard-card-grid,.dashboard-recent-grid,.report-total-grid,.report-cash-grid,.recent-row{grid-template-columns:minmax(0,1fr)}.owner-line-head,.production-recipe-line-head{display:none}.owner-line-row .sr-only{clip:auto;white-space:normal;color:#344054;width:auto;height:auto;margin:0 0 6px;font-size:13px;font-weight:800;position:static;overflow:visible}.owner-section-heading,.purchase-line-heading{flex-direction:column;align-items:stretch}.owner-section-heading button,.purchase-line-heading button,.compact-remove,.owner-save-button{width:100%}.owner-quantity-unit{grid-template-columns:minmax(0,1fr)}.owner-quantity-unit strong,.production-unit-value{width:100%}.table-panel,.editor-panel,.dashboard-panel,.report-cash-card,.dashboard-card{min-width:0;max-width:100%}.table-wrap,.table-scroll{width:100%;max-width:100%;overflow-x:auto}table{min-width:720px}.purchase-table-panel table{min-width:1120px}.table-wrap:after,.table-scroll:after{content:"";width:1px;height:1px;display:block}.panel-heading{flex-direction:column;align-items:stretch}.panel-heading button{width:100%}.pager,.pagination{text-align:center;grid-template-columns:minmax(0,1fr);justify-items:stretch;display:grid}.pager button,.pagination button{width:100%}.dialog-backdrop{padding:12px}.dialog-backdrop.editor-backdrop{place-items:end stretch;padding:0}.editor-drawer,.purchase-drawer{border-radius:0;width:100%;max-width:100vw;height:100dvh;max-height:100dvh;overflow:hidden auto}.confirm-dialog{width:100%;max-height:calc(100dvh - 24px);padding:18px;overflow:hidden auto}.form-grid,.purchase-owner-form{padding:14px}.form-actions,.dialog-actions{flex-direction:column-reverse;align-items:stretch}.form-actions button,.dialog-actions button,.drawer-footer button{width:100%;min-height:44px}.drawer-footer{padding:0 14px 14px}.purchase-lines-wrap{margin:14px}.start-fresh-panel{max-width:100%;padding:20px 16px}.start-fresh-panel>button,.start-fresh-warning+button{width:100%}.start-fresh-preview div,.report-cash-card dl div{flex-direction:column;align-items:stretch;gap:3px}.report-cash-card dd{text-align:start}}@media (max-width:430px){.mobile-app-header{padding-inline:10px}.mobile-brand-mark{display:none}.workspace-shell>.content-area,.workspace-shell[dir=rtl]>.content-area,.toolbar,.dashboard-card,.report-cash-card{padding:12px}.panel-heading,.recent-row{padding-inline:12px}.start-fresh-warning{padding:14px}}@media (prefers-reduced-motion:reduce){.mobile-nav-scrim,.workspace-shell>.sidebar{transition:none}}
