:root {
  --paper: #F4F5F2;
  --white: #fff;
  --ink: #1C1F26;
  --slate: #5E6673;
  --line: #DFE1DB;
  --wine: #6E1F3B;
  --wine-dark: #55162D;
  --wine-soft: #F3E5EA;
  --leaf: #2F6B4A;
  --leaf-soft: #E2EFE7;
  --amber: #8F5A0E;
  --amber-soft: #FAEFD9;
  --font: "Atkinson Hyperlegible", system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: var(--font); background: var(--paper); color: var(--ink); font-size: 15px; line-height: 1.45; }
:focus-visible { outline: 3px solid var(--wine); outline-offset: 2px; }
a { color: var(--wine); }
.logo { display: block; height: 48px; width: auto; max-width: 100%; }
.app { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.side { background: var(--white); border-right: 1px solid var(--line); padding: 22px 14px; display: flex; flex-direction: column; gap: 18px; position: sticky; top: 0; height: 100vh; overflow: auto; }
.brand .logo { height: 40px; margin-bottom: 10px; }
.brand strong { display: block; }
.brand span, .user { color: var(--slate); font-size: 13px; }
.nav { display: grid; gap: 2px; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; text-decoration: none; color: var(--ink); }
.nav a svg { width: 19px; height: 19px; color: var(--slate); flex-shrink: 0; }
.nav a:hover { background: var(--paper); }
.nav a[aria-current="page"] { background: var(--wine-soft); color: var(--wine); font-weight: 700; }
.nav a[aria-current="page"] svg { color: var(--wine); }
.nav-group { font-size: 12.5px; color: var(--slate); padding: 0 10px; margin: 14px 0 4px; }
.nav-group:first-child { margin-top: 0; }
.user { margin-top: auto; display: flex; flex-direction: column; gap: 2px; padding-top: 14px; border-top: 1px solid var(--line); }
.user .who { margin: 0; padding: 0 10px; }
.user strong { display: block; color: var(--ink); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user form { margin: 8px 0 0; }
.user button.btn-quiet { width: 100%; justify-content: flex-start; gap: 8px; min-height: 38px; padding: 0 10px; border-radius: 8px; background: transparent; border-color: transparent; color: var(--slate); font-weight: 400; }
.user button.btn-quiet svg { width: 18px; height: 18px; flex-shrink: 0; }
.user button.btn-quiet:hover { background: var(--paper); border-color: transparent; color: var(--wine); }
.app > main { padding: 24px 32px 48px; }
h1 { font-size: 26px; margin: 0 0 8px; }
.sub { color: var(--slate); margin: 0 0 18px; }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; margin-bottom: 20px; }
.btn, button, input[type="submit"] { font: inherit; }
.btn, button[type="submit"] { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 14px; border-radius: 9px; border: 1.5px solid var(--line); background: var(--white); font-weight: 700; cursor: pointer; text-decoration: none; color: var(--ink); }
.btn-primary, button[type="submit"] { background: var(--wine); border-color: var(--wine); color: #fff; }
.btn-primary:hover, button[type="submit"]:hover { background: var(--wine-dark); border-color: var(--wine-dark); }
.btn-quiet, button.btn-quiet { background: transparent; border-color: transparent; color: var(--slate); font-weight: 400; padding-left: 0; }
.btn-quiet:hover, button.btn-quiet:hover { background: transparent; color: var(--wine); }
button:disabled { opacity: 0.45; cursor: not-allowed; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--slate); font-weight: 400; }
label { display: block; font-weight: 700; margin: 12px 0 6px; }
input, select { width: 100%; max-width: 420px; min-height: 40px; border: 1.5px solid var(--line); border-radius: 8px; padding: 0 10px; font: inherit; }
input[type="checkbox"] { width: auto; min-height: 0; }
.help, .flash { font-size: 14px; }
.flash { border-radius: 10px; padding: 10px 12px; margin-bottom: 10px; }
.flash-succes { background: var(--leaf-soft); color: var(--leaf); }
.flash-erreur { background: var(--amber-soft); color: var(--amber); }
.flash-lien { background: var(--wine-soft); }
.erreur { color: #9B2C2C; margin: 4px 0; }
.login { max-width: 420px; margin: 10vh auto; background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 28px; }
.login .logo { height: 56px; margin: 0 auto 18px; }
.login h1, .login .sub { text-align: center; }
.login .actions { justify-content: center; }
.stand { max-width: 640px; margin: 8vh auto; padding: 0 16px; }
@media (max-width: 820px) {
  .app { grid-template-columns: 1fr; }
  .side { position: static; height: auto; padding: 12px; }
  .side > nav { display: flex; gap: 8px; overflow-x: auto; }
  .nav { display: flex; }
  .nav a { flex-shrink: 0; white-space: nowrap; }
  .nav-group { display: none; }
  .app > main { padding: 18px 16px 40px; }
}
.liste { list-style: none; margin: 0; padding: 0; }
.liste li { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line); }
.liste a { color: inherit; text-decoration: none; }
.badge { background: var(--wine-soft); color: var(--wine); border-radius: 999px; padding: 2px 8px; font-size: 13px; font-weight: 700; }
.stock-bas { color: var(--amber); font-weight: 700; }
.stock-negatif { color: #9B2C2C; font-weight: 700; }
.recap { list-style: none; margin: 0 0 16px; padding: 0; }
.recap li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.total { font-size: 28px; font-weight: 700; }
.search input { max-width: none; }

body.stand { margin: 0; padding: 0; width: 100%; max-width: none; background: #E7E9E4; overflow: hidden; }
.stand-app { width: min(440px, calc(100% - 48px)); height: calc(100vh - 48px); height: calc(100dvh - 48px); margin: 24px auto; background: var(--paper); display: flex; flex-direction: column; overflow: hidden; border-radius: 28px; box-shadow: 0 16px 40px rgba(28, 31, 38, .14); }
.stand-app main { flex: 1 1 0; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 16px 16px 20px; -webkit-overflow-scrolling: touch; }
.stand-bar { position: sticky; top: 0; z-index: 3; flex-shrink: 0; background: var(--wine); color: #fff; display: flex; align-items: center; gap: 10px; padding: max(10px, env(safe-area-inset-top)) 14px 10px; }
.stand-bar .marque { margin: 0; background: #fff; border-radius: 8px; padding: 4px 6px; line-height: 0; flex-shrink: 0; }
.stand-bar .logo { height: 30px; display: block; }
.stand-bar .who { flex: 1; min-width: 0; }
.stand-bar h1 { margin: 0; font-size: clamp(16px, 4.2vw, 18px); line-height: 1.15; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stand-bar p { margin: 1px 0 0; font-size: 13px; line-height: 1.2; color: rgba(255, 255, 255, .82); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stand-bar :focus-visible { outline-color: #fff; }
.stand-app .iconbtn { width: 42px; height: 42px; border-radius: 10px; background: rgba(255, 255, 255, .14); color: #fff; display: grid; place-items: center; flex-shrink: 0; text-decoration: none; }
.stand-app .iconbtn .ico { width: 22px; height: 22px; }
.stand-app h2 { font-size: 22px; line-height: 1.2; margin: 0 0 6px; }
.stand-app .sub { margin-bottom: 16px; }
.stand-app .section-title { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 22px 2px 8px; }
.stand-app .section-title h2 { font-size: 15px; font-weight: 400; color: var(--slate); margin: 0; }
.stand-app .section-title a { font-weight: 700; text-decoration: none; }
.stand-app label { margin: 0 0 6px; }
.stand-app input, .stand-app select { width: 100%; max-width: none; min-width: 0; min-height: 52px; border-radius: 12px; padding: 0 14px; font-size: 17px; background: var(--white); }
.stand-app input:focus, .stand-app input:focus-visible, .stand-app select:focus, .stand-app select:focus-visible { outline: none; border-color: var(--wine); box-shadow: 0 0 0 3px var(--wine-soft); }
.stand-app .btn, .stand-app button[type="submit"] { width: 100%; min-height: 54px; border-radius: 12px; font-size: 17px; background: var(--white); color: var(--ink); border: 1.5px solid var(--line); }
.stand-app .btn:hover, .stand-app button[type="submit"]:hover { background: #FAFAF8; color: var(--ink); border-color: var(--line); }
.stand-app .btn-primary, .stand-app button.btn-primary, .stand-app a.btn-primary, .stand-app .stand-foot button[type="submit"] { background: var(--wine); border-color: var(--wine); color: #fff; }
.stand-app .btn-primary:hover, .stand-app button.btn-primary:hover, .stand-app a.btn-primary:hover, .stand-app .stand-foot button[type="submit"]:hover { background: var(--wine-dark); border-color: var(--wine-dark); color: #fff; }
.stand-app .btn-quiet, .stand-app button.btn-quiet, .stand-app button.btn-quiet:hover { background: transparent; border-color: transparent; color: #9B2C2C; font-weight: 400; text-decoration: underline; min-height: 44px; }
.stand-app button:disabled { opacity: .4; }
.stand-app .actions { display: block; margin: 12px 0 0; }
.stand-app .actions .btn { display: flex; gap: 8px; }
.stand-app form div:has(input[type="checkbox"]) input { order: -1; }
.stand-app .actions .ico { width: 20px; height: 20px; }
.stand-app .search { display: grid; gap: 10px; }
.stand-app .search-field { position: relative; }
.stand-app .search-field .ico { position: absolute; left: 14px; top: 50%; width: 22px; height: 22px; color: var(--slate); transform: translateY(-50%); pointer-events: none; }
.stand-app .search-field input { min-height: 58px; font-size: 18px; padding-left: 46px; }
.stand-app .vide { text-align: center; color: var(--slate); background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 22px 16px; margin: 0; }
.stand-app .liste { background: var(--white); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.stand-app .liste li { display: block; padding: 0; border-bottom: 1px solid var(--line); }
.stand-app .liste li:last-child { border-bottom: 0; }
.stand-app .liste a { display: flex; align-items: center; gap: 12px; padding: 14px; }
.stand-app .liste a:hover { background: #FAFAF8; }
.stand-app .liste .main { flex: 1; min-width: 0; display: grid; }
.stand-app .liste .main strong { font-size: 17px; }
.stand-app .liste .main span { font-size: 14px; color: var(--slate); }
.stand-app .liste .cote { text-align: right; font-variant-numeric: tabular-nums; display: grid; justify-items: end; gap: 4px; }
.stand-app .tag { display: inline-flex; align-items: center; font-size: 13px; font-weight: 700; border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.stand-app .tag-brouillon { background: var(--amber-soft); color: var(--amber); }
.stand-app .tag-validee { background: var(--leaf-soft); color: var(--leaf); }
.stand-app .tag-retiree, .stand-app .tag-annulee { background: #E8E9EC; color: var(--slate); }
.stand-app .tag-seen { background: var(--wine-soft); color: var(--wine); }
.stand-app .avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--wine-soft); color: var(--wine); display: grid; place-items: center; font-weight: 700; flex-shrink: 0; }
.stand-app .avatar-plus { background: var(--paper); color: var(--ink); }
.stand-app .avatar-plus .ico { width: 22px; height: 22px; }
.stand-app .verrou { font-size: 13px; }
.stand-app .visitor { display: flex; align-items: center; gap: 12px; background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; margin-bottom: 14px; }
.stand-app .visitor .main { flex: 1; min-width: 0; display: grid; }
.stand-app .visitor .main span { font-size: 14px; color: var(--slate); }
.stand-app .unite { display: grid; grid-template-columns: 1fr 1fr; gap: 0; background: #E6E8E3; border-radius: 12px; padding: 4px; margin: 0 0 14px; }
.stand-app .unite .btn, .stand-app .unite .btn-primary, .stand-app .unite a.btn-primary { width: 100%; min-height: 44px; border: 0; border-radius: 9px; background: transparent; color: var(--slate); box-shadow: none; font-size: clamp(14px, 3.6vw, 16px); white-space: nowrap; padding: 0 8px; }
.stand-app .unite .btn:hover, .stand-app .unite a.btn-primary:hover { background: transparent; color: var(--slate); border: 0; }
.stand-app .unite a[aria-pressed="true"], .stand-app .unite a[aria-pressed="true"]:hover { background: var(--white); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .12); }
.stand-app .cuvee { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; margin-bottom: 10px; }
.stand-app .cuvee.has { border-color: var(--wine); box-shadow: inset 4px 0 0 var(--wine); }
.stand-app .cuvee.empty { opacity: .55; }
.stand-app .cuvee-top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.stand-app .cuvee-top strong { font-size: clamp(15px, 4vw, 17px); min-width: 0; }
.stand-app .prix { font-size: clamp(15px, 4vw, 17px); font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; flex-shrink: 0; }
.stand-app .meta { display: flex; justify-content: space-between; gap: 8px; margin: 2px 0 12px; font-size: 14px; color: var(--slate); }
.stand-app .stepper { display: grid; grid-template-columns: clamp(52px, 16vw, 64px) minmax(0, 1fr) clamp(52px, 16vw, 64px); gap: 8px; align-items: center; }
.stand-app .stepper form { margin: 0; min-width: 0; }
.stand-app .stepper button, .stand-app .stepper button[type="submit"] { width: 100%; height: clamp(48px, 14vw, 56px); min-height: 48px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--paper); color: var(--ink); font-size: 28px; line-height: 1; padding: 0; }
.stand-app .stepper button:hover { background: var(--paper); color: var(--ink); border-color: var(--line); }
.stand-app .stepper button.btn-primary, .stand-app .stepper button.btn-primary:hover { background: var(--wine); border-color: var(--wine); color: #fff; }
.stand-app .qty { text-align: center; font-variant-numeric: tabular-nums; }
.stand-app .qty strong { display: block; font-size: 30px; line-height: 1; }
.stand-app .qty span { font-size: 13px; color: var(--slate); }
.stand-foot { position: static; flex-shrink: 0; background: var(--white); border-top: 1px solid var(--line); padding: 10px 16px max(10px, env(safe-area-inset-bottom)); display: grid; gap: 8px; }
.stand-foot p { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 0; color: var(--slate); font-variant-numeric: tabular-nums; }
.stand-foot strong { font-size: clamp(20px, 5.5vw, 24px); color: var(--ink); }
.stand-foot form { margin: 0; }
.stand-app .recap { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 4px 14px; margin-bottom: 18px; }
.stand-app .recap li { padding: 10px 0; font-variant-numeric: tabular-nums; }
.stand-app .recap li:last-child { border-bottom: 0; }
.stand-app .recap small { display: block; color: var(--slate); font-size: 13.5px; font-weight: 400; }
.stand-app .recap .tot { font-weight: 700; font-size: 18px; }
.stand-app .pay { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 8px; }
.stand-app .pay button, .stand-app .pay button[type="submit"] { width: auto; min-height: 64px; background: var(--white); color: var(--ink); border: 1.5px solid var(--line); font-size: 15px; }
.stand-app .pay button:hover { background: var(--white); }
.stand-app .pay button[aria-pressed="true"], .stand-app .pay button[aria-pressed="true"]:hover { border-color: var(--wine); background: var(--wine-soft); color: var(--wine); }
.stand-app .cash { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 14px; margin: 10px 0 14px; display: grid; gap: 10px; }
.stand-app .euro { position: relative; }
.stand-app .euro input { font-size: 24px; font-weight: 700; min-height: 58px; padding-right: 40px; font-variant-numeric: tabular-nums; }
.stand-app .euro span { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-size: 22px; color: var(--slate); }
.stand-app .quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.stand-app .quick button, .stand-app .quick button[type="submit"] { width: auto; min-height: 46px; border-radius: 10px; background: var(--paper); color: var(--ink); font-size: 15px; font-variant-numeric: tabular-nums; padding: 0 6px; }
.stand-app .quick button:hover { background: var(--paper); }
.stand-app .change { display: flex; justify-content: space-between; align-items: baseline; border-radius: 10px; padding: 12px 14px; margin: 0; font-variant-numeric: tabular-nums; }
.stand-app .change strong { font-size: 28px; }
.stand-app .change.ok { background: var(--leaf-soft); color: var(--leaf); }
.stand-app .change.ok strong { color: var(--leaf); }
.stand-app .change.miss { background: var(--amber-soft); color: var(--amber); }
.stand-app .change.miss strong { color: var(--amber); }
.stand-app .change.wait { background: var(--paper); color: var(--slate); }
.stand-app .change.wait strong { color: var(--slate); }
.stand-app .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stand-app .row2 > * { min-width: 0; }
.stand-app form > div { margin-bottom: 14px; }
.stand-app .help, .stand-app .help-text, .stand-app .legal { font-size: 13.5px; color: var(--slate); margin: 0 0 14px; }
.stand-app form ul { list-style: none; margin: 4px 0 0; padding: 0; color: #9B2C2C; }
.stand-app form div:has(input[type="checkbox"]) { display: flex; gap: 12px; align-items: flex-start; background: var(--white); border: 1.5px solid var(--line); border-radius: 12px; padding: 14px; }
.stand-app form div:has(input[type="checkbox"]) label { font-weight: 400; margin: 0; }
.stand-app input[type="checkbox"] { width: 24px; height: 24px; min-height: 0; accent-color: var(--wine); flex-shrink: 0; margin-top: 1px; }
.stand-app .match { background: var(--amber-soft); color: var(--amber); border-radius: 12px; padding: 12px 14px; margin-bottom: 14px; }
.stand-app .match .btn { margin-top: 8px; background: var(--white); color: var(--ink); }
.stand-app .done { text-align: center; padding-top: 28px; }
.stand-app .done .ok { width: 84px; height: 84px; border-radius: 50%; background: var(--leaf); color: #fff; display: grid; place-items: center; margin: 0 auto 18px; }
.stand-app .done .ok .ico { width: 44px; height: 44px; }
.stand-app .done p { color: var(--slate); margin: 0 0 6px; }
.stand-app .big { font-size: 34px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; margin: 16px 0 22px; }
@media (max-width: 800px) {
  body.stand { background: var(--paper); }
  .stand-app { width: 100%; max-width: none; height: 100vh; height: 100dvh; margin: 0; border-radius: 0; box-shadow: none; }
}
@media (max-width: 480px) {
  .stand-app main { padding: 12px 12px 16px; }
  .stand-bar { gap: 8px; padding-right: 12px; padding-left: 12px; }
  .stand-bar .logo { height: 26px; }
  .stand-app .iconbtn { width: 38px; height: 38px; }
  .stand-app .visitor { padding: 8px 10px; margin-bottom: 10px; }
  .stand-app .avatar { width: 38px; height: 38px; }
  .stand-app .cuvee { padding: 10px 12px; }
  .stand-app .meta { margin-bottom: 8px; }
  .stand-app .qty strong { font-size: 26px; }
  .stand-foot { padding-right: 12px; padding-left: 12px; }
  .stand-app .pay { gap: 6px; }
  .stand-app .pay button, .stand-app .pay button[type="submit"] { min-height: 56px; font-size: 14px; padding: 0 4px; }
  .stand-app .quick { grid-template-columns: repeat(2, 1fr); }
}
@media (max-height: 700px) {
  .stand-app main { padding-top: 12px; padding-bottom: 12px; }
  .stand-app .visitor { margin-bottom: 10px; }
  .stand-app .unite { margin-bottom: 10px; }
  .stand-app .cuvee { margin-bottom: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .stand-app .done .ok { animation: none; }
}
.liste form, td form { display: flex; gap: 8px; align-items: center; margin: 0; }
.liste form input, td form input { max-width: 90px; }

.tdb .head { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.tdb .head h1 { font-size: 26px; line-height: 1.15; margin: 0; }
.tdb .ed { color: var(--slate); }
.tdb .live { display: inline-flex; align-items: center; gap: 8px; background: var(--leaf-soft); color: var(--leaf); font-weight: 700; border-radius: 999px; padding: 5px 12px; font-size: 13.5px; }
.tdb .live i { width: 8px; height: 8px; border-radius: 50%; background: var(--leaf); animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .tdb .live i { animation: none; } }
.tdb .head .actions { margin: 0 0 0 auto; }
.tdb .btn-sm, .tdb a.btn-sm { min-height: 32px; padding: 0 10px; font-size: 13.5px; }
.tdb .day { background: var(--white); border: 1px solid var(--line); border-radius: 14px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.6fr); margin-bottom: 20px; }
.tdb .day > div { padding: 18px 22px; border-right: 1px solid var(--line); background: transparent; border-radius: 0; }
.tdb .day > div:last-child { border-right: 0; }
.tdb .k { font-size: 13.5px; color: var(--slate); }
.tdb .v { font-size: 30px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.2; }
.tdb .d { font-size: 13px; color: var(--slate); }
.tdb .withdraw .bar { height: 12px; background: #ECEDE9; border-radius: 6px; overflow: hidden; display: flex; margin: 10px 0 8px; }
.tdb .withdraw .bar span { display: block; height: 100%; }
.tdb .legend { display: flex; gap: 16px; font-size: 13px; color: var(--slate); flex-wrap: wrap; }
.tdb .legend b { color: var(--ink); font-variant-numeric: tabular-nums; }
.tdb .dot { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 5px; vertical-align: 0; }
.tdb .grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 20px; margin-bottom: 20px; }
.tdb .panel { margin-bottom: 0; }
.tdb .panel h2 { font-size: 17px; display: flex; align-items: center; gap: 10px; margin: 0 0 4px; }
.tdb .panel h2 .more { margin-left: auto; font-size: 13.5px; font-weight: 400; }
.tdb .panel .sub { font-size: 13.5px; color: var(--slate); margin: 0 0 14px; }
.tdb .chart svg { width: 100%; height: auto; display: block; }
.tdb .chart .axis { font-size: 11.5px; fill: var(--slate); font-family: var(--font); }
.tdb .chart .lbl { font-size: 12px; fill: var(--ink); font-weight: 700; font-family: var(--font); }
.tdb .chart .pic { fill: var(--wine); }
.tdb .alerts { display: grid; }
.tdb .alert { display: flex; gap: 12px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); }
.tdb .alert:last-child { border-bottom: 0; }
.tdb .alert .main { flex: 1; min-width: 0; }
.tdb .alert strong { display: block; font-size: 14.5px; }
.tdb .alert .main span { font-size: 13px; color: var(--slate); }
.tdb .alert form { display: flex; gap: 8px; align-items: center; margin: 0; }
.tdb .alert input { width: 64px; max-width: 64px; min-height: 32px; }
.tdb .alert button[type="submit"] { min-height: 32px; padding: 0 10px; font-size: 13.5px; background: var(--white); color: var(--ink); border-color: var(--line); }
.tdb .alert button[type="submit"]:hover { background: var(--white); color: var(--ink); border-color: #C5C8C0; }
.tdb .stock { font-variant-numeric: tabular-nums; font-weight: 700; font-size: 14px; min-width: 46px; text-align: right; color: var(--ink); }
.tdb .stock.zero { color: #9B2C2C; }
.tdb .stock.low { color: var(--amber); }
.tdb .dup { margin-top: 12px; background: var(--amber-soft); color: var(--amber); border-radius: 10px; padding: 11px 13px; font-size: 14px; display: flex; align-items: center; gap: 10px; }
.tdb .dup a { margin-left: auto; font-weight: 700; color: var(--amber); }
.tdb .domaines { margin-bottom: 20px; }
.tdb .panel-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
.tdb .panel-head h2 { margin: 0; }
.tdb .search { display: flex; gap: 8px; margin-left: auto; align-items: center; }
.tdb .search input { min-height: 34px; width: 200px; max-width: none; font-size: 14px; }
.tdb .table-wrap { overflow-x: auto; }
.tdb table { font-variant-numeric: tabular-nums; }
.tdb th { font-size: 13px; text-align: right; white-space: nowrap; }
.tdb th:first-child, .tdb td:first-child { text-align: left; }
.tdb td { text-align: right; white-space: nowrap; }
.tdb tr:last-child td { border-bottom: 0; }
.tdb td .dom { font-weight: 700; }
.tdb td .lieu { font-size: 12.5px; color: var(--slate); font-weight: 400; }
.tdb .pill { display: inline-block; font-size: 12.5px; font-weight: 700; border-radius: 999px; padding: 2px 9px; }
.tdb .pill-draft { background: var(--amber-soft); color: var(--amber); }
.tdb .pill-todo { background: var(--wine-soft); color: var(--wine); }
.tdb .mini { display: inline-block; width: 70px; height: 6px; background: #ECEDE9; border-radius: 3px; vertical-align: middle; margin-left: 8px; overflow: hidden; }
.tdb .mini span { display: block; height: 100%; background: var(--leaf); }
.tdb .bottom { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.tdb .feed .row { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.tdb .feed .row:last-child { border-bottom: 0; }
.tdb .feed time { font-size: 13px; color: var(--slate); width: 42px; flex-shrink: 0; }
.tdb .feed .main { flex: 1; min-width: 0; }
.tdb .feed .main strong { display: block; }
.tdb .feed .main span { font-size: 13px; color: var(--slate); }
.tdb .exports { display: grid; gap: 10px; }
.tdb .exp { display: flex; align-items: center; gap: 14px; border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.tdb .exp .ic { width: 40px; height: 40px; border-radius: 9px; background: var(--leaf-soft); color: var(--leaf); display: grid; place-items: center; flex-shrink: 0; }
.tdb .exp .main { flex: 1; }
.tdb .exp strong { display: block; }
.tdb .exp span { font-size: 13px; color: var(--slate); }
@media (max-width: 1180px) {
  .tdb .day { grid-template-columns: repeat(3, 1fr); }
  .tdb .day .withdraw { grid-column: 1 / -1; border-top: 1px solid var(--line); border-right: 0; }
  .tdb .grid, .tdb .bottom { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .tdb .day { grid-template-columns: 1fr; }
  .tdb .day > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .tdb .day > div:last-child { border-bottom: 0; }
  .tdb .search { width: 100%; }
  .tdb .search input { flex: 1; width: auto; }
}
@media print {
  .side, .no-print, .marque { display: none !important; }
  .app { display: block; }
  .app > main { padding: 0; }
  body { background: #fff; }
  body.stand { height: auto; overflow: visible; }
  .stand-app { height: auto; max-height: none; overflow: visible; }
  .stand-app main { overflow: visible; }
}
