/* NEXUS Kanal – Komponenten (Kennzahlen, Status, Drawer, Tabellen) */
.page-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-end;
  margin-bottom: 23px;
}

.eyebrow {
  margin: 0 0 7px;
  color: #80909e;
  font-size: 12px;
  letter-spacing: 0.14em;
  font-weight: 750;
  text-transform: uppercase;
}

.page-head h1,
.page-title {
  font-size: 34px;
  line-height: 1.15;
  margin: 0;
  letter-spacing: -0.035em;
  color: #152536;
}

.page-head p:not(.eyebrow) {
  color: var(--muted);
  margin: 7px 0 0;
  font-size: 15px;
  line-height: 1.5;
}

.sync-state {
  white-space: nowrap;
  background: #fff;
  border: 1px solid var(--line);
  padding: 10px 13px;
  border-radius: 8px;
  color: #466072;
  font-size: 13px;
  line-height: 1.4;
}

.sync-state i {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2aa675;
  margin-right: 6px;
}

.sync-state.is-warn i {
  background: var(--amber);
}

.sync-state.is-err i {
  background: var(--danger);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 13px;
}

.metric-card {
  min-height: 132px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  box-shadow: var(--shadow-card);
}

.metric-card.warning {
  border-color: #ecd8bb;
}

.metric-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 9px;
  font-weight: 700;
  font-size: 18px;
}

.metric-icon.blue { color: var(--blue); background: #eaf3fb; }
.metric-icon.violet { color: var(--violet); background: #f0edfb; }
.metric-icon.amber { color: var(--amber); background: #fbf1e2; }
.metric-icon.green { color: var(--green); background: #e7f5ef; }

.metric-card span {
  color: #697987;
  font-size: 14px;
  font-weight: 600;
  display: block;
}

.metric-card strong {
  color: #1d2e3f;
  font-size: 32px;
  line-height: 1;
  margin: 10px 0;
  display: block;
}

.metric-card small {
  color: #7f8c97;
  font-size: 13px;
  line-height: 1.4;
  display: block;
}

.metric-card.warning small {
  color: var(--danger);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(300px, 0.68fr);
  gap: 15px;
  margin-top: 15px;
}

.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 21px 22px 17px;
  gap: 12px;
}

.panel-head h2 {
  margin: 0;
  font-size: 18px;
  color: #203143;
}

.panel-head p {
  margin: 4px 0 0;
  color: #87939d;
  font-size: 13px;
  line-height: 1.45;
}

.panel-head > button,
.link-action {
  border: 0;
  background: transparent;
  color: var(--blue);
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
}

.status,
.status-cell {
  display: inline-flex;
  align-items: center;
  width: max-content;
  border-radius: 99px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.3;
}

.status.kritisch,
.status-cell--danger {
  color: #a43139;
  background: #fbe9ea;
}

.status.offen,
.status-cell--warn {
  color: #246c9c;
  background: #eaf4fb;
}

.status.bereit,
.status-cell--ok {
  color: #227153;
  background: #e6f4ee;
}

.status.wartet {
  color: #89611e;
  background: #f8f0df;
}

.due-critical {
  color: var(--danger);
}

.data-table--dossier-list th,
.data-table th,
.cockpit-table th {
  font-size: 12px;
  letter-spacing: 0.06em;
  padding: 12px 15px;
  white-space: normal;
}

.data-table--dossier-list td,
.data-table td,
.cockpit-table td {
  font-size: 14px;
  line-height: 1.4;
  padding: 16px 15px;
}

.filter-field__label,
.filter-field__control {
  font-size: 14px;
}

.task-list {
  padding: 0 14px;
}

.task-list button {
  width: 100%;
  display: grid;
  grid-template-columns: 8px 1fr auto;
  align-items: start;
  gap: 11px;
  text-align: left;
  border: 0;
  border-top: 1px solid #edf1f4;
  background: transparent;
  padding: 15px 5px;
  height: auto;
  box-shadow: none;
  border-radius: 0;
}

.task-list strong {
  color: #304356;
  font-size: 14px;
  display: block;
  margin-bottom: 4px;
}

.task-list small {
  color: #87949f;
  font-size: 13px;
  line-height: 1.4;
  display: block;
}

.task-list b {
  color: #7d8d99;
  font-size: 12px;
  font-weight: 550;
}

.task-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-top: 6px;
}

.task-dot.red { background: var(--danger); }
.task-dot.blue { background: var(--blue); }
.task-dot.violet { background: var(--violet); }
.task-dot.green { background: var(--green); }

.secondary-button {
  border: 1px solid #dce4ea;
  background: #fff;
  color: #36576f;
  border-radius: 8px;
  padding: 11px 14px;
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
}

.health-icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  background: #e7f5ef;
  color: var(--green);
  border-radius: 8px;
  font-size: 14px;
}

.cockpit-table td span {
  display: block;
  color: #8996a1;
  font-size: 13px;
  line-height: 1.4;
  margin-top: 4px;
}

.focus-column {
  display: grid;
  gap: 15px;
  align-content: start;
}

.health-card {
  padding: 17px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.health-card strong {
  font-size: 14px;
  color: #2b413f;
  display: block;
}

.health-card small {
  font-size: 13px;
  line-height: 1.4;
  color: #889790;
  display: block;
  margin-top: 3px;
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 0 20px 20px;
}

.module-card {
  min-height: 112px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px;
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 12px;
  align-items: start;
  position: relative;
  background: #fbfcfd;
}

.module-number {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 800;
}

.module-card strong {
  display: block;
  font-size: 15px;
  color: #24394c;
  line-height: 1.35;
}

.module-card p {
  font-size: 14px;
  line-height: 1.45;
  color: #73828f;
  margin: 7px 0 26px;
}

.module-state {
  position: absolute;
  left: 66px;
  bottom: 14px;
  font-size: 12px;
  font-weight: 700;
}

.module-number.blue, .module-state.blue { color: var(--blue); }
.module-number.blue { background: #eaf3fb; }
.module-number.violet, .module-state.violet { color: var(--violet); }
.module-number.violet { background: #f0edfb; }
.module-number.amber, .module-state.amber { color: var(--amber); }
.module-number.amber { background: #fbf1e2; }
.module-number.green, .module-state.green { color: var(--green); }
.module-number.green { background: #e7f5ef; }
.module-number.red, .module-state.red { color: var(--danger); }
.module-number.red { background: #fbe9ea; }
.module-number.slate, .module-state.slate { color: #536b7d; }
.module-number.slate { background: #ebf0f3; }

.quick-actions {
  margin-top: 22px;
}

.quick-actions h2 {
  font-size: 18px;
  margin: 0 0 10px;
  color: #25384b;
}

.quick-actions > div {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.quick-actions button {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 11px;
  padding: 17px;
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 11px;
  text-align: left;
  height: auto;
  box-shadow: none;
}

.quick-actions strong {
  color: #2a3e51;
  font-size: 15px;
  display: block;
}

.quick-actions small {
  color: #88959f;
  font-size: 13px;
  line-height: 1.4;
  display: block;
  margin-top: 4px;
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(11, 27, 42, 0.38);
  display: flex;
  justify-content: flex-end;
  backdrop-filter: blur(2px);
}

.drawer {
  height: 100%;
  width: min(430px, 92vw);
  background: #fff;
  padding: 34px;
  box-shadow: -20px 0 50px rgba(7, 23, 36, 0.2);
  overflow-y: auto;
}

.drawer-close {
  float: right;
  border: 0;
  background: #f0f4f6;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font-size: 19px;
  color: #5d7180;
}

.drawer h2 {
  margin: 0;
  font-size: 28px;
  color: var(--navy);
}

.drawer-address {
  color: var(--muted);
  margin: 5px 0 15px;
  font-size: 15px;
}

.drawer dl {
  margin: 28px 0;
  border-top: 1px solid var(--line);
}

.drawer dl div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  padding: 13px 0;
}

.drawer dt,
.drawer dd {
  font-size: 14px;
  line-height: 1.45;
}

.drawer dt {
  color: var(--muted);
}

.drawer dd {
  margin: 0;
  color: #263b4d;
  font-weight: 650;
  text-align: right;
}

.primary-button,
#newDossier.btn-primary {
  border: 0;
  border-radius: 9px;
  background: var(--blue);
  color: #fff;
  padding: 12px 17px;
  font-size: 15px;
  font-weight: 650;
  box-shadow: 0 4px 12px rgba(23, 105, 170, 0.18);
}

.primary-button.full,
.secondary-button.full {
  width: 100%;
  margin-top: 9px;
}

.toast {
  position: fixed;
  z-index: 80;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: #16354e;
  color: #fff;
  padding: 11px 17px;
  border-radius: 9px;
  box-shadow: 0 12px 32px rgba(6, 24, 38, 0.25);
  font-size: 14px;
}

.login-gate {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(16, 41, 66, 0.55);
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-card {
  width: min(420px, 100%);
  background: #fff;
  border-radius: 12px;
  padding: 28px;
  box-shadow: var(--shadow-raise);
}

.login-card h2 {
  font-size: 28px;
  margin: 0.35rem 0 0.75rem;
}

.login-card label,
.login-card input,
.login-card button {
  font-size: 15px;
}

.icon-button {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 9px;
  color: #607181;
  font-size: 15px;
}

@media (max-width: 1280px) {
  .module-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1120px) {
  .metric-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 780px) {
  .page-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .page-head h1,
  .page-title {
    font-size: 28px;
  }
  .metric-grid,
  .quick-actions > div,
  .module-grid {
    grid-template-columns: 1fr;
  }
}
