/* =========================================================
   LACKplus – Header + Subnav + Dashboard (NUR hier!)
   site.css bleibt unangetastet.
   ========================================================= */

:root {
    /* Marken-Farben (Canva): Blau #0783ff · Gelb #fbff3a · Schwarz #000000 */
    --lp-primary: #0783ff;        /* Marken-Blau – Buttons, Links, aktive Tabs */
    --lp-primary-dark: #0656b0;   /* dunkle Variante – Hover, Border, Text */
    --lp-primary-light: #3aa0ff;  /* helle Variante – Gradients, Highlights */
    --lp-brand-yellow: #fbff3a;   /* Marken-Gelb */

    --lp-blue-900: #0b2a44;       /* dunkles Navy – NUR als Überschriften-/Textfarbe */
    --lp-blue-700: #0783ff;       /* Akzentblau = Marken-Blau */
    --lp-yellow: #ffd200;
    --lp-card: #ffffff;
    --lp-border: #e9eef5;
    --lp-text: #0f172a;
    --lp-muted: #64748b;
    --lp-radius: 14px;
}

/* Container: Header-Inhalt & Seiten-Inhalt gleiche Breite + Abstand links/rechts */
.lp-container {
    max-width: 1360px;
    margin: 0 auto;
    padding-left: 14px;
    padding-right: 14px;
}

@media (min-width: 1600px) {
    .lp-container {
        max-width: 1440px;
    }
}

/* =========================================================
   TOP HEADER (wie Screenshot: links Logo, Mitte Zeiterfassung, rechts User/Standort/Logout)
   ========================================================= */
.lp-topbar {
    background: linear-gradient(90deg, var(--lp-primary) 0%, var(--lp-primary-light) 55%, var(--lp-yellow) 100%);
    box-shadow: 0 10px 22px rgba(0,0,0,.12);
}

.lp-topbar-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr; /* links / mitte / rechts */
    gap: 14px;
    align-items: center;
    padding: 14px 0;
}

/* Brand links */
.lp-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 280px;
    justify-self: start;
}

.lp-brand-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: rgba(255,255,255,.16);
    border: 1px solid rgba(255,255,255,.22);
    color: #fff;
    font-size: 20px;
}

.lp-brand-title {
    font-weight: 900;
    font-size: 20px;
    color: #fff;
    line-height: 1.05;
}

    .lp-brand-title .lp-plus {
        color: #fbff3a; /* Marken-Gelb (Canva) */
    }

.lp-brand-sub {
    font-size: 12px;
    color: rgba(255,255,255,.82);
    margin-top: 2px;
}

/* Zeiterfassung mittig */
.lp-timebox {
    justify-self: center;
    width: 360px;
    max-width: 92vw;
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.20);
    border-radius: 12px;
    padding: 10px 12px;
    color: #fff;
    backdrop-filter: blur(6px);
}

.lp-timebox-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.lp-timebox-title {
    font-weight: 800;
    font-size: 13px;
}

.lp-timebox-state {
    font-size: 12px;
    opacity: .92;
}

.lp-pillbtn {
    border-radius: 999px !important;
    font-weight: 800 !important;
    padding: 6px 12px !important;
    line-height: 1 !important;
}

/* Pause-Button im Marken-Gelb (Canva #fbff3a), schwarze Schrift für Lesbarkeit */
#lp-tz-btn-pause.btn-warning {
    background-color: #fbff3a;
    border-color: #fbff3a;
    color: #000;
}

    #lp-tz-btn-pause.btn-warning:hover,
    #lp-tz-btn-pause.btn-warning:focus,
    #lp-tz-btn-pause.btn-warning:active {
        background-color: #e6ea1f;
        border-color: #e6ea1f;
        color: #000;
    }

/* Warnung im Timebox: "Du bist seit >10h eingestempelt" */
.lp-tz-long-warn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(239, 68, 68, 0.18);
    border: 1px solid rgba(252, 165, 165, 0.6);
    border-radius: 8px;
    padding: 6px 10px;
    margin-bottom: 8px;
    font-size: 11px;
    font-weight: 700;
    color: #fecaca;
    animation: lpTzLongWarnPulse 2.4s ease-in-out infinite;
}

.lp-tz-long-warn--hidden {
    display: none;
}

.lp-tz-long-warn i {
    color: #fca5a5;
    font-size: 13px;
}

@keyframes lpTzLongWarnPulse {
    0%, 100% { background: rgba(239, 68, 68, 0.18); }
    50%      { background: rgba(239, 68, 68, 0.32); }
}

/* Rechte Boxen */
.lp-right {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 10px;
}

.lp-info-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 12px;
    padding: 8px 10px;
    min-height: 44px;
    color: #fff;
    white-space: nowrap;
}

    .lp-info-pill .lp-label {
        font-size: 11px;
        opacity: .86;
        font-weight: 700;
    }

    .lp-info-pill .lp-value {
        font-size: 13px;
        font-weight: 900;
        line-height: 1.1;
    }

    .lp-info-pill .lp-sub {
        font-size: 11px;
        opacity: .86;
        font-weight: 700;
        margin-top: 2px;
    }

/* Standort-Quick-Switch im Header */
.lp-loc-switcher {
    position: relative;
    padding: 0;
}
.lp-loc-switcher-btn {
    background: transparent;
    border: 0;
    color: inherit;
    padding: 8px 12px;
    margin: 0;
    cursor: pointer;
    text-align: left;
    font: inherit;
    border-radius: 12px;
    width: 100%;
    transition: background .15s;
}
.lp-loc-switcher-btn:hover { background: rgba(255,255,255,.08); }
.lp-loc-switcher.is-open .lp-loc-switcher-btn { background: rgba(255,255,255,.15); }

.lp-loc-switcher-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 240px;
    max-width: 320px;
    background: #fff;
    color: #1e293b;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(15,23,42,.18);
    padding: 6px;
    display: none;
    z-index: 1050;
}
.lp-loc-switcher.is-open .lp-loc-switcher-menu { display: block; }

.lp-loc-switcher-head {
    font-size: 11px;
    font-weight: 800;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: .05em;
    padding: 8px 10px 4px;
}

.lp-loc-switcher-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    background: transparent;
    border: 0;
    padding: 9px 10px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    text-align: left;
    cursor: pointer;
}
.lp-loc-switcher-item:hover:not([disabled]) { background: #f1f5f9; }
.lp-loc-switcher-item.is-current {
    color: #16a34a;
    cursor: default;
}
.lp-loc-switcher-item.is-current i { color: #16a34a; }
.lp-loc-switcher-item i { font-size: 1rem; color: #64748b; flex-shrink: 0; }
.lp-loc-switcher-item span { flex: 1; }

.lp-loc-switcher-badge {
    flex: 0;
    font-size: 10px;
    font-weight: 700;
    background: #dcfce7;
    color: #166534;
    padding: 2px 8px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.lp-logout {
    border-radius: 12px !important;
    font-weight: 900 !important;
    padding: 10px 14px !important;
    border: 1px solid rgba(255,255,255,.35) !important;
    background: rgba(255,255,255,.14) !important;
    color: #fff !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px;
    white-space: nowrap;
    line-height: 1;
}

.lp-logout:hover {
    background: rgba(255,255,255,.22) !important;
}

/* =========================================================
   SUBNAV (unter Header)
   ========================================================= */
.lp-subnav {
    background: #fff;
    border-bottom: 1px solid var(--lp-border);
}

.lp-subnav-row {
    display: flex;
    gap: 18px;
    align-items: center;
    padding: 10px 0;
    flex-wrap: wrap;
}

.lp-navlink {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 900;
    font-size: 13px;
    text-decoration: none;
    color: #475569;
    padding: 8px 10px;
    border-radius: 10px;
}

    .lp-navlink:hover {
        background: #f1f6ff;
        color: #0783ff;
    }

    .lp-navlink.active {
        background: #eaf3ff;
        color: #0783ff;
        border: 1px solid #cfe3ff;
    }

/* =========================================================
   PAGE CONTENT WRAPPER – überall links/rechts Abstand
   ========================================================= */
.lp-page {
    padding-top: 22px;
    padding-bottom: 32px;
}

/* =========================================================
   DASHBOARD HERO (blauer Block wie Screenshot)
   ========================================================= */
.lp-hero {
    border-radius: 18px;
    background: linear-gradient(180deg, #0783ff 0%, #0656b0 100%);
    color: #fff;
    box-shadow: 0 12px 26px rgba(2,6,23,.12);
    overflow: hidden;
}

.lp-hero-inner {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 26px;
}

.lp-hero-icon {
    width: 70px;
    height: 70px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: rgba(255,255,255,.16);
    border: 1px solid rgba(255,255,255,.18);
    font-size: 28px;
    flex: 0 0 auto;
}

.lp-hero-title {
    font-size: 34px;
    font-weight: 1000;
    line-height: 1.1;
    margin: 0;
}

.lp-hero-sub {
    margin-top: 4px;
    font-weight: 900;
    letter-spacing: .5px;
    opacity: .95;
}

    .lp-hero-sub .accent {
        color: #ffcc00;
    }

.lp-hero-stats {
    display: grid;
    grid-template-columns: 1.2fr .9fr .9fr;
    gap: 12px;
    margin-top: 18px;
}

.lp-stat {
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 14px;
    padding: 14px 16px;
}

.lp-stat-label {
    font-size: 12px;
    opacity: .9;
    font-weight: 800;
}

.lp-stat-value {
    font-size: 18px;
    font-weight: 1000;
    margin-top: 4px;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1100px) {
    .lp-topbar-row {
        grid-template-columns: 1fr;
        justify-items: stretch;
    }

    .lp-brand {
        min-width: 0;
    }

    .lp-timebox {
        width: 100%;
    }

    .lp-right {
        justify-self: start;
        flex-wrap: wrap;
    }
}

@media (max-width: 900px) {
    .lp-hero-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .lp-hero-title {
        font-size: 26px;
    }

    .lp-hero-stats {
        grid-template-columns: 1fr;
    }
}

.lp-subnav-sep {
    display: inline-block;
    width: 2px;
    height: 26px;
    background: var(--lp-border); /* statt rgba(255,255,255,.25) */
    margin: 0 10px;
    border-radius: 2px;
    align-self: center;
}

/* =========================================================
   „Mehr"-Menü der Hauptnavigation (CSS-only Dropdown)
   ========================================================= */
.lp-navmore { position: relative; margin-left: auto; }
.lp-navmore-toggle { border: none; background: transparent; cursor: pointer; font-family: inherit; }
.lp-navmore-caret { font-size: 11px; transition: transform .15s; }
.lp-navmore-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 6px;
    background: #fff;
    border: 1px solid var(--lp-border);
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .14);
    padding: 6px;
    display: none;
    flex-direction: column;
    gap: 2px;
    min-width: 210px;
    z-index: 1200;
}
.lp-navmore:hover .lp-navmore-menu,
.lp-navmore:focus-within .lp-navmore-menu { display: flex; }
.lp-navmore:hover .lp-navmore-caret,
.lp-navmore:focus-within .lp-navmore-caret { transform: rotate(180deg); }
.lp-navmore-menu .lp-navlink { width: 100%; }

/*Back Button*/
.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    border-radius: 14px;
    background: #e9eef4; /* hellgrau/bläulich */
    color: #0f172a; /* dunkles navy */
    text-decoration: none;
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.06);
    font-weight: 600;
    line-height: 1;
    user-select: none;
    transition: background .15s ease, transform .05s ease, box-shadow .15s ease;
}

.btn-back:hover {
    background: #dde5ee;
    text-decoration: none;
    color: #0f172a;
}

.btn-back:active {
    transform: translateY(1px);
    box-shadow: 0 0 0 rgba(15, 23, 42, 0.0);
}

.btn-back:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.25);
}

/* Brand Logo im Icon-Container */
.lp-brand-logo {
    padding: 6px; /* etwas Luft wie beim Icon */
}

.lp-brand-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* wichtig: Logo nicht verzerren */
    display: block;
    filter: drop-shadow(0 2px 6px rgba(2,6,23,.18)); /* optional, passt gut im Header */
}

/* =========================================================
   HR-SEITEN: lp-hr-* Klassen
   ========================================================= */

/* --- Seiten-Header --- */
.lp-hr-page-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
}

.lp-hr-page-title {
    font-size: 22px;
    font-weight: 1000;
    color: var(--lp-blue-900);
    margin: 0;
}

/* --- Statistik-Karten --- */
.lp-hr-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 20px;
}

@media (max-width: 900px) {
    .lp-hr-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 500px) {
    .lp-hr-stats { grid-template-columns: 1fr; }
}

.lp-hr-stat {
    background: #fff;
    border: 1px solid var(--lp-border);
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 1px 4px rgba(15,23,42,.06);
    display: flex;
    align-items: center;
    gap: 14px;
}

.lp-hr-stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.lp-hr-stat--blue .lp-hr-stat-icon  { background: rgba(7,131,255,.12); color: var(--lp-blue-700); }
.lp-hr-stat--green .lp-hr-stat-icon { background: rgba(34,197,94,.12);  color: #16a34a; }
.lp-hr-stat--yellow .lp-hr-stat-icon{ background: rgba(255,210,0,.15);  color: #b45309; }
.lp-hr-stat--red .lp-hr-stat-icon   { background: rgba(239,68,68,.10);  color: #dc2626; }

.lp-hr-stat-value {
    font-size: 28px;
    font-weight: 1000;
    line-height: 1;
}

.lp-hr-stat-label {
    font-size: 12px;
    font-weight: 800;
    color: var(--lp-muted);
    margin-top: 2px;
}

/* --- Suchleiste --- */
.lp-hr-search {
    display: flex;
    flex-direction: row;
    gap: 10px;
    align-items: center;
    margin-bottom: 16px;
}

.lp-hr-search-input {
    flex: 1;
    max-width: 380px;
    position: relative;
}

.lp-hr-search-input .lp-hr-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--lp-muted);
    pointer-events: none;
}

.lp-hr-search-input input {
    padding-left: 36px;
}

/* --- Tab-Leiste --- */
.lp-hr-tabs {
    display: flex;
    flex-direction: row;
    gap: 4px;
    border-bottom: 2px solid var(--lp-border);
    margin-bottom: 18px;
}

.lp-hr-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    font-weight: 900;
    font-size: 14px;
    border: none;
    border-radius: 8px 8px 0 0;
    background: transparent;
    color: var(--lp-muted);
    text-decoration: none;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: color .15s, border-color .15s;
}

.lp-hr-tab:hover {
    color: var(--lp-blue-700);
    text-decoration: none;
}

.lp-hr-tab.active {
    color: var(--lp-blue-700);
    border-bottom-color: var(--lp-blue-700);
}

.lp-hr-tab-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #e9eef4;
    color: var(--lp-blue-900);
    font-size: 11px;
    font-weight: 900;
    border-radius: 20px;
    padding: 1px 7px;
    min-width: 20px;
}

.lp-hr-tab.active .lp-hr-tab-badge {
    background: var(--lp-blue-700);
    color: #fff;
}

/* --- Mitarbeiterliste --- */
.lp-hr-list {
    background: #fff;
    border: 1px solid var(--lp-border);
    border-radius: 16px;
    overflow: hidden;
}

.lp-hr-row {
    display: flex;
    flex-direction: row;
    gap: 14px;
    align-items: center;
    padding: 14px 18px;
    border-bottom: 1px solid var(--lp-border);
    text-decoration: none;
    color: inherit;
    transition: background .12s;
}

.lp-hr-row:last-child { border-bottom: none; }

.lp-hr-row:hover { background: #f8faff; text-decoration: none; color: inherit; }

.lp-hr-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 900;
    font-size: 16px;
    flex-shrink: 0;
}

.lp-hr-row-info {
    flex-grow: 1;
    min-width: 0;
}

.lp-hr-row-name {
    font-weight: 900;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--lp-blue-900);
}

.lp-hr-row-meta {
    font-size: 13px;
    color: var(--lp-muted);
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lp-hr-row-actions {
    display: flex;
    flex-direction: row;
    gap: 8px;
    align-items: center;
    margin-left: auto;
    flex-shrink: 0;
}

.lp-hr-status {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 800;
}

.lp-hr-status--active   { background: #dcfce7; color: #16a34a; }
.lp-hr-status--inactive { background: #f1f5f9; color: var(--lp-muted); }

/* --- Wizard (Mitarbeiter anlegen) --- */
.lp-hr-wizard {
    background: #fff;
    border: 1px solid var(--lp-border);
    border-radius: 18px;
    box-shadow: 0 2px 12px rgba(15,23,42,.07);
    overflow: hidden;
}

.lp-hr-wizard-header {
    padding: 24px 28px;
    border-bottom: 1px solid var(--lp-border);
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.lp-hr-wizard-header-title {
    font-size: 17px;
    font-weight: 1000;
    color: var(--lp-blue-900);
    margin: 0;
}

.lp-hr-wizard-steps {
    display: flex;
    flex-direction: row;
    gap: 8px;
    align-items: flex-start;
}

.lp-hr-wizard-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.lp-hr-wizard-step-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 900;
    transition: background .2s, color .2s;
}

.lp-hr-wizard-step-dot.waiting { background: #e9eef4; color: var(--lp-muted); }
.lp-hr-wizard-step-dot.active  { background: var(--lp-blue-700); color: #fff; }
.lp-hr-wizard-step-dot.done    { background: #16a34a; color: #fff; }

.lp-hr-wizard-step-label {
    font-size: 11px;
    font-weight: 800;
    color: var(--lp-muted);
    white-space: nowrap;
}

.lp-hr-wizard-step-connector {
    width: 24px;
    height: 2px;
    background: var(--lp-border);
    margin-top: 13px;
}

.lp-hr-wizard-body {
    padding: 28px;
}

.lp-hr-wizard-section {
    margin-bottom: 24px;
}

.lp-hr-wizard-section:last-child {
    margin-bottom: 0;
}

.lp-hr-wizard-section-title {
    font-size: 13px;
    font-weight: 1000;
    color: var(--lp-muted);
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: 14px;
}

.lp-hr-wizard-footer {
    padding: 18px 28px;
    border-top: 1px solid var(--lp-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.lp-hr-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 640px) {
    .lp-hr-field-row { grid-template-columns: 1fr; }
    .lp-hr-wizard-header { flex-direction: column; }
    .lp-hr-wizard-steps { flex-wrap: wrap; }
}

/* =========================================================
   MITARBEITERVERWALTUNG – Figma 1:1
   ========================================================= */

/* --- Gradient Hero Header --- */
.lp-emp-hero {
    background: linear-gradient(to right, #053a7a, #3aa0ff, #FFD700);
    color: white;
    border-radius: 12px;
    padding: 28px 32px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.lp-emp-hero-left { display: flex; align-items: center; gap: 18px; }
.lp-emp-hero-icon {
    background: rgba(255,255,255,.2);
    width: 64px; height: 64px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 28px; flex-shrink: 0;
}
.lp-emp-hero-title { font-size: 26px; font-weight: 900; margin: 0; line-height: 1.2; }
.lp-emp-hero-sub { font-size: 14px; opacity: .88; margin-top: 4px; }
.lp-emp-hero-btn {
    background: white; color: #053a7a;
    border: none; padding: 10px 20px; border-radius: 10px;
    font-weight: 800; font-size: 14px;
    display: inline-flex; align-items: center; gap: 8px;
    text-decoration: none; white-space: nowrap;
    transition: background .15s;
    flex-shrink: 0;
}
.lp-emp-hero-btn:hover { background: #f0f4f8; color: #053a7a; text-decoration: none; }

/* --- 5-Column Stats Grid --- */
.lp-emp-stats {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}
@media (max-width: 1100px) { .lp-emp-stats { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px)  { .lp-emp-stats { grid-template-columns: repeat(2, 1fr); } }

.lp-emp-stat {
    background: white;
    border: 2px solid;
    border-radius: 12px;
    padding: 20px 18px;
}
.lp-emp-stat--blue   { border-color: #bfdbfe; }
.lp-emp-stat--purple { border-color: #e9d5ff; }
.lp-emp-stat--green  { border-color: #bbf7d0; }
.lp-emp-stat--yellow { border-color: #fef08a; }
.lp-emp-stat--orange { border-color: #fed7aa; }

.lp-emp-stat-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.lp-emp-stat-lbl { color: #6b7280; font-size: 13px; font-weight: 600; }
.lp-emp-stat-ico { font-size: 22px; }
.lp-emp-stat-ico--blue   { color: #0783ff; }
.lp-emp-stat-ico--purple { color: #7c3aed; }
.lp-emp-stat-ico--green  { color: #16a34a; }
.lp-emp-stat-ico--yellow { color: #d97706; }
.lp-emp-stat-ico--orange { color: #ea580c; }
.lp-emp-stat-val { font-size: 34px; font-weight: 900; color: #111827; line-height: 1; }
.lp-emp-stat-sub { font-size: 12px; color: #9ca3af; margin-top: 4px; }

/* --- Main HR Card + Tabs --- */
.lp-emp-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,.08);
    border: 2px solid #e5e7eb;
    overflow: hidden;
}
.lp-emp-tabbar { display: flex; border-bottom: 2px solid #e5e7eb; }
.lp-emp-tab {
    flex: 1; padding: 16px 12px;
    font-weight: 700; font-size: 14px;
    border: none; background: transparent; cursor: pointer;
    color: #6b7280;
    border-bottom: 4px solid transparent;
    margin-bottom: -2px;
    transition: background .12s, color .12s;
}
.lp-emp-tab:hover { background: #f9fafb; color: #374151; }
.lp-emp-tab.active { background: #eff6ff; color: #3aa0ff; border-bottom-color: #3aa0ff; }
.lp-emp-tabpanel { padding: 20px; }
.lp-emp-tabpanel.d-none { display: none !important; }

/* --- Employee Rows --- */
.lp-emp-row {
    display: flex; align-items: center; gap: 14px;
    padding: 14px 16px;
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    transition: box-shadow .15s;
    text-decoration: none; color: inherit;
    margin-bottom: 10px;
}
.lp-emp-row:last-child { margin-bottom: 0; }
.lp-emp-row:hover { box-shadow: 0 4px 16px rgba(0,0,0,.12); text-decoration: none; color: inherit; }
.lp-emp-avatar-grad {
    width: 48px; height: 48px; border-radius: 50%;
    background: linear-gradient(135deg, #3aa0ff, #FFD700);
    display: flex; align-items: center; justify-content: center;
    color: white; font-weight: 900; font-size: 18px; flex-shrink: 0;
}
.lp-emp-row-info { flex-grow: 1; min-width: 0; }
.lp-emp-row-name { font-weight: 700; color: #111827; font-size: 15px; }
.lp-emp-row-role { font-size: 12px; color: #6b7280; font-weight: 600; margin-top: 2px; }
.lp-emp-row-stats { display: flex; gap: 20px; align-items: center; flex-shrink: 0; }
.lp-emp-row-stat { text-align: right; }
.lp-emp-row-stat-lbl { font-size: 11px; color: #9ca3af; font-weight: 600; }
.lp-emp-row-stat-val { font-weight: 700; color: #111827; font-size: 14px; margin-top: 1px; }
.lp-emp-row-stat-val--blue  { color: #0783ff; }
.lp-emp-row-stat-val--green { color: #16a34a; }
.lp-emp-row-stat-val--red   { color: #dc2626; }
.lp-perf-badge {
    display: inline-flex; align-items: center;
    padding: 4px 12px; border-radius: 9999px;
    font-size: 12px; font-weight: 800;
}
.lp-perf-badge--top  { background: #dcfce7; color: #166534; }
.lp-perf-badge--good { background: #dbeafe; color: #0656b0; }
.lp-perf-badge--avg  { background: #fef9c3; color: #854d0e; }

/* --- Employee Detail Gradient Header --- */
.lp-emp-detail-hero {
    background: linear-gradient(to right, #053a7a, #3aa0ff, #FFD700);
    color: white;
    border-radius: 12px 12px 0 0;
    padding: 24px 28px;
}
.lp-emp-detail-hero-row {
    display: flex; align-items: center;
    justify-content: space-between; margin-bottom: 20px;
}
.lp-emp-detail-hero-info { display: flex; align-items: center; gap: 16px; }
.lp-emp-detail-hero-avatar {
    width: 64px; height: 64px;
    background: rgba(255,255,255,.2);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 28px; font-weight: 900; flex-shrink: 0;
}
.lp-emp-detail-hero-name { font-size: 22px; font-weight: 900; margin: 0; }
.lp-emp-detail-hero-sub  { font-size: 14px; opacity: .85; margin-top: 4px; }
.lp-emp-detail-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.lp-emp-detail-tab {
    padding: 8px 16px; border-radius: 8px;
    font-weight: 700; font-size: 13px;
    cursor: pointer; border: none;
    background: rgba(255,255,255,.2); color: white;
    transition: background .15s;
}
.lp-emp-detail-tab:hover  { background: rgba(255,255,255,.3); }
.lp-emp-detail-tab.active { background: white; color: #053a7a; }
.lp-emp-detail-body {
    background: white;
    border: 2px solid #e5e7eb;
    border-top: none;
    border-radius: 0 0 12px 12px;
    padding: 24px 28px;
}
.lp-emp-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .lp-emp-info-grid { grid-template-columns: 1fr; } }
.lp-emp-info-field {}
.lp-emp-info-lbl { font-size: 12px; color: #9ca3af; font-weight: 700; margin-bottom: 3px; }
.lp-emp-info-val { font-weight: 700; color: #111827; }
.lp-emp-mini-card {
    background: #f9fafb; border: 1px solid #e5e7eb;
    border-radius: 10px; padding: 16px;
}
.lp-emp-mini-card--purple { background: #faf5ff; border-color: #e9d5ff; }
.lp-emp-mini-card--blue   { background: #eff6ff; border-color: #bfdbfe; }
.lp-emp-mini-card-lbl { font-size: 13px; color: #6b7280; font-weight: 600; margin-bottom: 6px; }
.lp-emp-mini-card-val { font-size: 28px; font-weight: 900; color: #111827; }
