/* ============================================================
   Fleet Dashboard — ZendIQ Premium
   ============================================================ */

:root {
  /* Steep-pass: "serif analytics on warm paper" — warm papier-canvas,
     inkt-neutralen, hairlines, één chromatisch accent (ZendIQ-groen).
     Serif alleen op display-formaten, altijd weight 400. */
  --bg: #f5f3f0;
  --white: #ffffff;
  --black: #17191c;
  --gray: #4a4f58;
  --gray-light: #83878f;
  --gray-border: #eae7e1;
  --green: #0d9448;
  --green-dark: #087a3a;
  --green-bg: #eef8f1;
  --green-shadow: rgba(13, 148, 72, .25);
  --red: #dc2626;
  --red-bg: #fef2f2;
  --blue: #2563eb;
  --blue-bg: #eff6ff;
  --orange: #ea580c;
  --orange-bg: #fff7ed;
  --bg-soft: #f3f1ed;
  --gray-border-strong: #d6d2cb;
  --sidebar-bg: #131519;
  --sidebar-text: #999;
  --sidebar-hover: #1d2025;
  --sidebar-active: var(--green);
  --radius: 12px;
  --radius-card: 20px;
  --radius-pill: 999px;
  --font-serif: 'Source Serif 4', 'Times New Roman', serif;
  /* Schaduw alleen voor zwevende elementen (modals, popovers) */
  --shadow-float: 0 0 0 1px rgba(0, 0, 0, .05), 0 8px 40px rgba(0, 0, 0, .10);
  --display-xl: 40px;
  --display-lg: 34px;
  --display-md: 22px;
}

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

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--black);
  line-height: 1.5;
  min-height: 100vh;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================================
   LOGIN
   ============================================================ */

.login-screen {
  display: flex; align-items: center; justify-content: center;
  min-height: 100vh; padding: 24px;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(13,148,72,.10), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(13,148,72,.08), transparent 55%),
    linear-gradient(145deg, var(--bg) 0%, #ebe7e1 100%);
}

.login-shell {
  display: grid; grid-template-columns: 420px 440px; width: 100%; max-width: 860px;
  border-radius: 24px; overflow: hidden;
  box-shadow: 0 24px 70px rgba(15, 40, 25, .16), 0 2px 8px rgba(0,0,0,.05);
  animation: cardIn .5s ease forwards;
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.login-brand {
  display: flex; flex-direction: column; justify-content: space-between; gap: 28px;
  padding: 48px 44px;
  color: #fff;
  background:
    radial-gradient(500px 300px at 110% -20%, rgba(255,255,255,.14), transparent 60%),
    linear-gradient(160deg, #0f7a3e 0%, #0d9448 55%, #0a6e37 100%);
}

.login-brand-logo {
  width: 56px; height: 56px; background: rgba(255,255,255,.14); color: #fff;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 16px; display: inline-flex; align-items: center; justify-content: center;
  font-size: 28px; font-weight: 700; font-family: serif; margin-bottom: 18px;
  backdrop-filter: blur(4px);
}

.login-brand-name { font-size: 30px; font-weight: 800; letter-spacing: -.8px; margin-bottom: 10px; }
.login-brand-name span { opacity: .75; }
.login-brand-tagline {
  font-family: var(--font-serif); font-style: italic;
  font-size: 17px; line-height: 1.5; opacity: .94; max-width: 28ch;
}

.login-brand-points { list-style: none; display: flex; flex-direction: column; gap: 12px; padding: 0; margin: 0; }
.login-brand-points li {
  position: relative; padding-left: 26px; font-size: 13.5px; line-height: 1.45; opacity: .92;
}
.login-brand-points li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  width: 17px; height: 17px; border-radius: 50%;
  background: rgba(255,255,255,.18); font-size: 10px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
}
.login-brand-foot { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; opacity: .55; }

.login-card {
  background: var(--white);
  padding: 48px 44px; width: 100%;
  text-align: left;
  display: flex; flex-direction: column; justify-content: center;
}

.login-eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--green); margin-bottom: 10px;
}
.login-card h1 {
  font-family: var(--font-serif); font-style: italic;
  font-size: 34px; font-weight: 400; margin-bottom: 8px; letter-spacing: -.5px;
}
.login-subtitle { color: var(--gray-light); margin-bottom: 28px; font-size: 14.5px; font-weight: 500; line-height: 1.55; }

.login-code-input {
  letter-spacing: .45em; font-size: 22px !important; font-weight: 700; text-align: center;
  font-variant-numeric: tabular-nums;
}

.login-secure {
  display: flex; align-items: center; gap: 8px; justify-content: center;
  margin-top: 22px; font-size: 12.5px; color: var(--gray-light); font-weight: 500;
}
.login-secure svg { width: 14px; height: 14px; }

@media (max-width: 920px) {
  .login-shell { grid-template-columns: 1fr; max-width: 460px; }
  .login-brand { padding: 32px 36px; gap: 18px; }
  .login-brand-points, .login-brand-foot { display: none; }
  .login-brand-logo { width: 44px; height: 44px; font-size: 22px; margin-bottom: 10px; }
  .login-brand-name { font-size: 24px; margin-bottom: 6px; }
  .login-card { padding: 36px 36px 40px; }
}

.login-card label {
  display: block; text-align: left; font-size: 12px; font-weight: 600;
  margin-bottom: 6px; color: var(--gray); text-transform: uppercase; letter-spacing: .5px;
}

.login-card input {
  width: 100%; padding: 14px 16px; border: 1.5px solid var(--gray-border);
  border-radius: 10px; font-size: 16px; font-family: inherit; margin-bottom: 14px;
  outline: none; transition: border-color .2s, box-shadow .2s; background: var(--bg);
}

.login-card input:focus { border-color: var(--green); box-shadow: 0 0 0 3px var(--green-shadow); background: var(--white); }
.login-card input::placeholder { color: #bbb; }
.login-error { color: var(--red); font-size: 13px; margin-top: 10px; min-height: 20px; }

.login-remember {
  display: flex !important;
  align-items: center;
  gap: 8px;
  margin: 8px 0 14px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  color: var(--gray) !important;
  cursor: pointer;
  user-select: none;
  text-transform: none !important;
  letter-spacing: 0 !important;
}

.login-remember input[type="checkbox"] {
  width: 16px !important;
  height: 16px;
  margin: 0 !important;
  padding: 0 !important;
  border: 1.5px solid var(--gray-border) !important;
  border-radius: 4px !important;
  background: var(--white) !important;
  cursor: pointer;
  accent-color: var(--green);
  flex-shrink: 0;
}

/* ============================================================
   BUTTONS
   Canonieke namen: btn-primary (gevuld groen), btn-secondary (outlined),
   btn-danger (rood), btn-tertiary (tekst-link). btn-link-ext blijft apart
   voor externe links in modals. btn-edit en btn-text zijn legacy-aliassen
   voor btn-tertiary — niet meer gebruiken in nieuwe HTML.
   ============================================================ */

.btn-primary {
  width: 100%; padding: 14px 22px; background: var(--green); color: #fff; border: none;
  border-radius: var(--radius-pill); font-size: 15px; font-weight: 700; font-family: inherit; cursor: pointer;
  letter-spacing: -.1px;
  transition: background .15s, transform .1s;
  margin-top: 4px;
}

.btn-primary:hover { background: var(--green-dark); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn-primary.btn-sm { width: auto; padding: 10px 18px; font-size: 13px; margin-top: 0; white-space: nowrap; }
.btn-secondary.btn-sm { white-space: nowrap; }

/* Empty-state CTA: gewone knopbreedte, niet de login-volle-breedte */
.empty-state-cta { width: auto !important; padding: 12px 26px; margin-top: 8px; }

.btn-secondary {
  width: 100%; padding: 12px 22px; background: transparent; color: var(--black);
  border: 1.5px solid var(--black); border-radius: var(--radius-pill); font-size: 14px;
  font-weight: 600; font-family: inherit; cursor: pointer; margin-top: 10px;
  transition: background .15s, color .15s;
}
.btn-secondary:hover { background: var(--black); color: #fff; }
.btn-secondary.btn-sm { width: auto; padding: 8px 14px; font-size: 13px; margin-top: 0; }

.btn-danger { background: none; border: none; color: var(--red); font-size: 13px; font-family: inherit; cursor: pointer; padding: 6px 10px; border-radius: 6px; transition: background .15s; }
.btn-danger:hover { background: var(--red-bg); }

.btn-edit, .btn-text, .btn-tertiary {
  background: transparent; border: none; color: var(--gray);
  font-size: 13px; font-weight: 600; font-family: inherit;
  cursor: pointer; padding: 6px 0; border-radius: 4px;
  transition: color .15s;
}
.btn-edit:hover, .btn-text:hover, .btn-tertiary:hover {
  color: var(--black); text-decoration: underline;
}

/* Keyboard focus-styles — alleen :focus-visible zodat muis-clicks geen
   outline triggeren */
.nav-item:focus-visible,
.period-pill:focus-visible,
.preset-btn:focus-visible,
.btn-secondary:focus-visible,
.btn-danger:focus-visible,
.btn-tertiary:focus-visible,
.btn-edit:focus-visible,
.btn-text:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.stat-card[tabindex]:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
  border-radius: inherit;
}

/* btn-primary heeft groene achtergrond — zwart contrast geeft meer
   zichtbaarheid */
.btn-primary:focus-visible {
  outline: 2px solid var(--black);
  outline-offset: 2px;
  border-radius: inherit;
}

.select-sm {
  padding: 8px 12px; border: 1.5px solid var(--gray-border); border-radius: 8px;
  font-size: 13px; font-family: inherit; background: var(--white); cursor: pointer;
  outline: none; transition: border-color .2s;
}
.select-sm:focus { border-color: var(--green); }

.search-input {
  padding: 8px 12px; border: 1.5px solid var(--gray-border); border-radius: 8px;
  font-size: 13px; font-family: inherit; background: var(--white); width: 180px;
  outline: none; transition: border-color .2s;
}
.search-input:focus { border-color: var(--green); }

.header-controls {
  display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
}

/* Date picker group */
.date-picker-group {
  display: flex; align-items: center;
  background: var(--white); border: 1.5px solid var(--gray-border);
  border-radius: 10px; overflow: hidden;
}

.date-picker-presets {
  display: flex; border-right: 1.5px solid var(--gray-border);
}

.preset-btn {
  padding: 7px 14px; border: none; background: transparent;
  font-size: 12px; font-weight: 600; font-family: inherit;
  color: var(--gray-light); cursor: pointer;
  transition: all .2s ease; white-space: nowrap;
}

.preset-btn:hover:not(.active) { background: var(--bg); color: var(--gray); }

.preset-btn.active {
  background: var(--green); color: #fff;
}

.preset-btn:first-child { border-radius: 8px 0 0 8px; }

.date-picker-range {
  display: flex; align-items: center; gap: 4px; padding: 0 8px;
}

.date-input-slim {
  padding: 6px 8px; border: none; background: transparent;
  font-size: 12px; font-family: inherit; color: var(--gray);
  outline: none; width: 120px; cursor: pointer;
}

.date-input-slim:focus { color: var(--black); }

.date-separator {
  color: var(--gray-light); font-size: 12px;
}

/* Legacy compat */
.date-range { display: flex; align-items: center; gap: 8px; }
.date-label { display: flex; align-items: center; gap: 4px; font-size: 13px; color: var(--gray); white-space: nowrap; }
.date-input { padding: 8px 12px; border: 1.5px solid var(--gray-border); border-radius: 8px; font-size: 13px; font-family: inherit; background: var(--white); outline: none; }
.date-input:focus { border-color: var(--green); }

th.sortable { cursor: pointer; user-select: none; }
th.sortable:hover { background: rgba(0,0,0,0.05); }

.sort-arrow { font-size: 10px; opacity: .7; }

/* ============================================================
   SIDEBAR
   ============================================================ */

.sidebar {
  position: fixed; left: 0; top: 0; bottom: 0; width: 240px;
  background: var(--sidebar-bg); display: flex; flex-direction: column;
  z-index: 150; transition: transform .3s ease;
}

.sidebar-brand {
  padding: 24px 20px; display: flex; align-items: center; gap: 10px;
  border-bottom: 1px solid #222;
}

.sidebar-logo {
  width: 36px; height: 36px; background: var(--green); color: #fff;
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 700; font-family: serif;
  box-shadow: 0 2px 8px var(--green-shadow);
}

.sidebar-title { font-size: 18px; font-weight: 800; color: #fff; letter-spacing: -.4px; }

.sidebar-nav { flex: 1; padding: 16px 12px; display: flex; flex-direction: column; gap: 4px; }

.nav-item {
  display: flex; align-items: center; gap: 12px; padding: 11px 14px;
  border-radius: 8px; border: none; background: none; color: var(--sidebar-text);
  font-size: 14px; font-weight: 600; font-family: inherit; cursor: pointer;
  letter-spacing: -.1px;
  transition: background .15s, color .15s; text-align: left; width: 100%;
}

.nav-item svg {
  width: 20px; height: 20px; fill: none; stroke: currentColor;
  stroke-width: 1.85; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0;
}

.nav-item:hover { background: var(--sidebar-hover); color: #fff; }
.nav-item.active { background: #fff; color: var(--black); }

.nav-badge {
  min-width: 18px; height: 18px; border-radius: 50%;
  background: var(--red); color: white; font-size: 11px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
  margin-left: auto; padding: 0 5px;
}

.sidebar-footer { padding: 16px; border-top: 1px solid #222; }

.sidebar-user { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }

.user-avatar {
  width: 36px; height: 36px; border-radius: 50%; background: var(--green);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; flex-shrink: 0;
}

.user-name { font-size: 13px; font-weight: 600; color: #fff; }
.user-role { font-size: 11px; color: var(--sidebar-text); }

.btn-logout-sidebar {
  width: 100%; padding: 8px; background: none; border: 1px solid #333;
  border-radius: 8px; color: var(--sidebar-text); font-size: 13px;
  font-family: inherit; cursor: pointer; transition: border-color .2s, color .2s;
}
.btn-logout-sidebar:hover { border-color: #666; color: #ccc; }

.sidebar-overlay {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 140;
}

/* ============================================================
   MAIN CONTENT
   ============================================================ */

.main-content {
  margin-left: 240px; min-height: 100vh; padding: 40px 36px;
}

.mobile-header { display: none; }

/* ============================================================
   PAGE HEADER
   ============================================================ */

.page-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: 32px; gap: 16px;
}

.page-header-text { display: flex; flex-direction: column; gap: 6px; }
.page-header h1 {
  font-family: var(--font-serif);
  font-size: var(--display-lg); font-weight: 400;
  letter-spacing: -.5px; line-height: 1.15; color: var(--black);
}
.page-sub { color: var(--gray-light); font-size: 15px; font-weight: 500; }
.page-eyebrow {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--gray-light);
  letter-spacing: 0;
  margin-bottom: 4px;
  text-transform: none;
}

/* ============================================================
   NOTIFICATIONS LIST
   ============================================================ */

.notif-meta-bar {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 14px;
}
.notif-count {
  font-size: 12px; font-weight: 600; color: var(--gray-light);
  letter-spacing: -.1px;
}
.notif-list {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius);
  overflow: hidden;
}
.notif-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 20px 16px 18px;
  border-bottom: 1px solid var(--gray-border);
  transition: background .12s ease;
  position: relative;
}
.notif-item:last-child { border-bottom: none; }
.notif-item:hover { background: rgba(0,0,0,.012); }
.notif-item--unread {
  background: linear-gradient(90deg, rgba(13,148,72,.04) 0%, transparent 30%);
}
.notif-item--unread::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--green);
}
.notif-mark {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 12.5px;
  font-weight: 600;
  color: #fff;
  letter-spacing: -.3px;
  margin-top: 1px;
}
.notif-mark--person { color: #fff; }
.notif-mark--platform { padding: 0; }
.notif-mark--platform svg { display: block; }
.notif-mark--system {
  background: var(--white);
  color: var(--gray);
  border: 1px solid var(--gray-border);
  font-family: serif;
  font-weight: 500;
  font-size: 16px;
}
.notif-mark--success {
  background: var(--green-bg);
  color: var(--green-dark);
  border: none;
  font-family: inherit;
  font-weight: 700;
}
.notif-mark--error {
  background: var(--red-bg);
  color: var(--red);
  border: none;
  font-family: inherit;
  font-weight: 700;
}
.notif-mark--warning {
  background: var(--orange-bg);
  color: var(--orange);
  border: none;
  font-family: inherit;
  font-weight: 700;
}
.notif-body { flex: 1; min-width: 0; padding-top: 1px; }
.notif-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--black);
  letter-spacing: -.15px;
  margin-bottom: 3px;
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.notif-sub {
  font-size: 13px;
  color: var(--gray-light);
  line-height: 1.4;
  letter-spacing: -.05px;
}
.notif-time {
  font-size: 12px;
  color: var(--gray-light);
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 3px;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.1px;
}
.notif-tag {
  display: inline-flex;
  align-items: center;
  padding: 1px 7px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0;
}
.notif-tag--error {
  background: var(--red-bg);
  color: var(--red);
}
.notif-tag--info {
  background: var(--blue-bg);
  color: var(--blue);
}
@media (max-width: 600px) {
  .notif-item { flex-wrap: wrap; padding: 14px 16px 14px 14px; }
  .notif-time { width: 100%; padding-left: 48px; margin-top: 4px; }
}

/* ============================================================
   PERIOD PILLS
   ============================================================ */

.period-pills {
  display: flex; align-items: center;
  background: var(--white); border: 1.5px solid var(--gray-border);
  border-radius: var(--radius-pill); padding: 4px; gap: 2px;
}

.period-pill {
  padding: 9px 20px; border: none; border-radius: var(--radius-pill);
  font-size: 13px; font-weight: 700; font-family: inherit;
  background: transparent; color: var(--gray);
  cursor: pointer; white-space: nowrap;
  letter-spacing: -.1px;
  transition: background .15s, color .15s;
}

.period-pill:hover:not(.active) {
  background: var(--bg); color: var(--black);
}

.period-pill.active {
  background: var(--black); color: #fff;
}

/* ============================================================
   STATS ROW
   ============================================================ */






.stat-delta {
  display: inline-flex; align-items: center;
  padding: 2px 7px; border-radius: 5px;
  font-size: 11.5px; font-weight: 600;
  letter-spacing: -.1px;
  font-variant-numeric: tabular-nums;
}
.stat-delta--good { background: var(--green-bg); color: var(--green-dark); }
.stat-delta--bad { background: var(--red-bg); color: var(--red); }
.stat-delta--neutral { background: var(--bg-soft); color: var(--gray); }

.stat-number {
  font-family: var(--font-serif);
  font-size: var(--display-lg); font-weight: 400;
  letter-spacing: -.5px; line-height: 1.05;
  font-variant-numeric: tabular-nums;
}
.stat-label {
  font-size: 12px; color: var(--gray-light);
  text-transform: none; letter-spacing: -.1px; font-weight: 500;
}

/* ============================================================
   CHAUFFEUR CARDS
   ============================================================ */

.chauffeur-cards {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px;
}

.ch-card {
  background: var(--white); border: 1px solid var(--gray-border);
  border-radius: var(--radius-card); padding: 20px;
  transition: border-color .15s, transform .15s;
}
.ch-card:hover { border-color: var(--black); transform: translateY(-2px); }

.ch-card-header { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }

.ch-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 800; color: #fff; flex-shrink: 0;
  letter-spacing: -.2px;
}

.ch-name { font-size: 15px; font-weight: 700; letter-spacing: -.2px; }
.ch-plate { font-size: 11px; color: var(--gray-light); margin-top: 2px; font-variant-numeric: tabular-nums; }

.ch-stats { display: flex; gap: 16px; padding-top: 14px; border-top: 1px solid var(--gray-border); margin-top: 4px; }

.ch-stat-item { flex: 1; }
.ch-stat-value { font-size: 18px; font-weight: 800; letter-spacing: -.4px; font-variant-numeric: tabular-nums; }
.ch-stat-label { font-size: 10px; color: var(--gray-light); text-transform: uppercase; letter-spacing: .8px; font-weight: 600; }

.status-actief { display: inline-block; padding: 4px 12px; border-radius: var(--radius-pill); font-size: 11px; font-weight: 700; letter-spacing: .3px; text-transform: uppercase; background: var(--green-bg); color: var(--green); }
.status-uitgenodigd { display: inline-block; padding: 4px 12px; border-radius: var(--radius-pill); font-size: 11px; font-weight: 700; letter-spacing: .3px; text-transform: uppercase; background: #fef9c3; color: #a16207; }

/* ============================================================
   TABLES
   ============================================================ */

.table-container { overflow-x: auto; }

table {
  width: 100%; border-collapse: collapse; background: var(--white);
  border-radius: var(--radius-card); overflow: hidden; border: 1px solid var(--gray-border);
}

th, td { padding: 14px 16px; text-align: left; font-size: 14px; border-bottom: 1px solid var(--gray-border); }
td { font-variant-numeric: tabular-nums; }
th { background: var(--white); font-weight: 600; font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--gray-light); padding: 14px 16px; border-bottom: 1px solid var(--gray-border); }
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--bg-soft); }

.text-right { text-align: right; }
.text-green { color: var(--green); font-weight: 600; }
.text-red { color: var(--red); font-weight: 600; }
.text-muted { color: var(--gray-light); }

/* ============================================================
   CARDS
   ============================================================ */

.card {
  background: var(--white); border: 1px solid var(--gray-border);
  border-radius: var(--radius); padding: 24px;
}

.card h3 { font-size: 16px; margin-bottom: 12px; }

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

/* ============================================================
   TAB CONTENT
   ============================================================ */

.tab-content { display: none; animation: fadeIn .3s ease; }
.tab-content.active { display: block; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

h2 { font-size: 18px; font-weight: 700; margin-bottom: 16px; }

/* ============================================================
   MODAL
   ============================================================ */

.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.5);
  display: flex; align-items: center; justify-content: center;
  z-index: 200; padding: 20px; backdrop-filter: blur(4px);
}

.modal {
  background: var(--white); border-radius: var(--radius-card); padding: 32px;
  max-width: 480px; width: 100%; max-height: 90vh; overflow-y: auto;
  box-shadow: var(--shadow-float);
  animation: modalIn .3s ease;
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.modal-header h3 { font-size: 22px; font-weight: 800; letter-spacing: -.6px; }
.modal-close { background: none; border: none; font-size: 24px; color: var(--gray-light); cursor: pointer; padding: 4px; line-height: 1; border-radius: 6px; transition: background .15s; }
.modal-close:hover { background: var(--bg); }

.modal label { display: block; font-size: 12px; font-weight: 600; color: var(--gray); margin-bottom: 4px; margin-top: 14px; text-transform: uppercase; letter-spacing: .3px; }
.modal label:first-of-type { margin-top: 0; }

.modal input, .modal select {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--gray-border);
  border-radius: 10px; font-size: 14px; font-family: inherit; outline: none;
  background: var(--bg); transition: border-color .2s, box-shadow .2s;
}

.modal input:focus, .modal select:focus { border-color: var(--green); box-shadow: 0 0 0 3px var(--green-shadow); background: var(--white); }

.modal-actions { display: flex; gap: 10px; margin-top: 24px; }
.modal-actions .btn-secondary { width: auto; flex: 1; margin-top: 0; }
.modal-actions .btn-primary { flex: 1; margin-top: 0; }

/* ============================================================
   SUBSCRIPTION PAGE
   ============================================================ */

.sub-current {
  background: var(--white); border: 1px solid var(--gray-border);
  border-radius: var(--radius); padding: 28px; margin-bottom: 24px;
}

.sub-current-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: 24px;
}

.sub-plan-label {
  font-size: 11px; font-weight: 600; text-transform: uppercase;
  letter-spacing: .5px; color: var(--gray-light); margin-bottom: 4px;
}

.sub-plan-name { font-family: var(--font-serif); font-size: 30px; font-weight: 400; letter-spacing: -.4px; }

.sub-status {
  padding: 6px 14px; border-radius: 20px; font-size: 12px; font-weight: 600;
}

.sub-status-active { background: var(--green-bg); color: var(--green); }
.sub-status-free { background: var(--bg); color: var(--gray-light); }

.sub-details {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0;
  border-top: 1px solid var(--gray-border);
}

.sub-detail {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 0; border-bottom: 1px solid var(--gray-border);
}

.sub-detail:nth-child(odd) { padding-right: 20px; border-right: 1px solid var(--gray-border); }
.sub-detail:nth-child(even) { padding-left: 20px; }
.sub-detail:nth-last-child(-n+2) { border-bottom: none; }

.sub-detail-label { font-size: 13px; color: var(--gray-light); }
.sub-detail-value { font-size: 14px; font-weight: 600; }

/* Included features */
.sub-included {
  background: var(--white); border: 1px solid var(--gray-border);
  border-radius: var(--radius); padding: 28px; margin-bottom: 24px;
}

.sub-included h2 { font-size: 16px; font-weight: 700; margin-bottom: 20px; }

.sub-included-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0;
}

.sub-included-item {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 16px 0; border-bottom: 1px solid var(--gray-border);
}

.sub-included-item:nth-child(odd) { padding-right: 20px; border-right: 1px solid var(--gray-border); }
.sub-included-item:nth-child(even) { padding-left: 20px; }
.sub-included-item:nth-last-child(-n+2) { border-bottom: none; }

.sub-included-check {
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--green-bg); color: var(--green);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; flex-shrink: 0;
}

.sub-included-title { font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.sub-included-desc { font-size: 12px; color: var(--gray-light); }

/* Billing */
.sub-billing {
  background: var(--white); border: 1px solid var(--gray-border);
  border-radius: var(--radius); padding: 28px; margin-bottom: 24px;
}

.sub-billing h2 { font-size: 16px; font-weight: 700; margin-bottom: 16px; }

.sub-billing-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 0; border-bottom: 1px solid var(--gray-border);
  font-size: 13px; color: var(--gray);
}

.sub-billing-row:last-child { border-bottom: none; }
.sub-billing-value { font-weight: 600; color: var(--black); }

/* Help */
.sub-help {
  background: var(--bg); border: 1px solid var(--gray-border);
  border-radius: var(--radius); padding: 20px; text-align: center;
}

.sub-help p { font-size: 13px; color: var(--gray-light); }
.sub-help a { color: var(--green); text-decoration: none; font-weight: 500; }
.sub-help a:hover { text-decoration: underline; }

/* ============================================================
   ALERTS
   ============================================================ */

.alerts-block { margin-bottom: 24px; display: flex; flex-direction: column; gap: 8px; }

.alert-card {
  background: #fff7ed; border: 1px solid #fed7aa; border-radius: var(--radius);
  padding: 14px 18px; display: flex; align-items: center; justify-content: space-between;
  gap: 12px; animation: fadeIn .3s ease;
}

.alert-text { font-size: 14px; color: #9a3412; flex: 1; }

.alert-close {
  background: none; border: none; font-size: 18px; color: #c2410c;
  cursor: pointer; padding: 2px 6px; border-radius: 4px; line-height: 1;
  transition: background .15s;
}
.alert-close:hover { background: rgba(194, 65, 12, .1); }



























/* ============================================================
   SETTINGS
   ============================================================ */

.settings-section {
  background: var(--white); border: 1px solid var(--gray-border);
  border-radius: var(--radius); padding: 28px;
}

.settings-section h2 { font-size: 16px; font-weight: 700; margin-bottom: 20px; }

.setting-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 0; border-top: 1px solid var(--gray-border);
}

.setting-info { flex: 1; }
.setting-label { font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.setting-sublabel { font-size: 12px; color: var(--gray-light); }

.toggle { position: relative; display: inline-block; width: 48px; height: 26px; flex-shrink: 0; }
.toggle input { opacity: 0; width: 0; height: 0; }

.toggle-slider {
  position: absolute; cursor: pointer; inset: 0;
  background: var(--gray-border); border-radius: 26px;
  transition: background .3s;
}

.toggle-slider::before {
  content: ""; position: absolute; height: 20px; width: 20px;
  left: 3px; bottom: 3px; background: var(--white); border-radius: 50%;
  transition: transform .3s; box-shadow: 0 1px 3px rgba(0,0,0,.15);
}

.toggle input:checked + .toggle-slider { background: var(--green); }
.toggle input:checked + .toggle-slider::before { transform: translateX(22px); }

/* ============================================================
   LOADING & EMPTY
   ============================================================ */

.loading {
  color: var(--gray-light); font-size: 13px; padding: 40px 0;
  text-align: center; letter-spacing: .3px;
}

.empty-state {
  text-align: center; padding: 56px 24px; color: var(--gray-light);
  background: var(--white); border: 1px solid var(--gray-border);
  border-radius: var(--radius);
}
.empty-state p { font-size: 13px; line-height: 1.6; }

.empty-earnings-cta {
  background: var(--green-bg); border: 1px solid rgba(13,148,72,.2);
  border-radius: var(--radius); padding: 16px 20px; margin-bottom: 20px;
  font-size: 13px; color: var(--gray); line-height: 1.6;
}

/* ============================================================
   BOETES
   ============================================================ */

.fine-upload-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-card);
  padding: 16px 18px;
  margin-bottom: 14px;
}
.fine-upload-card strong { font-size: 14px; letter-spacing: -.1px; }
.fine-upload-card p {
  font-size: 13px;
  color: var(--gray-light);
  margin-top: 2px;
  line-height: 1.45;
}
#fine-upload-status {
  font-size: 12px;
  color: var(--gray);
  white-space: nowrap;
}
.fine-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}
.fine-stat {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-card);
  padding: 14px 16px;
}
.fine-stat span {
  display: block;
  font-size: 12px;
  color: var(--gray-light);
  margin-bottom: 4px;
}
.fine-stat strong {
  font-size: 22px;
  letter-spacing: -.3px;
}
.fine-meta {
  font-size: 12px;
  color: var(--gray-light);
  margin-top: 2px;
}
.fine-status {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
  background: var(--bg);
  color: var(--gray);
}
.fine-status--te_controleren,
.fine-status--nieuw {
  background: #fef9c3;
  color: #a16207;
}
.fine-status--toegewezen,
.fine-status--geaccepteerd {
  background: var(--green-bg);
  color: var(--green-dark);
}
.fine-status--betwist {
  background: var(--red-bg);
  color: var(--red);
}
.fine-status--betaald,
.fine-status--doorgelast,
.fine-status--afgehandeld {
  background: var(--blue-bg);
  color: var(--blue);
}
.fine-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.fine-driver-select {
  min-width: 180px;
  padding: 8px 10px;
  border: 1px solid var(--gray-border);
  border-radius: 8px;
  background: var(--white);
  font: inherit;
  font-size: 12px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 900px) {
}

@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .sidebar-overlay.open { display: block; }

  .main-content { margin-left: 0; padding: 16px; padding-top: 70px; }

  /* Schaal Uber-display-typography mee op mobiel */
  .page-header h1 { font-size: 24px; letter-spacing: -.6px; }
  .login-card h1 { font-size: 22px; letter-spacing: -.5px; }
  .modal-header h3 { font-size: 18px; letter-spacing: -.4px; }

  .mobile-header {
    display: flex; align-items: center; gap: 12px;
    position: fixed; top: 0; left: 0; right: 0; z-index: 130;
    background: var(--white); border-bottom: 1px solid var(--gray-border);
    padding: 14px 16px;
  }

  .hamburger {
    background: none; border: none; cursor: pointer; padding: 4px;
  }

  .hamburger svg {
    width: 24px; height: 24px; fill: none; stroke: var(--black);
    stroke-width: 2; stroke-linecap: round;
  }

  .mobile-title { font-size: 16px; font-weight: 700; }

  .period-pills { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .period-pill { padding: 7px 14px; font-size: 12px; }

  /* Header-controls: zoekveld op eigen volle rij, rest wrapt eronder */
  .page-header { flex-direction: column; align-items: stretch; gap: 12px; }
  .header-controls { width: 100%; }
  .header-controls .search-input { flex: 1 1 100%; min-width: 0; }
  .header-controls .select-sm { flex: 1 1 auto; min-width: 0; }

  /* Login compacter op mobiel */
  .login-brand { padding: 26px 30px; }
  .login-brand-tagline { font-size: 15px; }

  .stat-number { font-size: 22px; letter-spacing: -.6px; }
  .fine-upload-card { flex-direction: column; align-items: flex-start; }
  .fine-summary { grid-template-columns: 1fr; }
  .fine-actions { justify-content: flex-end; }

  .stat-card-pro { padding: 14px 16px 12px; }
  .stat-card-pro .stat-number { font-size: 22px; }
  .stat-card-top .stat-delta { padding: 1px 6px; font-size: 11px; }


  .ch-card { padding: 16px; }
  .ch-stat-value { font-size: 16px; }

  .chauffeur-cards { grid-template-columns: 1fr; }

  .sub-details { grid-template-columns: 1fr; }
  .sub-included-grid { grid-template-columns: 1fr; }
  .sub-detail:nth-child(odd) { padding-right: 0; border-right: none; }
  .sub-detail:nth-child(even) { padding-left: 0; }
  .sub-detail:nth-last-child(2) { border-bottom: 1px solid var(--gray-border); }

  .sub-included-item:nth-child(odd) { padding-right: 0; border-right: none; }
  .sub-included-item:nth-child(even) { padding-left: 0; }
  .sub-included-item:nth-last-child(2) { border-bottom: 1px solid var(--gray-border); }

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

  .date-picker-group { flex-direction: column; width: 100%; }
  .date-picker-presets { border-right: none; border-bottom: 1.5px solid var(--gray-border); width: 100%; }
  .date-picker-range { width: 100%; padding: 6px 8px; }
  .date-input-slim { flex: 1; }
  .header-controls { width: 100%; }

  .date-range { flex-wrap: wrap; }
  .date-input { width: 130px; }
  .search-input { width: 100%; }

  .login-card { padding: 36px 24px; }
  .modal { padding: 24px; margin: 10px; }

  th, td { padding: 10px 12px; font-size: 13px; }

  /* Tabellen binnen .table-container worden kaarten; JS-agent zet
     data-label="..." op elke <td> zodat de label-kolom leesbaar blijft.
     Niet-data-tabellen (buiten .table-container) blijven onaangeraakt. */
  .table-container table,
  .table-container thead,
  .table-container tbody,
  .table-container tr,
  .table-container td { display: block; width: 100%; }
  .table-container thead { display: none; }
  .table-container tr {
    background: var(--white);
    border: 1px solid var(--gray-border);
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 10px;
  }
  .table-container td {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border: none;
    font-size: 13px;
  }
  .table-container td::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--gray);
    margin-right: 12px;
  }
  .table-container td:last-child {
    border-top: 1px solid var(--gray-border);
    margin-top: 6px;
    padding-top: 10px;
  }
}

@media (max-width: 480px) {
  .stat-card-pro { padding: 12px 14px 10px; }
  .stat-card-pro .stat-number { font-size: 20px; }
}

@media (max-width: 400px) {
}

/* ============================================================
   TOAST
   ============================================================ */

.toast-container {
  position: fixed; bottom: 24px; right: 24px; z-index: 300;
  display: flex; flex-direction: column; gap: 8px;
}

.toast {
  background: var(--black); color: #fff; padding: 14px 20px;
  border-radius: 10px; font-size: 14px; font-weight: 500;
  box-shadow: 0 8px 24px rgba(0,0,0,.15);
  animation: toastIn .3s ease, toastOut .3s ease 2.7s forwards;
  max-width: 340px;
}

.toast-success { border-left: 4px solid var(--green); }
.toast-error { border-left: 4px solid var(--red); }

@keyframes toastIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes toastOut { from { opacity: 1; } to { opacity: 0; transform: translateY(-8px); } }

/* ============================================================
   INTEGRATIONS TAB — premium SaaS style
   ============================================================ */
.coverage-strip[hidden],
.nba-banner[hidden],
#invite-all-btn[hidden],
.notice-bar[hidden],
.stat-delta[hidden] { display: none !important; }

.coverage-strip {
  background: linear-gradient(135deg, #fafefb 0%, #fff 70%);
  border: 1px solid rgba(13,148,72,.18);
  border-radius: 14px;
  padding: 16px 20px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.coverage-meter {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 0 0 auto;
}

.coverage-bar {
  width: 160px;
  height: 8px;
  background: var(--gray-border);
  border-radius: 4px;
  overflow: hidden;
}

.coverage-bar > span {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--green);
  transition: width .6s cubic-bezier(.2,.7,.2,1);
}

.coverage-text strong {
  font-size: 22px;
  font-weight: 700;
  color: var(--green-dark);
  letter-spacing: -.3px;
}

.coverage-text span {
  font-size: 12.5px;
  color: var(--gray);
  margin-left: 6px;
}

.coverage-explainer {
  margin: 0;
  font-size: 13.5px;
  color: var(--gray);
  flex: 1;
  min-width: 240px;
  line-height: 1.45;
}

.nba-banner {
  background: #fff;
  border: 1.5px solid var(--green);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 1px 2px rgba(0,0,0,.02), 0 4px 12px rgba(13,148,72,.08);
}

.nba-text { flex: 1; }

.nba-text strong {
  font-size: 14px;
  font-weight: 700;
  color: var(--black);
  display: block;
  letter-spacing: -.1px;
}

.nba-text p {
  margin: 2px 0 0;
  font-size: 12.5px;
  color: var(--gray-light);
  line-height: 1.4;
}

.integrations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 16px;
  margin-top: 8px;
}

.int-card {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: 14px;
  padding: 22px 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.int-card:hover {
  border-color: #d8d3cd;
  box-shadow: 0 1px 2px rgba(0,0,0,.02), 0 4px 12px rgba(0,0,0,.04);
}

.int-card.is-connected {
  border-color: rgba(13,148,72,.22);
  background: linear-gradient(180deg, #fafefb 0%, var(--white) 60%);
}

.int-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.int-card-head .int-meta {
  flex: 1;
  min-width: 0;
}

.int-badge {
  font-size: 10.5px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
  letter-spacing: .15px;
  white-space: nowrap;
  flex-shrink: 0;
}

.int-badge--oneclick {
  background: rgba(13,148,72,.10);
  color: var(--green-dark);
}

.int-badge--api_or_screenshot {
  background: rgba(245,158,11,.12);
  color: #92400e;
}

.int-benefit {
  margin: 0 0 12px;
  font-size: 12.5px;
  color: var(--gray);
  line-height: 1.45;
}

.int-cta--alt {
  color: var(--gray);
  font-weight: 500;
}

.int-cta--alt:hover {
  color: var(--black);
}

.int-coverage {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed var(--gray-border);
}

.int-coverage-label {
  font-size: 12px;
  color: var(--gray);
  font-weight: 500;
}

.int-coverage-avatars {
  display: flex;
  align-items: center;
}

.int-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 9.5px;
  font-weight: 700;
  margin-left: -4px;
  border: 2px solid #fff;
  box-sizing: border-box;
}

.int-avatar:first-child { margin-left: 0; }

.int-avatar--more {
  background: var(--gray-border) !important;
  color: var(--gray);
}

.int-pending {
  margin-top: 14px;
  border: 1px solid rgba(245,158,11,.35);
  background: #fffaf2;
  border-radius: 10px;
  overflow: hidden;
}

.int-pending-summary {
  list-style: none;
  cursor: pointer;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  color: #92400e;
}

.int-pending-summary::-webkit-details-marker { display: none; }

.int-pending-summary::after {
  content: "▾";
  margin-left: auto;
  font-size: 11px;
  color: #92400e;
  transition: transform .15s ease;
}

.int-pending[open] > .int-pending-summary::after {
  transform: rotate(180deg);
}

.int-pending-badge {
  background: #f59e0b;
  color: #fff;
  font-weight: 700;
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 999px;
  flex-shrink: 0;
}

.int-pending-title { flex: 1; min-width: 0; }

.int-pending-amount {
  font-weight: 600;
  color: #92400e;
  font-size: 12.5px;
}

/* Inline-variant van match-queue: past binnen de SumUp-kaart, geen eigen frame */
.mq--inline {
  border: none;
  border-radius: 0;
  margin: 0;
  background: var(--white);
  border-top: 1px solid rgba(245,158,11,.25);
}

.mq--inline .mq-list { border-top: none; }

.mq--inline .mq-row {
  padding: 12px 14px;
  gap: 12px;
  grid-template-columns: minmax(0, 1.1fr) auto minmax(0, 1.4fr) auto;
}

.int-logo {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), 0 1px 2px rgba(0,0,0,.06);
}

.int-logo svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Bolt's mark zit als path in een 60×60 viewBox; vult heel het blokje */
#int-card-bolt .int-logo svg { transform: scale(1.05); }

/* Uber wordmark — wat krapper renderen voor visueel gewicht */
#int-card-uber .int-logo svg { padding: 13px 6px; box-sizing: border-box; }

/* SumUp text-mark — de viewBox is 100×32, wat hoger gerendered geeft balans */
#int-card-sumup .int-logo svg { padding: 9px 4px; box-sizing: border-box; }

.int-meta h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 0;
  letter-spacing: -.2px;
}

.int-meta p {
  font-size: 12.5px;
  color: var(--gray-light);
  margin: 2px 0 0;
  line-height: 1.4;
}

.int-card-body {
  flex: 1;
}

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

.int-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--gray);
}

.int-status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gray-light);
}

.int-status--ok {
  color: var(--green-dark);
}
.int-status--ok::before {
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(13,148,72,.18);
}
.int-status--ok svg { display: none; }

.int-status--manual {
  color: var(--blue);
}
.int-status--manual::before {
  background: var(--blue);
  box-shadow: 0 0 0 3px rgba(37,99,235,.15);
}

.int-substatus {
  font-size: 12px;
  color: var(--gray-light);
}

.int-account {
  font-size: 12px;
  color: var(--gray);
  margin-top: 6px;
}

.int-error {
  font-size: 12.5px;
  color: var(--red);
  background: var(--red-bg);
  padding: 10px 12px;
  border-radius: 8px;
  margin-top: 10px;
  line-height: 1.45;
}

.int-error strong {
  display: block;
  font-weight: 700;
  margin-bottom: 2px;
}

.int-error p {
  margin: 0 0 8px;
  color: var(--red);
}

.int-error-actions {
  display: flex;
  gap: 14px;
}

.int-error-actions .btn-text {
  color: var(--red);
  font-weight: 600;
  padding: 0;
}

.int-preview-link {
  color: var(--green-dark);
  text-decoration: underline;
  text-decoration-color: rgba(13,148,72,.35);
  text-underline-offset: 2px;
  font-weight: 500;
}

.int-preview-link:hover {
  text-decoration-color: var(--green-dark);
}

.preview-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fffaf2;
  border: 1px solid rgba(245,158,11,.3);
  border-radius: 8px;
  padding: 8px 12px;
  margin: 14px 0 12px;
  font-size: 12.5px;
  color: var(--gray);
}

.preview-badge {
  background: #f59e0b;
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .3px;
  padding: 2px 8px;
  border-radius: 999px;
  text-transform: uppercase;
}

.preview-table-wrap {
  border: 1px solid var(--gray-border);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 12px;
}

.preview-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.preview-table th {
  text-align: left;
  font-weight: 600;
  color: var(--gray);
  background: #fafaf7;
  padding: 9px 12px;
  border-bottom: 1px solid var(--gray-border);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: .3px;
}

.preview-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--gray-border);
  color: var(--black);
}

.preview-table tr:last-child td { border-bottom: none; }

.preview-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 10px 14px;
  background: rgba(13,148,72,.06);
  border-radius: 10px;
  margin-bottom: 14px;
  font-size: 13px;
  color: var(--gray);
}

.preview-total strong {
  font-size: 18px;
  color: var(--green-dark);
  font-weight: 700;
  letter-spacing: -.2px;
}

.int-skeleton {
  display: block;
  height: 14px;
  width: 70%;
  background: linear-gradient(90deg, var(--gray-border) 0%, #f3f0eb 50%, var(--gray-border) 100%);
  background-size: 200% 100%;
  border-radius: 6px;
  animation: int-skel 1.4s infinite linear;
}

@keyframes int-skel {
  from { background-position: 200% 0; }
  to { background-position: -200% 0; }
}

/* Generieke skeleton-loaders — hergebruiken int-skel keyframe */
.skeleton {
  display: block;
  background: linear-gradient(90deg, var(--gray-border) 0%, #f3f0eb 50%, var(--gray-border) 100%);
  background-size: 200% 100%;
  border-radius: 6px;
  animation: int-skel 1.4s infinite linear;
}
.skeleton-row { height: 14px; width: 70%; margin: 8px 0; }
.skeleton-row.skeleton-row--full { width: 100%; }
.skeleton-card { height: 80px; width: 100%; border-radius: 12px; margin-bottom: 12px; }
.skeleton-stat { height: 28px; width: 60%; }

.int-card-foot {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
  border-top: 1px solid var(--gray-border);
  padding-top: 14px;
  margin-top: 4px;
}

.int-cta {
  font-size: 13px;
}

.int-cta--sync {
  color: var(--green-dark);
}

.int-sync-progress {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--green-dark);
}

.int-sync-count {
  color: var(--gray-light);
}

.int-sync-spinner {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--green-bg);
  border-top-color: var(--green);
  animation: int-spin 0.9s linear infinite;
  flex-shrink: 0;
}

.int-card.is-syncing {
  position: relative;
  overflow: hidden;
}

.int-card.is-syncing::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, var(--green) 50%, transparent 100%);
  background-size: 40% 100%;
  background-repeat: no-repeat;
  animation: int-progress-strip 1.4s linear infinite;
}

@keyframes int-spin {
  to { transform: rotate(360deg); }
}

@keyframes int-progress-strip {
  from { background-position: -40% 0; }
  to { background-position: 140% 0; }
}

.int-advanced {
  margin: 12px 0 4px;
  border-top: 1px solid var(--gray-border);
  padding-top: 12px;
}

.int-advanced > summary {
  font-size: 13px;
  color: var(--gray);
  cursor: pointer;
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.int-advanced > summary::-webkit-details-marker { display: none; }

.int-advanced > summary::before {
  content: "▸";
  font-size: 10px;
  color: var(--gray-light);
  transition: transform .15s;
}

.int-advanced[open] > summary::before {
  transform: rotate(90deg);
}

.int-advanced-text {
  font-size: 12.5px;
  color: var(--gray-light);
  margin: 8px 0 10px;
  line-height: 1.5;
}

.int-disconnect-list {
  margin: 6px 0 4px;
  padding-left: 18px;
  font-size: 13.5px;
  color: var(--gray);
  line-height: 1.6;
}

/* Gevulde variant alleen in modals; in tabellen blijft verwijderen een menu-optie. */
.modal .btn-danger,
.modal-overlay .btn-danger {
  padding: 12px 22px;
  background: var(--red);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  font-family: inherit;
  transition: background .15s, transform .1s;
}

.modal .btn-danger:hover,
.modal-overlay .btn-danger:hover {
  background: #b91c1c;
  transform: translateY(-1px);
}

.int-celebration {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: linear-gradient(135deg, #eef8f1 0%, #ffffff 100%);
  border: 1.5px solid rgba(13,148,72,.28);
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 18px;
  box-shadow: 0 1px 2px rgba(0,0,0,.02), 0 4px 12px rgba(13,148,72,.08);
}

.int-celebration-body {
  flex: 1;
}

.int-celebration-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 4px;
}

.int-celebration-body p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--gray);
}

.int-celebration-close {
  background: transparent;
  border: none;
  font-size: 22px;
  line-height: 1;
  color: var(--gray-light);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  font-family: inherit;
}

.int-celebration-close:hover {
  background: rgba(0,0,0,.05);
  color: var(--black);
}

.int-choice-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 14px 0 6px;
}

.int-choice {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  background: var(--white);
  border: 1.5px solid var(--gray-border);
  border-radius: var(--radius-card);
  padding: 16px 18px;
  cursor: pointer;
  font-family: inherit;
  transition: background .15s, border-color .15s, color .15s, transform .1s;
}

.int-choice:hover {
  background: var(--black);
  border-color: var(--black);
  color: #fff;
  transform: translateY(-1px);
}

.int-choice:hover strong,
.int-choice:hover span {
  color: #fff;
}

.int-choice strong {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -.2px;
  color: var(--black);
  margin-bottom: 4px;
}

.int-choice span {
  font-size: 13px;
  color: var(--gray-light);
}

/* ---------- Modal ---------- */
.modal-integration {
  max-width: 460px;
  padding: 28px 28px 24px;
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.modal-head h3 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -.2px;
  margin: 0;
}

.modal-head p {
  font-size: 13px;
  color: var(--gray-light);
  margin: 4px 0 0;
  line-height: 1.5;
}

.modal-body-text {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.55;
  margin-bottom: 4px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 22px;
}

.int-steps {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.int-steps li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13.5px;
  color: var(--gray);
  line-height: 1.45;
}

.int-steps li span {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--green-bg);
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.int-steps strong {
  color: var(--black);
  font-weight: 600;
}

.btn-link-ext {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray);
  text-decoration: none;
  padding: 9px 14px;
  border: 1px solid var(--gray-border);
  border-radius: 9px;
  background: var(--white);
  margin-bottom: 18px;
  transition: border-color .15s, color .15s;
}

.btn-link-ext:hover {
  border-color: var(--gray);
  color: var(--black);
}

.upload-zone {
  border: 1.5px dashed var(--gray-border);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  background: var(--bg);
  margin-top: 4px;
}

.upload-hint {
  font-size: 11.5px;
  color: var(--gray-light);
  margin-top: 10px;
}

#screenshot-preview-list {
  font-size: 13px;
  background: var(--bg);
  border: 1px solid var(--gray-border);
  border-radius: 10px;
  padding: 12px;
  max-height: 220px;
  overflow-y: auto;
  margin-top: 6px;
}

.rec-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px dashed var(--gray-border);
}
.rec-row:last-child { border-bottom: 0; }
.rec-row--total {
  font-weight: 600;
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1.5px solid var(--gray-border);
  border-bottom: 0;
}

.preview-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: .3px;
  margin-top: 14px;
  margin-bottom: 4px;
}

@media (max-width: 480px) {
  .int-card { padding: 18px 18px 14px; }
  .modal-integration { padding: 22px 20px 20px; }
}

/* ============================================================
   FACTUREN — lijst op Abonnement-tab
   ============================================================ */

.invoice-list {
  display: flex; flex-direction: column;
  border: 1px solid var(--gray-border);
  border-radius: var(--radius);
  overflow: hidden;
}
.invoice-row {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  align-items: center; gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--gray-border);
  transition: background .12s ease;
}
.invoice-row:last-child { border-bottom: none; }
.invoice-row:hover { background: var(--bg); }
.invoice-meta { min-width: 0; }
.invoice-number {
  font-size: 13.5px; font-weight: 600;
  color: var(--black); letter-spacing: -.1px;
  font-variant-numeric: tabular-nums;
}
.invoice-date {
  font-size: 12px; color: var(--gray-light);
  margin-top: 2px; letter-spacing: -.05px;
}
.invoice-amount {
  font-size: 14px; font-weight: 700;
  color: var(--black); letter-spacing: -.2px;
  font-variant-numeric: tabular-nums;
  min-width: 80px; text-align: right;
}
.invoice-status {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px; border-radius: 6px;
  font-size: 11.5px; font-weight: 600;
}
.invoice-status::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
}
.invoice-status--paid {
  background: var(--green-bg); color: var(--green-dark);
}
.invoice-status--paid::before { background: var(--green); }
.invoice-status--open {
  background: #fef9c3; color: #a16207;
}
.invoice-status--open::before { background: #ca8a04; }
.invoice-status--overdue {
  background: var(--red-bg); color: var(--red);
}
.invoice-status--overdue::before { background: var(--red); }
.invoice-status--void {
  background: var(--bg); color: var(--gray-light);
}
.invoice-status--void::before { background: var(--gray-light); }

.invoice-action {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  background: transparent; border: 1px solid transparent;
  border-radius: 7px;
  color: var(--gray-light); cursor: pointer;
  text-decoration: none;
  transition: background .12s, color .12s, border-color .12s;
}
.invoice-action svg { width: 15px; height: 15px; }
.invoice-action:hover {
  background: var(--white);
  border-color: var(--gray-border-strong);
  color: var(--black);
}
.invoice-action--disabled {
  opacity: .5; pointer-events: none;
}

@media (max-width: 768px) {
  .invoice-row {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "meta amount"
      "status actions";
    gap: 8px;
  }
  .invoice-meta { grid-area: meta; }
  .invoice-amount { grid-area: amount; }
  .invoice-status { grid-area: status; }
  .invoice-row .invoice-action { grid-area: actions; justify-self: end; }
}

/* ============================================================
   CHAUFFEURS — cell-person, platform-dots, ghost invite
   (geport uit preview)
   ============================================================ */

.cell-person {
  display: flex; align-items: center; gap: 10px;
}
.cell-person .rank-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-size: 11px; font-weight: 700; letter-spacing: -.2px;
  flex-shrink: 0;
}
.cell-person-name {
  font-size: 13.5px; font-weight: 600; letter-spacing: -.1px;
  color: var(--black);
}
.cell-person-meta {
  font-size: 12px; color: var(--gray-light);
  margin-top: 1px; font-variant-numeric: tabular-nums;
}

.row-menu {
  width: 28px; height: 28px; border-radius: 6px;
  border: none; background: transparent;
  color: var(--gray-light); font-size: 18px; line-height: 1;
  cursor: pointer; transition: background .12s, color .12s;
  letter-spacing: 1px; font-weight: 700;
}
.row-menu:hover { background: var(--bg-soft); color: var(--black); }

/* Legenda boven de chauffeurs-tabel */
.legend {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 14px; padding: 10px 14px;
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: 10px;
  font-size: 12px; color: var(--gray-light);
  letter-spacing: -.05px;
  flex-wrap: wrap;
}
.legend-label {
  font-weight: 600; color: var(--gray);
  letter-spacing: 0;
}
.legend-item {
  display: inline-flex; align-items: center; gap: 6px;
}
.legend-divider {
  width: 1px; height: 12px; background: var(--gray-border-strong);
}

/* Platform-status dots */
.dots {
  display: inline-flex; align-items: center; gap: 5px;
}
.dot {
  width: 7px; height: 7px; border-radius: 50%;
  display: inline-block; flex-shrink: 0;
}
.dot--uber { background: #000000; }
.dot--bolt { background: #2EB565; }
.dot--sumup { background: #1A73E8; }
.dot--off {
  background: transparent;
  box-shadow: inset 0 0 0 1.5px var(--gray-border-strong);
}
.dot--pending {
  background: #1A73E8;
  animation: dotPulse 1.6s infinite;
}
@keyframes dotPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(26,115,232,.5); }
  50%      { box-shadow: 0 0 0 4px rgba(26,115,232,0); }
}

/* "Nodig uit" ghost button (i.p.v. uitgenodigd-pill) */
.btn-invite-ghost {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px;
  background: var(--white);
  border: 1px solid var(--gray-border-strong);
  border-radius: 7px;
  font-family: inherit; font-size: 12.5px; font-weight: 600;
  color: var(--black);
  cursor: pointer;
  letter-spacing: -.1px;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.btn-invite-ghost svg {
  width: 12px; height: 12px;
  color: var(--green);
  transition: color .15s ease;
}
.btn-invite-ghost:hover {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}
.btn-invite-ghost:hover svg { color: #fff; }
.btn-invite-ghost:active { transform: scale(.97); }
.btn-invite-ghost[disabled] { opacity: .5; cursor: not-allowed; }
.btn-invite-ghost[disabled]:hover { background: var(--white); border-color: var(--gray-border-strong); color: var(--black); }
.invite-meta { display: block; margin-top: 4px; font-size: 11px; color: var(--gray-light); }
#invite-all-btn[disabled] { opacity: .5; cursor: not-allowed; }
#invite-all-btn[disabled]:hover { background: var(--white); color: var(--black); }

/* Mobile / card-mode overrides */
@media (max-width: 768px) {
  .legend { font-size: 11.5px; gap: 12px; padding: 10px 12px; }
  .legend-divider { display: none; }
  .btn-invite-ghost { padding: 7px 14px; font-size: 13px; }
  .btn-invite-ghost svg { width: 14px; height: 14px; }

  /* Tabel card-mode: cell-person netjes uitlijnen */
  .table-container td .cell-person {
    flex: 1; gap: 10px;
    align-items: center; justify-content: flex-start;
  }
  .table-container td .cell-person-name { font-size: 14px; }
  .table-container td .cell-person-meta { font-size: 12px; }
  .cell-person .rank-avatar {
    width: 32px !important; height: 32px !important; font-size: 12px !important;
  }

  /* De cell-person-cel toont al naam+telefoon: geen data-label ervoor. */
  .table-container td:has(.cell-person) {
    flex-direction: row;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--gray-border);
    margin-bottom: 6px;
  }
  .table-container td:has(.cell-person)::before { display: none; }
}

/* ======================================================
   Cmd-K command palette
   ====================================================== */

kbd, .kbd {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px; padding: 0 5px;
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-bottom-width: 2px;
  border-radius: 4px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', monospace;
  font-size: 10.5px; font-weight: 600;
  color: var(--gray); letter-spacing: 0;
}
/* .kbd-mod text is set by JS based on platform (Ctrl/⌘) */

.cmdk-overlay {
  position: fixed; inset: 0; background: rgba(10, 10, 10, .5);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 1000;
  display: flex; align-items: flex-start; justify-content: center;
  padding-top: 12vh;
}
.cmdk-box {
  width: 100%; max-width: 560px;
  background: var(--white);
  border-radius: 14px;
  box-shadow: 0 32px 80px -20px rgba(0, 0, 0, .25), 0 0 0 1px rgba(0, 0, 0, .04);
  overflow: hidden;
  animation: cmdkIn .18s ease;
}
@keyframes cmdkIn {
  from { opacity: 0; transform: scale(.97) translateY(-8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.cmdk-input-row {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--gray-border);
}
.cmdk-input-row svg { width: 18px; height: 18px; color: var(--gray-light); flex-shrink: 0; }
.cmdk-input {
  flex: 1; border: none; outline: none; background: transparent;
  font-family: inherit; font-size: 15px; color: var(--black);
  letter-spacing: -.1px;
}
.cmdk-input::placeholder { color: var(--gray-light); }
.cmdk-results { max-height: 50vh; overflow-y: auto; padding: 6px; }
.cmdk-group-label {
  font-size: 11px; font-weight: 600; color: var(--gray-light);
  padding: 10px 12px 6px; letter-spacing: 0;
  text-transform: uppercase;
}
.cmdk-item {
  display: flex; align-items: center; gap: 10px;
  width: 100%; padding: 8px 12px;
  border: none; background: transparent;
  border-radius: 8px;
  font-family: inherit; font-size: 13.5px; color: var(--black);
  cursor: pointer; text-align: left;
  transition: background .1s ease;
}
.cmdk-item:hover, .cmdk-item:focus, .cmdk-item.is-active {
  background: #f5f3f0; outline: none;
}
.cmdk-item-icon {
  width: 24px; height: 24px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: #f5f3f0; color: var(--gray);
  font-size: 13px; flex-shrink: 0;
}
.cmdk-item-avatar {
  width: 24px; height: 24px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-size: 10px; font-weight: 700; letter-spacing: -.2px;
  flex-shrink: 0;
}
.cmdk-item-text { flex: 1; letter-spacing: -.1px; font-weight: 500; }
.cmdk-item-hint {
  font-size: 12px; color: var(--gray-light);
  font-variant-numeric: tabular-nums;
}
.cmdk-empty {
  padding: 28px 16px; text-align: center;
  color: var(--gray-light); font-size: 13px;
}
.cmdk-foot {
  display: flex; gap: 16px; padding: 10px 18px;
  border-top: 1px solid var(--gray-border);
  background: var(--bg);
  font-size: 11.5px; color: var(--gray-light);
}
.cmdk-foot span { display: inline-flex; align-items: center; gap: 5px; }

/* Cmd-K hint button (top-right of main content, desktop only) */
.cmdk-hint {
  position: fixed;
  top: 16px; right: 20px;
  z-index: 50;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 10px;
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: 8px;
  font-family: inherit; font-size: 12.5px; color: var(--gray);
  cursor: pointer;
  transition: background .12s, border-color .12s;
}
.cmdk-hint:hover { background: var(--bg); border-color: #d8d4cf; }
.cmdk-hint svg { width: 14px; height: 14px; color: var(--gray-light); }

@media (max-width: 900px) {
  .cmdk-hint { display: none; }
}

@media (max-width: 768px) {
  .cmdk-overlay { padding: 8vh 12px 0; }
  .cmdk-box { max-width: 100%; }
  .cmdk-input { font-size: 16px; }
  .cmdk-foot { gap: 12px; flex-wrap: wrap; }
}

/* ============================================================
   SUMUP MATCH-QUEUE — onbekende e-mails koppelen aan chauffeurs
   ============================================================ */

.mq {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: 14px;
  margin-bottom: 20px;
  overflow: hidden;
}
.mq-top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  padding: 18px 22px 16px;
}
.mq-title {
  font-size: 15px; font-weight: 700; letter-spacing: -.2px; margin: 0 0 3px 0;
}
.mq-sub {
  font-size: 13px; color: var(--gray-light); letter-spacing: -.05px; margin: 0;
}
.mq-list {
  border-top: 1px solid var(--gray-border);
}
.mq-row {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) auto minmax(0, 1.4fr) auto;
  align-items: center; gap: 16px;
  padding: 14px 22px;
  border-bottom: 1px solid var(--gray-border);
  transition: background .12s ease;
}
.mq-row:last-child { border-bottom: none; }
.mq-row:hover { background: rgba(0,0,0,.012); }

.mq-account { display: flex; align-items: center; gap: 12px; min-width: 0; }
.mq-platform-mark {
  width: 32px; height: 32px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.mq-platform-mark svg { width: 28px; height: 28px; }
.mq-account-text { min-width: 0; }
.mq-email {
  font-size: 13.5px; font-weight: 600; color: var(--black);
  letter-spacing: -.1px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.mq-meta {
  font-size: 11.5px; color: var(--gray-light);
  margin-top: 2px; font-variant-numeric: tabular-nums;
}

.mq-arrow {
  color: var(--gray-border-strong); font-size: 18px; flex-shrink: 0;
}

.mq-suggest {
  display: flex; align-items: stretch; justify-content: space-between;
  gap: 14px;
  padding: 8px 8px 8px 12px;
  background: var(--bg);
  border: 1px solid var(--gray-border);
  border-radius: 10px;
  font-family: inherit; cursor: pointer;
  transition: border-color .15s, background .15s, transform .08s;
  text-align: left; min-width: 0;
}
.mq-suggest:hover { border-color: var(--green); background: var(--green-bg); }
.mq-suggest:hover .mq-suggest-cta { background: var(--green); color: #fff; }
.mq-suggest:active { transform: scale(.99); }
.mq-suggest-inner { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.mq-suggest-text { min-width: 0; }
.mq-suggest-name {
  font-size: 13.5px; font-weight: 600; color: var(--black); letter-spacing: -.1px;
}
.mq-suggest-conf {
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; color: var(--gray-light); margin-top: 2px;
}
.mq-conf { display: inline-flex; align-items: center; gap: 2px; }
.mq-conf span {
  width: 4px; height: 8px; border-radius: 1px;
  background: var(--gray-border-strong);
}
.mq-conf--high span { background: var(--green); }
.mq-conf--med span:nth-child(1),
.mq-conf--med span:nth-child(2) { background: #ea580c; }
.mq-conf--low span:nth-child(1) { background: var(--red); }
.mq-suggest-cta {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 0 12px;
  background: var(--white);
  border: 1px solid var(--gray-border-strong);
  border-radius: 7px;
  font-size: 12.5px; font-weight: 600; color: var(--black);
  letter-spacing: -.1px;
  transition: background .15s, color .15s, border-color .15s;
  flex-shrink: 0;
}
.mq-suggest-cta svg { width: 14px; height: 14px; }

.match-select {
  padding: 7px 28px 7px 10px;
  border: 1px solid var(--gray-border-strong); border-radius: 8px;
  background: var(--white); font-family: inherit; font-size: 13px;
  color: var(--black); cursor: pointer; outline: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath fill='none' stroke='%238e8e8e' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' d='M2 4l3 3 3-3'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 9px center;
}
.match-select:focus {
  border-color: var(--black); box-shadow: 0 0 0 3px rgba(0,0,0,.05);
}

.mq-dismiss {
  width: 30px; height: 30px;
  border: 1px solid var(--gray-border);
  background: var(--white);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--gray-light); cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
  flex-shrink: 0;
}
.mq-dismiss svg { width: 14px; height: 14px; }
.mq-dismiss:hover {
  background: var(--bg-soft); color: var(--black);
  border-color: var(--gray-border-strong);
}

@media (max-width: 900px) {
  .mq-row {
    grid-template-columns: 1fr auto;
    gap: 10px;
  }
  .mq-arrow { display: none; }
  .mq-suggest { grid-column: 1 / -1; }
  .match-select { grid-column: 1 / -1; width: 100%; }
}
@media (max-width: 600px) {
  .mq-top { flex-direction: column; align-items: flex-start; gap: 10px; padding: 16px 16px 12px; }
  .mq-row { padding: 14px 16px; }
}

/* SumUp-banner op Overzicht — match-queue herinnering */
.alert-card--sumup {
  border-left: 3px solid #1A73E8;
  background: var(--white);
}
.alert-card--sumup .alert-text { font-size: 13.5px; }
.alert-card--sumup strong { color: var(--black); }

/* ============================================================
   UITBETALINGEN
   ============================================================ */
.muted { color: var(--gray-light); }
.status-pending  { color: #C07A00; }
.status-active   { color: var(--green); }
.status-inactive { color: var(--gray-light); }

/* ── Chauffeurs-tabel: rijmenu, statuschips, platformchips ── */
.row-menu { position: relative; display: inline-block; }
.row-menu summary {
  list-style: none; cursor: pointer; width: 32px; height: 32px; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--gray); font-size: 18px; font-weight: 700; line-height: 1;
}
.row-menu summary::-webkit-details-marker { display: none; }
.row-menu summary:hover, .row-menu[open] summary { background: #f3f4f6; color: var(--black); }
.row-menu-list {
  position: absolute; right: 0; top: 36px; z-index: 20; min-width: 170px;
  background: var(--white); border: 1px solid var(--gray-border); border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,.08); padding: 6px; display: flex; flex-direction: column;
}
.row-menu-list button {
  text-align: left; background: none; border: none; padding: 8px 10px; border-radius: 6px;
  font-size: 13px; font-family: inherit; color: var(--black); cursor: pointer;
}
.row-menu-list button:hover { background: #f3f4f6; }
.row-menu-list button.is-danger { color: var(--red); }

.status-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px;
  border-radius: var(--radius-pill); font-size: 12px; font-weight: 600; white-space: nowrap;
}
.status-chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status-chip--actief { background: var(--green-bg); color: var(--green); }
.status-chip--stil { background: #fff4e5; color: #b45309; }
.status-chip--geen { background: #f3f4f6; color: var(--gray); }

.platform-chips { display: inline-flex; gap: 4px; }
.platform-chip {
  width: 22px; height: 22px; border-radius: 6px; display: inline-flex; align-items: center;
  justify-content: center; font-size: 11px; font-weight: 700; color: #fff;
}
.platform-chip--uber { background: #000; }
.platform-chip--bolt { background: #2EB565; }
.platform-chip--sumup { background: #1A73E8; }
.platform-chip--off { background: transparent; color: var(--gray-light); border: 1px dashed var(--gray-border); }
.cell-money { font-variant-numeric: tabular-nums; white-space: nowrap; }
.cell-money--netto { font-weight: 700; }

/* ── Overzicht: "Nu nodig" ── */
.nu-nodig-title { font-size: 11px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--gray); margin-bottom: 2px; }
.alert-card--actie { border-left: 3px solid var(--green); background: var(--white); }
.alert-card--actie .alert-text { font-size: 13.5px; }
.alert-card--actie strong { color: var(--black); }

/* ── Sidebar: groepen ── */
.nav-group-label { font-size: 10.5px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: rgba(255,255,255,.4); padding: 14px 12px 4px; }
.nav-group-label:first-child { padding-top: 2px; }

/* ── Chauffeurs op mobiel: naam, status en netto; de rest na een tik ── */
@media (max-width: 768px) {
  #chauffeurs-list tr { cursor: pointer; }
  #chauffeurs-list td[data-label="Platforms"],
  #chauffeurs-list td[data-label="Verdiensten"],
  #chauffeurs-list td[data-label="Kosten"] { display: none; }
  #chauffeurs-list tr.is-open td[data-label="Platforms"],
  #chauffeurs-list tr.is-open td[data-label="Verdiensten"],
  #chauffeurs-list tr.is-open td[data-label="Kosten"] { display: flex; }
  #chauffeurs-list td[data-label=""] { border-top: none; margin-top: 0; padding-top: 0; justify-content: flex-end; }
  #chauffeurs-list tr:not(.is-open) td[data-label="Netto"]::after { content: "meer"; font-size: 11px; color: var(--gray-light); margin-left: 10px; font-weight: 400; }
}

/* Uitleg bij een kolomkop: klein vraagteken, tekst in de title */
.th-help {
  display: inline-flex; align-items: center; justify-content: center; width: 14px; height: 14px;
  border-radius: 50%; border: 1px solid var(--gray-border); color: var(--gray-light);
  font-size: 9px; font-weight: 700; margin-left: 4px; vertical-align: middle; cursor: help;
}
th[title] { cursor: help; }

/* Melding boven een lijst: een enkel feit dat om actie vraagt */
.notice-bar {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  background: var(--orange-bg); color: var(--orange);
  border-radius: 8px; padding: 12px 16px; margin-bottom: 14px;
  font-size: 13px; line-height: 1.45;
}
.notice-bar strong { font-weight: 700; }
.notice-bar button {
  margin-left: auto; background: var(--orange); color: white; border: none;
  border-radius: 6px; padding: 7px 14px; font-family: inherit; font-size: 13px;
  font-weight: 600; cursor: pointer;
}

/* Kenteken direct in de rij invullen, zonder de bewerkmodal */
.plate-inline { display: inline-flex; align-items: center; gap: 6px; }
.plate-add {
  background: none; border: 1px dashed var(--gray-border); color: var(--gray-light);
  border-radius: 6px; padding: 2px 8px; font-family: inherit; font-size: 11px; cursor: pointer;
}
.plate-add:hover { border-color: var(--orange); color: var(--orange); }
.plate-input {
  width: 96px; padding: 3px 7px; font-family: inherit; font-size: 12px;
  text-transform: uppercase; border: 1px solid var(--gray-border); border-radius: 6px;
}
.plate-save {
  background: var(--orange); color: white; border: none; border-radius: 6px;
  padding: 4px 9px; font-family: inherit; font-size: 11px; font-weight: 600; cursor: pointer;
}

/* Vervaldatum van een boete: te laat betalen verhoogt de sanctie, dus een
   naderende datum hoort op te vallen */
.fine-deadline {
  display: inline-flex; align-items: center;
  padding: 4px 10px; border-radius: var(--radius-pill);
  font-size: 11px; font-weight: 700;
}
.fine-deadline--kort { background: var(--orange-bg); color: var(--orange); }
.fine-deadline--verlopen { background: var(--red-bg); color: var(--red); }

/* ============================================================
   OVERZICHT: OCHTENDBRIEFING
   Eerst wat er vannacht gebeurde en wat er wacht, dan de cijfers.
   Hairlines in plaats van kaarten; de serif draagt de kop.
   ============================================================ */

.ov { max-width: 1040px; margin: 0 auto; display: flex; flex-direction: column; gap: 36px; }
.ov .page-eyebrow { margin-bottom: 0; font-size: 12.5px; }
.ov-briefing { display: flex; flex-direction: column; gap: 18px; }
.ov-lead {
  font-family: var(--font-serif); font-size: 56px; font-weight: 400;
  letter-spacing: -1px; line-height: 1.05; color: var(--black); font-variant-numeric: tabular-nums;
}
.ov-lead small { font-size: 22px; letter-spacing: -.2px; color: var(--gray); margin-left: 10px; }
.ov-story { font-family: var(--font-serif); font-size: 21px; line-height: 1.45; color: var(--black); max-width: 820px; margin: 0; text-wrap: pretty; }
.ov-story em { font-style: italic; color: var(--gray); }
.ov-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.ov-chip {
  border-radius: var(--radius-pill); padding: 10px 18px; font-family: inherit; font-size: 13px; font-weight: 700;
  border: 1.5px solid var(--black); background: transparent; color: var(--black); cursor: pointer;
  transition: background .15s, color .15s;
}
.ov-chip:hover { background: var(--black); color: #fff; }
.ov-chip--primary { background: var(--green); border-color: var(--green); color: #fff; }
.ov-chip--primary:hover { background: var(--green-dark); border-color: var(--green-dark); }
.ov-rule { border-top: 1.5px solid var(--black); }
.ov-hair { border-top: 1px solid var(--gray-border); }
.ov-sectie:empty { display: none; }
.ov-sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.ov-sec-title { font-size: 11px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--gray); }
.ov-muted { font-size: 12.5px; color: var(--gray-light); }
.ov-link { background: none; border: none; padding: 0; font-family: inherit; font-size: 12.5px; font-weight: 600; color: var(--green); cursor: pointer; }
.ov-link:hover { color: var(--green-dark); text-decoration: underline; }

.ov-rows { display: flex; flex-direction: column; }
.ov-row { display: flex; align-items: center; gap: 14px; padding: 15px 0; border-top: 1px solid var(--gray-border); font-size: 14.5px; }
.ov-row:last-child { border-bottom: 1px solid var(--gray-border); }
.ov-row-tekst { min-width: 0; }
.ov-row-namen { display: block; font-size: 12.5px; font-weight: 400; color: var(--gray-light); margin-top: 2px; }
.ov-row-meta { margin-left: auto; color: var(--gray-light); font-size: 12.5px; white-space: nowrap; }
.ov-btn-out {
  margin-left: auto; border-radius: var(--radius-pill); padding: 7px 14px; font-family: inherit; font-size: 12.5px; font-weight: 600;
  border: 1.5px solid var(--black); background: transparent; color: var(--black); cursor: pointer; white-space: nowrap;
  transition: background .15s, color .15s;
}
.ov-row-meta + .ov-btn-out { margin-left: 0; }
.ov-btn-out:hover { background: var(--black); color: #fff; }
.ov-btn-out--fout { border-color: var(--red); color: var(--red); }
.ov-btn-out--fout:hover { background: var(--red); color: #fff; }
.ov-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex: none; display: inline-block; }
.ov-dot--fout { background: var(--red); }
.ov-dot--oud { background: var(--gray-border-strong); }
.ov-dot--signaal { background: var(--orange); }

.period-pills--sm { padding: 3px; }
.period-pills--sm .period-pill { padding: 6px 14px; font-size: 12px; }
.ov-figs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 14px; }
.ov-fig { padding: 6px 22px 2px; border-left: 1px solid var(--gray-border); }
.ov-fig:first-child { padding-left: 0; border-left: none; }
.ov-fig-l { font-size: 12px; font-weight: 500; color: var(--gray-light); display: flex; align-items: center; gap: 8px; }
.ov-fig-n { font-family: var(--font-serif); font-size: 32px; letter-spacing: -.5px; line-height: 1.1; margin-top: 6px; color: var(--black); font-variant-numeric: tabular-nums; }
.ov-fig-f { font-size: 12px; color: var(--gray-light); margin-top: 6px; min-height: 16px; }

.ov-conns { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; font-size: 13.5px; margin-top: 12px; }
.ov-conn { display: flex; align-items: center; gap: 8px; }
.ov-conn-tekst { color: var(--gray-light); }
.ov-conn-tekst--fout { color: var(--red); }

.ov-two { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; }
.ov-ledger { display: flex; flex-direction: column; }
.ov-ledger-r { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--gray-border); font-size: 14px; }
.ov-ledger-r:last-child { border-bottom: 1px solid var(--gray-border); }
.ov-ledger-n { width: 150px; flex: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ov-ledger-bar { flex: 1; height: 6px; border-radius: 3px; background: var(--gray-border); position: relative; overflow: hidden; }
.ov-ledger-bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 3px; background: var(--green); }
.ov-ledger-v { width: 80px; flex: none; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.ov-ledger-v--neg { color: var(--red); }
.ov-foot { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--gray-light); margin-top: 10px; }

.ov-legend { display: flex; gap: 16px; font-size: 12px; color: var(--gray-light); }
.ov-legend span { display: inline-flex; align-items: center; gap: 6px; }
.ov-sw { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.ov-trend { width: 100%; height: auto; display: block; margin-top: 10px; }
.ov-trend-grid { stroke: var(--gray-border); stroke-dasharray: 3 4; }
.ov-trend-label { font-family: "DM Sans", sans-serif; font-size: 11px; font-weight: 700; fill: var(--black); }
.ov-trend-label--2 { fill: var(--gray); }
.ov-trend-leeg { padding: 24px 0; }
.ov-xaxis { display: flex; justify-content: space-between; font-size: 11px; color: var(--gray-light); margin-top: 6px; padding-right: 13%; }

.ov-start { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--gray); padding-top: 16px; }
.ov-start-prog { display: inline-flex; gap: 3px; }
.ov-start-seg { width: 18px; height: 6px; border-radius: 3px; background: var(--green); display: inline-block; }
.ov-start-seg--open { background: var(--gray-border); }
.ov-start-link { margin-left: auto; }

/* Zijbalk als rail op desktop: alleen iconen, labels als tooltip. Op
   mobiel blijft de lade met volledige labels (zie de 768px-regels). */
@media (min-width: 769px) {
  .sidebar { width: 64px; }
  .sidebar-brand { padding: 18px 14px; justify-content: center; }
  .sidebar-title, .nav-group-label, .sidebar-user .user-name, .sidebar-user .user-role { display: none; }
  .sidebar-nav { padding: 12px; }
  .nav-item { position: relative; justify-content: center; padding: 10px; }
  /* Het label blijft in de knop staan (voor schermlezers) en schuift bij
     hover of toetsenbordfocus als bordje naast het icoon */
  .nav-label {
    position: absolute; left: calc(100% + 10px); top: 50%; transform: translateY(-50%) translateX(-4px);
    background: var(--black); color: #fff; font-size: 12.5px; font-weight: 600; letter-spacing: 0;
    padding: 6px 10px; border-radius: 6px; white-space: nowrap; pointer-events: none;
    opacity: 0; transition: opacity .12s, transform .12s; z-index: 160;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .18);
  }
  .nav-label::before {
    content: ""; position: absolute; right: 100%; top: 50%; transform: translateY(-50%);
    border: 5px solid transparent; border-right-color: var(--black);
  }
  .nav-item:hover .nav-label, .nav-item:focus-visible .nav-label,
  .btn-logout-sidebar:hover .nav-label, .btn-logout-sidebar:focus-visible .nav-label {
    opacity: 1; transform: translateY(-50%) translateX(0);
  }
  .nav-badge { position: absolute; top: 4px; right: 4px; margin-left: 0; }
  .sidebar-footer { padding: 12px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
  .sidebar-user { margin-bottom: 0; }
  .btn-logout-sidebar { position: relative; width: 40px; height: 40px; padding: 0; display: flex; align-items: center; justify-content: center; }
  .btn-logout-sidebar svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.85; stroke-linecap: round; stroke-linejoin: round; }
  .main-content { margin-left: 64px; }
}
@media (max-width: 768px) {
  .btn-logout-sidebar svg { display: none; }
  .ov { gap: 20px; }
  .ov-lead { font-size: 44px; }
  .ov-lead small { display: block; margin: 6px 0 0; font-size: 15px; font-family: "DM Sans", sans-serif; }
  .ov-story { font-size: 18px; }
  /* Twee knoppen per rij, de eerste over de volle breedte: zo blijft
     "Nu nodig" op een telefoon boven de vouw */
  .ov-chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ov-chip { min-height: 44px; padding: 8px 10px; font-size: 12.5px; }
  .ov-chip--primary { grid-column: 1 / -1; }
  .ov-row { flex-wrap: wrap; align-items: flex-start; }
  .ov-row-meta { margin-left: 22px; flex-basis: 100%; }
  .ov-btn-out, .ov-row-meta + .ov-btn-out { margin-left: 0; flex-basis: 100%; min-height: 40px; }
  .ov-figs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 0; }
  .ov-fig:nth-child(odd) { padding-left: 0; border-left: none; }
  .ov-fig-n { font-size: 28px; }
  .ov-conns { flex-direction: column; align-items: flex-start; gap: 10px; }
  .ov-two { grid-template-columns: 1fr; gap: 28px; }
  .ov-ledger-n { width: 118px; }
}

/* ============================================================ SCHADE */
.fine-status--gecontroleerd { background: var(--green-bg); color: var(--green-dark); }
.fine-status--verzonden,
.fine-status--in_behandeling { background: var(--blue-bg); color: var(--blue); }
.claim-row--open td { background: var(--green-bg); }
.claim-insurer-form { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.claim-insurer-form .search-input { flex: 1; min-width: 160px; }
.claim-detail {
  margin-top: 20px; background: #fff; border: 1px solid var(--gray-border); border-radius: var(--radius); padding: 22px 24px 24px;
  opacity: 1; transform: translateY(0);
  transition: opacity 200ms cubic-bezier(.23, 1, .32, 1), transform 200ms cubic-bezier(.23, 1, .32, 1);
  @starting-style { opacity: 0; transform: translateY(6px); }
}
.claim-detail-header { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.claim-detail-title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.claim-detail-tools { display: flex; align-items: center; gap: 18px; flex-shrink: 0; }
.claim-detail h2 { font-size: 18px; margin: 0; letter-spacing: -.2px; }
.claim-sub { margin: 4px 0 0; font-size: 13px; color: var(--gray-light); }
.claim-note { margin-top: 14px; padding: 9px 12px; border-radius: 8px; font-size: 13px; font-weight: 500; }
.claim-note--missing { background: var(--red-bg); color: var(--red); }
.claim-note--ok { background: var(--green-bg); color: var(--green-dark); }
.claim-note--sent { background: var(--blue-bg); color: var(--blue); }
.claim-note--done { background: var(--bg-soft); color: var(--gray); }
.claim-note .claim-link { color: inherit; text-decoration: underline; margin-left: 6px; padding: 0; }
.claim-section { margin-top: 22px; }
.claim-section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.claim-section-title {
  font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--gray-light); margin: 0 0 10px;
}
.claim-save-state { font-size: 12px; color: var(--gray-light); transition: opacity 400ms ease; }
.claim-save-state--ok { color: var(--green-dark); }
.claim-save-state--error { color: var(--red); }
.claim-save-state--fade { opacity: 0; }
.claim-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px 14px; }
.claim-field { display: flex; flex-direction: column; gap: 5px; font-size: 12px; font-weight: 600; color: var(--gray); margin-top: 12px; }
.claim-grid .claim-field { margin-top: 0; }
.claim-field .search-input, .claim-field .select-sm { width: 100%; font-weight: 400; color: var(--black); }
.claim-field textarea.search-input { resize: vertical; line-height: 1.45; }
.claim-field em { font-style: normal; font-weight: 500; color: var(--red); margin-left: 6px; }
.claim-field--missing span { color: var(--red); }
.claim-field--missing .search-input { border-color: var(--red); }
.claim-photos { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-start; }
.claim-photo { position: relative; margin: 0; width: 148px; font-size: 12px; color: var(--gray-light); }
.claim-photo a { display: block; }
.claim-photo img { width: 148px; height: 112px; object-fit: cover; border-radius: 8px; border: 1px solid var(--gray-border); display: block; }
.claim-photo figcaption { margin-top: 4px; }
.claim-photo-remove {
  position: absolute; top: 6px; right: 6px; min-width: 24px; height: 24px; padding: 0 7px;
  border: none; border-radius: var(--radius-pill); background: rgba(23, 25, 28, .72); color: #fff;
  font-size: 15px; line-height: 24px; font-family: inherit; cursor: pointer;
  transition: background .15s, transform 160ms cubic-bezier(.23, 1, .32, 1);
}
.claim-photo-remove:hover { background: var(--black); }
.claim-photo-remove.is-armed { background: var(--red); font-size: 12px; font-weight: 700; }
.claim-photo-remove:active { transform: scale(.94); }
.claim-photo-add {
  display: flex; align-items: center; justify-content: center; width: 148px; height: 112px;
  border: 1.5px dashed var(--gray-border-strong); border-radius: 8px; color: var(--gray);
  font-size: 13px; font-weight: 600; cursor: pointer;
  transition: border-color .15s, color .15s, transform 160ms cubic-bezier(.23, 1, .32, 1);
}
.claim-photo-add:hover { border-color: var(--black); color: var(--black); }
.claim-photo-add:active { transform: scale(.97); }
.claim-photo--busy, .claim-photo--missing {
  display: flex; align-items: center; justify-content: center; width: 148px; height: 112px;
  border: 1px dashed var(--gray-border-strong); border-radius: 8px; color: var(--gray-light); font-size: 12px;
}
.claim-empty { margin: 0; font-size: 13px; color: var(--gray-light); }
.claim-mail { border: 1px solid var(--gray-border); border-radius: 10px; overflow: hidden; }
.claim-mail-head { margin: 0; padding: 12px 16px; display: grid; gap: 6px; background: var(--bg-soft); font-size: 13px; }
.claim-mail-head div { display: grid; grid-template-columns: 84px 1fr; gap: 8px; }
.claim-mail-head dt { color: var(--gray-light); }
.claim-mail-head dd { margin: 0; color: var(--black); overflow-wrap: anywhere; }
.claim-mail-text { border-top: 1px solid var(--gray-border); }
.claim-mail-text summary { padding: 10px 16px; font-size: 13px; font-weight: 600; color: var(--gray); cursor: pointer; list-style: none; display: flex; align-items: center; gap: 8px; }
.claim-mail-text summary::-webkit-details-marker { display: none; }
.claim-mail-text summary::before { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(-45deg); transition: transform 160ms cubic-bezier(.23, 1, .32, 1); }
.claim-mail-text[open] summary::before { transform: rotate(45deg); }
.claim-mail-body { white-space: pre-wrap; font-family: inherit; font-size: 13px; line-height: 1.55; margin: 0; padding: 0 16px 14px; color: var(--gray); }
.claim-mail-footer { border-top: 1px solid var(--gray-border); padding: 14px 16px; }
.claim-actions { display: flex; gap: 6px 18px; flex-wrap: wrap; align-items: center; }
.claim-actions .claim-send { min-width: 236px; }
.claim-actions .btn-primary { text-decoration: none; text-align: center; }
.claim-selfsent { font-size: 13px; color: var(--gray); }
.claim-selfsent[hidden] { display: none; }
.claim-link {
  background: none; border: none; padding: 6px 0; font-family: inherit; font-size: 13px; font-weight: 600;
  color: var(--gray); text-decoration: none; cursor: pointer; transition: color .15s, transform 160ms cubic-bezier(.23, 1, .32, 1);
}
.claim-link:hover { color: var(--black); text-decoration: underline; }
.claim-link--strong { color: var(--black); text-decoration: underline; }
.claim-hint { margin: 10px 0 0; font-size: 12px; color: var(--gray-light); }
.claim-detail .btn-primary { transition: transform 160ms cubic-bezier(.23, 1, .32, 1), background .15s; }
.claim-detail .btn-primary:hover { transform: none; }
.claim-detail .btn-primary:active, .claim-link:active { transform: scale(.97); }
.claim-detail .btn-primary:disabled { transform: none; }
@media (max-width: 640px) {
  .claim-detail { padding: 18px 16px 20px; }
  .claim-detail-header { align-items: flex-start; }
  .claim-detail-tools { flex-direction: column; align-items: flex-end; gap: 2px; }
  .claim-mail-head div { grid-template-columns: 1fr; gap: 2px; }
  .claim-actions .claim-send, .claim-actions .btn-primary { width: 100%; min-width: 0; }
}
