:root {
  --accent: #0f766e;
}

html { font-size: 15px; }
body { font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }

.app-nav { background: var(--accent); }

.card { border: none; border-radius: 0.75rem; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.btn-primary { background: var(--accent); border-color: var(--accent); }
.btn-primary:hover, .btn-primary:focus { background: #0b5d57; border-color: #0b5d57; }
.text-accent { color: var(--accent); }

.table > :not(caption) > * > * { padding: 0.6rem 0.5rem; }
.badge-status { font-weight: 500; font-size: 0.78rem; }

.lines-table input, .lines-table select { min-width: 60px; }
.lines-table .form-control, .lines-table .form-select { padding: 0.25rem 0.5rem; font-size: 0.9rem; }

.kpi { font-size: 1.6rem; font-weight: 700; }

/* Live-PDF-Vorschau (Seitenpanel) */
.pdf-preview-panel {
  position: fixed; top: 0; right: 0; height: 100vh;
  width: min(46vw, 700px);
  background: #fff; box-shadow: -6px 0 18px rgba(0,0,0,.18);
  z-index: 1045; display: none; flex-direction: column;
}
.pdf-preview-panel.open { display: flex; }
.pdf-preview-head { display: flex; align-items: center; padding: .6rem 1rem; border-bottom: 1px solid #e9ecef; background: #f8f9fa; }
.pdf-preview-panel iframe { flex: 1; width: 100%; border: 0; background: #525659; }
@media (min-width: 1400px) {
  body.pdf-preview-open main { margin-right: min(46vw, 700px); transition: margin-right .2s; }
}
@media (max-width: 900px) {
  .pdf-preview-panel { width: 100vw; }
}
