:root {
  --bg: #ffffff;
  --panel: #ffffff;
  --text: #374151;
  --muted: #6b7280;
  --accent: #1a73e8;
  --accent-dark: rgb(21, 88, 176);
  --accent-soft: rgb(210, 227, 252);
  --accent-2: #34a853;
  --accent-2-dark: rgb(40, 130, 65);
  --accent-2-soft: rgb(209, 237, 215);
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
  --radius: 18px;
  --sidebar-current-w: 220px;
}

/* ============================================================
   Bootstrap 5 conflict overrides — must stay after :root
   ============================================================ */

/* Prevent Bootstrap flex from breaking our card layout */
.card {
  display: block;
}

/* Our modals use [hidden] — keep them visible when [hidden] is removed */
.modal {
  display: grid !important;
}
.modal[hidden] {
  display: none !important;
}

/* Bootstrap resets button border-radius to 0 — restore ours */
button {
  border-radius: 8px;
}

/* Prevent Bootstrap's h* margin resets from collapsing layout */
h1, h2, h3, h4, h5, h6 {
  margin-bottom: 0;
}

/* ============================================================ */

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--bg);
}

h1, h2, h3, h4 {
  font-family: Arial, Helvetica, sans-serif;
  margin: 0;
}

#app {
  min-height: 100vh;
}

.login {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f5f7f8 0%, #ecf2f4 50%, #f6e8ee 100%);
  padding: 32px;
  gap: 12px;
}

.login-company-logo {
  width: 300px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.18));
}

/* ---- Split Login Layout ---- */
.login-split {
  display: flex;
  min-height: 100vh;
}

.login-left {
  flex: 0 0 42%;
  background: linear-gradient(135deg, #1a73e8 0%, #34a853 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 40px;
  gap: 28px;
}

.login-company-name {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
  text-align: center;
  margin: 0;
  min-height: 0;
}

.login-tagline {
  color: #fff;
  font-size: 1.3rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.6;
  margin: 0;
  letter-spacing: 0.03em;
  text-shadow: 0 1px 4px rgba(0,0,0,0.12);
}

.login-right {
  flex: 1;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 40px;
  min-height: 100vh;
}

.login-right-inner {
  width: min(380px, 100%);
  display: grid;
  gap: 16px;
}

.login-title {
  font-size: 1.9rem;
  font-weight: 700;
  margin: 0;
  color: var(--text);
}

.login-subtitle {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}

/* Floating label fields */
.float-field {
  position: relative;
}

.float-field input {
  width: 100%;
  padding: 22px 14px 8px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background: #fafafa;
  font-size: 1rem;
  font-family: Arial, Helvetica, sans-serif;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.float-field input:focus {
  border-color: #1a73e8;
  box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1);
  outline: none;
  background: #fff;
}

.float-field label {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.95rem;
  color: var(--muted);
  pointer-events: none;
  transition: all 0.18s ease;
}

.float-field input:focus + label,
.float-field input:not(:placeholder-shown) + label {
  top: 10px;
  transform: none;
  font-size: 0.72rem;
  color: var(--accent);
  font-weight: 600;
}

/* Password toggle */
.pass-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--muted);
  border-radius: 8px;
  line-height: 0;
}

.pass-toggle:hover {
  color: var(--accent);
}

.pass-toggle svg {
  width: 20px;
  height: 20px;
}

/* Forgot password link */
.login-forgot {
  font-size: 0.85rem;
  color: var(--accent);
  text-decoration: none;
  text-align: right;
  display: block;
}

.login-forgot:hover {
  text-decoration: underline;
}

/* Login submit button */
.login-submit {
  width: 100%;
  padding: 14px;
  font-size: 1rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 4px;
}

/* Spinner */
.login-spinner {
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
  vertical-align: middle;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Mobile: left panel → slim top bar */
@media (max-width: 768px) {
  .login-split {
    flex-direction: column;
  }

  .login-left {
    flex: none;
    min-height: auto;
    padding: 16px 24px;
    flex-direction: row;
    justify-content: center;
    gap: 12px;
  }

  .login-left .login-company-logo {
    width: 120px;
  }

  .login-tagline {
    font-size: 0.9rem;
    text-align: left;
  }

  .login-right {
    flex: 1;
    min-height: auto;
    padding: 32px 24px;
    justify-content: flex-start;
  }
}

.login-footer {
  text-align: center;
  font-size: 0.72rem;
  color: #34a853;
}

.app-footer {
  margin-left: var(--sidebar-current-w);
  width: calc(100% - var(--sidebar-current-w));
  transition: margin-left 0.25s ease, width 0.25s ease;
  padding: 16px 24px 28px;
  text-align: center;
  font-size: 0.72rem;
  color: #34a853;
}

.heart {
  color: #d12c2c;
  font-weight: 700;
}

.login-card {
  background: var(--panel);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 36px;
  width: min(520px, 100%);
  display: grid;
  gap: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--accent);
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
}

.brand-title {
  font-weight: 700;
}

.brand-sub {
  color: var(--muted);
  font-size: 0.9rem;
}

.field {
  display: grid;
  gap: 8px;
  font-size: 0.9rem;
}

.login-card .field {
  margin-bottom: 4px;
}

#loginBtn {
  margin-top: 8px;
}

.field.inline {
  grid-template-columns: 160px 1fr;
  align-items: center;
}

.field span {
  font-size: 0.8rem;
  font-weight: 500;
  color: #6b7280;
  letter-spacing: 0.02em;
}

/* Color picker rows: swatch + label side by side */
.field:has(input[type="color"]) {
  flex-direction: row;
  align-items: center;
  gap: 12px;
  display: flex;
}

/* Checkbox rows: label + checkbox side by side */
.field:has(input[type="checkbox"]) {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
}

input, select {
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background: #fafafa;
  font-family: Arial, Helvetica, sans-serif;
}

input:focus, select:focus {
  border-color: #1a73e8;
  box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1);
  outline: none;
}

input[type="color"] {
  width: 40px;
  height: 40px;
  padding: 3px;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
  background: transparent;
  cursor: pointer;
}

button {
  font-family: Arial, Helvetica, sans-serif;
  border-radius: 8px;
  padding: 10px 16px;
  border: none;
  cursor: pointer;
}

button.primary {
  background: #2da44e;
  color: #fff;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 8px 20px;
  border-radius: 8px;
}

button.primary:hover {
  background: #28963f;
}

button.ghost {
  background: #f1f3f5;
  color: #2c2b2d;
}

.shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.sidebar {
  background: var(--accent);
  color: #fff;
  padding: 24px 0;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: var(--sidebar-current-w);
  overflow-x: hidden;
  overflow-y: hidden;
  transition: width 0.25s ease;
  z-index: 200;
}

.sidebar-header {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 0 16px 24px;
  flex-shrink: 0;
}

/* Toggle button — inline in sidebar-header */
.sidebar-toggle {
  margin-left: auto;
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  background: rgba(255,255,255,0.12);
  border: none;
  border-radius: 6px;
  color: rgba(255,255,255,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, color 0.2s;
}

.sidebar-toggle:hover {
  background: rgba(255,255,255,0.22);
  color: #fff;
}

.sidebar-toggle .bi {
  font-size: 0.78rem;
  line-height: 1;
}

/* Sidebar labels — animated hide on collapse */
.sidebar .sidebar-label {
  overflow: hidden;
  white-space: nowrap;
  max-width: 200px;
  opacity: 1;
  visibility: visible;
  transition: max-width 0.2s ease, opacity 0.15s ease, visibility 0s linear 0s;
  display: inline-block;
}

/* Menu button text — allow wrapping for long labels */
.sidebar .menu button span {
  overflow: hidden;
  white-space: normal;
  max-width: 200px;
  opacity: 1;
  visibility: visible;
  line-height: 1.25;
  transition: max-width 0.2s ease, opacity 0.15s ease, visibility 0s linear 0s;
  display: inline-block;
}

/* Ensure labels are visible when expanded */
.sidebar:not(.collapsed) .sidebar-label,
.sidebar:not(.collapsed) .menu button span {
  visibility: visible;
}

/* Hamburger (mobile only) */
.sidebar-hamburger {
  display: none;
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 300;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 10px;
  width: 40px;
  height: 40px;
  font-size: 1.3rem;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* Mobile overlay */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  z-index: 199;
}

.sidebar-overlay.active {
  display: block;
}

.sidebar .brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #fff;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--accent);
  font-weight: 800;
}

.sidebar-menu {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0 8px;
}

.menu {
  display: grid;
  gap: 8px;
  align-content: start;
}

.menu button {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  background: transparent;
  color: #ffeef3;
  text-align: left;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-size: 1rem;
}

.menu button svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
}

.menu button.active,
.menu button:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  cursor: pointer;
  border-top: 1px solid rgba(255,255,255,0.1);
  transition: background 0.2s;
  flex-shrink: 0;
}

.sidebar-user:hover {
  background: rgba(255,255,255,0.08);
}

.sidebar-user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-image: linear-gradient(135deg, var(--accent), var(--accent-2));
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  border: 2px solid rgba(255,255,255,0.5);
  box-shadow: 0 0 0 2px rgba(255,255,255,0.2);
}

.sidebar-user-info {
  flex: 1;
  min-width: 0;
}

.sidebar-user-name {
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-user-role {
  color: rgba(255,255,255,0.6);
  font-size: 0.8rem;
}

.support-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

.support-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.support-link:hover {
  background: rgba(255, 255, 255, 0.22);
}

.sidebar-logout {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
  border-top: 1px solid rgba(255,255,255,0.06);
  flex-shrink: 0;
}

.sidebar-logout:hover {
  color: rgba(255,255,255,0.8);
  background: rgba(255,255,255,0.05);
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: #fff;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--accent);
  display: grid;
  place-items: center;
  font-weight: 700;
}

.main {
  flex: 1;
  padding: 32px 40px;
  margin-left: var(--sidebar-current-w);
  width: calc(100% - var(--sidebar-current-w));
  transition: margin-left 0.25s ease, width 0.25s ease;
}

.topbar {
  margin-bottom: 24px;
}

.search input {
  width: min(520px, 80vw);
  border-radius: 999px;
  padding: 14px 18px;
  border: none;
  background: #e7ecee;
}

.grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 24px;
}

.stack {
  display: grid;
  gap: 16px;
}

.card {
  background: var(--panel);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.card-title {
  font-weight: 700;
  margin-bottom: 6px;
}

.card-sub {
  color: var(--muted);
  font-size: 0.95rem;
}

.card-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.month-nav {
  display: flex;
  gap: 8px;
}

.card-actions {
  display: flex;
  align-items: flex-start;
  gap: 22px;
}

.nav-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.85rem;
  min-width: 160px;
  white-space: nowrap;
  background: var(--accent-2);
  color: #fff;
}

.nav-button:hover {
  background: var(--accent-2-dark);
}

.card-row-sub {
  justify-content: flex-end;
  margin-top: 4px;
}


.month-nav button.active {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent-dark);
}

.calendar-day.empty {
  background: #f7f7f7;
  opacity: 0.7;
  pointer-events: none;
}

.calendar-day.today {
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 2px rgba(139, 15, 58, 0.1);
}

.week-timeline {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(240px, 1fr);
  gap: 16px;
}

.day-column {
  border: 1px solid #e7eaee;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
}

.day-column.today {
  box-shadow: 0 0 0 2px var(--accent);
}

.day-column.today .day-header {
  background: var(--accent-soft);
}

.day-header {
  padding: 10px 14px;
  background: #f7f8fa;
  font-weight: 600;
}

.day-body {
  position: relative;
  height: 960px; /* 24h * 40px */
  background: repeating-linear-gradient(
    to bottom,
    #f5f6f7,
    #f5f6f7 39px,
    #e9edf0 40px
  );
  padding-left: 40px;
}

.hour-label {
  position: absolute;
  left: 6px;
  font-size: 0.75rem;
  color: var(--muted);
}

.shift-bar {
  position: absolute;
  width: 6px;
  border-radius: 6px;
  opacity: 0.9;
}

.core-line {
  position: absolute;
  left: 40px;
  right: 8px;
  height: 2px;
  background: var(--accent);
  opacity: 0.55;
}

.core-line.core-end {
  opacity: 0.75;
}

.core-line.oncall-core {
  height: 2px;
  opacity: 0.4;
}

.core-line.oncall-core.core-end {
  opacity: 0.7;
}

.shift-avatar {
  position: absolute;
  left: 6px;
  width: 32px;
  height: 32px;
  border-radius: 12px;
  background: #fff;
  color: var(--accent);
  display: grid;
  place-items: center;
  font-weight: 700;
  border: 1px solid #e1e5e8;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  cursor: pointer;
  overflow: hidden;
}

.shift-avatar .prio-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 22px;
  height: 22px;
  padding: 0 4px;
  border-radius: 11px;
  background: var(--accent-2);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  border: 2px solid #fff;
  line-height: 1;
  pointer-events: none;
}

.shift-avatar.prio-outside {
  overflow: visible;
}

.shift-avatar.prio-outside .prio-badge {
  top: -10px;
  right: -14px;
  min-width: 24px;
  height: 24px;
  border-radius: 12px;
}

.support-card iframe {
  width: 100%;
  height: 70vh;
  border: 1px solid #e2e6ea;
  border-radius: 12px;
  background: #fff;
}

.support-frame-wrap {
  margin-top: 12px;
}

.card-action {
  color: var(--muted);
}

.placeholder {
  background: #f2f4f6;
  padding: 10px 16px;
  border-radius: 16px;
  margin: 10px 0;
  color: var(--muted);
  text-align: center;
}

.card-link {
  color: var(--accent);
  font-weight: 600;
}

.timer-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: #e7ecee;
  color: var(--accent);
  font-weight: 700;
}

.timer-time {
  font-size: 1.6rem;
  font-weight: 700;
}

.timer-time span {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
  display: block;
}

.profile-header {
  display: flex;
  gap: 16px;
  align-items: center;
}

.profile-photo {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: #d8dfe2;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

.cropper {
  display: grid;
  place-items: center;
  background: #f2f4f6;
  border-radius: 16px;
  padding: 16px;
}

#avatarCropCanvas {
  background: #fff;
  border-radius: 16px;
  border: 1px solid #e1e5e8;
  cursor: grab;
}

#avatarCropCanvas:active {
  cursor: grabbing;
}

.profile-actions {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.absence-days {
  font-size: 2rem;
  font-weight: 700;
}

.absence-list {
  display: grid;
  gap: 10px;
  margin: 16px 0;
}

.absence-item {
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid #edf1f4;
  display: grid;
  gap: 6px;
}

.tag {
  color: #c0602d;
  font-weight: 700;
}

.range {
  color: var(--muted);
  font-size: 0.9rem;
}

.page {
  margin-top: 24px;
  display: grid;
  gap: 1.5rem;
}

.page-tools {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.filters input,
.filters select {
  min-width: 200px;
}

.page-header h3 {
  font-size: 1.4rem;
  font-weight: 600;
  color: #1a1a1a;
}

.page-header p {
  font-size: 0.875rem;
  color: #6b7280;
  margin: 4px 0 0;
}

.hierarchy {
  display: grid;
  gap: 12px;
}

.hierarchy-item {
  background: var(--panel);
  border-radius: 18px;
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid #eef1f3;
}

.hierarchy-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.team-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.team-card {
  border-radius: 18px;
  padding: 16px;
  background: var(--panel);
  box-shadow: var(--shadow);
  display: grid;
  gap: 8px;
}

.team-card .badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.badge {
  background: #f1f3f5;
  color: #2c2b2d;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.swap-requests {
  margin-top: 20px;
}

.swap-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.swap-item {
  border-radius: 14px;
  padding: 12px;
  border: 1px solid #edf1f4;
  display: grid;
  gap: 6px;
}

.swap-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.drag-target {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(139, 15, 58, 0.2);
}

.profile-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1fr;
}

.field-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.stat {
  background: #f7f0f3;
  color: var(--accent);
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: 600;
}

.upload {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.hint {
  margin-top: 8px;
  color: var(--accent);
  font-weight: 600;
}

.hint.error {
  color: #b4232c;
  background: #fff0f1;
  padding: 8px 10px;
  border-radius: 10px;
}

.hint.success {
  color: #0f5132;
  background: #e8f7ef;
  padding: 8px 10px;
  border-radius: 10px;
}

.templates {
  display: grid;
  gap: 12px;
}

.template-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.template-day {
  border-radius: 16px;
  padding: 12px;
  background: #f5f7f9;
  display: grid;
  gap: 8px;
}

.template-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.oncall-core-grid {
  display: grid;
  gap: 12px;
}

.oncall-core-row {
  display: grid;
  grid-template-columns: minmax(160px, 1.2fr) repeat(2, minmax(140px, 1fr));
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 16px;
  background: #f5f7f9;
}

.oncall-core-header {
  align-items: center;
}

.oncall-core-body {
  margin-top: 12px;
}

#oncallCoreCard.is-collapsed .oncall-core-body {
  display: none;
}

.oncall-core-section {
  margin-top: 12px;
  border-top: 1px solid var(--border);
  padding-top: 10px;
}

.oncall-core-section-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.oncall-core-weekdays {
  display: grid;
  gap: 6px;
}

.oncall-core-weekday {
  display: grid;
  grid-template-columns: 28px 1fr 1fr;
  gap: 8px;
  align-items: center;
}

.oncall-core-weekday span {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
}

.calendar {
  display: grid;
  gap: 16px;
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.calendar-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.calendar-controls .ghost.active {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent-dark);
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(120px, 1fr));
  gap: 8px;
}

.status-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.status-tag {
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 999px;
  white-space: nowrap;
}

.calendar-day {
  background: #f7f9fb;
  border-radius: 16px;
  padding: 10px;
  min-height: 100px;
  display: grid;
  gap: 6px;
  cursor: pointer;
  border: 1px solid #edf1f4;
}

.calendar-day.weekday {
  min-height: auto;
  text-align: center;
  background: #f0f3f5;
  font-weight: 700;
  cursor: default;
}

.calendar-day.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(139, 15, 58, 0.2);
}

.calendar-day .date {
  font-weight: 700;
}

.calendar-day .hours {
  font-size: 0.85rem;
  color: var(--muted);
}

.calendar-day.holiday {
  background: #fff7e6;
  border-color: #ffe0b3;
}

.holiday-label {
  font-size: 0.75rem;
  color: #a06800;
}

.team-row {
  padding: 4px 6px;
  border-radius: 8px;
  color: #2c2b2d;
  margin-top: 4px;
}

.legend {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 12px 0;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--muted);
}

.legend-swatch {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  border: 1px solid #e1e5e8;
}

.calendar-legend {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(18, 22, 27, 0.45);
  display: grid;
  place-items: center;
  padding: 24px;
}

.modal-card {
  background: var(--panel);
  border-radius: 20px;
  padding: 20px;
  width: min(520px, 100%);
  box-shadow: var(--shadow);
  display: grid;
  gap: 12px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-body {
  display: grid;
  gap: 12px;
}

.segments {
  display: grid;
  gap: 12px;
}

.segment {
  display: grid;
  grid-template-columns: repeat(2, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.segment button {
  padding: 8px 12px;
}

.modal-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
}

#modalMemberHint {
  margin-bottom: 8px;
}

.settings-card .card-row {
  align-items: center;
}

.settings-card-body {
  margin-top: 0;
  padding-top: 1.25rem;
  display: grid;
  gap: 1rem;
}

.settings-card.is-collapsed .settings-card-body {
  display: none;
}

.collapsible-card .card-row {
  align-items: center;
}

.collapsible-card.is-collapsed .collapsible-body {
  display: none;
}

.modal-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.muted {
  color: var(--muted);
}

@media (max-width: 1100px) {
  .grid {
    grid-template-columns: 1fr;
  }
  .shell {
    display: flex;
    flex-direction: column;
  }
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    width: 220px;
  }
  .sidebar.mobile-open {
    transform: translateX(0);
  }
  .main {
    margin-left: 0 !important;
    width: 100% !important;
  }
  .app-footer {
    margin-left: 0 !important;
    width: 100% !important;
  }
  .sidebar-hamburger {
    display: flex;
  }
  .sidebar-toggle {
    display: none;
  }
}

@media (max-width: 720px) {
  .calendar-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .topbar {
    justify-items: start;
    text-align: left;
  }
}

/* ============================================================
   Setup / Onboarding Pages
   ============================================================ */

.setup-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #e8f4fd 0%, #eaf6ec 100%);
  padding: 24px 16px;
  gap: 16px;
}

.setup-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 8px 40px rgba(14, 137, 222, 0.10), 0 1px 6px rgba(0, 0, 0, 0.06);
  padding: 40px;
  width: 100%;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.setup-logo-img {
  width: 180px;
  height: auto;
  object-fit: contain;
  display: block;
  margin-left: auto;
  margin-right: auto;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.10));
}

/* Step progress dots */
.setup-steps {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.setup-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d1d5db;
  transition: all 0.25s ease;
}

.setup-dot--active {
  width: 24px;
  border-radius: 4px;
  background: #1a73e8;
}

.setup-dot--done {
  background: #34a853;
}

/* Drop zone for file upload */
.setup-drop-zone {
  position: relative;
  border: 2px dashed #cbd5e1;
  border-radius: 12px;
  padding: 28px 16px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
  overflow: hidden;
}

.setup-drop-zone:hover {
  border-color: #1a73e8;
  background: #f0f7ff;
}

/* Overlay the file input so the whole zone is clickable */
.setup-file-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

/* Color picker */
.setup-color-input {
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 12px;
  padding: 3px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  background: transparent;
}

/* Primary action button */
.setup-btn-primary {
  background: #34a853;
  color: #fff;
  border: none;
  font-size: 1rem;
  transition: background 0.2s ease, transform 0.1s ease;
}

.setup-btn-primary:hover,
.setup-btn-primary:focus {
  background: #2a8a44;
  color: #fff;
}

.setup-btn-primary:active {
  transform: scale(0.98);
}

/* Footer below card */
.setup-footer {
  text-align: center;
  font-size: 0.72rem;
  color: #34a853;
}

/* Bootstrap form-control focus: match brand blue */
.setup-card .form-control:focus,
.setup-card .form-select:focus {
  border-color: #1a73e8;
  box-shadow: 0 0 0 0.2rem rgba(26, 115, 232, 0.18);
}

/* Mobile */
@media (max-width: 576px) {
  .setup-card {
    padding: 24px 20px;
    border-radius: 16px;
  }
}

/* ============================================================
   Bootstrap 5 UI Additions
   ============================================================ */

/* ---- Menu icons (Bootstrap Icons <i>) ---- */
.menu button i {
  font-size: 1.05rem;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
  margin-top: 0.1em;
}

/* ---- Active menu item: pill highlight ---- */
.menu button.active {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.4);
  font-weight: 600;
  border-radius: 20px;
}

.menu button:hover:not(.active) {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
}

/* ---- Topbar card ---- */
.topbar {
  display: block;
  text-align: left;
  margin-bottom: 24px;
}

.topbar-card {
  padding: 0 0 16px;
  border-bottom: 1px solid #f0f0f0;
}

.topbar-date {
  font-size: 0.82rem;
  margin-bottom: 2px;
}

.topbar-greeting {
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0;
  color: var(--text);
}

.topbar-stats {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.topbar-badge-kw {
  background: #EEF2FF !important;
  color: #4F46E5 !important;
  border: none !important;
  font-size: 0.7rem;
  font-weight: 400;
  padding: 2px 8px;
  border-radius: 20px;
}

.topbar-badge-role {
  background: #F0FDF4 !important;
  color: #16A34A !important;
  border: none !important;
  font-size: 0.7rem;
  font-weight: 400;
  padding: 2px 8px;
  border-radius: 20px;
}

/* ---- Hierarchy empty state ---- */
.hierarchy-empty {
  text-align: center;
  padding: 28px 24px;
  background: var(--panel);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: var(--muted);
}

.hierarchy-empty .bi-diagram-3 {
  font-size: 3rem;
  color: var(--accent);
  opacity: 0.5;
}

/* ---- Settings card: chevron toggle ---- */
.settings-card-header {
  cursor: pointer;
  border-radius: 12px;
  padding: 4px 8px;
  margin: -4px -8px;
  transition: background 0.18s;
}

.settings-card-header:hover {
  background: #f9fafb;
}

.settings-card:not(.is-collapsed) .settings-card-header {
  border-left: 3px solid #1a73e8;
  padding-left: 5px;
}

.settings-toggle {
  background: none !important;
  border: none !important;
  padding: 4px 8px !important;
  color: var(--muted);
  border-radius: 8px !important;
  line-height: 1;
}

.settings-toggle .bi-chevron-down {
  display: inline-block;
  transition: transform 0.22s ease;
  font-size: 1rem;
}

.settings-card:not(.is-collapsed) .settings-toggle .bi-chevron-down {
  transform: rotate(180deg);
}

/* ---- Settings card shadow + radius ---- */
.settings-card {
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06) !important;
  border-radius: 18px !important;
  overflow: hidden;
}

/* ---- Main content max-width ---- */
.main > .page,
.main > .topbar,
.main > section {
  max-width: 1200px;
}

/* Teamkalender-Seiten dürfen die volle verfügbare Breite nutzen */
.main > #pageTeamCalendar,
.main > #pageUserDashboard {
  max-width: none;
}

/* ---- Collapsible Sidebar ---- */
/* Width is driven by --sidebar-current-w CSS variable (set by JS) */

/* Narrower padding so icons don't feel cramped */
.sidebar.collapsed {
  padding: 24px 0;
}

/* Hide text labels — visibility:hidden guarantees zero text remnants */
.sidebar.collapsed .sidebar-label,
.sidebar.collapsed .menu button span {
  max-width: 0;
  opacity: 0;
  padding: 0;
  margin: 0;
  visibility: hidden;
  transition: max-width 0.2s ease, opacity 0.15s ease, visibility 0s linear 0.2s;
}

/* Center icons in collapsed menu buttons — gap:0 removes leftover space from hidden span */
.sidebar.collapsed .menu button {
  justify-content: center;
  align-items: center;
  padding: 10px 0;
  gap: 0;
}

.sidebar.collapsed .menu button i {
  margin-top: 0;
}

/* Center user area when collapsed */
.sidebar.collapsed .sidebar-user {
  justify-content: center;
  padding: 12px 8px;
}

/* Center logo in collapsed header */
.sidebar.collapsed .sidebar-header {
  justify-content: center;
  padding: 0 8px 24px;
}

/* Collapsed sidebar-menu: narrower side padding */
.sidebar.collapsed .sidebar-menu {
  padding: 0 4px;
}

/* Collapsed logout: icon only, centered */
.sidebar.collapsed .sidebar-logout {
  padding: 10px 8px;
  justify-content: center;
  gap: 0;
}

/* ── Notification Badge (on Dashboard menu button) ──────────────────────── */
.notification-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 9px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  margin-left: auto;
  flex-shrink: 0;
}

/* ── Notification Card (pageUserDashboard) ───────────────────────────────── */
.notif-card {
  margin-bottom: 1rem;
}

.notif-empty {
  padding: 0.5rem 0;
}

/* ── Individual notification item ────────────────────────────────────────── */
.notification-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border, #e5e7eb);
  cursor: pointer;
  border-radius: var(--radius, 6px);
  transition: background 0.15s;
}

.notification-item:last-child {
  border-bottom: none;
}

.notification-item:hover {
  background: var(--panel, #f9fafb);
}

.notification-item.unread {
  background: color-mix(in srgb, var(--accent) 8%, transparent);
}

.notification-item.unread:hover {
  background: color-mix(in srgb, var(--accent) 14%, transparent);
}

.notif-content {
  flex: 1;
  min-width: 0;
}

.notif-title {
  font-weight: 500;
  font-size: 0.875rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.notif-message {
  font-size: 0.8rem;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.notif-time {
  font-size: 0.75rem;
  margin-top: 2px;
}

.notif-delete {
  flex-shrink: 0;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted, #6b7280);
  font-size: 0.75rem;
  padding: 2px 6px;
  border-radius: var(--radius, 6px);
  line-height: 1;
  transition: background 0.15s, color 0.15s;
}

.notif-delete:hover {
  background: var(--panel, #f3f4f6);
  color: var(--text, #111827);
}

/* ═══════════════════════════════
   REPORTS
═══════════════════════════════ */

.report-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
  border-bottom: 2px solid var(--border, #e5e7eb);
  padding-bottom: 0;
}

.report-tab {
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  padding: 8px 16px;
  font-size: 0.9rem;
  cursor: pointer;
  color: var(--muted, #6b7280);
  font-weight: 500;
  transition: color 0.15s, border-color 0.15s;
}

.report-tab.active {
  color: var(--accent, #2563eb);
  border-bottom-color: var(--accent, #2563eb);
}

.report-tab:hover:not(.active) {
  color: var(--text, #111827);
}

.report-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.report-period {
  font-weight: 600;
  font-size: 1rem;
  min-width: 160px;
  text-align: center;
}

.report-view-toggle {
  margin-left: auto;
  font-size: 0.82rem;
}

.report-summary-card {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.report-stat {
  background: var(--panel, #f3f4f6);
  border-radius: var(--radius, 6px);
  padding: 14px 20px;
  min-width: 110px;
  flex: 1;
}

.report-stat-label {
  font-size: 0.75rem;
  color: var(--muted, #6b7280);
  margin-bottom: 4px;
}

.report-stat-value {
  font-size: 1.35rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.report-stat.diff-positive .report-stat-value { color: #16a34a; }
.report-stat.diff-negative .report-stat-value { color: #dc2626; }

.report-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.report-table-wrap {
  overflow-x: auto;
  margin-bottom: 16px;
}

.report-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.report-table th,
.report-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--border, #e5e7eb);
  text-align: left;
}

.report-table th {
  font-weight: 600;
  color: var(--muted, #6b7280);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.report-table .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.report-table tr:last-child td { border-bottom: none; }

.report-table tbody tr:hover {
  background: var(--panel, #f3f4f6);
}

.report-weekend td { color: var(--muted, #6b7280); }
.report-holiday td { color: var(--accent, #2563eb); }
.report-muted-row td { color: var(--muted, #6b7280); }

.report-total-row td {
  border-top: 2px solid var(--border, #e5e7eb);
  border-bottom: none;
}

.diff-positive { color: #16a34a; }
.diff-negative { color: #dc2626; }

.sortable-th {
  cursor: pointer;
  user-select: none;
}

.sortable-th:hover { color: var(--text, #111827); }

.report-bar-cell {
  width: 120px;
  vertical-align: middle;
}

.report-bar {
  height: 8px;
  background: var(--accent, #2563eb);
  border-radius: 4px;
  min-width: 2px;
  transition: width 0.3s ease;
}

/* Vacation progress bar */
.vacation-progress-card {
  background: var(--panel, #f3f4f6);
  border-radius: var(--radius, 6px);
  padding: 16px 20px;
  margin-bottom: 16px;
}

.vacation-progress-label {
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.report-bar-container {
  position: relative;
  height: 12px;
  background: var(--border, #e5e7eb);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 10px;
}

.report-bar-taken {
  position: absolute;
  top: 0; left: 0; height: 100%;
  background: var(--accent, #2563eb);
  border-radius: 6px 0 0 6px;
}

.report-bar-planned {
  position: absolute;
  top: 0; height: 100%;
  background: color-mix(in srgb, var(--accent, #2563eb) 40%, transparent);
}

.vacation-stats {
  font-size: 0.85rem;
  color: var(--muted, #6b7280);
}

.vacation-stats strong { color: var(--text, #111827); }

.report-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 8px;
}

.report-loading {
  padding: 40px 0;
  text-align: center;
}

/* ============================================================
   Design Polish
   ============================================================ */

/* Custom select: hide native arrow, show custom chevron */
select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 34px;
}

/* File upload button */
.file-upload-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px dashed var(--accent);
  transition: background 0.15s ease, color 0.15s ease, border-style 0.15s ease;
  user-select: none;
}

.file-upload-btn:hover {
  background: var(--accent);
  color: #fff;
  border-style: solid;
}

.file-upload-btn input[type="file"] {
  display: none;
}

/* Danger button */
button.danger {
  background: #fee2e2;
  color: #dc2626;
  border: 1px solid #fca5a5;
}

button.danger:hover {
  background: #dc2626;
  color: #fff;
  border-color: #dc2626;
}

/* Stat cards for admin dashboard */
.stat-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--panel);
  border-radius: var(--radius);
  padding: 20px 16px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.07);
  text-align: center;
  transition: box-shadow 0.2s ease, transform 0.15s ease;
}

.stat-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.11);
  transform: translateY(-2px);
}

.stat-card-icon {
  font-size: 1.75rem;
  line-height: 1;
  margin-bottom: 8px;
  opacity: 0.85;
}

.stat-card-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}

.stat-card-label {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 4px;
  letter-spacing: 0.02em;
}

/* Calendar view toggle: pill / segmented control */
.view-toggle {
  display: inline-flex;
  background: #f1f3f5;
  border-radius: 10px;
  padding: 3px;
  gap: 2px;
}

.view-toggle button {
  border-radius: 8px;
  padding: 6px 16px;
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.15s ease, color 0.15s ease;
}

.view-toggle button:hover {
  background: rgba(0, 0, 0, 0.06);
  color: var(--text);
}

.view-toggle button.active {
  background: #fff;
  color: var(--accent);
  font-weight: 600;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

/* Empty state */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  text-align: center;
  gap: 10px;
}

.empty-state-icon {
  font-size: 2.5rem;
  opacity: 0.35;
  line-height: 1;
}

.empty-state-text {
  font-size: 0.95rem;
  color: var(--muted);
}

/* Weekly hours progress bar */
.hours-bar {
  height: 6px;
  background: #e5e7eb;
  border-radius: 3px;
  overflow: hidden;
  margin: 8px 0 4px;
}

.hours-bar-fill {
  height: 100%;
  background: var(--accent-2);
  border-radius: 3px;
  transition: width 0.4s ease;
}

.hours-bar-fill.over {
  background: #dc2626;
}

/* Sidebar active item — left border accent */
.menu button.active {
  border-left-width: 3px;
  border-left-color: rgba(255, 255, 255, 0.7);
  padding-left: 9px;
}

/* Page fade-in */
@keyframes fadeInPage {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.page:not([hidden]) {
  animation: fadeInPage 0.2s ease forwards;
}

/* Card subtle transition */
.card {
  transition: box-shadow 0.2s ease;
}

/* Team card hover */
.team-card {
  transition: box-shadow 0.2s ease, transform 0.15s ease;
}

.team-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

/* Page header subtle divider */
.page-header {
  border-bottom: 1px solid #f0f2f5;
  padding-bottom: 16px;
  margin-bottom: 24px;
}

/* Notification empty state */
.notif-empty {
  padding: 32px 16px;
  text-align: center;
}

/* Read-only field display (z.B. Team bei Teamleiter-Modal) */
.field-static-value {
  display: block;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background: #f5f5f5;
  color: var(--text);
  font-size: 0.9rem;
  cursor: default;
}

