/* ═══════════════════════════════════════════════════
   BASE & RESET
═══════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Background layers */
  --bg:       #0d1117;
  --bg2:      #161b22;
  --bg3:      #21262d;
  --bg4:      #2d333b;
  /* Borders */
  --bdr:      #30363d;
  --bdr2:     #444c56;
  /* Text */
  --txt:      #e6edf3;
  --txt2:     #8b949e;
  --txt3:     #6e7681;
  /* Accent */
  --acc:      #2f81f7;
  --acc-h:    #388bfd;
  --acc-bg:   #1c2d3f;
  /* Status */
  --green:    #3fb950;
  --green-bg: #0c2416;
  --red:      #f85149;
  --red-bg:   #2a0c09;
  --yellow:   #d29922;
  --ylw-bg:   #2c1e00;
  --orange:   #e3b341;
  --org-bg:   #2d1f00;
  /* Result colors */
  --rv0:      #f85149; --rv0-bg: rgba(248,81,73,0.15);
  --rv1:      #fb923c; --rv1-bg: rgba(251,146,60,0.15);
  --rvl:      #eab308; --rvl-bg: rgba(234,179,8,0.15);
  --rvo:      #4ade80; --rvo-bg: rgba(74,222,128,0.1);
  --rvg:      #3fb950; --rvg-bg: rgba(63,185,80,0.13);
  /* Geometry */
  --r:        10px;
  --r-sm:     6px;
  --r-xs:     4px;
  --shadow:   0 8px 32px rgba(0,0,0,0.5);
  /* Typography */
  --font:     'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono:     'JetBrains Mono', 'Fira Code', monospace;
}

html { font-size: 16px; scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--txt);
  font-family: var(--font);
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
button { font-family: var(--font); }
input  { font-family: var(--font); }

/* ═══════════════════════════════════════════════════
   UTILITIES
═══════════════════════════════════════════════════ */
.hidden { display: none !important; }

@keyframes fadeIn    { from { opacity:0; }                     to { opacity:1; } }
@keyframes slideDown { from { opacity:0; transform:translateY(-10px); } to { opacity:1; transform:translateY(0); } }
@keyframes pulse     { 0%,100%{ box-shadow: 0 0 0 0 rgba(47,129,247,.4); }
                       50%    { box-shadow: 0 0 0 8px rgba(47,129,247,0); } }

/* ═══════════════════════════════════════════════════
   LOGIN SCREEN
═══════════════════════════════════════════════════ */
#login-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: radial-gradient(ellipse at 30% 20%, #1a2f4e 0%, #0d1117 65%);
  display: flex; align-items: center; justify-content: center;
  animation: fadeIn 0.4s ease;
}

.login-card {
  background: var(--bg2);
  border: 1px solid var(--bdr);
  border-radius: 18px;
  padding: 2.5rem 2.25rem;
  width: 100%; max-width: 400px;
  box-shadow: var(--shadow), 0 0 60px rgba(47,129,247,0.08);
  animation: slideDown 0.4s ease;
}

.login-brand {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 1.5rem;
}
.brand-icon {
  font-size: 2rem; width: 54px; height: 54px;
  background: linear-gradient(145deg, #2563eb, #1e40af);
  border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 24px rgba(37,99,235,0.35);
  animation: pulse 3s infinite;
}
.brand-title { font-size: 1.3rem; font-weight: 800; letter-spacing: -0.02em; }
.brand-sub   { font-size: 0.75rem; color: var(--txt2); font-weight: 400; }

.login-hint {
  color: var(--txt2); font-size: 0.82rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--bdr);
  margin-bottom: 1.5rem;
}

.field-wrap { display: flex; flex-direction: column; gap: 5px; margin-bottom: 0.85rem; }
.field-wrap label {
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--txt2);
}
.field-wrap input {
  background: var(--bg3); border: 1px solid var(--bdr2);
  border-radius: var(--r-sm); color: var(--txt);
  padding: 10px 14px; font-size: 1rem; outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field-wrap input:focus {
  border-color: var(--acc);
  box-shadow: 0 0 0 3px rgba(47,129,247,0.2);
}

.pw-error {
  color: var(--red); font-size: 0.8rem;
  background: var(--red-bg); border: 1px solid rgba(248,81,73,0.3);
  border-radius: var(--r-sm); padding: 8px 12px;
  margin-bottom: 0.85rem;
}

.btn-login {
  width: 100%;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff; border: none; border-radius: var(--r-sm);
  padding: 12px; font-size: 0.95rem; font-weight: 600;
  cursor: pointer; transition: all 0.2s;
  box-shadow: 0 2px 16px rgba(37,99,235,0.35);
}
.btn-login:hover {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(37,99,235,0.5);
}
.btn-login:active { transform: translateY(0); }

/* ═══════════════════════════════════════════════════
   HEADER
═══════════════════════════════════════════════════ */
.app-header {
  position: sticky; top: 0; z-index: 200;
  background: rgba(13,17,23,0.88);
  backdrop-filter: blur(14px) saturate(1.8);
  border-bottom: 1px solid var(--bdr);
  height: 58px;
  display: flex; align-items: center;
  padding: 0 1.5rem; gap: 1rem;
}
.hdr-brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.hdr-icon  { font-size: 1.4rem; }
.hdr-title { font-size: 1rem; font-weight: 700; line-height: 1.2; }
.hdr-sub   { font-size: 0.65rem; color: var(--txt2); }
.hdr-clock {
  flex: 1; text-align: center;
  font-family: var(--mono); font-size: 0.78rem; color: var(--txt2);
  letter-spacing: 0.02em;
}
.hdr-right { flex-shrink: 0; }
.back-link {
  color: var(--acc); text-decoration: none; font-size: 0.82rem; font-weight: 600;
  padding: 4px 10px; border: 1px solid var(--acc-bg); border-radius: var(--r-xs);
  transition: all 0.2s; white-space: nowrap;
}
.back-link:hover { background: var(--acc-bg); }
.hdr-sep { color: var(--bdr2); margin: 0 4px; }

/* ═══════════════════════════════════════════════════
   BUTTONS (reusable)
═══════════════════════════════════════════════════ */
.btn-primary {
  display: inline-flex; align-items: center; gap: 7px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff; border: none; border-radius: var(--r-sm);
  padding: 10px 20px; font-size: 0.88rem; font-weight: 600;
  cursor: pointer; white-space: nowrap;
  transition: all 0.2s;
  box-shadow: 0 2px 12px rgba(37,99,235,0.3);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(37,99,235,0.5);
}
.btn-primary:active { transform: translateY(0); }

.btn-success {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--green-bg); color: var(--green);
  border: 1px solid rgba(63,185,80,0.4); border-radius: var(--r-sm);
  padding: 8px 16px; font-size: 0.82rem; font-weight: 600;
  cursor: pointer; transition: all 0.2s; white-space: nowrap;
}
.btn-success:hover { background: rgba(63,185,80,0.2); border-color: var(--green); }

.btn-ghost-sm {
  background: transparent; color: var(--txt2);
  border: 1px solid var(--bdr2); border-radius: var(--r-sm);
  padding: 6px 12px; font-size: 0.78rem;
  cursor: pointer; transition: all 0.2s; white-space: nowrap;
}
.btn-ghost-sm:hover { color: var(--txt); border-color: var(--bdr); background: var(--bg3); }

/* ═══════════════════════════════════════════════════
   MAIN LAYOUT
═══════════════════════════════════════════════════ */
.main-wrap {
  max-width: 1440px; margin: 0 auto;
  padding: 1.25rem;
  display: flex; flex-direction: column; gap: 1rem;
}

.card {
  background: var(--bg2);
  border: 1px solid var(--bdr);
  border-radius: var(--r);
  overflow: hidden;
}

.card-hdr {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
  padding: 0.9rem 1.25rem;
  border-bottom: 1px solid var(--bdr);
}
.card-hdr h2 { font-size: 0.9rem; font-weight: 600; }

/* ═══════════════════════════════════════════════════
   CONTROL CARD
═══════════════════════════════════════════════════ */
.ctrl-card { padding: 1.25rem; }

.ctrl-top {
  display: flex; align-items: flex-end;
  gap: 1.25rem; flex-wrap: wrap;
}

.shift-group { display: flex; flex-direction: column; gap: 4px; }

.ctrl-lbl {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.07em;
  text-transform: uppercase; color: var(--txt2);
}

.shift-sel {
  background: var(--bg3); border: 1px solid var(--bdr2);
  border-radius: var(--r-sm); color: var(--txt);
  padding: 9px 40px 9px 12px;
  font-size: 0.9rem; font-weight: 500; font-family: var(--font);
  cursor: pointer; outline: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238b949e' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.shift-sel:focus { border-color: var(--acc); box-shadow: 0 0 0 3px rgba(47,129,247,0.15); }
.shift-sel option { background: var(--bg3); }

.shift-hint {
  font-size: 0.69rem; color: var(--txt3); font-style: italic;
  margin-top: 2px; letter-spacing: 0.01em;
}

/* Round-Times Grid */
.round-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 8px; margin-top: 1rem;
}
.round-card {
  background: var(--bg3); border: 1px solid var(--bdr);
  border-radius: var(--r-sm); padding: 8px 12px;
}
.r-label {
  font-size: 0.65rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--txt3);
}
.r-time {
  font-family: var(--mono); font-size: 0.8rem; color: var(--acc);
  margin-top: 2px;
}

/* ═══════════════════════════════════════════════════
   TRANSITION BANNER
═══════════════════════════════════════════════════ */
.trans-banner {
  display: flex; align-items: flex-start; gap: 1rem;
  padding: 1.25rem;
  border-color: rgba(227,179,65,0.35);
  background: linear-gradient(135deg, rgba(44,30,0,0.6), var(--bg2));
  animation: slideDown 0.35s ease;
}
.trans-icon { font-size: 1.6rem; flex-shrink: 0; }
.trans-body { flex: 1; min-width: 0; }
.trans-body strong { color: var(--orange); font-size: 0.88rem; }
.trans-body p { font-size: 0.79rem; color: var(--txt2); margin-top: 5px; line-height: 1.55; }
.trans-btns { display: flex; flex-direction: column; gap: 6px; flex-shrink: 0; align-items: flex-end; }

/* ═══════════════════════════════════════════════════
   EMPLOYEE TABLE
═══════════════════════════════════════════════════ */
.emp-stats { display: flex; gap: 7px; flex-wrap: wrap; }
.stat-badge {
  font-size: 0.69rem; font-weight: 600; padding: 3px 10px;
  border-radius: 99px; letter-spacing: 0.04em; white-space: nowrap;
}
.s-green { background: var(--green-bg); color: var(--green);  border: 1px solid rgba(63,185,80,0.3); }
.s-red   { background: var(--red-bg);   color: var(--red);    border: 1px solid rgba(248,81,73,0.3); }
.s-gray  { background: var(--bg3);      color: var(--txt2);   border: 1px solid var(--bdr); }

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ── Employee Table ── */
.emp-table {
  width: 100%; min-width: 520px;
  border-collapse: collapse; font-size: 0.83rem;
}
.emp-table thead th {
  background: var(--bg3); color: var(--txt2);
  font-size: 0.67rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase;
  padding: 8px 12px; text-align: left;
  border-bottom: 1px solid var(--bdr);
  white-space: nowrap; position: sticky; top: 0; z-index: 1;
}
.emp-table tbody td {
  padding: 7px 12px; border-bottom: 1px solid rgba(48,54,61,0.55);
  vertical-align: middle;
}
.emp-table tbody tr:last-child td { border-bottom: none; }
.emp-table tbody tr:hover td { background: rgba(33,38,45,0.5); }

/* excluded by shift model */
.emp-table tbody tr.excluded { opacity: 0.3; pointer-events: none; }

/* absent row tint */
.emp-table tbody tr.absent td { background: rgba(248,81,73,0.04); }

.ma-id { font-family: var(--mono); font-size: 0.79rem; font-weight: 500; color: var(--acc); white-space: nowrap; }

.model-badge {
  font-size: 0.68rem; font-weight: 700; padding: 2px 8px;
  border-radius: var(--r-xs);
  background: var(--bg3); color: var(--txt2); border: 1px solid var(--bdr);
  white-space: nowrap; font-family: var(--mono);
}
/* Tint per model */
.mdl-3S     { border-color: rgba(47,129,247,.4); color: #60a5fa; }
.mdl-FS     { border-color: rgba(234,179,8,.4);  color: #d29922; }
.mdl-DS     { border-color: rgba(251,146,60,.4); color: #fb923c; }
.mdl-DN     { border-color: rgba(192,132,252,.4);color: #c084fc; }
.mdl-TZFS   { border-color: rgba(45,212,191,.4); color: #2dd4bf; }
.mdl-TZ3S   { border-color: rgba(167,243,208,.4);color: #6ee7b7; }

/* Toggle Switch */
.toggle-wrap { display: flex; align-items: center; gap: 8px; }
.toggle { position: relative; width: 38px; height: 21px; flex-shrink: 0; }
.toggle input { opacity: 0; width: 0; height: 0; }
.t-slider {
  position: absolute; inset: 0; cursor: pointer;
  background: var(--bdr2); border-radius: 21px;
  transition: background 0.2s;
}
.t-slider::before {
  content: ''; position: absolute;
  width: 15px; height: 15px; background: white; border-radius: 50%;
  top: 3px; left: 3px;
  transition: transform 0.2s, background 0.2s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.4);
}
.toggle input:checked + .t-slider { background: var(--green); }
.toggle input:checked + .t-slider::before { transform: translateX(17px); }
.toggle-lbl { font-size: 0.76rem; font-weight: 500; color: var(--txt2); min-width: 58px; }

.time-input {
  background: var(--bg3); border: 1px solid var(--bdr);
  border-radius: var(--r-xs); color: var(--txt);
  padding: 4px 7px; font-size: 0.78rem; font-family: var(--mono);
  width: 88px; outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  /* native time picker */
  color-scheme: dark;
}
.time-input:focus { border-color: var(--acc); box-shadow: 0 0 0 3px rgba(47,129,247,0.15); }

/* ═══════════════════════════════════════════════════
   RESULTS TABLE
═══════════════════════════════════════════════════ */
/* Legend */
.legend {
  display: flex; gap: 6px; flex-wrap: wrap;
  padding: 8px 1.25rem;
  border-bottom: 1px solid var(--bdr);
  background: var(--bg3);
}
.leg-item {
  font-size: 0.67rem; font-weight: 600; padding: 2px 8px;
  border-radius: var(--r-xs); letter-spacing: 0.04em;
}
.rv-0-bg   { background: var(--rv0-bg);  color: var(--rv0);  }
.rv-1-bg   { background: var(--rv1-bg);  color: var(--rv1);  }
.rv-low-bg { background: var(--rvl-bg);  color: var(--rvl);  }
.rv-ok-bg  { background: var(--rvo-bg);  color: var(--rvo);  }
.rv-good-bg{ background: var(--rvg-bg);  color: var(--rvg);  }

.res-meta { font-size: 0.77rem; color: var(--txt2); }

.res-table {
  width: 100%; min-width: 480px;
  border-collapse: collapse; font-size: 0.81rem;
}
.res-table thead th {
  background: var(--bg3); color: var(--txt2);
  font-size: 0.65rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase;
  padding: 8px 10px; text-align: left;
  border-bottom: 1px solid var(--bdr);
  white-space: nowrap; position: sticky; top: 0; z-index: 1;
}
.res-table thead th.th-r   { text-align: center; min-width: 44px; }
.res-table thead th.th-qual{ min-width: 50px; }

.res-table tbody td {
  padding: 5px 10px; border-bottom: 1px solid rgba(48,54,61,0.4);
  vertical-align: middle;
}
.res-table tbody tr:last-child td { border-bottom: none; }
.res-table tbody tr:hover td { background: rgba(33,38,45,0.4); }

/* Section separator */
.sec-sep td {
  background: rgba(33,38,45,0.8);
  font-size: 0.66rem; font-weight: 800; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--txt2);
  padding: 5px 10px;
  border-top: 1px solid var(--bdr);
}

.ap-id { font-family: var(--mono); font-size: 0.77rem; font-weight: 500; color: var(--txt); white-space: nowrap; }
.sec-name { font-size: 0.82rem; color: var(--txt); white-space: nowrap; }
.need-badge {
  display: inline-block; font-family: var(--mono); font-size: 0.78rem; font-weight: 700;
  color: var(--txt2); text-align: center; min-width: 24px;
}
.qual-badge {
  font-family: var(--mono); font-size: 0.67rem; font-weight: 700;
  padding: 1px 6px; border-radius: var(--r-xs);
  background: var(--bg3); color: var(--acc); border: 1px solid var(--acc-bg);
}

/* Result table cell layouts */
.cell-content {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  min-height: 26px; border-radius: var(--r-xs); padding: 4px;
}
.ma-badge {
  font-family: var(--mono); font-size: 0.7rem; font-weight: 600;
  background: var(--bg3); color: var(--txt);
  border: 1px solid var(--bdr2); border-radius: 4px; padding: 2px 6px;
  cursor: grab; white-space: nowrap; user-select: none;
}
.ma-badge:active { cursor: grabbing; }
.ma-badge.empty { background: transparent; border: none; color: var(--txt3); }
.drop-zone.drag-over {
  background: rgba(47, 129, 247, 0.2) !important;
  outline: 2px dashed var(--acc);
}
.springer-list {
  display: flex; flex-wrap: wrap; gap: 6px; min-height: 40px;
  padding: 8px; background: var(--bg); border-radius: var(--r-sm);
}

/* Farb-Codierung relativ zum Mindestbedarf (staffClass) */
.rv-0   .cell-content { background: rgba(248,81,73,0.18);   border: 1px solid rgba(248,81,73,0.3); }
.rv-1   .cell-content { background: rgba(251,146,60,0.15);  border: 1px solid rgba(251,146,60,0.3); }
.rv-low .cell-content { background: rgba(234,179,8,0.18);   border: 1px solid rgba(234,179,8,0.3); }
.rv-ok  .cell-content { background: rgba(47,129,247,0.15);  border: 1px solid rgba(47,129,247,0.3); }
.rv-good .cell-content { background: rgba(63,185,80,0.15);  border: 1px solid rgba(63,185,80,0.3); }

/* Legende */
.legend { display: flex; gap: 0.5rem; flex-wrap: wrap; padding: 8px 1.25rem; font-size: 0.73rem; }
.leg-item {
  padding: 3px 10px; border-radius: 99px; font-weight: 600; white-space: nowrap;
}
.rv-0-bg   { background: rgba(248,81,73,0.18);  color: #f85149; border: 1px solid rgba(248,81,73,0.3); }
.rv-low-bg { background: rgba(234,179,8,0.18);  color: #eab308; border: 1px solid rgba(234,179,8,0.3); }
.rv-ok-bg  { background: rgba(47,129,247,0.15); color: #60a5fa; border: 1px solid rgba(47,129,247,0.3); }
.rv-good-bg{ background: rgba(63,185,80,0.15);  color: #3fb950; border: 1px solid rgba(63,185,80,0.3); }

.res-tip {
  padding: 9px 1.25rem;
  font-size: 0.75rem; color: var(--txt3);
  border-top: 1px solid var(--bdr);
}

/* ═══════════════════════════════════════════════════
   SCROLLBAR
═══════════════════════════════════════════════════ */
::-webkit-scrollbar          { width: 5px; height: 5px; }
::-webkit-scrollbar-track    { background: var(--bg2); }
::-webkit-scrollbar-thumb    { background: var(--bdr2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover{ background: var(--txt3); }

/* ═══════════════════════════════════════════════════
   RESPONSIVE — Tablet
═══════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .round-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .app-header { padding: 0 1rem; }
  .hdr-clock  { display: none; }
  .main-wrap  { padding: 0.75rem; gap: 0.75rem; }
  .ctrl-top   { flex-direction: column; align-items: stretch; }
  .btn-primary{ justify-content: center; }
  .trans-banner { flex-direction: column; }
  .trans-btns   { flex-direction: row; flex-wrap: wrap; }
  .emp-table tbody td { padding: 6px 8px; }
  .time-input { width: 82px; }
  .res-table tbody td { padding: 5px 7px; }
}

@media (max-width: 480px) {
  .login-card { padding: 1.75rem 1.25rem; }
  .hdr-sub    { display: none; }
  .shift-sel  { font-size: 0.84rem; }
  .emp-table  { min-width: 460px; }
  .time-input { width: 76px; font-size: 0.74rem; }
  .res-table  { min-width: 420px; font-size: 0.75rem; }
  .r-val      { font-size: 0.78rem; min-width: 26px; padding: 3px 4px; }
  .legend     { padding: 6px 0.75rem; gap: 4px; }
  .leg-item   { font-size: 0.62rem; padding: 2px 6px; }
}

/* ═══════════════════════════════════════════════════
   PRINT STYLES
═══════════════════════════════════════════════════ */
@media print {
  @page {
    margin: 10mm;
    size: A4 portrait;
  }
  
  body {
    background: #fff;
    color: #000;
  }
  
  /* Hide non-printable elements */
  #login-overlay,
  .app-header,
  .ctrl-card,
  #trans-banner,
  .emp-card,
  #btn-print,
  .legend,
  .res-tip {
    display: none !important;
  }
  
  #results-section {
    display: block !important;
    border: none;
    box-shadow: none;
    background: transparent;
    padding: 0;
    margin: 0;
  }
  
  /* Hide 'Abwesenheiten / Sonstiges' completely */
  #res-table tr[data-sec="Abwesenheiten / Sonstiges"] {
    display: none !important;
  }

  .res-table {
    font-size: 9pt; /* Smaller font to fit more vertically */
    width: 100%;
    border-collapse: collapse;
  }
  
  .res-table th {
    background: #eef1f5 !important;
    color: #000 !important;
    border: 1px solid #cbd5e1 !important;
    padding: 4px;
  }
  
  .res-table td {
    padding: 3px;
    border: 1px solid #e2e8f0 !important;
  }

  .sec-sep td {
    background: #cbd5e1 !important;
    color: #000 !important;
    font-weight: bold;
    border: 1px solid #94a3b8 !important;
  }
  
  .ma-badge {
    color: #000 !important;
    background: #fff !important;
    border: 1px solid #94a3b8 !important;
    font-size: 8pt !important;
    padding: 1px 3px !important;
  }
  
  .ap-id, .sec-name, .need-badge {
    color: #000 !important;
  }

  /* Keep cell background colors for status */
  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  tr {
    page-break-inside: avoid;
  }
}
