/* ArvioZeit Büro – Layout & Komponenten */

/* ---------- Layout ---------- */
body { overflow: hidden; }
#app { height: 100vh; }
.layout { display: grid; grid-template-columns: 248px 1fr; height: 100vh; }
.main-col { display: flex; flex-direction: column; min-width: 0; height: 100vh; }
.main { flex: 1; overflow: auto; outline: none; }
.page { padding: 24px 28px 48px; max-width: 1680px; margin: 0 auto; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: 8px 12px; border-radius: 8px; }
.skip-link:focus { left: 8px; }
.boot { height: 100vh; display: grid; place-content: center; justify-items: center; gap: 18px; }

/* ---------- Sidebar ---------- */
.sidebar {
  background: linear-gradient(180deg, #121a13 0%, #0d130e 100%); border-right: 1px solid var(--border);
  display: flex; flex-direction: column; padding: 16px 12px; overflow-y: auto;
}
.brand { display: flex; gap: 11px; align-items: center; text-decoration: none; color: var(--text); padding: 4px 8px 18px; border-bottom: 1px solid var(--border); margin-bottom: 12px; }
.brand-name { font-weight: 750; font-size: 18px; letter-spacing: -.01em; background: linear-gradient(90deg, #f0d27a, #d9a630); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-name.lg { font-size: 26px; }
.brand-sub { font-size: 11.5px; color: var(--text-dim); max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.logo-mark { flex: none; }
.nav { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.nav-link {
  display: flex; align-items: center; gap: 11px; padding: 9px 11px; border-radius: var(--radius-sm); color: var(--text-dim);
  text-decoration: none; font-weight: 520; position: relative; transition: background .12s, color .12s;
}
.nav-link:hover { background: var(--bg-elev-2); color: var(--text); }
.nav-link.active { background: var(--primary-soft); color: var(--text); }
.nav-link.active::before { content: ""; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--primary); }
.nav-link.active .icon { color: var(--primary-strong); }
.nav-badge { margin-left: auto; background: var(--accent); color: var(--accent-ink); font-size: 11px; font-weight: 700; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; display: grid; place-items: center; }
.nav-badge.warn { background: var(--warning-soft); color: var(--warning); border: 1px solid rgba(224,165,38,.35); }
.nav-sep { height: 1px; background: var(--border); margin: 10px 8px; }
.sidebar-foot { margin-top: auto; padding: 12px 10px 0; }

/* ---------- Topbar ---------- */
.topbar {
  height: 64px; flex: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 24px;
  border-bottom: 1px solid var(--border); background: rgba(15, 20, 16, .92); position: relative; z-index: 20;
}
.clock { display: flex; align-items: baseline; gap: 12px; }
.clock-time { font-size: 20px; font-weight: 650; color: var(--text); }
.clock-date { color: var(--text-dim); font-size: 13px; }
.topbar-right { display: flex; align-items: center; gap: 14px; }
.user-chip { display: flex; align-items: center; gap: 9px; padding-left: 14px; border-left: 1px solid var(--border); }
.user-chip-text { line-height: 1.2; }
.uc-name { font-weight: 600; font-size: 13px; }
.uc-role { font-size: 11.5px; color: var(--text-dim); }

/* ---------- Stempel-Widget ---------- */
.stamp-widget { display: flex; align-items: center; gap: 8px; position: relative; }
.stamp-state {
  display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 10px 0 12px; border-radius: 18px; cursor: pointer;
  background: var(--bg-elev); border: 1px solid var(--border); color: var(--text);
}
.stamp-state:hover { border-color: var(--border-strong); }
.stamp-label { font-weight: 600; font-size: 13px; }
.stamp-times { white-space: nowrap; line-height: 1; }
.stamp-since { color: var(--text-dim); font-size: 12.5px; }
.stamp-total { color: var(--text-dim); font-size: 12.5px; white-space: nowrap; }
.stamp-total b { color: var(--text); font-weight: 600; }
.stamp-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--text-faint); flex: none; }
.stamp-dot.st-work { background: var(--work); box-shadow: 0 0 0 3px rgba(111,174,60,.22); animation: pulse 2s infinite; }
.stamp-dot.st-break { background: var(--break); box-shadow: 0 0 0 3px rgba(217,166,48,.22); }
.stamp-dot.st-travel_to, .stamp-dot.st-travel_from { background: var(--travel); box-shadow: 0 0 0 3px rgba(79,163,201,.22); }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(111,174,60,.06); } }
.popover {
  position: absolute; top: calc(100% + 10px); right: 0; background: var(--bg-elev); border: 1px solid var(--border-strong);
  border-radius: var(--radius); box-shadow: 0 12px 40px rgba(0,0,0,.55); padding: 16px; z-index: 50;
}
.stamp-pop { width: 320px; left: 0; right: auto; display: flex; flex-direction: column; gap: 14px; }
.sp-state { font-size: 18px; font-weight: 650; }
.sp-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sp-stats > div { background: var(--bg-elev-2); border-radius: var(--radius-sm); padding: 8px 10px; display: flex; flex-direction: column; gap: 2px; }
.sp-stats b { font-size: 16px; }
.sp-actions { display: flex; flex-direction: column; gap: 8px; }
.sp-actions .btn { justify-content: flex-start; }
.sp-auto { display: flex; gap: 6px; align-items: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 36px; padding: 0 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong); background: var(--bg-elev-2); color: var(--text); font-weight: 600; font-size: 13.5px; cursor: pointer;
  text-decoration: none; white-space: nowrap; transition: background .12s, border-color .12s, filter .12s, transform .05s;
}
.btn:hover:not(:disabled) { background: var(--bg-elev-3); }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.primary { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
.btn.primary:hover:not(:disabled) { background: var(--primary-strong); }
.btn.gold { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.gold:hover:not(:disabled) { filter: brightness(1.1); background: var(--accent); }
.btn.info { background: var(--info-soft); border-color: rgba(79,163,201,.45); color: #9fd3ea; }
.btn.danger { background: var(--danger-soft); border-color: rgba(217,83,79,.5); color: #f0a09d; }
.btn.danger:hover:not(:disabled) { background: rgba(217,83,79,.25); }
.btn.danger.solid { background: var(--danger); color: #fff; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--text-dim); }
.btn.ghost:hover:not(:disabled) { background: var(--bg-elev-2); color: var(--text); }
.btn.outline { background: transparent; }
.btn.sm { height: 30px; padding: 0 10px; font-size: 12.5px; gap: 5px; }
.btn.xs { height: 26px; padding: 0 8px; font-size: 12px; gap: 4px; }
.btn.lg { height: 44px; font-size: 15px; padding: 0 18px; }
.btn.block { width: 100%; }
.icon-btn {
  display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: var(--radius-sm); border: 1px solid transparent;
  background: transparent; color: var(--text-dim); cursor: pointer; flex: none;
}
.icon-btn:hover:not(:disabled) { background: var(--bg-elev-2); color: var(--text); }
.icon-btn.sm { width: 26px; height: 26px; }
.icon-btn:disabled { opacity: .4; cursor: not-allowed; }
.btn-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.link { color: var(--primary-strong); text-decoration: none; cursor: pointer; background: none; border: 0; padding: 0; }
.link:hover { text-decoration: underline; }
.icon { flex: none; }

/* ---------- Form ---------- */
.input {
  width: 100%; height: 36px; padding: 0 11px; background: var(--bg-sunken); border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  color: var(--text); transition: border-color .12s, box-shadow .12s;
}
.input::placeholder { color: var(--text-faint); }
.input:hover { border-color: #4a5c4c; }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(217,166,48,.18); }
.input:disabled, .input[readonly] { opacity: .65; cursor: not-allowed; }
.input.lg { height: 44px; font-size: 15px; }
textarea.input { height: auto; padding: 9px 11px; resize: vertical; min-height: 64px; }
select.input { appearance: none; padding-right: 32px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-dim) 50%), linear-gradient(135deg, var(--text-dim) 50%, transparent 50%);
  background-position: calc(100% - 17px) 15px, calc(100% - 12px) 15px; background-size: 5px 5px; background-repeat: no-repeat; }
select.input option { background: var(--bg-elev); }
input[type="date"].input, input[type="datetime-local"].input, input[type="time"].input, input[type="month"].input { color-scheme: dark; }
.has-error .input { border-color: var(--danger); }
.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field-label { font-size: 12.5px; font-weight: 600; color: var(--text-dim); line-height: 1.35; min-height: 1.35em; }
.req { color: var(--accent); }
.field-error { color: #f0a09d; font-size: 12px; }
.field-hint { color: var(--text-faint); font-size: 12px; }
.field-hint.block { display: block; }
.field-inline { flex-direction: row; align-items: center; gap: 10px; }
.input-group { display: flex; gap: 6px; align-items: center; }
.input-group .input { flex: 1; }
.input-suffix { position: relative; }
.input-suffix .input { padding-right: 44px; }
.input-suffix .suffix { position: absolute; right: 11px; top: 50%; transform: translateY(-50%); color: var(--text-faint); font-size: 12.5px; pointer-events: none; }
.form-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px 16px; }
.c12 { grid-column: span 12; } .c9 { grid-column: span 9; } .c8 { grid-column: span 8; } .c6 { grid-column: span 6; } .c5 { grid-column: span 5; }
.c4 { grid-column: span 4; } .c3 { grid-column: span 3; } .c2 { grid-column: span 2; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.stack.sm { gap: 8px; }
.row { display: flex; gap: 12px; align-items: center; }
.row.wrap { flex-wrap: wrap; }
.row.top { align-items: flex-start; }
.grow { flex: 1; min-width: 0; }
.spacer { flex: 1; }
.check, .toggle { display: inline-flex; align-items: flex-start; gap: 10px; cursor: pointer; user-select: none; padding: 4px 0; }
.check input, .toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check-box { width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid var(--border-strong); background: var(--bg-sunken); display: grid; place-items: center; flex: none; margin-top: 1px; color: transparent; transition: all .12s; }
.check input:checked + .check-box { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
.check input:focus-visible + .check-box, .toggle input:focus-visible + .toggle-track { box-shadow: var(--focus); }
.check.disabled, .toggle.disabled { opacity: .55; cursor: not-allowed; }
.check-label { font-size: 13.5px; }
.toggle-track { width: 36px; height: 20px; border-radius: 10px; background: var(--bg-elev-3); border: 1px solid var(--border-strong); position: relative; flex: none; transition: background .15s; }
.toggle-thumb { position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--text-dim); transition: transform .15s, background .15s; }
.toggle input:checked + .toggle-track { background: var(--primary); border-color: var(--primary); }
.toggle input:checked + .toggle-track .toggle-thumb { transform: translateX(16px); background: var(--primary-ink); }
.segmented { display: inline-flex; background: var(--bg-sunken); border: 1px solid var(--border-strong); border-radius: var(--radius-sm); padding: 2px; gap: 2px; }
.seg { border: 0; background: transparent; color: var(--text-dim); padding: 0 12px; height: 30px; border-radius: 6px; cursor: pointer; font-weight: 600; font-size: 12.5px; white-space: nowrap; }
.seg:hover:not(:disabled) { color: var(--text); background: var(--bg-elev-2); }
.seg.active { background: var(--bg-elev-3); color: var(--text); box-shadow: inset 0 0 0 1px var(--border-strong); }
.seg-sm .seg { height: 26px; padding: 0 9px; }
.weekday-picks { display: flex; gap: 6px; }
.wd { width: 40px; height: 36px; border-radius: var(--radius-sm); border: 1px solid var(--border-strong); background: var(--bg-sunken); color: var(--text-dim); cursor: pointer; font-weight: 650; }
.wd.on { background: var(--primary-soft); border-color: var(--primary); color: var(--primary-strong); }
.wd:disabled { opacity: .5; cursor: not-allowed; }

/* ---------- Karten & Seitenkopf ---------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head h1 { font-size: 24px; }
.page-head p { margin-top: 4px; }
.page-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.card { background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius); min-width: 0; display: flex; flex-direction: column; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 13px 16px; border-bottom: 1px solid var(--border); min-height: 52px; }
.card-title { display: flex; align-items: center; gap: 9px; min-width: 0; }
.card-title h3 { font-size: 14.5px; }
.card-title .icon { color: var(--accent); }
.card-actions { display: flex; gap: 6px; align-items: center; }
.card-body { padding: 16px; flex: 1; min-width: 0; }
.card-body.flush { padding: 0; }
.section-title { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); font-weight: 700; margin: 4px 0 2px; display: flex; gap: 8px; align-items: center; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: 1fr 1fr; } .g3 { grid-template-columns: repeat(3, 1fr); }
.g-dash { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.mt { margin-top: 16px; } .mt-sm { margin-top: 8px; } .mb { margin-bottom: 16px; }
.divider { height: 1px; background: var(--border); margin: 16px 0; border: 0; }

/* ---------- KPI ---------- */
.kpis { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.kpi {
  background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 14px 12px; text-decoration: none; color: var(--text);
  display: flex; flex-direction: column; gap: 6px; position: relative; overflow: hidden; transition: border-color .12s, transform .12s;
}
a.kpi:hover { border-color: var(--border-strong); transform: translateY(-1px); }
.kpi::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--kpi, var(--border)); opacity: .9; }
.kpi-top { display: flex; justify-content: space-between; align-items: center; color: var(--text-dim); font-size: 12px; font-weight: 600; }
.kpi-top .icon { color: var(--kpi, var(--text-dim)); }
.kpi-val { font-size: 30px; font-weight: 750; line-height: 1; font-variant-numeric: tabular-nums; }
.kpi.k-work { --kpi: var(--work); } .kpi.k-travel { --kpi: var(--travel); } .kpi.k-break { --kpi: var(--break); }
.kpi.k-pending { --kpi: var(--accent); } .kpi.k-flag { --kpi: var(--warning); } .kpi.k-reject { --kpi: var(--danger); } .kpi.k-absent { --kpi: var(--earth); }
.kpi.alert .kpi-val { color: var(--kpi); }

/* ---------- Tabelle ---------- */
.table-wrap { overflow: auto; min-width: 0; }
.table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13.5px; }
.table th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-dim); font-weight: 650; padding: 10px 12px; border-bottom: 1px solid var(--border); background: var(--bg-elev); position: sticky; top: 0; z-index: 1; white-space: nowrap; }
.table td { padding: 10px 12px; border-bottom: 1px solid rgba(42,54,44,.7); vertical-align: middle; }
.table.dense td { padding: 7px 12px; }
.table tbody tr:last-child td { border-bottom: 0; }
.table.clickable tbody tr:not(.sk-row) { cursor: pointer; }
.table tbody tr:hover td { background: rgba(255,255,255,.018); }
.table tbody tr:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--accent); }
.th-btn { background: none; border: 0; padding: 0; color: inherit; font: inherit; text-transform: inherit; letter-spacing: inherit; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.th-btn:hover { color: var(--text); }
.sort-ind { display: inline-grid; width: 12px; }
.ta-right { text-align: right !important; } .ta-center { text-align: center !important; }
.td-empty { padding: 0 !important; }
.table tr.row-muted td { opacity: .55; }
.table tr.row-weekend td { background: rgba(255,255,255,.012); }
.table tr.row-holiday td { background: var(--accent-soft); }
.table tr.row-flag td:first-child { box-shadow: inset 3px 0 0 var(--warning); }
.table tfoot td { font-weight: 700; border-top: 1px solid var(--border-strong); padding: 10px 12px; background: var(--bg-elev-2); }
.pagination { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-top: 1px solid var(--border); }
.pg-btns { display: flex; align-items: center; gap: 8px; }
.nowrap { white-space: nowrap; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 280px; display: inline-block; vertical-align: bottom; }

/* ---------- Badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 11px; font-size: 11.5px; font-weight: 650; white-space: nowrap; border: 1px solid transparent; }
.badge-neutral { background: var(--bg-elev-3); color: var(--text-dim); border-color: var(--border-strong); }
.badge-success, .badge-work { background: var(--primary-soft); color: var(--primary-strong); border-color: rgba(111,174,60,.3); }
.badge-gold, .badge-break, .badge-pending { background: var(--accent-soft); color: #f0c75a; border-color: rgba(217,166,48,.3); }
.badge-info, .badge-travel_to, .badge-travel_from { background: var(--info-soft); color: #8fcbe6; border-color: rgba(79,163,201,.3); }
.badge-danger, .badge-rejected { background: var(--danger-soft); color: #f0a09d; border-color: rgba(217,83,79,.3); }
.badge-warning { background: var(--warning-soft); color: #f0c060; border-color: rgba(224,165,38,.3); }
.badge-earth { background: var(--earth-soft); color: #d2b48a; border-color: rgba(139,107,67,.4); }
.badge-approved { background: var(--primary-soft); color: var(--primary-strong); border-color: rgba(111,174,60,.3); }
.badge-cancelled, .badge-off { background: var(--bg-elev-3); color: var(--text-faint); }
.badge-btn { cursor: pointer; font-family: inherit; }
.badge-btn:hover { filter: brightness(1.15); }
.badge-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.badge-work::before, .badge-break::before, .badge-travel_to::before, .badge-travel_from::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.flags { display: flex; gap: 4px; flex-wrap: wrap; }
.dur { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.dur.neg { color: #f08c88; }
.dur.pos { color: var(--primary-strong); }
.dur.strong { font-weight: 700; }

/* ---------- Avatar ---------- */
.avatar { display: inline-grid; place-items: center; border-radius: 50%; color: #e8e3c8; font-weight: 700; flex: none; position: relative; border: 1px solid rgba(255,255,255,.06); background: #2a3a26; width: 32px; height: 32px; font-size: 12px; }
.avatar.sm { width: 32px; height: 32px; font-size: 12px; background: #2f4227; }
.avatar[class*="st-"]::after { content: ""; position: absolute; right: -1px; bottom: -1px; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--bg-elev); background: var(--text-faint); }
.avatar.st-work::after { background: var(--work); } .avatar.st-break::after { background: var(--break); }
.avatar.st-travel_to::after, .avatar.st-travel_from::after { background: var(--travel); }
.person { display: flex; align-items: center; gap: 10px; min-width: 0; }
.person-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.person-sub { font-size: 12px; color: var(--text-dim); }

/* ---------- Overlays ---------- */
.overlay { position: fixed; inset: 0; z-index: 100; background: rgba(4, 7, 5, .66); backdrop-filter: blur(2px); display: flex; animation: fadeIn .12s ease-out; }
.overlay-modal { align-items: flex-start; justify-content: center; padding: 8vh 16px 16px; overflow: auto; }
.overlay-drawer { justify-content: flex-end; }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes slideIn { from { transform: translateX(30px); opacity: 0; } }
@keyframes popIn { from { transform: translateY(8px) scale(.98); opacity: 0; } }
.modal { background: var(--bg-elev); border: 1px solid var(--border-strong); border-radius: 14px; box-shadow: 0 24px 80px rgba(0,0,0,.6); width: 100%; display: flex; flex-direction: column; max-height: 84vh; animation: popIn .15s ease-out; outline: none; }
.modal-sm { max-width: 440px; } .modal-md { max-width: 620px; } .modal-lg { max-width: 860px; }
.modal-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--border); flex: none; }
.modal-head h2 { font-size: 17px; }
.modal-body { padding: 20px; overflow: auto; flex: 1; }
.modal-foot { padding: 14px 20px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 8px; flex: none; background: var(--bg-elev); border-radius: 0 0 14px 14px; }
.drawer { background: var(--bg-elev); border-left: 1px solid var(--border-strong); height: 100%; max-width: 96vw; display: flex; flex-direction: column; box-shadow: -20px 0 60px rgba(0,0,0,.5); animation: slideIn .18s ease-out; outline: none; }
.drawer .modal-foot { border-radius: 0; }
.confirm-msg { margin-bottom: 14px; color: var(--text); }

/* ---------- Toasts ---------- */
.toasts { position: fixed; left: 20px; bottom: 20px; z-index: 200; display: flex; flex-direction: column; gap: 8px; max-width: min(420px, calc(100vw - 40px)); }
.toast { display: flex; align-items: flex-start; gap: 10px; padding: 12px 10px 12px 14px; border-radius: 10px; background: var(--bg-elev-2); border: 1px solid var(--border-strong); box-shadow: 0 10px 30px rgba(0,0,0,.5); animation: popIn .16s ease-out; }
.toast > span { flex: 1; padding-top: 1px; }
.toast-success { border-left: 4px solid var(--success); } .toast-success > .icon { color: var(--success); }
.toast-danger { border-left: 4px solid var(--danger); } .toast-danger > .icon { color: var(--danger); }
.toast-warning { border-left: 4px solid var(--warning); } .toast-warning > .icon { color: var(--warning); }
.toast-info { border-left: 4px solid var(--info); } .toast-info > .icon { color: var(--info); }

/* ---------- Alerts / Empty / Skeleton ---------- */
.alert { display: flex; gap: 10px; align-items: flex-start; padding: 11px 14px; border-radius: var(--radius-sm); border: 1px solid; font-size: 13.5px; }
.alert > .icon { margin-top: 1px; }
.alert-danger { background: var(--danger-soft); border-color: rgba(217,83,79,.4); color: #f4b4b1; }
.alert-warning { background: var(--warning-soft); border-color: rgba(224,165,38,.4); color: #f0d08a; }
.alert-info { background: var(--info-soft); border-color: rgba(79,163,201,.4); color: #b5dcee; }
.alert-success { background: var(--primary-soft); border-color: rgba(111,174,60,.4); color: #bfe39f; }
.empty { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 36px 20px; gap: 8px; color: var(--text-dim); }
.empty-icon { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-elev-2); color: var(--text-faint); margin-bottom: 4px; }
.empty-title { font-weight: 650; color: var(--text); font-size: 14.5px; }
.empty-text { max-width: 380px; font-size: 13px; }
.empty-action { margin-top: 8px; }
.skeleton-wrap { display: flex; flex-direction: column; gap: 10px; padding: 4px 0; }
.skeleton { background: linear-gradient(90deg, var(--bg-elev-2) 0%, var(--bg-elev-3) 50%, var(--bg-elev-2) 100%); background-size: 200% 100%; animation: shimmer 1.3s infinite linear; border-radius: 6px; height: 12px; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.spinner { display: inline-block; border: 2px solid var(--border-strong); border-top-color: var(--accent); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Tabs ---------- */
/* Kein Scroll-Container: bei Platzmangel umbrechen statt scrollen, damit nie eine Scrollleiste entsteht */
.tabs { display: flex; flex-wrap: wrap; gap: 2px; box-shadow: inset 0 -1px 0 var(--border); margin-bottom: 18px; overflow: visible; }
.tab { background: none; border: 0; padding: 10px 14px; color: var(--text-dim); font-weight: 600; cursor: pointer; position: relative; display: inline-flex; gap: 7px; align-items: center; white-space: nowrap; border-radius: 6px 6px 0 0; }
.tab:hover { color: var(--text); background: var(--bg-elev); }
.tab.active { color: var(--text); }
.tab.active::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 0; height: 2px; background: var(--accent); border-radius: 2px; }
.tab-count { background: var(--accent); color: var(--accent-ink); font-size: 11px; padding: 0 6px; border-radius: 9px; min-width: 18px; height: 18px; display: grid; place-items: center; }

/* ---------- Filterleiste ---------- */
.filters { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; padding: 14px 16px; background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 16px; }
.filters .field { min-width: 150px; }
.filters .f-wide { min-width: 220px; }
.filters .f-date { min-width: 150px; max-width: 160px; }
.search { position: relative; }
.search .icon { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--text-faint); pointer-events: none; }
.search .input { padding-left: 34px; }

/* ---------- Karte ---------- */
.map { border-radius: var(--radius-sm); overflow: hidden; background: #0c120d; border: 1px solid var(--border); z-index: 0; }
.map-fallback { display: grid; place-items: center; background: var(--bg-elev-2); border-radius: var(--radius-sm); color: var(--text-dim); }
.leaflet-container { font-family: var(--font); background: #0c120d; }
.leaflet-tile-pane { filter: brightness(.72) saturate(.75) contrast(1.05); }
.leaflet-control-zoom a, .leaflet-bar a { background: var(--bg-elev) !important; color: var(--text) !important; border-color: var(--border) !important; }
.leaflet-control-attribution { background: rgba(15,20,16,.75) !important; color: var(--text-faint) !important; }
.leaflet-control-attribution a { color: var(--text-dim) !important; }
.leaflet-popup-content-wrapper, .leaflet-popup-tip { background: var(--bg-elev); color: var(--text); box-shadow: 0 6px 20px rgba(0,0,0,.5); }
.leaflet-popup-content { margin: 10px 14px; }
.leaflet-container a.leaflet-popup-close-button { color: var(--text-dim); }
.map-popup .mp-title { font-weight: 700; margin-bottom: 2px; }
.map-popup .mp-sub { color: var(--text-dim); font-size: 12px; }
.map-pin-wrap { background: none; border: 0; }
.map-pin { position: relative; width: 16px; height: 16px; }
.map-pin-dot { position: absolute; inset: 0; border-radius: 50%; border: 2.5px solid #0b1208; background: var(--text-dim); box-shadow: 0 0 0 2px rgba(255,255,255,.25), 0 2px 6px rgba(0,0,0,.6); }
.pin-work .map-pin-dot { background: var(--work); } .pin-break .map-pin-dot { background: var(--break); }
.pin-travel_to .map-pin-dot, .pin-travel_from .map-pin-dot { background: var(--travel); }
.pin-start .map-pin-dot { background: var(--primary); } .pin-end .map-pin-dot { background: var(--danger); }
.pin-site .map-pin-dot { background: var(--accent); border-radius: 4px; }
.pin-pick .map-pin-dot { background: var(--accent); width: 20px; height: 20px; margin: -2px; }
.map-pin-label { position: absolute; left: 20px; top: -3px; white-space: nowrap; background: rgba(15,20,16,.9); color: var(--text); border: 1px solid var(--border-strong); font-size: 11.5px; font-weight: 600; padding: 2px 6px; border-radius: 6px; }
.map-circle { fill-opacity: .12; }
path.circle-site { stroke: var(--accent); fill: var(--accent); }
path.circle-acc { stroke: var(--info); fill: var(--info); fill-opacity: .08; stroke-dasharray: 3 3; }
path.circle-pick { stroke: var(--primary); fill: var(--primary); }

/* ---------- Dashboard ---------- */
.live-list { display: flex; flex-direction: column; }
.live-item { display: grid; grid-template-columns: minmax(0, 1.6fr) 120px 90px minmax(0, 1fr); gap: 12px; align-items: center; padding: 10px 16px; border-bottom: 1px solid rgba(42,54,44,.7); }
.live-item:last-child { border-bottom: 0; }
.live-item .mono { font-size: 13px; }
.absence-req { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid rgba(42,54,44,.7); }
.absence-req:last-child { border-bottom: 0; }
.audit-feed { display: flex; flex-direction: column; }
.audit-feed-item { display: flex; gap: 12px; padding: 10px 16px; border-bottom: 1px solid rgba(42,54,44,.7); font-size: 13px; }
.audit-feed-item:last-child { border-bottom: 0; }
.audit-feed-item .af-time { color: var(--text-faint); width: 54px; flex: none; font-family: var(--mono); font-size: 12px; padding-top: 1px; }
.refresh-note { display: inline-flex; align-items: center; gap: 6px; }
.scroll-y { max-height: 420px; overflow-y: auto; }

/* ---------- Zeiten ---------- */
.day-group { margin-bottom: 14px; }
.day-head { display: flex; align-items: center; gap: 12px; padding: 10px 16px; background: var(--bg-elev-2); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 2; }
.day-head .dh-date { font-weight: 700; }
.emp-block { border-bottom: 1px solid var(--border); }
.emp-block:last-child { border-bottom: 0; }
.emp-head { display: flex; align-items: center; gap: 12px; padding: 10px 16px 6px; }
.emp-sum { margin-left: auto; display: flex; gap: 16px; font-size: 12.5px; color: var(--text-dim); align-items: center; }
.emp-sum b { color: var(--text); font-family: var(--mono); font-weight: 650; }
.timeline { position: relative; height: 10px; border-radius: 5px; background: var(--bg-sunken); margin: 0 16px 6px; overflow: hidden; }
.tl-seg { position: absolute; top: 0; bottom: 0; border-radius: 2px; }
.tl-work { background: var(--work); } .tl-break { background: var(--break); } .tl-travel_to, .tl-travel_from { background: var(--travel); }
.tl-open { background-image: repeating-linear-gradient(45deg, rgba(255,255,255,.18) 0 4px, transparent 4px 8px); }
.seg-table td { padding: 8px 12px; }
.seg-table td:first-child { padding-left: 16px; }
.src { display: inline-flex; align-items: center; gap: 4px; color: var(--text-dim); font-size: 12px; }
.src .icon { color: var(--text-faint); }
.geo { font-size: 12px; color: var(--text-dim); display: inline-flex; gap: 4px; align-items: center; }
.geo .icon { color: var(--text-faint); }
.geo.site { color: #cfe3bd; }
.geo.site .icon { color: var(--primary); }
.geo.none { color: var(--text-faint); }
.time-cell { font-family: var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.open-pill { color: var(--primary-strong); font-weight: 600; font-family: var(--font); font-size: 12px; }
.edited-mark { color: var(--accent); font-size: 11px; font-weight: 700; margin-left: 4px; }
.kv { display: grid; grid-template-columns: 150px 1fr; gap: 6px 14px; font-size: 13.5px; }
.kv dt { color: var(--text-dim); }
.kv dd { margin: 0; min-width: 0; }
.history-item { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 12px; background: var(--bg-elev-2); }
.history-head { display: flex; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 6px; font-size: 13px; }
.diff { display: flex; flex-direction: column; gap: 3px; font-size: 12.5px; }
.diff-row { display: grid; grid-template-columns: 140px 1fr; gap: 10px; align-items: baseline; }
.diff-key { color: var(--text-dim); }
.diff-old { color: #f0a09d; text-decoration: line-through; text-decoration-color: rgba(240,160,157,.5); }
.diff-new { color: #bfe39f; }
.diff-arrow { color: var(--text-faint); margin: 0 6px; }
.reason { font-size: 12.5px; color: var(--text); background: var(--accent-soft); border-left: 3px solid var(--accent); padding: 5px 9px; border-radius: 4px; margin-top: 6px; }
.reason-box { border: 1px solid rgba(217,166,48,.35); background: rgba(217,166,48,.06); border-radius: var(--radius-sm); padding: 12px; }

/* ---------- Mitarbeiter ---------- */
.form-section { border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-elev); margin-bottom: 16px; }
.form-section > header { padding: 14px 18px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 10px; }
.form-section > header h3 { font-size: 15px; }
.form-section > header .icon { color: var(--accent); }
.form-section > .fs-body { padding: 18px; }
.form-layout { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 24px; align-items: start; }
.form-toc { position: sticky; top: 0; display: flex; flex-direction: column; gap: 2px; }
.form-toc a { padding: 7px 10px; border-radius: 6px; color: var(--text-dim); text-decoration: none; font-size: 13px; font-weight: 550; }
.form-toc a:hover { background: var(--bg-elev); color: var(--text); }
.sticky-actions { position: sticky; bottom: 0; background: linear-gradient(180deg, transparent, var(--bg) 30%); padding: 18px 0 4px; display: flex; justify-content: flex-end; align-items: center; gap: 8px; z-index: 5; }
.profile-head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.profile-head h1 { font-size: 22px; }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 12px; margin-bottom: 16px; }
.stat { background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; }
.stat-label { font-size: 12px; color: var(--text-dim); font-weight: 600; }
.stat-val { font-size: 22px; font-weight: 750; margin-top: 4px; font-variant-numeric: tabular-nums; }
.stat-val.sm { font-size: 18px; }
.month-nav { display: flex; align-items: center; gap: 6px; }
.month-nav .mn-label { min-width: 150px; text-align: center; font-weight: 650; }
.warn-list { display: flex; gap: 4px; flex-wrap: wrap; }

/* ---------- Kalender ---------- */
.cal-wrap { overflow: auto; max-height: calc(100vh - 290px); border-radius: var(--radius); border: 1px solid var(--border); background: var(--bg-elev); }
.cal { border-collapse: separate; border-spacing: 0; font-size: 12px; }
.cal th, .cal td { border-right: 1px solid rgba(42,54,44,.6); border-bottom: 1px solid rgba(42,54,44,.6); }
.cal thead th { position: sticky; top: 0; background: var(--bg-elev-2); z-index: 3; padding: 6px 0; min-width: 32px; text-align: center; font-weight: 600; color: var(--text-dim); }
.cal thead th .cal-dnum { font-size: 13px; color: var(--text); font-weight: 700; }
.cal .cal-name { position: sticky; left: 0; background: var(--bg-elev); z-index: 2; min-width: 190px; max-width: 190px; padding: 6px 12px; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.cal thead th.cal-name { z-index: 4; background: var(--bg-elev-2); }
.cal td { height: 34px; padding: 2px; position: relative; }
.cal .we { background: rgba(255,255,255,.025); }
.cal thead th.we { background: #1a221c; }
.cal .hol { background: rgba(217,166,48,.08); }
.cal thead th.hol { color: var(--accent); }
.cal .today-col { box-shadow: inset 2px 0 0 var(--accent), inset -2px 0 0 var(--accent); }
.cal-abs { position: absolute; top: 2px; bottom: 2px; left: 0; right: 0; z-index: 1; border-radius: 5px; display: grid; place-items: center; font-size: 11px; font-weight: 800; color: rgba(0,0,0,.78); cursor: default; overflow: hidden; }
/* Folgetage derselben Abwesenheit: Ecken weg und über die Zellgrenze ziehen, damit ein durchgehender Balken entsteht */
.cal-abs.join-l { left: -1px; border-top-left-radius: 0; border-bottom-left-radius: 0; }
.cal-abs.join-r { right: -1px; border-top-right-radius: 0; border-bottom-right-radius: 0; }
.cal-abs.half-l { right: 50%; border-top-right-radius: 5px; border-bottom-right-radius: 5px; }
.cal-abs.half-r { left: 50%; border-top-left-radius: 5px; border-bottom-left-radius: 5px; }
.cal-abs.half-mid { left: 25%; right: 25%; }
.cal-abs.half-l, .cal-abs.half-r, .cal-abs.half-mid { font-size: 9.5px; }
.cal-abs.pending { opacity: .55; background-image: repeating-linear-gradient(45deg, rgba(255,255,255,.25) 0 3px, transparent 3px 6px) !important; }
.abs-vacation { background: var(--vacation); } .abs-sick { background: var(--sick); } .abs-special { background: var(--special); }
.abs-unpaid { background: var(--unpaid); } .abs-overtime { background: var(--overtime); } .abs-school { background: var(--school); }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--text-dim); align-items: center; }
.legend-item { display: inline-flex; gap: 6px; align-items: center; }
.legend-sw { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.legend-sw.we { background: #1f2a21; border: 1px solid var(--border-strong); } .legend-sw.hol { background: rgba(217,166,48,.3); }
.legend-sw.pending { background: var(--vacation); opacity: .55; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }

/* ---------- Audit ---------- */
.audit-row-detail td { background: var(--bg-sunken) !important; padding: 12px 18px 16px !important; }
.json-diff { display: grid; grid-template-columns: 180px 1fr; gap: 4px 16px; font-size: 12.5px; }
.json-diff .jd-key { color: var(--text-dim); }
.expander { transition: transform .15s; }
.expander.open { transform: rotate(90deg); }

/* ---------- Einstellungen ---------- */
.settings-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; align-items: start; }
.settings-nav { display: flex; flex-direction: column; gap: 2px; position: sticky; top: 0; }
.settings-nav a { display: flex; gap: 10px; align-items: center; padding: 9px 12px; border-radius: var(--radius-sm); color: var(--text-dim); text-decoration: none; font-weight: 550; }
.settings-nav a:hover { background: var(--bg-elev); color: var(--text); }
.settings-nav a.active { background: var(--bg-elev-2); color: var(--text); box-shadow: inset 3px 0 0 var(--accent); }
.list-row { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-bottom: 1px solid rgba(42,54,44,.7); }
.list-row:last-child { border-bottom: 0; }
.list-row.inactive { opacity: .55; }
.readonly-note { margin-bottom: 16px; }
.code { font-family: var(--mono); font-size: 12px; background: var(--bg-sunken); border: 1px solid var(--border); padding: 1px 6px; border-radius: 4px; color: var(--text-dim); }
.chip-input { display: flex; flex-wrap: wrap; gap: 6px; padding: 6px; background: var(--bg-sunken); border: 1px solid var(--border-strong); border-radius: var(--radius-sm); min-height: 36px; align-items: center; }
.chip-input input { border: 0; background: transparent; outline: none; flex: 1; min-width: 120px; height: 24px; }
.chip { display: inline-flex; align-items: center; gap: 4px; background: var(--bg-elev-3); border: 1px solid var(--border-strong); border-radius: 12px; padding: 0 4px 0 9px; height: 24px; font-size: 12.5px; }
.chip button { background: none; border: 0; color: var(--text-dim); cursor: pointer; display: grid; place-items: center; padding: 2px; border-radius: 50%; }
.chip button:hover { color: var(--text); background: var(--bg-elev-2); }

/* ---------- Berichte ---------- */
.multi-select { border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--bg-sunken); max-height: 260px; overflow-y: auto; padding: 6px 10px; }
.multi-select .check { display: flex; width: 100%; }
.report-variant { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.variant-card { border: 1px solid var(--border-strong); border-radius: var(--radius-sm); padding: 12px; cursor: pointer; background: var(--bg-sunken); text-align: left; color: var(--text); display: flex; gap: 10px; }
.variant-card.active { border-color: var(--accent); background: var(--accent-soft); }
.variant-card .vc-title { font-weight: 650; }

/* ---------- Login ---------- */
.auth-page { min-height: 100vh; display: grid; place-items: center; position: relative; overflow: hidden; padding: 24px;
  background: radial-gradient(1200px 600px at 70% -10%, rgba(217,166,48,.10), transparent 60%), radial-gradient(900px 600px at 0% 100%, rgba(111,174,60,.10), transparent 60%), var(--bg); }
.auth-art { position: absolute; inset: auto 0 0 0; height: 55vh; pointer-events: none; }
.auth-fields { width: 100%; height: 100%; display: block; }
.auth-card { position: relative; width: 100%; max-width: 420px; background: rgba(22,29,23,.92); border: 1px solid var(--border-strong); border-radius: 18px; padding: 32px; box-shadow: 0 30px 80px rgba(0,0,0,.55); backdrop-filter: blur(6px); }
.auth-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; }
.auth-title { font-size: 20px; margin-bottom: 4px; }
.auth-sub { margin-bottom: 20px; }
.auth-card form { margin-top: 18px; }
.auth-foot { margin-top: 18px; text-align: center; }

/* ---------- Responsiv ---------- */
@media (max-width: 1400px) {
  .kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .live-item { grid-template-columns: minmax(0, 1.5fr) 110px 80px minmax(0, 1fr); }
}
@media (max-width: 1100px) {
  .layout { grid-template-columns: 72px 1fr; }
  .sidebar .nav-link span, .brand > div, .sidebar-foot { display: none; }
  .nav-link { justify-content: center; }
  .nav-badge { position: absolute; top: 2px; right: 2px; min-width: 16px; height: 16px; font-size: 10px; }
  .g-dash, .g2 { grid-template-columns: 1fr; }
  .clock-date { display: none; }
  .form-layout, .settings-layout { grid-template-columns: 1fr; }
  .form-toc { display: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- Korrekturen ---------- */
.layout { grid-template-columns: 264px 1fr; }
.nav-link { font-size: 13.5px; white-space: nowrap; }
.link-plain { text-decoration: none; color: var(--text); }
.link-plain:hover .person-name { color: var(--primary-strong); text-decoration: underline; }
.filters .field.period { min-width: 0; }
.period-row { display: flex; gap: 8px; align-items: center; flex-wrap: nowrap; }
.period-row .date-input .input { width: 100%; }
.kpi { min-height: 104px; }
.kpi-top span { line-height: 1.25; }
.kpi-val { margin-top: auto; }
.kv.full { grid-template-columns: 110px 1fr; }
.entry-info { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 16px; align-items: start; }
.field-check { justify-content: flex-end; min-height: 58px; }
.plain-fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.cal { width: 100%; }
.cal thead th { min-width: 28px; }
.cal .cal-name { min-width: 168px; max-width: 168px; }
.field > .segmented { align-self: flex-start; }
.table td .small { white-space: nowrap; }
.table td .small.wrap, .table td div.small { white-space: normal; }
.kpi-top { gap: 8px; align-items: flex-start; }
@media (max-width: 1400px) {
  .kpis { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; }
  .kpi { padding: 12px 12px 10px; min-height: 96px; }
  .kpi-val { font-size: 26px; }
  .kpi-top { font-size: 11.5px; }
}
@media (max-width: 1150px) { .kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.live-item > .badge { justify-self: start; }
@media (max-width: 1400px) {
  .cal thead th { min-width: 26px; }
  .cal .cal-name { min-width: 148px; max-width: 148px; padding: 6px 10px; }
}

/* ---------- Review 4: Eingaben, schmale Laptops, Sperren ---------- */
.date-input { position: relative; display: flex; align-items: center; min-width: 0; }
.date-input .input { padding-right: 36px; }
.date-input .date-btn { position: absolute; right: 3px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; display: grid; place-items: center;
  background: transparent; border: 0; border-radius: 6px; color: var(--text-dim); cursor: pointer; }
.date-input .date-btn:hover:not(:disabled) { background: var(--bg-elev-3); color: var(--text); }
.date-input .date-btn:disabled { opacity: .4; cursor: not-allowed; }
.date-input .date-native { position: absolute; right: 0; bottom: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; border: 0; padding: 0; color-scheme: dark; }
.date-input.invalid .input, .input.invalid { border-color: var(--danger); }
.time-input { width: 82px; text-align: center; }
.period-row .date-input { width: 140px; flex: none; }
/* Bis-Strich zwischen zwei Datums-/Zeitfeldern: gezeichneter Balken, exakt mittig zur Feldhöhe */
.range-sep { flex: none; display: block; width: 12px; height: 3px; margin: 0 4px; border-radius: 2px; background: var(--text-dim); align-self: center; justify-self: center; }
.day-row .range-sep { margin: 0; width: 10px; }
.locked-wrap { display: inline-flex; cursor: not-allowed; border-radius: var(--radius-sm); }
.locked-wrap .btn { pointer-events: none; }
.geo { white-space: nowrap; }
.dirty-note { color: var(--warning); font-size: 12.5px; display: inline-flex; gap: 6px; align-items: center; }
.btn.subtle { background: transparent; }
.dt-row { display: flex; gap: 8px; align-items: center; }
.dt-row .date-input { flex: 1; }
/* Tag erfassen */
.day-rows { display: flex; flex-direction: column; gap: 6px; }
.day-row { display: grid; grid-template-columns: 130px 82px 14px 82px 62px minmax(0, 1fr) 30px; gap: 8px; align-items: center; }
.day-row.head { font-size: 12px; color: var(--text-dim); font-weight: 600; }
.day-row .dur-cell { font-family: var(--mono); font-size: 12.5px; color: var(--text-dim); text-align: right; }
.day-row.has-err .input { border-color: var(--danger); }
.day-row-err { color: #f0a09d; font-size: 12px; margin: -2px 0 2px 0; }
.day-existing { background: var(--bg-sunken); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 8px 12px; font-size: 12.5px; }
.day-sum { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--text-dim); }
.day-sum b { color: var(--text); font-family: var(--mono); }
.capture-btn { opacity: 0; transition: opacity .1s; }
tr:hover .capture-btn, .capture-btn:focus-visible { opacity: 1; }

/* Laptop (≤ 1100 px): Navigation als Symbolleiste mit Tooltips */
@media (max-width: 1100px) {
  .layout { grid-template-columns: 68px minmax(0, 1fr); }
  .sidebar { padding: 14px 8px; }
  .brand { justify-content: center; padding: 4px 0 14px; }
  .nav-link { justify-content: center; padding: 10px 0; }
  .nav-link.active::before { left: -8px; }
  .topbar { padding: 0 16px; gap: 10px; }
  .topbar-right { gap: 10px; }
  .user-chip-text { display: none; }
  .page { padding: 20px 20px 40px; }
  .settings-nav { flex-direction: row; flex-wrap: wrap; position: static; gap: 4px; }
  .settings-nav a { padding: 7px 10px; font-size: 13px; }
  .settings-nav a.active { box-shadow: inset 0 -2px 0 var(--accent); }
  .entry-info { grid-template-columns: 1fr; }
  .day-row { grid-template-columns: 116px 74px 12px 74px 54px minmax(0, 1fr) 30px; gap: 6px; }
}
.time-input.w-full { width: 100%; text-align: left; }
.capture-btn.show { opacity: 1; color: var(--warning); }
.main { position: relative; } /* absolut positionierte Hilfselemente (sr-only, Datumsauswahl) nicht außerhalb des Scrollbereichs */
.geo-detail { display: flex; flex-direction: column; gap: 1px; } .geo-poor { color: var(--warning); }
.leaflet-tooltip.map-tip { background: rgba(15,20,16,.95); color: var(--text); border: 1px solid var(--border-strong); border-radius: 6px; font-size: 12px; font-weight: 600; padding: 3px 7px; box-shadow: 0 4px 14px rgba(0,0,0,.5); }
.leaflet-tooltip-top.map-tip::before { border-top-color: var(--border-strong); }

/* Abgelehnte Stempelungen: kompakte Aktionen, umbrechender Grund */
.badge.badge-wrap { white-space: normal; height: auto; min-height: 22px; padding-top: 2px; padding-bottom: 2px; text-align: left; line-height: 1.3; }
.rej-actions { justify-content: flex-end; flex-wrap: nowrap; }
@media (max-width: 1360px) {
  .rej-actions { flex-direction: column; align-items: stretch; gap: 4px; }
  .rej-actions .btn { justify-content: flex-start; }
}

/* ---------- Review Runde 2: große Betriebe, schmale Laptops ---------- */
.gap-sm { gap: 8px; } .gap-xs { gap: 6px; } .mb-xs { margin-bottom: 6px; }
.load-more { display: flex; align-items: center; gap: 12px; justify-content: center; padding: 8px 0 16px; }
.seg-table td.src-cell { width: 150px; }
.table th.th-wrap { white-space: normal; min-width: 90px; line-height: 1.25; hyphens: auto; overflow-wrap: anywhere; }
.cred-pw { font-size: 16px; padding: 4px 10px; user-select: all; }
.req-actions { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: nowrap; }
@media (max-width: 1400px) {
  .table th, .table td { padding-left: 8px; padding-right: 8px; }
  .table th { letter-spacing: .03em; }
  .seg-table td.src-cell { width: 120px; }
  .seg-table .src { font-size: 12px; }
}
@media (max-width: 1360px) {
  .req-actions { flex-direction: column; align-items: stretch; gap: 4px; }
  .req-actions .btn { justify-content: flex-start; }
}
.seg-table .geo { white-space: normal; }
.table th.th-wrap { max-width: 140px; overflow: hidden; text-overflow: ellipsis; }
.table th.th-wrap .th-btn { max-width: 100%; overflow: hidden; text-overflow: ellipsis; display: inline-flex; }
@media (max-width: 1500px) { .table .col-lg { display: none; } }
@media (max-width: 1400px) { .table .col-md { display: none; } }
.warn-list .badge { white-space: normal; height: auto; min-height: 22px; line-height: 1.25; padding-top: 2px; padding-bottom: 2px; }
@media (max-width: 1400px) { .warn-list { max-width: 170px; } }
.filter-type .select { width: 150px; }
.filter-type .check { white-space: nowrap; }
.empty-hint { display: flex; gap: 8px; align-items: flex-start; padding: 14px 16px; border: 1px dashed var(--border-strong); border-radius: var(--radius-sm); color: var(--text-dim); font-size: 13px; }
/* Berichte: Prüfübersicht vor dem Export */
.check-summary { display: flex; align-items: flex-start; gap: 8px; padding: 10px 16px; font-size: 13px; border-bottom: 1px solid var(--border); }
.check-summary.warn { background: var(--warning-soft); color: #f0d08a; }
.check-summary.ok { background: var(--primary-soft); color: #bfe39f; }
.check-summary svg { flex: none; margin-top: 1px; }
.check-table tbody tr { cursor: pointer; }
.check-table tbody tr:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.check-flags { margin: 4px 0 0 34px; align-items: center; }
.check-flags:empty { display: none; }
/* Urlaubsantrag entscheiden: Kontext */
.decision-ctx { background: var(--bg-elev-2); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; font-size: 13px; margin-bottom: 12px; }
.decision-ctx svg { color: var(--accent); flex: none; }
.decision-after { margin: 4px 0 0 22px; color: var(--primary-strong); }
.decision-after.neg { color: #f0a09d; }
.dc-line { display: flex; gap: 8px; align-items: flex-start; }
.dc-line svg { margin-top: 2px; }
.report-grid { grid-template-columns: minmax(320px, 400px) minmax(0, 1fr); align-items: start; }
@media (max-width: 1400px) {
  .report-grid { grid-template-columns: minmax(300px, 340px) minmax(0, 1fr); }
  .table.account-compact th, .table.account-compact td { padding-left: 6px; padding-right: 6px; }
}

/* Arbeitszeitmodell: „Gültig ab“ bei geänderter Regelarbeitszeit, Verlauf der Regelungen */
.schedule-change { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px; }
.schedule-change .alert { margin: 0; }
.schedule-history .table-wrap { margin-top: 6px; }
.vac-hint { align-self: center; }
.vac-convert { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 6px; color: var(--text); }
.vac-convert svg { color: var(--info, var(--accent)); flex: none; }
.vac-segments { margin: -4px 0 14px; display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; }
.vac-segments .seg-item { white-space: nowrap; }
.dc-sub { margin: 2px 0 0 22px; }
/* Offene Anträge im Dashboard: bei schmaler Karte umbrechen statt Name/Zeitraum zu quetschen */
.absence-req { flex-wrap: wrap; row-gap: 8px; }
.absence-req > .person { flex: 1 0 210px; }
.absence-req > .ellipsis { flex: 1 1 120px; min-width: 0; }
.absence-req .areq-actions { display: flex; gap: 8px; margin-left: auto; flex: none; }
.vac-convert.vac-warn, .vac-convert.vac-warn svg { color: var(--warning); }

/* ---- Geo-Zonen ---- */
:root { --zk-hof: #6fae3c; --zk-halle: #d9a630; --zk-lager: #c47a3d; --zk-feld: #9bc53d; --zk-markt: #d96fa8; --zk-sonstiges: #4fa3c9; }
.zk-hof { --zk: var(--zk-hof); } .zk-halle { --zk: var(--zk-halle); } .zk-lager { --zk: var(--zk-lager); }
.zk-feld { --zk: var(--zk-feld); } .zk-markt { --zk: var(--zk-markt); } .zk-sonstiges { --zk: var(--zk-sonstiges); }
path.map-zone { fill-opacity: .18; }
path.zone-hof, path.circle-zone-hof { stroke: var(--zk-hof); fill: var(--zk-hof); }
path.zone-halle, path.circle-zone-halle { stroke: var(--zk-halle); fill: var(--zk-halle); }
path.zone-lager, path.circle-zone-lager { stroke: var(--zk-lager); fill: var(--zk-lager); }
path.zone-feld, path.circle-zone-feld { stroke: var(--zk-feld); fill: var(--zk-feld); }
path.zone-markt, path.circle-zone-markt { stroke: var(--zk-markt); fill: var(--zk-markt); }
path.zone-sonstiges, path.circle-zone-sonstiges { stroke: var(--zk-sonstiges); fill: var(--zk-sonstiges); }
path.zone-edit { stroke: var(--primary-strong); fill: var(--primary); fill-opacity: .22; stroke-dasharray: 6 4; }
.map-vertex-wrap { background: none; border: 0; }
.map-vertex { display: block; width: 14px; height: 14px; border-radius: 3px; background: var(--primary-strong); border: 2px solid #0b1208; box-shadow: 0 0 0 2px rgba(255,255,255,.35); cursor: move; }
.map-vertex.mid { width: 10px; height: 10px; margin: 2px; border-radius: 50%; background: rgba(255,255,255,.75); cursor: copy; }
.leaflet-tooltip.zone-tip { background: rgba(15,20,16,.8); }
.leaflet-tooltip.zone-tip::before { display: none; }
.zone-legend { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.map-wrap { position: relative; }
.map-panel-toggle { position: absolute; top: 10px; right: 10px; z-index: 3; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 10px; border-radius: var(--radius-sm); border: 1px solid var(--border-strong); background: rgba(15,20,16,.94); color: var(--text); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.45); }
.map-panel-toggle:hover { background: var(--bg-elev-2); }
.map-wrap.panel-open .map-panel-toggle { right: 362px; }
.map-panel { position: absolute; top: 10px; right: 10px; bottom: 10px; width: 344px; max-width: calc(100% - 70px); z-index: 2; display: flex; flex-direction: column; background: rgba(15,20,16,.95); border: 1px solid var(--border-strong); border-radius: var(--radius-sm); box-shadow: 0 8px 28px rgba(0,0,0,.55); backdrop-filter: blur(4px); animation: map-panel-in .18s ease-out; }
.map-panel[hidden] { display: none; }
@keyframes map-panel-in { from { transform: translateX(16px); opacity: 0; } to { transform: none; opacity: 1; } }
.map-panel .zone-legend { margin: 0; padding: 10px; border-bottom: 1px solid var(--border); }
.map-panel .zone-chip { font-size: 12px; padding: 3px 8px; }
.map-panel-list { flex: 1; overflow-y: auto; }
.zone-row { display: flex; align-items: center; gap: 4px; padding: 0 6px 0 0; border-bottom: 1px solid rgba(42,54,44,.7); }
.zone-row:last-child { border-bottom: 0; }
.zone-row.inactive { opacity: .55; }
.zone-row-main { flex: 1; min-width: 0; display: flex; align-items: flex-start; gap: 10px; padding: 9px 4px 9px 12px; background: none; border: 0; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.zone-row-main:hover { background: var(--bg-elev-2); }
.zone-row-main .zone-swatch { margin-top: 3px; }
.zone-row-main .grow { min-width: 0; }
.zone-row-sub { display: block; margin-top: 2px; }
.zone-row-actions { display: flex; flex: none; }
@media (max-width: 760px) { .map-wrap.panel-open .map-panel-toggle { right: auto; left: 10px; top: auto; bottom: 10px; } }
.zone-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--border-strong); background: transparent; color: var(--text); font: inherit; font-size: 12.5px; cursor: pointer; }
.zone-chip.active { background: var(--primary-soft); border-color: var(--primary); }
.zone-swatch { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--zk, var(--zk-sonstiges)); flex: none; }
.zone-swatch.lg { width: 14px; height: 14px; margin-right: 4px; }
.zone-swatch.poly { border-radius: 3px; }
.zone-tools { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 4px; }
.zone-size { padding: 8px 0; font-weight: 600; }
.geo .zone-swatch { width: 8px; height: 8px; margin-right: 2px; }

/* ---- Zeitkonto: Monatskalender ---- */
.acc-cal { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 14px; align-items: start; }
.acc-cal .cal-wrap { min-width: 0; padding: 10px 14px 12px; }
.cal-grid { display: grid; grid-template-columns: 30px repeat(7, minmax(0, 1fr)) 128px; gap: 5px; }
.cal-h { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--text-dim); padding: 0 4px 2px; }
.cal-h.we { color: var(--text-faint); }
.cal-h.kw { text-align: center; padding: 0 0 2px; }
.cal-kw { display: flex; align-items: center; justify-content: center; font-size: 11px; color: var(--text-faint); }
.cal-day { --tint: transparent; position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 2px; text-align: left;
  height: clamp(44px, calc((100vh - 540px) / 6), 66px); padding: 4px 7px; border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: linear-gradient(var(--tint), var(--tint)), var(--bg-sunken); color: var(--text); font: inherit; cursor: pointer; min-width: 0; overflow: hidden; }
.cal-day:hover { border-color: var(--border-strong); filter: brightness(1.12); }
.cal-day:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.cal-day.out { background: transparent; border: 1px dashed rgba(42,54,44,.45); cursor: default; }
.cal-day.out:hover { filter: none; }
.cal-day.today { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.cal-day.sel { border-color: var(--text); box-shadow: inset 0 0 0 1px var(--text); }
.cal-top { display: flex; align-items: center; gap: 4px; }
.cal-num { font-size: 12px; font-weight: 700; color: var(--text-dim); }
.cal-top .cal-sub { margin-left: auto; }
.cal-abs-l { font-family: var(--font); font-weight: 600; color: #9fd3ea; }
.cal-day.today .cal-num { color: var(--accent); }
.cal-main { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 14.5px; font-weight: 700; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-sub { font-size: 11.5px; font-family: var(--mono); color: var(--text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-height: 13px; }
.cal-tag { font-family: var(--font); font-size: 11.5px; font-weight: 600; }
.cal-flag { display: inline-flex; }
.cal-flag.warn { color: #f08c88; } .cal-flag.adj { color: var(--info); }
.cal-live { width: 8px; height: 8px; border-radius: 50%; background: var(--primary-strong); box-shadow: 0 0 0 3px var(--primary-soft); animation: pulse 1.6s infinite; }
.cal-day.st-plus { --tint: rgba(111, 174, 60, .2); border-color: rgba(111, 174, 60, .35); }
.cal-day.st-minus, .cal-day.st-running { --tint: rgba(224, 165, 38, .16); border-color: rgba(224, 165, 38, .32); }
.cal-day.st-running { --tint: rgba(111, 174, 60, .1); }
.cal-day.st-missing { --tint: rgba(217, 83, 79, .16); border-color: rgba(217, 83, 79, .45); }
.cal-day.st-missing .cal-tag { color: #f0a09d; }
.cal-day.st-holiday { --tint: var(--accent-soft); border-color: rgba(217, 166, 48, .35); }
.cal-day.st-holiday .cal-tag { color: var(--accent); }
.cal-day.st-absence { --tint: rgba(79, 163, 201, .12); border-color: rgba(79, 163, 201, .3); }
.cal-day.st-free, .cal-day.st-pre { background: transparent; }
.cal-day.st-free .cal-num, .cal-day.st-pre .cal-num { color: var(--text-faint); }
.cal-day.st-pre { opacity: .55; }
.cal-day.st-future .cal-num { color: var(--text-dim); }
.cal-week { display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 4px 8px; border-left: 1px solid var(--border); min-width: 0; }
.cw-nums { display: flex; align-items: baseline; gap: 5px; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.cw-bar { height: 6px; border-radius: 3px; background: var(--bg-elev-3); overflow: hidden; }
.cw-fill { display: block; height: 100%; background: var(--warning); border-radius: 3px; }
.cw-fill.full { background: var(--primary); }
.cw-diff { font-family: var(--mono); }
.cal-legend { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 12px; color: var(--text-dim); font-weight: 500; }
.cal-legend span { display: inline-flex; align-items: center; gap: 6px; }
.cal-legend .lg { --tint: transparent; width: 12px; height: 12px; border-radius: 3px; border: 1px solid var(--border-strong); background: linear-gradient(var(--tint), var(--tint)), var(--bg-sunken); }
.cal-legend .lg.st-plus { --tint: rgba(111, 174, 60, .45); } .cal-legend .lg.st-minus { --tint: rgba(224, 165, 38, .4); }
.cal-legend .lg.st-missing { --tint: rgba(217, 83, 79, .4); } .cal-legend .lg.st-holiday { --tint: rgba(217, 166, 48, .35); }
.cal-legend .lg.st-absence { --tint: rgba(79, 163, 201, .35); } .cal-legend .lg.st-free { background: transparent; }
.cal-side { display: flex; flex-direction: column; border-left: 1px solid var(--border); align-self: stretch; }
.side-block { padding: 10px 14px; }
.side-block + .side-block { border-top: 1px solid var(--border); }
.side-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--text-dim); margin-bottom: 8px; }
.day-detail .dd-head { margin-bottom: 6px; display: flex; align-items: center; gap: 6px; }
.dd-badges { margin-bottom: 6px; }
.dd-row { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; font-size: 13px; }
.dd-parts { display: grid; grid-template-columns: 1fr 1fr; gap: 3px 12px; padding: 4px 0 8px; border-bottom: 1px solid var(--border); }
.dd-parts > span { display: flex; justify-content: space-between; gap: 6px; }
.dd-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding-top: 8px; }
.dd-kpis > div { display: flex; flex-direction: column; gap: 1px; font-size: 15px; }
.cal-hint { display: flex; gap: 6px; align-items: flex-start; line-height: 1.4; }
.bal-line svg { width: 100%; height: 70px; display: block; }
.bl-zero { stroke: var(--border-strong); stroke-dasharray: 3 3; vector-effect: non-scaling-stroke; }
.bl-path { fill: none; stroke: var(--primary-strong); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.bl-path.neg { stroke: #f08c88; }
.bl-area { fill: var(--primary-soft); } .bl-area.neg { fill: var(--danger-soft); }
.bl-dot { fill: var(--primary-strong); } .bl-dot.neg { fill: #f08c88; }
.bl-legend { display: flex; justify-content: space-between; gap: 8px; margin-top: 4px; }
.acc-start-note { display: flex; gap: 8px; align-items: center; margin-bottom: 12px; }
/* Berichte-Vorschau: Kalender in voller Breite, Details darunter */
.acc-cal.stacked { grid-template-columns: minmax(0, 1fr); gap: 0; }
.acc-cal.stacked .cal-wrap { border: 0; border-radius: 0; }
.acc-cal.stacked .cal-side { border-left: 0; border-top: 1px solid var(--border); flex-direction: row; }
.acc-cal.stacked .cal-side .side-block { flex: 1; }
.acc-cal.stacked .side-block + .side-block { border-top: 0; border-left: 1px solid var(--border); }
.cal-mon { margin-left: 3px; font-weight: 600; color: var(--accent); }
.report-view-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 0 10px; }
.report-view-bar .cal-legend { margin-left: auto; }
@media (max-width: 1250px) {
  .acc-cal { grid-template-columns: minmax(0, 1fr); }
  .cal-side { border-left: 0; border-top: 1px solid var(--border); flex-direction: row; }
  .cal-side .side-block { flex: 1; } .side-block + .side-block { border-top: 0; border-left: 1px solid var(--border); }
}
@media (max-width: 900px) { .cal-grid { grid-template-columns: 0 repeat(7, minmax(0, 1fr)) 0; } .cal-kw, .cal-week, .cal-h.kw, .cal-h:last-child { visibility: hidden; overflow: hidden; } }
/* ---------- Layout-Feinschliff ---------- */
/* Zeiten: alle Mitarbeiter-Blöcke eines Tages mit identischen Spalten, damit Ort/Tätigkeit/Hinweise untereinander stehen */
.seg-table { table-layout: fixed; min-width: 860px; }
.seg-table col.c-type { width: 112px; }
.seg-table col.c-time { width: 132px; }
.seg-table col.c-dur { width: 64px; }
.seg-table col.c-src { width: 120px; }
.seg-table col.c-act { width: 15%; }
.seg-table col.c-flag { width: 17%; }
.seg-table td:nth-child(5), .seg-table td:nth-child(6) { overflow: hidden; text-overflow: ellipsis; }
.seg-table td:nth-child(7) .badge { white-space: normal; height: auto; min-height: 22px; line-height: 1.25; text-align: left; }
/* Kartentitel nicht mitten im Wort umbrechen; lange Untertitel brechen stattdessen um */
.card-title h3 { white-space: nowrap; flex: none; }
/* Kennzahlen-Kacheln: alle sieben auf Laptop-Breite in einer Reihe statt 6 + 1 verwaister Kachel */
.stat-row { grid-template-columns: repeat(auto-fit, minmax(116px, 1fr)); }
.stat-row .stat { display: flex; flex-direction: column; }
.stat-row .stat-label { margin-bottom: 4px; }
.stat-row .stat-val { margin-top: auto; }

/* ---- QR-Code-Zugang (Mobile-App) ---- */
.qr-sheet-body { display: flex; gap: 16px; align-items: flex-start; }
.qr-box { flex: none; background: #fff; padding: 6px; border-radius: 10px; line-height: 0; }
.qr-svg { display: block; }
.qr-info { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.qr-user { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.qr-steps { margin: 4px 0 6px; padding-left: 18px; display: flex; flex-direction: column; gap: 3px; }
.qr-notes { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; }
.qr-placeholder { height: 120px; display: flex; align-items: center; justify-content: center; border: 1px dashed var(--border-strong); border-radius: 10px; }
.print-only { display: none; }
@media (max-width: 480px) { .qr-sheet-body { flex-direction: column; align-items: center; } }

/* Nur den Zugangszettel drucken (schwarz auf weiß) */
#qr-print-root { display: none; }
@media print {
  body.printing-qr > *:not(#qr-print-root) { display: none !important; }
  body.printing-qr { background: #fff !important; color: #000 !important; }
  body.printing-qr #qr-print-root { display: block; padding: 12mm; color: #000; }
  body.printing-qr #qr-print-root * { color: #000 !important; }
  body.printing-qr .print-only { display: block; }
  body.printing-qr .qr-sheet-head h2 { font-size: 20pt; margin: 2mm 0 6mm; }
  body.printing-qr .qr-name { font-size: 16pt; font-weight: 700; margin-bottom: 3mm; }
  body.printing-qr .qr-sheet-body { gap: 10mm; flex-direction: row; }
  body.printing-qr .qr-box { padding: 0; }
  body.printing-qr .qr-svg { width: 70mm; height: 70mm; }
  body.printing-qr .qr-steps, body.printing-qr .qr-info .small { font-size: 11pt; }
  body.printing-qr .qr-user { font-size: 15pt; }
}

/* Überstundenkonto */
.overtime-card .stat-row { margin-bottom: 8px; }
.overtime-card .ot-main { border-color: rgba(78, 160, 214, .45); }
.ot-upcoming { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 4px 0 10px; font-size: 13px; }
.ot-up { display: inline-flex; align-items: center; gap: 8px; }
.ot-note { display: flex; gap: 6px; align-items: flex-start; flex-wrap: wrap; }
.ot-note svg { margin-top: 2px; flex: none; }
.ot-hint { margin-bottom: 0; }
.ot-hint .dc-line + .dc-line { margin-top: 4px; }
.ot-ind { width: 14px; flex: none; }

.target-note { display: flex; gap: 8px; align-items: flex-start; margin: -4px 0 12px; color: var(--text); }
.target-note svg { color: var(--accent); margin-top: 2px; flex: none; }
.rule-hint { font-size: 11px; line-height: 1.3; margin-top: 2px; }
