.leave-page {
  max-width: 1100px;
  margin: 0 auto;
  color: #172033;
}
.leave-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}
.leave-head h1 {
  font-size: 28px;
  letter-spacing: -0.6px;
  margin: 0;
}
.leave-back {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: #526078;
  min-height: 44px;
  font-weight: 600;
  text-decoration: none;
}
.time-page .time-leave-card {
  padding: 8px;
}
.time-page .time-leave-link {
  text-decoration: none;
}
.leave-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 22px;
  align-items: start;
}
.leave-stack {
  display: grid;
  gap: 22px;
  min-width: 0;
}
.leave-card {
  background: #fff;
  border: 1px solid #e2e7ef;
  border-radius: 20px;
  box-shadow: 0 3px 12px #17203306;
  overflow: hidden;
  min-width: 0;
}
.leave-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 20px 14px;
}
.leave-card h2 {
  font-size: 18px;
  margin: 0;
}
.leave-pad {
  padding: 0 20px 20px;
}
.leave-stat {
  font-size: 36px;
  font-weight: 730;
  letter-spacing: -1px;
  line-height: 1.2;
}
.leave-stat small {
  font-size: 16px;
  letter-spacing: 0;
  font-weight: 500;
  color: #526078;
}
.leave-meta {
  color: #526078;
  font-size: 13px;
  line-height: 1.5;
}
.leave-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 18px 0;
}
.leave-stats > div {
  display: grid;
  gap: 4px;
}
.leave-stats strong {
  font-size: 18px;
}
.leave-stats span {
  font-size: 12px;
  color: #526078;
}
.leave-progress {
  height: 7px;
  background: #f0f3f7;
  border-radius: 8px;
  overflow: hidden;
  margin-top: 16px;
  display: flex;
}
.leave-progress span:first-child {
  background: #426e80;
}
.leave-progress span:last-child {
  background: #a4c3ce;
}
.leave-list {
  padding: 8px;
  display: grid;
  gap: 8px;
  background: #f5f7fa;
  border-top: 1px solid #e5e9f0;
}
.leave-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 72px;
  padding: 14px;
  text-align: left;
  width: 100%;
  background: linear-gradient(120deg, #fff, #f9fbfd);
  border: 1px solid #e0e6ed;
  border-radius: 13px;
  box-shadow: 0 1px 3px #1720330b;
  color: #172033;
}
.leave-row:hover {
  background: #f1f6fb;
  border-color: #b9c9d8;
}
.leave-row .copy {
  min-width: 0;
  flex: 1;
  display: grid;
  gap: 4px;
  overflow-wrap: anywhere;
}
.leave-row strong {
  font-size: 14px;
}
.leave-row .arrow {
  color: #67758a;
}
.leave-mark {
  height: 40px;
  width: 40px;
  flex: none;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #eaf1f5;
  color: #335d70;
  font-weight: 650;
}
.leave-badge {
  font-size: 12px;
  font-weight: 650;
  line-height: 1.3;
  color: #496075;
  background: #edf2f7;
  border-radius: 20px;
  padding: 5px 8px;
  display: inline-block;
  width: fit-content;
}
.leave-badge.warn {
  background: #fff0da;
  color: #875216;
}
.leave-badge.good {
  background: #e8f4ef;
  color: #236b52;
}
.leave-inline {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.leave-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.leave-actions > * {
  flex: 1;
}
.leave-page button,
.leave-dialog button {
  min-height: 44px;
}
.leave-page .primary-button,
.leave-dialog .primary-button {
  background: #bb443c;
  border-color: #bb443c;
  color: white;
}
.leave-empty {
  padding: 24px;
  color: #526078;
  text-align: center;
}
.leave-note {
  border: 1px solid #d8e5ec;
  background: #f1f7fa;
  padding: 14px;
  border-radius: 13px;
  line-height: 1.5;
  font-size: 14px;
}
.leave-note.warn {
  background: #fff8ec;
  border-color: #e8cfa5;
  color: #754613;
}
.leave-note p {
  margin: 6px 0 0;
}
.leave-note strong {
  display: block;
}
.leave-summary {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px 20px;
  margin: 0;
}
.leave-summary dd {
  font-weight: 650;
  margin: 0;
  text-align: right;
}
.leave-summary dt {
  color: #526078;
}
.leave-divider {
  height: 1px;
  background: #e5eaf0;
  margin: 18px 0;
}
.leave-mini-calendar {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin: 12px 0 20px;
}
.leave-mini-calendar > div {
  border: 1px solid #dee5ed;
  border-radius: 10px;
  display: grid;
  gap: 5px;
  padding: 10px 4px;
  text-align: center;
  font-size: 12px;
  color: #526078;
}
.leave-mini-calendar strong {
  font-size: 17px;
  color: #172033;
}
.leave-mini-calendar .occupied {
  background: #edf5f8;
  border-color: #bdd2dc;
}
.leave-mini-calendar .clash {
  background: #fff4e4;
  border-color: #dfbf8d;
}
.leave-mini-calendar span {
  font-size: 11px;
}
.leave-dialog {
  width: min(540px, calc(100% - 28px));
  max-height: calc(100dvh - 28px);
  padding: 0;
  border: 1px solid #dce3eb;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 22px 65px #17203326;
  color: #172033;
}
.leave-dialog::backdrop {
  background: #18253a66;
}
.leave-dialog form {
  display: flex;
  flex-direction: column;
  max-height: calc(100dvh - 30px);
}
.leave-dialog-head {
  padding: 20px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid #e5eaf0;
}
.leave-dialog-head h2 {
  font-size: 21px;
  margin: 0;
}
.leave-dialog-body {
  padding: 22px;
  overflow: auto;
  min-height: 0;
  display: grid;
  gap: 18px;
}
.leave-dialog-foot {
  padding: 16px 22px;
  display: flex;
  gap: 10px;
  border-top: 1px solid #e5eaf0;
  background: #fbfcfd;
}
.leave-dialog-foot button {
  flex: 1;
}
.leave-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.leave-dialog label.field {
  display: grid;
  gap: 7px;
  min-width: 0;
  margin: 0;
  font-size: 14px;
  font-weight: 650;
}
.leave-dialog input,
.leave-dialog select,
.leave-dialog textarea {
  box-sizing: border-box;
  max-width: 100%;
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #cbd5e0;
  border-radius: 10px;
  font: inherit;
  color: #172033;
  background: white;
}
.leave-dialog textarea {
  min-height: 90px;
  resize: vertical;
}
.leave-dialog fieldset {
  border: 1px solid #dce3ed;
  border-radius: 13px;
  padding: 10px 14px;
}
.leave-dialog legend {
  padding: 0 5px;
  font-weight: 650;
}
.leave-check {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-size: 14px;
}
.leave-check input {
  width: 20px;
  height: 20px;
  min-height: 20px;
  flex: none;
}
.leave-dialog .leave-error {
  color: #9e302b;
  background: #fff1f0;
  border-radius: 10px;
  padding: 12px;
  font-size: 14px;
}
.leave-error:empty {
  display: none;
}
#leaveStatus {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 20px;
  border-radius: 12px;
  background: #173c32;
  color: #fff;
  z-index: 50;
  box-shadow: 0 8px 28px #17203320;
  max-width: calc(100% - 32px);
  text-align: center;
  font-size: 14px;
  pointer-events: none;
}
#leaveStatus:empty {
  display: none;
}
:where(.leave-page, .leave-dialog)
  :is(button, a, input, select, textarea, summary):focus-visible {
  outline: 3px solid #2563eb;
  outline-offset: 3px;
}
.leave-dialog [hidden] {
  display: none;
}
.leave-day {
  font-size: 12px;
  width: 40px;
  flex: none;
  text-align: center;
  color: #526078;
}
.leave-day strong {
  display: block;
  font-size: 19px;
}
.leave-link {
  background: none;
  border: 0;
  text-align: left;
  color: #335d70;
  padding: 0;
  font-weight: 650;
}
.leave-ledger {
  margin: 0;
  padding-left: 20px;
  color: #526078;
  line-height: 1.8;
  font-size: 13px;
}
@media (max-width: 1100px) {
  .leave-grid {
    grid-template-columns: 1fr;
  }
  .leave-stat {
    font-size: 32px;
  }
  .leave-head h1 {
    font-size: 26px;
  }
}
@media (max-width: 600px) {
  .leave-head {
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 18px;
  }
  .leave-head h1 {
    font-size: 24px;
  }
  .leave-head .secondary-button {
    padding: 9px 12px;
  }
  .leave-grid,
  .leave-stack {
    gap: 18px;
  }
  .leave-card-head {
    padding: 18px 16px 12px;
  }
  .leave-pad {
    padding: 0 16px 18px;
  }
  .leave-card {
    border-radius: 17px;
  }
  .leave-fields {
    grid-template-columns: 1fr;
  }
  .leave-dialog {
    width: calc(100% - 16px);
    max-height: calc(100dvh - 16px);
    border-radius: 18px;
  }
  .leave-dialog form {
    max-height: calc(100dvh - 18px);
  }
  .leave-dialog-head {
    padding: 16px;
  }
  .leave-dialog-body {
    padding: 18px 16px;
  }
  .leave-dialog-foot {
    padding: 14px 16px;
  }
  #leaveStatus {
    bottom: 84px;
  }
  .leave-row {
    padding: 12px;
  }
  .leave-mark {
    width: 34px;
    height: 38px;
  }
  .leave-stats strong {
    font-size: 17px;
  }
  .leave-page .leave-back {
    font-size: 13px;
  }
}
/* Shared interactions and a directly switchable visual comparison. */
.leave-extra-button {
  display: block;
  width: 100%;
  margin-top: 8px;
  border: 1px solid #dce5f3;
  border-radius: 12px;
  background: #f8faff;
  color: #2456bd;
  padding: 10px 14px;
  font: inherit;
  cursor: pointer;
}
.leave-legal {
  font-size: 13px;
  color: #526078;
}
.leave-legal summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  cursor: pointer;
  font-weight: 650;
}
.leave-legal p {
  line-height: 1.5;
  margin: 8px 0;
}
.leave-top {
  display: flex;
  flex-direction: column;
}
.leave-back {
  order: -1;
}
.leave-plan-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.leave-plan-head strong {
  font-size: 15px;
}
.leave-day-strip {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 6px 3px 8px;
  margin-top: 8px;
  scrollbar-width: thin;
}
.leave-strip-day {
  position: relative;
  flex: 0 0 48px;
  min-width: 48px;
  min-height: 60px;
  padding: 6px 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border: 1px solid #d8e2f0;
  border-radius: 11px;
  background: #f8faff;
  color: #172033;
  font: inherit;
  cursor: pointer;
}
.leave-strip-day > span {
  font-size: 11px;
  line-height: 15px;
  color: #526078;
}
.leave-strip-day > strong {
  font-size: 17px;
  line-height: 21px;
  font-weight: 650;
}
.leave-strip-day i {
  position: absolute;
  right: 2px;
  top: 2px;
  display: grid;
  place-items: center;
  min-width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #245ace;
  color: #fff;
  font-size: 10px;
  line-height: 1;
  font-weight: 650;
  font-style: normal;
}
.leave-strip-day[aria-pressed='true'] {
  background: #e4edff;
  border-color: #3266db;
  box-shadow: inset 0 0 0 1px #3266db;
  color: #214b9e;
}
.leave-page {
  max-width: 980px;
  margin: 0;
}
.has-common-shell .main-content .leave-head.page-header {
  min-height: 0;
  margin: 0 0 4px;
  align-items: center;
  gap: 12px;
}
.leave-head h1 {
  font-size: 28px;
  letter-spacing: normal;
  line-height: 1.25;
  margin: 0;
}
.leave-back {
  order: 0;
  min-height: 44px;
  margin-bottom: 16px;
  font-size: 14px;
}
.leave-grid,
.leave-stack {
  gap: 16px;
}
.leave-card {
  border: 1px solid #e0e6f0;
  border-radius: 22px;
  box-shadow:
    0 8px 24px #182a4707,
    0 1px 2px #182a4708;
  padding: 14px;
}
.leave-card-head {
  padding: 0 0 14px;
  min-height: 32px;
}
.leave-pad {
  padding: 0;
}
.leave-list {
  padding: 8px;
  gap: 8px;
  background: #edf2fa;
  border: 0;
  border-radius: 13px;
}
.leave-row {
  min-height: 0;
  padding: 14px;
  border: 1px solid #dce5f3;
  background: #f8faff;
  box-shadow: 0 1px 3px #182a4710;
  border-radius: 13px;
}
.leave-row:hover {
  background: #edf3ff;
}
.leave-mark {
  background: #eef3ff;
  color: #245ace;
  border-radius: 50%;
  font-size: 13px;
}
.leave-meta {
  font-size: 13px;
}
.leave-badge {
  color: #245ace;
  background: #eef3ff;
}
.leave-badge.warn {
  color: #8b3d19;
  background: #fff1e7;
}
.leave-badge.good {
  color: #28694f;
  background: #e8f4ef;
}
.leave-plan {
  padding-bottom: 8px;
}
.leave-progress span:first-child {
  background: #3266db;
}
.leave-progress span:last-child {
  background: #b5c9f5;
}
.leave-note {
  background: #f4f7fc;
  border-color: #dce5f3;
}
.leave-note.warn {
  background: #fff8ec;
  border-color: #e8cfa5;
}
.leave-dialog {
  width: min(560px, calc(100% - 24px));
  max-height: calc(100dvh - 24px);
  border-radius: 22px;
  overflow: hidden;
}
.leave-dialog-head {
  padding: 20px 24px;
  border: 0;
}
.leave-dialog-head h2 {
  font-size: 22px;
}
.leave-dialog-body {
  padding: 20px 24px;
  gap: 20px;
}
.leave-dialog-foot {
  padding: 16px 24px;
  background: white;
  border: 0;
}
.leave-dialog-foot button {
  min-width: 0;
  white-space: normal;
  line-height: 1.35;
}
.leave-dialog h2:focus {
  outline: none;
}
.leave-dialog input:focus,
.leave-dialog textarea:focus {
  box-shadow: none;
}
.leave-dialog :focus-visible {
  outline-width: 2px;
  outline-offset: 2px;
}
@media (max-width: 600px) {
  .leave-head h1 {
    font-size: 24px;
  }
  .leave-card {
    padding: 14px;
  }
  .leave-dialog {
    width: 100%;
    max-width: 100%;
    margin: auto 0 0;
    border-radius: 22px 22px 0 0;
  }
  .leave-dialog-head {
    padding: 14px 16px;
  }
  .leave-dialog-head h2 {
    font-size: 20px;
  }
  .leave-dialog-body {
    padding: 18px 16px;
    gap: 18px;
  }
  .leave-dialog-foot {
    padding: 14px 16px max(16px, env(safe-area-inset-bottom));
  }
  .leave-dialog-foot button {
    padding-left: 10px;
    padding-right: 10px;
  }
}

#reportFile .leave-note {
  overflow-wrap: anywhere;
}
/* Compact employee view: balance, decisions, entries. */
.leave-page.leave-personal-simple {
  max-width: 780px;
}
.has-common-shell .main-content .leave-personal-simple .leave-head.page-header {
  margin-bottom: 20px;
}
.leave-personal-content {
  display: grid;
  gap: 16px;
}
.leave-personal-simple .leave-balance-card {
  padding: 18px;
}
.leave-balance-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.leave-balance {
  display: grid;
  align-content: start;
  gap: 7px;
  min-width: 0;
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 10px;
  padding: 0 0 4px;
  color: #172033;
  font: inherit;
  cursor: pointer;
}
.leave-balance + .leave-balance {
  padding-left: 18px;
  border-left: 1px solid #e0e6f0;
  border-radius: 0;
}
.leave-balance-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 650;
}
.leave-balance-title > span {
  color: #526078;
  font-size: 19px;
  font-weight: 400;
}
.leave-balance .leave-stat {
  font-size: 36px;
  font-weight: 650;
  white-space: nowrap;
  letter-spacing: -0.6px;
}
.leave-balance .leave-stat small {
  font-size: 14px;
}
.leave-balance .leave-meta {
  font-size: 13px;
  font-weight: 400;
}
.leave-main-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 18px;
}
.leave-main-actions button {
  white-space: normal;
  line-height: 1.35;
  padding: 12px;
  min-height: 48px;
}
.leave-simple-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.leave-simple-row .leave-badge {
  font-size: 11px;
  padding: 4px 8px;
}
.leave-simple-row .copy {
  gap: 6px;
}
.leave-simple-row .leave-meta {
  font-weight: 400;
}
.leave-entry-count {
  font-size: 13px;
  color: #526078;
}
.leave-personal-footer {
  display: flex;
  justify-content: flex-end;
}
.leave-personal-footer button {
  min-height: 44px;
}
@media (max-width: 600px) {
  .leave-personal-simple .leave-head h1 {
    font-size: 22px;
  }
  .leave-personal-simple .leave-balance-card {
    padding: 14px;
  }
  .leave-balance-grid {
    gap: 12px;
  }
  .leave-balance + .leave-balance {
    padding-left: 12px;
  }
  .leave-balance .leave-stat {
    font-size: 30px;
  }
  .leave-balance .leave-stat small {
    font-size: 12px;
  }
  .leave-balance-title {
    font-size: 14px;
  }
  .leave-balance .leave-meta {
    font-size: 12px;
    line-height: 1.5;
  }
  .leave-main-actions {
    gap: 10px;
    margin-top: 14px;
  }
  .leave-main-actions button {
    font-size: 14px;
    padding: 10px 8px;
  }
  .leave-personal-footer button {
    width: 100%;
  }
  .leave-personal-simple .leave-card-head h2 {
    font-size: 16px;
  }
  .leave-personal-simple .leave-simple-row {
    padding: 12px;
  }
}
.leave-agreements > summary {
  min-height: 44px;
  cursor: pointer;
  align-content: center;
}
.leave-agreement-person {
  margin-top: 8px;
  padding: 12px;
  border: 1px solid #d8e0eb;
  border-radius: 13px;
  background: #f7f9fd;
}
.leave-agreement-fields {
  display: grid;
  gap: 12px;
  margin-top: 8px;
}
.leave-agreement-fields[hidden],
.leave-agreement-person[hidden] {
  display: none;
}
.leave-agreement-fields .leave-check {
  align-items: flex-start;
}
.leave-agreements input[type='checkbox'] {
  flex-shrink: 0;
}

.leave-page .leave-day-strip {
  grid-template-columns: repeat(7, minmax(0, 1fr));
}
.leave-dialog .leave-agreement-person {
  display: grid;
  gap: 12px;
  margin-block: 12px;
}
.leave-dialog input,
.leave-dialog select {
  min-width: 0;
  max-width: 100%;
}
.leave-dialog summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  cursor: pointer;
}
.leave-page .leave-back {
  margin-bottom: 8px;
}
.leave-dialog-body > .leave-note + .leave-note {
  margin-top: 8px;
}

/* Teamzeiten: freigegebene Abwesenheitskarte und direkter Urlaubseinstieg. */
.ab-actions { display:flex; flex-wrap:wrap; gap:8px; margin-top:16px; }
.ab-actions button { min-height:46px; }
.ab-actions svg { width:20px; height:20px; flex:none; }
.ab-list { list-style:none; margin:0; padding:8px !important; gap:8px !important; }
.ab-record { padding:0 !important; border-radius:13px !important; border:1px solid #dce5f3 !important; background:#f7f9fd !important; box-shadow:0 1px 3px #1220340d !important; }
.ab-row { display:flex; width:100%; align-items:center; gap:12px; min-height:64px; padding:14px; text-align:left; border:0; background:transparent; color:#172033; border-radius:13px; }
.ab-row>[data-icon] { display:flex; flex:none; width:24px; height:24px; color:#526078; }
.ab-row svg { width:24px; height:24px; }
.ab-row>span:not([data-icon]) { display:grid; gap:3px; flex:1; min-width:0; }
.ab-row>span span { color:#526078; font-size:14px; }
.ab-row strong { overflow-wrap:anywhere; }
.ab-row:hover { background:#edf3ff; }
.ab-card .te-empty { margin:0; }
.ab-card .time-card-head { margin-bottom:12px; }
.team-vacation-dialog { width:min(540px,calc(100% - 32px)); max-height:calc(100dvh - 32px); }
.team-vacation-dialog form { max-height:calc(100dvh - 34px); }
.team-vacation-dialog .leave-dialog-head { padding:22px 24px 16px; border:0; flex:none; }
.team-vacation-dialog .leave-dialog-head h2 { font-size:23px; line-height:1.25; }
.team-vacation-dialog .leave-dialog-body { padding:0 24px 24px; gap:16px; overflow-x:hidden; }
.team-vacation-dialog .leave-dialog-foot { padding:16px 24px; background:#fff; flex:none; }
.team-vacation-dialog .leave-dialog-foot button { flex:initial; }
.team-vacation-dialog .leave-fields { gap:12px; }
.team-vacation-dialog .te-context { margin:0; padding:12px 14px; border-radius:13px; background:#f1f5fc; }
.ab-preview { background:#f1f5fc; border-radius:13px; padding:14px; margin:0; color:#304661; }
.team-vacation-dialog .leave-check { min-height:48px; font-size:inherit; line-height:1.5; }
.team-vacation-dialog .leave-check input { width:22px; height:22px; min-width:22px; min-height:22px; padding:0; accent-color:#2563eb; }
@media(max-width:600px) {
  .ab-actions { display:grid; grid-template-columns:1fr; }
  .ab-actions button { justify-content:flex-start; }
  .team-vacation-dialog { width:100%; max-width:100%; max-height:94dvh; margin:auto 0 0; border-radius:22px 22px 0 0; }
  .team-vacation-dialog form { max-height:94dvh; }
  .team-vacation-dialog .leave-dialog-head { padding:20px 20px 16px; }
  .team-vacation-dialog .leave-dialog-body { padding:0 20px 20px; }
  .team-vacation-dialog .leave-dialog-foot { padding:14px 20px 20px; display:grid; grid-template-columns:1fr; }
  .team-vacation-dialog .leave-dialog-foot .primary-button { grid-row:1; }
  .team-vacation-dialog .leave-dialog-foot button { width:100%; }
  .team-vacation-dialog .leave-fields { grid-template-columns:1fr; }
}
.ab-actions:empty { display:none; }
.team-vacation-dialog .leave-check { overflow-wrap:anywhere; }

/* Freigegebene Zeitkorrektur und Abgeltungsprüfung. */
/* Neue Referenzfläche; Apprahmen und Basis bleiben eingefroren aus 0.43.7. */
.cr-page{max-width:940px;margin:0 auto}.cr-page h1{font-size:28px;line-height:1.2;margin:8px 0 22px}.cr-page h2{font-size:18px;margin:0}.cr-back{display:inline-flex;gap:8px;align-items:center;margin:0 0 8px}.cr-person{display:flex;align-items:center;gap:12px;margin:0 0 22px}.cr-person .avatar{background:#eaf1ff;color:#285ca9}.cr-person div{display:grid;gap:3px}.cr-person span:last-child{color:#526078;font-size:14px}.cr-grid{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:20px;align-items:start}.cr-stack{display:grid;gap:18px}.cr-card{padding:20px;background:#fff;border:1px solid #e0e6ef;border-radius:18px;box-shadow:0 2px 8px #17203305}.cr-card-head{display:flex;gap:12px;align-items:center;justify-content:space-between;margin-bottom:16px}.cr-sub{color:#526078;font-size:14px}.cr-page p,.cr-sheet p{margin:0;line-height:1.5}.cr-records{display:grid;gap:8px;padding:8px;margin:0;list-style:none;background:#f0f4fa;border-radius:16px}.cr-row{display:flex;align-items:center;gap:12px;padding:14px;min-height:64px;border:1px solid #dce5f3;border-radius:13px;background:#f8faff;box-shadow:0 1px 3px #182a470d;text-align:left;color:#172033;width:100%}.cr-row>div{min-width:0;flex:1;display:grid;gap:5px}.cr-row strong,.cr-row span{overflow-wrap:anywhere}.cr-row small{font-size:13px;color:#526078;line-height:1.4}.cr-row:disabled{opacity:1}.cr-row .cr-arrow{flex:none;color:#526078}.cr-pill{display:inline-flex;align-items:center;gap:6px;font-size:12px;line-height:1.4;padding:5px 9px;border-radius:8px;font-weight:700;width:fit-content;background:#fff0d8;color:#81520e}.cr-pill.green{background:#e8f7ef;color:#0f7345}.cr-pill.blue{background:#eaf1ff;color:#285ca9}.cr-month{padding:12px 14px;margin-bottom:16px;background:#f0f4fa;border-radius:12px;font-size:14px;display:flex;justify-content:space-between}.cr-block{display:grid;gap:16px}.cr-block-head{display:flex;align-items:start;gap:10px;justify-content:space-between}.cr-block-head>div{display:grid;gap:4px}.cr-rule{border:0;border-top:1px solid #e0e6ef;margin:0}.cr-empty{padding:16px 8px;color:#526078;line-height:1.5}.cr-toast{display:flex;gap:10px;align-items:center;padding:13px 16px;background:#e8f7ef;border:1px solid #c2e2cf;color:#135d3b;border-radius:13px;margin-bottom:18px}.cr-history{display:grid;gap:8px}.cr-history>li{display:grid;gap:5px}.cr-history p{font-size:14px;overflow-wrap:anywhere}.cr-history small{color:#526078}.cr-history summary{min-height:44px;display:flex;align-items:center;cursor:pointer;font-weight:650}.cr-sheet{width:min(580px,calc(100% - 32px));max-width:none;max-height:calc(100dvh - 40px);border:1px solid #e0e6ef;border-radius:22px;padding:0;box-shadow:0 24px 80px #17203333;color:#172033;background:white;overflow:hidden}.cr-sheet::backdrop{background:#1c2c4866;backdrop-filter:blur(2px)}.cr-panel{display:flex;flex-direction:column;max-height:calc(100dvh - 40px)}.cr-head{display:flex;align-items:center;gap:12px;padding:20px 24px;border-bottom:1px solid #e4e9f1;flex-shrink:0}.cr-head h2{margin:0;flex:1;min-width:0;font-size:22px;line-height:1.25}.cr-content{display:grid;gap:18px;padding:20px 24px;overflow-y:auto;min-height:0;overscroll-behavior:contain}.cr-content:focus{outline:none}.cr-context{display:grid;gap:4px}.cr-context strong{font-size:15px}.cr-context span{color:#526078;font-size:13px}.cr-foot{padding:16px 24px;display:flex;align-items:center;gap:10px;border-top:1px solid #e4e9f1;background:#fff;flex-shrink:0}.cr-foot button{white-space:normal;line-height:1.3;min-height:46px}.cr-foot .primary-button{flex:1}.cr-sheet .field{margin:0;min-width:0}.cr-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px}.cr-sheet input:not([type=checkbox]),.cr-sheet textarea,.cr-sheet select{min-height:46px;width:100%;min-width:0;border:1px solid #b9c7da;border-radius:10px;padding:10px 12px;background:#fff;color:#172033;font:inherit}.cr-sheet textarea{min-height:80px;resize:vertical}.cr-sheet label>span{font-size:14px;font-weight:600}.cr-sheet .field{display:grid;gap:7px}.cr-sheet h3{font-size:15px;margin:0}.cr-notice{padding:15px;background:#fff8eb;border:1px solid #e6cc9e;border-radius:13px;display:grid;gap:10px}.cr-notice-title{display:flex;align-items:center;gap:10px;color:#81520e}.cr-notice p{font-size:14px;color:#624c2c}.cr-notice .cr-comparison{background:#fffdf8;border-color:#eaddc5}.cr-comparison{border:1px solid #dce5f3;border-radius:13px;background:#f6f9fe;overflow:hidden}.cr-compare-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;padding:10px 13px;align-items:center;font-size:14px}.cr-compare-row+.cr-compare-row{border-top:1px solid #e1e7f0}.cr-compare-row>span{color:#526078}.cr-compare-row strong{text-align:right;font-variant-numeric:tabular-nums}.cr-compare-row small{display:block;color:#526078;font-size:12px;font-weight:400}.cr-choice{display:flex;align-items:center;gap:12px;padding:13px 14px;border:1px solid #dce5f3;border-radius:13px;background:#f2f6fd}.cr-choice>div{display:grid;gap:4px}.cr-choice small{font-size:13px;color:#526078}.cr-note{color:#526078;font-size:14px;line-height:1.5}.cr-check{display:flex;align-items:flex-start;gap:10px;min-height:44px;padding:8px 0;cursor:pointer}.cr-check input{width:20px;height:20px;margin:1px 0;flex:none;accent-color:#285ca9}.cr-check span{font-size:14px!important;font-weight:400!important;line-height:1.5}.cr-passkey{display:flex;gap:8px;align-items:center;font-size:13px;color:#526078}.cr-error{padding:12px 14px;background:#fff0ef;border:1px solid #e7b8b5;border-radius:12px;color:#9d302b;font-size:14px;line-height:1.5}.cr-error button{margin-top:10px}.cr-detail summary{display:flex;align-items:center;min-height:44px;cursor:pointer;color:#285ca9;font-size:14px;gap:8px}.cr-detail[open]>div{margin-top:6px}.cr-result{display:grid;gap:5px;padding:13px;background:#f2f6fd;border:1px solid #dce5f3;border-radius:13px}.cr-result strong{font-size:18px}.cr-result small{color:#526078}.cr-pending{padding:13px;background:#fff8eb;border:1px solid #e6cc9e;border-radius:13px;display:grid;gap:8px;font-size:14px}.cr-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.cr-sheet [data-icon] svg,.cr-page [data-icon] svg{height:20px;width:20px;flex:none}.cr-sheet :focus-visible,.cr-page :focus-visible{outline:3px solid #2563eb;outline-offset:3px}.cr-sheet h2:focus{outline:none}.cr-page button:disabled{cursor:default}.cr-history-card{grid-column:1/-1}.cr-sheet .icon-button{flex:none;min-width:44px;min-height:44px}.cr-source{font-size:14px;color:#526078;display:grid;gap:8px}.cr-source b{color:#172033}.cr-spinner{height:18px;width:18px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:cr-spin 1s linear infinite;display:inline-block}@keyframes cr-spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.cr-spinner{animation:none}}
@media(max-width:950px){.cr-grid{grid-template-columns:minmax(0,1fr)}.cr-page{max-width:660px}.cr-history-card{grid-column:auto}}
@media(max-width:600px){.cr-page h1{font-size:25px;margin-bottom:18px}.cr-card{padding:16px;border-radius:16px}.cr-card-head{margin-bottom:12px}.cr-sheet{width:100%;max-width:100%;margin:auto 0 0;max-height:calc(100dvh - 16px);border-radius:22px 22px 0 0;border-bottom:0}.cr-panel{max-height:calc(100dvh - 16px)}.cr-head{padding:14px 16px}.cr-head h2{font-size:20px}.cr-content{padding:18px 16px;gap:16px}.cr-foot{padding:14px 16px max(16px,env(safe-area-inset-bottom))}.cr-foot button{font-size:14px;padding:12px}.cr-notice{padding:13px}.cr-compare-row{font-size:13px;padding:10px 12px}.cr-person{margin-bottom:18px}.cr-person strong{font-size:17px}.cr-page .cr-block>.secondary-button{width:100%}.cr-fields{gap:10px}}
/* Vergleiche behalten ihre Höhe auch in einem scrollbaren mobilen Dialog. */
.cr-content{grid-auto-rows:max-content}
.cr-row>.cr-block-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}
.cr-row>.cr-passkey{display:flex;align-items:center;gap:8px}
.cr-row>.cr-block-head>div{display:grid;gap:4px}
#backOverview{margin-bottom:14px}
/* Dieselbe Dialoggeometrie wie in der freigegebenen Referenz. */
#managementDialog.team-time-edit-dialog.cr-sheet,.leave-dialog.cr-sheet{width:min(580px,calc(100% - 32px));max-height:calc(100dvh - 40px);border:1px solid #e0e6ef;border-radius:22px;padding:0;box-shadow:0 24px 80px #17203333;overflow:hidden}
#managementDialog.team-time-edit-dialog.cr-sheet .cr-panel,.leave-dialog.cr-sheet .cr-panel{max-height:calc(100dvh - 40px);margin:0}
#managementDialog.team-time-edit-dialog.cr-sheet .cr-head{padding:20px 24px;gap:12px;border-bottom:1px solid #e4e9f1}
#managementDialog.team-time-edit-dialog.cr-sheet .cr-content{gap:18px;padding:20px 24px;grid-auto-rows:max-content}
#managementDialog.team-time-edit-dialog.cr-sheet .cr-foot{border-top:1px solid #e4e9f1;padding:16px 24px;gap:10px}
.leave-dialog.cr-sheet .cr-check input{width:20px;height:20px;min-height:20px;margin:1px 0;padding:0}
.leave-dialog.cr-sheet textarea{min-height:80px}
@media(max-width:600px){
#managementDialog.team-time-edit-dialog.cr-sheet,.leave-dialog.cr-sheet{width:100%;max-width:100%;margin:auto 0 0;max-height:calc(100dvh - 16px);border-radius:22px 22px 0 0;border-bottom:0}
#managementDialog.team-time-edit-dialog.cr-sheet .cr-panel,.leave-dialog.cr-sheet .cr-panel{max-height:calc(100dvh - 16px)}
#managementDialog.team-time-edit-dialog.cr-sheet .cr-head{padding:14px 16px}
#managementDialog.team-time-edit-dialog.cr-sheet .cr-content{padding:18px 16px;gap:16px}
#managementDialog.team-time-edit-dialog.cr-sheet .cr-foot{padding:14px 16px max(16px,env(safe-area-inset-bottom))}
}
