:root {
    --primary: #1f4e79;
    --primary-dark: #153a5b;
    --secondary: #f2b705;
    --bg: #f5f7fb;
    --surface: #ffffff;
    --text: #1f2937;
    --muted: #6b7280;
    --border: #e5e7eb;
    --danger: #b42318;
    --success: #027a48;
    --radius: 14px;
    --shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}
* { box-sizing: border-box; }
body { margin: 0; font-family: Arial, Helvetica, sans-serif; background: var(--bg); color: var(--text); }
a { color: inherit; text-decoration: none; }
.container { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.site-header { background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 10; }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 74px; gap: 20px; }
.brand, .admin-logo { display: flex; align-items: center; gap: 12px; }
.brand small, .admin-logo small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.brand-mark { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 13px; background: var(--primary); color: white; font-weight: 800; letter-spacing: .5px; }
.main-nav { display: flex; align-items: center; gap: 18px; font-size: 14px; }
.nav-button, .btn { border: 1px solid var(--primary); color: var(--primary); padding: 10px 16px; border-radius: 999px; font-weight: 700; background: white; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.nav-button.dark, .btn.primary { background: var(--primary); color: #fff; }
.btn.secondary { background: var(--secondary); border-color: var(--secondary); color: #111827; }
.btn.danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.hero { padding: 72px 0; background: linear-gradient(135deg, #eef6ff, #ffffff); border-bottom: 1px solid var(--border); }
.hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 32px; align-items: center; }
.hero h1 { font-size: clamp(34px, 5vw, 58px); margin: 0 0 16px; line-height: 1.05; }
.hero p { color: var(--muted); font-size: 18px; line-height: 1.65; margin: 0 0 24px; }
.hero-card, .card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 24px; }
.stat { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.stat strong { font-size: 28px; display: block; color: var(--primary); }
.section { padding: 44px 0; }
.grid { display: grid; gap: 20px; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.form-card { max-width: 460px; margin: 52px auto; }
.form-group { margin-bottom: 16px; }
label { display: block; margin-bottom: 7px; font-weight: 700; font-size: 14px; }
input, select, textarea { width: 100%; border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; font-size: 15px; background: white; outline: none; }
input:focus, select:focus, textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(31, 78, 121, .10); }
.alert { padding: 12px 14px; border-radius: 12px; margin-bottom: 16px; }
.alert.error { background: #fff1f1; color: var(--danger); border: 1px solid #ffd0d0; }
.alert.success { background: #ecfdf3; color: var(--success); border: 1px solid #abefc6; }
.alert.fade { opacity: .75; }
.site-footer { background: #111827; color: #e5e7eb; padding: 22px 0; margin-top: 40px; }
.admin-body { background: #eef2f7; }
.admin-shell { min-height: 100vh; display: grid; grid-template-columns: 280px 1fr; }
.admin-sidebar { background: #0f2740; color: white; padding: 22px; }
.admin-logo { padding-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,.12); margin-bottom: 18px; }
.admin-logo .brand-mark { background: var(--secondary); color: #111827; }
.admin-menu { display: grid; gap: 7px; }
.admin-menu a { padding: 12px 13px; border-radius: 12px; color: #e5edf5; display: flex; justify-content: space-between; align-items: center; }
.admin-menu a:hover { background: rgba(255,255,255,.10); }
.badge { background: var(--secondary); color: #111827; border-radius: 999px; min-width: 24px; height: 24px; display: inline-grid; place-items: center; font-size: 12px; font-weight: 800; padding: 0 7px; }
.admin-main { min-width: 0; }
.admin-topbar { height: 86px; background: #fff; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; padding: 0 28px; }
.admin-topbar h1 { margin: 0; font-size: 24px; }
.admin-topbar p { margin: 4px 0 0; color: var(--muted); }
.admin-profile { background: #f3f4f6; padding: 10px 14px; border-radius: 999px; font-weight: 700; }
.admin-content { padding: 28px; }
.dashboard-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.metric-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.metric-card span { color: var(--muted); font-size: 14px; }
.metric-card strong { display: block; margin-top: 10px; color: var(--primary); font-size: 34px; }
.table-wrap { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: auto; box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 14px 16px; border-bottom: 1px solid var(--border); text-align: left; font-size: 14px; }
th { background: #f9fafb; font-size: 13px; color: #374151; }
.placeholder { padding: 36px; text-align: center; color: var(--muted); }
@media (max-width: 900px) {
    .header-inner, .main-nav { flex-direction: column; align-items: flex-start; }
    .main-nav { padding-bottom: 16px; }
    .hero-grid, .grid.cols-2, .grid.cols-3, .dashboard-cards { grid-template-columns: 1fr; }
    .admin-shell { grid-template-columns: 1fr; }
    .admin-sidebar { position: static; }
}


.radio-stack label input {
    padding: 0;
    min-height: auto;
    width: auto;
}
.radio-stack label {
    margin: 0;
}

/* Module 2: Department and Position Management */
.admin-page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; margin-bottom: 20px; }
.admin-page-head h2 { margin: 0 0 6px; }
.admin-page-head p { margin: 0; color: var(--muted); }
.toolbar { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 18px; }
.toolbar .form-group { margin-bottom: 0; min-width: 190px; }
.toolbar .search-box { min-width: 280px; flex: 1; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.admin-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.btn.small { padding: 7px 11px; font-size: 13px; border-radius: 10px; }
.status-pill { display: inline-flex; align-items: center; padding: 5px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; }
.status-pill.active { color: var(--success); background: #ecfdf3; border: 1px solid #abefc6; }
.status-pill.inactive { color: #92400e; background: #fffbeb; border: 1px solid #fde68a; }
.muted { color: var(--muted); }
.count-chip { display: inline-flex; align-items: center; justify-content: center; min-width: 30px; height: 28px; padding: 0 9px; border-radius: 999px; background: #f3f4f6; font-weight: 800; color: #374151; }
.inline-delete { display: inline; }
.inline-delete button { font-family: inherit; }
.help-text { display: block; color: var(--muted); font-size: 12px; margin-top: 6px; line-height: 1.45; }
@media (max-width: 900px) {
    .admin-page-head { flex-direction: column; }
    .form-grid { grid-template-columns: 1fr; }
    .toolbar { display: grid; grid-template-columns: 1fr; }
    .toolbar .search-box, .toolbar .form-group { min-width: 0; }
}

/* Module 3: Job Posting Management */
.compact-card { padding: 18px; }
.compact-hero { padding: 44px 0; }
.compact-hero h1 { margin: 0 0 10px; font-size: clamp(30px, 4vw, 46px); }
.compact-hero p { margin: 0; }
.status-pill.draft { color: #374151; background: #f3f4f6; border: 1px solid #d1d5db; }
.status-pill.closed { color: #7f1d1d; background: #fef2f2; border: 1px solid #fecaca; }
.status-pill.inactive { color: #92400e; background: #fffbeb; border: 1px solid #fde68a; }
.job-search-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; display: grid; grid-template-columns: 1.25fr 1fr 1fr 1fr auto; gap: 14px; align-items: end; margin-bottom: 24px; }
.job-search-card .form-group { margin-bottom: 0; }
.job-search-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.jobs-result-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; margin: 22px 0 16px; }
.jobs-result-head h2 { margin: 0; }
.jobs-result-head p { margin: 0; }
.job-list { display: grid; gap: 16px; }
.job-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; }
.job-card h3 { margin: 0 0 10px; font-size: 22px; }
.job-card p { color: var(--muted); line-height: 1.6; margin: 12px 0 0; }
.job-meta { display: flex; gap: 8px; flex-wrap: wrap; }
.job-meta span { background: #f3f4f6; border: 1px solid var(--border); border-radius: 999px; padding: 6px 10px; font-size: 13px; font-weight: 700; color: #374151; }
.job-salary { color: var(--primary) !important; font-weight: 800; }
.job-card-actions { display: flex; justify-content: flex-end; }
.job-detail-layout { display: grid; grid-template-columns: 1fr 340px; gap: 22px; align-items: start; }
.job-detail-main h2 { margin-top: 0; padding-top: 16px; border-top: 1px solid var(--border); }
.job-detail-main h2:first-child { border-top: 0; padding-top: 0; }
.content-block { color: #374151; line-height: 1.75; margin-bottom: 26px; }
.job-side-card { position: sticky; top: 96px; }
.job-summary { display: grid; gap: 10px; margin: 18px 0 22px; }
.job-summary dt { color: var(--muted); font-size: 13px; font-weight: 700; }
.job-summary dd { margin: -6px 0 8px; font-weight: 800; color: #111827; }
.full-width { width: 100%; margin-bottom: 10px; }
@media (max-width: 1100px) {
    .job-search-card { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
    .job-search-card, .job-card, .job-detail-layout { grid-template-columns: 1fr; }
    .jobs-result-head { flex-direction: column; align-items: flex-start; }
    .job-card-actions { justify-content: flex-start; }
    .job-side-card { position: static; }
}

/* Module 4: Candidate Profile + Documents */
.profile-layout { align-items: start; }
.document-upload-form { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border); }
.document-status-list { display: grid; gap: 12px; margin: 18px 0; }
.document-status { border: 1px solid var(--border); border-radius: 14px; padding: 14px; display: flex; justify-content: space-between; align-items: center; gap: 12px; background: #f9fafb; }
.document-status strong { color: #111827; }
.document-status a { color: var(--primary); font-weight: 800; }
.document-status.ok { border-color: #abefc6; background: #ecfdf3; }
.document-status.missing { border-color: #fecaca; background: #fef2f2; }
.document-status.missing span { color: var(--danger); font-weight: 800; }
.missing-list { margin: 0 0 18px; padding-left: 20px; color: var(--danger); font-weight: 700; line-height: 1.7; }
.candidate-dashboard-cards .metric-card strong { font-size: 24px; }
.doc-chip { display: inline-flex; align-items: center; border-radius: 999px; padding: 5px 8px; font-size: 12px; font-weight: 800; margin: 2px; border: 1px solid var(--border); }
.doc-chip.yes { background: #ecfdf3; color: var(--success); border-color: #abefc6; }
.doc-chip.no { background: #fef2f2; color: var(--danger); border-color: #fecaca; }
.candidate-profile-admin-layout { display: grid; grid-template-columns: 1.4fr .8fr; gap: 20px; align-items: start; }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.detail-grid.single { grid-template-columns: 1fr; }
.detail-grid .full { grid-column: 1 / -1; }
.detail-grid div { background: #f9fafb; border: 1px solid var(--border); border-radius: 12px; padding: 13px; }
.detail-grid span { display: block; color: var(--muted); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; margin-bottom: 6px; }
.detail-grid strong { display: block; color: #111827; line-height: 1.5; overflow-wrap: anywhere; }
.no-shadow { box-shadow: none; }
@media (max-width: 1000px) {
    .candidate-profile-admin-layout { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
    .document-status { flex-direction: column; align-items: flex-start; }
    .detail-grid { grid-template-columns: 1fr; }
}

/* Module 5 - Application Flow */
.narrow-container { max-width: 980px; }
.job-apply-card .meta-row,
.meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}
.meta-row span {
    background: #f2f6fb;
    border: 1px solid #dce6f2;
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 13px;
    color: #2f4358;
}
.radio-stack {
    display: grid;
    gap: 10px;
    padding: 10px 0;
}
.radio-stack label {
    display: flex;
    gap: 8px;
    align-items: center;
    font-weight: 500;
}
.detail-list {
    display: grid;
    grid-template-columns: 170px 1fr;
    gap: 8px 14px;
    margin: 0;
}
.detail-list dt {
    color: #64748b;
    font-weight: 700;
}
.detail-list dd {
    margin: 0;
    color: #172033;
}
.doc-actions {
    display: grid;
    gap: 10px;
}
.doc-actions p {
    margin: 10px 0 0;
}
.inline-form textarea {
    width: 100%;
}
.count-chip {
    display: inline-flex;
    min-width: 28px;
    height: 28px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #edf6ff;
    border: 1px solid #cfe6ff;
    font-weight: 700;
}
@media (max-width: 780px) {
    .detail-list { grid-template-columns: 1fr; }
}

/* Module 6: Search, Filter, Export, and Improved Management */
.filter-panel {
    background: #ffffff;
    border: 1px solid #e7edf5;
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
    margin-bottom: 18px;
}
.filter-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(160px, 1fr));
    gap: 14px;
    align-items: end;
}
.filter-grid .span-2 {
    grid-column: span 2;
}
.filter-actions,
.export-actions,
.bulk-actions,
.section-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.filter-actions {
    margin-top: 14px;
}
.export-actions {
    justify-content: flex-end;
}
.bulk-actions {
    background: #ffffff;
    border: 1px solid #e7edf5;
    border-radius: 16px;
    padding: 12px;
    margin: 16px 0;
}
.bulk-actions select {
    min-width: 210px;
    border: 1px solid #d7e0ea;
    border-radius: 12px;
    padding: 10px 12px;
    background: #ffffff;
}
.quick-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(180px, 1fr));
    gap: 14px;
    margin: 0 0 18px;
}
.mini-stat {
    background: #ffffff;
    border: 1px solid #e7edf5;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}
.mini-stat span {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #64748b;
    margin-bottom: 6px;
}
.mini-stat strong {
    display: block;
    font-size: 22px;
    color: #0f172a;
}
.selection-cell {
    width: 42px;
    text-align: center;
}
.selection-cell input[type="checkbox"] {
    width: 16px;
    height: 16px;
}
.inline-form.no-gap {
    gap: 0;
    margin: 0;
}
.section-title-row {
    justify-content: space-between;
    margin-bottom: 12px;
}
button[disabled],
.btn[disabled] {
    opacity: 0.55;
    pointer-events: none;
}
@media (max-width: 1100px) {
    .filter-grid {
        grid-template-columns: repeat(2, minmax(160px, 1fr));
    }
    .quick-stats {
        grid-template-columns: repeat(2, minmax(160px, 1fr));
    }
}
@media (max-width: 720px) {
    .filter-grid,
    .quick-stats {
        grid-template-columns: 1fr;
    }
    .filter-grid .span-2 {
        grid-column: span 1;
    }
    .export-actions,
    .bulk-actions,
    .section-title-row {
        align-items: stretch;
        flex-direction: column;
    }
}


/* Module 7 - Email, logs, and interview workflow */
.email-status-grid { display:grid; grid-template-columns: repeat(auto-fit,minmax(190px,1fr)); gap:14px; margin:18px 0; }
.email-preview { background:#fff; border:1px solid #dbe4ef; border-radius:14px; padding:22px; line-height:1.65; }
.email-preview h2,.email-preview h3 { margin-top:0; }
.settings-grid { display:grid; grid-template-columns: repeat(auto-fit,minmax(260px,1fr)); gap:16px; }
.log-status.sent,.status-pill.sent { background:#e8f7ee; color:#166534; }
.log-status.failed,.status-pill.failed { background:#fee2e2; color:#991b1b; }
.log-status.pending,.status-pill.pending { background:#fef3c7; color:#92400e; }
.email-log-detail { white-space:pre-wrap; max-width:360px; }
.interview-card { border-left:4px solid var(--primary); }
.preview-actions { display:flex; gap:10px; flex-wrap:wrap; align-items:center; margin-top:18px; }
.notice-muted { color:#64748b; font-size:13px; }


/* Module 8 - Notifications and messages */
.unread-row { background: #f8fbff; }
.unread-row td:first-child { border-left: 4px solid var(--primary); }
.muted-text { color: #64748b; margin: 5px 0 0; font-size: 13px; }
.status-pill.new,
.status-pill.message,
.status-pill.type-message { background: #dbeafe; color: #1d4ed8; }
.status-pill.read { background: #f1f5f9; color: #475569; }
.status-pill.replied { background: #dcfce7; color: #166534; }
.status-pill.archived { background: #e5e7eb; color: #374151; }
.status-pill.type-job { background: #fef3c7; color: #92400e; }
.status-pill.type-candidate { background: #dcfce7; color: #166534; }
.status-pill.type-application { background: #ede9fe; color: #5b21b6; }
.status-pill.type-shortlist,
.status-pill.type-interview { background: #ffe4e6; color: #9f1239; }
.status-pill.type-system { background: #e5e7eb; color: #374151; }
.message-detail-card {
    background: #ffffff;
    border: 1px solid #e7edf5;
    border-radius: 18px;
    padding: 20px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
    margin-bottom: 20px;
}
.message-body-box,
.reply-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 16px;
    line-height: 1.65;
    margin: 14px 0;
}
.reply-box {
    background: #f0fdf4;
    border-color: #bbf7d0;
}
.btn.danger {
    background: #fee2e2;
    border-color: #fecaca;
    color: #991b1b;
}
.btn.danger:hover { background: #fecaca; }
.btn.small { padding: 7px 11px; font-size: 12px; }
.admin-menu .badge {
    float: right;
    min-width: 22px;
    height: 22px;
    padding: 2px 6px;
    border-radius: 999px;
    background: #f2b705;
    color: #14213d;
    font-size: 12px;
    line-height: 18px;
    text-align: center;
    font-weight: 800;
}
.admin-menu .badge:empty { display: none; }

/* Module 9: Dashboard polish, reports, audit logs, and security cleanup */
.admin-menu a.active {
    background: rgba(255,255,255,.16);
    border-left: 4px solid #f2b705;
    font-weight: 700;
}
.dashboard-hero {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: center;
    padding: 28px;
    margin-bottom: 24px;
    border-radius: 22px;
    background: linear-gradient(135deg, #ffffff 0%, #f6f9fd 100%);
    border: 1px solid #e5ecf5;
    box-shadow: 0 10px 30px rgba(31, 78, 121, .08);
}
.dashboard-hero h2 { margin: 8px 0; font-size: 30px; color: #173b5c; }
.dashboard-hero p { margin: 0; color: #62748a; max-width: 760px; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; color: #1f4e79; font-weight: 800; font-size: 12px; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-score { min-width: 150px; text-align: center; padding: 18px; border-radius: 18px; background: #edf8f1; color: #146c2e; }
.hero-score.warn { background: #fff7e6; color: #a16207; }
.hero-score strong { display: block; font-size: 28px; }
.hero-score span { font-size: 13px; font-weight: 700; }
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 22px;
}
.stat-card {
    background: #fff;
    border: 1px solid #e5ecf5;
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 8px 22px rgba(31, 78, 121, .06);
}
.stat-card small { display: block; color: #63758b; margin-bottom: 10px; font-weight: 700; }
.stat-card strong { font-size: 30px; color: #1f4e79; }
.grid-two {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 18px;
}
.panel-card {
    background: #fff;
    border: 1px solid #e5ecf5;
    border-radius: 18px;
    padding: 20px;
    box-shadow: 0 8px 22px rgba(31, 78, 121, .06);
    margin-bottom: 18px;
}
.panel-card h3 { margin-top: 0; color: #173b5c; }
.section-head {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    align-items: center;
    margin-bottom: 12px;
}
.section-head h3 { margin: 0; }
.section-head a { color: #1f4e79; font-weight: 700; text-decoration: none; }
.status-list { display: grid; gap: 10px; }
.status-list > div {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    border-bottom: 1px dashed #e5ecf5;
    padding-bottom: 10px;
}
.status-list span { color: #52657c; }
.status-list strong { color: #1f4e79; }
.alert-soft { background: #fffaf0; border-color: #f6dfaa; }
.quick-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.quick-actions a {
    display: inline-block;
    padding: 10px 14px;
    border-radius: 999px;
    background: #f3f7fb;
    color: #1f4e79;
    text-decoration: none;
    font-weight: 700;
}
.filter-card {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    background: #fff;
    border: 1px solid #e5ecf5;
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 8px 22px rgba(31, 78, 121, .06);
    margin-bottom: 18px;
}
.filter-card label { display: block; font-size: 13px; color: #52657c; font-weight: 800; margin-bottom: 6px; }
.filter-card input, .filter-card select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d8e2ee;
    border-radius: 12px;
    background: #fff;
}
.filter-actions { align-self: end; display: flex; gap: 10px; flex-wrap: wrap; }
.table-responsive { overflow-x: auto; }
.admin-table.compact th, .admin-table.compact td { padding: 10px 12px; }
.status-pill {
    display: inline-flex;
    padding: 5px 10px;
    border-radius: 999px;
    background: #eef5fb;
    color: #1f4e79;
    font-size: 12px;
    font-weight: 800;
}
.wrap-cell { max-width: 320px; white-space: normal; word-break: break-word; }
.pagination-lite { display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 16px; color: #52657c; }
.check-list { display: grid; gap: 10px; }
.check-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 14px;
    border-radius: 14px;
    border: 1px solid #e5ecf5;
    background: #f9fbfd;
}
.check-row p { margin: 4px 0 0; color: #62748a; }
.check-row > span {
    align-self: center;
    min-width: 54px;
    text-align: center;
    border-radius: 999px;
    padding: 6px 10px;
    font-weight: 800;
    font-size: 12px;
}
.check-row.is-ok > span { background: #e8f7ed; color: #146c2e; }
.check-row.is-fail { border-color: #ffd6d6; background: #fff8f8; }
.check-row.is-fail > span { background: #ffe8e8; color: #b42318; }
.clean-list { margin: 0; padding-left: 20px; color: #52657c; }
.clean-list li { margin: 8px 0; }
.cleanup-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}
.cleanup-card {
    display: block;
    padding: 18px;
    border: 1px solid #e5ecf5;
    border-radius: 18px;
    background: #f9fbfd;
}
.cleanup-card strong { display: block; color: #1f4e79; font-size: 30px; }
.cleanup-card span { display: block; font-weight: 800; margin-top: 4px; color: #173b5c; }
.cleanup-card p { color: #62748a; min-height: 42px; }
.danger-soft { background: #fff1f1 !important; color: #b42318 !important; border-color: #ffd6d6 !important; }
.alert.success { background: #e8f7ed; color: #146c2e; border: 1px solid #b8e6c5; border-radius: 14px; padding: 12px 14px; margin-bottom: 14px; }
.alert.error { background: #fff1f1; color: #b42318; border: 1px solid #ffd6d6; border-radius: 14px; padding: 12px 14px; margin-bottom: 14px; }
@media (max-width: 900px) {
    .dashboard-hero, .grid-two { grid-template-columns: 1fr; display: grid; }
    .dashboard-hero { align-items: start; }
}

/* Patch 10A: global positions assigned to multiple departments */
.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
    margin-top: 8px;
}
.check-card {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--border-color, #e5e7eb);
    background: #fff;
    border-radius: 12px;
    padding: 10px 12px;
    cursor: pointer;
    font-weight: 600;
}
.check-card input {
    width: auto;
    min-width: 16px;
}
.check-card:hover {
    background: #f8fafc;
}

/* Patch 10C: CV viewer and quick decision UI */
.table-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    align-items: center;
}
.doc-inline-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 6px;
}
.cv-viewer-layout {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}
.cv-side-panel {
    position: sticky;
    top: 16px;
}
.compact-detail-list dt,
.compact-detail-list dd {
    font-size: 13px;
}
.decision-form textarea {
    width: 100%;
    resize: vertical;
    margin-bottom: 10px;
}
.decision-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.btn.danger {
    background: #fee2e2;
    color: #991b1b;
    border-color: #fecaca;
}
.btn.danger:hover {
    background: #fecaca;
}
.cv-preview-card {
    min-height: 720px;
    padding: 0;
    overflow: hidden;
}
.cv-preview-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-bottom: 1px solid #e5e7eb;
    background: #f8fafc;
    font-size: 13px;
}
.cv-preview-head span {
    color: #64748b;
}
.cv-preview-frame {
    width: 100%;
    height: 760px;
    border: 0;
    display: block;
    background: #f8fafc;
}
.cv-preview-unavailable {
    padding: 50px 24px;
    text-align: center;
}
.related-app-list {
    display: grid;
    gap: 8px;
}
.related-app-list a {
    display: block;
    padding: 9px 10px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #f8fafc;
    text-decoration: none;
}
.related-app-list a strong,
.related-app-list a span {
    display: block;
}
.related-app-list a span {
    color: #64748b;
    font-size: 12px;
    margin-top: 2px;
}
@media (max-width: 1000px) {
    .cv-viewer-layout {
        grid-template-columns: 1fr;
    }
    .cv-side-panel {
        position: static;
    }
    .cv-preview-frame {
        height: 620px;
    }
}

/* Patch 10D: Candidate profile photo + quick status controls */
.candidate-profile-head {
    align-items: center;
}

.candidate-head-left {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

.candidate-photo-frame {
    width: 86px;
    height: 86px;
    border-radius: 18px;
    overflow: hidden;
    background: #f3f6fb;
    border: 1px solid #dbe3ef;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.candidate-photo-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.candidate-photo-placeholder {
    font-size: 34px;
    font-weight: 800;
    color: #23527c;
}

.candidate-head-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.candidate-head-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 3px 9px;
    border-radius: 999px;
    background: #eef4fb;
    color: #39556e;
    font-size: 12px;
    font-weight: 600;
}

.quick-status-form {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    align-items: center;
    min-width: 210px;
}

.btn.tiny {
    padding: 5px 8px;
    font-size: 11px;
    border-radius: 8px;
    line-height: 1.1;
}

.btn.success {
    background: #16803c;
    color: #fff;
    border-color: #16803c;
}

.btn.danger {
    background: #b42318;
    color: #fff;
    border-color: #b42318;
}

.status-pill.status-selected,
.status-pill.status-shortlisted,
.status-pill.status-rejected {
    color: #fff;
}

.status-pill.status-selected { background: #16803c; }
.status-pill.status-shortlisted { background: #8a5a00; }
.status-pill.status-rejected { background: #b42318; }

@media (max-width: 768px) {
    .candidate-head-left {
        align-items: flex-start;
    }
    .candidate-profile-head {
        align-items: flex-start;
    }
    .quick-status-form {
        min-width: 0;
    }
}

/* Patch 10E: Compact Professional UI Polish */
:root {
    --radius: 10px;
    --shadow: 0 8px 20px rgba(15, 23, 42, 0.055);
}

html { font-size: 14px; }
body { line-height: 1.45; }

.container { width: min(1140px, calc(100% - 28px)); }
.site-header { box-shadow: 0 1px 0 rgba(15,23,42,.03); }
.header-inner { min-height: 62px; gap: 14px; }
.brand, .admin-logo { gap: 10px; }
.brand-mark { width: 40px; height: 40px; border-radius: 10px; font-size: 13px; }
.brand small, .admin-logo small { font-size: 11px; }
.main-nav { gap: 12px; font-size: 13px; }
.nav-button, .btn { padding: 8px 13px; font-size: 13px; border-radius: 9px; min-height: 34px; }
.btn.small { padding: 6px 9px; font-size: 12px; border-radius: 8px; min-height: 30px; }
.btn.tiny { padding: 5px 7px; font-size: 11px; min-height: 26px; }

.hero { padding: 44px 0; }
.hero h1 { font-size: clamp(28px, 4vw, 44px); margin-bottom: 10px; }
.hero p { font-size: 15px; line-height: 1.55; margin-bottom: 18px; }
.section { padding: 30px 0; }
.card, .hero-card, .form-card, .metric-card, .table-wrap, .job-search-card, .job-card { box-shadow: var(--shadow); }
.card, .hero-card { padding: 18px; }
.form-card { max-width: 430px; margin: 38px auto; }
.grid { gap: 14px; }
.stats { gap: 12px; margin-top: 18px; }
.stat { padding: 14px; }
.stat strong { font-size: 22px; }

label { font-size: 12px; margin-bottom: 5px; }
input, select, textarea { padding: 9px 11px; font-size: 13px; border-radius: 8px; min-height: 36px; }
textarea { min-height: 90px; }
.form-group { margin-bottom: 12px; }
.form-grid { gap: 12px; }
.help-text { font-size: 11px; margin-top: 4px; }
.alert { padding: 9px 11px; border-radius: 8px; margin-bottom: 12px; font-size: 13px; }

.admin-shell { grid-template-columns: 238px 1fr; }
.admin-sidebar { padding: 15px 13px; background: #10283f; }
.admin-logo { padding-bottom: 14px; margin-bottom: 12px; }
.admin-logo strong { font-size: 14px; }
.admin-menu { gap: 3px; }
.admin-menu a { padding: 8px 10px; border-radius: 8px; font-size: 12.5px; min-height: 34px; }
.admin-menu a.active,
.admin-menu a:hover { background: rgba(255,255,255,.12); }
.admin-menu a.active { color: #fff; font-weight: 700; }
.badge { min-width: 20px; height: 20px; font-size: 10px; padding: 0 6px; }

.admin-topbar { height: 66px; padding: 0 20px; }
.admin-topbar h1 { font-size: 20px; line-height: 1.2; }
.admin-topbar p { font-size: 12px; margin-top: 2px; }
.admin-profile { padding: 7px 11px; font-size: 12px; border-radius: 8px; }
.admin-content { padding: 20px; }
.admin-page-head { gap: 12px; margin-bottom: 14px; }
.admin-page-head h2 { font-size: 20px; margin-bottom: 3px; }
.admin-page-head p { font-size: 13px; }

.dashboard-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.metric-card { padding: 15px; border-radius: 10px; }
.metric-card span { font-size: 12px; }
.metric-card strong { font-size: 25px; margin-top: 6px; }
.candidate-dashboard-cards .metric-card strong { font-size: 20px; }

.toolbar { gap: 9px; margin-bottom: 12px; }
.toolbar .form-group { min-width: 160px; }
.toolbar .search-box { min-width: 230px; }
.admin-actions { gap: 6px; }
.table-wrap { border-radius: 10px; }
th, td { padding: 9px 10px; font-size: 12.5px; vertical-align: middle; }
th { font-size: 11.5px; letter-spacing: .01em; }
table .btn.small { margin: 1px 0; }
.placeholder { padding: 24px; font-size: 13px; }
.status-pill { padding: 4px 8px; font-size: 11px; }
.count-chip { min-width: 24px; height: 24px; font-size: 11px; }
.doc-chip { padding: 4px 7px; font-size: 11px; }

.compact-card { padding: 14px; }
.compact-hero { padding: 30px 0; }
.compact-hero h1 { font-size: clamp(24px, 3vw, 36px); }
.job-search-card { padding: 14px; gap: 10px; margin-bottom: 16px; }
.jobs-result-head { margin: 16px 0 12px; }
.job-card { padding: 16px; gap: 14px; }
.job-card h3 { font-size: 18px; margin-bottom: 7px; }
.job-card p { font-size: 13px; line-height: 1.5; margin-top: 8px; }
.job-meta { gap: 6px; }
.job-meta span, .meta-row span { padding: 5px 8px; font-size: 11.5px; }
.job-detail-layout { grid-template-columns: 1fr 300px; gap: 16px; }
.job-side-card { top: 76px; }
.content-block { font-size: 13.5px; line-height: 1.65; margin-bottom: 18px; }
.job-summary { gap: 7px; margin: 12px 0 16px; }
.job-summary dt { font-size: 11.5px; }
.job-summary dd { font-size: 13px; }

.detail-grid { gap: 10px; }
.detail-grid div { padding: 10px; border-radius: 9px; }
.detail-grid span { font-size: 10.5px; margin-bottom: 4px; }
.detail-grid strong { font-size: 12.5px; }
.document-status { padding: 10px; border-radius: 10px; }
.candidate-profile-admin-layout { gap: 14px; }
.candidate-photo-frame { width: 70px; height: 70px; border-radius: 14px; }
.candidate-photo-placeholder { font-size: 27px; }
.candidate-head-left { gap: 12px; }
.candidate-head-meta { gap: 6px; margin-top: 6px; }
.candidate-head-meta span { font-size: 11px; min-height: 22px; padding: 3px 7px; }
.quick-status-form { gap: 4px; }

.cv-viewer-layout { gap: 14px; }
.cv-preview-frame { height: 650px; border-radius: 10px; }
.cv-side-panel { top: 76px; }
.cv-action-grid { gap: 7px; }

.site-footer { padding: 16px 0; margin-top: 28px; font-size: 12px; }

@media (max-width: 1180px) {
    .dashboard-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .admin-shell { grid-template-columns: 220px 1fr; }
}

@media (max-width: 900px) {
    html { font-size: 13px; }
    .admin-shell { grid-template-columns: 1fr; }
    .admin-sidebar { padding: 12px; }
    .admin-menu { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .admin-topbar { height: auto; padding: 14px; align-items: flex-start; gap: 10px; }
    .admin-content { padding: 14px; }
    .dashboard-cards { grid-template-columns: 1fr; }
    .job-detail-layout { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .admin-menu { grid-template-columns: 1fr; }
    .admin-topbar { flex-direction: column; }
    .dashboard-cards { gap: 10px; }
    th, td { padding: 8px; }
}

/* =========================================================
   Patch 10F-3: Faculty bulk departments + accordion UI
   Appended to full Patch 10E compact UI stylesheet.
   ========================================================= */

/* Patch 10F-3: Faculty bulk departments and accordion department assignment */
.mini-details {
    margin-top: 6px;
}
.mini-details summary {
    cursor: pointer;
    color: #2563eb;
    font-size: 12px;
    font-weight: 600;
}
.mini-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
    max-width: 520px;
}
.mini-tag {
    background: #f3f6fb;
    border: 1px solid #dbe4f0;
    border-radius: 999px;
    color: #334155;
    display: inline-block;
    font-size: 11px;
    line-height: 1.2;
    padding: 4px 8px;
}
.faculty-assignment-help {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    color: #475569;
    font-size: 13px;
    margin-bottom: 12px;
    padding: 10px 12px;
}
.faculty-assignment-list {
    display: grid;
    gap: 10px;
}
.faculty-accordion {
    background: #fff;
    border: 1px solid #dbe4f0;
    border-radius: 12px;
    overflow: hidden;
}
.faculty-accordion-head {
    align-items: center;
    background: #f8fafc;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
}
.faculty-select-label {
    align-items: center;
    cursor: pointer;
    display: flex;
    gap: 10px;
    margin: 0;
}
.faculty-select-label input {
    width: 16px;
    height: 16px;
}
.faculty-select-label small {
    color: #64748b;
    display: block;
    font-size: 12px;
    margin-top: 2px;
}
.faculty-accordion-body {
    display: none;
    padding: 12px;
}
.faculty-accordion.open .faculty-accordion-body {
    display: block;
}
.compact-check-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.compact-check-grid .check-card {
    min-height: auto;
    padding: 8px 10px;
}

/* Patch 10G: Frontend jobs on homepage + compact department display */
.home-jobs-hero { padding-bottom: 28px; }
.home-jobs-hero .hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.home-job-section { padding-top: 24px; }
.jobs-result-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; margin: 18px 0 14px; }
.jobs-result-head h2 { margin: 0; }
.jobs-result-head p { margin: 0; max-width: 620px; }
.job-card-clean { grid-template-columns: 1fr 150px; align-items: center; }
.job-card-clean .job-meta { display: flex; flex-wrap: wrap; gap: 7px; margin: 9px 0; }
.job-card-clean .job-meta span { max-width: none; white-space: normal; }
.job-scope { margin: 8px 0 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.job-scope strong { color: var(--text); }
.job-faculty-preview { margin: 7px 0 0; color: #40546a; font-size: 12.5px; line-height: 1.45; }
.job-detail-title-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.job-detail-title-meta span { background: #fff; border: 1px solid var(--border); border-radius: 999px; padding: 6px 10px; color: #40546a; font-size: 13px; font-weight: 700; }
.faculty-department-list { display: grid; gap: 10px; margin-top: 12px; }
.faculty-department-list details { border: 1px solid var(--border); border-radius: 14px; background: #fbfdff; overflow: hidden; }
.faculty-department-list summary { cursor: pointer; padding: 12px 14px; font-weight: 800; color: #173b5c; display: flex; justify-content: space-between; gap: 12px; }
.faculty-department-list summary span { color: var(--muted); font-weight: 700; font-size: 12px; white-space: nowrap; }
.department-chip-list { display: flex; flex-wrap: wrap; gap: 7px; padding: 0 14px 14px; }
.department-chip-list span { display: inline-flex; border: 1px solid #d9e2ec; background: #fff; border-radius: 999px; padding: 5px 9px; font-size: 12px; color: #263f58; }
.job-summary dd.summary-scroll { max-height: 130px; overflow: auto; padding-right: 4px; }
.job-summary-count { display: inline-block; background: #eef6ff; border: 1px solid #d8e8f8; color: #173b5c; border-radius: 999px; padding: 5px 9px; font-size: 12px; font-weight: 800; margin: 2px 4px 2px 0; }
@media (max-width: 768px) {
    .jobs-result-head { display: block; }
    .jobs-result-head p { margin-top: 6px; }
    .job-card-clean { grid-template-columns: 1fr; }
}

/* Patch 10H: Public homepage jobs table */
.compact-search-card {
    grid-template-columns: 1.2fr 1fr 1fr 1fr 0.9fr auto;
    align-items: end;
}
.jobs-table-panel {
    background: #ffffff;
    border: 1px solid #dbe4ee;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}
.jobs-table-title {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    padding: 14px 18px;
    background: linear-gradient(135deg, rgba(18, 71, 114, 0.08), rgba(37, 99, 235, 0.04));
    border-bottom: 1px solid #dbe4ee;
}
.jobs-table-title h2 {
    margin: 0;
    font-size: 18px;
}
.public-jobs-table-wrap {
    overflow-x: auto;
}
.public-jobs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    background: #ffffff;
}
.public-jobs-table th,
.public-jobs-table td {
    padding: 11px 12px;
    border-bottom: 1px solid #edf2f7;
    text-align: left;
    vertical-align: middle;
}
.public-jobs-table th {
    background: #f8fafc;
    color: #0f2742;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}
.public-jobs-table tbody tr:hover {
    background: #f8fbff;
}
.public-jobs-table td:nth-child(2),
.public-jobs-table td:nth-child(3) {
    max-width: 260px;
    line-height: 1.35;
}
.serial-col {
    width: 58px;
    font-weight: 700;
    color: #0f2742;
    text-align: center !important;
}
.action-col {
    width: 92px;
    text-align: center !important;
    white-space: nowrap;
}
.table-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 76px;
    padding: 7px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
    border: 1px solid transparent;
}
.table-action.view {
    color: #124772;
    background: #eef6ff;
    border-color: #c8e2ff;
}
.table-action.apply {
    color: #ffffff;
    background: #124772;
    border-color: #124772;
}
.table-action:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.12);
}
.empty-table-cell {
    text-align: center !important;
    padding: 28px !important;
    color: #64748b;
}
.selected-department-box {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 16px;
    border: 1px solid #c8e2ff;
    background: #f4f9ff;
    border-radius: 12px;
    margin-bottom: 18px;
}
.selected-department-box strong {
    color: #0f2742;
    font-size: 15px;
}
.selected-department-box span {
    color: #475569;
    font-size: 13px;
}
.compact-faculty-list .department-chip-list a {
    display: inline-flex;
    padding: 7px 10px;
    border-radius: 999px;
    background: #eef6ff;
    color: #124772;
    border: 1px solid #c8e2ff;
    text-decoration: none;
    font-weight: 700;
    font-size: 12px;
}
.compact-faculty-list .department-chip-list a:hover {
    background: #124772;
    color: #ffffff;
}
@media (max-width: 1100px) {
    .compact-search-card { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
    .compact-search-card { grid-template-columns: 1fr; }
    .jobs-table-title { flex-direction: column; align-items: flex-start; }
    .public-jobs-table { min-width: 850px; }
}
