/* Interface métier : consultation d’abord, réglages regroupés dans Admin. */
:root {
  --ink: #172d36;
  --muted: #60717b;
  --line: #dee5e9;
  --brand: #14634f;
  --soft: #eaf4f0;
  --paper: #fff;
}
body {
  background: #f4f6f8;
  color: var(--ink);
  font-size: 16px;
}
a {
  color: var(--brand);
}
.app-header {
  height: 86px;
  min-height: 86px;
  background: #fff;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  padding: 16px 32px;
  box-shadow: none;
}
.app-header .brand {
  color: var(--ink);
}
.brand img {
  background: var(--brand);
  padding: 6px;
  border-radius: 10px;
  width: 42px;
  height: 42px;
}
.brand small {
  color: var(--muted);
  letter-spacing: 0.09em;
  font-size: 12px;
}
.app-header nav a,
.app-header nav button {
  color: var(--ink);
}
.app-header nav button {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 14px;
}
.app-main {
  max-width: 1600px;
  margin: 0 auto;
  padding: 30px 32px 60px 252px;
}
.app-footer {
  margin-left: 220px;
  background: transparent;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding: 20px 32px;
  font-size: 14px;
}
.primary-nav {
  position: fixed;
  left: 20px;
  top: 116px;
  width: 200px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 20;
}
.primary-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  color: #526570;
  border-radius: 9px;
  font-size: 16px;
  font-weight: 650;
  text-decoration: none;
}
.primary-nav a > span {
  font-size: 23px;
  width: 26px;
  text-align: center;
}
.primary-nav a[aria-current='page'] {
  background: #deeee7;
  color: #0a6048;
}
.primary-nav a:hover {
  background: #e9efed;
}
.market {
  color: var(--ink);
  --line: #dee5e9;
}
.market .market-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0 0 22px;
  padding: 0;
}
.market .market-heading h1 {
  font-size: 32px;
  line-height: 1.2;
  letter-spacing: -0.04em;
  color: var(--ink);
  margin: 5px 0 8px;
}
.market .market-heading p {
  color: var(--muted);
  font-size: 16px;
  margin: 0;
}
.market .market-heading .eyebrow {
  color: var(--brand);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.1em;
}
.market .market-heading .market-primary {
  flex-shrink: 0;
}
.market-sync {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}
.market-sync:empty {
  display: none;
}
.market-sync:not(:empty) {
  margin: -10px 0 16px;
}
.market .market-nav {
  display: none;
}
.market .market-card,
.panel {
  border: 1px solid var(--line);
  box-shadow: none;
  border-radius: 12px;
  background: #fff;
  padding: 22px;
  margin-bottom: 20px;
}
.market .market-card h2,
.panel h2 {
  color: var(--ink);
  font-size: 20px;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
}
.market .market-card h3 {
  color: var(--ink);
  font-size: 18px;
}
.market p {
  line-height: 1.55;
}
.market .market-muted,
.help {
  color: var(--muted);
  font-size: 14px;
}
.market .btn,
.market button,
.primary,
.market .market-primary {
  min-height: 44px;
  font-size: 15px;
  font-weight: 650;
  border-radius: 8px;
  padding: 10px 16px;
  box-shadow: none;
}
.market .market-primary,
.market a.market-primary,
.primary {
  background: var(--brand);
  border: 1px solid var(--brand);
  color: #fff;
}
.market .market-secondary {
  background: #fff;
  color: var(--ink);
  border: 1px solid #ced8dd;
}
.market input,
.market select,
.market textarea {
  background: #fff;
  border: 1px solid #c9d4da;
  border-radius: 7px;
  min-height: 44px;
  font: inherit;
  padding: 10px 12px;
  color: var(--ink);
  box-shadow: none;
}
.market label {
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}
.market input[type='checkbox'] {
  min-height: 20px;
  width: 20px;
  accent-color: var(--brand);
}
.market .market-note,
.quiet-notice {
  border: 1px solid #dce6e8;
  background: #f0f5f6;
  color: #35515d;
  padding: 15px 18px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 15px;
}
.market .market-warn {
  background: #fff5e5;
  border: 1px solid #f0d2a0;
  color: #805513;
  border-radius: 8px;
  padding: 14px;
}
.market .market-pill {
  background: #edf2f5;
  color: #556b77;
  border: 0;
  font-size: 13px;
  padding: 5px 9px;
}
.section-title,
.settings-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 6px 0 18px;
}
.section-title h2,
.settings-heading h2 {
  margin: 0;
  font-size: 22px;
}
.noel-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.noel-stats > div {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 20px;
}
.noel-stats span {
  display: block;
  color: var(--muted);
  font-size: 14px;
  min-height: 40px;
}
.noel-stats strong {
  font-size: 34px;
  letter-spacing: -0.03em;
}
.noel-site-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.noel-site-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 22px;
  display: flex;
  flex-direction: column;
}
.site-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.site-icon {
  display: flex;
  width: 40px;
  height: 40px;
  background: #edf4f2;
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  color: var(--brand);
}
.noel-site-card h2 {
  font-size: 21px;
  margin: 0 0 8px;
}
.noel-site-card p {
  font-size: 14px;
  margin: 0 0 10px;
}
.noel-site-card .site-team {
  font-size: 16px;
  font-weight: 650;
}
.site-stock-summary {
  color: var(--muted);
  border-top: 1px solid var(--line);
  margin-top: auto;
  padding: 15px 0;
  font-size: 14px;
}
.stock-workspace {
  display: grid;
  grid-template-columns: 214px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}
.stock-locations {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.stock-locations p {
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 5px 0 8px;
}
.stock-locations p:not(:first-child) {
  margin-top: 20px;
}
.stock-locations a {
  border: 1px solid transparent;
  display: block;
  padding: 13px 14px;
  border-radius: 9px;
  text-decoration: none;
  color: var(--ink);
  font-size: 15px;
}
.stock-locations a.selected {
  background: #fff;
  border-color: #96bbae;
  box-shadow: inset 3px 0 0 var(--brand);
}
.stock-locations strong,
.stock-locations small {
  display: block;
}
.stock-locations small {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}
.stock-content {
  min-width: 0;
}
.stock-content .section-title {
  align-items: flex-start;
  flex-wrap: wrap;
}
.stock-content .eyebrow {
  margin: 0 0 7px;
  color: var(--brand);
  font-size: 12px;
  letter-spacing: 0.06em;
}
.stock-content .market-card {
  padding: 24px;
}
.stock-freshness {
  font-size: 14px;
  color: var(--muted);
}
.market .market-table {
  width: 100%;
  border-collapse: collapse;
}
.market .market-table th {
  text-transform: none;
  letter-spacing: 0;
  font-size: 14px;
  font-weight: 650;
  text-align: left;
  color: #536975;
  background: #f7f9fa;
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
}
.market .market-table td {
  padding: 17px 12px;
  font-size: 15px;
  border-bottom: 1px solid #e7ecef;
  vertical-align: middle;
}
.market .market-table tbody th {
  background: #fff;
  color: var(--ink);
  font-size: 16px;
}
.market .market-table small {
  display: block;
  font-size: 13px;
  color: var(--muted);
  font-weight: 400;
  margin-top: 5px;
}
.stock-status {
  display: inline-block;
  font-size: 13px;
  color: #366f5c;
  background: #eaf4ef;
  padding: 5px 8px;
  border-radius: 5px;
  white-space: nowrap;
}
.stock-status.alert {
  color: #8c5812;
  background: #fff0d7;
}
.empty-stock {
  background: #f6f9fa;
  text-align: center;
  padding: 36px 20px;
  border: 1px dashed #c8d4da;
  border-radius: 10px;
  margin: 25px 0;
}
.empty-stock h3 {
  margin-top: 0;
}
.stock-unknown {
  margin-top: 24px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.market summary {
  cursor: pointer;
  font-size: 16px;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.4;
}
.stock-unknown p {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
  margin: 0;
}
.stock-unknown p span {
  color: var(--muted);
}
.stock-actions details {
  padding: 17px 0;
  border-top: 1px solid var(--line);
}
.stock-actions form {
  margin-top: 22px;
}
.stock-actions .market-actions {
  margin-top: 18px;
}
.admin-tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 30px;
}
.admin-tile {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 22px;
  text-decoration: none;
  color: var(--ink);
}
.admin-tile:hover {
  border-color: #8db4a4;
}
.admin-tile h2 {
  font-size: 20px;
  margin: 14px 0 8px;
}
.admin-tile p {
  color: var(--muted);
  font-size: 15px;
  min-height: 46px;
}
.admin-tile > strong {
  font-size: 14px;
  color: var(--brand);
}
.tile-symbol {
  background: #edf3f1;
  color: var(--brand);
  border-radius: 8px;
  padding: 7px 9px;
  font-weight: 700;
  font-size: 14px;
}
.settings-location-list {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.settings-location-list > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 19px 22px;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  gap: 12px;
}
.settings-location-list > a:last-child {
  border-bottom: 0;
}
.settings-location-list small {
  display: block;
  font-size: 14px;
  color: var(--muted);
  margin-top: 5px;
}
.settings-location-list > a > span:last-child {
  color: var(--brand);
  font-weight: 600;
  font-size: 14px;
}
.settings-form {
  max-width: 980px;
}
.settings-form select {
  max-width: 560px;
}
.settings-form [data-float-amount] {
  max-width: 400px;
}
.settings-form [data-float-amount][hidden] {
  display: none;
}
.settings-form form > h2:not(:first-child) {
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.noel-settings-table td label {
  font-size: 0;
}
.noel-settings-table td input {
  max-width: 150px;
}
.noel-settings-table {
  margin-bottom: 22px;
}
.market-calendar-toolbar {
  background: #fff;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 16px;
}
.market-month-navigation h2 {
  font-size: 22px;
  min-width: 160px;
}
.market-calendar-tools label {
  font-size: 14px;
}
.market-calendar-tools label:has([name='calendarMonth']) {
  display: none;
}
.market-calendar-tools .market-secondary {
  font-size: 14px;
}
.market .market-view-switch {
  background: #edf2f4;
  border-radius: 8px;
}
.market .market-view-switch button[aria-pressed='true'] {
  background: var(--brand);
  color: #fff;
}
.market-plan-filters {
  max-width: 360px;
  margin-bottom: 18px;
}
.market-month-grid {
  gap: 1px;
  background: #dce4e8;
  border: 1px solid #dce4e8;
  border-radius: 10px;
  overflow: hidden;
}
.market-month-cell {
  border: 0;
  border-radius: 0;
  min-height: 90px;
  padding: 9px;
  background: #fff;
}
.market-month-cell.is-outside {
  background: #f6f8f9;
}
.market-month-cell.is-today {
  border: 0;
  box-shadow: inset 0 3px 0 var(--brand);
  background: #f3faf6;
}
.market-month-cell > time {
  font-size: 16px;
  color: var(--ink);
  padding: 2px 3px;
}
.market-month-weekdays {
  font-size: 14px;
  color: var(--muted);
}
.market-calendar-chalet {
  background: #edf5f1;
  border-left: 3px solid #65a38d;
  border-radius: 5px;
  padding: 9px 7px;
  color: #164d3d;
  font-size: 14px;
}
.market-calendar-chalet strong {
  font-size: 14px;
  line-height: 1.35;
}
.market-calendar-chalet .market-calendar-hours {
  display: block;
  font-size: 13px;
  margin: 6px 0;
  color: #345b4e;
}
.market .market-calendar-team {
  display: block !important;
  opacity: 1;
  visibility: visible;
  font-size: 14px;
}
.agenda-person {
  display: block;
  padding: 5px 0;
  line-height: 1.4;
  font-weight: 600;
}
.agenda-person small {
  display: block;
  font-weight: 400;
  font-size: 13px;
}
.lead-mark {
  font-size: 11px;
  background: #d6e8de;
  border-radius: 3px;
  padding: 2px 3px;
  font-weight: 500;
}
.market-calendar-select {
  display: none;
}
.is-planning-edit .market-calendar-select {
  display: flex;
}
.market:not(.is-planning-edit) .market-plan-date > input,
.market:not(.is-planning-edit) .noel-plan-select {
  display: none;
}
.market-calendar-legend {
  font-size: 14px;
}
.market-calendar-info {
  margin-top: 20px;
}
.market-staffing-gap {
  background: #fff1d9;
  color: #835312;
  font-size: 13px;
  padding: 5px;
  margin-top: 6px;
  display: block;
}
.market .market-planning-table {
  table-layout: auto;
}
.market .market-person {
  display: block;
  font-size: 16px;
}
.market-parent-nav {
  padding: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 20px;
}
.market .market-total {
  border: 1px solid var(--line);
  background: #f8fafb;
  border-radius: 10px;
  padding: 16px;
  margin: 18px 0;
}
.market .market-total div {
  padding: 12px 0;
  font-size: 16px;
}
.market .market-total .result {
  color: var(--brand);
  font-size: 20px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #eaf4ef;
  padding: 15px 12px;
}
.float-confirmed {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
  background: #ecf6f1;
  border: 1px solid #c2dfd1;
  padding: 18px;
  border-radius: 10px;
  margin: 16px 0;
}
.float-confirmed strong {
  font-size: 25px;
  color: var(--brand);
}
.float-confirmed small {
  grid-column: 1/-1;
  color: #486c5c;
}
.end-shift {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.end-shift h3 {
  font-size: 22px;
}
.arrival-guide {
  max-width: 640px;
  margin: 0 auto 20px;
  padding: 24px;
  background: #e9f3ef;
  border: 1px solid #bed8cd;
  border-radius: 12px;
}
.arrival-guide h2 {
  font-size: 25px;
  line-height: 1.3;
  margin: 10px 0;
}
.arrival-guide .eyebrow {
  font-size: 12px;
  color: var(--brand);
  font-weight: 700;
}
.market [hidden] {
  display: none !important;
}
@media (min-width: 901px) {
  .market .market-calendar-team,
  .market .market-calendar-hours,
  .market .market-calendar-note {
    display: block;
  }
}
@media (max-width: 1250px) {
  .app-main {
    padding-left: 28px;
    padding-right: 28px;
  }
  .primary-nav {
    position: static;
    width: 100%;
    flex-direction: row;
    gap: 6px;
    background: #fff;
    border: 1px solid var(--line);
    padding: 6px;
    border-radius: 11px;
    margin-bottom: 28px;
  }
  .primary-nav a {
    flex: 1;
    justify-content: center;
    padding: 10px;
    font-size: 15px;
  }
  .primary-nav a > span {
    font-size: 20px;
  }
  .app-footer {
    margin-left: 0;
  }
  .noel-site-grid,
  .admin-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 900px) {
  .stock-workspace {
    grid-template-columns: 1fr;
  }
  .stock-locations {
    flex-direction: row;
    overflow: auto;
    padding-bottom: 8px;
    gap: 10px;
    margin-bottom: 8px;
  }
  .stock-locations > p {
    display: none;
  }
  .stock-locations a {
    min-width: 150px;
    background: #fff;
    border: 1px solid var(--line);
  }
  .stock-locations a.selected {
    border-color: var(--brand);
  }
  .noel-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .noel-stats span {
    min-height: 0;
  }
  .market .market-mobile-date {
    border-color: #dce5e8;
    min-height: 78px;
    background: #fff;
    border-radius: 5px;
    font-size: 14px;
  }
  .market .market-mobile-date[aria-pressed='true'] {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
  }
  .market-month-grid {
    gap: 4px;
    background: transparent;
    border: 0;
    border-radius: 0;
  }
  .market-month-cell {
    background: transparent;
    min-height: 0;
    padding: 0;
  }
  .market-month-cell.is-outside {
    background: transparent;
  }
  .market-month-cell.is-today {
    box-shadow: none;
    background: transparent;
  }
  .market .market-mobile-number {
    font-size: 16px;
  }
  .market .market-mobile-place {
    font-size: 12px;
    line-height: 1.3;
  }
  .market-mobile-duty .market-planned-person {
    font-size: 16px;
  }
  .market-mobile-duty {
    border-color: var(--line);
    border-left-color: var(--brand);
  }
  .market-mobile-agenda-heading h2 {
    font-size: 21px;
  }
}
@media (max-width: 650px) {
  .app-header {
    padding: 12px 16px;
    height: 76px;
    min-height: 76px;
    gap: 10px;
  }
  .app-header .brand {
    font-size: 16px;
    gap: 9px;
  }
  .app-header .brand small {
    font-size: 10px;
  }
  .app-header .brand img {
    width: 36px;
    height: 36px;
  }
  .app-header nav {
    gap: 10px;
  }
  .app-header nav a {
    font-size: 14px;
  }
  .app-header nav button {
    font-size: 12px;
    padding: 8px;
  }
  .app-main {
    padding: 20px 14px 90px;
  }
  .primary-nav {
    position: fixed;
    bottom: 0;
    top: auto;
    left: 0;
    width: 100%;
    margin: 0;
    border: 0;
    border-top: 1px solid var(--line);
    border-radius: 0;
    padding: 6px 4px calc(7px + env(safe-area-inset-bottom));
    gap: 0;
    z-index: 40;
  }
  .primary-nav a {
    font-size: 11px;
    padding: 5px 2px;
    gap: 3px;
    flex-direction: column;
    min-height: 54px;
    border-radius: 7px;
    line-height: 1.35;
  }
  .primary-nav a > span {
    font-size: 23px;
    line-height: 1.2;
  }
  .market .market-heading {
    margin: 0 0 20px;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 12px;
  }
  .market .market-heading h1 {
    font-size: 28px;
  }
  .market .market-heading p:not(.eyebrow) {
    font-size: 14px;
  }
  .market .market-card,
  .panel,
  .stock-content .market-card {
    padding: 18px;
    margin-bottom: 16px;
  }
  .noel-site-grid,
  .admin-tiles {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .noel-stats {
    gap: 10px;
  }
  .noel-stats > div {
    padding: 15px;
  }
  .noel-stats strong {
    font-size: 30px;
  }
  .noel-stats span {
    min-height: 34px;
    font-size: 13px;
  }
  .section-title {
    flex-wrap: wrap;
  }
  .section-title h2 {
    font-size: 21px;
  }
  .market-calendar-toolbar {
    padding: 12px;
    gap: 12px;
  }
  .market-month-navigation {
    width: 100%;
    justify-content: space-between;
  }
  .market-month-navigation h2 {
    font-size: 21px;
  }
  .market-calendar-tools {
    gap: 6px;
    width: 100%;
  }
  .market .market-calendar-tools > .market-secondary {
    font-size: 13px;
    padding: 9px;
  }
  .market .market-view-switch {
    margin-left: auto;
  }
  .market .market-view-switch button {
    padding: 9px 11px;
  }
  .market .market-plan-filters {
    max-width: none;
  }
  .market-calendar-info > summary {
    padding: 14px 10px;
  }
  .stock-content .section-title .market-secondary {
    width: 100%;
  }
  .noel-stock-table {
    min-width: 450px;
  }
  .market .noel-stock-table th,
  .market .noel-stock-table td {
    font-size: 14px;
    padding: 13px 9px;
  }
  .noel-stock-table tbody th {
    min-width: 135px;
  }
  .noel-stock-table th:nth-child(3),
  .noel-stock-table td:nth-child(3) {
    display: none;
  }
  .noel-stock-table th:nth-last-child(2),
  .noel-stock-table td:nth-last-child(2) {
    display: none;
  }
  .market .noel-stock-table {
    min-width: 0;
  }
  .stock-status {
    font-size: 11px;
    white-space: normal;
  }
  .stock-locations a {
    min-width: 160px;
  }
  .admin-tile {
    padding: 20px;
  }
  .admin-tile p {
    min-height: 0;
  }
  .settings-location-list > a {
    padding: 17px;
  }
  .settings-form .market-table-wrap {
    margin: 0 -10px;
  }
  .market .noel-settings-table th {
    font-size: 14px;
    padding: 10px 6px;
  }
  .noel-settings-table td input {
    max-width: 90px;
    width: 100%;
    padding: 9px 7px;
  }
  .market .noel-settings-table td {
    padding: 12px 6px;
  }
  .market .market-table tbody th {
    font-size: 14px;
  }
  .market .market-parent-nav {
    display: none;
  }
  .market-collaborator-day {
    max-width: 100%;
  }
  .market-collaborator-day .market-card {
    margin-bottom: 14px;
  }
  .market .market-total div {
    font-size: 15px;
    gap: 12px;
  }
  .market .market-total .result {
    font-size: 18px;
  }
  .market .market-total div b {
    white-space: nowrap;
  }
  .app-footer {
    display: none;
  }
}
.market .market-calendar-select {
  display: none;
}
.market.is-planning-edit .market-calendar-select {
  display: flex;
}
@media (max-width: 680px) {
  .app-header {
    flex-wrap: nowrap;
    height: 72px;
    min-height: 72px;
  }
  .app-header nav {
    width: auto;
    gap: 8px;
    flex-shrink: 0;
  }
  .app-header .brand {
    font-size: 14px;
    min-width: 0;
  }
  .app-header .brand small {
    display: none;
  }
  .app-header .brand img {
    width: 30px;
    height: 30px;
  }
  .app-header .brand span {
    max-width: 145px;
    line-height: 1.25;
  }
}
.day-admin-summary {
  border-bottom: 1px solid var(--line);
  padding: 0 0 12px;
  margin-bottom: 22px;
}
.day-admin-summary .section-title {
  margin: 18px 0 0;
}
.day-admin-summary h2 {
  font-size: 25px;
}
.day-admin-summary p {
  color: var(--muted);
  margin: 8px 0;
}
.day-admin-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 22px;
}
.day-admin-columns > div {
  min-width: 0;
}
.cash-waiting {
  border: 1px dashed #cbd9df;
  padding: 18px;
  border-radius: 8px;
  margin-bottom: 20px;
}
.cash-waiting p {
  color: var(--muted);
  font-size: 15px;
}
.opening-correction {
  margin: 18px 0;
}
@media (max-width: 900px) {
  .day-admin-columns {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .day-admin-summary h2 {
    font-size: 21px;
  }
}
.market .agenda-person .lead-mark {
  display: inline;
  white-space: nowrap;
  font-size: 10px;
  padding: 1px 3px;
}
.market .agenda-person {
  padding: 3px 0;
}
.market .agenda-person small {
  line-height: 1.3;
}
.market .market-calendar-team {
  margin-top: 3px;
}
.market .market-calendar-chalet {
  padding: 7px;
}
.market .market-calendar-hours {
  margin: 4px 0;
}
.settings-save-top {
  display: flex;
  justify-content: flex-end;
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
  margin-bottom: 22px;
}
.stock-mobile-picker {
  display: none;
}
@media (max-width: 650px) {
  .stock-mobile-picker {
    display: block;
    margin: 0 0 20px;
    font-size: 15px;
  }
  .stock-mobile-picker select {
    display: block;
    width: 100%;
    margin-top: 7px;
  }
  .stock-locations {
    display: none;
  }
  .market .market-planning-table tr {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    margin-bottom: 14px;
    padding: 16px;
  }
  .market .market-planning-table td {
    font-size: 16px;
  }
}
@media (max-width: 650px) {
  .market-heading > .market-primary {
    display: none;
  }
  .market .market-heading p:not(.eyebrow) {
    display: none;
  }
  .market .market-heading {
    margin-bottom: 16px;
  }
  .market .market-calendar-toolbar {
    gap: 10px;
    padding: 10px;
  }
  .market .market-calendar-tools {
    display: flex;
    flex-wrap: nowrap;
    gap: 5px;
  }
  .market .market-calendar-tools > .market-secondary {
    width: auto;
    min-width: 0;
    flex: 0 1 auto;
    padding: 8px;
    font-size: 12px;
  }
  .market button[data-market='planning-edit'] {
    font-size: 0 !important;
  }
  .market button[data-market='planning-edit']::after {
    content: 'Équipes';
    font-size: 12px;
  }
  .market .market-view-switch {
    flex: 1;
    min-width: 104px;
    gap: 0;
  }
  .market .market-view-switch button {
    width: auto;
    min-width: 44px;
    flex: 1;
    font-size: 13px;
    padding: 8px 6px;
  }
  .market .market-month-navigation {
    min-height: 44px;
  }
  .market .market-plan-filters {
    margin-bottom: 12px;
  }
  .market .market-plan-filters > label {
    margin: 0;
  }
  .market .market-planning-table tr > td {
    padding: 10px 0;
  }
}
.market .day-card-hours {
  font-size: 24px;
  font-weight: 700;
  color: var(--brand);
  margin: 17px 0 10px;
}
@media (max-width: 650px) {
  .market .market-heading > a.market-primary {
    display: none;
  }
  .login-intro {
    display: none;
  }
  .login-page {
    padding: 30px 18px;
  }
  .market .market-day .market-primary {
    width: 100%;
    justify-content: center;
  }
  .market .market-planning-table .market-plan-date {
    display: block;
  }
}
.market small.stock-limit {
  display: none;
}
@media (max-width: 650px) {
  .market small.stock-limit {
    display: block;
    font-size: 12px;
    color: #516d79;
  }
}
.market label:has(> input[type='hidden']) {
  display: none;
}
.market .settings-form form > h2:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}
.market .noel-settings-table td label {
  margin: 0;
}
.market label.stock-mobile-picker {
  display: none;
}
@media (max-width: 650px) {
  .market label.stock-mobile-picker {
    display: block;
  }
}
.notification-title {
  margin-bottom: 22px;
}
.notification-title h1 {
  font-size: 32px;
  margin: 12px 0;
}
.notification-title p {
  color: var(--muted);
}
.notification-channel {
  padding: 20px;
  border: 1px solid #e4cda4;
  background: #fff5e5;
  border-radius: 10px;
  margin-bottom: 24px;
  color: #725116;
}
.notification-channel p {
  margin: 8px 0 0;
  font-size: 15px;
}
.notification-channel.configured {
  background: #eef5f2;
  border-color: #bad7c9;
  color: #254d3c;
}
.notification-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.notification-columns > div {
  min-width: 0;
}
.notification-rules {
  margin: 0;
}
.notification-rules > div {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.notification-rules > div:last-child {
  border-bottom: 0;
}
.notification-rules dt {
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 6px;
}
.notification-rules dd {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}
.notification-link {
  display: block;
  margin-bottom: 28px;
}
.setting-check {
  display: flex !important;
  align-items: center;
  gap: 10px;
}
.setting-check input {
  width: 20px;
  min-height: 20px;
  accent-color: var(--brand);
}
.notice-previews article {
  margin-top: 20px;
  padding: 15px;
  background: #f1f5f4;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.notice-previews pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: 14px/1.6 inherit;
}
.notification-counts {
  display: grid;
  gap: 12px;
}
@media (max-width: 900px) {
  .notification-columns {
    grid-template-columns: 1fr;
  }
}
.notice-previews pre {
  font-family: inherit;
  font-size: 14px;
  line-height: 1.6;
}
.setting-check {
  flex-direction: row !important;
  justify-content: flex-start !important;
  text-align: left;
}

.message-editor {
  margin: 1.5rem 0;
}
.message-editor-heading {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 1.5rem;
}
.message-editor-heading h2 {
  margin: 0.3rem 0;
}
.message-editor-heading p {
  max-width: 50rem;
}
.quiet-badge {
  border: 1px solid #cddbd3;
  border-radius: 2rem;
  padding: 0.55rem 0.9rem;
  font-size: 0.875rem;
  white-space: nowrap;
  color: #315345;
  background: #f3f8f5;
}
.message-editor-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}
.message-editor label {
  display: grid;
  gap: 0.45rem;
  margin: 1rem 0;
}
.message-editor input,
.message-editor textarea,
.message-editor select {
  font-size: 1rem;
  width: 100%;
  min-width: 0;
}
.message-editor textarea {
  line-height: 1.6;
  resize: vertical;
}
.message-editor .message-variables p {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}
.message-variables button {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  margin: 0 0.3rem 0.4rem 0;
  min-height: 44px;
  padding: 0.55rem 0.7rem;
  border: 1px solid #c8d9cf;
  border-radius: 0.6rem;
  background: #f6faf7;
  color: #174333;
  text-align: left;
}
.message-variables button span {
  color: #5c7064;
  font-size: 0.85rem;
}
.message-example {
  background: #eef4ef;
  border-radius: 1rem;
  padding: 1.5rem;
  margin-top: 1rem;
  min-width: 0;
}
.message-example pre {
  background: white;
  padding: 1.25rem;
  border-radius: 0.85rem;
  border: 1px solid #dce6df;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: inherit;
  line-height: 1.65;
}
.message-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.message-actions button {
  min-height: 44px;
}
[data-message-saved] {
  color: #174d38;
  font-weight: 600;
}
@media (max-width: 950px) {
  .message-editor-heading {
    display: block;
  }
  .quiet-badge {
    display: inline-block;
    white-space: normal;
    margin-bottom: 0.5rem;
  }
  .message-editor-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
}
.training-banner {
  padding: 1rem 1.2rem;
  border: 2px solid #b55e0b;
  border-radius: 0.8rem;
  background: #fff4df;
  color: #613700;
  margin-bottom: 1.2rem;
}
.training-banner p {
  margin: 0.5rem 0 0;
}
.opening-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.opening-site {
  border: 1px solid #d5e2d9;
  border-radius: 0.9rem;
  padding: 1.25rem;
  min-width: 0;
}
.opening-site h3 {
  margin-top: 0;
}
.opening-site dl > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid #e7eee9;
}
.opening-site dt {
  color: #51675b;
}
.opening-site dd {
  margin: 0;
  font-weight: 600;
  text-align: right;
}
.opening-site .market-actions {
  margin-top: 1rem;
}
.opening-test li {
  margin: 1rem 0;
  line-height: 1.6;
}
@media (max-width: 800px) {
  .opening-grid {
    grid-template-columns: 1fr;
  }
}
/* Point-of-sale workspaces: one context, one colour, one stock. */
.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 30px;
}
.dashboard-stats > div {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  display: grid;
  gap: 10px;
}
.dashboard-stats span {
  font-size: 14px;
  color: var(--muted);
}
.dashboard-stats strong {
  font-size: 34px;
  line-height: 1;
}
.dashboard-section {
  margin: 30px 0 38px;
}
.dashboard-section > .section-title {
  margin-bottom: 18px;
}
.point-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.point-card {
  min-width: 0;
  background: #fff;
  border: 1px solid #e0e7e5;
  border-top: 6px solid var(--site-color);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px #172d3605;
}
.point-card-main {
  display: block;
  padding: 22px;
  color: var(--ink);
  text-decoration: none;
  height: 100%;
}
.point-card-main:hover {
  background: #f9fbfa;
}
.point-card h2 {
  font-size: 25px;
  margin: 12px 0;
}
.point-badge {
  display: inline-block;
  color: var(--site-color);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.point-next {
  font-weight: 650;
}
.point-team {
  color: var(--muted);
  min-height: 28px;
}
.point-card-counts {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 18px 0;
}
.point-card-counts span {
  font-size: 12px;
  padding: 6px 9px;
  border-radius: 6px;
  background: #f1f5f4;
}
.point-card-counts .is-alert {
  color: #9a4115;
  background: #fff1e4;
}
.point-open {
  display: block;
  color: var(--site-color);
  font-size: 14px;
}
.point-mode > .market-heading {
  display: none;
}
.point-heading {
  border-top: 6px solid var(--site-color);
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.point-heading > div {
  display: flex;
  align-items: center;
  gap: 12px;
}
.point-heading h2 {
  font-size: 32px;
  letter-spacing: -0.03em;
  margin: 12px 0;
}
.point-heading > p {
  color: var(--muted);
  margin-bottom: 22px;
}
.point-color-mark {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--site-color);
}
.point-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 8px 0 0;
  border-top: 1px solid var(--line);
}
.point-tabs a {
  white-space: nowrap;
  padding: 11px 14px;
  border-radius: 8px;
  text-decoration: none;
  color: #57666c;
  font-size: 14px;
  font-weight: 650;
}
.point-tabs a[aria-current='page'] {
  background: var(--site-color);
  color: white;
}
.point-overview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}
.point-overview-grid > .market-card {
  margin: 0;
}
.point-alert {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.point-alert > span {
  color: #9a4115;
  font-size: 14px;
}
.point-document {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.point-document small {
  display: block;
  color: var(--muted);
  margin-top: 5px;
}
.point-document strong {
  overflow-wrap: anywhere;
}
.site-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 16px;
  margin: 16px 0 22px;
}
.site-legend a {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--ink);
  font-size: 13px;
  text-decoration: none;
}
.site-legend a > span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--site-color);
}
.market-calendar-chalet,
.market-card.market-day {
  border-left: 4px solid var(--site-color, var(--brand));
}
.site-planning-row > td:first-child {
  border-left: 4px solid var(--site-color);
}
.warehouse-context .stock-mobile-picker,
.warehouse-context .stock-locations {
  display: none !important;
}
.warehouse-context .stock-workspace {
  display: block;
}
.warehouse-context .stock-content {
  width: 100%;
  min-width: 0;
}
.stock-group,
.inventory-group {
  margin: 22px 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.stock-group:first-child,
.inventory-group:first-child {
  margin-top: 8px;
  border-top: 0;
}
.stock-group h3,
.inventory-group h3 {
  font-size: 18px;
  color: var(--brand);
  margin: 0 0 5px;
}
.stock-group-unit,
.inventory-group > p {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 16px;
}
.stock-group .market-line {
  font-size: 14px;
  gap: 20px;
}
.stock-group .market-line strong {
  white-space: nowrap;
}
.stock-group td small {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
}
.quantity-group {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
  margin: 18px 0;
}
.quantity-group > legend {
  font-weight: 750;
  font-size: 17px;
  padding: 0 8px;
  color: var(--brand);
}
.quantity-group > p {
  color: var(--muted);
  font-size: 13px;
  margin: 0 0 16px;
}
.supply-board {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.2fr);
  gap: 20px;
  margin: 20px 0;
}
.supply-palette {
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  max-height: 600px;
  overflow: auto;
}
.supply-palette > h3,
.supply-stops > h3 {
  font-size: 17px;
  margin-top: 0;
}
.supply-palette h4 {
  color: var(--brand);
  margin-bottom: 8px;
  font-size: 13px;
}
.supply-palette > label {
  display: block;
  font-size: 13px;
}
.supply-product {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  margin-bottom: 7px;
  background: #fff;
  cursor: grab;
}
.supply-product strong {
  font-size: 13px;
}
.supply-product small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 4px;
}
.supply-product button {
  min-width: 42px;
  min-height: 42px;
  padding: 7px;
}
.supply-destination {
  background: white;
  border: 2px dashed var(--site-color);
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 16px;
  min-width: 0;
}
.supply-destination h3 {
  margin: 0 0 8px;
  color: var(--site-color);
  font-size: 20px;
}
.supply-destination > p,
.supply-drop-hint {
  color: var(--muted);
  font-size: 13px;
}
.supply-draft-lines > label {
  font-size: 14px;
  margin-top: 14px;
  display: block;
}
.supply-draft-lines small {
  display: block;
  color: var(--muted);
}
.supply-draft-lines input {
  max-width: 160px;
  margin: 6px 0;
}
.supply-draft-lines > button {
  font-size: 12px;
  padding: 5px 8px;
  min-height: 30px;
}
[data-market-form='quick-restock'] {
  background: #fff;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.market [data-market-form='quick-restock'] > label {
  max-width: 500px;
}
@media (max-width: 1100px) {
  .point-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 650px) {
  .dashboard-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .dashboard-stats > div {
    padding: 14px;
  }
  .dashboard-stats strong {
    font-size: 28px;
  }
  .point-grid,
  .point-overview-grid,
  .supply-board {
    grid-template-columns: 1fr;
  }
  .point-card-main {
    padding: 18px;
  }
  .point-heading {
    padding: 16px;
  }
  .point-heading h2 {
    font-size: 27px;
  }
  .point-tabs {
    gap: 4px;
  }
  .point-tabs a {
    padding: 10px;
    font-size: 13px;
  }
  .stock-group .market-line {
    align-items: start;
  }
  .stock-group .market-line strong {
    white-space: normal;
    text-align: right;
  }
  .supply-palette {
    max-height: 320px;
  }
  .point-document {
    align-items: start;
  }
  .primary-nav a {
    font-size: 10px;
  }
}
/* Collaborateurs : un seul écran, navigation persistante en bas. */
.staff-app {
  min-height: 100dvh;
  background: #f5f6f3;
}
.staff-app .app-main {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 18px 18px 110px;
}
.staff-app .app-header {
  height: 72px;
  min-height: 72px;
  padding: 12px 18px;
}
.staff-app .brand span {
  font-size: 15px;
}
.staff-app .brand small {
  display: none;
}
.staff-app .app-header nav {
  display: flex;
  align-items: center;
  gap: 12px;
}
.staff-app .app-header nav a,
.staff-app .app-header nav button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 8px;
  border: 1px solid #dce4de;
  border-radius: 50%;
  background: white;
}
.staff-app svg {
  width: 24px;
  height: 24px;
  flex: none;
}

.staff-app .app-footer {
  display: none;
}
.staff-app .primary-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  top: auto;
  width: auto;
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  gap: 0;
  border-top: 1px solid #dce4de;
  padding: 8px 8px max(10px, env(safe-area-inset-bottom));
  background: white;
  z-index: 30;
  box-shadow: 0 -4px 25px #183c2410;
}
.staff-app .primary-nav a {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  text-align: center;
  padding: 6px 2px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 12px;
  min-height: 58px;
}
.staff-app .primary-nav a > span {
  display: block;
  width: 25px;
  height: 25px;
  font-size: 0;
}
.staff-app .primary-nav svg {
  width: 25px;
  height: 25px;
}
.staff-app .training-banner {
  font-size: 11px;
  padding: 8px 12px;
  margin-bottom: 18px;
  border-width: 1px;
  border-radius: 9px;
}
.staff-app .training-banner p {
  display: none;
}
.staff-welcome {
  margin: 10px 0 24px;
}
.staff-welcome p {
  color: #6d7b72;
  font-size: 13px;
  text-transform: capitalize;
  margin: 0 0 7px;
}
.staff-welcome h1 {
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: -1px;
  margin: 0;
  color: #173e32;
}
.staff-site {
  margin-bottom: 20px;
  padding: 20px 22px;
  background: #173f35;
  color: white;
  border-radius: 18px;
}
.staff-site > span {
  font-size: 10px;
  letter-spacing: 0.15em;
  color: #b9d4c8;
}
.staff-site h2 {
  font-size: 28px;
  margin: 7px 0;
}
.staff-site p {
  margin: 0;
  color: #d6e5dd;
  font-size: 14px;
  text-transform: capitalize;
}
.staff-presence {
  margin-top: 15px;
  padding-top: 13px;
  border-top: 1px solid #ffffff30;
  font-size: 13px;
}
.staff-card {
  margin-bottom: 16px;
  padding: 22px 20px;
  background: #fff;
  border: 1px solid #e0e6df;
  border-radius: 17px;
  box-shadow: 0 5px 18px #173f3505;
}
.staff-card h2 {
  font-size: 22px;
  line-height: 1.25;
  margin: 10px 0 12px;
}
.staff-card h3 {
  font-size: 18px;
}
.staff-card p {
  color: #65756b;
  line-height: 1.55;
  font-size: 14px;
}
.staff-card label {
  display: block;
  font-size: 14px;
  margin: 16px 0;
}
.staff-card input,
.staff-card textarea,
.staff-card select {
  width: 100%;
  box-sizing: border-box;
  margin-top: 7px;
  min-height: 48px;
  border: 1px solid #cdd8d0;
  border-radius: 10px;
  background: #fff;
  font-size: 17px;
  padding: 11px 12px;
  color: #203c2d;
}
.staff-card textarea {
  min-height: 75px;
}
.staff-card input:focus {
  outline: 2px solid #20795b;
}
.staff-action {
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-height: 52px;
  padding: 15px 16px;
  text-align: center;
  border-radius: 12px;
  font-size: 15px;
  text-decoration: none;
  margin-top: 18px;
  line-height: 1.3;
}
.staff-center {
  text-align: center;
  padding: 28px 20px;
}
.staff-center > svg {
  width: 56px;
  height: 56px;
  padding: 12px;
  background: #edf5ef;
  border-radius: 18px;
  color: #1c6248;
  box-sizing: content-box;
}
.staff-step {
  display: block;
  font-size: 11px;
  color: #45765d;
  font-weight: 700;
  letter-spacing: 0.09em;
}
.staff-fund {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 18px;
  margin-bottom: 16px;
  background: #e7f2eb;
  border-radius: 13px;
  color: #255e40;
  gap: 12px;
}
.staff-fund span {
  font-size: 12px;
  max-width: 65%;
}
.staff-fund strong {
  font-size: 21px;
}
.staff-inventory fieldset {
  border: 0;
  padding: 0;
  margin: 20px 0;
}
.staff-inventory legend {
  font-size: 15px;
  font-weight: 750;
  color: #395643;
  margin-bottom: 10px;
}
.staff-stock-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 10px;
  color: #6f8172;
  border-bottom: 1px solid #dce7df;
  padding: 15px 0 8px;
}
.staff-stock-line,
.staff-card label.staff-stock-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 108px;
  gap: 13px;
  align-items: center;
  padding: 12px 0;
  margin: 0;
  border-bottom: 1px solid #edf0ea;
}
.staff-stock-line strong {
  font-size: 13px;
  display: block;
  line-height: 1.35;
}
.staff-stock-line small,
.staff-stock-line > div > span {
  display: block;
  color: #6b7c70;
  font-size: 12px;
  margin-top: 5px;
}
.staff-stock-line input {
  margin: 0;
  width: 100%;
  font-size: 15px;
  padding: 8px;
  min-width: 0;
}
.staff-stock-line input::placeholder {
  font-size: 12px;
  color: #819486;
}
.staff-stock-line details > summary {
  padding: 12px 10px;
  border: 1px solid #d4ded5;
  border-radius: 9px;
  list-style: none;
  font-size: 12px;
  text-align: center;
  cursor: pointer;
}
.staff-stock-line:has(details[open]) {
  grid-template-columns: 1fr;
}
.staff-stock-line details[open] {
  padding: 15px;
  background: #f4f7f2;
  border-radius: 12px;
}
.staff-stock-line details[open] > summary {
  margin-bottom: 10px;
}
.staff-partial {
  padding: 8px 0;
}
.staff-hint {
  font-size: 12px !important;
}
.staff-open {
  display: inline-block;
  padding: 8px 13px;
  border-radius: 50px;
  background: #e4f2e8;
  color: #256342;
  font-size: 12px;
  font-weight: 700;
}
.staff-total {
  display: block;
  font-size: 25px;
  color: #1b6448;
  margin: 18px 0;
}
.staff-cash-result {
  padding: 16px;
  background: #edf5ef;
  border-radius: 12px;
  margin: 16px 0;
}
.staff-calendar {
  padding: 16px;
}
.staff-month {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-transform: capitalize;
  font-size: 15px;
}
.staff-month button {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #f0f4ee;
  font-size: 24px;
  color: #315d44;
}
.staff-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 5px;
  margin-top: 15px;
}
.staff-calendar-grid small {
  text-align: center;
  color: #849185;
  font-size: 11px;
  padding: 5px;
}
.staff-calendar-grid > button {
  position: relative;
  min-height: 38px;
  aspect-ratio: 1;
  border: 0;
  border-radius: 9px;
  color: #7a877b;
  background: transparent;
  font-size: 13px;
  cursor: pointer;
}
.staff-calendar-grid > button.has-work {
  background: #e7f0e7;
  color: #205c38;
  font-weight: 700;
}
.staff-calendar-grid > button.selected {
  background: #205c38;
  color: #fff;
}
.staff-calendar-grid > button.today {
  outline: 1px solid #315f43;
}
.staff-calendar-grid i {
  position: absolute;
  bottom: 4px;
  left: calc(50% - 2px);
  width: 4px;
  height: 4px;
  background: currentColor;
  border-radius: 50%;
}
.staff-planning-day {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  background: white;
  border: 1px solid #dfe7de;
  border-radius: 13px;
  padding: 17px;
  margin: 10px 0;
}
.staff-planning-day span {
  display: block;
  font-size: 12px;
  color: #7c877e;
  text-transform: capitalize;
}
.staff-planning-day strong {
  display: block;
  font-size: 18px;
  margin-top: 7px;
  color: #214630;
}
.staff-planning-day b {
  font-size: 14px;
  line-height: 1.7;
  text-align: right;
}
.staff-document {
  width: 100%;
  display: flex;
  gap: 14px;
  align-items: center;
  text-align: left;
  background: #f1f6ef;
  border: 1px solid #dee8db;
  border-radius: 12px;
  padding: 16px;
  color: #285537;
  min-height: 68px;
}
.staff-document small {
  display: block;
  font-size: 11px;
  margin-top: 5px;
  color: #748171;
}
.staff-delivery {
  padding: 12px 0;
  border-top: 1px solid #e2e9df;
  margin-top: 15px;
}
.staff-pick-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  border: 1px solid #e1e7dd;
  border-radius: 12px;
  margin: 8px 0;
  padding: 14px 10px;
  text-align: left;
  background: white;
  color: #24432d;
  cursor: pointer;
}
.staff-pick-item small {
  display: block;
  font-size: 11px;
  margin-top: 5px;
  color: #798474;
}
.staff-pick-item b {
  margin-left: auto;
  font-size: 11px;
  white-space: nowrap;
}
.staff-check {
  display: grid;
  place-items: center;
  flex: none;
  width: 23px;
  height: 23px;
  border: 1px solid #b7cbb5;
  border-radius: 7px;
}
.staff-pick-item.picked {
  background: #eaf4e8;
  opacity: 0.8;
}
.staff-pick-item.picked .staff-check {
  background: #2c6944;
  color: white;
}
.staff-scanner {
  width: min(92vw, 480px);
  padding: 20px;
  border: 0;
  border-radius: 20px;
  background: #fff;
  color: #1e3d29;
}
.staff-scanner::backdrop {
  background: #102119cc;
}
.staff-scanner video {
  width: 100%;
  min-height: 200px;
  background: #1a2b20;
  border-radius: 14px;
  margin: 15px 0;
}
.scanner-title {
  display: flex;
  align-items: center;
  gap: 12px;
}
.scanner-title h2 {
  margin: 0;
  font-size: 19px;
}
.scanner-title button {
  margin-left: auto;
  border: 0;
  background: #eef4eb;
  border-radius: 50%;
  width: 36px;
  height: 36px;
}
.forgot-password {
  border: 0;
  background: none;
  color: #246047;
  text-decoration: underline;
  cursor: pointer;
  margin-top: 20px;
  padding: 10px 0;
}
.recovery-test {
  padding: 12px 14px;
  border-radius: 12px;
  background: #fff4dc;
  color: #735526;
  font-size: 14px;
  line-height: 1.55;
}
.recovery-description {
  color: #53665c;
  line-height: 1.6;
}
.recovery-result {
  display: grid;
  gap: 22px;
  line-height: 1.65;
}
.recovery-result ol {
  margin: 0;
  padding-left: 24px;
  display: grid;
  gap: 14px;
}
.recovery-validity {
  padding-top: 18px;
  border-top: 1px solid #e4e8e1;
  color: #53665c;
}
.recovery-help summary {
  cursor: pointer;
  font-weight: 600;
  color: #205b49;
  padding: 6px 0;
}
.recovery-help p {
  padding-top: 12px;
  color: #53665c;
}
@media (min-width: 800px) {
  .staff-app .app-main {
    padding-top: 25px;
  }
  .staff-app .primary-nav {
    max-width: 720px;
    margin: auto;
    border-left: 1px solid #dfe5dd;
    border-right: 1px solid #dfe5dd;
    border-radius: 20px 20px 0 0;
  }
  .staff-app .app-header {
    padding-left: max(20px, calc((100vw - 720px) / 2));
    padding-right: max(20px, calc((100vw - 720px) / 2));
  }
}
@media (max-width: 400px) {
  .staff-app .brand span {
    font-size: 13px;
  }

  .staff-app .app-main {
    padding: 12px 14px 105px;
  }
  .staff-welcome h1 {
    font-size: 28px;
  }
  .staff-card {
    padding: 19px 16px;
  }
}
/* Administration : quatre entrées, stocks séparés, besoins directement lisibles. */
.admin-app .primary-nav svg {
  width: 25px;
  height: 25px;
}
.admin-app .training-banner {
  padding: 9px 14px;
  font-size: 12px;
  border-width: 1px;
  border-radius: 10px;
  margin-bottom: 24px;
}
.admin-app .training-banner p {
  display: none;
}
.admin-settings-button {
  display: flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  color: #41604e;
}
.admin-settings-button > span {
  font-size: 13px;
}
.admin-app .app-footer {
  display: none;
}
.admin-simple {
  max-width: 1240px;
}
.admin-welcome {
  margin: 12px 0 26px;
}
.admin-welcome h1,
.admin-page-title h1 {
  font-size: 32px;
  letter-spacing: -1px;
  line-height: 1.2;
  color: #183d30;
  margin: 7px 0 10px;
}
.admin-welcome p,
.admin-page-title p {
  color: #758278;
  font-size: 14px;
}
.admin-welcome > p:first-child {
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.1em;
}
.admin-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
  margin-bottom: 28px;
}
.admin-summary a {
  border: 1px solid #dfe7df;
  border-radius: 14px;
  background: #fff;
  padding: 20px;
  text-decoration: none;
  color: #284b35;
}
.admin-summary span {
  display: block;
  font-size: 12px;
  color: #6a7e70;
  line-height: 1.35;
}
.admin-summary strong {
  display: block;
  font-size: 32px;
  margin-top: 10px;
  line-height: 1.1;
}
.admin-section {
  margin: 30px 0;
}
.admin-section h2,
.admin-simple > .section-title h2 {
  font-size: 23px;
  letter-spacing: -0.4px;
}
.admin-section h3 {
  font-size: 18px;
}
.admin-today-grid,
.admin-restock-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.admin-today-card {
  border: 1px solid #dce6dc;
  border-top: 4px solid var(--site-color);
  border-radius: 15px;
  background: #fff;
  padding: 22px;
  color: #25432f;
  text-decoration: none;
}
.admin-today-card > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 13px;
}
.admin-state {
  display: inline-block;
  background: #eaf2e9;
  padding: 6px 9px;
  border-radius: 50px;
  font-size: 11px;
  color: #396341;
  font-weight: 650;
}
.admin-today-card h3 {
  margin: 20px 0 14px;
  font-size: 24px;
}
.admin-today-card p {
  font-size: 15px;
  line-height: 1.7;
  margin: 10px 0;
}
.admin-today-card small {
  display: block;
  border-top: 1px solid #e5ebe1;
  margin-top: 15px;
  padding-top: 14px;
  color: #7c8b7e;
  font-size: 12px;
}
.admin-quiet {
  padding: 20px;
  border: 1px dashed #ccd9cc;
  border-radius: 13px;
  color: #7c887b;
  background: #f8faf5;
  font-size: 14px;
}
.admin-actions-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.admin-shortcut {
  display: flex;
  align-items: center;
  border: 1px solid #dce6da;
  border-radius: 12px;
  padding: 18px;
  background: white;
  color: #315b3b;
  text-decoration: none;
  font-size: 14px;
  line-height: 1.5;
}
.admin-shortcut:after {
  content: '→';
  margin-left: auto;
  padding-left: 12px;
}
.admin-stock-hub {
  margin: 22px 0;
}
.admin-location-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.admin-location-card {
  display: flex;
  gap: 16px;
  align-items: center;
  border: 1px solid #dce7db;
  border-left: 4px solid var(--site-color, #2b6745);
  border-radius: 13px;
  background: white;
  padding: 22px 18px;
  color: #284734;
  text-decoration: none;
}
.admin-location-card > div {
  min-width: 0;
  flex: 1;
}
.admin-location-card > svg {
  width: 38px;
  height: 38px;
  color: #396c4d;
  flex: none;
}
.admin-location-card span {
  font-size: 10px;
  letter-spacing: 0.07em;
  color: #7b8b7d;
}
.admin-location-card h2 {
  font-size: 21px !important;
  line-height: 1.25;
  margin: 8px 0;
}
.admin-location-card p {
  font-size: 12px;
  color: #728374;
  margin: 8px 0 0;
}
.admin-location-card > b {
  font-size: 23px;
  font-weight: 400;
  flex: none;
}
.admin-location-card.warehouse-card {
  background: #ecf4ec;
  border-left: 4px solid #27673d;
  margin-bottom: 28px;
  max-width: 620px;
}
.admin-section-label {
  font-size: 15px !important;
  color: #69806b;
  margin: 22px 0 15px;
  font-weight: 550;
}
.admin-panel {
  display: block;
  background: white;
  border: 1px solid #dde6da;
  border-radius: 14px;
  padding: 22px;
  margin-bottom: 16px;
}
.admin-panel h3 {
  font-size: 18px;
  margin: 0 0 14px;
  color: #31553a;
}
.admin-panel p {
  font-size: 13px;
  color: #778774;
  line-height: 1.5;
}
.admin-needs-list {
  margin: 18px 0;
}
.admin-needs-list > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #edf1e8;
  gap: 15px;
  padding: 10px 0;
  font-size: 13px;
}
.admin-needs-list strong {
  text-align: right;
  font-size: 13px;
}
.admin-panel > .market-primary {
  display: block;
  width: 100%;
  text-align: center;
  margin-top: 18px;
  font-size: 14px;
  padding: 13px;
  border-radius: 10px;
}
.admin-mission-link {
  color: #315b39;
  text-decoration: none;
  margin: 0;
}
.admin-mission-link h3 {
  margin: 18px 0 10px;
}
.admin-mission-link > strong {
  font-size: 13px;
}
.admin-purchase-list > article {
  display: flex;
  align-items: center;
  gap: 22px;
  border-bottom: 1px solid #e8eee3;
  padding: 18px 0;
}
.admin-purchase-list > article:first-child {
  padding-top: 0;
}
.admin-purchase-list > article:last-child {
  border: 0;
  padding-bottom: 0;
}
.admin-purchase-list article > div {
  flex: 1;
  min-width: 0;
}
.admin-purchase-list h3 {
  font-size: 16px;
  margin: 0 0 7px;
}
.admin-purchase-list p {
  font-size: 12px;
  margin: 0;
}
.admin-purchase-list small {
  display: block;
  font-size: 11px;
  margin-top: 6px;
  color: #7c8877;
}
.admin-purchase-list article > strong {
  font-size: 17px;
  text-align: right;
  color: #3c6b43;
  max-width: 42%;
}
.admin-stock-head,
.admin-stock-row {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr) minmax(0, 0.8fr);
  gap: 18px;
  align-items: center;
}
.admin-stock-head {
  color: #7a8d79;
  border-bottom: 1px solid #dfe8db;
  padding: 8px 0 13px;
  font-size: 11px;
}
.admin-stock-head > span:not(:first-child) {
  text-align: right;
}
.admin-stock-row {
  padding: 14px 0;
  border-bottom: 1px solid #edf1e8;
  font-size: 13px;
  line-height: 1.4;
}
.admin-stock-row:last-child {
  border: 0;
  padding-bottom: 0;
}
.admin-stock-row > b,
.admin-stock-row > span:last-child {
  text-align: right;
}
.admin-stock-row b {
  font-size: 14px;
}
.admin-stock-row small {
  display: block;
  font-size: 10px;
  font-weight: 450;
  color: #80917b;
  margin-top: 5px;
}
.admin-stock-row.low-stock > span:last-child,
.admin-stock-row.low-stock small {
  color: #a26220;
}
.admin-stock-controls details {
  padding: 17px 0;
  border-top: 1px solid #e5ebdf;
}
.admin-stock-controls summary,
.admin-secondary summary,
.admin-extra-products summary {
  font-size: 14px;
  font-weight: 600;
  color: #4e6d50;
  cursor: pointer;
}
.admin-stock-controls form {
  max-width: 620px;
  margin-top: 20px;
}
.admin-stock-controls form > label {
  margin-bottom: 18px;
}
.admin-stock-controls form .market-primary {
  width: 100%;
  margin-top: 18px;
}
.admin-secondary,
.admin-extra-products {
  background: #f6f9f3;
  padding: 17px 20px;
  border: 1px solid #dce6d6;
  border-radius: 13px;
  margin: 18px 0;
}
.admin-secondary p {
  font-size: 13px;
  color: #6e826d;
}
.admin-footnote {
  font-size: 12px;
  line-height: 1.5;
  color: #7a8974;
  margin: 18px 0;
}
.admin-simple > .supply-board,
.admin-extra-products .supply-board {
  display: block;
}
.admin-simple .supply-destination {
  margin: 16px 0;
}
.admin-simple [data-market-form='quick-restock'] {
  background: white;
  padding: 22px;
  border: 1px solid #dce6d6;
  border-radius: 14px;
}
.admin-simple [data-market-form='quick-restock'] > label {
  display: block;
  max-width: 520px;
  margin: 15px 0;
}
.admin-simple [data-market-form='quick-restock'] > button {
  width: 100%;
  margin-top: 15px;
  max-width: 520px;
}
.admin-settings-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
}
.admin-settings-grid > a {
  margin: 0;
  color: #365b3c;
  text-decoration: none;
}
.admin-settings-grid h2 {
  font-size: 19px;
  margin: 0 0 10px;
}
.admin-settings-grid strong {
  font-size: 12px;
}
.admin-app .point-heading {
  padding: 20px;
  margin-bottom: 22px;
}
.admin-app .point-tabs {
  gap: 4px;
}
.admin-app .point-tabs a {
  padding: 8px 10px;
  font-size: 12px;
}
.admin-app .point-overview-grid .market-card {
  border-radius: 14px;
}
.admin-app .market-heading > p,
.admin-app .market-sync {
  font-size: 11px;
}
@media (max-width: 1000px) {
  .admin-location-grid,
  .admin-settings-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .admin-actions-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 650px) {
  .admin-app .primary-nav {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .admin-app .primary-nav a > span {
    display: block;
    width: 25px;
    height: 25px;
  }
  .admin-app .app-header .brand span {
    font-size: 12px;
    max-width: 110px;
  }
  .admin-app .app-header nav {
    gap: 9px;
  }
  .admin-app .admin-settings-button {
    font-size: 23px;
  }
  .admin-app .admin-settings-button > span {
    display: none;
  }
  .admin-app .app-header nav a[aria-label='Mon compte et mot de passe'] {
    font-size: 12px;
  }
  .admin-app .app-header nav button {
    font-size: 10px;
  }
  .admin-app .training-banner {
    font-size: 10px;
    padding: 7px 10px;
    margin-bottom: 18px;
  }
  .admin-welcome h1,
  .admin-page-title h1 {
    font-size: 28px;
  }
  .admin-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .admin-summary a {
    padding: 16px;
  }
  .admin-summary strong {
    font-size: 28px;
  }
  .admin-location-grid,
  .admin-restock-grid,
  .admin-today-grid,
  .admin-settings-grid {
    grid-template-columns: 1fr;
  }
  .admin-location-card {
    padding: 20px 16px;
  }
  .admin-section {
    margin: 25px 0;
  }
  .admin-panel {
    padding: 18px 15px;
  }
  .admin-stock-head,
  .admin-stock-row {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 0.75fr);
    gap: 11px;
  }
  .admin-stock-row {
    font-size: 12px;
  }
  .admin-stock-row b {
    font-size: 12px;
  }
  .admin-purchase-list > article {
    gap: 14px;
    flex-wrap: wrap;
  }
  .admin-purchase-list article > strong {
    font-size: 15px;
  }
  .admin-app .point-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 5px;
  }
  .admin-app .point-tabs a {
    white-space: nowrap;
  }
  .admin-simple > .section-title {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 12px;
  }
}
.admin-stock-search {
  display: block;
  max-width: 520px;
  font-size: 12px;
  color: #6b806b;
  margin: 20px 0;
}
.admin-stock-search input {
  display: block;
  width: 100%;
  border: 1px solid #d0ddcc;
  border-radius: 11px;
  background: white;
  padding: 12px 14px;
  min-height: 46px;
  font-size: 15px;
  margin-top: 7px;
}
.admin-stock-groups [hidden] {
  display: none !important;
}

/* Une couleur pleine par lieu, sur toute la vignette du planning. */
.market .market-calendar-chalet,
.market .market-planning-table .site-planning-row,
.market .market-planning-table .site-planning-row > td,
.market .market-mobile-duty,
.staff-planning-day,
.staff-calendar-grid > button.has-work,
.market .market-mobile-date[style*='--planning-fill'] {
  background: var(--planning-fill);
  color: var(--site-ink);
  border-color: transparent;
}
.market .market-calendar-chalet {
  border-left: 0;
}
.market
  .market-calendar-chalet
  :is(strong, small, .market-calendar-hours, .market-calendar-team, .market-calendar-note),
.market .site-planning-row :is(strong, small, .market-person, .market-plan-date),
.market .market-mobile-duty :is(h3, p, .market-duty-type, .market-duty-time),
.staff-planning-day :is(span, strong, b),
.market .market-mobile-date[style*='--planning-fill'] :is(span, .market-mobile-number) {
  color: inherit;
}
.market .market-calendar-chalet :is(.lead-mark, .market-staffing-gap),
.market .site-planning-row .market-pill {
  color: inherit;
  background: #ffffff25;
}
.market .site-planning-row > td:first-child {
  border-left: 0;
}
.staff-calendar-grid > button.has-work.selected {
  outline: 3px solid #172033;
  outline-offset: 2px;
}
.staff-calendar-grid > button.multiple-sites > span,
.market .market-mobile-date[style*='linear-gradient'] > .market-mobile-number {
  color: #172033;
  background: #fffffff0;
  border-radius: 6px;
  padding: 2px 5px;
}
.market .market-mobile-date[style*='linear-gradient'] > span {
  color: #172033;
  background: #fffffff0;
  border-radius: 4px;
}
.document-library-list {
  display: grid;
  gap: 16px;
}
.document-library h2 {
  font-size: 18px;
  overflow-wrap: anywhere;
}
.document-upload {
  margin-bottom: 24px;
}
.document-library summary {
  cursor: pointer;
  font-weight: 700;
}
.document-library form {
  margin-top: 20px;
}
.document-library form > label {
  display: grid;
  gap: 8px;
  margin: 15px 0;
}
.document-markets {
  border: 0;
  margin: 20px 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
}
.document-markets legend {
  margin-bottom: 12px;
  font-weight: 700;
}
.document-markets label {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #d8e2de;
  border-left: 5px solid var(--site-color);
  border-radius: 8px;
  padding: 12px;
  cursor: pointer;
}
.document-markets input {
  width: 20px;
  height: 20px;
  accent-color: var(--site-color);
}
.document-viewer {
  width: min(980px, 96vw);
  height: 94dvh;
  max-height: 94dvh;
  border: 0;
  border-radius: 12px;
  padding: 0;
  background: #edf0ef;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}
.document-viewer::backdrop {
  background: #12251dcf;
}
.document-viewer[open] {
  display: flex;
  flex-direction: column;
}
.document-viewer header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: white;
  padding: 14px;
  flex-shrink: 0;
}
.document-viewer h2 {
  font-size: 17px;
  margin: 0 0 6px;
  overflow-wrap: anywhere;
}
.document-viewer small {
  color: #52665c;
}
.document-view-notice {
  font-size: 12px;
  margin: 0;
  background: #fff7d6;
  padding: 8px 14px;
}
.document-view-scroll {
  flex: 1;
  overflow: auto;
  min-height: 0;
  padding: 12px;
}
.document-view-scroll img {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
  -webkit-user-drag: none;
}
.document-viewer footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  background: white;
  flex-shrink: 0;
}
.document-concealed .document-view-scroll {
  visibility: hidden;
}
@media (max-width: 650px) {
  .admin-app .primary-nav {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  .admin-app .primary-nav a {
    font-size: 10px;
    padding: 8px 2px;
  }
  .document-viewer {
    width: 100vw;
    max-width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
  }
}
@media print {
  body:has(.document-viewer[open]) * {
    visibility: hidden !important;
  }
  .document-viewer {
    display: none !important;
  }
}
.document-resume {
  display: none;
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  padding: 16px;
}
.document-concealed .document-resume {
  display: block;
}
.staff-app .primary-nav {
  grid-template-columns: repeat(var(--nav-count, 4), minmax(0, 1fr));
}
.staff-arrived {
  border: 2px solid #72ac85;
}
.staff-hot-product {
  border: 1px solid #dde4df;
  border-radius: 12px;
  padding: 14px;
  margin: 12px 0;
}
.staff-hot-product h3 {
  margin: 0 0 7px;
}
.staff-hot-count {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.staff-hot-count label {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 7px;
  font-size: 13px;
}
.staff-hot-count input {
  min-width: 0;
  width: 100%;
  min-height: 46px;
  font-size: 18px;
}
.purchase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}
.purchase-grid label {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.purchase-grid input {
  width: 100%;
  min-width: 0;
}

.planning-vacancies details {
  border-top: 1px solid var(--line, #ddd);
  padding: 14px 0;
}
.planning-vacancies summary {
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.planning-vacancies summary span {
  color: #854d0e;
}
.planning-vacancies form {
  margin-top: 14px;
  max-width: 520px;
}

/* Administration : sections distinctes, navigation constante et contrastes explicites. */
.admin-app {
  background: #eef2f6;
  color: #142536;
}
.admin-app .app-main {
  max-width: 1800px;
  padding: 28px 32px 64px 272px;
}
.admin-app .primary-nav {
  left: 0;
  top: 86px;
  bottom: 0;
  width: 236px;
  padding: 24px 14px;
  background: #142b3a;
  display: flex;
  flex-direction: column;
  gap: 7px;
  overflow-y: auto;
  border: 0;
  border-radius: 0;
}
.admin-app .primary-nav a {
  min-height: 49px;
  color: #e2ecf2;
  background: transparent;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 16px;
  white-space: nowrap;
}
.admin-app .primary-nav a:hover {
  background: #294656;
  color: #fff;
}
.admin-app .primary-nav a[aria-current='page'] {
  background: #fff;
  color: #102d3b;
  box-shadow: 0 2px 8px #0002;
}
.admin-app .primary-nav svg {
  width: 23px;
  height: 23px;
  stroke: currentColor;
}
.admin-app .admin-panel,
.admin-app .market-card {
  background: #fff;
  border: 1px solid #c7d2dd;
  box-shadow: 0 2px 5px #17334d08;
}
.admin-app h1 {
  color: #122b3c;
  font-size: 30px;
  line-height: 1.2;
}
.admin-app .market-calendar-toolbar {
  background: #fff;
  border: 1px solid #b6c6d2;
  border-radius: 12px;
  padding: 18px;
  margin: 20px 0;
  gap: 18px;
}
.admin-app .market-view-switch button {
  color: #173348;
  background: #e9eff4;
  border: 1px solid #a8bac9;
  min-height: 44px;
}
.admin-app .market-view-switch button[aria-pressed='true'] {
  background: #173348;
  color: #fff;
}
.admin-app .market-month-cell {
  background: #fff;
  color: #142536;
  border: 1px solid #bccbd6;
  min-height: 155px;
}
.admin-app .market-month-cell > time {
  color: #142536;
  font-weight: 800;
  font-size: 17px;
}
.admin-app .market-calendar-assignment {
  background: var(--planning-fill, #e6edf4);
  color: var(--site-ink, #142536);
  padding: 10px;
  border-radius: 8px;
  margin: 6px 0;
}
.admin-app .market-calendar-assignment a,
.admin-app
  .market-calendar-assignment
  :is(strong, small, .market-calendar-team, .agenda-person, .market-calendar-hours) {
  color: inherit;
}
.admin-app .market-planning-table .site-planning-row > td {
  background: var(--planning-fill, #e6edf4) !important;
  color: var(--site-ink, #142536) !important;
  border-bottom: 3px solid #eef2f6;
  padding: 16px;
}
.admin-app
  .market-planning-table
  .site-planning-row
  :is(strong, small, .market-person, .market-plan-date) {
  color: inherit !important;
}
.admin-app
  .market-planning-table
  .site-planning-row
  :is(.market-pill, .market-secondary, a.btn, button) {
  background: #fff !important;
  color: #142536 !important;
  border: 1px solid #c2ced8;
}
.admin-app :is(input, select, textarea) {
  background: #fff;
  color: #142536;
  border: 1px solid #9cabb8;
}
.admin-app .market-calendar-closed {
  color: #394f60;
  background: #e3eaf0;
}
.admin-app .market-staffing-gap {
  background: #fff3d3;
  color: #6a4000 !important;
  padding: 5px 8px;
  border-radius: 6px;
}
.admin-app .market-calendar-assignment .market-staffing-gap {
  color: #6a4000 !important;
}
@media (max-width: 900px) {
  .admin-app .app-main {
    padding: 18px 14px 40px;
    margin: 0;
  }
  .admin-app .primary-nav {
    position: sticky;
    top: 0;
    bottom: auto;
    left: auto;
    width: auto;
    margin: -1px -14px 20px;
    padding: 9px 10px;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    border-radius: 0;
    background: #142b3a;
    z-index: 30;
    gap: 6px;
  }
  .admin-app .primary-nav a {
    min-width: 90px;
    min-height: 48px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 8px 10px;
    font-size: 13px;
  }
  .admin-app .primary-nav a > span {
    display: block;
    height: 23px;
  }
  .admin-app .app-footer {
    margin-left: 0;
  }
  .admin-app h1 {
    font-size: 26px;
  }
  .admin-app .market-calendar-toolbar {
    padding: 12px;
  }
}

@media (min-width: 901px) {
  .admin-app .planning-person-filter {
    display: flex;
    align-items: end;
    gap: 14px;
  }
  .admin-app .planning-person-filter > label {
    width: 280px;
  }
  .admin-app .market-plan-filters {
    max-width: 440px;
    margin: 12px 0;
  }
  .admin-app .planning-season-summary {
    padding: 12px 16px;
  }
  .admin-app .market-calendar-toolbar {
    margin: 12px 0;
  }
  .admin-app .site-legend {
    margin: 10px 0;
  }
}

.purchase-add-row {
  display: grid;
  grid-template-columns: minmax(200px, 2fr) minmax(120px, 1fr) auto;
  gap: 12px;
  align-items: end;
}
.purchase-draft-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid #d6e0e8;
  padding: 12px 0;
}
.purchase-draft-row label {
  flex: 1;
}
.purchase-draft-row input {
  max-width: 180px;
}
.admin-summary > div {
  padding: 20px;
  background: white;
  border: 1px solid #c7d2dd;
  border-radius: 12px;
}
.admin-summary > div span,
.admin-summary > div strong {
  display: block;
}
.admin-summary > div strong {
  font-size: 26px;
  margin-top: 10px;
}
@media (max-width: 700px) {
  .purchase-add-row {
    grid-template-columns: 1fr;
  }
  .purchase-add-row button {
    width: 100%;
  }
  .admin-app .market-table {
    font-size: 14px;
  }
}

.staff-app {
  background: #faf6ee;
}
.staff-app .staff-welcome {
  border-radius: 20px;
  background: #143c31;
  color: #fff;
  padding: 22px;
  position: relative;
}
.staff-app .staff-welcome:after {
  content: '✦';
  position: absolute;
  right: 24px;
  top: 16px;
  color: #e4bd73;
  font-size: 40px;
}
.staff-app .staff-welcome h1,
.staff-app .staff-welcome p {
  color: #fff;
}
.staff-app .staff-card {
  border: 1px solid #e2d5bd;
  box-shadow: 0 3px 14px #44301008;
  border-radius: 18px;
}
.journey-card .staff-step {
  color: #74551e;
  background: #f5e8ce;
  border-radius: 20px;
  padding: 6px 12px;
  display: inline-block;
}
.journey-important {
  padding: 16px;
  border-left: 5px solid #b58326;
  background: #fff3ce;
  color: #443313;
  font-weight: 700;
  line-height: 1.6;
}
.journey-result {
  padding: 18px;
  background: #eaf3ed;
  border-radius: 12px;
  margin: 15px 0;
  display: grid;
  gap: 10px;
}
.journey-result strong {
  font-size: 24px;
  color: #133e2d;
}
.direction-instant summary {
  font-weight: 750;
  color: #143c31;
}
.staff-app textarea {
  font-size: 17px;
  min-height: 100px;
}
.staff-app .staff-hot-count input::placeholder {
  color: #52685e;
}
.staff-app .staff-action {
  min-height: 54px;
  border-radius: 13px;
}
.staff-app .staff-inventory fieldset {
  border-color: #e4d5b7;
}

/* Statistiques administrateur : trois vues, lecture immédiate sur PC et téléphone. */
.stats-dashboard {
  color: #172b32;
  max-width: 1440px;
  margin: auto;
}
.stats-dashboard .stats-tabs {
  display: flex;
  gap: 8px;
  margin: 20px 0;
  flex-wrap: wrap;
}
.stats-dashboard .stats-tabs button {
  border: 1px solid #c4d2d7;
  background: #fff;
  color: #243c44;
  padding: 13px 24px;
  border-radius: 12px;
  font-weight: 750;
  font-size: 16px;
  cursor: pointer;
}
.stats-dashboard .stats-tabs button[aria-pressed='true'] {
  background: #164e47;
  color: #fff;
  border-color: #164e47;
}
.stats-dashboard .stats-filters {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: end;
}
.stats-dashboard .stats-filters label {
  display: grid;
  gap: 7px;
  flex: 1;
  min-width: 150px;
  font-weight: 650;
}
.stats-dashboard .stats-filters input,
.stats-dashboard .stats-filters select {
  width: 100%;
  min-height: 46px;
  background: #fff;
  color: #172b32;
  border: 1px solid #aebfc5;
  border-radius: 8px;
  padding: 10px;
  box-sizing: border-box;
}
.stats-dashboard .stats-shortcuts {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 14px 0;
}
.stats-dashboard .stats-shortcuts button {
  background: #edf3f5;
  border: 1px solid #c4d2d7;
  color: #243c44;
  border-radius: 8px;
  padding: 10px 14px;
  cursor: pointer;
}
.stats-dashboard .stats-test-toggle {
  display: flex;
  gap: 9px;
  align-items: center;
  font-size: 14px;
  margin-top: 12px;
}
.stats-dashboard .stats-test-toggle input {
  width: 19px;
  height: 19px;
  accent-color: #164e47;
}
.stats-dashboard .stats-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
  margin: 20px 0;
}
.stats-dashboard .stats-metric {
  background: #fff;
  border: 1px solid #d4dfe3;
  padding: 20px;
  border-radius: 14px;
  display: grid;
  gap: 10px;
  align-content: start;
}
.stats-dashboard .stats-metric > span {
  font-size: 14px;
  font-weight: 650;
  color: #435b65;
}
.stats-dashboard .stats-metric > strong {
  font-size: 28px;
  letter-spacing: -0.6px;
  color: #164e47;
}
.stats-dashboard small {
  color: #516771;
  line-height: 1.5;
}
.stats-dashboard .stats-warning {
  background: #fff3d6;
  border: 1px solid #e5cc8c;
  border-radius: 10px;
  padding: 12px 16px;
  color: #654700;
  line-height: 1.5;
}
.stats-dashboard .stats-explanation {
  background: #edf4f6;
  padding: 16px;
  border-radius: 10px;
  line-height: 1.65;
}
.stats-dashboard .stats-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.stats-dashboard .stats-heading h2 {
  margin: 0;
}
.stats-dashboard .stats-heading p {
  margin: 8px 0 0;
}
.stats-dashboard .stats-sales,
.stats-dashboard .stats-consumption {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 16px;
}
.stats-dashboard .stats-sale {
  border: 1px solid #cdd9de;
  border-top: 5px solid var(--site-color, #164e47);
  border-radius: 12px;
  padding: 18px;
  background: #fff;
}
.stats-dashboard .stats-sale header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
  margin-bottom: 18px;
}
.stats-dashboard .stats-sale header div {
  display: grid;
  gap: 6px;
}
.stats-dashboard .stats-sale header span {
  font-size: 14px;
  color: #526873;
}
.stats-dashboard .stats-sale header > b {
  font-size: 21px;
  color: #164e47;
  white-space: nowrap;
}
.stats-dashboard .stats-sale header > b.stats-pending {
  font-size: 14px;
  background: #fff0c9;
  color: #654700;
  padding: 7px;
  border-radius: 8px;
}
.stats-dashboard dl {
  display: grid;
  gap: 10px;
  margin: 0;
}
.stats-dashboard dl > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
}
.stats-dashboard dt {
  color: #435b65;
}
.stats-dashboard dd {
  margin: 0;
  font-weight: 700;
  text-align: right;
}
.stats-dashboard .stats-consumption article {
  border: 1px solid #d4dfe3;
  border-radius: 12px;
  padding: 18px;
  display: grid;
  gap: 12px;
}
.stats-dashboard .stats-consumption h3 {
  font-size: 16px;
  margin: 0;
}
.stats-dashboard .stats-consumption article > strong {
  font-size: 21px;
  color: #164e47;
}
.stats-dashboard .stats-consumption article > span {
  font-size: 13px;
  color: #526873;
}
.stats-dashboard .stats-buy {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid #dce5e9;
}
.stats-dashboard .stats-buy p {
  margin: 7px 0;
}
.stats-dashboard .stats-buy > b {
  color: #164e47;
  text-align: right;
}
.stats-dashboard .stats-empty {
  padding: 28px 20px;
  background: #f3f6f8;
  border-radius: 12px;
  line-height: 1.6;
  color: #435b65;
}
.stats-dashboard .stats-bars {
  display: grid;
  gap: 13px;
  margin: 20px 0;
}
.stats-dashboard .stats-bars > div {
  display: grid;
  grid-template-columns: 80px 1fr 110px;
  gap: 15px;
  align-items: center;
  font-size: 14px;
}
.stats-dashboard .stats-bars i {
  height: 18px;
  background: #edf3f5;
  border-radius: 5px;
  overflow: hidden;
}
.stats-dashboard .stats-bars b {
  display: block;
  height: 100%;
  background: #32877b;
  border-radius: 5px;
}
.stats-dashboard .stats-bars strong {
  text-align: right;
}
.stats-dashboard details summary {
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
}
@media (max-width: 600px) {
  .stats-dashboard .stats-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
  }
  .stats-dashboard .stats-tabs button {
    padding: 12px 5px;
    font-size: 13px;
  }
  .stats-dashboard .stats-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .stats-dashboard .stats-metric {
    padding: 14px;
    min-width: 0;
  }
  .stats-dashboard .stats-metric > strong {
    font-size: 22px;
    overflow-wrap: anywhere;
  }
  .stats-dashboard .stats-filters {
    gap: 10px;
  }
  .stats-dashboard .stats-filters label {
    min-width: 120px;
  }
  .stats-dashboard .stats-sales,
  .stats-dashboard .stats-consumption {
    grid-template-columns: minmax(0, 1fr);
  }
  .stats-dashboard .stats-bars > div {
    grid-template-columns: 60px 1fr 83px;
    gap: 7px;
    font-size: 12px;
  }
  .stats-dashboard .stats-buy {
    gap: 12px;
  }
  .stats-dashboard .admin-panel {
    padding: 16px;
  }
}
.stats-dashboard .stats-test-toggle {
  flex-direction: row;
  text-align: left;
  justify-content: flex-start;
}
.stats-dashboard .stats-filters input,
.stats-dashboard .stats-filters select {
  min-width: 0;
  max-width: 100%;
}
.staff-home-day {
  display: block;
  text-decoration: none;
  color: #173e35;
  min-height: 160px;
}
.staff-home-day > span {
  font-size: 13px;
  letter-spacing: 2px;
  font-weight: 700;
}
.staff-home-day h2 {
  font-size: 30px;
  margin: 12px 0;
}
.staff-home-day > strong {
  display: block;
  margin-top: 22px;
  color: #155c4c;
}
.staff-welcome .staff-home-intro {
  font-size: 15px;
  line-height: 1.6;
  letter-spacing: normal;
  text-transform: none;
  color: #e0eee5;
  max-width: 38em;
  margin-top: 16px;
  margin-bottom: 0;
}
.staff-home-section-title,
.staff-home-restocks > h2 {
  font-size: 18px;
  margin: 0 0 14px;
  color: #24483c;
}
.staff-home-restocks {
  margin-bottom: 26px;
}
.staff-home-restock {
  display: block;
  text-decoration: none;
  background: #fff6df;
  border: 1px solid #e4c887;
  color: #3f432c;
}
.staff-home-restock > span {
  display: flex;
  gap: 12px;
  align-items: center;
  color: #765c21;
  font-size: 14px;
}
.staff-home-restock svg {
  width: 24px;
  height: 24px;
}
.staff-home-restock h3 {
  font-size: 23px;
  margin: 15px 0 8px;
}
.staff-home-restock p {
  font-size: 14px;
  color: #6c654d;
}
.staff-home-restock > strong {
  display: block;
  margin-top: 18px;
  color: #5c4b1f;
}
.staff-direction-bar {
  display: flex;
  justify-content: flex-end;
  margin: -10px 0 20px;
}
.staff-direction-button {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  border: 1px solid #c6d3cb;
  border-radius: 24px;
  padding: 10px 15px;
  background: #fff;
  color: #31574a;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
}
.staff-direction-button span {
  font-size: 17px;
}

.staff-direction-dialog::backdrop {
  background: #102f28a6;
}

.staff-success {
  text-align: center;
  padding: 44px 24px !important;
  margin-top: 24px;
}
.staff-success-star {
  font-size: 64px;
  color: #c69e43;
}
.staff-success h1 {
  font-size: 32px;
  color: #173f35;
}
.staff-success p {
  line-height: 1.6;
  margin: 20px 0 30px;
}
.staff-closing-reminder {
  background: #edf4ef;
  color: #315347;
  border: 1px solid #c7d9ca;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 18px;
  font-size: 14px;
}
.staff-closing-reminder p {
  margin: 5px 0 0;
  line-height: 1.5;
}
.staff-board .staff-direction-button {
  border-radius: 999px;
  padding: 9px 14px;
  min-height: 0;
}
/* Le parcours du chalet utilise toute la page, sans les cartes d’accueil. */
.staff-app.staff-journey-mode {
  min-height: 100dvh;
  background: #fffdf8;
}
.staff-app.staff-journey-mode .app-main {
  padding: 0;
  margin: 0;
  width: 100%;
  max-width: none;
}
.staff-app.staff-journey-mode .staff-board.staff-focus {
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  min-height: 100dvh;
  padding: 0 !important;
  max-width: 760px;
  margin: 0 auto;
  background: #fffdf8;
}
.staff-focus .staff-direction-bar {
  position: sticky;
  top: 0;
  z-index: 15;
  margin: 0;
  background: #fffdf8ed;
  padding: calc(10px + env(safe-area-inset-top)) 20px 10px;
  backdrop-filter: blur(8px);
}
.staff-focus .journey-card {
  flex: 1;
  box-sizing: border-box;
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  padding: 24px 22px calc(28px + env(safe-area-inset-bottom));
}
.staff-focus .journey-location {
  font-size: 13px;
  color: #607568;
  margin: 0 0 18px;
  letter-spacing: 0.2px;
}
.staff-focus .journey-card h2 {
  font-size: 30px;
  line-height: 1.2;
  margin: 18px 0 24px;
}
.staff-focus .staff-success {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  min-height: 100dvh;
  box-sizing: border-box;
}
.staff-focus .staff-success .staff-action {
  width: 100%;
  max-width: 360px;
}
.staff-focus .staff-action {
  min-height: 50px;
}
@media (min-width: 800px) {
  .staff-focus .journey-card {
    padding: 32px 40px 48px;
  }
}
.staff-focus > h2 {
  font-size: 25px;
  margin: 18px 22px 6px;
  color: #173f35;
}
.staff-focus > .staff-card:not(.staff-success) {
  flex: 1;
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  padding: 20px 22px calc(28px + env(safe-area-inset-bottom));
  box-sizing: border-box;
}
.staff-focus .staff-direction-bar {
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.staff-back {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #31574a;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
}

.device-dialog {
  width: min(92vw, 440px);
  max-height: 88dvh;
  overflow: auto;
  border: 1px solid #dacda9;
  border-radius: 22px;
  background: #fffdf7;
  color: #173f35;
  padding: 26px;
  box-shadow: 0 24px 80px #102b3270;
}
.device-dialog::backdrop {
  background: #102b32a8;
}
.device-dialog h2 {
  font-size: 24px;
  line-height: 1.2;
  margin: 0 0 16px;
}
.device-dialog p {
  font-size: 15px;
  line-height: 1.55;
}
.device-dialog button {
  display: block;
  width: 100%;
  padding: 15px;
  margin: 14px 0;
  border: 0;
  border-radius: 12px;
  background: #173f35;
  color: white;
  font-weight: 700;
  font-size: 16px;
}
.device-dialog button.secondary {
  background: #ece8dc;
  color: #173f35;
}
.device-dialog button:disabled {
  opacity: 0.55;
}
.location-reference-form {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  padding: 18px 0;
  border-top: 1px solid #ddd;
}
.location-reference-form label {
  display: grid;
  gap: 6px;
}
.location-reference-form h3,
.location-reference-form .location-wide {
  grid-column: 1/-1;
}

/* First connection and phone setup share the same NoëlBoard visual language. */
.account-app {
  min-height: 100svh;
  background: #faf7f0;
}
.account-app > main {
  padding: 0;
}
.account-flow {
  width: min(100%, 500px);
  margin: 0 auto;
  padding: 22px 22px 36px;
  color: #193d34;
}
.setup-masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 44px;
}
.setup-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 19px;
  font-weight: 750;
  letter-spacing: -0.5px;
  color: #193d34;
}
.setup-brand img {
  background: #193d34;
  padding: 7px;
  border-radius: 11px;
  width: 38px;
  height: 38px;
  box-sizing: border-box;
}
.setup-brand small {
  display: block;
  font-size: 9px;
  line-height: 1.8;
  letter-spacing: 1.8px;
  font-weight: 650;
  color: #6d7c71;
}
.setup-text-button {
  border: 0;
  background: none;
  color: #61756a;
  font: inherit;
  font-size: 12px;
  padding: 10px 0;
}
.setup-environment {
  display: inline-block;
  margin: 18px 0 0;
  padding: 4px 9px;
  border: 1px solid #e8d6ad;
  border-radius: 6px;
  background: #fff7e4;
  color: #8b6831;
  font-size: 11px;
  font-weight: 650;
}
.setup-progress {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 27px 0 24px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.25px;
  color: #8a948c;
}
.setup-progress i {
  flex: 1;
  height: 1px;
  background: #dddace;
}
.setup-progress .is-current {
  color: #225344;
}
.account-intro {
  margin: 0 0 25px;
}
.setup-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: #e7eee7;
  color: #255744;
  flex-shrink: 0;
}
.setup-icon svg {
  width: 25px;
  height: 25px;
}
.setup-icon.small {
  width: 40px;
  height: 40px;
  border-radius: 12px;
}
.setup-icon.small svg {
  width: 22px;
  height: 22px;
}
.account-intro h1 {
  margin: 16px 0 8px;
  font-size: 31px;
  line-height: 1.15;
  letter-spacing: -1px;
  color: #193d34;
}
.account-intro p {
  margin: 0;
  color: #65746b;
  font-size: 15px;
  line-height: 1.5;
  max-width: 360px;
}
.account-card {
  background: white;
  border: 1px solid #e3e1d7;
  border-radius: 20px;
  padding: 24px 22px;
  box-shadow: 0 5px 20px #253d3210;
}
.account-card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 24px;
}
.account-card h2 {
  font-size: 17px;
  line-height: 1.4;
  letter-spacing: -0.3px;
  margin: 0;
  color: #193d34;
}
.account-login {
  flex-shrink: 0;
  padding: 5px 9px;
  border-radius: 7px;
  background: #f3f4ec;
  color: #61715f;
  font-size: 11px;
}
.account-card form {
  display: grid;
  gap: 21px;
}
.account-card label {
  display: grid;
  gap: 9px;
  font-size: 13px;
  font-weight: 650;
  color: #344c40;
  margin: 0;
}
.account-card input {
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-height: 54px;
  border: 1px solid #d6ded4;
  background: #fcfdf9;
  border-radius: 11px;
  padding: 14px;
  font: inherit;
  font-size: 16px;
  color: #1b3d32;
  outline: none;
}
.account-card input:focus {
  border-color: #2f725b;
  box-shadow: 0 0 0 3px #2f725b18;
}
.account-card input::placeholder {
  color: #929d94;
  font-size: 14px;
  font-weight: 400;
}
.account-card small {
  color: #819084;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.5;
}
.account-card .error:empty,
.setup-status:empty {
  display: none;
}
.account-card .error {
  margin: 0;
  font-size: 13px;
}
.setup-primary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 53px;
  box-sizing: border-box;
  padding: 15px 17px;
  border: 1px solid #193f33;
  border-radius: 11px;
  background: #193f33;
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
}
.setup-primary span {
  font-size: 21px;
  line-height: 1;
}
.account-footnote {
  margin: 19px auto 0;
  max-width: 290px;
  text-align: center;
  color: #819084;
  font-size: 11px;
  line-height: 1.5;
}
.account-phone-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: white;
  border: 1px solid #e3e1d7;
  border-radius: 18px;
  padding: 18px;
  margin-top: 17px;
}
.account-phone-card div {
  flex: 1;
}
.account-phone-card h2 {
  font-size: 14px;
  margin: 0 0 5px;
  line-height: 1.4;
}
.account-phone-card p {
  font-size: 12px;
  color: #7a897c;
  margin: 0;
}
.setup-outline {
  min-height: 39px;
  border: 1px solid #cdd8cb;
  border-radius: 9px;
  background: white;
  color: #285440;
  padding: 9px 12px;
  font: inherit;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
}
.account-return {
  display: block;
  text-align: center;
  font-size: 13px;
  margin-top: 24px;
  text-decoration: none;
  color: #5f7567;
}
.device-dialog {
  width: min(calc(100vw - 32px), 450px);
  max-height: calc(100dvh - 32px);
  box-sizing: border-box;
  border: 1px solid #e3e1d7;
  border-radius: 24px;
  background: #faf7f0;
  padding: 23px;
  color: #193d34;
  box-shadow: 0 25px 80px #122c3260;
}
.device-dialog::backdrop {
  background: #122a2bd4;
  backdrop-filter: blur(3px);
}
.device-dialog .setup-masthead {
  margin-bottom: 26px;
}
.setup-dialog-body > h2 {
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: -0.8px;
  margin: 0 0 9px;
  color: #193d34;
}
.device-dialog .setup-dialog-lead {
  font-size: 14px;
  line-height: 1.5;
  color: #6a7b6e;
  margin: 0 0 23px;
}
.device-dialog .setup-option {
  display: flex;
  align-items: center;
  gap: 11px;
  border: 1px solid #e1e5d9;
  background: #fff;
  border-radius: 15px;
  padding: 15px;
  margin-top: 12px;
}
.setup-option > div {
  flex: 1;
  min-width: 0;
}
.setup-option h3 {
  margin: 0 0 4px;
  font-size: 14px;
  line-height: 1.3;
}
.device-dialog .setup-option p {
  margin: 0;
  color: #7d897e;
  font-size: 11px;
  line-height: 1.4;
}
.device-dialog .setup-option .setup-outline {
  width: auto;
  display: block;
  flex-shrink: 0;
  min-height: 36px;
  padding: 8px 11px;
  margin: 0;
  border: 1px solid #d4dfd1;
  background: #fff;
  color: #26523f;
  border-radius: 8px;
  font-size: 12px;
}
.device-dialog .setup-caption {
  font-size: 11px;
  line-height: 1.5;
  color: #899283;
  margin: 9px 3px 0;
}
.device-dialog .setup-centered {
  text-align: center;
  margin-top: 12px;
}
.setup-location-info {
  display: flex;
  gap: 10px;
  background: #edf0e5;
  border: 1px solid #e0e5d4;
  border-radius: 13px;
  padding: 14px;
  margin: 22px 0;
}
.setup-location-info > span svg {
  width: 21px;
  height: 21px;
  color: #587450;
}
.device-dialog .setup-location-info p {
  font-size: 11px;
  line-height: 1.55;
  color: #6c7e63;
  margin: 0;
}
.setup-location-info strong {
  display: block;
  font-size: 12px;
  color: #3d5b37;
  margin-bottom: 4px;
  font-weight: 650;
}
.device-dialog .setup-primary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 18px 0 0;
  padding: 15px 16px;
  min-height: 53px;
  border: 1px solid #193f33;
  border-radius: 11px;
  background: #193f33;
  font-size: 14px;
  font-weight: 650;
}
.device-dialog .setup-skip {
  display: block;
  border: 0;
  background: none;
  width: 100%;
  padding: 14px 0 0;
  margin: 0;
  color: #667969;
  font-size: 12px;
  font-weight: 500;
}
.device-dialog .setup-install-help {
  padding: 12px;
  border: 1px solid #e8dfc7;
  border-radius: 10px;
  background: #fff9eb;
  font-size: 12px;
  color: #806e42;
  line-height: 1.6;
}
.device-dialog .setup-status {
  font-size: 12px;
  line-height: 1.5;
  margin: 16px 0 0;
  color: #58704e;
}
.auth-app .login-page {
  background: #faf7f0;
}
.auth-app .login-card input {
  min-height: 52px;
  border-radius: 11px;
  padding: 13px;
  font-size: 16px;
  border: 1px solid #d6ded4;
}
.auth-app .login-card .primary {
  min-height: 53px;
  border-radius: 11px;
  background: #193f33;
  border-color: #193f33;
}
@media (max-width: 380px) {
  .account-flow {
    padding: 18px 17px 30px;
  }
  .account-card {
    padding: 21px 17px;
  }
  .device-dialog {
    padding: 20px 17px;
  }
  .device-dialog .setup-option {
    padding: 12px;
    gap: 9px;
  }
  .setup-option .setup-icon {
    width: 32px;
    height: 36px;
  }
}
.auth-app {
  min-height: 100svh;
  background: #faf7f0;
}
.account-intro {
  display: grid;
  grid-template-columns: 40px 1fr;
  column-gap: 12px;
  align-items: center;
}
.account-intro .setup-icon {
  width: 40px;
  height: 40px;
}
.account-intro h1 {
  grid-column: 2;
  margin: 0;
  font-size: 28px;
}
.account-intro p {
  grid-column: 1/-1;
  margin-top: 11px;
}
.account-card form {
  gap: 17px;
}
.account-flow .setup-progress {
  margin: 20px 0;
}
.account-card {
  padding: 21px 20px;
}
.account-card input {
  min-height: 51px;
}
.login-flow .account-intro {
  margin-top: 32px;
  margin-bottom: 26px;
}
.account-forgot {
  display: block;
  margin: 20px auto 0;
  padding: 7px;
  background: none;
  border: 0;
  color: #617867;
  font: inherit;
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.password-checklist {
  margin: 0;
  border-top: 1px solid #edf0e7;
  padding-top: 16px;
}
.password-checklist h3 {
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 650;
  color: #7b8a7c;
}
.password-checklist ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.password-checklist li {
  display: flex;
  gap: 6px;
  align-items: flex-start;
  font-size: 12px;
  line-height: 1.45;
  color: #89958a;
}
.password-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  border: 1px solid #d9dfd5;
  border-radius: 50%;
  color: transparent;
  font-size: 9px;
  box-sizing: border-box;
}
.password-checklist li.is-met {
  color: #297246;
}
.is-met .password-check {
  background: #297246;
  border-color: #297246;
  color: white;
}
.password-check-summary {
  margin: 10px 0 0;
  font-size: 11px;
  line-height: 1.5;
  color: #39714d;
}
.password-check-summary:empty {
  display: none;
}
.account-card .setup-primary:disabled {
  background: #cbd4c8;
  border-color: #cbd4c8;
  color: #758370;
  cursor: default;
}
.account-footnote {
  margin-top: 13px;
}

.password-too-long[hidden] {
  display: none !important;
}
.closing-declarations {
  margin: 20px 0;
}
.closing-declarations > summary {
  padding: 14px;
  border-radius: 11px;
  background: #edf2e8;
  color: #32563e;
  font-weight: 650;
  cursor: pointer;
}
.closing-declarations fieldset {
  border: 0;
  padding: 0;
  margin: 22px 0;
}
.closing-declarations legend {
  font-weight: 700;
  color: #244a37;
  margin-bottom: 10px;
}
.closing-declaration {
  border: 1px solid #e0e5d9;
  border-radius: 14px;
  padding: 14px;
  margin: 12px 0;
  background: #fff;
}
.closing-declaration h3 {
  font-size: 14px !important;
  margin: 0 0 12px !important;
}
.closing-declaration > div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.closing-declaration label {
  margin: 0 !important;
  font-size: 12px !important;
}
.closing-declaration input,
.closing-declaration select {
  min-height: 44px !important;
  margin: 7px 0 0;
  width: 100%;
  box-sizing: border-box;
  font-size: 16px !important;
}
.closing-declaration label > span {
  display: block;
  font-size: 11px;
  color: #7a8878;
}
.cash-choice {
  border: 0;
  padding: 0;
  margin: 0 0 20px;
}
.cash-choice legend {
  font-weight: 700;
  margin-bottom: 10px;
}
.cash-choice label {
  display: flex !important;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid #dce4d8;
  border-radius: 12px;
  background: #fafcf7;
  padding: 13px;
  font-size: 13px !important;
}
.cash-choice input[type='radio'] {
  width: 18px;
  height: 18px;
  min-height: 18px;
  padding: 0;
  margin: 0;
  flex-shrink: 0;
  accent-color: #22523f;
}
[data-cash-now][hidden],
[data-cash-later][hidden],
[data-cash-office][hidden] {
  display: none !important;
}
.staff-card fieldset.cash-choice {
  border: 0;
  padding: 0;
  margin: 0 0 20px;
}
.cash-choice label {
  flex-direction: row !important;
  align-items: center !important;
}

.installation-guide {
  margin: 16px 0 24px;
  text-align: left;
}
.install-steps {
  background: #f7f6ec;
  border: 1px solid #dddcca;
  border-radius: 14px;
  padding: 17px;
  margin: 12px 0;
}
.install-steps h3 {
  font-size: 17px;
  color: #1b4537;
  margin: 0 0 10px;
  line-height: 1.3;
}
.install-steps p,
.install-steps li {
  font-size: 14px;
  line-height: 1.5;
  color: #334f44;
}
.install-steps ol {
  padding-left: 22px;
  margin: 14px 0;
}
.install-steps li {
  padding-left: 3px;
  margin-bottom: 12px;
}
.install-steps li::marker {
  font-weight: 800;
  color: #8b6b32;
}
.install-steps .install-help-small {
  font-size: 12px;
  line-height: 1.4;
}
.installation-guide summary {
  padding: 10px 0;
  cursor: pointer;
  color: #244b3a;
  font-size: 14px;
}

.permission-help {
  background: #f2f4ea;
  border: 1px solid #dce2d1;
  border-radius: 12px;
  padding: 14px;
  margin: 14px 0;
  text-align: left;
  color: #335343;
}
.permission-help strong {
  font-size: 14px;
}
.permission-help p {
  font-size: 13px;
  line-height: 1.55;
  margin: 10px 0;
}

/* Compact step navigation keeps the main action separate. */
.staff-board .journey-step-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.staff-board .journey-previous {
  width: auto;
  flex: 0 0 auto;
  min-height: 44px;
  margin: 0;
  padding: 8px 0 8px 10px;
  border: 0;
  background: transparent;
  color: #355d4e;
  box-shadow: none;
  font-size: 13px;
  font-weight: 600;
}
.staff-board .journey-previous:hover {
  text-decoration: underline;
}
.staff-board .journey-previous:focus-visible {
  outline: 2px solid #355d4e;
  outline-offset: 3px;
}

.staff-focus .journey-declaration-help p {
  font-weight: 400;
  margin: 12px 0 0;
}

.staff-focus .cash-choice legend {
  font-size: 15px;
  line-height: 1.5;
  margin-bottom: 14px;
}
.staff-focus .cash-choice label {
  padding: 14px !important;
  gap: 12px;
  cursor: pointer;
}
.staff-focus .cash-choice label:has(input:checked) {
  border-color: #245744;
  background: #eaf2ed;
}
.staff-focus .cash-choice label > span {
  display: grid;
  gap: 5px;
}
.staff-focus .cash-choice strong {
  font-size: 14px;
  line-height: 1.4;
}
.staff-focus .cash-choice small {
  font-size: 12px;
  line-height: 1.4;
  font-weight: 400;
}
.cash-count-help {
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}
.cash-count-result {
  display: grid;
  gap: 6px;
  padding: 15px;
  border-radius: 12px;
  background: #eef2e9;
  color: #254b39;
  margin: 0;
}
.cash-count-result span {
  font-size: 13px;
}
.cash-count-result strong {
  font-size: 17px;
}
.cash-mode-help {
  padding: 16px;
  background: #fff3d9;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}
.cash-card-note {
  display: grid;
  gap: 4px;
  padding: 14px 0 0;
  margin: 0;
  border-top: 1px solid #e0e5dc;
  font-size: 13px;
  line-height: 1.5;
  color: #52685c;
}

.staff-focus form[data-market-form='cash'],
.staff-focus form[data-cash-review] {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.staff-focus form .cash-choice {
  margin: 0 !important;
}
.staff-focus [data-cash-now] {
  display: grid;
  gap: 16px;
  margin: 0;
}
.staff-focus [data-cash-now] > label {
  display: flex !important;
  flex-direction: column;
  margin: 0;
  gap: 10px;
  line-height: 1.4;
}
.staff-focus [data-cash-now] input {
  margin: 0 !important;
  min-height: 54px;
}
.staff-focus form[data-market-form='cash'] > .market-form-error:empty,
.staff-focus form[data-cash-review] > .market-form-error:empty {
  display: none;
}
.staff-focus form[data-market-form='cash'] > button[type='submit'],
.staff-focus form[data-cash-review] > button[type='submit'] {
  margin: 0;
}

.staff-focus .journey-departure-thanks {
  margin-top: 24px;
  padding: 20px 18px;
  background: #eaf2e8;
  border-radius: 14px;
  color: #254d3a;
  text-align: center;
}
.staff-focus .journey-departure-thanks strong {
  display: block;
  font-size: 17px;
  line-height: 1.5;
}
.staff-focus .journey-departure-thanks p {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.5;
}

.staff-restock-window {
  display: inline-block;
  padding: 8px 12px !important;
  margin: 10px 0 !important;
  border-radius: 10px;
  background: #e9f0e7;
  color: #274d39;
  font-size: 14px !important;
  font-weight: 700;
  line-height: 1.5;
}

.restock-global-block {
  padding: 18px;
  border: 1px solid #dfe4d7;
  border-radius: 16px;
  background: #f5f6ed;
  margin: 20px 0;
}
.restock-global-block h3 {
  font-size: 17px;
  margin: 0 0 12px;
  line-height: 1.4;
}
.restock-global-block p {
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 12px;
}
.restock-global-block .restock-summary-list {
  margin: 12px 0 16px;
  padding: 0;
}
.restock-global-block .restock-summary-list li {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 0;
}
.restock-global-block .restock-summary-list strong {
  font-size: 14px;
  line-height: 1.4;
}
.restock-global-block .restock-summary-list span {
  white-space: nowrap;
  font-size: 14px;
  font-weight: 700;
}
.restock-global-block .restock-global-destinations {
  margin: 0;
  font-size: 12px;
  color: #536b5b;
}

.restock-before-preparation {
  margin: 0 0 16px;
  padding: 16px;
  background: #fff0d4;
  border-left: 4px solid #b38324;
  border-radius: 10px;
  color: #61471e;
  font-size: 16px;
  font-weight: 750;
  line-height: 1.5;
}

.restock-pick-target {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 20px 0 24px;
  padding: 22px;
  border-radius: 18px;
  background: #e8f2ed;
  color: #153c30;
  text-align: center;
}
.restock-pick-target span {
  font-size: 17px;
  font-weight: 650;
}
.restock-pick-target strong {
  font-size: 36px;
  line-height: 1.15;
  font-weight: 800;
}
.restock-step-card form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}

.restock-departure-check {
  margin: 20px 0 24px;
  padding: 20px;
  background: #f4f7f4;
  border: 1px solid #dce7df;
  border-radius: 16px;
}
.restock-departure-check h3 {
  margin: 0 0 16px;
  font-size: 19px;
  color: #153c30;
}
.restock-departure-check ul {
  display: grid;
  gap: 14px;
  margin: 0;
  padding-left: 22px;
  line-height: 1.5;
}
.restock-departure-next {
  margin: 20px 0 0;
  text-align: center;
  line-height: 1.6;
  color: #35584b;
}

.staff-planning-times {
  display: flex;
  flex-direction: column;
  gap: 5px;
  text-align: right;
}
.staff-planning-times > span {
  font-size: 12px;
  opacity: 0.9;
}

.staff-planning-arrival-notice {
  margin: 12px 0 20px;
  padding: 18px 20px;
  background: #fff0d4;
  color: #5c4218;
  border-left: 4px solid #b38324;
  border-radius: 12px;
  font-size: 17px;
  line-height: 1.6;
}

.staff-planning-day.staff-planning-details {
  align-items: flex-start;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
}
.staff-planning-team {
  grid-column: 1/-1;
  border-top: 1px solid currentColor;
  padding-top: 12px;
  display: grid;
  gap: 10px;
}
.staff-planning-team p {
  margin: 0;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  line-height: 1.5;
}
.staff-planning-team p span {
  font-size: 14px;
}
.staff-planning-team p strong {
  font-size: 16px;
  text-align: right;
}

.staff-board .staff-card button.staff-document {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  justify-content: normal;
  gap: 14px;
  width: 100%;
  min-height: 96px;
  padding: 14px 16px;
  text-align: left;
  font-size: 16px;
  line-height: 1.4;
}
.staff-board .staff-card button.staff-document + button.staff-document {
  margin-top: 12px;
}
.staff-board .staff-card button.staff-document svg {
  width: 24px;
  height: 24px;
  justify-self: start;
}
.staff-board .staff-card button.staff-document > span {
  min-width: 0;
  width: 100%;
  text-align: left;
  overflow-wrap: anywhere;
}
.staff-board .staff-card button.staff-document small {
  margin-top: 5px;
  font-size: 13px;
  line-height: 1.4;
}

.install-device-title {
  margin: 20px 0 8px;
  font-size: 20px;
  color: #153c30;
}
.install-device-hint {
  font-size: 15px;
  line-height: 1.5;
  margin: 0 0 16px;
}
.installation-guide .install-device {
  border: 1px solid #d5dfd7;
  border-radius: 14px;
  margin: 12px 0;
  overflow: hidden;
}
.installation-guide .install-device > summary {
  padding: 18px 20px;
  font-size: 18px;
  font-weight: 750;
  background: #f1f6f2;
}
.installation-guide .install-device .install-steps {
  border: 0;
  border-radius: 0;
  background: #fff;
  margin: 0;
  padding: 18px 20px;
}

.setup-phone-card {
  margin: 20px 0;
  padding: 20px;
  border: 1px solid #dce4dc;
  border-radius: 18px;
  background: #fff;
}
.setup-phone-card .setup-option {
  margin: 0 0 14px;
  padding: 0;
  border: 0;
  background: none;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.setup-phone-card .setup-option h3 {
  margin: 0 0 6px;
}
.setup-phone-card .setup-option p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}
.setup-phone-card .setup-outline {
  width: 100%;
  margin: 16px 0 0;
}
.setup-phone-explanation {
  font-size: 15px;
  line-height: 1.65;
  margin: 0;
}
.setup-phone-card .permission-help {
  border: 0;
  background: none;
  padding: 0;
  margin: 0;
}
.setup-phone-card .permission-help p {
  font-size: 15px;
  line-height: 1.65;
  margin: 0 0 14px;
}
.permission-next-step {
  padding-top: 14px;
  border-top: 1px solid #e3e9e2;
}
.setup-phone-footer {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #dce4dc;
}
.setup-phone-footer .setup-primary {
  width: 100%;
}

.setup-validated {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 16px 0 0;
  padding: 13px 16px;
  border: 1px solid #b7d4bd;
  border-radius: 12px;
  background: #eaf5ed;
  color: #215637;
  font-size: 16px;
  font-weight: 750;
}
.setup-validated[hidden],
.setup-phone-card [hidden] {
  display: none !important;
}

.staff-arrival-confirmation {
  margin: 18px 0 24px;
  padding: 14px 16px;
  border-radius: 12px;
  background: #eaf5ed;
  color: #215637;
  font-weight: 700;
  line-height: 1.5;
}

.staff-retained-time {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  padding: 24px 18px;
  margin: 20px 0 24px;
  border: 1px solid #cbdcd1;
  border-radius: 18px;
  background: #eef5f0;
  text-align: center;
  color: #153c30;
}
.staff-retained-time > span {
  font-size: 17px;
  line-height: 1.5;
  font-weight: 650;
}
.staff-retained-time > strong {
  font-size: 38px;
  line-height: 1.1;
  font-weight: 800;
}
.staff-retained-time > small {
  font-size: 13px;
  line-height: 1.5;
}

.staff-leave-intro {
  margin: 16px 0 24px;
  font-size: 17px;
  line-height: 1.65;
  color: #40574c;
}
.staff-leave-scan {
  margin: 0 0 24px;
  padding: 24px 20px;
  border: 1px solid #c6dccd;
  border-radius: 18px;
  background: #edf5ef;
  text-align: center;
}
.staff-leave-scan h3 {
  margin: 0 0 12px;
  font-size: 21px;
  line-height: 1.4;
  color: #163e2e;
}
.staff-leave-scan p {
  margin: 0 0 22px;
  font-size: 16px;
  line-height: 1.65;
  color: #40574c;
}
.staff-leave-scan .staff-action {
  width: 100%;
  min-height: 58px;
  margin: 0;
  font-size: 17px;
  border-radius: 14px;
}
.staff-leave-after {
  padding: 20px;
  border-radius: 16px;
  background: #faf4e6;
  border: 1px solid #ebdfc5;
}
.staff-leave-after h3 {
  margin: 0 0 14px;
  font-size: 17px;
  color: #624b24;
}
.staff-leave-after ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 20px;
  line-height: 1.6;
  color: #5b513d;
  font-size: 16px;
}

.staff-app .app-header nav {
  gap: 8px;
  flex: none;
}

.staff-app .app-header .brand {
  min-width: 0;
}
.staff-direction-dialog {
  border: 0;
  border-radius: 22px;
  padding: 24px;
  max-width: 460px;
  width: calc(100% - 32px);
  box-sizing: border-box;
  color: #173f35;
  background: #fffdf8;
  max-height: 90dvh;
  overflow: auto;
  box-shadow: 0 18px 64px #102f2840;
}
.staff-direction-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.staff-direction-emblem {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  background: #e8f2eb;
  color: #214e3b;
  border-radius: 15px;
  font-size: 26px;
}
.staff-direction-close {
  color: #345c4c;
  cursor: pointer;
  position: static;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid #dce5dd;
  border-radius: 50%;
  padding: 0;
  background: #fff;
  font-size: 25px;
}
.staff-direction-eyebrow {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.13em;
  color: #8b6d34;
}
.staff-direction-dialog h2 {
  font-size: 27px;
  padding-right: 25px;
  margin: 0 0 16px;
  padding: 0;
  line-height: 1.25;
}
.staff-direction-intro {
  margin: 0 0 18px;
  font-size: 16px;
  line-height: 1.65;
  color: #486254;
}
.staff-direction-context {
  display: inline-block;
  margin: 0 0 22px;
  padding: 7px 12px;
  border-radius: 9px;
  background: #f2eddf;
  color: #705b30;
  font-size: 14px;
  font-weight: 650;
}
.staff-direction-dialog form label {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  font-size: 16px;
  font-weight: 650;
}
.staff-direction-dialog textarea {
  width: 100%;
  box-sizing: border-box;
  background: #fff;
  color: #173f35;
  border: 1px solid #a9bcb0;
  border-radius: 13px;
  padding: 14px;
  min-height: 145px;
  font-size: 16px;
  line-height: 1.6;
}
.staff-direction-dialog form .staff-action {
  width: 100%;
  min-height: 56px;
  margin-top: 20px;
  font-size: 16px;
  border-radius: 13px;
}

.staff-app .app-header nav button.staff-logout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 40px;
  height: 40px;
  padding: 10px;
  border: 1px solid #d8e2db;
  border-radius: 13px;
  background: #fff6f2;
  color: #94443d;
  font-size: 12px;
  font-weight: 650;
  border-color: #ead7d0;
}
.staff-app .staff-logout svg {
  width: 21px;
  height: 21px;
  stroke-width: 2;
}
