/* ===========
   Daily Flowers — dashboard theme
   Donker als standaard (CodePen-stijl), licht via body.light
   =========== */

@import url("https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800&display=swap");

:root {
  --df-bg: #1e1e1e;
  --df-surface: #171717;
  --df-surface-2: #202020;
  --df-border: #2e2e2e;
  --df-primary: #dea5a4;
  --df-primary-dark: #e8b4b3;
  --df-primary-soft: #2d2d2d;
  --df-text: #e8e8e8;
  --df-text-soft: #8a8a8a;
  --df-muted: #676767;
  --df-success-soft: #163224;
  --df-danger-soft: #3a1714;
  --df-radius-lg: 10px;
  --df-radius-md: 8px;
  --df-shadow-soft: none;
  --df-shadow-light: none;
  --df-sidebar-w: 248px;
  --df-topbar-h: 56px;
}

html.theme-dark,
html {
  background: #1e1e1e;
  color-scheme: dark;
}

body.light {
  color-scheme: light;
  --df-bg: #f3f4f6;
  --df-surface: #ffffff;
  --df-surface-2: #f8f9fb;
  --df-border: #e5e7eb;
  --df-primary: #dea5a4;
  --df-primary-dark: #c97f7d;
  --df-primary-soft: #f7e1e1;
  --df-text: #1f2937;
  --df-text-soft: #6b7280;
  --df-muted: #9ca3af;
  --df-success-soft: #e8f6ee;
  --df-danger-soft: #fdecea;
  --df-shadow-soft: 0 1px 2px rgba(15, 23, 42, 0.06);
  --df-shadow-light: 0 1px 2px rgba(15, 23, 42, 0.04);
}

html:has(body.light) {
  background: #f3f4f6;
  color-scheme: light;
}

details > summary {
  cursor: pointer;
  font-weight: 700;
  padding: 8px 0;
  color: var(--df-text);
}

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

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

a {
  color: var(--df-primary);
  text-decoration: none;
}

a:hover {
  color: #e8b4b3;
}

body.light a:hover {
  color: var(--df-primary-dark);
}

/* ===========
   App layout
   =========== */

.app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.app-content {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px 24px 48px;
}

.page {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.page-header {
  background: transparent;
  border-radius: 0;
  padding: 4px 0 2px;
  box-shadow: none;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
}

.page-header-title {
  font-size: 26px;
  font-weight: 700;
  margin: 0 0 4px;
  color: #fff;
  letter-spacing: -0.02em;
}

body.light .page-header-title {
  color: var(--df-text);
}

.page-header-subtitle {
  margin: 0;
  color: var(--df-muted);
  font-size: 14px;
}

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

/* ===========
   Top bar
   =========== */

.navbar {
  position: sticky;
  top: 0;
  z-index: 40;
  min-height: var(--df-topbar-h);
  background: var(--df-surface);
  padding: 0 20px;
  border-radius: 0;
  border-bottom: 1px solid var(--df-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: none;
  backdrop-filter: none;
}

.navbar .links {
  display: flex;
  align-items: center;
  gap: 10px;
}

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

.nav-current {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}

body.light .nav-current {
  color: var(--df-text);
}

.nav-burger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 36px;
  height: 36px;
  padding: 8px;
  background: var(--df-primary-soft);
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.nav-burger span {
  display: block;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
}

body.light .nav-burger {
  color: var(--df-text);
}

.nav-burger:hover {
  background: #353535;
}

body.light .nav-burger:hover {
  background: #ececec;
}

.dark-toggle {
  background: var(--df-primary-soft);
  color: var(--df-text-soft);
  border: 1px solid var(--df-border);
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: none;
  transition: color 0.15s ease, background 0.15s ease;
}

.dark-toggle:hover {
  color: #fff;
  background: #353535;
  transform: none;
}

body.light .dark-toggle:hover {
  color: var(--df-text);
  background: #ececec;
}

body.dark {
  background: var(--df-bg);
  color: var(--df-text);
}

body.dark a {
  color: var(--df-primary);
}

body.dark .navbar {
  background: var(--df-surface);
}

body.dark .dark-toggle {
  background: var(--df-primary-soft);
  color: var(--df-text-soft);
}

/* ===========
   Sidebar
   =========== */

.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 999;
}

.nav-drawer {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: var(--df-sidebar-w);
  max-width: 85vw;
  background: var(--df-surface);
  border-right: 1px solid var(--df-border);
  box-shadow: none;
  transform: translateX(-105%);
  transition: transform 0.2s ease;
  z-index: 1000;
  display: flex;
  flex-direction: column;
}

.nav-drawer.open {
  transform: translateX(0);
}

.nav-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 18px 16px 14px;
  border-bottom: 1px solid var(--df-border);
  background: transparent;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  min-width: 0;
}

.nav-brand:hover {
  text-decoration: none;
  color: #fff;
}

.nav-brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #353535;
  color: var(--df-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.nav-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 0;
}

.nav-brand-text strong {
  font-size: 14px;
  font-weight: 800;
  color: #fff;
}

.nav-brand-text small {
  font-size: 11px;
  color: var(--df-muted);
}

body.light .nav-brand,
body.light .nav-brand-text strong {
  color: var(--df-text);
}

.nav-close {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--df-border);
  background: var(--df-primary-soft);
  color: var(--df-text);
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
}

.nav-drawer-content {
  padding: 12px 8px 20px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.nav-section {
  margin-bottom: 8px;
}

.nav-section--foot {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--df-border);
}

.nav-section-title {
  font-size: 11px;
  font-weight: 800;
  color: var(--df-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 14px 10px 6px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 0;
  color: var(--df-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  border-right: 2px solid transparent;
}

.nav-item-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  opacity: 0.85;
}

.nav-item:hover {
  background: transparent;
  color: #a1a0a0;
  text-decoration: none;
}

.nav-item--active {
  background: transparent;
  color: #fff;
  border-right-color: #fff;
}

body.light .nav-item--active {
  color: var(--df-text);
  border-right-color: var(--df-text);
  background: var(--df-surface-2);
}

.nav-item--logout {
  color: #f07167;
}

body.nav-drawer-open {
  overflow: hidden;
}

@media (min-width: 960px) {
  .nav-drawer {
    transform: none;
    box-shadow: none;
  }

  .nav-drawer[aria-hidden="true"] {
    visibility: visible;
  }

  .nav-burger,
  .nav-close,
  .nav-backdrop {
    display: none;
  }

  .navbar,
  .app-content {
    margin-left: var(--df-sidebar-w);
    width: calc(100% - var(--df-sidebar-w));
  }

  .app-content {
    max-width: none;
  }

  .pickup-footer {
    left: var(--df-sidebar-w);
  }
}

/* ===========
   Cards & containers
   =========== */

.card,
.table-card {
  background: var(--df-surface);
  border-radius: var(--df-radius-lg);
  border: 1px solid var(--df-border);
  box-shadow: var(--df-shadow-soft);
  padding: 18px 20px;
}

.card-title {
  font-size: 15px;
  font-weight: 800;
  margin: 0 0 6px;
  color: #fff;
  letter-spacing: 0.01em;
}

body.light .card-title {
  color: var(--df-text);
}

.card-subtitle {
  margin: 0 0 14px;
  color: var(--df-muted);
  font-size: 13px;
}

/* ===========
   Dashboard home
   =========== */

.dash-kicker {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--df-muted);
  margin: 0 0 6px;
}

.dash-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.dash-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 132px;
  padding: 18px 18px 16px;
  background: var(--df-surface);
  border: 1px solid var(--df-border);
  border-radius: var(--df-radius-lg);
  color: var(--df-text);
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.dash-card:hover {
  text-decoration: none;
  color: #fff;
  border-color: #4a4a4a;
  background: #1a1a1a;
}

body.light .dash-card:hover {
  color: var(--df-text);
  background: #fff;
  border-color: #cfcfcf;
}

.dash-card-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--df-muted);
}

.dash-card-title {
  font-size: 20px;
  font-weight: 800;
  margin: 10px 0 6px;
  color: #fff;
}

body.light .dash-card-title {
  color: var(--df-text);
}

.dash-card-desc {
  font-size: 13px;
  color: var(--df-text-soft);
  margin: 0;
}

.dash-modules {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.dash-link-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 8px;
}

.dash-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 4px;
  color: var(--df-text);
  text-decoration: none;
  border-bottom: 1px solid var(--df-border);
  font-size: 14px;
  font-weight: 600;
}

.dash-link:last-child {
  border-bottom: none;
}

.dash-link:hover {
  color: #fff;
  text-decoration: none;
}

body.light .dash-link:hover {
  color: var(--df-text);
}

.dash-link span {
  color: var(--df-muted);
  font-size: 12px;
  font-weight: 600;
}

/* ===========
   Tiles (legacy)
   =========== */

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

.tile {
  display: block;
  text-decoration: none;
  color: var(--df-text);
  background: var(--df-surface-2);
  border-radius: var(--df-radius-md);
  padding: 14px 14px;
  text-align: left;
  border: 1px solid var(--df-border);
  box-shadow: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.tile:hover {
  transform: none;
  background: #1a1a1a;
  border-color: #4a4a4a;
  box-shadow: none;
  color: #fff;
  text-decoration: none;
}

body.light .tile:hover {
  background: #fff;
  color: var(--df-text);
}

.tile-icon {
  display: none;
}

.tile-title {
  font-weight: 700;
  margin-bottom: 2px;
}

.tile-subtitle {
  font-size: 12px;
  color: var(--df-text-soft);
}

/* ===========
   Buttons
   =========== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-size: 13px;
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
  background: var(--df-primary-soft);
  color: var(--df-text);
  transition: background 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--df-primary);
  border-color: var(--df-primary);
  color: #fff;
  box-shadow: none;
}

.btn-primary:hover {
  background: #c97f7d;
  border-color: #c97f7d;
  transform: none;
  box-shadow: none;
}

.btn-secondary {
  background: var(--df-primary-soft);
  border-color: var(--df-border);
  color: var(--df-text);
}

.btn-danger {
  background: #3a1714;
  border-color: #5a241f;
  color: #f1998e;
}

.btn-green {
  background: #163224;
  border-color: #1f4a34;
  color: #7dcea0;
}

body.light .btn-danger {
  background: #fdecea;
  border-color: #f5c2be;
  color: #b42318;
}

body.light .btn-green {
  background: #e8f6ee;
  border-color: #b8dfc8;
  color: #1f7a3f;
}

/* ===========
   Forms
   =========== */

form {
  max-width: 100%;
}

label {
  font-size: 13px;
  display: block;
  margin: 6px 0 4px;
  color: var(--df-text-soft);
}

input[type="text"],
input[type="number"],
input[type="password"],
input[type="email"],
input[type="date"],
select,
textarea {
  width: 100%;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--df-border);
  font-size: 13px;
  font-family: inherit;
  background: #1a1a1a;
  color: var(--df-text);
  transition: border-color 0.12s ease;
}

body.light input[type="text"],
body.light input[type="number"],
body.light input[type="password"],
body.light input[type="email"],
body.light input[type="date"],
body.light select,
body.light textarea {
  background: #fff;
  color: var(--df-text);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--df-primary);
  box-shadow: none;
  background: #1a1a1a;
}

body.light input:focus,
body.light select:focus,
body.light textarea:focus {
  background: #fff;
}

.help-text {
  font-size: 12px;
  color: var(--df-text-soft);
  margin-top: 2px;
}

.message,
.flash-success {
  padding: 9px 10px;
  margin: 8px 0;
  background: var(--df-success-soft);
  border-radius: 8px;
  border: 1px solid #1f4a34;
  font-size: 13px;
}

body.light .message,
body.light .flash-success {
  border-color: #9fd8b4;
}

.flash-error {
  background: var(--df-danger-soft);
  border-color: #5a241f;
}

.hidden {
  display: none !important;
}

/* ===========
   Tables
   =========== */

table {
  border-collapse: collapse;
  width: 100%;
}

th,
td {
  border: 1px solid var(--df-border);
  padding: 8px 10px;
  font-size: 13px;
}

th {
  background: #2d2d2d;
  color: #fff;
  font-weight: 700;
  text-align: left;
}

body.light th {
  background: #f3f4f6;
  color: var(--df-text);
}

tbody tr:nth-child(even) {
  background: #1a1a1a;
}

body.light tbody tr:nth-child(even) {
  background: #f8f9fb;
}

tbody tr:hover {
  background: #222;
}

body.light tbody tr:hover {
  background: #f3f4f6;
}

.status-ok {
  background: #163224;
}

.status-low {
  background: #3a2a10;
}

.status-critical {
  background: #3a1714;
}

body.light .status-ok { background: #e9f7ee; }
body.light .status-low { background: #fff7e0; }
body.light .status-critical { background: #fbe4e4; }

/* Veiling-checklist: status-iconen (✓ en •) */
.batch-raw-list {
  list-style: none;
  padding-left: 0;
  margin: 6px 0 0;
}

.batch-raw-list li {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}

.status-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  margin-right: 4px;
}

.status-icon.status-done {
  background: #22c55e;   /* groen bolletje */
  color: #ffffff;
}

.status-icon.status-open {
  background: #f97316;   /* oranje bolletje */
  color: #ffffff;
}

/* Regels ouder dan 3 dagen oranje markeren */
tbody tr.old-row td {
  background: #fff4d6 !important;
}

body.dark tbody tr.old-row td {
  background: #7c3a0d !important;
  color: #ffffff;
}

/* Inklapbare kaarten: header en plus/min-knop duidelijker maken */
.toggle-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--df-primary-soft);
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
}

.toggle-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  border: 1px solid var(--df-border);
  background: var(--df-surface);
  color: var(--df-text);
  font-weight: 700;
  box-shadow: none;
}

body.dark .toggle-header {
  background: var(--df-primary-soft);
}

body.dark .toggle-icon {
  background: var(--df-surface);
  color: var(--df-text);
  border-color: var(--df-border);
}

/* ===========
   Samenstellingen (product- en variantkoppen)
   =========== */

.product-header-row td {
  background: #252525;
  font-weight: 600;
}

.variant-header-row td {
  background: #1c1c1c;
  font-weight: 500;
}

body.light .product-header-row td {
  background: var(--df-primary-soft);
}

body.light .variant-header-row td {
  background: #f8f9fb;
}

/* ===========
   Login pagina
   =========== */

.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: #1e1e1e;
  background-image: url("../../NieuweWinkel28-01-2026-25.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.login-page::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(18, 18, 18, 0.72);
}

.login-box {
  position: relative;
  z-index: 1;
  background: #ffffff;
  padding: 28px 24px 24px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  width: 360px;
  text-align: center;
  border: 1px solid rgba(222, 165, 164, 0.45);
  color: #2f2933;
}

.login-logo {
  max-width: 180px;
  height: auto;
  margin-bottom: 16px;
}

.login-box form {
  margin-top: 4px;
}

.login-box input[type="text"],
.login-box input[type="password"] {
  margin-top: 8px;
  background: #ffffff;
  color: #2f2933;
  border-color: #d4d0d3;
}

.login-box input:focus {
  background: #ffffff;
  border-color: #dea5a4;
}

.login-box .btn-primary {
  margin-top: 14px;
  width: 100%;
}

.login-error {
  color: #c53030;
  background: #ffe5e7;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 13px;
  margin-bottom: 10px;
}

/* Kleine responsive tweaks */

@media (max-width: 1100px) {
  .dash-grid,
  .dash-modules {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .navbar {
    border-radius: 0;
  }

  .page-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .tiles,
  .dash-grid,
  .dash-modules {
    grid-template-columns: 1fr;
  }
}

.pdf-dropzone{
  border: 2px dashed #6c757d;
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  cursor: pointer;
  user-select: none;

  width: 100%;
  max-width: 420px;
  margin-top: 10px;

  background: #fafafa;
  transition: all 0.15s ease;
}

.pdf-dropzone.dragover{
  border-color: #007bff;
  background: #eef5ff;
}

/* ===========
   Forms, alerts, tables (pickup + admin)
   =========== */

.form-grid {
  display: grid;
  gap: 12px;
  max-width: 520px;
}

.form-grid label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 14px;
  font-weight: 500;
}

.checkbox-label {
  flex-direction: row !important;
  align-items: center;
  gap: 8px !important;
}

.alert {
  padding: 12px 14px;
  border-radius: var(--df-radius-md);
  font-size: 14px;
}

.alert-success {
  background: var(--df-success-soft);
  border: 1px solid #b8dfc8;
}

.alert-danger {
  background: var(--df-danger-soft);
  border: 1px solid #e8b4b4;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.data-table th,
.data-table td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--df-border);
  text-align: left;
  vertical-align: middle;
}

.inline-form {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.btn-sm {
  padding: 4px 10px;
  font-size: 13px;
}

.btn-link {
  background: none;
  border: none;
  color: var(--df-primary-dark);
  cursor: pointer;
  text-decoration: underline;
  font-size: inherit;
  padding: 0;
}

.help-text {
  color: var(--df-text-soft);
  font-size: 13px;
}

/* (oude dropdown navbar stijlen verwijderd; we gebruiken nu drawer menu) */

/* ===========
   Veiling pickup – bezorger UI
   =========== */

.pickup-shell {
  padding-bottom: 88px;
}

.pickup-content {
  max-width: 720px;
}

.pickup-content--cart {
  padding-bottom: 24px;
}

.pickup-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.pickup-category-title {
  margin: 18px 2px 10px;
  font-size: 16px;
  font-weight: 800;
  color: var(--df-text);
}

body.dark .pickup-category-title {
  color: #eee;
}

@media (min-width: 520px) {
  .pickup-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.pickup-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 0;
  border: 2px solid var(--df-border);
  border-radius: var(--df-radius-md);
  background: var(--df-surface);
  cursor: pointer;
  overflow: hidden;
  box-shadow: var(--df-shadow-light);
  transition: transform 0.1s ease, border-color 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.pickup-tile:active {
  transform: scale(0.97);
  border-color: var(--df-primary-dark);
}

.pickup-tile img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
  background: var(--df-primary-soft);
}

.pickup-tile-name {
  padding: 8px 8px 10px;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  line-height: 1.25;
  color: var(--df-text);
}

.pickup-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  min-width: 28px;
  height: 28px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--df-primary-dark);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.pickup-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: var(--df-surface);
  border-top: 1px solid var(--df-border);
  backdrop-filter: blur(8px);
}

body.dark .pickup-footer {
  background: rgba(23, 23, 23, 0.96);
}

.pickup-footer-btn {
  display: block;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
  text-decoration: none;
  opacity: 0.65;
}

.pickup-footer-btn--active {
  opacity: 1;
}

.pickup-cart-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pickup-cart-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--df-border);
}

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

.pickup-cart-thumb,
.pickup-table-thumb {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
  background: var(--df-primary-soft);
}

.pickup-cart-info {
  flex: 1;
  min-width: 0;
}

.pickup-cart-qty {
  display: block;
  color: var(--df-text-soft);
  font-size: 14px;
}

.pickup-cart-minus {
  margin: 0;
}

.pickup-confirm-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.pickup-confirm-form .btn {
  flex: 1;
  min-width: 140px;
  text-align: center;
  justify-content: center;
}

.pickup-stats {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.pickup-stat-value {
  display: block;
  font-size: 28px;
  font-weight: 700;
  color: var(--df-primary-dark);
}

.pickup-stat-label {
  font-size: 13px;
  color: var(--df-text-soft);
}

.pickup-voorraad-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
}

.pickup-voorraad-card {
  text-align: center;
  padding: 10px;
  border: 1px solid var(--df-border);
  border-radius: var(--df-radius-md);
  background: var(--df-surface);
}

.pickup-voorraad-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
}

.pickup-voorraad-qty {
  font-size: 18px;
  font-weight: 700;
  margin: 8px 0 4px;
}

.pickup-voorraad-picked {
  font-size: 12px;
  color: var(--df-text-soft);
  margin: 0;
}

/* (nav mobile al hierboven afgehandeld) */

/* ===========
   HALO Analytics
   =========== */

.halo-shell .halo-content {
  max-width: 1280px;
}

.halo-subnav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  margin-bottom: 20px;
  padding: 12px 16px;
  border: 1px solid var(--df-border);
  border-radius: var(--df-radius-md);
  background: var(--df-surface);
}

body.dark .halo-subnav {
  background: var(--df-surface);
}

.halo-subnav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.halo-subnav-logo {
  display: none;
}

.halo-subnav-sub {
  display: block;
  font-size: 12px;
  color: var(--df-text-soft);
}

.halo-subnav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.halo-subnav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--df-muted);
  font-size: 13px;
  font-weight: 700;
  border: 1px solid transparent;
}

.halo-subnav-link:hover {
  background: var(--df-primary-soft);
}

.halo-subnav-link--active {
  background: var(--df-primary-soft);
  border-color: var(--df-border);
  color: #fff;
}

body.light .halo-subnav-link--active {
  color: var(--df-text);
}

.halo-page-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.halo-import-select select {
  min-width: 280px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--df-border);
  background: var(--df-surface);
}

.halo-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

@media (max-width: 900px) {
  .halo-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.halo-kpi-card {
  padding: 18px;
  border: 1px solid var(--df-border);
  border-radius: var(--df-radius-md);
  background: var(--df-surface);
  box-shadow: var(--df-shadow-light);
}

.halo-kpi-label {
  display: block;
  font-size: 13px;
  color: var(--df-text-soft);
  margin-bottom: 6px;
}

.halo-kpi-value {
  display: block;
  font-size: 32px;
  font-weight: 800;
  line-height: 1.1;
}

.halo-kpi-value--success { color: #2d8a4e; }
.halo-kpi-value--warning { color: #c47a12; }
.halo-kpi-value--danger { color: #c0392b; }

.halo-kpi-sub {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--df-text-soft);
}

.halo-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

@media (max-width: 900px) {
  .halo-two-col {
    grid-template-columns: 1fr;
  }
}

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

.halo-section-subtitle {
  margin: 14px 0 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--df-text-soft);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.halo-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.halo-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid var(--df-border);
}

.halo-list li:last-child {
  border-bottom: none;
}

.halo-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.halo-badge--success { background: #e6f6ec; color: #1f7a3f; }
.halo-badge--warning { background: #fff4e5; color: #a86400; }
.halo-badge--danger { background: #fdecea; color: #b42318; }
.halo-badge--muted { background: #f2f2f2; color: #666; }

body.dark .halo-badge--success { background: #163322; color: #7dcea0; }
body.dark .halo-badge--warning { background: #3a2a10; color: #f0c674; }
body.dark .halo-badge--danger { background: #3a1714; color: #f1998e; }
body.dark .halo-badge--muted { background: #2a2226; color: #bbb; }

.halo-bar-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.halo-bar-list li {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) 2fr auto;
  gap: 8px;
  align-items: center;
  padding: 6px 0;
}

.halo-bar-label {
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.halo-bar-track {
  height: 8px;
  background: var(--df-primary-soft);
  border-radius: 999px;
  overflow: hidden;
}

.halo-bar-fill {
  display: block;
  height: 100%;
  background: var(--df-primary-dark);
  border-radius: 999px;
}

.halo-bar-count {
  font-size: 12px;
  color: var(--df-text-soft);
  min-width: 24px;
  text-align: right;
}

.halo-alert {
  padding: 12px 14px;
  border-radius: 8px;
  margin-bottom: 14px;
  font-size: 14px;
}

.halo-alert--success { background: #e6f6ec; color: #1f5f36; border: 1px solid #b8e6c8; }
.halo-alert--error { background: #fdecea; color: #8a1f17; border: 1px solid #f5c2be; }

.halo-code {
  padding: 10px 12px;
  background: #f7f7f8;
  border-radius: 8px;
  overflow-x: auto;
}

.halo-upload-form .halo-file-label input[type="file"] {
  display: none;
}

.halo-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.halo-filters-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.halo-filters-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.halo-filters-search {
  flex: 1 1 180px;
  min-width: 140px;
  max-width: 280px;
  padding: 8px 12px;
  border: 1px solid var(--df-border);
  border-radius: 999px;
  background: var(--df-surface);
  font-size: 14px;
}

.halo-filters-select,
.halo-filters-date {
  padding: 8px 10px;
  border: 1px solid var(--df-border);
  border-radius: 8px;
  background: var(--df-surface);
  font-size: 13px;
  color: var(--df-text);
  min-width: 0;
}

.halo-filters-select {
  flex: 0 1 auto;
  max-width: 160px;
}

.halo-filters-select:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  background: #f5f5f5;
}

.halo-filters-toolbar-actions {
  display: flex;
  gap: 6px;
  margin-left: auto;
  flex-shrink: 0;
}

.halo-filters-active {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.halo-filters-more {
  border-top: 1px solid var(--df-border);
  padding-top: 8px;
}

.halo-filters-more-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--df-text-soft);
  cursor: pointer;
  user-select: none;
  list-style: none;
  padding: 4px 0;
}

.halo-filters-more-toggle::-webkit-details-marker {
  display: none;
}

.halo-filters-more-toggle::before {
  content: '▸';
  font-size: 11px;
  transition: transform 0.15s ease;
}

.halo-filters-more[open] .halo-filters-more-toggle::before {
  transform: rotate(90deg);
}

.halo-filters-more-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px 0 4px;
}

.halo-filters-more-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.halo-filters-date-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--df-text-soft);
  white-space: nowrap;
}

.halo-filters-date-wrap span {
  font-weight: 600;
}

.halo-filters-date-wrap .halo-filters-date {
  width: auto;
}

.halo-filters-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.halo-filter-pill {
  cursor: pointer;
  margin: 0;
}

.halo-filter-pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.halo-filter-pill span {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--df-border);
  background: var(--df-surface);
  font-size: 12px;
  font-weight: 600;
  color: var(--df-text-soft);
  transition: background 0.12s, border-color 0.12s, color 0.12s;
}

.halo-filter-pill:hover span {
  border-color: var(--df-primary);
  color: var(--df-text);
}

.halo-filter-pill input:checked + span {
  background: var(--df-primary-soft);
  border-color: var(--df-primary);
  color: var(--df-primary-dark);
}

body.dark .halo-filter-pill input:checked + span {
  color: var(--df-primary);
}

/* Legacy / shared */
.halo-filters-grid {
  display: none;
}

.halo-filter-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.halo-filter-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--df-text-soft);
}

.halo-filters-checks {
  display: none;
}

.halo-filters-actions {
  display: none;
}

.halo-filter-field--search {
  flex: 1 1 240px;
  max-width: 420px;
}

.halo-filters-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.halo-filters input[type="search"],
.halo-filters select {
  padding: 8px 10px;
  border: 1px solid var(--df-border);
  border-radius: 8px;
  background: var(--df-surface);
  min-width: 160px;
}

.halo-check-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
}

.halo-conv-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.halo-conv-item-wrap {
  display: flex;
  align-items: stretch;
  gap: 8px;
}

.halo-conv-item-wrap .halo-conv-item {
  flex: 1;
  min-width: 0;
}

.halo-conv-actions {
  display: flex;
  align-items: flex-start;
  padding-top: 10px;
  flex-shrink: 0;
}

.halo-conv-copy {
  border: 1px solid var(--df-border);
  background: var(--df-surface);
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  padding: 8px 10px;
  border-radius: 8px;
  min-width: 42px;
  min-height: 38px;
}

.halo-conv-copy:hover {
  background: var(--df-primary-soft);
  border-color: var(--df-primary);
}

.halo-share-url {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 12px;
  max-width: 720px;
}

.halo-share-url-input {
  flex: 1;
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid var(--df-border, #ddd);
  border-radius: 8px;
  font-size: 13px;
  font-family: ui-monospace, monospace;
  background: #faf8f8;
}

.halo-conv-item {
  display: block;
  padding: 12px 14px;
  border: 1px solid var(--df-border);
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.halo-conv-item:hover {
  border-color: var(--df-primary);
  box-shadow: var(--df-shadow-light);
}

.halo-conv-item-top {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-start;
  margin-bottom: 6px;
}

.halo-conv-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  flex: 1;
  min-width: 0;
}

.halo-conv-id {
  font-weight: 800;
  font-size: 13px;
}

.halo-conv-preview {
  margin: 0 0 8px;
  font-size: 14px;
  color: var(--df-text);
}

.halo-conv-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
  color: var(--df-text-soft);
}

.halo-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}

.halo-page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  border-radius: 8px;
  border: 1px solid var(--df-border);
  text-decoration: none;
  color: var(--df-text);
  font-size: 13px;
}

.halo-page-link--active {
  background: var(--df-primary-dark);
  color: #fff;
  border-color: var(--df-primary-dark);
}

.halo-detail-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: 16px;
  align-items: start;
}

@media (max-width: 960px) {
  .halo-detail-grid {
    grid-template-columns: 1fr;
  }
}

.halo-chat {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 70vh;
  overflow-y: auto;
  padding-right: 4px;
}

.halo-chat-msg {
  max-width: 92%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--df-border);
  background: var(--df-surface-2);
}

.halo-chat-msg--user {
  align-self: flex-end;
  background: #163224;
  border-color: #1f4a34;
}

.halo-chat-msg--assistant {
  align-self: flex-start;
  background: var(--df-surface-2);
}

body.light .halo-chat-msg--user {
  background: #e8f4ea;
  border-color: #c8e6cc;
}

body.light .halo-chat-msg--assistant {
  background: #fff;
}

.halo-chat-msg--system {
  align-self: center;
  max-width: 100%;
  background: #f7f7fb;
  border-style: dashed;
}

.halo-chat-msg--error {
  border-color: #f5c2be;
  background: #fff5f4;
}

.halo-chat-msg-head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 6px;
  font-size: 12px;
}

.halo-chat-msg-who {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: baseline;
}

.halo-chat-msg-time {
  margin-left: auto;
  color: var(--df-text-soft);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.halo-timeline-item-head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: baseline;
  justify-content: space-between;
}

.halo-chat-msg-body {
  font-size: 14px;
  line-height: 1.45;
  word-break: break-word;
}

.halo-chat-msg-tag {
  margin-top: 8px;
  font-size: 12px;
  color: #b42318;
  font-weight: 700;
}

.halo-timeline {
  list-style: none;
  padding: 0;
  margin: 0;
}

.halo-timeline-item {
  display: flex;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--df-border);
  font-size: 13px;
}

.halo-timeline-item:last-child {
  border-bottom: none;
}

.halo-timeline-item--error {
  color: #b42318;
}

.halo-empty {
  text-align: center;
  padding: 32px 20px;
}

.halo-empty .btn {
  margin-top: 12px;
}

.halo-header-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
}

.halo-scope-toggle {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.halo-scope-btn {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--df-border);
  text-decoration: none;
  color: var(--df-text);
  font-size: 13px;
  font-weight: 600;
}

.halo-scope-btn--active {
  background: var(--df-primary-dark);
  color: #fff;
  border-color: var(--df-primary-dark);
}

.halo-kpi-grid--5 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

@media (max-width: 1100px) {
  .halo-kpi-grid--5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.halo-analyzer-form {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: flex-end;
}

.halo-analyzer-form select {
  min-width: 220px;
  padding: 8px 10px;
  border: 1px solid var(--df-border);
  border-radius: 8px;
}

.halo-progress-wrap {
  margin-top: 18px;
}

.halo-progress-bar {
  height: 10px;
  background: var(--df-primary-soft);
  border-radius: 999px;
  overflow: hidden;
}

.halo-progress-fill {
  height: 100%;
  width: 0;
  background: var(--df-primary-dark);
  transition: width 0.3s ease;
}

.halo-run-summary {
  margin-top: 10px;
  font-size: 13px;
}

.halo-cluster-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.halo-cluster-card-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}

.halo-cluster-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 10px 0;
  font-size: 14px;
}

.halo-code--block {
  white-space: pre-wrap;
  max-height: 420px;
  overflow-y: auto;
  font-size: 12px;
  line-height: 1.45;
}

.halo-overall-score {
  font-size: 42px;
  font-weight: 800;
  line-height: 1;
  margin: 8px 0 14px;
}

.halo-overall-score span {
  font-size: 18px;
  font-weight: 600;
  color: var(--df-text-soft);
}

.halo-score--good { color: #2d8a4e; }
.halo-score--mid { color: #c47a12; }
.halo-score--bad { color: #c0392b; }

.halo-score-list {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
}

.halo-score-list li {
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
  border-bottom: 1px solid var(--df-border);
  font-size: 14px;
}

.halo-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.halo-timeline-item--ai {
  background: #f7f3ff;
  border-radius: 8px;
  padding: 6px;
}

body.dark .halo-timeline-item--ai {
  background: #2a2233;
}

.halo-delta {
  display: block;
  font-size: 12px;
  margin-top: 4px;
  color: var(--df-text-soft);
}
.halo-delta--up { color: #2d8a4e; }
.halo-delta--down { color: #c0392b; }

.halo-kpi-card--link {
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.halo-kpi-card--link:hover {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}

.halo-compare-form,
.halo-analyzer-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: end;
}
.halo-compare-form select,
.halo-analyzer-form select {
  min-width: 220px;
}

.halo-filter-tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: #f3ecec;
  font-size: 12px;
  color: var(--df-text-soft);
}

.halo-badge--low-vol {
  font-size: 10px;
  vertical-align: middle;
  margin-left: 4px;
}

.halo-alert--warning {
  background: #fff8e6;
  border: 1px solid #e8d4a8;
  color: #6b5a2e;
}

.halo-import-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.halo-inline-form {
  display: inline;
  margin: 0;
}

.halo-btn-danger {
  background: #fff5f4;
  color: #b42318;
  border: 1px solid #f5c2be;
}

.halo-btn-danger:hover {
  background: #fde8e6;
}

.halo-import-report .halo-list {
  margin-top: 12px;
}


.halo-filters--wide {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px;
  align-items: end;
}

.halo-filters--wide input[type="search"] {
  grid-column: span 2;
}

.halo-filters--wide .btn {
  grid-column: span 1;
}

.halo-export-btn {
  white-space: nowrap;
}

@media (max-width: 640px) {
  .halo-filters-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .halo-filters-search {
    max-width: none;
  }

  .halo-filters-select {
    max-width: none;
    width: 100%;
  }

  .halo-filters-toolbar-actions {
    margin-left: 0;
    width: 100%;
  }

  .halo-filters-toolbar-actions .btn {
    flex: 1;
  }

  .halo-filters-more-grid .halo-filters-select {
    width: 100%;
    max-width: none;
  }

  .halo-conv-item-wrap {
    flex-direction: column;
    gap: 0;
  }

  .halo-conv-actions {
    padding: 0 14px 10px;
    justify-content: flex-end;
  }
}

.halo-badge--review {
  background: #fff8e6;
  color: #a86400;
}

.halo-badge--tag {
  background: #eef0ff;
  color: #4a52a8;
}

body.dark .halo-badge--review { background: #3a2a10; color: #f0c674; }
body.dark .halo-badge--tag { background: #22263a; color: #aab4ff; }

.halo-change-form .halo-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.halo-form-span2 {
  grid-column: span 2;
}

.halo-change-form label span,
.halo-review-form label span,
.halo-review-form legend {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--df-text-soft);
  margin-bottom: 4px;
}

.halo-change-form input,
.halo-change-form select,
.halo-change-form textarea,
.halo-review-form textarea {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--df-border);
  border-radius: 8px;
  background: var(--df-surface);
}

.halo-change-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.halo-change-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--df-border);
}

.halo-change-item:last-child {
  border-bottom: none;
}

.halo-change-item-head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 6px;
}

.halo-change-title {
  margin: 0 0 6px;
  font-size: 15px;
}

.halo-change-delete {
  margin-top: 8px;
}

.halo-change-marker-list {
  margin: 0;
  padding-left: 18px;
}

.halo-change-marker-list li {
  margin-bottom: 6px;
}

.halo-review-form fieldset {
  border: none;
  padding: 0;
  margin: 0 0 12px;
}

.halo-review-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}

.halo-review-mark {
  font-weight: 600;
  margin-bottom: 10px;
}

.halo-review-form textarea {
  margin-bottom: 10px;
}

@media (max-width: 640px) {
  .halo-change-form .halo-form-grid {
    grid-template-columns: 1fr;
  }
  .halo-form-span2 {
    grid-column: span 1;
  }
}
