/* ================================================================
   LackPlus – HR-Admin Console CSS
   Neue Klassen (lp-hrc-*) ergänzen die bestehenden lp-emp-* Klassen
   ================================================================ */

/* Berechtigungen – Kategorie-Filter-Tabs */
.bp-cat-tab {
    white-space: nowrap;
    padding: 6px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    background: #fff;
    font-size: 12px;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    transition: all .15s;
    flex-shrink: 0;
}
.bp-cat-tab:hover {
    border-color: #111827;
    background: #f9fafb;
}
.bp-cat-tab.active {
    background: #111827;
    color: #fff;
    border-color: #111827;
    font-weight: 700;
}

/* Header-Gradient (Figma: slate → orange → rose → pink → yellow)
   Default = HR. Per-page modifiers below override the gradient so all pages
   share the same header structure and only the gradient distinguishes them. */
.lp-hrc-header {
    background: linear-gradient(to right, #1e293b, #ea580c, #f43f5e, #f472b6, #facc15);
    border-radius: 12px;
    padding: 24px;
}
.lp-hrc-header.lp-hrc-header--insurance { background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%); }
.lp-hrc-header.lp-hrc-header--customer  { background: linear-gradient(135deg, #f59e0b 0%, #22c55e 50%, #0ea5e9 100%); }
.lp-hrc-header.lp-hrc-header--rental    { background: linear-gradient(135deg, #0f766e 0%, #06b6d4 100%); }
.lp-hrc-header.lp-hrc-header--order     { background: linear-gradient(110deg, #064a96 0%, #0ea5e9 30%, #14b8a6 55%, #84cc16 80%, #facc15 100%); }
/* Generic icon box / CTA used inside the unified header */
.lp-hrc-header-icon {
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    flex-shrink: 0;
}
.lp-hrc-header-cta {
    background: #fff;
    color: #111827;
    font-weight: 700;
    border-radius: 8px;
    padding: 10px 16px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    border: none;
    cursor: pointer;
    text-decoration: none;
}
.lp-hrc-header-cta:hover { background: #f8fafc; color: #111827; }
.lp-hrc-header-cta--ghost {
    background: rgba(255,255,255,.18);
    color: #fff;
    border: 1px solid rgba(255,255,255,.35);
}
.lp-hrc-header-cta--ghost:hover { background: rgba(255,255,255,.28); color: #fff; }
.lp-hrc-header-stat {
    background: rgba(255,255,255,.15);
    border-radius: 8px;
    padding: 8px 16px;
    text-align: center;
    color: #fff;
}
.lp-hrc-header-stat-val { font-size: 22px; font-weight: 700; }
.lp-hrc-header-stat-lbl { font-size: 12px; opacity: .75; }
.lp-hrc-header-stat.lp-hrc-header-stat--warn { background: rgba(239,68,68,.45); }
.lp-hrc-admin-badge {
    background: #ef4444;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 9999px;
}

/* Tab-Bar (Pill-Style) */
.lp-hrc-tabbar {
    display: flex;
    gap: 4px;
    background: #f3f4f6;
    border-radius: 8px;
    padding: 4px;
    width: fit-content;
}
.lp-hrc-tab {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    background: transparent;
    color: #6b7280;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all .15s;
}
.lp-hrc-tab.active {
    background: #fff;
    color: #111827;
    box-shadow: 0 1px 3px rgba(0,0,0,.1);
}
.lp-hrc-tab-badge {
    background: #ef4444;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    border-radius: 9999px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Pulse-Dot (Live-Ansicht) */
.lp-hrc-pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    display: inline-block;
    animation: lp-hrc-pulse-anim 1.5s infinite;
}
@keyframes lp-hrc-pulse-anim {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.3; }
}

/* 6er Mini-Stats */
.lp-hrc-stats6 { display: grid; grid-template-columns: repeat(6,1fr); gap: 12px; }
.lp-hrc-stat6  {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px 16px;
}
.lp-hrc-stat6-lbl { font-size: 12px; color: #6b7280; }
.lp-hrc-stat6-val { font-size: 20px; font-weight: 700; margin-top: 2px; color: #111827; }
.lp-hrc-stat6-val--green  { color: #16a34a; }
.lp-hrc-stat6-val--red    { color: #dc2626; }
.lp-hrc-stat6-val--blue   { color: #0783ff; }
.lp-hrc-stat6-val--orange { color: #ea580c; }

/* Mitarbeiter-Tabelle */
.lp-hrc-table-wrap {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
}
.lp-hrc-table { width: 100%; border-collapse: collapse; }
.lp-hrc-table thead tr { background: #f9fafb; border-bottom: 1px solid #f3f4f6; }
.lp-hrc-table thead th {
    padding: 12px 20px;
    font-size: 11px;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: .05em;
    text-align: left;
}
.lp-hrc-table thead th.tc { text-align: center; }
.lp-hrc-table thead th.lp-sortable {
    cursor: pointer;
    user-select: none;
    transition: color .12s, background .12s;
}
.lp-hrc-table thead th.lp-sortable:hover { color: #374151; background: #f3f4f6; }
.lp-hrc-table thead th.lp-sort-active { color: #ea580c; }
.lp-hrc-table thead th .lp-sort-ind {
    font-size: 10px;
    margin-left: 2px;
    color: #ea580c;
}
.lp-hrc-table tbody tr {
    border-bottom: 1px solid #f9fafb;
    cursor: pointer;
    transition: background .12s;
}
.lp-hrc-table tbody tr:hover { background: rgba(249,115,22,.06); }
.lp-hrc-table tbody tr:last-child { border-bottom: none; }
.lp-hrc-table td { padding: 14px 20px; font-size: 14px; vertical-align: middle; }
.lp-hrc-table td.tc { text-align: center; }

/* Avatar (grauer Gradient) */
.lp-hrc-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #374151, #1f2937);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
}

/* Status-Badges */
.lp-hrc-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 500;
}
.lp-hrc-badge--aktiv     { background: #f0fdf4; color: #15803d; }
.lp-hrc-badge--probezeit { background: #fefce8; color: #a16207; }
.lp-hrc-badge--krank     { background: #fef2f2; color: #dc2626; }
.lp-hrc-badge--urlaub    { background: #eff6ff; color: #0656b0; }
.lp-hrc-badge--inaktiv   { background: #f9fafb; color: #6b7280; }

/* Stunden-Saldo */
.lp-hrc-saldo { font-size: 14px; font-weight: 700; font-family: monospace; }
.lp-hrc-saldo--pos { color: #16a34a; }
.lp-hrc-saldo--neg { color: #dc2626; }

/* Warn-Badge (Pflichtdaten fehlen) */
.lp-hrc-warn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    background: #fef3c7;
    border: 1px solid #fcd34d;
    border-radius: 4px;
    color: #92400e;
    font-size: 11px;
    font-weight: 600;
}

/* Profil-Karte (EmployeeDetail – weiße Karte) */
.lp-hrc-profile-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
}
.lp-hrc-profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3399ff, #0783ff);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 28px;
    font-weight: 700;
    flex-shrink: 0;
}
.lp-hrc-profile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 24px;
    font-size: 14px;
    color: #4b5563;
}
.lp-hrc-stamm-section { margin-top: 14px; }
.lp-hrc-stamm-section + .lp-hrc-stamm-section {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #f1f5f9;
}
.lp-hrc-stamm-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: 10px;
}
.lp-hrc-stamm-title i {
    font-size: 14px;
    color: #6366f1;
}
.lp-hrc-pg-item {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
}
.lp-hrc-pg-item > strong,
.lp-hrc-pg-item { overflow-wrap: anywhere; }
.lp-hrc-pg-icon { color: #9ca3af; font-size: 14px; flex: 0 0 auto; }
.lp-hrc-pg-lbl  { color: #9ca3af; }
.lp-hrc-profile-quick {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 16px;
    text-align: center;
    border-top: 1px solid #f3f4f6;
    padding-top: 16px;
    margin-top: 16px;
}
.lp-hrc-pq-val { font-size: 22px; font-weight: 700; color: #111827; }
.lp-hrc-pq-val--orange { color: #ea580c; }
.lp-hrc-pq-val--blue   { color: #0783ff; }
.lp-hrc-pq-val--green  { color: #16a34a; }
.lp-hrc-pq-lbl { font-size: 12px; color: #6b7280; margin-top: 2px; }

/* Detail-Tab-Bar (orange underline) */
.lp-hrc-detail-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
}
.lp-hrc-detail-tabs {
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    gap: 0;
    overflow-x: auto;
    padding: 0 24px;
}
.lp-hrc-detail-tab {
    padding: 16px 8px;
    border-bottom: 2px solid transparent;
    border-left: none;
    border-right: none;
    border-top: none;
    background: transparent;
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    transition: color .15s, border-color .15s;
    margin-right: 16px;
}
.lp-hrc-detail-tab:hover { color: #111827; }
.lp-hrc-detail-tab.active { color: #ea580c; border-bottom-color: #ea580c; }
.lp-hrc-detail-body { padding: 24px; }

/* Überblick – 5 Gradient-Karten */
.lp-hrc-ov-grid {
    display: grid;
    grid-template-columns: repeat(5,1fr);
    gap: 16px;
    margin-bottom: 20px;
}
.lp-hrc-ov-card { border-radius: 8px; padding: 16px; }
.lp-hrc-ov-card--green  { background: linear-gradient(135deg,#f0fdf4,#dcfce7); border: 1px solid #bbf7d0; }
.lp-hrc-ov-card--orange { background: linear-gradient(135deg,#fff7ed,#ffedd5); border: 1px solid #fed7aa; }
.lp-hrc-ov-card--blue   { background: linear-gradient(135deg,#eff6ff,#dbeafe); border: 1px solid #bfdbfe; }
.lp-hrc-ov-card--red    { background: linear-gradient(135deg,#fef2f2,#fee2e2); border: 1px solid #fecaca; }
.lp-hrc-ov-card--amber  { background: linear-gradient(135deg,#fffbeb,#fef3c7); border: 1px solid #fcd34d; }
.lp-hrc-ov-val { font-size: 22px; font-weight: 700; margin-top: 8px; }
.lp-hrc-ov-lbl { font-size: 13px; margin-top: 4px; }
.lp-hrc-ov-val--green  { color: #14532d; } .lp-hrc-ov-lbl--green  { color: #15803d; }
.lp-hrc-ov-val--orange { color: #7c2d12; } .lp-hrc-ov-lbl--orange { color: #9a3412; }
.lp-hrc-ov-val--blue   { color: #064a96; } .lp-hrc-ov-lbl--blue   { color: #0656b0; }
.lp-hrc-ov-val--red    { color: #7f1d1d; } .lp-hrc-ov-lbl--red    { color: #b91c1c; }
.lp-hrc-ov-val--amber  { color: #451a03; } .lp-hrc-ov-lbl--amber  { color: #92400e; }

/* Urlaubs-Konto */
.lp-hrc-vac-account {
    background: linear-gradient(to right, #dcfce7, #bbf7d0);
    border: 1px solid #86efac;
    border-radius: 12px;
    padding: 16px;
    display: grid;
    grid-template-columns: repeat(5,1fr);
    gap: 12px;
    margin-bottom: 20px;
}
.lp-hrc-vac-col-val { font-size: 24px; font-weight: 700; color: #14532d; text-align: center; }
.lp-hrc-vac-col-lbl { font-size: 12px; color: #16a34a; text-align: center; margin-top: 4px; }

/* Freigaben Approval Cards */
.lp-hrc-appr-stats {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}
.lp-hrc-appr-stat  {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px 16px;
}
.lp-hrc-appr-stat-lbl { font-size: 12px; color: #6b7280; }
.lp-hrc-appr-stat-val { font-size: 22px; font-weight: 700; color: #111827; }
.lp-hrc-appr-card {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 12px;
    background: #fff;
}
.lp-hrc-appr-card--pending { border-color: #fcd34d; background: #fffbeb; }

/* Freigaben — neue Card + Filter-Tabs */
.vac-card {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 12px;
    background: #fff;
}
.vac-card--pending { border-color: #fcd34d; background: #fffbeb; }

.vac-filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 6px;
    margin-bottom: 18px;
}
.vac-filter-tab {
    background: transparent;
    border: none;
    color: #475569;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 7px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background .15s, color .15s, box-shadow .15s;
}
.vac-filter-tab:hover { background: #e2e8f0; color: #1e293b; }
.vac-filter-tab.is-active {
    background: #fff;
    color: #0656b0;
    box-shadow: 0 1px 3px rgba(15,23,42,.08);
}
.vac-filter-count {
    background: #e2e8f0;
    color: #475569;
    font-size: 11px;
    font-weight: 700;
    padding: 1px 7px;
    border-radius: 999px;
    min-width: 20px;
    text-align: center;
}
.vac-filter-tab.is-active .vac-filter-count {
    background: #dbeafe;
    color: #0656b0;
}

/* Overlap-Warnung im Pending-Card (HR sieht andere MA im selben Zeitraum) */
.vac-overlap-box {
    margin-top: 14px;
    padding: 12px 14px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 10px;
}
.vac-overlap-head {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #9a3412;
    margin-bottom: 8px;
}
.vac-overlap-head .bi {
    color: #ea580c;
    font-size: 14px;
}
.vac-overlap-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}
.vac-overlap-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: #fff;
    border: 1px solid #fed7aa;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    color: #9a3412;
}
.vac-overlap-chip .bi { font-size: 11px; }
.vac-overlap-chip--approved {
    background: #dcfce7;
    border-color: #86efac;
    color: #166534;
}
.vac-overlap-chip--approved .bi { color: #16a34a; }
.vac-overlap-chip--pending {
    background: #fef3c7;
    border-color: #fcd34d;
    color: #92400e;
}
.vac-overlap-chip--pending .bi { color: #d97706; }
.vac-overlap-dates {
    color: inherit;
    opacity: .75;
    font-weight: 500;
    font-size: 11px;
}
.vac-overlap-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 600;
    color: #0656b0;
    text-decoration: none;
}
.vac-overlap-link:hover { text-decoration: underline; }

/* Antrag-Prüfen Modal */
.lp-hrc-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1060;
}
.lp-hrc-modal {
    background: #fff;
    border-radius: 12px;
    padding: 28px;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 20px 60px rgba(0,0,0,.2);
}
.lp-hrc-modal-title {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 20px;
}
.lp-hrc-modal-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f3f4f6;
    font-size: 14px;
}
.lp-hrc-modal-row:last-of-type { border-bottom: none; }
.lp-hrc-modal-lbl { color: #6b7280; }
.lp-hrc-modal-val { font-weight: 600; color: #111827; }

/* 6-Schritte-Wizard (Figma 1:1) */
.lp-hrc-wizard-layout {
    display: flex;
    max-height: 90vh;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 25px 50px rgba(0,0,0,.25);
    background: #fff;
}
.lp-hrc-wizard-sidebar {
    width: 224px;
    background: #111827;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    border: none;
    border-radius: 0;
    padding: 0;
}
.lp-hrc-wizard-sidebar-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255,255,255,.1);
    display: flex;
    align-items: center;
    gap: 12px;
}
.lp-hrc-wizard-sidebar-icon {
    width: 40px; height: 40px;
    border-radius: 8px;
    background: #f97316;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 18px; flex-shrink: 0;
}
.lp-hrc-wizard-sidebar-title { font-size: 13px; font-weight: 700; color: #fff; line-height: 1.2; }
.lp-hrc-wizard-sidebar-sub   { font-size: 11px; color: #9ca3af; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 140px; }
.lp-hrc-wizard-sidebar-nav   { flex: 1; padding: 12px 0; overflow-y: auto; }
.lp-hrc-wstep {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 16px;
    border: none;
    border-right: 2px solid transparent;
    background: transparent;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: #9ca3af;
    transition: all .15s;
    text-align: left;
    border-radius: 0;
}
.lp-hrc-wstep:hover  { background: #1f2937; color: #fff; }
.lp-hrc-wstep.active { background: #1f2937; color: #fff; border-right-color: #f97316; }
.lp-hrc-wstep.done   { color: #86efac; }
.lp-hrc-wstep-num {
    width: 24px; height: 24px; border-radius: 50%;
    background: #374151;
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 700; color: #9ca3af; flex-shrink: 0;
}
.lp-hrc-wstep.active .lp-hrc-wstep-num { background: #f97316; color: #fff; }
.lp-hrc-wstep.done   .lp-hrc-wstep-num { background: #22c55e; color: #fff; }
.lp-hrc-wizard-sidebar-footer {
    padding: 16px;
    border-top: 1px solid rgba(255,255,255,.1);
}
.lp-hrc-wizard-save-btn {
    width: 100%;
    padding: 10px;
    background: linear-gradient(to right, #22c55e, #16a34a);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: opacity .15s;
}
.lp-hrc-wizard-save-btn:hover { opacity: .9; }
.lp-hrc-wizard-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #fff;
    border: none;
    border-radius: 0;
}
.lp-hrc-wizard-panel-header {
    padding: 16px 24px;
    border-bottom: 1px solid #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}
.lp-hrc-wizard-panel-title { font-size: 18px; font-weight: 700; color: #111827; margin: 0; }
.lp-hrc-wizard-panel-sub   { font-size: 12px; color: #9ca3af; margin-top: 2px; }
.lp-hrc-wizard-close-btn {
    padding: 8px; border: none; background: transparent;
    border-radius: 8px; cursor: pointer; color: #9ca3af;
    font-size: 18px; line-height: 1; transition: background .15s; flex-shrink: 0;
}
.lp-hrc-wizard-close-btn:hover { background: #f3f4f6; color: #374151; }
.lp-hrc-wizard-panel-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}
.lp-hrc-wizard-panel-footer {
    padding: 16px 24px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}
.lp-hrc-section-title {
    font-size: 13px; font-weight: 700; color: #111827;
    margin-bottom: 12px; margin-top: 24px;
    display: flex; align-items: center; gap: 8px;
}
.lp-hrc-section-title::before {
    content: '';
    display: inline-block;
    width: 10px; height: 10px; border-radius: 50%;
    background: #f97316; flex-shrink: 0;
}
.lp-hrc-section-title:first-child { margin-top: 0; }

/* Vertragstyp-Karten (Schritt 3) */
.lp-hrc-contract-grid {
    display: grid;
    grid-template-columns: repeat(5,1fr);
    gap: 10px;
    margin-bottom: 20px;
}
.lp-hrc-contract-card {
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 14px 10px;
    text-align: center;
    cursor: pointer;
    transition: all .15s;
}
.lp-hrc-contract-card:hover  { border-color: #fed7aa; }
.lp-hrc-contract-card.active { border-color: #ea580c; background: #fff7ed; }
.lp-hrc-contract-name { font-size: 13px; font-weight: 700; color: #111827; }
.lp-hrc-contract-sub  { font-size: 11px; color: #6b7280; margin-top: 2px; }

/* Dokument-Checkliste (Schritt 6) */
.lp-hrc-doc-checklist { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lp-hrc-doc-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    font-size: 14px;
    font-weight: 600;
}
.lp-hrc-doc-item--done { background: #f0fdf4; border-color: #bbf7d0; color: #15803d; }
.lp-hrc-doc-item--open { background: #f9fafb; color: #6b7280; }

/* Panel-Tabs (Tab-Inhalt) */
.lp-hrc-tab-panel { display: none; }
.lp-hrc-tab-panel.active { display: block; }

/* Responsive */
@media (max-width: 1000px) {
    .lp-hrc-wizard-layout { flex-direction: column; max-height: none; border-radius: 0; box-shadow: none; }
    .lp-hrc-wizard-sidebar { width: 100%; flex-direction: row; }
    .lp-hrc-wizard-sidebar-header, .lp-hrc-wizard-sidebar-footer { display: none; }
    .lp-hrc-wizard-sidebar-nav { display: flex; flex-direction: row; flex-wrap: wrap; gap: 0; overflow-x: auto; }
    .lp-hrc-wstep { border-right: none; border-bottom: 2px solid transparent; flex-direction: column; padding: 8px 12px; font-size: 11px; gap: 4px; }
    .lp-hrc-wstep.active { border-bottom-color: #f97316; }
}
@media (max-width: 900px) {
    .lp-hrc-stats6 { grid-template-columns: repeat(3,1fr); }
    .lp-hrc-ov-grid { grid-template-columns: repeat(2,1fr); }
    .lp-hrc-vac-account { grid-template-columns: repeat(3,1fr); }
    .lp-hrc-appr-stats { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 600px) {
    .lp-hrc-stats6 { grid-template-columns: repeat(2,1fr); }
    .lp-hrc-ov-grid { grid-template-columns: 1fr; }
    .lp-hrc-profile-grid { grid-template-columns: 1fr; }
    .lp-hrc-profile-quick { grid-template-columns: repeat(2,1fr); }
    .lp-hrc-contract-grid { grid-template-columns: repeat(2,1fr); }
    .lp-hrc-doc-checklist { grid-template-columns: 1fr; }
}

/* ============================================================
   Employee Wizard Modal Overlay
   ============================================================ */
.lp-emp-modal-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1055;
    background: rgba(0,0,0,.6);
    overflow-y: auto;
    padding: 32px 16px;
}
.lp-emp-modal-wrap {
    position: relative;
    max-width: 960px;
    margin: 0 auto;
}
.lp-hrc-modal-close-btn {
    position: absolute; top: -12px; right: -12px; z-index: 10;
    width: 36px; height: 36px; border-radius: 50%;
    background: #fff; border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; color: #374151;
    box-shadow: 0 2px 8px rgba(0,0,0,.3);
    transition: background .15s;
}
.lp-hrc-modal-close-btn:hover { background: #fee2e2; color: #dc2626; }

/* ============================================================
   Figma Inputs & Selects (orange focus ring)
   ============================================================ */
.lp-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color .15s, box-shadow .15s;
    background: #fff;
    color: #111827;
    box-sizing: border-box;
}
.lp-input:hover  { border-color: #d1d5db; }
.lp-input:focus  { outline: none; border-color: transparent; box-shadow: 0 0 0 2px #f97316; }
.lp-select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    background: #fff;
    color: #111827;
    box-sizing: border-box;
}
.lp-select:focus { outline: none; box-shadow: 0 0 0 2px #f97316; border-color: transparent; }

/* Sortier-Dropdown rechts in der Tabellen-Kopfzeile (über der Aktion-Spalte) */
.lp-sort-select {
    width: auto;
    min-width: 210px;
    padding: 7px 10px;
    font-size: 12px;
    font-weight: 500;
    text-transform: none;
    letter-spacing: normal;
    color: #374151;
    cursor: pointer;
}

/* Grid helpers */
.lp-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.lp-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.lp-grid-4 { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 12px; }
@media (max-width: 640px) {
    .lp-grid-2, .lp-grid-3, .lp-grid-4 { grid-template-columns: 1fr; }
}

/* Schritt-Panels: Flex-Container damit panel-body flex:1 + overflow-y:auto greifen */
.cwstep-panel,
.wstep-panel {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0; /* kritisch für verschachtelte Flex-Scrolling */
    overflow: hidden;
}

/* Rollen-Pills (Schritt 5) */
.lp-role-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    background: #f9fafb;
    cursor: pointer;
    transition: all .15s;
}
.lp-role-pill input[type=checkbox] { display: none; }
.lp-role-pill.active { background: #fff7ed; border-color: #ea580c; color: #ea580c; font-weight: 700; }
.lp-role-pill:hover { border-color: #fed7aa; }

/* Checkbox label */
.lp-check-label {
    display: flex; align-items: flex-start; gap: 12px; cursor: pointer;
}
.lp-check-label input[type=checkbox] {
    width: 20px; height: 20px;
    accent-color: #f97316;
    flex-shrink: 0; margin-top: 2px;
}
.lp-check-label .lp-check-title { font-size: 14px; font-weight: 500; color: #111827; }
.lp-check-label .lp-check-sub   { font-size: 12px; color: #4b5563; margin-top: 2px; }

/* ── Mitarbeiter-Löschen Modal (Admin-only) ─────────────────────────── */
.lp-emp-delete-backdrop {
    position: fixed; inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(4px);
    z-index: 99999;
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
    animation: lp-fade-in-quick .18s ease;
}
@keyframes lp-fade-in-quick { from { opacity: 0; } to { opacity: 1; } }
.lp-emp-delete-modal {
    width: min(540px, 100%);
    max-height: 90vh;
    overflow: hidden;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 24px 80px rgba(15, 23, 42, .3);
    display: flex; flex-direction: column;
    border: 1px solid #fecaca;
}
.lp-emp-delete-head {
    display: flex; align-items: flex-start; gap: 14px;
    padding: 22px 24px 14px;
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border-bottom: 1px solid #fecaca;
}
.lp-emp-delete-icon {
    width: 48px; height: 48px;
    border-radius: 12px;
    background: #dc2626; color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 22px; flex-shrink: 0;
    box-shadow: 0 6px 16px rgba(220, 38, 38, .3);
}
.lp-emp-delete-title {
    font-size: 18px; font-weight: 800; color: #7f1d1d; margin-bottom: 2px;
}
.lp-emp-delete-sub {
    font-size: 12px; color: #991b1b; font-weight: 600;
}
.lp-emp-delete-body {
    padding: 18px 24px;
    overflow-y: auto; flex: 1;
}
.lp-emp-delete-warning {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 16px;
    font-size: 13px; color: #7c2d12;
}
.lp-emp-delete-warning ul {
    margin: 8px 0; padding-left: 20px;
}
.lp-emp-delete-warning li {
    margin-bottom: 3px;
}
.lp-emp-delete-note {
    font-size: 11px;
    color: #9a3412;
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px dashed #fdba74;
    font-style: italic;
}
.lp-emp-delete-label {
    font-size: 12px; font-weight: 600; color: #374151;
    margin-bottom: 6px; display: block;
}
.lp-emp-delete-label strong { color: #dc2626; }
.lp-emp-delete-body input[type="text"] {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid #fecaca;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: border-color .12s, box-shadow .12s;
}
.lp-emp-delete-body input[type="text"]:focus {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, .15);
}
.lp-emp-delete-foot {
    display: flex; gap: 8px; justify-content: flex-end;
    padding: 14px 24px 18px;
    border-top: 1px solid #f1f5f9;
    background: #fafafa;
}
.lp-emp-delete-foot .btn-secondary {
    background: #f1f5f9; color: #334155;
    border: 1px solid #e2e8f0;
    padding: 8px 18px; border-radius: 8px;
    font-weight: 600; cursor: pointer;
}
.lp-emp-delete-foot .btn-secondary:hover { background: #e2e8f0; }
.lp-emp-delete-foot .btn-danger {
    background: #dc2626; color: #fff;
    border: none;
    padding: 8px 18px; border-radius: 8px;
    font-weight: 700; cursor: pointer;
    transition: background .12s, box-shadow .12s;
}
.lp-emp-delete-foot .btn-danger:hover:not(:disabled) {
    background: #b91c1c;
    box-shadow: 0 4px 12px rgba(220, 38, 38, .3);
}
.lp-emp-delete-foot .btn-danger:disabled {
    background: #fca5a5; cursor: not-allowed;
}

/* ─── Live-Duplikat-Hinweis bei MA-Anlegen ─── */
.lp-dup-hint {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 1px solid #f59e0b;
    border-radius: 10px;
    padding: 12px 14px;
    color: #78350f;
    margin-top: 8px;
}
.lp-dup-hint > i.bi {
    font-size: 22px;
    color: #d97706;
    flex-shrink: 0;
    margin-top: 2px;
}
.lp-dup-hint-body { flex: 1; min-width: 0; }
.lp-dup-hint-title {
    font-weight: 700;
    margin-bottom: 6px;
}
.lp-dup-hint-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 6px 0;
}
.lp-dup-hint-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    background: rgba(255,255,255,.7);
    border-radius: 8px;
    color: #78350f !important;
    text-decoration: none;
    font-weight: 500;
    transition: background .15s;
}
.lp-dup-hint-item:hover {
    background: #fff;
    color: #78350f;
}
.lp-dup-hint-item i { color: #d97706; }
.lp-dup-badge {
    margin-left: auto;
    padding: 2px 8px;
    background: #b45309;
    color: #fff;
    border-radius: 6px;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
}
.lp-dup-badge--soft {
    background: rgba(180, 83, 9, .25);
    color: #78350f;
}
.lp-dup-hint-foot {
    color: #92400e;
    font-size: .85rem;
    margin-top: 4px;
}

/* ─── DupCheck-Status-Variants ─── */
.lp-dup-hint--info {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border-color: #3399ff;
    color: #064a96;
}
.lp-dup-hint--info > i.bi { color: #0783ff; }

.lp-dup-hint--ok {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border-color: #10b981;
    color: #064e3b;
}
.lp-dup-hint--ok > i.bi { color: #059669; }

.lp-dup-hint--warn {
    /* default — wie bisher gelb */
}

.lp-dup-hint--err {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border-color: #dc2626;
    color: #7f1d1d;
}
.lp-dup-hint--err > i.bi { color: #b91c1c; }

.lp-spin {
    display: inline-block;
    animation: lp-spin 1s linear infinite;
}
@keyframes lp-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}
