/* Basis: Google-Ads-Reports / Herkulesweb theme-two (#14715b, #f1e2de) */
@import url("herkules-theme.css");

/* -------------------------------------------------------------------------- */
/* HR-Portal: Komponenten & Anpassungen                                        */
/* -------------------------------------------------------------------------- */

:root {
    --primary: var(--hw-primary);
    --primary-dark: var(--hw-primary-600);
    --border: var(--hw-line);
    --ok: var(--hw-primary);
    /* Kanban-Spalte: Rand = linke Akzentlinie in der Kandidatenliste (gleiche Werte) */
    --kanban-border-new: rgba(2, 132, 199, 0.35);
    --kanban-border-screened: rgba(5, 150, 105, 0.32);
    --kanban-border-contacted: rgba(109, 40, 217, 0.3);
    --kanban-border-phone_interview: rgba(15, 118, 110, 0.32);
    --kanban-border-interview_round_1: rgba(234, 88, 12, 0.34);
    --kanban-border-interview_round_2: rgba(225, 29, 72, 0.28);
    --kanban-border-trial_day: rgba(77, 124, 15, 0.32);
    --kanban-border-hired: rgba(22, 163, 74, 0.45);
    --kanban-border-offer_sent: rgba(79, 70, 229, 0.3);
    --kanban-border-offer_accepted: rgba(22, 163, 74, 0.35);
    --kanban-border-contract_sent: rgba(29, 78, 216, 0.32);
    --kanban-border-offer_declined: rgba(87, 83, 78, 0.32);
    --kanban-border-rejected: rgba(220, 38, 38, 0.32);
    --kanban-border-candidate_withdrawn: rgba(217, 119, 6, 0.36);
    --kanban-border-none: rgba(120, 113, 108, 0.35);
    /* Gleiche Pastelltöne wie Kanban-Kacheln (Pills / Prozess-Dropdown) */
    --kanban-bg-new: rgba(14, 165, 233, 0.13);
    --kanban-bg-screened: rgba(16, 185, 129, 0.11);
    --kanban-bg-contacted: rgba(139, 92, 246, 0.13);
    --kanban-bg-phone_interview: rgba(13, 148, 136, 0.12);
    --kanban-bg-interview_round_1: rgba(249, 115, 22, 0.14);
    --kanban-bg-interview_round_2: rgba(244, 63, 94, 0.1);
    --kanban-bg-trial_day: rgba(101, 163, 13, 0.12);
    --kanban-bg-hired: rgba(34, 197, 94, 0.22);
    --kanban-bg-offer_sent: rgba(99, 102, 241, 0.12);
    --kanban-bg-offer_accepted: rgba(34, 197, 94, 0.12);
    --kanban-bg-contract_sent: rgba(37, 99, 235, 0.11);
    --kanban-bg-offer_declined: rgba(120, 113, 108, 0.13);
    --kanban-bg-rejected: rgba(239, 68, 68, 0.1);
    --kanban-bg-candidate_withdrawn: rgba(245, 158, 11, 0.14);
    --kanban-bg-none: rgba(168, 162, 158, 0.14);
}

a.contact-link {
    color: var(--hw-primary, #14715b);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

a.contact-link:hover {
    text-decoration-thickness: 2px;
}

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

.board-card-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}

.board-archive-form {
    display: inline;
    margin: 0;
}

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

.candidate-view-page .cv-hero-archive {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-top: 12px;
    padding-top: 14px;
    border-top: 1px solid var(--hw-line);
}

.candidate-view-page .cv-hero-archive .cv-workflow-status-shell {
    margin-bottom: 0;
}

.candidate-view-page .cv-hero-archive-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.candidate-view-page .cv-back-row {
    margin-bottom: 12px;
}

.candidate-view-page .cv-back-btn {
    font-weight: 600;
}

.candidate-view-page .cv-hero-archived-badge {
    vertical-align: middle;
    margin-left: 8px;
    font-size: 0.7rem;
}

.candidate-view-page .cv-archive-form {
    display: inline;
    margin: 0;
}

body.hr-portal,
body.hr-admin {
    font-family: "PolySans", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
}

/* Kein seitliches Scrollen der ganzen Seite (Board/Tabellen bleiben im Bereich scrollbar) */
html {
    overflow-x: hidden;
}

body.hr-portal,
body.hr-admin,
body.login-body {
    overflow-x: hidden;
    max-width: 100%;
}

body.hr-portal main.page,
body.hr-admin main.page {
    width: 100%;
    max-width: min(var(--max-width), 100%);
    min-width: 0;
    box-sizing: border-box;
}

body.hr-portal .app-shell,
body.hr-admin .app-shell {
    min-width: 0;
}

/* Login: E-Mail-Feld wie Theme-Passwortfeld */
.login-card input[type="email"] {
    width: 100%;
    border: 1px solid var(--hw-line-strong);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--text);
    padding: 10px 12px;
    font-size: 0.875rem;
    margin-bottom: 12px;
}

.login-card .btn-primary {
    width: 100%;
    margin-top: 10px;
    padding: 9px 18px;
    border-radius: 999px;
    background: var(--hw-primary);
    color: #fff;
    font-weight: 600;
    font-size: 0.8125rem;
    border: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.login-card .btn-primary:hover {
    transform: translateY(-1px);
    background: var(--hw-primary-600);
    box-shadow: 0 4px 14px rgba(20, 113, 91, 0.2);
}

.login-card code {
    font-size: 0.75rem;
    color: var(--hw-primary);
    background: var(--hw-primary-25);
    padding: 2px 6px;
    border-radius: 6px;
}

.login-hw-brand {
    display: block;
    margin: 0 auto 14px;
    height: auto;
    max-height: 28px;
    width: auto;
    opacity: 0.95;
}

.login-brand-title {
    margin: 0 0 6px;
    font-size: clamp(1.35rem, 2vw + 0.8rem, 1.75rem);
    font-weight: 600;
    letter-spacing: -0.04em;
    line-height: 1.2;
    color: var(--hw-gray);
    text-align: center;
}

.login-subhead {
    margin: 0 0 10px;
    font-size: 0.875rem;
    font-weight: 600;
    text-align: center;
    color: var(--muted);
}

.muted {
    color: var(--muted);
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 24px 22px 56px;
}

/* Karten: wie hero/section im Report (Glas, weicher Rand) */
.card {
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.94) 0%, rgba(248, 251, 250, 0.9) 100%);
    border: 1px solid var(--hw-line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    backdrop-filter: var(--blur-glass);
    -webkit-backdrop-filter: var(--blur-glass);
    padding: 18px 20px;
}

.app-header.card {
    border-left: 3px solid var(--hw-primary);
    padding-left: 22px;
}

.logo {
    max-height: 70px;
    width: auto;
    margin-bottom: 8px;
}

.customer-logo {
    max-height: 44px;
    margin: 0;
}

h1, h2, h3 {
    margin-top: 0;
    color: var(--hw-gray);
}

label {
    font-weight: 600;
    display: block;
    margin-bottom: 6px;
    font-size: 0.75rem;
    color: var(--muted);
}

input, select, textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--hw-line-strong);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--text);
    font-size: 0.875rem;
    margin-bottom: 12px;
}

textarea {
    min-height: 110px;
    resize: vertical;
}

.btn {
    border: 0;
    border-radius: 999px;
    padding: 9px 18px;
    font-weight: 600;
    font-size: 0.8125rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    letter-spacing: -0.01em;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
    background: var(--hw-primary);
    color: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.btn-primary:hover {
    transform: translateY(-1px);
    background: var(--hw-primary-600);
    box-shadow: 0 4px 14px rgba(20, 113, 91, 0.2);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.65);
    color: var(--muted);
    border: 1px solid var(--hw-line);
}

.btn-ghost:hover {
    background: var(--hw-primary-50);
    color: var(--hw-primary);
    border-color: rgba(20, 113, 91, 0.18);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid var(--hw-primary);
    color: var(--hw-primary);
    font-weight: 600;
}

.btn-outline:hover {
    background: var(--hw-primary-50);
    border-color: var(--hw-primary-600);
}

.app-shell {
    display: grid;
    gap: 14px;
}

.app-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    min-width: 0;
}

.brand-row {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: 1 1 auto;
}

.brand-row > div {
    min-width: 0;
}

.dashboard-customer-title {
    margin: 0;
    font-size: clamp(1.5rem, 1.2vw + 1.1rem, 1.875rem);
    font-weight: 650;
    letter-spacing: -0.03em;
    line-height: 1.2;
    color: var(--hw-gray);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.stat-card {
    border: 1px solid var(--hw-line);
    border-radius: var(--radius-sm);
    padding: 12px;
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(12px);
}

.stat-card strong {
    display: block;
    margin-top: 6px;
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.03em;
    color: var(--hw-gray);
}

.stat-card small.muted {
    font-size: 0.6875rem;
    font-weight: 500;
}

.mobile-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.candidate-card {
    padding: 14px;
}

.candidate-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
    min-width: 0;
}

.candidate-head h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    min-width: 0;
    overflow-wrap: anywhere;
}

/* Topbar: frosted wie Report (nicht dunkel) */
.topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    backdrop-filter: var(--blur-glass);
    -webkit-backdrop-filter: var(--blur-glass);
    background: rgba(255, 255, 255, 0.72);
    border-bottom: 1px solid var(--hw-line);
    color: var(--hw-gray);
}

.topbar-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 12px 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.topbar strong {
    color: var(--hw-gray);
    font-weight: 600;
}

.topbar a {
    color: var(--muted);
    text-decoration: none;
    margin-left: 0;
    margin-right: 8px;
    padding: 6px 11px;
    border-radius: 999px;
    border: 1px solid var(--hw-line);
    font-size: 0.75rem;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.65);
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.topbar a:hover {
    background: var(--hw-primary-50);
    color: var(--hw-primary);
    border-color: rgba(20, 113, 91, 0.18);
}

/* Einheitliche Admin-Navigation mit aktiver Seite */
.admin-nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 2px;
    flex: 1 0 100%;
    margin-top: 4px;
    padding-top: 10px;
    border-top: 1px solid var(--hw-line, rgba(0, 0, 0, 0.1));
}
.admin-nav a.is-active {
    background: var(--hw-primary, #14715b);
    color: #fff;
    border-color: var(--hw-primary, #14715b);
    font-weight: 600;
}
.admin-nav a.is-active:hover {
    background: var(--hw-primary-700, #0f5746);
    color: #fff;
    border-color: var(--hw-primary-700, #0f5746);
}
.admin-nav .admin-nav-logout {
    margin-left: 6px;
    margin-right: 0;
}
.admin-nav-sep {
    display: inline-block;
    width: 1px;
    align-self: stretch;
    min-height: 20px;
    margin: 0 8px 0 2px;
    background: var(--hw-line, rgba(0, 0, 0, 0.14));
}

.grid {
    display: grid;
    gap: 16px;
}

.grid-tiles {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.tile {
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid var(--hw-line);
    border-radius: var(--radius-sm);
    padding: 16px;
    backdrop-filter: blur(12px);
}

.tile h3 {
    margin-bottom: 8px;
    color: var(--hw-gray);
}

.tile p {
    color: var(--muted);
    min-height: 48px;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.55);
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--hw-line);
}

th, td {
    text-align: left;
    border-bottom: 1px solid var(--hw-line);
    padding: 10px;
    font-size: 0.875rem;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.table-wrap {
    width: 100%;
    overflow-x: auto;
}

.admin-jobs-table {
    min-width: 1120px;
}

.admin-jobs-table th,
.admin-jobs-table td {
    vertical-align: top;
}

.admin-jobs-status-cell {
    white-space: nowrap;
}

.admin-jobs-actions {
    white-space: nowrap;
}

.admin-job-list {
    display: grid;
    gap: 12px;
    margin-top: 14px;
}

.admin-job-card {
    padding: 14px;
}

.admin-job-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.admin-job-card-head h2 {
    margin: 0;
    font-size: 1.05rem;
}

.admin-job-card-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-job-card-grid h3 {
    margin: 0 0 4px;
    font-size: 0.82rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.admin-job-card-grid p {
    margin: 0;
    line-height: 1.45;
}

.admin-job-card-actions {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.admin-job-card-actions form {
    margin: 0;
}

.html-editor {
    border: 1px solid var(--hw-line);
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
    margin-bottom: 12px;
}

.html-editor-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px;
    border-bottom: 1px solid var(--hw-line);
    background: rgba(243, 248, 247, 0.6);
}

.html-editor-toolbar button {
    appearance: none;
    border: 1px solid var(--hw-line-strong);
    background: #fff;
    border-radius: 8px;
    padding: 4px 8px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--hw-gray);
    cursor: pointer;
}

.html-editor-toolbar button:hover {
    border-color: rgba(20, 113, 91, 0.45);
    color: var(--hw-primary-700);
}

.html-editor-toolbar button.is-active {
    border-color: rgba(20, 113, 91, 0.62);
    background: rgba(20, 113, 91, 0.12);
    color: var(--hw-primary-700);
}

.html-editor-surface {
    min-height: 180px;
    padding: 10px;
    line-height: 1.45;
    outline: none;
}

.html-editor-surface:focus {
    box-shadow: inset 0 0 0 2px rgba(20, 113, 91, 0.12);
}

.html-editor-code {
    width: 100%;
    min-height: 200px;
    border: 0;
    padding: 10px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
    font-size: 0.84rem;
    line-height: 1.45;
    resize: vertical;
    outline: none;
}

.admin-approval-marker {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 8px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    vertical-align: middle;
}

.admin-approval-marker--yes {
    background: rgba(20, 113, 91, 0.14);
    color: var(--hw-primary-700);
}

.admin-approval-marker--no {
    background: rgba(107, 114, 128, 0.14);
    color: #4b5563;
}

.admin-job-approval-line {
    margin: 0 0 6px;
}

.job-publications-list {
    display: grid;
    gap: 10px;
    margin-bottom: 10px;
}

.job-publication-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 8px 0 10px;
}

.job-publication-row {
    display: grid;
    grid-template-columns: 1fr 1.4fr 1.2fr auto;
    gap: 8px;
    align-items: center;
}

.job-board-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
}

.job-board-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 10px;
    border-radius: 999px;
    border: 1px solid rgba(20, 113, 91, 0.25);
    background: rgba(20, 113, 91, 0.06);
    text-decoration: none;
    color: var(--hw-primary-700);
    font-size: 0.82rem;
    font-weight: 600;
}

.job-board-chip img {
    width: 18px;
    height: 18px;
    object-fit: contain;
    border-radius: 3px;
    background: #fff;
}

@media (max-width: 860px) {
    .admin-job-card-grid {
        grid-template-columns: 1fr;
    }
    .job-publication-row {
        grid-template-columns: 1fr;
    }
}

.cv-panel > .dashboard-panel-summary {
    position: relative;
    padding-right: 2rem;
}

.cv-panel > .dashboard-panel-summary::after {
    content: "▾";
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%) rotate(-90deg);
    color: var(--muted);
    font-size: 0.95rem;
    transition: transform 0.16s ease, color 0.16s ease;
}

.cv-panel[open] > .dashboard-panel-summary::after {
    transform: translateY(-50%) rotate(0deg);
    color: var(--hw-primary-700);
}

.badge {
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.badge-new, .badge-received { background: rgba(0, 153, 204, 0.12); color: #006b8f; }
.badge-screening, .badge-shortlisted { background: var(--hw-primary-50); color: var(--hw-primary-600); }
.badge-interview { background: rgba(255, 179, 7, 0.22); color: #7a5a00; }
.badge-rejected { background: rgba(185, 28, 28, 0.12); color: #b91c1c; }
.badge-screened { background: var(--hw-primary-25); color: var(--hw-primary); }
.badge-contacted { background: rgba(139, 92, 246, 0.15); color: #5b21b6; }
.badge-phone_interview { background: rgba(255, 179, 7, 0.22); color: #7a5a00; }
.badge-interview_round_1 { background: rgba(249, 115, 22, 0.15); color: #c2410c; }
.badge-interview_round_2 { background: rgba(244, 63, 94, 0.12); color: #be123c; }
.badge-trial_day { background: rgba(20, 184, 166, 0.15); color: #0f766e; }
.badge-offer_sent { background: rgba(99, 102, 241, 0.12); color: #4338ca; }
.badge-offer_accepted { background: var(--hw-primary-50); color: var(--hw-primary-600); }
.badge-offer_declined { background: rgba(244, 63, 94, 0.12); color: #be123c; }
.badge-draft { background: rgba(49, 57, 58, 0.08); color: var(--muted); }
.badge-active { background: var(--hw-primary-50); color: var(--hw-primary-600); }
.badge-paused { background: rgba(255, 179, 7, 0.22); color: #7a5a00; }
.badge-closed { background: rgba(49, 57, 58, 0.08); color: var(--muted); }
.badge-archived { background: rgba(107, 114, 128, 0.16); color: #374151; }

.alert {
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
    border: 1px solid var(--hw-line);
    font-size: 0.8125rem;
}

.alert-error {
    background: rgba(254, 226, 226, 0.85);
    color: #b91c1c;
}

.alert-success {
    background: rgba(248, 251, 250, 0.85);
    color: var(--hw-primary-600);
    border-color: rgba(20, 113, 91, 0.2);
}

.toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--hw-gray);
    color: #fff;
    padding: 12px 20px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.8125rem;
    box-shadow: 0 10px 30px rgba(49, 57, 58, 0.2);
    z-index: 4000;
    max-width: min(92vw, 28rem);
    text-align: center;
    line-height: 1.35;
}

.toast.toast--error {
    background: #b91c1c;
    color: #fff;
}

.cv-note-feed {
    margin-bottom: 1.25rem;
    padding: 1rem 1.1rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--hw-line);
    background: rgba(248, 251, 250, 0.65);
}

.cv-note-feed-title {
    font-size: 0.875rem;
    font-weight: 600;
    margin: 0 0 0.75rem;
}

.cv-note-feed-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.cv-note-feed-item + .cv-note-feed-item {
    margin-top: 0.9rem;
    padding-top: 0.9rem;
    border-top: 1px solid var(--hw-line);
}

.cv-note-feed-item {
    position: relative;
    padding-right: 42px;
}

.cv-note-feed-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 1rem;
    align-items: baseline;
    margin-bottom: 0.35rem;
}

.cv-note-feed-time {
    font-weight: 600;
    font-size: 0.8125rem;
}

.cv-note-feed-body {
    font-size: 0.875rem;
    line-height: 1.45;
}

.cv-note-delete-form {
    position: absolute;
    top: 0;
    right: 0;
    margin: 0;
}

.cv-note-delete-btn {
    min-width: 30px;
    padding: 4px 6px;
}

.status-pill {
    display: inline-block;
    padding: 6px 12px 6px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: normal;
    max-width: 11rem;
    text-align: right;
    line-height: 1.25;
    border-left: 4px solid var(--hw-line);
    color: var(--hw-gray);
}

/* Wie Dashboard: Pastellfläche + Akkentrandsfarbe pro Prozessschritt */
.status-pill--new { background: var(--kanban-bg-new); border-left-color: var(--kanban-border-new); }
.status-pill--agency_reject_proposal { background: rgba(185, 28, 28, 0.12); border-left-color: #b91c1c; color: #991b1b; }
.status-pill--screened { background: var(--kanban-bg-screened); border-left-color: var(--kanban-border-screened); }
.status-pill--contacted { background: var(--kanban-bg-contacted); border-left-color: var(--kanban-border-contacted); }
.status-pill--phone_interview { background: var(--kanban-bg-phone_interview); border-left-color: var(--kanban-border-phone_interview); }
.status-pill--interview_round_1 { background: var(--kanban-bg-interview_round_1); border-left-color: var(--kanban-border-interview_round_1); }
.status-pill--interview_round_2 { background: var(--kanban-bg-interview_round_2); border-left-color: var(--kanban-border-interview_round_2); }
.status-pill--trial_day { background: var(--kanban-bg-trial_day); border-left-color: var(--kanban-border-trial_day); }
.status-pill--hired { background: var(--kanban-bg-hired); border-left-color: var(--kanban-border-hired); }
.status-pill--offer_sent { background: var(--kanban-bg-offer_sent); border-left-color: var(--kanban-border-offer_sent); }
.status-pill--offer_accepted { background: var(--kanban-bg-offer_accepted); border-left-color: var(--kanban-border-offer_accepted); }
.status-pill--contract_sent { background: var(--kanban-bg-contract_sent); border-left-color: var(--kanban-border-contract_sent); }
.status-pill--offer_declined { background: var(--kanban-bg-offer_declined); border-left-color: var(--kanban-border-offer_declined); }
.status-pill--rejected { background: var(--kanban-bg-rejected); border-left-color: var(--kanban-border-rejected); }
.status-pill--candidate_withdrawn { background: var(--kanban-bg-candidate_withdrawn); border-left-color: var(--kanban-border-candidate_withdrawn); }
.status-pill--none { background: var(--kanban-bg-none); border-left-color: var(--kanban-border-none); }

.candidate-card {
    border-left: 4px solid var(--hw-line);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.candidate-card--new { border-left-color: var(--kanban-border-new); }
.candidate-card--agency_reject_proposal { border-left-color: #b91c1c; }
.candidate-card--screened { border-left-color: var(--kanban-border-screened); }
.candidate-card--contacted { border-left-color: var(--kanban-border-contacted); }
.candidate-card--phone_interview { border-left-color: var(--kanban-border-phone_interview); }
.candidate-card--interview_round_1 { border-left-color: var(--kanban-border-interview_round_1); }
.candidate-card--interview_round_2 { border-left-color: var(--kanban-border-interview_round_2); }
.candidate-card--trial_day { border-left-color: var(--kanban-border-trial_day); }
.candidate-card--hired { border-left-color: var(--kanban-border-hired); }
.candidate-card--offer_sent { border-left-color: var(--kanban-border-offer_sent); }
.candidate-card--offer_accepted { border-left-color: var(--kanban-border-offer_accepted); }
.candidate-card--contract_sent { border-left-color: var(--kanban-border-contract_sent); }
.candidate-card--offer_declined { border-left-color: var(--kanban-border-offer_declined); }
.candidate-card--rejected { border-left-color: var(--kanban-border-rejected); }
.candidate-card--candidate_withdrawn { border-left-color: var(--kanban-border-candidate_withdrawn); }
.candidate-card--none { border-left-color: var(--kanban-border-none); }

.admin-candidate-stats {
    margin-top: 14px;
    margin-bottom: 12px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-candidate-grid {
    margin-top: 8px;
}

.admin-candidate-status-form {
    margin: 8px 0 10px;
    padding: 10px;
    border: 1px solid var(--hw-line);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.62);
}

.admin-candidate-status-row {
    display: flex;
    gap: 8px;
    align-items: center;
}

.admin-candidate-status-row .quick-select {
    flex: 1 1 auto;
}

.job-line { margin-top: 8px; font-weight: 600; color: var(--hw-gray); }
.contact-line { font-size: 0.875rem; margin: 6px 0; color: var(--muted); }
.next-line { font-size: 0.8125rem; margin-top: 6px; }

.tag {
    display: inline-block;
    margin-top: 8px;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
}

.tag--contacted {
    background: var(--hw-primary-50);
    color: var(--hw-primary-600);
}

.select-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--muted);
    margin: 10px 0 4px;
}

.stat-card--new { border-top: 3px solid var(--hw-primary); }
.stat-card--progress { border-top: 3px solid #2563eb; }
.stat-card--declined { border-top: 3px solid #dc2626; }
.stat-card--archived { border-top: 3px solid #6b7280; }
.stat-card--interview { border-top: 3px solid #d97706; }
.stat-card--link {
    text-decoration: none;
    color: inherit;
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.stat-card--link:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

/* To-do-Banner im Admin-Dashboard */
.admin-todo-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    border-left: 4px solid #d97706;
    background: linear-gradient(180deg, rgba(255, 247, 237, 0.9), rgba(255, 255, 255, 0.98));
}
.admin-todo-chip {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(217, 119, 6, 0.12);
    color: #b45309;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
}
.admin-todo-chip:hover {
    background: rgba(217, 119, 6, 0.2);
}

.job-approval {
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.94) 0%, rgba(248, 251, 250, 0.92) 100%);
    scroll-margin-top: 96px;
}

.job-approval-panels > .job-approval--tabbed + .job-approval--tabbed {
    margin-top: 16px;
}

.job-approval-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 14px;
}

.job-approval-tab {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    max-width: 100%;
    padding: 11px 18px;
    border-radius: 11px;
    border: 1px solid var(--hw-line, #d8e2de);
    background: #fff;
    color: var(--hw-ink, #1f2a27);
    font: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.job-approval-tab:hover {
    border-color: var(--hw-primary, #14715b);
}

.job-approval-tab.is-active {
    border-color: var(--hw-primary, #14715b);
    background: rgba(20, 113, 91, 0.1);
    color: var(--hw-primary-700, #0f5746);
    box-shadow: inset 0 -2px 0 var(--hw-primary, #14715b);
}

.job-approval-tab-dot {
    flex: 0 0 auto;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--hw-primary, #14715b);
}

.job-approval-tab-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 420px;
}

@media (max-width: 560px) {
    .job-approval-tab-label {
        max-width: 160px;
    }
}

/* Generische Stellen-Tabs (filtern bestehende Ansichten pro Stelle) */
.job-scope-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 1.5rem 0 14px;
}

.job-scope-tab {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    max-width: 100%;
    padding: 9px 16px;
    border-radius: 11px;
    border: 1px solid var(--hw-line, #d8e2de);
    background: #fff;
    color: var(--hw-ink, #1f2a27);
    font: inherit;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.job-scope-tab:hover {
    border-color: var(--hw-primary, #14715b);
}

.job-scope-tab.is-active {
    border-color: var(--hw-primary, #14715b);
    background: rgba(20, 113, 91, 0.1);
    color: var(--hw-primary-700, #0f5746);
    box-shadow: inset 0 -2px 0 var(--hw-primary, #14715b);
}

.job-scope-tab-dot {
    flex: 0 0 auto;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: hsl(var(--job-hue, 160) 55% 45%);
}

.job-scope-tab-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 280px;
}

.job-scope-tab-count {
    flex: 0 0 auto;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--hw-muted, #5b6b66);
    background: rgba(20, 113, 91, 0.08);
    border-radius: 999px;
    padding: 1px 8px;
}

.job-scope-tab.is-active .job-scope-tab-count {
    color: var(--hw-primary-700, #0f5746);
    background: rgba(20, 113, 91, 0.16);
}

@media (max-width: 560px) {
    .job-scope-tab-label {
        max-width: 150px;
    }
}

.job-approval-inline-error {
    margin: 0 0 10px;
}

.job-approval h2 {
    margin-top: 0;
    font-size: clamp(1.125rem, 1.35vw + 0.65rem, 1.375rem);
    font-weight: 600;
    color: var(--hw-gray);
}

.job-approval-title {
    margin: 12px 0;
    font-size: 1.05rem;
}

.job-approval-intro {
    margin: 0 0 14px;
    font-size: 0.9375rem;
    line-height: 1.55;
    color: var(--text);
}

.job-approval-intro p {
    margin: 0 0 10px;
}

.job-approval-intro p:last-child {
    margin-bottom: 0;
}

.job-approval-intro-note {
    font-size: 0.875rem;
}

.approval-comment-wrap > label[for="approval_comment"] {
    display: block;
    margin: 0 0 6px;
    font-weight: 600;
}

.approval-comment-wrap {
    margin: 6px 0 0;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid rgba(20, 113, 91, 0.18);
    background: rgba(20, 113, 91, 0.04);
    animation: approval-comment-in 0.18s ease;
}

.approval-comment-wrap[hidden] {
    display: none !important;
}

.approval-comment-wrap.is-error {
    border-color: #dc2626;
    background: rgba(220, 38, 38, 0.06);
    animation: approval-comment-shake 0.4s ease;
}

@keyframes approval-comment-in {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes approval-comment-shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    75% { transform: translateX(4px); }
}

.approval-comment-toggle-row {
    margin: 10px 0 0;
}

.approval-comment-toggle[hidden] {
    display: none !important;
}

.job-approval-publish-proposal {
    margin: 6px 0 20px;
}

.budget-approval-wrap {
    margin: 0 0 12px;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid rgba(20, 113, 91, 0.2);
    background: linear-gradient(145deg, rgba(20, 113, 91, 0.05) 0%, rgba(255, 255, 255, 0.94) 100%);
}

.budget-approval-amount {
    margin: 0 0 6px;
}

.budget-approval-note {
    margin: 0 0 10px;
}

.budget-approval-tile {
    display: grid;
    grid-template-columns: 22px 1fr;
    gap: 10px;
    align-items: start;
    border: 1px solid var(--hw-line);
    border-radius: 10px;
    background: #fff;
    padding: 10px 12px;
    cursor: pointer;
    transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease, transform .1s ease;
}

.budget-approval-tile:hover {
    border-color: rgba(20, 113, 91, 0.45);
}

.budget-approval-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.budget-approval-check {
    width: 18px;
    height: 18px;
    border-radius: 6px;
    border: 2px solid rgba(20, 113, 91, 0.45);
    margin-top: 1px;
    background: #fff;
    position: relative;
}

.budget-approval-text {
    font-weight: 600;
    color: var(--hw-gray);
    line-height: 1.35;
}

.budget-approval-tile.is-selected {
    border-color: rgba(20, 113, 91, 0.62);
    box-shadow: 0 0 0 3px rgba(20, 113, 91, 0.14);
    background: rgba(20, 113, 91, 0.08);
}

.budget-approval-tile.is-selected .budget-approval-check {
    border-color: var(--hw-primary);
    background: var(--hw-primary);
}

.budget-approval-tile.is-selected .budget-approval-check::after {
    content: "";
    position: absolute;
    left: 4px;
    top: 0px;
    width: 5px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.budget-approval-tile.is-error {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.14);
}

.approval-actions--primary {
    margin-top: 8px;
}

.approval-actions-hint {
    margin: 14px 0 6px;
    font-size: 0.8125rem;
}

.approval-actions--hold {
    margin-top: 8px;
}

.btn-ab-both {
    font-weight: 600;
    padding-top: 12px;
    padding-bottom: 12px;
}

.ab-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin: 16px 0;
    min-width: 0;
}

@media (min-width: 900px) {
    .ab-grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }
}

.ab-card {
    border-radius: var(--radius-sm);
    padding: 12px;
    border: 1px solid var(--hw-line);
    min-width: 0;
    max-height: 420px;
    overflow: auto;
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(12px);
}

.ab-card--a {
    border-color: rgba(20, 113, 91, 0.35);
    background: linear-gradient(145deg, var(--hw-primary-50) 0%, rgba(255, 255, 255, 0.95) 100%);
}

.ab-card--b {
    border-color: rgba(241, 226, 222, 0.9);
    background: linear-gradient(145deg, var(--hw-secondary) 0%, rgba(255, 255, 255, 0.95) 100%);
}

.ab-label {
    font-weight: 700;
    font-size: 0.7rem;
    line-height: 1.35;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--hw-primary);
    margin-bottom: 8px;
}

.ab-card--b .ab-label {
    color: var(--hw-muted);
}

.ad-preview {
    margin: 0;
    white-space: pre-wrap;
    font-family: "PolySans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 0.8125rem;
    line-height: 1.55;
    color: var(--text);
}

.ad-preview.ad-preview--html {
    white-space: normal;
}

.ad-preview.ad-preview--html .ad-preview-line {
    margin: 0 0 0.35em 0;
}

.ad-preview.ad-preview--html .ad-preview-line--empty {
    min-height: 0.45em;
    margin: 0;
}

.ad-preview.ad-preview--html .ad-preview-title {
    margin-bottom: 0.5em;
    font-weight: 700;
}

.ad-preview.ad-preview--html .ad-preview-title strong {
    font-weight: 700;
}

.ad-preview.ad-preview--html .ad-preview-heading {
    margin-top: 0.85em;
    margin-bottom: 0.35em;
}

.ad-preview.ad-preview--html .ad-preview-heading strong {
    font-weight: 700;
}

.job-ad-preview-box {
    border: 1px solid rgba(20, 113, 91, 0.22);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(248, 252, 250, 0.95) 0%, rgba(255, 255, 255, 0.98) 100%);
    padding: 14px 16px;
}

.job-ad-preview-box .ad-preview {
    margin: 0;
}

.approval-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 12px;
}

@media (min-width: 640px) {
    .approval-actions {
        flex-direction: row;
    }
}

.btn-ab {
    flex: 1;
    text-align: center;
}

.btn-ab-b {
    background: linear-gradient(135deg, var(--hw-primary-600) 0%, var(--hw-primary) 100%);
    color: #fff;
}

.btn-ab-b:hover {
    filter: brightness(1.05);
}

.board {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    overflow-x: auto;
}

.board-column {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid var(--hw-line);
    border-radius: var(--radius-sm);
    padding: 10px;
    min-height: 120px;
}

.board-column h3 {
    margin: 0 0 8px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--hw-gray);
}

.board-card {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid var(--hw-line);
    border-radius: 10px;
    padding: 8px;
    margin-bottom: 8px;
}

.board-card--agency-reject {
    border-left: 4px solid #b91c1c;
    background: rgba(185, 28, 28, 0.08);
}

.board-card.dragging {
    opacity: 0.5;
}

.board-card-job--danger {
    color: #991b1b;
    font-weight: 600;
}

.board-column.drop-target {
    outline: 2px dashed var(--hw-primary);
}

.board-scroll {
    margin: 0;
    padding: 0 0 10px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
}

/* Dashboard-Kanban: horizontales Scrollen im Container (body overflow-x: hidden) */
.board-scroll:has(.board--dashboard) {
    overflow-x: auto;
    overscroll-behavior-x: contain;
}

.board--dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
    gap: 10px;
    min-height: 140px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: visible;
}

.board.board--dashboard {
    overflow-x: visible;
}

.board--dashboard .board-column {
    min-width: 0;
}

/* Dashboard-Kanban: Spalten (Hintergrund/Rand = --kanban-bg-* / --kanban-border-*) */
.board--dashboard .board-column[data-stage="new"] {
    background: var(--kanban-bg-new);
    border-color: var(--kanban-border-new);
}
.board--dashboard .board-column[data-stage="screened"] {
    background: var(--kanban-bg-screened);
    border-color: var(--kanban-border-screened);
}
.board--dashboard .board-column[data-stage="contacted"] {
    background: var(--kanban-bg-contacted);
    border-color: var(--kanban-border-contacted);
}
.board--dashboard .board-column[data-stage="phone_interview"] {
    background: var(--kanban-bg-phone_interview);
    border-color: var(--kanban-border-phone_interview);
}
.board--dashboard .board-column[data-stage="interview_round_1"] {
    background: var(--kanban-bg-interview_round_1);
    border-color: var(--kanban-border-interview_round_1);
}
.board--dashboard .board-column[data-stage="interview_round_2"] {
    background: var(--kanban-bg-interview_round_2);
    border-color: var(--kanban-border-interview_round_2);
}
.board--dashboard .board-column[data-stage="trial_day"] {
    background: var(--kanban-bg-trial_day);
    border-color: var(--kanban-border-trial_day);
}
.board--dashboard .board-column[data-stage="hired"] {
    background: var(--kanban-bg-hired);
    border-color: var(--kanban-border-hired);
}
.board--dashboard .board-column[data-stage="offer_sent"] {
    background: var(--kanban-bg-offer_sent);
    border-color: var(--kanban-border-offer_sent);
}
.board--dashboard .board-column[data-stage="offer_accepted"] {
    background: var(--kanban-bg-offer_accepted);
    border-color: var(--kanban-border-offer_accepted);
}
.board--dashboard .board-column[data-stage="contract_sent"] {
    background: var(--kanban-bg-contract_sent);
    border-color: var(--kanban-border-contract_sent);
}
.board--dashboard .board-column[data-stage="offer_declined"] {
    background: var(--kanban-bg-offer_declined);
    border-color: var(--kanban-border-offer_declined);
}
.board--dashboard .board-column[data-stage="rejected"] {
    background: var(--kanban-bg-rejected);
    border-color: var(--kanban-border-rejected);
}
.board--dashboard .board-column[data-stage="candidate_withdrawn"] {
    background: var(--kanban-bg-candidate_withdrawn);
    border-color: var(--kanban-border-candidate_withdrawn);
}
.board--dashboard .board-column[data-stage="__none__"],
.board--dashboard .board-column.board-column--none {
    background: var(--kanban-bg-none);
    border-color: var(--kanban-border-none);
    opacity: 1;
}

.board-column--none {
    opacity: 0.92;
    border-style: dashed;
}

.board-column--request {
    border-style: dashed;
    border-color: #93c5fd;
    background: linear-gradient(180deg, rgba(219, 234, 254, 0.85) 0%, rgba(239, 246, 255, 0.75) 100%);
}

.board-column--request .board-column-title {
    color: #1d4ed8;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.agency-column-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 2px 8px;
    border-radius: 999px;
    border: 1px solid #93c5fd;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 0.66rem;
    letter-spacing: .02em;
}

.board-card--agency {
    border-left: 4px solid #3b82f6;
    background: #ffffff;
}

.agency-status-chip {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
    border: 1px solid transparent;
}

.agency-status-chip--new {
    background: #fff7ed;
    color: #c2410c;
    border-color: #fdba74;
}

.agency-status-chip--in_progress {
    background: #eff6ff;
    color: #1d4ed8;
    border-color: #93c5fd;
}

.agency-status-chip--done {
    background: #ecfdf5;
    color: #047857;
    border-color: #86efac;
}

.board-column-title {
    margin: 0 0 8px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--hw-gray);
    line-height: 1.3;
}

.board-card-job {
    margin: 6px 0 8px;
    font-size: 0.75rem;
    line-height: 1.35;
}

.btn-small {
    padding: 6px 12px;
    font-size: 0.75rem;
}

.board-card-actions--archive {
    flex-wrap: nowrap;
    gap: 6px;
}

.board-card-actions--archive .btn {
    padding: 4px 8px;
    font-size: 0.68rem;
    line-height: 1.2;
    white-space: nowrap;
}

/* Dashboard: Sprung-Kacheln & aufklappbare Bereiche */
.dashboard-nav-tiles {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 1.25rem;
}

@media (max-width: 900px) {
    .dashboard-nav-tiles {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    .dashboard-nav-tiles {
        grid-template-columns: 1fr;
    }
}

.dashboard-nav-tile {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--hw-line);
    background: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
    min-width: 0;
}

.dashboard-nav-tile:hover {
    border-color: rgba(20, 113, 91, 0.35);
    background: var(--hw-primary-50);
    box-shadow: 0 2px 10px rgba(20, 113, 91, 0.08);
}

.dashboard-nav-tile-label {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--hw-gray);
}

.dashboard-nav-tile-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.dashboard-nav-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1px 8px;
    border-radius: 999px;
    border: 1px solid rgba(20, 113, 91, 0.25);
    background: var(--hw-primary-50);
    color: var(--hw-primary-600);
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    white-space: nowrap;
}

.dashboard-nav-badge--bewerbungen {
    border-color: rgba(14, 165, 233, 0.45);
    background: rgba(14, 165, 233, 0.18);
    color: #075985;
    box-shadow: inset 0 0 0 1px rgba(14, 165, 233, 0.18);
}

.dashboard-nav-badge--archiv {
    border-color: rgba(185, 28, 28, 0.45);
    background: rgba(239, 68, 68, 0.16);
    color: #991b1b;
    box-shadow: inset 0 0 0 1px rgba(185, 28, 28, 0.16);
}

.dashboard-nav-tile-hint {
    font-size: 0.6875rem;
    color: var(--muted);
    line-height: 1.35;
}

.dashboard-stack {
    border: 1px solid var(--hw-line);
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-bottom: 1.25rem;
    background: rgba(255, 255, 255, 0.4);
}

.dashboard-stack .dashboard-panel {
    margin-bottom: 0;
    scroll-margin-top: 96px;
    border: none;
    padding: 0;
}

.dashboard-stack .dashboard-panel + .dashboard-panel {
    border-top: 1px solid var(--hw-line);
}

.dashboard-panel-summary-main {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.dashboard-panel-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 1.75rem;
    height: 1.75rem;
    color: var(--hw-primary);
    opacity: 0.92;
}

.dashboard-panel-icon svg {
    display: block;
    width: 100%;
    height: 100%;
}

.dashboard-stack .dashboard-panel-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    list-style: none;
    cursor: pointer;
    padding: 1.05rem 1.15rem;
    min-height: 3.35rem;
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--hw-gray);
    border: none;
    border-radius: 0;
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 251, 250, 0.96) 100%);
}

.dashboard-stack .dashboard-panel[open] > .dashboard-panel-summary {
    background: linear-gradient(165deg, rgba(255, 255, 255, 1) 0%, rgba(240, 253, 248, 0.98) 100%);
}

.dashboard-panel-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    list-style: none;
    cursor: pointer;
    padding: 14px 16px;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--hw-gray);
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.94) 0%, rgba(248, 251, 250, 0.92) 100%);
    border: 1px solid var(--hw-line);
    border-radius: var(--radius-sm);
}

.dashboard-panel-summary::-webkit-details-marker {
    display: none;
}

.dashboard-panel-summary::after {
    content: '▾';
    font-size: 0.85rem;
    color: var(--muted);
    transition: transform 0.2s ease;
    flex-shrink: 0;
    margin-left: 0.75rem;
}

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

.dashboard-stack .dashboard-panel-body {
    padding: 0 1rem 1.1rem;
    margin: 0;
    border-top: 1px solid rgba(20, 113, 91, 0.12);
    background: rgba(255, 255, 255, 0.5);
}

.dashboard-panel-body {
    padding: 12px 0 0;
}

.dashboard-stack .dashboard-panel-body > *:first-child {
    margin-top: 0;
}

.dashboard-published-list {
    margin: 0;
    padding-left: 1.1rem;
}

.dashboard-published-list li {
    margin-bottom: 6px;
}

.dashboard-published-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 16px;
}

/* Linker, flexibler Block: Titel + Badges. Nimmt den verfügbaren Platz ein,
   sodass die Aktionen rechts bleiben und bei Platzmangel als Ganzes umbrechen. */
.dashboard-published-main {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    min-width: 0;
    flex: 1 1 320px;
}

.dashboard-published-actions {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    flex: 0 0 auto;
    margin-left: auto;
}

.dashboard-published-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.dashboard-published-title strong {
    min-width: 0;
    overflow-wrap: anywhere;
}

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

.dashboard-published-dot {
    flex: 0 0 auto;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: hsl(var(--job-hue, 160) 55% 45%);
}

.dashboard-published-variant {
    background: rgba(20, 113, 91, 0.1);
    color: var(--hw-primary-700, #0f5746);
    font-weight: 600;
}

.job-view-table-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 10px;
}

.job-view-table-toolbar label {
    font-size: 0.9rem;
    color: var(--hw-gray);
}

.job-view-applications-table {
    width: 100%;
}

.job-view-applications-table th,
.job-view-applications-table td {
    vertical-align: middle;
}

.job-view-contact-actions {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.job-view-icon-btn {
    position: relative;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid var(--hw-border);
    background: rgba(255, 255, 255, 0.78);
    color: var(--hw-gray);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
    font-size: 0.95rem;
    line-height: 1;
}

.job-view-icon-btn svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.job-view-icon-btn:hover {
    border-color: rgba(14, 165, 233, 0.5);
    color: var(--hw-primary);
    background: rgba(14, 165, 233, 0.08);
}

.job-view-icon-btn::before,
.job-view-icon-btn::after {
    position: absolute;
    left: 50%;
    opacity: 0;
    pointer-events: none;
    transform: translateX(-50%) translateY(4px);
    transition: opacity 0.16s ease, transform 0.16s ease;
    z-index: 20;
}

.job-view-icon-btn::after {
    content: attr(data-tooltip);
    bottom: calc(100% + 10px);
    background: rgba(17, 24, 39, 0.95);
    color: #fff;
    border-radius: 6px;
    font-size: 0.78rem;
    line-height: 1.25;
    padding: 5px 8px;
    white-space: nowrap;
}

.job-view-icon-btn::before {
    content: '';
    bottom: calc(100% + 4px);
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid rgba(17, 24, 39, 0.95);
}

.job-view-icon-btn:hover::before,
.job-view-icon-btn:hover::after,
.job-view-icon-btn:focus-visible::before,
.job-view-icon-btn:focus-visible::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.job-view-status-shell .quick-select {
    min-width: 210px;
}

.job-view-status-shell--new .quick-select { background: var(--kanban-bg-new); border-color: var(--kanban-border-new); }
.job-view-status-shell--agency_reject_proposal .quick-select { background: rgba(185, 28, 28, 0.08); border-color: #b91c1c; color: #991b1b; }
.job-view-status-shell--screened .quick-select { background: var(--kanban-bg-screened); border-color: var(--kanban-border-screened); }
.job-view-status-shell--contacted .quick-select { background: var(--kanban-bg-contacted); border-color: var(--kanban-border-contacted); }
.job-view-status-shell--phone_interview .quick-select { background: var(--kanban-bg-phone_interview); border-color: var(--kanban-border-phone_interview); }
.job-view-status-shell--interview_round_1 .quick-select { background: var(--kanban-bg-interview_round_1); border-color: var(--kanban-border-interview_round_1); }
.job-view-status-shell--interview_round_2 .quick-select { background: var(--kanban-bg-interview_round_2); border-color: var(--kanban-border-interview_round_2); }
.job-view-status-shell--trial_day .quick-select { background: var(--kanban-bg-trial_day); border-color: var(--kanban-border-trial_day); }
.job-view-status-shell--hired .quick-select { background: var(--kanban-bg-hired); border-color: var(--kanban-border-hired); }
.job-view-status-shell--rejected .quick-select { background: var(--kanban-bg-rejected); border-color: var(--kanban-border-rejected); }
.job-view-status-shell--candidate_withdrawn .quick-select { background: var(--kanban-bg-candidate_withdrawn); border-color: var(--kanban-border-candidate_withdrawn); }

.dashboard-board-card {
    margin-bottom: 4px;
    min-width: 0;
    max-width: 100%;
}

.dashboard-board-title {
    margin: 0 0 6px;
    font-size: clamp(1.05rem, 1.1vw + 0.75rem, 1.25rem);
    font-weight: 600;
    color: var(--hw-gray);
}

.dashboard-board-hint {
    margin: 0 0 1.25rem;
    padding-top: 1.25rem;
    font-size: 0.875rem;
    line-height: 1.45;
    display: block;
}

.dashboard-board-card {
    min-width: 0;
    max-width: 100%;
}

.dashboard-board-card .board-scroll {
    padding-top: 1.75rem;
}

.dashboard-updates-card {
    margin: 12px 0 2px;
    border-left: 4px solid #2563eb;
}

.dashboard-updates-list {
    list-style: none;
    padding: 0;
    margin: 10px 0 0;
    display: grid;
    gap: 10px;
}

.dashboard-updates-list li {
    padding: 10px 12px;
    border: 1px solid var(--hw-line);
    border-radius: 10px;
    background: var(--hw-surface-soft, #f8f9ff);
}

.card--stack {
    margin-top: 16px;
}

.card--stack h2 {
    margin-top: 0;
}

.small-print {
    font-size: 0.8125rem;
    line-height: 1.45;
    margin: 0 0 12px;
}

.checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    font-weight: 500;
}

.checkbox-row input[type="checkbox"] {
    width: auto;
    margin-top: 3px;
    flex-shrink: 0;
}

.timeline-add-form {
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--hw-line);
}

.timeline-empty {
    margin: 12px 0 0;
}

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

.timeline-item {
    position: relative;
    padding: 0 0 16px 18px;
    border-left: 2px solid var(--hw-primary-200, rgba(20, 113, 91, 0.25));
}

.timeline-item:last-child {
    border-left-color: transparent;
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: -6px;
    top: 4px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--hw-primary);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.95);
}

.timeline-item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    align-items: baseline;
    margin-bottom: 6px;
    font-size: 0.8125rem;
}

.timeline-date {
    font-weight: 600;
    color: var(--hw-gray);
}

.timeline-type {
    color: var(--hw-primary-600);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.timeline-item-body {
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--text);
}

.timeline-item-by {
    margin-top: 6px;
    font-size: 0.75rem;
}

.quick-row {
    display: flex;
    gap: 6px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.quick-inline {
    margin: 0;
}

.quick-select {
    margin: 0;
    min-width: 0;
    max-width: 100%;
    width: 100%;
    font-size: 0.8125rem;
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid var(--hw-line-strong);
    background: rgba(255, 255, 255, 0.9);
}

.admin-requests-wrap {
    margin-top: 8px;
}

.admin-requests-table {
    min-width: 1060px;
    table-layout: auto;
}

.admin-requests-table th,
.admin-requests-table td {
    vertical-align: top;
}

.admin-requests-table .col-candidate {
    min-width: 120px;
}

.admin-requests-table .col-job {
    min-width: 280px;
}

.admin-requests-table .col-type {
    min-width: 140px;
}

.admin-requests-table .col-note {
    min-width: 170px;
}

.admin-requests-table .col-status {
    min-width: 170px;
}

.admin-requests-table .col-created {
    min-width: 128px;
    white-space: nowrap;
}

.admin-requests-table .col-actions {
    min-width: 140px;
}

.admin-requests-status .dashboard-nav-badge {
    margin: 0 0 6px 0 !important;
}

.admin-requests-actions {
    display: grid;
    gap: 8px;
}

.admin-requests-actions .btn {
    width: 100%;
    white-space: nowrap;
    justify-content: center;
}

/* Kandidatenprofil: Sprung-Kacheln & Abschnitte */
.candidate-view-page .cv-hero {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
}

.candidate-view-page .cv-hero-title {
    margin: 0 0 6px;
    font-size: clamp(1.25rem, 1.2vw + 1rem, 1.6rem);
    font-weight: 600;
    color: var(--hw-gray);
}

.candidate-view-page .cv-hero-meta {
    margin: 0;
}

.candidate-view-page .cv-hero-status {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    min-width: 0;
}

.candidate-view-page .cv-hero-workflow-inline {
    flex: 1 1 100%;
    min-width: 0;
    margin-top: 4px;
}

.candidate-view-page .cv-hero-workflow-inline .cv-bewerbung-job {
    margin: 0 0 6px;
}

.candidate-view-page .cv-app-switcher {
    padding: 14px 16px;
}

.candidate-view-page .cv-app-switcher-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--muted);
    margin-bottom: 10px;
}

.candidate-view-page .cv-app-switcher-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.candidate-view-page .cv-nav-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
    gap: 10px;
    margin-top: 1.75rem;
    margin-bottom: 20px;
}

.candidate-view-page .cv-nav-tile {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--hw-line);
    background: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.candidate-view-page .cv-nav-tile:nth-child(1) {
    border-color: rgba(14, 165, 233, 0.35);
    background: linear-gradient(180deg, rgba(14, 165, 233, 0.12), rgba(255, 255, 255, 0.82));
}

.candidate-view-page .cv-nav-tile:nth-child(2) {
    border-color: rgba(245, 158, 11, 0.35);
    background: linear-gradient(180deg, rgba(245, 158, 11, 0.12), rgba(255, 255, 255, 0.82));
}

.candidate-view-page .cv-nav-tile:nth-child(3) {
    border-color: rgba(20, 113, 91, 0.35);
    background: linear-gradient(180deg, rgba(20, 113, 91, 0.11), rgba(255, 255, 255, 0.82));
}

.candidate-view-page .cv-nav-tile:nth-child(4) {
    border-color: rgba(139, 92, 246, 0.35);
    background: linear-gradient(180deg, rgba(139, 92, 246, 0.11), rgba(255, 255, 255, 0.82));
}

.candidate-view-page .cv-nav-tile:hover {
    border-color: rgba(20, 113, 91, 0.35);
    background: var(--hw-primary-50);
    box-shadow: 0 2px 10px rgba(20, 113, 91, 0.08);
}

.candidate-view-page .cv-nav-tile-label {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--hw-gray);
}

.candidate-view-page .cv-nav-tile-hint {
    font-size: 0.6875rem;
    color: var(--muted);
    line-height: 1.35;
}

.candidate-view-page .cv-section {
    scroll-margin-top: 20px;
}

.candidate-view-page .cv-section-title {
    margin: 0 0 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--hw-line);
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--hw-gray);
}

.candidate-view-page .cv-bewerbung-job {
    margin: 0 0 14px;
}

.candidate-view-page .cv-timeline-heading {
    margin: 1.5rem 0 0.75rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--hw-gray);
}

.candidate-view-page .cv-notes-form {
    margin-bottom: 0;
}

.candidate-view-page .cv-timeline-toolbar {
    margin-top: 1.25rem;
}

.candidate-view-page #cv-timeline {
    scroll-margin-top: 96px;
    margin-top: 0.75rem;
}

.candidate-view-page .cv-timeline-panel:not([hidden]) .cv-timeline-heading {
    margin-top: 0;
}

.candidate-view-page .cv-kv {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.candidate-view-page .cv-kv-row {
    display: grid;
    grid-template-columns: minmax(100px, 160px) 1fr;
    gap: 10px 16px;
    align-items: start;
    font-size: 0.875rem;
}

@media (max-width: 520px) {
    .candidate-view-page .cv-kv-row {
        grid-template-columns: 1fr;
    }
}

.candidate-view-page .cv-kv-k {
    font-weight: 600;
    color: var(--muted);
    font-size: 0.8125rem;
}

.candidate-view-page .cv-kv-v {
    color: var(--text);
    overflow-wrap: anywhere;
}

.candidate-view-page .cv-kv-v--stamm-contact {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
}

.candidate-view-page .cv-stamm-contact-text {
    color: var(--text);
    text-decoration: none;
    min-width: 0;
    flex: 1 1 10rem;
}

.candidate-view-page .cv-stamm-contact-actions {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.candidate-view-page .cv-stamm-contact-actions a.btn {
    text-decoration: none;
}

.candidate-view-page .cv-copy-btn {
    flex-shrink: 0;
}

.candidate-view-page .cv-kv-row--block {
    grid-template-columns: 1fr;
}

.candidate-view-page .cv-kv-row--block .cv-kv-k {
    margin-bottom: 4px;
}

/* Prozessschritt-Dropdown: gleiche Farblogik wie Kanban / Liste (Klasse am Wrapper per PHP + change) */
.candidate-view-page .cv-workflow-status-shell {
    margin-bottom: 10px;
}

.candidate-view-page .cv-workflow-status-shell .cv-workflow-select {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--hw-line);
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--hw-gray);
    background: rgba(255, 255, 255, 0.92);
    cursor: pointer;
}

.candidate-view-page .cv-workflow-status-shell--new .cv-workflow-select {
    background: var(--kanban-bg-new);
    border-color: var(--kanban-border-new);
}
.candidate-view-page .cv-workflow-status-shell--agency_reject_proposal .cv-workflow-select {
    background: rgba(185, 28, 28, 0.08);
    border-color: #b91c1c;
    color: #991b1b;
}
.candidate-view-page .cv-workflow-status-shell--screened .cv-workflow-select {
    background: var(--kanban-bg-screened);
    border-color: var(--kanban-border-screened);
}
.candidate-view-page .cv-workflow-status-shell--contacted .cv-workflow-select {
    background: var(--kanban-bg-contacted);
    border-color: var(--kanban-border-contacted);
}
.candidate-view-page .cv-workflow-status-shell--phone_interview .cv-workflow-select {
    background: var(--kanban-bg-phone_interview);
    border-color: var(--kanban-border-phone_interview);
}
.candidate-view-page .cv-workflow-status-shell--interview_round_1 .cv-workflow-select {
    background: var(--kanban-bg-interview_round_1);
    border-color: var(--kanban-border-interview_round_1);
}
.candidate-view-page .cv-workflow-status-shell--interview_round_2 .cv-workflow-select {
    background: var(--kanban-bg-interview_round_2);
    border-color: var(--kanban-border-interview_round_2);
}
.candidate-view-page .cv-workflow-status-shell--trial_day .cv-workflow-select {
    background: var(--kanban-bg-trial_day);
    border-color: var(--kanban-border-trial_day);
}
.candidate-view-page .cv-workflow-status-shell--hired .cv-workflow-select {
    background: var(--kanban-bg-hired);
    border-color: var(--kanban-border-hired);
}
.candidate-view-page .cv-workflow-status-shell--offer_sent .cv-workflow-select {
    background: var(--kanban-bg-offer_sent);
    border-color: var(--kanban-border-offer_sent);
}
.candidate-view-page .cv-workflow-status-shell--offer_accepted .cv-workflow-select {
    background: var(--kanban-bg-offer_accepted);
    border-color: var(--kanban-border-offer_accepted);
}
.candidate-view-page .cv-workflow-status-shell--contract_sent .cv-workflow-select {
    background: var(--kanban-bg-contract_sent);
    border-color: var(--kanban-border-contract_sent);
}
.candidate-view-page .cv-workflow-status-shell--offer_declined .cv-workflow-select {
    background: var(--kanban-bg-offer_declined);
    border-color: var(--kanban-border-offer_declined);
}
.candidate-view-page .cv-workflow-status-shell--rejected .cv-workflow-select {
    background: var(--kanban-bg-rejected);
    border-color: var(--kanban-border-rejected);
}
.candidate-view-page .cv-workflow-status-shell--candidate_withdrawn .cv-workflow-select {
    background: var(--kanban-bg-candidate_withdrawn);
    border-color: var(--kanban-border-candidate_withdrawn);
}

.candidate-view-page .cv-doc-list {
    margin: 0 0 1.25rem;
    padding: 0;
    list-style: none;
}

.candidate-view-page .cv-doc-item {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) auto;
    grid-template-areas:
        "preview meta actions"
        "preview name actions";
    align-items: center;
    gap: 6px 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--hw-line);
}

.candidate-view-page .cv-doc-item:last-child {
    border-bottom: none;
}

.candidate-view-page .cv-doc-preview {
    grid-area: preview;
    width: 56px;
    height: 56px;
    border-radius: 12px;
    border: 1px solid var(--hw-line);
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.95), rgba(243, 248, 247, 0.95));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.candidate-view-page .cv-doc-preview--image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.candidate-view-page .cv-doc-preview-ext {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--hw-gray);
}

.candidate-view-page .cv-doc-preview--pdf {
    background: linear-gradient(160deg, rgba(254, 242, 242, 0.95), rgba(255, 255, 255, 0.96));
    border-color: rgba(220, 38, 38, 0.25);
}

.candidate-view-page .cv-doc-pdf-icon {
    width: 30px;
    height: 30px;
    stroke: #dc2626;
    fill: none;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.candidate-view-page .cv-doc-pdf-icon text {
    fill: #dc2626;
    stroke: none;
    font-size: 5.2px;
    font-weight: 700;
    letter-spacing: 0.4px;
    font-family: "PolySans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.candidate-view-page .cv-doc-meta {
    grid-area: meta;
    font-size: 0.8125rem;
    color: var(--muted);
}

.candidate-view-page .cv-doc-meta strong {
    color: var(--hw-gray);
}

.candidate-view-page .cv-doc-name {
    grid-area: name;
    font-weight: 500;
    min-width: 0;
    word-break: break-word;
}

.candidate-view-page .cv-doc-actions {
    grid-area: actions;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
}

.candidate-view-page .cv-doc-upload-form {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--hw-line);
}

.candidate-view-page .cv-doc-upload-title,
.admin-candidate-form-page .cv-doc-upload-title {
    margin: 0 0 12px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--hw-gray);
}

.candidate-view-page .cv-doc-type-tiles,
.admin-candidate-form-page .cv-doc-type-tiles {
    margin: 0 0 12px;
    padding: 0;
    border: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 8px;
}

.candidate-view-page .cv-doc-type-tiles legend,
.admin-candidate-form-page .cv-doc-type-tiles legend {
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--hw-gray);
}

.candidate-view-page .cv-doc-type-tile,
.admin-candidate-form-page .cv-doc-type-tile {
    position: relative;
    display: flex;
}

.candidate-view-page .cv-doc-type-tile input[type="radio"],
.admin-candidate-form-page .cv-doc-type-tile input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.candidate-view-page .cv-doc-type-tile span,
.admin-candidate-form-page .cv-doc-type-tile span {
    width: 100%;
    padding: 9px 10px;
    border: 1px solid var(--hw-line-strong);
    border-radius: 10px;
    background: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--hw-gray);
    text-align: center;
    transition: border-color 0.14s ease, background 0.14s ease, box-shadow 0.14s ease, color 0.14s ease;
}

.candidate-view-page .cv-doc-type-tile:hover span,
.admin-candidate-form-page .cv-doc-type-tile:hover span {
    border-color: rgba(20, 113, 91, 0.42);
    background: rgba(20, 113, 91, 0.05);
}

.candidate-view-page .cv-doc-type-tile input[type="radio"]:checked + span,
.admin-candidate-form-page .cv-doc-type-tile input[type="radio"]:checked + span {
    border-color: rgba(20, 113, 91, 0.72);
    background: rgba(20, 113, 91, 0.13);
    color: var(--hw-primary-700);
    box-shadow: 0 4px 14px rgba(20, 113, 91, 0.12);
}

.candidate-view-page .cv-doc-dropzone,
.admin-candidate-form-page .cv-doc-dropzone {
    position: relative;
    border: 2px dashed var(--hw-line-strong);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.82);
    padding: 18px 16px;
    margin-bottom: 12px;
    cursor: pointer;
    text-align: center;
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.candidate-view-page .cv-doc-dropzone:hover,
.candidate-view-page .cv-doc-dropzone:focus-within,
.candidate-view-page .cv-doc-dropzone.is-dragover,
.admin-candidate-form-page .cv-doc-dropzone:hover,
.admin-candidate-form-page .cv-doc-dropzone:focus-within,
.admin-candidate-form-page .cv-doc-dropzone.is-dragover {
    border-color: rgba(20, 113, 91, 0.56);
    background: var(--hw-primary-50);
    box-shadow: 0 4px 16px rgba(20, 113, 91, 0.12);
}

.candidate-view-page .cv-doc-dropzone-icon,
.admin-candidate-form-page .cv-doc-dropzone-icon {
    font-size: 1.8rem;
    line-height: 1;
    color: var(--hw-primary);
    margin-bottom: 4px;
}

.candidate-view-page .cv-doc-dropzone-title,
.admin-candidate-form-page .cv-doc-dropzone-title {
    margin: 0 0 6px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--hw-gray);
}

.candidate-view-page .cv-doc-dropzone-browse,
.admin-candidate-form-page .cv-doc-dropzone-browse {
    margin: 6px auto 10px;
    border-color: rgba(20, 113, 91, 0.38);
    color: var(--hw-primary-700);
    font-weight: 700;
}

.candidate-view-page .cv-doc-dropzone-files,
.admin-candidate-form-page .cv-doc-dropzone-files {
    margin: 10px 0 8px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 8px;
}

.candidate-view-page .cv-doc-file-preview,
.admin-candidate-form-page .cv-doc-file-preview {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    border: 1px solid var(--hw-line);
    border-radius: 10px;
    background: #fff;
    min-width: 0;
}

.candidate-view-page .cv-doc-file-preview-thumb,
.admin-candidate-form-page .cv-doc-file-preview-thumb {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid var(--hw-line);
    background: rgba(243, 248, 247, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--hw-gray);
    overflow: hidden;
}

.candidate-view-page .cv-doc-file-preview-thumb img,
.admin-candidate-form-page .cv-doc-file-preview-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.candidate-view-page .cv-doc-file-preview-body,
.admin-candidate-form-page .cv-doc-file-preview-body {
    min-width: 0;
}

.candidate-view-page .cv-doc-file-preview-body strong,
.candidate-view-page .cv-doc-file-preview-body .muted,
.admin-candidate-form-page .cv-doc-file-preview-body strong,
.admin-candidate-form-page .cv-doc-file-preview-body .muted {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.candidate-view-page .cv-doc-dropzone input[type="file"],
.admin-candidate-form-page .cv-doc-dropzone input[type="file"] {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.candidate-view-page .cv-doc-upload-state {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 4px 0 10px;
    color: var(--hw-primary-700);
    font-weight: 600;
}

.candidate-view-page .cv-doc-upload-state[hidden] {
    display: none !important;
}

.candidate-view-page .cv-doc-upload-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(20, 113, 91, 0.2);
    border-top-color: var(--hw-primary);
    border-radius: 50%;
    animation: cv-doc-spin 0.8s linear infinite;
}

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

@media (max-width: 760px) {
    .candidate-view-page .cv-doc-item {
        grid-template-columns: 48px minmax(0, 1fr);
        grid-template-areas:
            "preview meta"
            "preview name"
            "actions actions";
    }
    .candidate-view-page .cv-doc-preview {
        width: 48px;
        height: 48px;
    }
    .candidate-view-page .cv-doc-actions {
        justify-content: flex-start;
    }
}

/* Kandidatenprofil eingebettet (Dashboard-Modal / ?embed=1) */
.candidate-view-embed .bg-orb {
    display: none;
}

.candidate-view-page--embed {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
    padding-top: 12px;
    padding-bottom: 28px;
}

/* Abstände über gemeinsames gap; keine doppelten Außenränder der Sprungleiste */
.candidate-view-page--embed .cv-nav-tiles {
    margin-top: 0;
    margin-bottom: 0;
    gap: 8px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.candidate-view-page--embed .cv-nav-tile {
    padding: 10px 12px;
}

.candidate-view-page--embed .cv-nav-tile-label {
    font-size: 0.82rem;
}

.candidate-view-page--embed .cv-nav-tile-hint {
    font-size: 0.66rem;
}

@media (max-width: 920px) {
    .candidate-view-page--embed .cv-nav-tiles {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .candidate-view-page--embed .cv-nav-tiles {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.topbar--embed {
    position: sticky;
    top: 0;
    z-index: 2;
}

.topbar--embed .topbar-inner {
    justify-content: space-between;
    gap: 12px;
    padding-top: 8px;
    padding-bottom: 8px;
}

/* Dashboard: Profil-Modal (viewport-zentriert) */
.profile-modal {
    --profile-modal-pad: clamp(12px, 4vmin, 28px);
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--profile-modal-pad);
    box-sizing: border-box;
}

.profile-modal[hidden] {
    display: none !important;
}

.profile-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(18, 28, 26, 0.45);
    backdrop-filter: blur(3px);
}

.profile-modal__panel {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    width: min(960px, 100%);
    /* Höhe: Platz für Modal-Padding, iframe füllt mit flex:1 */
    height: min(92vh, 900px, calc(100vh - 2 * var(--profile-modal-pad)));
    max-height: min(92vh, 900px, calc(100vh - 2 * var(--profile-modal-pad)));
    height: min(92dvh, 900px, calc(100dvh - 2 * var(--profile-modal-pad)));
    max-height: min(92dvh, 900px, calc(100dvh - 2 * var(--profile-modal-pad)));
    margin: 0 auto;
    background: var(--hw-primary-50, #f8fbfa);
    border-radius: var(--radius-sm);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.admin-candidates-page .indeed-csv-dropzone {
    border: 2px dashed rgba(20, 113, 91, 0.35);
    background: rgba(255, 255, 255, 0.75);
    border-radius: 14px;
    padding: 18px 16px;
    text-align: center;
    transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
}

.admin-candidates-page .indeed-csv-dropzone .cv-doc-dropzone-icon {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    font-weight: 700;
    color: var(--hw-primary);
    border: 1px solid rgba(20, 113, 91, 0.35);
    background: rgba(20, 113, 91, 0.08);
}

.admin-candidates-page .indeed-csv-dropzone .cv-doc-dropzone-title {
    margin: 0 0 6px;
    font-weight: 700;
}

.admin-candidates-page .indeed-csv-dropzone input[type="file"] {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    border: 0;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    overflow: hidden;
}

.admin-candidates-page .indeed-csv-dropzone.is-dragover {
    border-color: rgba(20, 113, 91, 0.75);
    background: rgba(20, 113, 91, 0.1);
    box-shadow: 0 0 0 3px rgba(20, 113, 91, 0.15);
}

.profile-modal__chrome {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 8px 10px;
    border-bottom: 1px solid var(--hw-line);
    background: rgba(255, 255, 255, 0.92);
}

.profile-modal__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 10px;
    background: transparent;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--hw-gray);
    cursor: pointer;
}

.profile-modal__close:hover {
    background: rgba(20, 113, 91, 0.08);
}

.profile-modal__iframe {
    flex: 1;
    width: 100%;
    min-height: 0;
    border: 0;
    background: var(--hw-primary-50, #f8fbfa);
}

body.profile-modal-open {
    overflow: hidden;
}

/* Profil im Modal (Mobile): weniger Rand, kompaktere Karten; nur eine Kopfzeile (× im Modal) */
@media (max-width: 640px) {
    .profile-modal {
        --profile-modal-pad: clamp(6px, 2.5vmin, 16px);
    }

    .profile-modal__chrome {
        padding: 4px 6px;
    }

    .profile-modal__close {
        width: 36px;
        height: 36px;
        font-size: 1.35rem;
        border-radius: 8px;
    }

    /* Doppelte Zeile vermeiden: iframe-„Kandidatendetail“ + Schließen ausblenden */
    body.candidate-view-embed .topbar--embed {
        display: none;
    }

    body.candidate-view-embed .candidate-view-page--embed {
        padding-top: 2px;
        padding-left: 12px;
        padding-right: 12px;
        padding-bottom: 20px;
    }

    body.candidate-view-embed .candidate-view-page--embed .card {
        padding: 12px 14px;
    }

    body.candidate-view-embed .candidate-view-page--embed .cv-hero {
        gap: 10px;
    }

    body.candidate-view-embed .candidate-view-page--embed .cv-hero-title {
        margin-bottom: 4px;
        font-size: clamp(1.15rem, 4vw + 0.5rem, 1.45rem);
    }

    body.candidate-view-embed .candidate-view-page--embed .cv-hero-archive {
        margin-top: 8px;
        padding-top: 10px;
    }

    body.candidate-view-embed .candidate-view-page--embed .cv-nav-tiles {
        margin-top: 0;
        margin-bottom: 0;
        gap: 8px;
    }

    body.candidate-view-embed .candidate-view-page--embed .cv-nav-tile {
        padding: 10px 12px;
    }

    body.candidate-view-embed .candidate-view-page--embed .cv-app-switcher {
        padding: 10px 12px;
    }
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Scroll-Reveal aus Report-Theme deaktivieren (kein JS auf HR-Seiten) */
.hero,
.section {
    opacity: 1 !important;
    transform: none !important;
}

@media (max-width: 768px) {
    .container {
        padding: 16px;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

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

    /* Job-Board u. a.: nicht das Dashboard-Kanban überschreiben (sonst 2×220px → Abschnitt) */
    .board:not(.board--dashboard) {
        grid-template-columns: repeat(2, minmax(220px, 1fr));
    }

    /* Prozess-Board: eine Zeile, seitlich scrollen statt Abschneiden */
    .board-scroll:has(.board--dashboard) {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 12px;
    }

    .board--dashboard {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 10px;
        width: max-content;
        min-width: 100%;
        box-sizing: border-box;
    }

    .board--dashboard .board-column {
        flex: 0 0 clamp(152px, 42vw, 220px);
        min-width: 152px;
        max-width: 260px;
    }
}

/* -------------------------------------------------------------------------- */
/* Verbesserungen: Toolbars, Spaltenzähler, Mehrfachauswahl, Agentur-Aktionen */
/* -------------------------------------------------------------------------- */

/* Spaltenkopf mit Anzahl-Badge */
.board-column-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.board-column--request .board-column-title,
.board-column--none .board-column-title {
    /* Diese Spalten behalten ihr eigenes Layout. */
    display: flex;
}
.board-column-count {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--hw-primary-50, rgba(20, 113, 91, 0.12));
    color: var(--hw-primary, #14715b);
    font-size: 0.7rem;
    font-weight: 700;
}

/* Auswahl-Checkbox auf Karten */
.board-card-check {
    float: right;
    margin: -2px -2px 0 6px;
    cursor: pointer;
}
.board-card-check input {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: var(--hw-primary, #14715b);
}

/* Such-/Filterleisten (Board + Admin) */
.board-toolbar,
.admin-candidate-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
}
.board-search,
.admin-candidate-search {
    flex: 1 1 240px;
    min-width: 0;
    max-width: 360px;
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid var(--hw-line-strong, #cbd5e1);
    font-size: 0.875rem;
}
.admin-candidate-toolbar .quick-select {
    width: auto;
    flex: 0 0 auto;
    min-width: 160px;
}

/* Sammelaktionsleiste (Board) */
.board-bulkbar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 10px;
    margin: 0 0 12px;
    padding: 10px 12px;
    border-radius: 12px;
    background: var(--hw-primary-50, rgba(20, 113, 91, 0.08));
    border: 1px solid var(--hw-primary, #14715b);
}
.board-bulkbar[hidden] {
    display: none;
}
.board-bulkbar-count {
    font-weight: 700;
    color: var(--hw-primary, #14715b);
    align-self: center;
}
.board-bulkbar-field {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.board-bulkbar-field .quick-select {
    width: auto;
    min-width: 200px;
}

/* Agentur-Aktionen im Kandidatenprofil (vom Status getrennt) */
.cv-agency-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}
.cv-agency-actions-label {
    flex: 0 0 auto;
}
.js-cv-agency-action.is-active {
    background: var(--hw-primary, #2f8f5b);
    border-color: var(--hw-primary, #2f8f5b);
    color: #fff;
    font-weight: 600;
}
.cv-agency-active-note {
    margin: 8px 0 0;
    font-weight: 600;
    color: var(--hw-primary, #2f8f5b);
}
.cv-agency-active-note[hidden] {
    display: none;
}

.ab-grid--single {
    grid-template-columns: 1fr;
}
.variant-b-block[hidden],
#variant-b-approval-block[hidden] {
    display: none;
}

/* Admin-Dashboard: aufklappbare Verwaltungs-Panels */
.admin-section-group-title {
    margin: 26px 0 4px;
    font-size: 1.05rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.admin-section-collapsible {
    padding: 0;
}
.admin-section-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 20px;
    cursor: pointer;
    list-style: none;
    font-weight: 700;
    font-size: 1.05rem;
}
.admin-section-summary::-webkit-details-marker {
    display: none;
}
.admin-section-summary::after {
    content: "▾";
    margin-left: auto;
    font-size: 0.9rem;
    color: #6b7280;
    transition: transform 0.15s ease;
}
.admin-section-collapsible[open] > .admin-section-summary::after {
    transform: rotate(180deg);
}
.admin-section-summary-title {
    flex: 1 1 auto;
}
.admin-section-summary-hint {
    font-weight: 500;
    font-size: 0.82rem;
    color: #6b7280;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 45%;
}
.admin-section-body {
    padding: 0 20px 20px;
}

/* Admin: Zeiterfassung */
.time-entry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 12px;
    margin-bottom: 8px;
}
.time-entry-grid label {
    display: block;
    margin-bottom: 4px;
}
.time-entry-grid input,
.time-entry-grid select {
    width: 100%;
}

/* Kunde: Aufwand & Kosten */
.cost-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
}
.cost-summary-card {
    padding: 16px;
    border-radius: 12px;
    background: rgba(20, 113, 91, 0.06);
    border: 1px solid rgba(15, 87, 70, 0.14);
}
.cost-summary-card small {
    display: block;
    color: #6b7280;
}
.cost-summary-card strong {
    font-size: 1.4rem;
}

/* Admin: Anzeige-Modus (Ein Entwurf / A/B-Test) */
.ad-mode-toggle {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 12px;
    margin: 6px 0 18px;
}
.ad-mode-option {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: start;
    gap: 10px;
    margin: 0;
    padding: 14px 16px;
    border: 2px solid rgba(15, 87, 70, 0.18);
    border-radius: 12px;
    cursor: pointer;
    background: #fff;
}
.ad-mode-option:has(input:checked) {
    border-color: var(--hw-primary, #14715b);
    background: rgba(20, 113, 91, 0.06);
}
.ad-mode-option > input {
    margin: 2px 0 0;
    width: 16px;
    height: 16px;
}
.ad-mode-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}
.ad-mode-text strong {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text, #1f2937);
}
.ad-mode-text small {
    color: #6b7280;
    font-size: 0.8rem;
    line-height: 1.35;
}

/* Einheitliche Admin-Toolbar (Filter, Suche, Sortierung auf einer Linie) */
.admin-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 16px 0 6px;
}
.admin-toolbar > * {
    margin: 0;
}
.admin-toolbar .btn,
.admin-toolbar select,
.admin-toolbar input[type="search"] {
    height: 42px;
    box-sizing: border-box;
    margin: 0;
}
.admin-toolbar .btn {
    display: inline-flex;
    align-items: center;
}
.admin-toolbar select {
    min-width: 170px;
    padding: 0 12px;
}
.admin-toolbar input[type="search"] {
    flex: 1 1 240px;
    min-width: 200px;
}
.admin-toolbar-group {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}
.admin-toolbar-group label {
    margin: 0;
    white-space: nowrap;
    font-size: 0.8rem;
    color: var(--muted);
}

/* Admin: Mehrfachauswahl (Bulk-Bar) */
.btn-danger {
    background: #dc2626;
    color: #fff;
    border-color: #dc2626;
}
.btn-danger:hover {
    background: #b91c1c;
    border-color: #b91c1c;
}
.candidate-select {
    display: inline-flex;
    align-items: center;
    margin-right: 6px;
}
.candidate-select-box {
    width: 18px;
    height: 18px;
    cursor: pointer;
}
.admin-bulk-bar {
    position: sticky;
    top: 8px;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    padding: 12px 18px;
    margin-bottom: 12px;
    border-radius: 12px;
    background: var(--hw-primary-700, #0f5746);
    color: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}
.admin-bulk-bar[hidden] {
    display: none !important;
}
.admin-bulk-info {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.admin-bulk-bar .admin-bulk-count {
    font-weight: 800;
    font-size: 0.95rem;
    white-space: nowrap;
    margin: 0;
}
.admin-bulk-all {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #fff;
    font-size: 0.85rem;
    white-space: nowrap;
    margin: 0;
    cursor: pointer;
}
.admin-bulk-all input {
    margin: 0;
}
.admin-bulk-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
    margin-left: auto;
}
.admin-bulk-statusselect {
    min-width: 170px;
}

/* Admin: Dokumentenliste im Kandidaten-Formular */
.cv-doc-list {
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
    display: grid;
    gap: 8px;
}
.cv-doc-list-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border: 1px solid rgba(15, 87, 70, 0.16);
    border-radius: 10px;
    background: rgba(20, 113, 91, 0.04);
}
.cv-doc-list-type {
    font-size: 0.66rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(20, 113, 91, 0.14);
    color: var(--hw-primary-700, #0f5746);
    flex: 0 0 auto;
}
.cv-doc-list-name {
    flex: 1 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 600;
}
.cv-doc-list-del {
    margin: 0;
    flex: 0 0 auto;
}

/* Admin: aktiver-Kunde-Branding-Chip in der Topbar */
.admin-customer-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px 4px 5px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    margin-left: 4px;
    max-width: 240px;
}
.admin-customer-chip-logo {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: contain;
    background: #fff;
    padding: 2px;
    flex: 0 0 auto;
}
.admin-customer-chip-initial {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.8rem;
    background: #fff;
    color: var(--hw-primary-700, #0f5746);
    flex: 0 0 auto;
}
.admin-customer-chip-name {
    font-weight: 700;
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Kunden-Umschalter in der Admin-Topbar */
.admin-customer-switch {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 3px 6px 3px 4px;
    border-radius: 999px;
    background: var(--hw-primary-50, rgba(20, 113, 91, 0.08));
    border: 1px solid rgba(20, 113, 91, 0.22);
    margin-left: 4px;
    max-width: 320px;
}
.admin-customer-switch-label {
    display: none;
}
.admin-customer-switch-form {
    margin: 0;
    display: inline-flex;
    align-items: center;
    min-width: 0;
}
.admin-customer-select {
    border: none;
    background: transparent;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--hw-primary-700, #0f5746);
    cursor: pointer;
    max-width: 240px;
    padding: 3px 22px 3px 4px;
    border-radius: 8px;
}
.admin-customer-select:hover {
    background: rgba(20, 113, 91, 0.08);
}
.admin-customer-select:focus {
    outline: 2px solid var(--hw-primary, #14715b);
    outline-offset: 1px;
}

/* Board: Phasen-Gruppierung, Hervorhebung, Karten-Tags */
.board-column {
    position: relative;
}
/* Einheitliche Spalten: kein Versatz, keine Höhenunterschiede.
   Phasen werden nur dezent über eine farbige Titel-Oberkante angedeutet. */
.board-column--phase-start {
    margin-left: 0;
    border-left: none;
    padding-left: 0;
}
.board-phase-tag {
    display: none;
}
/* Einheitliche Titel-Oberkante für ALLE Spalten (neutral), Phasen überschreiben die Farbe. */
.board--dashboard .board-column-title {
    border-top: 3px solid var(--hw-line, rgba(15, 23, 42, 0.12));
    padding-top: 6px;
    border-radius: 8px 8px 0 0;
}
.board-column--phase-intake .board-column-title { border-top: 3px solid #2563eb; }
.board-column--phase-talks .board-column-title { border-top: 3px solid #d97706; }
.board-column--phase-closing .board-column-title { border-top: 3px solid var(--hw-primary, #14715b); }
.board-column--phase-intake .board-column-title,
.board-column--phase-talks .board-column-title,
.board-column--phase-closing .board-column-title {
    padding-top: 6px;
    border-radius: 8px 8px 0 0;
}
/* "Neu eingegangen" wird wie alle anderen Spalten dargestellt. */
.board-column--highlight {
    border-radius: var(--radius-sm);
}
.board-card-jobtag {
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.66rem;
    font-weight: 700;
    padding: 2px 8px;
    margin-top: 4px;
    border-radius: 6px;
    background: hsl(var(--job-hue, 162) 62% 92%);
    color: hsl(var(--job-hue, 162) 60% 26%);
    border: 1px solid hsl(var(--job-hue, 162) 48% 80%);
    vertical-align: middle;
}

/* Farbakzent je Stelle: Karten/Listenzeilen derselben Stelle erhalten den
   gleichen, deterministisch berechneten Farbton (--job-hue). */
.board-card--job:not(.board-card--agency-reject) {
    border-left: 4px solid hsl(var(--job-hue, 162) 55% 58%);
}
.candidate-card--job {
    border-left: 4px solid hsl(var(--job-hue, 162) 55% 58%);
}
.board-list-row--job {
    border-left: 4px solid hsl(var(--job-hue, 162) 55% 58%);
    padding-left: 10px;
}
.board-card-stale {
    display: inline-block;
    font-size: 0.66rem;
    font-weight: 700;
    padding: 2px 8px;
    margin-top: 4px;
    margin-left: 4px;
    border-radius: 6px;
    background: rgba(217, 119, 6, 0.16);
    color: #b45309;
}

/* Kunden-Hilfe / Onboarding */
.dashboard-help {
    border-left: 4px solid var(--hw-primary, #14715b);
    background: linear-gradient(180deg, rgba(240, 250, 246, 0.9), rgba(255, 255, 255, 0.98));
}
.dashboard-help[hidden] {
    display: none;
}
.dashboard-help-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.dashboard-help-head h2 {
    margin: 0;
}
.dashboard-help-steps {
    margin: 12px 0 0;
    padding-left: 1.2em;
    display: grid;
    gap: 10px;
}
.dashboard-help-steps li {
    line-height: 1.5;
}
.board-empty-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    color: var(--muted);
    cursor: pointer;
}
.board-empty-toggle input {
    margin: 0;
}

/* Touch-Drag fürs Kanban-Board (Tablet/Handy) */
.board-card-ghost {
    position: fixed;
    z-index: 1200;
    pointer-events: none;
    opacity: 0.92;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
    transform: rotate(1.5deg) scale(1.02);
    margin: 0 !important;
}
body.board-touch-dragging {
    overflow: hidden;
    -webkit-user-select: none;
    user-select: none;
}
body.board-touch-dragging .board-card.dragging {
    opacity: 0.35;
}

/* Live-Rückmeldung (Toast) im Admin */
.job-toast {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 1000;
    padding: 12px 16px;
    border-radius: 12px;
    font-weight: 600;
    color: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
    max-width: min(360px, 90vw);
}
.job-toast[hidden] {
    display: none;
}
.job-toast--ok {
    background: var(--hw-primary-600, #14715b);
}
.job-toast--error {
    background: #b91c1c;
}

/* Abschnitts-Gliederung im Stellen-Formular */
.form-section-title {
    margin: 26px 0 10px;
    padding-bottom: 6px;
    border-bottom: 2px solid var(--hw-primary-50, rgba(20, 113, 91, 0.12));
    color: var(--hw-primary-700, #0f5746);
    font-size: 1.05rem;
}
.form-section-title:first-of-type {
    margin-top: 8px;
}
.form-advanced {
    margin: 10px 0 4px;
    border: 1px solid rgba(20, 113, 91, 0.16);
    border-radius: 12px;
    padding: 10px 14px;
    background: rgba(248, 252, 250, 0.6);
}
.form-advanced > summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--hw-primary-600, #14715b);
}

/* Anzeigen-Vorlagen-Auswahl im Stellen-Formular */
.job-template-picker {
    background: var(--hw-primary-25, rgba(20, 113, 91, 0.06));
    border: 1px dashed rgba(20, 113, 91, 0.3);
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 16px;
}
.job-template-picker .quick-select {
    min-width: 220px;
}

/* Kunden bearbeiten (Admin) inkl. Logo-Vorschau */
.customer-edit {
    margin-top: 12px;
    border-top: 1px solid rgba(20, 113, 91, 0.12);
    padding-top: 10px;
}
.customer-edit > summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--hw-primary, #14715b);
    list-style: none;
}
.customer-edit > summary::-webkit-details-marker {
    display: none;
}
.customer-edit > summary::before {
    content: "▸ ";
}
.customer-edit[open] > summary::before {
    content: "▾ ";
}
.customer-edit label {
    display: block;
    margin-top: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--muted);
}
.customer-edit input,
.customer-edit select {
    margin-top: 4px;
}
.customer-edit-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 8px 0 6px;
}
.customer-edit-logo-img {
    max-width: 160px;
    max-height: 56px;
    object-fit: contain;
    background: #fff;
    border: 1px solid rgba(20, 113, 91, 0.18);
    border-radius: 8px;
    padding: 4px 8px;
}

/* Einheitliche, farbige Entwurfs-/Anzeigen-Vorschau (positions-unabhängig) */
.ad-preview.ad-preview--html .ad-preview-title strong {
    color: var(--hw-primary-700, #0f5746);
    font-size: 1.05em;
}
.ad-preview.ad-preview--html .ad-preview-heading strong {
    color: var(--hw-primary-600, #14715b);
}
.ad-preview.ad-preview--html .ad-preview-meta {
    color: var(--muted);
    font-size: 0.92em;
    margin: 0.1em 0;
}
.ad-preview.ad-preview--html .ad-preview-hint {
    background: var(--hw-primary-25, rgba(20, 113, 91, 0.06));
    border-left: 3px solid var(--hw-primary, #14715b);
    padding: 4px 10px;
    border-radius: 0 8px 8px 0;
    margin: 0.5em 0;
}
.ad-preview.ad-preview--html .ad-preview-list {
    margin: 0.25em 0 0.6em;
    padding-left: 1.25em;
}
.ad-preview.ad-preview--html .ad-preview-list li {
    margin: 0.15em 0;
}

/* ===== Zeiterfassung: Stundensatz, Tätigkeits-/Dauer-Buttons ===== */
.time-rate-card {
    border-left: 4px solid var(--hw-primary, #14715b);
}
.time-rate-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
.time-rate-value {
    font-size: 1.15rem;
    margin-top: 2px;
}
.time-rate-value strong {
    color: var(--hw-primary-700, #0f5746);
    font-size: 1.35rem;
}
.time-rate-missing {
    color: #b45309;
    font-size: 1rem !important;
}
.time-rate-form {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px dashed var(--border, rgba(0, 0, 0, 0.12));
}
.time-rate-fields {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}
.time-rate-fields > div {
    display: flex;
    flex-direction: column;
}
.time-rate-fields input,
.time-rate-fields select {
    width: 140px;
}

.time-entries-table {
    min-width: 860px;
}
.time-entries-table th,
.time-entries-table td {
    vertical-align: top;
    overflow-wrap: normal;
    word-break: normal;
}
.time-entries-table .time-cell-nowrap {
    white-space: nowrap;
}
.time-entries-table .time-cell-job {
    max-width: 280px;
}
.time-job-chip {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 999px;
    background: rgba(47, 143, 91, 0.12);
    color: var(--hw-primary-700, #0f5746);
    font-weight: 600;
    font-size: 0.8rem;
    line-height: 1.4;
}
.time-row-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}
.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border-radius: 8px;
    border: 1px solid var(--hw-line, rgba(0, 0, 0, 0.12));
    background: #fff;
    color: var(--hw-primary-700, #0f5746);
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.icon-btn:hover {
    background: rgba(47, 143, 91, 0.1);
    border-color: var(--hw-primary, #2f8f5b);
}
.icon-btn--danger {
    color: #b42318;
}
.icon-btn--danger:hover {
    background: rgba(180, 35, 24, 0.1);
    border-color: #b42318;
}
.time-edit-row > td {
    background: rgba(47, 143, 91, 0.06);
}
.time-edit-form {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 12px;
}
.time-edit-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.time-edit-field label {
    font-size: 0.75rem;
    color: var(--hw-muted, #5b6b66);
}
.time-edit-field input,
.time-edit-field select {
    height: 38px;
}
.time-edit-field input[type="number"] {
    width: 80px;
}
.time-edit-field--grow {
    flex: 1 1 200px;
    min-width: 180px;
}
.time-edit-field--grow input {
    width: 100%;
}
.time-edit-actions {
    display: flex;
    gap: 8px;
    align-items: flex-end;
}

.time-field-group {
    margin-bottom: 18px;
}
.time-field-label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 8px;
    color: var(--text, #1f2937);
}
.time-field-label .muted {
    font-weight: 400;
}

.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}
.chip {
    border: 1.5px solid var(--border, rgba(0, 0, 0, 0.14));
    background: var(--surface, #fff);
    color: var(--text, #1f2937);
    border-radius: 999px;
    padding: 7px 14px;
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    line-height: 1.2;
}
.chip:hover {
    border-color: var(--hw-primary, #14715b);
    background: var(--hw-primary-25, rgba(20, 113, 91, 0.06));
}
.chip.is-active {
    border-color: var(--hw-primary, #14715b);
    background: var(--hw-primary, #14715b);
    color: #fff;
    box-shadow: 0 2px 8px rgba(20, 113, 91, 0.25);
}

.time-duration-steppers {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 6px;
}
.stepper {
    display: inline-flex;
    align-items: stretch;
    border: 1.5px solid var(--border, rgba(0, 0, 0, 0.14));
    border-radius: 12px;
    overflow: hidden;
    background: var(--surface, #fff);
}
.stepper-btn {
    border: none;
    background: var(--hw-primary-25, rgba(20, 113, 91, 0.08));
    color: var(--hw-primary-700, #0f5746);
    width: 42px;
    font-size: 1.4rem;
    font-weight: 600;
    cursor: pointer;
    line-height: 1;
    transition: background 0.15s ease;
}
.stepper-btn:hover {
    background: var(--hw-primary, #14715b);
    color: #fff;
}
.stepper-value {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0 8px;
}
.stepper-value input {
    width: 56px;
    border: none;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    background: transparent;
    -moz-appearance: textfield;
    appearance: textfield;
}
.stepper-value input::-webkit-outer-spin-button,
.stepper-value input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.stepper-value em {
    font-style: normal;
    color: var(--muted);
    font-size: 0.82rem;
}

.time-field-group--inline {
    display: flex;
    gap: 24px;
    align-items: flex-end;
    flex-wrap: wrap;
}
.time-field-group--inline input[type="date"] {
    width: auto;
}
.time-entry-preview {
    background: var(--hw-primary-25, rgba(20, 113, 91, 0.06));
    border-radius: 12px;
    padding: 8px 16px;
    display: flex;
    flex-direction: column;
}
.time-entry-preview strong {
    font-size: 1.2rem;
    color: var(--hw-primary-700, #0f5746);
}
.btn-lg {
    padding: 12px 26px;
    font-size: 1.02rem;
}
.alert-warning {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fcd34d;
    border-radius: 10px;
    padding: 10px 14px;
}

/* ===== Board: Ansicht-Umschalter (Karten/Liste) + gruppierte Liste ===== */
.board-view-switch {
    display: inline-flex;
    background: var(--hw-primary-50, rgba(20, 113, 91, 0.08));
    border: 1px solid rgba(20, 113, 91, 0.18);
    border-radius: 999px;
    padding: 3px;
    gap: 2px;
}
.board-view-btn {
    border: none;
    background: transparent;
    color: var(--hw-primary-700, #0f5746);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 999px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s ease, color 0.15s ease;
}
.board-view-btn.is-active {
    background: var(--hw-primary, #14715b);
    color: #fff;
    box-shadow: 0 2px 8px rgba(20, 113, 91, 0.25);
}

.board-listview {
    margin-top: 6px;
}
.board-list-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}
.board-list-groupbtns {
    display: inline-flex;
    border: 1px solid var(--hw-line, rgba(0, 0, 0, 0.12));
    border-radius: 10px;
    overflow: hidden;
}
.board-list-groupbtn {
    border: none;
    background: #fff;
    color: var(--text, #1f2937);
    font-size: 0.82rem;
    font-weight: 600;
    padding: 7px 14px;
    cursor: pointer;
}
.board-list-groupbtn + .board-list-groupbtn {
    border-left: 1px solid var(--hw-line, rgba(0, 0, 0, 0.12));
}
.board-list-groupbtn.is-active {
    background: var(--hw-primary, #14715b);
    color: #fff;
}

.board-list-groups {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.board-list-group {
    border: 1px solid var(--hw-line, rgba(0, 0, 0, 0.1));
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}
.board-list-group-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 16px;
    background: var(--hw-primary-25, rgba(20, 113, 91, 0.05));
    border-bottom: 1px solid var(--hw-line, rgba(0, 0, 0, 0.08));
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--hw-primary-700, #0f5746);
}
.board-list-group-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    border-radius: 999px;
    background: var(--hw-primary, #14715b);
    color: #fff;
    font-size: 0.72rem;
}
.board-list-group-rows {
    display: flex;
    flex-direction: column;
}
.board-list-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 16px;
    flex-wrap: wrap;
}
.board-list-row + .board-list-row {
    border-top: 1px solid var(--hw-line, rgba(0, 0, 0, 0.07));
}
.board-list-row:hover {
    background: rgba(20, 113, 91, 0.03);
}
.board-list-row-main {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    min-width: 0;
    flex: 1 1 260px;
}
.board-list-name {
    font-weight: 700;
    color: var(--text, #1f2937);
    text-decoration: none;
    font-size: 0.95rem;
}
.board-list-name:hover {
    text-decoration: underline;
}
.board-list-meta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.board-list-date {
    font-size: 0.74rem;
    color: var(--muted);
}
.board-list-row-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}
.board-list-status {
    min-width: 180px;
    height: 38px;
}

/* ===== Admin-Kandidatenliste: kompaktere Karten + Direkt-Upload ===== */
.admin-candidates-page .admin-candidate-grid {
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 14px;
    align-items: start;
}
.admin-candidates-page .candidate-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
}
.admin-candidates-page .candidate-head {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}
.admin-candidates-page .candidate-head h3 {
    margin: 0;
    flex: 1 1 auto;
    font-size: 1.02rem;
    line-height: 1.3;
}
.admin-candidate-name a {
    color: var(--hw-gray);
    text-decoration: none;
}
.admin-candidate-name a:hover {
    color: var(--hw-primary, #14715b);
    text-decoration: underline;
}
.candidate-doc-count {
    font-size: 0.78rem;
    color: var(--muted);
    white-space: nowrap;
    font-weight: 600;
}
.admin-candidates-page .candidate-head .status-pill {
    flex: 0 0 auto;
    align-self: flex-start;
}
.admin-candidates-page .candidate-head-badges {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 6px;
}
.admin-candidates-page .contact-line,
.admin-candidates-page .next-line {
    margin: 0;
}
.admin-candidates-page .admin-candidate-status-form {
    margin: 4px 0 0;
    padding: 8px 10px;
}
.admin-candidates-page .admin-candidate-status-form label {
    display: block;
    margin-bottom: 4px;
}

.admin-doc-quickupload {
    margin-top: 2px;
    padding: 10px;
    border: 1px dashed var(--hw-line);
    border-radius: 10px;
    background: rgba(20, 113, 91, 0.035);
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: border-color 0.15s ease, background 0.15s ease;
}
.admin-doc-quickupload.is-uploading {
    border-color: var(--hw-primary, #14715b);
    background: rgba(20, 113, 91, 0.08);
}
.admin-doc-quickupload.is-dragover {
    border-color: var(--hw-primary, #14715b);
    border-style: solid;
    background: rgba(20, 113, 91, 0.1);
    box-shadow: inset 0 0 0 1px var(--hw-primary, #14715b);
}
.admin-doc-quickupload.is-choosing {
    border-color: #d97706;
    background: rgba(217, 119, 6, 0.08);
}
.admin-doc-quickupload.is-choosing .admin-doc-btn {
    border-color: #d97706;
    color: #b45309;
    animation: admin-doc-pulse 1.1s ease-in-out infinite;
}
@keyframes admin-doc-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(217, 119, 6, 0); }
    50% { box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.18); }
}
.admin-doc-btn.is-drop-target {
    border-color: var(--hw-primary, #14715b);
    background: var(--hw-primary, #14715b);
    color: #fff;
    transform: translateY(-1px);
}
.admin-doc-quickupload-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--muted);
}
.admin-doc-quickupload-hint {
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
    opacity: 0.85;
}
.admin-doc-quickupload-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.admin-doc-quickupload-btns .admin-doc-btn {
    flex: 1 1 auto;
    min-width: 0;
}
.admin-doc-quickupload-status {
    min-height: 1em;
    color: var(--hw-primary, #14715b);
    font-weight: 600;
}

.admin-candidates-page .admin-candidate-actions {
    margin-top: auto;
    padding-top: 6px;
    gap: 6px;
    justify-content: flex-start;
    flex-wrap: wrap;
}

/* ========================================================================== */
/* Modern Flat UI – ruhig, klar, keine Farbverläufe.                           */
/* Neutraler Untergrund, weiße Flächen, feine Haarlinien, weiche Schatten.      */
/* ========================================================================== */
:root {
    --radius: 18px;
    --radius-sm: 14px;
    --glass-bright: #ffffff;
    --glass-rim: rgba(17, 35, 30, 0.08);
    --glass-hairline: rgba(17, 35, 30, 0.07);
    --shadow-glass: 0 1px 2px rgba(16, 24, 40, 0.04), 0 10px 26px -14px rgba(16, 24, 40, 0.12);
    --shadow-float: 0 2px 4px rgba(16, 24, 40, 0.05), 0 18px 36px -16px rgba(16, 24, 40, 0.18);
}

/* Einfarbiger, ruhiger Untergrund – keine Verläufe */
body.hr-portal,
body.hr-admin,
body.login-body {
    background: #f3f5f4;
    background-attachment: fixed;
}

/* Orbs / Hintergrund-Verläufe komplett aus */
.bg-orb { display: none !important; }

/* Topbar: dezent durchscheinend (sinnvoll, da Inhalt darunter durchscrollt) */
.topbar {
    background: rgba(248, 250, 249, 0.85);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    border-bottom: 1px solid var(--glass-hairline);
    box-shadow: none;
}

/* Flächen: klares Weiß, feine Linie, weicher Schatten */
.hero,
.section,
.login-card,
.card,
.kpi,
.stat-card,
.chart-wrap,
.contact-cta,
.time-rate-card,
.time-entry-card,
.dashboard-nav-tile {
    background: var(--glass-bright);
    border: 1px solid var(--glass-rim);
    box-shadow: var(--shadow-glass);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.hero, .section, .login-card { border-radius: var(--radius); }
.card, .kpi, .stat-card, .chart-wrap, .contact-cta,
.time-rate-card, .time-entry-card, .dashboard-nav-tile { border-radius: var(--radius-sm); }

.hero::after { display: none; }

.dashboard-nav-tile { transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease; }
.dashboard-nav-tile:hover {
    background: #ffffff;
    border-color: rgba(20, 113, 91, 0.3);
    box-shadow: var(--shadow-float);
    transform: translateY(-2px);
}

/* Aufklappbare Panels: weißer Container mit zarten Trennlinien */
.dashboard-stack {
    background: #ffffff;
    border: 1px solid var(--glass-rim);
    border-radius: var(--radius);
    box-shadow: var(--shadow-glass);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}
.dashboard-panel-summary,
.dashboard-stack .dashboard-panel-summary {
    background: transparent;
    border: none;
    transition: background 0.16s ease;
}
.dashboard-panel-summary:hover,
.dashboard-stack .dashboard-panel-summary:hover {
    background: rgba(17, 35, 30, 0.03);
}
.dashboard-stack .dashboard-panel + .dashboard-panel > .dashboard-panel-summary {
    border-top: 1px solid var(--glass-hairline);
}
.dashboard-stack .dashboard-panel-body {
    background: transparent;
    border-top: 1px solid var(--glass-hairline);
}

/* Kosten-/Summenkarten: heller, ruhiger Block */
.cost-summary-card {
    background: #f7f9f8;
    border: 1px solid var(--glass-rim);
    border-radius: var(--radius-sm);
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

/* Board-Karten: klares Weiß, leicht schwebend (Spaltenfarben bleiben erhalten) */
.board-card {
    background: #ffffff;
    border: 1px solid var(--glass-rim);
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transition: box-shadow 0.16s ease, transform 0.16s ease;
}
.board-card--draggable:hover {
    box-shadow: var(--shadow-float);
    transform: translateY(-2px);
}

/* Agentur-Spalten: blauen Look wiederherstellen und auffrischen */
.board-column--request {
    border: 1px solid rgba(59, 130, 246, 0.35) !important;
    border-style: dashed !important;
    background: #eff5ff !important;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

/* Tabellen: klar & ruhig */
table {
    background: #ffffff;
    border: 1px solid var(--glass-rim);
    border-radius: var(--radius-sm);
    overflow: hidden;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}
th { background: #f7f9f8; }

/* Formularfelder: klar weiß, runder */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
input[type="search"],
textarea,
select {
    background: #ffffff;
    border-radius: 10px;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
input[type="search"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--hw-primary, #14715b);
    box-shadow: 0 0 0 3px rgba(20, 113, 91, 0.12);
}

/* ---- Buttons: flach & modern (keine Verläufe) ---- */
.btn {
    border-radius: 999px;
    transition: transform 0.14s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}
.btn-primary,
.mail-btn,
.login-card button,
.login-card .btn-primary {
    background: var(--hw-primary, #14715b);
    color: #fff;
    border: 1px solid transparent;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.08);
}
.btn-primary:hover,
.mail-btn:hover,
.login-card button:hover,
.login-card .btn-primary:hover {
    transform: translateY(-1px);
    background: var(--hw-primary-600, #105a49);
    box-shadow: 0 6px 16px -8px rgba(20, 113, 91, 0.5);
}
.btn-ghost,
.btn-outline {
    background: #ffffff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}
.btn-ghost:hover,
.btn-outline:hover {
    background: #f4f7f6;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px -6px rgba(20, 113, 91, 0.35);
}

/* Stat-Karten: farbige Oberkante etwas dezenter */
.stat-card--new { border-top: 2px solid rgba(20, 113, 91, 0.7); }
.stat-card--progress { border-top: 2px solid rgba(37, 99, 235, 0.6); }
.stat-card--declined { border-top: 2px solid rgba(220, 38, 38, 0.55); }
.stat-card--archived { border-top: 2px solid rgba(107, 114, 128, 0.55); }
.stat-card--interview { border-top: 2px solid rgba(217, 119, 6, 0.6); }
