/* AnsibleHealth Feedback — color tokens mirror /share/Container/portal2/src/styles/colors.scss
   and /share/Container/team-portal CLAUDE.md brand colors. */
:root {
  --color-primary: #5da1d8;          /* Health blue */
  --color-primary-dark: #4a8fce;
  --color-coral: #ff916e;            /* Coral / accent */
  --color-darkblue: #263f6e;         /* Ansible dark blue */
  --color-bg: #fafafa;
  --color-card: #ffffff;
  --color-border: #e0e0e0;
  --color-border-light: #f1f1f1;
  --color-text: #263f6e;
  --color-text-secondary: #646c7a;
  --color-text-muted: #929aa9;
  --color-success: #4ad68a;
  --color-error: #ff4a60;
  --color-warning: #ffb800;
  --header-h: 70px;
  --radius: 12px;
  --radius-pill: 50px;
  --shadow-sm: 0 1px 2px rgba(38, 63, 110, 0.06);
  --shadow-md: 0 4px 12px rgba(38, 63, 110, 0.08);
}

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  font-size: 14px;
  line-height: 1.5;
}
a { color: var(--color-primary-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ───────── Topnav ───────── */
.topnav {
  display: flex;
  align-items: center;
  height: var(--header-h);
  background: white;
  padding: 0 32px;
  border-bottom: 1px solid var(--color-border);
  position: sticky; top: 0; z-index: 10;
  gap: 32px;
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--color-darkblue); font-weight: 700; font-size: 18px; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 8px;
  background: linear-gradient(135deg, var(--color-darkblue), var(--color-primary));
  color: white; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 18px;
}
.topnav nav { display: flex; gap: 24px; flex: 1; }
.topnav nav a { color: var(--color-text-secondary); font-weight: 500; padding: 8px 4px; }
.topnav nav a.active { color: var(--color-darkblue); border-bottom: 2px solid var(--color-primary); }
#nav-user { display: flex; align-items: center; gap: 12px; color: var(--color-text-secondary); }
#nav-user img { width: 32px; height: 32px; border-radius: 50%; }

/* ───────── Layout ───────── */
main { max-width: 1200px; margin: 32px auto; padding: 0 32px; }
h1 { font-size: 28px; font-weight: 600; margin: 0 0 8px; color: var(--color-darkblue); }
h2 { font-size: 20px; font-weight: 600; margin: 24px 0 12px; color: var(--color-darkblue); }
h3 { font-size: 16px; font-weight: 600; margin: 16px 0 8px; }
p.lead { color: var(--color-text-secondary); margin: 0 0 24px; }

/* ───────── Cards ───────── */
.card {
  background: var(--color-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 24px;
  margin-bottom: 16px;
  border: 1px solid var(--color-border-light);
}
.card-row { display: flex; gap: 16px; align-items: flex-start; }
.card-row + .card-row { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--color-border-light); }
.card.card-empty { color: var(--color-text-muted); text-align: center; padding: 48px; }
.card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 800px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

/* ───────── Buttons ───────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--color-primary); color: white;
  font-family: inherit; font-weight: 600; font-size: 14px;
  border: none; padding: 10px 24px; border-radius: var(--radius-pill);
  height: 40px; cursor: pointer; min-width: 120px; gap: 8px;
  transition: background 0.15s ease, transform 0.05s ease;
}
.btn:hover { background: var(--color-primary-dark); }
.btn:active { transform: translateY(1px); }
.btn:disabled { background: var(--color-text-muted); cursor: not-allowed; }
.btn-coral { background: var(--color-coral); }
.btn-coral:hover { background: #f57854; }
.btn-secondary { background: white; color: var(--color-darkblue); border: 1px solid var(--color-border); }
.btn-secondary:hover { background: var(--color-border-light); }
.btn-danger { background: var(--color-error); }
.btn-danger:hover { background: #e53d54; }
.btn-sm { height: 32px; padding: 4px 16px; min-width: 0; font-size: 13px; }

/* ───────── Forms ───────── */
label { display: block; font-weight: 500; color: var(--color-text-secondary); font-size: 13px; margin-bottom: 6px; }
input[type=text], input[type=email], input[type=date], input[type=datetime-local], input[type=number], textarea, select {
  width: 100%; padding: 10px 14px; font-family: inherit; font-size: 14px;
  border: 1px solid var(--color-border);
  border-radius: 8px; background: white; color: var(--color-text);
  outline: none; transition: border-color 0.15s ease;
}
input:focus, textarea:focus, select:focus { border-color: var(--color-primary); }
textarea { min-height: 100px; resize: vertical; font-family: inherit; }

.form-row { margin-bottom: 16px; }
.form-row.required label::after { content: ' *'; color: var(--color-error); }
.form-actions { display: flex; gap: 12px; margin-top: 24px; }

/* ───────── Tables ───────── */
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--color-border-light); }
th { font-weight: 600; color: var(--color-text-secondary); font-size: 12px; text-transform: uppercase; letter-spacing: 0.4px; }
tr:hover td { background: var(--color-border-light); }

/* ───────── Pills / chips ───────── */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; line-height: 1;
  padding: 4px 10px; border-radius: 999px;
  background: var(--color-border-light); color: var(--color-text-secondary);
}
.chip-success { background: rgba(74, 214, 138, 0.15); color: #1f8c4e; }
.chip-warn { background: rgba(255, 184, 0, 0.18); color: #946400; }
.chip-error { background: rgba(255, 74, 96, 0.13); color: #b71f33; }
.chip-info { background: rgba(93, 161, 216, 0.13); color: var(--color-primary-dark); }

/* ───────── Rating scale ───────── */
.rating-scale { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 8px; }
.rating-option {
  border: 2px solid var(--color-border);
  border-radius: 10px;
  padding: 12px 8px;
  text-align: center;
  cursor: pointer;
  background: white;
  transition: all 0.15s ease;
}
.rating-option:hover { border-color: var(--color-primary); }
.rating-option.selected { background: var(--color-primary); color: white; border-color: var(--color-primary); }
.rating-option .num { font-size: 20px; font-weight: 700; }
.rating-option .label { font-size: 11px; margin-top: 4px; line-height: 1.2; }

/* ───────── Person row ───────── */
.person-row { display: flex; align-items: center; gap: 12px; padding: 8px 0; }
.person-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--color-border); flex-shrink: 0; }
.person-info { flex: 1; min-width: 0; }
.person-name { font-weight: 600; color: var(--color-darkblue); }
.person-meta { font-size: 12px; color: var(--color-text-muted); }

/* ───────── Banner ───────── */
.banner { padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; font-size: 13px; }
.banner-info { background: rgba(93, 161, 216, 0.1); color: var(--color-primary-dark); border: 1px solid rgba(93, 161, 216, 0.25); }
.banner-warn { background: rgba(255, 184, 0, 0.1); color: #946400; border: 1px solid rgba(255, 184, 0, 0.3); }
.banner-error { background: rgba(255, 74, 96, 0.08); color: #b71f33; border: 1px solid rgba(255, 74, 96, 0.25); }

/* ───────── Progress dots ───────── */
.progress-stages { display: flex; gap: 4px; align-items: center; margin: 16px 0; flex-wrap: wrap; }
.stage-pill { padding: 6px 12px; border-radius: var(--radius-pill); background: var(--color-border-light); font-size: 12px; font-weight: 500; color: var(--color-text-muted); }
.stage-pill.done { background: rgba(74, 214, 138, 0.18); color: #1f8c4e; }
.stage-pill.current { background: var(--color-primary); color: white; }

/* ───────── Loading / empty ───────── */
.loading { text-align: center; padding: 48px; color: var(--color-text-muted); }
.empty { text-align: center; padding: 48px; color: var(--color-text-muted); }

/* ───────── Login ───────── */
.login-card {
  max-width: 440px; margin: 80px auto; text-align: center;
  background: white; border-radius: var(--radius); padding: 48px 40px;
  box-shadow: var(--shadow-md);
}
.login-card .brand-mark { width: 64px; height: 64px; border-radius: 16px; font-size: 32px; margin: 0 auto 24px; }
.login-card h1 { font-size: 24px; }
.login-card p { color: var(--color-text-secondary); margin-bottom: 32px; }

/* ═════════ "Grow" design system — Total Rewards + growth ═════════ */
.page-head { display:flex; justify-content:space-between; align-items:flex-end; margin-bottom:20px; gap:16px; flex-wrap:wrap; }
.page-head .sub { color: var(--color-text-secondary); font-size:14px; margin-top:2px; }
.muted { opacity:.55; }

/* Hero — Total Rewards statement */
.hero {
  position:relative; overflow:hidden; color:#fff; border-radius:18px;
  padding:32px 36px; margin-bottom:20px;
  background: linear-gradient(135deg, var(--color-darkblue) 0%, #2f5286 55%, var(--color-primary) 130%);
  box-shadow: 0 10px 30px rgba(38,63,110,.22);
}
.hero::after { content:''; position:absolute; right:-60px; top:-60px; width:240px; height:240px;
  background: radial-gradient(circle, rgba(255,145,110,.35), transparent 70%); }
.hero .who { display:flex; align-items:center; gap:14px; margin-bottom:18px; position:relative; }
.hero .who .avatar { width:52px; height:52px; border-radius:14px; background:rgba(255,255,255,.16);
  display:flex; align-items:center; justify-content:center; font-size:22px; font-weight:700; }
.hero .who .name { font-size:20px; font-weight:700; line-height:1.1; }
.hero .who .role { font-size:13px; color:rgba(255,255,255,.78); margin-top:3px; }
.hero .label { font-size:12px; letter-spacing:1.2px; text-transform:uppercase; color:rgba(255,255,255,.72); }
.hero .figure { font-size:46px; font-weight:700; letter-spacing:-1px; line-height:1.05; margin:4px 0 6px;
  font-variant-numeric: tabular-nums; }
.hero .breakdown { color:rgba(255,255,255,.9); font-size:14px; }
.hero .breakdown b { font-weight:700; }
.hero .meta { margin-top:16px; padding-top:14px; border-top:1px solid rgba(255,255,255,.18);
  display:flex; gap:28px; font-size:13px; color:rgba(255,255,255,.85); position:relative; }
.hero .meta .k { color:rgba(255,255,255,.6); font-size:11px; text-transform:uppercase; letter-spacing:.6px; }

/* Stat tiles */
.tiles { display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); gap:14px; margin-bottom:18px; }
.tile { background:var(--color-card); border:1px solid var(--color-border-light); border-radius:14px;
  padding:18px 18px 16px; box-shadow:var(--shadow-sm); transition:transform .08s ease, box-shadow .15s ease; }
.tile.clickable { cursor:pointer; } .tile.clickable:hover { transform:translateY(-2px); box-shadow:var(--shadow-md); }
.tile .k { font-size:11px; text-transform:uppercase; letter-spacing:.6px; color:var(--color-text-muted); }
.tile .v { font-size:26px; font-weight:700; color:var(--color-darkblue); margin-top:4px; font-variant-numeric:tabular-nums; }
.tile .x { font-size:12px; color:var(--color-text-secondary); margin-top:3px; }
.tile.accent { border-top:3px solid var(--color-coral); }
.tile.sel { outline:2px solid var(--color-primary); }

/* Section cards */
.sect { background:var(--color-card); border:1px solid var(--color-border-light); border-radius:16px;
  box-shadow:var(--shadow-sm); padding:22px 24px; margin-bottom:16px; }
.sect > .h { display:flex; justify-content:space-between; align-items:center; margin-bottom:14px; }
.sect > .h h2 { margin:0; font-size:16px; }
.sect .hint { color:var(--color-text-muted); font-size:12px; }

/* Salary history (chart + list) */
.salary-chart { width:100%; height:140px; display:block; }
.salary-chart .area { fill: rgba(93,161,216,.12); }
.salary-chart .line { fill:none; stroke:var(--color-primary); stroke-width:2.5; stroke-linejoin:round; }
.salary-chart .dot { fill:#fff; stroke:var(--color-primary); stroke-width:2.5; }
.salary-chart .axis { stroke:var(--color-border); stroke-width:1; }
.salary-chart text { fill:var(--color-text-muted); font-size:11px; }
.hist { margin-top:14px; }
.hist .row { display:flex; align-items:baseline; gap:12px; padding:8px 0; border-top:1px solid var(--color-border-light); }
.hist .row:first-child { border-top:none; }
.hist .amt { font-weight:700; color:var(--color-darkblue); font-size:15px; font-variant-numeric:tabular-nums; min-width:96px; }
.hist .when { color:var(--color-text-secondary); font-size:13px; flex:1; }
.hist .src { color:var(--color-text-muted); font-size:11px; }

/* Equity vesting */
.vest { margin:6px 0 2px; }
.vest .bar { height:14px; border-radius:8px; background:var(--color-border-light); overflow:hidden; display:flex; }
.vest .bar .fill { background:linear-gradient(90deg,var(--color-primary),#7bb8e4); }
.vest .lab { display:flex; justify-content:space-between; font-size:12px; color:var(--color-text-secondary); margin-top:6px; }
.grant { display:flex; justify-content:space-between; align-items:center; padding:12px 0; border-top:1px solid var(--color-border-light); }
.grant:first-child { border-top:none; }
.grant .g-main { font-weight:600; color:var(--color-darkblue); }
.grant .g-sub { font-size:12px; color:var(--color-text-muted); margin-top:2px; }

/* Timeline (employment / growth) */
.timeline { position:relative; margin-left:8px; padding-left:22px; }
.timeline::before { content:''; position:absolute; left:5px; top:6px; bottom:6px; width:2px; background:var(--color-border); }
.tl-item { position:relative; padding:6px 0 14px; }
.tl-item::before { content:''; position:absolute; left:-22px; top:9px; width:11px; height:11px; border-radius:50%;
  background:#fff; border:3px solid var(--color-primary); }
.tl-item.dim::before { border-color:var(--color-border); }
.tl-item .t-main { font-weight:600; color:var(--color-darkblue); }
.tl-item .t-sub { font-size:12px; color:var(--color-text-muted); margin-top:2px; }

/* Single-salary statement (no chart) */
.single-comp { padding:18px 4px 6px; }
.single-comp .big { font-size:38px; font-weight:700; color:var(--color-darkblue); letter-spacing:-1px; font-variant-numeric:tabular-nums; }
.single-comp .sub { color:var(--color-text-secondary); font-size:13px; margin-top:4px; }
.hist .delta { font-size:12px; font-weight:700; font-variant-numeric:tabular-nums; }
.hist .delta.up { color:#1f8c4e; } .hist .delta.down { color:#b71f33; }
.grant .g-vest { font-size:13px; font-weight:700; color:var(--color-primary-dark); background:rgba(93,161,216,.12);
  padding:4px 10px; border-radius:999px; }

/* Comp & offers — year separators + offer grouping */
.year-head { font-size:12px; font-weight:700; color:var(--color-text-secondary); text-transform:uppercase;
  letter-spacing:.6px; margin:20px 0 6px; padding-bottom:5px; border-bottom:2px solid var(--color-border-light); }
.year-head:first-child { margin-top:6px; }
.offer-group { font-size:13px; font-weight:600; color:var(--color-primary-dark); margin:12px 0 0;
  padding:6px 10px; background:rgba(93,161,216,.08); border-radius:8px; display:inline-block; }
.offer-from { font-size:12px; color:var(--color-text-muted); margin:10px 0 0; }

/* Admin-only context strip */
.ctx-admin { display:inline-flex; align-items:center; gap:6px; background:var(--color-darkblue); color:#fff;
  font-size:11px; font-weight:700; letter-spacing:.4px; text-transform:uppercase; padding:5px 12px;
  border-radius:999px; margin-bottom:14px; box-shadow:var(--shadow-sm); }

/* Impersonation — "view as" switcher + banner */
.imp-banner { display:flex; justify-content:space-between; align-items:center; gap:16px; padding:9px 24px;
  background:linear-gradient(90deg,#b45309,#d97706); color:#fff; font-size:14px; font-weight:600; }
.imp-banner .btn { background:rgba(255,255,255,.22); color:#fff; min-width:0; }
.imp-banner .btn:hover { background:rgba(255,255,255,.34); }
body.impersonating .topnav { box-shadow:inset 0 3px 0 #d97706; }
.imp-fab { position:fixed; left:20px; bottom:20px; z-index:200; }
.imp-fab-btn { width:50px; height:50px; border-radius:50%; border:none; cursor:pointer; font-size:22px;
  background:var(--color-darkblue); color:#fff; box-shadow:var(--shadow-md); transition:transform .08s ease; }
.imp-fab-btn:hover { transform:translateY(-2px); }
.imp-pop { position:absolute; bottom:62px; left:0; width:320px; background:#fff; border:1px solid var(--color-border);
  border-radius:14px; box-shadow:var(--shadow-md); padding:16px; }
.imp-pop-h { font-weight:700; color:var(--color-darkblue); margin-bottom:10px; }
.imp-results { max-height:300px; overflow:auto; margin-top:10px; }
.imp-item { padding:8px 10px; border-radius:8px; cursor:pointer; }
.imp-item:hover { background:var(--color-border-light); }
.imp-item.dis { opacity:.45; cursor:default; }

/* Empty-state for placeholder growth sections */
.placeholder { border:1px dashed var(--color-border); border-radius:12px; padding:22px; text-align:center;
  color:var(--color-text-muted); font-size:13px; background:repeating-linear-gradient(45deg,#fff,#fff 10px,#fafbfc 10px,#fafbfc 20px); }

/* Subtabs — segmented pill bar (Tasks page: To do / My reviews / Compliance) */
.subtabs { display:inline-flex; gap:4px; padding:4px; background:var(--color-border-light);
  border:1px solid var(--color-border); border-radius:12px; margin:6px 0 18px; }
.subtab { border:none; background:transparent; cursor:pointer; font-size:14px; font-weight:600;
  color:var(--color-text-muted); padding:7px 16px; border-radius:9px; display:inline-flex; align-items:center; gap:7px;
  transition:background .1s ease,color .1s ease; }
.subtab:hover { color:var(--color-text); }
.subtab.active { background:#fff; color:var(--color-darkblue); box-shadow:var(--shadow-sm); }
.subtab-badge { font-size:11px; font-weight:700; min-width:18px; text-align:center; padding:1px 6px;
  border-radius:999px; background:var(--color-coral); color:#fff; }
.subtab.active .subtab-badge { background:var(--color-darkblue); }
.subtab-body > .card:first-child, .subtab-body > div:first-child > .card:first-child { margin-top:0; }
