:root {
  --navy:#073b67;
  --navy-deep:#052f55;
  --blue:#1769d2;
  --bg:#f4f8fc;
  --line:#dbe5ef;
  --text:#16324f;
  --muted:#64778b;
  --green:#178b5b;
  --orange:#d97a00;
  --red:#d64545;
  --shadow:0 8px 28px rgba(22,50,79,.07);
}
* { box-sizing:border-box; }
body { margin:0; background:var(--bg); color:var(--text); font-family:Arial,sans-serif; font-size:13px; }
button, select, input, textarea { font:inherit; }
button { cursor:pointer; }
:where(a, button, input, select, textarea, summary, [role="button"]):focus-visible {
  outline:3px solid #f5b51b;
  outline-offset:3px;
}
.app-shell { min-height:100vh; display:grid; grid-template-columns:116px minmax(0,1fr); }
.page-plan .app-shell { grid-template-columns:116px minmax(0,1fr); }
.sidebar { position:sticky; top:0; height:100vh; padding:10px 8px; background:linear-gradient(180deg,var(--navy-deep),var(--navy)); color:#fff; display:flex; flex-direction:column; z-index:10; }
.brand { min-height:76px; padding:5px 2px 9px; border-bottom:1px solid rgba(255,255,255,.15); display:flex; flex-direction:column; align-items:center; justify-content:center; gap:5px; text-align:center; }
.brand-mark { font-weight:bold; letter-spacing:.08em; }
.brand-copy small, .brand-copy strong { display:block; }
.brand-copy small { color:#bcd8eb; font-size:8px; text-transform:uppercase; letter-spacing:.07em; }
.brand-copy strong { margin-top:2px; color:#fff; font-size:13px; }
.side-link { min-height:58px; padding:7px 4px; border-radius:9px; color:#d9ecfb; text-decoration:none; display:flex; flex-direction:column; justify-content:center; align-items:center; gap:5px; font-size:10px; text-align:center; }
.side-link[hidden] { display:none!important; }
.side-link span { font-size:20px; }
.side-link:hover, .side-link.active { background:rgba(255,255,255,.11); color:#fff; }
.side-action { width:100%; border:0; background:transparent; color:#d9ecfb; }
.side-action:hover { filter:none; }
.side-spacer { flex:1; }
.sidebar-user { padding:15px 4px 0; border-top:1px solid rgba(255,255,255,.18); text-align:center; color:#c7e2f6; font-size:11px; }
.sidebar-profile { width:100%; min-height:0; padding:14px 2px 11px; border:0; border-top:1px solid rgba(255,255,255,.18); border-radius:0; background:transparent; color:#fff; display:flex; flex-direction:column; align-items:center; gap:7px; text-align:center; }
.sidebar-profile:hover { background:rgba(255,255,255,.07); filter:none; }
.sidebar-profile-static { display:flex; cursor:default; }
.sidebar-profile-static:hover { background:transparent; }
.sidebar-avatar { width:36px; height:36px; border-radius:50%; background:rgba(255,255,255,.15); color:#fff; display:grid; place-items:center; font-size:12px; font-weight:bold; letter-spacing:.04em; }
.sidebar-profile-text { width:100%; min-width:0; }
.sidebar-profile-text strong, .sidebar-profile-text small { display:block; overflow:hidden; text-overflow:ellipsis; }
.sidebar-profile-text strong { color:#fff; font-size:12px; line-height:1.25; }
.sidebar-profile-text small { margin-top:3px; color:#bcd8eb; font-size:9px; white-space:nowrap; }
.mobile-profile-label { display:none; }
.sidebar-logout { width:100%; min-height:40px; padding:7px 5px; border:1px solid rgba(255,255,255,.2); border-radius:8px; background:rgba(255,255,255,.07); color:#fff; align-items:center; justify-content:center; gap:6px; font-size:11px; }
.sidebar-logout:hover { background:rgba(255,255,255,.13); filter:none; }
.sidebar-logout span { font-size:16px; }
.main-shell { min-width:0; }
.is-logged-out .app-shell { display:block; }
.is-logged-out .sidebar,
.is-logged-out .view-tabs,
.is-logged-out .page-heading,
.is-logged-out .summary-grid,
.is-logged-out .planner-card { display:none; }
.is-logged-out .topbar { justify-content:center; text-align:center; }
.is-logged-out .page-content { min-height:calc(100vh - 76px); display:grid; place-items:center; padding:28px; }
.is-logged-out #loginBox { width:min(460px,100%); max-width:460px; margin:0; padding:28px; }
.is-logged-out #loginBox b { font-size:22px; }
.is-logged-out #loginBox input { width:100%; margin-bottom:10px; }
.is-logged-out #loginBox button { width:100%; margin-bottom:10px; }
.is-logged-out #loginMsg { text-align:center; }
.is-logged-out #loginBox .login-method-tabs { margin:6px 0 16px; display:grid; grid-template-columns:1fr 1fr; gap:7px; }
.is-logged-out #loginBox .login-method-tabs button { width:auto; margin:0; border-color:#b8c9db; background:#f4f8fc; color:#31516f; }
.is-logged-out #loginBox .login-method-tabs button.active { border-color:var(--blue); background:#eaf3ff; color:var(--blue); box-shadow:inset 0 -2px 0 var(--blue); }
.login-method-panel[hidden] { display:none!important; }
.login-method-note { margin-top:2px; color:var(--muted); display:block; line-height:1.4; }
.login-password-field { margin-top:2px; }
.topbar { height:76px; padding:0 28px; background:#fff; border-bottom:1px solid var(--line); display:flex; align-items:center; justify-content:space-between; }
.main-shell > .topbar { display:none; }
.is-logged-out .main-shell > .topbar { display:flex; }
.eyebrow { margin:0 0 3px; color:var(--muted); font-size:10px; font-weight:bold; text-transform:uppercase; letter-spacing:.1em; }
.topbar h1 { margin:0; font-size:27px; }
.view-tabs { display:none; }
.view-tabs a { padding:0 21px; border-bottom:3px solid transparent; color:#52677b; text-decoration:none; font-weight:bold; display:flex; align-items:center; }
.view-tabs a.active { color:var(--blue); border-bottom-color:var(--blue); }
.page-content { padding:12px 14px 28px; }
.page-heading { display:none; margin-bottom:0; }
.page-heading h2 { margin:0; font-size:23px; }
.summary-grid { display:grid; grid-template-columns:repeat(4,minmax(120px,1fr)); gap:6px; margin:0; padding:8px; }
.summary-card { min-height:66px; padding:8px 9px; background:#fff; border:1px solid var(--line); border-radius:9px; box-shadow:none; display:flex; align-items:center; gap:8px; min-width:0; }
.summary-card-action { cursor:pointer; transition:transform .15s, box-shadow .15s, border-color .15s; }
.summary-card-action:hover { transform:translateY(-1px); border-color:#b9d5f1; box-shadow:0 12px 30px rgba(22,50,79,.12); }
.wfm-filter-card.is-active { border-color:#7fb3e8; box-shadow:0 0 0 3px rgba(23,105,210,.13), var(--shadow); }
.wfm-filter-card.is-active p::after { content:' · Filter aktiv'; color:var(--blue); }
.summary-icon { width:30px; height:30px; flex:0 0 30px; border-radius:50%; display:grid; place-items:center; background:#edf4ff; color:var(--blue); font-size:15px; font-weight:bold; }
.summary-card.green .summary-icon { background:#eaf8f1; color:var(--green); }
.summary-card.orange .summary-icon { background:#fff4e7; color:var(--orange); }
.summary-card.red .summary-icon { background:#ffeded; color:var(--red); }
.summary-card.neutral .summary-icon { background:#f0f3f6; color:#64778b; }
.summary-card > div { min-width:0; }
.summary-card p { margin:0; color:var(--muted); font-size:10px; font-weight:bold; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.summary-card strong { display:block; margin:1px 0; color:var(--text); font-size:17px; line-height:1.1; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.summary-card small { display:block; color:#708297; font-size:9px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.planner-card { overflow:visible; background:#fff; border:1px solid var(--line); border-radius:12px; box-shadow:var(--shadow); }
.planner-overview-row { display:grid; grid-template-columns:minmax(520px,1.05fr) minmax(500px,.95fr); align-items:stretch; border-bottom:1px solid var(--line); border-radius:11px 11px 0 0; background:#f8fbfe; }
.planner-overview-row > .summary-grid { align-self:center; }
.planner-overview-row > .planner-controls { align-content:center; }
.topbar-local, .row, .control-card { padding:14px; margin:0 0 14px; background:#fff; border:1px solid var(--line); border-radius:12px; box-shadow:var(--shadow); display:flex; gap:9px; align-items:center; flex-wrap:wrap; }
.planner-card .planner-controls { margin:0; border:0; border-left:1px solid var(--line); border-bottom:0; border-radius:0; box-shadow:none; }
.planner-overview-row .planner-controls { padding:8px; gap:6px; }
.planner-overview-row .planner-controls button,
.planner-overview-row .planner-controls select,
.planner-overview-row .planner-controls input { min-height:34px; height:34px; }
.planner-overview-row .booking-filter,
.planner-overview-row .plan-project-filter,
.planner-overview-row .auto-refresh-control { min-height:34px; height:34px; }
.planner-overview-row .last-updated { flex:1 1 100%; margin-left:0; text-align:right; }
.planner-card .topbar-local { height:auto; min-height:0; }
.capacity-warning { min-height:54px; padding:9px 12px; border-bottom:1px solid #efc58d; background:#fff8ef; color:#8b4d00; display:grid; grid-template-columns:34px minmax(0,1fr) auto; align-items:center; gap:10px; }
.capacity-warning[hidden] { display:none!important; }
.capacity-warning-icon { width:32px; height:32px; border-radius:50%; background:#ffe8c8; color:#c66c00; display:grid; place-items:center; font-size:17px; font-weight:bold; }
.capacity-warning strong, .capacity-warning small { display:block; }
.capacity-warning strong { color:#7b4300; }
.capacity-warning small { margin-top:2px; color:#9b641e; line-height:1.35; }
.capacity-warning button { min-height:34px; height:34px; border-color:#d99845; background:#fff; color:#9a5600; }
.auto-refresh-control { min-height:40px; padding:0 10px; border:1px solid var(--line); border-radius:8px; background:#f8fbfe; color:#52677b; display:flex; align-items:center; gap:7px; font-weight:normal!important; white-space:nowrap; }
.auto-refresh-control input { width:16px; height:16px; min-height:0; margin:0; accent-color:var(--blue); }
.last-updated { margin-left:auto; color:var(--muted); font-size:11px; white-space:nowrap; }
.last-updated.is-error { color:var(--orange); font-weight:bold; }
.topbar-local label, .control-card label { color:var(--muted); font-weight:bold; }
.booking-filter { min-height:40px; padding:0 11px; border:1px solid #b8c9db; border-radius:8px; background:#f8fbfe; display:flex; align-items:center; gap:8px; color:#31516f!important; white-space:nowrap; }
.booking-filter input { width:16px; height:16px; min-height:0; margin:0; padding:0; accent-color:var(--blue); }
.plan-project-filter { min-height:40px; padding:0 5px 0 10px; border:1px solid #b8c9db; border-radius:8px; background:#f8fbfe; display:flex; align-items:center; gap:7px; color:#31516f!important; white-space:nowrap; }
.plan-project-filter select { min-height:30px!important; height:30px!important; padding:0 7px; border-color:transparent; background:#fff; font-size:11px; }
select, input, textarea { border:1px solid #b8c9db; border-radius:8px; background:#fff; color:var(--text); }
select, input { min-height:40px; padding:0 10px; }
textarea { padding:9px 10px; }
button { min-height:40px; padding:0 14px; border:1px solid #9bb6cf; border-radius:8px; background:#fff; color:#31516f; font-weight:bold; }
button:hover { filter:brightness(.97); }
button:disabled { opacity:.5; cursor:not-allowed; }
.network-status-banner { position:fixed; top:12px; left:50%; z-index:80; width:min(560px,calc(100vw - 24px)); min-height:44px; padding:11px 15px; border:1px solid #e5b66f; border-radius:10px; background:#fff7eb; color:#8f5000; box-shadow:0 12px 35px rgba(5,47,85,.18); transform:translateX(-50%); text-align:center; font-weight:bold; line-height:1.4; }
.network-status-banner[hidden] { display:none!important; }
.network-status-banner.online { border-color:#8bc9ab; background:#eefaf4; color:#126b47; }
.has-network-banner .toast-region { top:72px; }
#sendSelection, #demandSendBtn, #cancelReasonConfirmBtn, #notificationSettingsSaveBtn { border-color:var(--blue); background:var(--blue); color:#fff; }
#cancelSelection, #bulkWeek, #bulkMonth, #bulkFuture { border-color:#e1a3a3; color:#b43d3d; }
#loginBox { padding:20px; max-width:620px; background:#fff; border:1px solid var(--line); border-radius:12px; box-shadow:var(--shadow); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior:auto!important;
    animation-duration:.01ms!important;
    animation-iteration-count:1!important;
    transition-duration:.01ms!important;
  }
}
#loginBox b { display:block; font-size:18px; margin-bottom:12px; }
#loginBox button { border-color:var(--blue); background:var(--blue); color:#fff; }
.login-help { margin:0 0 18px; color:var(--muted); line-height:1.5; }
.login-field { margin-bottom:10px; }
.login-field label { display:block; margin-bottom:5px; color:#52677b; font-size:12px; font-weight:bold; }
.login-code-field { margin-top:15px; }
#loginMsg { min-height:18px; margin-top:12px; color:#b43d3d; line-height:1.4; text-align:left; }
.login-message.info { color:#52677b!important; }
.login-message.success { color:var(--green)!important; }
.login-message.error { color:#b43d3d!important; }
.settings-dialog-body { width:min(520px,calc(100vw - 40px)); max-width:520px; max-height:min(820px,calc(100vh - 40px)); overflow:auto; }
.security-settings-card { padding:14px; border:1px solid #b9cde0; border-radius:10px; background:#f8fbfe; }
.security-settings-header { margin-bottom:10px; display:flex; align-items:flex-start; justify-content:space-between; gap:12px; }
.security-settings-header h5 { margin:0 0 3px; color:var(--text); font-size:15px; }
.security-settings-header small { color:var(--muted); line-height:1.35; }
.security-status { flex:0 0 auto; padding:5px 8px; border:1px solid #c4d1dc; border-radius:999px; background:#fff; color:#64778b; font-size:10px; font-weight:bold; }
.security-status.active { border-color:#2f9d69; background:#ccebd9; color:#08623d; }
.security-settings-card input { width:100%; }
.security-settings-card #passwordSettingsSaveBtn { width:100%; border-color:var(--blue); background:var(--blue); color:#fff; }
.field-help { margin-top:4px; color:var(--muted); display:block; line-height:1.35; }
.settings-inline-message { min-height:18px; margin:7px 0; color:var(--muted); line-height:1.4; }
.settings-inline-message.success { color:#08623d; }
.settings-inline-message.error { color:#a61f2d; }
.settings-inline-message.info { color:#31516f; }
.settings-section-divider { height:1px; margin:18px 0; background:var(--line); }
.settings-section-title { margin:0 0 10px; color:var(--text); font-size:15px; }
.plan-toolbar { position:sticky; top:0; z-index:12; min-height:49px; margin:0; padding:6px 10px; border-bottom:1px solid var(--line); background:#fff; box-shadow:0 5px 14px rgba(22,50,79,.06); display:flex; align-items:center; justify-content:space-between; gap:10px; }
.week-nav { min-width:0; margin:0; padding:0; border:0; background:transparent; box-shadow:none; display:flex; align-items:center; justify-content:flex-start; gap:5px; flex:0 0 auto; }
.print-plan-context { display:none; }
.week-btn { width:36px; height:34px; min-height:34px; padding:0; border-color:#b8c9db; background:#fff; color:#244967; }
.today-week-btn { min-width:36px; margin:0; border-color:#9fc7f1; background:#f3f8ff; color:var(--blue); }
.week-label { min-width:195px; padding-left:8px; font-size:15px; text-align:left; white-space:nowrap; }
#weekSelect { min-width:175px; min-height:34px; height:34px; padding:0 8px; font-size:11px; }
.plan-action-controls, .plan-toolbar-right { min-width:0; margin-left:auto; display:flex; align-items:center; justify-content:flex-end; gap:6px; }
.page-plan .plan-action-controls { overflow-x:auto; overscroll-behavior-inline:contain; scrollbar-width:thin; }
.plan-action-controls > button,
.plan-action-controls > select,
.plan-toolbar-right > button,
.plan-toolbar-right > select { min-height:34px; height:34px; padding:0 10px; white-space:nowrap; }
.selection-bar-text, .employee-selection-summary { min-width:145px; max-width:190px; margin:0 4px 0 0; }
.selection-bar-text strong, .selection-bar-text small,
.employee-selection-summary strong, .employee-selection-summary small { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.selection-bar-text strong, .employee-selection-summary strong { color:var(--text); font-size:11px; }
.selection-bar-text small, .employee-selection-summary small { margin-top:2px; color:var(--muted); font-size:9px; }
.action-control-label { min-height:34px; padding:3px 4px 3px 8px; border:1px solid #b8c9db; border-radius:8px; background:#f8fbfe; color:var(--muted); display:flex; align-items:center; gap:5px; white-space:nowrap; }
.action-control-label span { font-size:9px; font-weight:bold; }
.action-control-label select { min-width:78px; min-height:26px; height:26px; padding:0 6px; border-color:transparent; font-size:11px; }
.plan-action-controls #targetProject { width:150px; min-width:130px; }
.primary-action { border-color:var(--blue); background:var(--blue); color:#fff; }
.toolbar-more { position:relative; flex:0 0 auto; }
.toolbar-more > summary { min-height:34px; height:34px; padding:0 28px 0 10px; border:1px solid #9fc7f1; border-radius:8px; background:#fff; color:var(--blue); display:flex; align-items:center; cursor:pointer; list-style:none; font-weight:bold; white-space:nowrap; }
.toolbar-more > summary::-webkit-details-marker { display:none; }
.toolbar-more > summary::after { content:'▾'; position:absolute; right:10px; font-size:10px; }
.toolbar-more[open] > summary { background:#f3f8ff; }
.toolbar-more-menu { position:absolute; top:40px; right:0; z-index:35; min-width:190px; padding:6px; border:1px solid var(--line); border-radius:9px; background:#fff; box-shadow:0 14px 34px rgba(5,47,85,.18); display:grid; gap:5px; }
.toolbar-more-menu button { width:100%; min-height:34px; height:34px; padding:0 10px; text-align:left; white-space:nowrap; }
.readonly-hint { padding:9px 14px; border-bottom:1px solid var(--line); background:#fff8ef; color:#8b4d00; }
#status { margin:0!important; padding:11px 15px; background:#f9fbfd; border:0; border-bottom:1px solid var(--line); color:var(--muted); }
.plan-status-row { min-height:36px; border-bottom:1px solid var(--line); background:#f9fbfd; display:flex; align-items:center; }
.plan-status-row #status { flex:1; border-bottom:0; }
.plan-status-row .last-updated { margin:0; padding:0 15px; }
.mobile-day-switcher { display:none; min-height:40px; padding:5px 8px; border-bottom:1px solid var(--line); background:#f8fbfe; align-items:center; justify-content:center; gap:10px; }
.mobile-day-switcher[hidden] { display:none!important; }
.mobile-day-switcher button { width:36px; min-height:32px; height:32px; padding:0; }
.mobile-day-label { min-width:180px; text-align:center; }
.employee-plan-meta { padding:10px 14px; border-bottom:1px solid var(--line); background:#fff; display:flex; flex-wrap:wrap; gap:8px; }
.employee-plan-meta[hidden] { display:none!important; }
.employee-plan-meta span { min-width:180px; padding:8px 10px; border:1px solid var(--line); border-radius:8px; background:#f8fbfe; display:flex; align-items:center; gap:8px; }
.employee-plan-meta strong { color:var(--muted); font-size:11px; }
.employee-plan-meta b { color:var(--text); font-size:12px; }
.plan-container { display:flex; gap:0; overflow-x:auto; overscroll-behavior-inline:contain; -webkit-overflow-scrolling:touch; padding:0; background:#fff; border:1px solid var(--line); border-radius:0 0 12px 12px; box-shadow:var(--shadow); }
.planner-card .plan-container { border:0; border-radius:0; box-shadow:none; }
#selectionBarClearBtn { border-color:#e1a3a3; color:#b43d3d; }
.toast-region { position:fixed; top:18px; right:28px; z-index:60; width:min(390px,calc(100vw - 36px)); display:grid; gap:9px; pointer-events:none; }
.app-toast { min-height:54px; padding:10px 10px 10px 12px; border:1px solid var(--line); border-left-width:4px; border-radius:10px; background:#fff; box-shadow:0 14px 38px rgba(5,47,85,.2); display:grid; grid-template-columns:28px minmax(0,1fr) 30px; align-items:center; gap:8px; pointer-events:auto; }
.app-toast.info { border-left-color:var(--blue); }
.app-toast.success { border-left-color:var(--green); }
.app-toast.warning { border-left-color:var(--orange); }
.app-toast.error { border-left-color:var(--red); }
.app-toast-icon { width:26px; height:26px; border-radius:50%; background:#edf4ff; color:var(--blue); display:grid; place-items:center; font-weight:bold; }
.app-toast.success .app-toast-icon { background:#eaf8f1; color:var(--green); }
.app-toast.warning .app-toast-icon { background:#fff4e7; color:var(--orange); }
.app-toast.error .app-toast-icon { background:#ffeded; color:var(--red); }
.app-toast-text { color:var(--text); line-height:1.4; }
.app-toast-close { width:30px; min-height:30px; height:30px; padding:0; border:0; background:transparent; color:#708297; font-size:20px; font-weight:normal; }
.app-toast-close:hover { background:#f1f4f7; filter:none; }
.plan-container.personal-filter-active .slot.filtered-out { display:none; }
.plan-container.personal-filter-active .day-column.personal-filtered-day::after { content:'Keine passenden Zeiten'; display:block; padding:16px 8px; color:#8a9bad; font-size:11px; text-align:center; }
.slot.capacity-filtered-out, .day-column.capacity-filtered-day { display:none; }
.plan-container.capacity-filter-empty::after { content:'Für diesen Filter gibt es in der ausgewählten Woche keine Zeitblöcke.'; width:100%; padding:28px 18px; color:var(--muted); text-align:center; }
.day-column { min-width:132px; flex:1; border:0; border-right:1px solid var(--line); }
.page-wfm .day-column { min-width:145px; }
.page-wfm-employee .day-column { min-width:160px; }
.day-column:last-child { border-right:0; }
.day-header { min-height:48px; padding:6px 4px 5px; background:#f8fbfe; border-bottom:1px solid var(--line); text-align:center; font-weight:bold; position:sticky; top:49px; z-index:6; }
.day-header-stats { min-height:12px; margin-top:3px; color:var(--muted); font-size:9px; font-weight:normal; line-height:1.2; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.page-wfm .day-header { min-height:58px; }
.page-wfm .day-header-stats { min-height:22px; margin-top:5px; display:flex; align-items:center; justify-content:center; gap:5px; overflow:visible; }
.day-capacity-badge { min-width:46px; padding:3px 6px; border:1px solid transparent; border-radius:5px; font-size:10px; font-weight:bold; line-height:1; text-align:center; }
.day-capacity-badge.full { border-color:#2f9d69; background:#ccebd9; color:#08623d; }
.day-capacity-badge.good { border-color:#d9a90b; background:#ffe99a; color:#654500; }
.day-capacity-badge.partial { border-color:#e67a18; background:#ffd2a6; color:#833a00; }
.day-capacity-badge.critical { border-color:#d92d3d; background:#ffb7bd; color:#8b1220; }
.day-capacity-badge.empty { border-color:#741522; background:#9f1d2c; color:#fff; }
.day-capacity-detail { color:#64778b; font-size:9px; }
.today-column { box-shadow:inset 0 0 0 2px rgba(23,105,210,.18); }
.today-column .day-header { background:#eaf3ff; color:#145fbf; }
.today-badge { margin-left:5px; padding:2px 5px; border-radius:999px; background:var(--blue); color:#fff; font-size:9px; font-weight:bold; vertical-align:1px; }
.slot { min-height:31px; padding:4px 6px; border-bottom:1px solid var(--line); display:flex; align-items:center; gap:5px; transition:filter .15s, box-shadow .15s; }
.slot[role="button"] { cursor:pointer; }
.slot:hover { outline:0!important; filter:brightness(.97); box-shadow:inset 0 0 0 2px #9fc7f1; }
.slot.next-shift-highlight { position:relative; z-index:2; box-shadow:inset 0 0 0 3px var(--blue), 0 0 0 3px rgba(23,105,210,.2); }
.slot.next-shift-highlight:focus { outline:3px solid #f5b51b; outline-offset:2px; }
.slot.current-time-highlight { position:relative; z-index:2; box-shadow:inset 0 0 0 3px #f5b51b, 0 0 0 3px rgba(245,181,27,.24); }
.slot span.time, .slot .time { width:46px; font-weight:bold; color:#294660; }
.page-wfm-employee .slot .time { width:42px; flex:0 0 42px; }
.page-wfm-employee .slot .proj { min-width:0; font-size:10px; }
.page-wfm-employee .slot .st { width:58px; flex:0 0 58px; font-size:9px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.slot.green, .green { background:#f1fbf6!important; color:#15764e; }
.slot.red, .red, .slot.critical-red, .critical-red { background:#fff2f2!important; color:#bd3333; }
.slot.orange, .orange, .slot.yellow, .yellow { background:#fff8ef!important; color:#ad6200; }
.slot.blue, .blue, .slot.selected { background:#eaf3ff!important; color:#145fbf; }
.slot.grey, .grey { background:#f1f4f7!important; color:#6a7c8d; }
.page-plan .slot.green,
.page-wfm-employee .slot.green { border-left:3px solid #2f9d69; background:#ccebd9!important; color:#08623d; }
.page-plan .slot.blue,
.page-wfm-employee .slot.blue { border-left:3px solid #2d78d4; background:#cfe3ff!important; color:#0c55ac; }
.page-plan .slot.grey,
.page-wfm-employee .slot.grey { border-left:3px solid #8298ac; background:#e2eaf1!important; color:#28445e; }
.page-plan .slot.yellow,
.page-wfm-employee .slot.yellow { border-left:3px solid #d9a90b; background:#ffe49a!important; color:#684700; }
.page-plan .slot.red,
.page-wfm-employee .slot.red { border-left:3px solid #d92d3d; background:#ffc5ca!important; color:#941727; }
.page-plan .slot.selected,
.page-wfm-employee .slot.selected { border-left-color:#2563eb; background:#dbeafe!important; color:#145fbf; }
.page-plan .slot.selected-cancel { border-left-color:#dc2626; background:#fde2e2!important; color:#9d2424; }
.page-plan .slot.pending,
.page-wfm-employee .slot.pending { border-left-color:#d9a90b; background:#fff3b0!important; color:#684700; }
.page-wfm .slot.capacity-full,
.page-wfm .slot.capacity-good,
.page-wfm .slot.capacity-partial,
.page-wfm .slot.capacity-critical,
.page-wfm .slot.capacity-empty { min-height:27px; margin:2px 4px; padding:3px 5px; border:1px solid transparent; border-radius:6px; }
.page-wfm .slot.capacity-full { border-color:#2f9d69; background:#ccebd9; color:#08623d; }
.page-wfm .slot.capacity-good { border-color:#d9a90b; background:#ffe99a; color:#654500; }
.page-wfm .slot.capacity-partial { border-color:#e67a18; background:#ffd2a6; color:#833a00; }
.page-wfm .slot.capacity-critical { border-color:#d92d3d; background:#ffb7bd; color:#8b1220; }
.page-wfm .slot.capacity-empty { border-color:#741522; background:#9f1d2c; color:#fff; }
.page-wfm .slot .time { width:40px; flex:0 0 40px; color:inherit; }
.page-wfm .slot .meta { min-width:0; flex:1 1 auto; overflow:hidden; color:inherit; font-size:9px; font-weight:bold; white-space:nowrap; text-overflow:ellipsis; }
.page-wfm .slot .label { width:42px; flex:0 0 42px; color:inherit; font-size:9px; font-weight:bold; text-align:right; }
.page-wfm .slot.has-waitlist { border-left-width:4px; border-left-color:#5b21b6; }
.slot-waitlist-badge { min-width:31px; flex:0 0 auto; padding:3px 5px; border:1px solid #4c1d95; border-radius:999px; background:#5b21b6; color:#fff; font-size:9px; font-weight:bold; line-height:1; text-align:center; letter-spacing:.1px; }
.page-wfm .slot.capacity-empty .time,
.page-wfm .slot.capacity-empty .meta,
.page-wfm .slot.capacity-empty .label { color:#fff; }
#slotDetailDialog { width:min(680px,calc(100vw - 32px)); max-height:min(820px,calc(100vh - 32px)); padding:0; overflow:hidden; }
.slot-detail-dialog-body { max-height:calc(100vh - 34px); padding:22px; overflow:auto; }
#slotDetailDialog #panel { margin:0!important; border:0!important; padding:0!important; background:#fff; box-shadow:none; }
.slot-detail-header { padding-bottom:16px; border-bottom:1px solid var(--line); }
.slot-detail-header h4 { margin:0; color:var(--text); font-size:21px; }
.slot-detail-meta { margin-top:13px; display:flex; flex-wrap:wrap; gap:8px; }
.slot-detail-meta span { padding:7px 10px; border-radius:8px; background:#f4f8fc; color:var(--muted); font-size:12px; }
.slot-detail-meta strong { margin-left:4px; color:var(--text); }
.slot-detail-section { margin-top:15px; border:1px solid var(--line); border-left-width:4px; border-radius:10px; overflow:hidden; }
.slot-detail-section.confirmed { border-left-color:var(--green); }
.slot-detail-section.waitlist { border-left-color:var(--orange); }
.slot-detail-section.cancelled { border-left-color:var(--red); }
.slot-detail-section-title { min-height:42px; padding:8px 11px; background:#f8fbfe; display:flex; align-items:center; justify-content:space-between; gap:12px; }
.slot-detail-section-title h5 { margin:0; color:var(--text); font-size:14px; }
.slot-detail-section-title span { min-width:26px; height:26px; padding:0 7px; border-radius:999px; background:#e9f0f6; color:#31516f; display:grid; place-items:center; font-size:11px; font-weight:bold; }
.slot-detail-list { margin:0; padding:0; list-style:none; }
.slot-detail-list li { min-height:48px; padding:9px 11px; border-top:1px solid var(--line); display:flex; align-items:center; justify-content:space-between; gap:15px; }
.slot-detail-list strong { color:var(--text); }
.slot-detail-list small { color:var(--muted); text-align:right; }
.slot-detail-empty { padding:14px 11px; border-top:1px solid var(--line); color:var(--muted); }
.slot-detail-actions { margin-top:18px; display:flex; justify-content:flex-end; }
.activity-dialog-body { width:min(680px,calc(100vw - 48px)); max-height:min(780px,calc(100vh - 48px)); padding:22px; overflow:auto; }
.activity-dialog-header { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; }
.activity-dialog-header h4 { margin:0; color:var(--text); font-size:21px; }
.activity-dialog-hint { margin:14px 0; padding:10px 12px; border-radius:8px; background:#f4f8fc; color:var(--muted); font-size:12px; line-height:1.45; }
.activity-list { display:grid; gap:8px; }
.activity-list-empty { margin:0; padding:22px 12px; border:1px dashed #bfd0df; border-radius:9px; color:var(--muted); text-align:center; }
.activity-item { min-height:58px; padding:10px 12px; border:1px solid var(--line); border-left-width:4px; border-radius:9px; display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:14px; }
.activity-item.info { border-left-color:var(--blue); }
.activity-item.success { border-left-color:var(--green); }
.activity-item.warning { border-left-color:var(--orange); }
.activity-item.error { border-left-color:var(--red); }
.activity-item strong, .activity-item small { display:block; }
.activity-item strong { color:var(--text); }
.activity-item small { margin-top:3px; color:var(--muted); line-height:1.35; }
.activity-item time { color:var(--muted); font-size:11px; white-space:nowrap; }
.activity-dialog-actions { margin-top:16px; display:flex; justify-content:flex-end; }
.activity-dialog-actions button { border-color:#e1a3a3; color:#b43d3d; }
#wfmSystemCheckBtn.system-check-pass { border-color:#74bd99; background:#eefaf4; color:#126b47; }
#wfmSystemCheckBtn.system-check-warning { border-color:#e5b66f; background:#fff7eb; color:#8f5000; }
#wfmSystemCheckBtn.system-check-fail { border-color:#e1a3a3; background:#fff1f1; color:#a92f2f; }
.system-check-dialog-body { width:min(720px,calc(100vw - 48px)); max-height:min(820px,calc(100vh - 48px)); padding:22px; overflow:auto; }
.system-check-dialog-header { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; }
.system-check-dialog-header h4 { margin:0; color:var(--text); font-size:21px; }
.system-check-dialog-header small { display:block; margin-top:4px; color:var(--muted); }
.system-check-hint { margin:14px 0; padding:10px 12px; border-radius:8px; background:#f4f8fc; color:var(--muted); font-size:12px; line-height:1.45; }
.system-check-summary { margin-bottom:12px; padding:10px 12px; border:1px solid var(--line); border-left-width:4px; border-radius:8px; background:#f8fbfe; color:#31516f; font-weight:bold; }
.system-check-summary.running { border-left-color:var(--blue); }
.system-check-summary.pass { border-left-color:var(--green); background:#eefaf4; color:#126b47; }
.system-check-summary.warning { border-left-color:var(--orange); background:#fff7eb; color:#8f5000; }
.system-check-summary.fail { border-left-color:var(--red); background:#fff1f1; color:#a92f2f; }
.system-check-list { display:grid; gap:8px; }
.system-check-item { min-height:58px; padding:10px 12px; border:1px solid var(--line); border-radius:9px; display:grid; grid-template-columns:30px minmax(0,1fr); align-items:center; gap:10px; }
.system-check-icon { width:28px; height:28px; border-radius:50%; display:grid; place-items:center; font-size:15px; font-weight:bold; }
.system-check-item.pass .system-check-icon { background:#e7f7ef; color:var(--green); }
.system-check-item.warning .system-check-icon { background:#fff1db; color:var(--orange); }
.system-check-item.fail .system-check-icon { background:#ffe8e8; color:var(--red); }
.system-check-item strong, .system-check-item small { display:block; }
.system-check-item strong { color:var(--text); }
.system-check-item small { margin-top:3px; color:var(--muted); line-height:1.4; }
.system-check-actions { margin-top:16px; display:flex; justify-content:flex-end; }
.system-check-actions button { border-color:var(--blue); color:var(--blue); }
.employee-search-row input { min-width:260px; }
.recent-employee-btn { border-color:#9fc7f1; background:#f3f8ff; color:var(--blue); max-width:260px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.employee-plan-legend { padding:9px 14px; border-bottom:1px solid var(--line); background:#fbfdff; display:flex; flex-wrap:wrap; gap:14px; color:var(--muted); font-size:11px; }
.employee-plan-legend span { display:flex; align-items:center; gap:6px; }
.employee-legend-swatch { width:16px; height:16px; border:1px solid rgba(22,50,79,.1); border-radius:4px; display:inline-block; }
.employee-legend-swatch.confirmed { border-color:#2f9d69; background:#ccebd9; }
.employee-legend-swatch.waitlist { border-color:#2d78d4; background:#cfe3ff; }
.employee-legend-swatch.selected { background:#fff; box-shadow:inset 0 0 0 2px var(--blue); }
.employee-view-filters { flex:1 1 100%; display:flex; align-items:center; justify-content:flex-end; gap:6px; }
.employee-view-filters label { min-height:34px; padding-left:9px; border:1px solid #b8c9db; border-radius:8px; background:#f8fbfe; color:var(--muted); display:flex; align-items:center; gap:5px; font-size:10px; font-weight:bold; white-space:nowrap; }
.employee-view-filters select { min-width:125px; min-height:30px!important; height:30px!important; padding:0 7px; border-color:transparent; font-size:11px; }
.employee-plan-refresh, .employee-csv-export, .employee-copy-link, .employee-print { min-height:32px; height:32px; padding:0 10px; border-color:#9fc7f1; color:var(--blue); font-size:11px; }
.slot.employee-status-filtered-out, .day-column.employee-status-filtered-day { display:none; }
.plan-container.employee-status-filter-empty::after { content:'Für diese Filter gibt es in der ausgewählten Woche keine passenden Zeitblöcke.'; width:100%; padding:28px 18px; color:var(--muted); text-align:center; }
.page-plan .plan-container,
.page-wfm .plan-container,
.page-wfm-employee .plan-container { transition:opacity .15s; }
.page-plan .plan-container[aria-busy="true"],
.page-wfm .plan-container[aria-busy="true"],
.page-wfm-employee .plan-container[aria-busy="true"] { opacity:.58; pointer-events:none; }
.page-wfm-employee .plan-container.is-stale { box-shadow:inset 0 3px 0 var(--orange); }
.page-wfm-employee .slot.selected::after { content:'✓'; min-width:20px; height:20px; border-radius:50%; background:var(--blue); color:#fff; display:grid; place-items:center; font-size:11px; font-weight:bold; }
#clearEmployeeSelection { border-color:#e1a3a3; color:#b43d3d; }
.bulk-actions { margin:14px; border:1px solid #efc6c6; border-radius:10px; background:#fffafa; overflow:hidden; }
.bulk-actions summary { position:relative; min-height:52px; padding:10px 44px 10px 13px; color:#9b3535; display:flex; flex-direction:column; justify-content:center; cursor:pointer; user-select:none; list-style:none; }
.bulk-actions summary::-webkit-details-marker { display:none; }
.bulk-actions summary::after { content:'+'; position:absolute; right:14px; top:50%; transform:translateY(-50%); font-size:22px; font-weight:normal; }
.bulk-actions[open] summary::after { content:'−'; }
.bulk-actions summary:hover { background:#fff4f4; }
.bulk-actions summary span { font-weight:bold; }
.bulk-actions summary small { margin-top:3px; color:#8a6b6b; }
.bulk-actions-body { padding:13px; border-top:1px solid #efc6c6; }
.bulk-actions-body p { margin:0 0 12px; color:var(--muted); line-height:1.45; }
.bulk-actions-buttons { display:flex; flex-wrap:wrap; gap:8px; }
.bulk-actions-buttons button { border-color:#e1a3a3; color:#b43d3d; }
dialog { border:1px solid var(--line)!important; border-radius:12px!important; box-shadow:0 24px 70px rgba(5,47,85,.25); }
dialog::backdrop { background:rgba(5,47,85,.4)!important; }
.app-confirm-dialog { width:min(460px,calc(100vw - 32px)); padding:0; }
.app-confirm-body { padding:22px; }
.app-confirm-heading { display:flex; align-items:flex-start; gap:13px; }
.app-confirm-icon { width:42px; height:42px; flex:0 0 42px; border-radius:50%; background:#eaf3ff; color:var(--blue); display:grid; place-items:center; font-size:20px; font-weight:bold; }
.app-confirm-heading h3 { margin:1px 0 6px; color:var(--text); font-size:19px; }
.app-confirm-heading p { margin:0; color:#52677b; line-height:1.5; white-space:pre-line; }
.app-confirm-actions { margin-top:20px; display:flex; justify-content:flex-end; gap:9px; }
#appConfirmOkBtn { border-color:var(--blue); background:var(--blue); color:#fff; }
.app-confirm-dialog.is-danger .app-confirm-icon { background:#ffeded; color:var(--red); }
.app-confirm-dialog.is-danger #appConfirmOkBtn { border-color:var(--red); background:var(--red); }
.cancel-dialog-body, .demand-dialog-body { padding:18px!important; font-size:13px; }
.cancel-dialog-actions button, .demand-actions button { min-height:40px; }
.help-dialog-body { width:min(520px,calc(100vw - 48px)); padding:22px; }
.help-dialog-body h4 { margin:0 0 7px; font-size:20px; color:var(--text); }
.help-intro { margin:0 0 17px; color:var(--muted); line-height:1.45; }
.legend-list { display:grid; gap:8px; }
.legend-item { padding:10px; border:1px solid var(--line); border-radius:9px; display:grid; grid-template-columns:24px minmax(0,1fr); align-items:center; gap:10px; }
.legend-item strong, .legend-item small { display:block; }
.legend-item strong { color:var(--text); }
.legend-item small { margin-top:2px; color:var(--muted); line-height:1.35; }
.legend-swatch { width:22px; height:22px; border:1px solid rgba(22,50,79,.09); border-radius:6px; }
.legend-swatch.grey { background:#f1f4f7; }
.legend-swatch.yellow { background:#fff8ef; }
.legend-swatch.green { background:#f1fbf6; }
.legend-swatch.blue { background:#eaf3ff; }
.legend-swatch.red { background:#fff2f2; }
.help-steps { margin-top:17px; padding:13px 14px; border-radius:9px; background:#f4f8fc; }
.help-steps ol { margin:8px 0 0; padding-left:20px; color:var(--muted); line-height:1.55; }
.help-calendar-note { margin:14px 0 0; color:var(--muted); font-size:12px; line-height:1.45; }
.help-dialog-actions { margin-top:17px; display:flex; justify-content:flex-end; }
.profile-dialog-body { width:min(520px,calc(100vw - 48px)); padding:22px; }
.management-profile-dialog { padding:0; }
.profile-dialog-header { display:flex; align-items:center; gap:13px; margin-bottom:18px; }
.profile-dialog-avatar { width:48px; height:48px; flex:0 0 48px; border-radius:50%; background:#eaf3ff; color:var(--blue); display:grid; place-items:center; font-weight:bold; font-size:15px; }
.profile-dialog-header h4 { margin:0; color:var(--text); font-size:20px; }
.profile-dialog-header p { margin:3px 0 0; color:var(--muted); }
.profile-details { border:1px solid var(--line); border-radius:10px; overflow:hidden; }
.profile-detail-row { min-height:52px; padding:11px 13px; border-bottom:1px solid var(--line); display:grid; grid-template-columns:150px minmax(0,1fr); align-items:center; gap:14px; }
.profile-detail-row:last-child { border-bottom:0; }
.profile-detail-row > span { color:var(--muted); font-size:12px; }
.profile-detail-row strong { color:var(--text); text-align:right; }
.profile-skills-row { align-items:start; }
.profile-skill-list { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:6px; }
.profile-skill-chip { padding:4px 8px; border-radius:999px; background:#eaf3ff; color:#145fbf; font-size:11px; font-weight:bold; }
.profile-empty-value { color:var(--muted); font-size:12px; text-align:right; }
.profile-readonly-note { margin:14px 0 0; color:var(--muted); font-size:12px; line-height:1.5; }
.profile-dialog-actions { margin-top:17px; display:flex; justify-content:flex-end; }
.week-overview-dialog-body { width:min(650px,calc(100vw - 48px)); max-height:min(780px,calc(100vh - 48px)); padding:22px; overflow:auto; }
.week-overview-header { display:flex; align-items:flex-start; justify-content:space-between; gap:18px; margin-bottom:18px; }
.week-overview-header h4 { margin:0; color:var(--text); font-size:21px; }
.week-overview-header > strong { padding:7px 10px; border-radius:8px; background:#f4f8fc; color:#52677b; font-size:12px; text-align:right; }
.week-overview-section + .week-overview-section { margin-top:18px; }
.week-overview-section-title { margin-bottom:8px; display:flex; align-items:center; gap:8px; }
.week-overview-section-title h5 { margin:0; color:var(--text); font-size:14px; }
.overview-count { min-width:24px; height:24px; padding:0 7px; border-radius:999px; display:grid; place-items:center; font-size:11px; font-weight:bold; }
.overview-count.green { background:#eaf8f1!important; color:var(--green); }
.overview-count.orange { background:#fff4e7!important; color:var(--orange); }
.week-overview-list { display:grid; gap:7px; }
.week-overview-item { min-height:50px; padding:10px 12px; border:1px solid var(--line); border-left-width:4px; border-radius:8px; display:grid; grid-template-columns:100px 100px minmax(0,1fr); align-items:center; gap:10px; }
.week-overview-item.confirmed { border-left-color:var(--green); background:#fbfefc; }
.week-overview-item.waitlist { border-left-color:var(--orange); background:#fffdf9; }
.week-overview-item strong { color:var(--text); }
.week-overview-item span { color:#31516f; font-weight:bold; }
.week-overview-item small { color:var(--muted); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.week-overview-empty { padding:16px 12px; border:1px dashed #c8d6e4; border-radius:8px; color:var(--muted); text-align:center; }
.week-overview-actions { margin-top:20px; display:flex; justify-content:flex-end; gap:8px; }
#weekOverviewExportBtn { border-color:var(--blue); color:var(--blue); }
.muted { color:var(--muted)!important; }
@media (min-width:901px) {
  .plan-container { overflow-x:visible; }
  .day-column,
  .page-wfm .day-column,
  .page-wfm-employee .day-column { min-width:0; }
}

@page { size:A4 landscape; margin:8mm; }
@media print {
  html, body { min-width:0!important; background:#fff!important; overflow:visible!important; }
  body { padding:0!important; }
  *, *::before, *::after { -webkit-print-color-adjust:exact!important; print-color-adjust:exact!important; }
  .sidebar,
  .main-shell > .topbar,
  .view-tabs,
  .planner-overview-row,
  .mobile-day-switcher,
  .plan-status-row,
  .employee-plan-legend,
  .employee-action-row,
  .plan-action-controls,
  .plan-toolbar-right,
  .bulk-actions,
  .toast-region,
  .network-status-banner,
  dialog { display:none!important; }
  .app-shell,
  .main-shell { display:block!important; min-height:0!important; }
  .page-content { width:100%!important; max-width:none!important; padding:0!important; }
  .page-heading { display:block!important; margin:0 0 4mm!important; }
  .page-heading h2 { margin:0!important; font-size:16pt!important; }
  .page-heading .eyebrow { margin-bottom:1mm!important; font-size:7pt!important; }
  .planner-card { overflow:visible!important; border:0!important; border-radius:0!important; box-shadow:none!important; }
  .print-plan-context { display:block!important; margin:0 0 3mm; padding:2mm 3mm; border:1px solid #c7d3df; border-radius:2mm; background:#f7fafc; color:#27445f; font-size:8pt; font-weight:bold; }
  .capacity-warning { min-height:0; margin-bottom:2mm; padding:2mm 3mm; border:1px solid #efc58d; grid-template-columns:7mm minmax(0,1fr); }
  .capacity-warning-icon { width:6mm; height:6mm; }
  .capacity-warning button { display:none!important; }
  .plan-toolbar { position:static!important; min-height:0!important; margin:0 0 2mm!important; padding:0!important; border-top:1px solid #d6e0e9!important; border-bottom:1px solid #d6e0e9!important; box-shadow:none!important; justify-content:flex-start!important; }
  .week-nav { min-height:0!important; margin:0!important; padding:1.5mm 0!important; overflow:visible!important; }
  .week-nav button,
  .week-nav select { display:none!important; }
  .week-label { display:block!important; min-width:0!important; font-size:9pt!important; }
  .page-wfm .week-nav #weekLabel { display:block!important; }
  .employee-plan-meta { display:flex!important; margin:0 0 2mm!important; padding:1.5mm 0!important; border:0!important; gap:2mm!important; }
  .employee-plan-meta[hidden] { display:none!important; }
  .employee-plan-meta span { min-width:0!important; padding:1.5mm 2mm!important; font-size:7pt!important; }
  .plan-container,
  .planner-card .plan-container,
  .plan-container.mobile-day-view { display:flex!important; width:100%!important; overflow:visible!important; border:1px solid #b9c8d6!important; border-radius:0!important; box-shadow:none!important; }
  .plan-container.mobile-day-view .day-column { display:block!important; }
  .day-column,
  .page-wfm .day-column,
  .page-wfm-employee .day-column { min-width:0!important; flex:1 1 0!important; break-inside:avoid; }
  .day-column.capacity-filtered-day,
  .day-column.employee-status-filtered-day { display:none!important; }
  .day-header { position:static!important; min-height:10mm!important; padding:1.5mm 1mm!important; font-size:8pt!important; }
  .day-header-stats { margin-top:.7mm!important; font-size:6.5pt!important; }
  .today-badge { padding:.4mm 1mm!important; font-size:6pt!important; }
  .slot { min-height:4.2mm!important; padding:.6mm 1mm!important; gap:1mm!important; border-bottom-color:#d8e0e7!important; font-size:7pt!important; line-height:1.05!important; }
  .page-wfm .slot { margin:0!important; border-radius:0!important; }
  .slot span.time,
  .slot .time,
  .page-wfm-employee .slot .time { width:10mm!important; flex:0 0 10mm!important; }
  .page-wfm-employee .slot .proj { font-size:6.5pt!important; }
  .page-wfm-employee .slot .st { width:13mm!important; flex:0 0 13mm!important; font-size:6pt!important; }
  .plan-container.personal-filter-active .slot.filtered-out,
  .slot.capacity-filtered-out,
  .slot.employee-status-filtered-out { display:none!important; }
}
@media (max-width:1300px) {
  .planner-overview-row { grid-template-columns:1fr; }
  .planner-card .planner-overview-row > .planner-controls { border-left:0; border-top:1px solid var(--line); }
  .planner-overview-row .last-updated { flex:0 1 auto; margin-left:auto; text-align:left; }
  .plan-toolbar { overflow:visible; }
  .page-plan .plan-action-controls { flex:1 1 auto; }
  .week-label { min-width:135px; }
  .selection-bar-text, .employee-selection-summary { min-width:95px; max-width:115px; }
  .selection-bar-text small, .employee-selection-summary small { display:none; }
  .plan-action-controls > button, .plan-toolbar-right > button { padding-left:8px; padding-right:8px; font-size:11px; }
}
@media (max-width:900px) {
  .app-shell { grid-template-columns:76px minmax(0,1fr); }
  .page-plan .app-shell { grid-template-columns:82px minmax(0,1fr); }
  .side-link { min-height:58px; font-size:0; }
  .side-link span { font-size:21px; }
  .sidebar-profile-text { display:none; }
  .sidebar-logout { font-size:0; }
  .sidebar-logout span { font-size:18px; }
  .page-content { padding:18px; }
  .topbar, .view-tabs { padding-left:18px; padding-right:18px; }
  .summary-grid { grid-template-columns:repeat(2,minmax(180px,1fr)); }
  .mobile-day-switcher { position:sticky; top:49px; z-index:11; display:flex; }
  .plan-container.mobile-day-view { overflow:visible; }
  .plan-container.mobile-day-view .day-column { display:none; min-width:100%; flex:0 0 100%; }
  .plan-container.mobile-day-view .day-column.mobile-day-active { display:block; }
  .plan-container.mobile-day-view .day-column.capacity-filtered-day,
  .plan-container.mobile-day-view .day-column.employee-status-filtered-day { display:none; }
  .day-header { top:89px; }
  .week-label { min-width:155px; }
  #weekSelect { min-width:145px; }
  .plan-toolbar-right { overflow-x:auto; overscroll-behavior-inline:contain; scrollbar-width:thin; }
  .toolbar-more-menu { position:fixed; top:58px; right:18px; }
}
@media (max-width:650px) {
  .app-shell { display:block; }
  .page-plan .app-shell { display:block; }
  .sidebar {
    position:fixed;
    inset:auto 0 0;
    width:100%;
    height:66px;
    height:calc(66px + env(safe-area-inset-bottom));
    padding:5px;
    padding:5px calc(5px + env(safe-area-inset-right)) calc(5px + env(safe-area-inset-bottom)) calc(5px + env(safe-area-inset-left));
    flex-direction:row;
    overflow-x:auto;
    overflow-y:hidden;
  }
  .brand, .side-spacer, .sidebar-user { display:none; }
  .side-link { flex:0 0 72px; min-height:55px; font-size:9px; }
  .side-link span { font-size:18px; }
  .sidebar-profile { flex:0 0 72px; min-height:55px; padding:4px; border-top:0; border-radius:8px; flex-direction:column; justify-content:center; gap:4px; font-size:9px; }
  .sidebar-profile .sidebar-avatar { width:auto; height:auto; background:transparent; font-size:17px; }
  .mobile-profile-label { display:block; color:#d9ecfb; font-size:9px; }
  .sidebar-logout { flex:0 0 72px; min-height:55px; border:0; background:transparent; flex-direction:column; gap:4px; font-size:9px; }
  .sidebar-logout span { font-size:18px; }
  .topbar {
    height:66px;
    height:calc(66px + env(safe-area-inset-top));
    padding:0 13px;
    padding:env(safe-area-inset-top) calc(13px + env(safe-area-inset-right)) 0 calc(13px + env(safe-area-inset-left));
  }
  .topbar h1 { font-size:22px; }
  .view-tabs { padding:0 5px; padding:0 calc(5px + env(safe-area-inset-right)) 0 calc(5px + env(safe-area-inset-left)); overflow:auto; }
  .view-tabs a { padding:0 12px; white-space:nowrap; }
  .plan-toolbar { position:static; min-height:0; padding:0; display:block; }
  .week-nav { min-height:49px; gap:4px; padding:6px; overflow:auto; overscroll-behavior-inline:contain; -webkit-overflow-scrolling:touch; }
  .week-label { min-width:0; flex:1 1 auto; font-size:12px; }
  .page-wfm .week-nav #weekLabel { display:none; }
  #weekSelect { min-width:0; flex:1 1 auto; font-size:11px; }
  .today-week-btn { min-width:36px; margin:0; }
  .plan-action-controls, .plan-toolbar-right { min-height:46px; margin:0; padding:6px; border-top:1px solid var(--line); justify-content:flex-start; overflow-x:auto; overscroll-behavior-inline:contain; -webkit-overflow-scrolling:touch; }
  .plan-toolbar-right { width:100%; }
  .plan-toolbar-right .employee-action-row { padding:0; border-top:0; overflow:visible; }
  .toolbar-more-menu { position:fixed; top:auto; right:11px; bottom:82px; left:11px; }
  .page-content { padding:16px 11px 88px; padding:16px calc(11px + env(safe-area-inset-right)) calc(88px + env(safe-area-inset-bottom)) calc(11px + env(safe-area-inset-left)); }
  .is-logged-out .page-content {
    min-height:calc(100vh - 66px);
    min-height:calc(100vh - 66px - env(safe-area-inset-top));
    padding:16px 11px;
    padding:16px calc(11px + env(safe-area-inset-right)) calc(16px + env(safe-area-inset-bottom)) calc(11px + env(safe-area-inset-left));
  }
  .summary-grid { display:flex; overflow-x:auto; gap:10px; padding-bottom:4px; }
  .summary-card { min-width:160px; }
  .profile-detail-row { grid-template-columns:1fr; gap:5px; }
  .profile-detail-row strong { text-align:left; }
  .profile-skill-list { justify-content:flex-start; }
  .profile-empty-value { text-align:left; }
  .week-overview-header { display:block; }
  .week-overview-header > strong { display:inline-block; margin-top:9px; text-align:left; }
  .week-overview-item { grid-template-columns:1fr auto; gap:4px 10px; }
  .week-overview-item small { grid-column:1 / -1; white-space:normal; }
  .week-overview-actions { flex-direction:column; }
  .week-overview-actions button { width:100%; }
  .capacity-warning { grid-template-columns:32px minmax(0,1fr); }
  .capacity-warning button { grid-column:2; width:100%; }
  .activity-dialog-body { width:100%; padding:17px; }
  .activity-dialog-header { align-items:stretch; flex-direction:column; }
  .activity-dialog-header button { width:100%; }
  .activity-item { grid-template-columns:1fr; gap:6px; }
  .activity-item time { white-space:normal; }
  .activity-dialog-actions button { width:100%; }
  .system-check-dialog-body { width:100%; padding:17px; }
  .system-check-dialog-header { align-items:stretch; flex-direction:column; }
  .system-check-dialog-header button, .system-check-actions button { width:100%; }
  .slot-detail-dialog-body { padding:17px; }
  .slot-detail-list li { align-items:flex-start; flex-direction:column; gap:4px; }
  .slot-detail-list small { text-align:left; }
  .slot-detail-actions button { width:100%; }
  .page-plan .plan-action-controls.selection-active,
  .page-wfm-employee .employee-action-row.selection-active { position:fixed; left:11px; right:11px; bottom:76px; z-index:30; max-height:45vh; min-height:0; padding:10px; border:1px solid #9fc7f1; border-radius:12px; background:#fff; box-shadow:0 16px 45px rgba(5,47,85,.22); overflow:auto; flex-wrap:wrap; }
  .page-plan .plan-action-controls.selection-active { left:calc(11px + env(safe-area-inset-left)); right:calc(11px + env(safe-area-inset-right)); bottom:calc(76px + env(safe-area-inset-bottom)); }
  .page-wfm-employee .employee-action-row.selection-active { left:calc(11px + env(safe-area-inset-left)); right:calc(11px + env(safe-area-inset-right)); bottom:calc(76px + env(safe-area-inset-bottom)); }
  .page-plan .plan-action-controls.selection-active .action-control-label { display:none; }
  .page-plan.has-personal-floating-actions .page-content,
  .page-wfm-employee.has-floating-actions .page-content { padding-bottom:175px; padding-bottom:calc(175px + env(safe-area-inset-bottom)); }
  .selection-bar-text, .employee-selection-summary { flex:1 1 100%!important; max-width:none; }
  .bulk-actions-buttons button { width:100%; }
  .toast-region { top:10px; left:10px; right:10px; top:calc(10px + env(safe-area-inset-top)); left:calc(10px + env(safe-area-inset-left)); right:calc(10px + env(safe-area-inset-right)); width:auto; }
  .network-status-banner { top:10px; top:calc(10px + env(safe-area-inset-top)); width:calc(100vw - 20px); width:calc(100vw - 20px - env(safe-area-inset-left) - env(safe-area-inset-right)); }
  .has-network-banner .toast-region { top:78px; top:calc(78px + env(safe-area-inset-top)); }
  .topbar-local, .row, .control-card { align-items:stretch; }
  .topbar-local > *, .row > *, .control-card > * { flex:1 1 145px; }
  .planner-card .planner-controls { padding:11px; }
  .auto-refresh-control { white-space:normal; }
  .last-updated { flex:1 1 100%!important; margin-left:0; white-space:normal; }
  .plan-status-row { align-items:stretch; flex-direction:column; }
  .plan-status-row .last-updated { padding:0 15px 10px; }
  .employee-plan-meta { display:grid; grid-template-columns:1fr; }
  .employee-plan-meta span { min-width:0; align-items:flex-start; flex-direction:column; gap:3px; }
  .employee-search-row input { min-width:0; width:100%; }
  .employee-view-filters { flex:1 1 100%!important; justify-content:flex-start; flex-wrap:wrap; }
  .employee-view-filters label { flex:1 1 145px; }
  .employee-view-filters select { min-width:0; flex:1 1 100px; }
  dialog { max-width:calc(100vw - 20px)!important; }
  .cancel-dialog-body, .demand-dialog-body { min-width:0!important; width:100%; }
  .app-confirm-actions { flex-direction:column-reverse; }
  .app-confirm-actions button { width:100%; }
  .mobile-day-switcher { top:0; }
  .day-header { top:40px; }
  .day-column { min-width:158px; }
  .page-wfm-employee .day-column { min-width:210px; }
}
