/* Phase 11 Employer Dashboard Foundation */
:root {
    --employer-bg: var(--bg);
    --employer-card: var(--surface);
    --employer-soft: var(--surface-alt, #f8fafc);
    --employer-text: var(--text);
    --employer-muted: var(--muted);
    --employer-border: var(--border);
    --employer-radius-xl: 26px;
    --employer-radius-lg: 20px;
    --employer-radius-md: 14px;
    --employer-shadow: var(--shadow-soft);
    --employer-control-height: 48px;
}
.employer-body { background: radial-gradient(circle at 0 0, color-mix(in srgb, var(--gold-soft) 55%, transparent), transparent 32rem), var(--bg); color: var(--text); min-height: 100vh; }
.employer-topbar { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 26px; border-bottom: 1px solid var(--border); background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(16px); }
.employer-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; min-width: 0; }
.employer-brand span { width: 44px; height: 44px; border-radius: 15px; background: linear-gradient(135deg, var(--gold), var(--primary)); color: #111827; display: inline-flex; align-items: center; justify-content: center; font-weight: 900; box-shadow: var(--shadow-soft); }
.employer-brand strong { display: block; font-size: 15px; letter-spacing: -.02em; }
.employer-brand small { display: block; color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.employer-top-actions { display: flex; align-items: center; gap: 10px; }
.employer-top-actions a { color: var(--text); text-decoration: none; font-weight: 800; font-size: 14px; min-height: 38px; display: inline-flex; align-items: center; padding: 8px 10px; border-radius: 999px; }
.employer-top-actions a:hover { background: var(--primary-soft); color: var(--primary-strong); }
.employer-shell { display: grid; grid-template-columns: 280px minmax(0, 1fr); min-height: calc(100vh - 72px); }
.employer-sidebar { border-right: 1px solid var(--border); background: linear-gradient(180deg, var(--surface), var(--surface-alt)); padding: 22px; }
.employer-sidebar nav { display: grid; gap: 8px; }
.employer-sidebar a { color: var(--muted); text-decoration: none; padding: 12px 14px; border-radius: 14px; font-weight: 850; display: flex; align-items: center; min-height: 42px; }
.employer-sidebar a.active, .employer-sidebar a:hover { color: var(--heading); background: var(--primary-soft); }
.employer-sidebar-note { margin-top: 18px; border: 1px solid var(--border); border-radius: 16px; padding: 14px; background: var(--surface); color: var(--muted); font-size: 13px; line-height: 1.5; }
.employer-main { padding: clamp(18px, 2.4vw, 30px); max-width: 1240px; width: 100%; }
.employer-page-head { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; margin-bottom: 22px; }
.employer-page-head h1 { margin: 4px 0; letter-spacing: -.04em; }
.employer-card { background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 96%, white), var(--surface)); border: 1px solid var(--border); border-radius: var(--employer-radius-xl); box-shadow: var(--employer-shadow); padding: clamp(18px, 2.5vw, 26px); margin-bottom: 20px; }
html[data-theme="dark"] .employer-card { background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 92%, #172a45), var(--surface)); }
.employer-card h2, .employer-card h3 { margin-top: 0; letter-spacing: -.03em; }
.employer-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; }
.employer-stat { background: var(--surface-alt); border: 1px solid var(--border); border-radius: var(--employer-radius-lg); padding: 18px; }
.employer-stat strong { display: block; font-size: 30px; color: var(--heading); line-height: 1; }
.employer-stat span { color: var(--muted); font-weight: 850; font-size: 13px; }
.employer-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.employer-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.employer-form-field { display: grid; gap: 8px; min-width: 0; }
.employer-form-field.full { grid-column: 1 / -1; }
.employer-form-field label { font-weight: 850; color: var(--heading); font-size: 13px; }
.employer-form-field input, .employer-form-field select, .employer-form-field textarea { width: 100%; min-height: var(--employer-control-height); border: 1px solid var(--border); border-radius: var(--employer-radius-md); padding: 12px 14px; background: var(--surface); color: var(--text); font: inherit; outline: none; }
.employer-form-field input:focus, .employer-form-field select:focus, .employer-form-field textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
.employer-form-field textarea { min-height: 132px; resize: vertical; }
.employer-table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--employer-radius-lg); background: var(--surface); }
.employer-table { width: 100%; border-collapse: separate; border-spacing: 0; min-width: 700px; }
.employer-table th, .employer-table td { padding: 14px 16px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.employer-table th { color: var(--muted); background: var(--surface-alt); font-size: 11px; text-transform: uppercase; letter-spacing: .07em; }
.employer-status { display: inline-flex; border-radius: 999px; padding: 6px 10px; background: var(--surface-alt); border: 1px solid var(--border); font-weight: 850; font-size: 12px; }
.employer-status.pending_review, .employer-status.submitted { background: color-mix(in srgb, var(--gold-soft) 70%, var(--surface)); color: var(--heading); }
.employer-status.verified, .employer-status.published { background: color-mix(in srgb, #16a34a 16%, var(--surface)); color: #15803d; }
.employer-empty { text-align: center; padding: 34px; color: var(--muted); background: var(--surface-alt); border-radius: var(--employer-radius-lg); }
.employer-notice { border: 1px solid var(--border); border-radius: var(--employer-radius-md); padding: 14px; background: var(--surface-alt); color: var(--muted); }
.employer-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.employer-detail { border: 1px solid var(--border); background: var(--surface-alt); border-radius: 16px; padding: 14px; }
.employer-detail span { display: block; color: var(--muted); font-size: 12px; font-weight: 850; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 6px; }
.employer-detail strong { display: block; color: var(--heading); overflow-wrap: anywhere; }
.employer-nav-toggle { display: none; }
@media (max-width: 960px) { .employer-shell { grid-template-columns: 1fr; } .employer-sidebar { position: fixed; z-index: 80; inset: 72px auto 0 0; width: 290px; transform: translateX(-105%); transition: .2s ease; box-shadow: var(--shadow); } .employer-sidebar.open { transform: translateX(0); } .employer-nav-toggle { display: inline-flex; } .employer-grid { grid-template-columns: repeat(2,1fr); } .employer-form-grid, .employer-detail-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .employer-topbar { padding: 12px 16px; } .employer-top-actions a { display: none; } .employer-main { padding: 16px; } .employer-grid { grid-template-columns: 1fr; } .employer-page-head { display: block; } .employer-actions { display: grid; grid-template-columns: 1fr; } .employer-actions .btn, .employer-actions form, .employer-actions button { width: 100%; } }

/* Full System UI/UX Refurbishment + Professional Alignment */
.employer-body { background: radial-gradient(circle at top left, color-mix(in srgb, var(--gold-soft) 55%, transparent), transparent 34rem), linear-gradient(180deg, var(--bg), var(--bg-strong)); }
.employer-topbar { min-height: 74px; box-shadow: 0 10px 30px rgba(15,23,42,.05); }
.employer-brand span { background: linear-gradient(135deg, var(--navy), var(--gold)); color: #fff; }
html[data-theme="dark"] .employer-brand span { color: #08111f; }
.employer-shell { background: transparent; }
.employer-sidebar { background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 96%, white), var(--surface-alt)); }
.employer-sidebar a { min-height: 44px; }
.employer-sidebar a.active { box-shadow: inset 3px 0 0 var(--gold); }
.employer-main { padding: clamp(18px, 2.5vw, 32px); }
.employer-card, .employer-stat, .employer-empty, .employer-table-wrap, .employer-notice, .employer-detail { border: 1px solid var(--border); box-shadow: var(--shadow-soft); }
.employer-card { border-radius: 24px; }
.employer-page-head h1 { letter-spacing: -.05em; line-height: 1.05; }
.employer-grid { gap: 16px; }
.employer-form-grid { gap: 15px; }
.employer-form-field input, .employer-form-field select, .employer-form-field textarea { min-height: 48px; border-radius: 14px; }
.employer-actions { gap: 10px; }
.employer-table th, .employer-table td { padding: 14px 16px; }
.employer-status { white-space: nowrap; }
@media (max-width: 960px) { .employer-sidebar { background: var(--surface); } }

/* Full refurbishment: employer auth precision */
input[type="hidden"] { display: none !important; }
.narrow-container { max-width: 760px; }
.employer-body main.section { padding-top: clamp(42px, 6vw, 82px); }
.employer-body main.section > .container.narrow-container { margin-inline: auto; }
.employer-card { max-width: 860px; margin-inline: auto; }
.employer-card > .employer-form-grid { grid-template-columns: 1fr; }
.employer-card .employer-actions { justify-content: flex-start; }
.employer-form-field input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), .employer-form-field select, .employer-form-field textarea { display: block; width: 100% !important; }
.employer-card .btn { min-width: 170px; }
@media (max-width: 640px) { .employer-card .btn { min-width: 0; } }

/* Phase 12: employer-controlled applications and shared shortlists */
.employer-status-panel { border-left: 5px solid var(--gold); }
.employer-section-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; margin-bottom: 16px; }
.employer-section-head p { color: var(--muted); margin: 4px 0 0; }
.employer-filter-card { max-width: 100%; }
.employer-filter-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 14px; align-items: end; }
.employer-filter-wide { grid-column: span 1; }
.employer-filter-actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 10px; align-items: center; }
.employer-pagination { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.employer-pagination a { border: 1px solid var(--border); border-radius: 999px; padding: 7px 11px; color: var(--text); text-decoration: none; font-weight: 850; }
.employer-pagination a.active, .employer-pagination a:hover { background: var(--primary-soft); color: var(--primary-strong); }
.employer-dashboard-split { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; max-width: 100%; }
.employer-dashboard-split article { min-width: 0; }
.employer-mini-list { display: grid; gap: 10px; }
.employer-mini-row { display: grid; gap: 4px; border: 1px solid var(--border); border-radius: 16px; padding: 12px 14px; text-decoration: none; color: var(--text); background: var(--surface-alt); }
.employer-mini-row:hover { border-color: var(--primary); transform: translateY(-1px); }
.employer-mini-row strong { color: var(--heading); overflow-wrap: anywhere; }
.employer-mini-row span { color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.employer-empty.compact { padding: 18px; }
.employer-long-text { color: var(--text); line-height: 1.75; overflow-wrap: anywhere; }
.employer-shortlist-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.employer-candidate-card { border: 1px solid var(--border); border-radius: var(--employer-radius-lg); background: var(--surface-alt); padding: 18px; display: grid; gap: 14px; }
.employer-candidate-card__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.employer-candidate-card__head strong { display: block; color: var(--heading); font-size: 18px; }
.employer-candidate-card__head span:not(.employer-status) { display: block; color: var(--muted); font-weight: 750; }
.employer-detail-grid.compact { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.employer-detail-grid.compact .employer-detail { padding: 12px; }
.employer-status.shortlisted, .employer-status.shared, .employer-status.recommended, .employer-status.selected { background: color-mix(in srgb, #16a34a 16%, var(--surface)); color: #15803d; }
.employer-status.rejected, .employer-status.not_suitable, .employer-status.archived, .employer-status.suspended { background: color-mix(in srgb, #dc2626 14%, var(--surface)); color: #b91c1c; }
.employer-status.contacted, .employer-status.reviewed, .employer-status.in_review { background: color-mix(in srgb, #2563eb 14%, var(--surface)); color: #1d4ed8; }
@media (max-width: 960px) { .employer-filter-grid, .employer-dashboard-split, .employer-shortlist-grid { grid-template-columns: 1fr; } .employer-filter-actions { justify-content: stretch; } .employer-filter-actions .btn { flex: 1; } }
@media (max-width: 640px) { .employer-filter-actions { display: grid; grid-template-columns: 1fr; } .employer-detail-grid.compact { grid-template-columns: 1fr; } .employer-candidate-card__head { display: grid; } }
.employer-shell .employer-card { max-width: none; }

/* Phase 12 final logo + light mode polish */
.employer-brand .employer-brand-logo {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: #0b1450 !important;
    padding: 5px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    flex: 0 0 auto;
}
.employer-brand .employer-brand-logo img,
.portal-auth-brand img { width: 100%; height: 100%; object-fit: contain; display: block; }
.portal-auth-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    margin-bottom: 16px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: color-mix(in srgb, var(--surface) 92%, var(--navy));
}
.portal-auth-brand img { width: 56px; height: 56px; border-radius: 16px; background: #0b1450; padding: 6px; }
.portal-auth-brand strong { display: block; color: var(--heading); }
.portal-auth-brand span { display: block; color: var(--muted); font-weight: 800; font-size: 12px; text-transform: uppercase; letter-spacing: .07em; }
.employer-card, .employer-panel, .employer-stat, .employer-table-wrap { border-color: var(--border); box-shadow: 0 16px 42px rgba(15,23,42,.075); }
.employer-form-field input, .employer-form-field select, .employer-form-field textarea { min-height: 46px; border-color: var(--border); background: var(--surface); color: var(--text); }
.employer-actions { align-items: center; gap: 10px; }
.employer-status-badge { font-weight: 850; }
@media (max-width: 720px) { .employer-actions .btn { width: 100%; } .portal-auth-brand { align-items: flex-start; } }

/* Phase 12 final correction: employer auth form/logo visual stability */
.auth-panel-branded .employer-form-grid { display: block !important; }
.auth-panel-branded .employer-form-field { display: block !important; margin-bottom: 15px; }
.auth-panel-branded .employer-form-field label { display: block; margin-bottom: 7px; }
.auth-panel-branded .employer-form-field input,
.auth-panel-branded .employer-form-field select,
.auth-panel-branded .employer-form-field textarea {
    display: block !important;
    width: 100% !important;
    min-height: 48px;
    box-sizing: border-box;
}
.auth-panel-branded .employer-actions { display: grid !important; grid-template-columns: 1fr; gap: 10px; margin-top: 8px; }
.auth-panel-branded .employer-actions .btn { width: 100% !important; min-width: 0; margin: 0; }
.auth-panel-branded .portal-auth-brand { overflow: hidden; }
.auth-panel-branded .portal-auth-brand img { flex: 0 0 56px; }

/* Phase 13 employer document visibility */
.employer-candidate-card .btn-small { padding: .55rem .85rem; min-height: 36px; font-size: .82rem; }
.employer-empty span { display:block; color: var(--muted, #64748b); margin-top:.35rem; }

/* Phase 13 correction: employer controlled-view compactness */
.employer-panel, .employer-card, .employer-form-card, .employer-table-wrap { border-radius: 20px; }
.employer-main { gap: 18px; }
.employer-form, .employer-form-grid { gap: 14px; }
.employer-form input, .employer-form select, .employer-form textarea { min-height: 44px; }
