/* Shared admissions workspace: retain the academy red and use quiet surfaces for dense forms. */
:root { --portal-ink:#182230; --portal-muted:#526174; --portal-line:#e3e8ef; --portal-surface:#f4f6f9; }
[hidden] { display:none !important; }
body { line-height:1.55; }
:where(a,button,input,select,textarea):focus-visible { outline:3px solid #2563eb; outline-offset:3px; }
button,a,input,select,textarea { touch-action:manipulation; }
button:disabled,.disabled { cursor:not-allowed; opacity:.55; }
.skip-link { position:fixed; left:16px; top:-80px; z-index:3000; padding:12px 20px; color:white; background:#182230; border-radius:8px; }
.skip-link:focus { top:12px; }
.portal-workspace { background:var(--portal-surface); padding:32px 28px 64px; font-size:15px; }
.portal-workspace .academy-container-wrapper { max-width:1440px; }
.portal-workspace .academy-content-board { padding:32px; border:1px solid var(--portal-line); border-radius:16px; box-shadow:0 4px 20px #18223006; }
.portal-workspace h1,.portal-workspace .page-title { font-size:clamp(24px,2.3vw,32px); letter-spacing:-.025em; margin:0 0 8px; padding:0; border:0; }
.portal-workspace h2 { font-size:21px; }
.portal-workspace .section-title { font-size:18px; padding:0 0 12px; margin:28px 0 20px; border-bottom:1px solid var(--portal-line); }
.page-heading { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:20px; margin-bottom:24px; }
.eyebrow { color:var(--primary); text-transform:uppercase; font-weight:700; font-size:11px; letter-spacing:.12em; margin:0 0 8px; }
.page-description,.page-subtitle,.muted,.cell-secondary { color:var(--portal-muted); }
.page-description { margin:0; font-size:15px; }
.page-actions { display:flex; flex-wrap:wrap; gap:10px; }
.portal-workspace .btn,.portal-workspace .btn-primary-custom,.portal-workspace .btn-upload,.portal-workspace .btn-view,.portal-workspace .btn-next { border-radius:8px; min-height:42px; font-weight:600; padding:10px 16px; display:inline-flex; align-items:center; justify-content:center; gap:6px; }
.portal-workspace .btn-primary,.portal-workspace .btn-primary-custom { background:var(--primary); border-color:var(--primary); color:#fff; }
.portal-workspace .btn-primary:hover,.portal-workspace .btn-primary-custom:hover { background:var(--primary-hover); border-color:var(--primary-hover); }
.portal-workspace .btn-outline-secondary { border-color:#cbd3dd; color:#344054; background:#fff; }
.portal-workspace .btn-outline-secondary:hover { background:#f2f4f7; color:#182230; }
.portal-workspace .btn-sm { font-size:13px; padding:8px 12px; white-space:nowrap; }
.portal-workspace .form-control,.portal-workspace .form-select,.portal-workspace .form-select-custom,.portal-workspace .form-textarea { min-height:44px; font-size:15px; border-radius:8px; padding:10px 12px; width:100%; border:1px solid #c6cfd9; }
.portal-workspace input[readonly] { background:#f5f7fa; }
.portal-workspace .form-grid { gap:20px 24px; }
.portal-workspace .form-grid > .form-group { width:100%; min-width:0; padding:0; }
.portal-workspace label { font-size:14px; color:#344054; font-weight:600; margin-bottom:7px; }
.portal-workspace .form-group { margin-bottom:16px; }
.portal-workspace .button-group { display:flex; align-items:center; flex-wrap:wrap; gap:12px; }
.portal-workspace .button-group form { margin:0; }
.portal-workspace .sticky-actions { position:sticky; bottom:12px; z-index:20; background:#fffffff5; backdrop-filter:blur(8px); border:1px solid var(--portal-line); box-shadow:0 4px 20px #1822300c; padding:14px 16px; border-radius:12px; margin-top:28px; }
.portal-workspace .input-validation-error { border:2px solid #b42318; }
.portal-workspace .field-validation-error,.portal-workspace .validation-error { color:#b42318; font-size:13px; margin-top:5px; }
.portal-workspace .validation-summary-valid { display:none; }
.portal-workspace .guide-box { background:#f7f9fc; border:1px solid var(--portal-line); border-left:3px solid var(--primary); border-radius:10px; padding:18px 22px; margin-bottom:24px; color:#475467; }
.filter-panel { background:#f7f9fb; border:1px solid var(--portal-line); border-radius:12px; padding:18px; display:flex; align-items:flex-end; flex-wrap:wrap; gap:14px; }
.filter-field { flex:1 1 155px; min-width:0; }
.filter-keyword { flex:2 1 260px; }
.filter-field label { display:block; }
.filter-help { flex-basis:100%; font-size:12px; color:var(--portal-muted); margin:0; }
.filter-reset { white-space:nowrap; }
.list-feedback { min-height:30px; padding-top:7px; font-size:13px; color:var(--portal-muted); }
.list-feedback a { text-decoration:underline; color:var(--primary); }
#profile-results { scroll-margin-top:108px; transition:opacity .15s; }
#profile-results[aria-busy="true"] { opacity:.6; }
.results-summary { display:flex; gap:12px; justify-content:space-between; flex-wrap:wrap; align-items:center; font-size:13px; margin:14px 0; }
.results-summary p { margin:0; }
.data-table-container { border:1px solid var(--portal-line); border-radius:12px; overflow:auto; }
.portal-table { width:100%; border-collapse:collapse; font-size:14px; }
.portal-table th { background:#f7f9fc; padding:14px 16px; color:#475467; text-align:left; font-size:12px; font-weight:600; white-space:nowrap; }
.portal-table td { padding:16px; border-top:1px solid var(--portal-line); vertical-align:middle; }
.portal-table tbody tr:hover { background:#fafbfe; }
.candidate-link { font-weight:650; color:#182230; }
.candidate-link:hover { color:var(--primary); text-decoration:underline; }
.cell-secondary { display:block; font-size:12px; margin-top:4px; }
.score-value { font-size:17px; font-weight:700; font-variant-numeric:tabular-nums; }
.portal-badge { display:inline-flex; align-items:center; padding:6px 10px; border-radius:6px; font-size:12px; font-weight:650; white-space:nowrap; border:1px solid transparent; }
.portal-badge.success { color:#11643a; background:#ebf8ef; border-color:#bce7cc; }
.portal-badge.danger { color:#a12a24; background:#fff0ee; border-color:#f4cac6; }
.portal-badge.warning { color:#855200; background:#fff7e5; border-color:#f4dfaa; }
.portal-badge.neutral { color:#344b6a; background:#edf3fc; border-color:#ceddf3; }
.empty-state { text-align:center; padding:50px 20px; border:1px dashed #cbd3dd; border-radius:12px; color:var(--portal-muted); }
.empty-state h2 { color:var(--portal-ink); }
.list-pagination { display:flex; justify-content:flex-end; align-items:center; flex-wrap:wrap; gap:6px; margin-top:20px; }
.list-pagination .page-link { color:#344054; border:1px solid #d5dce5; background:#fff; border-radius:8px; min-width:42px; min-height:42px; display:inline-flex; justify-content:center; align-items:center; padding:8px 12px; font-size:14px; text-decoration:none; }
.list-pagination .page-link.current { background:var(--primary); border-color:var(--primary); color:#fff; font-weight:700; }
.list-pagination a:hover,.list-pagination button:not(:disabled):hover { background:#f2f4f7; }
.pagination-gap { padding:0 2px; color:#667085; }
.application-steps { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; border-bottom:1px solid var(--portal-line); padding:0 0 24px; margin-bottom:28px; }
.application-step { display:flex; align-items:center; gap:10px; padding:12px; border-radius:9px; font-size:13px; color:#526174; font-weight:600; }
.application-step:hover { background:#f4f6f9; }
.step-number { width:30px; height:30px; flex-shrink:0; display:grid; place-items:center; border:1px solid #d1d9e4; border-radius:50%; background:#fff; }
.application-step.active { background:#fff1f0; color:var(--primary); }
.application-step.active .step-number { background:var(--primary); border-color:var(--primary); color:white; }
.guidance-card { border:1px solid #d4e1f2; border-radius:12px; background:#f3f7fd; padding:20px 24px; margin-bottom:24px; }
.guidance-card h2 { font-size:17px; margin-bottom:8px; }
.guidance-card p { color:#344b6a; margin:0; }
.profile-facts { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:22px; padding:24px; border:1px solid var(--portal-line); border-radius:12px; }
.profile-facts dt { font-size:13px; color:var(--portal-muted); font-weight:500; }
.profile-facts dd { margin:6px 0 0; font-size:15px; font-weight:600; overflow-wrap:anywhere; }
.score-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }
.score-card { border:1px solid var(--portal-line); border-radius:12px; padding:22px; display:flex; flex-direction:column; gap:8px; }
.score-card strong { font-size:30px; line-height:1.3; }
.score-card small { color:var(--portal-muted); }
.score-card.total { background:#fff4f2; border-color:#f0c9c5; }
.profile-detail-grid { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.2fr); gap:28px; align-items:start; }
.detail-panel { border:1px solid var(--portal-line); border-radius:12px; padding:24px; min-width:0; }
.portal-workspace .detail-panel .info-item { overflow-wrap:anywhere; margin-bottom:12px; font-size:14px; }
.portal-workspace .detail-panel .info-item strong { min-width:0; margin-right:6px; }
.portal-workspace .detail-panel .section-title:first-child { margin-top:0; }
.portal-workspace .avatar-box img { width:112px; height:132px; object-fit:cover; }
.portal-workspace .doc-table { min-width:620px; }
.portal-workspace .table-card { overflow-x:auto; box-shadow:none; border:1px solid var(--portal-line); }
.portal-workspace .doc-table th,.portal-workspace .doc-table td { padding:16px; }
.portal-workspace .table-footer { min-width:620px; }
.back-to-top { position:fixed; right:20px; bottom:20px; z-index:100; border:1px solid #ccd4df; color:#344054; background:#fff; border-radius:10px; padding:12px 16px; box-shadow:0 4px 18px #18223012; }
.portal-menu-toggle { display:none; }
.academy-navbar { padding:0 32px; min-height:80px; }
.academy-navbar__logo { height:62px; }
.academy-navbar__sub-logo { height:32px; }
.academy-navbar__link { min-height:44px; }
.noti-bell { border:0; background:transparent; color:inherit; min-width:44px; min-height:44px; display:grid; place-items:center; border-radius:8px; position:relative; }
.noti-dropdown { width:min(380px,calc(100vw - 32px)); }
.noti-message { overflow-wrap:anywhere; }
.notification-actions { display:flex; align-items:center; justify-content:center; flex-wrap:wrap; gap:8px; padding:12px; }
.notification-actions button { border:1px solid #d5dce5; border-radius:6px; background:white; padding:8px 12px; min-height:40px; }
.noti-item a { display:inline-block; text-decoration:underline; color:var(--primary); padding:8px 0; }
@media (max-width:1100px) {
    .academy-navbar { padding:10px 20px; gap:16px; }
    .academy-navbar__sub-logo { display:none; }
    .academy-navbar__right { gap:16px; }
    .portal-workspace .academy-content-board { padding:24px; }
}
@media (max-width:768px) {
    .academy-navbar { flex-direction:row; flex-wrap:wrap; position:relative; min-height:72px; padding:10px 16px; }
    .academy-navbar__logo { height:50px; }
    .portal-menu-toggle { display:block; border:1px solid #ffffff70; color:white; background:#ffffff12; padding:9px 14px; border-radius:8px; min-height:44px; }
    .academy-navbar__right-wrapper { display:none; flex-basis:100%; justify-content:stretch; }
    .academy-navbar__right-wrapper.is-open { display:flex; }
    .academy-navbar__right { flex-direction:column; align-items:stretch; width:100%; gap:6px; }
    .academy-navbar__link { padding:10px 12px; width:100%; border-radius:6px; }
    .academy-navbar__link.active { background:#ffffff18; }
    .academy-navbar__link::after { display:none; }
    .academy-navbar .dropdown-menu { position:static !important; transform:none !important; width:100%; }
    .noti-dropdown { left:0; right:auto; }
    .portal-workspace { padding:20px 12px 36px; }
    .portal-workspace .academy-content-board { padding:20px 16px; border-radius:12px; }
    .page-heading { align-items:flex-start; }
    .page-actions { width:100%; }
    .page-actions .btn { flex:1; }
    .filter-panel { padding:14px; gap:12px; }
    .filter-field { flex-basis:calc(50% - 12px); }
    .filter-keyword { flex-basis:100%; }
    .filter-reset { width:100%; }
    .list-pagination { justify-content:center; }
    .list-pagination .page-link { min-width:36px; min-height:40px; padding:7px 10px; }
    .responsive-table thead { display:none; }
    .responsive-table,.responsive-table tbody { display:block; }
    .responsive-table tr { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); padding:16px; gap:12px; border-bottom:1px solid var(--portal-line); }
    .responsive-table td { display:block; border:0; padding:0; overflow-wrap:anywhere; font-size:13px; }
    .responsive-table td::before { content:attr(data-label); display:block; font-size:11px; color:var(--portal-muted); margin-bottom:4px; }
    .responsive-table td:first-child { display:none; }
    .responsive-table td:nth-child(2) { grid-column:1/-1; }
    .responsive-table td:nth-child(2)::before { display:none; }
    .candidate-link { font-size:16px; }
    .profile-detail-grid,.profile-facts,.portal-workspace .form-grid { grid-template-columns:1fr; }
    .detail-panel { padding:18px; }
    .application-steps { grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px; padding-bottom:16px; margin-bottom:24px; }
    .application-step { padding:9px 7px; font-size:12px; gap:7px; }
    .step-number { width:26px; height:26px; }
    .score-grid { grid-template-columns:1fr; }
    .score-card { padding:16px; }
    .portal-workspace .sticky-actions { bottom:6px; padding:12px; gap:10px; }
    .portal-workspace .sticky-actions > * { flex:1; }
    .portal-workspace .sticky-actions form .btn { width:100%; }
    .back-to-top { bottom:82px; right:12px; padding:10px; font-size:12px; }
}
@media (prefers-reduced-motion:reduce) { *,*::before,*::after { animation:none !important; transition:none !important; scroll-behavior:auto !important; } }

/* Keep native text inputs readable without triggering zoom on small touch screens. */
@media (max-width:768px) {
    .portal-workspace input,.portal-workspace select,.portal-workspace textarea { font-size:16px; }
}
body[data-role="Applicant"] .noti-dropdown { width:min(380px,calc(100vw - 56px)); }
.academy-footer__bottom { background:#750b0b; color:#fff; }
