/* =========================================================
   REMUNERATION — Direction C
   Editorial stats, steel blue accent, tabular nums
   ========================================================= */

/* ===== BANNER (in-page) ===== */
.renum-banner {
  background: var(--surface);
  border: 1px solid var(--line-1);
  border-left: 3px solid var(--accent);
  border-radius: var(--r-lg);
  padding: 14px 16px;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: var(--sh-1);
  opacity: 0;
  transform: translateY(6px);
  animation: cardIn 0.35s var(--ease-out) forwards;
}
.renum-banner-title {
  font-size: var(--t-10);
  font-weight: var(--w-semibold);
  text-transform: uppercase;
  letter-spacing: var(--ls-wider);
  color: var(--ink-3);
}
.renum-banner-amount {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-height: 32px;
}
.renum-banner-amount .spinner {
  width: 18px;
  height: 18px;
  border-color: var(--line-2);
  border-top-color: var(--accent);
  border-width: 2px;
  align-self: center;
}
.renum-amount-value {
  font-size: var(--t-28);
  font-weight: var(--w-semibold);
  color: var(--ink-1);
  letter-spacing: var(--ls-display);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.renum-weekend-badge {
  background: var(--gold-soft);
  color: var(--gold);
  font-size: var(--t-10);
  font-weight: var(--w-semibold);
  padding: 2px 7px;
  border-radius: var(--r-xs);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
}
.renum-sets-info {
  font-size: var(--t-12);
  color: var(--ink-3);
  font-weight: var(--w-medium);
}

/* ===== Ménage RÉMUNÉRATION BUTTON (legacy compact) ===== */
.menage-renum-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: var(--r-sm);
  padding: 5px 10px;
  cursor: pointer;
  text-transform: none;
  letter-spacing: 0;
  color: inherit;
  transition: background var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
  flex-shrink: 0;
  box-shadow: var(--sh-1);
}
.menage-renum-btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.menage-renum-btn:active { transform: scale(0.97); }

.menage-renum-label {
  font-size: 9px;
  font-weight: var(--w-semibold);
  text-transform: uppercase;
  letter-spacing: var(--ls-wider);
  color: rgba(255,255,255,0.72);
}
.menage-renum-value { display: flex; align-items: center; min-height: 18px; }
.menage-renum-spinner {
  display: inline-block;
  width: 11px;
  height: 11px;
  border: 2px solid rgba(255,255,255,0.25);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.menage-renum-total {
  font-size: var(--t-14);
  font-weight: var(--w-semibold);
  color: #fff;
  letter-spacing: -0.005em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

/* ===== Direction C · Hero dark banner (Rémunération du jour) ===== */
.menage-renum-btn.renum-hero {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  background: #141a21;
  border: 1px solid #141a21;
  border-radius: var(--r-lg);
  padding: 12px 14px;
  box-shadow: var(--sh-1);
  margin: 10px 0;
  opacity: 0;
  transform: translateY(6px);
  animation: cardIn 0.35s var(--ease-out) forwards;
}
.menage-renum-btn.renum-hero:hover { background: #0b1017; border-color: #0b1017; }
@media (prefers-color-scheme: dark) {
  .menage-renum-btn.renum-hero {
    background: #0d1117;
    border-color: #1a2230;
  }
  .menage-renum-btn.renum-hero:hover { background: #0a0e14; border-color: #1a2230; }
}

.renum-hero-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 0;
}
.renum-hero .menage-renum-label {
  font-size: 9px;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.62);
}
.renum-hero .menage-renum-value {
  min-height: 26px;
}
.renum-hero .menage-renum-total {
  font-size: 24px;
  font-weight: var(--w-semibold);
  color: #ffffff;
  letter-spacing: var(--ls-tight);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.renum-hero .menage-renum-spinner {
  width: 14px;
  height: 14px;
  border-color: rgba(255,255,255,0.18);
  border-top-color: #fff;
}

.renum-hero-badge {
  flex: none;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
}
.renum-hero-badge .icn { width: 16px; height: 16px; }

/* ===== Dashboard hero (avatar + greeting) ===== */
.dashboard-hero {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  padding: 4px 2px 2px;
  margin-bottom: 4px;
}
.dashboard-hero-text { flex: 1; min-width: 0; line-height: 1.15; }
.dashboard-hero-eyebrow {
  font-size: 10px;
  font-weight: var(--w-medium);
  color: var(--ink-3);
  letter-spacing: 0.04em;
}
.dashboard-hero-name {
  font-size: 15px;
  font-weight: var(--w-semibold);
  color: var(--ink-1);
  letter-spacing: var(--ls-tight);
  line-height: 1.15;
  margin-top: -1px;
}

.section-letter.section-letter-hidden { display: none; }

/* ===== Gate opener inline card ===== */
.gate-opener-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--line-1);
  border-radius: var(--r-lg);
  margin-bottom: 10px;
  box-shadow: var(--sh-1);
  opacity: 0;
  transform: translateY(6px);
  animation: cardIn 0.35s var(--ease-out) forwards;
}
.gate-opener-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.gate-opener-title {
  font-size: 13px;
  font-weight: var(--w-semibold);
  color: var(--ink-1);
  letter-spacing: -0.005em;
}
.gate-opener-sub {
  font-size: 10px;
  color: var(--ink-3);
  font-weight: var(--w-medium);
}
.gate-opener-btn { flex-shrink: 0; }
.gate-opener-btn .icn { width: 14px; height: 14px; }

/* ===== Modal — bottom sheet ===== */
.menage-renum-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 15000;
  background: var(--overlay);
  display: flex;
  align-items: flex-end;
  animation: fadeIn 0.2s var(--ease) forwards;
}
.menage-renum-modal-overlay.menage-renum-modal-closing {
  animation: fadeOut 0.2s var(--ease) forwards;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeOut { from { opacity: 1; } to { opacity: 0; } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.menage-renum-modal {
  width: 100%;
  max-height: 85vh;
  background: var(--bg);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: slideUp 0.3s cubic-bezier(0.22,1,0.36,1) forwards;
  border-top: 1px solid var(--line-2);
}
.menage-renum-modal-overlay.menage-renum-modal-closing .menage-renum-modal {
  animation: slideDown 0.25s cubic-bezier(0.55,0,1,0.45) forwards;
}
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes slideDown { from { transform: translateY(0); } to { transform: translateY(100%); } }

.menage-renum-modal-header {
  background: var(--surface);
  padding: 16px 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  position: relative;
  border-bottom: 1px solid var(--line-1);
}
.menage-renum-modal-title {
  font-size: var(--t-16);
  font-weight: var(--w-semibold);
  color: var(--ink-1);
  letter-spacing: -0.01em;
}
.menage-renum-modal-agent {
  font-size: var(--t-11);
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: var(--ls-wider);
  font-weight: var(--w-semibold);
}
.menage-renum-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  width: 28px;
  height: 28px;
  color: var(--ink-2);
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.menage-renum-modal-close:hover { background: var(--surface-2); }

.menage-renum-modal-body {
  overflow-y: auto;
  flex: 1;
  padding: 4px 0 env(safe-area-inset-bottom, 0);
  background: var(--bg);
}
.menage-renum-modal-loading { display: flex; justify-content: center; padding: 28px; }
.menage-renum-modal-empty {
  text-align: center;
  color: var(--ink-3);
  font-size: var(--t-13);
  padding: 28px 20px;
}
.menage-renum-rows { padding: 4px 0; }

.menage-renum-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 16px;
  border-bottom: 1px solid var(--line-1);
  gap: 12px;
  background: var(--surface);
}
.menage-renum-row:last-child { border-bottom: none; }
.menage-renum-row-info { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.menage-renum-row-name {
  font-size: var(--t-14);
  font-weight: var(--w-medium);
  color: var(--ink-1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.menage-renum-row-time { font-size: var(--t-11); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.menage-renum-row-val {
  font-size: var(--t-14);
  font-weight: var(--w-semibold);
  color: var(--accent);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.menage-renum-row-val-empty { color: var(--ink-4); font-weight: var(--w-regular); }

.menage-renum-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  margin: 10px 12px 14px;
  background: var(--accent);
  border-radius: var(--r-lg);
  font-size: var(--t-13);
  font-weight: var(--w-semibold);
  color: rgba(255,255,255,0.8);
  text-transform: uppercase;
  letter-spacing: var(--ls-wider);
  box-shadow: var(--sh-2);
}
.menage-renum-grand-total {
  font-size: var(--t-24);
  font-weight: var(--w-semibold);
  color: #fff;
  letter-spacing: var(--ls-display);
  font-variant-numeric: tabular-nums;
  text-transform: none;
  letter-spacing: var(--ls-tight);
}

/* ===== CHEF RÉMUNÉRATION AGENTS PAGE ===== */
.chef-remu-page {
  position: fixed;
  inset: 0;
  z-index: 16000;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  animation: slideInFromRight 0.28s cubic-bezier(0.22,1,0.36,1) forwards;
  overflow: hidden;
}
.chef-remu-page.closing { animation: slideOutToRight 0.22s cubic-bezier(0.55,0,1,0.45) forwards; }
.chef-remu-page.closing-down { animation: gateModalOut 0.25s cubic-bezier(0.55,0,1,0.45) forwards; }

@keyframes slideInFromRight { from { transform: translateX(100%); } to { transform: translateX(0); } }
@keyframes slideOutToRight  { from { transform: translateX(0); } to { transform: translateX(100%); } }

.chef-remu-page-header {
  background: var(--surface);
  padding: max(env(safe-area-inset-top, 0px), 12px) 16px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  border-bottom: 1px solid var(--line-1);
}
.chef-remu-page-back {
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  width: 30px;
  height: 30px;
  color: var(--ink-2);
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.chef-remu-page-back:hover { background: var(--surface-2); }

.chef-remu-page-titles { flex: 1; display: flex; flex-direction: column; gap: 1px; }
.chef-remu-page-title {
  font-size: var(--t-15);
  font-weight: var(--w-semibold);
  color: var(--ink-1);
  letter-spacing: -0.01em;
}
.chef-remu-page-subtitle {
  font-size: var(--t-10);
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: var(--ls-wider);
  font-weight: var(--w-semibold);
}
.chef-remu-page-grand-total {
  font-size: var(--t-20);
  font-weight: var(--w-semibold);
  color: var(--accent);
  letter-spacing: -0.01em;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

.chef-remu-page-body {
  overflow-y: auto;
  flex: 1;
  padding: 4px 0 env(safe-area-inset-bottom, 20px);
}
.chef-remu-agent-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line-1);
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease);
  gap: 12px;
  background: var(--surface);
}
.chef-remu-agent-row:last-child { border-bottom: none; }
.chef-remu-agent-row:hover  { background: var(--surface-2); }
.chef-remu-agent-row:active { background: var(--surface-sunken); }

.chef-remu-agent-info { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.chef-remu-agent-name {
  font-size: var(--t-14);
  font-weight: var(--w-medium);
  color: var(--ink-1);
}
.chef-remu-agent-count { font-size: var(--t-11); color: var(--ink-3); }
.chef-remu-agent-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.chef-remu-agent-total {
  font-size: var(--t-16);
  font-weight: var(--w-semibold);
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.chef-remu-agent-chevron { color: var(--ink-4); font-size: 12px; }

.chef-agent-detail-overlay { z-index: 17000; }

.chef-remu-action-btn {
  background: var(--accent);
  border: 1px solid var(--accent);
  flex-direction: column;
  min-height: 70px;
  align-items: center;
  justify-content: center;
  gap: 4px;
  box-shadow: var(--sh-1);
  padding: 10px 6px;
}
.chef-remu-action-btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); }

.chef-remu-title {
  font-size: var(--t-11);
  font-weight: var(--w-semibold);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: var(--ls-wider);
  opacity: 0.95;
  line-height: 1.2;
}
.chef-remu-value {
  font-size: var(--t-20);
  font-weight: var(--w-semibold);
  color: #fff;
  letter-spacing: -0.01em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.chef-remu-action-btn .menage-renum-spinner { width: 14px; height: 14px; }

/* ===== STOCK LINGE BUTTON ===== */
.chef-stock-linge-action-btn {
  background: var(--ok);
  border: 1px solid var(--ok);
  flex-direction: column;
  min-height: 70px;
  align-items: center;
  justify-content: center;
  gap: 4px;
  box-shadow: var(--sh-1);
  padding: 10px 6px;
}
.chef-stock-linge-action-btn:hover { background: #266a49; border-color: #266a49; }

.chef-stock-linge-title {
  font-size: var(--t-11);
  font-weight: var(--w-semibold);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: var(--ls-wider);
  opacity: 0.95;
  line-height: 1.2;
}
.chef-stock-linge-subtitle {
  font-size: 9px;
  color: rgba(255,255,255,0.72);
  text-transform: uppercase;
  letter-spacing: var(--ls-wider);
  font-weight: var(--w-semibold);
}

/* ===== STOCK LINGE PAGE ===== */
.stock-linge-page {
  position: fixed;
  inset: 0;
  z-index: 16000;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  animation: slideInFromRight 0.28s cubic-bezier(0.22,1,0.36,1) forwards;
  overflow: hidden;
}
.stock-linge-page.closing { animation: slideOutToRight 0.22s cubic-bezier(0.55,0,1,0.45) forwards; }
.stock-linge-page.closing-down { animation: gateModalOut 0.25s cubic-bezier(0.55,0,1,0.45) forwards; }

.stock-linge-page-header {
  background: var(--surface);
  padding: max(env(safe-area-inset-top, 0px), 12px) 16px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  border-bottom: 1px solid var(--line-1);
}
.stock-linge-page-back {
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  width: 30px;
  height: 30px;
  color: var(--ink-2);
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.stock-linge-page-back:hover { background: var(--surface-2); }

.stock-linge-page-titles { flex: 1; display: flex; flex-direction: column; gap: 1px; }
.stock-linge-page-title {
  font-size: var(--t-15);
  font-weight: var(--w-semibold);
  color: var(--ink-1);
  letter-spacing: -0.01em;
}
.stock-linge-page-subtitle {
  font-size: var(--t-10);
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: var(--ls-wider);
  font-weight: var(--w-semibold);
}
.stock-linge-page-body { overflow: hidden; flex: 1; padding: 0; -webkit-overflow-scrolling: touch; }

.stock-linge-section { margin-bottom: 20px; }
.stock-linge-section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line-2);
  background: var(--surface-2);
}
.stock-linge-section-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
  border: 1px solid var(--line-2);
}
.stock-linge-section-icon.buanderie { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 25%, transparent); }
.stock-linge-section-icon.garage    { background: var(--gold-soft); border-color: color-mix(in srgb, var(--gold) 25%, transparent); }

.stock-linge-section-title { font-size: var(--t-14); font-weight: var(--w-semibold); color: var(--ink-1); }
.stock-linge-section-count { font-size: var(--t-11); color: var(--ink-3); margin-top: 1px; }

.stock-linge-item {
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: 12px 14px;
  margin: 0 12px 8px;
  border: 1px solid var(--line-1);
  transition: transform var(--dur-fast) var(--ease);
}
.stock-linge-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.stock-linge-item-name {
  font-size: var(--t-13);
  font-weight: var(--w-medium);
  color: var(--ink-1);
  flex: 1;
  min-width: 0;
}
.stock-linge-item-count {
  font-size: var(--t-18);
  font-weight: var(--w-semibold);
  min-width: 28px;
  text-align: right;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}
.stock-linge-item-count.stock-red    { color: var(--danger); }
.stock-linge-item-count.stock-orange { color: var(--warn); }
.stock-linge-item-count.stock-green  { color: var(--ok); }

.stock-linge-bar-track {
  width: 100%;
  height: 6px;
  background: var(--surface-sunken);
  border-radius: 99px;
  overflow: hidden;
}
.stock-linge-bar-fill {
  height: 100%;
  border-radius: 99px;
  transition: width 0.55s cubic-bezier(0.22,1,0.36,1), background var(--dur-base);
  min-width: 0;
}
.stock-linge-bar-fill.bar-red    { background: var(--danger); }
.stock-linge-bar-fill.bar-orange { background: var(--warn); }
.stock-linge-bar-fill.bar-green  { background: var(--ok); }

.stock-linge-loading { display: flex; align-items: center; justify-content: center; padding: 48px 0; }
.stock-linge-empty {
  text-align: center;
  padding: 36px 20px;
  color: var(--ink-3);
  font-size: var(--t-13);
}
.stock-linge-item-controls { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.stock-linge-stepper-btn {
  width: 26px;
  height: 26px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-2);
  background: var(--surface);
  color: var(--ink-2);
  font-size: 14px;
  font-weight: var(--w-medium);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
  flex-shrink: 0;
  line-height: 1;
  padding: 0;
}
.stock-linge-stepper-btn:hover { background: var(--surface-2); }
.stock-linge-stepper-btn:active { transform: scale(0.9); background: var(--surface-sunken); }
.stock-linge-stepper-btn:disabled { opacity: 0.3; cursor: default; }

.stock-linge-save-bar {
  position: sticky;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
  background: var(--bg);
  border-top: 1px solid var(--line-1);
  display: flex;
  gap: 10px;
  justify-content: center;
  animation: fadeInUp 0.25s var(--ease) forwards;
  z-index: 2;
}
.stock-linge-save-btn {
  background: var(--ok);
  color: #fff;
  border: 1px solid var(--ok);
  border-radius: var(--r-md);
  padding: 12px 0;
  font-size: var(--t-13);
  font-weight: var(--w-semibold);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  cursor: pointer;
  flex: 2;
  max-width: 260px;
  box-shadow: var(--sh-1);
  transition: background var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.stock-linge-save-btn:hover { background: #266a49; border-color: #266a49; }
.stock-linge-save-btn:active { transform: scale(0.98); }
.stock-linge-save-btn.saving { opacity: 0.7; cursor: default; }

.stock-linge-cancel-btn {
  background: var(--surface);
  color: var(--ink-2);
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  padding: 12px 0;
  font-size: var(--t-13);
  font-weight: var(--w-medium);
  text-transform: uppercase;
  letter-spacing: var(--ls-wider);
  cursor: pointer;
  flex: 1;
  max-width: 120px;
  transition: background var(--dur-fast) var(--ease);
}
.stock-linge-cancel-btn:hover { background: var(--surface-2); }

/* ===== STOCK LINGE — GRID DASHBOARD ===== */
.stock-linge-col-headers {
  display: grid;
  grid-template-columns: 1fr 100px 100px 100px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line-2);
  flex-shrink: 0;
  background: var(--surface-2);
}
.stock-linge-col-header-label {
  font-size: var(--t-10);
  font-weight: var(--w-semibold);
  text-transform: uppercase;
  letter-spacing: var(--ls-wider);
  color: var(--ink-3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 0 4px;
}
.stock-linge-col-header-label:first-child {
  justify-content: flex-start;
  padding-left: 14px;
  align-items: flex-start;
}
.stock-linge-col-header-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  border-radius: var(--r-xs);
  padding: 2px 8px;
  font-size: var(--t-11);
  font-weight: var(--w-semibold);
  color: #fff;
  min-width: 26px;
  font-variant-numeric: tabular-nums;
}

.stock-linge-rows-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  min-height: 0;
}
.stock-linge-grid-row {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 100px 100px 100px;
  border-bottom: 1px solid var(--line-1);
  min-height: 56px;
  transition: background var(--dur-fast) var(--ease);
  background: var(--surface);
}
.stock-linge-grid-row:last-child { border-bottom: none; }
.stock-linge-grid-row:hover  { background: var(--surface-2); }
.stock-linge-grid-row:active { background: var(--surface-sunken); }

.stock-linge-grid-name {
  display: flex;
  align-items: center;
  padding: 0 8px 0 14px;
  font-size: var(--t-12);
  font-weight: var(--w-medium);
  color: var(--ink-1);
  line-height: 1.25;
}
.stock-linge-grid-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px;
  border-left: 1px solid var(--line-1);
}
.stock-linge-grid-controls { display: flex; align-items: center; justify-content: center; gap: 4px; }

.stock-linge-grid-btn {
  width: 24px;
  height: 24px;
  border-radius: var(--r-xs);
  border: 1px solid var(--line-2);
  background: var(--surface);
  color: var(--ink-2);
  font-size: 13px;
  font-weight: var(--w-medium);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 1;
  padding: 0;
  transition: background var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.stock-linge-grid-btn:hover { background: var(--surface-2); }
.stock-linge-grid-btn:active { transform: scale(0.88); background: var(--surface-sunken); }
.stock-linge-grid-btn:disabled { opacity: 0.3; cursor: default; transform: none; }

.stock-linge-grid-count {
  font-size: var(--t-15);
  font-weight: var(--w-semibold);
  min-width: 24px;
  text-align: center;
  line-height: 1;
  padding: 2px 6px;
  border-radius: var(--r-xs);
  transition: all var(--dur-base);
  font-variant-numeric: tabular-nums;
}
.stock-linge-grid-count.stock-red {
  color: #fff;
  background: var(--danger);
  animation: alertPulse 2s ease-in-out infinite;
}
.stock-linge-grid-count.stock-orange { color: #fff; background: var(--warn); }
.stock-linge-grid-count.stock-green  { color: #fff; background: var(--ok); }
.stock-linge-grid-count.text-orange  { color: var(--warn); background: none; }

.stock-linge-grid-bar-track {
  width: 80%;
  height: 4px;
  background: var(--surface-sunken);
  border-radius: 99px;
  overflow: hidden;
}
.stock-linge-grid-bar-fill { height: 100%; border-radius: 99px; transition: width 0.55s cubic-bezier(0.22,1,0.36,1); }
.stock-linge-grid-bar-fill.bar-red    { background: var(--danger); }
.stock-linge-grid-bar-fill.bar-orange { background: var(--warn); }
.stock-linge-grid-bar-fill.bar-green  { background: var(--ok); }

@keyframes alertPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(177,50,50,0.35); }
  50%      { box-shadow: 0 0 0 4px rgba(177,50,50,0); }
}

/* ===== LINGE RÉMUNÉRATION STATS ===== */
.linge-renum-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 14px 12px 6px;
}
.linge-renum-stat {
  background: var(--surface);
  border: 1px solid var(--line-1);
  border-radius: var(--r-md);
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}
.linge-renum-stat-val {
  font-size: var(--t-20);
  font-weight: var(--w-semibold);
  color: var(--accent);
  letter-spacing: -0.01em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.linge-renum-stat-label {
  font-size: 10px;
  font-weight: var(--w-semibold);
  text-transform: uppercase;
  letter-spacing: var(--ls-wider);
  color: var(--ink-3);
}
.linge-renum-we-badge {
  font-size: var(--t-11);
  font-weight: var(--w-semibold);
  color: var(--gold);
  background: var(--gold-soft);
  padding: 2px 7px;
  border-radius: var(--r-xs);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* ===== LINGE SECTION (Buanderie) ===== */
.linge-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 12px;
  padding: 0 4px;
}
.linge-divider-line {
  flex: 1;
  height: 1px;
  background: var(--line-1);
}
.linge-divider-label {
  font-size: var(--t-10);
  font-weight: var(--w-semibold);
  text-transform: uppercase;
  letter-spacing: var(--ls-wider);
  color: var(--ink-3);
  white-space: nowrap;
}

.linge-btn-row {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
  opacity: 0;
  transform: translateY(6px);
  animation: cardIn 0.35s var(--ease-out) forwards;
}

.linge-btn-square {
  flex: 1;
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px 10px;
  border: 1px solid transparent;
  border-radius: var(--r-md);
  color: #fff;
  font-family: inherit;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
  position: relative;
  overflow: hidden;
  box-shadow: var(--sh-1);
}
.linge-btn-square:active:not(:disabled) { transform: scale(0.975); }
.linge-btn-square:disabled { cursor: not-allowed; opacity: 0.7; }
.linge-btn-square .spinner { width: 18px; height: 18px; border-width: 2px; display: inline-block; }
.linge-btn-emoji { font-size: 24px; line-height: 1; }
.linge-btn-text {
  font-size: var(--t-11);
  font-weight: var(--w-semibold);
  text-align: center;
  line-height: 1.3;
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
}

.linge-btn-square.active-btn {
  box-shadow: var(--sh-2) !important;
  outline: 2px solid rgba(255,255,255,0.6);
  outline-offset: -2px;
}

.gate-content { padding: 0; }
.gate-content .card-group { margin: 8px 0 0 0; border-radius: var(--r-lg); }
