:root {
  --bg: #f3f5f7;
  --card: #ffffff;
  --ink: #18212b;
  --muted: #65717d;
  --line: #dfe4e8;
  --primary: #135f45;
  --primary-hover: #0c4b35;
  --danger: #a52b2b;
  --warning: #9a6410;
  --shadow: 0 8px 24px rgba(24,33,43,.07);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: var(--bg); }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
.topbar { min-height: 64px; display: flex; align-items: center; gap: 30px; padding: 0 28px; background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.brand { font-size: 1.12rem; font-weight: 800; color: var(--ink); letter-spacing: -.02em; }
.topbar nav { display: flex; gap: 22px; flex: 1; }
.topbar nav a { color: #394652; font-weight: 600; font-size: .94rem; }
.user { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: .9rem; }
.user form { margin: 0; }
.link-button { border: 0; background: none; padding: 0; color: var(--primary); cursor: pointer; }
.container { max-width: 1240px; margin: 0 auto; padding: 32px 24px 70px; }
.page-heading, .section-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.page-heading { margin-bottom: 22px; }
h1, h2 { margin-top: 0; letter-spacing: -.025em; }
h1 { margin-bottom: 5px; font-size: 2rem; }
h2 { font-size: 1.2rem; margin-bottom: 18px; }
p { line-height: 1.55; }
.muted { color: var(--muted); }
.card, .stat-card, .login-card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
.card { padding: 22px; margin-bottom: 22px; }
.login-card { width: min(440px, 100%); margin: 8vh auto; padding: 30px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; margin-bottom: 22px; }
.stat-card { padding: 19px; }
.stat-card span { display: block; color: var(--muted); font-size: .85rem; margin-bottom: 8px; }
.stat-card strong { font-size: 1.45rem; }
.two-column { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(300px,.75fr); gap: 22px; }
.device-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(320px,1fr)); gap: 22px; }
.stack { display: grid; gap: 15px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
label { display: grid; gap: 6px; color: #384550; font-size: .9rem; font-weight: 650; }
input, select, textarea, button { font: inherit; }
input, select, textarea { width: 100%; border: 1px solid #cbd3d9; border-radius: 7px; padding: 10px 11px; background: #fff; color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(19,95,69,.12); border-color: var(--primary); }
button, .button { display: inline-block; border: 1px solid #c5cdd3; border-radius: 7px; padding: 10px 15px; background: #fff; color: var(--ink); font-weight: 700; cursor: pointer; }
button:hover, .button:hover { background: #f7f8f9; text-decoration: none; }
button.primary, .button.primary { background: var(--primary); border-color: var(--primary); color: #fff; }
button.primary:hover, .button.primary:hover { background: var(--primary-hover); }
button.danger { color: var(--danger); border-color: #dfbcbc; }
button:disabled { opacity: .5; cursor: not-allowed; }
.button-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 18px; }
.button-row form { margin: 0; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { color: var(--muted); font-size: .79rem; text-transform: uppercase; letter-spacing: .045em; }
tbody tr:hover { background: #fafbfb; }
.details { display: grid; grid-template-columns: minmax(120px,.7fr) minmax(0,1.3fr); margin: 0; gap: 0; }
.details dt, .details dd { margin: 0; padding: 10px 0; border-bottom: 1px solid var(--line); }
.details dt { color: var(--muted); }
.details dd { overflow-wrap: anywhere; }
.status { display: inline-flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 999px; font-size: .82rem; font-weight: 750; background: #fff; border: 1px solid var(--line); white-space: nowrap; }
.status span { width: 9px; height: 9px; border-radius: 50%; background: #7b8790; }
.status-ok span { background: #168554; box-shadow: 0 0 0 4px rgba(22,133,84,.12); }
.status-warning span { background: #d3901b; box-shadow: 0 0 0 4px rgba(211,144,27,.12); }
.status-bad span { background: #bd3d3d; box-shadow: 0 0 0 4px rgba(189,61,61,.12); }
.pill { display: inline-block; border-radius: 999px; padding: 4px 9px; font-size: .76rem; font-weight: 800; text-transform: uppercase; }
.pill-pass { color: #087043; background: #dff5e9; }
.pill-fail { color: #9c2525; background: #f9e1e1; }
.pill-unrated { color: #5b6670; background: #e9edf0; }
.notice, .flash { border-radius: 8px; padding: 12px 14px; margin-bottom: 18px; }
.notice { background: #fff5d9; border: 1px solid #edd99d; color: #674f10; }
.flash-success { background: #e1f5e9; border: 1px solid #a9dfbd; color: #0b653c; }
.flash-error { background: #fae4e4; border: 1px solid #e4b2b2; color: #8e2424; }
.flash-warning { background: #fff1d6; border: 1px solid #e6cd98; color: #73520c; }
.chart { min-height: 360px; width: 100%; border: 1px solid var(--line); border-radius: 8px; background: #fff; overflow: hidden; }
.chart svg { width: 100%; height: 360px; display: block; }
.chart .axis { stroke: #95a0a8; stroke-width: 1; }
.chart .grid { stroke: #e7eaed; stroke-width: 1; }
.chart .curve { fill: none; stroke: #135f45; stroke-width: 2; vector-effect: non-scaling-stroke; }
.chart text { fill: #65717d; font-size: 11px; }
@media (max-width: 880px) {
  .topbar { align-items: flex-start; padding: 16px 18px; flex-wrap: wrap; gap: 12px; }
  .topbar nav { order: 3; width: 100%; overflow-x: auto; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .two-column { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .container { padding: 22px 14px 50px; }
  .stats-grid, .form-grid { grid-template-columns: 1fr; }
  .page-heading { align-items: flex-start; flex-direction: column; }
  h1 { font-size: 1.65rem; }
}

/* Frumetra interface foundation */
:root {
  --navy: #102a36; --navy-2: #183a47; --mint: #2c9b72; --mint-soft: #e7f5ef;
  --bg: #f5f7f8; --card: #fff; --ink: #14242c; --muted: #6b7a82; --line: #e4e9ec;
  --primary: #167153; --primary-hover: #0f5b42; --shadow: 0 8px 28px rgba(22,43,52,.06);
}
body { color: var(--ink); background: var(--bg); }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 248px minmax(0,1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; background: var(--navy); color: #fff; padding: 22px 16px 18px; z-index: 30; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; padding: 0 8px 22px; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: 11px; background: linear-gradient(145deg,#41b88a,#16845f); color: #fff; font-weight: 900; letter-spacing: -.04em; box-shadow: 0 7px 16px rgba(0,0,0,.16); }
.brand-mark.brand-logo { padding: 5px; background: #fff; overflow: hidden; }
.brand-mark.brand-logo img { display: block; width: 100%; height: 100%; object-fit: contain; }
.brand strong,.brand small { display:block; }.brand strong { font-size:1.08rem; letter-spacing:-.02em; }.brand small { margin-top:2px; color:#a9bec6; font-size:.68rem; font-weight:500; }
.workspace { margin: 4px 7px 20px; padding: 12px; border: 1px solid rgba(255,255,255,.1); border-radius: 10px; background: rgba(255,255,255,.05); }
.workspace small,.workspace strong { display:block; }.workspace small { color:#8eabb5; font-size:.62rem; letter-spacing:.1em; margin-bottom:5px; }.workspace strong { font-size:.83rem; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.sidebar nav { display:grid; gap:4px; overflow-y:auto; padding-right:3px; }.nav-item { display:flex; align-items:center; gap:11px; min-height:42px; padding:9px 11px; border-radius:8px; color:#bdd0d7; font-size:.88rem; font-weight:650; }
.nav-section-label { display:block; margin:15px 11px 3px; color:#7896a1; font-size:.61rem; font-weight:850; letter-spacing:.105em; text-transform:uppercase; }
.nav-section-label:first-child { margin-top:2px; }
.nav-item:hover { color:#fff; background:rgba(255,255,255,.07); text-decoration:none; }.nav-item.active { color:#fff; background:rgba(44,155,114,.24); box-shadow:inset 3px 0 #4ac092; }
.nav-icon { width:20px; text-align:center; color:#91b3bf; font-size:1.05rem; }.nav-item.active .nav-icon { color:#64d2a7; }
.sidebar-footer { margin-top:auto; }.version { color:#728f99; font-size:.68rem; padding:16px 11px 0; }
.main-shell { min-width:0; }.topbar { height:72px; padding:0 30px; gap:18px; background:rgba(255,255,255,.94); backdrop-filter:blur(12px); }
.breadcrumbs { display:grid; gap:2px; flex:1; }.breadcrumbs span { color:var(--muted); font-size:.72rem; }.breadcrumbs strong { font-size:.96rem; }
.menu-toggle { display:none; padding:7px 10px; }.user { gap:10px; }.avatar { width:34px; height:34px; display:grid; place-items:center; border-radius:50%; background:var(--mint-soft); color:var(--primary); font-weight:850; }
.user-copy { display:grid; }.user-copy strong { color:var(--ink); font-size:.82rem; }.user-copy small { color:var(--muted); font-size:.68rem; }.link-button { margin-left:8px; font-size:.78rem; }
.container { max-width: 1480px; padding: 32px clamp(20px,3.2vw,48px) 70px; }
.page-heading { margin-bottom:25px; }.page-heading h1 { font-size:1.75rem; }.page-heading .muted { margin:3px 0 0; }.card,.stat-card { border-color:var(--line); border-radius:14px; box-shadow:var(--shadow); }
.stat-card { position:relative; overflow:hidden; padding:21px; }.stat-card:before { content:""; position:absolute; left:0; top:0; bottom:0; width:3px; background:#51b38e; }.stat-card strong { font-size:1.62rem; letter-spacing:-.035em; }
.card { padding:24px; }.card h2 { color:#203740; }.primary { box-shadow:0 5px 12px rgba(22,113,83,.16); }
table { font-size:.88rem; } th { background:#f8fafb; } th:first-child { border-radius:8px 0 0 8px; } th:last-child { border-radius:0 8px 8px 0; }
.status { box-shadow:0 2px 8px rgba(20,36,44,.05); }.pill { letter-spacing:.025em; }.notice { border-radius:11px; }
.login-layout { min-height:100vh; display:grid; grid-template-columns:minmax(320px,.82fr) minmax(480px,1.18fr); background:#fff; }
.login-brand { padding: clamp(40px,8vw,110px); display:flex; flex-direction:column; justify-content:center; align-items:flex-start; color:#fff; background:radial-gradient(circle at 15% 10%,#245a67 0,transparent 36%),linear-gradient(145deg,#102a36,#0c2029); }
.login-brand .brand-mark { width:54px;height:54px;margin-bottom:25px; }.login-brand strong { font-size:2.25rem; letter-spacing:-.04em; }.login-brand > span:last-child { max-width:390px; margin-top:12px; color:#b8cbd1; line-height:1.6; }
.login-main { display:grid; place-items:center; padding:35px; }.login-card { width:min(440px,100%); margin:0; padding:36px; border:0; box-shadow:none; }.login-card h1 { font-size:1.9rem; }
.empty-state { padding:40px 20px; text-align:center; color:var(--muted); }.metric-note { color:var(--muted); font-size:.78rem; margin-top:5px; }
.filter-card { padding:18px 20px; }
.filter-grid { display:grid; grid-template-columns:repeat(4,minmax(150px,1fr)); gap:13px; align-items:end; }
.filter-actions { display:flex; gap:8px; align-items:center; padding-bottom:1px; }
.trend-chart { min-height:350px; border:1px solid var(--line); border-radius:10px; overflow:hidden; background:linear-gradient(180deg,#fff,#fbfcfc); }
.trend-chart svg { display:block; width:100%; height:350px; }
.trend-chart .grid { stroke:#e7ecee; stroke-width:1; }.trend-chart .axis { stroke:#98a5ab; stroke-width:1; }
.trend-chart .range { fill:rgba(44,155,114,.12); stroke:none; }.trend-chart .line { fill:none; stroke:#167153; stroke-width:3; vector-effect:non-scaling-stroke; }
.trend-chart .dot { fill:#fff; stroke:#167153; stroke-width:2; vector-effect:non-scaling-stroke; }.trend-chart text { fill:#6b7a82; font-size:11px; }
.trend-chart .norm-zone { fill:rgba(214,138,45,.11); stroke:rgba(190,116,28,.35); stroke-width:1; stroke-dasharray:5 4; }
.trend-chart .norm-line { stroke:#c47b22; stroke-width:1.5; stroke-dasharray:6 4; }
.trend-chart .empty-state { padding-top:120px; }
.eyebrow-link { display:inline-block; margin-bottom:8px; color:var(--muted); font-size:.76rem; font-weight:750; }
.batch-header-actions { justify-content:flex-end; margin-top:10px; }
.batch-edit-card summary { display:flex; align-items:center; justify-content:space-between; gap:20px; cursor:pointer; color:var(--primary); }
.batch-edit-card summary span { color:var(--muted); font-size:.78rem; font-weight:500; }
.batch-edit-card form { margin-top:22px; padding-top:20px; border-top:1px solid var(--line); }
.report-type-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; margin-bottom:22px; }
.report-type-grid .card { position:relative; min-height:230px; margin:0; padding-top:48px; }
.report-type-number { position:absolute; top:18px; right:20px; color:#b5c1c6; font-size:.72rem; font-weight:850; letter-spacing:.08em; }
.report-type-grid p { min-height:72px; color:var(--muted); font-size:.85rem; }
.severity { display:inline-block; padding:5px 9px; border-radius:7px; font-size:.72rem; font-weight:800; text-transform:uppercase; white-space:nowrap; }
.severity-bad { color:#922a2a; background:#fae2e2; }.severity-warning { color:#7c580c; background:#fff0cf; }
.severity-ok { color:#087043; background:#dff5e9; }
.quality-split { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; }
.quality-split > div { padding:18px; border:1px solid var(--line); border-radius:10px; background:#f8fafb; }
.quality-split strong,.quality-split span { display:block; }.quality-split strong { font-size:1.65rem; }.quality-split span { color:var(--muted); font-size:.78rem; margin-top:4px; }
.quality-good { border-left:4px solid #168554!important; }.quality-bad { border-left:4px solid #bd3d3d!important; }
.subscription-banner { margin:-10px 0 24px; padding:13px 16px; display:flex; align-items:center; gap:14px; border:1px solid #e5cf8d; border-radius:11px; background:#fff8df; color:#654d0c; }
.subscription-banner span { flex:1; color:#7a682f; font-size:.86rem; }.subscription-banner a { font-weight:750; white-space:nowrap; }
.subscription-blocked { border-color:#e3b2b2; background:#fbe8e8; color:#8c2828; }.subscription-blocked span { color:#8c5050; }
.onboarding-card { display:grid; gap:10px; }.onboarding-progress { padding:2px 2px 15px; }.onboarding-progress > div:first-child,.usage-meter > div:first-child { display:flex; justify-content:space-between; gap:15px; margin-bottom:9px; }
.progress-track { height:8px; overflow:hidden; border-radius:999px; background:#e8edef; }.progress-track > span { display:block; height:100%; border-radius:inherit; background:linear-gradient(90deg,#167153,#42b287); }
.onboarding-step { display:grid; grid-template-columns:34px minmax(0,1fr) auto; align-items:center; gap:13px; padding:16px; border:1px solid var(--line); border-radius:11px; color:var(--ink); background:#fff; }
.onboarding-step:hover { border-color:#a9cdbf; background:#fbfdfc; text-decoration:none; }.onboarding-step.complete { background:#f3faf7; }
.step-check { width:30px; height:30px; display:grid; place-items:center; border-radius:50%; background:#edf1f2; color:#6c7b82; font-weight:900; }.complete .step-check { background:#d8f1e6; color:#087043; }
.onboarding-step strong,.onboarding-step small { display:block; }.onboarding-step small { color:var(--muted); margin-top:4px; line-height:1.4; }.step-action { color:var(--primary); font-size:.8rem; font-weight:800; }
.usage-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }.usage-meter { padding:17px; border:1px solid var(--line); border-radius:11px; background:#f9fbfb; }.usage-meter span { color:var(--muted); font-size:.82rem; }.usage-meter.near-limit .progress-track > span { background:#c7831d; }
table select,table input[type="date"] { min-width:130px; padding:7px 8px; }
.advisor-filter { display:grid; grid-template-columns:minmax(220px,1fr) minmax(220px,1fr) auto; gap:14px; align-items:end; }
.check-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; }
.check-card { display:flex; align-items:center; gap:9px; padding:11px 12px; border:1px solid var(--line); border-radius:9px; background:#f9fbfb; cursor:pointer; }
.check-card input { width:auto; margin:0; accent-color:var(--primary); }
.check-card span,.check-card strong,.check-card small { display:block; }
.check-card small { color:var(--muted); margin-top:3px; line-height:1.35; }
.page-heading.compact { margin-bottom:16px; }
.page-heading.compact h2 { margin:0; }
.mail-custom-settings { padding:18px; border:1px solid var(--line); border-radius:11px; background:#fbfcfc; }
.mail-custom-settings h3 { margin-top:0; }
.mail-test-form { align-items:end; padding-top:16px; border-top:1px solid var(--line); }
.mail-test-form label { flex:1; min-width:240px; }
.wrap-cell { min-width:280px; max-width:520px; white-space:normal; line-height:1.45; }
.access-code { margin:16px 0; padding:16px; border:1px dashed #9fb1b8; border-radius:10px; background:#f5f8f9; font:800 1.35rem ui-monospace,SFMono-Regular,Consolas,monospace; letter-spacing:.12em; text-align:center; }
.branding-preview { display:block; max-width:220px; max-height:90px; object-fit:contain; margin:0 0 18px; padding:9px; border:1px solid var(--line); border-radius:10px; background:#fff; }
.danger-zone { border-color:#e3bcbc; background:#fffafa; }
.danger-zone h2 { color:var(--danger); }
@media (max-width: 980px) {
  .app-shell { grid-template-columns:1fr; }.sidebar { position:fixed; width:248px; transform:translateX(-102%); transition:transform .2s ease; box-shadow:18px 0 50px rgba(0,0,0,.22); }.menu-open .sidebar { transform:translateX(0); }.menu-toggle { display:inline-block; }.topbar { padding:0 18px; }.user-copy { display:none; }.filter-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }.usage-grid { grid-template-columns:1fr; }.advisor-filter { grid-template-columns:1fr 1fr; }
}
@media (max-width: 720px) {
  .login-layout { grid-template-columns:1fr; }.login-brand { min-height:210px; padding:35px; }.login-brand strong { font-size:1.8rem; }.login-main { padding:12px; }.login-card { padding:28px 20px; }.link-button { display:none; }.filter-grid,.quality-split,.advisor-filter,.check-grid { grid-template-columns:1fr; }.subscription-banner { align-items:flex-start; flex-direction:column; }.onboarding-step { grid-template-columns:34px minmax(0,1fr); }.step-action { grid-column:2; }
}

/* Frumetra SaaS components */
.cockpit-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px; margin:0 0 22px; }
.cockpit-tile { position:relative; display:grid; gap:5px; padding:21px; overflow:hidden; color:var(--ink); background:#fff; border:1px solid var(--line); border-radius:14px; box-shadow:var(--shadow); }
.cockpit-tile:before { content:""; position:absolute; inset:0 auto 0 0; width:4px; background:var(--tenant-primary,var(--primary)); }
.cockpit-tile:hover { text-decoration:none; border-color:#b9d3c9; transform:translateY(-1px); }
.cockpit-tile span,.cockpit-tile small { color:var(--muted); }
.cockpit-tile span { font-size:.82rem; font-weight:750; text-transform:uppercase; letter-spacing:.04em; }
.cockpit-tile strong { font-size:1.85rem; letter-spacing:-.04em; }
.cockpit-tile small { font-size:.76rem; }
.cockpit-tile.attention:before { background:#bd3d3d; }
.workflow-editor { min-width:310px; margin-top:10px; }
.workflow-editor summary,.template-editor summary { cursor:pointer; color:var(--primary); font-weight:750; }
.workflow-editor form,.template-editor form { margin-top:16px; }
.template-editor { box-shadow:none; }
.template-editor summary { display:flex; justify-content:space-between; gap:15px; }
.inline-form { display:flex; gap:7px; align-items:center; margin:0; }
.inline-form select { min-width:125px; }
.plan-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; }
.login-help { margin:18px 0 0; text-align:center; }
.stats-grid + .cockpit-grid { margin-top:2px; }
@media (max-width:1100px){.cockpit-grid,.plan-grid{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media (max-width:1100px){.report-type-grid{grid-template-columns:1fr}.report-type-grid .card{min-height:auto}.report-type-grid p{min-height:auto}}
@media (max-width:620px){.cockpit-grid,.plan-grid{grid-template-columns:1fr}.inline-form{align-items:stretch;flex-direction:column}.workflow-editor{min-width:240px}}

/* Live meetwerkplek 1.2.0 */
.breadcrumbs { display:flex; align-items:center; gap:9px; min-width:0; flex:1; overflow:hidden; white-space:nowrap; }
.breadcrumb-item { color:#697880; font-size:.78rem; font-weight:650; overflow:hidden; text-overflow:ellipsis; }
a.breadcrumb-item:hover { color:var(--primary); text-decoration:none; }
.breadcrumb-root { color:#8b989e; }
.breadcrumb-current { color:#243842; font-weight:800; }
.breadcrumb-separator { color:#aab4b9; font-size:1.05rem; }
.subscription-banner { min-height:54px; padding:10px 14px; border-radius:10px; box-shadow:0 3px 12px rgba(38,49,54,.025); }
.subscription-banner-icon { width:30px; height:30px; display:grid; place-items:center; flex:0 0 auto; border-radius:8px; color:#956711; background:#fff1c7; font-size:.9rem; }
.subscription-banner a { display:inline-flex; align-items:center; gap:10px; padding:8px 12px; border:1px solid #e5cf8d; border-radius:8px; color:#283e47; background:rgba(255,255,255,.45); }
.subscription-banner a:hover { background:#fff; text-decoration:none; }
.subscription-banner a b { font-size:1rem; }
.measurement-page-header { display:flex; align-items:center; justify-content:space-between; gap:20px; margin-bottom:14px; padding:18px; border:1px solid var(--line); border-radius:14px; background:#fff; box-shadow:0 5px 18px rgba(18,42,53,.04); }
.measurement-header-main { display:flex; align-items:center; gap:18px; min-width:0; }
.measurement-header-main > div { min-width:0; }
.measurement-header-main h1 { margin:0; color:#102c39; font-size:1.95rem; line-height:1.1; letter-spacing:-.04em; }
.measurement-header-main p { margin:7px 0 0; color:var(--muted); font-size:.86rem; }
.measurement-header-actions { display:flex; align-items:center; justify-content:flex-end; gap:10px; flex-wrap:wrap; }
.measurement-back-button { display:inline-flex; align-items:center; gap:8px; flex:0 0 auto; min-height:38px; padding:8px 12px; border-color:#d9e1e5; border-radius:9px; color:#273e48; background:#fff; box-shadow:none; font-size:.8rem; }
.measurement-back-button:hover { border-color:#b9c8ce; background:#f8fafb; }
.station-badge { display:inline-flex; align-items:center; gap:8px; flex:0 0 auto; padding:9px 13px; border-radius:9px; font-size:.78rem; font-weight:800; white-space:nowrap; }
.station-badge:before { content:""; width:8px; height:8px; border-radius:50%; background:currentColor; box-shadow:0 0 0 4px color-mix(in srgb,currentColor 12%,transparent); }
.station-badge.online { color:#087043; background:#e7f7ef; }
.station-badge.offline { color:#922a2a; background:#fae7e7; }
.measurement-console { display:grid; gap:14px; }
.measurement-safety-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.measurement-safety-card { display:flex; align-items:flex-start; gap:13px; min-height:82px; padding:17px 18px; border:1px solid var(--line); border-radius:12px; background:#fff; box-shadow:0 3px 13px rgba(18,42,53,.025); }
.measurement-safety-icon { width:36px; height:36px; display:grid; place-items:center; flex:0 0 auto; border-radius:10px; color:#08775a; background:#e5f6ef; font-size:1rem; font-weight:900; }
.measurement-safety-card strong,.measurement-safety-card span { display:block; }
.measurement-safety-card strong { margin:1px 0 4px; color:#17313d; font-size:.91rem; }
.measurement-safety-card div > span { color:var(--muted); font-size:.8rem; line-height:1.45; }
.measurement-operation-compact { display:grid; grid-template-columns:12px minmax(0,1fr); align-items:center; gap:10px; margin-bottom:12px; }
.measurement-operation-indicator { width:10px; height:10px; flex:0 0 auto; border:3px solid #d0eee2; border-radius:50%; background:#13845f; box-shadow:0 0 0 4px rgba(19,132,95,.08); }
.measurement-operation-compact > div { display:grid; min-width:0; }
.measurement-operation-compact .measurement-eyebrow { margin:0 0 2px; color:#668178; font-size:.58rem; font-weight:850; letter-spacing:.075em; text-transform:uppercase; }
.measurement-operation-compact strong { overflow:hidden; color:#18323d; font-size:.82rem; line-height:1.25; text-overflow:ellipsis; white-space:nowrap; }
.measurement-operation-compact div > span:last-child { overflow:hidden; margin-top:2px; color:var(--muted); font-size:.67rem; line-height:1.3; text-overflow:ellipsis; white-space:nowrap; }
.measurement-operation-compact.status-queued .measurement-operation-indicator,.measurement-operation-compact.status-waiting .measurement-operation-indicator,.measurement-operation-compact.status-measuring .measurement-operation-indicator,.measurement-operation-compact.status-aborting .measurement-operation-indicator { border-color:#f4dfaa; background:#c98718; animation:measurement-pulse 1.25s infinite; }
.measurement-operation-compact.status-error .measurement-operation-indicator,.measurement-operation-compact.status-overload .measurement-operation-indicator,.measurement-operation-compact.status-offline .measurement-operation-indicator,.measurement-operation-compact.status-cancelled .measurement-operation-indicator { border-color:#f2d2d2; background:#b53939; }
.measurement-operation-compact.status-paused .measurement-operation-indicator { border-color:#e4e8ea; background:#68757c; }
@keyframes measurement-pulse { 50% { transform:scale(.78); opacity:.65; } }
.measurement-control-card { display:grid; grid-template-columns:minmax(300px,.72fr) minmax(0,1.55fr); overflow:hidden; border:1px solid var(--line); border-radius:13px; background:#fff; box-shadow:0 5px 18px rgba(18,42,53,.04); }
.measurement-progress-panel { display:flex; flex-direction:column; justify-content:center; min-height:108px; padding:18px; border-right:1px solid var(--line); }
.measurement-progress-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:10px; }
.measurement-progress-heading strong { color:#17313d; font-size:1.03rem; }
.measurement-progress-heading > span { color:#19805f; font-size:.76rem; font-weight:800; }
.measurement-progress-track { height:9px; overflow:hidden; border-radius:999px; background:#e6ebed; }
.measurement-progress-track span { display:block; height:100%; border-radius:inherit; background:linear-gradient(90deg,#19805f,#32aa7d); transition:width .3s ease; }
.measurement-toolbar { display:flex; align-items:center; min-width:0; padding:13px 16px; }
.measurement-toolbar form { display:flex; align-items:center; flex-wrap:wrap; gap:8px; width:100%; margin:0; }
.measurement-toolbar button { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:42px; padding:9px 13px; border-color:#d6dee2; border-radius:9px; color:#203640; background:#fff; box-shadow:none; font-size:.78rem; white-space:nowrap; }
.measurement-toolbar button:hover { border-color:#b9c8ce; background:#f8fafb; }
.measurement-toolbar .measurement-start-button { min-width:142px; color:#fff; border-color:var(--primary); background:linear-gradient(180deg,color-mix(in srgb,var(--primary) 92%,#fff),var(--primary)); box-shadow:0 5px 12px rgba(16,87,64,.16); font-weight:850; }
.measurement-toolbar .measurement-start-button:hover { background:var(--primary-hover); }
.measurement-toolbar .danger-outline { color:#ba2626; border-color:#efb6b6; background:#fff; }
.measurement-toolbar .danger-outline:hover { border-color:#dc8888; background:#fff5f5; }
.button-icon { min-width:14px; font-size:.86rem; line-height:1; }
.measurement-readonly-notice { width:100%; color:var(--muted); font-size:.8rem; }
.round-action-message { padding:11px 14px; border-radius:10px; border:1px solid transparent; font-size:.82rem; font-weight:750; }
.round-action-message.success { color:#087043; border-color:#bde2d1; background:#eefaf4; }
.round-action-message.error { color:#922a2a; border-color:#e6bcbc; background:#fff2f2; }
.round-action-message.pending { color:#7b570e; border-color:#ead49c; background:#fff9e9; }
.measurement-summary-card { overflow:hidden; border:1px solid var(--line); border-radius:13px; background:#fff; box-shadow:0 5px 18px rgba(18,42,53,.04); }
.measurement-kpi-grid { display:grid; grid-template-columns:1.35fr repeat(5,1fr); border-bottom:1px solid var(--line); }
.measurement-kpi { min-height:112px; padding:18px 20px; border-right:1px solid var(--line); }
.measurement-kpi:last-child { border-right:0; }
.measurement-kpi-label { display:block; color:#53666f; font-size:.72rem; font-weight:700; }
.measurement-kpi strong { display:block; margin-top:11px; color:#122d39; font-size:1.45rem; line-height:1; letter-spacing:-.035em; }
.measurement-kpi strong.positive { color:#087043; }
.measurement-kpi-latest strong { color:var(--primary); }
.measurement-kpi small { display:block; margin-top:8px; color:#75848b; font-size:.71rem; }
.measurement-meta-grid { display:grid; grid-template-columns:1.05fr 1fr 1.08fr 1.2fr .95fr; padding:15px 18px; }
.measurement-meta-grid > div { min-width:0; padding:2px 18px; border-right:1px solid var(--line); }
.measurement-meta-grid > div:first-child { padding-left:0; }
.measurement-meta-grid > div:last-child { padding-right:0; border-right:0; }
.measurement-meta-grid span,.measurement-meta-grid strong { display:block; }
.measurement-meta-grid span { margin-bottom:6px; color:#64757d; font-size:.68rem; }
.measurement-meta-grid strong { overflow:hidden; color:#203640; font-size:.81rem; text-overflow:ellipsis; white-space:nowrap; }
.measurement-shortcut strong { display:flex; align-items:center; gap:6px; }
kbd { display:inline-grid; place-items:center; min-width:30px; min-height:24px; padding:2px 7px; border:1px solid #ccd5d8; border-bottom-width:2px; border-radius:6px; background:#f7f9fa; color:#34464e; font:700 .68rem ui-monospace,SFMono-Regular,Consolas,monospace; text-align:center; }
.measurement-results-card { overflow:hidden; border:1px solid var(--line); border-radius:13px; background:#fff; box-shadow:0 5px 18px rgba(18,42,53,.04); }
.measurement-results-heading { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:18px 20px 12px; }
.measurement-results-heading h2 { margin:0 0 5px; color:#17313d; font-size:1rem; }
.measurement-results-heading p { margin:0; color:var(--muted); font-size:.77rem; }
.measurement-table-wrap { margin:0 16px 16px; overflow:auto; border:1px solid #e6ebed; border-radius:9px; }
.measurement-live-table { min-width:1050px; font-size:.81rem; }
.measurement-live-table th { height:38px; padding:10px 12px; color:#60717a; background:#f6f8f9; border-bottom:1px solid #e1e7e9; font-size:.66rem; letter-spacing:.045em; }
.measurement-live-table th:first-child,.measurement-live-table th:last-child { border-radius:0; }
.measurement-live-table td { padding:11px 12px; }
.measurement-live-table tbody tr:last-child td { border-bottom:0; }
.measurement-live-table tbody tr:hover { background:#fbfcfc; }
.measurement-row-number { color:#839097; font-size:.72rem; }
.measurement-rejected-row { background:#fff9f9; opacity:.76; }
.acceptance-badge { display:inline-block; padding:5px 8px; border-radius:999px; font-size:.68rem; font-weight:800; white-space:nowrap; }
.acceptance-badge.accepted { color:#087043; background:#dff5e9; }
.acceptance-badge.rejected { color:#922a2a; background:#fae2e2; }
.small-button { padding:6px 9px; font-size:.69rem; }
.measurement-row-action { display:flex; align-items:center; gap:6px; min-width:235px; }
.measurement-row-action select { min-width:145px; padding:6px 8px; font-size:.7rem; }
.measurement-action-cell { text-align:right; }
.table-actions-heading { text-align:right; }
.measurement-empty-row:hover { background:#fff!important; }
.measurement-empty-row td { padding:0; }
.measurement-empty-state { min-height:150px; display:grid; place-items:center; align-content:center; gap:5px; padding:28px; color:var(--muted); text-align:center; }
.measurement-empty-icon { width:38px; height:32px; display:grid; place-items:center; margin-bottom:4px; border:2px solid #aebbc1; border-radius:8px; color:#93a1a7; font-size:1.15rem; }
.measurement-empty-state strong { color:#31464f; font-size:.82rem; }
.measurement-empty-state span:last-child { font-size:.73rem; }
@media (max-width:1280px) {
  .measurement-control-card { grid-template-columns:1fr; }
  .measurement-progress-panel { min-height:auto; border-right:0; border-bottom:1px solid var(--line); }
  .measurement-kpi-grid { grid-template-columns:repeat(3,1fr); }
  .measurement-kpi:nth-child(3) { border-right:0; }
  .measurement-kpi:nth-child(-n+3) { border-bottom:1px solid var(--line); }
  .measurement-meta-grid { grid-template-columns:repeat(3,1fr); row-gap:15px; }
  .measurement-meta-grid > div:nth-child(3) { border-right:0; }
  .measurement-meta-grid > div:nth-child(4) { padding-left:0; }
}
@media (max-width:880px) {
  .measurement-page-header { align-items:flex-start; }
  .measurement-header-main { align-items:flex-start; flex-direction:column; gap:12px; }
  .measurement-safety-grid { grid-template-columns:1fr; }
  .measurement-operation-compact div > span:last-child { white-space:normal; }
  .measurement-toolbar form { align-items:stretch; }
  .measurement-toolbar button { flex:1 1 180px; }
  .measurement-kpi-grid { grid-template-columns:repeat(2,1fr); }
  .measurement-kpi:nth-child(n) { border-right:1px solid var(--line); border-bottom:1px solid var(--line); }
  .measurement-kpi:nth-child(even) { border-right:0; }
  .measurement-kpi:nth-last-child(-n+2) { border-bottom:0; }
  .measurement-meta-grid { grid-template-columns:1fr 1fr; }
  .measurement-meta-grid > div:nth-child(n) { padding:4px 14px; border-right:1px solid var(--line); }
  .measurement-meta-grid > div:nth-child(odd) { padding-left:0; }
  .measurement-meta-grid > div:nth-child(even) { padding-right:0; border-right:0; }
}
@media (max-width:620px) {
  .measurement-page-header { flex-direction:column; }
  .measurement-header-actions { width:100%; justify-content:flex-start; }
  .station-badge { align-self:flex-start; }
  .measurement-back-button { width:100%; justify-content:center; }
  .measurement-header-main { width:100%; }
  .measurement-toolbar button { flex-basis:100%; }
  .measurement-kpi-grid,.measurement-meta-grid { grid-template-columns:1fr; }
  .measurement-kpi:nth-child(n) { border-right:0; border-bottom:1px solid var(--line); }
  .measurement-kpi:last-child { border-bottom:0; }
  .measurement-meta-grid > div:nth-child(n) { padding:10px 0; border-right:0; border-bottom:1px solid var(--line); }
  .measurement-meta-grid > div:last-child { border-bottom:0; }
}

.measurement-toolbar [hidden],.round-action-message[hidden]{display:none!important;}

/* Frumetra · kwaliteitsbeoordeling en adviseurscockpit */
.pill-warning { color:#7a5208; background:#fff0c9; }
.text-danger { color:#a52b2b; }
.three-column { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:22px; }
.quality-defect-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; margin-bottom:22px; }
.quality-defect-card { padding:20px; border:1px solid var(--line); border-radius:13px; background:#fff; box-shadow:0 5px 18px rgba(18,42,53,.04); }
.quality-defect-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; }
.quality-defect-heading h3 { margin:4px 0 0; color:#19343e; font-size:1.02rem; letter-spacing:-.015em; }
.quality-category { color:#6b7a82; font-size:.63rem; font-weight:850; letter-spacing:.08em; text-transform:uppercase; }
.quality-threshold { flex:0 0 auto; max-width:180px; padding:5px 8px; border-radius:999px; color:#6d5a1f; background:#fff6d9; font-size:.64rem; font-weight:750; text-align:center; }
.quality-defect-card > p { min-height:42px; margin:10px 0 15px; color:var(--muted); font-size:.79rem; }
.quality-defect-fields { display:grid; grid-template-columns:minmax(115px,.62fr) minmax(135px,.85fr) minmax(170px,1.3fr); gap:10px; }
.quality-defect-fields label { font-size:.75rem; }
.quality-defect-fields input,.quality-defect-fields select { padding:8px 9px; font-size:.8rem; }
.quality-save-bar { position:sticky; bottom:14px; z-index:5; display:flex; align-items:center; justify-content:space-between; gap:20px; border-color:#c9e3d8; box-shadow:0 12px 34px rgba(16,42,53,.15); }
.quality-save-bar p { margin:4px 0 0; }
.quality-save-bar .button-row { margin-top:0; }
.photo-dropzone { min-height:150px; display:grid; place-items:center; align-content:center; gap:10px; padding:24px; border:2px dashed #a9c9bd; border-radius:13px; color:#245644; background:#f2faf6; text-align:center; cursor:pointer; }
.photo-dropzone:hover { border-color:var(--primary); background:#ecf8f2; }
.photo-dropzone input { max-width:440px; border:0; background:transparent; }
.photo-dropzone span { color:var(--muted); font-size:.75rem; }
.photo-preview { display:grid; grid-template-columns:repeat(auto-fill,minmax(120px,1fr)); gap:10px; }
.photo-preview:empty { display:none; }
.photo-preview figure { margin:0; overflow:hidden; border:1px solid var(--line); border-radius:9px; background:#fff; }
.photo-preview img { display:block; width:100%; aspect-ratio:4/3; object-fit:cover; }
.photo-preview figcaption { overflow:hidden; padding:7px; color:var(--muted); font-size:.68rem; text-overflow:ellipsis; white-space:nowrap; }
.quality-photo-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(190px,1fr)); gap:16px; }
.quality-photo-card { overflow:hidden; margin:0; border:1px solid var(--line); border-radius:11px; background:#fafbfb; }
.quality-photo-card img { display:block; width:100%; aspect-ratio:4/3; object-fit:cover; background:#e9edef; }
.quality-photo-card figcaption { display:grid; gap:5px; padding:11px; }
.quality-photo-card figcaption strong { color:#24404a; font-size:.78rem; }
.quality-photo-card figcaption span { min-height:16px; color:var(--muted); font-size:.7rem; }
.quality-photo-card .link-button { justify-self:start; margin:2px 0 0; color:var(--danger); }
@media (max-width:1180px) {
  .three-column { grid-template-columns:1fr 1fr; }
  .three-column > :last-child { grid-column:1/-1; }
  .quality-defect-fields { grid-template-columns:1fr 1fr; }
  .quality-note-field { grid-column:1/-1; }
}
@media (max-width:820px) {
  .three-column,.quality-defect-grid { grid-template-columns:1fr; }
  .three-column > :last-child { grid-column:auto; }
  .quality-save-bar { position:static; align-items:stretch; flex-direction:column; }
}
@media (max-width:520px) {
  .quality-defect-heading { flex-direction:column; }
  .quality-threshold { max-width:none; }
  .quality-defect-fields { grid-template-columns:1fr; }
  .quality-note-field { grid-column:auto; }
  .quality-photo-grid { grid-template-columns:1fr 1fr; gap:10px; }
}

/* Frumetra 1.4 · global brand and interface system */
:root {
  --frumetra-deep:#081f27;
  --frumetra-navy:#0a2b31;
  --frumetra-teal:#0f6b5c;
  --frumetra-green:#20ae7b;
  --frumetra-lime:#b8cf4f;
  --frumetra-mint:#e3f6ef;
  --bg:#f2f6f5;
  --card:#fff;
  --ink:#112d32;
  --muted:#607477;
  --line:#dfe8e5;
  --danger:#ae3232;
  --warning:#8a6413;
  --shadow:0 10px 32px rgba(8,42,45,.065);
  --shadow-hover:0 16px 42px rgba(8,42,45,.11);
  color-scheme:light;
}
html { background:var(--bg); }
body { color:var(--ink); background:var(--bg); -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility; }
::selection { color:#fff; background:var(--frumetra-teal); }
a { transition:color .16s ease,background .16s ease,border-color .16s ease,transform .16s ease,box-shadow .16s ease; }
.app-shell { grid-template-columns:272px minmax(0,1fr); }
.sidebar { padding:24px 17px 18px; background:linear-gradient(178deg,#0b3137 0%,#071f27 68%,#061b22 100%); box-shadow:8px 0 28px rgba(5,27,31,.08); }
.sidebar:after { content:""; position:absolute; inset:0; z-index:-1; pointer-events:none; background:radial-gradient(circle at 20% -5%,rgba(79,201,151,.16),transparent 31%); }
.brand { min-height:58px; gap:13px; padding:0 7px 21px; }
.brand-mark { width:44px; height:44px; flex:0 0 auto; overflow:hidden; padding:0; border-radius:13px; background:none; box-shadow:0 10px 24px rgba(0,0,0,.22); }
.brand-mark img { display:block; width:100%; height:100%; }
.brand strong { font-size:1.18rem; font-weight:780; letter-spacing:-.035em; }
.brand small { margin-top:3px; color:#91aeb0; font-size:.585rem; font-weight:680; letter-spacing:.075em; text-transform:uppercase; }
.workspace { display:flex; align-items:center; gap:10px; min-height:59px; margin:2px 5px 15px; padding:10px 11px; border-color:rgba(255,255,255,.105); border-radius:12px; background:rgba(255,255,255,.055); }
.workspace > span:last-child { min-width:0; }
.workspace-logo { display:grid!important; place-items:center; width:34px; height:34px; flex:0 0 auto; overflow:hidden; padding:3px; border-radius:9px; background:#fff; }
.workspace-logo img { display:block; width:100%; height:100%; object-fit:contain; }
.workspace small { color:#81a3a6; font-size:.57rem; font-weight:760; letter-spacing:.13em; }
.workspace strong { color:#eef8f6; font-size:.79rem; font-weight:720; }
.sidebar nav { gap:3px; scrollbar-color:rgba(255,255,255,.16) transparent; scrollbar-width:thin; }
.nav-section-label { margin:17px 12px 5px; color:#63878a; font-size:.57rem; letter-spacing:.14em; }
.nav-item { min-height:41px; gap:11px; padding:9px 11px; border-radius:9px; color:#abc1c2; font-size:.825rem; font-weight:630; }
.nav-item:hover { color:#f7fffc; background:rgba(255,255,255,.065); transform:translateX(1px); }
.nav-item.active { color:#fff; background:linear-gradient(90deg,rgba(32,174,123,.23),rgba(32,174,123,.09)); box-shadow:inset 3px 0 var(--frumetra-green); }
.nav-icon { width:19px; height:19px; display:grid; place-items:center; color:#789da0; }
.nav-icon svg { width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:1.75; stroke-linecap:round; stroke-linejoin:round; }
.nav-item.active .nav-icon { color:#68d6a9; }
.sidebar-footer { padding-top:10px; border-top:1px solid rgba(255,255,255,.075); }
.version { display:grid; gap:3px; padding:15px 11px 0; }
.version strong { color:#789b9e; font-size:.645rem; letter-spacing:.02em; }
.version span { color:#536f72; font-size:.59rem; }
.topbar { height:76px; padding:0 clamp(20px,2.5vw,38px); border-bottom-color:#e2eae8; background:rgba(255,255,255,.89); box-shadow:0 4px 22px rgba(19,51,53,.035); }
.breadcrumb-item { color:#718285; font-size:.76rem; }
.breadcrumb-root { color:var(--frumetra-teal); font-weight:780; }
.breadcrumb-current { color:#1b373b; }
.avatar { width:36px; height:36px; border:1px solid #c9e6db; background:linear-gradient(145deg,#effaf6,#dcefe8); color:var(--frumetra-teal); box-shadow:0 4px 10px rgba(15,107,92,.08); }
.user-copy strong { color:#18383c; font-size:.8rem; }.user-copy small { font-size:.65rem; }
.logout-button { display:inline-flex; align-items:center; gap:6px; margin-left:5px; padding:7px 8px; border-radius:8px; color:#6a7c7e; }
.logout-button svg { width:16px; height:16px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.logout-button:hover { color:var(--frumetra-teal); background:#eff7f4; text-decoration:none; }
.menu-toggle { width:40px; height:38px; place-items:center; gap:4px; padding:8px 10px; }
.menu-toggle span { display:block; width:18px; height:2px; border-radius:999px; background:currentColor; }
.container { max-width:1540px; padding:36px clamp(24px,3.35vw,54px) 78px; }
.page-heading { margin-bottom:25px; }.page-heading h1 { color:#102f34; font-size:1.82rem; font-weight:760; letter-spacing:-.04em; }.page-heading .muted { margin-top:5px; }
h2 { color:#19393d; font-weight:740; } h3 { color:#1d3d41; }
.card,.stat-card,.login-card,.cockpit-tile { border-color:var(--line); border-radius:15px; box-shadow:var(--shadow); }
.card { padding:25px; }
.stat-card { min-height:110px; padding:22px; }
.stat-card:before { width:4px; background:linear-gradient(180deg,var(--tenant-accent,var(--frumetra-lime)),var(--tenant-primary,var(--frumetra-teal))); }
.stat-card span { color:#718184; font-size:.78rem; font-weight:650; }
.stat-card strong { color:#15363a; font-size:1.7rem; }
.cockpit-tile { min-height:132px; padding:23px; }
.cockpit-tile:hover { border-color:#b8d6cc; box-shadow:var(--shadow-hover); transform:translateY(-2px); }
.cockpit-tile:before { background:linear-gradient(180deg,var(--tenant-accent,var(--frumetra-lime)),var(--tenant-primary,var(--frumetra-teal))); }
button,.button { min-height:40px; border-color:#ccd9d5; border-radius:9px; color:#18383c; font-size:.86rem; box-shadow:0 2px 5px rgba(18,50,53,.025); }
button:hover,.button:hover { border-color:#b6c9c3; background:#f6f9f8; transform:translateY(-1px); }
button.primary,.button.primary { border-color:var(--primary); background:linear-gradient(180deg,color-mix(in srgb,var(--primary) 88%,#fff),var(--primary)); box-shadow:0 7px 18px color-mix(in srgb,var(--primary) 22%,transparent); }
button.primary:hover,.button.primary:hover { filter:brightness(.94); box-shadow:0 9px 22px color-mix(in srgb,var(--primary) 28%,transparent); }
button:focus-visible,.button:focus-visible,a:focus-visible { outline:3px solid color-mix(in srgb,var(--frumetra-green) 30%,transparent); outline-offset:2px; }
input,select,textarea { min-height:42px; border-color:#cbd9d5; border-radius:9px; padding:10px 12px; transition:border-color .15s ease,box-shadow .15s ease; }
input:hover,select:hover,textarea:hover { border-color:#acbfba; }
input:focus,select:focus,textarea:focus { outline:0; border-color:var(--primary); box-shadow:0 0 0 3px color-mix(in srgb,var(--primary) 14%,transparent); }
label { color:#405a5d; font-size:.84rem; }
.table-wrap { border-radius:11px; }
th { height:42px; padding:11px 12px; color:#687c7e; background:#f5f8f7; border-bottom-color:#dce6e3; font-size:.7rem; letter-spacing:.065em; }
td { height:48px; padding:12px; border-bottom-color:#e5ecea; }
tbody tr { transition:background .14s ease; }
tbody tr:hover { background:#f6faf8; }
.pill { padding:5px 9px; border-radius:7px; font-size:.68rem; }
.status { border-color:#d8e3e0; }
.chart,.trend-chart { border-color:#dfe8e5; border-radius:12px; background:linear-gradient(180deg,#fff,#fbfdfc); }
.filter-card { background:#fbfdfc; }
.empty-state { padding:48px 22px; }
.subscription-banner { border-color:#e6dba8; background:linear-gradient(90deg,#fff9e6,#fffdf6); }
.login-layout { position:relative; grid-template-columns:minmax(380px,.9fr) minmax(520px,1.1fr); overflow:hidden; background:#fff; }
.login-brand { position:relative; overflow:hidden; justify-content:space-between; min-height:100vh; padding:clamp(42px,6vw,92px); background:linear-gradient(145deg,#0d3d41 0%,#08272e 52%,#061b22 100%); }
.login-brand:before { content:""; position:absolute; width:560px; height:560px; left:-260px; bottom:-300px; border:1px solid rgba(177,220,188,.13); border-radius:50%; box-shadow:0 0 0 80px rgba(115,207,162,.025),0 0 0 170px rgba(115,207,162,.02); }
.login-brand:after { content:""; position:absolute; width:340px; height:340px; top:-185px; right:-150px; border-radius:50%; background:radial-gradient(circle,rgba(184,207,79,.18),transparent 68%); }
.login-logo { position:relative; z-index:1; width:min(390px,86%); height:auto; }
.login-message { position:relative; z-index:1; display:grid; gap:13px; max-width:470px; }
.login-message strong { color:#fff; font-size:clamp(2rem,3.7vw,3.7rem); font-weight:680; line-height:1.04; letter-spacing:-.055em; }
.login-message span { color:#abc2c3; font-size:1rem; line-height:1.65; }
.login-brand > small { position:relative; z-index:1; color:#708f91; font-size:.72rem; letter-spacing:.08em; text-transform:uppercase; }
.login-main { background:linear-gradient(180deg,#fff,#f9fbfa); }
.login-card { padding:40px; border:1px solid #e5ecea; box-shadow:0 22px 55px rgba(8,42,45,.08); }
.login-card h1 { color:#102f34; font-size:2rem; }
@media (max-width:980px) {
  .app-shell { grid-template-columns:1fr; }
  .sidebar { width:272px; }
  .menu-toggle { display:grid; }
  .container { padding-top:28px; }
}
@media (max-width:720px) {
  .login-layout { grid-template-columns:1fr; }
  .login-brand { min-height:260px; gap:28px; padding:32px; }
  .login-logo { width:260px; }
  .login-message strong { font-size:1.8rem; }
  .login-message span,.login-brand > small { display:none; }
  .login-main { padding:20px 12px; }
  .login-card { padding:30px 22px; }
  .logout-button { display:inline-flex; }
  .logout-button span { display:none; }
}
@media (max-width:520px) {
  .topbar { height:68px; }
  .breadcrumbs .breadcrumb-root,.breadcrumbs .breadcrumb-separator:first-of-type { display:none; }
  .container { padding:24px 14px 54px; }
  .card { padding:20px; }
  .page-heading h1 { font-size:1.6rem; }
}
