/* Equident Versand-Cockpit.
   Typography, spacing and shapes follow the TAMG-Wedge app (system font, 15 px, six text sizes, flat cards with a
   hairline, pill-shaped controls, floating glass bar). Colours are DHL's: white, yellow, red. */
:root {
  color-scheme: light;

  /* colours */
  --bg: #ffffff;
  --card: #ffffff;
  --ink: #1b1b1b;
  --ink-2: #3d3d3d;
  --muted: #6b6b6b;
  --line: #e9e4d2;
  --line-2: #f3efe2;
  --yellow: #ffcc00;
  --yellow-soft: #fff6cf;
  --yellow-edge: #f0d77a;
  --red: #d40511;
  --red-dark: #a8040d;
  --red-bg: #fdebeb;
  --ok: #15704a;
  --ok-bg: #e6f4ec;

  /* shape */
  --r-card: 20px; --r-ctl: 12px; --r-pill: 999px;
  --ring: 0 0 0 3px rgba(255, 204, 0, .55);

  /* spacing: seven steps */
  --s0: .125rem; --s1: .25rem; --s2: .5rem; --s3: .75rem; --s4: 1rem; --s5: 1.5rem; --s6: 2rem;

  /* text: six sizes */
  --t-xl: 1.06rem;   /* card heading */
  --t-l:  .95rem;    /* sub heading, button label */
  --t-m:  .88rem;    /* body text */
  --t-s:  .82rem;    /* secondary info, table cells */
  --t-xs: .76rem;    /* small print */
  --t-xxs: .68rem;   /* caps labels */

  --kopf-h: 64px;
  --kopf-abstand: var(--s3);
  --kopf-seite: max(var(--s4), calc((100% - 1180px) / 2 + var(--s4)));
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh;
  font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  color: var(--ink); background: var(--bg); overflow-x: hidden;
}
h1, h2, h3 { line-height: 1.25; letter-spacing: -.01em; }
h1 { margin: 0 0 var(--s1); font-size: 1.35rem; font-weight: 650; }
h2 { margin: 0 0 var(--s3); font-size: var(--t-xl); font-weight: 650; }
p { margin: 0 0 var(--s2); }
a { color: inherit; }
.muted { color: var(--muted); font-size: var(--t-m); }
:where(button, input, a):focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }

/* yellow band behind the floating glass bar */
.band {
  position: absolute; inset: 0 0 auto 0; height: 190px; z-index: -1;
  background: linear-gradient(180deg, var(--yellow) 0%, #ffd94d 50%, #fff 100%);
}

/* ------------------------------------------------------------- bar -- */
.bar {
  position: sticky; top: var(--kopf-abstand); z-index: 20;
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); grid-template-areas: "brand center nav";
  align-items: center; gap: var(--s3) var(--s4); min-height: var(--kopf-h); padding: 0 var(--s3) 0 var(--s4);
  margin: var(--kopf-abstand) var(--kopf-seite) 0; border-radius: 30px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .62), rgba(255, 255, 255, .74));
  -webkit-backdrop-filter: saturate(180%) blur(22px); backdrop-filter: saturate(180%) blur(22px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), inset 0 -1px 0 rgba(120, 90, 0, .12),
              0 2px 6px rgba(60, 45, 0, .10), 0 14px 32px -12px rgba(60, 45, 0, .32);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .bar { background: #fff; }
}
.bar__brand { grid-area: brand; justify-self: start; display: flex; align-items: center; gap: var(--s2); text-decoration: none; min-width: 0; }
.bar__brand img { height: 40px; width: auto; display: block; }
.bar__brand span { font-size: var(--t-l); font-weight: 600; white-space: nowrap; padding-left: var(--s2); border-left: 2px solid var(--red); }
.bar__center { grid-area: center; }
.bar__nav { grid-area: nav; justify-self: end; display: flex; align-items: center; gap: var(--s1); flex-wrap: wrap; justify-content: flex-end; }
.bar__nav form { margin: 0; display: flex; }
.icon-btn {
  display: inline-grid; place-items: center; width: 38px; height: 38px; margin-left: var(--s1); padding: 0;
  border: 0; border-radius: 50%; background: transparent; color: var(--ink-2); cursor: pointer; transition: background .12s, color .12s;
}
.icon-btn:hover { background: rgba(212, 5, 17, .1); color: var(--red); }
.bar__nav a, .bar__nav .link, .bar__center a {
  text-decoration: none; color: var(--ink-2); padding: var(--s2) var(--s3); border-radius: var(--r-pill);
  font-size: var(--t-m); font-weight: 600;  /* same weight in every state: a bolder active item would push its neighbours */
}
.bar__nav a:hover, .bar__nav .link:hover, .bar__center a:hover { background: rgba(255, 204, 0, .35); color: var(--ink); }
.bar__nav a.is-on, .bar__center a.is-on { background: #fff; color: var(--ink); box-shadow: 0 0 0 1px rgba(120, 90, 0, .14), 0 2px 6px rgba(60, 45, 0, .14); }
/* "Aufträge" is the main button of the bar: a large pill, visible as a button even when another page is open */
.bar__center a.nav-orders {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: 48px; min-width: 13rem; padding: 0 var(--s6);
  font-size: var(--t-l); font-weight: 650; color: var(--ink);
  background: rgba(255, 255, 255, .55); box-shadow: 0 0 0 1px rgba(120, 90, 0, .12);
}
.bar__center a.nav-orders:hover { background: rgba(255, 255, 255, .8); }
.bar__center a.nav-orders.is-on { background: #fff; color: var(--ink); box-shadow: 0 0 0 1px rgba(120, 90, 0, .14), 0 2px 8px rgba(60, 45, 0, .16); }
.nav-badge {
  display: inline-flex; align-items: center; justify-content: center; min-width: 24px; height: 24px; padding: 0 7px;
  border-radius: var(--r-pill); background: var(--red); color: #fff; font-size: var(--t-xs); font-weight: 700;
  box-shadow: 0 0 0 2px #fff;
}
.nav-badge.is-up { animation: badge-pop .5s ease-out; }  /* only when new orders arrived, see cockpit.js */
@keyframes badge-pop { 0% { transform: scale(.4); } 70% { transform: scale(1.15); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .nav-badge.is-up { animation: none; } }

.page { padding: var(--s5) var(--s4) var(--s6); max-width: 1180px; margin: 0 auto; }

/* ----------------------------------------------------------- cards -- */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card);
  padding: var(--s5); min-width: 0; margin-bottom: var(--s4);
}
.card--narrow { max-width: 460px; margin: var(--s6) auto; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s2) var(--s4); flex-wrap: wrap; margin-bottom: var(--s4); min-height: 36px; }
.card-head h2 { margin: 0; display: flex; align-items: center; gap: var(--s2); }
.card-head .muted { margin: 0; }
.card-head--stack { display: grid; gap: var(--s1); justify-content: stretch; }
.card--head { padding: var(--s4) var(--s5); }
.card--head .card-head { margin-bottom: 0; }
.card--head .alert, .card--head .note { margin: var(--s3) 0 0; }
.title-line { display: flex; align-items: center; gap: var(--s3); min-width: 0; }
.back-btn {
  display: inline-grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 50%;
  border: 1px solid var(--line); background: #fff; color: var(--ink); text-decoration: none; font-size: 1.05rem;
  transition: background .12s, border-color .12s;
}
.back-btn:hover { background: var(--yellow-soft); border-color: var(--yellow-edge); }
/* lists sit flush inside their card, edge to edge below the card head */
.card--list { padding-bottom: 0; overflow: hidden; }
.card--list .olist { border: 0; border-radius: 0; margin: 0 calc(-1 * var(--s5)); border-top: 1px solid var(--line); }
.card--list .olist__head, .card--list .orow { padding-left: var(--s5); padding-right: var(--s5); }
.card--list .orow { padding-left: calc(var(--s5) - 4px); }
.card--list .empty { margin: 0 calc(-1 * var(--s5)); border-top: 1px solid var(--line); }
.card--yellow { background: var(--yellow-soft); border-color: var(--yellow-edge); }
.empty { text-align: center; color: var(--muted); padding: var(--s6); font-size: var(--t-m); }
.toasts { position: fixed; left: 50%; bottom: var(--s5); transform: translateX(-50%); z-index: 50; display: grid; gap: var(--s2); width: min(560px, calc(100% - 2rem)); pointer-events: none; }
.toast {
  margin: 0; padding: var(--s3) var(--s4); border-radius: var(--r-ctl); font-size: var(--t-m); font-weight: 550;
  background: #fff; border: 1px solid var(--line); box-shadow: 0 10px 30px -10px rgba(40, 30, 0, .35);
  pointer-events: auto; cursor: pointer; animation: toast-in .22s ease-out; transition: opacity .25s, transform .25s;
}
.toast--ok { border-left: 4px solid var(--ok); }
.toast--error { border-left: 4px solid var(--red); color: var(--red-dark); }
.toast.is-leaving { opacity: 0; transform: translateY(8px); }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.print-frame { position: fixed; right: 0; bottom: 0; width: 1px; height: 1px; border: 0; opacity: 0; pointer-events: none; }
.alert { background: var(--red); color: #fff; font-weight: 650; padding: var(--s3) var(--s4); border-radius: var(--r-ctl); font-size: var(--t-m); }
.copy { font: var(--t-s)/1.4 ui-monospace, Menlo, monospace; word-break: break-all; background: #fff; padding: var(--s2) var(--s3); border-radius: var(--r-ctl); border: 1px solid var(--line); user-select: all; }

/* --------------------------------------------------------- buttons -- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s1);
  min-height: 36px; padding: var(--s2) var(--s4); border-radius: var(--r-pill);
  border: 1px solid #d6cfb4; background: #fff; color: var(--ink);
  font: inherit; font-size: var(--t-m); font-weight: 550; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .12s, border-color .12s, transform .06s, opacity .12s;
}
.btn:hover:not(:disabled) { background: var(--yellow-soft); border-color: var(--yellow-edge); }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { cursor: default; background: #f5f4ef; border-color: var(--line); color: #9a978c; }
.btn.is-busy { opacity: .6; pointer-events: none; }
.btn--red { background: var(--red); border-color: var(--red); color: #fff; }
.btn--red:hover:not(:disabled) { background: var(--red-dark); border-color: var(--red-dark); }
.btn--check { background: var(--yellow); border-color: var(--yellow); }
.btn--check:hover:not(:disabled) { background: #ffd633; border-color: #ffd633; }
.btn--big { font-size: var(--t-l); min-height: 42px; padding: var(--s2) var(--s5); }
.btn--block { width: 100%; }
.btn--small { min-height: 28px; padding: var(--s1) var(--s3); font-size: var(--t-xs); font-weight: 500; }
.link { background: none; border: 0; padding: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font: inherit; font-size: var(--t-xs); }

/* ----------------------------------------------------------- forms -- */
.form label, label.small { display: block; font-size: var(--t-s); font-weight: 500; color: var(--ink-2); margin: var(--s3) 0 0; }
.form label:first-of-type { margin-top: 0; }
.form input:not([type=checkbox]), label.small input {
  display: block; width: 100%; margin-top: var(--s1); padding: var(--s2) var(--s4); min-height: 40px;
  border: 1px solid var(--line); border-radius: var(--r-pill); font: inherit; color: var(--ink); background: #fff;
  transition: border-color .12s, box-shadow .12s;
}
.form input:hover, label.small input:hover { border-color: #d6cfb4; }
.form input:not([type=checkbox]):not([type=radio]):focus, label.small input:focus { border-color: var(--ink); box-shadow: var(--ring); outline: none; }
/* tick boxes and radio buttons: no yellow ring (it was square); a thin round outline only for keyboard users */
input[type=checkbox], input[type=radio] { box-shadow: none; outline: none; }
input[type=checkbox]:focus-visible, input[type=radio]:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 50%; }
input[type=checkbox]:focus-visible { border-radius: 3px; }
.form .btn { margin-top: var(--s4); }
.form--row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--s3); align-items: end; }
.form--row label { margin-top: 0; }
.form label.check { display: flex; align-items: center; gap: var(--s2); font-size: var(--t-m); font-weight: 400; color: var(--ink); margin-top: var(--s4); }
.form label.check input { accent-color: var(--red); }
.inline { display: flex; align-items: flex-end; gap: var(--s2); flex-wrap: wrap; margin: 0; }
.inline label.small { margin: 0; }
.inline label.small input { width: auto; min-width: 7rem; }
.inline input[name=weight] { min-width: 0; width: 5.5rem; }

/* ---------------------------------------------------- tabs, orders -- */
.tabs { display: flex; gap: var(--s1); padding: var(--s1); border-radius: var(--r-pill); background: #f6f4ec; width: fit-content; border: 1px solid var(--line); }
.tab { text-decoration: none; padding: var(--s2) var(--s4); border-radius: var(--r-pill); font-size: var(--t-m); font-weight: 600; color: var(--ink-2); }
.tab:hover { background: rgba(255, 204, 0, .3); }
.tab.is-on { background: #fff; color: var(--ink); box-shadow: 0 0 0 1px rgba(120, 90, 0, .14), 0 2px 6px rgba(60, 45, 0, .14); }
.count--grey { background: #8a8a8a !important; }
.count { display: inline-block; min-width: 1.4rem; padding: 0 var(--s1); margin-left: var(--s1); border-radius: var(--r-pill); background: var(--red); color: #fff; font-size: var(--t-xs); font-weight: 650; text-align: center; }

.olist { background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; }
.olist__head, .orow {
  display: grid; align-items: center; gap: var(--s3);
  grid-template-columns: 11.5rem 7.5rem minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1.4fr) 12.5rem;
  padding: 0 var(--s4);
}
.olist__head {
  min-height: 34px; background: #fbfaf5; box-shadow: inset 0 -1px 0 var(--line);
  color: var(--muted); font-size: var(--t-xxs); font-weight: 650; text-transform: uppercase; letter-spacing: .05em;
}
.orow {
  min-height: 44px; font-size: var(--t-s); color: inherit; text-decoration: none;
  border-bottom: 1px solid var(--line-2); border-left: 4px solid transparent; padding-left: calc(var(--s4) - 4px);
}
.orow:last-child { border-bottom: 0; }
.orow:hover { background: #fffdf2; }
.orow .muted { font-size: var(--t-xs); }
.orow--new { border-left-color: var(--yellow); }
.orow--cancelled { border-left-color: var(--red); background: #fffafa; }
.orow--cancelled .orow__no, .orow--cancelled .ell { text-decoration: line-through; text-decoration-color: rgba(212, 5, 17, .5); }
.orow__no { font-weight: 650; font-size: var(--t-m); white-space: nowrap; }
.orow__state { display: flex; align-items: center; gap: var(--s2); white-space: nowrap; min-width: 0; }
.ell { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.orow i.tag { font-style: normal; }
.tag--new { background: var(--red); color: #fff; font-size: var(--t-xxs); padding: 0 var(--s2); }
.next { font-size: var(--t-xs); font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.dots { display: flex; gap: var(--s1); }
.dots { flex: none; }
.dots i { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid #cfc7a8; }
.dots i.on { background: var(--yellow); border-color: #c99f00; }

.tag {
  display: inline-flex; align-items: center; gap: var(--s1); justify-self: start; white-space: nowrap;
  padding: var(--s0) var(--s2); border-radius: var(--r-pill); font-size: var(--t-xs); font-weight: 650; border: 1px solid transparent;
}
.tag--test { background: var(--ink); color: #fff; }
.tag--note { background: var(--yellow-soft); border-color: var(--yellow-edge); color: #6b5300; }
.tag--red { background: var(--red); color: #fff; }
.tag--done { background: var(--ok-bg); border-color: #cbe6d6; color: var(--ok); }

/* ---------------------------------------------------- order detail -- */
.back { display: inline-block; text-decoration: none; font-size: var(--t-s); font-weight: 550; color: var(--ink-2); margin-bottom: var(--s2); }
.back:hover { text-decoration: underline; }
.head { margin-bottom: var(--s4); }
.head .muted { margin: 0; }
.grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: var(--s4); align-items: stretch; margin-bottom: var(--s4); }
.grid > .card { margin-bottom: 0; height: 100%; }
.address { font-size: var(--t-l); line-height: 1.5; margin-bottom: var(--s3); }
.facts { font-size: var(--t-m); }
.facts p { margin: 0 0 var(--s1); }
.note { margin-top: var(--s4); padding: var(--s3) var(--s4); background: var(--yellow-soft); border: 1px solid var(--yellow-edge); border-radius: var(--r-ctl); font-size: var(--t-m); }

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: var(--t-m); }
.table th {
  text-align: left; padding: var(--s2) var(--s3); background: #fbfaf5; color: var(--muted);
  font-size: var(--t-xxs); font-weight: 650; text-transform: uppercase; letter-spacing: .05em; white-space: nowrap;
  box-shadow: inset 0 -1px 0 var(--line);
}
.table th:first-child { border-radius: var(--r-ctl) 0 0 var(--r-ctl); }
.table th:last-child { border-radius: 0 var(--r-ctl) var(--r-ctl) 0; }
.table td { padding: var(--s3); border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; white-space: nowrap; }
.table .big { font-weight: 650; }
.table .sku { white-space: nowrap; color: var(--ink-2); }
.table .actions { display: flex; gap: var(--s1); justify-content: flex-end; flex-wrap: wrap; }
.table .actions form { margin: 0; }
.table tr.is-off td { color: #aaa; }

/* Steps: one fixed grid for all four rows, so buttons stand exactly below each other and nothing moves when
   a step is done (same height, same columns, texts are cut instead of wrapping). */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s2); }
.step {
  display: grid; align-items: center; gap: var(--s4);
  grid-template-columns: 30px 11rem 12rem 12.5rem minmax(0, 1fr);
  height: 60px; padding: 0 var(--s4); border: 1px solid var(--line); border-radius: var(--r-card);
  transition: background .2s, border-color .2s;
}
.step.is-done { background: #fffbea; border-color: var(--yellow-edge); }
.step__dot {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  border: 1.5px solid #d6cfb4; font-size: var(--t-s); font-weight: 650; color: var(--muted); background: #fff;
}
.step.is-done .step__dot { background: var(--yellow); border-color: #c99f00; color: var(--ink); }
.step__name { font-size: var(--t-l); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* no overflow:hidden on the cell itself, it cut the focus ring of the inputs; only the texts are shortened */
.step__field { min-width: 0; font-size: var(--t-s); white-space: nowrap; }
.step__field > .value, .step__field > .muted { display: block; overflow: hidden; text-overflow: ellipsis; }
.step__field input, .step__field select {
  width: 100%; height: 36px; padding: 0 var(--s4); border: 1px solid var(--line); border-radius: var(--r-pill);
  font: inherit; font-size: var(--t-m); color: var(--ink); background: #fff; transition: border-color .12s, box-shadow .12s;
}
.step__field input:focus, .step__field select:focus { border-color: var(--ink); box-shadow: var(--ring); outline: none; }
.step__field select { padding: 0 var(--s6) 0 var(--s4); appearance: none; cursor: pointer;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12'%3E%3Cpath d='M2.25 4.25 6 8l3.75-3.75' fill='none' stroke='%236b6b6b' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 14px center; }
.step__field input:disabled { background: #f7f6f1; }
.unit { position: relative; display: block; }
.unit input { padding-right: 2.6rem; }
.unit i { position: absolute; right: var(--s4); top: 50%; transform: translateY(-50%); font-style: normal; color: var(--muted); font-size: var(--t-s); pointer-events: none; }
.value { font-size: var(--t-m); color: var(--ink-2); }
.mono { font-family: ui-monospace, Menlo, monospace; font-size: var(--t-s); }
.step__action form, .step__who form { margin: 0; }
.step__action .btn { width: 100%; }
/* card flip of a step button: the old state turns away, the new one turns in (transform only, nothing moves) */
.step__action { perspective: 700px; }
.step__action .btn.flip-out { animation: flip-out .18s ease-in forwards; }
.step__action .btn.flip-in { animation: flip-in .24s ease-out; }
@keyframes flip-out { from { transform: rotateX(0); } to { transform: rotateX(90deg); } }
@keyframes flip-in { from { transform: rotateX(-90deg); } to { transform: rotateX(0); } }
@media (prefers-reduced-motion: reduce) { .step__action .btn.flip-out, .step__action .btn.flip-in { animation: none; } }
.step__who { display: flex; align-items: center; justify-content: flex-end; gap: var(--s3); min-width: 0; white-space: nowrap; }
.who__text { color: var(--ok); font-size: var(--t-s); font-weight: 550; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.who__text.muted { color: var(--muted); font-weight: 400; }
.done { color: var(--ok); font-weight: 550; font-size: var(--t-s); }

/* --------------------------------------------------- admin: DHL check -- */
.checks { list-style: none; margin: var(--s3) 0 0; padding: 0; display: grid; gap: var(--s2); font-size: var(--t-m); }
.checks li { display: flex; gap: var(--s2); align-items: baseline; }
.checks .ok { color: var(--ok); font-weight: 650; }
.checks .fail { color: var(--red); font-weight: 650; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: var(--s1) var(--s4); font-size: var(--t-m); margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.gap-top { margin-top: var(--s4); }
.nowrap { white-space: nowrap; }

/* reports */
.select {
  height: 36px; padding: 0 var(--s6) 0 var(--s4); border: 1px solid var(--line); border-radius: var(--r-pill);
  font: inherit; font-size: var(--t-m); color: var(--ink); appearance: none; cursor: pointer;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12'%3E%3Cpath d='M2.25 4.25 6 8l3.75-3.75' fill='none' stroke='%236b6b6b' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 14px center;
}
.select:focus { border-color: var(--ink); box-shadow: var(--ring); outline: none; }
.card-head .inline { align-items: center; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: var(--s3); margin-top: var(--s4); }
.stat { display: grid; gap: var(--s0); padding: var(--s3) var(--s4); border: 1px solid var(--line); border-radius: var(--r-ctl); background: #fffdf4; }
.stat__num { font-size: 1.4rem; font-weight: 700; letter-spacing: -.01em; }
.stat__label { font-size: var(--t-xs); color: var(--muted); }
.rlist .olist__head, .rlist .orow { grid-template-columns: 8.5rem 7rem minmax(0, 1fr) minmax(0, 1.4fr) 5rem 12rem 9rem; }
.rlist .orow { cursor: default; }
.rlist .orow:hover { background: transparent; }

/* user list and user page */

.ulist .olist__head, .urow { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.6fr) 6.5rem 7rem 9.5rem 1rem; }
.urow.is-off { color: #9a978c; }
.chev { color: var(--muted); font-size: 1.2rem; justify-self: end; }
.btn--danger { color: var(--red); border-color: #efc4c4; }
.btn--danger:hover:not(:disabled) { background: var(--red-bg); border-color: var(--red); }
.actions-list { display: grid; gap: var(--s3); }
.actions-list form { display: grid; grid-template-columns: 13rem minmax(0, 1fr); align-items: center; gap: var(--s3); margin: 0; }
.actions-list .muted { font-size: var(--t-xs); }
.roles { border: 0; padding: 0; margin: var(--s4) 0 0; min-width: 0; }
.roles legend { font-size: var(--t-s); font-weight: 500; color: var(--ink-2); padding: 0; margin-bottom: var(--s1); }
.form label.radio { display: flex; align-items: center; gap: var(--s2); margin: var(--s2) 0 0; font-size: var(--t-m); font-weight: 400; color: var(--ink); }
.form label.radio input { accent-color: var(--red); margin: 0; width: auto; min-height: 0; }
.form input:disabled { background: #f7f6f1; color: var(--muted); }
.note--info { margin: 0 0 var(--s4); background: #f6f6f2; border-color: var(--line); }

@media (max-width: 760px) {
  .bar { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "brand center" "nav nav"; padding-top: var(--s2); padding-bottom: var(--s2); }
  .bar__nav { justify-self: stretch; justify-content: flex-start; }
}
@media (max-width: 900px) {
  .olist__head { display: none; }
  .urow { grid-template-columns: minmax(0, 1fr) auto; }
  .urow > :nth-child(2), .urow > :nth-child(3), .urow > :nth-child(5) { display: none; }
  .actions-list form { grid-template-columns: minmax(0, 1fr); }
  .orow { grid-template-columns: minmax(0, 1fr) auto; grid-auto-rows: auto; gap: var(--s0) var(--s3); padding-top: var(--s2); padding-bottom: var(--s2); }
  .orow > :nth-child(2), .orow > :nth-child(4) { display: none; }
  .orow__state { grid-column: 2; grid-row: 1; justify-self: end; }
  .orow .next { display: none; }
  .grid, .form--row { grid-template-columns: minmax(0, 1fr); }
  .step { height: auto; min-height: 60px; padding: var(--s3); grid-template-columns: 30px minmax(0, 1fr) 11rem; grid-template-areas: "dot name action" "dot field who"; row-gap: var(--s2); }
  .step__dot { grid-area: dot; } .step__name { grid-area: name; } .step__action { grid-area: action; }
  .step__field { grid-area: field; } .step__who { grid-area: who; }
}
