.insight-title{display:flex;justify-content:space-between;margin:24px 0 12px}.insight-title h2{margin:0;font-size:22px}.insight-title p,.insight-card header p{color:var(--fc-muted);font-size:14px;margin:5px 0}.insight-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.insight-card{background:var(--fc-panel);border:1px solid var(--fc-line);border-radius:16px;padding:18px;min-width:0}.insight-card>header{display:flex;justify-content:space-between;gap:12px;margin-bottom:14px}.insight-card h2{font-size:16px;margin:0}.insight-card header button{align-self:start;white-space:nowrap;min-height:44px}.insight-bars{display:grid;gap:12px}.insight-bars>div>div{display:flex;justify-content:space-between;gap:10px;font-size:14px}.insight-bars meter{width:100%;height:12px;display:block;margin-top:5px;accent-color:#258b99}.insight-bars meter::-webkit-meter-optimum-value{background:#258b99}.insight-bars .rowlink{font-size:13px;min-height:28px}.insight-trend{display:flex;gap:9px;align-items:end;height:150px}.insight-trend>div{flex:1;min-width:0;text-align:center}.insight-trend b,.insight-trend small{display:block;font-size:12px;overflow-wrap:anywhere}.insight-trend span{display:block;background:linear-gradient(#59bfc5,#217b94);border-radius:5px 5px 0 0;margin:6px 0}.module-directory{margin:14px 0}.module-directory>summary{padding:15px;cursor:pointer;min-height:48px;font-weight:600}.module-row{display:flex;align-items:center;gap:12px;justify-content:space-between;width:100%;padding:12px 0;border:0;border-bottom:1px solid var(--fc-line);background:none;text-align:left;color:var(--fc-text);min-height:48px;font:inherit;font-size:14px}.module-row span{flex:1}.module-row small{color:var(--fc-muted)}.project-insight{display:grid;grid-template-columns:1fr auto;gap:8px;margin:14px 0}.project-insight progress,.project-insight small{grid-column:1/-1;width:100%}.project-insight progress{accent-color:#258b99}.notification-area{position:relative}.notification-toggle{width:44px;height:44px;position:relative;display:grid;place-items:center;background:var(--fc-panel);border:1px solid var(--fc-line);border-radius:12px;color:var(--fc-text);cursor:pointer}.notification-count{position:absolute;right:-6px;top:-6px;background:#ad3b35;color:white;border:2px solid var(--fc-panel);border-radius:20px;font-size:11px;min-width:20px;padding:2px}.notification-panel{position:absolute;right:0;top:54px;width:370px;max-height:min(620px,80vh);overflow:auto;padding:16px;border:1px solid var(--fc-line);border-radius:16px;background:var(--fc-panel);box-shadow:0 18px 60px #19394b33;z-index:85}.notification-panel header{display:flex;align-items:center;justify-content:space-between;gap:8px}.notification-panel h2{font-size:18px;margin:0}.notification-panel header button{min-height:44px}.notification-entry{display:flex;gap:8px;border-bottom:1px solid var(--fc-line);padding:10px 0}.notification-entry>button:first-child{flex:1;text-align:left;border:0;background:transparent;color:var(--fc-text);font:inherit;padding:6px;min-width:0}.notification-entry b,.notification-entry small{display:block;overflow-wrap:anywhere}.notification-entry small{font-size:13px;color:var(--fc-muted);margin-top:4px}.notification-entry.unread{border-left:3px solid #287a95;padding-left:6px}.notification-entry .mark-read{width:44px;min-width:44px;height:44px;border:1px solid var(--fc-line);border-radius:8px;background:var(--fc-raised);color:var(--fc-text)}.notification-panel .minor{font-size:13px}.person-profile-heading{display:flex;gap:14px;align-items:center;margin-bottom:16px}.person-profile-heading h2{margin:0}.person-profile-heading p{margin:4px 0;color:var(--fc-muted)}.profile-tabs{display:flex;gap:4px;overflow-x:auto;border-bottom:1px solid var(--fc-line);margin-bottom:18px}.profile-tabs button{min-height:48px;white-space:nowrap;border:0;border-bottom:3px solid transparent;background:none;color:var(--fc-muted);padding:10px 12px;font:600 14px system-ui;cursor:pointer}.profile-tabs button[aria-selected=true]{color:var(--fc-text);border-color:#258b99}.person-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:0 0 18px}.person-facts dt{font-size:13px;color:var(--fc-muted);margin-bottom:5px}.person-facts dd{font-size:15px;font-weight:600;margin:0;overflow-wrap:anywhere}.profile-shortcuts{display:flex;gap:10px;flex-wrap:wrap}.person-profile section h3{font-size:16px;margin:20px 0 8px}.drawer .formbody{padding:16px 0}.drawer .fields{gap:12px 16px}.drawer .field{margin:0}.drawer .field label{margin-bottom:5px;font-size:14px}.drawer .fsec{margin:0 0 18px;padding-top:14px}.drawer .fsec:first-child{padding-top:0}.drawer .fsec h4{margin:0 0 8px;font-size:15px}.drawer .fsecnote{margin:0 0 10px;font-size:13px;line-height:1.5}.drawer .input,.drawer .select{min-height:44px;padding:10px 12px}.drawer textarea.input{min-height:76px}.drawer .field small{font-size:12px;line-height:1.4;margin-top:4px}.drawer header{padding-bottom:12px;margin-bottom:12px}.drawer header p{margin:5px 0 0;font-size:13px}.drawer .process{margin:10px 0}.drawer .drawerfoot{padding-top:14px;padding-bottom:14px}.trash-row{padding:12px;border-bottom:1px solid var(--fc-line);display:flex;justify-content:space-between;gap:12px}.trash-row small{display:block;color:var(--fc-muted)}
@media(max-width:1100px){.insight-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.insight-grid{grid-template-columns:1fr}.notification-panel{position:fixed;top:72px;left:12px;right:12px;width:auto;max-height:calc(100dvh - 156px)}.topright{gap:6px!important}.topbar .avatar{display:none}.topbar select{max-width:123px}.topbar #signout{padding:8px;font-size:13px}.topbar .icononly{width:40px}.person-facts{gap:14px}.drawer .fields{gap:12px}.drawer .fsec{margin-bottom:14px}.insight-card{padding:16px}.module-row{flex-wrap:wrap}.module-row small{width:100%}}
.command-financial-controls{margin:18px 0}.command-financial-controls>summary{min-height:48px;padding:14px 0;font-weight:600;cursor:pointer}
@media(max-width:360px){.topbar select{max-width:90px;min-width:0;padding-left:7px;padding-right:20px}.topbar #signout{padding-left:5px;padding-right:5px}.topright{gap:4px!important}}
/* Keep financial context compact so analysis is visible sooner. */
.fc .fc-heading{margin-bottom:16px;gap:16px}.fc .fc-heading h1{font-size:clamp(27px,2.5vw,35px);margin:5px 0 8px}.fc .fc-context{padding:14px 0;gap:14px}.fc .fc-kpis{gap:12px;margin-bottom:12px}.fc .fc-metric{padding:16px}.fc .fc-metric>span{font-size:14px}.fc .fc-metric>strong{font-size:27px;margin:12px 0}.fc .fc-metric>small{font-size:13px;line-height:1.5}.fc .fc-summary{margin-bottom:14px;padding:10px 0}.fc .fc-panel{padding:18px;margin-bottom:14px}.fc .fc-panel>header{margin-bottom:14px;gap:10px}.fc .fc-panel h2{font-size:18px}.fc .fc-grid{gap:14px}.fc .fc-spending{min-height:180px}.fc .fc-grid>.fc-panel{height:calc(100% - 14px)}
@media(min-width:1100px){.fc .fc-kpis{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(min-width:400px) and (max-width:1099px){.fc .fc-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}
.fc .fc-summary button{padding:8px 14px;min-height:68px}.fc .fc-summary span{font-size:14px;margin-bottom:5px}.fc .fc-summary b{font-size:15px}.fc .fc-summary em{font-size:13px}.fc .fc-summary b .fc-arrow{display:inline}
@media(min-width:1100px){.fc .fc-summary{grid-template-columns:repeat(4,minmax(0,1fr));row-gap:0}.fc .fc-summary button{border-bottom:0}.fc .fc-summary button:nth-child(2){border-right:1px solid var(--fc-line)}}

/* Twelve-month charts retain readable labels and a compact mobile context. */
.reporting-basis{margin:4px 0 14px;font-size:14px;color:var(--fc-muted)}.reporting-basis summary{cursor:pointer;min-height:44px;padding:10px 0}.reporting-basis p{margin:2px 0 12px;line-height:1.6}.insight-trend{gap:5px}.insight-trend b{font-size:11px}
@media(max-width:600px){.fc .fc-heading{gap:12px;margin-bottom:12px}.fc .fc-context{padding:10px 0;gap:10px}.fc-trend-values{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.fc-trend-values button{min-height:48px}.fc .fc-panel{padding:14px}.insight-trend{overflow-x:auto;justify-content:space-between}.insight-trend>div{min-width:26px}.reporting-basis summary{padding:8px 0}.reporting-basis{margin-bottom:6px}}

/* Procurement stages: connectors belong to the marker rail, never to labels. */
.csteps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;overflow:visible}
.cstep{min-width:0;padding:12px;text-align:left;border:1px solid var(--line-3);border-radius:10px;background:var(--panel,#fff);display:grid;grid-template-columns:24px minmax(0,1fr);align-content:start;column-gap:9px}
.cstep::before{display:none}
.cmarker{grid-row:1 / 4;color:var(--good-2);font-size:18px;line-height:1.5}
.cstep.none .cmarker{color:var(--ink-6)}
.cstep.here{border-color:var(--gold-15);box-shadow:inset 3px 0 var(--gold-15)}
.cstep .clabel{font-size:13px;letter-spacing:.02em;overflow-wrap:anywhere;margin:0 0 4px}
.cstep .cid{text-align:left;font-size:15px;padding:0;overflow-wrap:anywhere;min-height:32px;display:flex;align-items:center}
.cstep .cstat{font-size:13px;overflow-wrap:anywhere;margin:0}
.maintenance-analytics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:12px 0}
.maintenance-chart{min-width:0;margin:0;padding:18px}.maintenance-chart h2{font-size:18px;margin:0 0 6px}.maintenance-chart .minor{margin:0 0 14px}
.maintenance-bars{list-style:none;padding:0;margin:0;display:grid;gap:10px}.maintenance-bars li>div{display:flex;justify-content:space-between;gap:12px;font-size:14px}.maintenance-bars strong{white-space:nowrap}.maintenance-track{display:block;height:7px;background:var(--line-3);border-radius:5px;margin-top:5px;overflow:hidden}.maintenance-track i{display:block;height:100%;background:var(--bar-color);border-radius:5px}
.maintenance-analysis-head{margin-top:20px}.maintenance-analysis-head label{font-size:14px}.maintenance-analysis-head select{max-width:120px;margin-left:8px}
.maintenance-legend{display:flex;gap:16px;font-size:13px;margin-bottom:14px;color:#2474ba}.maintenance-legend span+span{color:#168367}
.maintenance-columns{height:210px;display:flex;gap:6px;border-bottom:1px solid var(--line-3);padding-top:8px;margin-bottom:12px}.maintenance-month{flex:1;min-width:0;display:flex;flex-direction:column;justify-content:end;align-items:center;font-size:10px}.maintenance-column-pair{height:180px;width:100%;display:flex;align-items:end;justify-content:center;gap:2px}.maintenance-column-pair i{background:#2474ba;width:35%;border-radius:3px 3px 0 0}.maintenance-column-pair i+i{background:#168367}.maintenance-month>span{margin:7px 0}.maintenance-chart summary{cursor:pointer;font-size:14px}
@media(max-width:1100px){.maintenance-analytics{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){.csteps{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.cstep{padding:10px;column-gap:6px;grid-template-columns:18px minmax(0,1fr)}.maintenance-analytics{grid-template-columns:1fr}.maintenance-analysis-head{align-items:start;gap:8px;flex-direction:column}.maintenance-chart{padding:16px}.maintenance-month{font-size:11px}}
@media(max-width:360px){.csteps{grid-template-columns:1fr}}
.maintenance-analysis-head h2{margin:0 0 6px}.maintenance-analysis-head .minor{margin:0}.maintenance-analysis-head select{font:inherit;min-height:44px;padding:8px 12px;border:1px solid var(--line-3);border-radius:8px;background:var(--panel,#fff);color:inherit}
@media(max-width:650px){.process .steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 6px;overflow:visible}.process .step{min-width:0}.process .step::before{display:none}.process .step .lbl{font-size:13px;letter-spacing:0;overflow-wrap:anywhere}}
.warehouse-chart-grid{display:grid;grid-template-columns:1.7fr 1fr;gap:16px;margin:16px 0}.warehouse-chart-grid>*{min-width:0}.warehouse-bars{list-style:none;padding:0;margin:16px 0;display:grid;gap:18px}.warehouse-bars li>div{display:flex;justify-content:space-between;gap:10px;font-size:14px}.warehouse-bars li>span{display:block;height:9px;margin-top:7px;background:var(--line-3);border-radius:6px;overflow:hidden}.warehouse-bars i{display:block;height:100%;background:#2474ba}.warehouse-detail .actions label{font-size:14px}.warehouse-detail .actions select{display:block;min-height:44px}.warehouse-detail .inventory-outstanding{margin-bottom:16px}@media(max-width:800px){.warehouse-chart-grid{grid-template-columns:1fr}}
.item-photo{display:block;flex:0 0 64px;width:64px;height:64px;border:1px solid var(--line-3);border-radius:10px;background:#fff url('images/mine-stock-atlas.png') var(--photo-x) var(--photo-y)/300% 200% no-repeat;overflow:hidden;margin-bottom:6px}.item-photo.large{width:180px;height:180px;flex-basis:180px}.item-photo img{width:100%;height:100%;object-fit:contain;background:#fff}.item-detail-hero{display:flex;gap:20px;align-items:center;padding:14px 0}.item-detail-hero h3{margin:0 0 8px}.item-detail-hero p{font-size:13px;color:var(--ink-6)}.item-detail-hero .btn{margin:4px}.reorder-button{display:inline-flex;margin:6px 0;min-height:40px}.stock-item-action{display:flex;align-items:center;gap:8px}.stock-item-action>div{min-width:0;flex:1}.stock-item-action .dash-row{padding:10px 0}.stock-item-action .dash-symbol{display:none}@media(max-width:600px){.item-detail-hero{align-items:start}.item-photo.large{width:110px;height:110px;flex-basis:110px}}
.item-photo-control{display:block;font-size:14px;margin-top:12px;font-weight:700}.item-photo-control input{display:block;max-width:100%;font:inherit;margin-top:8px}.warehouse-detail details.panel>summary{cursor:pointer;padding:4px 0;font-size:17px}
.item-detail-hero>div{min-width:0;flex:1}.item-detail-hero h3{overflow-wrap:anywhere}.item-photo-control input{width:100%;min-width:0;font-size:12px}

.item-photo.generic{background:#f1f5f7;color:#697e89;padding:12px}.item-photo.generic svg{width:100%;height:100%}.record-table td:has(>.item-photo){min-width:142px}.record-table td:has(>.item-photo)>.rowlink{white-space:nowrap}

.insight-trend{overflow-x:auto}.insight-trend>div{min-width:32px}.insight-trend b,.insight-trend small{white-space:nowrap;overflow-wrap:normal}.insight-trend:focus-visible{outline:2px solid var(--fc-gold,#917023);outline-offset:4px}
/* 0056: equipment and tool pictures, and the machine card on records that name equipment. */
.item-photo.equip-photo{background:#eef4f6;color:#2f5f6e}
.item-photo.equip-photo:not(.generic){padding:0}
.record-table td:has(>.equip-photo){min-width:142px}
.machine-card{display:flex;gap:12px;align-items:center;border:1px solid var(--line-3);border-radius:12px;padding:10px 12px;margin:10px 0 14px}
.machine-card .item-photo{margin-bottom:0}
.machine-card>div{min-width:0}
.machine-card p{margin:2px 0 6px;font-size:13px;overflow-wrap:anywhere}
.equip-hero .btn{margin-top:8px}
