/* admin.bouwplan.net (2026-11-09, as Lakender): the styles of the backoffice (css/base.css, css/bouwplan.css and the
   components), with a purple topbar and menu instead of the dark blue, and the word ADMIN after the name: you always see
   where you are. Loaded last, so these tokens win. */
:root {
  --nav-bg: #2a1f38;
  --nav-line: #3a2d4b;
  --nav-fg: #e0d8e8;
  --nav-dim: #b5a8c4;
  --nav-strong: #ffffff;
  --nav-hover: #34284a;
  --nav-active: #3d2e50;
  --nav-accent: #d3a2f0;
}

x-topbar .name::after {
  content: "ADMIN";
  margin-left: 10px;
  padding: 3px 8px;
  border-radius: 10px;
  background: var(--nav-accent);
  color: var(--nav-bg);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  vertical-align: middle;
}

/* x-navigation always has Instellingen at the bottom (the backoffice); admin has none */
x-navigation .foot > [data-page] { display: none; }

/* The red numbers in the menu (js/main.js, x-navigation.setBadge) */
x-navigation .item .badge:not(.done) { background: var(--danger); color: #ffffff; }

/* The pages with a table (Bedrijven, Mails, Taken, Onze mails): cards under each other, a wide table scrolls inside its card */
.page.list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  align-content: start;
  max-width: 1400px;

  h1 { margin: 0; font-size: 22px; }
  .card { padding: 18px 22px; min-width: 0; }
  .card h2 { margin: 0 0 4px; font-size: 18px; }
  .card h3 { margin: 18px 0 8px; font-size: 14px; color: var(--fg-2); }
  .sub { margin: 0 0 14px; color: var(--fg-3); }
  .note { margin: 12px 0 0; color: var(--fg-3); font-size: 12.5px; }

  .table .number { text-align: right; }
  .table tr.click.selected td { background: var(--accent-soft); }
  /* The state with its error under it: at most two lines, the whole text in its tooltip */
  .status { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; white-space: normal; }
  .error-text {
    color: var(--danger);
    max-width: 380px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow-wrap: anywhere;
  }
}

/* A filter row of buttons (Bedrijven: Wachten / Goedgekeurd / Geblokkeerd / Alles; Onze mails: the kinds) */
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.chips .chip {
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--input-bg);
  font: inherit;
  font-size: 13px;
  color: var(--fg-2);
  cursor: pointer;
}
.chips .chip.active { background: var(--accent-soft); border-color: var(--accent); color: var(--fg); font-weight: 600; }

/* A question inline (js/ui.js ui.ask): the text with Annuleren and the button that does it */
.ask { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 6px; background: var(--warn-soft); }
.ask .ask-text { flex: 1 1 240px; }

.pill.danger { background: var(--danger-soft); color: var(--danger); }

