/* Dense, high-contrast annual matrix overrides. */
.calendar-scroll{height:calc(100vh - 270px);min-height:390px;overflow-x:auto;overflow-y:auto;margin-bottom:18px}
.page-heading{margin-bottom:10px}
.page-heading h1{font-size:1.42rem}
.subheading{margin-top:3px;font-size:.8rem}
.toolbar{padding:9px 12px}
.calendar-help{padding:6px 13px;min-height:31px}
.app-header{min-height:72px}
main{padding-top:14px;padding-bottom:28px}
.day-numbers{border-bottom:2px solid #9fb3c1}
.day-numbers div{border-right:2px solid #aabcc8}
.day-numbers div:first-child{border-right:3px solid #8fa5b4}
.month{border-bottom:3px solid #b7c7d2}
.month-label{border-right:3px solid #8fa5b4}
.day{border-right:2px solid #aabcc8}
.day-head{border-bottom:2px solid #aabcc8}
.month-body{border-bottom:1px solid #aabcc8}
.vacation-bar{height:var(--bar-height,max(1px,calc(var(--lane) - 1px)));min-height:1px;border-radius:1px}
.column-highlight{background-color:#dff1f0!important;box-shadow:inset 2px 0 #087f82,inset -2px 0 #087f82}
.day.column-highlight::before{content:"";position:absolute;inset:0;background:#087f8214;pointer-events:none;z-index:1}
.day-numbers [data-day].column-highlight{color:#075e61;background:#cde9e7!important}
.row-highlight{box-shadow:inset 0 0 0 3px #087f82}
.month.row-highlight .month-label{background:#dff1f0;color:#075e61}
.legend-item{grid-template-columns:31px minmax(0,1fr)}
.employee-sub{display:block;margin-top:4px;color:var(--muted);font-size:.72rem}
.without-day-head .day-head{display:none}
.without-day-head .bars{top:2px}
.without-day-head .day.holiday .day-head{display:block;position:absolute;bottom:0;left:1px;height:11px;line-height:11px;font-size:8px;border:0;padding:0 2px;background:#fff2d1;z-index:5}
.muted-month{opacity:.25;filter:grayscale(1)}
.muted-heading{color:#a6b1b9;background:#f0f2f4}
.day.muted-day::after{content:"";position:absolute;inset:0;background:rgba(239,242,245,.78);backdrop-filter:grayscale(1);pointer-events:none;z-index:8}
.day.muted-day.selected::after{background:rgba(210,231,231,.55);box-shadow:inset 0 0 0 2px #087f82}
.day-numbers [data-day],.month-label[role="button"]{cursor:pointer}
@media(max-width:850px){.calendar-scroll{height:600px;overflow:auto;margin-bottom:12px}}

/* Arbeitsurlaub mobile month view */
.mobile-calendar-shell{display:none}
@media(max-width:700px){
  html{background:#f4f7f9}
  body{min-width:0}
  .app-header{position:sticky;top:0;z-index:60;min-height:auto;padding:10px 12px 0;background:#173952}
  .app-header .brand{font-size:.95rem}
  .app-header nav{order:3;display:flex;width:100%;gap:6px;min-height:42px;padding:0 0 7px;overflow-x:auto;scrollbar-width:none}
  .app-header nav::-webkit-scrollbar{display:none}
  .app-header nav button{flex:0 0 auto;min-height:36px;padding:7px 10px;border-radius:8px}
  .test-badge{font-size:.62rem;white-space:nowrap}
  main{padding:12px 10px 28px}
  .page-heading{gap:10px;margin-bottom:10px}
  .page-heading h1{font-size:1.3rem}
  .subheading{font-size:.76rem;line-height:1.35}
  .actions{display:grid;grid-template-columns:auto auto 1fr;width:100%;gap:7px}
  .actions button{min-height:42px;padding:8px 10px}
  .actions .primary{width:100%}
  .mobile-calendar-shell{display:block}
  .mobile-monthbar{position:sticky;top:94px;z-index:35;display:grid;grid-template-columns:44px 1fr 44px;align-items:center;gap:8px;margin:0 0 10px;padding:9px;background:#fff;border:1px solid var(--border);border-radius:12px;box-shadow:0 3px 12px #17395212}
  .mobile-monthbar>button{height:44px;padding:0;font-size:1.45rem}
  .mobile-monthbar>div{text-align:center}
  .mobile-monthbar strong{display:block;font-size:1rem}
  .mobile-monthbar #mobile-today{margin-top:3px;padding:2px 7px;border:0;background:transparent;color:var(--accent);font-size:.7rem}
  .mobile-today-card{display:grid;grid-template-columns:auto 1fr;gap:12px;align-items:center;margin-bottom:10px;padding:12px 13px;background:#fff;border:1px solid var(--border);border-radius:12px}
  .mobile-today-card.compact{display:block;text-align:center}
  .mobile-eyebrow{display:block;margin-bottom:3px;color:var(--muted);font-size:.65rem;font-weight:700;text-transform:uppercase;letter-spacing:.08em}
  .mobile-today-card strong{font-size:.9rem}
  .mobile-today-people{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}
  .mobile-person-pill{display:inline-flex;align-items:center;gap:6px;min-height:34px;padding:5px 8px;white-space:normal;text-align:left;font-size:.75rem}
  .mobile-person-pill .swatch{width:22px;height:9px;flex:0 0 auto}
  .mobile-none{color:var(--muted);font-size:.78rem}
  .mobile-month-card,.mobile-vacation-list{background:#fff;border:1px solid var(--border);border-radius:12px;overflow:hidden}
  .mobile-weekdays,.mobile-month-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr))}
  .mobile-weekdays{padding:8px 8px 4px;color:var(--muted);font-size:.65rem;font-weight:700;text-align:center}
  .mobile-month-grid{gap:4px;padding:5px 8px 10px}
  .mobile-day{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;min-width:0;min-height:58px;padding:6px 2px;border:1px solid #d8e1e7;border-radius:8px;background:#fff;color:var(--navy);overflow:hidden}
  .mobile-day-empty{border-color:transparent;background:transparent;pointer-events:none}
  .mobile-day.is-weekend{background:#f5f7f8}
  .mobile-day.is-holiday{background:#fff7e7}
  .mobile-day.is-today{border:2px solid var(--accent);padding:5px 1px;box-shadow:0 0 0 2px #087f8214}
  .mobile-day-number{font-size:.78rem;font-weight:750;line-height:1}
  .mobile-holiday{position:absolute;right:4px;top:4px;color:#a66a00;font-size:.55rem;font-weight:800}
  .mobile-day-people{display:flex;align-items:center;justify-content:center;gap:2px;flex-wrap:wrap;margin-top:auto;padding-top:7px;min-height:16px}
  .mobile-person-dot{display:block;width:9px;height:9px;border-radius:50%;box-shadow:0 0 0 1px #ffffff,0 0 0 2px #1739521f}
  .mobile-more{font-size:.52rem;font-weight:700;color:var(--muted)}
  .mobile-hint{margin:0;padding:9px 12px 11px;border-top:1px solid #edf1f3;color:var(--muted);font-size:.68rem;line-height:1.45}
  .mobile-vacation-list{margin-top:10px}
  .mobile-section-heading{display:flex;align-items:center;justify-content:space-between;padding:13px 14px 10px;border-bottom:1px solid var(--border)}
  .mobile-section-heading h2{margin:0;font-size:1rem}
  .mobile-vacation-row{display:grid;grid-template-columns:26px minmax(0,1fr) auto;align-items:center;gap:9px;width:100%;min-height:58px;padding:9px 12px;border:0;border-bottom:1px solid #edf1f3;border-radius:0;background:#fff;text-align:left}
  .mobile-vacation-row:last-child{border-bottom:0}
  .mobile-vacation-row:active{background:#f3f8f8}
  .mobile-vacation-swatch .swatch{display:block;width:24px;height:12px}
  .mobile-vacation-person{min-width:0}
  .mobile-vacation-person strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.8rem}
  .mobile-vacation-person small{display:block;margin-top:2px;color:var(--muted);font-size:.66rem}
  .mobile-vacation-range{font-size:.72rem;font-weight:650;white-space:nowrap}
  .mobile-empty-state{padding:24px 16px;color:var(--muted);font-size:.8rem;text-align:center}
  dialog{width:calc(100% - 18px);max-height:92dvh}
  #dialog-content{padding:18px 16px}
  .dialog-footer{position:sticky;bottom:-18px;margin-left:-16px;margin-right:-16px;padding:12px 16px calc(12px + env(safe-area-inset-bottom));background:#fff}
  .picker-grid{grid-template-columns:1fr;max-height:40dvh}
  input,select,button{font-size:16px}
}
