/* ============================================
   TrabaHunt - Main Stylesheet
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Poppins:wght@400;500;600;700;800&display=swap');

:root {
    --primary: #2563EB;
    --primary-dark: #1D4ED8;
    --primary-light: #DBEAFE;
    --secondary: #0891B2;
    --secondary-dark: #0E7490;
    --accent: #F59E0B;
    --accent-light: #FEF3C7;
    --success: #10B981;
    --danger: #EF4444;
    --warning: #F59E0B;
    --info: #06B6D4;
    --dark: #1E293B;
    --gray-900: #0F172A;
    --gray-800: #1E293B;
    --gray-700: #334155;
    --gray-600: #475569;
    --gray-500: #64748B;
    --gray-400: #94A3B8;
    --gray-300: #CBD5E1;
    --gray-200: #E2E8F0;
    --gray-100: #F1F5F9;
    --gray-50: #F8FAFC;
    --white: #FFFFFF;
    --font-body: 'Inter', sans-serif;
    --font-heading: 'Poppins', sans-serif;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
    --radius: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --topbar-h: 73px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font-body);
    color: var(--gray-800);
    background: var(--gray-50);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.3;
    color: var(--dark);
}

a { color: var(--primary); text-decoration: none; transition: color 0.2s, background 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.2s; }
a:hover { color: var(--primary-dark); }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.btn:active { transform: translateY(0); }

/* ---- Navbar ---- */
/* Fixed so it always stays visible while scrolling and runs straight across the top */
.navbar-main {
    background: var(--white);
    box-shadow: var(--shadow);
    padding: 0.5rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
}

body.has-public-nav {
    padding-top: 64px;
}

.navbar-main .navbar-brand {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--gray-900) !important;
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1.15;
}
.navbar-main .brand-lockup small {
    display: block;
    font-family: var(--font-body);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--gray-500);
}

.navbar-main .navbar-brand img {
    height: 36px;
    width: 36px;
    border-radius: 8px;
}

.navbar-main .nav-link {
    color: var(--gray-600) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    border-radius: var(--radius);
    transition: all 0.2s;
}

.navbar-main .nav-link:hover,
.navbar-main .nav-link.active {
    color: var(--primary) !important;
    background: var(--primary-light);
}

/* ---- Buttons ---- */
.btn { font-weight: 500; border-radius: var(--radius); padding: 0.5rem 1.25rem; transition: all 0.2s; }

.btn-primary { background: var(--primary); border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }

.btn-secondary-custom { background: var(--secondary); border-color: var(--secondary); color: #fff; }
.btn-secondary-custom:hover { background: var(--secondary-dark); border-color: var(--secondary-dark); color: #fff; }

.btn-accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-accent:hover { background: #D97706; border-color: #D97706; color: #fff; }

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

.btn-lg { padding: 0.75rem 2rem; font-size: 1.05rem; border-radius: var(--radius-lg); }

/* ---- Cards ---- */
.card {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    background: var(--white);
}

.card:hover { box-shadow: var(--shadow-md); }

.card-header {
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    font-weight: 600;
    padding: 1rem 1.25rem;
}

/* ---- Job Cards ---- */
.job-card {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    background: var(--white);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.job-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

.company-logo-link {
    display: inline-flex;
    flex-shrink: 0;
    line-height: 0;
}
.job-card .company-name { display: inline-block; }
.job-card .company-logo {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    border-radius: var(--radius);
    object-fit: cover;
    border: 1px solid var(--gray-200);
    background: #e8f1fc;
}

.job-card .company-logo-placeholder {
    width: 52px;
    height: 52px;
    border-radius: var(--radius);
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-weight: 700;
    font-size: 1.2rem;
}

.job-card .job-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark);
    margin: 0.75rem 0 0.25rem;
}

.job-card .job-title a { color: var(--dark); }
.job-card .job-title a:hover { color: var(--primary); }

.job-card .company-name {
    color: var(--gray-600);
    font-size: 0.9rem;
    font-weight: 500;
}

.job-card .job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0.75rem 0;
}

.job-card .job-meta span {
    font-size: 0.8rem;
    color: var(--gray-500);
    display: flex;
    align-items: center;
    gap: 4px;
}

.job-card .job-footer {
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid var(--gray-100);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ---- Badges ---- */
.badge-type {
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: capitalize;
}

.badge-full-time { background: #DCFCE7; color: #166534; }
.badge-part-time { background: #FEF3C7; color: #92400E; }
.badge-contract { background: #DBEAFE; color: #1E40AF; }
.badge-temporary { background: #FEE2E2; color: #991B1B; }
.badge-internship { background: #F3E8FF; color: #6B21A8; }
.badge-vacancies { background: #E0F2FE; color: #075985; }

/* Employer landing */
.employer-site { background: #fff; color: #1d2433; padding-top: 0; }
.emp-nav { position: sticky; top: 0; z-index: 40; background: #fff; border-bottom: 1px solid #eef0f3; }
.emp-nav-inner { max-width: 1180px; margin: 0 auto; padding: 0 20px; min-height: 68px; display: flex; align-items: center; gap: 28px; }
.emp-brand { display: flex; align-items: center; gap: 10px; color: #14213d; font-weight: 600; font-size: 1.05rem; }
.emp-brand strong { font-weight: 800; }
.emp-brand:hover { color: #14213d; }
.emp-toggle { margin-left: auto; border: 1px solid #d7dbe3; background: #fff; border-radius: 8px; width: 40px; height: 40px; display: none; }
.employer-site .emp-collapse { display: flex; align-items: center; flex: 1; gap: 18px; }
.emp-links { display: flex; align-items: center; gap: 22px; }
.emp-links a { color: #2a3344; font-size: 0.95rem; font-weight: 500; }
.emp-links a.is-active, .emp-links a:hover { color: #0b3f91; }
.emp-actions { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.emp-text-link { color: #1d2433; font-weight: 600; font-size: 0.95rem; }
.emp-outline { border: 1.5px solid #1d2433; color: #1d2433; border-radius: 8px; padding: 8px 14px; font-weight: 700; font-size: 0.92rem; }
.emp-outline:hover { background: #f4f6f8; color: #1d2433; }
.emp-hero { background: radial-gradient(circle at 8% 120%, #2f6fe0 0 180px, transparent 181px), radial-gradient(circle at 96% -20%, #1a4fbe 0 220px, transparent 221px), linear-gradient(180deg, #0e4fc4 0%, #1565d8 100%); color: #fff; text-align: center; padding: 54px 20px 128px; }
.emp-hero h1 { color: #fff; font-size: 2.6rem; font-weight: 700; letter-spacing: -0.03em; margin: 0 0 8px; }
.emp-hero p { color: rgba(255,255,255,0.92); font-size: 1.15rem; margin: 0 0 18px; }
.emp-noodles { display: block; margin: 0 auto; }
.emp-start { margin-top: -78px; padding: 0 20px 10px; }
.emp-card { max-width: 860px; margin: 0 auto; background: #fff; border-radius: 16px; box-shadow: 0 10px 40px rgba(16, 36, 74, 0.12); padding: 28px 32px 22px; text-align: center; }
.emp-card h2 { font-size: 1.65rem; margin: 0 0 18px; color: #1a2744; }
.emp-form { display: flex; align-items: flex-end; gap: 12px; text-align: left; }
.emp-form label { flex: 1; min-width: 0; font-size: 0.92rem; font-weight: 600; color: #243049; }
.emp-form label > span:first-child { display: block; margin-bottom: 6px; }
.emp-field { position: relative; display: block; margin: 0; }
.emp-field i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #8b95a7; }
.emp-field input { width: 100%; height: 48px; border: 1.5px solid #cfd6e2; border-radius: 8px; padding: 0 14px 0 40px; font-size: 1rem; }
.emp-field input:focus { outline: none; border-color: #1565d8; box-shadow: 0 0 0 3px rgba(21,101,216,0.15); }
.emp-pink { height: 48px; border: 0; border-radius: 8px; background: #e01273; color: #fff; font-weight: 700; padding: 0 22px; white-space: nowrap; }
.emp-pink:hover { background: #c40e64; }
.emp-setup { margin: 16px 0 0; color: #5c677a; font-size: 0.95rem; }
.emp-setup a { color: #1a2744; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.emp-block { padding: 72px 20px 20px; text-align: center; }
.emp-block h2 { font-size: 1.85rem; color: #1a2744; margin-bottom: 28px; }
.emp-faces { display: flex; justify-content: center; margin-bottom: 14px; }
.emp-faces span { width: 54px; height: 54px; border-radius: 50%; border: 3px solid #fff; margin-left: -10px; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; box-shadow: 0 2px 8px rgba(15,23,42,0.12); }
.emp-faces span:first-child { margin-left: 0; }
.emp-count { color: #667085; margin: 0; }
.emp-features, .emp-stories { max-width: 1040px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; text-align: center; }
.emp-features article i { font-size: 1.4rem; color: #526074; margin-bottom: 10px; }
.emp-features h3 { font-size: 1.05rem; margin-bottom: 8px; }
.emp-features p, .emp-stories p { color: #667085; font-size: 0.95rem; margin: 0; }
.emp-stories { text-align: left; gap: 18px; }
.emp-stories article { border: 1px solid #e6e8ee; border-radius: 12px; padding: 26px 22px 20px; background: #fff; }
.emp-quote { color: #e01273; font-size: 2.4rem; line-height: 1; font-family: Georgia, serif; display: block; margin-bottom: 8px; }
.emp-stories strong { display: block; margin-top: 22px; color: #667085; font-weight: 600; font-size: 0.92rem; }
.emp-foot { margin-top: 64px; background: #f4f5f7; padding: 28px 20px 22px; text-align: center; }
.emp-foot nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; margin-bottom: 10px; }
.emp-foot a, .emp-foot p { color: #667085; font-size: 0.88rem; }
.emp-foot p { margin: 0; }
@media (max-width: 860px) {
    .emp-toggle { display: inline-flex; align-items: center; justify-content: center; }
    .employer-site .emp-collapse:not(.show) { display: none; }
    .employer-site .emp-collapse.show { display: flex; flex-direction: column; align-items: flex-start; position: absolute; left: 0; right: 0; top: 68px; background: #fff; border-bottom: 1px solid #eef0f3; padding: 12px 20px 18px; box-shadow: 0 12px 24px rgba(15,23,42,0.06); }
    .emp-nav { position: sticky; }
    .emp-nav-inner { position: relative; flex-wrap: wrap; }
    .emp-links, .emp-actions { flex-direction: column; align-items: flex-start; gap: 10px; }
    .emp-actions { margin-left: 0; }
    .emp-form { flex-direction: column; align-items: stretch; }
    .emp-pink { width: 100%; }
    .emp-features, .emp-stories { grid-template-columns: 1fr; }
    .emp-hero h1 { font-size: 2rem; }
    .emp-card { padding: 22px 16px; }
}
.badge-vacancies.is-full { background: #FEE2E2; color: #991B1B; }

.badge-status {
    padding: 0.3rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-applied { background: #DBEAFE; color: #1E40AF; }
.badge-qualified { background: #DCFCE7; color: #166534; }
.badge-waiting_list { background: #FEF3C7; color: #92400E; }
.badge-archived { background: var(--gray-200); color: var(--gray-700); }
.badge-hired { background: #DCFCE7; color: #166534; }
.badge-rejected { background: #FEE2E2; color: #991B1B; }

/* ---- Match Score ---- */
.match-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0.25rem 0.6rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

.match-high { background: #DCFCE7; color: #166534; }
.match-medium { background: #FEF3C7; color: #92400E; }
.match-low { background: #FEE2E2; color: #991B1B; }

/* ---- Stats Cards ---- */
.stat-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    border: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s;
}

a.stat-card { color: inherit; cursor: pointer; }
.stat-card:hover { box-shadow: var(--shadow-md); border-color: var(--primary); transform: translateY(-2px); }
.stat-card:hover .stat-label { color: var(--primary); }

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.stat-card .stat-number {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--dark);
    line-height: 1;
}

.stat-card .stat-label {
    font-size: 0.85rem;
    color: var(--gray-500);
    margin-top: 2px;
}

/* ---- Sidebar (Dashboard) ---- */
.sidebar {
    background: var(--white);
    height: 100vh;              /* exact viewport height so the nav can scroll */
    border-right: 1px solid var(--gray-200);
    padding: 0 0 1.5rem;
    position: fixed;
    width: 260px;
    top: 0;
    left: 0;
    z-index: 999;
    overflow-y: auto;           /* internal scrollbar when items exceed the height */
    overscroll-behavior: contain;
}

/* Brand block height drives where the sidebar's first divider line sits.
   The content topbar uses the same height so both bottom borders line up. */
.sidebar .sidebar-brand {
    height: var(--topbar-h);
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    border-bottom: 1px solid var(--gray-200);
    margin-bottom: 1rem;
    box-sizing: border-box;
}

.sidebar .sidebar-brand a {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.3rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar .sidebar-brand img {
    height: 32px;
    width: 32px;
    border-radius: 8px;
}

.sidebar .sidebar-brand small {
    display: block;
    font-size: 0.7rem;
    color: var(--gray-400);
    font-weight: 400;
    font-family: var(--font-body);
}

.sidebar .nav-item { padding: 0 0.75rem; }

.sidebar .nav-link {
    color: var(--gray-600);
    font-weight: 500;
    padding: 0.6rem 1rem;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.2s;
    font-size: 0.9rem;
}

.sidebar .nav-link i { width: 20px; text-align: center; font-size: 1rem; }

.sidebar .nav-link:hover { background: var(--primary-light); color: var(--primary); }
.sidebar .nav-link.active { background: var(--primary); color: var(--white) !important; }

.sidebar .nav-sublink {
    display: block;
    margin: 0.2rem 0.75rem 0.45rem 2.7rem;
    padding: 0.45rem 0.75rem;
    border-radius: 8px;
    color: var(--gray-600);
    font-size: 0.82rem;
    font-weight: 500;
    line-height: 1.3;
}
.sidebar .nav-sublink:hover { background: var(--primary-light); color: var(--primary); }
.sidebar .nav-sublink.active { background: #1d4ed8; color: #fff; }

.sidebar .sidebar-section {
    padding: 0.75rem 1.5rem 0.5rem;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gray-400);
    font-weight: 600;
}

.dashboard-content {
    margin-left: 260px;
    padding: 2rem;
    min-height: 100vh;
}

/* Topbar strip across the main content; its bottom border aligns with the
   sidebar brand's divider (both are --topbar-h tall, anchored at top). */
.content-topbar {
    height: var(--topbar-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0 2rem;
    margin: -2rem -2rem 2rem;
    border-bottom: 1px solid var(--gray-200);
    background: var(--white);
    box-sizing: border-box;
}
.content-topbar .topbar-user {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.content-topbar .topbar-user .topbar-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
    overflow: hidden;
}
.content-topbar .topbar-user .topbar-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}
.content-topbar .topbar-actions {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}
.content-topbar .topbar-actions a {
    padding: 0.45rem 0.85rem;
    border-radius: var(--radius);
    color: var(--gray-600);
    font-weight: 500;
    font-size: 0.9rem;
    white-space: nowrap;
}
.content-topbar .topbar-actions a:hover { background: var(--gray-100); color: var(--primary); }
.content-topbar .topbar-actions a.topbar-logout:hover { background: #FEE2E2; color: #DC2626; }

.portal-topbar .topbar-office {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--gray-500);
    white-space: nowrap;
}
.portal-topbar .topbar-actions { margin-left: auto; gap: 0.35rem; }
.portal-topbar .topbar-account { display: inline-flex; }
.portal-topbar .topbar-account .topbar-user {
    margin: 0 0 0 0.35rem;
    padding: 0.2rem 0.7rem 0.2rem 0.35rem;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    background: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
}
.portal-topbar .topbar-account .topbar-user:hover,
.portal-topbar .topbar-account .topbar-user.show {
    color: var(--primary);
}
.portal-topbar .topbar-user .topbar-avatar {
    width: 28px;
    height: 28px;
    font-size: 0.72rem;
    overflow: hidden;
}
.portal-topbar .topbar-user .topbar-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}
.company-identity {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 1rem;
}
.company-identity img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border: 1px solid var(--gray-200);
    background: #e8f1fc;
}
.company-identity .is-avatar { border-radius: 50%; }
.company-identity .is-logo { border-radius: 12px; }
.portal-topbar .topbar-account .dropdown-menu {
    min-width: 190px;
    margin-top: 0.45rem;
    padding: 0.35rem;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
}
.portal-topbar .topbar-account .dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    border-radius: 8px;
    padding: 0.5rem 0.7rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray-700);
}
.portal-topbar .topbar-account .dropdown-item i { width: 16px; text-align: center; color: var(--gray-500); }
.portal-topbar .topbar-account .dropdown-item:hover { background: var(--gray-100); color: var(--primary); }
.portal-topbar .topbar-account .dropdown-item:hover i { color: var(--primary); }
.portal-topbar .topbar-account .dropdown-item.topbar-logout:hover { background: #FEE2E2; color: #DC2626; }
.portal-topbar .topbar-account .dropdown-item.topbar-logout:hover i { color: #DC2626; }
@media (max-width: 768px) {
    .content-topbar { padding: 0 1rem; margin: -1rem -1rem 1.5rem; }
    .content-topbar .topbar-user .topbar-name { display: none; }
    .portal-topbar .topbar-office { display: none; }
    .content-topbar .topbar-actions a span { display: none; }
}

.dashboard-header {
    margin-bottom: 2rem;
}

/* Keep page header rows straight: title left, actions right, vertically centered */
.dashboard-header > .d-flex {
    align-items: center !important;
    gap: 1rem;
}
.dashboard-header h1 {
    margin-bottom: 0.25rem;
    white-space: nowrap;
}
@media (max-width: 576px) {
    .dashboard-header h1 { white-space: normal; }
}

.dashboard-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
}

.dashboard-header p {
    color: var(--gray-500);
    font-size: 0.9rem;
}

/* ---- Hero Section ---- */
.hero {
    background: linear-gradient(135deg, #1E3A8A 0%, #2563EB 50%, #0891B2 100%);
    padding: 5rem 0 4rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.hero-kicker {
    display: inline-block;
    margin: 0 0 0.85rem;
    padding: 0.3rem 0.75rem;
    border: 1px solid rgba(255,255,255,0.35);
    border-radius: 999px;
    color: rgba(255,255,255,0.92);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.hero h1 {
    color: var(--white);
    font-size: 2.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.15rem;
    margin-bottom: 2rem;
}

.hero .search-box {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 0.5rem;
    box-shadow: var(--shadow-xl);
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.hero .search-box input,
.hero .search-box select {
    border: none;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    flex: 1 1 160px;
    min-width: 0;
    width: auto;
    outline: none;
    background: transparent;
}

.hero .search-box:focus-within {
    box-shadow: 0 0 0 4px rgba(255,255,255,0.55), var(--shadow-xl);
}
.hero .search-box input:focus,
.hero .search-box select:focus {
    background: var(--gray-50);
    border-radius: 8px;
}
.hero .search-box .btn {
    padding: 0.75rem 2rem;
    border-radius: var(--radius-lg);
    white-space: nowrap;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    margin-top: 2.5rem;
    justify-content: center;
}

.hero-stats .stat {
    text-align: center;
    color: var(--white);
}

.hero-stats .stat-num {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
}

.hero-stats .stat-text {
    font-size: 0.85rem;
    opacity: 0.8;
}

/* ---- Section Styles ---- */
.section { padding: 4rem 0; }
.section-gray { background: var(--gray-50); }
.section-white { background: var(--white); }

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-align: center;
}

.section-subtitle {
    color: var(--gray-500);
    text-align: center;
    margin-bottom: 2.5rem;
    font-size: 1rem;
}

/* ---- How It Works ---- */
.step-card {
    text-align: center;
    padding: 2rem 1.5rem;
    border: 1px solid transparent;
    border-radius: var(--radius-lg);
    background: transparent;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s, background 0.2s;
}
.step-card:hover {
    background: var(--white);
    border-color: var(--gray-200);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.step-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    font-size: 2rem;
}

.step-card h4 {
    margin-bottom: 0.5rem;
    font-size: 1.15rem;
}

.step-card p {
    color: var(--gray-500);
    font-size: 0.9rem;
}

/* ---- Awards ---- */
.award-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s;
}

.award-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }

.award-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* ---- Footer ---- */
.footer {
    background: var(--gray-900);
    color: var(--gray-400);
    padding: 3rem 0 1.5rem;
}

.footer h5 {
    color: var(--white);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer a { color: var(--gray-400); }
.footer a:hover { color: var(--white); }

.footer .footer-brand {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 0.75rem;
}

.footer ul { list-style: none; padding: 0; }
.footer ul li { margin-bottom: 0.5rem; }
.footer ul li a { font-size: 0.9rem; }

.footer-bottom {
    border-top: 1px solid var(--gray-800);
    padding-top: 1.5rem;
    margin-top: 2rem;
    font-size: 0.85rem;
}

/* ---- Auth Pages ---- */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1E3A8A 0%, #2563EB 50%, #0891B2 100%);
    padding: 2rem;
}

.auth-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    width: 100%;
    max-width: 460px;
    padding: 2.5rem;
}

.auth-card .auth-logo {
    text-align: center;
    margin-bottom: 1.5rem;
}

.auth-card .auth-logo h2 {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.75rem;
    color: var(--primary);
}

.auth-card .auth-logo p {
    color: var(--gray-500);
    font-size: 0.9rem;
}

.auth-wrapper:has(.login-split) {
    display: block;
    padding: 0;
    background: #fff;
}

.login-split {
    min-height: 100vh;
    height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
    background: #fff;
    overflow: hidden;
}

.login-hero {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 36px 52px 0;
    color: #fff;
    background:
        radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.16), transparent 28%),
        linear-gradient(155deg, #2f7cf6 0%, #1d5fe6 46%, #1a4fd0 100%);
}
.login-hero::before,
.login-hero::after {
    content: "";
    position: absolute;
    border-radius: 40px;
    background: rgba(255, 255, 255, 0.08);
    transform: rotate(32deg);
    pointer-events: none;
}
.login-hero::before { width: 280px; height: 64px; top: 18%; right: -40px; }
.login-hero::after { width: 220px; height: 52px; top: 34%; left: -70px; }

.login-hero-brand {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 14px;
}
.login-hero-brand img {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    object-fit: cover;
    background: #fff;
}
.login-hero-brand span {
    width: 1px;
    height: 36px;
    background: rgba(255, 255, 255, 0.75);
}
.login-hero-brand strong {
    font-family: var(--font-heading);
    font-size: 1.85rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.login-hero h1 {
    position: relative;
    z-index: 1;
    max-width: 520px;
    margin: 36px 0 14px;
    font-family: var(--font-heading);
    font-size: clamp(2.1rem, 3.2vw, 2.85rem);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.03em;
    color: #fff;
}
.login-hero h1 em {
    display: block;
    font-style: normal;
    color: #9fd0ff;
}
.login-hero > p {
    position: relative;
    z-index: 1;
    max-width: 440px;
    margin: 0;
    font-size: 1.02rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.92);
}

.login-points {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 28px;
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
}
.login-points li {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.25;
}
.login-points i {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.16);
    font-size: 0.95rem;
}

.login-hero-art {
    position: relative;
    z-index: 1;
    margin-top: auto;
    flex: 1;
    min-height: 140px;
    pointer-events: none;
}
.login-hero-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    display: block;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 22%);
    mask-image: linear-gradient(to bottom, transparent 0%, #000 22%);
}

.login-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px 28px;
    overflow: auto;
    background: #fff;
}
.login-card {
    width: min(420px, 100%);
}
.login-card-logo {
    text-align: center;
    margin-bottom: 22px;
}
.login-card-logo img {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
}
.login-card-logo h2 {
    margin: 12px 0 6px;
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #1d4ed8;
}
.login-card-logo p {
    margin: 0 auto;
    max-width: 280px;
    font-size: 0.95rem;
    line-height: 1.45;
    color: #94a3b8;
}

.login-form label {
    display: block;
    margin: 0 0 8px;
    font-size: 0.92rem;
    font-weight: 600;
    color: #334155;
}
.login-field {
    position: relative;
    margin-bottom: 18px;
}
.login-field > i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 0.95rem;
    pointer-events: none;
}
.login-field input {
    width: 100%;
    height: 48px;
    padding: 0 44px;
    border: 1px solid #d5dbe3;
    border-radius: 10px;
    background: #fff;
    color: #1e293b;
    font-size: 0.95rem;
}
.login-field input::placeholder { color: #b6c0cc; }
.login-field input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
.login-eye {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
}
.login-eye:hover { color: #475569; }

.login-forgot {
    display: block;
    margin: -6px 0 18px;
    text-align: right;
    font-size: 0.84rem;
    font-weight: 600;
    color: #2563eb;
}
.login-forgot:hover { color: #1d4ed8; }

.login-submit,
.login-face {
    width: 100%;
    height: 48px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.login-submit {
    border: 0;
    background: #1d6fe8;
    color: #fff;
}
.login-submit:hover { background: #185ec8; color: #fff; }
.login-or {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 16px 0;
    color: #94a3b8;
    font-size: 0.85rem;
}
.login-or::before,
.login-or::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}
.login-face {
    border: 1.5px solid #2563eb;
    background: #fff;
    color: #2563eb;
}
.login-face:hover { background: #eff6ff; color: #1d4ed8; }
.login-register {
    margin: 18px 0 0;
    text-align: center;
    font-size: 0.92rem;
    color: #64748b;
}
.login-register a { color: #2563eb; font-weight: 700; }
.login-register a:hover { color: #1d4ed8; }

@media (max-width: 980px) {
    .login-split { grid-template-columns: 1fr; height: auto; overflow: visible; }
    .login-hero { min-height: auto; padding: 28px 24px 0; }
    .login-hero h1 { margin-top: 28px; font-size: 2.2rem; }
    .login-hero-art { height: 160px; }
    .login-panel { padding: 32px 20px 40px; }
}
@media (max-width: 640px) {
    .login-points { gap: 16px; }
    .login-hero h1 { font-size: 1.85rem; }
}

/* ---- Forms ---- */
.form-control, .form-select {
    border-radius: var(--radius);
    border: 1px solid var(--gray-300);
    padding: 0.6rem 0.85rem;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-label {
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--gray-700);
    margin-bottom: 0.35rem;
}

/* ---- Tables ---- */
.table th {
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--gray-500);
    border-bottom: 2px solid var(--gray-200);
}

.table td { vertical-align: middle; font-size: 0.9rem; }

/* ---- Alert / Flash ---- */
.alert {
    border-radius: var(--radius);
    border: none;
    font-size: 0.9rem;
}

.alert-success { background: #DCFCE7; color: #166534; }
.alert-danger { background: #FEE2E2; color: #991B1B; }
.alert-warning { background: #FEF3C7; color: #92400E; }
.alert-info { background: #DBEAFE; color: #1E40AF; }

/* ---- Pagination ---- */
.pagination .page-link {
    color: var(--primary);
    border-radius: var(--radius);
    margin: 0 2px;
    border: 1px solid var(--gray-200);
}

.pagination .page-item.active .page-link {
    background: var(--primary);
    border-color: var(--primary);
}

/* ---- Skill Tags ---- */
.skill-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    background: var(--primary-light);
    color: var(--primary-dark);
    margin: 0.15rem;
}

.skill-tag.required { background: var(--primary-light); color: var(--primary-dark); }
.skill-tag.preferred { background: var(--accent-light); color: #92400E; }

/* ---- Company Logo Grid ---- */
.company-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
}

.company-grid img {
    height: 48px;
    max-width: 120px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s;
}

.company-grid img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* ---- Empty State ---- */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--gray-400);
}

.empty-state i { font-size: 3rem; margin-bottom: 1rem; }
.empty-state h4 { color: var(--gray-500); margin-bottom: 0.5rem; }
.empty-state p { font-size: 0.9rem; }

/* ---- Mobile Responsive ---- */
@media (max-width: 992px) {
    .sidebar { display: none; }
    .dashboard-content { margin-left: 0; }
    .sidebar.show {
        display: block;
        position: fixed;
        z-index: 1050;
    }
    .hero h1 { font-size: 2rem; }
    .hero-stats { gap: 1.5rem; }
    .hero-stats .stat-num { font-size: 1.5rem; }
}

@media (max-width: 768px) {
    .hero { padding: 3rem 0; }
    .hero h1 { font-size: 1.75rem; }
    .hero .search-box { flex-direction: column; }
    .hero .search-box input,
    .hero .search-box select { width: 100%; }
    .hero-stats { flex-direction: column; gap: 1rem; }
    .section { padding: 2.5rem 0; }
    .section-title { font-size: 1.5rem; }
    .dashboard-content { padding: 1rem; }
}

/* ---- Notification bell + dropdown ---- */
.notif-bell { position: relative; display: inline-flex; }
.notif-bell-btn {
    position: relative;
    background: transparent;
    border: 0;
    color: var(--gray-600);
    font-size: 1.15rem;
    line-height: 1;
    width: 38px; height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    cursor: pointer;
    transition: background .15s, color .15s;
}
.notif-bell-btn:hover { background: var(--gray-100); color: var(--primary); }
.notif-bell-btn i { pointer-events: none; }
.notif-bell .notif-badge {
    position: absolute;
    top: 2px; right: 2px;
    min-width: 17px; height: 17px;
    padding: 0 4px;
    font-size: 0.62rem; font-weight: 700;
    color: #fff; background: #DC2626;
    border: 2px solid var(--white);
    border-radius: 999px;
    display: inline-flex; align-items: center; justify-content: center;
}
.notif-menu {
    width: 340px; max-width: 92vw;
    max-height: 460px;
    overflow-x: hidden; overflow-y: auto;
    padding: 0; margin-top: 8px;
    border-radius: var(--radius-lg);
}
.notif-menu-head { display: flex; justify-content: space-between; align-items: center; padding: 0.75rem 1rem; border-bottom: 1px solid var(--gray-100); }
.notif-menu-head strong { font-size: 0.9rem; }
.notif-menu-head a { font-size: 0.78rem; color: var(--primary); text-decoration: none; }
.notif-menu-foot { display: block; text-align: center; padding: 0.7rem; font-size: 0.82rem; color: var(--primary); text-decoration: none; border-top: 1px solid var(--gray-100); font-weight: 600; }
.notif-menu-foot:hover { background: var(--gray-50); }
.notif-item-link { text-decoration: none; color: inherit; display: block; }
.notif-item { display: flex; gap: 0.65rem; padding: 0.7rem 1rem; border-bottom: 1px solid var(--gray-100); }
.notif-item:last-child { border-bottom: 0; }
.notif-item.unread { background: var(--primary-light); }
.notif-item-icon { flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; background: var(--primary-light); color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 0.85rem; }
.notif-item.unread .notif-item-icon { background: var(--white); }
.notif-item-body { min-width: 0; flex: 1; }              /* min-width:0 stops flex overflow */
.notif-item-title { font-size: 0.85rem; font-weight: 600; color: var(--dark); overflow-wrap: anywhere; }
.notif-item-msg { font-size: 0.8rem; color: var(--gray-500); overflow-wrap: anywhere; }
.notif-item-time { font-size: 0.7rem; color: var(--gray-400); margin-top: 3px; }
.notif-empty { text-align: center; color: var(--gray-400); font-size: 0.85rem; padding: 2.5rem 1rem; }
.notif-empty i { font-size: 1.6rem; }

/* ---- Utility ---- */
.text-primary-custom { color: var(--primary) !important; }
.bg-primary-light { background: var(--primary-light) !important; }
.bg-accent-light { background: var(--accent-light) !important; }
.rounded-xl { border-radius: var(--radius-xl) !important; }
.fw-semibold { font-weight: 600 !important; }

/* ---- Sidebar toggle for mobile ---- */
.sidebar-toggle {
    display: none;
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    z-index: 1060;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    border: none;
    box-shadow: var(--shadow-lg);
    font-size: 1.25rem;
}

@media (max-width: 992px) {
    .sidebar-toggle { display: flex; align-items: center; justify-content: center; }
}

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1040;
}

.sidebar-overlay.show { display: block; }

/* ==========================================
   Chat / Messaging Styles
   ========================================== */

/* Sidebar unread badge */
.chat-sidebar-badge {
    background: var(--danger);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 8px;
    min-width: 18px;
    text-align: center;
    display: inline-block;
}

/* Conversation List */
.chat-conversation-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.chat-conversation-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: #fff;
    border-bottom: 1px solid var(--border);
    text-decoration: none;
    color: inherit;
    transition: background 0.15s;
}

.chat-conversation-item:hover {
    background: var(--gray-50);
    color: inherit;
    text-decoration: none;
}

.chat-conversation-item.unread {
    background: #EFF6FF;
}

.chat-conversation-item.unread .chat-partner-name {
    font-weight: 700;
}

.chat-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.chat-avatar-sm {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
}

.chat-conversation-info {
    flex: 1;
    min-width: 0;
}

.chat-conversation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2px;
}

.chat-partner-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text);
}

.chat-time {
    color: var(--text-light);
    font-size: 0.75rem;
    white-space: nowrap;
}

.chat-last-message {
    color: var(--text-light);
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-unread-badge {
    background: var(--primary);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 12px;
    min-width: 22px;
    text-align: center;
    flex-shrink: 0;
}

/* Chat Container (conversation view) */
.chat-container {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 40px);
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.chat-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: #fff;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.chat-header h5 {
    font-size: 1rem;
    font-weight: 600;
}

/* Messages Area */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: #F8FAFC;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.chat-date-divider {
    text-align: center;
    margin: 16px 0 8px;
}

.chat-date-divider span {
    background: #E2E8F0;
    color: var(--text-light);
    font-size: 0.75rem;
    padding: 4px 12px;
    border-radius: 12px;
}

/* Chat Bubbles */
.chat-bubble {
    max-width: 70%;
    padding: 10px 14px;
    border-radius: 16px;
    position: relative;
    word-wrap: break-word;
}

.chat-bubble-sent {
    align-self: flex-end;
    background: var(--primary);
    color: #fff;
    border-bottom-right-radius: 4px;
}

.chat-bubble-received {
    align-self: flex-start;
    background: #fff;
    color: var(--text);
    border: 1px solid var(--border);
    border-bottom-left-radius: 4px;
}

.chat-bubble-content {
    font-size: 0.9rem;
    line-height: 1.5;
}

.chat-bubble-time {
    font-size: 0.65rem;
    opacity: 0.7;
    margin-top: 4px;
    text-align: right;
}

.chat-bubble-received .chat-bubble-time {
    color: var(--text-light);
}

/* Chat Input */
.chat-input {
    padding: 12px 20px;
    background: #fff;
    border-top: 1px solid var(--border);
    flex-shrink: 0;
}

.chat-input-form {
    display: flex;
    gap: 8px;
    align-items: flex-end;
}

.chat-input-form textarea {
    resize: none;
    border-radius: 20px;
    padding: 10px 16px;
    font-size: 0.9rem;
    max-height: 120px;
    border: 1px solid var(--border);
}

.chat-input-form textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

.chat-input-form button {
    border-radius: 50%;
    width: 42px;
    height: 42px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ============================================
   Office Hours & Calendar Styles
   ============================================ */

/* Admin schedule calendar */
.schedule-calendar-header,
.contact-calendar-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    margin-bottom: 2px;
}

.schedule-calendar-day-name,
.contact-calendar-day-name {
    text-align: center;
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--gray-600);
    padding: 8px 4px;
    background: var(--gray-100);
    border-radius: 4px;
}

.schedule-calendar-grid,
.contact-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

.schedule-calendar-cell,
.contact-calendar-cell {
    min-height: 80px;
    border: 1px solid var(--gray-200);
    border-radius: 4px;
    padding: 4px 6px;
    font-size: 0.8rem;
    transition: background-color 0.15s, box-shadow 0.15s;
    position: relative;
}

.schedule-calendar-cell:hover,
.contact-calendar-cell:hover {
    background: var(--primary-light);
    box-shadow: var(--shadow-sm);
}

.schedule-calendar-cell-empty,
.contact-calendar-cell-empty {
    background: transparent;
    border: none;
    min-height: auto;
}

.schedule-calendar-cell-empty:hover,
.contact-calendar-cell-empty:hover {
    background: transparent;
    box-shadow: none;
}

.schedule-cell-date,
.contact-cell-date {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--gray-700);
    margin-bottom: 2px;
}

.schedule-cell-closed,
.contact-cell-closed {
    background: var(--gray-100);
    opacity: 0.7;
}

.schedule-cell-closed:hover,
.contact-cell-closed:hover {
    background: var(--gray-200);
}

.schedule-cell-today,
.contact-cell-today {
    border-color: var(--primary);
    border-width: 2px;
}

.schedule-cell-today .schedule-cell-date,
.contact-cell-today .contact-cell-date {
    color: var(--primary);
}

.schedule-cell-badge {
    font-size: 0.65rem;
    padding: 1px 6px;
    border-radius: 3px;
    display: inline-block;
}

.schedule-cell-staff {
    font-size: 0.7rem;
    color: var(--primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 1px;
}

.contact-cell-label {
    font-size: 0.7rem;
}

.contact-cell-has-staff {
    background: rgba(37, 99, 235, 0.04);
}

.contact-cell-has-staff:hover {
    background: var(--primary-light);
}

/* Staff modal list */
.staff-availability-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    background: var(--gray-50);
    border-radius: var(--radius);
    margin-bottom: 8px;
}

.staff-availability-item .staff-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1rem;
    flex-shrink: 0;
}

.staff-availability-item .staff-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.staff-availability-item .staff-info {
    flex: 1;
    min-width: 0;
}

.staff-availability-item .staff-name {
    font-weight: 600;
    color: var(--gray-800);
    font-size: 0.9rem;
}

.staff-availability-item .staff-time {
    font-size: 0.8rem;
    color: var(--gray-500);
}

.staff-availability-item .staff-notes {
    font-size: 0.8rem;
    color: var(--gray-500);
    font-style: italic;
}

/* Responsive calendar */
@media (max-width: 768px) {
    .schedule-calendar-cell,
    .contact-calendar-cell {
        min-height: 55px;
        padding: 3px 4px;
        font-size: 0.7rem;
    }

    .schedule-cell-date,
    .contact-cell-date {
        font-size: 0.75rem;
    }

    .schedule-cell-staff {
        display: none;
    }

    .schedule-calendar-day-name,
    .contact-calendar-day-name {
        font-size: 0.7rem;
        padding: 4px 2px;
    }
}

/* Sign-in popup shown whenever a guest opens or refreshes a public page */
body.signin-gate-open { overflow: hidden; }

.signin-gate {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    overflow-y: auto;
}

.signin-gate[hidden] { display: none !important; }

.signin-gate-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
}

.signin-gate-card {
    position: relative;
    width: min(460px, 100%);
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.28);
    overflow: hidden;
    margin: auto;
    padding: 44px 36px 0;
}

.signin-gate-close {
    position: absolute;
    top: 8px;
    right: 10px;
    z-index: 2;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #94a3b8;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
}

.signin-gate-close:hover { background: #f1f5f9; color: #0f172a; }

.signin-gate-panel { display: none !important; text-align: center; }
.signin-gate-panel.is-active { display: block !important; }

.signin-gate-panel h2 {
    font-size: 1.85rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #1e293b;
    line-height: 1.25;
    margin: 10px 8px 26px;
}

.signin-gate-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
    min-height: 52px;
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 0.98rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
}

.signin-gate-btn-primary {
    background: #1a73e8;
    color: #fff;
    border: 0;
}

.signin-gate-btn-primary:hover { background: #1765cc; color: #fff; }

.signin-gate-google {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 58px;
    padding: 8px 10px;
    border: 0;
    border-radius: 8px;
    background: #1a73e8;
    color: #fff;
    text-align: left;
    cursor: pointer;
}
.signin-gate-google:hover { background: #1765cc; color: #fff; }
.signin-gate-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #d2e3fc;
    color: #1a73e8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.95rem;
    font-weight: 700;
}
.signin-gate-google-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.2;
}
.signin-gate-google-copy strong {
    font-size: 0.95rem;
    font-weight: 700;
}
.signin-gate-google-copy small {
    font-size: 0.75rem;
    font-weight: 500;
    opacity: 0.95;
}
.signin-gate-google-copy small i {
    font-size: 0.65rem;
    margin-left: 2px;
}
.signin-gate-g {
    margin-left: auto;
    width: 36px;
    height: 36px;
    border-radius: 6px;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.signin-gate-btn-email {
    margin-top: 14px;
    background: #fff;
    color: #1e293b;
    border: 1.5px solid #1e293b;
}

.signin-gate-btn-email:hover { background: #f8fafc; color: #0f172a; }

.signin-gate-icon {
    position: absolute;
    left: 5px;
    top: 5px;
    bottom: 5px;
    width: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 3px;
}

.signin-gate-mail {
    position: absolute;
    left: 14px;
    color: #334155;
    font-size: 1rem;
}

.signin-gate-btn-submit { margin-top: 8px; }

.signin-gate-register {
    margin: 18px 0 12px;
    color: #64748b;
    font-size: 0.95rem;
}

.signin-gate-register a,
.signin-gate-why {
    color: #1e293b;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.signin-gate-why {
    display: inline-block;
    margin: 0 0 8px;
    padding: 0;
    border: 0;
    background: none;
    font-family: var(--font-body);
    font-size: 0.98rem;
    cursor: pointer;
}

.signin-gate-why:hover,
.signin-gate-register a:hover { color: #1a73e8; }

.signin-gate-form { text-align: left; }

.signin-gate-label {
    display: block;
    margin: 0 0 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #334155;
}

.signin-gate-input {
    width: 100%;
    height: 46px;
    margin-bottom: 12px;
    padding: 0 14px;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    font-size: 1rem;
    color: #0f172a;
}

.signin-gate-input:focus {
    outline: none;
    border-color: #1a73e8;
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.15);
}

.signin-gate-alt {
    margin: -4px 0 12px;
    color: #64748b;
    font-size: 0.9rem;
}

.signin-gate-reasons {
    list-style: none;
    text-align: left;
    margin: 0 0 18px;
    padding: 0;
}

.signin-gate-reasons li {
    position: relative;
    padding: 7px 0 7px 22px;
    color: #334155;
}

.signin-gate-reasons li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 14px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #1a73e8;
}

.signin-gate-art {
    position: relative;
    height: 136px;
    margin: 22px -36px 0;
    pointer-events: none;
}

.sg-shape { position: absolute; display: block; }

.sg-left {
    width: 190px;
    height: 190px;
    left: -36px;
    bottom: -104px;
    border-radius: 50%;
    background: #1d4ed8;
}

.sg-right {
    width: 176px;
    height: 176px;
    right: -42px;
    bottom: -98px;
    border-radius: 50%;
    background: #1e40af;
}

.sg-notch {
    width: 82px;
    height: 82px;
    left: 30%;
    bottom: 22px;
    border-radius: 50%;
    background: #2563eb;
    -webkit-mask: radial-gradient(circle at 80% 68%, transparent 26px, #000 27px);
    mask: radial-gradient(circle at 80% 68%, transparent 26px, #000 27px);
}

.sg-ring {
    width: 118px;
    height: 118px;
    left: 48%;
    bottom: -26px;
    border-radius: 50%;
    background: #e01273;
    -webkit-mask: radial-gradient(circle, transparent 32px, #000 33px);
    mask: radial-gradient(circle, transparent 32px, #000 33px);
}

/* Applicant activity: Saved and Applied */
.activity-panel {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: 16px;
    padding: 28px 32px 48px;
    margin-top: 1.5rem;
}

.activity-panel h2 {
    font-family: 'Poppins', 'Inter', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 1.15rem;
}

.activity-tabs {
    display: flex;
    gap: 1.6rem;
}

.activity-tab {
    appearance: none;
    background: none;
    border: 0;
    border-bottom: 3px solid transparent;
    padding: 0 2px 10px;
    margin-bottom: -1px;
    font-weight: 600;
    font-size: 1rem;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    cursor: pointer;
}

.activity-tab:hover { color: #1d4ed8; }
.activity-tab.active {
    color: #1d4ed8;
    border-bottom-color: #1d4ed8;
}

.activity-empty {
    text-align: center;
    padding: 72px 16px 36px;
}

.activity-briefcase {
    display: block;
    margin: 0 auto;
}

.activity-empty h3 {
    margin: 22px 0 8px;
    font-size: 1.2rem;
    font-weight: 700;
    color: #1e293b;
}

.activity-empty p {
    margin: 0 auto;
    max-width: 420px;
    color: #64748b;
    font-size: 1rem;
}

.activity-list {
    list-style: none;
    margin: 8px 0 0;
    padding: 0;
}

.activity-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 16px 2px;
    border-bottom: 1px solid #eef2f7;
}

.activity-job-title {
    font-weight: 600;
    color: #0f172a;
}

.activity-job-meta {
    color: #64748b;
    font-size: 0.9rem;
    margin-top: 3px;
}

.activity-pill {
    color: #166534;
    font-weight: 600;
}

.activity-remove {
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #334155;
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 0.85rem;
    font-weight: 600;
}

.activity-remove:hover {
    border-color: #1d4ed8;
    color: #1d4ed8;
}

.activity-more {
    margin: 14px 0 0;
    font-size: 0.9rem;
}

.searches-page {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: 16px;
    padding: 28px 36px 72px;
    min-height: 560px;
}
.searches-page h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 0.35rem;
}
.searches-note {
    margin: 0;
    color: #64748b;
    font-size: 0.98rem;
}
.searches-note a {
    color: #1d4ed8;
    text-decoration: underline;
}
.searches-empty {
    text-align: center;
    padding: 72px 16px 24px;
}
.searches-empty h3 {
    margin: 18px 0 8px;
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
}
.searches-empty p {
    margin: 0 auto 22px;
    max-width: 420px;
    color: #64748b;
}
.searches-start {
    display: inline-block;
    border: 1.5px solid #1d4ed8;
    color: #1d4ed8;
    background: #fff;
    border-radius: 8px;
    padding: 8px 18px;
    font-weight: 600;
}
.searches-start:hover {
    background: #eff6ff;
    color: #1d4ed8;
}
.searches-list {
    list-style: none;
    margin: 28px 0 0;
    padding: 0;
}
.phone-error {
    margin: 6px 0 0;
    color: #b42318;
    font-size: 0.875rem;
    line-height: 1.4;
}
.phone-error[hidden] { display: none; }
input.phone-invalid { border-color: #b42318 !important; }

.searches-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid #eef2f7;
}

/* Jobseeker Reports */
.jsr { color: #334155; }
.jsr-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 18px;
}
.jsr-title { display: flex; align-items: center; gap: 12px; }
.jsr-title-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #e8f1ff;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    flex-shrink: 0;
}
.jsr-title h1 {
    margin: 0;
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.2;
    color: #1e293b;
}
.jsr-title p { margin: 3px 0 0; font-size: 0.84rem; line-height: 1.4; color: #94a3b8; }
.jsr-crumb { font-size: 0.84rem; color: #94a3b8; white-space: nowrap; padding-top: 8px; }
.jsr-crumb a { color: #64748b; }
.jsr-crumb span { margin: 0 6px; color: #cbd5e1; }

.jsr-filters {
    display: grid;
    grid-template-columns: 1.45fr 1fr 0.75fr 1.05fr 1.05fr auto;
    gap: 14px;
    align-items: end;
    background: #fff;
    border: 1px solid #e8edf5;
    border-radius: 14px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    padding: 16px 18px;
    margin-bottom: 16px;
}
.jsr-filters label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.2;
    color: #64748b;
}
.jsr-dates { display: flex; align-items: center; gap: 8px; }
.jsr-dates span { color: #94a3b8; font-size: 0.9rem; }
.jsr-filters input,
.jsr-filters select {
    width: 100%;
    height: 42px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    color: #334155;
    font-size: 0.875rem;
    padding: 0 10px;
}
.jsr-generate {
    height: 42px;
    border: 0;
    border-radius: 10px;
    background: #2563eb;
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0 16px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.jsr-generate:hover { background: #1d4ed8; color: #fff; }

.jsr-stats {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 16px;
}
.jsr-stat {
    display: block;
    min-height: 124px;
    padding: 16px 14px 14px;
    border-radius: 14px;
    background: #fff;
}
.jsr-stat.total { background: #eef5ff; }
.jsr-stat.male { background: #eef4ff; }
.jsr-stat.female { background: #fdeef6; }
.jsr-stat.employed { background: #e9f8ef; }
.jsr-stat.unemployed { background: #fff6e8; }
.jsr-stat.under { background: #f4eefe; }
.jsr-stat-icon {
    width: 32px;
    height: 32px;
    margin-bottom: 10px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    background: rgba(255, 255, 255, 0.72);
}
.jsr-stat.total .jsr-stat-icon,
.jsr-stat.male .jsr-stat-icon { color: #2563eb; }
.jsr-stat.female .jsr-stat-icon { color: #db2777; }
.jsr-stat.employed .jsr-stat-icon { color: #16a34a; }
.jsr-stat.unemployed .jsr-stat-icon { color: #d97706; }
.jsr-stat.under .jsr-stat-icon { color: #7c3aed; }
.jsr-stat-label { font-size: 0.75rem; font-weight: 600; line-height: 1.3; color: #64748b; }
.jsr-stat-num {
    margin: 4px 0 2px;
    font-family: var(--font-heading);
    font-size: 1.65rem;
    font-weight: 700;
    line-height: 1.1;
    color: #0f172a;
}
.jsr-stat-sub { font-size: 0.72rem; line-height: 1.3; color: #94a3b8; }
.jsr-stat-sub.up { color: #16a34a; font-weight: 600; }
.jsr-stat-sub.down { color: #dc2626; font-weight: 600; }

.jsr-charts {
    display: grid;
    grid-template-columns: 0.9fr 1.25fr 1.05fr;
    gap: 14px;
    margin-bottom: 16px;
}
.jsr-card {
    background: #fff;
    border: 1px solid #e8edf5;
    border-radius: 14px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    padding: 18px 18px 14px;
}
.jsr-card h2 {
    margin: 0 0 12px;
    font-family: var(--font-heading);
    font-size: 0.98rem;
    font-weight: 600;
    line-height: 1.3;
    color: #1e293b;
}
.jsr-chart { height: 240px; position: relative; }
.jsr-chart canvas { width: 100% !important; height: 100% !important; }
.jsr-empty { margin: 28px 0; text-align: center; color: #94a3b8; font-size: 0.875rem; }

.jsr-list { padding-bottom: 8px; }
.jsr-list-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}
.jsr-list-head h2 { display: flex; align-items: center; gap: 8px; margin-bottom: 0; }
.jsr-list-head h2 i { color: #2563eb; font-size: 0.95rem; }
.jsr-exports { display: flex; flex-wrap: wrap; gap: 8px; }
.jsr-export {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 34px;
    padding: 0 12px;
    border: 0;
    border-radius: 8px;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1;
}
.jsr-export.excel { background: #16a34a; }
.jsr-export.pdf { background: #ef4444; }
.jsr-export.print { background: #2563eb; }
.jsr-export:hover { color: #fff; filter: brightness(0.95); }

.jsr-table { width: 100%; border-collapse: collapse; font-size: 0.84rem; }
.jsr-table th {
    text-align: left;
    padding: 12px 14px;
    background: #f8fafc;
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    border-bottom: 1px solid #eef2f7;
}
.jsr-table td {
    padding: 13px 14px;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
    vertical-align: middle;
    white-space: nowrap;
}
.jsr-table tbody tr:hover { background: #f8fafc; }
.jsr-code { color: #64748b; font-variant-numeric: tabular-nums; }
.jsr-skills { max-width: 220px; white-space: normal; }
.jsr-pill {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
}
.jsr-pill.employed { background: #dcfce7; color: #166534; }
.jsr-pill.unemployed { background: #ffedd5; color: #c2410c; }
.jsr-pill.underemployed { background: #f3e8ff; color: #6b21a8; }
.jsr-action {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #eff6ff;
    color: #2563eb;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.jsr-action:hover { background: #2563eb; color: #fff; }

.jsr-pager {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 14px 14px 8px;
}
.jsr-pager p { margin: 0; font-size: 0.8rem; color: #64748b; }
.jsr-pager-controls { display: flex; align-items: center; gap: 10px; }
.jsr-pager nav { display: flex; align-items: center; gap: 4px; }
.jsr-pager nav a,
.jsr-ellipsis {
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #475569;
    font-size: 0.8rem;
    font-weight: 600;
}
.jsr-pager nav a.is-current { background: #2563eb; color: #fff; }
.jsr-pager nav a.is-disabled { color: #cbd5e1; pointer-events: none; }
.jsr-per select {
    height: 32px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: #475569;
    font-size: 0.8rem;
    padding: 0 8px;
    background: #fff;
}

@media (max-width: 1200px) {
    .jsr-filters { grid-template-columns: 1fr 1fr 1fr; }
    .jsr-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .jsr-charts { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
    .jsr-top, .jsr-list-head, .jsr-pager { flex-direction: column; align-items: stretch; }
    .jsr-filters, .jsr-stats { grid-template-columns: 1fr; }
    .jsr-crumb { padding-top: 0; }
}

@media print {
    .sidebar, .sidebar-overlay, .content-topbar, .sidebar-toggle,
    .jsr-filters, .jsr-exports, .jsr-pager, .jsr-action { display: none !important; }
    .dashboard-content { margin: 0 !important; padding: 0 !important; }
    .jsr-card, .jsr-stat { break-inside: avoid; box-shadow: none; }
}

/* Formal PESO admin dashboard */
.peso-board { color: #334155; }
.peso-board-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
    margin-bottom: 22px;
}
.peso-board-head h1 {
    margin: 0;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
    color: #0f172a;
}
.peso-board-head p {
    margin: 4px 0 0;
    font-size: 0.875rem;
    color: #64748b;
}
.peso-board-head time {
    font-size: 0.84rem;
    font-weight: 600;
    color: #64748b;
    white-space: nowrap;
}

.peso-kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 16px;
}
.peso-kpi {
    display: block;
    min-height: 132px;
    padding: 16px 16px 14px;
    border-radius: 14px;
    color: inherit;
    text-decoration: none;
}
.peso-kpi:hover { color: inherit; transform: translateY(-1px); }
.peso-kpi.seekers { background: #eef5ff; }
.peso-kpi.employers { background: #e9f8ef; }
.peso-kpi.jobs { background: #fff6e8; }
.peso-kpi.applications { background: #f4eefe; }
.peso-kpi-icon {
    width: 34px;
    height: 34px;
    margin-bottom: 12px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.75);
    font-size: 0.95rem;
}
.peso-kpi.seekers .peso-kpi-icon { color: #2563eb; }
.peso-kpi.employers .peso-kpi-icon { color: #16a34a; }
.peso-kpi.jobs .peso-kpi-icon { color: #d97706; }
.peso-kpi.applications .peso-kpi-icon { color: #7c3aed; }
.peso-kpi-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: #64748b;
}
.peso-kpi strong {
    display: block;
    margin-top: 4px;
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.1;
    color: #0f172a;
}

.peso-panel {
    background: #fff;
    border: 1px solid #e8edf5;
    border-radius: 14px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    padding: 18px 18px 16px;
    margin-bottom: 16px;
}
.peso-panel-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 14px;
}
.peso-panel h2,
.peso-chart-card h3 {
    margin: 0;
    font-family: var(--font-heading);
    font-weight: 600;
    color: #1e293b;
}
.peso-panel h2 { font-size: 1rem; line-height: 1.3; }
.peso-panel-head p { margin: 3px 0 0; font-size: 0.8rem; color: #94a3b8; }

.peso-record {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border: 1px solid #eef2f7;
    border-radius: 12px;
    overflow: hidden;
}
.peso-record > a,
.peso-record > div {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    border-right: 1px solid #eef2f7;
    color: inherit;
    text-decoration: none;
    background: #fff;
}
.peso-record > :last-child { border-right: 0; }
.peso-record > a:hover { background: #f8fafc; }
.peso-record-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.95rem;
}
.peso-record-icon.openings { background: #e8f1ff; color: #2563eb; }
.peso-record-icon.today { background: #e7f8ee; color: #16a34a; }
.peso-record-icon.month { background: #f3eefe; color: #7c3aed; }
.peso-record-icon.waiting { background: #fff6e8; color: #d97706; }
.peso-record-copy { min-width: 0; }
.peso-record-copy span {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    line-height: 1.3;
}
.peso-record strong {
    display: block;
    margin-top: 6px;
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1;
    color: #0f172a;
}

.peso-year-form { display: flex; align-items: center; gap: 8px; }
.peso-year-form label { margin: 0; font-size: 0.75rem; font-weight: 600; color: #64748b; }
.peso-year-form select {
    height: 36px;
    min-width: 92px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    color: #334155;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0 10px;
}
.peso-year {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin: 0 0 16px;
}
.peso-year div {
    padding: 12px 14px;
    border-radius: 10px;
    background: #f8fafc;
}
.peso-year dt { font-size: 0.75rem; font-weight: 600; color: #64748b; }
.peso-year dd {
    margin: 4px 0 0;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.1;
    color: #0f172a;
}
.peso-chart-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 14px;
}
.peso-chart-wide { grid-column: 1 / -1; }
.peso-chart-card {
    border: 1px solid #eef2f7;
    border-radius: 12px;
    padding: 16px;
}
.peso-chart-card h3 { font-size: 0.92rem; margin-bottom: 12px; }
.peso-chart { position: relative; height: 240px; }
.peso-chart-line { height: 260px; }
.peso-chart-short { height: 200px; }
.peso-chart canvas { width: 100% !important; height: 100% !important; }
.peso-empty { margin: 24px 0; text-align: center; color: #94a3b8; font-size: 0.875rem; }

@media (max-width: 1100px) {
    .peso-kpis, .peso-year { grid-template-columns: 1fr 1fr; }
    .peso-record { grid-template-columns: 1fr 1fr; }
    .peso-record > a,
    .peso-record > div { border-bottom: 1px solid #eef2f7; }
    .peso-chart-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
    .peso-board-head, .peso-panel-head { flex-direction: column; align-items: stretch; }
    .peso-kpis, .peso-year, .peso-record { grid-template-columns: 1fr; }
}

.peso-embed {
    margin-top: 28px;
    padding-top: 8px;
    scroll-margin-top: 16px;
}
.peso-embed .dashboard-header h2 {
    margin-bottom: 0.25rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
}

/* PESO admin shell — matches the navy sidebar reference on every admin page */
body.peso-shell { background: #f4f7fb; }
body.peso-shell .sidebar {
    display: flex;
    flex-direction: column;
    width: 252px;
    padding: 0;
    background: #0e2744;
    border-right: 0;
    color: #d7e0ea;
    overflow: hidden;
}
body.peso-shell .sidebar .sidebar-brand {
    height: 72px;
    margin: 0;
    padding: 0 18px;
    border-bottom: 0;
    flex-shrink: 0;
}
body.peso-shell .sidebar .sidebar-brand a { color: #fff; font-size: 1.15rem; gap: 10px; }
body.peso-shell .sidebar .sidebar-brand img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    object-fit: cover;
}
body.peso-shell .sidebar .sidebar-brand small { color: rgba(255, 255, 255, 0.62); font-size: 0.72rem; }
body.peso-shell .sidebar .nav {
    flex: 1 1 auto;
    min-height: 0;
    min-width: 0;
    width: 100%;
    flex-direction: column;
    flex-wrap: nowrap;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 4px 0 12px;
    margin: 0;
}
body.peso-shell .sidebar .nav-item { padding: 0 12px; min-width: 0; max-width: 100%; }
body.peso-shell .sidebar .nav-link {
    min-width: 0;
    max-width: 100%;
    color: #d5deea;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.62rem 0.85rem;
    border-radius: 10px;
    margin-bottom: 2px;
}
body.peso-shell .sidebar .nav-link i { color: inherit; font-size: 0.95rem; }
body.peso-shell .sidebar .nav-link:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
body.peso-shell .sidebar .nav-link.active { background: #2563eb; color: #fff !important; }
body.peso-shell .sidebar .nav-sublink {
    display: block;
    max-width: calc(100% - 50px);
    margin: 0 12px 4px 38px;
    padding: 0.4rem 0.75rem;
    border-radius: 8px;
    color: rgba(215, 224, 234, 0.85);
    font-size: 0.82rem;
}
body.peso-shell .sidebar .nav-sublink:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
body.peso-shell .sidebar .nav-sublink.active { background: transparent; color: #fff; font-weight: 600; }
body.peso-shell .sidebar .sidebar-section {
    padding: 1rem 1.35rem 0.35rem;
    color: rgba(255, 255, 255, 0.42);
    letter-spacing: 0.08em;
}
body.peso-shell .sidebar .chat-sidebar-badge { background: #ef4444; }
body.peso-shell .sidebar-foot {
    flex-shrink: 0;
    margin: 8px 14px 16px;
    padding: 14px 12px 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
body.peso-shell .sidebar-foot strong {
    display: block;
    color: #fff;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.35;
}
body.peso-shell .sidebar-foot span {
    display: block;
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.72rem;
    line-height: 1.35;
}

body.peso-shell .dashboard-content {
    margin-left: 252px;
    padding: 1.35rem 1.6rem 2.5rem;
    background: #f4f7fb;
}
body.peso-shell .content-topbar {
    height: 64px;
    margin: -1.35rem -1.6rem 1.35rem;
    padding: 0 1.15rem;
    border-bottom: 1px solid #e7edf5;
    background: #fff;
}
body.peso-shell .shell-menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: static;
    width: 40px;
    height: 40px;
    margin: 0;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #334155;
    box-shadow: none;
    font-size: 1.05rem;
    cursor: pointer;
}
body.peso-shell .shell-menu-btn:hover { background: #f1f5f9; color: #0f172a; }
body.peso-shell .content-topbar .topbar-actions { margin-left: auto; gap: 0.35rem; }
body.peso-shell .topbar-account .topbar-user {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    padding: 0.25rem 0.7rem 0.25rem 0.3rem;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    background: #fff;
    color: #0f172a;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
}
body.peso-shell .topbar-account .topbar-user:hover,
body.peso-shell .topbar-account .topbar-user.show { border-color: #cbd5e1; color: #0f172a; }
body.peso-shell .topbar-caret { font-size: 0.65rem; color: #94a3b8; }
body.peso-shell .topbar-account .dropdown-menu {
    min-width: 200px;
    margin-top: 0.45rem;
    padding: 0.35rem;
    border: 1px solid #e8edf5;
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
}
body.peso-shell .topbar-account .dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    border-radius: 8px;
    padding: 0.5rem 0.7rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: #334155;
}
body.peso-shell .topbar-account .dropdown-item i { width: 16px; text-align: center; color: #64748b; }
body.peso-shell .topbar-account .dropdown-item:hover { background: #f1f5f9; color: #1d4ed8; }
body.peso-shell .topbar-account .dropdown-item:hover i { color: #1d4ed8; }
body.peso-shell .topbar-account .dropdown-item.topbar-logout:hover { background: #fee2e2; color: #dc2626; }
body.peso-shell .topbar-account .dropdown-item.topbar-logout:hover i { color: #dc2626; }
body.peso-shell .notif-bell-btn { color: #475569; }
body.peso-shell .notif-bell-btn:hover { background: #f1f5f9; color: #1d4ed8; }

body.peso-shell .dashboard-header h1 { color: #0f172a; letter-spacing: -0.02em; }
body.peso-shell .card {
    border: 1px solid #e8edf5;
    border-radius: 14px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
body.peso-shell .card-header {
    background: #fff;
    border-bottom: 1px solid #eef2f7;
    color: #1e293b;
}
body.peso-shell .table thead th { color: #64748b; background: #f8fafc; }

body.peso-shell .peso-board-head h1 { font-size: 1.65rem; letter-spacing: -0.02em; }
body.peso-shell .peso-board-head time { display: inline-flex; align-items: center; gap: 8px; color: #64748b; }
body.peso-shell .peso-panel h2 i { margin-right: 8px; color: #2563eb; font-size: 0.95rem; }
body.peso-shell .peso-kpi { border-radius: 16px; box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03); }
body.peso-shell .peso-embed .card { box-shadow: none; }

@media (max-width: 992px) {
    body.peso-shell .dashboard-content { margin-left: 0; }
    body.peso-shell .sidebar { display: none; }
    body.peso-shell .sidebar.show {
        display: flex;
        z-index: 1050;
        overflow: hidden;
    }
}
@media (max-width: 768px) {
    body.peso-shell .dashboard-content { padding: 1rem; }
    body.peso-shell .content-topbar { margin: -1rem -1rem 1rem; padding: 0 0.75rem; }
    body.peso-shell .topbar-office { display: none; }
}

body.peso-shell .dashboard-header { margin-bottom: 1.25rem; }
body.peso-shell .dashboard-header h1 { font-size: 1.65rem; font-weight: 700; }
body.peso-shell .dashboard-header p { color: #64748b; font-size: 0.95rem; }
body.peso-shell .stat-card {
    border: 0;
    border-radius: 16px;
    min-height: 108px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
body.peso-shell .row > [class*="col-"]:nth-child(4n+1) > .stat-card { background: #eef5ff; }
body.peso-shell .row > [class*="col-"]:nth-child(4n+2) > .stat-card { background: #e9f8ef; }
body.peso-shell .row > [class*="col-"]:nth-child(4n+3) > .stat-card { background: #fff6e8; }
body.peso-shell .row > [class*="col-"]:nth-child(4n+4) > .stat-card { background: #f4eefe; }
body.peso-shell .stat-card:hover { border-color: transparent; box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06); }
body.peso-shell .stat-icon { width: 42px; height: 42px; border-radius: 12px; font-size: 1rem; background: rgba(255, 255, 255, 0.8) !important; }
body.peso-shell .btn { border-radius: 10px; font-weight: 600; }
body.peso-shell .btn-primary { background: #2563eb; border-color: #2563eb; }
body.peso-shell .btn-primary:hover { background: #1d4ed8; border-color: #1d4ed8; }
body.peso-shell .btn-outline-primary { color: #2563eb; border-color: #2563eb; }
body.peso-shell .btn-outline-primary:hover { background: #eff6ff; color: #1d4ed8; }
body.peso-shell .form-control,
body.peso-shell .form-select {
    border-radius: 10px;
    border-color: #d5dbe3;
    min-height: 42px;
}
body.peso-shell .form-control:focus,
body.peso-shell .form-select:focus { border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12); }
body.peso-shell .alert { border: 0; border-radius: 12px; }
body.peso-shell .topbar-office { color: #64748b; letter-spacing: 0.04em; }

.skill-drops { display: flex; flex-direction: column; gap: 8px; }
.skill-drop {
    border: 1px solid #e8edf5;
    border-radius: 12px;
    background: #fff;
}
.skill-drop summary {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    cursor: pointer;
    list-style: none;
    font-weight: 600;
    color: #1e293b;
}
.skill-drop summary::-webkit-details-marker { display: none; }
.skill-drop summary::marker { content: ""; }
.skill-drop-count {
    margin-left: auto;
    font-style: normal;
    font-weight: 500;
    font-size: 0.8rem;
    color: #64748b;
}
.skill-drop summary i { color: #94a3b8; font-size: 0.75rem; transition: transform 0.15s ease; }
.skill-drop[open] summary i { transform: rotate(180deg); }
.skill-drop[open] summary { border-bottom: 1px solid #eef2f7; }
.skill-drop-body { padding: 12px 14px 8px; }

.reg-summary dt { color: #64748b; font-size: 0.82rem; margin-bottom: 2px; }
.reg-summary dd { margin-bottom: 12px; font-weight: 600; color: #0f172a; }

.reg-split { grid-template-columns: minmax(280px, 0.9fr) minmax(420px, 1.1fr); }
.reg-split .login-panel {
    align-items: flex-start;
    justify-content: center;
    padding: 40px 36px 56px;
    overflow-x: hidden;
    overflow-y: auto;
    background: #fff;
}
.reg-split .login-card { width: min(560px, 100%); }
.reg-intro {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 28px;
}
.reg-intro img {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    flex: none;
}
.reg-intro h2 {
    margin: 0 0 6px;
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: #1a1a1a;
}
.reg-intro p { margin: 0; color: #666; font-size: 1rem; line-height: 1.5; }
.reg-form { display: flex; flex-direction: column; }
.reg-block { margin: 0 0 8px; padding-top: 22px; border-top: 1px solid #e6ebf2; }
.reg-block h2 {
    margin: 0 0 4px;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
    color: #1a1a1a;
}
.reg-hint, .reg-field .hint {
    display: block;
    margin: 0 0 14px;
    color: #666;
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.45;
}
.reg-field .hint { margin: 2px 0 0; }
.reg-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.reg-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.reg-field > span,
.reg-field > label {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
    color: #1a1a1a;
}
.reg-field.span-2 { grid-column: 1 / -1; }
.reg-split .form-control,
.reg-split .form-select {
    width: 100%;
    height: 48px;
    min-height: 48px;
    padding: 0 12px;
    border: 1px solid #d5dbe3;
    border-radius: 10px;
    background: #fff;
    color: #1e293b;
    font-size: 1rem;
}
.reg-split .form-control::placeholder { color: #b6c0cc; }
.reg-split .form-control:focus,
.reg-split .form-select:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
.reg-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.reg-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 10px 14px;
    border: 1px solid #d5dbe3;
    border-radius: 10px;
    background: #fff;
    color: #334155;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.3;
    cursor: pointer;
}
.reg-check input { width: 16px; height: 16px; margin: 0; accent-color: #1d6fe8; flex: none; }
.reg-check:has(input:checked) {
    border-color: #2563eb;
    background: #eff6ff;
    color: #1d4ed8;
}
.reg-panel {
    margin-top: 14px;
    padding: 16px;
    border: 1px solid #e6ebf2;
    border-radius: 12px;
    background: #f8fafc;
}
.reg-panel > .reg-hint { margin-bottom: 10px; }
.reg-panel > .reg-field,
.reg-panel > .reg-fields,
.reg-panel > .form-control { margin-top: 14px; }
.reg-questions { display: flex; flex-direction: column; gap: 18px; margin-top: 20px; }
.reg-pref {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 0 0 14px;
    padding: 16px;
    border: 1px solid #e6ebf2;
    border-radius: 12px;
    background: #f8fafc;
}
.reg-pref header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: #1a1a1a;
}
.reg-pref header span {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #1d6fe8;
    color: #fff;
    font-size: 0.85rem;
}
.reg-lang-wrap {
    border: 1px solid #e6ebf2;
    border-radius: 12px;
    overflow-x: auto;
    background: #fff;
}
.reg-lang { width: 100%; border-collapse: collapse; margin: 0; }
.reg-lang th, .reg-lang td { padding: 12px 10px; border-bottom: 1px solid #eef2f7; vertical-align: middle; }
.reg-lang thead th {
    background: #f8fafc;
    color: #64748b;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-align: center;
}
.reg-lang thead th:first-child, .reg-lang tbody th { text-align: left; color: #1a1a1a; font-size: 0.95rem; }
.reg-lang tbody tr:last-child th, .reg-lang tbody tr:last-child td { border-bottom: 0; }
.reg-lang td { text-align: center; }
.reg-lang input[type="checkbox"] { width: 18px; height: 18px; accent-color: #1d6fe8; }
.reg-lang .form-control { margin-top: 8px; height: 42px; min-height: 42px; }
.reg-split [hidden] { display: none !important; }
.reg-split .login-submit { margin-top: 12px; }
.reg-split .alert { border: 0; border-radius: 12px; }
@media (max-width: 980px) {
    .reg-split { grid-template-columns: 1fr; }
    .reg-split .login-panel { padding: 28px 20px 48px; }
}
@media (max-width: 640px) {
    .reg-fields { grid-template-columns: 1fr; }
    .reg-field.span-2 { grid-column: auto; }
    .reg-intro h2 { font-size: 1.45rem; }
}

.admin-co { color: #0f2744; }
.admin-co-head { display: flex; align-items: flex-start; gap: 14px; margin: 4px 0 18px; }
.admin-co-head-icon {
    width: 46px; height: 46px; border-radius: 14px; background: #e8f1fc; color: #2563eb;
    display: inline-flex; align-items: center; justify-content: center; font-size: 1.15rem; flex: 0 0 auto;
}
.admin-co-head h1 { margin: 0; font-size: 1.65rem; font-weight: 800; letter-spacing: -0.02em; }
.admin-co-head p { margin: 4px 0 0; color: #64748b; font-size: 0.92rem; }
.admin-co-card {
    background: #fff; border: 1px solid #e8eef5; border-radius: 16px;
    box-shadow: 0 1px 2px rgba(15, 39, 68, 0.04); margin-bottom: 18px; overflow: hidden;
}
.admin-co-card-head {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 16px 18px; flex-wrap: wrap;
}
.admin-co-card-head h2 {
    margin: 0; font-size: 1.02rem; font-weight: 800; display: flex; align-items: center; gap: 8px;
}
.admin-co-card-head h2 i { color: #64748b; font-size: 0.95rem; }
.admin-co-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.admin-co-search, .admin-co-select {
    display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px;
    border: 1px solid #e2e8f0; border-radius: 10px; background: #fff; color: #64748b;
}
.admin-co-search input, .admin-co-select select {
    border: 0; outline: none; background: transparent; color: #0f2744; font-size: 0.88rem; min-width: 0;
}
.admin-co-search input { width: 220px; }
.admin-co-select select { cursor: pointer; }
.admin-co-filter { position: relative; }
.admin-co-filter-btn, .admin-co-view, .admin-co-approve, .admin-co-reject, .admin-co-page {
    height: 36px; border-radius: 10px; font-weight: 700; font-size: 0.84rem;
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    cursor: pointer; text-decoration: none; padding: 0 12px; background: #fff;
}
.admin-co-filter-btn { border: 1px solid #e2e8f0; color: #334155; }
.admin-co-filter-btn:hover, .admin-co-view:hover { border-color: #93c5fd; color: #2563eb; }
.admin-co-filter-menu {
    position: absolute; right: 0; top: calc(100% + 6px); z-index: 5; min-width: 180px;
    background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 6px;
    box-shadow: 0 10px 24px rgba(15, 39, 68, 0.08);
}
.admin-co-filter-menu button {
    display: block; width: 100%; text-align: left; border: 0; background: transparent;
    border-radius: 8px; padding: 8px 10px; color: #334155; font-weight: 650; cursor: pointer;
}
.admin-co-filter-menu button.is-active, .admin-co-filter-menu button:hover { background: #eff6ff; color: #2563eb; }
.admin-co-empty { text-align: center; padding: 42px 16px 48px; }
.admin-co-empty svg { width: 150px; height: 100px; }
.admin-co-empty h3 { margin: 8px 0 4px; font-size: 1.05rem; font-weight: 800; }
.admin-co-empty p, .admin-co-none { margin: 0; color: #64748b; }
.admin-co-none { text-align: center; padding: 18px; }
.admin-co-table-wrap { overflow-x: auto; }
.admin-co-table { width: 100%; border-collapse: collapse; min-width: 860px; }
.admin-co-table td small { white-space: nowrap; }
.admin-co-table th {
    text-align: left; font-size: 0.72rem; letter-spacing: 0.04em; text-transform: uppercase;
    color: #94a3b8; font-weight: 700; background: #f8fafc; padding: 10px 14px; border-top: 1px solid #eef2f6; white-space: nowrap;
}
.admin-co-table td { padding: 12px 14px; border-top: 1px solid #eef2f6; vertical-align: middle; color: #334155; font-size: 0.9rem; white-space: nowrap; }
.admin-co-table th.is-end, .admin-co-table td.is-end { text-align: right; }
.admin-co-table small { color: #64748b; }
.admin-co-company { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font-weight: 700; }
.admin-co-company img {
    width: 32px; height: 32px; border-radius: 8px; object-fit: cover; border: 1px solid #e6edf5; background: #f8fafc; flex: 0 0 auto;
}
.admin-co-company:hover strong { color: #2563eb; }
.admin-co-jobs {
    width: 26px; height: 26px; border-radius: 50%; background: #2563eb; color: #fff;
    display: inline-flex; align-items: center; justify-content: center; font-size: 0.78rem; font-weight: 800;
}
.admin-co-actions { display: inline-flex; align-items: center; justify-content: flex-end; gap: 6px; flex-wrap: wrap; }
.admin-co-actions form { margin: 0; }
.admin-co-view { border: 1px solid #bfdbfe; color: #2563eb; }
.admin-co-approve { border: 0; background: #16a34a; color: #fff; }
.admin-co-approve:hover { background: #15803d; }
.admin-co-reject { border: 1px solid #fecaca; color: #dc2626; }
.admin-co-wait { color: #64748b; font-size: 0.82rem; }
.admin-co-foot {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 12px 18px 14px; color: #64748b; font-size: 0.86rem;
}
.admin-co-pages { display: flex; gap: 6px; }
.admin-co-page { width: 34px; padding: 0; border: 1px solid #e2e8f0; color: #334155; }
.admin-co-page.is-current { background: #2563eb; border-color: #2563eb; color: #fff; }
.admin-co-page:disabled { opacity: 0.45; cursor: default; }
.admin-co-review { padding: 16px 18px 18px; border-top: 1px solid #eef2f6; }
.admin-co-review-top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.admin-co-review p { margin: 4px 0 0; color: #64748b; font-size: 0.86rem; }
.admin-co-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.admin-co-photos figure { margin: 0; text-align: center; }
.admin-co-photos figcaption { color: #64748b; font-size: 0.78rem; font-weight: 700; margin-bottom: 6px; }
.admin-co-photos img { width: 100%; max-height: 260px; object-fit: contain; background: #f8fafc; border: 1px solid #e8eef5; border-radius: 12px; }
.admin-co-status { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 4px 10px; font-size: 0.78rem; font-weight: 800; }
.admin-co-status.is-verified { background: #dcfce7; color: #166534; }
.admin-co-status.is-rejected { background: #fee2e2; color: #b91c1c; }
.admin-co-note { margin: 12px 18px 0; background: #eff6ff; color: #1e3a8a; border-radius: 10px; padding: 10px 12px; font-size: 0.86rem; }
@media (max-width: 720px) {
    .admin-co-search input { width: 150px; }
    .admin-co-card-head { align-items: stretch; }
    .admin-co-photos { grid-template-columns: 1fr; }
}

.admin-jobs { color: #0f2744; }
.admin-jobs-head { display: flex; align-items: flex-start; gap: 14px; margin: 4px 0 16px; }
.admin-jobs-head-icon {
    width: 46px; height: 46px; border-radius: 50%; background: #e8f1fc; color: #2563eb;
    display: inline-flex; align-items: center; justify-content: center; font-size: 1.05rem; flex: 0 0 auto;
}
.admin-jobs-head h1 { margin: 0; font-size: 1.65rem; font-weight: 800; letter-spacing: -0.02em; }
.admin-jobs-head p { margin: 4px 0 0; color: #64748b; font-size: 0.92rem; }
.admin-jobs-toolbar {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    background: #fff; border: 1px solid #e8eef5; border-radius: 16px; padding: 14px;
    box-shadow: 0 1px 2px rgba(15, 39, 68, 0.04); margin-bottom: 16px;
}
.admin-jobs-search { position: relative; flex: 1 1 240px; }
.admin-jobs-search i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: #94a3b8; }
.admin-jobs-search input, .admin-jobs-toolbar select, .admin-jobs-per select {
    height: 42px; border: 1px solid #e2e8f0; border-radius: 10px; background: #fff; color: #0f2744; font-size: 0.9rem;
}
.admin-jobs-search input { width: 100%; padding: 0 12px 0 36px; }
.admin-jobs-toolbar select { min-width: 140px; padding: 0 12px; }
.admin-jobs-filter, .admin-jobs-reset, .admin-jobs-act, .admin-jobs-page {
    height: 42px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    font-weight: 700; font-size: 0.9rem; text-decoration: none; cursor: pointer;
}
.admin-jobs-filter { border: 0; background: #2563eb; color: #fff; padding: 0 18px; }
.admin-jobs-filter:hover { background: #1d4ed8; color: #fff; }
.admin-jobs-reset { border: 1px solid #e2e8f0; background: #fff; color: #334155; padding: 0 16px; }
.admin-jobs-reset:hover { border-color: #93c5fd; color: #2563eb; }
.admin-jobs-card {
    background: #fff; border: 1px solid #e8eef5; border-radius: 16px;
    box-shadow: 0 1px 2px rgba(15, 39, 68, 0.04); overflow: hidden;
}
.admin-jobs-card-head, .admin-jobs-foot {
    display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px;
}
.admin-jobs-card-head h2 { margin: 0; font-size: 1.05rem; font-weight: 800; }
.admin-jobs-card-head p, .admin-jobs-foot { margin: 2px 0 0; color: #64748b; font-size: 0.86rem; }
.admin-jobs-per select { height: 36px; padding: 0 10px; border-radius: 10px; }
.admin-jobs-table-wrap { overflow-x: auto; }
.admin-jobs-table { width: 100%; border-collapse: collapse; min-width: 980px; }
.admin-jobs-table th {
    text-align: left; font-size: 0.72rem; letter-spacing: 0.04em; text-transform: uppercase;
    color: #94a3b8; font-weight: 700; background: #f8fafc; padding: 10px 12px; white-space: nowrap;
}
.admin-jobs-table td { padding: 12px; border-top: 1px solid #eef2f6; vertical-align: middle; color: #334155; font-size: 0.9rem; }
.admin-jobs-table th.is-num, .admin-jobs-table td.is-num { width: 36px; color: #94a3b8; text-align: center; }
.admin-jobs-table th.is-end, .admin-jobs-table td.is-end { text-align: right; white-space: nowrap; }
.admin-jobs-title { color: #2563eb; font-weight: 700; text-decoration: none; }
.admin-jobs-title:hover { text-decoration: underline; }
.admin-jobs-company { display: inline-flex; align-items: center; gap: 10px; }
.admin-jobs-company img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; border: 1px solid #e6edf5; background: #f8fafc; }
.admin-jobs-company strong, .admin-jobs-date { display: block; color: #0f2744; font-weight: 700; white-space: nowrap; }
.admin-jobs-company small, .admin-jobs-table td small { color: #94a3b8; font-size: 0.78rem; }
.admin-jobs-type, .admin-jobs-slots, .admin-jobs-status {
    display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 4px 10px;
    font-size: 0.78rem; font-weight: 800; white-space: nowrap;
}
.admin-jobs-type.is-full-time { background: #dcfce7; color: #166534; }
.admin-jobs-type.is-part-time { background: #fef3c7; color: #92400e; }
.admin-jobs-type.is-contract, .admin-jobs-type.is-temporary, .admin-jobs-type.is-internship { background: #e0e7ff; color: #3730a3; }
.admin-jobs-loc { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.admin-jobs-loc i { color: #94a3b8; }
.admin-jobs-slots { background: #dbeafe; color: #1d4ed8; }
.admin-jobs-slots.is-full { background: #fee2e2; color: #b91c1c; }
.admin-jobs-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.admin-jobs-status.is-open { background: #dcfce7; color: #166534; }
.admin-jobs-status.is-closed { background: #fee2e2; color: #b91c1c; }
.admin-jobs-status.is-draft { background: #f1f5f9; color: #475569; }
.admin-jobs-act {
    width: 34px; height: 34px; border: 1px solid #bfdbfe; background: #fff; color: #2563eb; padding: 0;
}
.admin-jobs-act:hover { background: #eff6ff; color: #1d4ed8; }
.admin-jobs-note {
    margin: 12px 16px 14px; background: #eff6ff; color: #1e3a8a; border-radius: 10px; padding: 10px 12px; font-size: 0.86rem;
}
.admin-jobs-note i { margin-right: 6px; }
.admin-jobs-empty { text-align: center; color: #64748b; padding: 28px 12px !important; }
.admin-jobs-pages { display: flex; gap: 6px; }
.admin-jobs-page { width: 34px; height: 34px; padding: 0; border: 1px solid #e2e8f0; background: #fff; color: #334155; }
.admin-jobs-page.is-current { background: #2563eb; border-color: #2563eb; color: #fff; }
.admin-jobs-page.is-disabled { opacity: 0.45; pointer-events: none; }
@media (max-width: 720px) {
    .admin-jobs-toolbar { align-items: stretch; }
    .admin-jobs-filter, .admin-jobs-reset { justify-content: center; }
}

.admin-apps { color: #0f2744; }
.admin-apps-head { display: flex; align-items: flex-start; gap: 14px; margin: 4px 0 16px; }
.admin-apps-head-icon {
    width: 46px; height: 46px; border-radius: 14px; background: #e8f1fc; color: #2563eb;
    display: inline-flex; align-items: center; justify-content: center; font-size: 1.05rem; flex: 0 0 auto;
}
.admin-apps-head h1 { margin: 0; font-size: 1.65rem; font-weight: 800; letter-spacing: -0.02em; }
.admin-apps-head p { margin: 4px 0 0; color: #64748b; font-size: 0.92rem; }
.admin-apps-toolbar {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    background: #fff; border: 1px solid #e8eef5; border-radius: 16px; padding: 14px;
    box-shadow: 0 1px 2px rgba(15, 39, 68, 0.04); margin-bottom: 16px;
}
.admin-apps-search { position: relative; flex: 1 1 240px; }
.admin-apps-search i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: #94a3b8; }
.admin-apps-search input, .admin-apps-toolbar select, .admin-apps-per select {
    height: 42px; border: 1px solid #e2e8f0; border-radius: 10px; background: #fff; color: #0f2744; font-size: 0.9rem;
}
.admin-apps-search input { width: 100%; padding: 0 12px 0 36px; }
.admin-apps-toolbar select { min-width: 160px; padding: 0 12px; }
.admin-apps-search-btn, .admin-apps-reset, .admin-apps-act, .admin-apps-page {
    height: 42px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    font-weight: 700; font-size: 0.9rem; text-decoration: none; cursor: pointer;
}
.admin-apps-search-btn { border: 0; background: #2563eb; color: #fff; padding: 0 18px; }
.admin-apps-search-btn:hover { background: #1d4ed8; color: #fff; }
.admin-apps-reset { border: 1px solid #e2e8f0; background: #fff; color: #334155; padding: 0 16px; }
.admin-apps-reset:hover { border-color: #93c5fd; color: #2563eb; }
.admin-apps-card {
    background: #fff; border: 1px solid #e8eef5; border-radius: 16px;
    box-shadow: 0 1px 2px rgba(15, 39, 68, 0.04); overflow: hidden;
}
.admin-apps-card-head, .admin-apps-foot {
    display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px;
}
.admin-apps-card-head h2 { margin: 0; font-size: 1.05rem; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.admin-apps-card-head p { margin: 2px 0 0; color: #64748b; font-size: 0.86rem; }
.admin-apps-per select { height: 36px; padding: 0 10px; border-radius: 10px; }
.admin-apps-table-wrap { overflow-x: auto; }
.admin-apps-table { width: 100%; border-collapse: collapse; min-width: 920px; }
.admin-apps-table th {
    text-align: left; font-size: 0.72rem; letter-spacing: 0.04em; text-transform: uppercase;
    color: #94a3b8; font-weight: 700; background: #f8fafc; padding: 10px 12px; white-space: nowrap;
}
.admin-apps-table td { padding: 12px; border-top: 1px solid #eef2f6; vertical-align: middle; color: #334155; font-size: 0.9rem; }
.admin-apps-table th.is-num, .admin-apps-table td.is-num { width: 36px; color: #94a3b8; text-align: center; }
.admin-apps-table th.is-end, .admin-apps-table td.is-end { text-align: right; }
.admin-apps-person { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.admin-apps-person img, .admin-apps-avatar {
    width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; background: #e8f1fc; color: #2563eb;
}
.admin-apps-avatar { display: inline-flex; align-items: center; justify-content: center; }
.admin-apps-person strong { display: block; text-transform: uppercase; letter-spacing: 0.02em; color: #0f2744; }
.admin-apps-person small, .admin-apps-table td small, .admin-apps-muted { color: #94a3b8; font-size: 0.78rem; }
.admin-apps-person:hover strong { color: #2563eb; }
.admin-apps-loc { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.admin-apps-loc i { color: #94a3b8; }
.admin-apps-edu, .admin-apps-profile {
    display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 4px 10px;
    font-size: 0.78rem; font-weight: 800; white-space: nowrap;
}
.admin-apps-edu { background: #dbeafe; color: #1d4ed8; }
.admin-apps-profile.is-complete { background: #dcfce7; color: #166534; }
.admin-apps-profile.is-incomplete { background: #fef3c7; color: #92400e; }
.admin-apps-date { display: block; font-weight: 700; color: #0f2744; white-space: nowrap; }
.admin-apps-act { width: 34px; height: 34px; border: 1px solid #bfdbfe; background: #fff; color: #2563eb; padding: 0; }
.admin-apps-act:hover { background: #eff6ff; color: #1d4ed8; }
.admin-apps-note {
    margin: 12px 16px 0; background: #eff6ff; color: #1e3a8a; border-radius: 10px; padding: 10px 12px; font-size: 0.86rem;
}
.admin-apps-note i { margin-right: 6px; }
.admin-apps-empty { text-align: center; color: #64748b; padding: 28px 12px !important; }
.admin-apps-foot { color: #64748b; font-size: 0.86rem; }
.admin-apps-pages { display: flex; gap: 6px; }
.admin-apps-page { width: 34px; height: 34px; padding: 0; border: 1px solid #e2e8f0; background: #fff; color: #334155; }
.admin-apps-page.is-current { background: #2563eb; border-color: #2563eb; color: #fff; }
.admin-apps-page.is-disabled { opacity: 0.45; pointer-events: none; }
@media (max-width: 720px) {
    .admin-apps-toolbar, .admin-apps-card-head, .admin-apps-foot { align-items: stretch; flex-direction: column; }
    .admin-apps-search-btn, .admin-apps-reset { justify-content: center; }
}

.admin-apl { color: #0f2744; }
.admin-apl-head { display: flex; align-items: flex-start; gap: 14px; margin: 4px 0 16px; }
.admin-apl-head-icon {
    width: 46px; height: 46px; border-radius: 14px; background: #e8f1fc; color: #2563eb;
    display: inline-flex; align-items: center; justify-content: center; font-size: 1.05rem; flex: 0 0 auto;
}
.admin-apl-head h1 { margin: 0; font-size: 1.65rem; font-weight: 800; letter-spacing: -0.02em; }
.admin-apl-head p { margin: 4px 0 0; color: #64748b; font-size: 0.92rem; }
.admin-apl-toolbar {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    background: #fff; border: 1px solid #e8eef5; border-radius: 16px; padding: 14px;
    box-shadow: 0 1px 2px rgba(15, 39, 68, 0.04); margin-bottom: 16px;
}
.admin-apl-search, .admin-apl-status { position: relative; display: flex; align-items: center; }
.admin-apl-search { flex: 1 1 180px; min-width: 180px; }
.admin-apl-search i, .admin-apl-status i { position: absolute; left: 12px; color: #94a3b8; pointer-events: none; }
.admin-apl-search input, .admin-apl-status select, .admin-apl-per select {
    height: 42px; border: 1px solid #e2e8f0; border-radius: 10px; background: #fff; color: #0f2744; font-size: 0.9rem;
}
.admin-apl-search input { width: 100%; padding: 0 12px 0 36px; }
.admin-apl-status select { min-width: 148px; padding: 0 12px 0 34px; }
.admin-apl-filter, .admin-apl-reset, .admin-apl-export, .admin-apl-view, .admin-apl-page, .admin-apl-more-btn {
    height: 42px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    font-weight: 700; font-size: 0.9rem; text-decoration: none; cursor: pointer;
}
.admin-apl-filter, .admin-apl-export { border: 0; background: #2563eb; color: #fff; padding: 0 16px; }
.admin-apl-filter:hover, .admin-apl-export:hover { background: #1d4ed8; color: #fff; }
.admin-apl-reset { border: 1px solid #e2e8f0; background: #fff; color: #334155; padding: 0 16px; }
.admin-apl-reset:hover { border-color: #93c5fd; color: #2563eb; }
.admin-apl-export { margin-left: auto; }
.admin-apl-card {
    background: #fff; border: 1px solid #e8eef5; border-radius: 16px;
    box-shadow: 0 1px 2px rgba(15, 39, 68, 0.04);
}
.admin-apl-card-head, .admin-apl-foot {
    display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px;
}
.admin-apl-card-head h2 { margin: 0; font-size: 1.05rem; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.admin-apl-card-head p { margin: 2px 0 0; color: #64748b; font-size: 0.86rem; }
.admin-apl-per select { height: 36px; padding: 0 10px; border-radius: 10px; }
.admin-apl-table-wrap { overflow-x: auto; }
.admin-apl-table { width: 100%; border-collapse: collapse; min-width: 980px; }
.admin-apl-table th {
    text-align: left; font-size: 0.72rem; letter-spacing: 0.04em; text-transform: uppercase;
    color: #94a3b8; font-weight: 700; background: #f8fafc; padding: 10px 12px; white-space: nowrap;
}
.admin-apl-table td { padding: 12px; border-top: 1px solid #eef2f6; vertical-align: middle; color: #334155; font-size: 0.9rem; }
.admin-apl-table th.is-num, .admin-apl-table td.is-num { width: 36px; color: #94a3b8; text-align: center; }
.admin-apl-table th.is-end, .admin-apl-table td.is-end { text-align: right; }
.admin-apl-person, .admin-apl-job { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.admin-apl-person img, .admin-apl-avatar, .admin-apl-glyph, .admin-apl-logo {
    width: 34px; height: 34px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; background: #e8f1fc; color: #2563eb;
}
.admin-apl-avatar, .admin-apl-glyph { display: inline-flex; align-items: center; justify-content: center; }
.admin-apl-logo { border-radius: 8px; border: 1px solid #e6edf5; }
.admin-apl-person strong, .admin-apl-job strong, .admin-apl-date { display: block; color: #0f2744; font-weight: 800; white-space: nowrap; }
.admin-apl-person strong { text-transform: uppercase; letter-spacing: 0.02em; }
.admin-apl-person small, .admin-apl-job small, .admin-apl-table td small, .admin-apl-muted { color: #94a3b8; font-size: 0.78rem; white-space: nowrap; }
.admin-apl-job small i { margin-right: 4px; }
.admin-apl-person:hover strong, .admin-apl-job:hover strong { color: #2563eb; }
.admin-apl-score, .admin-apl-status {
    display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 4px 10px;
    font-size: 0.78rem; font-weight: 800; white-space: nowrap;
}
.admin-apl-score.is-high { background: #dcfce7; color: #166534; }
.admin-apl-score.is-mid { background: #fef3c7; color: #92400e; }
.admin-apl-score.is-low { background: #fee2e2; color: #b91c1c; }
.admin-apl-status.is-good { background: #dcfce7; color: #166534; }
.admin-apl-status.is-bad { background: #fee2e2; color: #b91c1c; }
.admin-apl-status.is-wait { background: #fef3c7; color: #92400e; }
.admin-apl-status.is-new { background: #dbeafe; color: #1d4ed8; }
.admin-apl-status.is-muted { background: #f1f5f9; color: #475569; }
.admin-apl-status.is-good::before, .admin-apl-status.is-bad::before { font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: 0.72rem; }
.admin-apl-status.is-good::before { content: "\f058"; }
.admin-apl-status.is-bad::before { content: "\f057"; }
.admin-apl-date { white-space: nowrap; }
.admin-apl-actions { display: inline-flex; align-items: center; justify-content: flex-end; gap: 6px; }
.admin-apl-view { height: 34px; border: 1px solid #bfdbfe; background: #fff; color: #2563eb; padding: 0 12px; }
.admin-apl-view:hover { background: #eff6ff; }
.admin-apl-more { position: relative; }
.admin-apl-more-btn { width: 34px; height: 34px; border: 1px solid #e2e8f0; background: #fff; color: #64748b; padding: 0; }
.admin-apl-menu {
    position: absolute; right: 0; top: calc(100% + 6px); z-index: 8; min-width: 180px;
    background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 6px;
    box-shadow: 0 10px 24px rgba(15, 39, 68, 0.1);
}
.admin-apl-menu a { display: block; padding: 8px 10px; border-radius: 8px; color: #334155; text-decoration: none; font-weight: 650; font-size: 0.86rem; }
.admin-apl-menu a:hover { background: #eff6ff; color: #2563eb; }
.admin-apl-note { margin: 12px 16px 0; background: #eff6ff; color: #1e3a8a; border-radius: 10px; padding: 10px 12px; font-size: 0.86rem; }
.admin-apl-note i { margin-right: 6px; }
.admin-apl-empty { text-align: center; color: #64748b; padding: 28px 12px !important; }
.admin-apl-foot { color: #64748b; font-size: 0.86rem; }
.admin-apl-pages { display: flex; gap: 6px; }
.admin-apl-page { width: 34px; height: 34px; padding: 0; border: 1px solid #e2e8f0; background: #fff; color: #334155; }
.admin-apl-page.is-current { background: #2563eb; border-color: #2563eb; color: #fff; }
.admin-apl-page.is-disabled { opacity: 0.45; pointer-events: none; }
@media (max-width: 900px) {
    .admin-apl-export { margin-left: 0; }
}
@media (max-width: 720px) {
    .admin-apl-toolbar, .admin-apl-card-head, .admin-apl-foot { align-items: stretch; flex-direction: column; }
    .admin-apl-filter, .admin-apl-reset, .admin-apl-export { justify-content: center; }
}

.admin-plc { color: #0f2744; }
.admin-plc-head { display: flex; align-items: flex-start; gap: 14px; margin: 4px 0 16px; }
.admin-plc-head-icon {
    width: 46px; height: 46px; border-radius: 50%; background: #e8f1fc; color: #2563eb;
    display: inline-flex; align-items: center; justify-content: center; font-size: 1.05rem; flex: 0 0 auto;
}
.admin-plc-head h1 { margin: 0; font-size: 1.65rem; font-weight: 800; letter-spacing: -0.02em; }
.admin-plc-head p { margin: 4px 0 0; color: #64748b; font-size: 0.92rem; }
.admin-plc-toolbar {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    background: #fff; border: 1px solid #e8eef5; border-radius: 16px; padding: 14px;
    box-shadow: 0 1px 2px rgba(15, 39, 68, 0.04); margin-bottom: 16px;
}
.admin-plc-search, .admin-plc-select { position: relative; display: flex; align-items: center; }
.admin-plc-search { flex: 1 1 220px; min-width: 180px; }
.admin-plc-search > i, .admin-plc-select > i { position: absolute; left: 12px; color: #94a3b8; pointer-events: none; }
.admin-plc-search input, .admin-plc-select select {
    width: 100%; height: 46px; border: 1px solid #e2e8f0; border-radius: 10px; background: #fff; color: #0f2744; font-size: 0.9rem;
}
.admin-plc-search input { padding: 0 12px 0 36px; }
.admin-plc-select { flex: 0 0 168px; }
.admin-plc-select select { padding: 14px 28px 0 34px; }
.admin-plc-select small {
    position: absolute; left: 34px; top: 6px; color: #94a3b8; font-size: 0.68rem; font-weight: 700; pointer-events: none;
}
.admin-plc-search-btn, .admin-plc-reset, .admin-plc-export, .admin-plc-view, .admin-plc-page {
    height: 42px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    font-weight: 700; font-size: 0.9rem; text-decoration: none; cursor: pointer; white-space: nowrap;
}
.admin-plc-search-btn { border: 0; background: #2563eb; color: #fff; padding: 0 16px; }
.admin-plc-search-btn:hover { background: #1d4ed8; color: #fff; }
.admin-plc-reset, .admin-plc-export { border: 1px solid #e2e8f0; background: #fff; color: #334155; padding: 0 14px; }
.admin-plc-reset:hover, .admin-plc-export:hover { border-color: #93c5fd; color: #2563eb; }
.admin-plc-card {
    background: #fff; border: 1px solid #e8eef5; border-radius: 16px;
    box-shadow: 0 1px 2px rgba(15, 39, 68, 0.04);
}
.admin-plc-card-head, .admin-plc-foot { padding: 16px 18px; }
.admin-plc-card-head h2 { margin: 0; font-size: 1.05rem; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.admin-plc-card-head p, .admin-plc-foot { color: #64748b; font-size: 0.86rem; }
.admin-plc-card-head p { margin: 2px 0 0; }
.admin-plc-table-wrap { overflow-x: auto; }
.admin-plc-table { width: 100%; border-collapse: collapse; min-width: 920px; }
.admin-plc-table th {
    text-align: left; font-size: 0.72rem; letter-spacing: 0.04em; text-transform: uppercase;
    color: #94a3b8; font-weight: 700; background: #f8fafc; padding: 10px 14px; white-space: nowrap;
}
.admin-plc-table td { padding: 14px; border-top: 1px solid #eef2f6; vertical-align: middle; color: #334155; font-size: 0.9rem; }
.admin-plc-table th.is-end, .admin-plc-table td.is-end { text-align: right; }
.admin-plc-person { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.admin-plc-person img, .admin-plc-avatar {
    width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; background: #e8f1fc; color: #2563eb;
}
.admin-plc-avatar { display: inline-flex; align-items: center; justify-content: center; }
.admin-plc-person strong, .admin-plc-title, .admin-plc-date { display: block; color: #0f2744; font-weight: 800; white-space: nowrap; }
.admin-plc-person strong { text-transform: uppercase; letter-spacing: 0.02em; }
.admin-plc-person small, .admin-plc-table td small, .admin-plc-muted { display: block; color: #94a3b8; font-size: 0.78rem; white-space: nowrap; }
.admin-plc-table td small i, .admin-plc-date i, .admin-plc-type i { margin-right: 5px; }
.admin-plc-person:hover strong { color: #2563eb; }
.admin-plc-type, .admin-plc-hired {
    display: inline-flex; align-items: center; border-radius: 999px; padding: 5px 10px;
    font-size: 0.78rem; font-weight: 800; white-space: nowrap;
}
.admin-plc-type { background: #dbeafe; color: #1d4ed8; }
.admin-plc-hired { background: #dcfce7; color: #166534; }
.admin-plc-view { height: 36px; border: 1px solid #bfdbfe; background: #fff; color: #2563eb; padding: 0 12px; }
.admin-plc-view:hover { background: #eff6ff; }
.admin-plc-empty { text-align: center; color: #64748b; padding: 28px 12px !important; }
.admin-plc-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.admin-plc-pages { display: flex; gap: 6px; }
.admin-plc-page { width: 34px; height: 34px; padding: 0; border: 1px solid #e2e8f0; background: #fff; color: #334155; }
.admin-plc-page.is-current { background: #2563eb; border-color: #2563eb; color: #fff; }
.admin-plc-page.is-disabled { opacity: 0.45; pointer-events: none; }
@media (max-width: 720px) {
    .admin-plc-toolbar, .admin-plc-foot { align-items: stretch; flex-direction: column; }
    .admin-plc-select { flex: 1 1 auto; }
    .admin-plc-search-btn, .admin-plc-reset, .admin-plc-export { justify-content: center; }
}

.admin-set { color: #0f2744; }
.admin-set-head { display: flex; align-items: flex-start; gap: 14px; margin: 4px 0 16px; }
.admin-set-head-icon {
    width: 46px; height: 46px; border-radius: 14px; background: #e8f1fc; color: #2563eb;
    display: inline-flex; align-items: center; justify-content: center; font-size: 1.05rem; flex: 0 0 auto;
}
.admin-set-head h1 { margin: 0; font-size: 1.65rem; font-weight: 800; letter-spacing: -0.02em; }
.admin-set-head p, .admin-set-panel > p { margin: 4px 0 0; color: #64748b; font-size: 0.92rem; }
.admin-set-shell {
    display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 0;
    background: #fff; border: 1px solid #e8eef5; border-radius: 16px; overflow: hidden;
    box-shadow: 0 1px 2px rgba(15, 39, 68, 0.04);
}
.admin-set-nav { display: flex; flex-direction: column; gap: 4px; padding: 16px 12px; border-right: 1px solid #eef2f6; background: #fff; }
.admin-set-tab {
    display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
    border: 0; background: transparent; color: #475569; border-radius: 10px;
    padding: 10px 12px; font-weight: 700; font-size: 0.92rem; text-decoration: none; cursor: pointer;
}
.admin-set-tab i { width: 16px; text-align: center; color: #64748b; }
.admin-set-tab:hover { background: #f8fafc; color: #0f2744; }
.admin-set-tab.is-active { background: #e8f1fc; color: #2563eb; }
.admin-set-tab.is-active i { color: #2563eb; }
.admin-set-main { padding: 22px 24px 18px; min-width: 0; }
.admin-set-panel h2 { margin: 0; font-size: 1.25rem; font-weight: 800; }
.admin-set-panel > p { margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid #eef2f6; }
.admin-set-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.admin-set-block { display: block; margin-top: 16px; }
.admin-set label { display: block; font-weight: 700; font-size: 0.9rem; color: #0f2744; }
.admin-set label span { color: #dc2626; }
.admin-set label .admin-set-logo, .admin-set label .admin-set-logo input { color: #334155; }
.admin-set input[type="text"], .admin-set input[type="email"], .admin-set input[type="url"], .admin-set select, .admin-set textarea {
    display: block; width: 100%; margin-top: 8px; border: 1px solid #e2e8f0; border-radius: 10px;
    background: #fff; color: #0f2744; font-size: 0.92rem; font-weight: 500;
}
.admin-set input[type="text"], .admin-set input[type="email"], .admin-set input[type="url"], .admin-set select { height: 42px; padding: 0 12px; }
.admin-set textarea { padding: 10px 12px; resize: vertical; }
.admin-set input[readonly] { background: #f8fafc; color: #475569; }
.admin-set small { display: block; margin-top: 6px; color: #94a3b8; font-size: 0.8rem; font-weight: 500; }
.admin-set-logo {
    margin-top: 8px; display: flex; align-items: center; gap: 12px;
    border: 1px solid #e2e8f0; border-radius: 12px; padding: 10px 12px;
}
.admin-set-logo img, .admin-set-preview img {
    width: 48px; height: 48px; object-fit: contain; border-radius: 50%; background: #fff; flex: 0 0 auto;
}
.admin-set-preview {
    display: flex; align-items: center; gap: 14px; border: 1px solid #e2e8f0; border-radius: 12px; padding: 14px;
}
.admin-set-preview p { margin: 4px 0 8px; color: #64748b; font-size: 0.88rem; }
.admin-set-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 22px; }
.admin-set-reset, .admin-set-save, .admin-set-link {
    height: 42px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font-weight: 700; font-size: 0.92rem; text-decoration: none; cursor: pointer; padding: 0 16px;
}
.admin-set-reset { border: 1px solid #e2e8f0; background: #fff; color: #334155; }
.admin-set-reset:hover { border-color: #93c5fd; color: #2563eb; }
.admin-set-save { border: 0; background: #2563eb; color: #fff; }
.admin-set-save:hover { background: #1d4ed8; }
.admin-set-link { border: 1px solid #bfdbfe; background: #fff; color: #2563eb; width: fit-content; }
.admin-set-link:hover { background: #eff6ff; }
@media (max-width: 900px) {
    .admin-set-shell { grid-template-columns: 1fr; }
    .admin-set-nav { border-right: 0; border-bottom: 1px solid #eef2f6; }
    .admin-set-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
    .admin-set-actions { align-items: stretch; flex-direction: column; }
    .admin-set-reset, .admin-set-save { width: 100%; }
}

.admin-me { color: #0f2744; }
.admin-me-head { display: flex; align-items: flex-start; gap: 14px; margin: 4px 0 16px; }
.admin-me-head-icon {
    width: 46px; height: 46px; border-radius: 14px; background: #e8f1fc; color: #2563eb;
    display: inline-flex; align-items: center; justify-content: center; font-size: 1.05rem; flex: 0 0 auto;
}
.admin-me-head h1, .admin-me-hero h2, .admin-me-card h2 { margin: 0; font-weight: 800; letter-spacing: -0.02em; }
.admin-me-head h1 { font-size: 1.65rem; }
.admin-me-head p { margin: 4px 0 0; color: #64748b; font-size: 0.92rem; }
.admin-me-crumb { margin-left: auto; display: flex; align-items: center; gap: 8px; color: #94a3b8; font-size: 0.86rem; white-space: nowrap; }
.admin-me-crumb a { color: #64748b; text-decoration: none; font-weight: 700; }
.admin-me-crumb a:hover { color: #2563eb; }
.admin-me-crumb i { margin-right: 4px; }
.admin-me-hero, .admin-me-card {
    background: #fff; border: 1px solid #e8eef5; border-radius: 16px;
    box-shadow: 0 1px 2px rgba(15, 39, 68, 0.04);
}
.admin-me-hero {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 18px 20px; margin-bottom: 16px; background: linear-gradient(180deg, #f8fbff 0%, #fff 100%);
}
.admin-me-identity { display: flex; align-items: center; gap: 16px; min-width: 0; }
.admin-me-photo { position: relative; width: 74px; height: 74px; flex: 0 0 auto; }
.admin-me-face, .admin-me-face img {
    width: 74px; height: 74px; border-radius: 50%; object-fit: cover; background: #dbe7f5; color: #64748b;
    display: flex; align-items: center; justify-content: center; font-size: 1.6rem;
}
.admin-me-camera {
    position: absolute; right: -2px; bottom: -2px; width: 28px; height: 28px; border: 2px solid #fff; border-radius: 50%;
    background: #2563eb; color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.admin-me-hero h2 { font-size: 1.25rem; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.admin-me-role { background: #dbeafe; color: #1d4ed8; border-radius: 999px; padding: 3px 8px; font-size: 0.72rem; }
.admin-me-hero p { margin: 4px 0 0; color: #64748b; font-size: 0.88rem; }
.admin-me-hero p i, .admin-me-password i { margin-right: 6px; }
.admin-me-password { display: inline-flex; margin-top: 6px; color: #2563eb; font-weight: 700; font-size: 0.86rem; text-decoration: none; }
.admin-me-status {
    display: flex; align-items: center; gap: 10px; border: 1px solid #e2e8f0; border-radius: 14px; background: #fff; padding: 12px 14px;
}
.admin-me-status-icon {
    width: 36px; height: 36px; border-radius: 50%; background: #e8f1fc; color: #2563eb;
    display: inline-flex; align-items: center; justify-content: center;
}
.admin-me-status small { display: block; color: #94a3b8; font-size: 0.75rem; font-weight: 700; }
.admin-me-status strong { display: inline-flex; margin-top: 2px; border-radius: 999px; padding: 2px 8px; font-size: 0.78rem; }
.admin-me-status strong.is-active { background: #dcfce7; color: #166534; }
.admin-me-status strong.is-inactive { background: #fee2e2; color: #b91c1c; }
.admin-me-card { padding: 20px; }
.admin-me-card h2 { font-size: 1.05rem; display: flex; align-items: center; gap: 8px; }
.admin-me-card > p { margin: 4px 0 16px; color: #64748b; font-size: 0.9rem; }
.admin-me-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.admin-me label { display: block; font-weight: 700; font-size: 0.9rem; }
.admin-me label span { color: #dc2626; }
.admin-me input, .admin-me select, .admin-me textarea {
    display: block; width: 100%; margin-top: 8px; border: 1px solid #e2e8f0; border-radius: 10px;
    background: #fff; color: #0f2744; font-size: 0.92rem; font-weight: 500;
}
.admin-me input, .admin-me select { height: 42px; padding: 0 12px; }
.admin-me textarea { padding: 10px 12px; resize: vertical; }
.admin-me input[readonly], .admin-me select:disabled { background: #f8fafc; color: #64748b; }
.admin-me-bio { display: block; margin-top: 16px; position: relative; }
.admin-me-bio small { position: absolute; right: 10px; bottom: 8px; color: #94a3b8; font-size: 0.75rem; }
.admin-me-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; padding-top: 16px; border-top: 1px solid #eef2f6; }
.admin-me-reset, .admin-me-save {
    height: 42px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font-weight: 700; font-size: 0.92rem; cursor: pointer; padding: 0 16px;
}
.admin-me-reset { border: 1px solid #e2e8f0; background: #fff; color: #334155; }
.admin-me-reset:hover { border-color: #93c5fd; color: #2563eb; }
.admin-me-save { border: 0; background: #2563eb; color: #fff; }
.admin-me-save:hover { background: #1d4ed8; }
@media (max-width: 800px) {
    .admin-me-head, .admin-me-hero, .admin-me-actions { align-items: stretch; flex-direction: column; }
    .admin-me-crumb { margin-left: 0; }
    .admin-me-grid { grid-template-columns: 1fr; }
    .admin-me-reset, .admin-me-save { width: 100%; }
}
