/* Magasinier — catalogue sur tablette (tactile, lisible à bout de bras) */

:root {
  --ink: #14181f;
  --ink-2: #2a303b;
  --muted: #5b6270;
  --paper: #f3f1ec;
  --card: #ffffff;
  --line: #d9d5cc;
  --line-2: #e8e5de;
  --accent: #1847c9;
  --accent-ink: #ffffff;
  --accent-soft: #e6ecfb;
  --label: #ffd21f;         /* étiquette d'emplacement, comme les plaques des racks */
  --label-ink: #14181f;
  --ok: #17803d;
  --ok-soft: #e3f3e8;
  --warn: #b25b00;
  --danger: #c0271f;
  --radius: 12px;
  --tap: 56px;              /* taille minimale d'une cible tactile */
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Roboto Mono", "Cascadia Mono", Consolas, monospace;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 17px/1.35 var(--font);
  color: var(--ink);
  background: var(--paper);
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none;
}
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; touch-action: manipulation; -webkit-user-select: none; user-select: none; }
button:disabled { cursor: default; opacity: .45; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }

/* ------------------------------------------------------------------ barre du haut */
.bar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 12px;
  padding: 10px max(16px, env(safe-area-inset-right)) 10px max(16px, env(safe-area-inset-left));
  background: var(--ink); color: #fff;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; letter-spacing: .01em; }
.logo { width: 30px; height: 30px; flex: none; display: block; }
.logo.big { width: 64px; height: 64px; }

.sync {
  margin-left: auto; display: inline-flex; align-items: center; gap: 8px;
  min-height: 40px; padding: 0 14px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.22); background: transparent; color: #fff; font-size: 15px; white-space: nowrap;
}
.sync .dot { width: 9px; height: 9px; border-radius: 50%; background: #5ad17f; }
.sync[data-state="busy"] .dot { background: var(--label); animation: pulse 1s infinite; }
.sync[data-state="warn"] .dot { background: #ff8a3d; }
@keyframes pulse { 50% { opacity: .3; } }
.bar-actions { display: flex; gap: 6px; }
.ghost {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px; border-radius: 8px;
  background: transparent; border: 0; color: #cfd5df; text-decoration: none; font-size: 15px;
}
.ghost:hover { color: #fff; background: rgba(255,255,255,.08); }

/* ------------------------------------------------------------------ disposition */
.split {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 16px;
  padding: 16px max(16px, env(safe-area-inset-right)) 16px max(16px, env(safe-area-inset-left));
  height: calc(100dvh - 60px);
}
.pane {
  display: flex; flex-direction: column; min-height: 0;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}

@media (max-width: 899px) {
  .split { grid-template-columns: 1fr; padding-bottom: 8px; }
  .split[data-view="list"] .pane-detail, .split[data-view="fiche"] .pane-search { display: none; }
  .bar .brand { font-size: 17px; }
  .bar-actions .ghost { padding: 0 8px; }
}
@media (max-width: 520px) {
  .bar-actions a.ghost { display: none; }
  .sync { padding: 0 10px; }
}

/* ------------------------------------------------------------------ recherche */
.searchbox { display: flex; gap: 10px; padding: 14px; border-bottom: 1px solid var(--line-2); }
.field { position: relative; flex: 1; min-width: 0; }
.field input {
  width: 100%; height: var(--tap); padding: 0 48px 0 16px;
  border: 2px solid var(--line); border-radius: 10px; background: #fff; font-size: 20px;
  -webkit-appearance: none; appearance: none;
}
.field input:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 4px var(--accent-soft); }
.field input::-webkit-search-cancel-button { display: none; }
.clear {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; font-size: 28px; color: var(--muted);
}

.results { list-style: none; margin: 0; padding: 6px 8px 12px; overflow-y: auto; flex: 1; -webkit-overflow-scrolling: touch; }
.results li { padding: 2px 0; }
.results .empty { padding: 28px 12px; color: var(--muted); text-align: center; }
.result {
  display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; gap: 12px;
  width: 100%; min-height: 76px; padding: 6px 8px; text-align: left;
  border: 1px solid transparent; border-radius: 10px; background: transparent;
}
.result:active { background: var(--accent-soft); }
.result.selected { background: var(--accent-soft); border-color: #c3d1f5; }
.r-main { display: flex; flex-direction: column; min-width: 0; }
.r-lib { font-weight: 650; overflow-wrap: anywhere; }
.r-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 14px; color: var(--muted); margin-top: 2px; }
.code { font-family: var(--mono); font-size: 14px; }
.fam { font-size: 12px; font-weight: 700; letter-spacing: .04em; padding: 1px 6px; border-radius: 4px; background: var(--line-2); }
.r-locs { display: flex; flex-wrap: wrap; gap: 4px; justify-content: flex-end; max-width: 190px; }
.r-stock { font-weight: 650; color: var(--ink-2); }
.r-stock.low { color: var(--danger); }
.r-count { margin: 0; padding: 0 16px; font-size: 13px; color: var(--muted); min-height: 0; }
.r-count:empty { display: none; }
.count {
  display: inline-grid; place-items: center; min-width: 30px; height: 26px; padding: 0 8px; border-radius: 999px;
  background: var(--ink); color: #fff; font-size: 15px; font-weight: 700;
}

/* vignettes */
.thumb {
  display: block; width: 64px; height: 64px; border-radius: 8px; object-fit: contain; background: #fff;
  border: 1px solid var(--line-2);
}
.nophoto {
  background: #f4f3ef repeating-linear-gradient(135deg, transparent 0 8px, rgba(0,0,0,.035) 8px 16px);
}

/* familles */
.fams { display: flex; gap: 6px; overflow-x: auto; padding: 0 14px 10px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.fams::-webkit-scrollbar { display: none; }
.fam-chip {
  flex: none; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff;
  font-weight: 700; font-size: 15px; letter-spacing: .03em;
}
.fam-chip .n { margin-left: 6px; font-weight: 500; color: var(--muted); font-size: 13px; }
.fam-chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.fam-chip[aria-pressed="true"] .n { color: #c9ced8; }

/* étiquette d'emplacement */
.loc {
  display: inline-block; padding: 2px 7px; border-radius: 5px; border: 2px solid var(--label-ink);
  background: var(--label); color: var(--label-ink);
  font: 800 15px/1.2 var(--mono); letter-spacing: .02em; white-space: nowrap;
}
.loc.big { font-size: 20px; padding: 4px 10px; min-width: 76px; max-width: 100%; text-align: center; overflow: hidden; text-overflow: ellipsis; }
.t-loc { display: flex; min-width: 0; }
.loc.more { background: #fff; }
.loc.none { background: #fff; border-style: dashed; border-color: var(--danger); color: var(--danger); font-family: var(--font); font-size: 13px; font-weight: 700; }

/* ------------------------------------------------------------------ boutons */
.btn {
  min-height: var(--tap); padding: 0 20px; border-radius: 10px; border: 1px solid var(--line); background: #fff;
  font-weight: 700; font-size: 17px;
}
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-size: 19px; }
.btn.danger { background: #fff; border-color: #efb4af; color: var(--danger); }
.btn.small { min-height: 40px; padding: 0 12px; font-size: 15px; }

/* ------------------------------------------------------------------ fiche article */
.pane-detail { overflow-y: auto; -webkit-overflow-scrolling: touch; }
.fiche { display: flex; flex-direction: column; gap: 16px; padding: 16px 18px 24px; }
.f-head h2 { margin: 0; font-size: 24px; line-height: 1.2; overflow-wrap: anywhere; }
.f-meta { display: flex; gap: 10px; align-items: center; margin: 6px 0 0; color: var(--muted); }
.f-meta .code { font-size: 16px; }
.back {
  display: none; margin: 0 0 10px -6px; min-height: 44px; padding: 0 12px; border: 0; border-radius: 8px;
  background: transparent; color: var(--accent); font-weight: 700; font-size: 17px;
}
@media (max-width: 899px) { .back { display: inline-flex; align-items: center; } }

.gallery { display: flex; flex-direction: column; gap: 8px; }
.g-main {
  position: relative; display: grid; place-items: center; width: 100%; height: min(44vh, 440px); padding: 0;
  border: 1px solid var(--line-2); border-radius: 12px; background: #fff; overflow: hidden; cursor: zoom-in;
}
.g-main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; }
.g-empty { cursor: default; background: #f7f6f2 repeating-linear-gradient(135deg, transparent 0 14px, rgba(0,0,0,.03) 14px 28px); height: 160px; }
.g-none { color: var(--muted); font-weight: 600; }
.g-count {
  position: absolute; right: 10px; bottom: 10px; padding: 3px 9px; border-radius: 999px;
  background: rgba(20,24,31,.72); color: #fff; font-size: 13px; font-weight: 700;
}
.g-thumbs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; }
.g-thumb { flex: none; width: 72px; height: 72px; padding: 0; border: 2px solid var(--line-2); border-radius: 10px; background: #fff; overflow: hidden; }
.g-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.g-thumb[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.fact { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 12px; background: #f7f6f2; border: 1px solid var(--line-2); }
.f-label { font-size: 13px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.fact strong { font-size: 30px; line-height: 1.15; font-variant-numeric: tabular-nums; }
.fact .f-cdt { font-size: 18px; font-family: var(--mono); overflow-wrap: anywhere; }
.f-sub { font-size: 13px; color: var(--muted); }
.fact.stock.low strong { color: var(--danger); }

.f-locs h3 { margin: 0 0 8px; font-size: 13px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.zone { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line-2); }
.zone-name { font-weight: 750; color: var(--ink-2); }
.zone-locs { display: flex; flex-wrap: wrap; gap: 8px; }
.f-locs .loc.big { font-size: 24px; padding: 6px 14px; min-width: 90px; }
.f-none { margin: 0; color: var(--muted); }

@media (max-width: 899px) {
  .split[data-view="fiche"] .pane-detail { border: 0; background: transparent; }
  .fiche { padding: 4px 2px 24px; }
}
@media (max-width: 640px) {
  .result { grid-template-columns: 56px minmax(0, 1fr); }
  .result .thumb { width: 56px; height: 56px; grid-row: 1 / span 2; }
  .r-locs { grid-column: 2; justify-content: flex-start; max-width: none; }
  .zone { grid-template-columns: 1fr; gap: 4px; }
}

/* ------------------------------------------------------------------ photo plein écran */
.lightbox {
  position: fixed; inset: 0; z-index: 60; display: grid; place-items: center;
  background: rgba(10,12,16,.94); padding: 56px 12px 44px;
}
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; background: #fff; border-radius: 6px; }
.lb-close, .lb-nav {
  position: absolute; border: 0; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; line-height: 1;
}
.lb-close { top: 8px; right: 10px; width: 52px; height: 52px; font-size: 34px; }
.lb-nav { top: 50%; transform: translateY(-50%); width: 56px; height: 56px; font-size: 38px; }
.lb-nav.prev { left: 10px; }
.lb-nav.next { right: 10px; }
.lb-count { position: absolute; bottom: 10px; left: 0; right: 0; margin: 0; text-align: center; color: #d9dde4; font-size: 15px; }

/* ------------------------------------------------------------------ aides / messages */
.hint { padding: 28px 24px; color: var(--muted); max-width: 520px; }
.hint p { margin: 0 0 10px; }
.hint-title { color: var(--ink); font-weight: 700; font-size: 19px; }
.hint-small { font-size: 14px; }
.hint b { color: var(--ink); font-weight: 650; background: var(--line-2); padding: 0 5px; border-radius: 4px; }

#toasts {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 50;
  display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; width: min(92vw, 560px);
}
.toast {
  padding: 12px 18px; border-radius: 10px; background: var(--ink); color: #fff; font-weight: 600;
  box-shadow: 0 8px 24px rgba(0,0,0,.18); transition: opacity .35s, transform .35s; max-width: 100%;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.toast.ok { background: var(--ok); }
.toast.err { background: var(--danger); }
.toast.out { opacity: 0; transform: translateY(8px); }

/* ------------------------------------------------------------------ connexion */
.login {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px;
  background: var(--ink);
}
.login-card {
  width: min(380px, 100%); display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 28px 24px; border-radius: 18px; background: var(--card); text-align: center;
}
.login-card h1 { margin: 6px 0 0; font-size: 24px; }
.login-card p { margin: 0; color: var(--muted); }
.login-card input {
  width: 100%; height: 60px; margin-top: 6px; text-align: center; font: 700 30px var(--mono); letter-spacing: .3em;
  border: 2px solid var(--line); border-radius: 12px;
}
.login-card input:focus { border-color: var(--accent); outline: none; }
.pinpad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: 100%; margin-top: 6px; }
.pinpad button {
  height: 64px; border-radius: 12px; border: 1px solid var(--line); background: #f7f6f2; font-size: 26px; font-weight: 700;
}
.pinpad button:active { background: var(--accent-soft); }
.pinpad .primary { background: var(--accent); color: #fff; border-color: var(--accent); font-size: 20px; }
.login-error { min-height: 1.4em; color: var(--danger) !important; font-weight: 600; }
.shake { animation: shake .35s; }
@keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }

/* ------------------------------------------------------------------ admin */
.admin .wrap { max-width: 1180px; margin: 0 auto; padding: 16px max(16px, env(safe-area-inset-right)) 48px max(16px, env(safe-area-inset-left)); }
.admin h2 { margin: 0 0 4px; font-size: 21px; }
.admin .sub { margin: 0 0 14px; color: var(--muted); font-size: 15px; }
.admin-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.admin-tabs button {
  min-height: 46px; padding: 0 18px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); font-weight: 650;
}
.admin-tabs button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.card + .card { margin-top: 14px; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.toolbar input[type="search"] { flex: 1; min-width: 220px; height: 50px; padding: 0 14px; border: 2px solid var(--line); border-radius: 10px; font-size: 18px; }
.toolbar input[type="search"]:focus { border-color: var(--accent); outline: none; }
.toolbar select { height: 50px; padding: 0 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line-2); border-radius: 10px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 15px; }
.tbl th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 10px; background: #f7f6f2; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 8px 10px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.tbl tr.row { cursor: pointer; }
.tbl tr.row:hover td { background: #faf9f5; }
.tbl .locs { display: flex; flex-wrap: wrap; gap: 4px; }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

.form { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px 16px; }
.form label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 650; color: var(--ink-2); }
.form .wide { grid-column: 1 / -1; }
.form .wide > label { margin-bottom: 4px; }
.form input, .form textarea {
  height: 48px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-size: 17px; font-weight: 400;
}
.form input:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; min-height: 48px; padding: 6px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.chip { display: inline-flex; align-items: center; gap: 2px; }
.chip .loc { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.chip button { height: 29px; width: 30px; border: 2px solid var(--label-ink); border-left: 0; border-radius: 0 5px 5px 0; background: #fff; font-weight: 800; }
.chips input { flex: 1; min-width: 120px; height: 36px; border: 0; padding: 0 6px; font: 700 16px var(--mono); text-transform: none; }
.chips input:focus { outline: none; box-shadow: none; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.actions .spacer { flex: 1; }

dialog.sheet { width: min(760px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); border: 0; border-radius: 16px; padding: 22px; box-shadow: 0 24px 60px rgba(0,0,0,.28); }
dialog.sheet::backdrop { background: rgba(20,24,31,.55); }
dialog.sheet h3 { margin: 0 0 14px; font-size: 20px; }

.route-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; max-width: 520px; }
.route-list li {
  display: grid; grid-template-columns: 34px 1fr auto auto auto; align-items: center; gap: 8px;
  padding: 6px 6px 6px 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff;
}
.route-list .n { font-weight: 800; color: var(--muted); font-variant-numeric: tabular-nums; }
.route-list button { width: 44px; height: 40px; border: 1px solid var(--line); border-radius: 8px; background: #f7f6f2; font-size: 18px; }
.route-list .zn { font: 800 16px var(--mono); }
.route-list .cnt { font-size: 13px; color: var(--muted); }
.switch { display: flex; align-items: center; gap: 10px; margin: 14px 0; font-weight: 600; }
.switch input { width: 24px; height: 24px; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 14px 0; }
.stat { padding: 12px 14px; border-radius: 10px; background: #f7f6f2; border: 1px solid var(--line-2); }
.stat b { display: block; font-size: 26px; font-variant-numeric: tabular-nums; }
.stat span { font-size: 13px; color: var(--muted); }
.stat.new b { color: var(--ok); }
.stat.chg b { color: var(--accent); }
.stat.del b { color: var(--danger); }
.drop {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  min-height: 140px; border: 2px dashed var(--line); border-radius: 12px; background: #faf9f5; text-align: center; padding: 16px; cursor: pointer;
}
.drop.over { border-color: var(--accent); background: var(--accent-soft); }
.drop strong { font-size: 18px; }
.diff { max-height: 320px; overflow: auto; }
.diff td.old { color: var(--danger); text-decoration: line-through; }
.diff td.new { color: var(--ok); }
.ghost { white-space: nowrap; }
@media (max-width: 520px) { .admin .sync { display: none; } }

/* ------------------------------------------------------------------ admin › photos */
.ph-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.ph-card { display: flex; flex-direction: column; gap: 6px; padding: 8px; border: 1px solid var(--line-2); border-radius: 10px; background: #fff; }
.ph-card.is-main { border-color: var(--ok); box-shadow: 0 0 0 2px var(--ok-soft); }
.ph-card.is-hidden img { opacity: .35; }
.ph-card img, .ph-card .nophoto { width: 100%; aspect-ratio: 1; object-fit: contain; border-radius: 6px; background: #faf9f5; display: block; }
.ph-name { font-size: 12px; overflow-wrap: anywhere; color: var(--ink-2); }
.ph-folder { font-size: 11px; color: var(--muted); overflow-wrap: anywhere; }
.ph-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.ph-actions .btn { min-height: 34px; padding: 0 8px; font-size: 13px; }
.ph-badge { align-self: flex-start; font-size: 11px; font-weight: 800; padding: 1px 6px; border-radius: 4px; background: var(--ok); color: #fff; }
.ph-link { display: flex; flex-direction: column; gap: 6px; }
.ph-link .btn { min-height: 34px; padding: 0 8px; font-size: 13px; }
.ph-link input { width: 100%; height: 34px; padding: 0 8px; border: 1px solid var(--line); border-radius: 8px; font: 14px var(--mono); }
.sync-box { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.sync-box .bar-p { flex: 1; min-width: 200px; height: 10px; border-radius: 999px; background: var(--line-2); overflow: hidden; }
.sync-box .bar-p span { display: block; height: 100%; width: 0; background: var(--accent); transition: width .3s; }
.err-box { padding: 10px 12px; border-radius: 10px; background: #fbe4e2; color: var(--danger); font-weight: 600; }
.ok-box { padding: 10px 12px; border-radius: 10px; background: var(--ok-soft); color: var(--ok); font-weight: 600; }
.tbl .thumb { width: 44px; height: 44px; }
@media (max-width: 520px) { .app-catalogue .brand { font-size: 0; gap: 0; } }

/* article absent du fichier source (synchro SharePoint) */
.hors-ref { font-size: 12px; font-weight: 700; padding: 1px 7px; border-radius: 4px; background: #fbe4e2; color: var(--danger); white-space: nowrap; }
.tbl tr.is-hors td { color: var(--muted); }
.tbl td.sel, .tbl th.sel { width: 44px; text-align: center; }
.tbl .sel input { width: 22px; height: 22px; accent-color: var(--ink); }
.bulk { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 10px 12px; margin: 0 0 10px; border-radius: 10px; background: #fff7d1; border: 1px solid #f1dc84; }
.bulk[hidden] { display: none; }
.src-form { display: grid; grid-template-columns: 1fr 260px auto; gap: 10px; align-items: end; }
.src-form label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; color: var(--muted); }
.src-form input { width: 100%; }
@media (max-width: 760px) { .src-form { grid-template-columns: 1fr; } }
.src-form input { height: 46px; padding: 0 12px; border: 2px solid var(--line); border-radius: 10px; font-size: 15px; color: var(--ink); font-weight: 400; }
.src-form input:focus { border-color: var(--accent); outline: none; }
.src-file { margin: 10px 0 0; font-size: 14px; }
.src-file a { font-weight: 600; }
.bulk .spacer { flex: 1; }
.tbl tr.is-sel td { background: #fffbe6; }
