/* Han-D-Man Pro client portal. Phone first; the same page on a computer is simply wider. */
:root { --navy: #16305b; --orange: #e4761b; --ink: #1d2430; --muted: #5d6676; --line: #d5dbe6; --pale: #edf1f8; --bg: #f5f7fb; --card: #fff; --good: #1d7a46; --goodbg: #e6f4ec; --warn: #9a5a00; --warnbg: #fdf1dc; --bad: #b3261e; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; min-height: 100dvh; display: flex; flex-direction: column; }
a { color: var(--navy); }
h1 { font-size: 24px; line-height: 1.2; margin: 0 0 4px; color: var(--navy); }
h2 { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 26px 0 8px; }
h3 { font-size: 17px; margin: 0; color: var(--ink); }
p { margin: 0 0 10px; }
.top { background: #fff; border-bottom: 3px solid var(--orange); padding: 10px max(16px, env(safe-area-inset-left)); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); }
.brand img { display: block; width: 64px; height: 48px; object-fit: contain; }
.brand span { display: flex; flex-direction: column; line-height: 1.15; }
.brand b { font-size: 17px; }
.brand i { font-style: normal; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
main { flex: 1; width: 100%; max-width: 720px; margin: 0 auto; padding: 20px 16px 40px; }
.foot { text-align: center; font-size: 13px; color: var(--muted); padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: #fff; }
.foot a { color: var(--muted); }
.wait { color: var(--muted); text-align: center; padding: 60px 0; }
.sub { color: var(--muted); margin: 0 0 6px; }
.back { display: inline-block; margin: 0 0 14px; font-size: 15px; text-decoration: none; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin: 0 0 12px; }
a.card { display: block; text-decoration: none; color: inherit; }
a.card:active { background: var(--pale); }
.card.todo { border-left: 5px solid var(--orange); }
.card.ok { border-left: 5px solid var(--good); }
.row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.row > div:first-child { min-width: 0; }
.big { font-size: 20px; font-weight: 700; color: var(--navy); white-space: nowrap; }
.meta { font-size: 14px; color: var(--muted); }
.go { color: var(--navy); font-weight: 600; font-size: 15px; margin-top: 8px; }
.chip { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .03em; padding: 3px 9px; border-radius: 99px; background: var(--pale); color: var(--navy); white-space: nowrap; }
.chip.good { background: var(--goodbg); color: var(--good); }
.chip.warn { background: var(--warnbg); color: var(--warn); }
.none { color: var(--muted); font-size: 15px; padding: 4px 0 8px; }

/* where a job stands */
.steps { list-style: none; margin: 14px 0 2px; padding: 0; display: flex; }
.steps li { flex: 1; text-align: center; font-size: 11.5px; color: var(--muted); position: relative; padding-top: 22px; line-height: 1.25; }
.steps li::before { content: ""; position: absolute; top: 3px; left: 50%; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: #fff; border: 2px solid var(--line); z-index: 1; }
.steps li::after { content: ""; position: absolute; top: 9px; left: -50%; width: 100%; height: 2px; background: var(--line); }
.steps li:first-child::after { display: none; }
.steps li.done::before { background: var(--good); border-color: var(--good); }
.steps li.done::after, .steps li.now::after { background: var(--good); }
.steps li.now::before { background: var(--orange); border-color: var(--orange); box-shadow: 0 0 0 4px rgba(228, 118, 27, .2); }
.steps li.now { color: var(--ink); font-weight: 700; }

/* lists of lines */
table.lines { width: 100%; border-collapse: collapse; margin: 6px 0 0; }
table.lines td { padding: 9px 0; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 15px; }
table.lines td.n { text-align: right; white-space: nowrap; padding-left: 12px; font-variant-numeric: tabular-nums; }
table.lines tr.sum td { border-bottom: 0; padding: 6px 0; color: var(--muted); }
table.lines tr.total td { border-top: 2px solid var(--navy); border-bottom: 0; font-weight: 700; font-size: 18px; color: var(--navy); padding-top: 10px; }
table.lines .x { display: inline-block; font-size: 11px; font-weight: 700; color: var(--orange); letter-spacing: .04em; margin-left: 6px; }
.pre { white-space: pre-wrap; overflow-wrap: anywhere; }
ul.checks { list-style: none; margin: 4px 0 0; padding: 0; }
ul.checks li { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
ul.checks li:last-child { border-bottom: 0; }
ul.checks .box { flex: 0 0 22px; height: 22px; border: 2px solid var(--line); border-radius: 5px; text-align: center; line-height: 18px; font-weight: 700; color: #fff; margin-top: 1px; }
ul.checks li.on .box { background: var(--good); border-color: var(--good); }
ul.checks .note { display: block; font-size: 13.5px; color: var(--muted); }
.facts { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; color: var(--muted); margin: 8px 0 0; }
.facts b { color: var(--ink); }

/* buttons and the form to sign */
.btn { display: block; width: 100%; border: 0; border-radius: 10px; background: var(--navy); color: #fff; font: inherit; font-weight: 700; font-size: 17px; padding: 14px 16px; text-align: center; text-decoration: none; cursor: pointer; }
.btn.orange { background: var(--orange); }
.btn.light { background: #fff; color: var(--navy); border: 1.5px solid var(--navy); }
.btn[disabled] { opacity: .55; }
.btn + .btn { margin-top: 10px; }
.link { background: none; border: 0; padding: 6px 2px; font: inherit; font-size: 15px; color: var(--navy); text-decoration: underline; cursor: pointer; }
label.f { display: block; font-size: 14px; font-weight: 600; margin: 14px 0 5px; }
input.t, select.t, textarea.t { display: block; width: 100%; font: inherit; font-size: 17px; padding: 12px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); }
input.t:focus, select.t:focus, textarea.t:focus { outline: 0; border-color: var(--navy); }
input.zip { font-size: 26px; letter-spacing: .3em; text-align: center; max-width: 220px; margin: 0 auto; }
.pad { position: relative; border: 1.5px dashed var(--muted); border-radius: 10px; background: #fff; height: 170px; touch-action: none; overflow: hidden; }
.pad canvas { display: block; width: 100%; height: 100%; touch-action: none; }
.pad .hint { position: absolute; left: 0; right: 0; bottom: 34px; text-align: center; color: #a7afbd; font-size: 15px; pointer-events: none; }
.pad::after { content: ""; position: absolute; left: 18px; right: 18px; bottom: 30px; border-bottom: 1.5px solid #c3cad6; pointer-events: none; }
.padrow { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--muted); margin: 4px 0 12px; }
label.agree { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; margin: 6px 0 14px; }
label.agree input { width: 22px; height: 22px; flex: 0 0 22px; margin: 1px 0 0; }
.err { color: var(--bad); font-size: 15px; font-weight: 600; margin: 10px 0; }
.banner { border-radius: 10px; padding: 12px 14px; margin: 0 0 12px; font-size: 15px; }
.banner.good { background: var(--goodbg); color: var(--good); }
.banner.warn { background: var(--warnbg); color: var(--warn); }
.banner b { display: block; }
.sig { display: flex; align-items: flex-end; gap: 12px; margin-top: 8px; font-size: 14px; color: var(--muted); }
.pay dt { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-top: 12px; }
.pay dd { margin: 2px 0 0; font-size: 16px; overflow-wrap: anywhere; }
.center { text-align: center; }
.signin { max-width: 420px; margin: 24px auto 0; text-align: center; }
.signin .card { padding: 22px 18px; }
#toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translateX(-50%); background: var(--ink); color: #fff; padding: 11px 18px; border-radius: 99px; font-size: 15px; max-width: 90vw; z-index: 9; }
@media (min-width: 640px) { main { padding-top: 28px; } h1 { font-size: 28px; } .steps li { font-size: 13px; } }
