/* IGF_EMPLOYEE_PORTAL_20261117 — the employee portal: a phone first, a computer as well. */
:root { --ink:#1a202c; --muted:#5a6a7a; --line:#e2e8f0; --bg:#f4f6f8; --card:#fff; --accent:#1f5f99; --ok:#22543d; --okbg:#e6f6ec; --warn:#744210; --warnbg:#fefcbf; --err:#9b2c2c; --errbg:#fff5f5; }
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font-family: "Segoe UI", system-ui, -apple-system, Roboto, sans-serif; font-size: 16px; line-height: 1.5; color: var(--ink); background: var(--bg); }
a { color: var(--accent); }
.top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px max(16px, env(safe-area-inset-left)); background: #1f2a36; color: #fff; }
.top .org { color: #fff; font-weight: 700; font-size: 18px; text-decoration: none; display: block; }
.top .sub { font-size: 12px; color: #cbd5e0; }
.top .out { margin: 0; }
.top .link { color: #e2e8f0; }
.tabs { display: flex; gap: 4px; overflow-x: auto; background: #fff; border-bottom: 1px solid var(--line); padding: 0 max(12px, env(safe-area-inset-left)); }
.tabs a { padding: 12px 12px 10px; text-decoration: none; color: var(--muted); font-weight: 600; white-space: nowrap; border-bottom: 3px solid transparent; }
.tabs a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }
main { max-width: 760px; margin: 0 auto; padding: 16px max(16px, env(safe-area-inset-left)) 32px; }
h1 { font-size: 24px; margin: 8px 0 8px; line-height: 1.25; }
h2 { font-size: 18px; margin: 0 0 8px; }
.lede { color: var(--muted); margin: 0 0 14px; }
.hint { color: var(--muted); font-size: 13px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin: 0 0 14px; }
label { display: block; margin: 0 0 12px; font-weight: 600; }
label input[type=email], label input[type=password], label input:not([type]), label input[type=text] { display: block; width: 100%; margin-top: 4px; padding: 10px 12px; font-size: 16px; border: 1px solid #cbd5e0; border-radius: 8px; font-weight: 400; }
label.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
label.check input { margin-top: 4px; width: 20px; height: 20px; flex: none; }
button, .button { display: inline-block; font: inherit; font-weight: 600; padding: 10px 18px; border-radius: 8px; border: 1px solid #cbd5e0; background: #fff; color: var(--ink); cursor: pointer; text-decoration: none; }
button.primary, .button.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
button.link { border: 0; background: none; padding: 4px 0; color: var(--accent); font-weight: 600; text-decoration: underline; }
.msg { border-radius: 10px; padding: 10px 14px; margin: 0 0 14px; border: 1px solid var(--line); background: #fff; }
.msg p { margin: 4px 0; }
.msg.err { background: var(--errbg); border-color: #feb2b2; color: var(--err); }
.msg.ok { background: var(--okbg); border-color: #9ae6b4; color: var(--ok); }
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.list li:last-child { border-bottom: 0; }
.pill { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: #edf2f7; color: #2d3748; }
.pill.todo { background: var(--warnbg); color: var(--warn); }
.pill.wait { background: var(--okbg); color: var(--ok); }
.state.wait { color: var(--ok); font-weight: 600; }
.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.net { font-size: 20px; font-weight: 700; background: #eef3fb; border-radius: 10px; padding: 12px 14px; margin: 0 0 12px; }
.scroll { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
table.stub { width: 100%; border-collapse: collapse; font-size: 15px; }
table.stub th { text-align: left; font-size: 12px; color: var(--muted); padding: 8px 10px; }
table.stub td { padding: 6px 10px; vertical-align: top; }
table.stub .ytd { color: var(--muted); }
table.stub tr.head td { font-weight: 700; padding-top: 14px; }
table.stub tr.total td { font-weight: 700; border-top: 1px solid var(--line); }
.doc { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin: 0 0 14px; overflow-wrap: anywhere; }
.doc img { max-width: 100%; height: auto; }
.doc table { max-width: 100%; display: block; overflow-x: auto; }
.preface { background: #f7fafc; border-left: 3px solid #a0aec0; padding: 8px 12px; margin: 0 0 12px; border-radius: 0 8px 8px 0; white-space: pre-wrap; }
.sign .pad { margin: 4px 0 12px; }
#sig-pad { display: block; width: 100%; max-width: 600px; height: auto; aspect-ratio: 600 / 160; border: 1px dashed #a0aec0; border-radius: 8px; background: #fff; touch-action: none; margin: 6px 0 4px; }
img.sig { max-height: 70px; border-bottom: 1px solid #999; }
footer { text-align: center; color: var(--muted); font-size: 12px; padding: 18px 16px 28px; }
/* The form's own boxes (formFields), made comfortable on a phone. */
.doc.form input.ff-box, .doc.form select.ff-box { font-size: 16px; padding: 6px 8px; margin: 2px; max-width: 100%; }
.doc.form textarea { width: 100%; font-size: 16px; }
.ff-val { font-weight: 600; border-bottom: 1px solid #a0aec0; padding: 0 2px; }
.ff-echo { font-weight: 600; border-bottom: 1px dotted #a0aec0; }
.ff-note { color: var(--muted); }
.ff-office { display: block; white-space: pre-wrap; font-weight: 600; border-left: 3px solid #f6ad55; padding: 2px 0 2px 8px; margin: 2px 0; }
.ff-office.ff-office-inline { display: inline; border-left: 0; border-bottom: 2px solid #f6ad55; padding: 0 2px; margin: 0; }
.ff-long-val { display: block; white-space: pre-wrap; font-weight: 600; margin: 2px 0; }
.ff-sig { max-height: 60px; vertical-align: middle; }
.ff-yesno label, .ff-tick { display: inline-flex; gap: 6px; align-items: center; font-weight: 400; margin: 2px 10px 2px 0; }
.ff-line { display: inline-block; min-width: 8em; border-bottom: 1px solid #4a5568; }
.ff-unknown { background: #fed7d7; color: #9b2c2c; padding: 0 3px; border-radius: 3px; }
@media (max-width: 480px) { h1 { font-size: 21px; } .card { padding: 14px; } table.stub { font-size: 14px; } }
