:root {
  font-family: "DM Sans", "Segoe UI", system-ui, sans-serif;
  font-size: 16px;
  font-synthesis: none;
  color-scheme: dark;
  --bg: #070912;
  --ink-soft: #101421;
  --panel: #121827;
  --panel-2: #1b2436;
  --text: #f4f7ff;
  --text-muted: #a5b3cf;
  --cyan: #20d5ee;
  --violet: #7514f4;
  --line: rgba(183, 208, 255, 0.19);
  --border: var(--line);
  --muted: var(--text-muted);
  --danger: #ff879c;
  --warning: #ffd28a;
  --accent-text: #5be2f4;
  --radius: 12px;
  --page-space: clamp(16px, 3vw, 40px);
}
html[data-theme="medium"] {
  --bg: #172039;
  --ink-soft: #1d2943;
  --panel: #24314c;
  --panel-2: #2c3c59;
  --text: #f5f8ff;
  --text-muted: #bdcbe3;
  --line: rgba(203, 225, 255, 0.22);
}
html[data-theme="light"] {
  color-scheme: light;
  --bg: #edf2fa;
  --ink-soft: #e5edf8;
  --panel: #f8faff;
  --panel-2: #eaf0fa;
  --text: #15243d;
  --text-muted: #50627e;
  --accent-text: #086f98;
  --line: rgba(52, 81, 132, 0.18);
  --danger: #bc2549;
  --warning: #895719;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select {
  touch-action: manipulation;
}
button {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
  color: var(--text);
  padding: 10px 14px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  min-height: 40px;
}
button:hover {
  border-color: var(--cyan);
  background: color-mix(in srgb, var(--cyan) 7%, var(--panel-2));
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}
button:disabled {
  opacity: 0.5;
  cursor: default;
}
.primary {
  background: var(--violet);
  border-color: var(--violet);
  color: #fff;
  font-weight: 600;
}
.primary:hover {
  background: #8529f4;
  border-color: #8529f4;
}
.danger {
  color: var(--danger);
}
.quiet {
  border: 0;
  background: transparent;
}
input,
select,
textarea {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--ink-soft);
  color: var(--text);
  padding: 11px 13px;
  width: 100%;
  min-width: 0;
  font-size: 0.875rem;
  min-height: 42px;
}
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}
input[type="checkbox"] {
  width: auto;
  min-height: 0;
  accent-color: var(--cyan);
}
textarea {
  resize: vertical;
  min-height: 90px;
}
select {
  color-scheme: inherit;
}
select option {
  background: var(--panel);
  color: var(--text);
}
a {
  color: var(--accent-text);
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 1.65rem;
  line-height: 1.25;
  letter-spacing: -0.025em;
  font-weight: 650;
  margin: 0;
}
h2 {
  font-size: 1.125rem;
  font-weight: 650;
}
h3 {
  font-size: 1rem;
}
.muted {
  color: var(--text-muted);
}
.small {
  font-size: 0.875rem;
}
.shell {
  min-height: 100dvh;
}
.workspace-header {
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}
.header-main {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 80px;
  padding: 12px var(--page-space);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 0;
  background: none;
  padding: 0;
  min-height: 0;
  flex-shrink: 0;
}
.brand:hover {
  background: none;
}
.brand img {
  width: 44px;
  height: 36px;
  object-fit: contain;
}
.brand-copy {
  display: flex;
  flex-direction: column;
  text-align: left;
  gap: 3px;
}
.brand-copy strong {
  font-size: 1.35rem;
  letter-spacing: 0.11em;
  font-weight: 800;
  color: var(--text);
}
.brand-copy small {
  font-size: 0.875rem;
  color: var(--text-muted);
}
.header-account {
  margin-left: auto;
  display: flex;
  flex-direction: column;
  gap: 5px;
  text-align: right;
  font-size: 0.875rem;
  min-width: 0;
}
.header-account strong {
  font-weight: 600;
}
.header-account span {
  color: var(--text-muted);
}
.header-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.header-actions button {
  padding: 8px 12px;
}
.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px var(--page-space);
}
.main-nav button {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 9px;
  color: var(--text-muted);
  padding: 9px 14px;
}
.main-nav button:hover {
  color: var(--text);
  background: var(--panel-2);
}
.main-nav button.active {
  color: var(--accent-text);
  background: color-mix(in srgb, var(--cyan) 12%, transparent);
  border-color: color-mix(in srgb, var(--cyan) 30%, transparent);
}
.workspace {
  max-width: 1700px;
  margin: auto;
  padding: 26px var(--page-space) 48px;
  min-width: 0;
}
.pagehead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.demo {
  font-size: 0.8125rem;
  color: var(--text-muted);
  padding: 5px 0;
}
.summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  border-block: 1px solid var(--line);
  margin-bottom: 22px;
  background: var(--panel);
  border-radius: 0;
}
.metric {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 22px;
  border-right: 1px solid var(--line);
  flex: 1;
  min-width: 180px;
}
.metric:first-child {
  padding-left: 16px;
}
.metric:last-child {
  border-right: 0;
}
.metric > span {
  color: var(--text-muted);
  font-size: 0.875rem;
}
.metric strong {
  font-size: 1.15rem;
  font-weight: 650;
  margin-left: auto;
  white-space: nowrap;
}
.metric .warning-value {
  color: var(--warning);
}
.toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}
.toolbar select {
  width: auto;
  min-width: 155px;
  max-width: 300px;
}
.spacer {
  flex: 1;
}
.weeknav {
  display: flex;
  align-items: center;
  gap: 8px;
}
.weeknav b {
  font-size: 0.875rem;
  font-weight: 600;
  text-align: center;
  min-width: 185px;
}
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 20px;
}
.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}
.panel-head h2 {
  margin: 0;
}
.schedule-scroll {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  scrollbar-color: var(--panel-2) transparent;
  scrollbar-width: thin;
}
.schedule {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  min-width: 1080px;
  table-layout: fixed;
}
.schedule th {
  background: var(--ink-soft);
  height: 62px;
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 400;
  text-align: center;
  border-bottom: 1px solid var(--line);
}
.schedule th:first-child {
  width: 180px;
  text-align: left;
  padding: 16px;
}
.schedule th b {
  display: block;
  margin-top: 5px;
  color: var(--text);
  font-weight: 600;
}
.schedule td {
  padding: 10px;
  vertical-align: top;
  height: 94px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.schedule td:last-child {
  border-right: 0;
}
.schedule tr:last-child td {
  border-bottom: 0;
}
.schedule td:first-child,
.schedule th:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  background: var(--ink-soft);
}
.schedule td:first-child {
  padding: 16px;
  font-size: 0.875rem;
}
.person-cell {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.avatar {
  display: none;
}
.person-link {
  background: transparent;
  border: 0;
  padding: 0;
  min-height: 0;
  text-align: left;
  font-weight: 600;
  color: var(--text);
  line-height: 1.5;
}
.person-link:hover {
  color: var(--accent-text);
  background: none;
}
.shift {
  display: block;
  text-align: left;
  width: 100%;
  background: color-mix(in srgb, var(--violet) 13%, var(--panel));
  border: 1px solid color-mix(in srgb, var(--violet) 35%, var(--line));
  border-left: 3px solid var(--violet);
  padding: 9px 10px;
  border-radius: 7px;
  margin-bottom: 6px;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--text);
}
.shift:hover {
  background: color-mix(in srgb, var(--violet) 23%, var(--panel));
  border-color: var(--violet);
}
.shift.draft {
  background: var(--panel-2);
  border-style: dashed;
  border-color: var(--text-muted);
  color: var(--text-muted);
}
.shift .hours {
  font-weight: 650;
  white-space: nowrap;
}
.shift .place-label {
  display: block;
  font-size: 0.8125rem;
  color: var(--text-muted);
}
.absence {
  border-left: 3px solid var(--warning);
  background: color-mix(in srgb, var(--warning) 9%, var(--panel));
  color: var(--warning);
  padding: 8px;
  border-radius: 6px;
  font-size: 0.875rem;
}
.legend {
  display: flex;
  gap: 20px;
  margin: 14px 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
}
.legend span:before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  border: 1px solid var(--violet);
  background: color-mix(in srgb, var(--violet) 20%, var(--panel));
  border-radius: 2px;
  margin-right: 7px;
}
.legend span:last-child:before {
  background: var(--panel-2);
  border: 1px dashed var(--text-muted);
}
.alerts {
  display: grid;
  gap: 0;
  margin-top: 20px;
  border-left: 2px solid var(--warning);
  background: var(--panel);
}
.alert {
  margin: 0;
  padding: 12px 16px;
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.6;
  border-bottom: 1px solid var(--line);
}
.alert strong {
  display: block;
  font-weight: 600;
  color: var(--warning);
  margin-bottom: 3px;
}
.alert:last-child {
  border-bottom: 0;
}
.table-scroll {
  overflow: auto;
  scrollbar-width: thin;
}
.data-table {
  border-collapse: collapse;
  width: 100%;
  min-width: 650px;
  text-align: left;
  font-size: 0.875rem;
}
.data-table th {
  background: var(--ink-soft);
  color: var(--text-muted);
  font-weight: 500;
  padding: 12px;
  border-bottom: 1px solid var(--line);
}
.data-table td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  line-height: 1.6;
}
.data-table tr:last-child td {
  border-bottom: 0;
}
.pill {
  font-size: 0.8125rem;
  padding: 3px 8px;
  border-radius: 5px;
  background: var(--panel-2);
  color: var(--text-muted);
  display: inline-block;
}
.pill.approved {
  background: color-mix(in srgb, var(--cyan) 10%, var(--panel));
  color: var(--accent-text);
}
.pill.pending {
  color: var(--warning);
  background: color-mix(in srgb, var(--warning) 10%, var(--panel));
}
.pill.rejected,
.pill.cancelled {
  color: var(--danger);
  background: color-mix(in srgb, var(--danger) 10%, var(--panel));
}
.actions {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
.arrival {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.arrival h2 {
  margin-bottom: 8px;
}
.arrival p {
  margin-bottom: 0;
}
.eyebrow {
  color: var(--text-muted);
  font-size: 0.8125rem;
  margin-bottom: 10px;
}
.empty {
  padding: 32px;
  text-align: center;
  color: var(--text-muted);
}
.login {
  max-width: 480px;
  margin: 9vh auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  padding: 32px;
}
.login-brand {
  margin-bottom: 28px;
}
.login h1 {
  margin-bottom: 16px;
}
.login p {
  font-size: 0.875rem;
  line-height: 1.65;
}
.login label {
  display: block;
  margin: 16px 0;
  font-size: 0.875rem;
}
.login input {
  margin-top: 8px;
}
.login .primary {
  width: 100%;
}
.demo-accounts {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}
.demo-accounts button {
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 13px;
}
.demo-accounts button span {
  font-size: 0.8125rem;
  color: var(--text-muted);
}
.demo-accounts button strong {
  font-weight: 600;
}
.loading {
  padding: 40px;
  color: var(--text-muted);
}
dialog {
  max-width: 680px;
  width: calc(100% - 32px);
  max-height: 90dvh;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  color: var(--text);
  padding: 26px;
  box-shadow: 0 24px 65px #01051355;
}
dialog::backdrop {
  background: #030711bb;
  backdrop-filter: blur(3px);
}
.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
}
.dialog-head h2 {
  margin: 0;
}
form label {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 0.875rem;
  font-weight: 500;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 22px;
}
.form-error {
  color: var(--danger);
  padding: 10px;
  border-left: 2px solid var(--danger);
  font-size: 0.875rem;
  display: none;
}
.form-error:not(:empty) {
  display: block;
}
.separator {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 24px 0;
}
.docs {
  display: grid;
  gap: 8px;
}
.doc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--panel-2);
  border-radius: 8px;
  padding: 12px;
  font-size: 0.875rem;
  margin-bottom: 8px;
}
.doc-row span {
  overflow-wrap: anywhere;
  min-width: 0;
}
.notification {
  padding: 15px;
  border-bottom: 1px solid var(--line);
}
.notification.unread {
  background: color-mix(in srgb, var(--cyan) 8%, var(--panel));
  border-left: 2px solid var(--cyan);
}
.notification p {
  margin: 6px 0;
  font-size: 0.875rem;
}
.notification button {
  margin-left: 10px;
}
.offices-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}
.office-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px;
  background: var(--ink-soft);
}
.office-card h3 {
  margin-bottom: 10px;
}
.office-card p {
  line-height: 1.6;
}
.hours-total {
  font-size: 1.2rem;
  font-weight: 650;
}
.today-marker,
.today-marker b {
  color: var(--accent-text) !important;
}
.checks {
  display: grid;
  gap: 8px;
}
.checks label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 400;
}
.fieldset-label {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 12px;
}
.notice {
  padding: 12px 14px;
  border-left: 2px solid var(--cyan);
  background: var(--ink-soft);
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.6;
}
.hide {
  display: none !important;
}
#toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  display: none;
  background: var(--panel-2);
  border: 1px solid var(--cyan);
  color: var(--text);
  padding: 13px 18px;
  border-radius: 10px;
  max-width: 500px;
  box-shadow: 0 8px 28px #01051344;
  z-index: 50;
}
#toast.visible {
  display: block;
}
@media (max-width: 1000px) {
  .header-main {
    gap: 14px;
    flex-wrap: wrap;
  }
  .header-actions {
    margin-left: auto;
  }
  .header-account {
    flex: 1;
  }
  .metric {
    padding: 12px 16px;
    min-width: 150px;
  }
  .toolbar .spacer {
    display: none;
  }
  .toolbar select {
    flex: 1;
    max-width: none;
  }
  .weeknav b {
    min-width: 170px;
  }
}
@media (max-width: 680px) {
  .header-main {
    padding: 12px 16px;
    gap: 12px;
  }
  .brand img {
    width: 36px;
    height: 32px;
  }
  .brand-copy strong {
    font-size: 1.15rem;
  }
  .header-account {
    font-size: 0.8125rem;
  }
  .header-actions {
    width: 100%;
    margin: 0;
    gap: 6px;
  }
  .header-actions button {
    padding: 8px 10px;
  }
  .main-nav {
    padding: 8px 12px;
    gap: 4px;
  }
  .main-nav button {
    padding: 8px 10px;
    font-size: 0.875rem;
    flex-grow: 1;
  }
  .workspace {
    padding: 20px 16px 36px;
  }
  .pagehead {
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
  }
  h1 {
    font-size: 1.4rem;
  }
  .summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .metric {
    min-width: 0;
    gap: 8px;
    padding: 12px;
  }
  .metric:nth-child(2) {
    border-right: 0;
  }
  .metric:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
  .metric:first-child {
    padding-left: 12px;
  }
  .metric span {
    font-size: 0.8125rem;
  }
  .metric strong {
    font-size: 1rem;
  }
  .weeknav {
    width: 100%;
    justify-content: space-between;
  }
  .weeknav b {
    min-width: 0;
  }
  .weeknav button {
    padding: 8px 10px;
  }
  .toolbar select {
    max-width: 100%;
    width: 100%;
    flex: auto;
  }
  .toolbar {
    gap: 8px;
  }
  .schedule th:first-child {
    width: 150px;
  }
  .schedule td:first-child {
    padding: 12px;
  }
  .panel {
    padding: 16px;
  }
  .panel-head {
    flex-wrap: wrap;
  }
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .login {
    margin: 24px 16px;
    padding: 24px;
  }
  .demo-accounts button {
    flex-wrap: wrap;
  }
  .offices-list {
    grid-template-columns: 1fr;
  }
  .doc-row {
    flex-wrap: wrap;
  }
  dialog {
    padding: 20px;
  }
  .header-actions [data-action="push"] {
    margin-right: auto;
  }
  #toast {
    right: 16px;
    left: 16px;
    bottom: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

section > .panel + .panel {
  margin-top: 20px;
}
#replacement-form {
  max-width: 700px;
  margin-bottom: 20px;
}
#replacement-form button {
  margin-top: 10px;
}
.notification button {
  margin: 6px 8px 0 0;
}

/* Menu à gauche : libellés dépliés, icônes accessibles quand il est replié. */
.shell { padding-left: 60px; transition: padding-left .2s ease; }
.menu-open { padding-left: 244px; }
.left-menu { position: fixed; top: 0; left: 0; bottom: 0; z-index: 60; width: 60px; background: var(--ink-soft); border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: 16px 8px; overflow-y: auto; overflow-x: hidden; transition: width .2s ease; }
.menu-open .left-menu { width: 244px; padding: 16px 12px; }
.drawer-head { display: flex; align-items: center; justify-content: center; gap: 8px; padding-bottom: 24px; }
.menu-open .drawer-head { justify-content: space-between; }
.drawer-brand { display: none; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-size: .95rem; font-weight: 600; }
.menu-open .drawer-brand { display: flex; }
.drawer-brand img { width: 28px; height: 28px; object-fit: contain; }
.drawer-toggle { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 7px; background: transparent; border: 0; color: var(--muted); }
.drawer-nav { display: flex; flex-direction: column; gap: 5px; }
.drawer-nav button, .drawer-footer > button, .drawer-footer > a { display: flex; align-items: center; gap: 11px; text-align: left; border: 0; background: transparent; padding: 11px 12px; font-size: .85rem; color: var(--muted); white-space: nowrap; text-decoration: none; min-height: 42px; border-radius: 7px; position: relative; }
.left-menu svg { flex-shrink: 0; }
.nav-label { display: none; }
.menu-open .nav-label { display: inline; }
.drawer-nav button.active { background: var(--panel-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.drawer-nav button:hover, .drawer-footer > button:hover, .drawer-footer > a:hover { background: var(--panel-2); color: var(--text); }
.drawer-footer { margin-top: auto; padding-top: 22px; display: flex; flex-direction: column; gap: 4px; color: var(--muted); font-size: .85rem; }
.drawer-user { display: flex; align-items: center; gap: 10px; padding: 14px 3px 0; border-top: 1px solid var(--line); margin-top: 12px; white-space: nowrap; }
.drawer-user .avatar { display: grid; place-items: center; background: var(--panel-2); color: var(--accent-text); width: 32px; height: 32px; border-radius: 8px; font-size: .7rem; flex-shrink: 0; }
.drawer-user small { display: block; margin-top: 3px; color: var(--muted); font-size: .7rem; }
.rail-dot { position: absolute; top: 6px; right: 6px; width: 6px; height: 6px; background: var(--danger); border-radius: 50%; }
.menu-scrim { display: none; }
.company-planning { margin: 24px 0 36px; }
.company-heading { display: flex; align-items: center; gap: 16px; padding: 12px 0; border-bottom: 2px solid var(--line); margin-bottom: 16px; }
.company-heading h2 { margin: 0; font-size: 1.15rem; }
.company-heading > span { font-size: .8rem; color: var(--muted); }
.establishment-planning { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; margin-bottom: 22px; overflow: hidden; }
.establishment-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; background: var(--ink-soft); border-bottom: 1px solid var(--line); }
.establishment-heading h3 { margin: 3px 0 0; font-size: 1rem; }
.establishment-totals { display: flex; align-items: center; gap: 14px; font-size: .8rem; flex-wrap: wrap; }
.establishment-totals > span:first-child { color: var(--muted); }
.establishment-planning .schedule-scroll { border: 0; border-radius: 0; margin: 0; }
.establishment-planning .schedule { min-width: 1000px; }
.add-cell { display: block; margin: 5px 0; width: 100%; padding: 3px; border-style: dashed; background: transparent; color: var(--muted); opacity: .35; }
.schedule td:hover .add-cell, .add-cell:focus-visible { opacity: 1; color: var(--accent-text); }
.shift-warning { border-left-color: var(--warning); }
.shift-alert { display: block; color: var(--warning); font-size: .7rem; margin-top: 4px; }
.receipt-state { font-size: .68rem; color: var(--muted); display: block; margin-top: 4px; }
.inline-check { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; font-size: .8rem; }
.inline-check input { width: auto; }
.planning-actions input[type=search] { width: 230px; }
.membership { margin-bottom: 8px; font-size: .8rem; }
.membership strong { color: var(--muted); font-weight: 500; }
.data-table td button { margin-top: 8px; font-size: .8rem; }
@media (max-width: 760px) {
  .menu-open { padding-left: 60px; }
  .menu-open .menu-scrim { display: block; position: fixed; inset: 0; background: #0007; z-index: 59; border: 0; border-radius: 0; }
}
@media (max-width: 640px) {
  .header-main { flex-wrap: wrap; }
  .header-actions { flex-wrap: wrap; }
  .establishment-heading { align-items: flex-start; flex-direction: column; }
  .company-heading { align-items: flex-start; flex-direction: column; gap: 6px; }
  .planning-actions input[type=search] { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .shell, .left-menu { transition: none; } }
@media print {
  @page { size: A4 landscape; margin: 8mm; }
  :root { color-scheme: light; --bg: white; --panel: white; --panel-2: #eee; --ink-soft: #eee; --text: #111; --text-muted: #444; --line: #ccc; --accent-text: #111; }
  body { background: white; color: black; }
  .shell { padding: 0; }
  .left-menu, .menu-scrim, .header-actions, .header-account, .summary, .planning-actions, .alerts, .add-cell, .legend, #toast { display: none !important; }
  .workspace, .workspace-header { padding: 0; margin: 0; max-width: none; }
  .toolbar button, .toolbar select { display: none; }
  .schedule-scroll { overflow: visible; }
  .establishment-planning .schedule { min-width: 0; width: 100%; table-layout: fixed; }
  .schedule th, .schedule td { min-width: 0; padding: 5px; font-size: 8pt; }
  .schedule th:first-child, .schedule td:first-child { width: 130px; position: static; }
  .shift { background: #f4f4f4; color: #111; padding: 5px; break-inside: avoid; }
  .shift.draft { border: 1px dashed #777; }
  .person-cell .avatar { display: none; }
  .person-link { font-size: 8pt; }
  .establishment-planning { break-inside: avoid; }
  .company-heading { margin-bottom: 6px; }
  .hours, .place-label, .receipt-state { color: #111 !important; font-size: 8pt; }
}
.header-main { flex-wrap: wrap; }
.header-account { min-width: 150px; flex-shrink: 0; }
.header-account strong, .header-account span { white-space: nowrap; }
@media (max-width: 420px) {
  .header-account { min-width: 0; font-size: .75rem; }
  .header-actions { width: 100%; }
}
