/* Shared internal shell. Public catalog assets and business rules stay independent. */
:root{--admin-line:#dce5ec;--muted:#52657a;--radius:14px;--shadow:0 3px 16px #142b4905}
.app-shell{background:#f5f7f9;color:var(--ink);padding-bottom:calc(90px + env(safe-area-inset-bottom))}
.app-shell .top{height:82px;padding:8px 18px;gap:12px;border-bottom:1px solid var(--admin-line)}
.app-shell .top:after{height:3px}.app-shell .brand img{width:58px;height:58px;border:0;border-radius:0}.app-shell .brand strong{font-size:20px}.app-shell .brand small{font-size:11px;margin-top:2px}
.header-context{display:none}.app-shell .account{margin-left:auto}.app-shell .account summary{width:44px;height:44px}
.skip-link{position:fixed;top:-100px;left:20px;z-index:100;padding:12px 18px;background:var(--navy);color:white;border-radius:10px}.skip-link:focus{top:12px}
html:has(.app-panel[open]){overflow:hidden}
.app-shell .wrap{max-width:1560px;padding:24px 18px 32px}.app-shell .page-head{align-items:center;margin-bottom:22px;gap:16px}.app-shell .page-head h1{font-size:28px;letter-spacing:-.8px;line-height:1.25}.app-shell .page-head p{font-size:14px;line-height:1.6;max-width:70ch}
.app-shell h2{letter-spacing:-.3px}.app-shell .card,.app-shell .form-card{border-radius:var(--radius);border-color:var(--admin-line);box-shadow:var(--shadow)}
.app-shell .button,.app-shell button{border-radius:10px;min-height:44px;font-size:14px}.app-shell .button.accent,.app-shell button.accent{background:var(--yellow);color:var(--navy);box-shadow:0 2px 3px #142b4908}.app-shell .button.secondary,.app-shell button.secondary{background:#edf2f6;color:var(--navy)}
.app-shell .field input,.app-shell .field select,.app-shell .field textarea{border-radius:9px;border-color:#bccbd8;min-height:46px;font-size:14px}.app-shell .field label{font-size:13px;color:#344b63}.app-shell .field small{font-size:12px}.app-shell .flash{border-radius:10px;padding:14px 18px}.app-shell .note{border-radius:12px;line-height:1.65}.app-shell summary{cursor:pointer;min-height:44px;align-content:center}.app-shell .pill{font-size:12px;line-height:1.5}
.app-shell .table-card{border-radius:12px;overflow-x:auto}.app-shell .table{table-layout:auto;border-radius:0;min-width:600px}.app-shell .table th{background:#f7f9fb;color:#52657a;font-size:11px;letter-spacing:.04em;white-space:nowrap}.app-shell .table th,.app-shell .table td{padding:14px 16px;border-bottom:1px solid #e6ecf1;line-height:1.5;font-size:13px}.app-shell .table td{vertical-align:middle}.app-shell .table tbody tr:hover{background:#fafcfd}.app-shell .table td small{display:block;margin-top:3px}.numeric,.metric,.sale-total,.overview-metric strong,.breakdown{font-variant-numeric:tabular-nums}.numeric{white-space:nowrap;text-align:right!important}.text-link{color:#006c72;font-size:13px;font-weight:650;min-height:44px;display:inline-flex;align-items:center;gap:6px;text-decoration:underline;text-underline-offset:4px}
.eyebrow{display:block;font-size:10px;font-weight:750;letter-spacing:.13em;color:#526b7f;margin-bottom:8px}.overview-heading .page-head{margin-bottom:16px}.period-toolbar{display:flex;flex-wrap:wrap;align-items:end;gap:10px;padding:12px 14px;background:#fff;border:1px solid var(--admin-line);border-radius:12px;margin-bottom:22px}.period-toolbar .field{flex:1;min-width:120px;max-width:190px}.period-toolbar input{min-height:40px!important}.period-toolbar .button,.period-toolbar button{min-height:40px}.period-toolbar .text-link{font-size:12px;min-height:40px}
.app-shell .dashboard-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:0 0 26px}.app-shell .dashboard-actions .button{min-height:64px;font-size:13px;padding:14px;box-shadow:none;border-radius:12px;gap:10px}.app-shell .dashboard-actions .button.secondary{border:1px solid var(--admin-line);background:#fff}.dashboard-actions .button>.icon:last-child{margin-left:auto;width:16px;height:16px;color:#526b7f}.dashboard-actions .button>.icon:first-child{width:21px;height:21px}
.app-shell .section-line{margin:22px 0 12px;align-items:center}.app-shell .section-line h2{font-size:17px;line-height:1.4}.app-shell .section-line>.muted{font-size:12px}.overview-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.overview-metric{display:flex;flex-direction:column;align-items:flex-start;gap:12px;min-width:0;background:#fff;border:1px solid var(--admin-line);border-top:3px solid #c3d1df;border-radius:12px;padding:18px;box-shadow:var(--shadow)}.overview-metric:hover{border-color:#90acbc;box-shadow:0 4px 14px #142b490c}.metric-label{display:flex;align-items:center;gap:9px;font-size:13px;font-weight:650}.metric-label .icon{width:17px;height:17px}.overview-metric>strong{display:block;font-size:clamp(21px,2vw,29px);letter-spacing:-.7px;line-height:1.2;overflow-wrap:anywhere}.overview-metric small{font-size:12px;color:#53667a;line-height:1.6}.overview-metric .metric-drilldown{font-size:11px;color:#006c72;font-weight:650;margin-top:auto;padding-top:6px}.overview-metric.metric-gross{border-top-color:var(--yellow)}.overview-metric.metric-received{border-top-color:var(--turq)}.overview-metric.metric-open{border-top-color:var(--orange)}.overview-metric.metric-result{border-top-color:var(--navy)}.overview-metric .cost-warning{color:#89420e;font-weight:550}.overview-caption{font-size:12px;color:#52657a;line-height:1.7;margin:14px 0 20px;max-width:110ch}.financial-attention{display:flex;gap:12px;background:#fff8e8;border:1px solid #ecdbb0;border-radius:12px;padding:14px 18px;margin:18px 0}.financial-attention .icon{color:#8b511a;width:20px}.financial-attention a{display:block;color:#73451d;font-size:13px;line-height:1.7;padding:4px 0;text-decoration:underline;text-underline-offset:3px}
.overview-lists{display:grid;gap:22px}.overview-list{min-width:0}.overview-list .section-line{margin-top:16px}.overview-list .eyebrow{margin-bottom:5px}.overview-list .muted{font-size:12px}.financial-table td:nth-child(1){min-width:150px}.financial-table .text-link{white-space:nowrap}.financial-table{min-width:650px!important}.empty-state{display:grid;place-items:center;min-height:150px;padding:24px;text-align:center;color:#53667a;border:1px dashed #c8d6df;border-radius:12px;background:#fff;font-size:14px}.report-callout{display:flex;gap:18px;align-items:center;flex-wrap:wrap;background:#eaf3f4;border:1px solid #d1e2e4;border-radius:14px;padding:24px;margin:30px 0 8px}.report-callout-icon{display:grid;place-items:center;width:48px;height:48px;background:white;border:1px solid #d1e2e4;border-radius:12px;color:#007b80}.report-callout h2{font-size:18px;margin:0}.report-callout p{font-size:13px;color:#52657a;margin:8px 0 0}.report-callout .eyebrow{color:#35666d}.report-callout .button{background:white!important;margin-left:auto;border:1px solid #d1e2e4}
.financial-tabs{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0}.financial-tabs a{display:inline-flex;align-items:center;min-height:44px;padding:10px 14px;border:1px solid var(--admin-line);background:#fff;border-radius:9px;font-size:12px}.financial-tabs a[aria-current]{background:var(--navy);border-color:var(--navy);color:#fff}.detail-total{font-size:14px}.detail-total strong{font-size:20px;margin-left:8px}.financial-method{margin-top:26px!important;font-size:14px;line-height:1.7}.financial-method summary{font-weight:700}.app-shell #financial-detail{scroll-margin-top:110px}.app-shell .sales-turnover{border-radius:12px;background:#fff;border:1px solid var(--admin-line);margin-top:20px}.app-shell .sale-total{font-size:16px}.app-shell .sale-row{scroll-margin-top:110px;border-radius:12px;border-color:var(--admin-line)}.app-shell .sale-columns{font-size:11px;letter-spacing:.02em}.app-shell .sales-filter-bar{align-items:end}.app-shell .sales-period-filter{border-color:var(--admin-line);border-radius:12px}.app-shell .sale-number b{color:#006d74}.app-shell dialog:not(.app-panel){border-color:var(--admin-line);box-shadow:0 24px 80px #142b4926}.app-shell dialog::backdrop{background:#142b4970}
.app-shell .calculator-section{border-radius:12px!important;border-color:var(--admin-line)!important}.app-shell .calculator-section>h2{font-size:17px!important}.app-shell .calculator-result-sticky{border-radius:12px;background:#f0f7f6;border:1px solid #cce0df}.app-shell .calculator-mobile-summary{border:1px solid #cce0df}.app-shell .calculator-result-sticky #calculator-preview{background:#fff;border-radius:10px}.app-shell #calculator-preview>.breakdown strong{font-variant-numeric:tabular-nums}.app-shell .scenario-grid article{background:white}.app-shell .quote-line{background:#f9fbfc}.app-shell .quotation-row{border-left:3px solid var(--turq)}
@media(max-width:599px){.overview-metrics{grid-template-columns:1fr}.overview-metric{padding:18px;gap:10px}.overview-metric>strong{font-size:28px}.overview-metric small{max-width:55ch}.app-shell .page-head h1{font-size:25px}.app-shell .table-card{background:linear-gradient(to right,#fff,#fff),linear-gradient(to right,#fff,#fff),linear-gradient(to right,#142b4920,transparent),linear-gradient(to left,#142b4920,transparent);background-position:left,right,left,right;background-size:24px 100%,24px 100%,14px 100%,14px 100%;background-repeat:no-repeat;background-attachment:local,local,scroll,scroll}.app-shell .brand small{display:none}.app-shell .brand strong{font-size:18px}.app-shell .brand img{width:48px;height:48px}.app-shell .top .brand{gap:6px}.app-shell .top{padding-inline:12px}.app-shell .dashboard-actions .button>.icon:last-child{display:none}.app-shell .fields{gap:16px}.period-toolbar{gap:8px}.period-toolbar .field{max-width:none}.period-toolbar button{flex:1}.period-toolbar .text-link{padding:0 10px}.app-shell .cards{grid-template-columns:1fr}.report-callout{padding:20px}.report-callout-icon{display:none}.report-callout .button{margin-left:0}}
@media(min-width:1600px){.overview-lists{grid-template-columns:1fr 1fr}}
.app-shell .dashboard-actions{max-width:none;width:100%}.app-shell .dashboard-actions .button span{overflow-wrap:normal}.pill.payment-open{background:#fff1ce;color:#7c4b0b}.pill.payment-unknown{background:#edf1f5;color:#43566a}.pill.payment-paid{background:#d9f1ed;color:#06635e}
.period-toolbar button{min-width:84px;white-space:nowrap}.table-hint{font-size:12px;color:var(--muted)}
@media(max-width:599px){
  .period-toolbar .field{flex:1 1 calc(50% - 8px);min-width:0}.period-toolbar button{flex:0 0 auto}
  .overview-lists .financial-table{min-width:0!important;display:block}.overview-lists .financial-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.overview-lists .financial-table tbody{display:block;width:100%}
  .overview-lists .financial-table tr{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:0 10px;padding:14px 16px;border-bottom:1px solid #e6ecf1}.overview-lists .financial-table tr:last-child{border:0}.overview-lists .financial-table td{border:0;padding:4px 0;font-size:13px;min-width:0}
  .overview-lists .financial-table td:nth-child(1){grid-column:1;grid-row:1}.overview-lists .financial-table td:nth-child(2){grid-column:1;grid-row:2;color:var(--muted);align-self:center}.overview-lists .financial-table td:nth-child(3){grid-column:2;grid-row:1;align-self:start}.overview-lists .financial-table td:nth-child(4){grid-column:2;grid-row:2;text-align:right}.overview-lists .financial-table td:last-child{grid-column:1/-1;border-top:1px solid #edf1f5;margin-top:10px;padding-top:4px}.overview-lists .financial-table td:last-child a{width:100%}.overview-lists .financial-table td:first-child .pill{margin-top:5px}
}
@media(min-width:1024px){.app-shell .dashboard-actions .button span{white-space:nowrap}}
@media(prefers-reduced-motion:reduce){.app-shell *{scroll-behavior:auto!important}}

/* App navigation: shared dock, quick actions and a task index, without a sidebar. */
.app-shell{--dock-clearance:calc(104px + env(safe-area-inset-bottom));padding:0 0 var(--dock-clearance);}
.app-shell .top{height:68px;padding:8px 24px}.app-shell .brand img{width:46px;height:46px}.app-shell .brand strong{font-size:19px}.app-shell .brand small{font-size:10px}
.app-shell .wrap{max-width:1280px;margin:0 auto;padding:28px 28px 32px;width:100%}
.app-shell[data-admin-page=dashboard] .wrap,.app-shell[data-admin-page=sales] .wrap,.app-shell[data-admin-page=calculator] .wrap,.app-shell[data-admin-page=financial] .wrap{max-width:1440px}
.app-shell:is([data-admin-page=settings],[data-admin-page=equipment_edit],[data-admin-page=packaging],[data-admin-page=filament],[data-admin-page=component],[data-admin-page=category],[data-admin-page=profile],[data-admin-page=business],[data-admin-page=members]) .wrap{max-width:1040px}
.app-shell .sidebar{display:none!important}.app-shell .page-head{gap:16px}.app-shell .header-context{max-width:50%;min-width:0}.header-context strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.app-shell .app-dock{position:fixed;inset:auto auto 16px 50%;transform:translateX(-50%);z-index:24;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));align-items:center;gap:8px;width:560px;max-width:calc(100% - 32px);height:80px;padding:8px 12px;background:#fff;border:1px solid #d8e3eb;border-radius:24px;box-shadow:0 8px 32px #142b4924}
.app-dock a,.app-dock button{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:5px;min-width:0;min-height:60px;border-radius:16px;padding:6px;color:#52657a;font-size:11px;font-weight:650;line-height:1.2;box-shadow:none;transition:background .15s,color .15s}
.app-dock a .icon{width:23px;height:23px}.app-dock a:hover{background:#f1f6f7}.app-dock a.active,.app-dock a[aria-expanded=true]{background:#e2f3f1;color:#006c70}.app-dock a.active .icon,.app-dock a[aria-expanded=true] .icon{color:#007b80;stroke-width:2.5}
.app-shell .app-dock .dock-create{justify-self:center;width:56px;height:56px;min-height:56px;padding:10px;background:var(--yellow);color:var(--navy);border:1px solid #edb01e;border-radius:19px;box-shadow:0 3px 8px #b17e1720;transform:none}.app-dock .dock-create .icon{width:30px;height:30px}.app-dock .dock-create[aria-expanded=true]{outline:3px solid #d7ecea;outline-offset:3px}.app-dock a:focus-visible,.app-dock button:focus-visible{outline:3px solid #007b80;outline-offset:2px}
.app-shell .app-panel{position:fixed;inset:auto auto 112px 50%;transform:translateX(-50%);margin:0;width:400px;max-width:calc(100% - 32px);max-height:calc(100dvh - 142px);padding:20px;border:1px solid #d8e3eb;border-radius:20px;background:#fff;color:var(--navy);overflow-y:auto;overscroll-behavior:contain;box-shadow:0 16px 60px #142b4930}
.app-shell .app-panel::backdrop{background:#142b4938;backdrop-filter:blur(2px)}.app-shell .modules-panel{width:920px}
.app-panel-head{display:flex;align-items:center;justify-content:space-between;gap:16px;position:sticky;top:-20px;z-index:1;padding:6px 0 16px;margin-bottom:8px;background:#fff;border-bottom:1px solid #e1e9ef}.app-panel-head h2{font-size:21px;margin:0;line-height:1.3}.app-panel-head .eyebrow{font-size:9px;margin-bottom:5px}.app-panel-head button{padding:10px;flex-shrink:0}
.quick-action-list{display:grid;gap:8px}.quick-action-list a{display:flex;align-items:center;gap:14px;padding:14px 12px;border:1px solid #e1e9ef;border-radius:12px;min-height:76px}.quick-action-list a:hover{background:#f0f8f7;border-color:#9ecac7}.quick-action-list a>.icon:first-child{color:#007b80;width:23px;height:23px}.quick-action-list a>.icon:last-child{margin-left:auto;width:17px;height:17px;color:#627589}.quick-action-list strong{display:block;font-size:14px}.quick-action-list small{display:block;font-size:12px;color:#52657a;line-height:1.5;margin-top:4px}
.module-index{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.nav-group{padding:14px 10px;border:1px solid #e1e9ef;border-radius:14px;background:#fff;min-width:0}.nav-group h2{font-size:10px;text-transform:uppercase;letter-spacing:.1em;color:#52657a;padding:0 10px;margin:0 0 8px}.nav-group a{display:flex;align-items:center;gap:10px;min-height:46px;padding:10px;border-radius:9px;font-size:13px;font-weight:550;color:#344e65}.nav-group .icon{width:20px;height:20px;color:#627b8d;flex-shrink:0}.nav-group a:hover{background:#eff6f7}.nav-group a.active{background:#e0f2ef;color:#00676c;font-weight:750}.nav-group a.active .icon{color:#007b80}.nav-current{width:6px;height:6px;border-radius:50%;margin-left:auto;background:#007b80;flex-shrink:0}.nav-group:first-child{border-color:#b6d8d5;background:#f0f8f7}.nav-group:first-child h2{color:#006c70}.nav-group:first-child .icon{color:#007b80}.nav-group:first-child a{font-weight:700}
.app-shell input,.app-shell select,.app-shell textarea,.app-shell .actions,.app-shell .metric,.app-shell .sales-turnover{scroll-margin-bottom:calc(var(--dock-clearance) + 20px)}
html{scroll-padding-top:90px;scroll-padding-bottom:124px}
.app-shell:has(dialog[open]:not(.app-panel)) .app-dock{visibility:hidden}
.app-shell dialog:not(.app-panel){max-height:calc(100dvh - 24px);overscroll-behavior:contain}
@media(min-width:1024px){
  .app-shell{padding-top:68px}.app-shell .top{position:fixed;inset:0 0 auto;padding-inline:32px}.header-context{display:flex;flex-direction:column;gap:3px;border-left:1px solid var(--admin-line);padding-left:20px;margin-left:8px}.header-context strong{font-size:13px}.header-context small{font-size:11px;color:var(--muted)}
  .app-shell .dashboard-actions{grid-template-columns:repeat(4,minmax(0,1fr))}.overview-metrics{grid-template-columns:repeat(4,minmax(0,1fr))}.overview-metric{padding:18px;min-height:210px}.metric-label{font-size:13px}.overview-metric>strong{font-size:28px}.period-toolbar{width:fit-content;min-width:540px}.app-shell .calculator-result-sticky{top:92px;max-height:calc(100dvh - 208px)}
}
@media(max-width:719px){
  .app-shell{--dock-clearance:calc(100px + env(safe-area-inset-bottom))}.app-shell .top{height:64px;padding:8px 16px}.app-shell .brand img{width:44px;height:44px}.app-shell .brand small{display:none}.app-shell .wrap{padding:22px 16px 24px}.app-shell .page-head h1{font-size:25px}.app-shell .page-head .button{font-size:12px;padding:10px 12px}
  .app-shell .app-dock{inset:auto 0 0;transform:none;width:100%;max-width:none;height:calc(78px + env(safe-area-inset-bottom));padding:6px 8px calc(6px + env(safe-area-inset-bottom));gap:2px;border:0;border-top:1px solid #dbe5ed;border-radius:18px 18px 0 0;box-shadow:0 -4px 20px #142b4910}.app-dock a{min-height:62px;font-size:10px;border-radius:12px}.app-shell .app-dock .dock-create{width:52px;height:52px;min-height:52px;border-radius:17px}
  .app-shell .app-panel{inset:auto 0 0;transform:none;width:100%;max-width:none;max-height:88dvh;padding:20px 16px calc(24px + env(safe-area-inset-bottom));border-radius:22px 22px 0 0;border-bottom:0}.app-panel-head{top:-20px;padding:4px 0 16px}.app-shell .modules-panel{height:85dvh}.module-index{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.nav-group{padding:12px 6px}.nav-group a{font-size:12px;padding:10px 8px}.nav-group:first-child{grid-column:1/-1}.nav-group:first-child a{display:inline-flex;margin-right:8px}
}
@media(max-width:359px){.module-index{grid-template-columns:1fr}.nav-group:first-child a{display:flex}.app-dock a{font-size:9px}.app-shell .wrap{padding-inline:12px}}
