/* Freigegebene Referenz: ordina-stundenuebersicht-monatsstunden-v1.html. */

.hours-overview { box-sizing:border-box; --oh-bg:#e9eef7; --oh-nav:#f4f7fc; --oh-paper:#fff; --oh-ink:#172033; --oh-soft:#526078; --oh-line:#dde5f0; --oh-blue:#255bc1; --oh-green:#176344; --oh-orange:#96500d; --oh-red:#b23d36; color-scheme:light; background:var(--oh-bg); color:var(--oh-ink); font:14px/1.45 "Avenir Next",Avenir,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; padding:12px; border-radius:24px; min-width:0; }
.hours-overview * { box-sizing:border-box; }
.hours-overview [hidden] { display:none!important; }
.hours-overview button,.hours-overview select { font:inherit; color:inherit; }
.hours-overview button { cursor:pointer; }
.hours-overview button:focus-visible,.hours-overview select:focus-visible,.hours-overview summary:focus-visible { outline:3px solid #2563eb; outline-offset:3px; }
.hours-overview button:disabled { cursor:default; opacity:.38; }
.hours-overview h1,.hours-overview h2,.hours-overview h3,.hours-overview p { margin:0; }

.hours-overview .oh-main { min-width:0; max-width:1120px; padding:19px 20px 34px 0; }
.hours-overview .oh-crumb { display:flex; align-items:center; gap:8px; color:var(--oh-soft); font-size:12px; margin-bottom:7px; }
.hours-overview .oh-title { font-size:29px; letter-spacing:-.85px; font-weight:650; line-height:1.25; }
.hours-overview .oh-subtitle { margin-top:7px; color:var(--oh-soft); font-size:14px; }
.hours-overview .oh-monthbar { display:flex; justify-content:space-between; align-items:center; gap:12px; margin:27px 0 18px; }
.hours-overview .oh-picker { display:flex; align-items:center; gap:4px; padding:3px; border:1px solid var(--oh-line); border-radius:14px; background:#fff; }
.hours-overview .oh-arrow { display:grid; place-items:center; width:44px; min-height:44px; font-size:25px; line-height:1; border:0; border-radius:9px; background:transparent; }
.hours-overview .oh-arrow:hover:not(:disabled) { background:#eff3fa; }
.hours-overview .oh-picker select { min-height:44px; font-weight:600; border:0; background:#fff; padding:5px 5px; font-size:15px; max-width:200px; }
.hours-overview .oh-period { font-size:12px; color:var(--oh-soft); text-align:right; }
.hours-overview .oh-period strong { display:block; color:var(--oh-ink); font-size:13px; font-weight:500; }
.hours-overview .oh-summary { display:grid; grid-template-columns:1fr 1fr 1fr; background:#fff; border:1px solid var(--oh-line); border-radius:18px; padding:18px 8px; }
.hours-overview .oh-stat { min-width:0; padding:0 20px; }
.hours-overview .oh-stat+.oh-stat { border-left:1px solid var(--oh-line); }
.hours-overview .oh-stat span { display:block; color:var(--oh-soft); font-size:12px; }
.hours-overview .oh-stat strong { display:block; font-size:28px; letter-spacing:-.6px; font-weight:650; margin:4px 0; font-variant-numeric:tabular-nums; }
.hours-overview .oh-stat small { color:var(--oh-soft); font-size:12px; }
.hours-overview .oh-positive { color:var(--oh-green); }
.hours-overview .oh-negative { color:var(--oh-orange); }
.hours-overview .oh-pending { color:#895410; }
.hours-overview .oh-tools { display:flex; justify-content:space-between; align-items:center; gap:12px; margin:24px 0 12px; flex-wrap:wrap; }
.hours-overview .oh-filters { display:flex; flex-wrap:wrap; gap:5px; }
.hours-overview .oh-filter { border:1px solid transparent; border-radius:10px; padding:8px 12px; min-height:44px; background:transparent; color:var(--oh-soft); font-size:13px; }
.hours-overview .oh-filter[aria-pressed=true] { border-color:#c7d6ed; color:#234d91; background:#fff; font-weight:600; }
.hours-overview .oh-filter:hover { background:#f4f7fc; }
.hours-overview .oh-filter span { margin-left:5px; opacity:.75; font-size:12px; }
.hours-overview .oh-sort { display:flex; align-items:center; gap:6px; color:var(--oh-soft); font-size:12px; }
.hours-overview .oh-sort select { min-height:44px; border:0; background:transparent; padding:7px 2px; color:var(--oh-ink); max-width:145px; font-size:13px; }
.hours-overview .oh-listhead,.hours-overview .oh-person { display:grid; grid-template-columns:minmax(180px,1.8fr) repeat(3,minmax(64px,.7fr)) minmax(110px,.95fr) 16px; gap:14px; align-items:center; }
.hours-overview .oh-listhead { padding:0 22px 10px; color:var(--oh-soft); font-size:11px; }
.hours-overview .oh-listhead>span:not(:first-child) { text-align:right; }
.hours-overview .oh-list { list-style:none; margin:0; padding:8px; display:grid; gap:8px; border-radius:19px; background:#f1f5fb; }
.hours-overview .oh-list li { min-width:0; }
.hours-overview .oh-person { width:100%; text-align:left; border:1px solid var(--oh-line); border-radius:13px; background:#fff; padding:15px 13px; min-height:81px; box-shadow:0 1px 3px #12203408; }
.hours-overview .oh-person:hover { border-color:#b7c9e5; background:#fbfcff; }
.hours-overview .oh-person[aria-expanded=true] { border-color:#b7c9e5; border-radius:13px 13px 0 0; background:#fbfcff; }
.hours-overview .oh-identity { display:flex; align-items:center; gap:11px; min-width:0; }
.hours-overview .oh-avatar { flex:none; width:37px; height:37px; display:grid; place-items:center; border-radius:12px; color:#4c617e; background:#eef3fa; font-size:12px; font-weight:600; }
.hours-overview .oh-person-name { display:block; font-size:14px; font-weight:600; overflow-wrap:anywhere; }
.hours-overview .oh-person-meta { display:block; font-size:11px; color:var(--oh-soft); margin-top:3px; }
.hours-overview .oh-number { text-align:right; font-size:14px; font-variant-numeric:tabular-nums; white-space:nowrap; }
.hours-overview .oh-number small { color:var(--oh-soft); font-size:11px; }
.hours-overview .oh-balance { display:block; text-align:right; font-variant-numeric:tabular-nums; }
.hours-overview .oh-balance strong { font-size:19px; letter-spacing:-.2px; font-weight:650; white-space:nowrap; }
.hours-overview .oh-balance small { display:block; font-size:11px; color:var(--oh-soft); margin-top:2px; }
.hours-overview .oh-balance.oh-pending strong { font-size:15px; }
.hours-overview .oh-chevron { font-size:23px; line-height:1; color:#6b7b93; text-align:center; }
.hours-overview [aria-expanded=true] .oh-chevron { transform:rotate(90deg); }
.hours-overview .oh-detail { border:1px solid #b7c9e5; border-top:0; border-radius:0 0 13px 13px; padding:20px 22px; background:#fff; }
.hours-overview .oh-detail h3 { font-size:14px; font-weight:600; margin-bottom:13px; }
.hours-overview .oh-detail-note { font-size:12px; color:var(--oh-soft); line-height:1.6; }
.hours-overview .oh-footnote { display:flex; align-items:flex-start; gap:8px; color:var(--oh-soft); font-size:11px; margin:14px 7px 0; line-height:1.6; }
.hours-overview .oh-footnote>span:first-child { flex:none; display:grid; place-items:center; border:1px solid #a8b6ca; border-radius:50%; width:15px; height:15px; font-size:10px; margin-top:2px; }
.hours-overview .oh-state { background:#fff; padding:40px 20px; text-align:center; border:1px solid var(--oh-line); border-radius:18px; margin-top:22px; }
.hours-overview .oh-state h2 { font-size:18px; margin-bottom:8px; }
.hours-overview .oh-state p { color:var(--oh-soft); font-size:13px; }
.hours-overview .oh-retry { margin-top:20px; min-height:44px; padding:10px 16px; border:1px solid #c3d2e8; border-radius:11px; background:#f4f7fc; }
.hours-overview .oh-live { position:absolute; width:1px; height:1px; clip-path:inset(50%); overflow:hidden; }
@media(min-width:721px) { .hours-overview .oh-main { padding-top:12px; padding-bottom:20px; } .hours-overview .oh-heading { display:flex; align-items:center; justify-content:space-between; gap:22px; margin-bottom:20px; } .hours-overview .oh-heading>div:first-child { min-width:0; } .hours-overview .oh-monthbar { margin:0; display:flex; flex-direction:column; align-items:flex-end; gap:7px; flex:none; } .hours-overview .oh-period { font-size:11px; } .hours-overview .oh-period strong { font-size:11px; font-weight:400; display:inline; } .hours-overview .oh-period strong:not(:last-child):after { content:' · '; } .hours-overview .oh-summary { padding:12px 8px; } .hours-overview .oh-stat strong { font-size:25px; line-height:1.25; margin:2px 0; } .hours-overview .oh-tools { margin-top:16px; margin-bottom:8px; } .hours-overview .oh-person { min-height:64px; padding-top:10px; padding-bottom:10px; } .hours-overview .oh-balance strong { line-height:1.2; } }
@media(min-width:721px) and (max-width:1000px) { .hours-overview .oh-title { font-size:26px; } .hours-overview .oh-subtitle { max-width:300px; font-size:12px; } .hours-overview .oh-heading { gap:12px; } .hours-overview .oh-picker select { font-size:14px; } }
@media(max-width:1150px) and (min-width:721px) {     .hours-overview .oh-main { padding-right:8px; } .hours-overview .oh-listhead,.hours-overview .oh-person { grid-template-columns:minmax(140px,1.8fr) repeat(3,minmax(52px,.7fr)) minmax(90px,.95fr) 12px; gap:8px; } .hours-overview .oh-avatar { display:none; } .hours-overview .oh-balance strong { font-size:18px; } }
@media(max-width:720px) { .hours-overview { padding:0; border-radius:0; }      .hours-overview .oh-main { padding:22px 18px calc(112px + env(safe-area-inset-bottom)); } .hours-overview .oh-title { font-size:27px; } .hours-overview .oh-subtitle { font-size:13px; } .hours-overview .oh-monthbar { margin:22px 0 15px; flex-wrap:wrap; gap:9px; } .hours-overview .oh-picker { width:100%; justify-content:space-between; } .hours-overview .oh-picker select { flex:1; max-width:230px; text-align:center; font-size:16px; } .hours-overview .oh-period { text-align:left; width:100%; font-size:11px; } .hours-overview .oh-period strong { display:inline; font-size:11px; font-weight:400; } .hours-overview .oh-period strong:not(:last-child):after { content:' · '; } .hours-overview .oh-summary { padding:14px 0; border-radius:16px; } .hours-overview .oh-stat { padding:0 12px; } .hours-overview .oh-stat span { font-size:11px; } .hours-overview .oh-stat strong { font-size:24px; margin:5px 0; } .hours-overview .oh-stat small { font-size:10px; } .hours-overview .oh-tools { margin:18px 0 11px; gap:8px; } .hours-overview .oh-filters { gap:3px; } .hours-overview .oh-filter { padding:9px 9px; min-height:44px; font-size:12px; } .hours-overview .oh-filter span { margin-left:3px; font-size:11px; } .hours-overview .oh-sort { margin-left:auto; } .hours-overview .oh-sort label { display:none; } .hours-overview .oh-sort select { min-height:44px; font-size:12px; } .hours-overview .oh-listhead { display:none; } .hours-overview .oh-person { grid-template-columns:minmax(0,1fr) 95px 12px; gap:7px; padding:13px 10px; min-height:82px; } .hours-overview .oh-extra { display:none; } .hours-overview .oh-avatar { width:31px; height:34px; font-size:10px; border-radius:10px; } .hours-overview .oh-identity { gap:8px; } .hours-overview .oh-person-name { font-size:13px; } .hours-overview .oh-person-meta { font-size:10px; } .hours-overview .oh-balance strong { font-size:19px; } .hours-overview .oh-balance small { font-size:10px; } .hours-overview .oh-balance.oh-pending strong { font-size:14px; } .hours-overview .oh-detail { padding:18px 14px; } .hours-overview .oh-footnote { font-size:11px; margin:13px 4px 0; } }
@media(max-width:360px) { .hours-overview .oh-main { padding-left:12px; padding-right:12px; } .hours-overview .oh-avatar { display:none; } .hours-overview .oh-stat { padding:0 10px; } .hours-overview .oh-stat strong { font-size:22px; } .hours-overview .oh-filter { padding:9px 7px; } }
@media(prefers-reduced-motion:no-preference) { .hours-overview .oh-person { transition:background .15s,border-color .15s; } }

/* Der bestehende Apprahmen bleibt zuständig für Navigation und Seitenabstand. */
.hours-overview { padding:0; background:transparent; border-radius:0; }
.hours-overview .oh-main { max-width:1100px; padding:0; }
.hours-overview .oh-crumb a { color:inherit; text-decoration:none; min-height:24px; display:inline-flex; align-items:center; }
.hours-overview .oh-crumb a:hover { text-decoration:underline; }
.has-common-shell .main-content:has(.hours-overview) { padding:12px 20px 20px 32px; }
@media(max-width:1150px) and (min-width:721px) { .has-common-shell .main-content:has(.hours-overview) { padding-left:22px; } }
@media(max-width:720px) { .has-common-shell .main-content:has(.hours-overview) { padding:22px 18px calc(112px + env(safe-area-inset-bottom)); } .hours-overview .oh-main { padding:0; } }
@media(max-width:360px) { .has-common-shell .main-content:has(.hours-overview) { padding-left:12px; padding-right:12px; } }

.hours-overview .oh-balance.oh-pending strong { white-space:normal; overflow-wrap:anywhere; hyphens:auto; }
.hours-overview .oh-unavailable { color:var(--oh-soft); }
.hours-overview .oh-detail-note { overflow-wrap:anywhere; }

.hours-overview .oh-negative { color:#a63d37; }
.mn-dialog .oh-day-actions { display:grid; }
.mn-dialog .oh-day-actions button { text-align:left; }
dialog.oh-day-dialog { width:min(486px,calc(100% - 32px)); }
.oh-day-dialog .cr-head .si-sub { margin:4px 0 0; font-size:14px; color:#526078; }
.oh-day-dialog .oh-close-day { min-width:44px; min-height:44px; font-size:20px; }
@media(max-width:600px) { dialog.oh-day-dialog { width:100%; } }

/* Stundenübersicht – Personenzeile und Aufschlüsselung im bestehenden Apprahmen. */
.hours-overview .oh-person, .hours-overview .oh-listhead {
  grid-template-columns: minmax(150px,1.45fr) minmax(84px,.55fr) minmax(90px,.55fr) minmax(135px,.9fr) 14px;
}
.hours-overview .oh-positive { color: #176344; }
.hours-overview .oh-negative { color: #a63d37; }
.hours-overview .oh-pending { color: #285ca9; }
.hours-overview .oh-detail { padding: 20px 22px; }
.hours-overview .oh-balance small { font-size: 12px; }
.hours-overview .hours-columns { display: grid; grid-template-columns: minmax(230px,.8fr) minmax(330px,1.4fr); gap: 28px; align-items:start; }
.hours-overview .hours-columns h2 { font-size: 17px; line-height: 1.35; letter-spacing:-.2px; margin: 0 0 10px; }
.hours-overview .ledger { margin: 0; font-variant-numeric: tabular-nums; }
.hours-overview .ledger > div { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 5px 0; }
.hours-overview .ledger dt, .hours-overview .daily-row small { color: var(--oh-soft); }
.hours-overview .ledger dd { margin: 0; white-space: nowrap; }
.hours-overview .ledger .subtotal { border-top: 1px solid var(--oh-line); margin-top: 4px; padding-top: 8px; font-weight: 650; }
.hours-overview .ledger .result { border-top: 1px solid var(--oh-line); margin-top: 5px; padding-top: 8px; font-weight: 700; }
.hours-overview .ledger .result dt, .hours-overview .ledger .subtotal dt { color: inherit; }
.hours-overview .day-picker { display: flex; flex-wrap:wrap; align-items:center; justify-content:space-between; scroll-margin-top:90px; gap: 6px; margin-bottom: 4px; }
.hours-overview .day-picker h2 { margin:0; }
.hours-overview .day-picker select { width:auto; max-width:100%; min-height:44px; color:var(--oh-ink); border:1px solid var(--oh-line); border-radius:10px; padding:6px 8px; background:#fff; font-size:13px; }
.hours-overview .daily-list { list-style:none; padding:0; margin:4px 0 0; }
.hours-overview .daily-list > li { list-style:none; padding:0; margin:0; border:0; }
.hours-overview .daily-row { display:grid; grid-template-columns:minmax(75px,.55fr) minmax(0,1.35fr) auto 12px; align-items:center; width:100%; gap:10px; color:inherit; border:0; border-top:1px solid var(--oh-line); border-radius:0; background:transparent; text-align:left; padding:9px 0; min-height:48px; font-size:14px; font-variant-numeric: tabular-nums; }
.hours-overview .daily-row strong { font-weight:600; }
.hours-overview .day-booking { min-width:0; }
.hours-overview .work-ranges { display:flex; flex-wrap:wrap; gap:0 6px; color:var(--oh-ink); font-size:14px; font-weight:600; }
.hours-overview .work-range { max-width:100%; }
.hours-overview .work-range + .work-range::before { content:'· '; color:var(--oh-soft); }
.hours-overview .day-booking small { display:block; font-size:12px; font-weight:500; line-height:1.45; }
.hours-overview .day-chevron { color:#64758d; font-size:19px; line-height:1; justify-self:end; }
.hours-overview .daily-row:focus-visible { outline-offset:-2px; }
.hours-overview .day-value { text-align:right; white-space:nowrap; font-weight:650; }
.hours-overview button.daily-row:hover { background:#f4f7fc; }
.hours-overview .more-days { color:#244f91; display:block; background:transparent; border:0; min-height:44px; margin:4px 0 0; padding:6px 2px; text-align:left; font-weight:600; }
.hours-overview .review-info { margin:2px 0 10px; color:var(--oh-soft); max-width:38ch; }
.hours-overview .oh-footnote { color:var(--oh-soft); font-size:12px; margin:12px 4px; }
.hours-overview .no-days { color:var(--oh-soft); padding:12px 0; }
@media (min-width:1001px) { .hours-overview .oh-heading { margin-bottom:16px; } }
@media (max-width:1100px) { .hours-overview .hours-columns { grid-template-columns:minmax(185px,.8fr) minmax(245px,1.35fr); gap:20px; } .hours-overview .daily-row { grid-template-columns:minmax(0,1fr) auto 12px; gap:2px 6px; } .hours-overview .day-booking { grid-column:1; grid-row:2; } .hours-overview .day-value { grid-column:2; grid-row:1/3; } .hours-overview .day-chevron { grid-column:3; grid-row:1/3; } }
@media (max-width:830px) { .hours-overview .hours-columns { grid-template-columns:1fr; gap:20px; } }
@media (max-width:720px) {
  .hours-overview .oh-person { grid-template-columns:minmax(0,1fr) minmax(88px,auto) 10px; min-height:70px; }
  .hours-overview .oh-person-name { overflow-wrap:anywhere; }
  .hours-overview .oh-balance small { font-size:11px; max-width:104px; }
  .hours-overview .oh-detail { padding:15px 14px; }
  .hours-overview .oh-stat { padding:0 8px; }
  .hours-overview .oh-monthbar { margin:12px 0; }
  .hours-overview .oh-tools { margin:10px 0; }
  .hours-overview .oh-filters { gap:2px; }
  .hours-overview .oh-sort label { display:none; }
  .hours-overview .hours-columns { gap:16px; }
  .hours-overview .day-picker select { max-width:185px; }
}

.hours-overview .credit-days { text-align:left; padding:0; min-height:44px; border:0; background:none; color:#244f91; font:inherit; text-underline-offset:3px; text-decoration:underline; }
.hours-overview .ledger > div:has(.credit-days) { align-items:center; padding:0; }
