@import url("/fonts.css");
:root {
  font-family: Arial, sans-serif;
  color: #183336;
  background: #f6f8f8;
  font-size: 14px;
  --teal: #087c75;
  --navy: #103c44;
  --line: #e4ebea;
  --muted: #738584;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 4px;
}
button {
  cursor: pointer;
}
a {
  color: var(--teal);
  text-decoration: none;
}
button {
  border: 1px solid var(--line);
  background: white;
  border-radius: 8px;
  padding: 10px 15px;
  color: #254744;
  font-weight: 600;
}
button:hover {
  background: #f0f7f5;
}
button.primary {
  background: var(--teal);
  color: white;
  border-color: var(--teal);
}
button.primary:hover {
  background: #076a65;
}
button.danger {
  color: #a63742;
  border-color: #f2d4d8;
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
input,
select,
textarea {
  border: 1px solid #d9e3e1;
  border-radius: 8px;
  padding: 11px 12px;
  background: white;
  color: #23413f;
  min-width: 0;
}
textarea {
  resize: vertical;
  min-height: 100px;
  line-height: 1.5;
}
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid #72bdb6;
}
label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
  color: #526b67;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 29px;
  letter-spacing: -1px;
  margin-bottom: 8px;
}
h2 {
  font-size: 18px;
  letter-spacing: -0.4px;
}
h3 {
  font-size: 15px;
}
p {
  color: #718480;
  line-height: 1.6;
}
.shell {
  display: flex;
  min-height: 100vh;
}
aside {
  width: 232px;
  background: white;
  border-right: 1px solid var(--line);
  padding: 28px 18px;
  position: fixed;
  inset: 0 auto 0 0;
  display: flex;
  flex-direction: column;
}
.brand img {
  width: 175px;
  height: 72px;
  object-fit: contain;
}
.workspace-tag {
  font-size: 10px;
  letter-spacing: 1.6px;
  color: #9aa7a4;
  margin: 37px 16px 16px;
}
nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
nav button {
  display: flex;
  align-items: center;
  text-align: left;
  border: 0;
  color: #6e817c;
  font-weight: 500;
  padding: 13px 15px;
  gap: 13px;
  background: transparent;
}
nav button.active {
  background: #e9f4f0;
  color: #087568;
  font-weight: 700;
}
nav svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
}
.sidebar-bottom {
  margin-top: auto;
  padding: 25px 12px 0;
}
.sidebar-bottom p {
  font-size: 11px;
  margin: 10px 0 20px;
}
.connection {
  font-size: 11px;
  font-weight: 600;
  color: #4e6c63;
}
.dot {
  width: 7px;
  height: 7px;
  display: inline-block;
  border-radius: 50%;
  background: #43a78a;
  margin-right: 6px;
}
.portal-link {
  font-size: 12px;
}
main {
  margin-left: 232px;
  flex: 1;
  min-width: 0;
}
header {
  height: 96px;
  padding: 0 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: white;
}
.eyebrow {
  font-size: 9px;
  color: #9aa8a5;
  letter-spacing: 2px;
}
.breadcrumb {
  font-size: 12px;
  margin-top: 10px;
  color: #93a19e;
}
.breadcrumb span {
  margin: 0 12px;
}
.breadcrumb b {
  font-weight: 500;
  color: #3d5b54;
}
.identity {
  display: flex;
  align-items: center;
  gap: 12px;
}
.identity select {
  padding: 8px;
  border: 0;
  background: #f4f7f6;
  max-width: 220px;
  font-size: 12px;
}
.demo-label {
  font-size: 10px;
  color: #94a39e;
}
.avatar {
  background: #dcece7;
  color: #267b68;
  border-radius: 50%;
  height: 34px;
  width: 34px;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
}
.demo-banner {
  background: #fffaf0;
  border-bottom: 1px solid #f1ead8;
  padding: 10px 42px;
  font-size: 11px;
  color: #887a54;
}
.demo-banner span {
  font-size: 9px;
  letter-spacing: 1px;
  margin-right: 15px;
  font-weight: 700;
}
#content {
  padding: 34px 42px 45px;
  max-width: 1700px;
  margin: auto;
}
.page-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 28px;
}
.page-head p {
  margin: 0;
  font-size: 13px;
}
.actions {
  display: flex;
  gap: 9px;
  align-items: center;
  flex-wrap: wrap;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 28px;
}
.stat {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 21px;
}
.stat-top {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #72847e;
}
.stat-icon {
  color: #4b9d87;
  font-size: 18px;
}
.stat strong {
  display: block;
  font-size: 31px;
  letter-spacing: -1px;
  margin: 13px 0 8px;
}
.stat small {
  font-size: 10px;
  color: #81958b;
}
.stat small em {
  font-style: normal;
  color: #3f937e;
}
.grid2 {
  display: grid;
  grid-template-columns: 1.65fr 1fr;
  gap: 22px;
  margin-bottom: 24px;
}
.panel {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  overflow: hidden;
}
.panel-head {
  padding: 21px 23px 17px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #f0f3f1;
}
.panel-head h2 {
  margin: 0;
  font-size: 15px;
}
.panel-head a {
  font-size: 11px;
}
.panel-body {
  padding: 22px;
}
.pill {
  display: inline-block;
  border-radius: 5px;
  padding: 5px 8px;
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
}
.pill.approved,
.pill.hired {
  background: #e8f5ee;
  color: #31835d;
}
.pill.pending,
.pill.offer {
  background: #fff4dc;
  color: #aa8438;
}
.pill.draft,
.pill.new {
  background: #eef2f4;
  color: #76818b;
}
.pill.rejected {
  background: #fbecee;
  color: #b65b65;
}
.pill.screening {
  background: #eaf2fc;
  color: #5a87b7;
}
.pill.interview {
  background: #f1ecfb;
  color: #8e74b1;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
th {
  font-weight: 500;
  color: #899b93;
  font-size: 10px;
  letter-spacing: 0.5px;
  padding: 13px 22px;
  background: #fcfdfc;
  border-bottom: 1px solid var(--line);
}
td {
  padding: 17px 22px;
  font-size: 12px;
  border-bottom: 1px solid #eef2f0;
}
tr:last-child td {
  border: 0;
}
td b {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 6px;
}
td small {
  font-size: 10px;
  color: #91a198;
}
.table-wrap {
  overflow: auto;
}
.row-button {
  padding: 6px 10px;
  font-size: 11px;
}
.empty {
  padding: 40px;
  text-align: center;
  color: #8ca096;
}
.funnel-row {
  display: grid;
  grid-template-columns: 75px 1fr 25px;
  gap: 12px;
  align-items: center;
  margin-bottom: 22px;
  font-size: 11px;
  color: #6b8277;
}
.bar {
  height: 8px;
  background: #eff4f1;
  border-radius: 5px;
  overflow: hidden;
}
.bar i {
  display: block;
  height: 100%;
  background: #5d9f8d;
  border-radius: 5px;
}
.activity {
  display: flex;
  gap: 12px;
  padding-bottom: 20px;
  font-size: 12px;
}
.activity .bullet {
  width: 7px;
  height: 7px;
  border: 2px solid #66aa96;
  border-radius: 50%;
  margin-top: 5px;
  flex-shrink: 0;
}
.activity p {
  margin: 5px 0 0;
  font-size: 10px;
  color: #93a19c;
}
.toolbar {
  display: flex;
  gap: 12px;
  margin-bottom: 23px;
}
.toolbar input {
  flex: 1;
  max-width: 380px;
}
.tabs {
  display: flex;
  gap: 8px;
}
.tabs button.active {
  background: #e8f3ed;
  color: var(--teal);
  border-color: #d6e8df;
}
.board {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 16px;
  min-height: 440px;
}
.column {
  min-width: 226px;
  width: 226px;
  background: #edf2ef;
  border-radius: 10px;
  padding: 14px;
  flex-shrink: 0;
}
.column-title {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
  margin: 3px 2px 18px;
}
.column-title span {
  border-radius: 4px;
  padding: 1px 5px;
  background: white;
  font-size: 10px;
  color: #81988a;
}
.candidate {
  display: block;
  text-align: left;
  background: white;
  border: 1px solid #e4ebe6;
  border-radius: 9px;
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: 0 2px 4px #244a3610;
  width: 100%;
}
.candidate .initials {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  background: #edf4f0;
  border-radius: 50%;
  color: #52836b;
  font-size: 10px;
  margin-bottom: 12px;
}
.candidate b {
  display: block;
  font-size: 12px;
  margin-bottom: 6px;
}
.candidate p {
  font-size: 10px;
  margin-bottom: 13px;
}
.candidate small {
  font-size: 9px;
  color: #8b9c92;
  border-top: 1px solid #edf2ee;
  display: block;
  padding-top: 10px;
}
.overlay {
  position: fixed;
  inset: 0;
  background: #163b3855;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  backdrop-filter: blur(3px);
}
.modal {
  background: #fff;
  border-radius: 16px;
  width: 760px;
  max-height: 90vh;
  overflow: auto;
  box-shadow: 0 20px 80px #173c3633;
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 23px 28px;
  border-bottom: 1px solid var(--line);
}
.modal-header h2 {
  margin: 0;
}
.modal-header button {
  border: 0;
  padding: 4px 9px;
  font-size: 20px;
}
.modal-body {
  padding: 26px 28px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form-grid .full {
  grid-column: 1/-1;
}
.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 25px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 22px 0;
}
.detail-grid dt {
  font-size: 10px;
  color: #8b9e94;
  margin-bottom: 5px;
}
.detail-grid dd {
  margin: 0;
  font-size: 12px;
}
.timeline-step {
  padding: 12px;
  background: #f5f8f6;
  border-radius: 7px;
  margin-bottom: 8px;
  font-size: 12px;
}
.timeline-step small {
  color: #8a9b91;
  display: block;
  margin-top: 5px;
}
.error {
  color: #b6484a;
  background: #fff0f0;
  border-radius: 7px;
  padding: 12px;
  font-size: 12px;
  margin: 12px 0;
}
.muted {
  color: #889b91;
  font-size: 12px;
}
.code {
  font-family: monospace;
  font-size: 11px;
  white-space: pre-wrap;
  word-break: break-word;
  background: #102f32;
  color: #b9ded4;
  padding: 18px;
  border-radius: 8px;
  max-height: 420px;
  overflow: auto;
  line-height: 1.65;
}
.inspector {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 22px;
}
.tool-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  max-height: 690px;
  overflow: auto;
}
.tool-list button {
  text-align: left;
  font-family: monospace;
  font-size: 11px;
  border: 0;
  padding: 12px;
}
.tool-list button.active {
  background: #e4f2e9;
  color: #16745d;
}
.contract-tabs {
  display: flex;
  gap: 8px;
  margin: 17px 0;
}
.json-input {
  font-family: monospace;
  width: 100%;
  height: 180px;
  line-height: 1.5;
  font-size: 12px;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  background: #123e35;
  color: white;
  border-radius: 9px;
  padding: 14px 24px;
  z-index: 100;
  display: none;
  box-shadow: 0 4px 20px #0002;
  font-size: 12px;
}
.portal {
  background: #fafcfb;
}
.portal header {
  height: 90px;
  max-width: 1150px;
  margin: auto;
  padding: 0 30px;
  background: transparent;
}
.portal .brand img {
  width: 158px;
  height: 65px;
}
.portal-nav {
  display: flex;
  align-items: center;
  gap: 25px;
  font-size: 12px;
}
.portal-hero {
  padding: 70px 24px 65px;
  text-align: center;
  background: #edf5f1;
  border-top: 1px solid #e3ece5;
  border-bottom: 1px solid #e3ece5;
}
.portal-hero .eyebrow {
  color: #50866d;
}
.portal-hero h1 {
  font-size: 46px;
  line-height: 1.15;
  letter-spacing: -1.8px;
  margin: 18px 0;
}
.portal-hero p {
  max-width: 530px;
  margin: 0 auto 24px;
  color: #708b7b;
}
.portal-body {
  max-width: 980px;
  margin: 40px auto;
  padding: 0 24px;
}
.job-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 27px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.job-card h2 {
  font-size: 18px;
  margin: 12px 0;
}
.job-card p {
  font-size: 12px;
  margin: 0;
}
.job-card .pill {
  background: #edf5ef;
  color: #5c8871;
}
.portal-footer {
  text-align: center;
  padding: 35px 24px;
  font-size: 11px;
  color: #92a298;
}
.privacy {
  font-size: 11px;
  background: #f3f7f4;
  padding: 15px;
  border-radius: 8px;
}
.check {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  line-height: 1.5;
}
.check input {
  margin-top: 3px;
}
.success {
  text-align: center;
  padding: 25px 10px;
}
.success .checkmark {
  margin: 0 auto 23px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #e5f3e9;
  display: grid;
  place-items: center;
  color: #267c52;
  font-size: 27px;
}
[dir="rtl"] {
  font-family: Arial, sans-serif;
}
[dir="rtl"] .job-card,
[dir="rtl"] .modal-body {
  text-align: right;
}
[dir="rtl"] .portal-hero h1 {
  letter-spacing: 0;
}
[dir="rtl"] .modal-footer {
  justify-content: flex-start;
}
@media (max-width: 1100px) {
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid2 {
    grid-template-columns: 1fr;
  }
  .demo-label {
    display: none;
  }
  header {
    padding: 0 25px;
  }
  #content {
    padding: 28px 25px;
  }
  .inspector {
    grid-template-columns: 210px 1fr;
  }
}
@media (max-width: 760px) {
  aside {
    width: 70px;
    padding: 18px 8px;
  }
  .brand img {
    width: 54px;
  }
  .workspace-tag,
  .sidebar-bottom,
  nav button span {
    display: none;
  }
  nav {
    margin-top: 30px;
  }
  nav button {
    padding: 12px;
    justify-content: center;
  }
  main {
    margin-left: 70px;
  }
  header {
    height: 80px;
    padding: 0 15px;
  }
  .identity select {
    max-width: 150px;
    font-size: 10px;
  }
  .avatar,
  .eyebrow {
    display: none;
  }
  .demo-banner {
    padding: 10px 17px;
    line-height: 1.6;
  }
  .demo-banner span {
    display: block;
  }
  #content {
    padding: 25px 15px;
  }
  .page-head {
    align-items: flex-start;
    flex-direction: column;
  }
  h1 {
    font-size: 25px;
  }
  .stat {
    padding: 16px;
  }
  .stats {
    gap: 10px;
  }
  .inspector {
    display: block;
  }
  .tool-list {
    max-height: 150px;
    margin-bottom: 20px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .modal-body {
    padding: 20px;
  }
  .overlay {
    padding: 12px;
  }
  .job-card {
    align-items: flex-start;
    flex-direction: column;
  }
  .portal-hero h1 {
    font-size: 35px;
  }
  .portal header {
    padding: 0 20px;
  }
  .portal .brand img {
    width: 140px;
  }
  .portal-nav {
    gap: 12px;
  }
}

.pill.accepted,
.pill.issued {
  background: #e8f5ee;
  color: #31835d;
}
.pill.withdrawn,
.pill.declined {
  background: #fbecee;
  color: #a54755;
}

.offer-pdf {
  width: 100%;
  height: 64vh;
  border: 1px solid #dce7e3;
  margin-top: 18px;
  border-radius: 8px;
}
.modal:has(.offer-pdf) {
  width: 1100px;
}
.merge-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}
.merge-fields small {
  color: #718480;
}

.offer-pdf-pages{height:64vh;overflow:auto;background:#e8edeb;padding:20px;margin-top:20px;border-radius:8px}.offer-pdf-pages canvas{display:block;max-width:100%;height:auto;margin:0 auto 18px;background:white;box-shadow:0 2px 12px #0002}
[hidden]{display:none!important}.login-screen{min-height:100vh;display:grid;place-items:center;background:#eef4f2;padding:24px}.login-card{width:min(440px,100%);padding:32px}.login-card label{display:block;margin:20px 0}.login-card input{display:block;width:100%;margin-top:8px}#login-error{color:#9e2020}
.login-card input[type="checkbox"]{display:inline-block;width:auto;vertical-align:middle;margin:0 8px 0 0}.login-card form+form{border-top:1px solid #dde7e3;padding-top:12px}
