/* ARES Manager — identité ARES Sportswear : noir, blanc, vert ARES. Mobile d'abord. */
@import url('https://fonts.googleapis.com/css2?family=Audiowide&family=Outfit:wght@400;500;600;700&display=swap');
:root {
  --ink: #0b0b0b; --ink-2: #3f4650; --ink-3: #6b7280; --line: #e6e8eb; --line-2: #f1f2f4;
  --bg: #ffffff; --soft: #f7f8f9; --black: #000000; --green: #47C21F; --green-d: #2E9E12; --green-soft: #ecf9e6;
  --ok: #15803d; --ok-soft: #e7f6ec; --warn: #b45309; --warn-soft: #fef3e2; --bad: #c0392b; --bad-soft: #fdecea;
  --info: #1d4ed8; --info-soft: #e8efff; --radius: 14px; --shadow: 0 1px 2px rgba(0,0,0,.05), 0 2px 8px rgba(0,0,0,.04);
  --font: 'Outfit', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif; --display: 'Audiowide', 'Outfit', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 15.5px/1.45 var(--font); color: var(--ink); background: var(--soft); }
a { color: inherit; } a:hover { color: var(--green-d); }
h1 { font-family: var(--display); font-weight: 400; font-size: 21px; margin: 0; letter-spacing: .01em; text-transform: uppercase; }
h2 { font-size: 16px; font-weight: 700; margin: 0 0 12px; }
h3 { font-size: 12px; margin: 0 0 8px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; }
.muted { color: var(--ink-3); } .small { font-size: 13px; } .nowrap { white-space: nowrap; } .right { text-align: right; }
.num { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.testbar { background: var(--green); color: #000; text-align: center; font-size: 12px; padding: 3px 8px; font-weight: 700; letter-spacing: .05em; }

/* structure */
.layout { display: flex; min-height: 100vh; }
.side { display: none; }
.main { flex: 1; min-width: 0; padding-bottom: 84px; }
.top { position: sticky; top: 0; z-index: 20; background: var(--black); color: #fff; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 3px solid var(--green); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; }
.brand img { height: 24px; display: block; }
.brand .word { font-family: var(--display); font-size: 20px; letter-spacing: .08em; color: #fff; }
.brand .sub { font-size: 11px; color: var(--green); text-transform: uppercase; letter-spacing: .12em; font-weight: 600; }
.top .spacer { flex: 1; }
.bell { position: relative; text-decoration: none; padding: 6px 8px; border-radius: 10px; color: #fff; font-size: 18px; }
.bell .dot { position: absolute; top: -2px; right: -2px; background: var(--green); color: #000; font-size: 11px; font-weight: 700; border-radius: 10px; padding: 0 5px; min-width: 18px; text-align: center; }
.content { padding: 18px 14px; max-width: 1240px; margin: 0 auto; }
.pagehead { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.pagehead .sub { color: var(--ink-3); font-size: 14px; margin-top: 4px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

.bottomnav { position: fixed; bottom: 0; left: 0; right: 0; z-index: 30; background: var(--black); display: grid; grid-template-columns: repeat(5, 1fr);
             padding: 6px 2px calc(6px + env(safe-area-inset-bottom)); }
.bottomnav a { text-decoration: none; text-align: center; font-size: 11px; color: #a3a3a3; padding: 4px 2px; }
.bottomnav a .ic { display: block; font-size: 20px; line-height: 1.15; }
.bottomnav a.on { color: var(--green); font-weight: 600; }
.bottomnav a.plus .ic { background: var(--green); color: #000; border-radius: 12px; width: 40px; height: 30px; line-height: 30px; margin: 0 auto 1px; font-weight: 700; }
.sheet-bg { display: none; position: fixed; inset: 0; z-index: 40; background: rgba(0,0,0,.45); }
.sheet-bg.open { display: block; }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; background: #fff; border-radius: 18px 18px 0 0; padding: 16px 16px calc(20px + env(safe-area-inset-bottom)); max-height: 80vh; overflow: auto; }
.sheet a { display: flex; align-items: center; gap: 12px; padding: 13px 6px; border-bottom: 1px solid var(--line-2); text-decoration: none; font-size: 16px; }
.sheet .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.sheet .grid2 a { border: 1px solid var(--line); border-radius: 12px; justify-content: center; font-weight: 600; }
.sheet .grid2 a.go { background: var(--green); border-color: var(--green); color: #000; }

@media (min-width: 1000px) {
  .side { display: flex; flex-direction: column; width: 240px; flex-shrink: 0; background: var(--black); color: #d4d4d4; position: sticky; top: 0; height: 100vh; overflow-y: auto; padding: 18px 12px; }
  .side .brand { padding: 2px 8px 18px; }
  .side .brand img { height: 28px; }
  .side .grp { font-size: 10.5px; color: #7a7a7a; text-transform: uppercase; letter-spacing: .12em; padding: 16px 10px 6px; }
  .side a.nav { display: flex; align-items: center; gap: 10px; text-decoration: none; padding: 9px 10px; border-radius: 10px; color: #d4d4d4; font-weight: 500; }
  .side a.nav:hover { background: #161616; color: #fff; }
  .side a.nav.on { background: #142a0c; color: var(--green); box-shadow: inset 3px 0 0 var(--green); }
  .side .me { margin-top: auto; padding: 14px 10px 0; border-top: 1px solid #222; font-size: 13px; }
  .side .me .btn { background: #151515; color: #ddd; border-color: #2a2a2a; }
  .bottomnav, .top .brand { display: none; }
  .top { background: #fff; color: var(--ink); border-bottom: 1px solid var(--line); }
  .bell { color: var(--ink); }
  .main { padding-bottom: 0; }
  .content { padding: 24px 30px; }
}

/* composants */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; margin-bottom: 16px; }
.card > h2:first-child { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.grid { display: grid; gap: 14px; }
.g2, .g3 { grid-template-columns: 1fr; } .g4 { grid-template-columns: 1fr 1fr; }
@media (min-width: 760px) { .g2 { grid-template-columns: 1fr 1fr; } .g3 { grid-template-columns: repeat(3, 1fr); } .g4 { grid-template-columns: repeat(4, 1fr); } }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; text-decoration: none; display: block; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.kpi::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--green); }
.kpi .k { font-size: 11.5px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .07em; font-weight: 600; }
.kpi .v { font-family: var(--display); font-size: 26px; margin-top: 4px; font-variant-numeric: tabular-nums; }
.kpi .v.money { font-family: var(--font); font-weight: 700; font-size: 21px; }
.kpi .h { font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }
.kpi.alert::before { background: var(--bad); } .kpi.alert .v { color: var(--bad); }
.kpi.dark { background: var(--black); color: #fff; border-color: var(--black); } .kpi.dark .k, .kpi.dark .h { color: #a3a3a3; } .kpi.dark .v { color: var(--green); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid #d8dbe0; background: #fff; color: var(--ink);
       padding: 10px 16px; border-radius: 12px; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; min-height: 44px; }
.btn:hover { border-color: var(--ink); color: var(--ink); }
.btn.primary { background: var(--green); border-color: var(--green); color: #000; }
.btn.primary:hover { background: var(--green-d); border-color: var(--green-d); color: #fff; }
.btn.dark { background: var(--black); border-color: var(--black); color: #fff; }
.btn.danger { color: var(--bad); border-color: #f2c1bb; }
.btn.sm { padding: 6px 11px; min-height: 34px; font-size: 13.5px; border-radius: 10px; }
.btn.block { width: 100%; }
.btn.big { min-height: 54px; font-size: 17px; }
.linkbtn { background: none; border: 0; color: var(--info); cursor: pointer; font: inherit; padding: 0; text-decoration: underline; }

.badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--line-2); color: var(--ink-2); white-space: nowrap; }
.badge.ok { background: var(--ok-soft); color: var(--ok); } .badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.bad { background: var(--bad-soft); color: var(--bad); } .badge.info { background: var(--info-soft); color: var(--info); }
.badge.accent { background: var(--black); color: var(--green); }
.flash { padding: 12px 16px; border-radius: 12px; margin-bottom: 14px; font-weight: 500; }
.flash.error { background: var(--bad-soft); color: var(--bad); } .flash.ok { background: var(--green-soft); color: #23650d; } .flash.info { background: var(--info-soft); color: var(--info); }

/* formulaires faciles à remplir */
label { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink-2); margin-bottom: 5px; }
input, select, textarea { width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: #fff; border: 1.5px solid #d6d9de; border-radius: 12px; padding: 10px 12px; min-height: 46px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(71,194,31,.2); }
input[type=checkbox], input[type=radio] { width: 20px; height: 20px; min-height: 0; accent-color: var(--green-d); }
textarea { min-height: 80px; }
.field { margin-bottom: 14px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; } .row > * { flex: 1; min-width: 140px; }
.check { display: flex; align-items: center; gap: 10px; font-weight: 500; color: var(--ink); padding: 6px 0; }
.help { font-size: 12.5px; color: var(--ink-3); margin-top: 4px; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin: 0 0 14px; }
legend { font-weight: 700; padding: 0 6px; }
.req::after { content: ' *'; color: var(--bad); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.filters > * { flex: 1; min-width: 140px; } .filters .btn { flex: 0; }
.step { display: flex; align-items: center; gap: 10px; margin: 2px 0 12px; }
.step .n { width: 28px; height: 28px; border-radius: 50%; background: var(--black); color: var(--green); display: grid; place-items: center; font-family: var(--display); font-size: 13px; flex-shrink: 0; }
.step h2 { margin: 0; }
.choice { display: flex; gap: 8px; flex-wrap: wrap; }
.choice label { margin: 0; flex: 1; min-width: 96px; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span { display: block; text-align: center; padding: 11px 8px; border: 1.5px solid #d6d9de; border-radius: 12px; font-weight: 600; cursor: pointer; background: #fff; }
.choice input:checked + span { border-color: var(--black); background: var(--black); color: var(--green); }
.stickybar { position: sticky; bottom: 76px; z-index: 15; background: rgba(255,255,255,.97); border: 1px solid var(--line); border-radius: 16px; padding: 10px; display: flex; gap: 10px; align-items: center; box-shadow: 0 6px 20px rgba(0,0,0,.08); }
.stickybar .tot { flex: 1; font-weight: 700; font-size: 17px; }
@media (min-width: 1000px) { .stickybar { bottom: 12px; } }

/* tableaux → cartes sur téléphone */
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: 11.5px; color: var(--ink-3); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; padding: 9px 8px; border-bottom: 1px solid var(--line); }
.table td { padding: 11px 8px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.table tr.click { cursor: pointer; } .table tr.click:hover td { background: #fafbf9; }
.scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
@media (max-width: 759px) {
  .table.cards thead { display: none; }
  .table.cards tr { display: block; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; padding: 10px 12px; background: #fff; }
  .table.cards td { display: flex; justify-content: space-between; gap: 10px; border: 0; padding: 4px 0; text-align: right; }
  .table.cards td::before { content: attr(data-l); color: var(--ink-3); font-size: 13px; text-align: left; }
  .table.cards td.main-cell { display: block; text-align: left; font-weight: 700; font-size: 16px; }
  .table.cards td.main-cell::before { content: none; }
}
.list { list-style: none; margin: 0; padding: 0; }
.list li { padding: 11px 0; border-bottom: 1px solid var(--line-2); display: flex; gap: 10px; align-items: flex-start; justify-content: space-between; }
.list li:last-child { border-bottom: 0; }
.pager { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; flex-wrap: wrap; gap: 8px; }

/* production */
.stages { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (min-width: 760px) { .stages { grid-template-columns: repeat(4, 1fr); } }
.stage { border: 1px solid var(--line); border-radius: 12px; padding: 11px; background: #fff; }
.stage .t { font-size: 11.5px; font-weight: 700; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 6px; }
.stage form { display: flex; gap: 6px; margin-top: 8px; }
.stage select { min-height: 38px; font-size: 14px; padding: 6px 8px; }
.block-msg { background: var(--warn-soft); color: var(--warn); border-radius: 10px; padding: 9px 12px; font-size: 14px; margin-top: 10px; font-weight: 500; }
.progress { height: 8px; background: var(--line-2); border-radius: 99px; overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--green); border-radius: 99px; }
.track { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; margin: 6px 0 2px; }
.track span { height: 6px; border-radius: 4px; background: var(--line); }
.track span.done { background: var(--green); } .track span.doing { background: #f2a600; }
.prio-urgente, .prio-tres_urgente { box-shadow: inset 4px 0 0 var(--bad); }
.late { color: var(--bad); font-weight: 600; } .soon { color: var(--warn); font-weight: 600; } .early { color: var(--ok); font-weight: 600; }

.sizes { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 8px; }
.sizes .sz label { font-size: 12.5px; text-align: center; margin: 0 0 3px; }
.sizes .sz input { text-align: center; padding: 6px; min-height: 44px; font-weight: 600; }
.line-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin-bottom: 12px; background: #fff; }
.line-card .head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.line-card .head strong { font-family: var(--display); font-weight: 400; font-size: 13px; letter-spacing: .04em; }
.totals { margin-left: auto; max-width: 360px; }
.totals div { display: flex; justify-content: space-between; padding: 3px 0; }
.totals .grand { font-weight: 700; font-size: 18px; border-top: 2px solid var(--ink); margin-top: 6px; padding-top: 8px; }
.timeline { list-style: none; padding: 0; margin: 0; font-size: 14px; }
.timeline li { padding: 6px 0 6px 14px; border-left: 2px solid var(--line); margin-left: 4px; }
.timeline li .when { font-size: 12px; color: var(--ink-3); }
.visual img { max-width: 100%; max-height: 380px; border-radius: 12px; border: 1px solid var(--line); }
.empty { text-align: center; color: var(--ink-3); padding: 26px 10px; }
.pill-tabs { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 14px; padding-bottom: 2px; scrollbar-width: none; }
.pill-tabs a { white-space: nowrap; text-decoration: none; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line); font-size: 14px; background: #fff; font-weight: 500; }
.pill-tabs a.on { background: var(--black); color: var(--green); border-color: var(--black); }
details summary { cursor: pointer; font-weight: 600; }

/* graphiques */
.chart { width: 100%; height: auto; display: block; font-family: var(--font); }
.chart .grid { stroke: #eceef1; stroke-width: 1; }
.chart .base { stroke: #9ca3af; stroke-width: 1; }
.chart .axis { fill: #6b7280; font-size: 11px; }
.chart .lbl { fill: #111827; font-size: 13px; font-weight: 600; }
.chart .val { fill: #111827; font-size: 13px; font-weight: 700; }
.chart .track { fill: #f1f2f4; }
.chart .bar:hover path, .chart .bar:hover rect[fill]:not([fill=transparent]) { opacity: .82; }
.chart a .bar { cursor: pointer; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--ink-2); margin-bottom: 6px; }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.chart-table { margin-top: 6px; } .chart-table summary { font-size: 13px; color: var(--ink-3); font-weight: 500; }
.chart-empty { color: var(--ink-3); padding: 20px 0; text-align: center; }

/* connexion */
.login-page { min-height: 100vh; background: var(--black); display: grid; place-items: center; padding: 20px; }
.login { width: 100%; max-width: 400px; }
.login .brand { justify-content: center; margin-bottom: 18px; }
.login .brand img { height: 40px; }
.login .card { padding: 22px; }
.login .tag { text-align: center; color: #a3a3a3; margin: -8px 0 18px; font-size: 14px; }

/* boîte de dialogue « client rapide » */
dialog { border: 0; border-radius: 18px; padding: 20px; width: min(460px, 94vw); box-shadow: 0 20px 60px rgba(0,0,0,.25); }
dialog::backdrop { background: rgba(0,0,0,.5); }
@media print { .side, .top, .bottomnav, .testbar, .actions, .noprint, .stickybar { display: none !important; } .main { padding: 0; } body { background: #fff; } .card { box-shadow: none; } }

/* --- graphiques HTML (texte à taille constante) --- */
.vbars { position: relative; height: var(--h); margin: 8px 0 26px 52px; }
.vb-axis { position: absolute; inset: 0; pointer-events: none; }
.vb-axis div { position: absolute; left: 0; right: 0; border-top: 1px solid #eceef1; }
.vb-axis div:first-child { border-top-color: #9ca3af; }
.vb-axis span { position: absolute; right: calc(100% + 6px); top: -8px; font-size: 11px; color: #6b7280; white-space: nowrap; }
.vb-plot { position: absolute; inset: 0; display: flex; }
.vb-slot { flex: 1; position: relative; display: flex; justify-content: center; outline: none; }
.vb-slot:hover, .vb-slot:focus { background: rgba(71,194,31,.07); }
.vb-group { display: flex; align-items: flex-end; gap: 2px; height: 100%; width: 72%; max-width: 60px; justify-content: center; }
.vb-group i { flex: 1; max-width: 28px; border-radius: 4px 4px 0 0; min-height: 0; }
.vb-group i.zero { visibility: hidden; }
.vb-x { position: absolute; top: calc(100% + 6px); font-size: 11px; color: #6b7280; white-space: nowrap; }
.vb-slot[data-tip]:hover::after, .vb-slot[data-tip]:focus::after { content: attr(data-tip); white-space: pre; position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%);
  background: #111; color: #fff; font-size: 12px; line-height: 1.4; padding: 6px 9px; border-radius: 6px; z-index: 5; pointer-events: none; border-left: 3px solid var(--green, #47C21F); }
.vb-slot:first-child[data-tip]:hover::after, .vb-slot:first-child[data-tip]:focus::after { left: 0; transform: none; }
.vb-slot:last-child[data-tip]:hover::after, .vb-slot:last-child[data-tip]:focus::after { left: auto; right: 0; transform: none; }
@media (max-width: 700px) { .vb-x.alt { visibility: hidden; } .vbars { margin-left: 46px; } }
.hbars { display: grid; gap: 8px; margin: 6px 0 4px; }
.hb-row { display: grid; grid-template-columns: minmax(90px, 130px) 1fr 64px; align-items: center; gap: 10px; color: inherit; text-decoration: none; border-radius: 6px; padding: 2px 4px; }
a.hb-row:hover { background: rgba(71,194,31,.07); }
.hb-l { font-size: 13px; font-weight: 600; text-align: right; }
.hb-t { height: 20px; background: #f1f2f4; border-radius: 4px; overflow: hidden; }
.hb-t i { display: block; height: 100%; border-radius: 4px; min-width: 4px; }
.hb-t i.zero { min-width: 0; }
.hb-v { font-size: 13px; font-weight: 700; white-space: nowrap; }
.vbars { margin-top: 16px; }
.vbars.dense .vb-x.alt { visibility: hidden; }
.table th.num, .table th.right { text-align: right; }

/* --- saisie de commande optimisée --- */
.kpi .v { font-family: var(--font); font-weight: 700; }
.stepper { list-style: none; margin: 0 0 14px; padding: 0; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.stepper a { display: flex; align-items: center; gap: 8px; white-space: nowrap; text-decoration: none; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font-weight: 600; font-size: 14px; }
.stepper a span { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--line-2); font-size: 12px; font-weight: 700; }
.stepper a.done span { background: var(--green); color: #000; }
.form-grid { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; }
.form-main { flex: 999 1 520px; min-width: 0; }
.form-aside { flex: 1 1 290px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 1000px) { .form-aside { position: sticky; top: 16px; } .only-mobile { display: none !important; } }
.recap { background: var(--black); color: #fff; border-radius: var(--radius); padding: 16px 18px; border-bottom: 4px solid var(--green); }
.recap h2 { color: var(--green); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 8px; }
.recap .totals { max-width: none; margin: 0; } .recap .totals .grand { border-top-color: #444; color: var(--green); }
.recap-dep div { display: flex; justify-content: space-between; color: #bdbdbd; font-size: 14px; padding: 2px 0; }
.ready h2 { font-size: 15px; margin: 0 0 8px; }
.ready-list { list-style: none; margin: 0 0 6px; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.ready-list li { display: flex; gap: 9px; align-items: flex-start; }
.ready-list li i { flex: none; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 12px; font-weight: 700; margin-top: 1px; }
.ready-list li.ok i { background: var(--ok-soft); color: var(--ok); } .ready-list li.warn i { background: var(--warn-soft); color: var(--warn); } .ready-list li.no i { background: var(--line-2); color: var(--ink-3); }
.ready-list small { display: block; color: var(--ink-3); font-size: 12px; }
.aside-actions { display: flex; flex-direction: column; gap: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 13px; color: var(--ink-3); margin: 0 0 12px; }
.chip { font: inherit; font-size: 13.5px; min-height: 38px; padding: 0 14px; border-radius: 999px; border: 1.5px solid #d6d9de; background: #fff; color: var(--ink); cursor: pointer; }
.chip.on, .chip[aria-pressed=true] { background: var(--black); border-color: var(--black); color: var(--green); font-weight: 700; }
.client-card { border: 2px solid var(--green); background: var(--green-soft); border-radius: 12px; padding: 12px 14px; margin-bottom: 14px; font-size: 14px; display: flex; flex-direction: column; gap: 3px; }
.depart-list { display: flex; flex-direction: column; gap: 8px; }
.depart-list a { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; text-decoration: none; padding: 11px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; min-height: 44px; }
.depart-list a:hover { border-color: var(--green); background: var(--green-soft); color: var(--ink); }
.depart-list a .go { margin-left: auto; font-weight: 700; color: var(--green-d); }
.line-config { border-top: 1px solid var(--line-2); margin-top: 12px; padding-top: 12px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.tile { border: 2px solid #d6d9de; border-radius: 12px; padding: 8px; background: var(--line-2); display: flex; flex-direction: column; gap: 6px; }
.tile-top { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 0; cursor: pointer; min-height: 30px; }
.tile-top b { flex: 1; color: var(--ink); }
.tile-on { display: none; font-size: 12px; color: var(--green-d); font-weight: 700; }
.tile .tile-c { min-height: 38px; padding: 6px 9px; font-size: 14px; }
.tile:has(input[type=checkbox]:checked) { border-color: var(--green); background: var(--green-soft); }
.tile:has(input[type=checkbox]:checked) .tile-on { display: block; width: 100%; padding: 6px 0 4px; }
.tile:has(input[type=checkbox]:checked) .tile-c { display: none; }
.suggest { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 46px; border-radius: 12px; background: var(--warn-soft); border: 1.5px solid #f4c48a; padding: 4px 6px 4px 12px; }
.suggest.on { background: var(--green-soft); border-color: var(--green); }
.pp-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.pp-table td, .pp-table th { padding: 6px 8px; border-bottom: 1px solid var(--line-2); text-align: left; }
.pp-table th { font-size: 11.5px; color: var(--ink-3); text-transform: uppercase; }
.pp-table tr.chk td { background: var(--warn-soft); }
.pp-sum { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.pp-sum span { border: 1px solid var(--line); border-radius: 10px; padding: 4px 10px; font-size: 13px; background: #fff; }

/* fiche commande : prochaine étape, alertes, message client */
.nextstep { background: var(--black); color: #fff; border-radius: var(--radius); padding: 16px 18px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; border-bottom: 4px solid var(--green); margin-bottom: 12px; }
.nextstep .ns-txt { flex: 1 1 280px; } .nextstep .ns-k { color: var(--green); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.nextstep .ns-t { font-size: 20px; font-weight: 700; margin: 2px 0; } .nextstep .ns-w { color: #bdbdbd; font-size: 14px; }
.alerts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; margin-bottom: 14px; }
.alert-card { display: flex; flex-direction: column; gap: 2px; text-decoration: none; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--ok); border-radius: 12px; padding: 11px 14px; font-size: 14px; }
.alert-card span { color: var(--ink-3); font-size: 13px; } .alert-card.warn { border-left-color: #f47230; } .alert-card.bad { border-left-color: var(--bad); }
.alert-card:hover { border-color: var(--ink); color: var(--ink); }
.wa-card.highlight { border: 2px solid var(--green); }
.wa-grid { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-start; }
.wa-bubble { flex: 1.4 1 300px; background: #e7f8dc; border-radius: 14px 14px 14px 3px; padding: 12px 14px; line-height: 1.55; font-size: 15px; outline: none; }
.wa-bubble:focus { box-shadow: 0 0 0 3px rgba(71,194,31,.25); }
.wa-side { flex: 1 1 240px; }
.btn.block { display: flex; width: 100%; }

/* vue production en colonnes */
.seg { display: inline-flex; gap: 4px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 4px; }
.seg a { text-decoration: none; padding: 7px 16px; border-radius: 999px; font-weight: 600; font-size: 14px; }
.seg a.on { background: var(--black); color: var(--green); }
.legend-row { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; color: var(--ink-2); margin-bottom: 10px; }
.legend-row span { display: flex; align-items: center; gap: 6px; }
.lg { width: 18px; height: 4px; border-radius: 2px; display: inline-block; } .lg.late { background: var(--bad); } .lg.soon { background: #f47230; } .lg.ok { background: #d6d9de; }
.kanban { display: grid; grid-template-columns: repeat(5, minmax(200px, 1fr)); gap: 10px; align-items: start; min-width: 1050px; }
.kcol { background: #eceef1; border-radius: 14px; padding: 8px; display: flex; flex-direction: column; gap: 8px; }
.kcol-h { display: flex; justify-content: space-between; align-items: center; padding: 4px 6px; }
.kcol-h span { background: var(--black); color: var(--green); border-radius: 99px; padding: 0 9px; font-weight: 700; font-size: 12px; }
.kcard { display: flex; flex-direction: column; gap: 3px; text-decoration: none; background: #fff; border: 1px solid var(--line); border-top: 4px solid #d6d9de; border-radius: 12px; padding: 10px 12px; font-size: 13.5px; }
.kcard.k-late { border-top-color: var(--bad); } .kcard.k-late .kdue { color: var(--bad); font-weight: 700; }
.kcard.k-soon { border-top-color: #f47230; } .kcard.k-soon .kdue { color: var(--warn); font-weight: 700; }
.kcard:hover { border-color: var(--ink); color: var(--ink); }
