/* STOF Connect - Employee Self Service (training environment) */

:root {
  --ink: #1f2328;
  --ink-2: #4a525c;
  --ink-3: #6b7480;
  --line: #d8dde3;
  --line-2: #e8ebef;
  --page: #f3f4f6;
  --panel: #ffffff;
  --brand: #17423a;        /* deep evergreen */
  --brand-2: #0f2f29;
  --link: #145da0;
  --focus: #f2b705;
  --ok: #1b7a43;
  --warn: #9a5b00;
  --bad: #a3271f;
  --info: #285e8e;
  --radius: 3px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 14px/1.45 "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; }
h1, h2, h3 { color: var(--ink); line-height: 1.25; }
h1 { font-size: 22px; font-weight: 600; margin: 0 0 4px; }
h2 { font-size: 15px; font-weight: 600; margin: 0; }
h3 { font-size: 12px; font-weight: 600; letter-spacing: .02em; color: var(--ink-2); margin: 18px 0 6px; }
p { margin: 0 0 10px; }
.muted { color: var(--ink-3); }
.num { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ---- chrome */
.env-banner { background: #fff4d6; color: #5c4400; border-bottom: 1px solid #ecd9a2; font-size: 12px; text-align: center; padding: 3px 8px; letter-spacing: .02em; }
.utility { background: var(--brand-2); color: #c9d6d2; font-size: 12px; }
.utility .wrap { display: flex; justify-content: space-between; align-items: center; height: 28px; }
.utility a { color: #c9d6d2; margin-left: 18px; }
.masthead { background: var(--brand); color: #fff; }
.masthead > .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; }
.brand:hover { text-decoration: none; }
.brand b { display: block; font-size: 18px; font-weight: 600; letter-spacing: .01em; }
.brand small { display: block; font-size: 12px; color: #b9cbc6; }
.band { height: 4px; background: linear-gradient(90deg, #a3271f 0 25%, #e0a800 25% 50%, #111 50% 75%, #f2f2f2 75% 100%); background-size: 96px 4px; }
.primary { background: #fff; border-bottom: 1px solid var(--line); }
.primary .wrap { display: flex; gap: 2px; overflow-x: auto; }
.primary a { color: var(--ink-2); padding: 11px 14px 10px; border-bottom: 3px solid transparent; font-weight: 500; white-space: nowrap; }
.primary a:hover { color: var(--ink); text-decoration: none; background: #f7f8f9; }
.primary a[aria-current="page"] { color: var(--brand); border-bottom-color: var(--brand); font-weight: 600; }

.account { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.account .who b { display: block; font-weight: 600; }
.account .who span { display: block; font-size: 12px; color: #b9cbc6; }
.avatar { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #2c6157; color: #fff; font-size: 12px; font-weight: 600; letter-spacing: .03em; }
.avatar.sm { width: 24px; height: 24px; font-size: 10px; margin-right: 8px; vertical-align: middle; background: #dfe7e5; color: var(--brand); }
.signout, .signin-link { color: #fff; border: 1px solid rgba(255,255,255,.35); border-radius: var(--radius); padding: 5px 10px; margin-left: 6px; }
.signout:hover, .signin-link:hover { background: rgba(255,255,255,.1); text-decoration: none; }

main.wrap { padding-top: 18px; padding-bottom: 40px; min-height: 60vh; }
.crumbs { font-size: 12px; color: var(--ink-3); margin-bottom: 12px; }
.crumbs span[aria-hidden] { margin: 0 6px; color: #aab1b9; }
.page-head { margin: 4px 0 16px; }
.page-head.row { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }

/* ---- layout */
.cols { display: grid; gap: 16px; align-items: start; }
.cols-home { grid-template-columns: 360px 1fr; }
.cols-2-1 { grid-template-columns: 2fr 1fr; }
.cols-1-3 { grid-template-columns: 240px 1fr; }
.cols-center { grid-template-columns: minmax(0, 420px); justify-content: center; }
.stack { display: grid; gap: 16px; }
@media (max-width: 900px) { .cols-home, .cols-2-1, .cols-1-3 { grid-template-columns: 1fr; } .account .who { display: none; } }

.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.panel.flush { padding: 0; }
.panel-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; gap: 12px; }
.panel-head a, .panel-head .muted { font-size: 12px; }

/* ---- forms */
.signin-panel h1 { font-size: 19px; }
.lede { color: var(--ink-2); margin-bottom: 14px; }
.signin label { display: block; font-size: 13px; font-weight: 600; margin: 10px 0 4px; }
.signin input, .search input {
  width: 100%; height: 36px; padding: 6px 10px; font: inherit; color: var(--ink);
  border: 1px solid #b8c0c9; border-radius: var(--radius); background: #fff;
}
.signin input:focus, .search input:focus { border-color: var(--brand); outline: 2px solid rgba(23,66,58,.25); outline-offset: 0; }
.form-error { color: var(--bad); background: #fbeceb; border-left: 3px solid var(--bad); padding: 7px 10px; margin: 12px 0 0; font-size: 13px; }
.fine { font-size: 12px; color: var(--ink-3); margin: 12px 0 0; }
.btn {
  display: inline-block; margin-top: 14px; height: 36px; padding: 0 18px; border: 1px solid var(--brand); border-radius: var(--radius);
  background: var(--brand); color: #fff; font-family: inherit; font-size: 14px; font-weight: 600; line-height: 34px; cursor: pointer;
}
.signin .btn { width: 100%; }
.btn:hover { background: var(--brand-2); text-decoration: none; }
.btn-quiet { background: #fff; color: var(--brand); margin-top: 0; }
.btn-quiet:hover { background: #eef3f2; }
.search { display: flex; gap: 8px; margin-bottom: 14px; max-width: 560px; }
.search .btn { margin-top: 0; }

/* ---- home */
.notices { list-style: none; margin: 0; padding: 0; }
.notices li { display: grid; grid-template-columns: 56px 1fr; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line-2); }
.notices li:first-child { border-top: 0; padding-top: 2px; }
.notices time { font-size: 12px; color: var(--ink-3); padding-top: 1px; font-variant-numeric: tabular-nums; }
.notices .dept { font-size: 11px; font-weight: 600; color: var(--brand); text-transform: uppercase; letter-spacing: .04em; }
.notices p { margin: 1px 0 0; }
.status-table { width: 100%; border-collapse: collapse; }
.status-table td { padding: 7px 0; border-top: 1px solid var(--line-2); }
.status-table tr:first-child td { border-top: 0; }
.status-table td:last-child { color: var(--ink-2); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 7px; vertical-align: 1px; }
.dot.ok { background: var(--ok); } .dot.warn { background: #d18a00; } .dot.bad { background: var(--bad); }

.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
@media (max-width: 900px) { .tiles { grid-template-columns: 1fr 1fr; } }
.tile { display: grid; gap: 2px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; color: var(--ink); }
a.tile:hover { border-color: #9fb3ae; text-decoration: none; }
.tile-k { font-size: 12px; color: var(--ink-3); }
.tile-v { font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; }
.tile-s { font-size: 12px; color: var(--ink-2); }
.warn-text { color: var(--warn); }
.links { list-style: none; margin: 0; padding: 0; }
.links li { padding: 6px 0; border-top: 1px solid var(--line-2); }
.links li:first-child { border-top: 0; }
.big-stat b { font-size: 22px; font-variant-numeric: tabular-nums; margin-right: 4px; }

/* ---- tables */
.ledger { width: 100%; border-collapse: collapse; font-size: 13px; }
.ledger th { text-align: left; font-weight: 600; color: var(--ink-2); background: #f6f7f9; border-bottom: 1px solid var(--line); padding: 7px 10px; }
.ledger td { padding: 7px 10px; border-bottom: 1px solid var(--line-2); }
.ledger tfoot td { font-weight: 600; border-top: 1px solid var(--line); border-bottom: 0; }
.ledger th.num, .ledger td.num { text-align: right; }
.panel.flush .ledger th:first-child, .panel.flush .ledger td:first-child { padding-left: 18px; }
.week th span { display: block; font-weight: 400; color: var(--ink-3); font-size: 11px; }
.week td.num, .week th { text-align: center; }

/* ---- pay statement */
.period-list { list-style: none; margin: 0 -18px -16px; padding: 0; }
.period-list a { display: flex; justify-content: space-between; padding: 8px 18px; border-top: 1px solid var(--line-2); color: var(--ink); }
.period-list a:hover { background: #f6f8f8; text-decoration: none; }
.period-list a[aria-current] { background: #eaf1ef; box-shadow: inset 3px 0 0 var(--brand); font-weight: 600; }
.statement-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.statement .net { text-align: right; }
.statement .net span { display: block; font-size: 12px; color: var(--ink-3); }
.statement .net b { font-size: 26px; font-weight: 600; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 12px 0 2px; }
.facts dt { font-size: 12px; color: var(--ink-3); }
.facts dd { margin: 0; font-weight: 600; }
.facts dd.num { text-align: left; }
.statement-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--ink-2); flex-wrap: wrap; gap: 10px; }

/* ---- dispatch */
.feed { font-size: 12px; color: var(--ink-2); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 10px; }
.summary { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.summary div { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 7px 12px; }
.summary b { font-size: 18px; font-variant-numeric: tabular-nums; }
.filters { display: flex; gap: 4px; padding: 10px 14px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.filters a { font-size: 12px; padding: 4px 10px; border: 1px solid var(--line); border-radius: 14px; color: var(--ink-2); }
.filters a[aria-current] { background: var(--brand); border-color: var(--brand); color: #fff; }
.board td.unit { font-family: Consolas, "SF Mono", Menlo, monospace; font-weight: 600; }
.st { display: inline-block; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 2px; border: 1px solid; text-transform: uppercase; letter-spacing: .03em; white-space: nowrap; }
.st-avail { color: var(--ok); border-color: #9fd0b2; background: #edf7f1; }
.st-scene { color: var(--bad); border-color: #e3aaa6; background: #fbeeed; }
.st-route { color: var(--warn); border-color: #e6c88f; background: #fdf5e6; }
.st-admin { color: var(--info); border-color: #a9c3dc; background: #eef4fa; }

/* ---- ThousandEyes lab */
.primary a.nav-lab { margin-left: auto; color: #6b4e00; }
.primary a.nav-lab::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #e0a800; margin-right: 7px; vertical-align: 1px; }
.primary a.nav-lab[aria-current="page"] { color: #6b4e00; border-bottom-color: #e0a800; }
.cols-1-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); }
@media (max-width: 900px) { .cols-1-2 { grid-template-columns: 1fr; } }
.steps-list { margin: 0; padding-left: 20px; }
.steps-list li { margin-bottom: 10px; line-height: 1.5; }
.steps-list code, .lab-wait code { background: #f2f4f6; border: 1px solid var(--line-2); border-radius: 2px; padding: 0 4px; font-size: 12.5px; }
.field { display: grid; grid-template-columns: 140px 1fr auto; gap: 10px; align-items: center; padding: 9px 0; border-top: 1px solid var(--line-2); }
.field:first-of-type { border-top: 0; }
.field-k { font-size: 12px; color: var(--ink-3); }
.field-v.mono { font-family: Consolas, "SF Mono", Menlo, monospace; font-size: 13px; word-break: break-all; }
.field-v.secret { filter: blur(5px); cursor: pointer; }
.field-v.secret.shown { filter: none; }
.btn-sm { height: 28px; line-height: 26px; padding: 0 10px; font-size: 12px; }
.pill-ok { background: #e3f3ea; color: var(--ok); }
.lab-wait { max-width: 640px; margin: 24px auto; }
.progress { height: 6px; background: var(--line-2); border-radius: 3px; overflow: hidden; margin: 16px 0; }
.progress span { display: block; height: 100%; width: 30%; background: var(--brand); border-radius: 3px; animation: lab-progress 1.6s ease-in-out infinite; }
@keyframes lab-progress { 0% { transform: translateX(-100%); } 100% { transform: translateX(340%); } }
@media (prefers-reduced-motion: reduce) { .progress span { animation: none; width: 100%; opacity: .5; } }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ---- misc */
.pill { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 10px; }
.pill-warn { background: #fdf0d5; color: var(--warn); }
.pill-bad { background: #f8e3e1; color: var(--bad); }
#lab-te { margin-bottom: 16px; }
.notice-bar { background: #eef4fa; border: 1px solid #c4d7ea; border-left: 4px solid var(--info); padding: 9px 12px; margin-bottom: 14px; border-radius: var(--radius); }
.problem { border-left: 4px solid var(--bad); max-width: 720px; }
.problem pre { white-space: pre-wrap; font-size: 12px; background: #f6f7f9; padding: 10px; border-radius: var(--radius); }

.site-footer { background: #e9ecef; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 12px; padding: 18px 0 24px; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.site-footer p { margin: 4px 0 0; max-width: 620px; }
.footer-meta { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.footer-meta .build { color: var(--ink-3); font-family: Consolas, "SF Mono", Menlo, monospace; }

@media print {
  .env-banner, .utility, .primary, .band, .site-footer, .period-list, .crumbs, .btn { display: none !important; }
  .masthead { background: none; color: #000; }
  .cols-1-3 { grid-template-columns: 1fr; }
  .panel { border: 0; }
}
