/* HR portal look: the NiceToMeet design system from the MeetMinded HR Hub (cream ground, white 24-corner cards,
   Figtree + one Young Serif title per screen, the accent only for eyebrow / selection / main button, Lucide line icons).
   The accent follows the active company: MeetMinded red (default) or WCC teal ([data-co="wcc"]). */
:root {
  --bg: #FFF5EF; --surface: #FFFFFF; --surface-2: #F3E7E0; --surface-3: #FFF9F5; --border: #F1DDD2;
  --text: #2A1913; --muted: #4F3F38; --soft-muted: #76625A;
  --accent: #C73712; --accent-deep: #A82D0D; --accent-soft: #FBE3D8; --clay: #E9A891;
  --ok: #2F6B4F; --ok-soft: #E7F2EB; --warn: #7A5300; --warn-soft: #FCEFC7; --amber: #E0A100; --bad: #A82D0D; --bad-soft: #FBE3D8;
  --radius: 24px;
  --shadow: 0 1px 2px rgba(42,25,19,.04), 0 8px 24px rgba(42,25,19,.06);
  --btn-shadow: inset 0 0 0 1.5px var(--border), 0 1px 2px rgba(42,25,19,.06), 0 6px 14px -10px rgba(42,25,19,.28);
  --ring: 0 0 0 3px var(--accent-soft);
  /* the old names some screens still use */
  --ink: var(--text); --mut: var(--soft-muted); --line: var(--border); --acc: var(--accent); --card: var(--surface);
}
:root[data-co="wcc"] {
  --accent: #1C96A8; --accent-deep: #147080; --accent-soft: #DCF2F5; --clay: #8FD0DA; --bad: #A82D0D; --bad-soft: #FBE3D8;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { color-scheme: light; }
body { margin: 0; font: 15px/1.5 "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
h1 { font-family: "Young Serif", Georgia, serif; font-weight: 400; font-size: 32px; letter-spacing: -.01em; line-height: 1.1; margin: 0; }
h2 { font-weight: 600; font-size: 19px; letter-spacing: -.01em; margin: 0 0 12px; }
h3 { font-weight: 600; font-size: 17px; letter-spacing: -.01em; margin: 0 0 12px; }
h4 { font-weight: 600; font-size: 15px; margin: 16px 0 8px; }
b, strong { font-weight: 600; }
p { margin: 8px 0; }
.mut, .muted { color: var(--soft-muted); }
.err { color: var(--accent-deep); min-height: 1.3em; font-weight: 500; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.eyebrow { color: var(--accent); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 6px; }
.i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; vertical-align: middle; }
.i.sm { width: 16px; height: 16px; }

/* ---------- layout: sidebar + main ---------- */
.app { display: grid; grid-template-columns: 220px 1fr; min-height: 100vh; }
.sidebar { display: flex; flex-direction: column; padding: 26px 14px 18px; position: sticky; top: 0; height: 100vh; background: #fff; border-right: 1px solid var(--border); overflow-y: auto; }
.brand { display: block; padding: 0 12px 18px; }
.brand img { height: 24px; display: block; max-width: 100%; object-fit: contain; object-position: left; }
.brand .sub { display: block; margin-top: 8px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav button { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 9px 12px; border: none; border-radius: 999px; background: none; box-shadow: none; color: var(--text); font-weight: 500; font-size: 14.5px; }
.nav button:hover { background: var(--surface-2); box-shadow: none; }
.nav button .i { width: 19px; height: 19px; color: var(--soft-muted); }
.nav button.on { background: var(--accent-soft); color: var(--accent-deep); font-weight: 600; }
.nav button.on .i { color: var(--accent-deep); }
.nav button .nav-extra { margin-left: auto; }
.nav .count { background: var(--accent); color: #fff; border-radius: 999px; font-size: 11px; padding: 0 7px; font-weight: 600; }
.nav-sep { height: 1px; background: var(--border); margin: 14px 10px; }
.side-foot { margin-top: auto; padding: 14px 12px 0; display: flex; flex-direction: column; gap: 10px; }
.side-label { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--soft-muted); }
.whoami { font-size: 13px; color: var(--soft-muted); line-height: 1.3; }
.whoami b { display: block; color: var(--text); font-weight: 600; }
.main { padding: 32px 32px 80px; width: 100%; min-width: 0; }
.page-head { margin-bottom: 22px; }

/* the design-system toggle: a track with a white thumb (portal and company switch, HR/Payroll) */
.sw, .tgl { display: inline-flex; gap: 4px; padding: 3px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; width: fit-content; max-width: 100%; }
.sw button, .tgl button { border: none; background: none; box-shadow: none; font-weight: 500; padding: 6px 14px; border-radius: 999px; color: var(--soft-muted); font-size: 13.5px; }
.sw button:hover, .tgl button:hover { background: none; box-shadow: none; color: var(--text); }
.sw button.on, .tgl button.on { background: #fff; color: var(--text); font-weight: 600; box-shadow: 0 1px 2px rgba(42,25,19,.08), 0 4px 12px -3px rgba(42,25,19,.16); }
.sidebar .sw, .sidebar .tgl { display: flex; width: 100%; }
.sidebar .sw button, .sidebar .tgl button { flex: 1; text-align: center; padding: 6px 8px; }

/* ---------- cards, bars, grids ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; margin-bottom: 16px; box-shadow: var(--shadow); }
.card .card { box-shadow: none; }
.bar { display: flex; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; align-items: center; }
.bar input { max-width: 280px; }
.bar label { margin: 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px 14px; }
.tbl { overflow-x: auto; }

/* ---------- buttons: pills on a soft shadow; the main one in the accent ---------- */
button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: none; background: #fff; color: var(--text); font: inherit; font-weight: 600; font-size: 14px; padding: 8px 16px; border-radius: 999px; cursor: pointer; white-space: nowrap; box-shadow: var(--btn-shadow); transition: transform .12s ease, box-shadow .25s ease, background-color .25s ease; }
button:hover { box-shadow: inset 0 0 0 1.5px var(--clay), 0 1px 2px rgba(42,25,19,.06), 0 6px 14px -10px rgba(42,25,19,.28); }
button:active { transform: scale(.97); }
button:disabled { opacity: .45; cursor: not-allowed; transform: none; }
button.p { background: var(--accent); color: #fff; box-shadow: 0 1px 2px rgba(42,25,19,.12), 0 8px 18px -10px rgba(42,25,19,.5); }
button.p:hover { background: var(--accent-deep); box-shadow: 0 1px 2px rgba(42,25,19,.12), 0 8px 18px -10px rgba(42,25,19,.5); }
button.on:not(.nav button) { background: var(--accent-soft); color: var(--accent-deep); box-shadow: inset 0 0 0 1.5px var(--accent); }
td button, th button { padding: 5px 12px; font-size: 13px; box-shadow: inset 0 0 0 1.5px var(--border), 0 1px 1px rgba(42,25,19,.06), 0 3px 7px -5px rgba(42,25,19,.28); }
a > button { pointer-events: auto; }

/* ---------- forms ---------- */
input, select, textarea { width: 100%; font: inherit; color: var(--text); background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 9px 13px; transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: var(--ring); }
input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--accent); cursor: pointer; flex-shrink: 0; vertical-align: middle; }
input[type=file] { padding: 7px 10px; }
input:disabled, select:disabled { background: var(--surface-3); color: var(--soft-muted); }
textarea { min-height: 70px; resize: vertical; }
label { display: block; font-size: 13px; font-weight: 500; color: var(--soft-muted); margin-bottom: 4px; }
label input[type=checkbox] { margin-right: 6px; }

/* ---------- tables ---------- */
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--border); vertical-align: middle; }
th { font-size: 12px; font-weight: 600; color: var(--soft-muted); letter-spacing: .06em; text-transform: uppercase; }
tbody tr:last-child td { border-bottom: none; }
tr.mut td { color: var(--soft-muted); }
tbody tr:hover td { background: var(--surface-3); }
th.num, td.num { text-align: right; }

/* ---------- labels & badges ---------- */
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--accent-soft); color: var(--accent-deep); white-space: nowrap; }
.ptb { color: #fff; border-radius: 999px; padding: 2px 10px; font-size: 12px; font-weight: 600; white-space: nowrap; display: inline-block; }
.ptb.lg { font-size: 14px; padding: 3px 14px; }

/* ---------- sign-in and the new hire's page (no sidebar) ---------- */
.solo { min-height: 100vh; display: flex; align-items: flex-start; justify-content: center; padding: 10vh 16px 40px; }
#login, .solo-card { width: 100%; max-width: 440px; text-align: center; padding: 34px 30px; }
#login h1, .solo-card h1 { margin-bottom: 6px; }
#login .logos { display: flex; gap: 22px; justify-content: center; align-items: center; margin-bottom: 22px; }
#login .logos img { height: 22px; }
#login label { text-align: left; margin-top: 10px; }
#login button { width: 100%; margin-top: 8px; }
.solo-card { max-width: 620px; text-align: left; }

@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; padding: 14px 16px; border-right: none; border-bottom: 1px solid var(--border); }
  .brand { padding: 0 0 10px; }
  .nav { flex-direction: row; flex-wrap: wrap; }
  .nav button { width: auto; }
  .nav-sep { display: none; }
  .side-foot { flex-direction: row; flex-wrap: wrap; align-items: center; padding-top: 12px; }
  .main { padding: 22px 16px 60px; }
  h1 { font-size: 27px; }
}
