/* Admin presentation only; state labels and authorization come from the page. */
.admin-shell {
  --ui-neutral-ink:#46546a; --ui-neutral-bg:#edf1f6; --ui-neutral-line:#cbd5e1;
  --ui-active-ink:#105378; --ui-active-bg:#e8f4fb; --ui-active-line:#cde3f0;
  --ui-wait-ink:#79500b; --ui-wait-bg:#fff5dc; --ui-wait-line:#e9cf90;
  --ui-done-ink:#17603d; --ui-done-bg:#eaf6ee; --ui-done-line:#aed4bb;
  --ui-alert-ink:#9a302c; --ui-alert-bg:#fff0ed; --ui-alert-line:#e8bcb5;
}
.admin-shell .admin-sidebar { background:linear-gradient(165deg,#1e2c40,#152032); border:1px solid #334359; border-radius:16px; }
.admin-shell .sidebar-brand { padding-bottom:18px; }
.admin-shell .sidebar-caption { color:#aabbd1; }
.admin-shell .admin-navigation[data-product-navigation] { gap:6px; }
.admin-shell .admin-navigation .product-nav-group { border-color:#35445a; padding-top:4px; }
.admin-shell .admin-navigation .product-nav-group > summary { color:#bedbe9; letter-spacing:.025em; padding:8px 10px; min-height:44px; }
.admin-shell .admin-navigation .product-nav-group[open] > summary { color:#f7fbfe; }
.admin-shell .admin-navigation .product-nav-group[data-nav-group="web"] > summary { color:#b9dfeb; }
.admin-shell .admin-navigation .product-nav-items { border-left:1px solid #3b4c64; margin-left:9px; padding:2px 0 4px 6px; gap:2px; }
.admin-shell .admin-navigation a { min-height:44px; padding:9px 12px; gap:10px; border-radius:8px; color:#d8e3f2; font-size:13px; line-height:1.4; text-decoration:none; transition:background-color 140ms,color 140ms,box-shadow 140ms; }
.admin-shell .admin-navigation a > [aria-hidden="true"] { color:#bedbe9; flex-shrink:0; font-size:16px; }
.admin-shell .admin-navigation .product-nav-group[data-nav-group="web"] .product-nav-items a { padding-left:12px; }
.admin-shell .admin-navigation a[aria-current="page"] { background:#254971; color:#fff; box-shadow:inset 3px 0 #a6e0ff; }
.admin-shell .admin-navigation a[aria-current="page"] > [aria-hidden="true"] { color:#e8f4fb; }
.admin-shell .admin-navigation .work-nav-count { width:auto; min-width:24px; margin-left:auto; padding:2px 6px; color:#e0ebfb; background:#ffffff12; border:1px solid #ffffff20; font:650 11px/1.3 var(--mono); border-radius:5px; }
.admin-shell .admin-sidebar :is(a,button,summary):focus-visible { outline:3px solid #a6e0ff; outline-offset:-3px; }
.admin-shell .sidebar-bottom { border-color:#35445a; }
.admin-shell .sidebar-bottom .sidebar-link { color:#e8f4fb; }

/* Neutral is intentional for unknown states; no inferred completion. */
.admin-shell :is([data-kanban-state],[data-ui-state]) { --ui-state-ink:var(--ui-neutral-ink); --ui-state-bg:var(--ui-neutral-bg); --ui-state-line:var(--ui-neutral-line); }
.admin-shell :is([data-kanban-state="NACENUJE_SA"],[data-kanban-state="READY"],[data-kanban-state="INTERNAL_APPROVED"],[data-ui-state="NAPLANOVANE"],[data-ui-state="VO_VYROBE"],[data-ui-state="DOKONCOVANIE"],[data-ui-state="ZABALENE"],[data-ui-state="ODOSLANE"],[data-ui-state="READY"]) { --ui-state-ink:var(--ui-active-ink); --ui-state-bg:var(--ui-active-bg); --ui-state-line:var(--ui-active-line); }
.admin-shell :is([data-kanban-state="PRIJATY_NA_POSUDENIE"],[data-kanban-state="CAKA_NA_ZAKAZNIKA"],[data-kanban-state="DRAFT"],[data-kanban-state="NA_SCHVALENIE"],[data-kanban-state="CAKA_NA_PLATBU"],[data-ui-state="CAKA_NA_PLATBU"],[data-ui-state="UNPAID"],[data-ui-state="REVIEW"],[data-ui-state="POZASTAVENE"]) { --ui-state-ink:var(--ui-wait-ink); --ui-state-bg:var(--ui-wait-bg); --ui-state-line:var(--ui-wait-line); }
.admin-shell :is([data-kanban-state="PONUKA_VYTVORENA"],[data-kanban-state="ACCEPTED"],[data-kanban-state="SCHVALENA"],[data-ui-state="HOTOVE"],[data-ui-state="DORUCENE"],[data-ui-state="PAID"],[data-ui-state="PUBLISHED"]) { --ui-state-ink:var(--ui-done-ink); --ui-state-bg:var(--ui-done-bg); --ui-state-line:var(--ui-done-line); }
.admin-shell :is([data-kanban-state="SOURCE_CHANGED"],[data-kanban-state="EXPIRED"],[data-kanban-state="ZAMIETNUTA"],[data-ui-state="OVERDUE"],[data-ui-state="BLOCKED"]) { --ui-state-ink:var(--ui-alert-ink); --ui-state-bg:var(--ui-alert-bg); --ui-state-line:var(--ui-alert-line); }
.admin-shell :is(.badge,.bench-status,.admin-status) { display:inline-flex; align-items:center; gap:6px; max-width:100%; width:fit-content; padding:4px 8px; border:1px solid var(--ui-state-line,var(--ui-neutral-line)); border-radius:6px; background:var(--ui-state-bg,var(--ui-neutral-bg)); color:var(--ui-state-ink,var(--ui-neutral-ink)); font-size:12px; font-weight:650; line-height:1.35; white-space:normal; overflow-wrap:anywhere; }
.admin-shell :is(.badge,.bench-status,.admin-status)::before { content:""; width:5px; height:5px; flex:0 0 5px; border-radius:50%; background:currentColor; }
.admin-shell .badge.approved { --ui-state-ink:var(--ui-done-ink); --ui-state-bg:var(--ui-done-bg); --ui-state-line:var(--ui-done-line); }
.admin-shell .badge.rejected { --ui-state-ink:var(--ui-alert-ink); --ui-state-bg:var(--ui-alert-bg); --ui-state-line:var(--ui-alert-line); }
.admin-shell .entity-kanban-column { border-top:3px solid var(--ui-state-line,var(--line)); }
.admin-shell .entity-kanban-column > header h3 { color:var(--ui-state-ink,var(--ink)); }
.admin-shell .production-steps [aria-current="step"] { background:#105378; color:#fff; box-shadow:inset 0 -2px #03a9f4; }

/* Only explicit amounts / quantities; no catch-all for dates or identifiers. */
.admin-shell :is(.admin-numeric,.bench-amount,.bench-quantity,.offer-total,.production-count,.price-tax-breakdown dd,.finance-totals strong,.load-totals dd,.load-row-quantity,.web-metrics strong) { text-align:right; font-variant-numeric:tabular-nums lining-nums; }
.admin-shell .admin-numeric { align-self:stretch; }
.admin-shell .load-row-quantity { justify-self:stretch; }
.admin-shell .compact-facts > .admin-numeric { width:100%; }
.admin-shell [data-kanban-card][data-kanban-state] .compact-facts > strong { align-self:stretch; text-align:right; font-variant-numeric:tabular-nums; }
.admin-shell .order-card .compact-facts > span:first-child { align-self:stretch; text-align:right; font-variant-numeric:tabular-nums; }
.admin-shell .finance-row > div:nth-child(2) > strong { display:block; text-align:right; font-variant-numeric:tabular-nums; }
.admin-shell :is(input[data-calc-quantity],input[name="good_quantity"],.finance-workspace input[inputmode="decimal"]) { text-align:right; font-variant-numeric:tabular-nums; }
.admin-shell .job-commercial .detail-list:not(.price-tax-breakdown) dd { text-align:left; }
.admin-shell .web-table-wrap :is(th,td):nth-child(2) { text-align:right; font-variant-numeric:tabular-nums; }
.admin-shell .bench-records .bench-amount { margin-left:auto; text-align:right; }
.admin-shell .bench-metric { justify-content:space-between; }
.admin-shell .bench-metric > strong { order:2; margin-left:auto; text-align:right; }
.admin-shell .bench-metric > span { order:1; }

@media(hover:hover) {
  .admin-shell .admin-navigation a:not([aria-current="page"]):hover { background:#2c3e57; color:#fff; }
  .admin-shell .admin-navigation a[aria-current="page"]:hover { background:#2b5582; }
  .admin-shell .admin-navigation .product-nav-group > summary:hover { background:#ffffff09; }
  .admin-shell :is(.production-row,.finance-row,.web-content-row):hover { background:#f5f8fd; }
  .admin-shell :is(.compact-record,.entity-kanban-card,.bench-job):hover { border-color:#b4c6df; }
}
.admin-shell :is(.compact-record,.entity-kanban-card,.bench-job,.production-row,.finance-row,.web-content-row) { transition:background-color 140ms,border-color 140ms; }
.admin-shell :is(.production-row,.finance-row,.web-content-row):focus-within { box-shadow:inset 3px 0 #1a80b6; }
@media(max-width:600px) {
  .admin-shell .compact-facts > .admin-numeric { width:auto; margin-left:auto; }
  .admin-shell .admin-status { max-width:100%; }
}
@media(prefers-reduced-motion:reduce) {
  .admin-shell :is(.admin-navigation a,.compact-record,.entity-kanban-card,.bench-job,.production-row,.finance-row,.web-content-row) { transition:none; }
}
