/* Business Dashboard: phone-first presentation. No business data or state rules. */
body.bw-enabled{--bw-ink:#25372f;--bw-muted:#647269;--bw-line:#e3e7df;--bw-paper:#fffefa;--bw-soft:#f1f3ed;--bw-radius:22px;background:#f7f8f3;color:var(--bw-ink)}
.bw-enabled .main{min-width:0}.bw-enabled .topbar{background:#f7f8f3;border-bottom:1px solid var(--bw-line)}
.bw-enabled .topbar h1{color:var(--bw-ink);letter-spacing:-.035em}.bw-enabled .topbar .eyebrow{font-size:11px;letter-spacing:.09em}
.bw-enabled .sidebar{background:var(--bw-paper);border-inline-end:1px solid var(--bw-line)}
.bw-enabled button{touch-action:manipulation}.bw-enabled button:focus-visible,.bw-enabled a:focus-visible{outline:3px solid var(--brand);outline-offset:3px}
.bw-enabled .card{border-color:var(--bw-line);box-shadow:0 4px 20px #26382c04}.bw-enabled .page{min-width:0}
.bw-workspace{font-family:inherit;max-width:1160px;margin:0 auto;color:var(--bw-ink)}
.bw-workspace button,.bw-record button,.bw-milestones button{font:inherit;color:inherit;cursor:pointer}
.bw-workspace svg,.bw-record svg,.bw-milestones svg,.bw-compact-switch svg{width:22px;height:22px;flex-shrink:0}
.bw-workspace h2,.bw-workspace p{margin:0}.bw-workspace h2{font-size:21px;letter-spacing:-.025em}
.bw-toolbar{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 0 15px;min-width:0}
.bw-toolbar>div{display:flex;align-items:center;gap:4px}.bw-sync{display:flex;align-items:center;gap:6px;border:0;background:transparent;padding:8px 0;min-height:44px;color:var(--bw-muted)!important;text-align:start;font-size:12px!important;max-width:58%}.bw-sync svg{width:16px;height:16px}.bw-sync-issue{color:#a25421!important}
.bw-text-button{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:44px;border:0!important;background:transparent!important;padding:8px 10px!important;color:var(--brand-ink,#2947ad)!important;font-size:13px!important;font-weight:650!important}
.bw-icon-button{width:44px;height:44px;display:inline-grid;place-items:center;border:1px solid var(--bw-line);border-radius:14px;background:var(--bw-paper)}
.bw-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:20px}.bw-stats>button{border:1px solid var(--bw-line);border-radius:18px;background:var(--bw-paper);padding:19px;text-align:start;display:flex;flex-direction:column;align-items:flex-start;min-width:0;gap:8px;box-shadow:0 4px 18px #26382c03}
.bw-kicker{font-size:10px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--bw-muted)}.bw-stats strong{font-size:clamp(17px,2vw,25px);letter-spacing:-.04em;line-height:1.2;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.bw-stats small{font-size:11px;color:var(--bw-muted);line-height:1.5}.bw-negative{color:#a63d32}
.bw-room{position:relative;border:1px solid #e4e1d7;border-radius:var(--bw-radius);background:#f6f2e6;overflow:hidden;box-shadow:0 12px 32px #26382c05}
.bw-room-title{display:flex;justify-content:space-between;align-items:center;padding:24px 26px 0;position:relative;z-index:1;gap:12px}.bw-room-title h2{font-size:26px;margin-top:7px;overflow-wrap:anywhere}.bw-room-title .bw-kicker{font-size:10px}
.bw-design{display:flex;align-items:center;gap:6px;min-height:44px;padding:8px 12px;background:#fffdf7d9;border:1px solid #e3decf;border-radius:12px;font-size:12px!important}.bw-design svg{width:17px;height:17px}
.bw-scene-stage{position:relative;max-width:740px;margin:-4px auto -18px}.bw-workspace .bw-scene-svg{width:100%;height:auto}
.bw-hotspot{position:absolute!important;z-index:2;width:44px;height:44px;display:grid;place-items:center;border:1px solid #d1d9cf;border-radius:50%;background:#fffffff0;box-shadow:0 4px 16px #283a2420;color:#476443!important}.bw-hotspot[aria-pressed="true"]{background:var(--brand);color:var(--on-brand,#fff)!important;border-color:var(--brand)}
.bw-hotspot[data-bw-focus="inventory"]{left:20%;top:23%}.bw-hotspot[data-bw-focus="money"]{right:22%;top:23%}.bw-hotspot[data-bw-focus="production"]{left:19%;bottom:21%}.bw-hotspot[data-bw-focus="orders"]{right:20%;bottom:21%}
.bw-area-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;padding:5px 24px 18px;position:relative;z-index:3}
.bw-area-tabs button{min-height:48px;display:flex;align-items:center;justify-content:center;gap:7px;border:1px solid #e3decf;background:#fffdf6aa;border-radius:12px;font-size:12px!important;padding:8px 5px}.bw-area-tabs button[aria-pressed="true"]{background:var(--brand);border-color:var(--brand);color:var(--on-brand,#fff)}.bw-area-tabs svg{width:18px;height:18px}
.bw-focus-panel{padding:20px 26px;background:#fffefa;border-top:1px solid #e7e2d5;display:flex;align-items:center;justify-content:space-between;gap:18px}.bw-focus-panel b{font-size:15px}.bw-focus-panel p{font-size:12px;line-height:1.6;color:var(--bw-muted);margin:5px 0 0}.bw-focus-actions{display:flex;gap:8px;flex-shrink:0}.bw-focus-actions button{min-height:44px;font-size:13px!important;padding:10px 15px!important;border-radius:12px!important}
.bw-home-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:20px}.bw-panel{background:var(--bw-paper);border:1px solid var(--bw-line);border-radius:var(--bw-radius);padding:22px;min-width:0;margin-bottom:18px}.bw-home-grid .bw-panel{margin:0}
.bw-section-heading{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:14px}.bw-section-heading h2{font-size:17px}.bw-section-heading>span{font-size:11px;color:var(--bw-muted)}
.bw-task{display:flex;align-items:center;gap:12px;min-height:66px;width:100%;padding:12px 0;border:0;border-bottom:1px solid #edf0e9;background:transparent;text-align:start}.bw-task:last-child{border-bottom:0}.bw-task>span:nth-child(2){flex:1;min-width:0}.bw-task b{display:block;font-size:13px;font-weight:650;overflow-wrap:anywhere}.bw-task small{display:block;font-size:11px;color:var(--bw-muted);margin-top:4px;line-height:1.5}.bw-task>svg{width:17px;color:#89948b}.bw-task-icon{width:39px;height:39px;border-radius:12px;background:#eef1e6;display:grid;place-items:center;flex-shrink:0;color:#617755}.bw-task-icon svg{width:20px;height:20px}
.bw-clear{display:flex;align-items:flex-start;gap:10px;padding:12px 0}.bw-clear>svg{color:#658359}.bw-clear b{font-size:13px}.bw-clear p{font-size:12px;line-height:1.6;color:var(--bw-muted);margin-top:6px}
.bw-activity button{width:100%;display:flex;align-items:center;gap:11px;text-align:start;background:transparent;border:0;border-bottom:1px solid #edf0e9;padding:14px 0;min-height:62px}.bw-activity button:last-child{border-bottom:0}.bw-activity button>span:nth-child(2){flex:1;min-width:0}.bw-activity b{font-size:13px;display:block}.bw-activity small{font-size:11px;color:var(--bw-muted);display:block;margin-top:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:220px}.bw-activity strong{font-size:12px;white-space:nowrap;font-variant-numeric:tabular-nums}.bw-activity-dot{width:9px;height:9px;border-radius:50%;background:#6b8558;flex-shrink:0}.bw-activity-dot.purchase{background:#c18c62}.bw-activity-dot.waste{background:#c76a56}.bw-activity-dot.batch{background:#6488a7}
.bw-progress-card{display:flex;align-items:center;gap:17px;width:100%;border:1px solid #dfe7d4;border-radius:18px;background:#edf2e4;padding:18px 22px;text-align:start;margin-top:20px}.bw-progress-card>span:nth-child(2){flex:1}.bw-progress-card b{font-size:14px;display:block}.bw-progress-card small{font-size:11px;color:#617259;display:block;margin-top:5px}.bw-progress-art{width:42px;height:42px;display:grid;place-items:center;background:#dce7ce;border-radius:14px;color:#5a714a}.bw-progress-art svg{width:27px;height:27px}.bw-progress-track{display:block;max-width:280px;margin-top:10px;background:#d6e1cd;height:4px;border-radius:8px;overflow:hidden}.bw-progress-track i{display:block;background:#6c855b;height:100%;border-radius:8px}
.bw-classic-link{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:52px;border:0;background:transparent;color:var(--bw-muted)!important;font-size:12px!important;margin-top:8px}
.bw-intro{margin:20px 0 22px}.bw-intro h2{font-size:30px;letter-spacing:-.045em;margin:8px 0}.bw-intro p{font-size:13px;color:var(--bw-muted);line-height:1.7}
.bw-work-grid,.bw-record-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:20px}.bw-action{display:flex;align-items:center;gap:12px;text-align:start;padding:17px;border:1px solid var(--bw-line);border-radius:16px;background:var(--bw-paper);min-height:76px;font-weight:650!important;font-size:13px!important;min-width:0}.bw-action>span:nth-child(2){flex:1;min-width:0;overflow-wrap:anywhere}.bw-action>svg{width:16px;height:16px;color:#929e91}.bw-action-icon{width:38px;height:38px;display:grid;place-items:center;background:#f0f2e8;border-radius:11px;color:#637957;flex-shrink:0}.bw-action-icon svg{width:21px;height:21px}.bw-work-grid .bw-action:nth-child(4n+2) .bw-action-icon,.bw-record-grid .bw-action:nth-child(4n+2) .bw-action-icon{background:#f6ece0;color:#a1764f}
.bw-muted{font-size:12px!important;line-height:1.7!important;color:var(--bw-muted)!important;margin:12px 0!important}.bw-money-breakdown{max-width:720px}.bw-money-breakdown .summary-line{padding:13px 0;font-size:14px}.bw-money-breakdown .summary-line.total{border-top:1px solid var(--bw-line);font-size:17px}
.bw-fieldset{border:0;padding:0;margin:20px 0}.bw-fieldset legend{font-size:14px;font-weight:650;margin-bottom:12px}.bw-theme-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.bw-theme-grid label{position:relative;margin:0!important}.bw-theme-grid input{position:absolute;width:20px;height:20px;top:10px;inset-inline-start:10px;z-index:1;accent-color:var(--brand)}.bw-theme-grid label>span{display:block;border:2px solid var(--bw-line);border-radius:16px;background:#f6f2e6;overflow:hidden}.bw-theme-grid input:checked+span{border-color:var(--brand)}.bw-theme-grid input:focus-visible+span{outline:3px solid var(--brand);outline-offset:2px}.bw-theme-grid .bw-scene-svg{width:100%;height:auto}.bw-theme-grid b{display:block;font-size:12px;text-align:center;background:#fff;padding:8px}
.bw-milestone-heading{text-align:center;display:flex;align-items:center;justify-content:center;gap:12px;background:#eff3e7;border-radius:18px;padding:22px;color:#587346}.bw-milestone-heading svg{width:42px;height:42px}.bw-milestone-heading b{font-size:28px}.bw-done{background:#dfead6;color:#527042}
.bw-nav .nav-icon{display:grid;place-items:center}.bw-enabled .bw-nav{min-height:52px}.bw-enabled #mobileFab{display:none!important}.bw-enabled .mobile-nav{background:#fffefaed;backdrop-filter:blur(16px);border-top:1px solid var(--bw-line);z-index:45}.bw-enabled #mobileNav .bw-nav{min-width:0;margin:0;padding:6px 2px;border-radius:13px;font-size:10px;gap:4px}.bw-enabled .bw-record-nav .nav-icon{background:var(--brand);color:var(--on-brand,#fff);width:42px;height:34px;border-radius:12px}.bw-enabled .bw-record-nav .nav-icon svg{width:22px;height:22px}.bw-enabled .sidebar .bw-record-nav{background:var(--bw-soft);margin-block:8px}.bw-enabled .sidebar .bw-record-nav .nav-icon{width:29px;height:29px;border-radius:9px}
.bw-saved{position:fixed;left:50%;bottom:105px;transform:translate(-50%,15px);background:#253e31;color:#fff;padding:14px 20px;border-radius:16px;z-index:200;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s;box-shadow:0 8px 30px #0002;text-align:center;font-size:13px;max-width:calc(100vw - 32px);width:max-content}.bw-saved.bw-visible{opacity:1;transform:translate(-50%,0)}
.bw-draft-bar{border:1px solid #dce5d3;border-radius:14px;background:#f1f5eb;padding:12px;margin-bottom:17px}.bw-draft-bar p{font-size:12px}.bw-draft-bar button{min-height:44px;margin-inline-end:6px}.bw-draft-bar small{display:block;font-size:11px;color:#607357;margin-top:5px}
.bw-compact-switch{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:15px}.bw-enabled .operations-entry{border-radius:18px}
.bw-quiet *,.bw-paused .bw-scene-svg *{animation:none!important}.bw-paused .bw-scene-svg *{animation-play-state:paused!important}
[dir=rtl] .bw-workspace,[dir=rtl] .bw-record,[dir=rtl] .bw-milestones{text-align:right}[dir=rtl] .bw-kicker{letter-spacing:0}[dir=rtl] .bw-action>svg,[dir=rtl] .bw-task>svg,[dir=rtl] .bw-classic-link>svg{transform:scaleX(-1)}
@media(hover:hover){.bw-action:hover,.bw-stats>button:hover{border-color:#b9c8b1;box-shadow:0 5px 18px #26382c08}.bw-task:hover,.bw-activity button:hover{background:#f8f9f3}.bw-text-button:hover{text-decoration:underline}}
@media(max-width:900px){.bw-home-grid{grid-template-columns:1fr}.bw-focus-panel{align-items:stretch;flex-direction:column;gap:12px}.bw-focus-actions button{flex:1}.bw-room-title{padding:20px 20px 0}}
@media(max-width:700px){
 .bw-enabled .main{padding-bottom:calc(85px + env(safe-area-inset-bottom))!important}.bw-enabled .page{padding:14px 14px 20px!important}.bw-enabled .topbar{padding:calc(12px + env(safe-area-inset-top)) 16px 12px!important;gap:10px;min-height:78px}.bw-enabled .topbar h1{font-size:25px!important}.bw-enabled .top-actions{gap:4px!important}.bw-enabled #quickAddTop{display:none!important}.bw-enabled .top-actions button{min-width:44px;min-height:44px}.bw-enabled .language-toggle{padding:8px!important;font-size:12px!important}
 .bw-enabled .mobile-nav{height:auto!important;min-height:68px;display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr));padding:5px 9px calc(6px + env(safe-area-inset-bottom))!important;left:0;right:0;bottom:0}.bw-enabled #mobileNav .bw-nav{display:flex;flex-direction:column;justify-content:center;align-items:center}.bw-enabled .mobile-nav .nav-icon svg{width:21px;height:21px}
 .bw-toolbar{margin-bottom:12px;gap:3px}.bw-toolbar .bw-text-button{font-size:11px!important;padding:6px!important}.bw-sync{font-size:10px!important;max-width:52%}.bw-sync svg{width:14px;height:14px}.bw-icon-button{width:40px;height:44px}
 .bw-stats{gap:7px;margin-bottom:14px}.bw-stats>button{padding:12px 10px;gap:7px;border-radius:15px}.bw-stats strong{font-size:17px;letter-spacing:-.04em}.bw-stats .bw-kicker{font-size:9px;letter-spacing:.03em;line-height:1.4}.bw-stats small{font-size:9px;line-height:1.5}
 .bw-room{border-radius:22px}.bw-room-title{padding:19px 17px 3px}.bw-room-title h2{font-size:23px;max-width:210px;line-height:1.2}.bw-room-title .bw-kicker{font-size:9px;letter-spacing:.025em}.bw-design{padding:6px 9px;gap:5px;font-size:11px!important}.bw-scene-stage{margin:4px -12px -5px}.bw-hotspot{width:44px;height:44px}.bw-hotspot svg{width:18px;height:18px}.bw-hotspot[data-bw-focus="inventory"]{left:15%;top:19%}.bw-hotspot[data-bw-focus="money"]{right:15%;top:19%}.bw-hotspot[data-bw-focus="production"]{left:13%;bottom:19%}.bw-hotspot[data-bw-focus="orders"]{right:13%;bottom:19%}
 .bw-area-tabs{padding:0 12px 14px;gap:5px}.bw-area-tabs button{font-size:10px!important;min-height:52px;gap:5px;flex-direction:column;border-radius:11px;padding:6px 3px}.bw-area-tabs svg{width:18px;height:18px}.bw-focus-panel{padding:16px 17px;gap:12px}.bw-focus-panel b{font-size:14px}.bw-focus-panel p{font-size:11px}.bw-focus-actions button{font-size:12px!important;min-height:46px}
 .bw-panel{padding:18px;border-radius:19px;margin-bottom:14px}.bw-home-grid{margin-top:14px;gap:14px}.bw-section-heading h2{font-size:16px}.bw-progress-card{margin-top:14px;padding:17px}.bw-activity small{max-width:165px}.bw-intro{margin-top:12px}.bw-intro h2{font-size:27px}.bw-work-grid{gap:8px}.bw-action{padding:12px;gap:8px;min-height:82px;font-size:12px!important;border-radius:14px}.bw-action-icon{width:32px;height:34px}.bw-action>svg{display:none}.bw-record-grid{gap:8px}.bw-record-grid .bw-action{min-height:86px}.bw-record-grid .bw-action-icon{width:34px;height:34px}
 .bw-enabled dialog.bw-mobile-dialog{position:fixed;inset:auto 0 0!important;width:100%!important;max-width:100%!important;max-height:min(94dvh,var(--bw-viewport,94dvh))!important;height:auto!important;margin:0!important;border-radius:24px 24px 0 0!important;padding:0!important;overflow:auto;overscroll-behavior:contain;scroll-padding-bottom:90px}.bw-enabled dialog.bw-mobile-dialog .modal-card{padding:20px 18px calc(24px + env(safe-area-inset-bottom))!important;min-width:0}.bw-enabled dialog .modal-head{position:relative;align-items:flex-start;gap:12px}.bw-enabled dialog .modal-head h2{font-size:22px;line-height:1.25}.bw-enabled dialog .modal-head p{font-size:12px;line-height:1.6}.bw-enabled dialog .close{width:44px;min-width:44px;height:44px;border-radius:50%;position:sticky;top:0}.bw-enabled dialog input,.bw-enabled dialog select,.bw-enabled dialog textarea{font-size:16px!important;min-height:46px;max-width:100%}.bw-enabled dialog input[type=checkbox],.bw-enabled dialog input[type=radio]{min-height:20px;width:20px;height:20px}.bw-enabled dialog form>button.primary[type=submit],.bw-enabled #orderForm>button.primary,.bw-enabled #purchaseForm>button.primary{position:sticky;bottom:0;z-index:4;min-height:50px;box-shadow:0 -5px 14px #fff9;margin-top:16px}
 .bw-enabled .form-grid{grid-template-columns:1fr!important}.bw-enabled .inline-row.order{display:grid!important;grid-template-columns:1fr 1fr 44px!important;gap:8px!important}.bw-enabled .inline-row.order>.field:first-child{grid-column:1/-1}.bw-enabled .inline-row.order .oi-remove{min-width:44px;min-height:44px;align-self:end}.bw-enabled .section-actions{flex-wrap:wrap}.bw-enabled .section-actions button{min-height:44px}.bw-enabled .table-wrap{max-width:100%}.bw-enabled .mobile-card-table td{overflow-wrap:anywhere}.bw-enabled .operations-line{flex-wrap:wrap}.bw-enabled .operations-line .field{min-width:0;flex:1}.bw-enabled .operations-tabs button{min-height:44px}.bw-enabled .toast{bottom:calc(86px + env(safe-area-inset-bottom))!important}.bw-saved{bottom:calc(84px + env(safe-area-inset-bottom));font-size:12px}
}
@media(max-width:359px){.bw-stats{grid-template-columns:1fr 1fr}.bw-stats>button:last-child{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr}.bw-stats>button:last-child strong{grid-column:2;grid-row:1/3}.bw-room-title h2{max-width:170px}.bw-work-grid,.bw-record-grid{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){.bw-enabled *{scroll-behavior:auto!important}.bw-scene-svg *,.bw-saved{animation:none!important;transition:none!important}}
