/* Werbung Module — scoped design system
 * Dark mode: .wb-root.wb-dark (NOT global .dark — cascade conflicts in MDI iframe)
 * Fonts: Inter only (matches app-wide tailwind.config.js fontFamily.sans)
 * Colors: Tailwind blue-600/green-600/amber-600/red-500
 */

/* ── Reset ─────────────────────────────────────────────────────────────────── */
.wb-root, .wb-root * { box-sizing: border-box; }
.wb-root button, .wb-root select, .wb-root input, .wb-root textarea {
    font: inherit; cursor: pointer;
}

/* ── Focus states (keyboard accessibility) ─────────────────────────────────── */
.wb-root :focus-visible {
    outline: 2px solid var(--brand-600);
    outline-offset: 2px;
}
.wb-root {
    --brand-50:  #eff6ff;
    --brand-100: #dbeafe;
    --brand-200: #bfdbfe;
    --brand-300: #93c5fd;
    --brand-400: #60a5fa;
    --brand-500: #3b82f6;
    --brand-600: #2563eb;
    --brand-700: #1d4ed8;
    --brand-800: #1e40af;
    --brand-900: #1e3a8a;
    --brand-bg:  rgba(37,99,235,0.08);

    --status-ok:      #16a34a;
    --status-warn:    #d97706;
    --status-error:   #ef4444;
    --status-ok-bg:   rgba(22,163,74,0.10);
    --status-warn-bg: rgba(217,119,6,0.10);
    --status-err-bg:  rgba(239,68,68,0.10);

    --bg:           #f9fafb;
    --bg-elev:      #ffffff;
    --bg-sunken:    #f3f4f6;
    --bg-hover:     #f3f4f6;
    --surface:      #ffffff;
    --surface-2:    #f3f4f6;
    --border:       #e5e7eb;
    --border-strong:#d1d5db;
    --text:         #111827;
    --text-muted:   #4b5563;
    --text-faint:   #9ca3af;

    --font:      'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

    font-family: var(--font);
    font-size: 13px;
    line-height: 1.45;
    color: var(--text);
    background: var(--bg);
    width: 100%;
    height: 100vh;
    min-height: 0;
    overflow: hidden;
    position: relative;
}

/* ── Tokens (dark) ─────────────────────────────────────────────────────────── */
.wb-root.wb-dark {
    --brand-bg:  rgba(37,99,235,0.18);
    --bg:        #111827;
    --bg-elev:   #1f2937;
    --bg-sunken: #0f172a;
    --bg-hover:  #374151;
    --surface:   #1f2937;
    --surface-2: #0f172a;
    --border:    #374151;
    --border-strong: #4b5563;
    --text:      #f3f4f6;
    --text-muted:#9ca3af;
    --text-faint:#6b7280;
    --status-ok-bg:   rgba(22,163,74,0.15);
    --status-warn-bg: rgba(217,119,6,0.15);
    --status-err-bg:  rgba(239,68,68,0.15);
}

/* Force color inside wb-root so MDI host can't override */
.wb-root, .wb-root h1, .wb-root h2, .wb-root h3,
.wb-root p, .wb-root span, .wb-root div, .wb-root td, .wb-root th {
    color: var(--text);
}
.wb-root .muted { color: var(--text-muted) !important; }
.wb-root .faint { color: var(--text-faint) !important; }
.wb-root .mono  { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.wb-root .num   { font-variant-numeric: tabular-nums; }

/* ── Module layout ─────────────────────────────────────────────────────────── */
.wb-module {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
}

/* Persistent sub-tab strip at top of module */
.wb-subtabs {
    display: flex;
    align-items: stretch;
    border-bottom: 1px solid var(--border);
    padding: 0 20px;
    background: var(--bg);
    flex-shrink: 0;
}
.wb-subtab {
    position: relative;
    padding: 11px 16px 12px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    background: transparent;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: -1px;
    white-space: nowrap;
    cursor: pointer;
    transition: color 120ms;
}
.wb-subtab:hover { color: var(--text); }
.wb-subtab.active {
    color: var(--brand-700);
    font-weight: 600;
    border-bottom: 2px solid var(--brand-600);
}
.wb-root.wb-dark .wb-subtab.active {
    color: var(--brand-300);
    border-bottom-color: var(--brand-400);
}
.wb-subtab.disabled { opacity: 0.45; cursor: not-allowed; }

/* Page content area */
.wb-page {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: auto;
    padding: 20px 24px;
    min-width: 0;
}

/* ── Page header ───────────────────────────────────────────────────────────── */
.wb-page-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 18px;
    gap: 16px;
    flex-wrap: wrap;
}
.wb-page-title {
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.015em;
    margin: 0;
    color: var(--text);
}
.wb-page-sub {
    font-size: 12px;
    color: var(--text-muted);
    margin: 4px 0 0;
}

/* ── KPI grid ──────────────────────────────────────────────────────────────── */
.wb-kpi-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 18px;
}
@media (max-width: 900px) {
    .wb-kpi-grid { grid-template-columns: repeat(2, 1fr); }
}
.wb-kpi-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 18px;
}
@media (max-width: 1024px) {
    .wb-kpi-grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .wb-kpi-grid-4 { grid-template-columns: repeat(2, 1fr); }
}
.wb-kpi {
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 14px 16px;
    min-width: 0;
}
.wb-kpi-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.01em;
    margin-bottom: 6px;
}
.wb-kpi-value {
    font-size: 26px;
    font-weight: 600;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
    color: var(--text);
    line-height: 1.1;
    margin-bottom: 4px;
}
.wb-kpi-delta {
    font-size: 11px;
    font-family: var(--font-mono);
    font-variant-numeric: tabular-nums;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    color: var(--text-faint);
}
.wb-kpi-delta.up   { color: var(--status-ok); }
.wb-kpi-delta.down { color: var(--status-error); }

/* ── 2-col grid ────────────────────────────────────────────────────────────── */
.wb-grid-2col {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 14px;
    align-items: stretch;
    flex: 1;
    min-height: 0;
}
@media (max-width: 768px) {
    .wb-grid-2col { grid-template-columns: 1fr; }
}
.wb-grid-2col > * { min-width: 0; }

/* ── Cards ─────────────────────────────────────────────────────────────────── */
.wb-card {
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.wb-card-head {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.wb-card-head svg { color: var(--text-muted); }
.wb-card-title {
    font-size: 13px;
    font-weight: 600;
    margin: 0;
    color: var(--text);
}
.wb-card-body { padding: 14px 16px; }
.wb-card-foot {
    padding: 10px 16px;
    border-top: 1px solid var(--border);
    background: var(--bg-sunken);
    font-size: 11px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ── Buttons ────────────────────────────────────────────────────────────────── */
.wb-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    min-height: 40px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid var(--border);
    background: var(--bg-elev);
    color: var(--text);
    white-space: nowrap;
    transition: background 120ms, border-color 120ms;
    cursor: pointer;
}
.wb-btn:hover { background: var(--bg-hover); border-color: var(--border-strong); }
.wb-btn-primary {
    background: var(--brand-600);
    border-color: var(--brand-600);
    color: #fff !important;
}
.wb-btn-primary:hover { background: var(--brand-700); border-color: var(--brand-700); }
.wb-btn-ghost { background: transparent; border-color: transparent; color: var(--text-muted) !important; }
.wb-btn-ghost:hover { background: var(--bg-hover); color: var(--text) !important; }
.wb-btn-danger { background: var(--status-error); border-color: var(--status-error); color: #fff !important; }
.wb-btn-danger:hover { background: #dc2626; border-color: #dc2626; }
.wb-btn-sm { min-height: 36px; padding: 6px 10px; font-size: 12px; }
.wb-btn-icon { padding: 0 8px; min-width: 36px; justify-content: center; }
.wb-btn[disabled], .wb-btn:disabled { opacity: 0.5; cursor: not-allowed; pointer-events: none; }

/* ── Pills ──────────────────────────────────────────────────────────────────── */
.wb-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    background: var(--bg-sunken);
    color: var(--text-muted);
    border: 1px solid var(--border);
}
.wb-pill.brand { background: var(--brand-bg); color: var(--brand-700); border-color: transparent; }
.wb-pill.ok    { background: var(--status-ok-bg); color: var(--status-ok); border-color: transparent; }
.wb-pill.warn  { background: var(--status-warn-bg); color: var(--status-warn); border-color: transparent; }
.wb-pill.err   { background: var(--status-err-bg); color: var(--status-error); border-color: transparent; }
.wb-root.wb-dark .wb-pill.brand { color: var(--brand-300); }

/* ── Status dots ────────────────────────────────────────────────────────────── */
.wb-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    display: inline-block;
}
.wb-dot.ok   { background: var(--status-ok); }
.wb-dot.warn { background: var(--status-warn); }
.wb-dot.err  { background: var(--status-error); }

/* ── Table (GridView visual style) ─────────────────────────────────────────── */
.wb-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.wb-table th, .wb-table td {
    text-align: left;
    padding: 0 12px;
    height: 36px;
    border-bottom: 1px solid var(--border);
    font-variant-numeric: tabular-nums;
}
.wb-table th {
    font-weight: 600;
    font-size: 12px;
    color: var(--text-muted);
    background: var(--bg-sunken);
    height: 32px;
    position: sticky;
    top: 0;
    z-index: 1;
}
.wb-root.wb-dark .wb-table th { background: rgba(17,24,39,0.5); }
.wb-table tr:hover td { background: var(--bg-hover); }
.wb-table .num-col { text-align: right; }

/* ── Spinner ────────────────────────────────────────────────────────────────── */
.wb-spinner {
    border-radius: 50%;
    border: 2px solid #e5e7eb;
    border-bottom-color: var(--brand-600, #2563eb);
    animation: wb-spin 0.7s linear infinite;
    flex-shrink: 0;
}
@keyframes wb-spin { to { transform: rotate(360deg); } }
.wb-spinner.sm { width: 14px; height: 14px; }
.wb-spinner.md { width: 20px; height: 20px; }
.wb-spinner.lg { width: 32px; height: 32px; }

/* ── Empty state ────────────────────────────────────────────────────────────── */
.wb-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    color: var(--text-faint);
    font-size: 12px;
    gap: 6px;
    text-align: center;
}

/* ── Inputs ─────────────────────────────────────────────────────────────────── */
.wb-input {
    width: 100%;
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: var(--bg-elev);
    color: var(--text);
    font-size: 13px;
    min-height: 32px;
    transition: border-color 120ms, box-shadow 120ms;
}
.wb-input:focus {
    border-color: var(--brand-600);
    box-shadow: 0 0 0 2px var(--brand-bg);
}
.wb-select {
    appearance: none;
    padding-right: 28px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    cursor: pointer;
}
.wb-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.02em;
    margin-bottom: 4px;
    display: block;
}
.wb-field { margin-bottom: 12px; }
.wb-textarea {
    width: 100%;
    padding: 8px 10px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: var(--bg-elev);
    color: var(--text);
    font-size: 13px;
    font-family: var(--font-mono);
    resize: vertical;
    min-height: 120px;
    transition: border-color 120ms, box-shadow 120ms;
    line-height: 1.5;
}
.wb-textarea:focus {
    border-color: var(--brand-600);
    box-shadow: 0 0 0 2px var(--brand-bg);
}

/* ── Chips (filter bar) ─────────────────────────────────────────────────────── */
.wb-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 14px;
    font-size: 12px;
    background: var(--bg-elev);
    border: 1px solid var(--border);
    color: var(--text-muted);
    cursor: pointer;
    font-weight: 500;
    transition: background 120ms;
    white-space: nowrap;
}
.wb-chip:hover { background: var(--bg-hover); }
.wb-chip.active {
    background: var(--brand-bg);
    border-color: var(--brand-600);
    color: var(--brand-700);
}
.wb-root.wb-dark .wb-chip.active {
    background: rgba(59, 130, 246, 0.28);
    border-color: #3b82f6;
    color: #bfdbfe;
}
.wb-chip-check {
    width: 13px; height: 13px;
    border-radius: 3px;
    border: 1px solid var(--border-strong);
    background: var(--bg);
    display: grid; place-items: center;
    flex-shrink: 0;
    color: transparent;
}
.wb-chip.active .wb-chip-check {
    background: var(--brand-600);
    border-color: var(--brand-600);
    color: white;
}

/* ── Radio ──────────────────────────────────────────────────────────────────── */
.wb-radio {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 13px;
    padding: 4px 0;
    user-select: none;
}
.wb-radio-dot {
    width: 14px; height: 14px;
    border-radius: 50%;
    border: 1.5px solid var(--border-strong);
    background: var(--bg-elev);
    flex-shrink: 0;
    position: relative;
    transition: border-color 120ms;
}
.wb-radio.checked .wb-radio-dot { border-color: var(--brand-600); }
.wb-radio.checked .wb-radio-dot::after {
    content: '';
    position: absolute;
    inset: 2px;
    border-radius: 50%;
    background: var(--brand-600);
}

/* ── Toggle ─────────────────────────────────────────────────────────────────── */
.wb-toggle {
    width: 32px; height: 18px;
    background: var(--border-strong);
    border-radius: 12px;
    position: relative;
    cursor: pointer;
    transition: background 150ms;
    flex-shrink: 0;
    border: none;
    padding: 0;
}
.wb-toggle::after {
    content: '';
    position: absolute;
    top: 2px; left: 2px;
    width: 14px; height: 14px;
    border-radius: 50%;
    background: white;
    transition: transform 150ms;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.wb-toggle.on { background: var(--brand-600); }
.wb-toggle.on::after { transform: translateX(14px); }

/* ── Segmented control ──────────────────────────────────────────────────────── */
.wb-seg {
    display: inline-flex;
    background: var(--bg-sunken);
    border-radius: 6px;
    padding: 2px;
    border: 1px solid var(--border);
    gap: 1px;
}
.wb-seg-item {
    padding: 6px 14px;
    font-size: 12px;
    border-radius: 4px;
    color: var(--text-muted);
    cursor: pointer;
    font-weight: 500;
    min-height: 36px;
    display: flex;
    align-items: center;
    transition: background 120ms, color 120ms;
    border: none;
    background: transparent;
    white-space: nowrap;
}
.wb-seg-item:hover { color: var(--text); }
.wb-seg-item.active {
    background: var(--bg-elev);
    color: var(--text);
    box-shadow: 0 1px 2px rgba(0,0,0,0.08);
}

/* ── Tree / sidebar list ────────────────────────────────────────────────────── */
.wb-tree { font-size: 13px; }
.wb-tree-node {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 8px;
    border-radius: 5px;
    cursor: pointer;
    min-height: 30px;
    transition: background 100ms;
}
.wb-tree-node:hover { background: var(--bg-hover); }
.wb-tree-node.selected { background: var(--brand-bg); color: var(--brand-700); font-weight: 500; }
.wb-root.wb-dark .wb-tree-node.selected { color: var(--brand-300); }
.wb-tree-caret {
    width: 12px; height: 12px;
    display: grid; place-items: center;
    color: var(--text-faint);
    flex-shrink: 0;
}
.wb-tree-check {
    width: 14px; height: 14px;
    border: 1px solid var(--border-strong);
    border-radius: 3px;
    background: var(--bg-elev);
    flex-shrink: 0;
    display: grid; place-items: center;
    color: transparent;
    transition: background 120ms, border-color 120ms;
}
.wb-tree-check.checked {
    background: var(--brand-600);
    border-color: var(--brand-600);
    color: white;
}

/* ── Banners ────────────────────────────────────────────────────────────────── */
.wb-banner {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 12px;
    border: 1px solid;
    line-height: 1.5;
}
.wb-banner.info {
    background: var(--brand-bg);
    color: var(--brand-700);
    border-color: rgba(37,99,235,0.2);
}
.wb-root.wb-dark .wb-banner.info { color: var(--brand-300); }
.wb-banner.warn {
    background: var(--status-warn-bg);
    color: var(--status-warn);
    border-color: rgba(217,119,6,0.2);
}
.wb-banner.err {
    background: var(--status-err-bg);
    color: var(--status-error);
    border-color: rgba(239,68,68,0.2);
}

/* ── Dot grid background ────────────────────────────────────────────────────── */
.wb-dotgrid {
    background-image: radial-gradient(rgba(17,24,39,0.06) 1px, transparent 1px);
    background-size: 16px 16px;
}
.wb-root.wb-dark .wb-dotgrid {
    background-image: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
}

/* ── Hero gradient ──────────────────────────────────────────────────────────── */
.wb-hero {
    background: linear-gradient(135deg, var(--brand-700), var(--brand-900) 60%, #0c1e3f);
    border-radius: 8px;
    color: white;
    padding: 20px 24px;
    position: relative;
    overflow: hidden;
}
.wb-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.4 0'/></filter><rect width='200' height='200' filter='url(%23n)' opacity='0.5'/></svg>");
    opacity: 0.18;
    mix-blend-mode: overlay;
}
.wb-hero * { color: white !important; }

/* ── Token chip (cover letter editor) ───────────────────────────────────────── */
.wb-token-chip {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-family: var(--font-mono);
    background: var(--brand-bg);
    color: var(--brand-700);
    border: 1px solid rgba(37,99,235,0.2);
    cursor: pointer;
    user-select: none;
    transition: background 120ms;
}
.wb-token-chip:hover { background: var(--brand-100); }
.wb-root.wb-dark .wb-token-chip { color: var(--brand-300); }

/* ── Audit timeline ─────────────────────────────────────────────────────────── */
.wb-timeline { position: relative; padding-left: 22px; }
.wb-timeline::before {
    content: '';
    position: absolute;
    left: 7px; top: 8px; bottom: 8px;
    width: 1px;
    background: var(--border);
}
.wb-timeline-item { position: relative; padding-bottom: 16px; }
.wb-timeline-dot {
    position: absolute;
    left: -22px; top: 3px;
    width: 13px; height: 13px;
    border-radius: 50%;
    background: var(--bg-elev);
    border: 2px solid var(--border-strong);
}
.wb-timeline-dot.manual { border-color: var(--brand-600); }
.wb-timeline-dot.self   { border-color: var(--text-faint); }
.wb-timeline-dot.system { border-color: var(--text-faint); }

/* ── Source badge ───────────────────────────────────────────────────────────── */
.wb-source-badge {
    display: inline-flex;
    align-items: center;
    padding: 1px 6px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.03em;
}
.wb-source-badge.manual { background: var(--brand-bg); color: var(--brand-700); }
.wb-source-badge.self   { background: var(--bg-sunken); color: var(--text-muted); }
.wb-source-badge.system { background: var(--bg-sunken); color: var(--text-faint); }
.wb-root.wb-dark .wb-source-badge.manual { color: var(--brand-300); }

/* ── Anstehende Kampagnen list ──────────────────────────────────────────────── */
.wb-upcoming-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
}
.wb-upcoming-item:last-child { border-bottom: none; }
.wb-upcoming-icon {
    width: 36px; height: 36px;
    border-radius: 8px;
    background: var(--brand-bg);
    color: var(--brand-700);
    display: grid; place-items: center;
    flex-shrink: 0;
}
.wb-upcoming-icon.draft { background: var(--bg-sunken); color: var(--text-muted); }
.wb-root.wb-dark .wb-upcoming-icon { color: var(--brand-300); }

/* ── Panel sections (repeated padding+border pattern) ──────────────────────── */
.wb-panel-sec {
    padding: 14px;
    border-bottom: 1px solid var(--border);
}
.wb-panel-sec-sm {
    padding: 8px 12px;
    border-bottom: 1px solid var(--border);
}
.wb-panel-sec-head {
    padding: 10px 14px 6px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ── Full-height stammdaten layouts ─────────────────────────────────────────── */
.wb-verteiler-layout {
    display: grid;
    grid-template-columns: 260px 260px 1fr;
    gap: 12px;
    height: calc(100vh - 122px);
    min-height: 0;
}
.wb-schablonen-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 12px;
    height: calc(100vh - 122px);
    min-height: 0;
}
@media (max-width: 900px) {
    .wb-verteiler-layout { grid-template-columns: 1fr; height: auto; }
    .wb-schablonen-layout { grid-template-columns: 1fr; height: auto; }
}

/* ── 3-region layout (Preislistenversand) ───────────────────────────────────── */
.wb-3col {
    display: grid;
    grid-template-columns: 300px 1fr 260px;
    gap: 12px;
    height: calc(100% - 110px);
    min-height: 0;
}
@media (max-width: 1100px) {
    .wb-3col { grid-template-columns: 1fr; height: auto; }
}

/* ── Scrollbar ──────────────────────────────────────────────────────────────── */
.wb-root ::-webkit-scrollbar { width: 8px; height: 8px; }
.wb-root ::-webkit-scrollbar-track { background: transparent; }
.wb-root ::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 4px; }
.wb-root ::-webkit-scrollbar-thumb:hover { background: var(--text-faint); }
