:root {
  color-scheme: light;
  --bg: #f7f8fb;
  --surface: #ffffff;
  --surface-soft: #eef2f7;
  --text: #111827;
  --muted: #667085;
  --line: #d8dee8;
  --primary: #111827;
  --primary-soft: #dbeafe;
  --action: #1f7a3f;
  --action-dark: #166534;
  --action-soft: #dcfce7;
  --blue: #1d64d8;
  --green: #1f7a3f;
  --yellow: #9a6700;
  --red: #c1262d;
  --shadow: 0 12px 32px rgba(17, 24, 39, 0.08);
  --dashboard-section-gap: 16px;
  --dashboard-panel-padding: 16px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  min-height: 100vh;
}

.sidebar {
  display: none;
}

body.is-menu-open .sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: min(320px, calc(100vw - 48px));
  padding: 20px;
  background: #eef2f7;
  border-right: 1px solid var(--line);
  box-shadow: 22px 0 42px rgba(17, 24, 39, 0.2);
}

body.is-menu-open .sidebar::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: rgba(17, 24, 39, 0.38);
}

body.is-menu-open .brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

body.is-menu-open .brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--primary);
  color: white;
  font-weight: 900;
}

body.is-menu-open .brand span,
body.is-menu-open .sidebar-note span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
}

body.is-menu-open .nav-list {
  gap: 6px;
}

body.is-menu-open .nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  padding: 0 12px;
  font-weight: 800;
  text-align: left;
}

body.is-menu-open .nav-item.active {
  background: white;
  color: var(--blue);
}

body.is-menu-open .nav-item[data-badge]::after {
  content: attr(data-badge);
  margin-left: auto;
  display: grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--red);
  color: white;
  padding: 0 7px;
  font-size: 12px;
  font-weight: 900;
}

body.is-menu-open .sidebar-note {
  margin-top: auto;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.logout-button {
  display: none;
}

body.is-logged-in .logout-button {
  display: block;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--red);
  padding: 10px 14px;
  font-weight: 900;
  text-align: center;
}

.admin-only,
.worker-only {
  display: none;
}

body.is-logged-in.is-admin .admin-only,
body.is-logged-in:not(.is-admin) .worker-only {
  display: grid;
}

body.is-logged-in.is-admin .worker-only,
body.is-logged-in:not(.is-admin) .admin-only,
body:not(.is-logged-in) .admin-only,
body:not(.is-logged-in) .worker-only {
  display: none !important;
}

body:not(.is-logged-in) .topbar,
body:not(.is-logged-in) .bottom-nav {
  display: none;
}

.main {
  min-height: 100vh;
  padding: 0 16px 88px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  margin: 0 -16px 16px;
  padding: 12px 16px;
  background: rgba(247, 248, 251, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.topbar h1,
.login-panel h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: 0;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.icon-button,
.profile-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 44px;
  min-height: 44px;
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
}

.profile-button span {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  font-size: 12px;
  font-weight: 800;
}

.profile-button strong {
  display: none;
  max-width: 160px;
  overflow: hidden;
  font-size: 14px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.login-panel,
.panel,
.shift-card,
.request-card,
.employee-card,
.form-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.login-panel {
  display: grid;
  place-items: start center;
  padding: 18px 0 32px;
}

.login-card {
  display: grid;
  gap: 16px;
  width: min(380px, 100%);
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.login-mark {
  display: grid;
  place-items: center;
  justify-self: center;
  width: 56px;
  height: 56px;
  border-radius: 8px;
  background: var(--primary);
  color: white;
  font-size: 24px;
  font-weight: 900;
  transform: rotate(4deg);
}

.login-heading {
  text-align: center;
}

.login-heading p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.login-role-switch {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  padding: 4px;
  border-radius: 8px;
  background: #f1eef2;
}

.login-role-switch button {
  min-height: 38px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #475569;
  font-size: 13px;
  font-weight: 900;
}

.login-role-switch button[aria-pressed="true"] {
  background: white;
  color: var(--text);
  box-shadow: 0 2px 8px rgba(17, 24, 39, 0.08);
}

.link-button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-decoration: underline;
}

.login-demo-help {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #f8fafc;
  color: var(--muted);
  font-size: 12px;
}

.login-demo-help strong {
  color: var(--text);
}

.primary-button,
.secondary-button,
.danger-button,
.danger-solid-button,
.soft-button,
.tiny-button {
  min-height: 44px;
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 10px 14px;
  font-weight: 800;
}

.primary-button {
  background: var(--action);
  color: white;
}

.primary-button:hover {
  background: var(--action-dark);
}

.secondary-button {
  background: white;
  border-color: var(--line);
  color: var(--text);
}

.danger-button {
  background: #fff2f2;
  border-color: #fecaca;
  color: var(--red);
}

.danger-solid-button {
  background: var(--red);
  color: white;
}

.soft-button {
  background: var(--primary-soft);
  color: var(--blue);
}

.soft-button.is-locked {
  cursor: not-allowed;
  opacity: 0.72;
  border-color: #bfdbfe;
}

.compact-button {
  min-height: 38px;
  padding: 8px 12px;
}

.tiny-button {
  min-height: 32px;
  background: white;
  border-color: var(--line);
  color: #475569;
  padding: 6px 8px;
  font-size: 12px;
  white-space: nowrap;
}

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

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

.segmented {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.segmented button {
  min-height: 36px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  padding: 8px 10px;
  font-weight: 800;
}

.segmented button[aria-pressed="true"] {
  background: var(--action);
  color: white;
}

.shift-filter-toolbar {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.stats-grid,
.employee-grid,
.employee-table,
.worker-summary {
  display: grid;
  gap: 12px;
}

.worker-summary {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.summary-item {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.summary-item strong {
  display: block;
  color: var(--text);
  font-size: 26px;
  line-height: 1;
}

.summary-item span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.fixed-days-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
  border: 1px solid #bbf7d0;
  border-left: 6px solid var(--green);
  border-radius: 8px;
  background: #f0fdf4;
}

.fixed-days-panel h2,
.fixed-days-panel p {
  margin: 0;
}

.fixed-days-panel .chip-row {
  justify-content: flex-end;
}

.fixed-day-overview {
  display: grid;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.fixed-day-card {
  border-color: #bbf7d0;
  background: #f0fdf4;
}

.next-shift-panel {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid #bfdbfe;
  border-left: 6px solid var(--blue);
  border-radius: 8px;
  background: #eff6ff;
  box-shadow: var(--shadow);
}

.next-shift-panel h2,
.next-shift-panel h3,
.next-shift-panel p {
  margin: 0;
}

.next-shift-panel h2 {
  font-size: 24px;
}

.next-shift-panel strong {
  display: block;
  margin-top: 4px;
  font-size: 28px;
  line-height: 1;
}

.next-shift-panel h3 {
  font-size: 20px;
}

.next-shift-panel p {
  margin-top: 6px;
  color: #375985;
  font-weight: 800;
}

.panel {
  padding: 16px;
}

.panel strong {
  display: block;
  font-size: 28px;
  line-height: 1;
}

.panel span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-weight: 700;
}

.dashboard-stats .stat-card {
  display: grid;
  gap: 8px;
  min-height: 112px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.stat-card span {
  margin: 0;
  font-size: 13px;
}

.stat-card strong {
  font-size: 28px;
}

.stat-card em {
  width: max-content;
  border-radius: 999px;
  background: #eff6ff;
  color: var(--blue);
  padding: 4px 8px;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

.stat-card.danger-stat {
  border-color: #fecaca;
  background: #fff7f7;
}

.stat-card.danger-stat em {
  background: #fee2e2;
  color: #b91c1c;
}

.stat-card.calm-stat em {
  background: #dcfce7;
  color: #166534;
}

.dashboard-main-grid {
  display: grid;
  gap: var(--dashboard-section-gap);
}

.dashboard-program-stack {
  display: grid;
  gap: var(--dashboard-section-gap);
}

.dashboard-side-stack {
  display: grid;
  gap: var(--dashboard-section-gap);
  align-content: start;
}

.dashboard-main-grid + .week-plan,
.week-plan + .payroll-panel,
.payroll-panel + .message-compose-panel,
.message-compose-panel + .request-list {
  margin-top: var(--dashboard-section-gap);
}

.today-program,
.today-events {
  display: grid;
  gap: 14px;
  padding: var(--dashboard-panel-padding);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.today-shift-list,
.event-list {
  display: grid;
  gap: 10px;
}

.event-list.show-all-events {
  max-height: 620px;
  overflow: auto;
  padding-right: 4px;
}

.today-shift-card {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.today-shift-card.is-sick {
  border-left: 5px solid var(--red);
  background: #fff7f7;
}

.today-shift-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.today-shift-card h3,
.today-shift-card p {
  margin: 0;
}

.today-shift-card span {
  color: var(--muted);
  font-weight: 800;
}

.today-alert {
  color: #b91c1c;
  font-size: 13px;
  font-weight: 900;
}

.today-swap-note {
  width: max-content;
  max-width: 100%;
  padding: 5px 9px;
  border: 1px solid #fde68a;
  border-radius: 999px;
  background: #fffbeb;
  color: #92400e;
  font-size: 13px;
  font-weight: 900;
}

.event-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.event-dot {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #eff6ff;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
}

.event-dot.danger-chip {
  background: #fee2e2;
  color: #b91c1c;
}

.event-dot.warning-chip {
  background: #fef3c7;
  color: #92400e;
}

.event-item strong,
.event-item span,
.event-item p {
  display: block;
}

.event-item p {
  margin: 3px 0;
  color: var(--text);
  line-height: 1.35;
}

.event-item span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

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

.shift-list,
.request-list,
.request-board {
  display: grid;
  gap: 12px;
}

.show-more-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 8px 0 2px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.shift-card,
.request-card {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.sick-alert-panel {
  display: grid;
  gap: 10px;
  padding: var(--dashboard-panel-padding);
  border: 1px solid #fecaca;
  border-left: 6px solid var(--red);
  border-radius: 8px;
  background: #fff7f7;
}

.sick-alert-panel .shift-title {
  font-size: 18px;
}

.sick-alert-panel .primary-button {
  justify-self: start;
  width: auto;
  min-width: 132px;
}

.sick-alert-list {
  display: grid;
  gap: 6px;
}

.sick-alert-item {
  display: grid;
  gap: 3px;
  padding: 8px 10px;
  border: 1px solid #fecaca;
  border-radius: 8px;
  background: white;
}

.sick-alert-item span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.sick-alert-item em {
  color: var(--red);
  font-size: 13px;
  font-style: normal;
  font-weight: 900;
}

.unclaimed-alert-item {
  border-color: #fca5a5;
  background: #fff1f2;
}

.payroll-panel {
  display: grid;
  gap: 12px;
  padding: var(--dashboard-panel-padding);
  border: 1px solid #fde68a;
  border-radius: 8px;
  background: #fffbeb;
  box-shadow: var(--shadow);
}

.vacation-panel {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid #fde68a;
  border-left: 5px solid var(--yellow);
  border-radius: 8px;
  background: #fffbeb;
}

.vacation-list {
  display: grid;
  gap: 8px;
}

.vacation-item {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid #fde68a;
  border-radius: 8px;
  background: white;
}

.vacation-item .badge {
  width: max-content;
}

.vacation-item span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.vacation-plan-panel {
  display: grid;
  gap: 12px;
  margin-top: 0;
  padding: var(--dashboard-panel-padding);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.vacation-plan-list {
  display: grid;
  gap: 10px;
}

.vacation-plan-item {
  display: grid;
  grid-template-columns: minmax(180px, 0.8fr) minmax(220px, 1.2fr);
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.vacation-plan-item div {
  display: grid;
  gap: 4px;
}

.vacation-plan-item span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.absence-history-panel {
  display: grid;
  gap: 14px;
}

.absence-history-grid,
.absence-history-group {
  display: grid;
  gap: 10px;
}

.absence-history-group h3 {
  margin: 0;
  font-size: 16px;
}

.absence-history-item {
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.absence-history-item .badge {
  width: max-content;
}

.absence-history-item span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

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

.vacation-form {
  gap: 16px;
}

.vacation-form-grid {
  display: grid;
  gap: 12px;
}

.payroll-list {
  display: grid;
  gap: 8px;
}

.payroll-item {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 12px;
  padding: 10px;
  border: 1px solid #fde68a;
  border-radius: 8px;
  background: white;
}

.payroll-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.payroll-item strong,
.payroll-item span {
  display: block;
}

.payroll-item div span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.week-plan {
  display: grid;
  gap: 12px;
  padding: var(--dashboard-panel-padding);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.week-list {
  display: grid;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.week-row {
  display: grid;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: white;
}

.week-row-fixed {
  background: #f0fdf4;
}

.week-row:last-child {
  border-bottom: 0;
}

.week-row strong,
.week-row span {
  display: block;
}

.week-row span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.week-head {
  display: none;
  background: #f8fafc;
}

.week-head span {
  margin-top: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.week-status {
  align-self: center;
  justify-self: start;
}

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

.employee-table {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.employee-filters {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.employee-table-head {
  display: none;
}

.employee-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.employee-contact,
.employee-age,
.employee-week {
  display: grid;
  gap: 4px;
}

.employee-contact span,
.employee-week span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.age-pill {
  display: inline-flex;
  width: max-content;
  min-height: 26px;
  align-items: center;
  border-radius: 6px;
  background: #e5e7eb;
  color: #374151;
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 900;
}

.employee-warning,
.employee-ok {
  display: block;
  margin-top: 4px;
}

.employee-warning {
  color: #b91c1c !important;
}

.employee-ok {
  color: #64748b !important;
}

.employee-rules {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 14px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.employee-rules p {
  margin: 8px 0 0;
  color: #374151;
  line-height: 1.6;
}

.employee-profile-page {
  display: grid;
  gap: 16px;
}

.employee-profile-hero {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.profile-login-card {
  display: grid;
  gap: 8px;
  flex: 1 1 220px;
  min-width: 220px;
  margin-left: auto;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.profile-login-card p,
.profile-login-card span {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.profile-login-card strong {
  display: block;
  margin-top: 2px;
  color: var(--text);
  font-size: 15px;
}

.profile-login-card .tiny-button {
  justify-self: start;
}

.large-avatar {
  width: 64px;
  height: 64px;
  font-size: 20px;
}

.employee-profile-hero h3,
.employee-profile-section h3 {
  margin: 0;
}

.employee-profile-hero p {
  margin: 4px 0 10px;
  color: var(--muted);
  font-weight: 800;
}

.employee-profile-section {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.profile-history-list {
  display: grid;
  gap: 8px;
}

.profile-history-item {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.profile-history-item div {
  display: grid;
  gap: 4px;
}

.profile-history-item span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.fixed-workday-list {
  display: grid;
  gap: 10px;
}

.fixed-workday-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.fixed-workday-item div:first-child {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.fixed-workday-item strong,
.fixed-workday-item span {
  overflow-wrap: anywhere;
}

.fixed-workday-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.fixed-workday-form {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  background: #f0fdf4;
}

.fixed-workday-form h3,
.fixed-workday-form p {
  margin: 0;
}

.fixed-workday-grid {
  display: grid;
  gap: 12px;
}

.rules-icon {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 2px solid var(--text);
  border-radius: 50%;
  font-weight: 900;
}

.employee-card:last-child {
  border-bottom: 0;
}

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

.card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.swap-panel {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: #eff6ff;
}

.swap-candidates {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
}

.swap-candidates .tiny-button {
  justify-content: center;
  min-height: 38px;
  white-space: normal;
}

.request-board {
  align-items: start;
}

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

.request-stat {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.request-stat span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.request-stat strong {
  font-size: 28px;
  line-height: 1;
}

.request-stat .badge {
  width: max-content;
}

.request-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.request-meta-grid span,
.request-meta-grid strong {
  display: block;
}

.request-meta-grid span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.request-meta-grid strong {
  margin-top: 3px;
}

.urgent-request {
  border-color: #fecaca;
  border-left: 5px solid var(--red);
  background: #fff7f7;
}

.assign-panel {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.assign-panel.is-focused {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.16);
  background: #f0fdf4;
}

.assign-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tiny-button.is-disabled,
.tiny-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  background: #f3f4f6;
  color: var(--muted);
}

.field-hint {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.message-list {
  display: grid;
  gap: 10px;
}

.message-notice-panel {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid #bfdbfe;
  border-left: 5px solid var(--blue);
  border-radius: 8px;
  background: #eff6ff;
}

.message-notice-panel p:not(.eyebrow) {
  margin: 4px 0;
  color: var(--text);
  line-height: 1.45;
}

.message-notice-panel span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.message-compose-panel {
  display: grid;
  gap: 12px;
  padding: var(--dashboard-panel-padding);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.message-compose-panel + .request-list {
  gap: 10px;
}

.message-compose-panel + .request-list > .request-card {
  padding: var(--dashboard-panel-padding);
}

.message-compose-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: end;
}

.message-compose-text textarea {
  min-height: 72px;
}

.message-compose-form .primary-button {
  min-height: 44px;
  white-space: nowrap;
}

.daily-reminder {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  padding: 16px;
  border: 1px solid #fde68a;
  border-radius: 8px;
  background: #fffbeb;
}

.daily-reminder p:not(.eyebrow) {
  margin: 8px 0 0;
  color: #6b4e00;
  line-height: 1.45;
}

.message-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.message-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: var(--primary);
  color: white;
  font-weight: 900;
}

.message-topline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.message-card p {
  margin: 8px 0 0;
  color: var(--text);
  line-height: 1.45;
}

.request-item {
  box-shadow: none;
}

.request-item-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.employee-main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.employee-name-block {
  min-width: 0;
}

.employee-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--primary);
  color: white;
  font-size: 13px;
  font-weight: 900;
}

.employee-card .shift-title {
  overflow-wrap: anywhere;
}

.employee-card .employee-meta {
  max-width: 18rem;
}

.employee-facts {
  display: grid;
  gap: 5px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.3;
}

.employee-facts span {
  display: grid;
  grid-template-columns: 58px max-content;
  gap: 8px;
  align-items: baseline;
}

.employee-facts strong {
  color: #64748b;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.employee-facts span {
  white-space: nowrap;
}

.employee-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.employee-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
  max-width: 100%;
  padding-right: 10px;
}

.employee-actions .tiny-button {
  flex: 0 1 auto;
}

.employee-days,
.employee-login,
.employee-details {
  min-width: 0;
}

.employee-details {
  display: grid;
  gap: 12px;
}

.shift-time {
  font-size: 18px;
  font-weight: 800;
}

.shift-date-highlight {
  display: inline-grid;
  gap: 3px;
  width: min(100%, 320px);
  padding: 12px 14px;
  border: 1px solid #bfdbfe;
  border-left: 5px solid var(--blue);
  border-radius: 8px;
  background: #eff6ff;
}

.shift-card-header .shift-date-highlight {
  flex: 0 1 320px;
}

.shift-date-highlight .shift-time {
  color: var(--text);
  font-size: 22px;
  line-height: 1.05;
}

.shift-date-highlight .shift-detail {
  color: #375985;
  font-weight: 800;
}

.shift-date-label {
  color: var(--blue);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.shift-title {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
}

.shift-detail,
.meta-row,
.employee-meta {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 0;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  background: #eff6ff;
  color: var(--blue);
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 900;
}

.chip.muted {
  border-color: var(--line);
  background: var(--surface-soft);
  color: var(--muted);
}

.chip.warning-chip {
  border-color: #fde68a;
  background: #fffbeb;
  color: var(--yellow);
}

.chip.danger-chip {
  border-color: #fecaca;
  background: #fff2f2;
  color: var(--red);
}

.swap-info {
  display: grid;
  gap: 4px;
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid #fde68a;
  border-left: 4px solid #d97706;
  border-radius: 8px;
  background: #fffbeb;
  color: #713f12;
}

.swap-info strong {
  color: #111827;
}

.swap-info span {
  color: #713f12;
  font-size: 14px;
  font-weight: 700;
}

.login-box {
  display: grid;
  gap: 8px;
  margin-top: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.login-box .tiny-button {
  justify-self: start;
}

.login-box p,
.login-box span {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.login-box .eyebrow {
  color: var(--text);
  font-size: 11px;
}

.login-box strong {
  display: block;
  margin-top: 2px;
  color: #475569;
  font-size: 14px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  min-height: 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  text-align: center;
}

.badge.green {
  border-color: #86efac;
  background: #dcfce7;
  color: #166534;
}

.badge.blue {
  border-color: #93c5fd;
  background: #dbeafe;
  color: #1d4ed8;
}

.badge.yellow {
  border-color: #fcd34d;
  background: #fef3c7;
  color: #92400e;
}

.badge.red {
  border-color: #fca5a5;
  background: #fee2e2;
  color: #b91c1c;
}

.badge.muted {
  border-color: #cbd5e1;
  background: #f1f5f9;
  color: #475569;
}

.empty-state {
  padding: 24px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: white;
  color: var(--muted);
  text-align: center;
}

.form-panel {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.create-shift-shell {
  display: grid;
  gap: 20px;
}

.create-shift-form {
  gap: 22px;
  padding: 24px;
}

.create-form-header p {
  margin: 6px 0 0;
}

.create-form-section {
  display: grid;
  gap: 16px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.create-form-section:last-of-type {
  border-bottom: 0;
  padding-bottom: 0;
}

.create-time-grid,
.create-details-grid {
  grid-template-columns: 1fr;
}

.section-label {
  margin: 0;
  color: var(--text);
  font-size: 16px;
  font-weight: 900;
}

.assignment-cards {
  display: grid;
  gap: 12px;
}

.assignment-card {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 92px;
  padding: 16px 46px 16px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.assignment-card:has(input:checked) {
  border-color: var(--text);
  background: #f8fafc;
}

.assignment-card input {
  position: absolute;
  right: 16px;
  width: 18px;
  height: 18px;
  accent-color: var(--text);
}

.assignment-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #dbeafe;
  color: var(--primary);
  font-size: 20px;
  font-weight: 900;
}

.assignment-card strong,
.assignment-card small {
  display: block;
}

.assignment-card small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.create-shift-form:has(input[name="status"][value="åben"]:checked) .assign-employee-field {
  display: none;
}

.day-overview {
  display: grid;
  gap: 16px;
  align-content: start;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbf9fb;
}

.day-overview-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.day-overview-head span {
  color: var(--muted);
  font-weight: 700;
}

.day-overview-list {
  display: grid;
  gap: 12px;
}

.day-overview-card {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.day-overview-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.day-overview-top strong {
  font-size: 18px;
}

.day-overview-card p,
.day-overview-card span {
  margin: 0;
}

.day-overview-card span {
  color: var(--muted);
  font-weight: 700;
}

.day-total {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.day-total span {
  color: var(--muted);
  font-weight: 700;
}

.field {
  display: grid;
  gap: 6px;
}

.field label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 10px 12px;
}

.field input[type="date"] {
  min-width: 0;
  color: var(--text);
}

.field textarea {
  min-height: 88px;
  resize: vertical;
}

.profile-summary {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 800;
}

.check-row input {
  width: 18px;
  height: 18px;
}

.day-picker {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 8px;
}

.day-option {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 8px 10px;
  color: #475569;
  font-weight: 800;
}

.day-option input {
  width: 16px;
  height: 16px;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.bottom-nav {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  min-height: 72px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
}

.bottom-item {
  position: relative;
  display: grid;
  gap: 4px;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.bottom-item[data-badge]::after {
  content: attr(data-badge);
  position: absolute;
  top: 8px;
  right: calc(50% - 24px);
  display: grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--red);
  color: white;
  padding: 0 5px;
  font-size: 11px;
  font-weight: 900;
}

.bottom-item .icon,
.nav-item .icon {
  font-size: 20px;
  line-height: 1;
}

.bottom-item.active,
.nav-item.active {
  color: var(--blue);
}

dialog {
  width: min(440px, calc(100% - 32px));
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0;
  box-shadow: var(--shadow);
}

dialog::backdrop {
  background: rgba(17, 24, 39, 0.42);
}

dialog form {
  display: grid;
  gap: 12px;
  padding: 18px;
}

dialog h2,
dialog p {
  margin: 0;
}

dialog p,
#dialog-message {
  color: var(--muted);
  line-height: 1.5;
}

.dialog-list {
  display: grid;
  gap: 10px;
}

.dialog-list-item {
  display: grid;
  gap: 3px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.dialog-list-item strong {
  color: var(--text);
}

.dialog-list-item span {
  color: var(--muted);
}

dialog menu {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin: 8px 0 0;
  padding: 0;
}

.sick-dialog {
  width: min(360px, calc(100% - 28px));
}

.sick-dialog form {
  gap: 14px;
  padding: 16px;
}

.sick-dialog h2 {
  text-align: center;
  font-size: 14px;
}

.sick-dialog menu {
  display: grid;
  grid-template-columns: 1fr;
}

.sick-dialog .danger-solid-button {
  order: -1;
}

.sick-confirm {
  display: grid;
  gap: 12px;
  color: var(--text);
  text-align: center;
}

.payroll-confirm {
  display: grid;
  gap: 12px;
  color: var(--text);
  text-align: center;
}

.sick-confirm-icon {
  display: grid;
  place-items: center;
  justify-self: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #fee2e2;
  color: var(--red);
  font-size: 24px;
  font-weight: 900;
}

.payroll-confirm-icon {
  display: grid;
  place-items: center;
  justify-self: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #dcfce7;
  color: var(--green);
  font-size: 24px;
  font-weight: 900;
}

.sick-confirm h3 {
  margin: 0;
  font-size: 18px;
}

.payroll-confirm h3 {
  margin: 0;
  font-size: 18px;
}

.sick-confirm p {
  justify-self: center;
  max-width: 30ch;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.payroll-confirm p {
  justify-self: center;
  max-width: 34ch;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.sick-current {
  display: grid;
  gap: 8px;
  margin-top: 4px;
  text-align: left;
}

.sick-current > strong {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.sick-current article {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.sick-current article span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #e5e7eb;
  color: #475569;
  font-size: 12px;
  font-weight: 900;
}

.sick-current article:first-of-type span {
  background: var(--primary);
  color: white;
}

.sick-current b,
.sick-current small {
  display: block;
}

.sick-current b {
  font-size: 13px;
}

.sick-current small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

@media (min-width: 820px) {
  .app-shell {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
  }

  .sidebar {
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
    height: 100vh;
    padding: 24px;
    background: #eef2f7;
    border-right: 1px solid var(--line);
  }

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

  .brand-mark {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: var(--primary);
    color: white;
    font-weight: 900;
  }

  .brand span,
  .sidebar-note span {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 13px;
  }

  .nav-list {
    display: grid;
    gap: 6px;
  }

  .nav-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--muted);
    padding: 0 12px;
    font-weight: 800;
    text-align: left;
  }

  .nav-item[data-badge]::after {
    content: attr(data-badge);
    margin-left: auto;
    display: grid;
    place-items: center;
    min-width: 22px;
    height: 22px;
    border-radius: 999px;
    background: var(--red);
    color: white;
    padding: 0 7px;
    font-size: 12px;
    font-weight: 900;
  }

  .nav-item.active {
    background: white;
    box-shadow: 0 6px 18px rgba(17, 24, 39, 0.08);
  }

  .sidebar-note {
    margin-top: auto;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
  }

  .main {
    padding: 0 32px 40px;
  }

  .topbar {
    margin: 0 -32px 24px;
    padding: 16px 32px;
  }

  .mobile-menu,
  .bottom-nav {
    display: none;
  }

  .stats-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .worker-summary {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .dashboard-main-grid {
    grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.8fr);
    align-items: start;
  }

  body.is-admin .content:has(> .dashboard-main-grid) {
    grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.8fr);
    align-items: start;
  }

  body.is-admin .content:has(> .dashboard-main-grid) > .dashboard-stats {
    grid-column: 1 / -1;
  }

  body.is-admin .content:has(> .dashboard-main-grid) > .dashboard-main-grid {
    grid-column: 1 / -1;
    margin-top: 0;
  }

  .next-shift-panel {
    grid-template-columns: minmax(190px, 0.8fr) minmax(260px, 1fr) auto;
    align-items: center;
  }

  .payroll-item {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .week-row {
    grid-template-columns: minmax(160px, 0.75fr) minmax(360px, 1.55fr) minmax(230px, 1fr) 110px;
    align-items: center;
  }

  .week-head {
    display: grid;
  }

  .week-status {
    justify-self: end;
  }

  .sick-alert-panel {
    grid-template-columns: minmax(180px, 0.75fr) minmax(260px, 1.45fr) auto;
    align-items: center;
  }

  .sick-alert-panel .primary-button {
    justify-self: end;
  }

  .profile-button strong {
    display: block;
  }

  .employee-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .employee-filters {
    grid-template-columns: minmax(260px, 1fr) 220px;
    align-items: end;
  }

  .shift-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 760px;
  }

  .create-shift-shell {
    grid-template-columns: minmax(0, 760px) minmax(280px, 360px);
    align-items: start;
  }

  .create-shift-form {
    max-width: none;
  }

  .create-time-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .create-details-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .vacation-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fixed-workday-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .message-compose-form {
    grid-template-columns: minmax(180px, 0.45fr) minmax(260px, 1fr) auto;
  }

  .assignment-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .request-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .form-wide {
    grid-column: 1 / -1;
  }

  .employee-table {
    gap: 0;
  }

  .employee-table-head {
    display: grid;
    grid-template-columns: minmax(220px, 1.15fr) minmax(210px, 1fr) 80px minmax(210px, 1.1fr) 130px;
    gap: 24px;
    padding: 12px 16px;
    background: #f8fafc;
    border-bottom: 1px solid var(--line);
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
  }

  .employee-card {
    grid-template-columns: minmax(220px, 1.15fr) minmax(210px, 1fr) 80px minmax(210px, 1.1fr) 130px;
    align-items: center;
    gap: 24px;
    padding: 16px;
    box-shadow: none;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
  }

  .employee-card:hover {
    background: #fbfdff;
  }

  .employee-card .employee-meta {
    max-width: none;
  }

  .employee-status {
    justify-content: flex-start;
    align-content: flex-start;
  }

  .employee-details {
    display: block;
  }

  .employee-days,
  .employee-login,
  .employee-status {
    display: none;
  }

  .employee-actions {
    margin-top: 2px;
    max-width: calc(100% - 8px);
  }

  .employee-actions .tiny-button {
    min-width: 110px;
    text-transform: uppercase;
  }

  .employee-actions .tiny-button:not(:first-child) {
    display: none;
  }

  .login-box {
    padding: 0;
    border: 0;
    background: transparent;
  }

  .login-box strong {
    font-size: 13px;
  }

  .content {
    max-width: 1160px;
  }

  .login-panel {
    max-width: 720px;
  }
}

@media print {
  body {
    background: white;
  }

  .sidebar,
  .topbar,
  .sick-alert-panel,
  .payroll-panel,
  .request-list,
  .bottom-nav,
  .week-actions {
    display: none !important;
  }

  .app-shell,
  .main,
  .content {
    display: block;
    padding: 0;
    max-width: none;
  }

  .week-plan {
    border: 0;
    box-shadow: none;
    padding: 0;
  }

  .week-head {
    display: grid;
  }

  .week-row {
    grid-template-columns: 34mm 72mm 46mm 28mm;
    break-inside: avoid;
  }

  .badge {
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }
}
