/* 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;
  }
}
