@font-face {
  font-family: "Montserrat MC";
  src: url("../assets/branding/fonts/Montserrat-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat MC";
  src: url("../assets/branding/fonts/Montserrat-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Poppins MC";
  src: url("../assets/branding/fonts/Poppins-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Poppins MC";
  src: url("../assets/branding/fonts/Poppins-Medium.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Poppins MC";
  src: url("../assets/branding/fonts/Poppins-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}

:root {
  color-scheme: light;
  font-family: "Poppins MC", ui-sans-serif, system-ui, sans-serif;
  --ink: #101b19;
  --muted: #667471;
  --paper: #f3f5f3;
  --card: #fff;
  --line: #d9e1dc;
  --forest: #0f3431;
  --forest-2: #008440;
  --brand: #009444;
  --mint: #e1f2e8;
  --gold: #009444;
  --danger: #b83d36;
  --shadow: 0 18px 44px rgba(15, 52, 49, .09);
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: var(--paper); color: var(--ink); }
body.mobile-navigation-open { overflow: hidden; }
button, input, select { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

.login-view { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(420px, .88fr); background: #f5f7f5; }
.login-brand { padding: clamp(2.4rem, 5vw, 5.5rem); display: flex; flex-direction: column; color: white; background: linear-gradient(135deg, rgba(0,148,68,.98) 0 8%, transparent 8% 100%), linear-gradient(150deg, #0f3431 0%, #0f3431 58%, #092724 100%); position: relative; overflow: hidden; }
.login-brand::after { content: ""; position: absolute; width: 390px; height: 650px; right: -95px; bottom: -310px; border: 78px solid rgba(0,148,68,.2); transform: rotate(28deg); }
.login-brand-logo { position: relative; z-index: 1; width: min(290px, 48%); height: auto; }
.login-brand-copy { position: relative; z-index: 1; margin: auto 0; }
.login-brand h1 { max-width: 820px; margin: .75rem 0 1.3rem; font-family: "Montserrat MC", sans-serif; font-weight: 700; line-height: 1.03; font-size: clamp(2.8rem, 5vw, 5.4rem); letter-spacing: -.045em; }
.login-brand-copy > p:not(.eyebrow) { max-width: 620px; color: rgba(255,255,255,.72); line-height: 1.75; font-size: 1.04rem; }
.login-metrics { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 3rem; }
.login-metrics span { padding: .9rem 1.1rem; border-left: 3px solid var(--brand); background: rgba(255,255,255,.07); border-radius: 4px; color: rgba(255,255,255,.7); }
.login-metrics strong { color: white; margin-right: .35rem; }
.login-panel { display: grid; place-items: center; padding: 2rem; }
.login-card { width: min(450px, 100%); display: grid; gap: 1.25rem; padding: clamp(2rem, 4vw, 3rem); background: white; border: 1px solid var(--line); border-top: 5px solid var(--brand); border-radius: 10px; box-shadow: var(--shadow); }
.login-card-logo { width: 215px; height: auto; margin-bottom: .4rem; }
.login-card h2 { font-family: "Montserrat MC", sans-serif; font-size: 2.25rem; margin: .2rem 0; font-weight: 700; letter-spacing: -.035em; }
label { display: grid; gap: .5rem; color: #43514f; font-size: .86rem; font-weight: 600; }
input { width: 100%; min-height: 44px; border: 1px solid #cbd6cf; border-radius: 5px; padding: .7rem .8rem; color: var(--ink); background: #fff; }
input:focus { outline: 3px solid rgba(0,148,68,.14); border-color: var(--brand); }
select { min-height: 44px; border: 1px solid #cbd6cf; border-radius: 5px; padding: .65rem 2.2rem .65rem .8rem; color: var(--ink); background: #fff; }
select:focus { outline: 3px solid rgba(0,148,68,.14); border-color: var(--brand); }
.primary-button, .secondary-button, .ghost-button { border: 0; border-radius: 5px; min-height: 44px; padding: .72rem 1.05rem; font-family: "Montserrat MC", sans-serif; font-weight: 600; }
.primary-button { background: var(--brand); color: white; }
.primary-button:hover { background: var(--forest-2); }
.primary-button:disabled { opacity: .55; cursor: wait; }
.secondary-button { background: var(--forest); color: white; }
.ghost-button { background: transparent; color: var(--muted); border: 1px solid var(--line); }
.form-error { min-height: 1.2em; margin: -.4rem 0; color: var(--danger); font-size: .88rem; }
.form-error:empty { display: none; }
.form-error:not(:empty) { margin: 0; padding: .85rem 1rem; border-left: 4px solid var(--danger); border-radius: 4px; background: #fbeceb; color: #8d2f29; font-weight: 600; line-height: 1.5; }
.field-help { color: var(--muted); font-size: .72rem; font-weight: 400; line-height: 1.45; }
.login-card.has-error { border-top-color: var(--danger); }
.muted { color: var(--muted); }
.eyebrow { margin: 0; text-transform: uppercase; letter-spacing: .13em; font-family: "Montserrat MC", sans-serif; font-size: .68rem; font-weight: 700; color: var(--brand); }
.login-brand .eyebrow { color: #69d594; }

.app-view { min-height: 100vh; display: grid; grid-template-columns: 268px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; padding: 1.35rem 1rem; background: var(--forest); color: white; display: flex; flex-direction: column; }
.mobile-menu-toggle, .sidebar-scrim { display: none; }
.brand-lockup { min-height: 84px; display: flex; align-items: center; padding: .4rem .55rem 1.8rem; }
.brand-lockup img { display: block; width: 188px; height: auto; }
nav { display: grid; gap: .4rem; }
.nav-home { margin-bottom: .75rem; }
.nav-group { display: grid; gap: .28rem; padding-bottom: 1rem; }
.nav-group + .nav-group { padding-top: .8rem; border-top: 1px solid rgba(255,255,255,.1); }
.nav-group-toggle { display: flex; align-items: center; gap: .55rem; width: 100%; margin: 0 0 .35rem; padding: .45rem .75rem; border: 0; background: transparent; color: white; font-family: "Montserrat MC", sans-serif; font-size: .72rem; font-weight: 700; text-align: left; text-transform: uppercase; letter-spacing: .08em; }
.nav-group-toggle span { color: #5fd18b; font-size: .55rem; }
.nav-group-toggle i { margin-left: auto; color: rgba(255,255,255,.55); font-style: normal; font-size: .9rem; transition: transform .2s ease; }
.nav-group-toggle[aria-expanded="false"] i { transform: rotate(-90deg); }
.nav-group-items { display: grid; gap: .28rem; }
.nav-item { display: flex; align-items: center; gap: .75rem; width: 100%; padding: .85rem .9rem; border: 0; border-radius: 5px; color: rgba(255,255,255,.68); background: transparent; text-align: left; }
.nav-group .nav-item { padding-left: 1.15rem; }
.nav-item span { width: 20px; color: #5fd18b; font-size: 1.05rem; }
.nav-item:hover { color: white; background: rgba(255,255,255,.08); }
.nav-item.active { color: white; background: var(--brand); }
.nav-item.active span { color: white; }
.sidebar-footer { margin-top: auto; display: flex; align-items: center; gap: .7rem; padding: 1rem .7rem; border-top: 1px solid rgba(255,255,255,.1); }
.sidebar-footer div { display: grid; font-size: .75rem; }
.sidebar-footer small { color: rgba(255,255,255,.5); }
.status-dot { width: 8px; height: 8px; background: #74c89b; border-radius: 50%; box-shadow: 0 0 0 5px rgba(116,200,155,.1); }
.workspace { min-width: 0; }
.topbar { min-height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.35rem clamp(1.2rem, 3vw, 3rem); background: rgba(255,255,255,.86); backdrop-filter: blur(18px); border-bottom: 1px solid var(--line); }
.topbar h1 { margin: .2rem 0 0; font-family: "Montserrat MC", sans-serif; font-size: 1.65rem; font-weight: 700; letter-spacing: -.025em; }
.topbar-actions, .user-chip { display: flex; align-items: center; gap: .8rem; }
.user-chip > span { width: 38px; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: var(--mint); color: var(--forest); font-weight: 800; font-size: .78rem; }
.user-chip div { display: grid; font-size: .82rem; }
.user-chip small { color: var(--muted); }
.filter-bar { display: flex; align-items: end; gap: .8rem; padding: 1rem clamp(1.2rem, 3vw, 3rem); background: #fff; border-bottom: 1px solid var(--line); }
.filter-group { display: flex; align-items: center; gap: .6rem; }
.filter-group label { display: block; white-space: nowrap; font-size: .78rem; }
.week-number { min-width: 1.7rem; color: var(--forest); font-family: "Montserrat MC", sans-serif; font-size: 1rem; }
.filter-group input { min-height: 40px; padding: .45rem .65rem; }
.source-badge { margin-left: auto; border-radius: 99px; padding: .45rem .75rem; background: #e1f2e8; color: #006b31; font-size: .72rem; font-weight: 600; }
.source-badge.mock { background: #fff1d9; color: #8b5b17; }
.capacity-horizon { display: grid; grid-template-columns: repeat(5, minmax(190px, 1fr)); gap: .8rem; overflow-x: auto; padding-bottom: .35rem; }
.horizon-week { min-width: 190px; padding: 1rem; border: 1px solid var(--line); border-radius: 8px; background: white; box-shadow: 0 6px 24px rgba(15,52,49,.04); }
.horizon-week header { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; padding-bottom: .8rem; border-bottom: 1px solid #edf0ed; }
.horizon-week header strong { font-family: "Montserrat MC", sans-serif; font-size: 1.35rem; color: var(--forest); }
.horizon-week header span { color: var(--muted); font-size: .72rem; }
.horizon-bars { display: grid; gap: .85rem; padding-top: .9rem; }
.horizon-bar-row > div:first-child { display: flex; justify-content: space-between; gap: .5rem; font-size: .67rem; }
.horizon-bar-row > div:first-child span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
.horizon-bar-row > div:first-child strong { white-space: nowrap; }
.horizon-track { position: relative; height: 7px; margin: .35rem 0; overflow: hidden; border-radius: 99px; background: #e8ece8; }
.horizon-track i { display: block; height: 100%; border-radius: inherit; background: var(--forest-2); }
.horizon-track b { position: absolute; top: 0; bottom: 0; left: 76.923%; width: 2px; background: rgba(15,52,49,.45); }
.horizon-bar-row.warning .horizon-track i { background: #d8902f; }
.horizon-bar-row.danger .horizon-track i { background: var(--danger); }
.horizon-bar-row small { color: var(--muted); font-size: .62rem; }
.workshop-chart-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.workshop-chart-card { min-width: 0; padding: 1.2rem; border: 1px solid var(--line); border-radius: 8px; background: white; box-shadow: 0 6px 24px rgba(15,52,49,.04); }
.workshop-chart-card > header { display: flex; align-items: end; justify-content: space-between; gap: 1rem; }
.workshop-chart-card h3 { margin: .25rem 0 0; font-family: "Montserrat MC", sans-serif; font-size: 1.25rem; }
.chart-legend { display: flex; gap: .8rem; color: var(--muted); font-size: .65rem; }
.chart-legend span { display: flex; align-items: center; gap: .3rem; }
.chart-legend i { width: 8px; height: 8px; border-radius: 2px; }
.capacity-swatch { background: #b6c4bc; }
.load-swatch { background: var(--brand); }
.workshop-chart { display: grid; grid-template-columns: repeat(5, minmax(72px, 1fr)); gap: .55rem; min-height: 265px; margin-top: 1rem; padding: 1rem .5rem .2rem; border-top: 1px solid #edf0ed; background: linear-gradient(to top, rgba(15,52,49,.04) 1px, transparent 1px); background-size: 100% 25%; }
.chart-week { min-width: 0; display: grid; grid-template-rows: 28px 170px auto auto; justify-items: center; align-items: end; }
.chart-ratio { align-self: center; color: var(--forest); font-size: .72rem; white-space: nowrap; }
.chart-bars { width: 100%; height: 170px; display: flex; align-items: end; justify-content: center; gap: 5px; border-bottom: 1px solid #cbd6cf; }
.chart-bars i { width: min(24px, 34%); min-height: 2px; border-radius: 3px 3px 0 0; }
.capacity-bar { background: #b6c4bc; }
.load-bar { background: var(--brand); }
.chart-week.warning .load-bar { background: #d8902f; }
.chart-week.danger .load-bar { background: var(--danger); }
.chart-week > span { margin-top: .45rem; font-family: "Montserrat MC", sans-serif; font-size: .78rem; color: var(--forest); }
.chart-week > small { margin-top: .2rem; color: var(--muted); font-size: .58rem; text-align: center; white-space: nowrap; }
.capacity-editor-card { margin-top: 2.5rem; padding: 1.35rem; border: 1px solid var(--line); border-top: 4px solid var(--brand); border-radius: 8px; background: white; box-shadow: 0 6px 24px rgba(15,52,49,.04); }
.capacity-editor-heading { display: flex; justify-content: space-between; align-items: end; gap: 1.5rem; }
.capacity-editor-heading h2 { margin: .35rem 0; font-family: "Montserrat MC", sans-serif; font-size: 1.45rem; }
.capacity-editor-controls { display: flex; align-items: end; gap: .7rem; }
.capacity-editor-controls label { min-width: 210px; }
.capacity-status { align-self: center; padding: .4rem .65rem; border-radius: 99px; font-size: .7rem; font-weight: 700; white-space: nowrap; }
.capacity-status.ready { background: #e2f2e7; color: #2e714b; }
.capacity-status.empty { background: #fff0d9; color: #90611f; }
.capacity-editor-table { box-shadow: none; }
.capacity-editor-table table { min-width: 620px; }
.capacity-editor-table th:nth-child(2), .capacity-editor-table td:nth-child(2) { width: 190px; }
.capacity-editor-table th:last-child, .capacity-editor-table td:last-child { width: 110px; }
.capacity-hours { width: 130px; min-height: 38px; }
.capacity-entry-row .ghost-button { min-height: 36px; padding: .45rem .65rem; font-size: .72rem; }
.capacity-editor-footer { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 1rem; }
.capacity-editor-footer > div { display: flex; align-items: center; gap: 1rem; }
.capacity-editor-footer span { color: var(--muted); font-size: .82rem; }
#capacity-save-message { display: block; min-height: 1.3em; margin-top: .65rem; }
.content { padding: clamp(1.3rem, 3vw, 3rem); max-width: 1540px; margin: 0 auto; }
.home-welcome { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 340px); gap: 1.2rem; align-items: stretch; }
.home-welcome > div { min-height: 210px; display: flex; flex-direction: column; justify-content: center; padding: clamp(1.6rem, 4vw, 3rem); border-radius: 12px; overflow: hidden; position: relative; background: linear-gradient(135deg, #0f3431, #0a2926); color: white; box-shadow: var(--shadow); }
.home-welcome > div::after { content: ""; position: absolute; width: 240px; height: 330px; right: -100px; bottom: -210px; border: 48px solid rgba(0,148,68,.28); transform: rotate(28deg); }
.home-welcome h2 { position: relative; z-index: 1; margin: .4rem 0 .6rem; font-family: "Montserrat MC", sans-serif; font-size: clamp(2.1rem, 4vw, 3.6rem); letter-spacing: -.04em; }
.home-welcome p { position: relative; z-index: 1; max-width: 650px; margin: 0; color: rgba(255,255,255,.72); }
.home-welcome .eyebrow { color: #74d899; }
.home-anomaly-card { display: grid; align-content: center; gap: .25rem; padding: 1.5rem; border: 1px solid #ecd5b4; border-top: 4px solid #d8902f; border-radius: 12px; background: #fffaf1; box-shadow: 0 8px 28px rgba(15,52,49,.06); }
.home-anomaly-card > span { color: #755d3b; font-size: .76rem; font-weight: 750; text-transform: uppercase; letter-spacing: .06em; }
.home-anomaly-card > strong { min-height: 58px; color: var(--forest); font-family: "Montserrat MC", sans-serif; font-size: 3rem; }
.home-anomaly-card > small { min-height: 1.4em; color: #755d3b; }
.home-anomaly-card button { justify-self: start; margin-top: 1rem; padding: .65rem .8rem; border: 0; border-radius: 6px; background: var(--forest); color: white; font-weight: 700; }
.mini-spinner { display: inline-block; width: 26px; height: 26px; border: 3px solid #dbe3dd; border-top-color: var(--brand); border-radius: 50%; animation: spin .8s linear infinite; }
.home-shortcuts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8rem; margin-top: 1.2rem; }
.home-shortcuts button { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: .8rem; align-items: center; min-height: 102px; padding: 1rem; border: 1px solid var(--line); border-radius: 9px; background: white; color: var(--ink); text-align: left; box-shadow: 0 6px 24px rgba(15,52,49,.035); transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease; }
.home-shortcuts button:hover { transform: translateY(-2px); border-color: #9fc9ae; box-shadow: 0 10px 28px rgba(15,52,49,.08); }
.home-shortcuts button > span { grid-row: 1 / 3; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 9px; background: var(--mint); color: var(--brand); font-size: 1.25rem; }
.home-shortcuts strong { font-family: "Montserrat MC", sans-serif; font-size: .86rem; }
.home-shortcuts small { color: var(--muted); font-size: .68rem; }
.home-efficiency-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .8rem; }
.home-kpi-card, .annual-efficiency-grid article { display: grid; gap: .25rem; min-height: 126px; align-content: center; padding: 1.1rem; border: 1px solid var(--line); border-top: 3px solid #7ab992; border-radius: 9px; background: white; }
.home-kpi-card.featured, .annual-efficiency-grid article.featured { border-top-color: var(--forest); background: #f0f6f2; }
.home-kpi-card span, .annual-efficiency-grid span { color: var(--muted); font-size: .7rem; font-weight: 750; text-transform: uppercase; letter-spacing: .06em; }
.home-kpi-card strong, .annual-efficiency-grid strong { font-family: "Montserrat MC", sans-serif; color: var(--forest); font-size: 1.85rem; }
.home-kpi-card small, .annual-efficiency-grid small { color: var(--muted); font-size: .68rem; }
.loading-card { border-top-color: #d8dfda; background: linear-gradient(100deg, #fff 30%, #f0f3f0 50%, #fff 70%); background-size: 250% 100%; animation: home-shimmer 1.4s infinite linear; }
.home-inline-error { grid-column: 1 / -1; padding: 1rem; border: 1px solid #e6c0bc; border-radius: 8px; background: #fff; color: var(--danger); }
@keyframes home-shimmer { to { background-position-x: -250%; } }
.annual-efficiency-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .8rem; }
.efficiency-live-section { margin-bottom: 2rem; padding: 1.2rem 1.3rem 1.3rem; border: 1px solid #b8d8c5; border-left: 4px solid var(--brand); border-radius: 9px; background: #f0f8f3; }
.efficiency-live-heading { display: flex; justify-content: space-between; align-items: start; gap: 1rem; margin-bottom: 1rem; }
.efficiency-live-heading h2 { margin: .2rem 0; font-family: "Montserrat MC", sans-serif; font-size: 1.55rem; }
.efficiency-live-heading .muted { max-width: 760px; }
.efficiency-live-actions { display: flex; align-items: center; justify-content: end; flex-wrap: wrap; gap: .65rem; }
.efficiency-live-badge { padding: .35rem .6rem; border-radius: 99px; background: #d9efdf; color: #266f44; font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; }
.efficiency-live-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .7rem; }
.efficiency-live-grid article { position: relative; display: grid; gap: .2rem; min-height: 100px; align-content: center; overflow: hidden; padding: .85rem 1rem .85rem 1.15rem; border: 1px solid #d4e6da; border-radius: 8px; background: white; }
.efficiency-live-grid article > i { position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--live-color); }
.efficiency-live-grid span { color: var(--muted); font-size: .68rem; font-weight: 750; }
.efficiency-live-grid strong { color: var(--forest); font-family: "Montserrat MC", sans-serif; font-size: 1.65rem; }
.efficiency-live-grid small { color: var(--muted); font-size: .64rem; }
.efficiency-current-heading { padding-bottom: .5rem; }
.efficiency-chart-card { padding: 1rem 1.2rem 1.2rem; border: 1px solid var(--line); border-radius: 9px; background: white; box-shadow: 0 6px 24px rgba(15,52,49,.04); }
.efficiency-chart-legend { display: flex; flex-wrap: wrap; gap: .65rem 1.1rem; padding: .2rem .2rem .8rem; color: var(--muted); font-size: .7rem; }
.efficiency-series-toggle { display: flex; align-items: center; gap: .35rem; padding: .25rem .15rem; border: 0; background: transparent; color: var(--muted); font: inherit; cursor: pointer; }
.efficiency-series-toggle[aria-pressed="false"] { opacity: .38; text-decoration: line-through; }
.efficiency-chart-legend i { width: 18px; height: 3px; border-radius: 99px; }
.efficiency-chart-scroll { overflow-x: auto; }
.efficiency-chart { display: block; width: 100%; min-width: 760px; height: auto; }
.efficiency-chart text { fill: #75817d; font-family: "Poppins MC", sans-serif; font-size: 10px; }
.efficiency-chart polyline { fill: none; stroke: var(--series-color); stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.efficiency-chart circle { fill: white; stroke: var(--series-color); stroke-width: 2; }
.efficiency-grid-line { stroke: #e7ece8; stroke-width: 1; }
.efficiency-grid-line.target { stroke: #91a99a; stroke-width: 1.5; stroke-dasharray: 6 5; }
.efficiency-source { width: max-content; margin-top: .3rem; padding: .18rem .38rem; border-radius: 99px; font-size: .58rem; font-weight: 750; white-space: nowrap; }
.efficiency-source.historical { background: #e7edf5; color: #365a7a; }
.efficiency-source.adjusted { background: #fff0d9; color: #90611f; }
.efficiency-history-table table { min-width: 1080px; }
.efficiency-report-actions { display: flex; flex-wrap: wrap; justify-content: end; gap: .65rem; }
.efficiency-comparison-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8rem; }
.efficiency-comparison-grid article { display: grid; align-content: center; min-height: 126px; padding: 1rem 1.1rem; border: 1px solid var(--line); border-top: 3px solid #8ab99a; border-radius: 9px; background: white; box-shadow: 0 6px 24px rgba(15,52,49,.035); }
.efficiency-comparison-grid article.featured { border-top-color: var(--forest); background: #f0f6f2; }
.efficiency-comparison-grid span { color: var(--muted); font-size: .68rem; font-weight: 750; text-transform: uppercase; letter-spacing: .06em; }
.efficiency-comparison-grid strong { margin-top: .2rem; color: var(--forest); font-family: "Montserrat MC", sans-serif; font-size: 2rem; }
.efficiency-comparison-grid small { margin-top: .2rem; color: var(--muted); font-size: .7rem; }
.efficiency-bars-card { margin-top: 1rem; padding: 1.1rem 1.25rem 1.25rem; border: 1px solid var(--line); border-radius: 9px; background: white; box-shadow: 0 6px 24px rgba(15,52,49,.035); }
.efficiency-bars-heading { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 1rem; }
.efficiency-bars-heading h3 { margin: .25rem 0 0; font-family: "Montserrat MC", sans-serif; font-size: 1.15rem; }
.efficiency-bars-heading > span { color: var(--muted); font-size: .7rem; }
.efficiency-bars { display: grid; gap: .75rem; }
.efficiency-bar-row { display: grid; grid-template-columns: minmax(130px, 190px) minmax(220px, 1fr) 60px; align-items: center; gap: .8rem; font-size: .76rem; }
.efficiency-bar-row > span { font-weight: 700; }
.efficiency-bar-row > strong { text-align: right; color: var(--forest); }
.efficiency-bar-track { position: relative; height: 10px; overflow: hidden; border-radius: 99px; background: #e8ede9; }
.efficiency-bar-track i { display: block; height: 100%; border-radius: inherit; background: var(--bar-color); }
.efficiency-bar-track b { position: absolute; top: -3px; bottom: -3px; left: 66.666%; width: 2px; background: var(--forest); }
.efficiency-chart polyline.cumulative { stroke-width: 3; }
.efficiency-chart polyline.cumulative { stroke-dasharray: 8 5; opacity: .85; }
.efficiency-chart circle.cumulative { r: 2.5; }
.efficiency-chart-legend .cumulative i { height: 4px; background: repeating-linear-gradient(90deg, var(--forest) 0 7px, transparent 7px 11px) !important; }
.efficiency-chart [hidden] { display: none; }
.efficiency-checkout-modal { width: min(930px, 96vw); grid-template-rows: auto minmax(0,1fr) auto; }
.checkout-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.1rem; }
.checkout-form-grid label { display: grid; gap: .4rem; color: var(--forest); font-size: .72rem; font-weight: 700; }
.checkout-form-grid select, .checkout-form-grid input { min-height: 44px; padding: .65rem .75rem; border: 1px solid var(--line); border-radius: 7px; background: white; color: var(--ink); font: inherit; }
.checkout-explanation, .checkout-success { margin-top: 1rem; padding: 1rem 1.1rem; border: 1px solid #cfe0d4; border-radius: 8px; background: white; }
.checkout-explanation p, .checkout-success p { margin: .3rem 0 0; color: var(--muted); }
.checkout-success .efficiency-report-actions { justify-content: start; margin-top: 1rem; }
.checkout-preview-table { margin-top: 1rem; }
.checkout-preview-table table { min-width: 720px; }
.checkout-preview-table th:first-child, .checkout-preview-table td:first-child { width: 42px; text-align: center; }
.checkout-message { display: block; min-height: 1.3em; margin-top: .8rem; color: var(--forest-2); font-weight: 700; }
.efficiency-heatmap-card { margin-top: 1.2rem; padding: 0 1.2rem 1.2rem; border: 1px solid var(--line); border-radius: 9px; background: white; box-shadow: 0 6px 24px rgba(15,52,49,.035); overflow-x: auto; }
.efficiency-heatmap-card .section-heading { margin-top: 1.2rem; }
.efficiency-heatmap-legend { display: flex; flex-wrap: wrap; gap: .4rem; color: var(--muted); font-size: .64rem; }
.efficiency-heatmap-legend span { padding: .25rem .4rem; border-radius: 99px; }
.efficiency-heatmap { display: grid; grid-template-columns: minmax(125px, 1.3fr) repeat(var(--week-count), minmax(54px, 1fr)); gap: .35rem; min-width: 860px; align-items: center; }
.efficiency-heatmap > span, .efficiency-heatmap > strong { min-height: 36px; display: grid; place-items: center; padding: .35rem; border-radius: 6px; font-size: .68rem; }
.efficiency-heatmap > strong { justify-items: start; color: var(--forest); }
.efficiency-heatmap .week-head { min-height: auto; color: var(--muted); background: transparent; font-weight: 700; }
.efficiency-heatmap .good, .efficiency-heatmap-legend .good { background: #ddf1e4; color: #286845; }
.efficiency-heatmap .watch, .efficiency-heatmap-legend .watch { background: #fff0d9; color: #8b5e1d; }
.efficiency-heatmap .low, .efficiency-heatmap-legend .low { background: #f8e1df; color: #9d4037; }
.efficiency-heatmap .empty { background: #eef1ee; color: var(--muted); }
.efficiency-details { margin-top: 1.2rem; border: 1px solid var(--line); border-radius: 9px; background: white; overflow: hidden; }
.efficiency-details summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 1.2rem; cursor: pointer; list-style: none; }
.efficiency-details summary::-webkit-details-marker { display: none; }
.efficiency-details summary span { display: grid; gap: .15rem; }
.efficiency-details summary small { color: var(--muted); font-size: .68rem; }
.efficiency-details summary b { color: var(--brand); font-size: .72rem; }
.efficiency-details[open] summary b::before { content: "Masquer · "; }
.efficiency-details .table-card { margin: 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; box-shadow: none; }
.hero-row { display: flex; justify-content: space-between; align-items: end; gap: 2rem; padding-bottom: 1.5rem; }
.hero-actions { display: flex; align-items: center; justify-content: end; gap: 1rem; }
.hero-row h2, .section-heading h2 { margin: .35rem 0; font-family: "Montserrat MC", sans-serif; font-size: clamp(1.7rem, 3vw, 2.45rem); font-weight: 700; letter-spacing: -.035em; }
.hero-row p.muted { max-width: 650px; }
.hero-kpi { min-width: 210px; display: grid; justify-items: end; }
.hero-kpi span { color: var(--muted); font-size: .8rem; }
.hero-kpi strong { font-family: "Montserrat MC", sans-serif; font-size: 2.8rem; font-weight: 700; color: var(--forest); }
.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.kpi-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kpi-grid article { padding: 1.3rem; background: var(--card); border: 1px solid var(--line); border-top: 3px solid var(--brand); border-radius: 8px; box-shadow: 0 6px 24px rgba(15,52,49,.045); display: grid; gap: .25rem; }
.kpi-grid article span { color: var(--muted); font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.kpi-grid article strong { font-family: "Montserrat MC", sans-serif; font-size: 1.85rem; font-weight: 700; }
.kpi-grid article small { color: var(--muted); }
.section-heading { margin: 2.5rem 0 1rem; display: flex; justify-content: space-between; align-items: end; gap: 1rem; }
.section-heading.compact { margin-top: 2rem; }
.legend { color: var(--muted); font-size: .76rem; }
.legend i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); margin-right: .35rem; }
.workshop-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.workshop-card { padding: 1.25rem; border-radius: 8px; border: 1px solid var(--line); background: white; box-shadow: 0 6px 24px rgba(15,52,49,.04); }
.workshop-card.danger { border-color: #e5b0aa; }
.workshop-card.warning { border-color: #e8cca1; }
.card-heading { display: flex; justify-content: space-between; gap: .5rem; }
.card-heading h3 { margin: .2rem 0 .8rem; font-family: "Montserrat MC", sans-serif; font-size: 1.8rem; font-weight: 700; }
.pill { height: max-content; padding: .3rem .5rem; background: #edf1ed; border-radius: 99px; color: var(--muted); font-size: .66rem; font-weight: 700; }
.progress { height: 6px; background: #e8ece8; border-radius: 99px; overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--forest-2); border-radius: inherit; }
.warning .progress span { background: var(--gold); }
.danger .progress span { background: var(--danger); }
.workshop-card dl { margin: 1rem 0 0; display: grid; gap: .55rem; }
.workshop-card dl div { display: flex; justify-content: space-between; gap: 1rem; }
.workshop-card dt { color: var(--muted); font-size: .75rem; }
.workshop-card dd { margin: 0; font-size: .78rem; font-weight: 750; }
.table-card { margin-top: 1rem; border: 1px solid var(--line); background: white; border-radius: 8px; overflow: auto; box-shadow: 0 6px 24px rgba(15,52,49,.04); }
.row-actions { display: flex; flex-wrap: wrap; gap: .45rem; }
.row-actions button { min-height: 36px; padding: .45rem .65rem; font-size: .72rem; white-space: nowrap; }
.charge-detail-row > td { padding: 0; background: #f4f8f4; }
.charge-detail-panel { padding: 1.25rem 1.4rem 1.5rem; border-left: 4px solid var(--brand); }
.charge-detail-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.charge-detail-heading h3 { margin: .25rem 0 0; font-family: "Montserrat MC", sans-serif; font-size: 1.25rem; }
.charge-detail-totals { display: flex; flex-wrap: wrap; justify-content: end; gap: .55rem; }
.charge-detail-totals span { display: grid; gap: .1rem; min-width: 105px; padding: .55rem .75rem; border: 1px solid #dbe7dc; border-radius: 7px; background: white; color: var(--muted); font-size: .68rem; }
.charge-detail-totals strong { color: var(--forest); font-size: .9rem; }
.charge-product { margin-top: .4rem; border: 1px solid #dbe5dc; border-radius: 6px; background: white; overflow: hidden; }
.charge-product summary { display: grid; grid-template-columns: minmax(260px, 1fr) minmax(115px, .3fr) minmax(130px, .35fr); gap: .65rem; align-items: center; min-height: 42px; padding: .45rem .75rem; cursor: pointer; list-style-position: inside; }
.charge-product summary::marker { color: var(--brand); font-size: .85rem; }
.charge-product summary span:first-child { display: inline-flex; align-items: baseline; gap: .65rem; }
.charge-product summary span:first-child small { display: none; }
.charge-product summary small { color: var(--muted); font-size: .68rem; }
.charge-product summary b { color: var(--forest); }
.charge-order-table { border-top: 1px solid #e5ece6; overflow: auto; }
.charge-order-table table { min-width: 680px; }
.charge-order-table th, .charge-order-table td { padding-top: .65rem; padding-bottom: .65rem; }
.charge-detail-loading, .charge-detail-error, .empty-charge-detail { padding: 1.2rem; color: var(--muted); text-align: center; }
.charge-detail-error { color: var(--danger); }
.wizard-overlay { position: fixed; z-index: 1000; inset: 0; display: grid; place-items: center; padding: 2rem; background: rgba(5,35,31,.72); backdrop-filter: blur(4px); }
.wizard-modal { width: min(1120px, 96vw); max-height: 92vh; display: grid; grid-template-rows: auto auto minmax(0,1fr) auto; overflow: hidden; border-radius: 12px; background: #f7faf7; box-shadow: 0 30px 90px rgba(0,0,0,.35); }
.wizard-modal > header { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.4rem; background: var(--forest); color: white; }
.wizard-modal > header div { display: grid; gap: .15rem; }
.wizard-modal > header span { color: #83d6a2; font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .09em; }
.wizard-modal > header strong { font-family: "Montserrat MC", sans-serif; font-size: 1.05rem; }
.wizard-close { width: 38px; height: 38px; border: 0; border-radius: 50%; background: rgba(255,255,255,.12); color: white; font-size: 1.5rem; }
.wizard-steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 0; padding: .9rem 1.4rem; border-bottom: 1px solid var(--line); background: white; }
.wizard-steps span { display: flex; align-items: center; gap: .45rem; color: var(--muted); font-size: .72rem; font-weight: 700; }
.wizard-steps b { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 50%; background: #e4eae5; color: var(--muted); }
.wizard-steps .active { color: var(--forest); }
.wizard-steps .active b, .wizard-steps .done b { background: var(--brand); color: white; }
.wizard-modal > main { overflow: auto; padding: 1.35rem 1.5rem; }
.wizard-modal button:disabled, .wizard-modal select:disabled, .wizard-modal input:disabled { cursor: wait; opacity: .58; }
.wizard-busy-banner { position: sticky; z-index: 3; top: -.1rem; display: flex; align-items: center; gap: .8rem; margin: 0 0 1rem; padding: .8rem 1rem; border: 1px solid #a7d4b6; border-radius: 8px; background: #e8f6ed; color: var(--forest); box-shadow: 0 5px 18px rgba(15,52,49,.1); }
.wizard-busy-banner div { display: grid; gap: .12rem; }
.wizard-busy-banner span { color: var(--muted); font-size: .7rem; }
.button-spinner { display: inline-block; width: 14px; height: 14px; vertical-align: -2px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .65s linear infinite; }
.wizard-heading h2 { margin: .3rem 0 .45rem; font-family: "Montserrat MC", sans-serif; font-size: 1.55rem; }
.wizard-heading p:last-child { max-width: 800px; margin: 0; color: var(--muted); }
.wizard-toolbar { display: flex; gap: .6rem; margin-top: 1rem; }
.wizard-table table { min-width: 620px; }
.wizard-table select { min-width: 290px; }
.wizard-table input { width: 120px; }
.wizard-modal > footer { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 1.4rem; border-top: 1px solid var(--line); background: white; }
.wizard-modal > footer div { display: flex; gap: .6rem; }
#volet-wizard-message { display: block; min-height: 1.3em; margin-top: .8rem; color: var(--forest-2); font-weight: 700; }
.wizard-order-list { display: grid; gap: .55rem; margin-top: 1rem; }
.wizard-order { display: grid; grid-template-columns: minmax(250px,1fr) auto minmax(300px,auto); align-items: center; gap: 1rem; padding: .8rem 1rem; border: 1px solid var(--line); border-left: 4px solid #aebbb3; border-radius: 7px; background: white; }
.wizard-order.ceruse { border-left-color: #b78a46; background: #fffbf3; }
.wizard-order > div:first-child { display: grid; gap: .15rem; }
.wizard-order span, .wizard-order small { color: var(--muted); font-size: .7rem; }
.wizard-order-flags { display: flex; flex-wrap: wrap; gap: .35rem; }
.warning-pill, .ceruse-pill { padding: .3rem .48rem; border-radius: 99px; font-size: .62rem !important; font-weight: 800; }
.warning-pill { background: #f7e4c4; color: #845919 !important; }
.ceruse-pill { background: #e9dfce; color: #6d522b !important; }
.wizard-order-action { display: flex; gap: .45rem; }
.wizard-order-action select { min-width: 185px; }
.wizard-order-action button { white-space: nowrap; }
.wizard-empty { margin-top: 1rem; padding: 1.2rem; border: 1px dashed #cfd9d1; border-radius: 8px; color: var(--muted); text-align: center; }
.panel-input-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; margin-top: 1.2rem; }
.panel-input-grid label { display: grid; gap: .5rem; padding: 1.2rem; border: 1px solid var(--line); border-top: 4px solid var(--brand); border-radius: 8px; background: white; }
.panel-input-grid label > span { font-family: "Montserrat MC", sans-serif; font-weight: 800; }
.panel-input-grid input { max-width: 180px; min-height: 44px; font-size: 1rem; }
.panel-input-grid small { color: var(--muted); }
.wizard-final-metrics { display: grid; grid-template-columns: repeat(4,1fr); gap: .75rem; margin-top: 1.1rem; }
.wizard-final-metrics article { display: grid; gap: .3rem; padding: 1rem; border: 1px solid var(--line); border-radius: 8px; background: white; }
.wizard-final-metrics span { color: var(--muted); font-size: .7rem; text-transform: uppercase; }
.wizard-final-metrics strong { color: var(--forest); font-family: "Montserrat MC", sans-serif; font-size: 1.25rem; }
.wizard-final-products table { min-width: 620px; }
table { width: 100%; border-collapse: collapse; min-width: 760px; }
th, td { padding: .9rem 1rem; text-align: left; border-bottom: 1px solid #edf0ed; font-size: .82rem; }
th { background: #f8faf7; color: var(--muted); font-size: .69rem; text-transform: uppercase; letter-spacing: .06em; }
td small { display: block; margin-top: .2rem; color: var(--muted); }
tr:last-child td { border-bottom: 0; }
.group-row td { padding: .65rem 1rem; background: #edf2ed; color: var(--forest); border-top: 1px solid #dce5dd; }
.group-row td strong { font-family: "Montserrat MC", sans-serif; font-size: .82rem; }
.group-row td span { margin-left: .65rem; color: var(--muted); font-size: .72rem; font-weight: 600; }
.ratio-badge { display: inline-block; padding: .3rem .52rem; border-radius: 99px; background: #eef1ee; color: var(--muted); font-size: .72rem; font-weight: 800; }
.ratio-badge.success { background: #e2f2e7; color: #2e714b; }
.ratio-badge.warning { background: #fff0d9; color: #90611f; }
.ratio-badge.danger { background: #f8e1df; color: #a23f35; }
.positive { color: #2c7450; font-weight: 700; }
.negative { color: var(--danger); font-weight: 700; }
.callout { margin-top: 1rem; padding: 1.1rem 1.25rem; display: flex; justify-content: space-between; gap: 1rem; align-items: center; border-radius: 13px; background: #fff7ea; border: 1px solid #eed5ad; }
.callout p { margin: .25rem 0 0; color: #755d3b; font-size: .82rem; }
.callout span { white-space: nowrap; padding: .4rem .65rem; border-radius: 99px; background: #f4d8a9; color: #765016; font-size: .7rem; font-weight: 800; }
.callout.ready { background: #edf7f0; border-color: #bfdfc9; }
.callout.ready p { color: #456b51; }
.callout.ready span { background: #d2ead9; color: #2e6b44; }
.decision-table table { min-width: 1380px; }
.decision-table tr.decision-validated td { background: #edf7f0; border-bottom-color: #d6eadc; }
.decision-table tr.decision-validated td:first-child { box-shadow: inset 4px 0 0 #3a9b61; }
.anomaly-status { display: inline-block; padding: .3rem .52rem; border-radius: 99px; font-size: .69rem; font-weight: 800; white-space: nowrap; }
.anomaly-status.clear { background: #e2f2e7; color: #2e714b; }
.anomaly-status.blocked { background: #f8e1df; color: #a23f35; }
.decision-anomalies summary { cursor: pointer; list-style-position: inside; }
.decision-anomalies summary::marker { color: #a23f35; }
.decision-anomalies ul { margin: .55rem 0 0; padding-left: 1.1rem; color: var(--muted); font-size: .72rem; white-space: nowrap; }
.decision-anomalies li + li { margin-top: .25rem; }
.period-contribution { display: block; white-space: nowrap; color: var(--muted); font-size: .75rem; }
.period-contribution + .period-contribution { margin-top: .2rem; }
.employee-detail-link { border: 0; padding: 0; background: transparent; color: var(--forest); font-weight: 750; text-decoration: underline; text-decoration-color: #a9c5b4; text-underline-offset: 3px; }
.show-balance-detail { border: 1px solid #bdd2c3; border-radius: 6px; padding: .4rem .6rem; background: #edf7f0; color: #2e714b; font-size: .72rem; font-weight: 700; white-space: nowrap; }
.balance-detail-row td { padding: 1rem 1.4rem 1.2rem; background: #f7faf7; box-shadow: inset 4px 0 0 #8bbd9b; }
.balance-period-list { display: flex; flex-wrap: wrap; gap: .45rem 1.2rem; margin-top: .55rem; }
.hours-input { width: 88px; min-height: 38px; padding: .45rem .55rem; }
.status-select { min-height: 38px; padding-top: .45rem; padding-bottom: .45rem; }
.save-decision-button { border: 0; border-radius: 8px; padding: .55rem .75rem; background: var(--forest); color: white; font-size: .75rem; font-weight: 750; }
.save-decision-button:disabled { opacity: .55; cursor: wait; }
.row-message { max-width: 180px; line-height: 1.25; }
.success-message { color: #2c7450; }
.error-message { color: var(--danger); }
.anomaly-section { margin-top: 1.5rem; }
.anomaly-grid { display: grid; gap: .75rem; }
.anomaly-card { display: grid; grid-template-columns: minmax(210px, .8fr) minmax(460px, 1.5fr); gap: 1rem; align-items: center; padding: 1rem 1.1rem; background: #fff; border: 1px solid #eed5ad; border-left: 4px solid var(--gold); border-radius: 9px; }
.anomaly-card > div:first-child { display: grid; gap: .25rem; }
.anomaly-card > div:first-child span { color: var(--muted); font-size: .78rem; }
.anomaly-actions { display: flex; align-items: end; justify-content: end; gap: .65rem; }
.leave-comment { min-width: 210px; }
.anomaly-actions select { min-width: 190px; }
.recovery-hours { display: grid; gap: .25rem; color: var(--muted); font-size: .68rem; font-weight: 700; }
.recovery-hours input { width: 105px; }
.create-leave-button { min-height: 40px; border: 0; border-radius: 8px; padding: .55rem .8rem; background: var(--forest); color: white; font-weight: 750; }
.create-leave-button:disabled { opacity: .55; cursor: wait; }
.anomaly-message { grid-column: 2; min-height: 1em; }
.planned-leave-card { display: grid; grid-template-columns: minmax(240px, .7fr) minmax(620px, 1.7fr); gap: 2rem; padding: 1.4rem; background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--brand); border-radius: 9px; box-shadow: 0 6px 24px rgba(15,52,49,.04); }
.planned-leave-card h2 { margin: .35rem 0; font-family: "Montserrat MC", sans-serif; font-size: 1.45rem; }
.planned-leave-form { display: grid; grid-template-columns: minmax(180px,1.4fr) repeat(2,minmax(130px,.8fr)) minmax(180px,1.2fr) auto; gap: .75rem; align-items: end; }
.planned-leave-form label { gap: .3rem; }
.planned-leave-comment { grid-column: 1 / -1; }
.planned-leave-message { grid-column: 1 / -1; min-height: 1em; }
.employee-alert-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .65rem; margin-top: 1rem; }
.employee-alert-grid article { display: flex; align-items: center; gap: .7rem; padding: .8rem 1rem; background: #fff7ea; border: 1px solid #eed5ad; border-radius: 8px; }
.employee-alert-grid article div { display: grid; }
.employee-alert-grid small { color: #755d3b; }
.alert-dot { width: 9px; height: 9px; flex: 0 0 auto; border-radius: 50%; background: #d98b28; box-shadow: 0 0 0 5px rgba(217,139,40,.12); }
.loading-state, .error-state, .empty-state { min-height: 360px; display: grid; place-content: center; justify-items: center; color: var(--muted); }
.empty-state { padding: 2rem; border: 1px dashed #cbd5ce; border-radius: 15px; text-align: center; }
.empty-state p { margin: .4rem 0 0; }
.loading-state span { width: 34px; height: 34px; border: 3px solid #dbe3dd; border-top-color: var(--forest-2); border-radius: 50%; animation: spin .8s linear infinite; }
.error-state { padding: 2rem; border: 1px solid #e6c0bc; background: #fff; border-radius: 15px; color: var(--danger); }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 1100px) {
  .workshop-grid, .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .capacity-horizon { grid-template-columns: repeat(5, minmax(220px, 1fr)); }
  .workshop-chart-grid { grid-template-columns: 1fr; }
  .capacity-editor-heading { align-items: stretch; flex-direction: column; }
  .home-shortcuts, .home-efficiency-grid, .annual-efficiency-grid, .efficiency-live-grid { grid-template-columns: repeat(2, 1fr); }
  .efficiency-comparison-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .login-view { grid-template-columns: 1fr; }
  .login-brand { min-height: 30vh; padding: 1.6rem; }
  .login-brand-logo { width: min(210px, 62%); }
  .login-brand h1 { margin-bottom: .7rem; font-size: clamp(2rem, 10vw, 2.8rem); }
  .login-brand-copy > p:not(.eyebrow) { margin-bottom: 0; font-size: .9rem; line-height: 1.5; }
  .login-metrics { display: none; }
  .login-panel { padding: 1rem; }
  .login-card { padding: 1.4rem; }
  .app-view { grid-template-columns: 1fr; }
  .charge-detail-heading { align-items: stretch; flex-direction: column; }
  .charge-detail-totals { justify-content: start; }
  .charge-product summary { grid-template-columns: minmax(150px, 1fr) auto auto; gap: .45rem; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .wizard-overlay { padding: 0; }
  .wizard-modal { width: 100vw; max-height: 100vh; min-height: 100vh; border-radius: 0; }
  .wizard-steps span { font-size: 0; }
  .wizard-steps b { font-size: .72rem; }
  .wizard-order { grid-template-columns: 1fr; }
  .wizard-order-action, .wizard-modal > footer, .wizard-modal > footer div { align-items: stretch; flex-direction: column; }
  .panel-input-grid, .wizard-final-metrics { grid-template-columns: 1fr; }
  .sidebar { position: fixed; inset: 0 auto 0 0; z-index: 1001; width: min(86vw, 320px); height: 100dvh; padding: 1rem; overflow-y: auto; transform: translateX(-102%); transition: transform .22s ease; box-shadow: 18px 0 50px rgba(0,0,0,.28); }
  .app-view.mobile-nav-open .sidebar { transform: translateX(0); }
  .brand-lockup { min-height: 72px; padding: .25rem .55rem 1.2rem; }
  .brand-lockup img { width: 170px; }
  nav { display: grid; overflow: visible; }
  .nav-item { min-width: 0; min-height: 48px; }
  .sidebar-footer { display: flex; }
  .sidebar-scrim { position: fixed; inset: 0; z-index: 1000; display: block; width: 100%; height: 100%; padding: 0; border: 0; background: rgba(4,24,21,.58); backdrop-filter: blur(2px); }
  .mobile-menu-toggle { flex: 0 0 auto; display: grid; place-content: center; gap: 4px; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 7px; background: white; }
  .mobile-menu-toggle span { display: block; width: 19px; height: 2px; border-radius: 9px; background: var(--forest); transition: transform .2s ease, opacity .2s ease; }
  .mobile-menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .mobile-menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .mobile-menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .topbar { position: sticky; top: 0; z-index: 30; min-height: 72px; align-items: center; padding: .75rem 1rem; }
  .topbar > div:first-of-type { min-width: 0; flex: 1; }
  .topbar h1 { overflow: hidden; font-size: 1.12rem; text-overflow: ellipsis; white-space: nowrap; }
  .topbar .eyebrow { font-size: .57rem; }
  .topbar-actions { flex: 0 0 auto; }
  #logout-button { min-height: 40px; padding: .55rem .65rem; font-size: .68rem; }
  .user-chip { display: none; }
  .filter-bar { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: .65rem; padding: .75rem 1rem; }
  .filter-group { grid-column: 1 / -1; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; }
  #period-filter { grid-template-columns: auto minmax(0, 1fr); }
  #period-filter label:nth-of-type(2) { grid-column: 1; }
  .filter-group select, .filter-group input { min-width: 0; width: 100%; }
  #refresh-button { grid-column: 1; width: 100%; }
  .source-badge { grid-column: 2; margin-left: 0; white-space: nowrap; }
  .content { padding: 1rem; }
  .section-heading { margin-top: 1.8rem; align-items: start; flex-direction: column; }
  .hero-row { align-items: start; flex-direction: column; }
  .home-welcome { grid-template-columns: 1fr; }
  .home-shortcuts, .home-efficiency-grid, .annual-efficiency-grid, .efficiency-live-grid { grid-template-columns: 1fr; }
  .efficiency-live-heading { flex-direction: column; }
  .efficiency-live-actions { justify-content: start; }
  .checkout-form-grid { grid-template-columns: 1fr; }
  .efficiency-comparison-grid { grid-template-columns: 1fr; }
  .efficiency-report-actions { justify-content: start; }
  .efficiency-report-actions button { width: 100%; }
  .efficiency-bar-row { grid-template-columns: minmax(110px, 1fr) 58px; }
  .efficiency-bar-track { grid-column: 1 / -1; grid-row: 2; }
  .hero-kpi { justify-items: start; }
  .kpi-grid, .kpi-grid.three, .workshop-grid { grid-template-columns: 1fr; }
  .anomaly-card { grid-template-columns: 1fr; }
  .anomaly-actions { align-items: stretch; flex-direction: column; }
  .anomaly-message { grid-column: 1; }
  .planned-leave-card, .planned-leave-form { grid-template-columns: 1fr; }
  .planned-leave-message { grid-column: 1; }
  .capacity-editor-controls, .capacity-editor-footer, .capacity-editor-footer > div { align-items: stretch; flex-direction: column; }
  .workshop-chart { overflow-x: auto; grid-template-columns: repeat(5, minmax(86px, 1fr)); }
  .table-card { margin-inline: -1rem; border-right: 0; border-left: 0; border-radius: 0; }
  .table-card table { font-size: .75rem; }
  th, td { padding: .7rem .65rem; }
  .callout { align-items: stretch; flex-direction: column; }
}
