:root {
  --portal-blue:#17618c; --portal-blue-dark:#14577f; --portal-blue-light:#2b7ca5;
  --portal-ink:#303b40; --portal-muted:#718087; --portal-border:#d9e0e3;
  --portal-bg:#f4f7f8; --portal-navy:#06283d; --portal-active:#e3f2f5;
}
* { box-sizing:border-box; }
html,body { margin:0; min-height:100%; font-family:Arial,Helvetica,sans-serif; color:var(--portal-ink); }
button,input { font:inherit; }
button,a { -webkit-tap-highlight-color:transparent; }
.screen { display:none; min-height:100vh; }
.screen.active { display:block; }

/* LOGIN SCREEN */
.login-screen { min-height:100vh; display:none; flex-direction:column; background:var(--portal-bg); }
.login-screen.active { display:flex; }
.login-screen .topbar {min-height:82px; padding:0 18px; display:flex; align-items:center; justify-content:center;background:linear-gradient(105deg,#bde9eb,#e8f5ff); border:2px solid #d6e0e5; border-radius:8px 8px 0 0; color:#fff;}
.login-screen .brand { display:flex; align-items:baseline; gap:10px; }
.login-screen .brand-name img { display:block; max-width:230px; max-height:56px; object-fit:contain; }
.login-screen main {flex:1; display:grid; place-items:center; padding:52px 20px 64px;
	background:radial-gradient(circle at 15% 15%,rgba(36,119,160,.08),transparent 30%), radial-gradient(circle at 90% 85%,rgba(36,119,160,.07),transparent 28%),var(--portal-bg);}

.login-screen .login-card {width:min(100%,440px); padding:38px 40px 34px; background:#fff; border:1px solid #e0e6e8; border-radius:12px; box-shadow:0 14px 40px rgba(27,63,80,.10);}
.login-screen h1 { margin:0; color:#3e484c; font:700 29px Georgia,"Times New Roman",serif; }
.login-screen .intro { margin:10px 0 29px; color:var(--portal-muted); font-size:14px; line-height:1.6; }
.login-screen .field { margin-bottom:19px; }
.login-screen label { display:block; margin-bottom:8px; color:#3d484d; font-size:14px; font-weight:700; }
.login-screen .input-wrap { position:relative; }
.login-screen input[type="email"],.login-screen input[type="password"],.login-screen input[type="text"] {width:100%; height:49px; padding:0 14px; border:1px solid #cfd8dc; border-radius:6px;
  background:#fff; color:var(--portal-ink); font:15px Arial,Helvetica,sans-serif; outline:none; transition:border-color .2s,box-shadow .2s;}
.login-screen input:focus { border-color:#4b91b4; box-shadow:0 0 0 3px rgba(38,119,160,.12); }
.login-screen .password-input { padding-right:76px!important; }
.login-screen .toggle-password {position:absolute; top:50%; right:12px; transform:translateY(-50%); border:0; background:transparent; color:var(--portal-blue); font-size:12px; font-weight:700; cursor:pointer;}
.login-screen .form-options { display:flex; align-items:center; justify-content:space-between; gap:12px; margin:3px 0 24px; font-size:13px; }
.login-screen .remember { display:inline-flex; align-items:center; gap:8px; color:#59666c; cursor:pointer; }
.login-screen .remember input { width:15px; height:15px; accent-color:var(--portal-blue); }
.login-screen a { color:var(--portal-blue); text-decoration:none; font-weight:600; }
.login-screen a:hover { text-decoration:underline; }
.login-screen .login-button {display:block; width:100%; height:49px; border:0; border-radius:6px; background:linear-gradient(105deg,#1b638b,#15577f); color:#fff; font-size:15px; font-weight:700; cursor:pointer; box-shadow:0 5px 12px rgba(21,87,127,.18); transition:filter .2s,transform .2s; text-align:center; line-height:49px;}
.login-screen .login-button:hover { filter:brightness(1.08); transform:translateY(-1px); }
.login-screen .message { display:none; margin-top:16px; padding:11px 12px; border-radius:6px; background:#eef6fa; color:#245d79; font-size:13px; line-height:1.5; }
.login-screen .support { margin:24px 0 0; padding-top:20px; border-top:1px solid #edf0f1; color:#77848a; font-size:12px; line-height:1.6; text-align:center; }
.login-screen footer { padding:17px 20px; color:#829096; font-size:12px; text-align:center; background:#fff; border-top:1px solid #e5eaec; }

/* HOME / MY PORTALS SCREEN */
.home-screen { background:#fff; font-size:16px; }
.home-screen .topbar {min-height:82px; padding:0 22px 0 29px; display:flex; align-items:center; justify-content:space-between; gap:24px; color:#fff; background:linear-gradient(105deg,#1b638b,#15577f); border:2px solid #d6e0e5; border-radius:8px 8px 0 0;}
.home-screen .brand { display:flex; align-items:baseline; gap:9px; white-space:nowrap; }
.home-screen .brand-name { font:400 clamp(25px,2.1vw,36px) Georgia,"Times New Roman",serif; letter-spacing:-1.1px; }
.home-screen .brand-subtitle { font-size:18px; font-weight:600; }
.home-screen .top-actions { display:flex; align-items:center; justify-content:flex-end; gap:14px; min-width:0; }
.home-screen .welcome { font-size:17px; white-space:nowrap; }
.home-screen .pill,.candidate-screen .pill {border:0; border-radius:28px; padding:15px 22px; color:#f7fbfd; background:#2b7ca5; box-shadow:inset 0 1px 2px rgba(255,255,255,.12); font:600 16px Arial,Helvetica,sans-serif; white-space:nowrap; cursor:pointer; transition:background .2s,transform .2s;}
.home-screen .pill:hover,.candidate-screen .pill:hover { background:#358bb5; transform:translateY(-1px);}
.home-screen .search-button { display:inline-flex; align-items:center; gap:10px; padding-right:18px; }
.home-screen .search-icon { width:17px; height:17px; border:2px solid currentColor; border-radius:50%; display:inline-block; position:relative; }
.home-screen .search-icon:after { content:""; position:absolute; width:7px; height:2px; background:currentColor; right:-6px; bottom:-3px; transform:rotate(48deg); border-radius:2px; }
.home-screen main { padding:8px 16px 40px 27px; }
.home-screen .section-heading { display:flex; align-items:center; justify-content:space-between; gap:20px; margin:0 0 29px 5px; min-height:62px; }
.home-screen h1 { margin:0; color:#41494b; font-size:29px; font-weight:700; }
.home-screen .filter { width:255px; height:54px; padding:0 18px; border:1px solid #c9cdce; border-radius:6px; background:#fff; color:#555; font:15px Arial,Helvetica,sans-serif; outline:none; box-shadow:0 1px 2px rgba(0,0,0,.04); }
.home-screen .filter:focus { border-color:#6e9bb3; box-shadow:0 0 0 3px rgba(38,119,160,.12); }
.home-screen .table-wrap { overflow-x:auto; border:1px solid #d8dada; border-radius:10px; box-shadow:0 0 1px rgba(0,0,0,.08); }
.home-screen table { width:100%; min-width:760px; border-collapse:collapse; table-layout:fixed; }
.home-screen thead { background:#f0f1f1; }
.home-screen th { height:68px; padding:0 19px; text-align:left; color:#252a2c; font-size:16px; font-weight:700; border-bottom:1px solid #d9dddd; }
.home-screen td { height:64px; padding:0 19px; font-size:16px; white-space:nowrap; }
.home-screen th:nth-child(1),.home-screen td:nth-child(1) { width:42%; }
.home-screen th:nth-child(2),.home-screen td:nth-child(2) { width:42%; }
.home-screen th:nth-child(3),.home-screen td:nth-child(3) { width:9%; }
.home-screen th:nth-child(4),.home-screen td:nth-child(4) { width:7%; }
.home-screen .portal-link { color:#6d8998; text-decoration:none; font-weight:600; }
.home-screen .portal-link:hover { color:#245f7c; text-decoration:underline; }
.home-screen .empty-state { display:none; padding:24px; color:#687276; text-align:center; border-top:1px solid #d8dada; }

/* CANDIDATE PROFILES SCREEN */
.candidate-screen { background:#fff; color:#303a3e; font-size:14px; }
.candidate-screen .app { min-height:100vh; display:grid; grid-template-columns:98px minmax(0,1fr); }
.candidate-screen .sidebar { grid-row:1/span 3; background:#06283d; color:#fff; display:flex; flex-direction:column; align-items:center; padding:25px 10px 14px; gap:22px; min-height:100vh; }
.candidate-screen .side-link { width:100%; display:flex; flex-direction:column; align-items:center; gap:6px; color:#fff; text-decoration:none; font-size:13px; }
.candidate-screen .side-icon { width:51px; height:51px; border-radius:50%; display:grid; place-items:center; background:#526c7a; border:1px solid rgba(255,255,255,.16); color:#fff; }
.candidate-screen .side-icon svg { width:24px; height:24px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.candidate-screen .side-link.active .side-icon { background:#f3f7f8; color:#143d55; }
.candidate-screen .side-spacer { flex:1; }
.candidate-screen .side-divider { height:1px; width:68px; background:rgba(255,255,255,.2); margin:-8px 0; }
.candidate-screen .header { height:73px; background:linear-gradient(100deg,#1b638b,#15577f); color:#fff; display:flex; align-items:center; justify-content:space-between; padding:0 28px 0 26px; gap:18px; }
.candidate-screen .brand { display:flex; align-items:baseline; gap:8px; white-space:nowrap; }
.candidate-screen .brand-name { font:34px Georgia,"Times New Roman",serif; letter-spacing:-1px; }
.candidate-screen .brand-sub { font-weight:600; font-size:16px; }
.candidate-screen .account { display:flex; align-items:center; justify-content:flex-end; gap:13px; min-width:0; }
.candidate-screen .welcome { white-space:nowrap; font-size:16px; }
.candidate-screen .pill { padding:13px 22px; font-size:14px; }
.candidate-screen .search-btn { display:flex; align-items:center; gap:10px; }
.candidate-screen .search-glass { width:16px; height:16px; border:2px solid #fff; border-radius:50%; position:relative; }
.candidate-screen .search-glass:after { content:""; position:absolute; width:7px; height:2px; background:#fff; right:-5px; bottom:-3px; transform:rotate(48deg); }
.candidate-screen .assignment-bar { height:57px; background:#0a4269; color:#fff; display:flex; align-items:center; padding:0 26px; white-space:nowrap; overflow:hidden; font-size: 16px;}
.candidate-screen .assignment-bar strong { font-weight:700; }
.candidate-screen .assignment-bar .sep { padding:0 15px; color:#e5edf1; }
.candidate-screen .content { min-width:0; padding:18px 27px 35px; }
.candidate-screen .toolbar { display:flex; align-items:center; gap:10px; min-width:0; margin-bottom:18px; }
.candidate-screen .page-title { margin-right:5px; white-space:nowrap; font:700 27px Georgia,"Times New Roman",serif; }
.candidate-screen .back-btn,.candidate-screen .round-btn,.candidate-screen .pdf-btn,.candidate-screen .tab,.candidate-screen .next-btn { border:1px solid #d8dfe1; background:#fff; color:#20292d; cursor:pointer; }
.candidate-screen .back-btn { height:45px; width:45px; flex:none; background:#f0f1f1; color:#65757c; font-size:28px; border-radius:50%; }
.candidate-screen .back-btn:hover,.candidate-screen .next-btn:hover { background:#eaf2f5; color:#06446c; }
.candidate-screen .tabs { display:flex; align-items:center; gap:9px; min-width:0; overflow-x:auto; overflow-y:hidden; flex:1; scroll-behavior:smooth; scrollbar-width:none; -ms-overflow-style:none; overscroll-behavior-x:contain; }
.candidate-screen .tabs::-webkit-scrollbar { display:none; }
.candidate-screen .tab {height: 45px; padding: 14px 18px; border-radius: 26px; font-size: 13px; font-weight: 600; white-space: nowrap; transition: .15s; text-decoration: none;}
.candidate-screen .tabs a{text-decoration: none;}
.candidate-screen .tab.active { background:#06446c; color:#fff; border-color:#06446c; }
.candidate-screen .tab:hover:not(.active) { background:#f5f8f9; }
.candidate-screen .next-btn { border-radius:50%; width:38px; height:38px; flex:none; font-size:27px; padding:0; color:#20292d; }
.candidate-screen .next-btn:disabled,.candidate-screen .back-btn:disabled { opacity:.35; cursor:default; }
.candidate-screen .round-btn,.candidate-screen .pdf-btn { width:45px; height:45px; border-radius:50%; display:grid; place-items:center; flex:none; }
.candidate-screen .round-btn { font-size:25px; }
.candidate-screen .pdf-btn { font-weight:700; font-size:13px; }
.candidate-screen .group { border-top:4px solid #0a4269; border-radius:4px 4px 0 0; margin-top:14px; overflow:hidden; }
.candidate-screen .group-heading { min-height:64px; background:#f0f2f1; display:flex; align-items:center; padding:0 22px; gap:13px; }
.candidate-screen .group-heading h2 { font:700 23px Georgia,"Times New Roman",serif; margin:0; color:#41494a; }
.candidate-screen .count { width:39px; height:39px; border:1px solid #d7dddf; border-radius:10px; display:grid; place-items:center; font-size:17px; color:#4e585c; flex:none; }
.candidate-screen .table-head,.candidate-screen .candidate-row { display:grid; grid-template-columns:66px minmax(210px,1.1fr) minmax(300px,1.2fr) minmax(180px,1fr)180px; align-items:center; }
.candidate-screen .table-head { height:30px; background:#e9ebea; color:#3e474a; font-weight:700; }
.candidate-screen .table-head>div,.candidate-screen .candidate-row>div { padding:0 10px; min-width:0; }
.candidate-screen .table-head>div:first-child,.candidate-screen .candidate-row>div:first-child { padding-left:21px; }
.candidate-screen .table-head .expand-label { text-align:center; color:#858d90; font-weight:400; padding-right:15px; }
.candidate-screen .candidate-row { min-height:48px; border-bottom:1px solid #d7dddd; background:#fff; font-size:14px; }
.candidate-screen .candidate-row:hover { background:#f2f8f9; }
.candidate-screen .candidate-row.selected { background:var(--portal-active); }
.candidate-screen .person { display:flex; align-items:center; gap:9px; min-width:0; font-weight:600; }
.candidate-screen .avatar { width:29px; height:29px; flex:none; border-radius:50%; border:1px solid #c5d0d4; background:linear-gradient(135deg,#d8e5e9,#91aab4); display:grid; place-items:center; color:#315366; font-size:11px; font-weight:700; overflow:hidden; }
.candidate-screen .name,.candidate-screen .position,.candidate-screen .company { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.candidate-screen .company { color:#52666e; }
.candidate-screen .expand { border:0; background:transparent; font-size:22px; cursor:pointer; line-height:1; transition:transform .2s; }
.candidate-screen .candidate-row.open .expand { transform:rotate(180deg); }
.candidate-screen .details { display:none; padding:15px 25px 17px 87px; background:#f8fafb; border-bottom:1px solid #d9dfe1; color:#526168; line-height:1.7; }
.candidate-screen .details.show { display:block; }
.candidate-screen .details strong { color:#34464e; }
.candidate-screen .terms { position:fixed; right:23px; bottom:20px; width:46px; height:46px; border:0; border-radius:50%; display:grid; place-items:center; background:#17618b; color:#fff; font-size:10px; font-weight:bold; box-shadow:0 2px 8px #0002; cursor:pointer; }


/* Candidate tab layout stability fix */
.candidate-screen .toolbar {
  display:grid;
  grid-template-columns:auto 40px minmax(0,1fr) 40px 45px 45px;
  align-items:center;
  gap:8px;
  width:100%;
}
.candidate-screen .tabs {
  width:100%;
  min-width:0;
  flex:none;
  padding:2px 0;
  gap:8px;
  scroll-padding-inline:4px;
}
.candidate-screen .tab {
  flex:0 0 auto;
  margin:0;
  line-height:1;
}
.candidate-screen .group[hidden],
.candidate-screen .tab-empty-state[hidden] { display:none !important; }
.candidate-screen .tab-empty-state {
  margin-top:14px;
  padding:22px;
  border:1px solid #d9e0e3;
  border-radius:8px;
  color:#66777e;
  background:#f8fafb;
  text-align:center;
}



/* Final fix: keep tab content directly below the toolbar with no reserved blank space */
.candidate-screen .assignment-bar { margin: 0 !important; }
.candidate-screen .content { padding-top: 8px !important; }
.candidate-screen .toolbar { margin-top: 0 !important; margin-bottom: 12px !important; min-height: 45px; }
.candidate-screen .group { margin-top: 0 !important; }
.candidate-screen .group[hidden] { display: none !important; height: 0 !important; min-height: 0 !important; margin: 0 !important; padding: 0 !important; border: 0 !important; overflow: hidden !important; }
.candidate-screen .tab-empty-state[hidden] { display: none !important; }


/* FINAL: lock the candidate page grid so tab changes never shift vertical layout.
   The sidebar spans all rows; explicit row sizing prevents its 100vh height
   from stretching the assignment/header rows and creating blank space. */
.candidate-screen .app {
  display: grid !important;
  grid-template-columns: 98px minmax(0, 1fr) !important;
  grid-template-rows: 73px 57px minmax(0, 1fr) !important;
  align-content: start !important;
  min-height: 100vh;
}
.candidate-screen .sidebar {
  grid-column: 1;
  grid-row: 1 / 4 !important;
  align-self: stretch;
  min-height: 100vh;
}
.candidate-screen .header { grid-column: 2; grid-row: 1; }
.candidate-screen .assignment-bar { grid-column: 2; grid-row: 2; }
.candidate-screen .content {
  grid-column: 2;
  grid-row: 3;
  align-self: start;
  margin: 0 !important;
  padding-top: 8px !important;
}
.candidate-screen .toolbar { margin-top: 0 !important; }


/*-------------process------------*/


.page {
  width: 100%; 
}

.candidate-card {
  width: 100%;
  border-top: 4px solid #0d4968;
  border-radius: 4px 4px 0 0;
  overflow: hidden;
  background: #fff;
}

.card-heading {
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 12px 24px;
  background: #f0f2f0;
}

.card-heading h1 {
  margin: 0;
  color: #42494a; 
  font-size: clamp(21px, 1.65vw, 29px);
  font-weight: 700;
}

.count {
  min-width: 43px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d6dcda;
  border-radius: 12px;
  background: #f7f8f7;
  font-size: 18px;
}

.table-heading {
  min-height: 32px;
  display: grid;
  grid-template-columns: 70px 30% 30% 1fr 125px;
  align-items: center;
  padding: 0 22px;
  background: #e9eae9;
  color: #3f4546;
  font-weight: 700;
  font-size: 14px;
}

.table-heading span:last-child {
  text-align: right;
  color: #7d8585;
  font-weight: 400;
}

.expanded-grid {
  display: grid;
  grid-template-columns: 25.5% 25.5% 25.5% 23.5%;
  align-items: stretch;
  min-height: 550px;
}

.expanded-grid > article,
.feedback-column {
  min-width: 0;
  padding: 17px 20px 28px;
}

.profile-column,
.schedule-column,
.documents-column {
  border-right: 1px solid #78999e;
}

.identity {
  display: flex;
  align-items: flex-start;
  gap: 11px;
}

.avatar {
  flex: 0 0 59px;
  width: 59px;
  height: 59px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #d5e0e1;
  border-radius: 50%;
  background: linear-gradient(145deg, #e6eeee, #9bb4bb);
  color: #31556a;
  font-weight: 700;
  font-size: 15px;
}

.identity-copy h2 {
  margin: -2px 0 7px;
  color: #252d30; 
  font-size: clamp(20px, 1.45vw, 27px);
  line-height: 1.15;
}

.identity-copy p {
  margin: 0 0 8px;
  line-height: 1.45;
  font-size: 16px;
}

.identity-copy .role {
  color: #30383b;
  font-weight: 700;
}

.identity-copy .company,
.identity-copy .location {
  color: #52696d;
}

.detail-section {
  margin: 0 0 24px;
}

.detail-section h3,
.feedback-heading h3 {
  margin: 0 0 13px;
  color: #30393b; 
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .15px;
}

.detail-section p {
  margin: 0 0 10px;
  line-height: 1.45;
  font-size: 16px;
}

.education {
  margin-top: 31px;
}

.education p {
  margin-bottom: 24px;
  color: #52676b;
}

.meeting-list {
  margin: 10px 0 0;
  padding-left: 25px;
}

.meeting-list li {
  padding-left: 1px;
  margin: 0 0 13px;
  line-height: 1.4;
}

.career {
  margin-top: 32px;
}
.career-row{display:grid;grid-template-columns:40% 60%;gap:7px;margin-bottom:2px;line-height:1.4}
.career-row div{color:#52676b}
.career-row div b{color:#424b4e}

.documents-column {
  padding-left: 19px;
}

.document-link {
  color: #78999e;
  text-decoration: none;
  line-height: 1.4;
}

.document-link:hover {
  text-decoration: underline;
  color: #0d4968;
}

.links-section {
  margin-top: 23px;
}

.compensation {
  margin-top: 23px;
}

.feedback-column {
  background: #eaf4f7;
  padding: 14px 19px 28px;
}

.feedback-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.feedback-heading h3 {
  margin: 0;
}

.add-feedback {
  border: 0;
  padding: 0 2px;
  background: transparent;
  color: #126080;
  font-size: 31px;
  line-height: 1;
  cursor: pointer;
}

.feedback-text {
  margin: 0 0 13px;
  color: #52666c;
  font-size: 16px;
  line-height: 1.55;
}

.feedback-date {
  margin: 0;
  color: #9aa4a7;
  font-size: 15px;
}

.terms-button {
  position: fixed;
  right: 16px;
  bottom: 15px;
  width: 49px;
  height: 49px;
  border: 0;
  border-radius: 50%;
  background: #126080;
  color: #fff;
  font-weight: 700;
  font-size: 11px;
  box-shadow: 0 2px 7px #0002;
  cursor: pointer;
}




