﻿:root {
  --ink: #111827;
  --muted: #6b7280;
  --paper: #f3f4f6;
  --sun: #f0b15d;
  --sky: #d6e2ea;
  --storm: #1f2937;
  --accent: #1f2937;
  --card: #ffffff;
  --shadow: 0 6px 18px rgba(17, 24, 39, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Arial Nova", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  min-height: 100vh;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 32px 48px 12px;
}

.title-wrap h1 {
  margin: 4px 0 0;
  font-size: 2.6rem;
  letter-spacing: 0.5px;
}

.eyebrow {
  margin: 0;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--muted);
}

.account-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-size: 0.95rem;
  box-shadow: 0 10px 24px rgba(10, 15, 20, 0.2);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.account-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(10, 15, 20, 0.28);
}

.account-dot {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #f9fafb;
  border: 2px solid rgba(255, 255, 255, 0.7);
}

.content {
  padding: 16px 48px 60px;
  display: grid;
  gap: 26px;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 56px 12px;
}

.tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  color: var(--ink);
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.tab.active {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

.tab-icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
}

.tab-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.panel {
  background: var(--card);
  border-radius: 24px;
  padding: 24px 28px;
  box-shadow: var(--shadow);
}

.form-grid {
  display: grid;
  gap: 20px;
}

.form-field {
  display: grid;
  gap: 8px;
  font-size: 0.95rem;
  color: var(--ink);
}

.form-field select {
  appearance: none;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  font-size: 0.95rem;
  color: var(--ink);
}

.form-field input {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  font-size: 0.95rem;
  color: var(--ink);
}

.form-field input[type="date"],
.form-field input[type="time"],
.form-field input[type="number"] {
  font-variant-numeric: tabular-nums;
}

.form-row {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr auto;
  align-items: end;
}

.form-row.two-cols {
  grid-template-columns: 1fr 1fr;
}

.form-row.three-cols {
  grid-template-columns: 1fr 1fr 1fr;
}

.form-row.four-cols {
  grid-template-columns: 0.9fr 1fr 1fr 0.7fr;
}

.panel-title {
  margin: 0 0 12px;
  font-weight: 600;
}

.panel-lite {
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 16px;
  background: #ffffff;
}

.fleet-item {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.fleet-item .btn {
  padding: 10px 12px;
}

#fleet-add {
  margin-top: 10px;
}

.crew-block {
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 16px;
  background: #ffffff;
}

.btn {
  border: none;
  border-radius: 10px;
  padding: 10px 16px;
  background: var(--accent);
  color: #ffffff;
  cursor: pointer;
  font-size: 0.9rem;
}

.btn.ghost {
  background: #e5e7eb;
  color: var(--ink);
}

.btn.danger {
  background: #dc2626;
}

.btn.disabled,
.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

#add-crew {
  margin-top: 10px;
}

.btn.success {
  background: #22c55e;
}

.btn.time-set {
  color: #16a34a;
  background: #e5e7eb;
  font-weight: 600;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.form-message {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.field-error {
  border-color: #ef4444;
  outline: none;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2);
}

.helicopter-preview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 30px;
  align-items: start;
  padding: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #ffffff;
}

.helicopter-image {
  height: 260px;
  border-radius: 12px;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.helicopter-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.helicopter-name {
  margin: 0;
  font-weight: 600;
  font-size: 1.1rem;
}

.helicopter-sub {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #ffffff;
}

.toggle-title {
  margin: 0;
  font-weight: 600;
}

.toggle-sub {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.switch {
  position: relative;
  width: 54px;
  height: 30px;
  display: inline-flex;
  align-items: center;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  inset: 0;
  background: #ef4444;
  border-radius: 999px;
  transition: background 0.2s ease;
}

.slider::after {
  content: "";
  position: absolute;
  height: 22px;
  width: 22px;
  left: 4px;
  top: 4px;
  background: #ffffff;
  border-radius: 50%;
  transition: transform 0.2s ease;
  box-shadow: 0 2px 6px rgba(17, 24, 39, 0.2);
}

.switch input:checked + .slider {
  background: #22c55e;
}

.switch input:checked + .slider::after {
  transform: translateX(24px);
}

.panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 20px;
}

.panel-head h2 {
  margin: 0;
  font-size: 1.5rem;
}

.panel-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 18px;
}

.stat-card {
  background: #f9fafb;
  border-radius: 18px;
  padding: 18px;
  box-shadow: inset 0 0 0 1px rgba(20, 25, 30, 0.08);
  animation: rise 0.6s ease forwards;
  opacity: 0;
}

.stat-card:nth-child(2) { animation-delay: 0.1s; }
.stat-card:nth-child(3) { animation-delay: 0.2s; }
.stat-card:nth-child(4) { animation-delay: 0.3s; }

.stat-card h3 {
  margin: 0 0 10px;
  font-size: 1rem;
  color: var(--muted);
}

.stat-value {
  font-size: 2.1rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.mini-chart {
  display: grid;
  grid-auto-flow: column;
  gap: 6px;
  align-items: end;
  height: 64px;
}

.mini-chart span {
  display: block;
  width: 100%;
  border-radius: 10px 10px 4px 4px;
  background: #9ca3af;
  height: calc(var(--bar) * 100%);
}

.progress {
  position: relative;
  height: 14px;
  border-radius: 999px;
  background: rgba(20, 25, 30, 0.08);
  overflow: hidden;
}

.progress span {
  display: block;
  height: 100%;
  width: calc(var(--progress) * 100%);
  background: #9ca3af;
  color: #111827;
  font-size: 0.75rem;
  text-align: right;
  padding-right: 8px;
  line-height: 14px;
}

.progress.landing span {
  background: #6b7280;
  color: #f9fafb;
}

.webcam-embed {
  position: relative;
  width: 100%;
  padding-top: 100%;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(20, 25, 30, 0.08);
  background: #e5e7eb;
}

.webcam-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.data-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.data-card h3 {
  margin: 0 0 6px;
}

.data-sub {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.9rem;
}

.data-box {
  margin: 0;
  padding: 12px;
  border-radius: 12px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.9rem;
  font-weight: 700;
  white-space: pre-wrap;
}

.briefing-viewer {
  margin-top: 12px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  overflow: hidden;
  background: #f9fafb;
  height: 560px;
}

.briefing-viewer iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.summary-box {
  margin-top: 16px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
}

.summary-title {
  margin: 0 0 6px;
  font-weight: 600;
}

.summary-text {
  margin: 0;
  color: var(--muted);
}

.flight-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.flight-panel {
  background: #ffffff;
}

.flight-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.flight-meta {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.flight-summary {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 12px;
  background: #f9fafb;
  margin-bottom: 16px;
}

.summary-rows {
  display: grid;
  gap: 8px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.95rem;
}

.report-section {
  margin-bottom: 24px;
}

.report-section pre {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 12px;
  overflow-x: auto;
  font-size: 0.85rem;
}

.summary-text.ok {
  color: #16a34a;
  font-weight: 600;
}

.summary-text.missing {
  color: #dc2626;
  font-weight: 600;
}

.is-hidden {
  display: none;
}


.power-value.mcp {
  color: #15803d;
}

.power-value.mtp {
  color: #b91c1c;
}

.power-chart {
  margin-top: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 12px;
  background: #ffffff;
}

.power-legend {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 0.9rem;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.legend-item::before {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: #9ca3af;
}

.legend-item.mcp::before {
  background: #bbf7d0;
  border: 1px solid #15803d;
}

.legend-item.mtp::before {
  background: #fecaca;
  border: 1px solid #b91c1c;
}

.power-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.power-table th,
.power-table td {
  border: 1px solid #e5e7eb;
  padding: 6px 8px;
  text-align: center;
}

.power-table th {
  background: #f9fafb;
  font-weight: 600;
}

.power-table td.mcp-active {
  background: #bbf7d0;
}

.power-table td.full-throttle {
  background: #fed7aa;
  color: #92400e;
  font-weight: 700;
  font-size: 0.75rem;
}

.vne-chart {
  margin-top: 18px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 12px;
  background: #ffffff;
}

.vne-value {
  color: #1f2937;
  font-weight: 700;
}

.vne-value.active {
  color: #1d4ed8;
}

.vne-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  margin-top: 10px;
}

.vne-table th,
.vne-table td {
  border: 1px solid #e5e7eb;
  padding: 6px 8px;
  text-align: center;
}

.vne-table th {
  background: #f9fafb;
  font-weight: 600;
}

.vne-table td.vne-active {
  background: #bfdbfe;
}

.vne-table td.no-flight {
  background: #fee2e2;
  color: #991b1b;
  font-weight: 700;
}


.fuel-layout {
  display: flex;
  align-items: flex-end;
  gap: 20px;
}

.fuel-table-wrap {
  overflow-x: auto;
  max-width: 50%;
}

.fuel-total {
  width: fit-content;
  font-weight: 700;
  font-size: 1.1rem;
}

.fuel-total span + span {
  margin-left: 10px;
}

.fuel-split {
  margin-top: 12px;
  display: grid;
  gap: 8px;
  max-width: 50%;
}

.fuel-split-item {
  display: flex;
  justify-content: space-between;
  padding: 8px 10px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #ffffff;
  font-weight: 600;
}

.wb-table-wrap {
  overflow-x: auto;
}

.wb-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.wb-table th,
.wb-table td {
  border: 1px solid #111827;
  padding: 6px 8px;
  text-align: center;
}

.wb-table th:first-child,
.wb-table td:first-child {
  text-align: left;
}

.wb-table thead th {
  background: #d1d5db;
  font-weight: 700;
}

.wb-title {
  text-align: left;
}

.wb-table .cell-white input {
  width: 100%;
  border: none;
  background: #ffffff;
  font-size: 0.9rem;
  text-align: center;
}

.wb-table .cell-white input:focus {
  outline: 2px solid #9ca3af;
}

.wb-table .cell-white input[readonly] {
  pointer-events: none;
  cursor: default;
  outline: none;
}

.fuel-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.fuel-table th,
.fuel-table td {
  border: 1px solid #111827;
  padding: 8px 10px;
  text-align: center;
}

.fuel-table th:first-child,
.fuel-table td:first-child {
  text-align: left;
}

.fuel-table thead th {
  background: #d1d5db;
  font-weight: 700;
}

.cell-grey {
  background: #d1d5db;
  font-weight: 600;
}

.cell-dark {
  background: #111827;
}

.cell-white input {
  width: 100%;
  border: none;
  background: #ffffff;
  font-size: 0.95rem;
  text-align: center;
}

.cell-white input:focus {
  outline: 2px solid #9ca3af;
}

.row-divider td {
  background: #111827;
  color: #ffffff;
  font-weight: 700;
  text-transform: none;
}

.checklist {
  display: grid;
  gap: 10px;
}

.check-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
}

.check-item-link span {
  flex: 1;
}

.check-link {
  border: 1px solid #d1d5db;
  background: #f3f4f6;
  color: #111827;
  text-decoration: none;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 0.82rem;
  line-height: 1;
  cursor: pointer;
}

.check-link:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.check-input {
  width: 18px;
  height: 18px;
}

.check-item.checked {
  background: #dcfce7;
  border-color: #86efac;
}

.check-input:disabled + span {
  color: var(--muted);
}

.preflight-status {
  margin-bottom: 18px;
}

.preflight-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.preflight-groups {
  display: grid;
  gap: 22px;
}

.preflight-group {
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 16px;
  background: #f9fafb;
}

.group-head {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
}

.group-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  cursor: pointer;
}

.section-head h4 {
  margin: 0;
}

.section-sub {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.section-figure {
  margin: 0;
  text-align: right;
  min-width: 140px;
}

.section-figure img {
  width: 260px;
  height: 170px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
}

.section-figure figcaption {
  margin-top: 4px;
}

.preflight-grid {
  display: grid;
  gap: 18px;
}

.preflight-section {
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 14px 16px;
  background: #ffffff;
}

.preflight-section.completed {
  background: #dcfce7;
  border-color: #86efac;
}

.preflight-section .checklist {
  display: none;
}

.preflight-section.open .checklist {
  display: grid;
}

.preflight-section h3 {
  margin: 0 0 12px;
}

@media (min-width: 980px) {
  .preflight-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .section-figure {
    text-align: left;
  }
}

body.warning {
  position: relative;
}

body.warning::before {
  content: "";
  position: fixed;
  inset: 8px;
  border: 24px solid transparent;
  border-radius: 16px;
  pointer-events: none;
  background: repeating-linear-gradient(
    45deg,
    #facc15 0 8px,
    #111827 8px 16px
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}


.embed-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

figcaption {
  color: var(--muted);
  font-size: 0.85rem;
}

@keyframes rise {
  from {
    transform: translateY(14px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (max-width: 720px) {
  .topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 28px 24px 10px;
  }

  .tabs {
    padding: 0 24px 10px;
  }

  .content {
    padding: 10px 24px 50px;
  }

  .title-wrap h1 {
    font-size: 2.1rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .fuel-table-wrap {
    max-width: 100%;
  }

  .fuel-layout {
    flex-direction: column;
    align-items: flex-start;
  }

  .fuel-split {
    max-width: 100%;
  }
}

.report-page .tabs {
  margin-bottom: 6px;
}

.report-panel {
  padding: 24px;
}

.report-head {
  align-items: center;
}

.report-layout {
  display: grid;
  gap: 18px;
}

@media (min-width: 1100px) {
  .report-layout {
    grid-template-columns: 1fr 1fr;
  }
}

.report-section {
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 14px 16px;
  background: #ffffff;
  page-break-inside: avoid;
}

.report-section h2,
.report-section h3,
.report-section h4 {
  margin: 0 0 10px;
}

.report-section h4 {
  margin-top: 12px;
  font-size: 1rem;
}

.report-section .summary-rows {
  gap: 6px;
}

.report-section .summary-row strong {
  font-weight: 600;
}

.report-section .power-chart,
.report-section .vne-chart {
  margin-top: 12px;
}

.report-section .power-table,
.report-section .vne-table,
.report-section .wb-table {
  font-size: 0.75rem;
}

.report-section .power-table th,
.report-section .power-table td,
.report-section .vne-table th,
.report-section .vne-table td,
.report-section .wb-table th,
.report-section .wb-table td {
  padding: 4px 6px;
}

@page {
  size: A4 landscape;
  margin: 10mm;
}

@media print {
  .report-layout {
    grid-template-columns: 1fr 1fr;
  }

  body {
    background: #ffffff;
  }

  .topbar,
  .tabs,
  .account-button,
  .report-head button {
    display: none !important;
  }

  .content {
    padding: 0;
  }

  .panel {
    box-shadow: none;
    border-radius: 0;
    padding: 0;
  }

  .report-section {
    border-color: #d1d5db;
  }
}

.report-content {
  max-width: 1200px;
}

.report-layout {
  display: grid;
  gap: 18px;
}

@media (min-width: 1100px) {
  .report-layout {
    grid-template-columns: 1fr 1fr;
  }
}

.span-2 {
  grid-column: 1 / -1;
}

.report-hero {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.hero-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.hero-sub {
  margin: 6px 0 0;
  color: var(--muted);
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
  min-width: 280px;
}

.hero-meta div {
  display: grid;
  gap: 4px;
  padding: 8px 10px;
  background: #ffffff;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  font-size: 0.9rem;
}

.hero-meta span {
  color: var(--muted);
  font-size: 0.8rem;
}

.hero-line {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  font-size: 0.9rem;
}

.report-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.report-card {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 10px 12px;
  background: #ffffff;
}

.report-card h4 {
  margin: 0 0 8px;
  font-size: 0.95rem;
}

.report-card p {
  margin: 0 0 6px;
  font-size: 0.9rem;
}

.mini-bars {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.mini-bar-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.85rem;
  margin-bottom: 4px;
}

.mini-bar-track {
  height: 10px;
  border-radius: 999px;
  background: #e5e7eb;
  overflow: hidden;
}

.mini-bar-track span {
  display: block;
  height: 100%;
  background: #111827;
}

.page-break {
  break-before: page;
}

@media print {
  .report-layout {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .span-2 {
    grid-column: 1 / -1;
  }

  .report-card,
  .report-section {
    page-break-inside: avoid;
    break-inside: avoid;
  }

  .page-break {
    break-before: page;
  }
}


.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
}

.status-chip.ok {
  background: #dcfce7;
  color: #166534;
}

.status-chip.warn {
  background: #fee2e2;
  color: #991b1b;
}

.print-header,
.print-footer {
  display: none;
}

.print-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 6mm 10mm 4mm;
  border-bottom: 1px solid #e5e7eb;
  background: #ffffff;
  z-index: 10;
  font-size: 0.85rem;
}

.print-header-left {
  display: flex;
  gap: 10px;
  align-items: center;
}

.print-header-left span {
  color: #6b7280;
}

.print-header-right {
  float: right;
  color: #6b7280;
}

.print-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 3mm 10mm 5mm;
  border-top: 1px solid #e5e7eb;
  background: #ffffff;
  font-size: 0.8rem;
  display: flex;
  justify-content: space-between;
}

.print-page::after {
  content: "Seite " counter(page);
}

@media print {
  body {
    counter-reset: page;
  }

  .print-header,
  .print-footer {
    display: block;
  }

  .report-page .content {
    padding-top: 20mm;
    padding-bottom: 16mm;
  }
}
