/* =====================================================================
   PAINEL ADMINISTRATIVO — Terê Personalizados
   ===================================================================== */

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-ui);
  color: var(--ink);
  background: #f7f1ea;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 600; line-height: 1.15; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

:root {
  --cream: #f7f1ea;
  --paper: #fffdfa;
  --ink: #2c211f;
  --muted: #7c6a63;
  --marsala: #7a2e3d;
  --marsala-dark: #5c1f2c;
  --rose: #e9c3c6;
  --rose-soft: #f8e8e6;
  --terracotta: #c2745a;
  --gold: #c9a227;
  --line: #ecdfd5;
  --line-strong: #ddc9bc;
  --green: #2f7d5c;
  --red: #b03a3a;
  --shadow: 0 14px 38px rgba(84, 45, 38, .10);
  --shadow-sm: 0 2px 10px rgba(84, 45, 38, .06);
  --font-ui: "Poppins", system-ui, -apple-system, Segoe UI, sans-serif;
  --font-display: "Playfair Display", Georgia, serif;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  padding: 8px 16px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-size: .82rem;
  font-weight: 600;
  transition: background .18s, border-color .18s, color .18s, transform .18s;
}
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn-primary { background: linear-gradient(135deg, var(--marsala), #93414f); color: #fff; box-shadow: 0 6px 16px rgba(122,46,61,.2); }
.btn-outline { background: #fff; border-color: var(--line-strong); color: var(--marsala); }
.btn-outline:hover { border-color: var(--marsala); background: var(--rose-soft); }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-ghost:hover { background: var(--rose-soft); color: var(--marsala); }
.btn-danger { background: #fff; border-color: #e7bcbc; color: var(--red); }
.btn-danger:hover { background: #fdecec; }
.btn-sm { min-height: 32px; padding: 5px 11px; font-size: .74rem; }
.btn-block { width: 100%; }
.icon-btn {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--marsala);
  font-size: 1.1rem;
}

/* ---------- Login ---------- */
.login-screen {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 20px;
  background:
    radial-gradient(60% 60% at 20% 10%, rgba(233,195,198,.5), transparent 70%),
    radial-gradient(50% 50% at 90% 90%, rgba(201,162,39,.18), transparent 70%),
    linear-gradient(135deg, #fffdfa, #f7ece5);
}
.login-card {
  width: min(400px, 100%);
  padding: 34px 30px 26px;
  border-radius: 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  text-align: center;
}
.login-card img {
  width: 76px; height: 76px;
  border-radius: 50%;
  margin: 0 auto 14px;
  border: 3px solid #fff;
  box-shadow: 0 6px 18px rgba(122,46,61,.16);
}
.login-card h1 { font-size: 1.7rem; color: var(--marsala); }
.login-card > p { margin-top: 6px; font-size: .82rem; color: var(--muted); }
.login-card form { margin-top: 22px; text-align: left; }
.login-card label { font-size: .74rem; font-weight: 600; color: #5b4842; }
.password-wrap { position: relative; margin: 5px 0 14px; }
.password-wrap input {
  width: 100%;
  padding: 12px 44px 12px 13px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: #fff;
  font-size: .9rem;
}
.password-wrap input:focus { border-color: var(--marsala); outline: none; box-shadow: 0 0 0 3px rgba(233,195,198,.4); }
.password-wrap button {
  position: absolute;
  right: 6px; top: 50%;
  transform: translateY(-50%);
  width: 34px; height: 34px;
  border: 0; background: none;
  font-size: .95rem;
  opacity: .65;
}
.login-error { margin: -4px 0 10px; font-size: .76rem; color: var(--red); }
.login-back { display: inline-block; margin-top: 16px; font-size: .74rem; color: var(--muted); }
.login-back:hover { color: var(--marsala); text-decoration: underline; }

/* ---------- Layout ---------- */
.admin-shell { min-height: 100vh; }
.admin-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 60;
  width: 248px;
  display: flex;
  flex-direction: column;
  padding: 16px 12px;
  background: linear-gradient(180deg, #fffdfa, #f9f0e8);
  border-right: 1px solid var(--line);
  transition: transform .26s var(--ease);
}
.as-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 4px 6px 14px;
  border-bottom: 1px solid var(--line);
}
.as-brand { display: flex; align-items: center; gap: 9px; min-width: 0; }
.as-brand img { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: #fff; flex: none; }
.as-brand span { display: flex; flex-direction: column; min-width: 0; }
.as-brand strong { font-family: var(--font-display); font-size: 1.2rem; color: var(--marsala); line-height: 1.05; }
.as-brand small { font-size: .6rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.as-close { display: none; border: 0; background: none; font-size: 1.4rem; color: var(--muted); }

.as-nav { display: flex; flex-direction: column; gap: 2px; padding: 14px 0; flex: 1; overflow-y: auto; }
.as-nav a, .as-foot a, .as-foot button {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  background: none;
  font-size: .84rem;
  font-weight: 500;
  color: #5f4d47;
  text-align: left;
  transition: background .18s, color .18s;
  width: 100%;
}
.as-nav a .ico, .as-foot .ico { width: 20px; text-align: center; font-size: .95rem; flex: none; }
.as-nav a:hover, .as-foot a:hover, .as-foot button:hover { background: #fff; color: var(--marsala); }
.as-nav a.active {
  background: linear-gradient(135deg, var(--marsala), #93414f);
  color: #fff;
  box-shadow: 0 7px 16px rgba(122,46,61,.22);
}
.as-nav .pill {
  margin-left: auto;
  min-width: 20px;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--gold);
  color: #3a2b00;
  font-size: .64rem;
  font-weight: 700;
  text-align: center;
}
.as-nav a.active .pill { background: #fff; color: var(--marsala); }
.as-foot { border-top: 1px solid var(--line); padding-top: 10px; display: grid; gap: 2px; }

.admin-main { margin-left: 248px; min-height: 100vh; display: flex; flex-direction: column; }
.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px clamp(16px, 3vw, 34px);
  background: rgba(247, 241, 234, .9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.admin-topbar > div:nth-child(2) { flex: 1; min-width: 0; }
.admin-eyebrow { display: block; font-size: .6rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.admin-topbar h1 { font-size: clamp(1.05rem, 2vw, 1.3rem); color: var(--marsala); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-top-actions { display: flex; gap: 7px; }
.admin-menu-btn { display: none; }
.admin-view {
  flex: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px clamp(16px, 3vw, 34px) 60px;
  animation: fadeUp .3s var(--ease) both;
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.as-scrim { position: fixed; inset: 0; z-index: 55; background: rgba(44,33,31,.45); }

/* ---------- Cabeçalhos de view ---------- */
.view-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.view-head h2 { font-size: clamp(1.35rem, 2.6vw, 1.8rem); }
.view-head p { color: var(--muted); font-size: .82rem; margin-top: 4px; }
.view-head-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- Cards / stats ---------- */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}
.stat-card {
  position: relative;
  padding: 18px;
  border-radius: 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  overflow: hidden;
}
.stat-card::after {
  content: "";
  position: absolute;
  right: -24px; bottom: -30px;
  width: 90px; height: 90px;
  border-radius: 50%;
  background: var(--rose-soft);
}
.stat-card .stat-label { font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.stat-card .stat-value { font-family: var(--font-display); font-size: 1.85rem; color: var(--marsala); margin-top: 4px; position: relative; z-index: 1; }
.stat-card .stat-sub { font-size: .72rem; color: var(--muted); margin-top: 2px; position: relative; z-index: 1; }
.stat-card .stat-ico { position: absolute; top: 14px; right: 14px; font-size: 1.2rem; opacity: .55; }

.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 16px;
}
.panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.panel-head h3 { font-size: 1.02rem; }
.panel-head .hint { font-size: .72rem; color: var(--muted); }

/* ---------- Tabelas ---------- */
.table-wrap { overflow-x: auto; }
table.admin-table { width: 100%; border-collapse: collapse; font-size: .8rem; }
.admin-table th {
  text-align: left;
  font-size: .64rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.admin-table td { padding: 10px; border-bottom: 1px solid #f2e8df; vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: 0; }
.admin-table tr:hover td { background: #fdf8f3; }
.cell-product { display: flex; align-items: center; gap: 9px; min-width: 190px; }
.cell-thumb {
  width: 42px; height: 50px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--rose-soft);
  display: grid; place-items: center;
  font-size: 1.1rem;
  flex: none;
}
.cell-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cell-product strong { font-size: .8rem; display: block; }
.cell-product small { font-size: .66rem; color: var(--muted); }
.cell-actions { display: flex; gap: 5px; justify-content: flex-end; }
.price-cell { font-weight: 600; white-space: nowrap; }
.price-cell small { display: block; color: var(--muted); font-weight: 400; text-decoration: line-through; font-size: .68rem; }

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: .64rem;
  font-weight: 600;
  white-space: nowrap;
  background: #f2e8df;
  color: #6b574f;
}
.status-pill.approved, .status-pill.pago { background: #e6f4ec; color: #1f6b47; }
.status-pill.pending, .status-pill.in_process, .status-pill.creating { background: #fff4dd; color: #8a6413; }
.status-pill.rejected, .status-pill.cancelled, .status-pill.cancelado { background: #fdeaea; color: #a53030; }
.status-pill.em_producao { background: #e8eefc; color: #2f4f9e; }
.status-pill.pronto { background: #f3e9fb; color: #6a3d99; }
.status-pill.entregue { background: #e6f4ec; color: #1f6b47; }
.status-pill.novo { background: #fdf0e2; color: #9a5a1f; }

/* ---------- Filtros / toolbar ---------- */
.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 14px;
}
.admin-toolbar .search {
  flex: 1 1 220px;
  position: relative;
  display: flex;
  align-items: center;
}
.admin-toolbar .search input {
  width: 100%;
  padding: 9px 12px 9px 34px;
  border-radius: 9px;
  border: 1px solid var(--line-strong);
  background: #fff;
  font-size: .8rem;
}
.admin-toolbar .search span { position: absolute; left: 11px; opacity: .55; font-size: .85rem; }
.admin-toolbar select, .admin-toolbar input[type="date"] {
  padding: 9px 11px;
  border-radius: 9px;
  border: 1px solid var(--line-strong);
  background: #fff;
  font-size: .8rem;
}
.chip-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.chip {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 500;
}
.chip.active { background: var(--marsala); border-color: var(--marsala); color: #fff; }

/* ---------- Formulários ---------- */
.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; }
.field label { font-size: .72rem; font-weight: 600; color: #5b4842; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 9px 11px;
  border-radius: 9px;
  border: 1px solid var(--line-strong);
  background: #fff;
  font-size: .82rem;
}
.field textarea { resize: vertical; min-height: 70px; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--marsala);
  outline: none;
  box-shadow: 0 0 0 3px rgba(233,195,198,.35);
}
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.check { display: flex; align-items: center; gap: 8px; font-size: .78rem; color: #5b4842; margin-bottom: 10px; cursor: pointer; }
.check input { accent-color: var(--marsala); width: 16px; height: 16px; }
.hint { font-size: .72rem; color: var(--muted); line-height: 1.5; }
.form-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; margin-top: 8px; }
fieldset.promo-fieldset {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  margin: 6px 0 0;
}
fieldset.promo-fieldset legend { font-size: .74rem; font-weight: 600; padding: 0 5px; color: var(--marsala); }

/* ---------- Pedidos ---------- */
.order-list { display: grid; gap: 10px; }
.order-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  display: grid;
  gap: 8px;
}
.order-card:hover { border-color: var(--rose); box-shadow: var(--shadow-sm); }
.order-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; justify-content: space-between; }
.order-ref { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.order-ref strong { font-size: .84rem; }
.order-ref small { font-size: .68rem; color: var(--muted); }
.order-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .74rem; color: var(--muted); }
.order-meta strong { color: var(--ink); font-weight: 500; }
.order-items-preview { display: flex; flex-wrap: wrap; gap: 5px; }
.order-items-preview span {
  padding: 3px 8px;
  border-radius: 999px;
  background: #faf2ea;
  border: 1px solid var(--line);
  font-size: .68rem;
  color: #6b574f;
}
.order-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; justify-content: space-between; border-top: 1px dashed var(--line); padding-top: 8px; }
.order-foot select {
  padding: 6px 9px;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  background: #fff;
  font-size: .74rem;
}
.empty-panel {
  padding: 44px 20px;
  text-align: center;
  color: var(--muted);
  font-size: .84rem;
  border: 1px dashed var(--line-strong);
  border-radius: 14px;
  background: var(--paper);
}

/* ---------- Categorias ---------- */
.cat-admin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.cat-admin-card {
  padding: 16px;
  border-radius: 14px;
  background: var(--paper);
  border: 1px solid var(--line);
}
.cat-admin-card .top { display: flex; align-items: center; gap: 9px; margin-bottom: 6px; }
.cat-admin-card .emoji { font-size: 1.4rem; }
.cat-admin-card h3 { font-size: 1rem; }
.cat-admin-card p { font-size: .74rem; color: var(--muted); min-height: 2.2em; }
.cat-admin-card .foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; margin-top: 10px; }
.cat-admin-card .foot-actions { display: flex; flex-wrap: wrap; gap: 5px; justify-content: flex-end; }
.cat-admin-card .count { font-size: .68rem; color: var(--muted); }
.cat-admin-card .cat-subs { margin-top: 8px; font-size: .68rem; line-height: 1.5; color: var(--marsala); }
.subcat-editor { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.subcat-row { display: flex; align-items: center; gap: 6px; }
.subcat-row .subcat-name { flex: 1; }
.subcat-del {
  flex: none;
  width: 30px; height: 30px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
  color: var(--danger, #b3261e);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}
.subcat-del:hover { background: #fdecea; }
.subcat-add { display: flex; gap: 6px; }
.subcat-add input { flex: 1; }
.subcat-add .btn { flex: none; }

/* ---------- Modal ---------- */
.modal {
  width: min(880px, calc(100% - 24px));
  max-height: calc(100dvh - 30px);
  padding: 0;
  border: 0;
  border-radius: 18px;
  background: var(--paper);
  box-shadow: 0 30px 90px rgba(44,33,31,.3);
  overflow: hidden;
}
.modal::backdrop { background: rgba(44,33,31,.5); backdrop-filter: blur(2px); }
.modal-wide { width: min(760px, calc(100% - 24px)); }
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: var(--paper);
  z-index: 2;
}
.modal-head h2 { font-size: 1.2rem; color: var(--marsala); }
.modal-close {
  width: 32px; height: 32px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 1.2rem;
  line-height: 1;
  color: var(--muted);
}
.modal-close:hover { background: var(--rose-soft); color: var(--marsala); }
.modal-body { padding: 16px 18px; overflow-y: auto; max-height: calc(100dvh - 190px); }
.modal-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  justify-content: flex-end;
  padding: 12px 18px;
  border-top: 1px solid var(--line);
  background: #fffaf5;
}
.modal-error { flex: 1 1 100%; font-size: .74rem; color: var(--red); }
.modal-foot .modal-error { flex: 1; }

/* ---------- Editor de imagem ---------- */
.product-form-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(240px, .85fr); gap: 20px; }
.pf-image h3 { font-size: .95rem; margin-bottom: 3px; }
.pf-image > p { margin-bottom: 10px; }
.image-drop {
  position: relative;
  width: min(100%, 320px);
  margin-inline: auto;
  aspect-ratio: 4 / 5;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(160deg, #fdf3ec, #f6e6e4);
  border: 1px dashed var(--line-strong);
  display: grid;
  place-items: center;
  touch-action: none;
  cursor: grab;
}
.image-drop.dragging { cursor: grabbing; }
.image-drop canvas { width: 100%; height: 100%; display: block; }
.image-drop canvas:not(.has-image) { display: none; }
.image-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 3px;
  color: var(--muted);
  pointer-events: none;
  text-align: center;
}
.image-empty span { font-size: 1.9rem; }
.image-empty strong { font-size: .8rem; color: var(--marsala); }
.image-empty small { font-size: .68rem; }
.image-tools { margin-top: 9px; }
.image-tools label { font-size: .7rem; font-weight: 600; color: #5b4842; }
.image-tools input[type="range"] { width: 100%; accent-color: var(--marsala); margin: 4px 0 6px; }
.image-tools-row { display: flex; flex-wrap: wrap; gap: 6px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  z-index: 200;
  padding: 10px 18px;
  border-radius: 999px;
  background: #2c211f;
  color: #fff;
  font-size: .78rem;
  box-shadow: 0 12px 30px rgba(0,0,0,.25);
  animation: toastIn .25s var(--ease) both;
}
.toast.error { background: #8f2b2b; }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 10px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* ---------- Responsivo ---------- */
@media (max-width: 980px) {
  .product-form-grid { grid-template-columns: 1fr; }
  .pf-image { max-width: 420px; }
}

@media (max-width: 820px) {
  .admin-sidebar { transform: translateX(-104%); box-shadow: 20px 0 50px rgba(44,33,31,.2); }
  .admin-sidebar.open { transform: none; }
  .as-close { display: block; }
  .admin-main { margin-left: 0; }
  .admin-menu-btn { display: grid; }
  .admin-top-actions .btn-outline { display: none; }
}

@media (max-width: 620px) {
  .form-row { grid-template-columns: 1fr; }
  .modal { width: 100%; max-height: 100dvh; border-radius: 0; }
  .modal-body { max-height: calc(100dvh - 180px); }
  .admin-table .hide-sm { display: none; }

  /* Tabelas viram cartões empilhados no celular */
  .admin-table thead { display: none; }
  .admin-table,
  .admin-table tbody,
  .admin-table tr,
  .admin-table td { display: block; width: 100%; }
  .admin-table tr {
    padding: 12px;
    border-bottom: 1px solid #f2e8df;
  }
  .admin-table tr:last-child { border-bottom: 0; }
  .admin-table tr:hover td { background: transparent; }
  .admin-table td {
    border: 0;
    padding: 3px 0;
  }
  .admin-table td.price-cell { font-weight: 700; color: var(--marsala); }
  .admin-table td[colspan] { padding: 0; }
  .cell-product { min-width: 0; }
  .cell-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 6px;
    padding-top: 7px;
  }

  .order-foot { align-items: stretch; }
  .order-foot select { width: 100%; }
  .stat-card .stat-value { font-size: 1.55rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
