/* ============================================================
   Gael Talent Bridge, admin
   Sits on top of portal.css. Slightly denser, cooler, more
   utilitarian: this is a working desk, not a shop window.
   ============================================================ */

.admin-body .portal-side { background: var(--ink-deep); }
.admin-body .brand-sub { color: var(--seaglass); letter-spacing: .08em; }

.admin-role {
  font-family: var(--font-body); font-size: var(--text-micro); font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase; color: var(--stone);
  border: 1px solid var(--line); border-radius: 999px; padding: .25rem .6rem;
}

.admin-count {
  margin-left: auto; min-width: 1.4rem; text-align: center;
  background: var(--teal); color: #fff; border-radius: 999px;
  font-size: var(--text-micro); font-weight: 700; padding: .1rem .4rem;
}

/* ---- status pills ---- */

.a-pill {
  display: inline-block; font-size: var(--text-micro); font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase;
  padding: .22rem .55rem; border-radius: 999px; white-space: nowrap;
}
.a-pill-new         { background: var(--warn-bg); color: var(--warn); }
.a-pill-in-progress { background: var(--interview-bg); color: var(--interview); }
.a-pill-waiting     { background: var(--linen-warm); color: var(--stone); }
.a-pill-closed      { background: var(--ok-bg); color: var(--ok); }
.a-pill-spam        { background: var(--danger-bg); color: var(--danger); }
.a-pill-active      { background: var(--ok-bg); color: var(--ok); }
.a-pill-invited     { background: var(--interview-bg); color: var(--interview); }
.a-pill-suspended   { background: var(--danger-bg); color: var(--danger); }
.a-pill-role        { background: var(--teal-quiet); color: var(--teal-hover); }

/* ---- dashboard ---- */

.a-recent { list-style: none; margin: 0; padding: 0; }
.a-recent li + li { border-top: 1px solid var(--line); }
.a-recent a {
  display: flex; align-items: center; gap: var(--sp-3); justify-content: space-between;
  padding: var(--sp-3) 0; text-decoration: none; color: inherit;
}
.a-recent a:hover strong { color: var(--teal-hover); }
.a-recent strong { display: block; font-family: var(--font-body); font-size: var(--text-body); }
.a-recent small { display: block; color: var(--stone); font-size: var(--text-small); margin-top: .15rem; }

.a-spark {
  display: flex; align-items: flex-end; gap: 2px; height: 96px;
  padding: var(--sp-3) 0; border-bottom: 1px solid var(--line);
}
.a-spark span { flex: 1; background: var(--seaglass); border-radius: 2px 2px 0 0; min-height: 2px; }
.a-spark span:last-child { background: var(--teal); }

.a-kinds { display: grid; gap: .35rem; margin-top: var(--sp-4); }
.a-kinds div { display: flex; justify-content: space-between; font-size: var(--text-small); }
.a-kinds span { color: var(--stone); }
.a-kinds strong { font-variant-numeric: tabular-nums; }

/* ---- filters ---- */

.a-filters {
  display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: center;
  justify-content: space-between; margin-bottom: var(--sp-5);
}
.a-filter-group { display: flex; flex-wrap: wrap; gap: .4rem; }
.a-filter-right { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.a-filter-right select,
.a-filter-right input[type="search"] {
  font-family: var(--font-body); font-size: var(--text-small);
  padding: .5rem .7rem; border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm); background: #fff; color: var(--ink);
}
.a-filter-right input[type="search"] { min-width: 15rem; }
.a-result-count {
  font-size: var(--text-small); color: var(--stone); margin: 0 0 var(--sp-3);
}

/* ---- detail layout ---- */

.a-back {
  display: inline-block; font-size: var(--text-small); font-weight: 600;
  color: var(--stone); text-decoration: none; margin-bottom: var(--sp-4);
}
.a-back::before { content: "\2190"; margin-right: .4rem; }
.a-back:hover { color: var(--teal-hover); }

.a-detail { display: grid; gap: var(--sp-5); grid-template-columns: minmax(0, 1fr) 20rem; align-items: start; }
.a-detail-main { display: grid; gap: var(--sp-5); }
.a-detail-side { display: grid; gap: var(--sp-5); position: sticky; top: var(--sp-5); }
@media (max-width: 980px) {
  .a-detail { grid-template-columns: 1fr; }
  .a-detail-side { position: static; }
}

.a-facts { display: grid; gap: var(--sp-3); margin: var(--sp-4) 0 0; }
.a-facts > div { display: grid; grid-template-columns: 10rem minmax(0, 1fr); gap: var(--sp-3); }
.a-facts dt {
  font-size: var(--text-micro); font-weight: 600; letter-spacing: .05em;
  text-transform: uppercase; color: var(--stone-light);
}
.a-facts dd { margin: 0; font-size: var(--text-small); overflow-wrap: anywhere; }
@media (max-width: 600px) { .a-facts > div { grid-template-columns: 1fr; gap: .2rem; } }

.a-note-form { margin: var(--sp-4) 0; }
.a-notes { list-style: none; margin: var(--sp-4) 0 0; padding: 0; display: grid; gap: var(--sp-3); }
.a-notes li {
  background: var(--linen); border-left: 3px solid var(--seaglass);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: var(--sp-3);
}
.a-notes p { margin: .3rem 0 0; font-size: var(--text-small); white-space: pre-wrap; }

.a-rows { list-style: none; margin: var(--sp-4) 0 0; padding: 0; }
.a-rows li { padding: var(--sp-3) 0; }
.a-rows li + li { border-top: 1px solid var(--line); }
.a-rows strong { font-family: var(--font-body); font-size: var(--text-body); }
.a-rows p { margin: .35rem 0 .4rem; font-size: var(--text-small); color: var(--slate); }

.a-meta {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: var(--text-micro); color: var(--stone); overflow-wrap: anywhere; max-width: 22rem;
}

/* On a phone the candidate and enquiry tables have more columns than fit.
   Rather than force a sideways scroll, drop the counters and keep the
   things you actually tap. */
@media (max-width: 640px) {
  .a-filter-right input[type="search"] { min-width: 100%; }
  .a-filter-right { width: 100%; }
  .p-table th:nth-child(n+3):not(:last-child),
  .p-table td:nth-child(n+3):not(:last-child) { display: none; }
  .p-table th:nth-child(2), .p-table td:nth-child(2) { overflow-wrap: anywhere; }
}


/* ---------------------------------------------------------------
   Website usage
   Simple, honest bars. No chart library is loaded for what is a set of
   proportional widths, because a 60kb download for eight rows of data is
   not a trade worth making.
   --------------------------------------------------------------- */
.p-head-actions { margin-left: auto; }
.p-inline-field {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .8125rem; font-weight: 600; color: var(--p-muted, #5c6f78);
}
.p-inline-field select {
  font: inherit; padding: .4rem .6rem; border-radius: 8px;
  border: 1px solid var(--p-line, #d8e1e5); background: #fff; color: inherit;
}
.a-barcol { width: 38%; }
.a-bar {
  display: block; height: 8px; border-radius: 999px;
  background: rgba(0, 123, 114, .12); overflow: hidden;
}
.a-bar > span {
  display: block; height: 100%; border-radius: 999px;
  background: var(--p-accent, #007b72);
}
.a-spark {
  display: flex; align-items: flex-end; gap: 6px;
  height: 160px; padding-top: .5rem; overflow-x: auto;
}
.a-spark-col {
  display: flex; flex-direction: column; justify-content: flex-end;
  align-items: center; gap: .35rem; flex: 1 0 26px; height: 100%;
}
.a-spark-col > span {
  display: block; width: 100%; border-radius: 6px 6px 2px 2px;
  background: var(--p-accent, #007b72); min-height: 3px;
}
.a-spark-col > small {
  font-size: .625rem; color: var(--p-muted, #5c6f78); white-space: nowrap;
}
.p-stat-h { display: block; font-size: .6875rem; color: var(--p-muted, #5c6f78); }
