/* === DaCucina admin command centre v2 (2026-09-24) — scoped to .adm2 and .adm2-drawer only ===
   Palette follows the login screen: stone background, cream cards, graphite text, bronze accents.
   Motion: staggered entrance once per render (not on data refresh), hover lift ≤2px, 150–220ms transitions,
   prefers-reduced-motion honoured. Nothing here targets other screens. */
/* the colour tokens are needed by the drawer and the tooltip too, which live on <body> outside .adm2 */
.adm2, .adm2-drawer, .adm2-tip {
  --a2-ink: #2b2621;
  --a2-muted: #6f6559;
  --a2-bronze: #a78050;
  --a2-bronze-deep: #8a6636;
  --a2-led: #c9a468;
  --a2-card: rgba(255, 255, 255, .72);
  --a2-line: rgba(151, 111, 65, .22);
  --a2-ok: #3d6b3a;
  --a2-warn: #b7791f;
  --a2-bad: #9b2c2c;
}
.adm2 {
  --a2-ink: #2b2621;
  --a2-muted: #6f6559;
  --a2-bronze: #a78050;
  --a2-bronze-deep: #8a6636;
  --a2-led: #c9a468;
  --a2-card: rgba(255, 255, 255, .72);
  --a2-line: rgba(151, 111, 65, .22);
  --a2-ok: #3d6b3a;
  --a2-warn: #b7791f;
  --a2-bad: #9b2c2c;
  direction: rtl;
  color: var(--a2-ink);
  margin: -0.25rem -0.25rem 0;
  padding: 1.35rem 1.4rem 2rem;
  border-radius: 18px;
  /* the login kitchen photo behind the board, under a cream veil so numbers stay readable (2026-09-24, per Raphael) */
  background-color: #efe9df;
  background-image: linear-gradient(rgba(239, 233, 223, .78), rgba(239, 233, 223, .84)), url("assets/login/dacucina-kitchen.webp");
  background-size: auto, cover;
  background-position: center, center 40%;
  background-attachment: scroll, fixed;
  background-repeat: no-repeat;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 760px) {
  .adm2 { background-attachment: scroll, scroll; }
}
.adm2 *, .adm2 *::before, .adm2 *::after { box-sizing: border-box; }
.adm2 .num { font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.adm2 .a2-lab { font-size: 11px; letter-spacing: .16em; color: var(--a2-muted); }
.adm2 .a2-ttl { font-family: 'Frank Ruhl Libre', 'David', serif; font-size: 19px; color: var(--a2-ink); font-weight: 400; }
.adm2 .a2-up { color: var(--a2-ok); } .adm2 .a2-dn { color: var(--a2-bad); } .adm2 .a2-warn { color: var(--a2-warn); }

/* ---- header ---- */
.adm2-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 18px; flex-wrap: wrap; }
.adm2-head h1 { margin: 0; font-family: 'Frank Ruhl Libre', 'David', serif; font-weight: 300; font-size: 32px; line-height: 1.1; color: var(--a2-ink); }
.adm2-head-meta { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--a2-muted); flex-wrap: wrap; margin-top: 6px; }
.adm2-head-meta .sep { width: 1px; height: 12px; background: rgba(43, 38, 33, .25); }
.adm2-live { display: inline-flex; align-items: center; gap: 6px; }
.adm2-live i.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--a2-ok); display: inline-block; }
.adm2-live.stale i.dot { background: var(--a2-warn); }
.adm2-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12px; border: 1px solid rgba(151, 111, 65, .35); color: var(--a2-ink); background: rgba(255, 255, 255, .55); }
.adm2-controls { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.adm2-controls-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.adm2-seg { display: flex; gap: 2px; padding: 3px; border-radius: 10px; background: rgba(255, 255, 255, .6); border: 1px solid rgba(151, 111, 65, .25); }
.adm2-seg button { padding: 7px 12px; border-radius: 8px; font: 500 13px 'Heebo', sans-serif; color: var(--a2-muted); cursor: pointer; border: 0; background: transparent; transition: background .18s, color .18s; }
.adm2-seg button:hover { background: rgba(43, 38, 33, .06); color: var(--a2-ink); }
.adm2-seg button:focus-visible { outline: 2px solid var(--a2-bronze); outline-offset: 1px; }
.adm2-seg button.on { background: var(--a2-ink); color: #f4eee3; }
.adm2-btn { height: 36px; padding: 0 14px; border-radius: 9px; border: 1px solid #7b5a30; background: var(--a2-bronze-deep); color: #fbf6ec; font: 500 13px 'Heebo', sans-serif; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; transition: background .18s, transform .18s, box-shadow .18s; }
.adm2-btn:hover { background: #74542c; transform: translateY(-1px); box-shadow: 0 10px 22px rgba(106, 74, 38, .25); }
.adm2-btn:active { transform: none; box-shadow: none; }
.adm2-btn:focus-visible { outline: 2px solid var(--a2-ink); outline-offset: 3px; }
.adm2-btn:disabled, .adm2-btn.loading { opacity: .6; cursor: wait; transform: none; box-shadow: none; }
.adm2-btn.ghost { background: transparent; color: var(--a2-ink); border-color: rgba(151, 111, 65, .4); }
.adm2-btn.ghost:hover { background: rgba(43, 38, 33, .05); box-shadow: none; }
.adm2-btn.sm { height: 30px; padding: 0 10px; font-size: 12px; }
.adm2-input { height: 34px; padding: 0 10px; border-radius: 8px; border: 1px solid rgba(151, 111, 65, .4); background: rgba(255, 255, 255, .7); font: 400 13px 'Heebo', sans-serif; color: var(--a2-ink); }
.adm2-input:focus { outline: 0; border-color: var(--a2-bronze); box-shadow: 0 0 0 3px rgba(167, 128, 80, .18); }
.adm2-input.invalid { border-color: var(--a2-bad); }
.adm2-flabel { font-size: 12px; color: var(--a2-muted); }
.adm2-note { font-size: 12px; color: var(--a2-muted); }

/* ---- grid + cards ---- */
.adm2-row { display: grid; gap: 16px; margin-bottom: 16px; align-items: stretch; }
.adm2-row.kpis { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.adm2-row.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.adm2-row.c2-1 { grid-template-columns: 2fr 1fr; }
.adm2-card { position: relative; background: rgba(255, 255, 255, .7); border: 1px solid var(--a2-line); border-radius: 16px; box-shadow: 0 10px 30px rgba(52, 38, 20, .07); padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; min-width: 0; transition: transform .2s cubic-bezier(.22, .61, .36, 1), box-shadow .2s, border-color .2s; }
@supports (backdrop-filter: blur(10px)) {
  .adm2-card { background: rgba(255, 255, 255, .62); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
}
.adm2-card.span2 { grid-column: span 2; }
.adm2-card.click { cursor: pointer; }
.adm2-card.click:hover, .adm2-card.click:focus-visible { transform: translateY(-2px); box-shadow: 0 20px 40px rgba(52, 38, 20, .12); border-color: rgba(167, 128, 80, .6); }
.adm2-card.click:focus-visible { outline: 2px solid var(--a2-bronze); outline-offset: 3px; }
.adm2-card.click:active { transform: none; }
.adm2-card.accent { border-top: 2px solid var(--a2-bronze); }
.adm2-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.adm2-card-head .lead { display: flex; align-items: center; gap: 10px; min-width: 0; }
.adm2-ico { width: 36px; height: 36px; border-radius: 11px; background: rgba(167, 128, 80, .14); color: var(--a2-bronze-deep); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 18px; transition: background .2s, color .2s, transform .2s; }
.adm2-ico.wa { background: rgba(37, 99, 63, .12); color: #25633f; }
.adm2-card.click:hover .adm2-ico, .adm2-card:hover > .adm2-card-head .adm2-ico { background: var(--a2-bronze-deep); color: #fbf6ec; transform: rotate(-6deg) scale(1.06); }
.adm2-card.click:hover .adm2-ico.wa { background: #25633f; }
.adm2-def { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 50%; border: 1px solid rgba(151, 111, 65, .45); color: var(--a2-muted); font-size: 11px; cursor: help; flex-shrink: 0; background: transparent; padding: 0; font-family: inherit; }
.adm2-def:hover, .adm2-def:focus-visible { background: var(--a2-bronze-deep); color: #fff; border-color: var(--a2-bronze-deep); outline: 0; }

/* KPI */
.adm2-kpi .val { font-size: 32px; font-weight: 600; line-height: 1; color: var(--a2-ink); }
.adm2-kpi .val small { font-size: 14px; font-weight: 400; color: var(--a2-muted); }
.adm2-kpi .sub { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--a2-muted); gap: 8px; flex-wrap: wrap; }
.adm2-bar { height: 7px; border-radius: 7px; background: rgba(43, 38, 33, .08); overflow: hidden; }
.adm2-bar i { display: block; height: 100%; background: var(--a2-bronze); border-radius: 7px; transition: width .4s cubic-bezier(.22, .61, .36, 1); }
.adm2-bar i.ink { background: var(--a2-ink); }
.adm2-bar i.soft { background: rgba(43, 38, 33, .35); }
.adm2-spark { width: 100%; height: 28px; display: block; }
.adm2-spark polyline { stroke-dasharray: 420; stroke-dashoffset: 0; }
.adm2-mini { display: flex; gap: 3px; align-items: flex-end; height: 28px; }
.adm2-mini i { flex: 1; background: rgba(167, 128, 80, .35); border-radius: 2px; min-height: 2px; }
.adm2-mini i.cur { background: var(--a2-bronze); }

/* attention strip */
.adm2-attn { background: rgba(43, 38, 33, .96); border-color: #2b2621; color: #f4eee3; flex-direction: row; align-items: center; gap: 6px; padding: 10px 16px; flex-wrap: wrap; }
.adm2-attn .lead { display: flex; align-items: center; gap: 10px; padding: 6px 18px 6px 0; margin-left: 8px; border-left: 1px solid rgba(244, 238, 227, .2); }
.adm2-attn .lead .adm2-ico { background: rgba(201, 164, 104, .18); color: var(--a2-led); }
.adm2-attn .lead span { font-size: 13px; letter-spacing: .14em; }
.adm2-att { display: flex; align-items: center; gap: 10px; color: #f4eee3; padding: 6px 10px; border-radius: 9px; transition: background .18s, transform .18s; cursor: pointer; border: 0; background: transparent; font: inherit; }
.adm2-att:hover { background: rgba(201, 164, 104, .16); transform: translateY(-1px); }
.adm2-att:focus-visible { outline: 2px solid var(--a2-led); }
.adm2-att .n { font-size: 22px; font-weight: 600; color: var(--a2-led); }
.adm2-att span { font-size: 13px; }
.adm2-att.zero { opacity: .55; } .adm2-att.zero .n { color: #f4eee3; }
.adm2-attn .tail { margin-right: auto; font-size: 12px; color: rgba(244, 238, 227, .65); }

/* charts */
.adm2-chart { width: 100%; height: 220px; display: block; overflow: hidden; direction: ltr; }
.adm2-spark { direction: ltr; }
.adm2-chart .col { fill: var(--a2-bronze); transition: fill .15s; cursor: pointer; }
.adm2-chart .col:hover, .adm2-chart .col.hot { fill: var(--a2-bronze-deep); }
.adm2-chart .col.empty { fill: rgba(167, 128, 80, .18); }
.adm2-chart .grid { stroke: rgba(43, 38, 33, .08); }
.adm2-chart .axis { font-size: 10px; fill: var(--a2-muted); }
.adm2-chart-x { display: grid; font-size: 12px; color: var(--a2-muted); text-align: center; }
.adm2-legend { display: flex; gap: 14px; font-size: 12px; color: var(--a2-muted); }
.adm2-legend span { display: inline-flex; align-items: center; gap: 6px; }
.adm2-legend i.solid { width: 12px; height: 3px; background: var(--a2-bronze); border-radius: 2px; display: inline-block; }
.adm2-legend i.dash { width: 12px; height: 0; border-top: 2px dashed var(--a2-ink); display: inline-block; }
/* the tooltip lives on <body>, outside .adm2 — literal colours only (the --a2-* variables are not defined there) */
.adm2-tip { position: fixed; z-index: 2000; pointer-events: none; background: #2b2621; color: #f8f3ea; padding: 8px 11px; border-radius: 9px; font-size: 12.5px; font-family: 'Heebo', sans-serif; direction: rtl; box-shadow: 0 10px 28px rgba(52, 38, 20, .35); white-space: nowrap; max-width: 420px; transform: translate(-50%, calc(-100% - 10px)); opacity: 0; transition: opacity .12s; }
.adm2-tip.show { opacity: 1; }
.adm2-tip b { color: #c9a468; }

/* funnel + hbars */
.adm2-steps { display: flex; flex-direction: column; gap: 10px; }
.adm2-step { display: flex; flex-direction: column; gap: 4px; cursor: pointer; border: 0; background: transparent; padding: 4px 6px; margin: -4px -6px; border-radius: 8px; font: inherit; color: inherit; text-align: right; transition: background .15s; }
.adm2-step:hover, .adm2-step:focus-visible { background: rgba(167, 128, 80, .1); outline: 0; }
.adm2-step .top { display: flex; justify-content: space-between; font-size: 13px; }
.adm2-step .adm2-bar { height: 10px; }
.adm2-hbars { display: flex; flex-direction: column; gap: 9px; font-size: 13px; }
.adm2-hbar { display: flex; flex-direction: column; gap: 4px; cursor: pointer; border: 0; background: transparent; padding: 3px 6px; margin: -3px -6px; border-radius: 8px; font: inherit; color: inherit; text-align: right; transition: background .15s; }
.adm2-hbar:hover, .adm2-hbar:focus-visible { background: rgba(167, 128, 80, .1); outline: 0; }
.adm2-hbar .top { display: flex; justify-content: space-between; }

/* tables */
.adm2 table { border-collapse: collapse; width: 100%; }
.adm2 th { font-size: 11px; letter-spacing: .12em; color: var(--a2-muted); font-weight: 500; text-align: right; padding: 6px 8px; border-bottom: 1px solid rgba(151, 111, 65, .25); white-space: nowrap; }
.adm2 td { font-size: 13.5px; color: var(--a2-ink); padding: 8px; border-bottom: 1px solid rgba(43, 38, 33, .06); white-space: nowrap; }
.adm2 tbody tr:last-child td { border-bottom: 0; }
.adm2 tbody tr.click { cursor: pointer; transition: background .15s; }
.adm2 tbody tr.click:hover, .adm2 tbody tr.click:focus-within { background: rgba(167, 128, 80, .1); }
.adm2 tbody tr.click td:first-child::after { content: '‹'; color: var(--a2-bronze); opacity: 0; margin-right: 6px; transition: opacity .15s; }
.adm2 tbody tr.click:hover td:first-child::after { opacity: 1; }
.adm2 .a2-cellbtn { border: 0; background: transparent; font: inherit; color: var(--a2-bronze-deep); cursor: pointer; padding: 0; text-decoration: underline dotted; }
.adm2 .a2-cellbtn:hover { color: #5c4228; }

/* dept mini stats */
.adm2-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; font-size: 13px; }
.adm2-stat { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; border: 0; background: transparent; font: inherit; color: inherit; cursor: pointer; padding: 3px 6px; margin: -3px -6px; border-radius: 7px; text-align: right; transition: background .15s; }
.adm2-stat:hover, .adm2-stat:focus-visible { background: rgba(167, 128, 80, .12); outline: 0; }
.adm2-stat.static { cursor: default; }
.adm2-stat.static:hover { background: transparent; }
.adm2-stat .l { color: var(--a2-muted); }
.adm2-stat .v { font-weight: 500; }
.adm2-stat .v.bad { color: var(--a2-bad); } .adm2-stat .v.warn { color: var(--a2-warn); }
.adm2-bigstats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.adm2-bigstat { display: flex; flex-direction: column; gap: 3px; border: 0; background: transparent; font: inherit; color: inherit; cursor: pointer; text-align: right; padding: 6px 8px; margin: -6px -8px; border-radius: 9px; transition: background .15s; }
.adm2-bigstat:hover, .adm2-bigstat:focus-visible { background: rgba(167, 128, 80, .12); outline: 0; }
.adm2-bigstat .v { font-size: 26px; font-weight: 600; line-height: 1.1; }
.adm2-bigstat .s { font-size: 11px; color: var(--a2-muted); }
.adm2-foot { display: flex; gap: 18px; font-size: 12px; color: var(--a2-muted); padding-top: 10px; border-top: 1px solid rgba(151, 111, 65, .2); flex-wrap: wrap; margin-top: auto; }
.adm2-foot b { color: var(--a2-ink); font-weight: 500; }

/* calendar rows */
.adm2-evs { display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.adm2-ev { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 10px; border: 1px solid rgba(151, 111, 65, .18); background: rgba(255, 255, 255, .7); cursor: pointer; font: inherit; color: inherit; text-align: right; transition: background .15s, transform .15s; }
.adm2-ev:hover, .adm2-ev:focus-visible { background: #fff; transform: translateX(-2px); outline: 0; }
.adm2-ev .t { color: var(--a2-bronze-deep); width: 44px; flex-shrink: 0; }
.adm2-ev .mark { width: 3px; height: 26px; border-radius: 3px; background: var(--a2-bronze); flex-shrink: 0; }
.adm2-ev .mark.done { background: var(--a2-ink); } .adm2-ev .mark.soft { background: rgba(43, 38, 33, .3); }
.adm2-ev .x { flex-grow: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* empty + skeleton */
.adm2-empty { text-align: center; color: var(--a2-muted); padding: 14px 6px; font-size: 12.5px; margin: auto 0; }
.adm2-empty .ti { font-size: 22px; opacity: .7; display: block; margin-bottom: 4px; }
.adm2-skel { height: 12px; border-radius: 6px; background: linear-gradient(90deg, rgba(43, 38, 33, .06), rgba(43, 38, 33, .12), rgba(43, 38, 33, .06)); background-size: 200% 100%; animation: adm2Skel 1.2s linear infinite; }
@keyframes adm2Skel { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.adm2-err { font-size: 12.5px; color: var(--a2-bad); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* ---- dark card (designer salary) ---- */
.adm2-card.dark { background: rgba(43, 38, 33, .94); border-color: #2b2621; color: #f4eee3; }
.adm2-card.dark .a2-ttl, .adm2-card.dark .a2-lab { color: #f4eee3; }
.adm2-card.dark .adm2-ico.gold { background: rgba(201, 164, 104, .18); color: #c9a468; }
.adm2-card.dark .adm2-def { color: rgba(244, 238, 227, .75); border-color: rgba(244, 238, 227, .4); }
.adm2-chip.dark { background: rgba(244, 238, 227, .1); border-color: rgba(244, 238, 227, .3); color: #f4eee3; }
.a2-drows { display: flex; flex-direction: column; gap: 6px; }
.a2-drow { display: flex; justify-content: space-between; align-items: baseline; padding: 8px 10px; border-radius: 9px; background: rgba(244, 238, 227, .08); font-size: 13px; }
.a2-drow b { font-weight: 500; font-size: 15px; }
.a2-drow.total { background: rgba(201, 164, 104, .22); border: 1px solid rgba(201, 164, 104, .45); }
.a2-drow.total b { color: #f4e3c2; font-size: 18px; }
.adm2-card.dark.click:hover { box-shadow: 0 22px 44px rgba(20, 14, 8, .35); border-color: #c9a468; }
.adm2-card.dark.click:hover .adm2-ico.gold { background: #c9a468; color: #2b2621; }
.adm2-hbar:disabled { opacity: .55; }

/* ---- entrance (once per render) ---- */
.adm2.enter .adm2-row, .adm2.enter .adm2-head { animation: adm2Rise .5s cubic-bezier(.22, .61, .36, 1) both; }
.adm2.enter .adm2-head { animation-delay: .02s; }
.adm2.enter .adm2-row:nth-of-type(1) { animation-delay: .08s; }
.adm2.enter .adm2-row:nth-of-type(2) { animation-delay: .14s; }
.adm2.enter .adm2-row:nth-of-type(3) { animation-delay: .2s; }
.adm2.enter .adm2-row:nth-of-type(4) { animation-delay: .26s; }
.adm2.enter .adm2-row:nth-of-type(5) { animation-delay: .32s; }
.adm2.enter .adm2-row:nth-of-type(6) { animation-delay: .38s; }
@keyframes adm2Rise { from { opacity: 0; transform: translate3d(0, 10px, 0); } to { opacity: 1; transform: none; } }
.adm2.enter .adm2-bar i { animation: adm2Grow .9s .3s cubic-bezier(.22, .61, .36, 1) both; }
@keyframes adm2Grow { from { width: 0; } }
.adm2.enter .adm2-chart .col { animation: adm2Col .8s .3s cubic-bezier(.22, .61, .36, 1) both; transform-origin: bottom; transform-box: fill-box; }
@keyframes adm2Col { from { transform: scaleY(0); } }
.adm2.enter .adm2-spark polyline { animation: adm2Draw 1.4s .4s ease-out both; }
@keyframes adm2Draw { from { stroke-dashoffset: 420; } to { stroke-dashoffset: 0; } }

/* ---- drawer (drilldown) ---- */
.adm2-drawer-back { position: fixed; inset: 0; z-index: 1400; background: rgba(43, 38, 33, .28); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); animation: adm2Fade .18s ease both; }
.adm2-drawer { position: fixed; top: 0; bottom: 0; left: 0; z-index: 1401; width: min(520px, 94vw); background: #f8f3ea; border-right: 1px solid rgba(151, 111, 65, .35); box-shadow: 30px 0 80px rgba(52, 38, 20, .25); display: flex; flex-direction: column; direction: rtl; color: #2b2621; font-family: 'Heebo', var(--font-sans, sans-serif); animation: adm2Slide .22s cubic-bezier(.22, .61, .36, 1) both; }
.adm2-drawer.closing { animation: adm2SlideOut .18s ease-in both; }
.adm2-drawer-back.closing { animation: adm2FadeOut .18s ease-in both; }
@keyframes adm2Slide { from { transform: translateX(-28px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes adm2SlideOut { to { transform: translateX(-28px); opacity: 0; } }
@keyframes adm2Fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes adm2FadeOut { to { opacity: 0; } }
.adm2-drawer-head { padding: 22px 24px 16px; border-bottom: 1px solid rgba(151, 111, 65, .25); display: flex; flex-direction: column; gap: 8px; }
.adm2-drawer-head .top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.adm2-drawer-head h3 { margin: 0; font-family: 'Frank Ruhl Libre', 'David', serif; font-weight: 400; font-size: 22px; line-height: 1.2; }
.adm2-drawer-head .def { font-size: 12.5px; color: #6f6559; line-height: 1.5; }
.adm2-drawer-head .scope { display: flex; align-items: center; gap: 8px; font-size: 12px; padding: 8px 10px; border-radius: 9px; background: rgba(167, 128, 80, .12); color: #5c4228; flex-wrap: wrap; }
.adm2-drawer-head .sum { display: flex; gap: 14px; font-size: 12.5px; color: #2b2621; flex-wrap: wrap; }
.adm2-drawer-head .sum b { font-weight: 600; }
.adm2-drawer-body { padding: 14px 24px; display: flex; flex-direction: column; gap: 8px; overflow: auto; flex-grow: 1; }
.adm2-drow { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; border: 1px solid rgba(151, 111, 65, .18); background: rgba(255, 255, 255, .7); transition: background .15s, transform .15s; font: inherit; color: inherit; text-align: right; cursor: pointer; width: 100%; }
.adm2-drow:hover, .adm2-drow:focus-visible { background: #fff; transform: translateX(-2px); outline: 0; box-shadow: 0 6px 16px rgba(52, 38, 20, .08); }
.adm2-drow.static { cursor: default; } .adm2-drow.static:hover { transform: none; box-shadow: none; }
.adm2-drow .tag { width: 34px; height: 34px; border-radius: 10px; background: rgba(167, 128, 80, .14); color: #8a6636; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; flex-shrink: 0; }
.adm2-drow .tag.bad { background: rgba(155, 44, 44, .12); color: #9b2c2c; }
.adm2-drow .tag.ok { background: rgba(61, 107, 58, .12); color: #3d6b3a; }
.adm2-drow .body { display: flex; flex-direction: column; gap: 2px; flex-grow: 1; min-width: 0; }
.adm2-drow .body .n { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm2-drow .body .d { font-size: 12px; color: #6f6559; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm2-drow .v { font-size: 14px; font-weight: 500; flex-shrink: 0; }
.adm2-drow .go { flex-shrink: 0; color: #a78050; font-size: 16px; }
.adm2-drawer-foot { padding: 14px 24px 22px; border-top: 1px solid rgba(151, 111, 65, .25); display: flex; flex-direction: column; gap: 10px; }
.adm2-drawer-foot .acts { display: flex; flex-wrap: wrap; gap: 8px; }
.adm2-drawer .adm2-btn { font-family: 'Heebo', sans-serif; }
.adm2-more { align-self: center; }

/* toast-like inline status inside the drawer */
.adm2-status { font-size: 12.5px; color: #6f6559; display: flex; align-items: center; gap: 8px; }

/* ---- responsive ---- */
@media (max-width: 1500px) {
  .adm2-row.kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .adm2-row.c2-1 { grid-template-columns: 1fr; }
  .adm2-bigstats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
  .adm2-row.c3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .adm2-card.span2 { grid-column: span 2; }
}
@media (max-width: 760px) {
  .adm2 { padding: 14px 12px 24px; margin: 0; border-radius: 0; }
  .adm2-row.kpis, .adm2-row.c3 { grid-template-columns: 1fr; }
  .adm2-card.span2 { grid-column: auto; }
  .adm2-head h1 { font-size: 26px; }
  .adm2-controls { align-items: stretch; width: 100%; }
  .adm2-controls-row { justify-content: flex-start; }
  .adm2-attn { flex-direction: column; align-items: stretch; }
  .adm2-attn .lead { border: 0; margin: 0; padding: 4px 0; }
  .adm2-attn .tail { margin: 0; }
  .adm2 td, .adm2 th { white-space: normal; }
  .adm2-bigstats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  .adm2 *, .adm2-drawer, .adm2-drawer-back { animation: none !important; transition: none !important; }
  .adm2-card.click:hover { transform: none; }
}
