    :root {
      --bg: #f5f7fb;
      --panel: #ffffff;
      --ink: #2a2e3b;
      --muted: #6b7280;
      --border: #e1e5ef;
      --etat-direct: #ffffff;
      --etat-reprise: #f59e0b;
      --etat-bloque: #ef4444;
      --etat-urgent: #d63384;
      --sticky-header-top: 0px;
      --sticky-search-top: 86px;
      --sticky-machines-top: 150px;
      --sticky-depot-top: 206px;
      --sticky-planning-top: 234px;
    }
    body {
      font-size: 0.95rem;
      font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
      color: var(--ink);
      background: var(--bg);
      min-height: 100vh;
    }
    .admin-layout {
      display: grid;
      grid-template-columns: 240px minmax(0, 1fr);
      min-height: 100vh;
    }
    .admin-sidebar {
      position: sticky;
      top: 0;
      align-self: start;
      height: 100vh;
      background: #0b0f14;
      color: #e2e8f0;
      padding: 24px 18px;
      border-right: 1px solid rgba(148, 163, 184, 0.2);
      display: flex;
      flex-direction: column;
    }
    .sidebar-brand {
      margin-bottom: 24px;
    }
    .sidebar-brand-row {
      display: flex;
      align-items: center;
      gap: 10px;
    }
    .sidebar-brand-stack {
      flex-direction: column;
      align-items: center;
      gap: 8px;
    }
    .sidebar-brand-stack .sidebar-title {
      text-align: center;
      width: 100%;
    }
    .sidebar-logo {
      width: 28px;
      height: 28px;
      object-fit: contain;
    }
    .sidebar-logo-full {
      width: 50%;
      height: auto;
      max-width: 100%;
    }
    .landing-icon {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      flex: 0 0 36px;
      min-width: 36px;
      width: 36px;
      height: 36px;
      min-height: 36px;
      line-height: 1;
      border-radius: 10px;
      background: #e0f2fe;
      font-size: 1.15rem;
      box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.12);
    }
    .sidebar-title {
      font-size: 1.05rem;
      font-weight: 700;
      letter-spacing: 0.02em;
    }
    .sidebar-subtitle {
      font-size: 0.85rem;
      color: #94a3b8;
      margin-top: 4px;
    }
    .sidebar-nav {
      display: grid;
      gap: 10px;
    }
    .sidebar-footer {
      margin-top: auto;
      padding-top: 16px;
      border-top: 1px solid rgba(148, 163, 184, 0.2);
    }
    .sidebar-spacer {
      flex: 1 1 auto;
    }
    .sidebar-footer-text {
      margin-top: 12px;
      font-size: 0.75rem;
      color: #94a3b8;
      line-height: 1.4;
    }
    .sidebar-logout {
      justify-content: center;
      background: rgba(239, 68, 68, 0.1);
      border-color: rgba(239, 68, 68, 0.3);
      color: #fecaca;
      font-weight: 600;
    }
    .sidebar-logout:hover {
      background: rgba(239, 68, 68, 0.2);
      border-color: rgba(239, 68, 68, 0.45);
      color: #fff;
    }
    .sidebar-link {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 10px 12px;
      border-radius: 10px;
      color: inherit;
      background: transparent;
      border: 1px solid transparent;
      text-decoration: none;
      text-align: left;
      width: 100%;
    }
    .sidebar-link:hover {
      background: rgba(148, 163, 184, 0.18);
      border-color: rgba(148, 163, 184, 0.2);
      color: #fff;
    }
    .sidebar-link.is-active {
      background: rgba(37, 99, 235, 0.25);
      border-color: rgba(37, 99, 235, 0.5);
      color: #fff;
      font-weight: 600;
    }
    .sidebar-link.is-disabled {
      color: #64748b;
      cursor: not-allowed;
    }
    .sidebar-link.is-disabled:hover {
      background: transparent;
      border-color: transparent;
      color: #64748b;
    }
    .sidebar-divider {
      height: 1px;
      margin: 6px 8px 2px;
      background: rgba(148, 163, 184, 0.28);
    }
    .sidebar-badge {
      margin-left: auto;
      min-width: 20px;
      height: 20px;
      border-radius: 999px;
      background: #dc2626;
      color: #fff;
      font-size: 0.72rem;
      font-weight: 700;
      line-height: 20px;
      text-align: center;
      padding: 0 6px;
    }
    .auth-layout {
      min-height: 100vh;
    }
    .auth-shell {
      max-width: 1100px;
      margin: 0 auto;
      padding: 24px;
    }
    .auth-hero {
      margin: 18px 0;
      padding: 32px;
      background: linear-gradient(135deg, #ffffff 0%, #eef2ff 100%);
      border: 1px solid var(--border);
      border-radius: 18px;
      box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
      display: grid;
      gap: 20px;
      max-width: 760px;
    }
    .auth-kicker {
      text-transform: uppercase;
      font-size: 0.78rem;
      letter-spacing: 0.16em;
      color: var(--muted);
      margin-bottom: -8px;
    }
    .auth-title {
      font-size: clamp(2rem, 3vw, 2.8rem);
      font-weight: 700;
      margin: 0;
    }
    .auth-subtitle {
      font-size: 1rem;
      color: #4b5563;
      max-width: 640px;
      margin: 0;
    }
    .auth-card {
      max-width: 420px;
      background: #fff;
      border: 1px solid var(--border);
      border-radius: 16px;
      padding: 22px;
      box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
    }
    .auth-card-title {
      font-size: 1.05rem;
      font-weight: 700;
      margin-bottom: 16px;
    }
    .auth-card .admin-pill {
      background: #1d4ed8;
      border-color: #1d4ed8;
      color: #fff;
      font-weight: 600;
      padding-top: 0.5rem;
      padding-bottom: 0.5rem;
    }
    .auth-card .admin-pill:hover {
      background: #1e40af;
      border-color: #1e40af;
      color: #fff;
    }
    .auth-card .admin-pill:focus {
      box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.25);
    }
    .admin-main {
      min-width: 0;
    }
    .admin-shell {
      max-width: 1400px;
      margin: 0 auto;
      padding: 12px 24px 24px;
    }
    .admin-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      background: var(--panel);
      border: 1px solid var(--border);
      border-radius: 8px;
      padding: 16px 20px;
      margin-bottom: 12px;
      position: sticky;
      top: var(--sticky-header-top);
      z-index: 1200;
    }
    .admin-kicker {
      text-transform: uppercase;
      font-size: 0.72rem;
      letter-spacing: 0.08em;
      color: var(--muted);
      margin-bottom: 4px;
    }
    .admin-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
    .admin-toolbar {
      position: sticky;
      top: 0;
      z-index: 1150;
      display: grid;
      grid-template-columns: minmax(200px, 240px) minmax(420px, 1fr) minmax(180px, 220px) auto;
      gap: 12px;
      background: #0b0f14;
      color: #e2e8f0;
      border-radius: 0;
      padding: 10px 20px;
      margin: 0 0 12px;
      align-items: end;
    }
    .admin-toolbar-field {
      min-width: 0;
    }
    .admin-toolbar .form-label {
      color: #cbd5f5;
      font-size: 0.78rem;
      margin-bottom: 4px;
    }
    .admin-toolbar .form-control {
      background: #ffffff;
      border: 1px solid #d1d5db;
      color: #111827;
      font-size: 0.9rem;
      padding: 0.35rem 0.6rem;
    }
    .admin-toolbar .form-control:focus {
      border-color: #93c5fd;
      box-shadow: 0 0 0 0.2rem rgba(147, 197, 253, 0.35);
    }
    .admin-tablist {
      display: flex;
      gap: 6px;
      flex-wrap: nowrap;
      width: max-content;
    }
    .admin-machine-tabs {
      overflow-x: auto;
      padding-bottom: 2px;
      scrollbar-width: thin;
      scrollbar-color: rgba(148, 163, 184, 0.6) transparent;
    }
    .admin-machine-tabs::-webkit-scrollbar {
      height: 6px;
    }
    .admin-machine-tabs::-webkit-scrollbar-thumb {
      background: rgba(148, 163, 184, 0.6);
      border-radius: 999px;
    }
    .admin-machine-tabs::-webkit-scrollbar-track {
      background: transparent;
    }
    .admin-tab-btn {
      padding: 3px 8px;
      font-size: 0.8rem;
      border-radius: 999px;
      border: 1px solid rgba(148, 163, 184, 0.4);
      color: #e2e8f0;
      white-space: nowrap;
      background: transparent;
      box-shadow: none;
    }
    .admin-tab-btn.nav-link {
      margin-bottom: 0;
    }
    .admin-toolbar .admin-tab-btn.nav-link {
      color: #e2e8f0;
      background: transparent;
      border-color: rgba(148, 163, 184, 0.4);
    }
    .admin-toolbar .admin-tab-btn.nav-link.active {
      background: rgba(59, 130, 246, 0.35);
      border-color: rgba(59, 130, 246, 0.6);
      color: #fff;
    }
    #parametresView .admin-toolbar .admin-tab-btn.nav-link {
      color: #e2e8f0;
      background: transparent;
      border-color: rgba(148, 163, 184, 0.4);
    }
    #parametresView .admin-toolbar .admin-tab-btn.nav-link.active {
      background: rgba(59, 130, 246, 0.35);
      border-color: rgba(59, 130, 246, 0.6);
      color: #fff;
    }
    .admin-tab-btn.active {
      background: rgba(59, 130, 246, 0.35);
      border-color: rgba(59, 130, 246, 0.6);
      color: #fff;
      box-shadow: none;
    }
    .matiere-live-cell.matiere-stock-shortage {
      color: inherit !important;
      font-weight: inherit;
    }
    tr td.matiere-live-cell.matiere-stock-shortage {
      color: inherit !important;
      font-weight: inherit !important;
    }
    .matiere-live-cell .matiere-code-shortage {
      color: #dc2626 !important;
      font-weight: 700;
    }
    tr.etat-reprise td.matiere-live-cell,
    tr.etat-reprise td.matiere-live-cell.matiere-stock-shortage {
      color: #fff !important;
    }
    .admin-pill {
      padding: 3px 8px;
      font-size: 0.8rem;
      border-radius: 999px;
      border: 1px solid rgba(148, 163, 184, 0.4);
      color: #e2e8f0;
      background: transparent;
    }
    .admin-pill-light {
      background: #f8fafc;
      border-color: #cbd5e1;
      color: #0b0f14;
    }
    .admin-pill:hover {
      background: rgba(59, 130, 246, 0.35);
      border-color: rgba(59, 130, 246, 0.6);
      color: #fff;
    }
    .admin-pill-light:hover {
      background: #e2e8f0;
      border-color: #94a3b8;
      color: #0b0f14;
    }
    .modal .admin-pill {
      background: #f8fafc;
      border-color: #cbd5e1;
      color: #0b0f14;
    }
    .modal .admin-pill:hover {
      background: #e2e8f0;
      border-color: #94a3b8;
      color: #0b0f14;
    }
    .card-header .admin-pill {
      background: #f8fafc;
      border-color: #cbd5e1;
      color: #0b0f14;
    }
    .card-header .admin-pill:hover {
      background: #e2e8f0;
      border-color: #94a3b8;
      color: #0b0f14;
    }
    .note-card .admin-pill {
      background: #f8fafc;
      border-color: #cbd5e1;
      color: #0b0f14;
    }
    .note-card .admin-pill:hover {
      background: #e2e8f0;
      border-color: #94a3b8;
      color: #0b0f14;
    }
    #parametresView .card .admin-pill {
      background: #f8fafc;
      border-color: #cbd5e1;
      color: #0b0f14;
    }
    #parametresView .card .admin-pill:hover {
      background: #e2e8f0;
      border-color: #94a3b8;
      color: #0b0f14;
    }
    .admin-pill:focus {
      box-shadow: none;
    }
    .admin-toolbar-actions {
      display: flex;
      align-items: center;
      gap: 8px;
      justify-content: flex-end;
    }
    .module-loader {
      min-height: 220px;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 10px;
      color: #64748b;
      font-size: 0.95rem;
      position: fixed;
      inset: 0;
      z-index: 2000;
      min-height: 100vh;
      background: rgba(245, 247, 251, 0.58);
      backdrop-filter: blur(2px);
      pointer-events: auto;
      cursor: progress;
    }
    .module-content-loading {
      opacity: 0.72;
      transition: opacity 140ms ease;
    }
    .settings-panel { margin: 0 0 16px; }
    .card-soft {
      border: 1px solid var(--border);
      border-radius: 8px;
      box-shadow: none;
    }
    .card-soft .card-header {
      background: #f8fafc;
      border-bottom: 1px solid var(--border);
      font-weight: 600;
    }
    .card-header .admin-pill {
      max-width: 120px;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .mini-calendar {
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 12px;
      background: #f8fafc;
    }
    .mini-calendar-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 8px;
    }
    .mini-calendar-title {
      font-weight: 600;
      color: #0b0f14;
    }
    .mini-calendar-nav {
      border: 1px solid #cbd5e1;
      background: #fff;
      color: #0b0f14;
      border-radius: 999px;
      width: 28px;
      height: 28px;
      line-height: 24px;
      text-align: center;
      padding: 0;
    }
    .mini-calendar-weekdays,
    .mini-calendar-grid {
      display: grid;
      grid-template-columns: repeat(7, minmax(0, 1fr));
      gap: 6px;
    }
    .mini-calendar-weekdays {
      font-size: 0.75rem;
      text-transform: uppercase;
      color: #64748b;
      margin-bottom: 6px;
    }
    .mini-day {
      border: 1px solid transparent;
      border-radius: 8px;
      padding: 6px 0;
      font-size: 0.85rem;
      background: #fff;
      color: #0b0f14;
      cursor: pointer;
    }
    .mini-day.is-weekend {
      color: #94a3b8;
      cursor: not-allowed;
    }
    .mini-day.is-existing {
      background: #fde68a;
      border-color: #f59e0b;
      color: #92400e;
      cursor: not-allowed;
    }
    .mini-day.is-holiday {
      background: #e2e8f0;
      border-color: #cbd5e1;
      color: #475569;
      cursor: not-allowed;
    }
    .mini-day.is-selected {
      background: #1d4ed8;
      border-color: #1d4ed8;
      color: #fff;
    }
    .mini-day.is-empty {
      background: transparent;
      border-color: transparent;
      cursor: default;
    }
    .mini-calendar-legend {
      display: flex;
      gap: 12px;
      align-items: center;
      margin-top: 10px;
      font-size: 0.8rem;
      color: #475569;
    }
    .legend-swatch {
      display: inline-block;
      width: 12px;
      height: 12px;
      border-radius: 4px;
      margin-right: 4px;
      vertical-align: middle;
    }
    .legend-swatch.is-existing {
      background: #fde68a;
      border: 1px solid #f59e0b;
    }
    .legend-swatch.is-selected {
      background: #1d4ed8;
      border: 1px solid #1d4ed8;
    }
    .legend-swatch.is-holiday {
      background: #e2e8f0;
      border: 1px solid #cbd5e1;
    }
    .holiday-separator {
      margin: 8px 0 14px;
      padding: 8px 12px;
      border: 1px dashed #f59e0b;
      border-radius: 8px;
      background: #fff7ed;
      color: #92400e;
      font-size: 0.9rem;
      font-weight: 500;
    }
    .holiday-separator-label {
      display: inline-block;
      margin-right: 8px;
      padding: 2px 8px;
      border-radius: 999px;
      background: #f59e0b;
      color: #fff;
      font-size: 0.75rem;
      font-weight: 700;
      letter-spacing: 0.02em;
      text-transform: uppercase;
    }
    .holiday-separator-desc {
      font-weight: 600;
    }
    .mini-calendar-selected {
      margin-top: 8px;
      font-size: 0.85rem;
      color: #1f2937;
    }
    .nc-actions {
      display: flex;
      gap: 6px;
      justify-content: center;
      align-items: center;
      flex-wrap: wrap;
    }
    .nc-actions .admin-pill {
      background: #f8fafc;
      border-color: #cbd5e1;
      color: #0b0f14;
    }
    .nc-actions .admin-pill:hover {
      background: #e2e8f0;
      border-color: #94a3b8;
      color: #0b0f14;
    }
    .nc-images-list {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-top: 8px;
    }
    .nc-image-item {
      position: relative;
      border: 1px solid #e2e8f0;
      border-radius: 8px;
      padding: 6px;
      background: #fff;
    }
    .nc-image-thumb {
      display: block;
      width: 90px;
      height: 90px;
      object-fit: cover;
      border-radius: 6px;
    }
    .nc-image-remove {
      position: absolute;
      top: 4px;
      right: 4px;
      border: none;
      border-radius: 999px;
      width: 20px;
      height: 20px;
      font-size: 12px;
      line-height: 18px;
      background: #ef4444;
      color: #fff;
      cursor: pointer;
    }
    .nc-filter-row .form-control,
    .nc-filter-row .form-select {
      background: #fff;
      border-color: #e2e8f0;
      font-size: 0.75rem;
      padding: 4px 6px;
    }
    .nc-table-fixed {
      table-layout: fixed;
      width: 100%;
    }
    .nc-table-fixed th,
    .nc-table-fixed td {
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .nc-table-fixed tbody tr:nth-child(even) {
      background: #f8fafc;
    }
    .nc-actions {
      flex-wrap: nowrap;
      gap: 4px;
    }
    .nc-actions .admin-pill {
      padding: 2px 8px;
      font-size: 0.72rem;
      white-space: nowrap;
    }
    .nc-table-fixed th:last-child,
    .nc-table-fixed td:last-child {
      width: 220px;
    }
    .nc-week-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(44px, 1fr));
      gap: 8px;
    }
    .nc-week-btn {
      border: 1px solid #cbd5e1;
      background: #fff;
      color: #0b0f14;
      border-radius: 999px;
      padding: 6px 0;
      font-size: 0.75rem;
      font-weight: 600;
      box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
    }
    .nc-week-btn.is-active {
      background: #1d4ed8;
      border-color: #1d4ed8;
      color: #fff;
    }
    .nc-week-panel {
      border: 1px solid #e2e8f0;
      background: #f8fafc;
      border-radius: 12px;
      padding: 10px;
      margin-bottom: 12px;
    }
    .nc-week-title {
      font-size: 0.75rem;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      color: #64748b;
      margin-bottom: 8px;
    }
    .nc-export-separator {
      border-top: 1px solid #e2e8f0;
      margin: 12px 0;
    }
    #parametresView .nav-pills .nav-link {
      border-radius: 999px;
      border: 1px solid rgba(148, 163, 184, 0.4);
      color: #0b0f14;
    }
    #parametresView .nav-pills .nav-link.active {
      background: rgba(59, 130, 246, 0.25);
      border-color: rgba(59, 130, 246, 0.5);
      color: #0b0f14;
    }
    #param-modules .admin-pill {
      background: #f8fafc;
      border-color: #cbd5e1;
      color: #0b0f14;
    }
    #param-modules .admin-pill:hover {
      background: #e2e8f0;
      border-color: #94a3b8;
      color: #0b0f14;
    }
    .table { font-size: 0.9rem; }
    .table td, .table th { vertical-align: middle; text-align: center; line-height: 1.2; white-space: nowrap; }
    .maintenance-book-toolbar {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      margin-bottom: 14px;
    }
    .maintenance-page-indicator {
      font-size: 0.9rem;
      font-weight: 700;
      color: #475569;
      min-width: 120px;
      text-align: center;
    }
    .maintenance-book {
      position: relative;
      background: linear-gradient(135deg, #caa46b 0%, #a16207 100%);
      border-radius: 18px;
      padding: 18px 18px 18px 26px;
      box-shadow: 0 16px 32px rgba(15, 23, 42, 0.14);
      min-height: 620px;
    }
    .maintenance-book-spine {
      position: absolute;
      left: 10px;
      top: 12px;
      bottom: 12px;
      width: 12px;
      border-radius: 999px;
      background:
        radial-gradient(circle at center, rgba(255,255,255,0.28) 0 1px, transparent 1px 100%),
        linear-gradient(180deg, #7c2d12 0%, #5b210d 100%);
      background-size: 100% 18px, 100% 100%;
      box-shadow: inset 0 0 0 1px rgba(255,255,255,0.16);
    }
    .maintenance-book-page {
      min-height: 584px;
      background:
        linear-gradient(90deg, rgba(220, 38, 38, 0.14) 0, rgba(220, 38, 38, 0.14) 2px, transparent 2px) 56px 0 / 100% 100% no-repeat,
        repeating-linear-gradient(180deg, #fffdf6 0, #fffdf6 28px, #e6f0fb 28px, #d6e6f7 30px);
      border-radius: 12px;
      border: 1px solid rgba(148, 163, 184, 0.35);
      box-shadow: inset 0 0 0 1px rgba(255,255,255,0.45);
      padding: 26px 24px 24px 74px;
    }
    .maintenance-page-content {
      display: grid;
      gap: 14px;
    }
    .maintenance-note-entry {
      display: grid;
      grid-template-columns: 108px minmax(130px, 170px) minmax(160px, 220px) minmax(0, 1fr) auto;
      gap: 12px;
      align-items: start;
      padding: 6px 0 16px;
      border-bottom: 2px dashed rgba(71, 85, 105, 0.58);
      position: relative;
    }
    .maintenance-note-entry::after {
      content: "";
      position: absolute;
      left: 0;
      right: 0;
      bottom: -4px;
      border-bottom: 2px solid rgba(255, 255, 255, 0.9);
      pointer-events: none;
    }
    .maintenance-note-meta {
      font-size: 0.8rem;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      color: #64748b;
      margin-bottom: 4px;
    }
    .maintenance-note-value {
      font-size: 0.96rem;
      color: #0f172a;
      line-height: 1.35;
      white-space: pre-wrap;
      word-break: break-word;
    }
    .maintenance-note-value.is-title {
      font-weight: 700;
      color: #1e3a8a;
    }
    .maintenance-note-actions {
      display: flex;
      gap: 6px;
      justify-content: flex-end;
      align-items: flex-start;
    }
    .maintenance-book-empty {
      color: #64748b;
      font-style: italic;
      padding-top: 6px;
    }
    @media (max-width: 900px) {
      .maintenance-note-entry {
        grid-template-columns: 1fr;
      }
      .maintenance-book-page {
        padding: 22px 18px 22px 44px;
      }
      .maintenance-book-page {
        background:
          linear-gradient(90deg, rgba(220, 38, 38, 0.14) 0, rgba(220, 38, 38, 0.14) 2px, transparent 2px) 28px 0 / 100% 100% no-repeat,
          repeating-linear-gradient(180deg, #fffdf6 0, #fffdf6 28px, #e6f0fb 28px, #d6e6f7 30px);
      }
      .maintenance-note-actions {
        justify-content: flex-start;
      }
    }
    #ncExportPreview .table {
      table-layout: fixed;
      width: 100%;
    }
    #ncExportPreview .table th,
    #ncExportPreview .table td {
      text-align: left;
      white-space: normal;
      word-break: break-word;
      vertical-align: top;
    }
    #ncExportPreview .table th:nth-child(1),
    #ncExportPreview .table td:nth-child(1) {
      width: 90px;
    }
    #ncExportPreview .table th:nth-child(2),
    #ncExportPreview .table td:nth-child(2) {
      width: 120px;
    }
    #ncExportPreview .table th:nth-child(3),
    #ncExportPreview .table td:nth-child(3) {
      width: 120px;
    }
    #ncExportPreview .table th:nth-child(4),
    #ncExportPreview .table td:nth-child(4) {
      width: 70px;
    }
    #ncExportPreview .table th:nth-child(5),
    #ncExportPreview .table td:nth-child(5) {
      width: 110px;
    }
    #ncExportPreview .table th:nth-child(6),
    #ncExportPreview .table td:nth-child(6) {
      width: 70px;
    }
    #ncExportPreview .table th:nth-child(7),
    #ncExportPreview .table td:nth-child(7) {
      width: 70px;
    }
    #ncExportPreview .table th:nth-child(8),
    #ncExportPreview .table td:nth-child(8) {
      min-width: 280px;
    }
    #ncExportPreview .table th:nth-child(9),
    #ncExportPreview .table td:nth-child(9) {
      min-width: 280px;
    }
    #ncExportPreview .table th:nth-child(10),
    #ncExportPreview .table td:nth-child(10) {
      width: 90px;
    }
    .admin-pill-tall {
      line-height: 1.3;
      min-height: 64px;
    }
    .admin-toolbar-actions .admin-toolbar-action-btn {
      min-width: 170px;
      justify-content: center;
    }
    .tool-icon {
      font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif;
      margin-right: 6px;
    }
    .tool-card .card-body {
      gap: 16px;
    }
    .tool-open-btn {
      width: 34px;
      height: 34px;
      border-radius: 50%;
      border: 1px solid rgba(148, 163, 184, 0.5);
      background: #f8fafc;
      color: #0f172a;
      font-size: 16px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
    }
    .tool-open-btn:hover {
      background: #e2e8f0;
      border-color: rgba(148, 163, 184, 0.8);
    }
    .tool-fav-btn {
      width: 34px;
      height: 34px;
      border-radius: 50%;
      border: 1px solid rgba(148, 163, 184, 0.5);
      background: #f8fafc;
      color: #cbd5e1;
      font-size: 18px;
      line-height: 1;
      display: inline-flex;
      align-items: center;
      justify-content: center;
    }
.tool-fav-btn.is-active {
  color: #facc15;
  border-color: #facc15;
  background: #fffbea;
}
.tool-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #dc2626;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  padding: 0 6px;
}
    #matiereOrdersPageAdmin .admin-pill {
      background: #f8fafc;
      border-color: #cbd5e1;
      color: #0b0f14;
    }
    #matiereOrdersPageAdmin .admin-pill:hover {
      background: #e2e8f0;
      border-color: #94a3b8;
      color: #0b0f14;
    }
    .table-zebra tbody tr:nth-child(even) td {
      background-color: #eef2f7;
    }
    .late-ofs-alt td {
      background: #e2e8f0;
    }
    #maintenanceTable th,
    #maintenanceTable td {
      vertical-align: middle;
      text-align: left;
    }
    #maintenanceTable th:nth-child(1),
    #maintenanceTable td:nth-child(1) { width: 90px; }
    #maintenanceTable th:nth-child(2),
    #maintenanceTable td:nth-child(2) { width: 120px; }
    #maintenanceTable th:nth-child(3),
    #maintenanceTable td:nth-child(3) { width: 120px; }
    #maintenanceTable th:nth-child(4),
    #maintenanceTable td:nth-child(4) { width: auto; }
    #maintenanceTable th:nth-child(5),
    #maintenanceTable td:nth-child(5) { width: 90px; }
    .validation-icon {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 18px;
      height: 18px;
      border-radius: 50%;
      background: #3b82f6;
      color: #ffffff;
      font-size: 12px;
      font-weight: 700;
      line-height: 1;
      margin-right: 6px;
      vertical-align: middle;
    }
    .etat-dot {
      display: inline-block;
      width: 12px;
      height: 12px;
      border-radius: 50%;
      border: 1px solid #0f172a;
    }
    .etat-dot--ok {
      background: #22c55e;
    }
    .etat-dot--ko {
      background: #ef4444;
    }
    .etat-dot--none {
      background: #ffffff;
      border-color: #cbd5e1;
    }
    .etiquettes-preview {
      border: 1px dashed #94a3b8;
      background: #ffffff;
      color: #0f172a;
      padding: 0;
      min-height: 0;
      width: 100%;
      max-width: none;
      height: auto;
      white-space: pre-wrap;
      overflow: visible;
      font-size: 0.85rem;
      box-sizing: border-box;
    }
    .etiquettes-preview[data-format="100x15"] {
      aspect-ratio: 100 / 15;
    }
    .etiquettes-preview[data-format="100x150"] {
      aspect-ratio: 2 / 3;
      min-height: 120px;
      height: min(45vh, 420px);
      width: auto;
      max-width: 100%;
    }
    .capacity-table-wrap {
      width: 100%;
      overflow-x: auto;
      overflow-y: hidden;
      -webkit-overflow-scrolling: touch;
    }
    .capacity-table {
      table-layout: fixed;
      width: max-content;
      min-width: 100%;
    }
    .capacity-table th,
    .capacity-table td {
      min-width: 130px;
      text-align: center;
      vertical-align: middle;
      white-space: nowrap;
    }
    .capacity-table th:first-child,
    .capacity-table td:first-child {
      min-width: 80px;
      width: 90px;
      text-align: left;
    }
    .capacity-table .small {
      line-height: 1.1;
    }
    .capacity-table th.is-current-week,
    .capacity-table td.is-current-week {
      background: #fff7cc;
    }
    .capacity-week-chip {
      display: inline-flex;
      align-items: center;
      margin-left: 6px;
      padding: 1px 6px;
      border-radius: 999px;
      border: 1px solid #eab308;
      background: #fef3c7;
      color: #713f12;
      font-size: 0.68rem;
      font-weight: 700;
      vertical-align: middle;
    }
    .etiquettes-canvas {
      position: relative;
    }
    .etiquettes-preview[data-format="100x15"]::after {
      content: "";
      position: absolute;
      top: 0;
      bottom: 0;
      left: 60%;
      width: 1px;
      background: rgba(15, 23, 42, 0.35);
      pointer-events: none;
    }
    .etiquettes-preview::before {
      content: "";
      position: absolute;
      inset: 0;
      border: 1px dashed #94a3b8;
      pointer-events: none;
    }
    .etiquettes-block {
      position: absolute;
      cursor: move;
      padding: 1px 2px;
      background: rgba(255, 255, 255, 0.85);
      border: 1px solid #cbd5e1;
      border-radius: 4px;
      font-size: 12px;
      line-height: 1.1;
      white-space: pre-wrap;
      user-select: none;
      transform-origin: center;
      overflow: visible;
    }
    .etiquettes-block-inner {
      display: inline-block;
      transform-origin: center;
      white-space: pre-wrap;
    }
    .etiquettes-block.is-vertical {
      writing-mode: vertical-rl;
      text-orientation: mixed;
    }
    .etiquettes-block.is-locked {
      cursor: not-allowed;
      border-style: dashed;
      opacity: 0.7;
    }
    .etiquettes-block.is-locked::after {
      content: "\1F512";
      position: absolute;
      top: -8px;
      right: -8px;
      font-size: 12px;
      background: #fff;
      border: 1px solid #cbd5e1;
      border-radius: 10px;
      padding: 1px 3px;
    }
    .etiquettes-rotate-handle {
      position: absolute;
      top: -14px;
      left: 50%;
      transform: translateX(-50%);
      width: 12px;
      height: 12px;
      border-radius: 50%;
      background: #2563eb;
      border: 2px solid #fff;
      box-shadow: 0 0 0 1px #1e3a8a;
      cursor: grab;
      z-index: 2;
    }
    .etiquettes-block.is-selected {
      outline: 2px solid #2563eb;
    }
    .etiquettes-block.is-editing {
      outline: 2px dashed #2563eb;
      cursor: text;
    }
    .etiquettes-toolbar {
      display: flex;
      gap: 4px;
      align-items: center;
      margin-bottom: 6px;
    }
    .etiquettes-toolbar .form-control-sm,
    .etiquettes-toolbar .form-select-sm {
      width: 90px;
    }
    .etiquettes-toolbar .btn.is-active {
      background: #2563eb;
      border-color: #2563eb;
      color: #fff;
    }
    .table-fixed td {
      overflow: hidden;
      text-overflow: ellipsis;
      max-width: 0;
    }
    .of-reference-cell {
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .of-reference-inner {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      max-width: 100%;
      min-width: 0;
      vertical-align: middle;
    }
    .of-reference-text {
      min-width: 0;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .of-reference-inner .product-info-mini-btn {
      order: 3;
    }
    .etat-cell {
      overflow: visible !important;
    }
    .etat-cell-inner {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 4px;
      width: 100%;
      white-space: nowrap;
      vertical-align: middle;
    }
    .product-info-mini-btn {
      width: 16px;
      height: 16px;
      flex: 0 0 16px;
      margin: 0;
      padding: 0;
      border: 1px solid #cbd5e1;
      border-radius: 50%;
      background: #dc2626;
      color: #ffffff;
      border-color: #dc2626;
      font-size: 0.68rem;
      line-height: 14px;
      font-weight: 700;
      text-align: center;
      vertical-align: middle;
      opacity: 0.72;
      display: inline-flex;
      align-items: center;
      justify-content: center;
    }
    .product-info-mini-btn:hover,
    .product-info-mini-btn:focus {
      opacity: 1;
      color: #ffffff;
      border-color: #dc2626;
      background: #dc2626;
      outline: none;
    }
    #machineContent .jour-wrapper,
    #machineContent .week-separator,
    #machineContent [id^="archives-"] .card {
      content-visibility: auto;
      contain-intrinsic-size: 1px 260px;
    }
    #machineContent .jour-wrapper {
      contain: layout paint style;
    }
    .table-fixed thead th {
      white-space: nowrap !important;
      overflow-wrap: normal;
      word-break: normal;
      line-height: 1.15;
    }
    .table-fixed { table-layout: fixed; width: 100%; }
    .table-fixed .placeholder td {
      width: 100% !important;
      max-width: none !important;
      display: table-cell;
    }
    .th-machine-next { white-space: nowrap; }
    .table-fixed th:nth-child(3),
    .table-fixed td:nth-child(3) {
      width: 40px;
      max-width: 40px;
      text-align: center;
      vertical-align: middle;
    }
    .table-fixed th:nth-child(4),
    .table-fixed td:nth-child(4) { width: 100px; max-width: 100px; }
    .table-fixed th:nth-child(5),
    .table-fixed td:nth-child(5) { width: 95px; max-width: 95px; }
    .table-fixed th:nth-child(6),
    .table-fixed td:nth-child(6) { width: 70px; max-width: 70px; }
    .table-fixed th:nth-child(7),
    .table-fixed td:nth-child(7) { width: 80px; max-width: 80px; }
    .table-fixed th:nth-child(8),
    .table-fixed td:nth-child(8) { width: 80px; max-width: 80px; }
    .table-fixed th:nth-child(9),
    .table-fixed td:nth-child(9) { width: 60px; max-width: 60px; }
    .table-fixed th:nth-child(10),
    .table-fixed td:nth-child(10) { width: 95px; max-width: 95px; }
    .table-fixed th:nth-child(11),
    .table-fixed td:nth-child(11) {
      width: 85px;
      max-width: 85px;
      white-space: nowrap;
    }
    .table-fixed th:nth-child(12),
    .table-fixed td:nth-child(12) {
      width: 95px;
      max-width: 95px;
      white-space: nowrap;
    }
    .table-fixed th:nth-child(13),
    .table-fixed td:nth-child(13) {
      width: 95px;
      max-width: 95px;
      white-space: nowrap;
    }
    .table-fixed td:nth-child(13) {
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .table-fixed th:nth-child(14),
    .table-fixed td:nth-child(14) {
      width: 60px;
      max-width: 60px;
      white-space: nowrap;
    }
    .table-fixed th:nth-child(15),
    .table-fixed td:nth-child(15) {
      width: 110px;
      max-width: 110px;
      white-space: nowrap;
    }
    .table-fixed th:nth-child(16),
    .table-fixed td:nth-child(16) {
      width: 135px;
      max-width: 135px;
      white-space: nowrap;
    }
    .table-responsive { overflow-x: hidden; }
    .table-fixed thead th {
      font-size: 0.82rem;
      padding: 4px 5px;
    }
    .table-fixed td {
      padding: 4px 5px;
      font-size: 0.9rem;
    }
    .archive-table-wrap {
      overflow-x: auto;
      max-width: 100%;
    }
    .cell-tooltip {
      position: fixed;
      z-index: 4000;
      max-width: 360px;
      padding: 8px 10px;
      background: #111827;
      color: #f9fafb;
      border-radius: 8px;
      box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
      font-size: 0.85rem;
      line-height: 1.3;
      pointer-events: none;
      opacity: 0;
      transform: translate3d(0, 4px, 0);
      transition: opacity 90ms ease, transform 90ms ease;
      will-change: transform, opacity;
    }
    .cell-tooltip.is-visible {
      opacity: 1;
      transform: translate3d(0, 0, 0);
    }
    .table thead th {
      background: #f3f4f6;
      border-bottom: 1px solid var(--border);
      color: #4b5563;
      font-weight: 600;
    }
    .table-striped > tbody > tr:nth-of-type(odd) > * { background-color: #fafbfc; }
    .commande-color-cell {
      background-image: linear-gradient(90deg, var(--commande-color) 0, var(--commande-color) 4px, transparent 4px);
      background-repeat: no-repeat;
      background-size: 4px 100%;
      background-position: left center;
    }
    .drag-icon { font-size: 1rem; line-height: 1; color: #6b7280; }
    .row-selected {
      outline: 2px solid #0d6efd;
      outline-offset: -2px;
    }
    .nav-tabs { border-bottom: 1px solid var(--border); gap: 4px; }
    .nav-tabs .nav-link {
      border: 1px solid transparent;
      border-radius: 6px 6px 0 0;
      color: #6b7280;
      padding: 6px 12px;
    }
    .nav-tabs .nav-link.active {
      color: #0d6efd;
      background: #fff;
      border-color: var(--border) var(--border) #fff;
    }
    .progress { height: 18px; border-radius: 999px; }
    .progress-bar { font-weight: 600; }
    .drag-handle { cursor: grab; }
    #tabContextMenu { z-index: 2000; }
    #ofContextMenu { z-index: 3000; }
    tr.dragging { opacity: 0.5; }
    tr.drop-before td { border-top: 2px solid #0d6efd; }
    tr.drop-after td { border-bottom: 2px solid #0d6efd; }
    .drag-handle, .drag-handle * {
      user-select: none;
      -webkit-user-select: none;
      cursor: grab;
    }
    .dropzone-cell {
      height: 34px;
      padding: 0 10px !important;
      width: 100%;
      display: table-cell;
      background: repeating-linear-gradient(
        45deg,
        #f9f9f9,
        #f9f9f9 10px,
        #ececec 10px,
        #ececec 20px
      );
      border: 2px dashed #cbd5e1;
      border-radius: 6px;
      font-size: 0.9rem;
      font-weight: 500;
      color: #6b7280;
      text-align: center;
      white-space: nowrap;
      max-width: none !important;
    }
    .placeholder td { width: 100% !important; max-width: none !important; }
    tr.fabrique td { color: #9ca3af; opacity: 0.55; }
    .dropdown-submenu { position: relative; }
    .dropdown-submenu > .dropdown-menu {
      top: 0;
      left: 100%;
      margin-top: -0.25rem;
      display: none;
    }
    .dropdown-submenu:hover > .dropdown-menu { display: block; }
    tr.etat-direct td { background-color: inherit !important; }
    tr.etat-reprise td { background-color: var(--etat-reprise) !important; color: #fff; }
    tr.etat-bloque td { background-color: var(--etat-bloque) !important; color: #fff; }
    tr.etat-urgent td { background-color: var(--etat-urgent) !important; color: #fff; font-weight: 600; }
    .machine-tabs-shell {
      position: sticky;
      top: var(--sticky-machines-top);
      z-index: 1100;
      background: var(--panel);
    }
    #machineTabs { padding-top: 6px; }
    @media (max-width: 992px) {
      .admin-layout {
        grid-template-columns: 1fr;
      }
      .admin-sidebar {
        position: relative;
        height: auto;
        border-right: none;
        border-bottom: 1px solid rgba(148, 163, 184, 0.2);
      }
    }
    [id^="depotEphemere-"] {
      position: sticky;
      top: var(--sticky-depot-top);
      z-index: 1090;
      background:
        repeating-linear-gradient(
          135deg,
          rgba(37, 99, 235, 0.13) 0,
          rgba(37, 99, 235, 0.13) 6px,
          rgba(255, 255, 255, 0) 6px,
          rgba(255, 255, 255, 0) 14px
        ),
        linear-gradient(180deg, #f8fbff 0%, #edf5ff 100%);
      padding: 10px 12px;
      border: 1px solid #9ec5fe;
      border-left: 6px solid #2563eb;
      border-radius: 10px;
      box-shadow: 0 6px 18px rgba(37, 99, 235, 0.14);
      margin-top: 0;
      overflow: hidden;
    }
    [id^="depotEphemere-"] h3 {
      margin: 0 0 0.75rem;
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 3px 10px;
      background: #ffffff;
      border: 1px solid #d7e4ff;
      border-radius: 999px;
      color: #1e3a8a;
      font-size: 0.92rem;
      font-weight: 600;
    }
    [id^="depotEphemere-"] h3::before {
      content: "DEPOT";
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-width: 50px;
      padding: 2px 7px;
      border-radius: 999px;
      background: #2563eb;
      color: #fff;
      font-size: 0.68rem;
      letter-spacing: 0.04em;
    }
    [id^="depotEphemere-"] .table {
      margin-bottom: 0;
      background: #ffffff;
      border-color: #d7e4ff;
    }
    [id^="depotEphemere-"] .table thead th {
      background: #eaf2ff;
      color: #334155;
      border-bottom-color: #d7e4ff;
    }
    [id^="depotEphemere-"] .table td,
    [id^="depotEphemere-"] .table th {
      border-color: #dbe7ff;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    [id^="depotEphemere-"] .table-fixed th:nth-child(1),
    [id^="depotEphemere-"] .table-fixed td:nth-child(1) {
      width: 22px;
      max-width: 22px;
      padding-left: 3px;
      padding-right: 3px;
    }
    [id^="depotEphemere-"] .table-fixed th:nth-child(2),
    [id^="depotEphemere-"] .table-fixed td:nth-child(2) {
      width: 24px;
      max-width: 24px;
      padding-left: 3px;
      padding-right: 3px;
    }
    [id^="depotEphemere-"] .table-fixed th:nth-child(3),
    [id^="depotEphemere-"] .table-fixed td:nth-child(3) {
      width: 56px;
      max-width: 56px;
    }
    .machine-planning-tabs {
      position: sticky;
      top: var(--sticky-planning-top);
      z-index: 1080;
      background: var(--panel);
      padding-top: 6px;
      border-bottom: 1px solid var(--border);
    }
    .modal { z-index: 2000 !important; }
    .modal-backdrop { z-index: 1990 !important; }
    @media (max-width: 768px) {
      .admin-shell { padding: 12px 16px 16px; }
      .admin-header { flex-direction: column; align-items: flex-start; }
    }


.label-editor {
  gap: 16px;
}

.carton-format-preview-cell {
  width: 170px;
}

.carton-format-preview-cell .carton-format-preview span {
  display: none;
}

.cartons-dimension-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cartons-dimension-cell .form-select {
  min-width: 180px;
}

.cartons-dimension-cell .carton-format-preview {
  min-width: 132px;
}

.cartons-dimension-cell .carton-format-preview svg {
  width: 96px;
  height: 54px;
}

.cartons-dimension-cell .carton-format-preview span {
  display: none;
}

.carton-format-preview {
  min-width: 150px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #334155;
  font-size: 11px;
  line-height: 1.2;
}

.carton-format-preview svg {
  width: 132px;
  height: 74px;
  flex: 0 0 auto;
}

.carton-format-preview.is-empty {
  min-height: 40px;
  color: #94a3b8;
  font-style: italic;
}

.carton-preview-front {
  fill: #f8fafc;
  stroke: #0f172a;
  stroke-width: 1.2;
}

.carton-preview-top {
  fill: #dbeafe;
  stroke: #0f172a;
  stroke-width: 1.2;
}

.carton-preview-side {
  fill: #bfdbfe;
  stroke: #0f172a;
  stroke-width: 1.2;
}

.carton-preview-edge {
  fill: none;
  stroke: #0f172a;
  stroke-width: 1.2;
  stroke-linejoin: round;
}

.label-editor-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.label-editor-left {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.label-editor-right {
  display: flex;
  flex-direction: column;
}
.etiquettes-section {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px;
}
.etiquettes-section-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #475569;
  margin-bottom: 8px;
}
.etiquettes-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.etiquettes-btn {
  width: 34px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.etiquettes-help {
  font-size: 12px;
  color: #64748b;
}
.etiquettes-preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.etiquettes-preview-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}
.etiquettes-status {
  font-size: 12px;
  color: #475569;
  display: flex;
  gap: 8px;
  align-items: center;
}
.etiquettes-status .badge {
  font-size: 11px;
}

.etiquettes-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  padding: 8px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
  margin-bottom: 10px;
}
.etiquettes-toolbar-divider {
  width: 1px;
  height: 26px;
  background: #dbe2ea;
  margin: 0 2px;
}
.etiquettes-toolbar-input {
  max-width: 90px;
}
.etiquettes-toolbar-text {
  min-width: 180px;
  flex: 1;
}
.menu-icon {
  display: inline-flex;
  width: 18px;
  align-items: center;
  justify-content: center;
  margin-right: 8px;
  font-size: 14px;
  opacity: 0.85;
}
.menu-arrow {
  margin-left: 6px;
  opacity: 0.7;
}
.etiquettes-row-split {
  align-items: flex-start;
}
.etiquettes-split {
  flex: 1;
  min-width: 0;
}
.etiquettes-split .form-select,
.etiquettes-split .form-control {
  width: 100%;
}

.etiquettes-modal .modal-content {
  height: 100%;
}
.etiquettes-modal .modal-body {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 12px;
}
.etiquettes-modal .label-editor {
  flex: 1;
  min-height: 0;
  gap: 12px;
}
.etiquettes-modal .label-editor-left {
  gap: 10px;
}
.etiquettes-modal .label-editor-right {
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.etiquettes-modal .etiquettes-section {
  padding: 8px;
}
.etiquettes-modal .etiquettes-section-title {
  font-size: 11px;
  margin-bottom: 6px;
}
.etiquettes-modal .etiquettes-preview {
  flex: 1;
  min-height: 0;
  max-height: 100%;
}

#modalPreparationMatieresTool .modal-body {
  max-height: 75vh;
  overflow: hidden;
}

#prepMatieresResultsAdmin {
  max-height: calc(75vh - 120px);
  overflow: auto;
}
.matiere-orders-table {
  table-layout: auto;
  width: 100%;
}
.matiere-orders-table td,
.matiere-orders-table th {
  vertical-align: middle;
}
.matiere-orders-table tbody tr.matiere-order-group-even td {
  background-color: #fff;
}
.matiere-orders-table tbody tr.matiere-order-group-odd td {
  background-color: #eef2f7;
}
.matiere-orders-table td:nth-child(8) .d-flex {
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: 6px;
}
.matiere-orders-table td:nth-child(8) .admin-pill {
  min-width: 112px;
  max-width: 112px;
  width: 112px;
  text-align: center;
}
.matiere-orders-table td:nth-child(3),
.matiere-orders-table th:nth-child(3) {
  text-align: center;
}
.matiere-orders-table td:nth-child(6),
.matiere-orders-table th:nth-child(6) {
  text-align: left;
}
