/* Kabasoft Console — mêmes couleurs que kabasoft.tech */
:root {
  --navy: #071447;
  --navy-2: #0c1f63;
  --blue: #1157f0;
  --blue-d: #0b45c4;
  --cyan: #19b8ff;
  --gold: #ffc531;
  --ink: #0b1736;
  --ink-2: #44547a;
  --mute: #74839f;
  --line: #e3e9f4;
  --bg: #f3f6fb;
  --card: #fff;
  --ok: #0f9d58;
  --ok-bg: #e5f6ec;
  --warn: #b26a00;
  --warn-bg: #fff3dc;
  --bad: #d93025;
  --bad-bg: #fde8e7;
  --info: #1157f0;
  --info-bg: #e7efff;
  --wa: #1fa855;
  --r: 12px;
  --shadow: 0 1px 2px rgba(7, 20, 71, .06), 0 4px 16px rgba(7, 20, 71, .05);
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-size: 15px;
  line-height: 1.5;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
body.no-scroll { overflow: hidden; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0; line-height: 1.25; letter-spacing: -.01em; }
h1 { font-size: 1.6rem; font-weight: 800; display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
h2 { font-size: 1.05rem; font-weight: 700; }
small { color: var(--mute); }
code { background: var(--bg); padding: 0 .3em; border-radius: 4px; font-size: .9em; }
:focus-visible { outline: 3px solid rgba(17, 87, 240, .45); outline-offset: 2px; }
.ic { width: 18px; height: 18px; flex: none; }
[hidden] { display: none !important; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  min-height: 40px; padding: .5rem 1rem; border-radius: 10px; border: 1px solid var(--line);
  background: #fff; color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; white-space: nowrap;
}
.btn:hover { border-color: #c5d1e6; text-decoration: none; }
.btn:disabled { opacity: .55; cursor: wait; }
.btn-primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-d); border-color: var(--blue-d); }
.btn-danger { background: var(--bad); border-color: var(--bad); color: #fff; }
.btn-ghost { background: transparent; }
.btn-ghost.danger { color: var(--bad); }
.btn-wa { background: var(--wa); border-color: var(--wa); color: #fff; }
.btn-wa:hover { background: #188c46; }
.btn-sm { min-height: 32px; padding: .25rem .7rem; font-size: .85rem; border-radius: 8px; }
.btn-sm .ic { width: 15px; height: 15px; }
.btn-block { width: 100%; }
.icon-btn {
  display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 8px;
  border: 0; background: transparent; color: inherit; cursor: pointer;
}
.icon-btn:hover { background: rgba(7, 20, 71, .07); }

/* ---------- Connexion ---------- */
.login { display: grid; grid-template-columns: 1.1fr 1fr; min-height: 100vh; }
.login-brand {
  background: radial-gradient(120% 90% at 0% 100%, rgba(25, 184, 255, .35), transparent 60%), linear-gradient(160deg, var(--navy), var(--navy-2) 70%, #0a2f9a);
  color: #fff; padding: 56px; display: flex; flex-direction: column; justify-content: center; gap: 1.2rem;
}
.login-brand h1 { font-size: 2.3rem; max-width: 14ch; }
.login-brand p { color: #c7d3f3; max-width: 42ch; font-size: 1.05rem; margin: 0; }
.login-panel { display: grid; place-items: center; padding: 32px 20px; }
.login-form { width: min(400px, 100%); display: grid; gap: 1rem; }
.login-form h2 { font-size: 1.5rem; }
.muted-link { color: var(--mute); font-size: .9rem; text-align: center; }
.notice { background: var(--info-bg); color: var(--navy); padding: .6rem .8rem; border-radius: 8px; margin: 0; }
.pw { position: relative; }
.pw input { padding-right: 44px; }
.pw .icon-btn { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); color: var(--mute); }

/* ---------- Marque ---------- */
.brand { display: inline-flex; align-items: center; gap: .55rem; color: #fff; font-weight: 800; letter-spacing: .02em; }
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; object-fit: contain; }
.brand span { font-size: 1.15rem; }
.brand b { color: var(--cyan); font-weight: 800; }
.brand em { font-style: normal; font-weight: 600; font-size: .8rem; color: #9fb2e6; border-left: 1px solid rgba(255, 255, 255, .2); padding-left: .55rem; }
.brand-lg img { width: 52px; height: 52px; }
.brand-lg span { font-size: 1.6rem; }

/* ---------- Barre du haut ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 1.5rem;
  height: 64px; padding: 0 24px; background: var(--navy); color: #fff; box-shadow: 0 2px 12px rgba(7, 20, 71, .25);
}
.nav { display: flex; gap: .2rem; flex: 1; }
.nav a {
  color: #c7d3f3; padding: .45rem .8rem; border-radius: 8px; font-weight: 600; font-size: .92rem;
  display: inline-flex; align-items: center; gap: .4rem;
}
.nav a:hover { color: #fff; background: rgba(255, 255, 255, .08); text-decoration: none; }
.nav a.active { color: #fff; background: rgba(25, 184, 255, .18); box-shadow: inset 0 -2px 0 var(--cyan); }
.nav-more { display: none; }
.badge { background: var(--gold); color: var(--navy); font-size: .72rem; font-weight: 800; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; display: inline-grid; place-items: center; }
.nav-toggle { display: none; color: #fff; }
.user-btn { display: flex; align-items: center; gap: .6rem; background: transparent; border: 0; color: #fff; cursor: pointer; font: inherit; padding: .3rem .4rem; border-radius: 10px; }
.user-btn:hover { background: rgba(255, 255, 255, .08); }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, var(--cyan), var(--blue)); display: grid; place-items: center; font-weight: 800; font-size: .8rem; }
.user-name { display: grid; text-align: left; font-weight: 600; font-size: .9rem; line-height: 1.2; }
.user-name small { color: #9fb2e6; font-size: .75rem; }

/* ---------- Menus ---------- */
.menu { position: relative; display: inline-block; }
.menu-list {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; min-width: 220px; padding: .35rem;
  background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 30px rgba(7, 20, 71, .16);
  display: grid;
}
.menu-list > * {
  text-align: left; background: none; border: 0; font: inherit; color: var(--ink); padding: .55rem .7rem;
  border-radius: 7px; cursor: pointer; font-size: .9rem; white-space: nowrap;
}
.menu-list > *:hover { background: var(--bg); text-decoration: none; }
.menu-list .danger { color: var(--bad); }

/* ---------- Page ---------- */
.page { max-width: 1280px; margin: 0 auto; padding: 28px 24px 64px; outline: none; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.3rem; }
.sub { margin: .25rem 0 0; color: var(--mute); }
.head-actions { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.back { display: inline-flex; align-items: center; gap: .3rem; color: var(--mute); font-weight: 600; margin-bottom: .6rem; }
.stack { display: grid; gap: 1.2rem; align-content: start; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin-top: 1.2rem; }
.grid-side { display: grid; grid-template-columns: 320px 1fr; gap: 1.2rem; align-items: start; }

.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; box-shadow: var(--shadow); }
.panel-flush { padding: 0; overflow: hidden; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: .8rem; margin-bottom: 1rem; flex-wrap: wrap; }
.panel-head.pad { padding: 18px 20px 0; }
.panel-head small { display: block; }
.panel + .panel { margin-top: 0; }
.pad { padding: 0 20px 20px; }
.count { background: var(--bad-bg); color: var(--bad); font-weight: 800; font-size: .8rem; padding: .1rem .55rem; border-radius: 10px; }
.link { font-weight: 600; font-size: .9rem; }
.mini-title { font-size: .85rem; color: var(--ink-2); margin: 1.2rem 0 .5rem; font-weight: 700; }
.hint { color: var(--mute); font-size: .88rem; margin: .4rem 0 0; }
.muted { color: var(--mute); }
.strong { font-weight: 700; color: var(--ink); }
.notes { white-space: pre-wrap; background: var(--bg); padding: .7rem .8rem; border-radius: 8px; margin: .5rem 0 0; font-size: .9rem; }
.quote { margin: .6rem 0 0; padding: .6rem .8rem; border-left: 3px solid var(--cyan); background: #f6fbff; border-radius: 0 8px 8px 0; font-size: .92rem; }

/* ---------- Indicateurs ---------- */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.kpi {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; display: grid; gap: .2rem;
  color: var(--ink); box-shadow: var(--shadow);
}
a.kpi:hover { text-decoration: none; border-color: #c5d1e6; }
.kpi-label { font-size: .85rem; color: var(--ink-2); font-weight: 600; }
.kpi strong { font-size: 1.55rem; font-weight: 800; letter-spacing: -.02em; }
.kpi small { font-size: .8rem; }
.kpi-main { background: linear-gradient(140deg, var(--navy), var(--blue)); color: #fff; border: 0; }
.kpi-main .kpi-label, .kpi-main small { color: #c7d3f3; }
.kpi-main strong { font-size: 2rem; }
.kpi-warn { border-color: #f5d69a; background: #fffaf0; }
.minis { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: 1rem; }
.minis a { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .35rem .9rem; color: var(--ink-2); font-size: .9rem; }
.minis a strong { color: var(--ink); margin-right: .2rem; }
.minis a.is-bad { border-color: #f4b8b3; background: var(--bad-bg); }
.minis a.is-bad strong { color: var(--bad); }
.minis a.is-info { border-color: #b9cdfb; background: var(--info-bg); }
.minis a:hover { text-decoration: none; border-color: #c5d1e6; }

.lines { list-style: none; margin: 0; padding: 0; }
.row-line { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .7rem 0; border-top: 1px solid var(--line); }
.row-line:first-child { border-top: 0; padding-top: 0; }
.row-line > div:first-child { display: grid; min-width: 0; }
.row-end { display: flex; gap: .6rem; align-items: center; flex: none; }

.bars { display: grid; grid-template-columns: repeat(6, 1fr); gap: .8rem; height: 170px; align-items: end; }
.bar { display: grid; grid-template-rows: auto 1fr auto; height: 100%; text-align: center; gap: .3rem; }
.bar-fill { align-self: end; width: 100%; max-width: 44px; justify-self: center; background: linear-gradient(180deg, var(--cyan), var(--blue)); border-radius: 6px 6px 2px 2px; }
.bar-val { font-size: .75rem; color: var(--ink-2); font-weight: 600; min-height: 1.1em; }
.bar-label { font-size: .8rem; color: var(--mute); }
.split { list-style: none; padding: 0; margin: 0; }
.split li { display: grid; grid-template-columns: 1fr auto auto; gap: 1rem; padding: .45rem 0; border-top: 1px solid var(--line); font-size: .9rem; }
.split li span:nth-child(2) { color: var(--mute); }
.feed { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
.feed li { border-left: 2px solid var(--line); padding-left: .8rem; }
.feed p { margin: 0; font-size: .9rem; }

/* ---------- États ---------- */
.pill { display: inline-flex; align-items: center; padding: .12rem .6rem; border-radius: 999px; font-size: .78rem; font-weight: 700; white-space: nowrap; vertical-align: middle; }
.pill-ok { background: var(--ok-bg); color: var(--ok); }
.pill-info { background: var(--info-bg); color: var(--info); }
.pill-warn { background: var(--warn-bg); color: var(--warn); }
.pill-bad { background: var(--bad-bg); color: var(--bad); }
.pill-mute { background: #eef1f6; color: var(--mute); }
h1 .pill { font-size: .8rem; }
.due { font-size: .8rem; color: var(--mute); white-space: nowrap; }
.due-warn { color: var(--warn); font-weight: 700; }
.due-bad { color: var(--bad); font-weight: 700; }
.conn { font-size: .8rem; font-weight: 700; padding: .2rem .6rem; border-radius: 999px; }
.conn-on { background: var(--ok-bg); color: var(--ok); }
.conn-off { background: #eef1f6; color: var(--mute); }

/* ---------- Barre d'outils ---------- */
.toolbar { display: flex; justify-content: space-between; gap: .8rem; flex-wrap: wrap; margin-bottom: 1rem; align-items: center; }
.tabs { display: inline-flex; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 3px; flex-wrap: wrap; }
.tabs button { border: 0; background: none; font: inherit; font-weight: 600; font-size: .88rem; color: var(--ink-2); padding: .4rem .8rem; border-radius: 7px; cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--navy); color: #fff; }
.filters { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; }
.search { display: flex; align-items: center; gap: .4rem; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 0 .7rem; color: var(--mute); min-width: 240px; }
.search input { border: 0; outline: none; padding: .55rem 0; font: inherit; width: 100%; background: transparent; }
.search:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(17, 87, 240, .15); }
.filters select, .filters input[type=date] { width: auto; }
.inline { display: inline-flex; gap: .4rem; align-items: center; font-size: .88rem; color: var(--ink-2); }
.check { display: inline-flex; gap: .5rem; align-items: center; font-size: .9rem; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--blue); }

.totals { display: flex; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.totals div { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: .6rem 1rem; display: grid; }
.totals span { font-size: .8rem; color: var(--mute); font-weight: 600; }
.totals strong { font-size: 1.1rem; }

/* ---------- Tableaux ---------- */
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th { text-align: left; font-size: .76rem; text-transform: none; color: var(--mute); font-weight: 700; padding: .7rem 1rem; background: #f8fafd; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: .75rem 1rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table td small { display: block; font-size: .8rem; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tr[data-href] { cursor: pointer; }
.table tbody tr:hover { background: #fafbfe; }
.table .num { text-align: right; white-space: nowrap; }
.table .act { text-align: right; white-space: nowrap; width: 1%; }
.table .act > * { vertical-align: middle; }
.table-foot { margin: 0; padding: .7rem 1rem; color: var(--mute); font-size: .85rem; border-top: 1px solid var(--line); background: #f8fafd; }
.panel .table { margin: 0; }
.product .table { margin: 1rem -20px -20px; width: calc(100% + 40px); border-top: 1px solid var(--line); }

/* ---------- Fiches ---------- */
.facts { display: grid; grid-template-columns: 110px 1fr; gap: .5rem 1rem; margin: 0; font-size: .92rem; }
.facts dt { color: var(--mute); }
.facts dd { margin: 0; word-break: break-word; }
.facts.compact { grid-template-columns: 90px 1fr; gap: .3rem .8rem; font-size: .88rem; }
.facts.inline-facts { grid-template-columns: auto auto auto auto auto 1fr; gap: .3rem 1rem; }
.product + .product { margin-top: 1.2rem; }
.subs { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.sub-card { display: flex; justify-content: space-between; gap: 1rem; padding: .9rem 1rem; border: 1px solid var(--line); border-radius: 10px; }
.sub-main { display: grid; gap: .15rem; }
.sub-title { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.sub-main small { display: flex; gap: .35rem; align-items: center; flex-wrap: wrap; }
.sub-main small .ic { width: 14px; height: 14px; }
.sub-actions { display: flex; gap: .3rem; align-items: flex-start; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1rem; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 18px; display: grid; gap: .8rem; align-content: start; box-shadow: var(--shadow); }
.card-new { border-color: #b9cdfb; box-shadow: inset 3px 0 0 var(--blue), var(--shadow); }
.card header { display: flex; justify-content: space-between; gap: .8rem; align-items: flex-start; }
.card h3 { font-size: 1rem; }
.card footer { display: flex; gap: .4rem; flex-wrap: wrap; align-items: center; border-top: 1px solid var(--line); padding-top: .8rem; }
.select-sm { width: auto; padding: .25rem .5rem; font-size: .85rem; min-height: 32px; }

/* ---------- Formulaires ---------- */
.field { display: grid; gap: .3rem; align-content: start; }
.field label { font-size: .85rem; font-weight: 600; color: var(--ink-2); }
.field small { font-size: .8rem; }
input, select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: #fff; border: 1px solid #d5ddeb; border-radius: 9px;
  padding: .55rem .7rem; min-height: 42px;
}
textarea { resize: vertical; min-height: 80px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(17, 87, 240, .15); }
input:disabled, select:disabled { background: #f3f5f9; color: var(--mute); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-items: start; }
.span-2 { grid-column: 1 / -1; }
.form-grid .mini-title { margin: .4rem 0 -.4rem; }
.form-error { color: var(--bad); background: var(--bad-bg); padding: .55rem .8rem; border-radius: 8px; margin: 0; font-size: .9rem; }
form.panel { display: grid; gap: 1rem; align-content: start; }
form.panel .panel-head { margin-bottom: 0; }
form.panel > .btn { justify-self: start; }
.switch-row { align-items: flex-start; background: var(--bg); padding: .8rem 1rem; border-radius: 10px; }
.switch-row span { display: grid; gap: .2rem; }
.switch-row input { margin-top: .15rem; }

/* ---------- Modales ---------- */
.modal-back { position: fixed; inset: 0; z-index: 50; background: rgba(7, 20, 71, .45); display: grid; place-items: center; padding: 16px; overflow-y: auto; }
.modal { width: min(480px, 100%); background: #fff; border-radius: 16px; box-shadow: 0 24px 60px rgba(7, 20, 71, .3); display: grid; max-height: calc(100vh - 32px); grid-template-rows: auto 1fr auto; animation: pop .16s ease-out; }
.modal-wide { width: min(720px, 100%); }
.modal header { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px 6px; }
.modal-body { padding: 10px 20px; overflow-y: auto; display: grid; gap: 1rem; align-content: start; }
.modal-body > p { margin: 0; }
.modal footer { display: flex; justify-content: flex-end; gap: .5rem; padding: 14px 20px 18px; border-top: 1px solid var(--line); margin-top: 8px; }
.modal .table th, .modal .table td { padding: .55rem .6rem; }
@keyframes pop { from { transform: translateY(8px); opacity: 0; } }

/* ---------- Notifications ---------- */
#toasts { position: fixed; right: 16px; bottom: 16px; z-index: 60; display: grid; gap: .5rem; max-width: min(420px, calc(100vw - 32px)); }
.toast { background: var(--navy); color: #fff; padding: .75rem 1rem; border-radius: 10px; box-shadow: 0 10px 30px rgba(7, 20, 71, .3); font-size: .92rem; border-left: 4px solid var(--cyan); transition: opacity .3s, transform .3s; }
.toast-warn { border-left-color: var(--gold); }
.toast-bad { border-left-color: #ff6b5f; }
.toast.out { opacity: 0; transform: translateY(6px); }

/* ---------- Vides et chargement ---------- */
.empty { display: grid; justify-items: center; gap: .6rem; text-align: center; padding: 36px 16px; color: var(--mute); }
.empty .ic { width: 34px; height: 34px; color: #b3c0d8; }
.empty p { margin: 0; max-width: 44ch; }
.empty-bad .ic { color: var(--bad); }
.loading { display: flex; gap: 6px; justify-content: center; padding: 60px 0; }
.loading span { width: 9px; height: 9px; border-radius: 50%; background: var(--blue); animation: blink 1s infinite; }
.loading span:nth-child(2) { animation-delay: .15s; }
.loading span:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 50% { opacity: .2; } }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .user-name { display: none; }
  .nav a { padding: .45rem .55rem; font-size: .88rem; }
}
@media (max-width: 960px) {
  .topbar { gap: .8rem; padding: 0 12px 0 16px; }
  .nav-toggle { display: inline-grid; order: 3; }
  .user { order: 2; margin-left: auto; }
  .nav {
    position: fixed; top: 64px; left: 0; right: 0; bottom: 0; flex-direction: column; gap: 0; padding: 12px;
    background: var(--navy); overflow-y: auto; transform: translateX(100%); transition: transform .2s; visibility: hidden;
  }
  .nav.open { transform: none; visibility: visible; }
  .nav a { padding: .9rem 1rem; font-size: 1rem; }
  .nav-more { display: grid; border-top: 1px solid rgba(255, 255, 255, .12); margin-top: .6rem; padding-top: .6rem; }
  .nav-more button { background: none; border: 0; color: #ff9a92; font: inherit; font-weight: 600; text-align: left; padding: .9rem 1rem; cursor: pointer; }
  .grid-2, .grid-side { grid-template-columns: 1fr; }
  .login { grid-template-columns: 1fr; }
  .login-brand { padding: 32px 24px; }
  .login-brand h1 { font-size: 1.7rem; }
  .facts.inline-facts { grid-template-columns: 110px 1fr; }
}
@media (max-width: 720px) {
  .page { padding: 18px 12px 48px; }
  h1 { font-size: 1.35rem; }
  .kpis { grid-template-columns: 1fr 1fr; gap: .6rem; }
  .kpi { padding: 14px; }
  .kpi strong { font-size: 1.15rem; }
  .kpi-main strong { font-size: 1.6rem; }
  .kpi-main { grid-column: 1 / -1; }
  .form-grid { grid-template-columns: 1fr; }
  .search { min-width: 0; flex: 1; }
  .toolbar, .filters { width: 100%; }
  .tabs { overflow-x: auto; flex-wrap: nowrap; max-width: 100%; }
  .tabs button { white-space: nowrap; }
  .table thead { display: none; }
  .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
  .table tr { padding: .7rem 1rem; border-bottom: 1px solid var(--line); }
  .table td { border: 0; padding: .25rem 0 .25rem 38%; position: relative; min-height: 1.6em; }
  .table td::before { content: attr(data-label); position: absolute; left: 0; top: .3rem; width: 36%; color: var(--mute); font-size: .8rem; }
  .table td:not([data-label]) { padding-left: 0; }
  .table td:not([data-label])::before { content: none; }
  .table .num { text-align: left; }
  .table .act { width: 100%; padding-top: .5rem; text-align: left; display: flex; gap: .4rem; align-items: center; }
  .table .act .menu-list { left: 0; right: auto; }
  .product .table { margin: 1rem -20px -20px; }
  .sub-card { flex-direction: column; }
  .row-line { flex-direction: column; align-items: flex-start; gap: .4rem; }
  .bars { gap: .4rem; }
  .modal footer { flex-direction: column-reverse; }
  .modal footer .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
