@font-face {
  font-family: "DM Sans";
  src: url("/fonts/dm-sans-regular.ttf") format("truetype");
  font-weight: 400 500;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("/fonts/dm-sans-bold.ttf") format("truetype");
  font-weight: 600 800;
  font-display: swap;
}
:root {
  color-scheme: dark;
  font: 15px/1.55 "DM Sans", sans-serif;
  color: #eeeee9;
  background: #151614;
  --primary: #d4f58b;
  --muted: #acafa7;
  --line: #363933;
  --surface: #22241f;
  --raised: #2a2c26;
}
* { box-sizing: border-box; }
body { margin: 0; display: flex; min-height: 100vh; }
a { color: var(--primary); text-decoration: none; text-underline-offset: 4px; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; }
button, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 11px 17px;
  background: var(--primary);
  color: #202619;
  font-weight: 700;
  line-height: 1.35;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
button:hover, .button:hover { background: #e2ffac; text-decoration: none; }
button:disabled { background: #32352d; color: #989d90; cursor: not-allowed; }
.secondary { background: transparent; border-color: var(--line); color: #d3d6cd; }
.secondary:hover { background: var(--raised); }
.icon { width: 20px; height: 20px; flex: none; vertical-align: middle; }
aside {
  width: 230px;
  flex: none;
  position: sticky;
  top: 0;
  height: 100dvh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 26px;
  padding: 30px 17px 24px;
  background: #1b1d19;
  border-right: 1px solid #2c2f28;
}
.brand, .account, nav a, .drawer-heading a { display: flex; align-items: center; gap: 11px; }
.brand { padding: 0 12px; font-size: 1.35rem; letter-spacing: -.055em; }
.brand .icon { width: 27px; height: 27px; color: var(--primary); }
.account { padding: 9px 12px; min-width: 0; }
.account b { font-weight: 700; }
.account small { display: block; color: var(--muted); font-size: .76rem; margin-top: 1px; }
.avatar {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 13px;
  color: #dfd9f7;
  background: #383244;
  flex: none;
  font-weight: 700;
}
nav { display: grid; gap: 6px; }
nav a { color: #b9bdb2; padding: 11px 13px; border-radius: 12px; font-size: .92rem; }
nav a:hover { background: #2a2e24; color: #f4f5ee; text-decoration: none; }
nav a[aria-current=page] { color: #d8f59d; background: #303b22; }
.signout { margin-top: auto; }
.signout button { width: 100%; font-weight: 400; font-size: .86rem; }
main { width: 100%; max-width: 1680px; min-width: 0; padding: 38px 36px 60px; margin: 0 auto; }
h1, h2, h3 { font-weight: 600; letter-spacing: -.045em; line-height: 1.2; }
h1 { font-size: clamp(1.9rem, 2.6vw, 2.65rem); margin: 0; }
h2 { font-size: 1.18rem; margin: 0 0 16px; }
h3 { font-size: 1rem; margin: 0 0 12px; }
p { margin: 10px 0 16px; }
small { font-size: .82rem; }
.page-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 30px; }
.page-heading p { color: var(--muted); font-size: .87rem; margin: 8px 0 0; }
.page-heading .account { padding: 0; }
.page-heading .account small { color: var(--muted); }
.panel, article, .row, .notice { background: var(--surface); border: 1px solid var(--line); border-radius: 19px; }
.panel { max-width: 850px; padding: 23px; margin-bottom: 18px; }
.panel > :last-child { margin-bottom: 0; }
.notice { padding: 11px 16px; margin: 0 0 23px; color: #dae2ce; background: #252d20; border-color: #3d4d30; font-size: .87rem; }
.demo-note { background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 0 0 12px; margin-bottom: 26px; color: var(--muted); font-size: .77rem; }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 21px; }
.metric {
  display: flex;
  flex-direction: row-reverse;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 22px;
  min-height: 145px;
  border-radius: 20px;
  border: 1px solid var(--line);
  color: #e3e6dc;
  background: #24271f;
}
.metric:hover { text-decoration: none; border-color: #7a885e; }
.metric span { display: flex; flex-direction: column; gap: 16px; }
.metric strong { font-size: 2.5rem; letter-spacing: -.06em; line-height: 1; font-weight: 600; }
.metric small { font-size: .82rem; font-weight: 400; }
.metric .icon { width: 31px; height: 31px; padding: 7px; background: #ffffff0d; border-radius: 50%; }
.metric.violet { background: #d4f58b; color: #233019; border-color: #d4f58b; }
.metric.violet .icon { background: #a8cf62; }
.metric.amber { background: #2c2822; color: #f0d4b2; }
.metric.mint { background: #262d27; color: #c6dfc4; }
.metric.blue { background: #282830; color: #d2c9f0; }
.metric[aria-current=true] { outline: 2px solid #b7d27d; outline-offset: 3px; }
.dashboard { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.dashboard .panel { max-width: none; }
.queue { padding: 22px; }
.count { font-size: .76rem; letter-spacing: 0; padding: 4px 9px; margin-left: 5px; background: #34382e; border-radius: 20px; color: #c8cfbd; vertical-align: middle; }
.filters { display: flex; flex-wrap: wrap; gap: 7px; margin: 15px 0 21px; }
.filters a { padding: 7px 11px; border: 1px solid #3b3e35; border-radius: 9px; color: #c1c6b8; background: #2b2f25; font-size: .79rem; }
.filters a:hover { border-color: #9caf78; text-decoration: none; }
.filters a[aria-current=true] { background: #d4f58b; border-color: #d4f58b; color: #202d15; }
.work-links { margin: 0 0 26px; }
.work-links a { background: transparent; border-color: transparent; color: #c1c6b8; padding-left: 0; padding-right: 19px; border-radius: 0; }
.work-links a:hover { color: var(--primary); border-color: transparent; }
.table-scroll { overflow: auto; }
table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .85rem; }
td, th { padding: 15px 11px; text-align: left; white-space: nowrap; }
th { color: #a4aa98; font-weight: 400; font-size: .76rem; background: #1e211b; }
th:first-child { border-radius: 10px 0 0 10px; }
th:last-child { border-radius: 0 10px 10px 0; }
td { border-bottom: 1px solid #34372f; }
td a { font-weight: 600; color: #e5ebda; }
tbody tr:hover td { background: #2b3024; }
.selected td { background: #303927; }
.badge { display: inline-block; width: fit-content; max-width: 100%; border-radius: 8px; padding: 5px 9px; background: #303d2d; color: #c6dfb8; font-size: .74rem; font-weight: 500; white-space: normal; letter-spacing: 0; }
.warning { background: #493b25; color: #f8d9a2; }
.drawer-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 0 0 14px; }
.drawer-heading h2 { margin: 0; }
.drawer-heading a { font-size: .79rem; white-space: nowrap; }
.drawer-heading .icon { width: 15px; }
.empty { color: var(--muted); padding: 30px 13px; }
.empty strong { font-weight: 500; color: #d4d9cb; }
.empty p { margin-bottom: 0; font-size: .85rem; }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 19px; }
article { overflow: hidden; }
.photo, img, .placeholder { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; background: #34382f; }
.placeholder { display: grid; place-items: center; color: #afb7a3; font-size: .8rem; }
.card-body { display: grid; gap: 9px; padding: 19px; }
.card-body h2 { margin: 0; font-size: 1.08rem; }
.card-body h2 a { color: #f1f2eb; }
.card-body b { font-size: 1.15rem; font-weight: 600; }
.card-body small { color: #b1b7a8; }
.card-body .badge { color: #c6dfb8; }
.card-body .button { margin-top: 6px; }
.gallery { margin-top: 22px; margin-bottom: 22px; }
.gallery img { border-radius: 17px; }
.list { display: grid; gap: 10px; }
.row { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 16px; color: #d9dfcf; }
.row:hover { text-decoration: none; background: #2c3225; border-color: #576249; }
.row > span { font-size: .85rem; }
input:not([type=hidden]):not([type=checkbox]):not([type=radio]), select, textarea {
  width: min(100%, 450px);
  max-width: 100%;
  padding: 11px 12px;
  border: 1px solid #4c5343;
  border-radius: 10px;
  color: #f0f2eb;
  background: #191d16;
}
input::placeholder, textarea::placeholder { color: #929b86; opacity: 1; }
select { min-height: 45px; }
textarea { display: block; min-height: 105px; margin-top: 7px; resize: vertical; }
input[type=file] { font-size: .86rem; }
input[type=file]::file-selector-button { font: inherit; color: #d8e5c6; background: #303d25; border: 0; border-radius: 6px; padding: 7px 10px; margin-right: 10px; }
input[type=checkbox] { width: 18px; height: 18px; accent-color: #c5e784; vertical-align: middle; margin-right: 7px; }
label { color: #d5dacd; font-size: .9rem; }
.check { display: block; margin: 14px 0; }
.preview { max-width: 850px; }
.preview-fields { display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.preview-fields label { display: grid; gap: 8px; }
.searchbar label { display: block; margin-bottom: 8px; }
.searchbar > div { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.searchbar input { flex: 1 1 200px; }
.stock-filters .preview-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)); align-items: start; }
.stock-filters select, .stock-filters input { display: block; width: 100%; margin-top: 5px; }
details.panel > summary { cursor: pointer; color: #d8e4c9; font-weight: 500; }
details[open] > summary { margin-bottom: 19px; }
details details { margin-top: 14px; }
details summary::marker { color: #a5b58b; }
.payment-amount { display: flex; gap: 13px; align-items: flex-start; color: #d5e4c0; background: #303b26; border: 1px solid #4b5d38; border-radius: 13px; padding: 17px; margin-bottom: 16px; }
.payment-amount strong { display: block; font-size: 2rem; font-weight: 600; letter-spacing: -.045em; margin-top: 6px; }
.payment-card button { width: 100%; }
.order-products { list-style: none; margin: 16px 0; padding: 0; }
.order-products li { display: flex; gap: 14px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.order-products li div div { color: #b6beab; font-size: .83rem; margin-top: 4px; }
.order-thumb { display: block; width: 62px; flex: none; }
.order-thumb img, .order-thumb .placeholder { border-radius: 12px; }
.order-thumb .placeholder { font-size: .6rem; }
.customer-welcome { color: var(--muted); margin-top: -10px; margin-bottom: 24px; }
.customer-dashboard .list { margin: 14px 0 24px; }
.customer-dashboard .row { grid-template-columns: auto 1fr; }
.customer-dashboard .row .badge { grid-column: 1 / -1; }
.shipment { padding: 18px; border-radius: 13px; margin: 15px 0; }
.shipment form + details { margin-top: 14px; }
.tracking-copy { padding: 4px 9px; margin-left: 6px; font-size: .78rem; background: #343e29; color: #d4e7ba; }
audio { width: 100%; }
code { word-break: break-word; color: #dceac8; }
:focus-visible { outline: 3px solid #c1d995; outline-offset: 4px; }
[id^=colis-] { scroll-margin-top: 25px; }
@media (min-width: 1600px) { main { padding-left: 48px; padding-right: 48px; } }
@media (max-width: 1180px) {
  .dashboard { grid-template-columns: minmax(0, 1fr); }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  aside { width: 196px; padding-left: 10px; padding-right: 10px; }
  main { padding: 27px 22px; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  body { display: block; }
  aside { position: static; width: auto; height: auto; padding: 18px 16px; gap: 16px; border-right: 0; border-bottom: 1px solid var(--line); }
  aside .account { display: none; }
  .brand { padding: 0; }
  nav { display: flex; flex-wrap: wrap; gap: 5px; }
  nav a { padding: 7px 9px; font-size: .8rem; gap: 6px; }
  nav a .icon { width: 15px; height: 15px; }
  .signout { margin-top: 0; }
  .signout button { width: auto; padding: 6px 10px; font-size: .76rem; }
  main { padding: 25px 16px 40px; }
  .page-heading { margin-bottom: 23px; }
  .page-heading .account { display: none; }
  .demo-note { font-size: .72rem; }
  .metric { padding: 16px; min-height: 127px; border-radius: 16px; }
  .metric strong { font-size: 2.1rem; }
  .metric small { font-size: .77rem; }
  .metric .icon { width: 26px; height: 26px; padding: 5px; }
  .grid { gap: 12px; }
  .card-body { padding: 13px; }
  .card-body h2 { font-size: 1rem; }
  .card-body .button { padding: 9px; font-size: .85rem; }
  .panel, .queue { padding: 18px; border-radius: 16px; }
  .preview-fields { grid-template-columns: 1fr; }
  .row { grid-template-columns: 1fr; }
  .row .badge { grid-column: 1; }
  .drawer-heading { flex-wrap: wrap; }
  .work-links { gap: 5px 14px; }
  .work-links a { padding-right: 0; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }
/* Dossiers de remboursement */
.refund-row { grid-template-columns: 52px auto 1fr auto; }
.refund-row .order-thumb { width: 52px; }
.refund-steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 0; margin: 0 0 18px; }
.refund-steps li { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--muted); }
.refund-steps li > span { display: grid; place-items: center; width: 28px; height: 28px; flex: none; border-radius: 50%; border: 1px solid var(--line); font-weight: 700; }
.refund-steps li div { display: grid; }
.refund-steps li small { font-size: .78rem; }
.refund-steps li.done > span { background: #303d2d; color: #c6dfb8; border-color: #3d4d30; }
.refund-steps li.current { color: #eeeee9; border-color: var(--primary); }
.refund-steps li.current > span { background: var(--primary); color: #151614; border-color: var(--primary); }
.refund-action { border-color: var(--primary); }
.refund-head { display: flex; gap: 16px; align-items: flex-start; }
.refund-head .order-thumb { width: 96px; }
.refund-head h2 { margin-top: 0; }
@media (max-width: 700px) {
  .refund-steps { grid-template-columns: 1fr; }
  .refund-row { grid-template-columns: 44px 1fr; }
  .refund-row .order-thumb { width: 44px; grid-row: span 3; }
}
/* Point relais */
.relay-list { border: 0; padding: 0; margin: 0 0 16px; display: grid; gap: 8px; }
.relay-list legend { font-weight: 700; margin-bottom: 10px; }
.relay-option { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.relay-option:has(input:checked) { border-color: var(--primary); background: #2c3225; }
.relay-option span { display: grid; gap: 2px; }
.relay-option small { color: var(--muted); }
/* Expéditions : tuiles de statut et cartes colis */
.ship-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: -8px 0 16px; color: var(--muted); }
.ship-head p { margin: 0; }
.metric.status { background: var(--surface); color: #e3e6dc; min-height: 128px; }
.metric.status span { gap: 10px; }
.metric.status em { font-style: normal; font-size: .78rem; color: var(--muted); }
.status-chip { display: inline-block; width: fit-content; padding: 4px 10px; border-radius: 8px; font-weight: 600; color: #151614; }
.s-blue .status-chip { background: #8ea8ff; } .s-orange .status-chip { background: #f2a66b; }
.s-yellow .status-chip { background: #f3d77a; } .s-green .status-chip { background: #9be38f; }
.metric.status[aria-current=true] { border-color: var(--primary); outline: 2px solid var(--primary); outline-offset: 2px; }
.ship-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; align-items: start; }
.ship-card header { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 14px; }
.ship-card h3 { margin: 0; }
.ship-card header small { color: var(--muted); }
.ship-items { border: 0; padding: 0; margin: 0 0 14px; display: flex; flex-wrap: wrap; gap: 10px; }
.ship-items legend { font-size: .82rem; color: var(--muted); margin-bottom: 8px; }
.ship-pick { position: relative; display: grid; gap: 6px; justify-items: center; width: 92px; padding: 8px; border: 1px solid var(--line); border-radius: 14px; cursor: pointer; font-size: .78rem; }
.ship-pick:has(input:checked) { border-color: var(--primary); background: #2c3225; }
.ship-pick input { position: absolute; top: 8px; left: 8px; }
.ship-thumb { display: grid; gap: 4px; justify-items: center; width: 72px; font-size: .74rem; }
.ship-thumb img, .ship-thumb .placeholder { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; }
.ship-thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.ship-relay { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: var(--raised); }
.ship-relay span { display: grid; gap: 2px; } .ship-relay small { color: var(--muted); font-size: .74rem; }
.ship-weight input { width: 110px; margin-right: 6px; }
.ship-weight label span { display: inline-flex; align-items: center; }
.ship-actions { display: grid; gap: 10px; margin: 14px 0 6px; }
.ship-actions form button { width: 100%; }
.button-link { display: inline-flex; justify-content: center; align-items: center; gap: 8px; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--primary); color: var(--primary); font-weight: 600; }
.button-link:hover { text-decoration: none; background: #2c3225; }
.ship-more { margin-top: 8px; font-size: .85rem; }
.ship-more form { margin-top: 10px; }
.ship-metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .ship-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ship-head { flex-direction: column; align-items: flex-start; } }
/* Expéditions compactes (volume) */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ship-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.ship-tabs a { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); color: #e3e6dc; }
.ship-tabs a:hover { text-decoration: none; border-color: #7a885e; }
.ship-tabs a[aria-current=true] { border-color: var(--primary); box-shadow: inset 0 0 0 1px var(--primary); }
.ship-tabs strong { font-size: 1.5rem; line-height: 1; }
.bulk-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 10px; }
.bulk-bar small { color: var(--muted); }
.ship-filter { margin: 0 0 10px; }
.ship-filter input { max-width: 420px; }
.ship-table { padding: 0; }
.ship-table table { width: 100%; }
.ship-table td, .ship-table th { padding: 10px 12px; vertical-align: middle; }
.ship-table td small { display: block; color: var(--muted); font-size: .78rem; }
.ship-table td small.warn, .warn { color: #f2c49b; }
.ship-table input.weight { width: 90px; }
.ship-table td form { margin: 0; display: inline-flex; gap: 6px; align-items: center; }
.ship-table td form button { padding: 8px 12px; white-space: nowrap; }
.ship-table td form input[name=tracking] { width: 140px; }
.relay-cell { display: block; max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .85rem; }
.mini-thumbs { display: inline-flex; align-items: center; gap: 4px; vertical-align: middle; }
.mini-thumbs img, .mini-thumbs .placeholder { width: 36px; height: 36px; object-fit: cover; border-radius: 8px; font-size: 0; }
.mini-thumbs em { font-style: normal; font-size: .75rem; color: var(--muted); }
.pick-items summary { cursor: pointer; list-style: none; }
.pick-items .check { display: flex; gap: 6px; margin-top: 6px; font-size: .85rem; }
.row-actions { display: flex; gap: 6px; align-items: center; justify-content: flex-end; }
.row-more { position: relative; }
.row-more summary { list-style: none; cursor: pointer; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line); }
.row-more[open] > form { display: flex; margin-top: 6px; }
@media (max-width: 900px) { .ship-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* ===== Interface dense (Manea) ===== */
.s-grey.status-chip, .status-chip.s-grey { background: #3a3d35; color: #eeeee9; }
.status-chip.s-blue { background: #8ea8ff; } .status-chip.s-orange { background: #f2a66b; }
.status-chip.s-yellow { background: #f3d77a; } .status-chip.s-green { background: #9be38f; }
.status-chip { font-size: .78rem; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #6b7064; flex: none; }
.dot.s-blue { background: #8ea8ff; } .dot.s-orange { background: #f2a66b; } .dot.s-yellow { background: #f3d77a; } .dot.s-green { background: #9be38f; }
.muted { color: var(--muted); } .num { text-align: right; white-space: nowrap; } .strong { font-weight: 700; color: #eeeee9; }
.today-head p { margin: -10px 0 12px; color: var(--muted); }
.count-strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
.count-strip a { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); color: #eeeee9; }
.count-strip a:hover { text-decoration: none; border-color: #7a885e; }
.count-strip strong { font-size: 1.2rem; }
.today { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 14px; align-items: start; }
.today-main { display: grid; gap: 12px; min-width: 0; }
.work-group { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.work-group > header { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 9px 12px; background: #20221d; border-bottom: 1px solid #2a2c27; }
.work-group > header .hint { flex: 1; color: var(--muted); font-size: .82rem; min-width: 140px; }
.work-group form { margin: 0; }
button.small, .button.small { padding: 6px 12px; font-size: .82rem; border-radius: 9px; }
.sel-all { margin: 0; }
table.dense { width: 100%; border-collapse: collapse; font-size: .86rem; }
table.dense th { text-align: left; font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 8px 10px; background: #20221d; font-weight: 500; }
table.dense td { padding: 6px 10px; border-top: 1px solid #262823; height: 26px; vertical-align: middle; }
table.dense tr.selected td { background: #23281d; }
table.dense td.sel { width: 26px; }
table.dense td.act { text-align: right; white-space: nowrap; }
table.dense td.act form { display: inline; }
table.dense td.act button { padding: 5px 11px; font-size: .8rem; border-radius: 8px; background: transparent; color: var(--primary); border: 1px solid #4a5a33; }
table.dense td.act button:hover { background: #2a3320; }
table.dense .thumb-cell { width: 34px; }
table.dense .thumb-cell img, table.dense .thumb-cell .placeholder { width: 28px; height: 28px; border-radius: 6px; object-fit: cover; font-size: 0; display: block; }
.work-more summary { padding: 7px 12px; color: var(--muted); cursor: pointer; border-top: 1px solid #262823; font-size: .84rem; }
.today-side { display: grid; gap: 12px; }
.today-side .panel { padding: 14px; }
.today-side h2 { font-size: .95rem; margin: 0 0 8px; }
.kv { margin: 0; display: grid; grid-template-columns: 1fr auto; row-gap: 6px; font-size: .86rem; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; font-weight: 700; }
.watch { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: .86rem; }
.watch li { display: flex; justify-content: space-between; gap: 10px; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.pills a { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 10px; border: 1px solid var(--line); color: #e3e6dc; font-size: .86rem; }
.pills a:hover { text-decoration: none; border-color: #7a885e; }
.pills a[aria-current=true] { background: #2a3320; border-color: var(--primary); color: var(--primary); font-weight: 600; }
.pills b { font-weight: 600; color: var(--muted); }
.pill { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.dense-wrap { padding: 0; overflow-x: auto; }
.orders-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
.orders-layout.with-drawer { grid-template-columns: minmax(0, 1.3fr) minmax(320px, 1fr); }
/* ===== Côté client ===== */
.pay-card { display: grid; gap: 8px; padding: 16px; margin-bottom: 16px; border-radius: 18px; background: #3a2c1f; border: 1px solid #f2a66b; }
.pay-card strong { font-size: 1.1rem; } .pay-card p { margin: 0; color: #e7d3bf; }
.pay-card .button { justify-self: start; }
.progress { display: inline-grid; grid-template-columns: repeat(4, 18px); gap: 3px; vertical-align: middle; }
.progress i { height: 5px; border-radius: 3px; background: #33362f; }
.progress i.done { background: var(--primary); } .progress i.now { background: #f3d77a; }
.client-list .row { grid-template-columns: auto 1fr auto; }
.row-status { display: grid; justify-items: end; gap: 4px; } .row-status small { color: var(--muted); font-size: .76rem; }
.grid article form { margin: 8px 0 0; } .grid article form button { width: 100%; min-height: 44px; }
.card-more { display: block; margin-top: 8px; font-size: .82rem; text-align: center; }
/* ===== Responsive ===== */
@media (max-width: 1100px) {
  .today { grid-template-columns: minmax(0, 1fr); }
  .orders-layout.with-drawer { grid-template-columns: minmax(0, 1fr); }
  .count-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .hide-sm { display: none; }
  .count-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .work-group > header .hint { display: none; }
  table.dense td { padding: 6px 7px; }
  .ship-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .client-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* Clients : navigation en bas d’écran, comme une app */
  body.is-client { padding-bottom: 78px; }
  body.is-client aside { position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 20; flex-direction: row; justify-content: space-around; padding: 6px 6px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); border-bottom: 0; background: #161714; }
  body.is-client aside .brand, body.is-client aside .signout { display: none; }
  body.is-client aside nav { flex-wrap: nowrap; justify-content: space-around; width: 100%; gap: 0; }
  body.is-client aside nav a { flex: 1; flex-direction: column; align-items: center; gap: 3px; padding: 6px 4px; font-size: .7rem; border-radius: 10px; text-align: center; }
  body.is-client aside nav a .icon { width: 22px; height: 22px; }
  body.is-client .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}
.signout-inline { display: none; margin-top: 18px; }
@media (max-width: 700px) { body.is-client .signout-inline { display: block; } }
/* Aujourd’hui : onglets et liens */
.count-strip { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.count-strip a[aria-current=true] { border-color: var(--primary); box-shadow: inset 0 0 0 1px var(--primary); }
.tab-all { font-weight: 600; font-size: .86rem; }
a.status-chip { color: #151614; }
a.status-chip:hover { text-decoration: none; filter: brightness(1.08); }
.work-more { display: block; padding: 8px 12px; border-top: 1px solid #262823; font-size: .84rem; }
.work-empty { margin: 0; padding: 14px 12px; color: var(--muted); }
.client-link { color: #e3e6dc; }
.client-link:hover { color: var(--primary); }
.watch a { color: #e3e6dc; } .watch a:hover { color: var(--primary); }
.watch b { font-weight: 700; }
.kv dd a { color: inherit; }
@media (max-width: 1100px) { .count-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) { .count-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.welcome { max-width: 460px; margin: 30px auto; text-align: center; display: grid; gap: 10px; }
.welcome button.big { width: 100%; min-height: 56px; font-size: 1.1rem; }
.invite-ready { display: grid; gap: 12px; max-width: 720px; }
.invite-link code { display: block; padding: 12px; border-radius: 10px; background: var(--raised); word-break: break-all; }
.invite-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
/* Corrige un débordement mobile : les textes masqués (sr-only) des tableaux restent dans leur cadre défilant */
.table-scroll, .dense-wrap, .ship-table { position: relative; }
.sr-only { top: 0; left: 0; }
/* Connexion */
.auth-form { display: grid; gap: 10px; text-align: left; }
.auth-form label { display: grid; gap: 6px; }
.auth-form small { margin-top: -4px; }
/* Lecteur : aucune action visible */
body.is-readonly main form[method=post], body.is-readonly main button[form], body.is-readonly main .sel, body.is-readonly main .sel-all,
body.is-readonly main input[data-check-all], body.is-readonly main td.sel, body.is-readonly main .row-more, body.is-readonly main details.panel { display: none !important; }
/* Frise de livraison (camion) */
.track { margin: 10px 2px 4px; }
.track-line { position: relative; height: 4px; margin: 18px 10% 0; border-radius: 2px; background: #33362f; }
.track-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 2px; background: var(--primary); }
.track-truck { position: absolute; top: -15px; transform: translateX(-50%); width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--primary); color: #151614; box-shadow: 0 0 0 4px #1c1e1a; }
.track-truck .icon { width: 17px; height: 17px; }
.track ol { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); text-align: center; font-size: .72rem; color: var(--muted); }
.track li { display: grid; justify-items: center; gap: 4px; }
.track li i { width: 8px; height: 8px; border-radius: 50%; background: #33362f; margin-top: -21px; }
.track li.done i, .track li.now i { background: var(--primary); }
.track li.now span { color: #eeeee9; font-weight: 600; }
.track-note { margin: 8px 0 0; font-size: .78rem; color: var(--muted); }
.track-note.strong-note { color: #f3d77a; }
.order-block { display: grid; gap: 2px; }
.legal { max-width: 760px; line-height: 1.6; } .legal h2 { margin-top: 18px; font-size: 1.05rem; } .legal ul { padding-left: 18px; }
.legal-links { margin-top: 40px; font-size: .78rem; color: var(--muted); } .legal-links a { color: var(--muted); }
/* Colis fournisseur */
.colis-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pick-grid { display: flex; flex-wrap: wrap; gap: 10px; padding: 12px; }
.pick-grid .ship-pick small { color: var(--muted); font-size: .7rem; }
.colis-head { display: grid; gap: 8px; max-width: none; }
.colis-head h2 { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 0; }
.inline-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; }
.inline-form label { display: grid; gap: 4px; }
.track.journey { margin-bottom: 6px; }
.track.journey ol { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.track.journey .track-line { margin: 18px 12.5% 0; }
@media (max-width: 700px) { .colis-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Colis : sacs en grand, les plus anciens d'abord */
.colis-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.colis-help { margin: 4px 0 10px; }
.sticky-bar { position: sticky; top: 0; z-index: 5; flex-wrap: wrap; }
.colis-extra { font-size: .85rem; }
.colis-extra[open] { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; }
.colis-extra label { display: grid; gap: 2px; }
.bag-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; margin: 12px 0; }
.bag-card { position: relative; display: grid; background: var(--surface); border: 2px solid var(--line); border-radius: 12px; overflow: hidden; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.bag-card input { position: absolute; top: 10px; left: 10px; width: 22px; height: 22px; z-index: 2; accent-color: var(--primary); }
.bag-card:has(input:checked) { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 30%, transparent); }
.bag-card:has(input:checked) .bag-meta { background: color-mix(in srgb, var(--primary) 14%, var(--surface)); }
.bag-card:has(input:focus-visible) { outline: 2px solid var(--primary); outline-offset: 2px; }
.bag-photo { aspect-ratio: 1; background: #f3f3f3; display: block; }
.bag-photo img, .bag-photo picture { width: 100%; height: 100%; object-fit: cover; display: block; }
.bag-meta { display: grid; gap: 2px; padding: 8px 10px 10px; font-size: .85rem; color: #eeeee9; }
.bag-meta small { color: var(--muted); }
.bag-card.is-old .bag-meta small { color: #f5b971; font-weight: 600; }
.track.journey.is-done .track-truck { opacity: .5; }
@media (max-width: 700px) { .bag-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } .colis-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.demo-panel form { display: grid; gap: 8px; justify-items: start; margin-top: 8px; }
.demo-panel button.danger, button.danger { background: #b42318; border-color: #b42318; color: #fff; }

.colis-strip a { min-width: 0; }
.colis-strip .status-chip { white-space: nowrap; }
.nav-section { display: block; margin: 14px 12px 4px; font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.colis-actions { margin: 4px 0 10px; }
.colis-steps { margin: 4px 0 12px; padding-left: 1.3em; color: var(--muted); display: grid; gap: 2px; }
.colis-steps b { color: #eeeee9; }
@media (max-width: 900px) { .nav-section { flex-basis: 100%; width: 100%; margin: 8px 4px 2px; } }
/* Statut client ROOKIE / ALL STAR */
.tier-badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: .72rem; font-weight: 800; letter-spacing: .05em; vertical-align: middle; }
.tier-badge.rookie { background: #3a3f2f; color: #d4f58b; border: 1px solid #5d6a3c; }
.tier-badge.allstar { background: linear-gradient(90deg,#f7d774,#f0a94b); color: #1b1b16; }
.tier-badge.split { background: #2b3550; color: #b9c8ff; }
.tier-banner { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 10px 14px; margin-bottom: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.tier-banner form { margin: 0 0 0 auto; }
.tier-banner.allstar { border-color: #8a6d2c; background: linear-gradient(90deg,rgba(247,215,116,.12),transparent); }
.tier-banner.is-low { border-color: #8a6d2c; }
.tier-banner.is-full { border-color: #b42318; background: rgba(180,35,24,.12); }
.tier-meter { display: inline-block; width: 120px; height: 8px; border-radius: 99px; background: var(--raised); overflow: hidden; }
.tier-meter i { display: block; height: 100%; background: var(--primary); border-radius: 99px; }
.tier-banner.is-low .tier-meter i { background: #f0a94b; }
.tier-banner.is-full .tier-meter i { background: #f97066; }
.tier-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 12px; }
.tier-fields { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin: 0 0 12px; }
.tier-choice { display: grid; gap: 6px; }
.tier-locked { color: #f5b971; font-weight: 600; font-size: .85rem; margin: 6px 0; }
@media (max-width: 700px) { .tier-banner form { margin-left: 0; } .tier-meter { width: 90px; } }
.tier-quiet { margin: 0 0 8px; text-align: right; }
.tier-quiet .tier-badge.allstar { background: transparent; color: #e9c46a; border: 1px solid #6b5a2c; font-weight: 700; }
/* Suivi client sac par sac */
.bag-follow-list { display: grid; gap: 12px; }
.bag-follow { display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: start; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.bag-follow-photo { display: block; aspect-ratio: 1; border-radius: 8px; overflow: hidden; background: #f3f3f3; }
.bag-follow-photo img, .bag-follow-photo picture { width: 100%; height: 100%; object-fit: cover; display: block; }
.bag-follow-body header { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.bag-follow-body header .status-chip { margin-left: auto; }
.bag-track { margin: 10px 0 0; }
.bag-track ol { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.bag-track .track-line { margin: 18px 10% 0; }
.bag-track ol span { font-size: .72rem; }
.bag-tracking { margin: 8px 0 0; font-size: .85rem; }
.pick-title { font-size: 1rem; margin: 18px 0 4px; }
@media (max-width: 600px) { .bag-follow { grid-template-columns: 64px 1fr; gap: 10px; align-items: center; } .bag-follow-body header { gap: 4px 8px; } .bag-follow-body header .status-chip { margin-left: 0; } }
.bag-follow-track { grid-column: 1 / -1; }
.bag-follow-track .bag-track ol { font-size: .74rem; }
.bag-follow-track .bag-track ol span { font-size: .74rem; line-height: 1.25; }
@media (max-width: 600px) { .bag-follow-track .bag-track ol span { font-size: .7rem; } .bag-follow-track .bag-track li:not(.now):not(.done) span { color: #6f7368; } .bag-follow-track .bag-track li.now span { color: #d4f58b; font-weight: 700; } }
.track-line.at-0 .track-fill { width: 0%; } .track-line.at-0 .track-truck { left: 0%; }
.track-line.at-25 .track-fill { width: 25%; } .track-line.at-25 .track-truck { left: 25%; }
.track-line.at-50 .track-fill { width: 50%; } .track-line.at-50 .track-truck { left: 50%; }
.track-line.at-75 .track-fill { width: 75%; } .track-line.at-75 .track-truck { left: 75%; }
.track-line.at-100 .track-fill { width: 100%; } .track-line.at-100 .track-truck { left: 100%; }
.tier-meter i.w-0 { width: 0%; }
.tier-meter i.w-1 { width: 10%; }
.tier-meter i.w-2 { width: 20%; }
.tier-meter i.w-3 { width: 30%; }
.tier-meter i.w-4 { width: 40%; }
.tier-meter i.w-5 { width: 50%; }
.tier-meter i.w-6 { width: 60%; }
.tier-meter i.w-7 { width: 70%; }
.tier-meter i.w-8 { width: 80%; }
.tier-meter i.w-9 { width: 90%; }
.tier-meter i.w-10 { width: 100%; }
@media (max-width: 600px) { .bag-track ol li:not(.now) span { visibility: hidden; } .bag-track ol li.now span { white-space: nowrap; font-size: .7rem; } .bag-track ol li:first-child.now span { display: inline-block; transform: translateX(30%); } .bag-track ol li:last-child.now span { display: inline-block; transform: translateX(-30%); } }
.archive-link { margin: 8px 0 12px; font-size: .9rem; }
/* Photos entières, jamais coupées */
.photo img, .gallery img, .thumb-cell img, .bag-photo img, .bag-follow-photo img, .ship-thumb img { object-fit: contain !important; background: #f3f1ec; }
.photo, .bag-photo, .bag-follow-photo { background: #f3f1ec; }
/* Cartes produit : les prix d'abord */
.card-meta { display: flex; justify-content: space-between; gap: 8px; font-size: .78rem; color: #9ca293; }
.card-meta .card-code { color: #8a9081; font-weight: 500; }
.price-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.price-pair small { display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; color: #a6ac9c; }
.price-buy { padding: 8px 10px; border-radius: 10px; background: #2b2f27; }
.price-buy strong { font-size: 1.5rem; font-weight: 800; color: #f4f5ee; line-height: 1.15; }
.price-resale { padding: 8px 10px; border-radius: 10px; background: rgba(212,245,139,.1); border: 1px solid rgba(212,245,139,.35); }
.price-resale strong { font-size: 1.25rem; font-weight: 800; color: #d4f58b; line-height: 1.2; }
.price-gain { margin: 0; font-size: .82rem; font-weight: 700; color: #b9e27a; }
@media (max-width: 600px) { .price-buy strong { font-size: 1.2rem; } .price-resale strong { font-size: 1.05rem; } .price-pair { gap: 6px; } .price-buy, .price-resale { padding: 6px 8px; } }
/* Publication : aperçu des photos */
.photo-tip { display: block; margin-top: 6px; font-size: .82rem; color: #a6ac9c; }
.photo-preview { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; margin-top: 10px; }
.photo-preview figure { margin: 0; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: #f3f1ec; }
.photo-preview img { width: 100%; height: 100%; object-fit: contain; }
.photo-preview p { grid-column: 1 / -1; margin: 0; font-size: .82rem; color: #a6ac9c; }
@media (max-width: 600px) { .price-pair { grid-template-columns: 1fr; gap: 6px; } .price-buy, .price-resale { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; } .price-pair small { display: inline; } .price-buy strong { font-size: 1.15rem; white-space: nowrap; } .price-resale strong { font-size: 1rem; white-space: nowrap; } .price-gain { font-size: .74rem; } }
/* Bandeau notifications */
.push-banner { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin-bottom: 14px; border: 1px solid rgba(212,245,139,.35); border-radius: 12px; background: rgba(212,245,139,.07); }
.push-banner[hidden] { display: none; }
.push-text { display: grid; gap: 2px; flex: 1; font-size: .9rem; }
.push-text span { color: #b1b7a8; }
.push-close { background: none; border: 0; color: #b1b7a8; font-size: 1.3rem; padding: 4px 8px; min-height: 0; }
.push-banner [hidden], .push-banner[hidden] { display: none !important; }
/* Arrivages : sac réservé laissé à sa place, avec filigrane */
.grid article .photo { position: relative; }
.grid article .photo { overflow: hidden; }
.taken-mark { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; pointer-events: none; }
.taken-mark b { max-width: 82%; padding: 9px 16px; border-radius: 12px; background: rgba(214,58,58,.78); color: #fff; font: inherit; font-size: 1.02rem; font-weight: 800; line-height: 1.2; letter-spacing: .03em; text-align: center; text-transform: uppercase; }
.taken-mark small { padding: 3px 10px; border-radius: 999px; background: rgba(21,22,20,.72); color: #fff; font-size: .74rem; font-weight: 600; letter-spacing: 0 !important; text-transform: none; }
.grid article.is-taken .card-body { opacity: .8; }
.grid article.is-mine .taken-mark b { background: rgba(212,245,139,.78); color: #151614; }
.grid article.is-mine .taken-mark small { color: #d4f58b; }
/* Confirmation de réservation, sans faire remonter la page */
.reserve-toast { position: fixed; left: 50%; bottom: 92px; transform: translateX(-50%); z-index: 50; padding: 12px 18px; border-radius: 12px; background: #d4f58b; color: #151614; box-shadow: 0 10px 30px rgba(0,0,0,.4); font-size: .92rem; animation: toast 4.5s ease forwards; white-space: nowrap; }
.reserve-toast a { color: #151614; text-decoration: underline; }
@keyframes toast { 0% { opacity: 0; transform: translate(-50%, 12px); } 8%, 80% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; transform: translate(-50%, 12px); visibility: hidden; } }
@media (min-width: 900px) { .reserve-toast { bottom: 28px; } }

/* Confirmation de commande + délai de paiement */
.status-chip.s-violet, .s-violet .status-chip, .dot.s-violet { background: #b9a2ff; }
.confirm-panel { border: 2px solid #b9a2ff; }
.confirm-panel.is-done { border-color: #9be38f; }
.confirm-bags { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 10px; }
.confirm-bags li { display: grid; grid-template-columns: 64px 1fr auto auto; gap: 12px; align-items: center; }
.mini-bag { display: inline-block; width: 64px; height: 64px; border-radius: 10px; overflow: hidden; background: #f4f1ec; flex: none; }
.mini-bag img { width: 100%; height: 100%; object-fit: contain; }
.bags-cell { display: flex; flex-wrap: wrap; gap: 6px; }
.bags-cell .mini-bag { width: 76px; height: 76px; border-radius: 12px; }
#confirmer td { padding-top: 12px; padding-bottom: 12px; vertical-align: middle; }
.bags-cell { gap: 8px; }
.pay-deadline { font-weight: 700; color: #b4231a; }
.pay-wait { border: 2px dashed #b9a2ff; }
.waiting-pay { opacity: .8; }
@media (max-width: 560px) { .confirm-bags li { grid-template-columns: 56px 1fr; } .confirm-bags li form { grid-column: 1 / -1; } }

/* Fil : filtres Tous / En stock / Vendus */
.feed-tabs { display: flex; gap: 8px; margin: 0 0 14px; flex-wrap: wrap; }
.feed-tabs a { padding: 9px 18px; border-radius: 999px; border: 1px solid #34372f; text-decoration: none; color: #c9cdbf; font-weight: 600; background: transparent; }
.feed-tabs a:hover { border-color: #5a5e53; color: #fff; }
.feed-tabs a.is-on { background: #d4f58b; color: #151614; border-color: #d4f58b; }
.feed-note { text-align: center; margin-top: 12px; font-size: .9em; }

/* Compte à préparer avant de réserver */
.setup-banner { display: flex; align-items: center; gap: 14px; padding: 14px 18px; margin: 0 0 16px; border-radius: 16px; background: #1e201c; border: 1px solid #d4f58b; color: #fff; text-decoration: none; }
.setup-banner span:nth-child(2) { flex: 1; display: grid; gap: 2px; }
.setup-banner small { opacity: .75; }
.setup-banner b { white-space: nowrap; }
.setup-count { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 2px solid #d4f58b; font-weight: 700; color: #d4f58b; flex: none; }
.setup-cta { display: block; text-align: center; background: transparent; color: #d4f58b; border: 1px dashed #d4f58b; }
.setup-intro { max-width: 640px; }
.setup-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; max-width: 640px; }
.setup-step { background: #1e201c; border: 1px solid #34372f; border-radius: 18px; padding: 16px 18px; }
.setup-step.is-done { border-color: #4d6a2e; }
.step-head { display: flex; align-items: center; gap: 12px; }
.step-head h2 { margin: 0; font-size: 1.05rem; flex: 1; }
.step-n { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #34372f; color: #fff; font-weight: 700; flex: none; }
.is-done .step-n { background: #d4f58b; color: #151614; }
.step-state { font-size: .85rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.step-state.ok { background: rgba(212,245,139,.15); color: #d4f58b; }
.step-state.todo { background: rgba(242,166,107,.15); color: #f2a66b; }
.step-body p { margin: 10px 0 0; }
.kbd { display: inline-block; padding: 0 6px; border: 1px solid #5a5e53; border-radius: 6px; background: #2a2d26; }
.setup-ready { border: 1px solid #d4f58b; max-width: 640px; }

/* Paiement côté client : un seul écran clair, avec chrono */
.pay-hero { background: #1e201c; border: 1px solid #34372f; border-radius: 22px; padding: 20px; display: grid; gap: 16px; max-width: 640px; }
.pay-hero.is-pay { border-color: #d4f58b; }
.pay-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4,1fr); gap: 6px; }
.pay-steps li { display: grid; gap: 6px; font-size: .74rem; color: #8b8f84; }
.pay-steps i { height: 4px; border-radius: 4px; background: #34372f; }
.pay-steps li.done i { background: #d4f58b; } .pay-steps li.done { color: #c9cdbf; }
.pay-steps li.now i { background: #f2a66b; } .pay-steps li.now { color: #fff; font-weight: 600; }
.pay-hero-main { display: flex; gap: 14px; align-items: flex-start; }
.pay-hero-main h2 { margin: 0 0 6px; font-size: 1.15rem; }
.pay-hero-main p { margin: 0; color: #c9cdbf; }
.pay-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: #2a2d26; color: #b9a2ff; flex: none; }
.pay-icon.ok { color: #d4f58b; }
.pay-icon .icon { width: 24px; height: 24px; }
.pay-timer { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.pay-clock { display: block; font-size: 3rem; font-weight: 700; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: #d4f58b; }
.pay-clock.is-late { color: #f2a66b; }
.pay-timer small { color: #8b8f84; }
.pay-amount { font-size: 1.5rem; font-weight: 700; }
.pay-bar { height: 6px; border-radius: 6px; background: #34372f; overflow: hidden; }
.pay-bar i { display: block; height: 100%; width: 100%; background: #d4f58b; border-radius: 6px; transition: width 1s linear; }
.pay-bar i.is-late { background: #f2a66b; }
.pay-fields { display: grid; gap: 8px; }
.pay-field { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "l b" "v b"; align-items: center; gap: 2px 12px; padding: 12px 14px; border-radius: 14px; background: #151614; }
.pay-field span { grid-area: l; font-size: .78rem; color: #8b8f84; }
.pay-field span em { font-style: normal; color: #f2a66b; }
.pay-field b { grid-area: v; font-size: 1.02rem; word-break: break-all; }
.pay-field button { grid-area: b; }
.pay-field button.is-copied { border-color: #d4f58b; color: #d4f58b; }
.pay-hint, .pay-demo { margin: 0; font-size: .88rem; color: #c9cdbf; }
.pay-hero form { margin: 0; }
.pay-cta { width: 100%; padding: 16px; font-size: 1.05rem; border-radius: 16px; }
.pay-expired { margin: 0; color: #f2a66b; font-weight: 600; }
.pay-bags { list-style: none; margin: 0; padding: 0; display: flex; gap: 10px; overflow-x: auto; }
.pay-bags li { display: flex; gap: 10px; align-items: center; padding: 8px 12px 8px 8px; border-radius: 14px; background: #151614; flex: none; }
.pay-bags a { display: block; width: 52px; height: 52px; border-radius: 10px; overflow: hidden; background: #f4f1ec; }
.pay-bags img { width: 100%; height: 100%; object-fit: contain; }
.pay-bags span { display: grid; } .pay-bags small { color: #8b8f84; }
.pay-total { display: flex; justify-content: space-between; margin: 0; padding-top: 12px; border-top: 1px solid #34372f; }
.link-button { background: none; border: 0; padding: 0; color: #8b8f84; text-decoration: underline; font-weight: 400; }
.countdown-chip { display: inline-block; padding: 3px 10px; border-radius: 999px; background: rgba(242,166,107,.15); color: #f2a66b; font-weight: 700; font-variant-numeric: tabular-nums; }

/* Équipe sur téléphone : menu repliable (bouton ☰ en haut à gauche) */
.menu-toggle, .burger { display: none; }
@media (max-width: 640px) {
  body.is-staff aside { position: sticky; top: 0; z-index: 30; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 12px; padding: 12px 16px; background: #151614; }
  body.is-staff .burger { display: grid; gap: 5px; align-content: center; width: 44px; height: 44px; padding: 0 11px; border: 1px solid #34372f; border-radius: 12px; cursor: pointer; }
  body.is-staff .burger span { display: block; height: 2px; border-radius: 2px; background: #eeeee9; transition: transform .2s, opacity .2s; }
  body.is-staff .brand { font-size: 1.15rem; }
  body.is-staff aside nav, body.is-staff aside .signout { display: none; }
  body.is-staff .menu-toggle:checked ~ nav { display: flex; flex-direction: column; flex-wrap: nowrap; width: 100%; gap: 2px; padding-top: 8px; border-top: 1px solid #34372f; }
  body.is-staff .menu-toggle:checked ~ nav a { padding: 13px 12px; font-size: 1rem; gap: 12px; border-radius: 12px; }
  body.is-staff .menu-toggle:checked ~ nav a .icon { width: 20px; height: 20px; }
  body.is-staff .menu-toggle:checked ~ .signout { display: block; width: 100%; }
  body.is-staff .menu-toggle:checked ~ .signout button { width: 100%; padding: 12px; font-size: .9rem; }
  body.is-staff .menu-toggle:checked + .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.is-staff .menu-toggle:checked + .burger span:nth-child(2) { opacity: 0; }
  body.is-staff .menu-toggle:checked + .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* Lignes cliquables + bouton d'action à gauche, bien visible */
tr[data-href] { cursor: pointer; }
tr[data-href]:hover td { background: #22251f; }
table.dense { font-size: .95rem; }
table.dense td { height: 34px; padding-top: 10px; padding-bottom: 10px; }
table.dense td.act, table.dense td.act-first { text-align: left; width: 1%; white-space: nowrap; }
table.dense td.act button, .row-action { display: inline-block; padding: 9px 16px; font-size: .9rem; font-weight: 700; border-radius: 10px; background: var(--primary); color: #151614; border: 0; text-decoration: none; }
table.dense td.act button:hover, .row-action:hover { background: #e2fba8; }
.row-action.s-green, .row-action[class*="s-"] { background: var(--primary); color: #151614; }
@media (max-width: 640px) {
  table.work-table, table.work-table tbody, table.orders-table, table.orders-table tbody { display: block; }
  table.orders-table thead { display: none; }
  table.work-table tr, table.orders-table tr { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 14px; border-top: 1px solid #262823; }
  table.work-table td, table.orders-table td { display: block; height: auto; padding: 0; border: 0; }
  table.work-table td.act, table.orders-table td.act-first { order: 3; width: 100%; }
  table.work-table td.act button, table.orders-table .row-action { width: 100%; padding: 14px; font-size: 1rem; text-align: center; }
  table.work-table td.act form { display: block; }
  table.work-table td .bags-cell, table.work-table td:has(.bags-cell) { width: 100%; }
  .table-scroll { overflow: visible; }
}
.back-link { margin: -8px 0 14px; } .back-link a { color: var(--muted); text-decoration: none; font-weight: 600; }
.metric { position: relative; }
.alert-dot { position: absolute; top: 12px; right: 12px; width: 14px; height: 14px; border-radius: 50%; background: #e24b4a; box-shadow: 0 0 0 4px rgba(226,75,74,.25); animation: pulse 1.6s ease-in-out infinite; }
.metric.has-alert { border-color: #e24b4a; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(226,75,74,0); } }
.order-pay-list { display: grid; gap: 10px; }
.order-pay-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 16px; border-radius: 16px; background: #151614; border: 1px solid #34372f; color: inherit; text-decoration: none; }
.order-pay-row b { font-size: 1.05rem; } .order-pay-row span:nth-child(2) { color: #c9cdbf; flex: 1; }
.refresh-fab { position: fixed; right: 14px; bottom: calc(86px + env(safe-area-inset-bottom)); z-index: 40; width: 46px; height: 46px; border-radius: 50%; border: 1px solid #34372f; background: #1e201c; color: #d4f58b; font-size: 1.3rem; display: grid; place-items: center; padding: 0; }
body.is-staff .refresh-fab { bottom: calc(18px + env(safe-area-inset-bottom)); }
.refresh-fab.is-spinning { animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Retour immédiat au toucher */
button, .button, a.metric, .row-action, nav a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button:active, .button:active, .row-action:active, a.metric:active { transform: scale(.97); }
button.is-busy { position: relative; color: transparent !important; pointer-events: none; }
button.is-busy::after { content: ""; position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; border: 2.5px solid #151614; border-right-color: transparent; animation: spin .7s linear infinite; }
button.secondary.is-busy::after, button.small.is-busy::after { border-color: #d4f58b; border-right-color: transparent; }
a.is-loading { opacity: .6; }

/* Retour en haut des fiches sac */
.back-bar { margin: 0 0 14px; }
.back-btn { display: inline-flex; align-items: center; gap: 6px; padding: 10px 16px; border-radius: 999px; border: 1px solid #34372f; background: #1e201c; color: #eeeee9; font-weight: 700; text-decoration: none; }
.back-btn:active { transform: scale(.97); }

/* Cartes d'action de Manea (confirmer, vérifier un virement) */
.work-cards { display: grid; gap: 12px; padding: 12px; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.work-card { display: grid; gap: 12px; padding: 16px; border-radius: 18px; background: #151614; border: 1px solid #34372f; }
.wc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.wc-head b { display: block; font-size: 1.1rem; } .wc-head small { color: #8b8f84; }
.wc-amount { font-size: 1.5rem; font-weight: 800; white-space: nowrap; }
.wc-hint { margin: 0; color: #c9cdbf; font-size: .9rem; }
.wc-link { color: #8b8f84; font-size: .85rem; text-align: center; }
.work-card form { display: grid; gap: 10px; margin: 0; }
.big-cta { width: 100%; padding: 15px; font-size: 1.05rem; font-weight: 800; border-radius: 14px; background: var(--primary); color: #151614; border: 0; }
.big-cta.is-danger { background: #e24b4a; color: #fff; }
.confirm-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.confirm-tile { position: relative; display: grid; gap: 6px; cursor: pointer; }
.confirm-tile input { position: absolute; opacity: 0; pointer-events: none; }
.ct-photo { position: relative; display: block; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: #f4f1ec; border: 2px solid transparent; }
.ct-photo img { width: 100%; height: 100%; object-fit: contain; }
.ct-photo i { position: absolute; inset: 0; display: none; place-items: center; background: rgba(214,58,58,.72); color: #fff; font-style: normal; font-weight: 800; text-transform: uppercase; font-size: .85rem; }
.confirm-tile input:checked + .ct-photo { border-color: #e24b4a; }
.confirm-tile input:checked + .ct-photo i { display: grid; }
.confirm-tile input:checked ~ .ct-meta { text-decoration: line-through; color: #8b8f84; }
.ct-meta { font-size: .85rem; } .ct-meta b { margin-right: 4px; }
.pay-check .wc-hint b { color: #d4f58b; }
@media (max-width: 640px) { .work-cards { grid-template-columns: 1fr; padding: 10px 0; } }

.work-cards.solo { padding: 0; margin-bottom: 14px; max-width: 560px; grid-template-columns: 1fr; }
.order-more > summary { cursor: pointer; padding: 12px 16px; border-radius: 14px; border: 1px solid #34372f; color: #c9cdbf; font-weight: 600; margin-bottom: 12px; }

/* Pause du site */
.pause-body { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.pause-page { max-width: 460px; text-align: center; display: grid; gap: 12px; justify-items: center; }
.pause-page h1 { font-size: 1.8rem; margin: 0; }
.pause-logo .icon { width: 52px; height: 52px; color: #d4f58b; }
.pause-banner { display: block; margin: 0 0 14px; padding: 12px 16px; border-radius: 14px; background: #e24b4a; color: #fff; font-weight: 800; text-decoration: none; }
.pause-control.is-on { border: 1px solid #e24b4a; }
.pause-control form { display: grid; gap: 12px; max-width: 520px; }
button.danger { background: #e24b4a; color: #fff; border: 0; }

/* Inscription par lien commun */
.signup .two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.signup label.check { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; }
.signup-panel.is-on { border: 1px solid #d4f58b; }
.signup-link { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.signup-link code { word-break: break-all; background: #151614; padding: 8px 10px; border-radius: 10px; }
.row-actions { display: flex; flex-wrap: wrap; gap: 10px; } form.inline { display: inline; margin: 0; }

.signup-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.signup-one { padding: 14px; border-radius: 16px; border: 1px solid #34372f; background: #151614; display: grid; gap: 8px; }
.signup-one.is-on { border-color: #d4f58b; } .signup-one h3 { margin: 0; }
.pending-panel { border: 1px solid #f2a66b; } .pending-note { border: 1px solid #f2a66b; }
.tier-chip.allstar { display: inline-block; padding: 4px 12px; border-radius: 999px; border: 1px solid #c9a96a; color: #e7cf9a; font-weight: 800; }
.live-pill{position:fixed;left:50%;bottom:calc(18px + env(safe-area-inset-bottom));transform:translateX(-50%);z-index:60;background:#d9f99d;color:#151614;border:0;border-radius:999px;padding:10px 18px;font-weight:700;box-shadow:0 8px 24px rgba(0,0,0,.45);cursor:pointer}
.legacy-bag{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:10px;margin:12px 0;padding:12px;border:1px solid rgba(255,255,255,.08);border-radius:14px}
.legacy-bag legend{padding:0 6px;font-weight:700}
