:root {
  --bg: #f3f6fa;
  --surface: #ffffff;
  --border: #dce3ec;
  --text: #1e293b;
  --muted: #64748b;
  --primary: #1d4ed8;
  --primary-hover: #1e40af;

  --uvi: #dc2626;
  --uvi-bg: #fef2f2;
  --uv: #ea580c;
  --uv-bg: #fff7ed;
  --ur: #ca8a04;
  --ur-bg: #fefce8;
  --non-urgent: #16a34a;
  --non-urgent-bg: #f0fdf4;
}

* {
  box-sizing: border-box;
}

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

.hidden {
  display: none !important;
}

.muted {
  color: var(--muted);
  font-size: 0.9rem;
}

/* Login */
.login-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.login-card {
  width: 100%;
  max-width: 440px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.login-header {
  text-align: center;
  margin-bottom: 22px;
}

.login-header h1 {
  margin: 10px 0 4px;
  font-size: 1.35rem;
}

.login-header p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--uvi);
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.brand-badge.small {
  width: 36px;
  height: 36px;
  font-size: 0.85rem;
}

form label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  margin: 12px 0 5px;
}

input[type="text"],
input[type="password"],
input[type="date"],
select {
  width: 100%;
  padding: 9px 11px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.95rem;
  background: #fff;
}

.demo-accounts {
  margin-top: 20px;
  padding: 12px;
  background: #f8fafc;
  border: 1px dashed var(--border);
  border-radius: 8px;
  font-size: 0.82rem;
}

.demo-accounts ul {
  margin: 6px 0 0;
  padding-left: 18px;
}

/* Topbar */
.topbar {
  background: #0f172a;
  color: #fff;
  padding: 12px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.topbar-left,
.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.topbar-title {
  font-weight: 700;
  font-size: 1.05rem;
}

.topbar-subtitle {
  font-size: 0.82rem;
  color: #cbd5e1;
}

.pill {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
}

.pill-connected {
  background: #14532d;
  color: #86efac;
}

.pill-disconnected {
  background: #7f1d1d;
  color: #fecaca;
  animation: pulse 1.2s infinite;
}

/* Alarm banner */
.alarm-banner {
  background: #b91c1c;
  color: #fff;
  padding: 14px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  animation: alarmFlash 1.2s infinite;
}

.alarm-banner-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.alarm-icon {
  font-size: 1.6rem;
}

@keyframes alarmFlash {
  0%, 100% { background: #b91c1c; }
  50% { background: #dc2626; }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

/* Buttons */
.btn {
  border: none;
  border-radius: 8px;
  padding: 9px 14px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, opacity 0.15s;
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn-full {
  width: 100%;
  margin-top: 16px;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover:not(:disabled) {
  background: var(--primary-hover);
}

.btn-secondary {
  background: #e2e8f0;
  color: #0f172a;
}

.btn-ghost {
  background: transparent;
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.modal-header .btn-ghost {
  color: var(--text);
  border: none;
}

.btn-warning-outline {
  background: #f59e0b;
  color: #0f172a;
}

.btn-audio-active {
  background: #16a34a;
  color: #fff;
}

.btn-danger-solid {
  background: #fff;
  color: #b91c1c;
  font-weight: 800;
  padding: 11px 18px;
}

.btn-success {
  background: #15803d;
  color: #fff;
}

.btn-success:hover:not(:disabled) {
  background: #166534;
}

/* Transporteur PWA bar */
.transport-bar {
  margin-bottom: 16px;
  background: #f8fafc;
}

.tabs-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.tab-btn {
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
}

.tab-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  margin-left: 4px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  background: rgba(15, 23, 42, 0.12);
  color: inherit;
}

.tab-btn.active .tab-count {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
}

.tab-count.has-alert {
  background: var(--uvi);
  color: #fff;
}

.filters-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
  align-items: end;
}

.filters-row label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--muted);
}

.transport-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.info-banner {
  margin-bottom: 14px;
  padding: 12px 16px;
  border-radius: 10px;
  background: #dcfce7;
  border: 1px solid #86efac;
  color: #14532d;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.doc-links {
  margin-top: 8px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.doc-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #e0f2fe;
  color: #075985;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
}

.doc-pill:hover {
  background: #bae6fd;
}

/* Dépôt de délivrance & Supervision (Lot 3) */
.supervision-bar {
  margin-bottom: 14px;
  background: #f8fafc;
}

.supervision-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.supervision-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.sup-pill {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
}

.sup-online {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #86efac;
}

.sup-offline {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

.depot-bar {
  margin-bottom: 16px;
  background: #f0fdf4;
  border-color: #bbf7d0;
}

.depot-tab-btn {
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
}

.depot-tab-btn.active {
  background: #15803d;
  color: #fff;
  border-color: #15803d;
}

.stage-filter-bar {
  margin-bottom: 14px;
  background: #f8fafc;
}

.stage-tab-btn {
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
}

.stage-tab-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.stage-tab-btn.active .tab-count {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
}

.depot-actions-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.checkbox-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
}

.colisage-box {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #f59e0b;
  background: #fffbeb;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.colisage-box.verified {
  border-color: #16a34a;
  background: #dcfce7;
}

.colisage-box label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-weight: 700;
  cursor: pointer;
}

.colisage-box input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
}

/* Lot 4 : Actions BL, Retours & Admin modal */
.bl-card-actions {
  margin-top: 12px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.retour-info-box {
  margin-top: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  background: #fef3c7;
  border: 1px solid #f59e0b;
  color: #78350f;
  font-size: 0.88rem;
}

.modal-wide {
  max-width: 780px;
}

.admin-section {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.admin-section h4 {
  margin: 0 0 10px;
}

.inline-form {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
}

.admin-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
  max-height: 200px;
  overflow-y: auto;
}

.admin-list-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #f8fafc;
  font-size: 0.86rem;
}

/* Admin dedicated tabs & views */
.admin-nav {
  background: #1e293b;
  border-bottom: 1px solid #334155;
}

.admin-nav-inner {
  display: flex;
  gap: 8px;
  padding-top: 8px;
  padding-bottom: 8px;
  flex-wrap: wrap;
}

.admin-nav-btn {
  border: none;
  background: transparent;
  color: #cbd5e1;
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
}

.admin-nav-btn.active {
  background: var(--primary);
  color: #fff;
}

.admin-form-box {
  border: 1px solid var(--border);
  background: #f8fafc;
  border-radius: 10px;
  padding: 14px;
  margin: 14px 0;
}

.admin-form-box h4 {
  margin: 0 0 8px;
}

.admin-list-full {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.checkbox-grid {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.groupes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.groupe-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
  background: #fff;
}

.groupe-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.uf-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border-radius: 999px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  font-size: 0.82rem;
  margin: 3px 4px 3px 0;
}

.uf-chip button {
  border: none;
  background: transparent;
  color: #b91c1c;
  font-weight: 800;
  cursor: pointer;
  padding: 0 2px;
}

.param-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.param-row:last-child {
  border-bottom: none;
}

.psl-select-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 6px 0 12px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #f8fafc;
}

.psl-tag.psl-retour {
  border-color: #f59e0b;
  background: #fef3c7;
}

.btn-danger-outline {
  background: #fee2e2;
  color: #991b1b;
}

.anomalie-banner {
  margin-top: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  background: #fee2e2;
  border: 1px solid #ef4444;
  color: #991b1b;
  font-size: 0.88rem;
  font-weight: 600;
}

.conformite-ok {
  margin-top: 8px;
  padding: 6px 10px;
  border-radius: 8px;
  background: #dcfce7;
  border: 1px solid #86efac;
  color: #166534;
  font-size: 0.84rem;
  font-weight: 600;
}

.conformite-ko {
  margin-top: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  background: #fee2e2;
  border: 1px solid #ef4444;
  color: #991b1b;
  font-size: 0.86rem;
  font-weight: 600;
}

.radio-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 8px 0 12px;
}

.radio-card {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  cursor: pointer;
  margin: 0;
}

.radio-ok {
  background: #f0fdf4;
  border-color: #86efac;
  color: #166534;
}

.radio-ko {
  background: #fef2f2;
  border-color: #fca5a5;
  color: #991b1b;
}

.ingestion-errors-box {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fff1f2;
  border: 1px solid #fda4af;
  color: #881337;
  font-size: 0.86rem;
}

.ingestion-err-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  border-top: 1px solid rgba(136, 19, 55, 0.15);
  flex-wrap: wrap;
}

/* Adaptation ergonomique Android & Smartphones */
@media (max-width: 768px) {
  .container {
    padding: 12px;
  }

  .topbar {
    padding: 10px 14px;
  }

  .search-input,
  .toolbar-select {
    width: 100%;
  }

  .bl-card-actions .btn {
    width: 100%;
    min-height: 46px;
    font-size: 0.98rem;
  }
}

body.os-android.role-transporteur main.container,
body.is-mobile.role-transporteur main.container {
  padding-bottom: 84px;
}

body.os-android.role-transporteur #transporteur-tabs,
body.is-mobile.role-transporteur #transporteur-tabs {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 900;
  background: #0f172a;
  padding: 8px 6px calc(8px + env(safe-area-inset-bottom, 0px));
  margin: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  box-shadow: 0 -4px 16px rgba(15, 23, 42, 0.25);
}

body.os-android.role-transporteur #transporteur-tabs .tab-btn,
body.is-mobile.role-transporteur #transporteur-tabs .tab-btn {
  background: transparent;
  color: #cbd5e1;
  border: none;
  padding: 8px 4px;
  font-size: 0.72rem;
  border-radius: 8px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

body.os-android.role-transporteur #transporteur-tabs .tab-count,
body.is-mobile.role-transporteur #transporteur-tabs .tab-count {
  margin-left: 0;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

body.os-android.role-transporteur #transporteur-tabs .tab-count.has-alert,
body.is-mobile.role-transporteur #transporteur-tabs .tab-count.has-alert {
  background: var(--uvi);
  color: #fff;
}

body.os-android.role-transporteur #transporteur-tabs .tab-btn.active,
body.is-mobile.role-transporteur #transporteur-tabs .tab-btn.active {
  background: var(--primary);
  color: #fff;
}

body.os-android.role-transporteur .bl-card,
body.is-mobile.role-transporteur .bl-card {
  padding: 14px;
}

body.os-android.role-transporteur .bl-card-actions .btn,
body.is-mobile.role-transporteur .bl-card-actions .btn {
  width: 100%;
  min-height: 48px;
  font-size: 1rem;
}

body.os-android.role-transporteur .stepper,
body.is-mobile.role-transporteur .stepper {
  gap: 4px;
}

body.os-android.role-transporteur .step,
body.is-mobile.role-transporteur .step {
  min-width: 72px;
  font-size: 0.68rem;
  padding: 4px;
}

/* Layout */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 20px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
}

.admin-bar {
  margin-bottom: 16px;
  background: #eff6ff;
  border-color: #bfdbfe;
}

.admin-bar-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-bar-controls {
  display: flex;
  gap: 8px;
  align-items: center;
}

.admin-bar-controls select {
  width: auto;
  min-width: 280px;
}

.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.toolbar-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.toolbar-info h2 {
  margin: 0;
  font-size: 1.25rem;
}

.toolbar-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.search-input {
  width: 260px;
  max-width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.9rem;
  background: #fff;
}

.toolbar-select {
  width: auto;
  min-width: 210px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.9rem;
  background: #fff;
}

.count-badge {
  background: #e2e8f0;
  color: #0f172a;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
}

/* Legend */
.legend {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  font-size: 0.84rem;
  color: var(--muted);
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: inline-block;
}

.dot-uvi { background: var(--uvi); }
.dot-uv { background: var(--uv); }
.dot-ur { background: var(--ur); }
.dot-non-urgent { background: var(--non-urgent); }

/* BL Cards */
.bl-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.bl-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 7px solid var(--non-urgent);
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.bl-card.urg-UVI { border-left-color: var(--uvi); background: var(--uvi-bg); }
.bl-card.urg-UV { border-left-color: var(--uv); background: var(--uv-bg); }
.bl-card.urg-UR { border-left-color: var(--ur); background: var(--ur-bg); }
.bl-card.urg-NON_URGENT { border-left-color: var(--non-urgent); background: var(--non-urgent-bg); }

.bl-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}

.bl-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.bl-checkbox {
  width: 20px;
  height: 20px;
  cursor: pointer;
}

.urg-badge {
  padding: 3px 9px;
  border-radius: 6px;
  color: #fff;
  font-weight: 800;
  font-size: 0.78rem;
}

.urg-badge.UVI { background: var(--uvi); }
.urg-badge.UV { background: var(--uv); }
.urg-badge.UR { background: var(--ur); color: #1e293b; }
.urg-badge.NON_URGENT { background: var(--non-urgent); }

.status-badge {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  background: #e2e8f0;
  color: #0f172a;
}

.bl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 12px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  font-size: 0.9rem;
}

.psl-tag {
  display: inline-block;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 8px;
  margin: 3px 4px 3px 0;
  font-size: 0.82rem;
}

/* Stepper */
.stepper {
  display: flex;
  gap: 6px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.step {
  flex: 1;
  min-width: 115px;
  text-align: center;
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--border);
  color: var(--muted);
}

.step.done {
  background: #dcfce7;
  border-color: #86efac;
  color: #166534;
}

.step.active {
  background: #dbeafe;
  border-color: #60a5fa;
  color: #1e3a8a;
}

.history-details {
  margin-top: 10px;
  font-size: 0.82rem;
}

.history-details summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--primary);
}

.history-list {
  margin: 8px 0 0;
  padding-left: 18px;
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 1000;
}

.modal-card {
  width: 100%;
  max-width: 640px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--surface);
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  margin: 0;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

.identity-item-box {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
  margin-top: 12px;
  background: #f8fafc;
}

.identity-fields-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin-top: 8px;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  font-weight: 600;
  cursor: pointer;
}

.error-box {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fee2e2;
  color: #991b1b;
  font-size: 0.88rem;
  font-weight: 600;
}

.empty-state {
  text-align: center;
  padding: 40px 20px;
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: 12px;
  color: var(--muted);
}
