/*
 * SPS Employer Portal — employer-portal.css
 * Same design system as portal.css (candidate portal)
 * Brand: #002970 primary, #0052D4 secondary, #00BAF2 accent
 * Font: Poppins
 */

/* ══════════════════════════════════════════════════════════
   CSS VARIABLES
══════════════════════════════════════════════════════════ */
:root {
    --emp-primary:      #002970;
    --emp-secondary:    #0052D4;
    --emp-accent:       #00BAF2;
    --emp-orange:       #FF6C37;
    --emp-success:      #16a34a;
    --emp-error:        #dc2626;
    --emp-warning:      #d97706;
    --emp-info:         #1d4ed8;
    --emp-bg:           #f0f4f8;
    --emp-surface:      #ffffff;
    --emp-border:       #e8eef5;
    --emp-text:         #1a202c;
    --emp-text-sub:     #475569;
    --emp-muted:        #94a3b8;
    --emp-font:         'Poppins', sans-serif;
    --emp-radius:       12px;
    --emp-radius-sm:    8px;
    --emp-shadow:       0 2px 8px rgba(0,41,112,0.08);
    --emp-shadow-md:    0 4px 16px rgba(0,41,112,0.12);
    --emp-shadow-lg:    0 8px 32px rgba(0,41,112,0.16);
    --emp-transition:   0.18s ease;
    --emp-navbar-h:     68px;
    --emp-sidebar-w:    240px;
    --emp-sidebar-w-collapsed: 64px;
    --emp-tab-h:        64px;
    --emp-grad:         linear-gradient(135deg, #002970 0%, #0052D4 60%, #00BAF2 100%);
}

/* ══════════════════════════════════════════════════════════
   RESET & BASE
══════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    font-family: var(--emp-font);
    background: var(--emp-bg);
    color: var(--emp-text);
    font-size: 14px;
    line-height: 1.6;
    min-height: 100vh;
    min-height: 100dvh;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font-family: var(--emp-font); cursor: pointer; }
img { max-width: 100%; display: block; }
input, select, textarea { font-family: var(--emp-font); }

/* ══════════════════════════════════════════════════════════
   NAVBAR
══════════════════════════════════════════════════════════ */
.emp-navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--emp-navbar-h);
    background: var(--emp-surface);
    border-bottom: 1px solid var(--emp-border);
    z-index: 1000;
    box-shadow: 0 1px 8px rgba(0,41,112,0.06);
}
.emp-navbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 24px;
    gap: 12px;
}
.emp-navbar__logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.emp-navbar__logo-img { height: 52px; max-height: 52px; width: auto; object-fit: contain; }
.emp-navbar__logo-text { font-size: 18px; font-weight: 800; color: var(--emp-primary); }
.emp-navbar__right { display: flex; align-items: center; gap: 8px; }
.emp-navbar__icon-btn {
    width: 38px; height: 38px;
    border-radius: 50%;
    border: none;
    background: var(--emp-bg);
    color: var(--emp-text-sub);
    display: flex; align-items: center; justify-content: center;
    position: relative;
    transition: background var(--emp-transition), color var(--emp-transition);
    cursor: pointer;
}
.emp-navbar__icon-btn:hover { background: var(--emp-border); color: var(--emp-primary); }
.emp-navbar__bell-dot {
    position: absolute; top: 6px; right: 6px;
    width: 8px; height: 8px;
    background: var(--emp-error);
    border-radius: 50%;
    border: 2px solid var(--emp-surface);
}
.emp-navbar__user { position: relative; overflow: visible; }
.emp-navbar__avatar-btn {
    display: flex; align-items: center; gap: 6px;
    background: none; border: none; cursor: pointer;
    padding: 4px;
    border-radius: 30px;
    transition: background var(--emp-transition);
}
.emp-navbar__avatar-btn:hover { background: var(--emp-bg); }
.emp-navbar__avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--emp-grad);
    overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    border: 2px solid var(--emp-border);
    flex-shrink: 0;
}
.emp-navbar__avatar-img { width: 100%; height: 100%; object-fit: cover; }
.emp-navbar__avatar-init { color: #fff; font-weight: 700; font-size: 14px; }
.emp-navbar__chevron { color: var(--emp-muted); transition: transform var(--emp-transition); flex-shrink: 0; }
.emp-navbar__avatar-btn[aria-expanded="true"] .emp-navbar__chevron { transform: rotate(180deg); }

/* Profile dropdown */
.emp-navbar__dropdown {
    position: fixed;
    top: calc(var(--emp-navbar-h) + 6px);
    right: 10px;
    left: auto;
    width: 230px;
    background: var(--emp-surface);
    border: 1px solid var(--emp-border);
    border-radius: 14px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.18);
    opacity: 0; pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.18s ease, transform 0.18s ease;
    z-index: 99999;
    overflow: hidden;
}
.emp-navbar__dropdown--open { opacity: 1; pointer-events: all; transform: translateY(0); }
.emp-navbar__dropdown-header { padding: 14px 16px 12px; border-bottom: 1px solid var(--emp-border); }
.emp-navbar__dropdown-name { font-size: 13px; font-weight: 700; color: var(--emp-text); }
.emp-navbar__dropdown-sub  { font-size: 11px; color: var(--emp-muted); margin-top: 2px; }
.emp-navbar__dropdown-item {
    display: flex; align-items: center; gap: 10px;
    padding: 11px 16px;
    font-size: 13px; font-weight: 500;
    color: var(--emp-text-sub);
    background: none; border: none; width: 100%;
    text-align: left;
    transition: background var(--emp-transition), color var(--emp-transition);
    cursor: pointer;
}
.emp-navbar__dropdown-item:hover { background: var(--emp-bg); color: var(--emp-primary); }
.emp-navbar__dropdown-item--danger { color: var(--emp-error); }
.emp-navbar__dropdown-item--danger:hover { background: #fef2f2; color: var(--emp-error); }

/* Hamburger */
.emp-navbar__hamburger {
    display: none;
    flex-direction: column; gap: 5px;
    width: 38px; height: 38px;
    align-items: center; justify-content: center;
    background: none; border: none; cursor: pointer;
    border-radius: 8px;
    transition: background var(--emp-transition);
}
.emp-navbar__hamburger:hover { background: var(--emp-bg); }
.emp-navbar__hamburger span {
    display: block; width: 20px; height: 2px;
    background: var(--emp-primary); border-radius: 2px;
    transition: all 0.2s;
}

/* ══════════════════════════════════════════════════════════
   BELL DROPDOWN — exact same as candidate portal
══════════════════════════════════════════════════════════ */
.emp-bell-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: -8px;
    width: 340px;
    background: var(--emp-surface);
    border: 1px solid var(--emp-border);
    border-radius: var(--emp-radius);
    box-shadow: var(--emp-shadow-lg);
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity 0.2s, transform 0.2s;
    overflow: hidden;
}
.emp-bell-dropdown--open {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}
.emp-bell-dropdown__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px 12px;
    border-bottom: 1px solid var(--emp-border);
    background: var(--emp-surface);
    position: sticky;
    top: 0;
    z-index: 1;
    flex-shrink: 0;
}
.emp-bell-dropdown__title {
    font-size: 13px;
    font-weight: 700;
    color: var(--emp-text);
    font-family: var(--emp-font);
}
.emp-bell-dropdown__mark-all {
    font-size: 11px;
    font-weight: 600;
    color: var(--emp-primary);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    font-family: var(--emp-font);
}
.emp-bell-dropdown__mark-all:hover { text-decoration: underline; }
.emp-bell-dropdown__clear-all { color: #dc2626; }
.emp-bell-dropdown__list { max-height: 320px; overflow-y: auto; flex: 1; }
.emp-bell-notif-item {
    display: flex;
    align-items: stretch;
    border-bottom: 1px solid var(--emp-border);
    transition: background var(--emp-transition);
}
.emp-bell-notif-item:last-child { border-bottom: none; }
.emp-bell-notif-item:hover { background: rgba(0,41,112,0.03); }
.emp-bell-notif-item--unread { background: rgba(0,41,112,0.05); }
.emp-bell-notif-item__link {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 8px 12px 16px;
    flex: 1;
    min-width: 0;
    cursor: pointer;
    text-decoration: none;
}
.emp-bell-notif-item__icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #eff6ff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--emp-primary);
}
.emp-bell-notif-item__body { flex: 1; min-width: 0; }
.emp-bell-notif-item__title {
    font-size: 12px;
    font-weight: 700;
    color: var(--emp-text);
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: var(--emp-font);
}
.emp-bell-notif-item:not(.emp-bell-notif-item--unread) .emp-bell-notif-item__title {
    font-weight: 500;
    color: var(--emp-text-sub);
}
.emp-bell-notif-item__msg {
    font-size: 11px;
    color: var(--emp-text-sub);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-family: var(--emp-font);
}
.emp-bell-notif-item:not(.emp-bell-notif-item--unread) .emp-bell-notif-item__msg { color: var(--emp-muted); }
.emp-bell-notif-item__time {
    font-size: 10px;
    color: var(--emp-muted);
    margin-top: 3px;
    font-family: var(--emp-font);
}
.emp-bell-notif-item__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--emp-primary);
    flex-shrink: 0;
    margin-top: 4px;
}
.emp-bell-notif-item__actions {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    padding: 8px 10px;
    flex-shrink: 0;
}
.emp-bell-notif-action {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    border: 1px solid var(--emp-border);
    background: var(--emp-bg);
    color: var(--emp-text-sub);
    font-size: 11px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--emp-transition), color var(--emp-transition);
}
.emp-bell-notif-action:hover { background: var(--emp-primary); color: #fff; border-color: var(--emp-primary); }
.emp-bell-notif-action--delete:hover { background: #dc2626; color: #fff; border-color: #dc2626; }
.emp-bell-dropdown__footer {
    padding: 10px 16px;
    border-top: 1px solid var(--emp-border);
    text-align: center;
    flex-shrink: 0;
}
.emp-bell-dropdown__footer a {
    font-size: 12px;
    font-weight: 600;
    color: var(--emp-primary);
    text-decoration: none;
    font-family: var(--emp-font);
}
.emp-bell-dropdown__footer a:hover { text-decoration: underline; }
.emp-bell-dropdown__empty {
    padding: 28px 16px;
    text-align: center;
    font-size: 13px;
    color: var(--emp-muted);
    font-family: var(--emp-font);
}
/* Tablet: wider dropdown */
@media (max-width: 1024px) {
    .emp-bell-dropdown { width: 300px; right: -4px; }
    .emp-cp-edu-grid { grid-template-columns: 1fr !important; }
    /* Pipeline stage-action buttons (Shortlist/Reject/Select/etc.):
       text sits left instead of centered once flex:1 stretches them wide */
    .emp-btn[style*="flex:1"], .emp-btn--sm[style*="flex:1"] { justify-content: center; }
}
/* Mobile: full width dropdown */
@media (max-width: 640px) {
    .emp-bell-dropdown {
        position: fixed;
        top: calc(var(--emp-navbar-h) + 4px);
        left: 8px;
        right: 8px;
        width: auto;
        max-height: 75vh;
        border-radius: 14px;
        display: flex;
        flex-direction: column;
    }
}

/* ══════════════════════════════════════════════════════════
   DRAWER (MOBILE)
══════════════════════════════════════════════════════════ */
.emp-drawer-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 1100;
    opacity: 0; pointer-events: none;
    transition: opacity 0.25s ease;
}
.emp-drawer-overlay--visible { opacity: 1; pointer-events: all; }
.emp-drawer {
    position: fixed; top: 0; right: 0; bottom: 0;
    width: 280px; max-width: 85vw;
    background: var(--emp-surface);
    z-index: 1200;
    transform: translateX(100%);
    transition: transform 0.28s cubic-bezier(0.4,0,0.2,1);
    display: flex; flex-direction: column;
    overflow: hidden;
    box-shadow: -4px 0 24px rgba(0,0,0,0.15);
}
.emp-drawer--open { transform: translateX(0); }
.emp-drawer__header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 16px;
    border-bottom: 1px solid var(--emp-border);
    background: var(--emp-grad);
    flex-shrink: 0;
    padding-top: calc(18px + env(safe-area-inset-top));
}
.emp-drawer__user { display: flex; align-items: center; gap: 10px; }
.emp-drawer__avatar {
    width: 40px; height: 40px; border-radius: 50%;
    background: rgba(255,255,255,0.25);
    display: flex; align-items: center; justify-content: center;
    overflow: hidden; flex-shrink: 0;
    border: 2px solid rgba(255,255,255,0.4);
}
.emp-drawer__avatar-img { width: 100%; height: 100%; object-fit: cover; }
.emp-drawer__user-name { font-size: 13px; font-weight: 700; color: #fff; }
.emp-drawer__user-id   { font-size: 11px; color: rgba(255,255,255,0.75); margin-top: 1px; }
.emp-drawer__brand     { font-size: 16px; font-weight: 800; color: #fff; }
.emp-drawer__close {
    width: 34px; height: 34px; border-radius: 50%;
    background: rgba(255,255,255,0.15); border: none; cursor: pointer;
    color: #fff; display: flex; align-items: center; justify-content: center;
    transition: background var(--emp-transition); flex-shrink: 0;
}
.emp-drawer__close:hover { background: rgba(255,255,255,0.25); }
.emp-drawer__nav { flex: 1; overflow-y: auto; padding: 8px 0; }
.emp-drawer__item {
    display: flex; align-items: center; gap: 12px;
    padding: 13px 20px;
    font-size: 14px; font-weight: 500;
    color: var(--emp-text-sub);
    text-decoration: none; width: 100%;
    background: none; border: none; text-align: left;
    cursor: pointer;
    transition: background var(--emp-transition), color var(--emp-transition);
    font-family: var(--emp-font);
}
.emp-drawer__item:hover { background: var(--emp-bg); color: var(--emp-primary); }
.emp-drawer__item--active { color: var(--emp-primary); font-weight: 700; background: rgba(0,41,112,0.05); }
.emp-drawer__item--logout { color: var(--emp-error); }
.emp-drawer__item--logout:hover { background: #fef2f2; }

/* ══════════════════════════════════════════════════════════
   SIDEBAR (DESKTOP)
══════════════════════════════════════════════════════════ */
.emp-sidebar {
    position: fixed;
    top: var(--emp-navbar-h);
    left: 0; bottom: 0;
    width: var(--emp-sidebar-w);
    background: var(--emp-surface);
    border-right: 1px solid var(--emp-border);
    display: flex; flex-direction: column;
    overflow: hidden;
    transition: width 0.25s cubic-bezier(0.4,0,0.2,1);
    z-index: 900;
}
.emp-sidebar--collapsed { width: var(--emp-sidebar-w-collapsed); }
.emp-sidebar__nav { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 8px 0; }
.emp-sidebar__item {
    display: flex; align-items: center; gap: 12px;
    padding: 11px 18px;
    font-size: 13px; font-weight: 500;
    color: var(--emp-text-sub);
    text-decoration: none; white-space: nowrap;
    transition: background var(--emp-transition), color var(--emp-transition);
    border-left: 3px solid transparent;
    overflow: hidden;
    background: none; border: none;
    width: 100%; text-align: left; cursor: pointer;
    font-family: var(--emp-font);
}
.emp-sidebar__item:hover { background: var(--emp-bg); color: var(--emp-primary); }
.emp-sidebar__item--active {
    color: var(--emp-primary); font-weight: 700;
    background: rgba(0,41,112,0.06);
    border-left-color: var(--emp-primary);
}
.emp-sidebar__item--logout { color: var(--emp-error); }
.emp-sidebar__item--logout:hover { background: #fef2f2; }
.emp-sidebar__item-icon { flex-shrink: 0; display: flex; align-items: center; }
.emp-sidebar__item-label { overflow: hidden; text-overflow: ellipsis; }
.emp-sidebar--collapsed .emp-sidebar__item-label { display: none; }
.emp-sidebar--collapsed .emp-sidebar__item { justify-content: center; padding: 11px 0; }

/* Sidebar toggle */
.emp-sidebar__toggle {
    display: flex; align-items: center; gap: 8px;
    padding: 12px 18px; border-top: 1px solid var(--emp-border);
    background: none; border-left: none; border-right: none; border-bottom: none;
    cursor: pointer; color: var(--emp-muted); font-size: 12px;
    font-family: var(--emp-font); font-weight: 500; width: 100%;
    transition: color var(--emp-transition);
    flex-shrink: 0;
}
.emp-sidebar__toggle:hover { color: var(--emp-primary); }
.emp-sidebar__toggle-icon { transition: transform 0.25s; }
.emp-sidebar--collapsed .emp-sidebar__toggle-icon { transform: rotate(180deg); }
.emp-sidebar--collapsed .emp-sidebar__toggle-label { display: none; }
.emp-sidebar--collapsed .emp-sidebar__toggle { justify-content: center; }

/* ══════════════════════════════════════════════════════════
   MAIN PORTAL LAYOUT
══════════════════════════════════════════════════════════ */
.emp-portal-wrap {
    display: flex;
    padding-top: var(--emp-navbar-h);
    min-height: 100vh;
    min-height: 100dvh;
}
.emp-portal-main {
    flex: 1;
    margin-left: var(--emp-sidebar-w);
    padding: 28px 28px 40px;
    min-width: 0;
    transition: margin-left 0.25s cubic-bezier(0.4,0,0.2,1);
}
.emp-sidebar--collapsed ~ .emp-portal-main { margin-left: var(--emp-sidebar-w-collapsed); }
.emp-portal-footer {
    text-align: center; padding: 16px;
    font-size: 12px; color: var(--emp-muted);
    border-top: 1px solid var(--emp-border);
    background: var(--emp-surface);
}

/* ══════════════════════════════════════════════════════════
   BOTTOM TABS (MOBILE)
══════════════════════════════════════════════════════════ */
.emp-bottom-tabs {
    display: none;
    position: fixed; bottom: 0; left: 0; right: 0;
    height: var(--emp-tab-h);
    padding-bottom: env(safe-area-inset-bottom);
    background: var(--emp-surface);
    border-top: 1px solid var(--emp-border);
    z-index: 980;
    align-items: stretch;
    justify-content: space-around;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.emp-tab-item {
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 3px; flex: 1;
    text-decoration: none;
    color: var(--emp-muted);
    font-size: 10px; font-weight: 600;
    position: relative;
    transition: color var(--emp-transition);
    padding: 4px 0 2px;
    -webkit-tap-highlight-color: transparent;
}
@media (hover: hover) and (pointer: fine) {
    .emp-tab-item:active { transform: scale(0.95); }
}
@media (hover: none), (pointer: coarse) {
    .emp-tab-item:active { transform: none; }
}
.emp-tab-item__indicator {
    position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    width: 0; height: 3px;
    background: var(--emp-primary);
    border-radius: 0 0 3px 3px;
    transition: width 0.2s ease;
}
.emp-tab-item--active { color: var(--emp-primary); }
.emp-tab-item--active .emp-tab-item__indicator { width: 24px; }
.emp-tab-item__icon { display: flex; align-items: center; justify-content: center; }
.emp-tab-item__label { line-height: 1; }

/* ══════════════════════════════════════════════════════════
   CARDS & SHARED COMPONENTS
══════════════════════════════════════════════════════════ */
.emp-card {
    background: var(--emp-surface);
    border-radius: var(--emp-radius);
    border: 1px solid var(--emp-border);
    box-shadow: var(--emp-shadow);
    overflow: hidden;
}
.emp-card--hoverable { transition: transform var(--emp-transition), box-shadow var(--emp-transition); }
.emp-card--hoverable:hover { transform: translateY(-3px); box-shadow: var(--emp-shadow-lg); }

/* Page header */
.emp-page-header {
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 12px; margin-bottom: 24px;
}
.emp-page-title { font-size: 22px; font-weight: 800; color: var(--emp-text); }
.emp-page-sub { font-size: 13px; color: var(--emp-muted); margin-top: 2px; }

/* Buttons */
.emp-btn {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 10px 20px; border-radius: 10px;
    font-size: 13px; font-weight: 700;
    font-family: var(--emp-font);
    border: none; cursor: pointer;
    transition: all var(--emp-transition);
    white-space: nowrap; text-decoration: none;
}
.emp-btn--primary {
    background: var(--emp-grad); color: #fff;
    box-shadow: 0 2px 8px rgba(0,41,112,0.20);
}
.emp-btn--primary:hover { opacity: 0.92; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(0,41,112,0.28); }
.emp-btn--secondary {
    background: var(--emp-bg); color: var(--emp-primary);
    border: 1.5px solid var(--emp-border);
}
.emp-btn--secondary:hover { background: var(--emp-border); }
.emp-btn--success { background: var(--emp-success); color: #fff; }
.emp-btn--danger  { background: var(--emp-error);   color: #fff; }
.emp-btn--sm { padding: 7px 14px; font-size: 12px; border-radius: 8px; }
.emp-btn--lg { padding: 13px 28px; font-size: 14px; border-radius: 12px; }

/* Stat cards */
.emp-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}
.emp-stat-card {
    background: var(--emp-surface);
    border-radius: var(--emp-radius);
    border: 1px solid var(--emp-border);
    padding: 20px;
    display: flex; flex-direction: column; gap: 8px;
    position: relative; overflow: hidden;
    transition: transform var(--emp-transition), box-shadow var(--emp-transition);
    cursor: pointer; text-decoration: none; color: inherit;
    -webkit-tap-highlight-color: transparent;
}
.emp-stat-card:hover { transform: translateY(-3px); box-shadow: var(--emp-shadow-md); }
.emp-stat-card__icon-wrap {
    width: 44px; height: 44px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    background: var(--emp-bg); flex-shrink: 0;
}
.emp-stat-card__num { font-size: 28px; font-weight: 800; color: var(--emp-text); line-height: 1.1; }
.emp-stat-card__label { font-size: 12px; color: var(--emp-muted); font-weight: 600; }
.emp-stat-card__accent { height: 3px; position: absolute; bottom: 0; left: 0; right: 0; }
.emp-stat-card--jobs    .emp-stat-card__accent { background: var(--emp-primary); }
.emp-stat-card--cands   .emp-stat-card__accent { background: var(--emp-accent); }
.emp-stat-card--short   .emp-stat-card__accent { background: var(--emp-orange); }
.emp-stat-card--interv  .emp-stat-card__accent { background: var(--emp-warning); }
.emp-stat-card--hired   .emp-stat-card__accent { background: var(--emp-success); }
.emp-stat-card--views   .emp-stat-card__accent { background: var(--emp-info); }
.emp-stat-card--jobs    .emp-stat-card__icon-wrap { background: rgba(0,41,112,0.08); color: var(--emp-primary); }
.emp-stat-card--cands   .emp-stat-card__icon-wrap { background: rgba(0,186,242,0.10); color: var(--emp-accent); }
.emp-stat-card--short   .emp-stat-card__icon-wrap { background: rgba(255,108,55,0.10); color: var(--emp-orange); }
.emp-stat-card--interv  .emp-stat-card__icon-wrap { background: rgba(217,119,6,0.10); color: var(--emp-warning); }
.emp-stat-card--hired   .emp-stat-card__icon-wrap { background: rgba(22,163,74,0.10); color: var(--emp-success); }
.emp-stat-card--views   .emp-stat-card__icon-wrap { background: rgba(29,78,216,0.10); color: var(--emp-info); }

/* Welcome card */
.emp-welcome-card {
    background: linear-gradient(135deg, #e8f0fe 0%, #f0f7ff 100%);
    border: 1px solid #c7d9fb;
    border-radius: var(--emp-radius);
    padding: 24px 28px;
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px; margin-bottom: 24px;
}
.emp-welcome-card__left h2 { font-size: 22px; font-weight: 800; color: var(--emp-primary); margin-bottom: 4px; }
.emp-welcome-card__left p  { font-size: 13px; color: var(--emp-text-sub); }

/* Company logo in welcome card */
.emp-welcome-logo {
    width: 72px; height: 72px; border-radius: 14px;
    object-fit: contain; border: 2px solid var(--emp-border);
    background: #fff; padding: 4px; flex-shrink: 0;
}
.emp-welcome-logo-placeholder {
    width: 72px; height: 72px; border-radius: 14px;
    background: var(--emp-grad);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 24px; font-weight: 800;
    flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════════
   CANDIDATE CARDS (candidates.php)
══════════════════════════════════════════════════════════ */
.emp-cand-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.emp-cand-card {
    background: var(--emp-surface);
    border: 1.5px solid var(--emp-border);
    border-radius: var(--emp-radius);
    overflow: hidden;
    transition: transform var(--emp-transition), box-shadow var(--emp-transition), border-color var(--emp-transition);
    cursor: pointer;
}
.emp-cand-card:hover { transform: translateY(-4px); box-shadow: var(--emp-shadow-lg); border-color: var(--emp-accent); }
.emp-cand-card.locked { border-color: var(--emp-border); }
.emp-cand-card__top-bar { height: 3px; background: var(--emp-grad); }
.emp-cand-card__top-bar.locked { background: var(--emp-border); }

/* Photo */
.emp-cand-card__photo-wrap {
    padding: 14px 14px 0;
    display: flex; align-items: flex-start; gap: 10px;
}
.emp-cand-card__photo {
    width: 48px; height: 48px; min-width: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--emp-border);
    flex-shrink: 0;
    background: var(--emp-bg);
}
.emp-cand-card__info { flex: 1; min-width: 0; }
.emp-cand-card__name {
    font-size: 14px; font-weight: 700; color: var(--emp-text);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.emp-cand-card__id { font-size: 10px; color: var(--emp-muted); font-weight: 600; margin-top: 1px; }

/* Badges */
.emp-cand-card__badges { display: flex; flex-wrap: wrap; gap: 4px; margin: 8px 14px 0; }
.emp-badge {
    display: inline-flex; align-items: center; gap: 3px;
    padding: 3px 8px; border-radius: 20px;
    font-size: 10px; font-weight: 700;
    font-family: var(--emp-font); white-space: nowrap;
    max-width: 120px; overflow: hidden; text-overflow: ellipsis;
}
.emp-badge--green   { background: #f0fdf4; color: var(--emp-success); border: 1px solid #bbf7d0; }
.emp-badge--orange  { background: #fff7ed; color: var(--emp-orange);  border: 1px solid #fed7aa; }
.emp-badge--blue    { background: #eff6ff; color: var(--emp-info);    border: 1px solid #bfdbfe; }

/* Card body */
.emp-cand-card__body { padding: 10px 14px 12px; display: flex; flex-direction: column; gap: 5px; }
.emp-cand-card__row {
    display: flex; gap: 6px; align-items: flex-start;
    overflow: hidden;
}
.emp-cand-card__row-label {
    font-size: 10px; color: var(--emp-muted);
    font-weight: 600; min-width: 72px; flex-shrink: 0; padding-top: 1px;
    white-space: nowrap;
}
.emp-cand-card__row-val {
    font-size: 12px; color: var(--emp-text-sub); font-weight: 600;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1;
}

/* Skills */
.emp-cand-card__skills { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 4px; }
.emp-skill-tag {
    background: var(--emp-bg); color: var(--emp-text-sub);
    padding: 2px 7px; border-radius: 8px;
    font-size: 10px; font-weight: 600; white-space: nowrap;
}

/* Contact row */
.emp-cand-card__contact {
    margin-top: 6px; padding: 7px 10px;
    background: #f0f9ff; border-radius: 8px;
}
.emp-cand-card__contact-line { font-size: 11px; color: var(--emp-secondary); font-weight: 600; }
.emp-cand-card__contact-line + .emp-cand-card__contact-line { margin-top: 2px; }

/* Footer actions */
.emp-cand-card__footer {
    padding: 8px 14px;
    border-top: 1px solid var(--emp-bg);
    display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
.emp-locked-badge {
    display: flex; align-items: center; gap: 6px;
    font-size: 11px; color: var(--emp-muted); font-weight: 600;
    padding: 8px 14px; border-top: 1px solid var(--emp-bg);
}
.emp-unlock-btn {
    margin-left: auto;
    padding: 4px 10px; background: var(--emp-primary); color: #fff;
    border: none; border-radius: 6px; font-size: 10px; font-weight: 700;
    font-family: var(--emp-font); cursor: pointer;
    transition: opacity var(--emp-transition);
}
.emp-unlock-btn:hover { opacity: 0.88; }

/* ══════════════════════════════════════════════════════════
   JOB CARDS (my-jobs.php)
══════════════════════════════════════════════════════════ */
.emp-jobs-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.emp-job-card {
    background: var(--emp-surface);
    border: 1.5px solid var(--emp-border);
    border-radius: var(--emp-radius);
    padding: 18px;
    cursor: pointer; text-decoration: none; color: inherit; display: block;
    transition: transform var(--emp-transition), box-shadow var(--emp-transition), border-color var(--emp-transition);
}
.emp-job-card:hover { transform: translateY(-3px); box-shadow: var(--emp-shadow-lg); border-color: var(--emp-accent); }
.emp-job-card__title { font-size: 15px; font-weight: 700; color: var(--emp-primary); margin-bottom: 6px; }
.emp-job-card__meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.emp-job-card__meta-item { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--emp-text-sub); }
.emp-job-status-badge {
    display: inline-flex; align-items: center;
    padding: 3px 10px; border-radius: 20px;
    font-size: 10px; font-weight: 700;
}
.emp-job-status-badge--active   { background: #f0fdf4; color: var(--emp-success); }
.emp-job-status-badge--review   { background: #fefce8; color: var(--emp-warning); }
.emp-job-status-badge--closed   { background: #f1f5f9; color: var(--emp-muted); }
.emp-job-card__footer { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--emp-bg); }
.emp-job-card__count { font-size: 12px; font-weight: 700; color: var(--emp-secondary); }

/* ══════════════════════════════════════════════════════════
   PIPELINE KANBAN (pipeline.php)
══════════════════════════════════════════════════════════ */
.emp-pipeline-board { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 12px; }
.emp-kb-col {
    min-width: 220px; max-width: 260px; flex: 0 0 220px;
    background: var(--emp-bg);
    border-radius: var(--emp-radius);
    display: flex; flex-direction: column;
    max-height: calc(100vh - 220px);
}
.emp-kb-col__head {
    padding: 12px 14px;
    border-radius: var(--emp-radius) var(--emp-radius) 0 0;
    display: flex; align-items: center; justify-content: space-between;
    font-size: 12px; font-weight: 800; flex-shrink: 0;
}
.emp-kb-col__body { flex: 1; overflow-y: auto; padding: 8px; display: flex; flex-direction: column; gap: 8px; }
.emp-kb-card {
    background: var(--emp-surface);
    border: 1.5px solid var(--emp-border);
    border-radius: 10px; padding: 12px;
    cursor: grab; transition: box-shadow var(--emp-transition);
}
.emp-kb-card:hover { box-shadow: var(--emp-shadow-md); }
.emp-kb-card__name { font-size: 13px; font-weight: 700; color: var(--emp-text); margin-bottom: 3px; }
.emp-kb-card__job  { font-size: 11px; color: var(--emp-muted); }
.emp-kb-card__date { font-size: 10px; color: var(--emp-muted); margin-top: 6px; }
.emp-kb-col.drag-over { background: rgba(0,186,242,0.08); border: 2px dashed var(--emp-accent); }

/* ══════════════════════════════════════════════════════════
   FORM ELEMENTS
══════════════════════════════════════════════════════════ */
.emp-form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.emp-label { font-size: 12px; font-weight: 700; color: var(--emp-text); }
.emp-label--req::after { content: ' *'; color: var(--emp-error); }
.emp-input, .emp-select, .emp-textarea {
    width: 100%; padding: 11px 14px;
    border: 1.5px solid var(--emp-border);
    border-radius: var(--emp-radius-sm);
    font-size: 13px; font-family: var(--emp-font);
    color: var(--emp-text); background: var(--emp-surface);
    transition: border-color var(--emp-transition), box-shadow var(--emp-transition);
    outline: none;
}
.emp-input:focus, .emp-select:focus, .emp-textarea:focus {
    border-color: var(--emp-secondary);
    box-shadow: 0 0 0 3px rgba(0,82,212,0.10);
}
.emp-textarea { resize: vertical; min-height: 100px; }
.emp-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.emp-form-section {
    margin-bottom: 28px;
    background: var(--emp-surface);
    border: 1px solid var(--emp-border);
    border-radius: var(--emp-radius);
    overflow: hidden;
}
.emp-form-section__head {
    padding: 14px 20px;
    background: var(--emp-bg);
    border-bottom: 1px solid var(--emp-border);
    font-size: 14px; font-weight: 700; color: var(--emp-primary);
    display: flex; align-items: center; gap: 8px;
}
.emp-form-section__body { padding: 20px; }

/* ══════════════════════════════════════════════════════════
   LOGIN PAGE
══════════════════════════════════════════════════════════ */
.emp-login-page {
    min-height: 100vh;
    display: flex; flex-direction: row;
    background: #fff;
}
.emp-login-left {
    width: 45%; min-width: 220px;
    position: relative; overflow: hidden;
    flex-shrink: 0;
    background: var(--emp-grad);
    display: flex; flex-direction: column;
    justify-content: center; align-items: stretch;
}
.emp-login-left__overlay {
    position: absolute; inset: 0;
    background: radial-gradient(circle at 70% 30%, rgba(255,255,255,0.06) 0%, transparent 60%);
    pointer-events: none;
}
.emp-login-left__content {
    position: relative; z-index: 1;
    padding: 40px 36px; color: #fff;
    display: flex; flex-direction: column;
    align-items: flex-start; justify-content: center; gap: 0;
}
.emp-login-left__logo { height: 52px; width: auto; max-width: 200px; object-fit: contain; margin-bottom: 28px; }
.emp-login-left__tagline { font-size: 24px; font-weight: 800; line-height: 1.3; margin-bottom: 24px; color: #fff; }
.emp-login-left__features { display: flex; flex-direction: column; gap: 16px; width: 100%; }
.emp-login-left__feature {
    display: flex; align-items: center; gap: 12px;
    font-size: 14px; font-weight: 600; color: rgba(255,255,255,0.92);
    white-space: nowrap;
}
.emp-login-left__feature-icon {
    width: 38px; height: 38px; border-radius: 10px;
    background: rgba(255,255,255,0.15);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.emp-login-right {
    flex: 1; display: flex; align-items: center; justify-content: center;
    padding: 40px 32px; overflow-y: auto; background: #fff;
}
.emp-login-form-card { width: 100%; max-width: 440px; }
.emp-login-form-card__title { font-size: 26px; font-weight: 800; color: var(--emp-text); margin-bottom: 4px; }
.emp-login-form-card__sub { font-size: 13px; color: var(--emp-muted); margin-bottom: 28px; }

/* Login method pills */
.emp-login-pills { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.emp-login-pill {
    padding: 7px 16px; border-radius: 20px;
    border: 1.5px solid var(--emp-border);
    font-size: 12px; font-weight: 600;
    cursor: pointer; background: none; color: var(--emp-text-sub);
    font-family: var(--emp-font);
    transition: all var(--emp-transition);
}
.emp-login-pill.active {
    background: var(--emp-primary); color: #fff; border-color: var(--emp-primary);
}

/* Auth toggle tabs */
.emp-auth-tabs { display: flex; border-bottom: 2px solid var(--emp-border); margin-bottom: 22px; }
.emp-auth-tab {
    flex: 1; padding: 10px 16px; text-align: center;
    font-size: 13px; font-weight: 700;
    background: none; border: none; cursor: pointer;
    color: var(--emp-muted); border-bottom: 2px solid transparent;
    margin-bottom: -2px; font-family: var(--emp-font);
    transition: all var(--emp-transition);
}
.emp-auth-tab.active { color: var(--emp-primary); border-bottom-color: var(--emp-primary); }

/* OTP boxes */
.emp-otp-group { display: flex; gap: 10px; justify-content: center; margin: 18px 0; }
.emp-otp-box {
    width: 46px; height: 52px; border-radius: 10px;
    border: 2px solid var(--emp-border);
    text-align: center; font-size: 22px; font-weight: 800;
    color: var(--emp-primary); background: var(--emp-bg);
    font-family: var(--emp-font); outline: none;
    transition: border-color var(--emp-transition);
}
.emp-otp-box:focus { border-color: var(--emp-secondary); background: #fff; }

/* Mobile hero */
.emp-login-mobile-hero {
    display: none; width: 100%;
    min-height: calc(var(--emp-navbar-h) + 200px);
    background: var(--emp-grad);
    position: relative; overflow: hidden; flex-shrink: 0;
}
.emp-login-mobile-hero__overlay {
    position: absolute; inset: 0;
    background: linear-gradient(160deg, rgba(0,20,70,0.45) 0%, rgba(0,50,160,0.15) 100%);
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 14px;
    padding: calc(var(--emp-navbar-h) + 16px) 24px 28px;
}
.emp-login-mobile-hero img {
    height: 52px; width: auto; max-width: 200px;
    object-fit: contain; display: block; flex-shrink: 0;
    mix-blend-mode: screen;
}
.emp-login-mobile-tagline {
    color: rgba(255,255,255,0.95); font-size: 14px; font-weight: 700;
    text-align: center; white-space: nowrap;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
    font-family: var(--emp-font);
}

/* ══════════════════════════════════════════════════════════
   UTILITY
══════════════════════════════════════════════════════════ */
.emp-wa-float {
    position: fixed; bottom: calc(24px + env(safe-area-inset-bottom));
    right: 24px; width: 52px; height: 52px;
    background: #25d366; color: #fff;
    border-radius: 50%; z-index: 950;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 16px rgba(37,211,102,0.40);
    transition: transform var(--emp-transition);
}
.emp-wa-float:hover { transform: scale(1.08); }
.emp-divider { height: 1px; background: var(--emp-border); margin: 20px 0; }
.emp-empty-state { padding: 48px 24px; text-align: center; color: var(--emp-muted); }
.emp-empty-state__icon { font-size: 48px; margin-bottom: 14px; }
.emp-empty-state__title { font-size: 15px; font-weight: 700; color: var(--emp-text-sub); margin-bottom: 6px; }
.emp-empty-state__sub { font-size: 13px; }

/* ══════════════════════════════════════════════════════════
   NOTIFICATIONS PAGE
══════════════════════════════════════════════════════════ */
.emp-notif-page-bar {
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 12px; margin-bottom: 16px;
}
.emp-notif-page-bar__title {
    font-size: 20px; font-weight: 800; color: var(--emp-text);
    display: flex; align-items: center; gap: 8px;
}
.emp-unread-badge {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 22px; height: 22px; padding: 0 6px; border-radius: 20px;
    background: var(--emp-error); color: #fff; font-size: 12px; font-weight: 800;
}
.emp-notif-mark-all {
    background: var(--emp-bg); border: 1.5px solid var(--emp-border);
    color: var(--emp-text); font-size: 12.5px; font-weight: 700;
    padding: 8px 14px; border-radius: 9px; cursor: pointer;
    font-family: var(--emp-font); white-space: nowrap;
    transition: all var(--emp-transition);
}
.emp-notif-mark-all:hover { background: #eef1f6; }
.emp-notif-mark-all--danger { background: #fff0f0; border-color: #fecaca; color: #dc2626; }
.emp-notif-mark-all--danger:hover { background: #fee2e2; }

.emp-status-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.emp-status-tab {
    background: var(--emp-bg); border: 1.5px solid var(--emp-border);
    color: var(--emp-muted); font-size: 12.5px; font-weight: 700;
    padding: 7px 14px; border-radius: 20px; cursor: pointer;
    font-family: var(--emp-font); transition: all var(--emp-transition);
    white-space: nowrap;
}
.emp-status-tab:hover { background: #eef1f6; }
.emp-status-tab--active { background: var(--emp-grad); border-color: transparent; color: #fff; }

.emp-notif-section-label {
    font-size: 12px; font-weight: 800; color: var(--emp-muted);
    text-transform: uppercase; letter-spacing: .5px; margin: 8px 0 12px;
}

.emp-notif-card {
    background: var(--emp-surface); border: 1.5px solid var(--emp-border);
    border-radius: 14px; padding: 14px 16px;
    display: flex; align-items: flex-start; gap: 12px; position: relative;
    transition: border-color var(--emp-transition), background var(--emp-transition);
}
.emp-notif-card--unread { border-color: #bfdbfe; background: #f8fbff; }
.emp-notif-card__icon {
    width: 38px; height: 38px; min-width: 38px; border-radius: 50%;
    background: var(--emp-primary-bg, #eff6ff); color: var(--emp-primary);
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.emp-notif-card__body { flex: 1; min-width: 0; }
.emp-notif-card__title { font-size: 13.5px; font-weight: 700; color: var(--emp-text); word-break: break-word; }
.emp-notif-card__msg { font-size: 12.5px; color: var(--emp-text-sub); margin-top: 3px; line-height: 1.5; word-break: break-word; }
.emp-notif-card__time { font-size: 11px; color: var(--emp-muted); margin-top: 6px; }
.emp-notif-unread-dot {
    width: 9px; height: 9px; border-radius: 50%; background: var(--emp-primary);
    flex-shrink: 0; margin-top: 4px;
}
.emp-notif-card__actions {
    display: flex; gap: 6px; flex-shrink: 0; align-items: flex-start;
}
.emp-notif-action-btn {
    width: 30px; height: 30px; border-radius: 8px; border: 1.5px solid var(--emp-border);
    background: var(--emp-bg); color: var(--emp-muted); cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; transition: all var(--emp-transition); flex-shrink: 0;
}
.emp-notif-action-btn:hover { background: #eef1f6; color: var(--emp-text); }
.emp-notif-action-btn--delete:hover { background: #fee2e2; border-color: #fecaca; color: #dc2626; }

/* Mobile/tablet: stack action buttons under content on narrow cards so
   nothing gets cramped or wraps oddly */
@media (max-width: 480px) {
    .emp-notif-card { flex-wrap: wrap; }
    .emp-notif-card__actions { width: 100%; justify-content: flex-end; margin-top: 8px; }
    .emp-notif-page-bar__title { font-size: 18px; }
    .emp-notif-mark-all { font-size: 11.5px; padding: 7px 12px; }
}

.emp-badge-count {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 18px; height: 18px; border-radius: 20px;
    background: var(--emp-error); color: #fff;
    font-size: 9px; font-weight: 800; padding: 0 4px;
    font-family: var(--emp-font);
}
.emp-section-title { font-size: 16px; font-weight: 700; color: var(--emp-text); margin-bottom: 14px; }

/* Table */
.emp-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.emp-table th { padding: 10px 14px; background: var(--emp-bg); font-weight: 700; color: var(--emp-text-sub); font-size: 11px; text-align: left; border-bottom: 1px solid var(--emp-border); }
.emp-table td { padding: 12px 14px; border-bottom: 1px solid var(--emp-bg); vertical-align: middle; }
.emp-table tr:last-child td { border-bottom: none; }
.emp-table tr:hover td { background: rgba(0,41,112,0.02); }
.emp-table-wrap { overflow-x: auto; border-radius: var(--emp-radius); border: 1px solid var(--emp-border); background: var(--emp-surface); }

/* Pagination */
.emp-pagination { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; margin-top: 22px; }
.emp-pagination a, .emp-pagination span {
    padding: 7px 13px; border-radius: 8px;
    font-size: 12px; font-weight: 700; text-decoration: none;
    border: 1.5px solid var(--emp-border);
    background: var(--emp-surface); color: var(--emp-text-sub);
    transition: all var(--emp-transition);
}
.emp-pagination a:hover { border-color: var(--emp-primary); color: var(--emp-primary); }
.emp-pagination .current { background: var(--emp-primary); color: #fff; border-color: var(--emp-primary); }

/* Modal */
.emp-modal-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.50); z-index: 9000;
    display: flex; align-items: center; justify-content: center;
    padding: 20px; opacity: 0; pointer-events: none;
    transition: opacity 0.2s;
}
.emp-modal-overlay.open { opacity: 1; pointer-events: all; }
.emp-modal {
    background: var(--emp-surface); border-radius: var(--emp-radius);
    box-shadow: 0 24px 80px rgba(0,0,0,0.24);
    width: 100%; max-width: 520px;
    max-height: 90vh; overflow-y: auto;
    transform: translateY(-16px); transition: transform 0.2s;
}
.emp-modal-overlay.open .emp-modal { transform: translateY(0); }
.emp-modal__head {
    padding: 18px 20px; border-bottom: 1px solid var(--emp-border);
    display: flex; align-items: center; justify-content: space-between;
}
.emp-modal__title { font-size: 15px; font-weight: 800; color: var(--emp-text); }
.emp-modal__close { background: none; border: none; cursor: pointer; color: var(--emp-muted); padding: 4px; border-radius: 6px; }
.emp-modal__close:hover { color: var(--emp-error); }
.emp-modal__body { padding: 20px; }
.emp-modal__foot { padding: 14px 20px; border-top: 1px solid var(--emp-border); display: flex; gap: 10px; justify-content: flex-end; }

/* Filter bar */
.emp-filter-bar {
    background: var(--emp-surface); border: 1px solid var(--emp-border);
    border-radius: var(--emp-radius); padding: 14px 16px; margin-bottom: 20px;
}
.emp-filter-panel {
    position: fixed; top: 0; right: -100%; bottom: 0;
    width: 100%; max-width: 680px;
    background: var(--emp-surface); z-index: 2000;
    box-shadow: -8px 0 40px rgba(0,0,0,0.15);
    transition: right 0.3s cubic-bezier(0.4,0,0.2,1);
    display: flex; flex-direction: column; overflow: hidden;
}
.emp-filter-panel.open { right: 0; }
.emp-filter-panel__head {
    padding: 18px 20px; border-bottom: 1px solid var(--emp-border);
    display: flex; align-items: center; justify-content: space-between; flex-shrink: 0;
}
.emp-filter-panel__title { font-size: 15px; font-weight: 800; color: var(--emp-text); }
.emp-filter-panel__body { flex: 1; overflow-y: auto; padding: 20px; }
.emp-filter-panel__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.emp-filter-panel__foot {
    padding: 16px 20px; border-top: 1px solid var(--emp-border);
    display: flex; gap: 10px; flex-shrink: 0;
}

/* Activity feed */
.emp-activity-list { display: flex; flex-direction: column; }
.emp-activity-item {
    display: flex; gap: 12px; align-items: flex-start;
    padding: 12px 0; border-bottom: 1px solid var(--emp-bg);
}
.emp-activity-item:last-child { border-bottom: none; }
.emp-activity-icon {
    width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    background: #eff6ff; color: var(--emp-secondary);
}
.emp-activity-text { flex: 1; min-width: 0; }
.emp-activity-title { font-size: 13px; font-weight: 600; color: var(--emp-text); }
.emp-activity-time { font-size: 11px; color: var(--emp-muted); margin-top: 2px; }

/* ══════════════════════════════════════════════════════════
   RESPONSIVE — TABLET (≤ 1024px)
══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    :root { --emp-navbar-h: 64px; }
    .emp-navbar__logo-img { height: 48px; max-height: 48px; }
    .emp-sidebar { display: none; }
    .emp-portal-main { margin-left: 0 !important; padding: 20px 16px calc(var(--emp-tab-h) + env(safe-area-inset-bottom) + 24px); position: relative; }
    .emp-portal-main::after {
        content: '';
        position: absolute; left: 0; right: 0; bottom: 0;
        height: calc(var(--emp-tab-h) + env(safe-area-inset-bottom) + 24px);
        background: var(--emp-surface);
        z-index: -1;
        pointer-events: none;
    }
    .emp-bottom-tabs { display: flex; }
    .emp-navbar__hamburger { display: flex; }
    .emp-navbar__icon-btn { display: flex !important; }
    /* Bell dropdown: full width on tablet */
    .emp-bell-dropdown { left: 8px; right: 8px; width: auto; }
    /* Profile dropdown: fixed top-right */
    .emp-navbar__dropdown { position: fixed !important; top: calc(var(--emp-navbar-h) + 6px) !important; right: 10px !important; }
    /* Login: split layout */
    .emp-login-left { width: 38%; min-width: 180px; }
    .emp-login-right { padding: 24px 20px; }
    .emp-login-left__tagline { font-size: 18px; }
    .emp-login-left__content { padding: 24px 20px; }
    /* Stats: 3 col → 2 col */
    .emp-stats-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    /* Candidate grid: 4 → 2 */
    .emp-cand-grid { grid-template-columns: repeat(2, 1fr); }
    /* Jobs grid: 2 → 1 */
    .emp-jobs-grid { grid-template-columns: 1fr; }
    /* Form row: 2 → 1 */
    .emp-form-row { grid-template-columns: 1fr; }
    /* Filter panel: full width */
    .emp-filter-panel { max-width: 100%; }
    .emp-filter-panel__grid { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE — MOBILE (≤ 640px)
══════════════════════════════════════════════════════════ */
@media (max-width: 640px) {
    :root { --emp-navbar-h: 60px; }
    .emp-navbar__logo-img { height: 44px; max-height: 44px; }
    .emp-navbar__inner { padding: 0 12px; gap: 6px; }
    .emp-portal-main { padding: 14px 12px calc(var(--emp-tab-h) + env(safe-area-inset-bottom) + 16px); }
    .emp-portal-main::after { height: calc(var(--emp-tab-h) + env(safe-area-inset-bottom) + 16px); }
    /* Stats: 2 col */
    .emp-stats-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .emp-stat-card { padding: 14px 12px; }
    .emp-stat-card__num { font-size: 22px; }
    .emp-stat-card__label { font-size: 11px; }
    /* Candidate grid: 1 col on phone */
    .emp-cand-grid { grid-template-columns: 1fr !important; gap: 12px; }
    .emp-cand-card__name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .emp-cand-card__row-val { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    /* Login: mobile stacked */
    .emp-login-left { display: none !important; }
    .emp-login-right { width: 100%; flex: 1; padding: 0; align-items: stretch; justify-content: flex-start; background: #fff; overflow-y: auto; }
    .emp-login-page { flex-direction: column; min-height: calc(100vh - var(--emp-navbar-h)); background: #fff; }
    .emp-login-mobile-hero { display: flex !important; min-height: calc(var(--emp-navbar-h) + 200px); height: auto; flex-shrink: 0; }
    .emp-login-form-card { padding: 28px 22px 40px; max-width: 100%; border-radius: 0; box-shadow: none; border: none; background: #fff; width: 100%; }
    .emp-login-form-card__title { font-size: 22px; }
    /* Page title */
    .emp-page-title { font-size: 18px; }
    .emp-page-header { flex-direction: column; align-items: flex-start; }
    /* Welcome card */
    .emp-welcome-card { flex-direction: column; align-items: flex-start; gap: 12px; padding: 16px; }
    .emp-welcome-card__left h2 { font-size: 18px; }
    /* Pipeline: vertical scroll */
    .emp-pipeline-board { flex-direction: column; }
    .emp-kb-col { min-width: 100%; max-width: 100%; flex: none; max-height: none; }
    /* Table: scroll */
    .emp-table-wrap { border-radius: 0; }
    /* Form */
    .emp-form-section__body { padding: 14px; }
    /* OTP boxes */
    .emp-otp-box { width: 40px; height: 48px; font-size: 20px; }
    /* Filter panel full-width */
    .emp-filter-panel { max-width: 100%; }
    /* WA float — clear of bottom tabs */
    .emp-wa-float { bottom: calc(var(--emp-tab-h) + env(safe-area-inset-bottom) + 12px); right: 14px; }
    /* Bell dropdown */
    .emp-bell-dropdown { left: 4px; right: 4px; max-height: 75vh; }
    /* Modals (Schedule Interview, Joining Date, Onboard Date, etc.):
       reduce outer padding to reclaim space, raise max-height so more
       of the form is visible, and keep the action buttons reachable
       by pinning them to the bottom of the modal instead of letting
       them get pushed below the visible screen on tall forms. */
    .emp-modal-overlay { padding: 0; align-items: flex-end; }
    .emp-modal {
        max-width: 100%; width: 100%;
        max-height: calc(100vh - env(safe-area-inset-top) - 16px);
        max-height: calc(100dvh - env(safe-area-inset-top) - 16px);
        border-radius: 18px 18px 0 0;
        display: flex; flex-direction: column;
    }
    .emp-modal__head { flex-shrink: 0; }
    .emp-modal__body { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; }
    .emp-modal__foot {
        flex-shrink: 0;
        padding-bottom: calc(14px + env(safe-area-inset-bottom));
        background: var(--emp-surface);
        box-shadow: 0 -4px 12px rgba(0,0,0,0.06);
    }
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE — SMALL PHONES (≤ 390px)
══════════════════════════════════════════════════════════ */
@media (max-width: 390px) {
    :root { --emp-navbar-h: 56px; }
    .emp-navbar__logo-img { height: 40px; max-height: 40px; }
    .emp-navbar__inner { padding: 0 10px; gap: 4px; }
    .emp-stat-card { padding: 12px 10px; }
    .emp-stat-card__num { font-size: 20px; }
    .emp-portal-main { padding: 12px 10px calc(var(--emp-tab-h) + env(safe-area-inset-bottom) + 12px); }
    .emp-portal-main::after { height: calc(var(--emp-tab-h) + env(safe-area-inset-bottom) + 12px); }
    .emp-otp-box { width: 36px; height: 44px; font-size: 18px; }
    .emp-btn { font-size: 12px; padding: 9px 14px; }
}

/* ══════════════════════════════════════════════════════════
   KANBAN CARD CSS — exact match page-company-portal.php
══════════════════════════════════════════════════════════ */
.sps-kb-col { width:220px; min-width:220px; flex-shrink:0; }
.sps-kb-col-head { padding:10px 14px; border-radius:10px 10px 0 0; display:flex; justify-content:space-between; align-items:center; gap:6px; }
.sps-kb-col-head span.sps-kb-lbl { font-size:12px; font-weight:700; color:#fff; white-space:nowrap; }
.sps-kb-col-head span.sps-kb-cnt { background:rgba(255,255,255,.25); padding:2px 8px; border-radius:10px; font-size:11px; font-weight:700; color:#fff; flex-shrink:0; }
.sps-kb-col-body { background:#f8fafc; border:1px solid #e2e8f0; border-top:none; border-radius:0 0 10px 10px; min-height:200px; padding:8px; transition:background .15s; }
.sps-kb-col-body.drag-over { background:#e0f2fe; border-color:#0ea5e9; }
.sps-kb-card { background:#fff; border-radius:10px; padding:12px; margin-bottom:10px; border:1.5px solid #e2e8f0; box-shadow:0 1px 3px rgba(0,0,0,.04); transition:box-shadow .2s, border-color .2s; cursor:grab; user-select:none; }
.sps-kb-card:hover { box-shadow:0 4px 14px rgba(0,0,0,.08); border-color:#3b82f6; }
.sps-kb-card.is-dragging { opacity:.4; cursor:grabbing; }
.kb-name { font-size:13px; font-weight:700; color:#0f172a; font-family:'Poppins',sans-serif; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.kb-jsid { font-size:9px; color:#94a3b8; background:#f1f5f9; padding:2px 5px; border-radius:4px; font-family:'Poppins',sans-serif; }
.kb-grid { display:grid; grid-template-columns:1fr 1fr; gap:3px; margin:6px 0; font-size:11px; color:#475569; font-family:'Poppins',sans-serif; }
.sps-kb-actions { display:flex; gap:5px; flex-wrap:wrap; padding-top:8px; border-top:1px solid #f1f5f9; margin-top:8px; }
.sps-kb-btn { font-size:11px; padding:5px 10px; border-radius:6px; font-weight:600; cursor:pointer; border:none; font-family:'Poppins',sans-serif; text-decoration:none; display:inline-block; line-height:1.4; white-space:nowrap; transition:opacity .15s; }
.sps-kb-btn:hover { opacity:.88; }
.sps-kb-btn-blue   { background:#3b82f6; color:#fff; }
.sps-kb-btn-purple { background:#8b5cf6; color:#fff; }
.sps-kb-btn-teal   { background:#0ea5e9; color:#fff; }
.sps-kb-btn-green  { background:#22c55e; color:#fff; }
.sps-kb-btn-red    { background:#ef4444; color:#fff; }
.sps-kb-btn-amber  { background:#d97706; color:#fff; }
.sps-kb-btn-outline{ background:#f1f5f9; color:#374151; border:1px solid #e2e8f0; }
.sps-kb-int-box  { background:#eff6ff; padding:8px 10px; border-radius:8px; font-size:11px; color:#1d4ed8; margin-bottom:6px; border:1px solid #bfdbfe; font-family:'Poppins',sans-serif; }
.sps-kb-join-box { background:#fef3c7; padding:6px 8px; border-radius:6px; font-size:10px; color:#92400e; margin-bottom:6px; font-family:'Poppins',sans-serif; }
.sps-kb-rej-box  { background:#fef2f2; padding:8px 10px; border-radius:8px; font-size:11px; color:#dc2626; margin-bottom:6px; border:1px solid #fecaca; font-family:'Poppins',sans-serif; }
.sps-kb-onb-box  { background:#dcfce7; padding:6px 8px; border-radius:6px; font-size:10px; color:#15803d; margin-bottom:6px; font-family:'Poppins',sans-serif; }
.sps-kb-approval { background:#fef9c3; color:#a16207; font-size:10px; font-weight:700; padding:3px 8px; border-radius:8px; margin-bottom:6px; font-family:'Poppins',sans-serif; display:inline-block; }
#empKbScroll::-webkit-scrollbar { height:10px; }
#empKbScroll::-webkit-scrollbar-track { background:#e8e8e8; border-radius:20px; }
#empKbScroll::-webkit-scrollbar-thumb { background:#6b6b6b; border-radius:20px; }
#empKbScroll::-webkit-scrollbar-thumb:hover { background:#333; }