:root{--ink:#06213f;--nav:#041a31;--nav2:#0b2d50;--paper:#f4f7f9;--card:#fff;--line:#dce5ea;--muted:#697985;--orange:#18bd63;--teal:#13d76b;--red:#d95c5c;--blue:#477fa5;--shadow:0 12px 35px rgba(20,46,66,.08)}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font:16px/1.45 'DM Sans',sans-serif}.app-shell{min-height:100vh;display:grid;grid-template-columns:244px 1fr}.sidebar{background:var(--nav);color:#eaf2f6;padding:27px 18px 20px;display:flex;flex-direction:column;position:sticky;top:0;height:100vh}.brand{font:700 20px 'Manrope';display:flex;align-items:center;gap:11px;padding:0 8px 31px}.brand-mark{display:grid;place-items:center;width:34px;height:34px;border-radius:10px;background:var(--orange);color:var(--nav);font-weight:800}.ai{color:var(--teal);font-size:12px;vertical-align:top;margin-left:3px}.sidebar nav{display:grid;gap:5px}.nav-item{appearance:none;border:0;background:transparent;color:#aebdca;border-radius:9px;padding:11px 12px;text-align:left;font:500 14px 'DM Sans';cursor:pointer;display:flex;gap:12px;align-items:center}.nav-item span{width:20px;text-align:center;font-size:16px}.nav-item:hover,.nav-item.active{background:var(--nav2);color:#fff}.nav-item.active{box-shadow:inset 3px 0 var(--orange)}.count{margin-left:auto;background:#254058;border-radius:10px;padding:1px 7px;font-size:11px}.sidebar-label{font-size:11px;letter-spacing:.13em;color:#637b8f;margin:28px 12px 9px}.sidebar-footer{margin-top:auto;border-top:1px solid #20384b;padding:20px 6px 0;display:flex;gap:10px;align-items:center}.avatar,.owner{display:grid;place-items:center;border-radius:50%;font-weight:700}.avatar{width:36px;height:36px;background:#d68d55;color:#fff;font-size:12px}.sidebar-footer div:nth-child(2){display:flex;flex-direction:column;font-size:13px}.sidebar-footer span{font-size:11px;color:#7990a3}.sidebar-footer button{margin-left:auto;background:transparent;color:#8196a7;border:0}.topbar{height:82px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 34px;position:sticky;top:0;z-index:4}.menu-button{display:none}.location-wrap{display:flex;flex-direction:column}.eyebrow{font-size:10px;font-weight:700;letter-spacing:.13em;color:#78909d}.location-wrap select{border:0;font:700 16px 'Manrope';color:var(--ink);padding:3px 26px 3px 0;background:#fff}.top-actions{display:flex;gap:9px}button{font-family:inherit}.ghost-button,.primary-button,.small-button{border-radius:8px;padding:10px 15px;font-weight:700;border:1px solid var(--line);cursor:pointer}.ghost-button{background:#fff;color:var(--ink)}.primary-button{background:var(--ink);border-color:var(--ink);color:#fff}.primary-button:hover{background:#173650}.spark{color:#ffb77d}.content{padding:31px 34px 50px;max-width:1600px;margin:auto}.page-heading{display:flex;justify-content:space-between;align-items:flex-end;margin-bottom:24px}.period{font-size:13px;color:var(--muted);font-weight:600}.status-dot{display:inline-block;width:7px;height:7px;background:var(--teal);border-radius:50%;margin-right:7px}.page-heading h1{font:800 30px/1.2 'Manrope';margin:7px 0 3px}.page-heading p{margin:0;color:var(--muted)}.week-control{background:#fff;border:1px solid var(--line);border-radius:8px;display:flex;align-items:center}.week-control button{border:0;background:none;padding:10px 13px;font-size:20px;cursor:pointer}.week-control span{font-size:13px;font-weight:700;padding:0 9px}.kpi-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:18px}.kpi-card{background:#fff;border:1px solid var(--line);border-top:3px solid var(--blue);border-radius:10px;padding:17px 18px 14px;box-shadow:0 3px 15px rgba(20,46,66,.025)}.kpi-card.danger{border-top-color:var(--red)}.kpi-card.success{border-top-color:var(--teal)}.kpi-card.warning{border-top-color:var(--orange)}.kpi-top,.target-row{display:flex;justify-content:space-between}.kpi-top{font-size:13px;font-weight:700}.trend{font-size:11px;border-radius:11px;padding:2px 7px}.trend.up{background:#e6f5f1;color:#23867d}.trend.down{background:#fdeaea;color:#b94242}.kpi-card>strong{display:block;font:800 28px 'Manrope';margin:11px 0 8px}.target-row{font-size:11px;color:var(--muted)}.target-row span:last-child{font-weight:700}.meter{height:3px;background:#edf1f3;margin-top:13px;border-radius:3px;overflow:hidden}.meter i{height:100%;background:var(--blue);display:block}.danger .meter i{background:var(--red)}.success .meter i{background:var(--teal)}.warning .meter i{background:var(--orange)}.workspace-grid{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(340px,.9fr);gap:18px}.panel{background:#fff;border:1px solid var(--line);border-radius:11px;box-shadow:var(--shadow)}.performance-panel{padding:21px 22px}.panel-heading{display:flex;align-items:center;justify-content:space-between}.panel h2{font:700 18px 'Manrope';margin:3px 0}.legend{display:flex;gap:18px;font-size:11px;color:var(--muted)}.legend i{display:inline-block;width:8px;height:8px;margin-right:6px}.sales-key{background:#8cb0c7;border-radius:2px}.labor-key{background:var(--orange);border-radius:50%}.chart-wrap{display:grid;grid-template-columns:32px 1fr;margin-top:15px}.chart-y{display:flex;flex-direction:column;justify-content:space-between;height:210px;padding:0 0 4px;font-size:9px;color:#8a99a4}.chart-wrap svg{width:100%;height:240px;overflow:visible}.grid-lines line{stroke:#e8edef;stroke-width:1}.bars rect{fill:#a7c1d1;rx:4}.line{fill:none;stroke:var(--orange);stroke-width:3;stroke-linecap:round;stroke-linejoin:round}.points circle{fill:#fff;stroke:var(--orange);stroke-width:3}.chart-labels text{fill:#72838f;font:11px 'DM Sans';text-anchor:middle}.chart-note{background:#f7f9fa;border-radius:7px;padding:10px 12px;font-size:12px;color:var(--muted)}.chart-note span{font-weight:700;color:var(--ink)}.ai-panel{background:var(--nav);color:#fff;padding:22px}.ai-heading{display:flex;align-items:center;gap:11px;padding-bottom:16px;border-bottom:1px solid #253c4f}.ai-icon{width:36px;height:36px;display:grid;place-items:center;background:#17394b;color:#61d4c8;border-radius:9px}.ai-panel .eyebrow{color:#61d4c8}.ai-panel h2{color:#fff}.updated{margin-left:auto;font-size:10px;color:#70899b}.insight{padding:17px 0;border-bottom:1px solid #22394b}.insight:last-child{border:0}.severity{font-size:9px;letter-spacing:.12em;font-weight:800;color:#ffae76}.medium .severity{color:#f3cf68}.positive .severity{color:#58cabb}.insight h3{font:700 14px 'Manrope';margin:5px 0}.insight p{color:#a9bbc7;font-size:12px;line-height:1.55;margin:0}.text-button{border:0;background:none;color:#73d7cd;padding:10px 0 0;font-size:11px;font-weight:700;cursor:pointer}.lower-grid{display:grid;grid-template-columns:1.65fr .9fr;gap:18px;margin-top:18px}.actions-panel,.health-panel{padding:21px 22px}.small-button{padding:8px 11px;background:#f7fafb;color:var(--ink);font-size:11px}.action-list{margin-top:14px}.action-row{display:grid;grid-template-columns:24px 1fr 34px 65px;align-items:center;gap:11px;padding:12px 2px;border-top:1px solid #edf1f3;cursor:pointer}.action-row input{display:none}.checkmark{width:18px;height:18px;border:1.5px solid #bac7cf;border-radius:5px;position:relative}.action-row input:checked+.checkmark{background:var(--teal);border-color:var(--teal)}.action-row input:checked+.checkmark:after{content:'✓';position:absolute;color:white;font-size:12px;left:3px;top:-1px}.action-copy{display:flex;flex-direction:column}.action-copy strong{font-size:13px}.action-copy small{font-size:11px;color:var(--muted)}.completed .action-copy{text-decoration:line-through;color:#8b99a2}.owner{width:28px;height:28px;font-size:9px;color:#fff}.owner.amber{background:#d79a61}.owner.blue{background:#668daa}.owner.teal{background:#4cb0a8}.due{font-size:10px;color:#b74a4a;text-align:right;font-weight:700}.due.done{color:#308d84}.score-wrap{display:flex;align-items:center;gap:18px;margin:17px 0}.score-ring{width:86px;height:86px;border-radius:50%;display:grid;place-items:center;background:conic-gradient(var(--orange) 0 78%,#e9eef1 78% 100%);position:relative}.score-ring:after{content:'';position:absolute;width:67px;height:67px;background:#fff;border-radius:50%}.score-ring span{z-index:1;font:800 24px 'Manrope'}.score-ring small{font-size:10px;color:var(--muted)}.score-wrap>div:last-child strong{font-size:14px}.score-wrap p{font-size:11px;color:#399488;margin:3px 0}.score-detail{display:grid;gap:8px}.score-detail span{font-size:11px;color:var(--muted);display:flex;justify-content:space-between}.score-detail b{color:#378a83}.score-detail b.bad{color:var(--red)}dialog{border:0;border-radius:14px;padding:0;box-shadow:0 24px 70px rgba(4,20,34,.28);width:min(520px,calc(100% - 28px))}dialog::backdrop{background:rgba(7,23,36,.64);backdrop-filter:blur(3px)}.dialog-card{padding:28px;position:relative}.dialog-card h2{font:800 22px 'Manrope';margin:9px 0}.dialog-card p{color:var(--muted);font-size:14px}.dialog-close{position:absolute;right:16px;top:12px;border:0;background:none;font-size:24px;color:#71818c;cursor:pointer}.upload-icon{display:grid;place-items:center;width:42px;height:42px;border-radius:10px;background:#e8f2f5;color:var(--blue);font-size:22px}.dropzone{border:1.5px dashed #b8c8d0;border-radius:10px;min-height:150px;display:flex;flex-direction:column;align-items:center;justify-content:center;margin:20px 0;cursor:pointer}.dropzone input{display:none}.dropzone strong{color:var(--blue)}.dropzone span,.dropzone small{color:var(--muted);font-size:12px}.dialog-actions{display:flex;justify-content:flex-end;gap:9px}.compact label{display:flex;flex-direction:column;gap:5px;font-size:12px;font-weight:700;margin:14px 0}.compact input{border:1px solid var(--line);border-radius:8px;padding:11px;font:14px inherit}.toast{position:fixed;right:24px;bottom:24px;background:var(--nav);color:#fff;padding:12px 18px;border-radius:9px;box-shadow:var(--shadow);transform:translateY(90px);opacity:0;transition:.25s;z-index:20;font-size:13px}.toast.show{transform:translateY(0);opacity:1}.loading{opacity:.55;pointer-events:none}.loading .spark{display:inline-block;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}@media(max-width:1050px){.app-shell{grid-template-columns:78px 1fr}.sidebar{padding:27px 11px}.brand>span:last-child,.nav-item:not(.active){font-size:0}.brand{justify-content:center;padding-left:0;padding-right:0}.nav-item{justify-content:center}.nav-item span{font-size:18px}.nav-item.active{font-size:0}.sidebar-label,.sidebar-footer div:nth-child(2),.sidebar-footer button,.count{display:none}.sidebar-footer{justify-content:center}.kpi-grid{grid-template-columns:repeat(2,1fr)}.workspace-grid,.lower-grid{grid-template-columns:1fr}.ai-panel{min-height:auto}}@media(max-width:680px){.app-shell{display:block}.sidebar{position:fixed;left:-260px;width:244px;z-index:12;transition:.25s}.sidebar.open{left:0}.sidebar .brand>span:last-child,.sidebar .nav-item{font-size:14px}.sidebar .nav-item{justify-content:flex-start}.sidebar-label,.sidebar-footer div:nth-child(2),.sidebar-footer button,.sidebar .count{display:flex}.topbar{height:72px;padding:0 16px}.menu-button{display:block;border:0;background:none;font-size:22px}.location-wrap .eyebrow{display:none}.location-wrap select{font-size:14px;max-width:155px}.top-actions .ghost-button{display:none}.primary-button{padding:9px 11px}.content{padding:22px 15px 40px}.page-heading{align-items:flex-start;gap:14px}.page-heading h1{font-size:24px}.page-heading p{font-size:13px}.week-control{display:none}.kpi-grid{grid-template-columns:1fr 1fr;gap:9px}.kpi-card{padding:13px}.kpi-card>strong{font-size:22px}.target-row{display:none}.workspace-grid,.lower-grid{gap:12px;margin-top:12px}.performance-panel,.ai-panel,.actions-panel,.health-panel{padding:17px}.legend{display:none}.chart-wrap{overflow-x:auto}.chart-wrap svg{min-width:560px}.action-row{grid-template-columns:24px 1fr 30px}.due{display:none}}
:where(a.nav-item){text-decoration:none}.link-button{text-decoration:none;display:inline-flex;align-items:center}.kpi-dollar-total{font:700 13px Manrope;color:var(--ink);margin:-5px 0 8px}.kpi-card.danger .kpi-dollar-total{color:#b94747}.kpi-card.success .kpi-dollar-total{color:#27867e}.kpi-card.warning .kpi-dollar-total{color:#a96f2f}

/* MetricFork logo treatment */
.brand{font-size:0;gap:0}
.brand img{display:block;width:190px;height:auto;border-radius:10px}
.sidebar .brand img{filter:none;opacity:1}
@media(max-width:1050px){.brand img{width:46px;height:46px;object-fit:cover;object-position:left;border-radius:11px}}
@media(max-width:680px){.brand img{width:190px;height:auto;object-fit:contain;border-radius:10px}}

/* Weekly operating review */
.brief-panel,.portfolio-panel{margin:18px 0;padding:24px}.brief-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:14px}.brief-item{border:1px solid #dce4e7;border-left:4px solid #d88733;border-radius:10px;padding:18px;background:#fff}.brief-item.positive{border-left-color:#168878}.brief-item h3{font-size:1.22rem;line-height:1.35;margin:8px 0}.brief-item p,.empty-brief,.coverage-status p{font-size:1rem;line-height:1.5;color:var(--muted);margin:8px 0 16px}.brief-item button{margin-top:6px}.portfolio-scroll{overflow:auto}.portfolio-table{width:100%;border-collapse:collapse;min-width:680px}.portfolio-table th,.portfolio-table td{padding:13px 10px;border-bottom:1px solid #e3e9ec;text-align:left;font-size:.93rem}.portfolio-table th{color:var(--muted);font-weight:700}.portfolio-table td.bad{color:#b64e26;font-weight:700}.portfolio-table button{border:0;background:none;color:var(--teal);font:inherit;font-weight:700;cursor:pointer;padding:0}.coverage-status{padding-top:15px}.coverage-status strong{font-size:1.25rem}.coverage-status a{color:var(--teal);font-weight:700}.quick-entry{padding:24px;margin:18px 0 24px}.quick-entry p{color:var(--muted);line-height:1.5}.quick-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:20px 0}.quick-grid label{font-size:.92rem;font-weight:700;display:flex;flex-direction:column;gap:7px}.quick-grid input{width:100%;border:1px solid #cbd9dd;border-radius:8px;padding:11px;font:inherit}.quick-actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.import-label{cursor:pointer}.import-label input{display:none}.weekly-mode #salesSection .section-title::after,.weekly-mode #laborSection .section-title::after{content:'Weekly totals are stored in the first row; daily detail has not been supplied.';display:block;grid-column:1/-1;color:#9a5423;font-size:.94rem;margin-top:8px}.coverage-status,.quick-entry{font-size:1rem}@media(max-width:800px){.quick-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.brief-panel,.portfolio-panel,.quick-entry{padding:18px}}@media(max-width:520px){.quick-grid{grid-template-columns:1fr}.brief-list{grid-template-columns:1fr}}
