/* ═══════════════════════════════════════════════════════════════════════════
   ACM Client Portal — portal.css
   All custom styles live here. Bootstrap 5 handles structure/utilities.
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  --sidebar-bg:           #1a2744;
  --sidebar-text:         rgba(255, 255, 255, 0.72);
  --sidebar-text-hover:   #ffffff;
  --sidebar-active-bg:    rgba(255, 255, 255, 0.11);
  --sidebar-accent:       #4f8ef7;
  --sidebar-width:        240px;
  --topbar-height:        56px;

  --body-bg:              #f0f4f8;
  --card-bg:              #ffffff;
  --border:               #e2e8f0;
  --text:                 #1e293b;
  --text-muted:           #64748b;

  --accent:               #2563eb;
  --accent-hover:         #1d4ed8;
  --success:              #16a34a;
  --danger:               #dc2626;
}

/* ── Reset ──────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body {
  background-color: var(--body-bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  margin: 0;
}

/* ── Layout wrapper ─────────────────────────────────────────────────────── */
#wrapper {
  display: flex;
  min-height: 100vh;
}

/* ── Sidebar ────────────────────────────────────────────────────────────── */
.sidebar {
  width: var(--sidebar-width);
  background-color: var(--sidebar-bg);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-brand {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ffffff;
}

.sidebar-close {
  background: none;
  border: none;
  color: var(--sidebar-text);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.sidebar-close:hover { color: #fff; }

.sidebar-nav {
  list-style: none;
  padding: 0.5rem 0;
  margin: 0;
  flex: 1;
}

.sidebar-nav .nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  color: var(--sidebar-text);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: background-color 0.15s, color 0.15s;
  border-left: 3px solid transparent;
}

.sidebar-nav .nav-link .bi { font-size: 1rem; }

.sidebar-nav .nav-link:hover {
  background-color: var(--sidebar-active-bg);
  color: var(--sidebar-text-hover);
}

.sidebar-nav .nav-link.active {
  background-color: var(--sidebar-active-bg);
  color: var(--sidebar-text-hover);
  border-left-color: var(--sidebar-accent);
}

.sidebar-footer {
  padding: 0.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-footer .nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  color: var(--sidebar-text);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.15s;
}

.sidebar-footer .nav-link:hover { color: var(--sidebar-text-hover); }

/* Test-DB indicator — red sidebar so it's unmistakable */
.sidebar-testdb { background-color: #7f1d1d; }

/* Logout is a POST form — make the button look like a nav link */
.sidebar-logout-form {
  margin: 0;
  padding: 0;
}

.sidebar-logout-btn {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
}

/* ── Sidebar backdrop (mobile overlay) ─────────────────────────────────── */
.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1040;
}

.sidebar-backdrop.show { display: block; }

/* ── Mobile: sidebar slides in from left ───────────────────────────────── */
@media (max-width: 767.98px) {
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100dvh;
    z-index: 1045;
    transform: translateX(-100%);
    transition: transform 0.25s ease-in-out;
    overflow-y: auto;
    min-height: unset;
  }

  .sidebar.open { transform: translateX(0); }

  .sidebar-close { display: block; }
}

@media (min-width: 768px) {
  .sidebar-close { display: none !important; }
}

/* ── Top bar (mobile only) ──────────────────────────────────────────────── */
.topbar {
  height: var(--topbar-height);
  background-color: var(--sidebar-bg);
  padding: 0 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  position: sticky;
  top: 0;
  z-index: 100;
}

.topbar-title {
  color: #ffffff;
  font-weight: 600;
  font-size: 1rem;
}

.burger-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  transition: color 0.15s, background-color 0.15s;
}

.burger-btn:hover {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.1);
}

@media (min-width: 768px) {
  .topbar { display: none !important; }
}

/* ── Main content area ──────────────────────────────────────────────────── */
.main-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.content-area {
  padding: 1.75rem;
  flex: 1;
}

@media (max-width: 767.98px) {
  .content-area { padding: 1rem; }
}

/* ── Page header ────────────────────────────────────────────────────────── */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.page-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}

/* ── Data card (wraps tables) ───────────────────────────────────────────── */
.data-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* ── Table styling ──────────────────────────────────────────────────────── */
.data-card .table {
  margin-bottom: 0;
  font-size: 0.875rem;
}

.data-card .table thead th {
  background-color: #f8fafc;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  padding: 0.7rem 1rem;
  white-space: nowrap;
}

.data-card .table tbody td {
  padding: 0.7rem 1rem;
  vertical-align: middle;
  color: var(--text);
  border-color: var(--border);
}

.data-card .table tbody tr:hover { background-color: #f8fafc; }

/* Responsive table: scroll on small screens */
.table-scroll { overflow-x: auto; }

/* Samples grouped by project — project header row + indented samples */
.samples-grouped tbody tr.sample-group td {
  background-color: #eef2f7;
  font-weight: 600;
  color: #334155;
}
.samples-grouped tbody tr.sample-group i { margin-right: 0.4rem; color: #64748b; }
.samples-grouped .sample-group-ref { font-weight: 400; color: #64748b; }
.samples-grouped .sample-indent { padding-left: 2rem; }

/* ── Status badges ──────────────────────────────────────────────────────── */
.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2em 0.6em;
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.status-complete { background: #dcfce7; color: #15803d; }
.status-pending  { background: #fef9c3; color: #92400e; }
.status-new      { background: #dbeafe; color: #1d4ed8; }
.status-default  { background: #f1f5f9; color: #475569; }

/* ── Pagination ─────────────────────────────────────────────────────────── */
.pagination-bar {
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  background: #fafbfc;
}

.pagination-info {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.pagination { margin: 0; }

.pagination .page-link {
  border-color: var(--border);
  color: var(--accent);
  font-size: 0.8rem;
  padding: 0.3rem 0.6rem;
}

.pagination .page-item.active .page-link {
  background-color: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.pagination .page-link:hover:not(.active) {
  background-color: #eff6ff;
  border-color: #bfdbfe;
}

.pagination .page-item.disabled .page-link {
  color: #cbd5e1;
}

/* ── Buttons ────────────────────────────────────────────────────────────── */
.btn-primary {
  background-color: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.btn-primary:hover, .btn-primary:focus {
  background-color: var(--accent-hover);
  border-color: var(--accent-hover);
}

/* ── Flash alerts ───────────────────────────────────────────────────────── */
.flash-container {
  padding: 0.75rem 1.75rem 0;
}

@media (max-width: 767.98px) {
  .flash-container { padding: 0.5rem 1rem 0; }
}

/* ── Empty state ────────────────────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 4rem 1rem;
  color: var(--text-muted);
}

.empty-state .bi {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 0.75rem;
  opacity: 0.35;
}

.empty-state p { margin: 0; font-size: 0.95rem; }

/* ── Modal ──────────────────────────────────────────────────────────────── */
.modal-header {
  background-color: #f8fafc;
  border-bottom: 1px solid var(--border);
}

.modal-title { font-weight: 600; font-size: 1rem; }

.modal-footer { background-color: #f8fafc; border-top: 1px solid var(--border); }

/* ── Account info grid ──────────────────────────────────────────────────── */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}

.info-block {
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background: var(--card-bg);
}

.info-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}

.info-value {
  font-size: 0.95rem;
  color: var(--text);
  font-weight: 500;
  word-break: break-word;
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background: var(--card-bg);
}

.stat-icon {
  font-size: 2rem;
  color: var(--accent);
  opacity: 0.8;
  line-height: 1;
}

.stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.1rem;
}

/* ── Login page ─────────────────────────────────────────────────────────── */
.auth-body {
  background-color: var(--sidebar-bg);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.auth-card {
  background: var(--card-bg);
  border-radius: 0.75rem;
  padding: 2.5rem;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.auth-logo {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-logo-text {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--sidebar-bg);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.auth-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
  display: block;
}

.auth-card .form-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.auth-card .form-control {
  border-color: var(--border);
  padding: 0.55rem 0.75rem;
}

.auth-card .form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.15);
}

.auth-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 0.4rem;
  padding: 0.65rem 0.9rem;
  color: var(--danger);
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

/* ── Language toggle ────────────────────────────────────────────────────── */
.lang-switch {
  font-size: 0.8rem !important;
  letter-spacing: 0.08em;
  opacity: 0.8;
}

.lang-switch:hover { opacity: 1; }

/* Login page language toggle (top-right floating) */
.auth-lang-toggle {
  position: fixed;
  top: 1rem;
  right: 1.25rem;
  color: rgba(255,255,255,0.75);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  padding: 0.3rem 0.6rem;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 4px;
  transition: color 0.15s, border-color 0.15s;
}

.auth-lang-toggle:hover {
  color: #fff;
  border-color: rgba(255,255,255,0.6);
}

/* Mobile topbar language toggle */
.topbar-lang {
  margin-left: auto;
  color: rgba(255,255,255,0.7);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 4px;
}

.topbar-lang:hover { color: #fff; border-color: rgba(255,255,255,0.5); }

/* ── Sidebar logo + brand link ──────────────────────────────────────────── */
.sidebar-brand-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.sidebar-brand-link:hover .sidebar-brand { color: #fff; }

.sidebar-logo {
  height: 24px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}

/* ── Petri dish emoji nav icon ──────────────────────────────────────────── */
.nav-petri {
  font-size: 1rem;
  line-height: 1;
  display: inline-block;
  width: 1rem;
  text-align: center;
}

/* ── Topbar title as link ───────────────────────────────────────────────── */
a.topbar-title {
  text-decoration: none;
}

a.topbar-title:hover { opacity: 0.85; }

/* ── Login logo image ───────────────────────────────────────────────────── */
.auth-logo-img {
  display: block;
  max-height: 140px;
  max-width: 280px;
  margin: 0 auto 1.25rem;
  object-fit: contain;
}

/* ── Data card header (section title inside a card) ─────────────────────── */
.data-card-header {
  padding: 0.9rem 1rem 0;
}

.data-card-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  margin: 0;
}

/* ── Dashboard stat cards ───────────────────────────────────────────────── */
.dash-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.dash-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: stretch;
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.15s;
}

.dash-card:hover { box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); }

.dash-card-alert {
  border-color: #fca5a5;
  background: #fff8f8;
}

.dash-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  flex-shrink: 0;
  font-size: 1.75rem;
  border-radius: 0.5rem 0 0 0.5rem;
}

.dash-icon-blue  { background: #eff6ff; color: #2563eb; }
.dash-icon-green { background: #f0fdf4; color: #16a34a; }
.dash-icon-red   { background: #fef2f2; color: #dc2626; }

.dash-card-body {
  flex: 1;
  padding: 1rem;
  min-width: 0;
}

.dash-card-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}

.dash-card-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.dash-card-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

.dash-card-link {
  position: absolute;
  inset: 0;
}

/* ── Dashboard distribution bar ─────────────────────────────────────────── */
.dash-bar-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  height: 1.25rem;
}

.dash-bar {
  height: 8px;
  background: var(--accent);
  border-radius: 4px;
  min-width: 2px;
  opacity: 0.7;
  flex-shrink: 0;
}

.dash-bar-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  white-space: nowrap;
}

/* ── Error pages ────────────────────────────────────────────────────────── */
.error-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  text-align: center;
  color: var(--text-muted);
}

.error-code {
  font-size: 5rem;
  font-weight: 800;
  color: #e2e8f0;
  line-height: 1;
}

.error-msg {
  font-size: 1.1rem;
  margin: 0.5rem 0 1.5rem;
  color: var(--text);
}

/* ── Active-client selector ───────────────────────────────────────────────────
   Sidebar, under the logo and above the menu. Only rendered when the signed-in
   address is a contact on more than one client, so most sessions never see it. */
.sidebar-client {
  padding: 12px 14px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  background: rgba(0, 0, 0, .14);
}
.sidebar-client-label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .62);
}
.sidebar-client-select {
  width: 100%;
  padding: .48rem 1.9rem .48rem .65rem;
  font-size: .87rem;
  font-weight: 500;
  color: #fff;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 8px;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-color: rgba(255, 255, 255, .10);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3E%3Cpath d='M4.5 6.5L8 10l3.5-3.5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .55rem center;
  background-size: 14px;
  transition: background-color .15s ease, border-color .15s ease;
}
.sidebar-client-select:hover {
  background-color: rgba(255, 255, 255, .17);
  border-color: rgba(255, 255, 255, .38);
}
.sidebar-client-select:focus {
  outline: none;
  border-color: rgba(255, 255, 255, .6);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .13);
}
/* The list itself is drawn by the OS — it needs readable colours of its own. */
.sidebar-client-select option { color: #1d2b23; background: #fff; }

/* ── Sample batch wizard ────────────────────────────────────────────────
   Built from the tokens already defined at the top of this file, so the
   wizard inherits the portal's palette rather than restating it.        */

.batch-rail {
  display: flex;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 1.25rem;
}

.batch-rail-item {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 0.9rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  text-decoration: none;
  border-right: 1px solid var(--border);
}
.batch-rail-item:last-child { border-right: 0; }
.batch-rail-item.is-done    { color: var(--text); }
.batch-rail-item.is-current { color: var(--accent); font-weight: 600; background: #f5f8ff; }
.batch-rail-item.is-locked  { color: #a3aec0; cursor: not-allowed; }
.batch-rail-item:hover:not(.is-locked):not(.is-current) { background: #f8fafc; }

.batch-rail-num {
  width: 1.35rem; height: 1.35rem; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; font-size: 0.72rem; font-weight: 600;
  background: var(--border); color: var(--text-muted);
}
.batch-rail-item.is-done    .batch-rail-num { background: var(--success); color: #fff; }
.batch-rail-item.is-current .batch-rail-num { background: var(--accent);  color: #fff; }

/* Steps stack on a phone; the numbers alone carry the sequence there. */
@media (max-width: 640px) {
  .batch-rail-item span:not(.batch-rail-num) { display: none; }
  .batch-rail-item { justify-content: center; }
}

.batch-card   { margin-bottom: 1rem; }
.batch-h2     { font-size: 0.95rem; font-weight: 600; margin: 0 0 0.25rem; }
.batch-lead   { font-size: 0.83rem; color: var(--text-muted); margin: 0 0 1rem; }
.batch-sub    { font-size: 0.79rem; color: var(--text-muted); }
.batch-cardhead {
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.75rem; margin-bottom: 0.75rem;
}
.batch-summary { cursor: pointer; font-size: 0.83rem; color: var(--accent); }
.batch-options { border: 1px solid var(--border); border-radius: 6px; padding: 0.5rem 0.75rem; }

.batch-actions { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 1.25rem; }
.batch-spacer  { flex: 1; }

.req { color: var(--danger); }

.batch-note {
  background: #eff5ff; border: 1px solid #bfdbfe; color: #1e40af;
  border-radius: 7px; padding: 0.7rem 0.9rem;
  font-size: 0.83rem; margin-bottom: 1rem;
}

/* Locations: pills read faster than a column of checkboxes, and there are
   nineteen of them. */
.batch-locs { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.batch-loc {
  display: inline-flex; align-items: center; gap: 0.4rem; cursor: pointer;
  border: 1px solid #cbd5e1; border-radius: 999px;
  padding: 0.3rem 0.7rem; font-size: 0.8rem; background: var(--card-bg);
}
.batch-loc:has(input:checked) {
  border-color: var(--accent); background: #eff5ff; color: var(--accent-hover);
}
.batch-loc input { margin: 0; }

.batch-contact {
  display: flex; align-items: flex-start; gap: 0.7rem;
  padding: 0.7rem 0; border-bottom: 1px solid #eef2f7;
}
.batch-contact:last-of-type { border-bottom: 0; }
.batch-contact-body { flex: 1; min-width: 0; cursor: pointer; margin: 0; }
.batch-contact-name { display: block; font-weight: 500; }
.batch-contact-mail { display: block; font-size: 0.79rem; color: var(--text-muted); }
.batch-roles { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-top: 0.25rem; }
.batch-role {
  font-size: 0.68rem; padding: 0.05rem 0.45rem; border-radius: 999px;
  background: #f1f5f9; color: #475569; border: 1px solid var(--border);
}

.batch-pill {
  display: inline-block; font-size: 0.7rem; font-weight: 600;
  padding: 0.1rem 0.5rem; border-radius: 999px;
  background: var(--border); color: #475569; margin-left: 0.35rem;
}
.batch-pill-wait { background: #fef3c7; color: #92400e; }

.batch-review { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 0.9rem; }
.batch-review > div { font-size: 0.86rem; }
.batch-k {
  display: block; font-size: 0.7rem; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--text-muted);
}

.batch-done { text-align: center; padding: 1.5rem 1rem; }
.batch-done-ic {
  width: 3.2rem; height: 3.2rem; border-radius: 50%;
  background: #dcfce7; color: #166534;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin: 0 auto 0.9rem;
}
.batch-numbox {
  display: inline-flex; flex-wrap: wrap; gap: 1.6rem; justify-content: center;
  background: #f8fafc; border: 1px solid var(--border);
  border-radius: 8px; padding: 0.9rem 1.8rem; margin: 0.5rem 0 1.25rem;
}
.batch-num { font-size: 1.25rem; font-weight: 600; font-variant-numeric: tabular-nums; }
