﻿:root {
  --green: #8EB53B;
  --green-dark: #073A24;
  --green-deep: #032619;
  --green-soft: #EDF5E3;
  --field: #F5F8F1;
  --text: #14231B;
  --muted: #5D6B62;
  --line: #CBDCBF;
  --panel: #ffffff;
  --gold: #D8A400;
  --gold-soft: #FFF8DF;
  --brown: #5D542E;
  --danger: #C61F1F;
  --danger-soft: #FDEBEB;
  --sidebar: #0A432C;
  --sidebar-soft: #155A3A;
}

* { box-sizing: border-box; }
html, body { max-width: 100%; overflow-x: hidden; }
body { margin: 0; font-family: Inter, Segoe UI, Arial, sans-serif; background: var(--field); color: var(--text); }
img, svg, video, canvas { max-width: 100%; }
button, input, select, textarea { font: inherit; }
button { border: 0; border-radius: 8px; padding: 11px 14px; font-weight: 800; cursor: pointer; letter-spacing: 0; }
button.primary, .primary { background: var(--green); color: #fff; box-shadow: inset 0 -1px 0 rgba(0,0,0,.12); }
button.primary:hover { background: #7DA832; }
button.secondary, .secondary { background: #E7EFE1; color: var(--green-dark); }
button.ghost, .ghost { background: #F0F4EB; color: var(--green-dark); }
button:disabled { opacity: .5; cursor: not-allowed; }

.auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(3,38,25,.06), rgba(142,181,59,.08)),
    var(--field);
}
.auth-card {
  width: min(650px, calc(100vw - 32px));
  background: rgba(255,255,255,.96);
  border: 1px solid #d7e5cd;
  border-radius: 8px;
  padding: 38px 42px 40px;
  box-shadow: 0 24px 80px rgba(3, 38, 25, .13);
}
.auth-brand {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 22px;
}
.brand-logo {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  display: block;
  flex: 0 0 auto;
  box-shadow: 0 10px 26px rgba(3,38,25,.22);
}
.auth-logo { width: 112px; height: 112px; margin-bottom: 0; }
.auth-wordmark {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.auth-wordmark strong {
  display: block;
  color: var(--green-dark);
  font-size: 50px;
  line-height: .92;
  font-weight: 900;
}
.auth-wordmark strong span { color: var(--green); }
.auth-wordmark small {
  color: var(--brown, #5D542E);
  font-size: 15px;
  font-weight: 900;
  text-transform: uppercase;
}
.auth-stage {
  width: min(1120px, calc(100vw - 32px));
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(420px, .92fr);
  min-height: min(720px, calc(100vh - 48px));
  border: 1px solid rgba(255,255,255,.20);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 32px 90px rgba(3, 38, 25, .24);
  background: #fff;
}
.auth-hero {
  position: relative;
  display: grid;
  align-content: center;
  gap: 22px;
  padding: 56px;
  color: white;
  background:
    linear-gradient(135deg, rgba(3,38,25,.96), rgba(7,58,36,.90)),
    radial-gradient(circle at 78% 18%, rgba(142,181,59,.35), transparent 28%);
}
.auth-hero::after {
  content: "";
  position: absolute;
  left: 48px;
  right: 48px;
  bottom: 42px;
  height: 74px;
  border-bottom: 5px solid rgba(142,181,59,.80);
  border-radius: 50%;
  transform: skewX(-18deg);
  opacity: .82;
}
.auth-hero-logo {
  width: 132px;
  height: 132px;
  border-radius: 22px;
  box-shadow: 0 22px 54px rgba(0,0,0,.32);
  z-index: 1;
}
.auth-hero-brandmark {
  display: flex;
  align-items: center;
  gap: 22px;
  z-index: 1;
}
.auth-hero-brandmark-logo {
  width: min(500px, 100%);
  padding: 18px 22px;
  background: rgba(248,249,250,.96);
  border: 1px solid rgba(255,255,255,.42);
  border-radius: 8px;
  box-shadow: 0 22px 54px rgba(0,0,0,.24);
}
.auth-agropartner-logo {
  display: block;
  width: 100%;
  height: auto;
}
.auth-agropartner-wordmark {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.auth-agropartner-wordmark strong {
  color: #FFFFFF;
  font-size: clamp(34px, 4vw, 52px);
  line-height: .95;
  font-weight: 900;
}
.auth-agropartner-wordmark small {
  color: #E7E1CD;
  font-size: 15px;
  font-weight: 900;
  text-transform: uppercase;
}
.auth-agropartner-wordmark em {
  color: #9BCB43;
  font-size: 24px;
  font-style: italic;
  font-weight: 700;
  line-height: 1.18;
}
.auth-hero .eyebrow { color: #CFE2BE; margin-bottom: 12px; }
.auth-hero h1 {
  color: white;
  font-size: clamp(58px, 8vw, 96px);
  line-height: .9;
}
.auth-hero h1 span { color: var(--green); }
.auth-claim {
  margin: 18px 0 0;
  color: #F8F9FA;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.05;
  font-weight: 800;
}
.auth-promise {
  max-width: 390px;
  margin: 8px 0 0;
  color: #DDEAD5;
  line-height: 1.55;
  font-weight: 700;
  z-index: 1;
  overflow-wrap: anywhere;
}
.auth-stage .auth-card {
  width: auto;
  min-height: 100%;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  display: grid;
  align-content: center;
}
.brand-mark { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 8px; background: var(--green); color: white; font-size: 30px; font-weight: 900; }
.eyebrow { color: var(--green-dark); font-weight: 900; margin: 0 0 8px; text-transform: uppercase; letter-spacing: 0; }
h1, h2, h3 { margin: 0; letter-spacing: 0; color: #071A11; }
h1 { font-size: clamp(30px, 4vw, 42px); line-height: 1.05; }
h2 { font-size: 24px; }
h3 { font-size: 18px; }
.muted { color: var(--muted); line-height: 1.5; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 22px; }
.form-grid.single { grid-template-columns: 1fr; }
label { display: grid; gap: 7px; color: #41584C; font-weight: 800; }
input, select, textarea { width: 100%; border: 1px solid #BFD1B7; border-radius: 8px; padding: 12px 13px; background: #fff; color: var(--text); }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(142,181,59,.22); border-color: var(--green); }
.inline-control { display: grid; gap: 6px; min-width: 220px; color: var(--muted); font-size: 13px; font-weight: 800; }
.inline-control select { min-width: 220px; padding: 9px 11px; font-size: 13px; }
textarea { min-height: 110px; resize: vertical; }
.message { padding: 12px; border-radius: 8px; background: #eaf6df; border: 1px solid #badb9a; color: #214d24; }
.message.error { background: var(--danger-soft); border-color: #f2b9b9; color: var(--danger); }

.app-shell { width: 100%; max-width: 100vw; min-height: 100vh; display: grid; grid-template-columns: 304px minmax(0, 1fr); overflow-x: hidden; }
.sidebar {
  background:
    linear-gradient(180deg, rgba(142,181,59,.24), rgba(21,90,58,.28) 45%, rgba(3,38,25,.10)),
    var(--sidebar);
  color: white;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: auto;
  z-index: 6;
}
.brand { display: flex; align-items: center; gap: 14px; padding-bottom: 18px; border-bottom: 1px solid rgba(255,255,255,.22); }
.brand strong { font-size: 21px; letter-spacing: 0; }
.brand span { display: block; color: #DDEAD6; font-size: 13px; margin-top: 4px; }
.nav-list { display: grid; gap: 7px; overflow: auto; }
.nav-item { display: flex; align-items: center; gap: 10px; color: #EEF6EA; text-decoration: none; padding: 12px 14px; border-radius: 8px; font-weight: 800; border: 1px solid transparent; }
.nav-item.active, .nav-item:hover { background: rgba(255,255,255,.13); color: white; border-color: rgba(255,255,255,.18); }
.nav-text { display: grid; gap: 2px; min-width: 0; }
.nav-text strong { font-size: 14px; line-height: 1.1; overflow-wrap: anywhere; }
.nav-text small { color: #BFD1B7; font-size: 11px; line-height: 1.2; font-weight: 700; overflow-wrap: anywhere; }
.nav-item.active .nav-text small, .nav-item:hover .nav-text small { color: #E7EFE1; }
.nav-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(142,181,59,.12); }
.nav-icon { width: 34px; height: 34px; border-radius: 7px; flex: 0 0 auto; object-fit: cover; box-shadow: 0 3px 10px rgba(0,0,0,.18); }
.card-icon { width: 56px; height: 56px; border-radius: 8px; flex: 0 0 auto; object-fit: cover; box-shadow: 0 6px 16px rgba(3,38,25,.16); }
.tile-title, .module-title { display: flex; align-items: center; gap: 10px; min-width: 0; flex-wrap: wrap; }
.module-title h3 { margin: 0; }


.workspace { min-width: 0; max-width: 100%; overflow-x: hidden; }
.topbar {
  min-height: 104px;
  display: grid;
  grid-template-columns: minmax(360px, 1fr) auto minmax(240px, auto);
  align-items: center;
  gap: 24px;
  padding: 24px 32px;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 5;
}
.topbar > div { min-width: 0; }
.topbar-title {
  min-width: 0;
  padding-right: 12px;
}
.topbar-title h1 {
  max-width: 100%;
  font-size: clamp(30px, 3.1vw, 42px);
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}
.daily-clock {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  justify-self: end;
  min-width: 0;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdf8;
  box-shadow: 0 6px 18px rgba(3, 38, 25, .05);
}
.analog-clock {
  position: relative;
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  border: 3px solid var(--green-dark);
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #fff 0 58%, #eef5e6 59% 100%);
}
.clock-mark {
  position: absolute;
  width: 3px;
  height: 8px;
  left: calc(50% - 1.5px);
  top: 4px;
  border-radius: 999px;
  background: #5d542e;
  transform-origin: 50% 22px;
}
.mark-3 { transform: rotate(90deg); }
.mark-6 { transform: rotate(180deg); }
.mark-9 { transform: rotate(270deg); }
.clock-hand {
  position: absolute;
  left: 50%;
  bottom: 50%;
  width: 3px;
  border-radius: 999px;
  background: #1a1a1a;
  transform-origin: 50% 100%;
  transform: translateX(-50%) rotate(var(--rotation, 0deg));
}
.hour-hand { height: 15px; width: 4px; background: #5d542e; }
.minute-hand { height: 20px; background: var(--green-dark); }
.second-hand { height: 22px; width: 2px; background: #c61f1f; }
.clock-center {
  position: absolute;
  width: 8px;
  height: 8px;
  left: calc(50% - 4px);
  top: calc(50% - 4px);
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 2px #fff;
}
.clock-date {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.clock-date strong {
  color: var(--green-dark);
  font-size: 18px;
  line-height: 1;
}
.clock-date span {
  max-width: 190px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.agent-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.compact-agent-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.agent-card { display: grid; gap: 12px; }
.agent-signals {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
  gap: 8px;
}
.agent-signals span {
  display: grid;
  gap: 2px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #FBFDF8;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.agent-signals strong {
  color: var(--green-dark);
  font-size: 15px;
  line-height: 1.1;
}
.agent-suggestions {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.45;
}
.agent-safety summary {
  cursor: pointer;
  color: var(--green-dark);
  font-weight: 900;
}
.top-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; justify-self: end; }
.top-actions input { width: min(260px, 30vw); }
.profile { max-width: 100%; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-weight: 800; background: #fff; overflow-wrap: anywhere; }
.content { min-width: 0; max-width: 100%; padding: 28px 32px 48px; display: grid; gap: 22px; overflow-x: hidden; }
.content > *, .panel, .module-card, .kpi { min-width: 0; max-width: 100%; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 22px; box-shadow: 0 8px 24px rgba(3, 38, 25, .05); overflow: hidden; }
.area-tabs {
  display: grid;
  grid-template-columns: minmax(220px, .7fr) minmax(0, 1.3fr);
  gap: 18px;
  align-items: start;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--green);
  border-radius: 8px;
  background: #fbfdf8;
  box-shadow: 0 8px 24px rgba(3, 38, 25, .04);
}
.area-tabs h2 { margin: 0 0 4px; font-size: 20px; }
.area-tab-groups { display: grid; gap: 10px; min-width: 0; }
.area-tab-row { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.area-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  max-width: 100%;
  border: 1px solid #cbdcbf;
  border-radius: 8px;
  padding: 7px 11px;
  background: white;
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.15;
  text-decoration: none;
  cursor: pointer;
  overflow-wrap: anywhere;
}
.area-tab.active,
.area-tab:hover {
  background: #eaf6df;
  border-color: #a8cb83;
  color: #214d24;
}
.area-section-tab {
  color: var(--muted);
}
.inline-section-tabs {
  margin: 0 0 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(203, 220, 191, .72);
}
.subsection { min-width: 0; max-width: 100%; padding: 14px 0 0; border-top: 1px solid rgba(203, 220, 191, .72); overflow: hidden; }
.subsection:first-child { border-top: 0; padding-top: 0; }
.panel-head { display: flex; justify-content: space-between; gap: 18px; align-items: start; margin-bottom: 18px; }
.panel-head > div { min-width: 0; }
.panel-head.compact { margin-bottom: 10px; align-items: center; }
.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; align-items: stretch; }
.kpi { border: 1px solid var(--line); border-radius: 8px; padding: 18px; background: #fff; min-height: 178px; display: grid; align-content: start; gap: 8px; overflow: visible; }
.kpi strong { display: block; font-size: 26px; margin: 4px 0 2px; color: var(--green-dark); overflow-wrap: anywhere; }
.kpi small { color: var(--muted); line-height: 1.45; }
.module-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: stretch; }
.module-card { border: 1px solid var(--line); border-radius: 8px; padding: 18px; background: white; min-height: 220px; display: flex; flex-direction: column; gap: 10px; overflow: visible; }
.module-card ul { margin: 0 0 8px; padding-left: 18px; color: var(--muted); line-height: 1.5; }
.text-link { color: var(--green-dark); font-weight: 900; text-decoration: none; }
.cos-live-panel { border-color: #9fcf74; box-shadow: 0 14px 38px rgba(3, 38, 25, .08); }
.cos-live-detail { margin-top: 16px; align-items: start; }
.cos-live-detail .module-card { min-height: 0; }
.cos-live-detail .table-wrap { max-width: 100%; }
.cos-live-detail table { min-width: 0; }
.notice-panel { border-left: 5px solid var(--green); }
.badge { display: inline-flex; align-items: center; border-radius: 999px; padding: 5px 9px; background: #eaf6df; color: #24652b; font-weight: 900; font-size: 12px; }
.badge.warn { background: var(--gold-soft); color: #8C6200; }
.badge.danger { background: var(--danger-soft); color: var(--danger); }
.traffic-badge { display: inline-flex; align-items: center; gap: 7px; border-radius: 999px; padding: 5px 9px; font-weight: 900; font-size: 12px; white-space: nowrap; }
.traffic-dot { width: 10px; height: 10px; border-radius: 50%; }
.traffic-gruen { background: #eaf6df; color: #24652b; }
.traffic-gruen .traffic-dot { background: #2f8a36; }
.traffic-gelb { background: var(--gold-soft); color: #8C6200; }
.traffic-gelb .traffic-dot { background: #d99a00; }
.traffic-rot { background: var(--danger-soft); color: var(--danger); }
.traffic-rot .traffic-dot { background: var(--danger); }
.traffic-row-rot td:first-child { border-left: 4px solid var(--danger); }
.traffic-row-gelb td:first-child { border-left: 4px solid #d99a00; }
.traffic-row-gruen td:first-child { border-left: 4px solid #2f8a36; }
.movement-list,
.recommendation-list,
.machine-sales-list {
  display: grid;
  gap: 12px;
}
.movement-card,
.recommendation-card,
.machine-sales-card {
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-left: 5px solid #9db28d;
  border-radius: 8px;
  padding: 16px;
  background: #fff;
}
.movement-card-rot,
.machine-sales-card-rot { border-left-color: var(--danger); background: linear-gradient(90deg, rgba(198,31,31,.055), #fff 34%); }
.movement-card-gelb,
.recommendation-card-warn,
.machine-sales-card-gelb { border-left-color: #d99a00; background: linear-gradient(90deg, rgba(216,164,0,.075), #fff 34%); }
.movement-card-gruen,
.machine-sales-card-gruen { border-left-color: #2f8a36; background: linear-gradient(90deg, rgba(47,138,54,.06), #fff 34%); }
.movement-card-head,
.recommendation-card-head,
.machine-sales-card-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}
.movement-card-head > div,
.recommendation-card-head > div,
.machine-sales-card-head > div {
  min-width: 0;
}
.movement-card h3,
.recommendation-card h3,
.machine-sales-card h3 {
  margin-top: 6px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.movement-type {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  padding: 4px 8px;
  background: #eef5e6;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 900;
}
.movement-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.movement-metrics div {
  min-width: 0;
  border: 1px solid #dce8d3;
  border-radius: 8px;
  padding: 10px;
  background: #fbfdf8;
}
.movement-metrics span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}
.movement-metrics strong {
  display: block;
  margin-top: 4px;
  color: var(--green-dark);
  font-size: 18px;
  overflow-wrap: anywhere;
}
.movement-recommendation {
  margin: 0;
  padding-top: 12px;
  border-top: 1px solid #e6efdf;
  line-height: 1.45;
}
.table-wrap { max-width: 100%; min-width: 0; overflow-x: auto; overflow-y: hidden; border: 1px solid var(--line); border-radius: 8px; }
table { width: 100%; border-collapse: collapse; min-width: min(720px, 100%); background: white; }
th, td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th, td { overflow-wrap: anywhere; }
th { background: #F0F5EA; color: #41584C; font-size: 13px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
.split > * { min-width: 0; }
.locked { border-left: 5px solid var(--gold); background: #fffdf4; }
.toast { position: fixed; right: 22px; bottom: 22px; background: var(--green-dark); color: white; border-radius: 8px; padding: 14px 16px; box-shadow: 0 18px 60px rgba(0,0,0,.2); }
pre { max-width: 100%; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; }

@media (max-width: 1100px) {
  .app-shell { grid-template-columns: 88px minmax(0, 1fr); }
  .sidebar { padding: 18px 12px; }
  .brand div:not(.brand-logo), .nav-item span { display: none; }
  .topbar { grid-template-columns: minmax(0, 1fr) auto; }
  .topbar-title h1 { font-size: clamp(26px, 4vw, 36px); }
  .top-actions { grid-column: 1 / -1; width: 100%; }
  .daily-clock { justify-self: end; }
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .module-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: 1fr; }
  .area-tabs { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .app-shell { display: block; }
  .sidebar { position: sticky; top: 0; z-index: 3; flex-direction: row; overflow-x: auto; }
  .brand { min-width: 72px; padding-bottom: 0; border-bottom: 0; }
  .nav-list { display: flex; }
  .topbar { position: static; align-items: start; grid-template-columns: 1fr; padding: 18px; }
  .topbar-title h1 { font-size: clamp(28px, 9vw, 40px); }
  .daily-clock { width: 100%; justify-content: flex-start; }
  .clock-date span { max-width: none; }
  .top-actions, .top-actions input { width: 100%; }
  .content { padding: 18px; }
  .kpi-grid { grid-template-columns: 1fr; }
  .module-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .auth-page { display: block; padding: 0; }
  .auth-stage { width: 100%; min-height: 100vh; grid-template-columns: 1fr; border: 0; border-radius: 0; }
  .auth-hero { min-height: 42vh; padding: 28px 24px 34px; }
  .auth-hero-brandmark { align-items: flex-start; gap: 14px; }
  .auth-hero-brandmark-logo { width: 100%; padding: 12px; }
  .auth-hero-logo { width: 92px; height: 92px; border-radius: 15px; }
  .auth-agropartner-wordmark strong { font-size: 30px; }
  .auth-agropartner-wordmark small { font-size: 11px; }
  .auth-agropartner-wordmark em { font-size: 17px; }
  .auth-hero h1 { font-size: 56px; }
  .auth-claim { font-size: 30px; }
  .auth-promise { font-size: 14px; }
  .auth-card { padding: 28px 24px 30px; }
  .auth-brand { align-items: flex-start; gap: 14px; }
  .auth-logo { width: 84px; height: 84px; }
  .auth-wordmark strong { font-size: 38px; }
  .auth-wordmark small { font-size: 12px; }
  .movement-card-head,
  .recommendation-card-head,
  .machine-sales-card-head { display: grid; }
  .movement-metrics { grid-template-columns: 1fr; }
  .area-tab { flex: 1 1 140px; }
}

/* APROS_AUSSCHREIBUNGSRADAR_START */
.tender-hero-panel {
  background: linear-gradient(135deg, #f8f9fa 0%, #eef5e6 100%);
  border-color: rgba(142, 181, 59, 0.42);
}

.tender-dashboard-panel {
  border-left: 5px solid #8eb53b;
}

.tender-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) minmax(110px, 0.5fr) minmax(160px, 0.8fr) minmax(170px, 0.8fr) auto auto;
  gap: 10px;
  align-items: center;
  margin: 14px 0 18px;
}

.tender-toolbar input,
.tender-toolbar select,
.tender-note-form textarea,
.tender-note-form select {
  border: 1px solid rgba(0, 48, 31, 0.18);
  border-radius: 8px;
  padding: 10px 12px;
  font: inherit;
  color: #1a1a1a;
  background: #fff;
}

.inline-check {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  white-space: nowrap;
  color: #274536;
  font-weight: 700;
}

.tender-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.tender-link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 12px;
  border-radius: 8px;
  background: #f0f5ea;
  color: #00301f;
  font-weight: 800;
  text-decoration: none;
}

.score-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  padding: 5px 10px;
  border-radius: 999px;
  color: #fff;
  font-weight: 900;
  letter-spacing: 0;
}

.score-a { background: #b31b1b; }
.score-b { background: #d99a00; color: #1a1a1a; }
.score-c { background: #8eb53b; color: #00301f; }
.score-d { background: #6d776e; }

.deadline-critical {
  color: #b31b1b;
  font-weight: 900;
}

.tender-kpi strong {
  display: block;
  margin-top: 10px;
}

.tender-detail-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0;
}

.detail-box {
  border: 1px solid rgba(0, 48, 31, 0.14);
  border-radius: 8px;
  padding: 12px;
  background: #f8f9fa;
}

.detail-box span {
  display: block;
  color: #577061;
  font-size: 0.86rem;
  font-weight: 700;
}

.detail-box strong {
  display: block;
  margin-top: 4px;
  color: #00301f;
}

.tender-detail-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr);
  gap: 16px;
}

.tender-note-form {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.tender-note-form textarea {
  min-height: 100px;
  resize: vertical;
}

.tender-popup-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 48, 31, 0.72);
}

.tender-popup {
  width: min(980px, 100%);
  max-height: 90vh;
  overflow: auto;
  border-radius: 8px;
  background: #fff;
  color: #1a1a1a;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
  padding: 24px;
}

.tender-popup-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}

.tender-popup-card {
  border: 1px solid rgba(142, 181, 59, 0.45);
  border-radius: 8px;
  padding: 16px;
  background: #f8f9fa;
}

.panel-head.compact {
  align-items: center;
  margin-bottom: 8px;
}

@media (max-width: 920px) {
  .tender-toolbar,
  .tender-detail-grid,
  .tender-detail-columns {
    grid-template-columns: 1fr;
  }
}
/* APROS_AUSSCHREIBUNGSRADAR_END */


.kpi-toggle {
  cursor: pointer;
}
.kpi-toggle summary {
  list-style: none;
  display: grid;
  gap: 8px;
}
.kpi-toggle summary::-webkit-details-marker {
  display: none;
}
.kpi-toggle summary small::after {
  content: " + Details";
  color: var(--green-dark);
}
.kpi-toggle[open] summary small::after {
  content: " - Details schließen";
}
.op-detail-list {
  margin-top: 12px;
  max-height: 360px;
  overflow: auto;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}
.field-hint {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}
.input-error {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(198,31,31,.12);
}
