/*
 * FunkLogbuch Design System
 * Field Manual / Signal Desk · standalone CSS export
 *
 * Usage: include this file after a reset and use the documented class names.
 * Fonts are intentionally declared with local/system fallbacks; load web fonts
 * separately only when the deployment policy permits it.
 */

:root {
  --fl-base-size: 15px;
  --fl-paper: #f1efe9;
  --fl-paper-card: #faf9f5;
  --fl-paper-muted: #e4e6e6;
  --fl-graphite: #19212a;
  --fl-night: #15212a;
  --fl-slate: #27343c;
  --fl-ink: #202a31;
  --fl-ink-soft: #6b7175;
  --fl-line: #d9dbd8;
  --fl-line-dark: rgba(255, 255, 255, .08);
  --fl-amber: #f2b84b;
  --fl-amber-soft: #f6ca6d;
  --fl-coral: #cb7063;
  --fl-green: #8dcb88;
  --fl-blue: #7fa1ae;
  --fl-radius: 2px;
  --fl-shadow: 0 8px 22px rgba(40, 48, 48, .035);
  --fl-display: "Space Grotesk", "Segoe UI", sans-serif;
  --fl-body: "IBM Plex Sans", "Segoe UI", sans-serif;
  --fl-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
}

/* Foundation */
.fl-page {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background: var(--fl-paper);
  color: var(--fl-ink);
  font-size: var(--fl-base-size);
  font-family: var(--fl-body);
  -webkit-font-smoothing: antialiased;
}

.fl-page *, .fl-page *::before, .fl-page *::after { box-sizing: border-box; }
.fl-page button, .fl-page input, .fl-page select, .fl-page textarea { font: inherit; }
.fl-page button { border: 0; }
.fl-page button:focus-visible, .fl-page a:focus-visible, .fl-page input:focus-visible,
.fl-page select:focus-visible, .fl-page textarea:focus-visible {
  outline: 2px solid var(--fl-amber);
  outline-offset: 3px;
}

.fl-mono { font-family: var(--fl-mono); letter-spacing: -.03em; }
.fl-label, .fl-eyebrow {
  color: #7a8488;
  font: 500 9px/1.2 var(--fl-mono);
  letter-spacing: .14em;
  text-transform: uppercase;
}
.fl-eyebrow { display: flex; align-items: center; gap: 8px; }
.fl-eyebrow::before {
  width: 6px;
  height: 6px;
  display: inline-block;
  background: var(--fl-amber);
  clip-path: polygon(50% 0, 100% 40%, 78% 100%, 19% 86%, 0 32%);
  content: "";
}
.fl-eyebrow--light { color: #c4c7bd; }
.fl-eyebrow--light::before { background: var(--fl-amber); }

/* Asymmetric application frame */
.fl-frame { display: flex; min-height: 100vh; background: var(--fl-paper); }
.fl-sidebar {
  width: 258px;
  min-width: 258px;
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--fl-graphite);
  color: #eef0eb;
  border-right: 1px solid rgba(255, 255, 255, .07);
}
.fl-sidebar__top { padding: 26px 22px 24px; border-bottom: 1px solid var(--fl-line-dark); }
.fl-sidebar__scroll { flex: 1; padding: 25px 12px; overflow-y: auto; }
.fl-sidebar__bottom { padding: 15px 12px 18px; border-top: 1px solid var(--fl-line-dark); }
.fl-nav-group + .fl-nav-group { margin-top: 26px; }
.fl-nav-label { padding: 0 12px 10px; color: #71808a; font: 500 9px/1 var(--fl-mono); letter-spacing: .16em; text-transform: uppercase; }
.fl-nav-item {
  width: 100%;
  min-height: 39px;
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  color: #aeb9bc;
  background: transparent;
  border-radius: var(--fl-radius);
  text-align: left;
  transition: color .18s, background .18s, transform .18s;
}
.fl-nav-item:hover { color: #f4f5ee; background: rgba(255, 255, 255, .06); transform: translateX(2px); }
.fl-nav-item--active { color: #fff9e8; background: #29353e; }
.fl-nav-item--active::before { width: 3px; height: 17px; position: absolute; left: 0; top: 11px; background: var(--fl-amber); content: ""; }

/* Brand mark */
.fl-brand { display: flex; align-items: center; gap: 11px; }
.fl-brand__mark {
  width: 36px;
  height: 36px;
  position: relative;
  display: grid;
  place-items: center;
  color: var(--fl-graphite);
  background: var(--fl-amber);
  clip-path: polygon(50% 0, 94% 24%, 82% 84%, 31% 100%, 4% 57%);
}
.fl-brand__mark::after { width: 21px; height: 2px; position: absolute; left: 8px; bottom: 9px; background: var(--fl-graphite); opacity: .65; transform: rotate(-18deg); content: ""; }
.fl-brand__name { color: #fffdf8; font: 600 17px/1 var(--fl-display); letter-spacing: -.04em; }
.fl-brand__name span { color: #cbd1cc; font-weight: 400; }
.fl-brand__sub { margin-top: 6px; color: #849198; font: 500 8px/1.4 var(--fl-mono); letter-spacing: .18em; }

/* Header and content */
.fl-main { min-width: 0; flex: 1; }
.fl-topbar {
  min-height: 76px;
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 42px;
  background: rgba(241, 239, 233, .92);
  border-bottom: 1px solid #dcdedb;
  backdrop-filter: blur(16px);
}
.fl-breadcrumb { display: flex; align-items: center; gap: 9px; color: #91999b; font: 11px var(--fl-mono); }
.fl-breadcrumb strong { color: #323b42; font-weight: 500; }
.fl-topbar__actions { display: flex; align-items: center; gap: 12px; }
.fl-content { max-width: 1390px; margin: 0 auto; padding: 36px 28px 64px; }
.fl-page-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; padding-bottom: 37px; }
.fl-page-header h1 { margin: 10px 0; color: var(--fl-ink); font: 600 clamp(31px, 4vw, 48px)/1.05 var(--fl-display); letter-spacing: -.055em; }
.fl-page-header p { max-width: 650px; margin: 0; color: #70787c; font-size: 15px; line-height: 1.65; }

/* Buttons and status */
.fl-button { min-height: 39px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 0 15px; border-radius: var(--fl-radius); font-size: 12px; font-weight: 600; white-space: nowrap; transition: transform .16s, background .18s, color .18s, border-color .18s; }
.fl-button:active { transform: scale(.97); }
.fl-button--primary { color: #1d252d; background: var(--fl-amber); box-shadow: 0 6px 16px rgba(179, 127, 41, .14); }
.fl-button--primary:hover { background: var(--fl-amber-soft); }
.fl-button--outline { color: #465157; background: transparent; border: 1px solid #bdc3c1; }
.fl-button--outline:hover { color: #202b33; background: #e4e6e1; border-color: #9da9a9; }
.fl-button--dark { color: #f4f1e7; background: #27333b; }
.fl-button--dark:hover { background: #33424d; }
.fl-status-dot { width: 6px; height: 6px; display: inline-block; border-radius: 50%; background: var(--fl-green); box-shadow: 0 0 0 3px rgba(141, 203, 136, .12); }
.fl-status-strip { min-height: 42px; display: flex; align-items: center; gap: 17px; padding: 0 17px; color: #acb8b9; background: var(--fl-slate); font: 10px var(--fl-mono); }
.fl-status-strip__divider { width: 1px; height: 13px; background: #536066; }

/* Hero / operational desk */
.fl-hero { min-height: 418px; position: relative; display: flex; align-items: flex-end; overflow: hidden; padding: 52px 56px; isolation: isolate; color: #edf0e9; background: var(--fl-night); }
.fl-hero::before { position: absolute; inset: 0; z-index: -2; background: linear-gradient(90deg, rgba(11, 20, 27, .96), rgba(14, 24, 31, .82) 42%, rgba(12, 21, 27, .15)), linear-gradient(0deg, rgba(10, 17, 23, .55), transparent 55%); content: ""; }
.fl-hero::after { position: absolute; inset: 0; z-index: -1; opacity: .18; background-image: linear-gradient(rgba(213, 228, 217, .16) 1px, transparent 1px), linear-gradient(90deg, rgba(213, 228, 217, .16) 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(90deg, #000, transparent 80%); content: ""; pointer-events: none; }
.fl-hero__copy { max-width: 700px; }
.fl-hero h1 { max-width: 680px; margin: 18px 0 17px; color: #f3f2eb; font: 500 clamp(35px, 4.5vw, 65px)/.99 var(--fl-display); letter-spacing: -.065em; }
.fl-hero p { max-width: 585px; margin: 0 0 25px; color: #bec8c8; font-size: 15px; line-height: 1.6; }
.fl-hero__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.fl-hero__meta { position: absolute; right: 53px; bottom: 45px; display: flex; flex-direction: column; gap: 7px; padding-left: 13px; border-left: 1px solid rgba(242, 184, 75, .55); color: #abb9b9; font: 9px/1.15 var(--fl-mono); }
.fl-hero__meta span:first-child { color: #f2c971; }

/* Cards, modules, metrics */
.fl-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 21px 0; }
.fl-metric, .fl-card { background: var(--fl-paper-card); border: 1px solid #d8dbd7; box-shadow: var(--fl-shadow); }
.fl-metric { min-height: 135px; position: relative; padding: 20px; }
.fl-metric::after { width: 34px; height: 3px; position: absolute; top: 0; right: 0; background: #d9dee0; content: ""; }
.fl-metric--amber::after { background: var(--fl-amber); }
.fl-metric--blue::after { background: var(--fl-blue); }
.fl-metric--coral::after { background: var(--fl-coral); }
.fl-metric__label { color: #778184; font: 10px var(--fl-mono); letter-spacing: .08em; text-transform: uppercase; }
.fl-metric strong { display: block; margin-top: 15px; color: #222d34; font: 500 34px/1 var(--fl-display); letter-spacing: -.06em; }
.fl-card { padding: 20px; }
.fl-card__heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.fl-card__heading h2 { margin: 8px 0 0; color: #263139; font: 500 24px/1.1 var(--fl-display); letter-spacing: -.045em; }
.fl-ruler { display: flex; align-items: center; justify-content: space-between; padding-bottom: 12px; margin-bottom: 19px; border-bottom: 1px solid #dfe2dd; color: #a0a7a5; font: 8px var(--fl-mono); letter-spacing: .1em; text-transform: uppercase; }
.fl-ruler span:first-child { color: #a67728; }
.fl-dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(270px, .75fr); gap: 21px; }

/* Forms and dense tables */
.fl-form-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px 13px; }
.fl-field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.fl-field--span-2 { grid-column: span 2; }
.fl-field--span-4 { grid-column: 1 / -1; }
.fl-field label { color: #a8b0b0; font: 9px var(--fl-mono); letter-spacing: .11em; text-transform: uppercase; }
.fl-field input, .fl-field select, .fl-field textarea { width: 100%; min-height: 40px; padding: 0 11px; color: #e8ece6; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .17); border-radius: var(--fl-radius); }
.fl-field textarea { min-height: 94px; padding-top: 10px; resize: vertical; }
.fl-field input::placeholder, .fl-field textarea::placeholder { color: #718083; }
.fl-table { width: 100%; border-top: 1px solid #e1e4df; }

/* Accessibility & readability tweaks for light-content areas */
.content-area .fl-field input,
.content-area .fl-field select,
.content-area .fl-field textarea,
.card .fl-field input,
.card .fl-field select,
.card .fl-field textarea,
.content-area .button,
.card .button {
  color: var(--fl-ink);
  background: var(--fl-paper-card);
  border: 1px solid var(--fl-line);
}
.content-area .fl-field input::placeholder,
.card .fl-field input::placeholder,
.content-area .fl-field textarea::placeholder,
.card .fl-field textarea::placeholder { color: #8b8f8f; }

/* Ensure tables scroll on small screens */
.fl-table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 6px; }
.fl-table { min-width: 600px; border-collapse: collapse; width: 100%; }
.fl-table th, .fl-table td { padding: 10px 8px; text-align: left; vertical-align: middle; }
.fl-table th { font: 10px var(--fl-mono); color: #8f9b98; text-transform: uppercase; letter-spacing: .08em; }
.fl-table td { border-bottom: 1px solid #e6e8e4; color: #273139; }

/* Improve button contrast and hover states for legacy `.button` */
.button.primary { background: var(--fl-amber); color: #1d252d; box-shadow: 0 6px 12px rgba(0,0,0,0.06); }
.button.primary:hover { background: var(--fl-amber-soft); }
.button.secondary:hover { background: #f5f6f4; }

/* Focus ring consistency */
.button:focus-visible, .fl-button:focus-visible { outline: 3px solid rgba(242,184,75,0.25); outline-offset: 2px; }

/* Improve page copy contrast */
.fl-content, .content-area { color: var(--fl-ink); font-size: 15px; line-height: 1.6; }


/* Compatibility layer for legacy HTML class names used in the project
   Maps older class names (app-shell, sidebar, card, etc.) to the
   design system tokens so pages keep a clean layout after the
   stylesheet switch. */
.app-shell { display: flex; min-height: 100vh; background: var(--fl-paper); color: var(--fl-ink); }
.sidebar {
  width: 258px;
  min-width: 258px;
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--fl-graphite);
  color: #eef0eb;
  padding: 0; /* inner padding moved to brand/nav sections for consistent scrolling */
  box-sizing: border-box;
  border-right: 1px solid rgba(255,255,255,0.06);
}

/* Enforce sidebar layout in case of conflicting styles */
.app-shell, .sidebar, .sidebar-nav, .brand-box { display: block; }
.app-shell { display: flex !important; }
.sidebar { display: flex !important; flex-direction: column !important; width: 258px !important; min-width: 180px !important; background: var(--fl-graphite) !important; color: #eef0eb !important; }
.brand-box { padding: 18px 16px !important; }
.brand-mark { margin-right: 8px; }
.sidebar-nav > a { display: block !important; padding: 10px 14px !important; color: #cfd8d8 !important; text-decoration: none !important; }
.sidebar-nav > a.active, .sidebar-nav > a:hover { background: rgba(255,255,255,0.06) !important; color: #fffdf8 !important; }
.brand-box { display:flex; gap:10px; align-items:center; padding:22px; }
/* Ensure the main nav area scrolls independently */
.sidebar-nav { margin-top: 0; padding: 12px 14px; flex: 1; overflow-y: auto; }
.brand-mark { width:36px; height:36px; display:grid; place-items:center; background:var(--fl-amber); color:var(--fl-graphite); border-radius:4px; }
.sidebar-group { margin-bottom: 14px; }
.sidebar-group summary { list-style: none; cursor: pointer; padding: 8px 6px; color: #9fb0b3; font-weight: 600; }
.sidebar-group summary::-webkit-details-marker { display: none; }
.sidebar-links { padding-left: 6px; }
.sidebar-links a, .sidebar-nav > a { display:block; padding:8px 10px; color: #cfd8d8; text-decoration:none; border-radius:6px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.sidebar-links a.active, .sidebar-links a:hover, .sidebar-nav > a.active, .sidebar-nav > a:hover { background: rgba(255,255,255,0.06); color: #fffdf8; }
.sidebar-links a:focus-visible { outline: 2px solid rgba(242,184,75,0.18); outline-offset: 2px; }

/* Ensure the brand area stays fixed and doesn't scroll off */
.brand-box { z-index: 3; background: linear-gradient(180deg, rgba(25,33,38,0.02), transparent); }

/* Mobile: show sidebar as overlay when body has .sidebar-open */
body.sidebar-open .sidebar { transform: translateX(0); position: fixed; left: 0; top: 0; height: 100vh; z-index: 9999; box-shadow: 0 12px 40px rgba(10,15,18,0.5); }
body.sidebar-open::after { content: ''; position: fixed; inset: 0; background: rgba(0,0,0,0.35); z-index: 9998; }

/* Toggle button for small screens */
.sidebar-toggle {
  display: none;
  position: fixed;
  left: 12px;
  top: 12px;
  z-index: 10001;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--fl-amber);
  color: #1d252d;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 20px rgba(0,0,0,0.18);
}
.sidebar-toggle:focus { outline: 2px solid rgba(0,0,0,0.12); }

@media (max-width: 680px) {
  .sidebar-toggle { display: grid; }
}
.content-area { flex: 1; padding: 42px; max-width: 1400px; margin: 0 auto; }
.page-header.card { display:flex; align-items:flex-end; justify-content:space-between; gap:20px; padding-bottom:20px; margin-bottom:22px; background: var(--fl-paper-card); border:1px solid var(--fl-line); }
.card { background: var(--fl-paper-card); border:1px solid var(--fl-line); padding:16px; border-radius:6px; box-shadow: var(--fl-shadow); }
.stats-grid { display:grid; grid-template-columns: repeat(4, 1fr); gap:12px; margin: 18px 0; }
.stat-card { padding:14px; }
.stat-label { color: #6f7a7c; font-size:11px; display:block; }
.header-actions { display:flex; gap:10px; }
.button { display:inline-flex; align-items:center; gap:8px; padding:8px 12px; border-radius:6px; text-decoration:none; }
.button.primary { background:var(--fl-amber); color: #1d252d; }
.button.secondary { background: transparent; border:1px solid #bdc3c1; color:#465157; }
.dashboard-grid { display:grid; grid-template-columns: 1fr 1fr; gap:18px; margin-top:10px; }
.panel h3 { margin-top:0; }
.hero.card.warning { background: linear-gradient(90deg, rgba(242,184,75,0.14), rgba(242,184,75,0.04)); }
.mini-list { margin:10px 0 0 18px; }

/* small responsive tweaks to keep layout readable on narrow viewports */
@media (max-width: 900px) {
  /* Keep sidebar off-canvas instead of display:none so toggle can show it */
  .sidebar { display: block; transform: translateX(-100%); position: fixed; left: 0; top: 0; height: 100vh; z-index: 9999; box-shadow: 0 12px 40px rgba(10,15,18,0.5); background: var(--fl-graphite); }
  .content-area { padding: 18px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .dashboard-grid { grid-template-columns: 1fr; }
}
.fl-table__row { min-height: 48px; display: grid; grid-template-columns: repeat(4, 1fr); align-items: center; gap: 12px; border-bottom: 1px solid #e5e6e2; }
.fl-table__head { color: #9ba3a2; font: 8px var(--fl-mono); letter-spacing: .1em; text-transform: uppercase; }

/* Local profile / settings */
.fl-profile-hero { min-height: 190px; display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; padding: 31px 36px; color: #eef1ea; background: #24343d; background-image: linear-gradient(90deg, rgba(20, 33, 41, .97), rgba(35, 52, 61, .87)), linear-gradient(rgba(214, 230, 221, .14) 1px, transparent 1px), linear-gradient(90deg, rgba(214, 230, 221, .14) 1px, transparent 1px); background-size: auto, 32px 32px, 32px 32px; }
.fl-profile-hero h2 { margin: 14px 0 8px; color: #f3f1e8; font: 500 43px/1 var(--fl-display); letter-spacing: -.07em; }
.fl-profile-hero p { margin: 0; color: #aebbbc; font-size: 13px; }
.fl-profile-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(280px, .75fr); gap: 21px; }
.fl-storage-card { display: flex; flex-direction: column; gap: 13px; padding: 27px; background: #e3e8e5; }
.fl-storage-card h2 { margin: 0; color: #314149; font: 500 28px/1.03 var(--fl-display); letter-spacing: -.06em; }
.fl-storage-card p { margin: 0 0 5px; color: #778586; font-size: 12px; line-height: 1.65; }
.fl-storage-line { display: flex; justify-content: space-between; padding: 11px 0; border-top: 1px solid #ccd4d0; color: #849090; font: 9px var(--fl-mono); letter-spacing: .1em; }

/* Mini lists and compact panels */
.mini-list-box, .mini-item { padding: 6px 0; }
.mini-item { display:flex; justify-content:space-between; gap:12px; align-items:center; border-bottom:1px dashed rgba(0,0,0,0.03); padding:8px 6px; }

/* Motion */
.fl-nav-item, .fl-button, .fl-card, .fl-table__row { transition-timing-function: cubic-bezier(.23, 1, .32, 1); }
@media (prefers-reduced-motion: reduce) {
  .fl-page *, .fl-page *::before, .fl-page *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Responsive behavior */
@media (max-width: 980px) {
  .fl-sidebar { width: 220px; min-width: 220px; }
  .fl-topbar { padding: 0 25px; }
  .fl-content { padding: 35px 25px 60px; }
  .fl-dashboard-grid, .fl-profile-grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .fl-sidebar { width: 0; min-width: 0; position: fixed; transform: translateX(-100%); }
  .fl-topbar { min-height: 60px; padding: 0 16px; }
  .fl-content { padding: 27px 12px 45px; }
  .fl-page-header { align-items: flex-start; flex-direction: column; gap: 18px; padding-bottom: 25px; }
  .fl-page-header h1 { font-size: 36px; }
  .fl-hero { min-height: 460px; padding: 31px 23px; }
  .fl-hero h1 { font-size: 39px; }
  .fl-hero__meta { right: 23px; bottom: 36px; left: 23px; flex-direction: row; flex-wrap: wrap; gap: 7px 13px; }
  .fl-metrics { grid-template-columns: 1fr 1fr; gap: 8px; }
  .fl-metric { min-height: 112px; padding: 14px 12px; }
  .fl-metric strong { font-size: 27px; }
  .fl-card { padding: 18px 15px; }
  .fl-form-grid { grid-template-columns: 1fr; }
  .fl-field--span-2, .fl-field--span-4 { grid-column: auto; }
  .fl-profile-hero { min-height: 260px; align-items: flex-start; flex-direction: column; padding: 25px 21px; }
  .fl-profile-hero h2 { font-size: 37px; }
}

@media print {
  .fl-sidebar, .fl-topbar, .fl-button, .sidebar-toggle { display: none !important; }
  .fl-main, .fl-content { width: 100%; max-width: none; padding: 8px !important; }
  .fl-card, .fl-profile-hero, .card { box-shadow: none; break-inside: avoid; border: 1px solid #ddd; }
  .fl-table { min-width: auto !important; }
}

/* Print header / footer */
.print-header { display: none; }
.print-header__title { font-weight: 600; font-size: 18px; }
.print-header__meta { color: #666; font-size: 12px; }

/* lightweight button mapping so druckformulare buttons look consistent */
.button { display: inline-block; padding: 6px 10px; border-radius: 4px; background: #2b6cb0; color: #fff; border: 1px solid rgba(0,0,0,0.08); cursor: pointer; margin-right:8px; }
.button.secondary { background: #6b7280; }

@media print {
  body { margin: 12px; }
  .print-header { display:flex; justify-content: space-between; align-items: baseline; padding: 10px 18px; border-bottom: 1px solid #ddd; margin-bottom: 14px; position: fixed; top: 0; left: 0; right: 0; background: #fff; }
  .print-footer { position: fixed; bottom: 0; left: 0; right: 0; text-align: center; font-size: 12px; color: #666; border-top: 1px solid #ddd; padding: 6px 0; }
  /* page-break rules for sheet boxes */
  .sheet-box { break-inside: avoid-column; page-break-inside: avoid; }
  /* hide interactive controls */
  .fl-button, input[type="text"], textarea, select { border: none; box-shadow: none; }
}

/* Evac checklist styles */
.evac-list { list-style: none; margin: 0; padding: 0; }
.evac-list .checklist-item { padding: 8px 6px; border-bottom: 1px dashed rgba(0,0,0,0.05); display:flex; align-items:center; }
.evac-list .checklist-item label { display:flex; align-items:center; gap:10px; width:100%; }
.evac-list .check-text { flex:1; }
.evac-list .checklist-item input[type="checkbox"]{ width:18px; height:18px; }

@media print {
  /* Ensure checklist prints cleanly: show texts, hide controls */
  .evac-list .checklist-item { border-bottom: 1px solid #ddd; }
  [data-add-evac], [data-markall-evac], [data-delete-inventory], .fl-button { display: none !important; }
  #evac-controls input { display: none !important; }
}

/* Toast notifications */
.fl-toast-container { position: fixed; right: 18px; bottom: 18px; display: flex; flex-direction: column; gap: 8px; z-index: 11000; pointer-events: none; }
.fl-toast { pointer-events: auto; background: rgba(39,49,57,0.98); color: #f7f7f5; padding: 10px 14px; border-radius: 8px; box-shadow: 0 8px 22px rgba(24,32,38,0.35); transform: translateY(12px) scale(.98); opacity: 0; transition: transform .28s cubic-bezier(.22,1,.36,1), opacity .18s ease; font-size: 13px; }
.fl-toast--show { transform: translateY(0) scale(1); opacity: 1; }
