/* Contractor portal — layout helpers only. Colours, gradients, buttons, stat cards, hero, tables and pills come from styles.css so all three portals look identical. */
.ct-kicker { margin: 0 0 6px; font-weight: 600; color: var(--brand); letter-spacing: .01em; }
.login__brand .ct-kicker { color: #8fe0e4; }
.ct-login .login__brand { background: radial-gradient(900px 500px at 10% 0%, rgba(0,127,134,.35), transparent 60%), linear-gradient(160deg, #122b45 0%, #0d2036 100%); }
.ct-art { opacity: .55; color: #7fd3d8; }
.ct-org { max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; background: var(--brand-tint); color: var(--navy); border-color: #bfe0de; font-weight: 600; }
.nav__count { margin-left: auto; font-style: normal; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: var(--bad); color: #fff; }
.ct-kv-compact { border: 1px solid var(--line); border-radius: var(--radius); }
.pad { padding: 16px 20px; }
.ct-two { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.ct-stack { display: grid; gap: 20px; min-width: 0; }
.ct-ctx { padding: 14px 20px; }
.ct-ctx__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px 24px; margin: 0; }
.ct-ctx__grid dt { font-size: 12px; color: var(--ink-2); }
.ct-ctx__grid dd { margin: 2px 0 0; font-weight: 600; overflow-wrap: anywhere; }
.ct-rhead h1 { font-size: 26px; }
.ct-callout { margin: 4px 0; }
.ct-noact { margin: 0; }
.ct-plain { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
.ct-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 4px 0 8px; }
.ct-bar--in { padding: 14px 20px; border-top: 1px solid var(--line); background: linear-gradient(180deg, #fff, #f8fafc); border-radius: 0 0 var(--radius) var(--radius); }
.ct-bar__sp { flex: 1; }
.ct-draftnote { margin: 12px; }
.input--auto { width: auto; min-width: 150px; max-width: 220px; }
.input--area { height: auto; min-height: 84px; padding: 10px 12px; resize: vertical; font: inherit; line-height: 1.45; }
.toolbar--top select { flex: 0 0 auto; }
.kpis--6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
button.kpi { font: inherit; text-align: left; cursor: pointer; width: 100%; color: inherit; }
.req { color: var(--bad); font-weight: 700; }

/* feed (dashboard activity, history) */
.ct-feed { list-style: none; margin: 0; padding: 4px 8px 8px; }
.ct-feed li { padding: 0; } .ct-feed li > a { flex: 1; } .ct-feed li, .ct-feed a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: inherit; text-decoration: none; transition: background .18s ease; }
.ct-feed a:hover { background: var(--brand-tint); }
.ct-feed__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--grad-brand); flex: none; box-shadow: 0 0 0 4px rgba(0,127,134,.12); }
.ct-feed__main { display: grid; min-width: 0; flex: 1; } .ct-feed__main span { color: var(--ink-2); font-size: 13px; }
.ct-feed time { color: var(--ink-2); font-size: 12px; white-space: nowrap; }

/* skeleton */
.ct-skel { display: grid; gap: 16px; } .ct-skel > span, .ct-skel i { display: block; height: 18px; border-radius: 10px; background: linear-gradient(90deg, #e9eef3 25%, #f6f8fa 50%, #e9eef3 75%); background-size: 200% 100%; animation: ctsh 1.2s linear infinite; }
.ct-skel .kpis i { height: 104px; border-radius: 16px; }
@keyframes ctsh { to { background-position: -200% 0; } }

/* responsive table: lower-priority columns drop out as space shrinks, then rows become cards */
@media (max-width: 1699px) { .ct-table .c-xl { display: none; } }
@media (max-width: 1359px) { .ct-table .c-lg { display: none; } .kpis--6 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 860px) { .ct-two { grid-template-columns: 1fr; } }
.ct-table td, .ct-table th { white-space: nowrap; } .ct-table td:nth-child(2) { white-space: normal; min-width: 130px; }
.toolbar--top .search { flex: 1 1 280px; min-width: 240px; }
@media (max-width: 720px) {
  .ct-table thead { display: none; } .ct-table, .ct-table tbody, .ct-table tr, .ct-table td { display: block; width: 100%; }
  .ct-table .c-lg, .ct-table .c-xl { display: flex; }
  .ct-table tr { border: 1px solid var(--line); border-radius: 12px; margin: 10px 12px; width: auto; padding: 8px 12px; background: #fff; }
  .ct-table td { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border: 0; text-align: right; white-space: normal; }
  .ct-table td::before { content: attr(data-l); color: var(--ink-2); font-size: 12px; text-align: left; flex: none; }
  .ct-table td.col-act { justify-content: flex-end; } .ct-table td.col-act::before { content: none; } .ct-table td.num { text-align: right; }
  .kpis--5, .kpis--6 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ct-org { display: none; }
}

/* stepper + form */
.ct-steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 0; padding: 16px 20px 0; }
.ct-steps button { width: 100%; display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 10px 12px; cursor: pointer; text-align: left; font: inherit; color: var(--ink-2); transition: border-color .18s, background .18s, box-shadow .18s; }
.ct-steps button:hover { border-color: var(--brand); }
.ct-steps__n { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--neutral-bg); font-weight: 700; font-size: 13px; flex: none; }
.ct-steps .is-cur button { border-color: var(--brand); background: var(--brand-tint); color: var(--navy); font-weight: 600; box-shadow: 0 0 0 3px rgba(0,127,134,.12); }
.ct-steps .is-cur .ct-steps__n { background: var(--grad-brand); color: #fff; }
.ct-steps .is-done .ct-steps__n { background: var(--ok); color: #fff; }
.ct-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 20px; }
.ct-grid .field--wide { grid-column: 1 / -1; }
.ct-sub { margin-top: 24px; border-top: 1px solid var(--line); padding-top: 16px; display: grid; gap: 12px; }
.ct-sub__h, .ct-card__h { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ct-sub__h h3 { margin: 0; font-size: 15px; }
.ct-card { border: 1px solid var(--line); border-radius: 12px; padding: 14px; display: grid; gap: 12px; background: linear-gradient(180deg, #fff, #fafcfd); }
.ct-present { align-self: end; padding-bottom: 12px; }
.ct-inline { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 720px) { .ct-steps { grid-template-columns: repeat(2, 1fr); } .ct-steps__t { font-size: 12px; } .ct-grid { grid-template-columns: 1fr; } }

/* documents */
.ct-progs { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.ct-prog { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font-weight: 600; }
.ct-dz__tags { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.ct-doclist { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; }
.ct-doclist li { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; background: #fff; }
.ct-doclist li > span:first-child { display: flex; align-items: center; gap: 8px; min-width: 0; flex-wrap: wrap; }
.ct-doclist__a { display: flex; gap: 4px; }
.ct-drop { display: grid; gap: 4px; justify-items: center; text-align: center; padding: 18px; border: 2px dashed var(--line-2); border-radius: 12px; cursor: pointer; background: #fafcfd; transition: border-color .18s, background .18s, transform .18s; }
.ct-drop strong { display: inline-flex; gap: 8px; align-items: center; color: var(--navy); }
.ct-drop:hover, .ct-drop:focus-visible, .ct-drop.is-over { border-color: var(--brand); background: var(--brand-tint); outline: none; }
.ct-drop.is-over { transform: scale(1.01); }
.ct-up { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; margin-bottom: 8px; }
.ct-up.is-err { border-color: #efc4c8; background: var(--bad-bg); } .ct-up__e { color: var(--bad); font-size: 13px; flex: 1; }
.ct-up__bar { flex: 1; min-width: 120px; height: 8px; border-radius: 99px; background: var(--neutral-bg); overflow: hidden; } .ct-up__bar i { display: block; height: 100%; background: var(--grad-brand); transition: width .15s ease; }
.dialog--wide { width: min(880px, calc(100vw - 32px)); } .ct-pv { width: 100%; height: 62vh; border: 1px solid var(--line); border-radius: 8px; } .ct-pv--img { height: auto; max-height: 62vh; object-fit: contain; }

/* review / confirmation */
.ct-comp { list-style: none; margin: 0; padding: 4px 20px 12px; display: grid; gap: 2px; }
.ct-comp li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); } .ct-comp li:last-child { border: 0; }
.ct-miss { background: var(--warn-bg); border-top: 1px solid #f1deb8; } .ct-miss ul { margin: 6px 0 0; padding-left: 18px; }
.ct-decl .check { align-items: flex-start; font-weight: 500; }
.ct-done { text-align: center; padding: 36px 20px; display: grid; justify-items: center; gap: 8px; }
.ct-done h1 { margin: 0; font-size: 26px; } .ct-done p { margin: 0; color: var(--ink-2); }
.ct-done__ic { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--ok-bg); color: var(--ok); }
.ct-done__ref { margin-top: 10px; padding: 10px 22px; border: 1px solid var(--line); border-radius: 12px; background: linear-gradient(180deg, #fff, #f5f7fa); display: grid; } .ct-done__ref strong { font-size: 22px; letter-spacing: .02em; color: var(--navy); }
.ct-next { margin: 0; padding: 16px 20px 4px 38px; display: grid; gap: 8px; }

/* timeline */
.ct-tl { list-style: none; margin: 0; padding: 0; display: grid; }
.ct-tl__i { display: grid; grid-template-columns: 22px 1fr auto; gap: 12px; padding: 0 0 18px; position: relative; align-items: start; }
.ct-tl__i::before { content: ""; position: absolute; left: 10px; top: 20px; bottom: 0; width: 2px; background: var(--line); } .ct-tl__i:last-child::before { display: none; }
.ct-tl__dot { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line-2); background: #fff; z-index: 1; }
.ct-tl__i > div { display: grid; } .ct-tl__s { font-size: 12px; color: var(--ink-2); }
.ct-tl__i--done .ct-tl__dot { background: var(--ok); border-color: var(--ok); } .ct-tl__i--done::before { background: var(--ok); }
.ct-tl__i--current .ct-tl__dot { background: #fff; border-color: var(--brand); box-shadow: 0 0 0 5px rgba(0,127,134,.18); } .ct-tl__i--current .ct-tl__s { color: var(--brand); font-weight: 700; }
.ct-tl__i--next strong { color: var(--ink-2); font-weight: 500; }

/* notifications, requests, misc */
.ct-notifs { list-style: none; margin: 0; padding: 0; }
.ct-notifs li { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); transition: background .18s; } .ct-notifs li:last-child { border: 0; }
.ct-notifs li.is-unread { background: linear-gradient(90deg, var(--brand-tint), #fff 60%); }
.ct-notifs a { flex: 1; display: flex; gap: 12px; color: inherit; text-decoration: none; min-width: 0; }
.ct-notifs__dot { width: 9px; height: 9px; border-radius: 50%; background: transparent; margin-top: 7px; flex: none; } .is-unread .ct-notifs__dot { background: var(--brand); }
.ct-notifs__body { display: grid; min-width: 0; } .ct-notifs__body span { color: var(--ink-2); overflow-wrap: anywhere; }
.ct-action { border-color: #f1deb8; background: linear-gradient(180deg, #fffaf0, #fff); }
.ct-quote { margin: 6px 0; padding: 8px 12px; border-left: 3px solid var(--brand); background: var(--brand-tint); border-radius: 0 8px 8px 0; }
.ct-pick { border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; margin: 0 0 14px; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.ct-old { color: var(--ink-2); text-decoration: line-through; } .ct-new { color: var(--ok); font-weight: 600; }
.ct-shell .tabs .tab { background: none; }
@media (prefers-reduced-motion: reduce) { .ct-skel > span, .ct-skel i, .ct-up__bar i, .ct-drop, .ct-feed a, .ct-steps button { animation: none; transition: none; } }

/* recruitment flow tracker (DM + HR request pages) */
.ftk__list { list-style: none; margin: 0; padding: 16px 20px 18px; display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 6px; }
.ftk__i { display: grid; gap: 2px; justify-items: start; position: relative; padding-top: 22px; font-size: 12.5px; line-height: 1.25; }
.ftk__i::before { content: ""; position: absolute; left: 22px; right: -6px; top: 9px; height: 2px; background: var(--line); }
.ftk__i:last-child::before { display: none; }
.ftk__dot { position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; color: #fff; background: #fff; border: 2px solid var(--line-2); z-index: 1; }
.ftk__i--done .ftk__dot { background: var(--ok); border-color: var(--ok); } .ftk__i--done::before { background: var(--ok); }
.ftk__i--current .ftk__dot { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(0,127,134,.2); } .ftk__i--current strong { color: var(--brand); }
.ftk__i--active .ftk__dot { border-color: var(--warn); background: var(--warn-bg); } .ftk__i--optional strong, .ftk__i--next strong { color: var(--ink-2); font-weight: 500; }
.ftk__i--optional .ftk__dot { border-style: dashed; }
.ftk__i { gap: 3px; align-content: start; }
.ftk__t { min-height: 2.5em; font-size: 12.5px; text-wrap: balance; }
.ftk__w, .ftk__n { display: block; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 11.5px; }
.ftk__w { color: var(--ink-2); }
.ftk__n { color: var(--navy); font-weight: 600; min-height: 1.25em; }
@media (max-width: 1100px) { .ftk__list { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 14px; } .ftk__i::before { display: none; } }
@media (max-width: 560px) { .ftk__list { grid-template-columns: 1fr 1fr; } }

/* polish */
.ct-grid { align-items: start; }
#dcCats { display: grid; gap: 20px; }
.ct-shell .crumbs { overflow: hidden; text-overflow: ellipsis; min-width: 0; } .ct-org { flex: none; }
.ct-two > .panel, .ct-two > .ct-stack { align-self: start; }
.ct-progs { grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); } .ct-prog { flex-wrap: wrap; }
.ct-dz .panel__head { flex-wrap: wrap; } .ct-doclist li span { overflow-wrap: anywhere; }
