/* WorkForce. Copyright 2026 Platinum LLC dba Platinum Site Solutions. All rights reserved. */
:root {
  --ink: #1d2025; --ink2: #2b3037; --text: #1f2328; --muted: #5f6670; --line: #dfe2e6; --band: #eef0f2;
  --bg: #f4f5f7; --card: #ffffff; --accent: #1f6feb; --hmi-blue: #2563eb; --green: #1a7f37; --amber: #9a6700; --red: #cf222e;
  --safe-b: env(safe-area-inset-bottom, 0px); --safe-t: env(safe-area-inset-top, 0px);
  font-size: 16px;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
/* the page itself is dark so iPhone home-screen apps tint the status bar to match the header; the app area is light */
html, body { margin: 0; height: 100%; background: var(--ink); color: var(--text); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; }
button, input, textarea, select { font: inherit; color: inherit; }
#app { overflow-x: clip; max-width: 100vw; min-height: 100%; background: var(--bg); }
.fld input[type=date], .fld input[type=time], .fld input[type=datetime-local] { -webkit-appearance: none; appearance: none; display: block; min-width: 0; max-width: 100%; min-height: 46px; text-align: left; }
input::-webkit-date-and-time-value { text-align: left; }
a { color: var(--accent); }
.splash { position: fixed; inset: 0; background: var(--ink); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; color: #fff; }
.splash img { width: 150px; }
.splash span { font-weight: 600; letter-spacing: .08em; font-size: 15px; opacity: .85; }

/* top bar and tabs */
.top { position: sticky; top: 0; z-index: 5; background: var(--ink); color: #fff; padding: calc(10px + var(--safe-t)) 14px 10px; display: flex; align-items: center; gap: 12px; min-height: 60px; }
/* iPhone home-screen apps (iOS 26): the system softens the top of the app under its status bar; keep the logo and
   title clear of that band */
@media (display-mode: standalone) { .top { padding-top: calc(var(--safe-t) + 32px); } }
.top .logo { height: 38px; width: auto; flex: none; }
.top .bdiv { width: 1px; align-self: stretch; margin: 4px 0; background: rgba(255,255,255,.28); flex: none; }
.top h1 { font-size: 18px; letter-spacing: .01em; margin: 0; font-weight: 600; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* back, the way iPhone apps do it: a chevron and the name of the screen you came from */
.iback { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 4px 8px 4px 0; margin: -4px 0 6px; color: var(--hmi-blue); font-size: 17px; font-weight: 400; -webkit-tap-highlight-color: transparent; }
.iback svg { width: 11px; height: 19px; }
.iback:active { opacity: .45; }
.pdfpages { display: flex; flex-direction: column; gap: 10px; }
.pdfpages canvas { width: 100%; height: auto; background: #fff; border-radius: 6px; box-shadow: 0 1px 4px rgba(0,0,0,.14); }
.top .pill { font-size: 12px; background: rgba(255,255,255,.14); padding: 3px 9px; border-radius: 99px; }
.top .pill.off { background: #9a6700; }
main { padding: 14px 14px calc(86px + var(--safe-b)); max-width: 720px; margin: 0 auto; }
.tabs { position: fixed; bottom: 0; left: 0; right: 0; z-index: 6; background: var(--ink); border-top: 1px solid rgba(255,255,255,.08); display: flex; padding-bottom: var(--safe-b); }
.tabs a { flex: 1; text-align: center; padding: 8px 0 7px; color: rgba(255,255,255,.62); text-decoration: none; font-size: 11px; font-weight: 600; position: relative; }
.tabs a svg { display: block; margin: 0 auto 2px; width: 24px; height: 24px; }
.tabs a.on { color: #fff; background: rgba(37, 99, 235, .38); }
.tabs a .dot { position: absolute; top: 4px; left: calc(50% + 8px); background: var(--red); color: #fff; border-radius: 99px; font-size: 10px; padding: 0 5px; line-height: 16px; }

/* blocks */
h2.group { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 20px 4px 8px; }
h2.group:first-child { margin-top: 4px; }
.list { background: var(--card); border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.row { display: flex; align-items: center; gap: 12px; padding: 14px; border-top: 1px solid var(--line); text-decoration: none; color: inherit; background: none; width: 100%; text-align: left; border-left: 0; border-right: 0; border-bottom: 0; }
.row:first-child { border-top: 0; }
.row .ic { width: 36px; height: 36px; border-radius: 9px; background: var(--band); display: flex; align-items: center; justify-content: center; flex: none; color: var(--ink); }
.row .ic svg { width: 20px; height: 20px; }
.row .tx { flex: 1; min-width: 0; }
.row .tx b { display: block; font-weight: 600; font-size: 15.5px; }
.row .tx small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.row .chev { color: #a3a9b1; font-size: 20px; }
.row.urgent .ic { background: #ffebe9; color: var(--red); }
.badge { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: var(--band); color: var(--muted); white-space: nowrap; }
.badge.g { background: #dafbe1; color: var(--green); }
.badge.a { background: #fff8c5; color: var(--amber); }
.badge.r { background: #ffebe9; color: var(--red); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px; margin-bottom: 12px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.note { background: var(--band); border-left: 4px solid var(--ink); padding: 10px 12px; border-radius: 6px; font-size: 14.5px; margin: 10px 0; }
.warn { background: #fff8c5; border-left: 4px solid var(--amber); padding: 10px 12px; border-radius: 6px; font-size: 14.5px; margin: 10px 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 12px; padding: 13px 18px; font-weight: 600; font-size: 16px; background: var(--ink); color: #fff; text-decoration: none; }
.btn.block { display: flex; width: 100%; }
.btn.light { background: var(--band); color: var(--ink); }
.btn.red { background: var(--red); }
.btn.ghost { background: none; color: var(--accent); padding: 8px 4px; }
.btn:disabled { opacity: .5; }
.btns { display: flex; gap: 10px; margin-top: 14px; }
.btns .btn { flex: 1; }

/* forms */
.fsec { font-size: 17px; font-weight: 700; margin: 22px 2px 10px; padding-bottom: 6px; border-bottom: 2px solid var(--ink); }
.intro { color: var(--muted); font-size: 14.5px; margin: 4px 2px 12px; line-height: 1.45; }
.fld { display: block; margin-bottom: 12px; }
.fld > span { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink2); margin: 0 2px 5px; }
.fld input, .fld textarea, .fld select, .inp { width: 100%; border: 1px solid #cfd4da; border-radius: 10px; padding: 11px 12px; background: #fff; font-size: 16px; }
.fld textarea { resize: vertical; min-height: 84px; }
.fld input:focus, .fld textarea:focus, .inp:focus { outline: 2px solid var(--accent); border-color: transparent; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid #cfd4da; background: #fff; border-radius: 99px; padding: 9px 14px; font-size: 14.5px; }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.chk { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; margin-bottom: 8px; width: 100%; text-align: left; }
.chk .bx { width: 24px; height: 24px; border-radius: 7px; border: 2px solid #9aa1aa; flex: none; display: flex; align-items: center; justify-content: center; margin-top: 1px; }
.chk.on .bx { background: var(--green); border-color: var(--green); }
.chk.on .bx::after { content: ""; width: 7px; height: 12px; border: solid #fff; border-width: 0 3px 3px 0; transform: rotate(45deg) translate(-1px, -1px); }
.chk .lb { flex: 1; font-size: 15px; line-height: 1.35; }
.extra { margin: -2px 0 10px 36px; }
.gridrow { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin-bottom: 10px; }
.gridrow h4 { margin: 0 0 10px; font-size: 15px; display: flex; justify-content: space-between; align-items: center; }
.gridrow .x { background: none; border: 0; color: var(--red); font-size: 13px; font-weight: 600; }
.static-steps { margin: 0 0 10px; padding-left: 22px; }
.sig { border: 1px dashed #9aa1aa; border-radius: 12px; background: #fff; min-height: 70px; display: flex; align-items: center; justify-content: center; color: var(--muted); width: 100%; padding: 8px; }
.sig img { max-height: 70px; max-width: 100%; }
.sigbox { margin-bottom: 12px; }
.sigbox .who { display: flex; gap: 8px; margin-bottom: 6px; }
.sigbox .when { font-size: 12px; color: var(--muted); margin: 4px 2px 0; }
.jobpick { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px; margin-bottom: 8px; }
.photos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.photo { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 6px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; display: block; }
.photo .inp { padding: 8px 10px; font-size: 16px; }
.photo .x { background: none; border: 0; color: var(--red); font-size: 13px; font-weight: 600; padding: 2px; }
.addphoto { width: 100%; margin-top: 10px; }
.pickgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
.pickgrid .fld { min-width: 0; }
.pickgrid .fld > span { font-size: 12.5px; line-height: 1.25; min-height: 2.5em; display: flex; align-items: flex-end; }
select.pick { width: 100%; border: 1px solid #cfd4da; border-radius: 10px; padding: 10px 10px; background: #fff; font-size: 16px; color: var(--muted); -webkit-appearance: none; appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #8b929b 50%), linear-gradient(135deg, #8b929b 50%, transparent 50%); background-position: calc(100% - 16px) 52%, calc(100% - 11px) 52%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 26px; }
select.pick.set { color: var(--text); font-weight: 600; border-color: #9aa1aa; }
.gridrow.unit.off { opacity: .6; }
.gridrow.unit.off h4::after { content: "Not on this plant"; font-size: 12px; font-weight: 600; color: var(--muted); }
.fld.inline { display: flex; align-items: center; gap: 10px; }
.fld.inline > span { flex: 1; margin: 0; }
.fld.inline select { width: 130px; }
.formfoot { position: sticky; bottom: calc(66px + var(--safe-b)); background: linear-gradient(transparent, var(--bg) 30%); padding: 18px 0 4px; margin-top: 10px; }

/* signature pad */
.pad { position: fixed; inset: 0; z-index: 30; background: #fff; display: flex; flex-direction: column; padding: calc(10px + var(--safe-t)) 12px calc(12px + var(--safe-b)); }
.pad .ph { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.pad .ph b { font-size: 16px; }
.pad canvas { flex: 1; width: 100%; border: 1px solid var(--line); border-radius: 12px; background: #fff; touch-action: none; }
.pad .line { font-size: 12px; color: var(--muted); text-align: center; margin: 6px 0 10px; }

/* library and documents */
.search { position: relative; margin-bottom: 12px; }
.search input { width: 100%; border: 1px solid #cfd4da; border-radius: 12px; padding: 12px 14px 12px 40px; font-size: 16px; background: #fff; }
.search svg { position: absolute; left: 12px; top: 12px; width: 20px; height: 20px; color: var(--muted); }
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 6px; }
.qcard { background: var(--ink); color: #fff; border-radius: 14px; padding: 14px 12px; text-decoration: none; min-height: 78px; display: flex; flex-direction: column; justify-content: space-between; }
.qcard b { font-size: 14.5px; }
.qcard small { opacity: .7; font-size: 12px; }
.doc { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 6px 16px 16px; line-height: 1.5; font-size: 16px; }
.doc h2 { font-size: 19px; margin: 26px 0 8px; padding-bottom: 6px; border-bottom: 2px solid var(--ink); scroll-margin-top: 70px; }
.doc h3 { font-size: 16.5px; margin: 18px 0 6px; scroll-margin-top: 70px; }
.doc p, .doc li { margin: 6px 0; }
.doc ul, .doc ol { padding-left: 22px; }
.doc .tbl { overflow-x: auto; margin: 10px 0; }
.doc table { border-collapse: collapse; font-size: 14px; min-width: 100%; }
.doc th, .doc td { border: 1px solid var(--line); padding: 7px 8px; vertical-align: top; text-align: left; }
.doc th { background: var(--band); }
.doc mark { background: #ffe066; padding: 0 1px; border-radius: 2px; }
.doc mark.cur { background: #ff9f1c; }
.dochead { padding: 12px 2px 4px; }
.dochead b { font-size: 20px; display: block; }
.findbar { position: sticky; top: 52px; z-index: 4; background: var(--bg); padding: 8px 0; display: flex; gap: 8px; align-items: center; }
.findbar input { flex: 1; }
.findbar .n { font-size: 13px; color: var(--muted); min-width: 52px; text-align: center; }
.toc a { display: block; padding: 10px 4px; border-top: 1px solid var(--line); text-decoration: none; color: var(--text); font-size: 15px; }
.toc a.l2 { padding-left: 20px; font-size: 14px; color: var(--muted); }
.hit { padding: 12px 14px; border-top: 1px solid var(--line); display: block; text-decoration: none; color: inherit; }
.hit:first-child { border-top: 0; }
.hit b { font-size: 14px; display: block; }
.hit span { font-size: 13.5px; color: var(--muted); }
.hit mark { background: #ffe066; color: var(--text); }

/* emergency */
.call911 { display: flex; align-items: center; justify-content: center; gap: 10px; background: var(--red); color: #fff; border-radius: 16px; padding: 18px; font-size: 22px; font-weight: 800; text-decoration: none; margin-bottom: 12px; }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 15px; }
.kv:first-of-type { border-top: 0; }
.kv span:first-child { color: var(--muted); flex: none; }
.kv span:last-child { text-align: right; }

/* sheet and toast */
.sheet { position: fixed; inset: 0; z-index: 25; background: rgba(0,0,0,.4); display: flex; align-items: flex-end; }
.sheet .body { background: #fff; width: 100%; border-radius: 18px 18px 0 0; padding: 18px 16px calc(18px + var(--safe-b)); max-height: 88vh; overflow: auto; }
.sheet h3 { margin: 0 0 8px; }
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(80px + var(--safe-b)); z-index: 40; background: var(--ink); color: #fff; padding: 11px 16px; border-radius: 12px; font-size: 14.5px; max-width: 92vw; box-shadow: 0 6px 24px rgba(0,0,0,.25); }

/* sign-in */
/* sign-in: the same look as the Platinum HMI sign-in */
.signin { position: relative; min-height: 100vh; color: #e6e9ed; background: radial-gradient(1200px 700px at 50% 38%, #1a222d 0%, #0c0f13 55%, #07090b 100%) fixed; }
.signin .topo { position: fixed; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; pointer-events: none; user-select: none; opacity: .9; }
.signin .mapnote { position: fixed; right: 24px; bottom: 18px; z-index: 1; text-align: right; pointer-events: none; user-select: none;
  color: rgba(214, 220, 226, .5); font-size: 11px; line-height: 1.6; letter-spacing: .06em; text-shadow: 0 1px 8px rgba(0,0,0,.9); }
.signin .mapnote::before { content: ""; position: absolute; z-index: -1; inset: -46px -28px -22px -90px;
  background: radial-gradient(ellipse 60% 70% at 68% 62%, rgba(8, 9, 11, .9) 0%, rgba(8, 9, 11, .72) 45%, rgba(8, 9, 11, 0) 100%); }
.signin .mapnote b { display: block; color: rgba(226, 191, 120, .78); font-size: 10.5px; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; }
@media (max-width: 760px) { .signin .mapnote { display: none; } }
.signin .wrap { position: relative; z-index: 1; min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: calc(28px + var(--safe-t)) 16px calc(22px + var(--safe-b)); gap: 20px; }
.signin .brand { text-align: center; }
.signin .brand img { width: 200px; height: auto; display: block; margin: 0 auto 12px; filter: drop-shadow(0 8px 26px rgba(0,0,0,.6)); }
.signin .brand .app { color: rgba(255,255,255,.55); font-size: 12.5px; font-weight: 600; letter-spacing: .32em; text-transform: uppercase; }
.signin .box { position: relative; width: 100%; max-width: 410px; padding: 32px 30px 26px; border-radius: 20px; background: rgba(16,19,24,.66);
  border: 1px solid rgba(255,255,255,.10); box-shadow: 0 30px 80px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.06);
  -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%); }
.signin h1 { font-size: 24px; font-weight: 700; margin: 0 0 6px; letter-spacing: -.015em; color: #fff; }
.signin .lead { margin: 0 0 22px; color: #a3acb7; font-size: 14.5px; line-height: 1.5; }
.signin .btn.primary { display: flex; width: 100%; height: 46px; padding: 0 16px; border-radius: 11px; background: var(--hmi-blue); color: #fff; font-size: 15px; font-weight: 600; text-decoration: none; }
.signin .btn.primary:active { background: #1d4ed8; }
.signin .fine { margin: 18px 0 0; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.08); color: #7d8691; font-size: 12.5px; line-height: 1.55; text-align: center; text-wrap: balance; }
.signin footer { color: rgba(255,255,255,.38); font-size: 12px; text-align: center; }
