/* Axon Rota Planner — isolated from the legacy workforce stylesheet. */
.rota-app {
  --rota-ink: #14213d;
  --rota-muted: #64748b;
  --rota-line: #e2e8f0;
  --rota-soft: #f8fafc;
  --rota-navy: #172554;
  --rota-blue: #2563eb;
  --rota-indigo: #4f46e5;
  min-height: 100%;
  color: var(--rota-ink);
}

.rota-loading,
.rota-empty {
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--rota-muted);
  text-align: center;
}

.rota-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid #dbeafe;
  border-top-color: var(--rota-blue);
  border-radius: 50%;
  animation: rotaSpin .75s linear infinite;
}

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

.rota-shell {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.rota-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(122deg, #111c3d 0%, #1e3a8a 58%, #2563eb 100%);
  box-shadow: 0 16px 38px rgba(30, 58, 138, .18);
}

.rota-hero::after {
  content: '';
  position: absolute;
  width: 230px;
  height: 230px;
  right: -70px;
  top: -120px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
}

.rota-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #bfdbfe;
}

.rota-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 5px rgba(74,222,128,.14);
}

.rota-hero h2 { margin: 0; font-size: 25px; line-height: 1.2; color: #fff; }
.rota-hero p { margin: 7px 0 0; color: #dbeafe; max-width: 640px; font-size: 13px; }
.rota-hero-actions { position: relative; z-index: 1; display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }

.rota-btn {
  border: 1px solid transparent;
  border-radius: 9px;
  min-height: 36px;
  padding: 8px 13px;
  font: inherit;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.rota-btn:hover { transform: translateY(-1px); }
.rota-btn:disabled { cursor: not-allowed; opacity: .55; transform: none; }
.rota-btn-primary { color: #1e3a8a; background: #fff; box-shadow: 0 7px 20px rgba(15,23,42,.16); }
.rota-btn-ghost { color: #fff; border-color: rgba(255,255,255,.3); background: rgba(255,255,255,.1); }
.rota-btn-blue { color: #fff; background: var(--rota-blue); box-shadow: 0 8px 18px rgba(37,99,235,.22); }
.rota-btn-soft { color: #334155; border-color: var(--rota-line); background: #fff; }
.rota-btn-danger { color: #b91c1c; border-color: #fecaca; background: #fff7f7; }

.rota-tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding: 5px;
  border: 1px solid var(--rota-line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15,23,42,.04);
}

.rota-tab {
  position: relative;
  flex: 0 0 auto;
  border: 0;
  border-radius: 8px;
  padding: 9px 14px;
  background: transparent;
  color: var(--rota-muted);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.rota-tab.active { color: #1d4ed8; background: #eff6ff; }
.rota-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 19px;
  height: 19px;
  margin-left: 6px;
  padding: 0 5px;
  border-radius: 99px;
  color: #fff;
  background: #ef4444;
  font-size: 10px;
}

.rota-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 15px;
  border: 1px solid var(--rota-line);
  border-radius: 13px;
  background: #fff;
}

.rota-toolbar-group { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rota-week-label { min-width: 205px; text-align: center; font-size: 14px; font-weight: 800; color: var(--rota-ink); }
.rota-icon-btn { width: 35px; min-width: 35px; padding: 0; font-size: 17px; }
.rota-select,
.rota-input {
  min-height: 36px;
  width: auto;
  min-width: 150px;
  padding: 7px 31px 7px 10px;
  border: 1px solid var(--rota-line);
  border-radius: 9px;
  background-color: #fff;
  color: #334155;
  font: inherit;
  font-size: 12px;
}

.rota-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.rota-kpi {
  position: relative;
  overflow: hidden;
  min-height: 96px;
  padding: 16px;
  border: 1px solid var(--rota-line);
  border-radius: 14px;
  background: #fff;
}
.rota-kpi-label { color: var(--rota-muted); font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.rota-kpi-value { margin-top: 7px; color: var(--rota-ink); font-size: 25px; font-weight: 850; line-height: 1; }
.rota-kpi-note { margin-top: 8px; color: var(--rota-muted); font-size: 11px; }
.rota-kpi.accent { border-color: #bfdbfe; background: linear-gradient(145deg, #fff, #eff6ff); }
.rota-kpi.warn { border-color: #fed7aa; background: linear-gradient(145deg, #fff, #fff7ed); }
.rota-kpi.good { border-color: #bbf7d0; background: linear-gradient(145deg, #fff, #f0fdf4); }

.rota-planner { display: grid; grid-template-columns: 245px minmax(740px, 1fr); gap: 12px; align-items: start; }
.rota-panel {
  border: 1px solid var(--rota-line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 3px 12px rgba(15,23,42,.035);
}
.rota-panel-head { padding: 15px; border-bottom: 1px solid var(--rota-line); }
.rota-panel-title { color: var(--rota-ink); font-size: 13px; font-weight: 800; }
.rota-panel-sub { margin-top: 3px; color: var(--rota-muted); font-size: 11px; }
.rota-pool-search { margin-top: 11px; width: 100%; min-width: 0; }
.rota-pool-list { max-height: 680px; overflow-y: auto; padding: 9px; }
.rota-person {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 7px;
  padding: 9px;
  border: 1px solid var(--rota-line);
  border-radius: 10px;
  background: #fff;
  cursor: grab;
  user-select: none;
}
.rota-person:hover { border-color: #93c5fd; box-shadow: 0 5px 14px rgba(37,99,235,.08); }
.rota-person.dragging { opacity: .45; }
.rota-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 31px;
  height: 31px;
  flex: 0 0 31px;
  border-radius: 9px;
  color: #1e40af;
  background: #dbeafe;
  font-size: 11px;
  font-weight: 850;
}
.rota-person-meta { min-width: 0; flex: 1; }
.rota-person-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #1e293b; font-size: 12px; font-weight: 750; }
.rota-person-role { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--rota-muted); font-size: 10px; }
.rota-person-state { width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: #22c55e; }
.rota-person-state.busy { background: #f59e0b; }

.rota-board-wrap { overflow: auto; border-radius: 14px; }
.rota-board { min-width: 980px; }
.rota-board-header,
.rota-lane { display: grid; grid-template-columns: 150px repeat(7, minmax(118px, 1fr)); }
.rota-board-header { position: sticky; top: 0; z-index: 4; background: #fff; border-bottom: 1px solid var(--rota-line); }
.rota-corner { padding: 15px 13px; color: var(--rota-muted); font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.rota-day {
  padding: 11px 6px;
  border-left: 1px solid var(--rota-line);
  text-align: center;
}
.rota-day.today { background: #eff6ff; }
.rota-day-name { color: var(--rota-muted); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.rota-day-date { margin-top: 2px; color: var(--rota-ink); font-size: 16px; font-weight: 850; }
.rota-day.today .rota-day-date { color: var(--rota-blue); }
.rota-lane { border-bottom: 1px solid var(--rota-line); }
.rota-lane:last-child { border-bottom: 0; }
.rota-lane-label { padding: 12px; background: #fbfdff; }
.rota-dept-name { display: flex; align-items: center; gap: 7px; color: #1e293b; font-size: 12px; font-weight: 800; }
.rota-dept-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--dept-color, #2563eb); }
.rota-shift-time { margin-top: 5px; color: var(--rota-muted); font-size: 10px; line-height: 1.35; }
.rota-shift-supervisor { margin-top: 6px; color: #334155; font-size: 9px; font-weight: 750; line-height: 1.3; }
.rota-cell {
  min-height: 116px;
  padding: 7px;
  border-left: 1px solid var(--rota-line);
  background: #fff;
  transition: background .12s ease, box-shadow .12s ease;
}
.rota-cell.weekend { background: #fbfcfe; }
.rota-cell.drag-over { background: #eff6ff; box-shadow: inset 0 0 0 2px #60a5fa; }
.rota-cell.is-under { background: #fffaf1; }
.rota-cell.is-over { background: #fff5f5; }
.rota-cell-head { display: flex; align-items: center; justify-content: space-between; gap: 4px; margin-bottom: 5px; }
.rota-cell-supervisor { display:flex; align-items:center; justify-content:space-between; gap:4px; width:100%; margin:2px 0 5px; padding:3px 5px; overflow:hidden; border:0; border-radius:6px; color:#9a3412; background:#fff7ed; font-size:9px; font-weight:750; text-align:left; text-overflow:ellipsis; white-space:nowrap; cursor:pointer; }
.rota-cell-supervisor span { color:#c2410c; font-size:8px; text-decoration:underline; }
.rota-supervisor-add { width:100%; margin:2px 0 5px; padding:3px 5px; border:1px dashed #fdba74; border-radius:6px; color:#c2410c; background:#fffaf1; font-size:9px; font-weight:750; cursor:pointer; }
.rota-cell-manager { display:flex; align-items:center; justify-content:space-between; gap:4px; width:100%; margin:2px 0 4px; padding:3px 5px; overflow:hidden; border:0; border-radius:6px; color:#5b21b6; background:#f5f3ff; font-size:9px; font-weight:800; text-align:left; text-overflow:ellipsis; white-space:nowrap; cursor:pointer; }
.rota-cell-manager span { color:#6d28d9; font-size:8px; text-decoration:underline; }
.rota-manager-add { width:100%; margin:2px 0 4px; padding:3px 5px; border:1px dashed #c4b5fd; border-radius:6px; color:#6d28d9; background:#faf5ff; font-size:9px; font-weight:800; cursor:pointer; }
.rota-coverage { color: var(--rota-muted); font-size: 9px; font-weight: 800; }
.rota-coverage.under { color: #c2410c; }
.rota-coverage.over { color: #b91c1c; }
.rota-add { border: 0; background: transparent; color: #94a3b8; font-size: 17px; line-height: 1; cursor: pointer; }
.rota-add:hover { color: var(--rota-blue); }
.rota-assignment {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 5px;
  padding: 7px 18px 7px 7px;
  border-left: 3px solid var(--shift-color, #2563eb);
  border-radius: 7px;
  background: color-mix(in srgb, var(--shift-color, #2563eb) 10%, white);
  cursor: grab;
}
.rota-assignment.is-leave { --shift-color: #db2777; }
.rota-assignment.is-training { --shift-color: #7c3aed; }
.rota-assignment-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #26334a; font-size: 10px; font-weight: 780; }
.rota-assignment-time { color: var(--rota-muted); font-size: 9px; }
.rota-assignment-remove { position: absolute; right: 4px; top: 4px; border: 0; background: transparent; color: #94a3b8; font-size: 12px; cursor: pointer; }
.rota-assignment-actions { position:absolute; right:3px; top:3px; display:flex; gap:1px; padding-left:4px; background:linear-gradient(90deg,transparent,#fff 24%); }
.rota-assignment-actions button { width:19px; height:19px; padding:0; border:0; border-radius:5px; color:#64748b; background:#fff; cursor:pointer; font-size:11px; line-height:19px; }
.rota-assignment-actions button:hover { color:#1d4ed8; background:#dbeafe; }
.rota-history-lock { color:#94a3b8; font-size:10px; }
.rota-cell-supervisor.is-readonly { cursor:default; opacity:.78; }
.rota-cell-manager.is-readonly { cursor:default; opacity:.78; }
.rota-open-slot { padding: 7px; border: 1px dashed #fdba74; border-radius: 7px; color: #c2410c; background: #fff7ed; font-size: 9px; font-weight: 750; text-align: center; }

.rota-month { overflow: hidden; border: 1px solid var(--rota-line); border-radius: 14px; background: #fff; }
.rota-month-head,
.rota-month-grid { display: grid; grid-template-columns: repeat(7, minmax(105px, 1fr)); min-width: 820px; }
.rota-month-head { color: var(--rota-muted); background: var(--rota-soft); font-size: 10px; font-weight: 850; text-align: center; text-transform: uppercase; letter-spacing: .05em; }
.rota-month-head > div { padding: 10px; border-right: 1px solid var(--rota-line); }
.rota-month-day {
  min-height: 118px;
  padding: 8px;
  border: 0;
  border-top: 1px solid var(--rota-line);
  border-right: 1px solid var(--rota-line);
  background: #fff;
  color: var(--rota-ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.rota-month-day:hover { background: #f8fbff; }
.rota-month-day.outside { color: #94a3b8; background: #fafafa; }
.rota-month-day.today { box-shadow: inset 0 0 0 2px #60a5fa; }
.rota-month-date { display: inline-flex; align-items: center; justify-content: center; width: 25px; height: 25px; border-radius: 8px; font-size: 11px; font-weight: 850; }
.rota-month-day.today .rota-month-date { color: #fff; background: var(--rota-blue); }
.rota-month-items { display: flex; flex-direction: column; gap: 4px; margin-top: 5px; }
.rota-month-chip { overflow: hidden; padding: 4px 6px; border-left: 3px solid var(--shift-color, #2563eb); border-radius: 5px; background: color-mix(in srgb, var(--shift-color, #2563eb) 9%, white); color: #334155; font-size: 9px; font-weight: 720; text-overflow: ellipsis; white-space: nowrap; }
.rota-month-more { color: var(--rota-muted); font-size: 9px; font-weight: 750; }

.rota-banner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid #fed7aa;
  border-radius: 11px;
  color: #9a3412;
  background: #fff7ed;
  font-size: 12px;
}
.rota-banner.info { color: #1e40af; border-color: #bfdbfe; background: #eff6ff; }
.rota-banner.success { color: #166534; border-color: #bbf7d0; background: #f0fdf4; }

.rota-table-card { overflow: hidden; border: 1px solid var(--rota-line); border-radius: 14px; background: #fff; }
.rota-table-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--rota-line); }
.rota-table { width: 100%; border-collapse: collapse; }
.rota-table th { padding: 11px 13px; color: var(--rota-muted); background: var(--rota-soft); font-size: 10px; font-weight: 800; text-align: left; text-transform: uppercase; letter-spacing: .04em; }
.rota-table td { padding: 12px 13px; border-top: 1px solid var(--rota-line); color: #334155; font-size: 12px; vertical-align: middle; }
.rota-badge { display: inline-flex; align-items: center; padding: 4px 8px; border-radius: 999px; font-size: 10px; font-weight: 800; text-transform: capitalize; }
.rota-badge.pending { color: #9a3412; background: #ffedd5; }
.rota-badge.approved,
.rota-badge.published { color: #166534; background: #dcfce7; }
.rota-badge.rejected { color: #991b1b; background: #fee2e2; }
.rota-badge.draft { color: #334155; background: #e2e8f0; }
.rota-badge.archived { color: #5b21b6; background: #ede9fe; }
.rota-row-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.rota-summary-table td { line-height: 1.45; }
.rota-summary-number { white-space: nowrap; font-variant-numeric: tabular-nums; font-weight: 750; }
.rota-summary-number.under { color:#b91c1c; }
.rota-summary-number.over { color:#15803d; }
.rota-summary-role { display:inline-flex; padding:4px 8px; border-radius:999px; color:#1d4ed8; background:#dbeafe; font-size:10px; font-weight:800; }

.rota-config-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.rota-config-card { padding: 17px; border: 1px solid var(--rota-line); border-radius: 14px; background: #fff; }
.rota-config-card h3 { margin: 0 0 3px; color: var(--rota-ink); font-size: 14px; }
.rota-config-card p { margin: 0 0 14px; color: var(--rota-muted); font-size: 11px; }
.rota-config-list { display: flex; flex-direction: column; gap: 7px; }
.rota-config-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 10px; border-radius: 9px; background: var(--rota-soft); }
.rota-config-name { display: flex; align-items: center; gap: 8px; min-width: 0; color: #334155; font-size: 12px; font-weight: 750; }
.rota-config-meta { color: var(--rota-muted); font-size: 10px; }

.rota-modal-backdrop {
  --rota-ink: #14213d;
  --rota-muted: #64748b;
  --rota-line: #e2e8f0;
  --rota-soft: #f8fafc;
  --rota-blue: #2563eb;
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(15,23,42,.58);
  backdrop-filter: blur(3px);
}
.rota-modal { width: min(560px, 100%); max-height: calc(100vh - 36px); overflow-y: auto; border-radius: 16px; background: #fff; box-shadow: 0 24px 70px rgba(15,23,42,.32); }
.rota-modal-head { display: flex; justify-content: space-between; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--rota-line); }
.rota-modal-head h3 { margin: 0; color: var(--rota-ink); font-size: 17px; }
.rota-modal-body { padding: 20px; }
.rota-modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 20px; border-top: 1px solid var(--rota-line); background: var(--rota-soft); }
.rota-modal-foot .rota-btn-blue { color:#fff; background:#2563eb; }
.rota-close { border: 0; background: transparent; color: #64748b; font-size: 22px; cursor: pointer; }
.rota-field { margin-bottom: 14px; }
.rota-field label { color: #475569; font-size: 11px; font-weight: 800; }
.rota-field input,
.rota-field select,
.rota-field textarea { background: #fff; }
.rota-field > span { display:block; margin-bottom:6px; color:#475569; font-size:11px; font-weight:800; }
.rota-field textarea { width:100%; min-height:82px; resize:vertical; }
.rota-discard-warning { margin-bottom:16px; padding:14px; border:1px solid #fecaca; border-radius:11px; color:#7f1d1d; background:#fff7f7; }
.rota-discard-warning p { margin:5px 0 10px; color:#991b1b; font-size:12px; }
.rota-discard-warning ul { margin:0; padding-left:19px; color:#475569; font-size:11px; line-height:1.6; }
.rota-archive-meta { display:flex; justify-content:space-between; gap:12px; margin-bottom:14px; color:#1e293b; }
.rota-archive-meta span { color:#64748b; font-size:11px; }
.rota-archive-table { max-width:100%; overflow-x:auto; }
.rota-archive-table .rota-table { min-width:720px; }
.rota-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.rota-help { color: var(--rota-muted); font-size: 10px; margin-top: 5px; }
.rota-weekday-options { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.rota-weekday-options label { display: flex; align-items: center; justify-content: center; gap: 4px; min-height: 34px; border: 1px solid var(--rota-line); border-radius: 8px; color: #334155; background: #f8fafc; font-size: 11px; font-weight: 700; cursor: pointer; }
.rota-weekday-options input { accent-color: var(--rota-blue); }

.ep-rota-card { border-color: #bfdbfe; background: linear-gradient(145deg, #fff, #f8fbff); }
.ep-rota-title { justify-content: space-between; }
.ep-rota-schedule { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.ep-rota-day { flex: 0 0 118px; min-height: 112px; padding: 10px; border: 1px solid var(--rota-line); border-radius: 10px; background: #fff; }
.ep-rota-day.today { border-color: #60a5fa; box-shadow: inset 0 0 0 1px #60a5fa; }
.ep-rota-date { color: var(--rota-muted); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.ep-rota-shift { margin-top: 8px; color: #1e293b; font-size: 11px; font-weight: 800; }
.ep-rota-meta { margin-top: 3px; color: var(--rota-muted); font-size: 9px; }
.ep-rota-off { margin-top: 17px; color: #94a3b8; font-size: 11px; }
.ep-rota-summary { margin-top:14px; padding:13px; border:1px solid #bfdbfe; border-radius:11px; background:#f8fbff; }
.ep-rota-summary-head { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:10px; }
.ep-rota-summary-head strong { color:#1e293b; font-size:12px; }
.ep-rota-summary-head select { min-height:32px; padding:5px 9px; border:1px solid #cbd5e1; border-radius:8px; background:#fff; color:#334155; font-size:11px; }
.ep-rota-summary-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:7px; }
.ep-rota-summary-stat { padding:9px; border-radius:9px; background:#fff; }
.ep-rota-summary-stat small { display:block; color:#64748b; font-size:9px; font-weight:750; text-transform:uppercase; }
.ep-rota-summary-stat b { display:block; margin-top:4px; color:#1e293b; font-size:14px; }
.ep-rota-summary-stat.under b { color:#b91c1c; }
.ep-rota-summary-stat.over b { color:#15803d; }
.ep-rota-summary-detail { margin-top:9px; color:#475569; font-size:10px; line-height:1.45; }
.ep-rota-history .ep-rota-summary-head span { color:#64748b; font-size:10px; font-weight:700; }
.ep-rota-history-list { display:grid; gap:7px; }
.ep-rota-history-row { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:9px; border:1px solid #dbeafe; border-radius:9px; background:#fff; }
.ep-rota-history-row strong { display:block; color:#1e293b; font-size:11px; }
.ep-rota-history-row small { display:block; margin-top:3px; color:#64748b; font-size:9px; }
.ep-rota-history-row .rota-btn { min-height:29px; padding:5px 8px; font-size:9px; white-space:nowrap; }

@media (max-width: 1200px) {
  .rota-planner { grid-template-columns: 210px minmax(740px, 1fr); }
  .rota-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .rota-hero { flex-direction: column; }
  .rota-hero-actions { justify-content: flex-start; }
  .rota-toolbar { align-items: flex-start; flex-direction: column; }
  .rota-planner { grid-template-columns: 1fr; }
  .rota-pool-list { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); max-height: 270px; }
  .rota-config-grid { grid-template-columns: 1fr; }
  .rota-month { overflow-x: auto; }
}

@media (max-width: 600px) {
  .rota-hero { padding: 18px; border-radius: 14px; }
  .rota-hero h2 { font-size: 21px; }
  .rota-kpis { grid-template-columns: 1fr 1fr; }
  .rota-kpi { min-height: 86px; padding: 13px; }
  .rota-kpi-value { font-size: 21px; }
  .rota-pool-list { grid-template-columns: 1fr; }
  .rota-field-row { grid-template-columns: 1fr; }
  .rota-weekday-options { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ep-rota-summary-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .rota-table-card { overflow-x: auto; }
  .rota-table { min-width: 700px; }
}

@media (prefers-reduced-motion: reduce) {
  .rota-spinner { animation-duration: 2s; }
  .rota-btn { transition: none; }
}
