/* Time, pay and leave (portal rethink stage 8; pay.js): Pay, a run's lines,
   Timesheets and the clock fix, Loans and Leave (CONFIG.PAY_NEW), and a team
   member's "Ask to fix a day" and leave request (the stage 5 MEMBER_DAY
   switch). Every rule is scoped under .py, .py-scrim or .py-askfix. Red only
   for what needs someone. */
.py, .py-scrim { --py-ink: #111; --py-card: #fff; --py-line: #E3E3DC; --py-line2: #EFEFE9; --py-mute: #73736D; --py-col: #EBEBE4; --py-red: #D6362B; --py-y: #F5C500; --py-sel: #FFF6D1; --py-green: #1E7A43;
  color: var(--py-ink); font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif; }
.py { padding: 4px 0 28px; container-type: inline-size; }
.py button, .py-scrim button { font: inherit; color: inherit; }
.py .py-mute, .py-scrim .py-mute { color: var(--py-mute); }
.py .is-red, .py-scrim .is-red { color: var(--py-red); }
.py .py-ok { color: var(--py-green); display: inline-flex; align-items: center; gap: 6px; }
.py .py-grow { flex: 1; }
.py .py-small, .py-scrim .py-small { font-size: 13.5px; line-height: 1.45; }
.py .py-pad { padding: 4px 22px 18px; margin: 0; }
.py .py-status { color: var(--py-mute); font-size: 15px; margin: 18px 0; }
.py .py-warn { color: #4D4A3F; background: #F7F2E1; border-radius: 10px; padding: 10px 14px; margin: 0 22px 16px; font-size: 13.5px; }
.py-scrim .py-err { color: var(--py-red); font-size: 13.5px; margin: 10px 0 0; }

/* the top control */
.py-top { display: flex; align-items: center; gap: 14px; margin: 0 0 22px; }
.py-seg { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--py-col); }
.py-seg.is-ask .py-seg-o { padding: 0 12px; font-size: 14px; }
.py .py-lv { font-size: 12.5px; }
.py-seg-o { height: 34px; padding: 0 15px; border: 0; border-radius: 8px; background: none; color: #73736D; font-size: 14.5px; font-weight: 500; cursor: pointer; white-space: nowrap; }
.py-seg-o.is-on { background: #fff; color: #111; font-weight: 600; box-shadow: 0 0 0 .5px rgba(0,0,0,.12), 0 1px 2px rgba(0,0,0,.08); }
.py-seg.is-small .py-seg-o { height: 30px; padding: 0 12px; font-size: 13.5px; }
.py .py-link { padding: 0; border: 0; background: none; font-size: 14px; font-weight: 500; color: var(--py-mute); cursor: pointer; }
.py .py-link:hover { color: var(--py-ink); }
.py .py-crumb { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; }
.py .py-link2, .py-scrim .py-link2, .py-askfix .py-link2 { display: inline-flex; align-items: center; gap: 4px; padding: 0; border: 0; background: none; font-size: 14px; font-weight: 600; color: var(--py-ink, #111); cursor: pointer; }
.py .py-show { display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none; color: var(--py-mute); font-size: 14px; font-weight: 500; cursor: pointer; white-space: nowrap; }
.py .py-show:hover { color: var(--py-ink); }
.py .py-mask { letter-spacing: .06em; color: #111; font-weight: 700; }

.py .py-btn, .py-scrim .py-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 40px; padding: 0 16px; border: 1px solid var(--py-line); border-radius: 10px;
  background: var(--py-card); font-size: 15px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.py .py-btn:hover, .py-scrim .py-btn:hover { background: #FAFAF7; }
.py .py-btn.is-k, .py-scrim .py-btn.is-k { background: var(--py-ink); border-color: var(--py-ink); color: #fff; }
.py .py-btn.is-soft { background: var(--py-col); border-color: transparent; }
.py .py-btn.is-danger { background: #FBE9E7; border-color: transparent; color: var(--py-red); }
.py .py-btn.is-sm { height: 36px; padding: 0 14px; font-size: 14.5px; }
.py .py-btn[disabled], .py-scrim .py-btn[disabled] { opacity: .45; cursor: default; }

.py .py-big { margin: 0; font-size: 31px; line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; }
.py .py-sub { margin: 7px 0 22px; color: var(--py-mute); font-size: 15.5px; }
.py .py-h3 { margin: 22px 0 12px; font-size: 14px; font-weight: 600; color: var(--py-mute); }
.py .py-card { background: var(--py-card); border: 1px solid var(--py-line); border-radius: 14px; margin: 0 0 20px; overflow: hidden; }
.py .py-ch { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 22px 10px; }
.py .py-ch h2 { margin: 0; font-size: 17.5px; font-weight: 650; }
.py .py-ch > span { color: var(--py-mute); font-size: 13.5px; text-align: right; }
.py .py-cf { display: flex; align-items: center; gap: 12px; padding: 16px 22px; border-top: 1px solid var(--py-line2); font-size: 14px; color: var(--py-mute); }

.py .py-cols { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 26px; align-items: start; }
.py .py-aside .py-card { padding-bottom: 6px; }
.py .py-side h2 { margin: 0; padding: 18px 22px 8px; font-size: 17.5px; font-weight: 650; }
.py .py-side .py-ch h2 { padding: 0; }
.py .py-side p.py-small { margin: 0; padding: 0 22px 14px; }
.py .py-sidefoot { margin: 0; padding: 0 4px; }
.py .py-sline { display: flex; justify-content: space-between; gap: 12px; width: 100%; padding: 12px 22px; border: 0; border-top: 1px solid var(--py-line2); background: none; font-size: 15px; text-align: left; }
.py button.py-sline { cursor: pointer; }
.py button.py-sline:hover { background: #FAFAF7; }
.py .py-sline:first-of-type { border-top: 0; }

/* avatars */
.py-av { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; color: #fff; font-size: 12px; font-weight: 700; background: #5E6A78; }
.py-av.is-lg { width: 46px; height: 46px; font-size: 17px; } .py-av.is-xl { width: 54px; height: 54px; font-size: 20px; }
.py-av-1 { background: #7A6450; } .py-av-2 { background: #586E5A; } .py-av-3 { background: #7A5C6E; } .py-av-4 { background: #4F6A86; } .py-av-5 { background: #6E6A5A; }
.py .py-who { display: inline-flex; align-items: center; gap: 11px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.py .py-plain { padding: 0; border: 0; background: none; text-align: left; cursor: pointer; font-size: 15px; }

/* tables */
.py .py-tr { display: grid; align-items: center; gap: 12px; width: 100%; min-height: 60px; padding: 0 22px 0 19px; border: 0; border-top: 1px solid var(--py-line2); border-left: 3px solid transparent;
  background: none; text-align: left; font-size: 15px; }
.py button.py-tr { cursor: pointer; }
.py button.py-tr:hover { background: #FAFAF7; }
.py .py-tr.is-flag { border-left-color: var(--py-red); }
.py .py-th { min-height: 34px; border-top: 0; color: var(--py-mute); font-size: 13.5px; font-weight: 500; }
.py .py-num { text-align: right; font-variant-numeric: tabular-nums; }
.py .py-tr-home { grid-template-columns: 1.3fr .45fr .9fr 2.2fr .9fr; }
.py .py-tr-lines { grid-template-columns: 1.25fr .45fr .8fr .85fr .95fr 1.6fr .8fr 1.05fr; }
.py .py-tr-loans { grid-template-columns: 1.2fr .8fr .9fr 1.6fr .9fr .4fr; min-height: 76px; }
.py .py-tr-loans.is-done { color: var(--py-mute); }
.py .py-facts .is-red { font-weight: 600; }
.py .py-adj { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.py .py-li { white-space: nowrap; }
.py .py-left { display: flex; flex-direction: column; gap: 6px; }
.py .py-prog { display: block; position: relative; height: 4px; width: 100%; max-width: 230px; border-radius: 2px; background: #EAEAE3; overflow: hidden; }
.py .py-prog > i { position: absolute; left: 0; top: 0; bottom: 0; background: #111; border-radius: 2px; }
.py .py-open { font-weight: 600; text-align: right; }

/* the run: steps, total, foot */
.py .py-run { padding: 22px 26px 0; border-left: 4px solid transparent; }
.py .py-run.is-you { border-left-color: var(--py-red); }
.py .py-steps-row { display: flex; gap: 24px; align-items: flex-start; }
.py .py-steps { flex: 1; display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; padding: 0; list-style: none; }
.py .py-step { position: relative; display: flex; flex-direction: column; gap: 3px; padding-top: 44px; font-size: 13.5px; color: var(--py-mute); }
.py .py-step::before { content: ""; position: absolute; top: 15px; left: 32px; right: 0; height: 2px; background: #E2E2DA; }
.py .py-step:last-child::before { display: none; }
.py .py-step.is-done::before { background: #111; }
.py .py-dotx { position: absolute; top: 0; left: 0; display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; border: 2px solid #D6D6CE; background: #fff; color: #fff; box-sizing: border-box; }
.py .py-step.is-done .py-dotx { background: #111; border-color: #111; }
.py .py-step.is-now .py-dotx { border-color: #111; box-shadow: inset 0 0 0 5px #fff, inset 0 0 0 12px #111; }
.py .py-step.is-now.is-red .py-dotx { border-color: var(--py-red); box-shadow: inset 0 0 0 5px #fff, inset 0 0 0 12px var(--py-red); }
.py .py-step b { color: #111; font-size: 15px; font-weight: 600; }
.py .py-step em { font-style: normal; font-weight: 600; color: #111; }
.py .py-step em.is-red { color: var(--py-red); }
.py .py-total { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; padding-left: 24px; border-left: 1px solid var(--py-line2); min-width: 170px; }
.py .py-total > span { color: var(--py-mute); font-size: 13.5px; }
.py .py-total b { font-size: 22px; }
.py .py-runfoot { display: flex; align-items: center; gap: 12px; margin-top: 22px; padding: 18px 0 20px; border-top: 1px solid var(--py-line2); }
.py .py-runfoot p { flex: 1; margin: 0; color: var(--py-mute); font-size: 14.5px; }

/* a failed payment */
.py .py-fail { display: flex; align-items: center; gap: 14px; padding: 18px 22px; border-left: 4px solid var(--py-red); }
.py .py-fail .py-who { white-space: normal; }
.py .py-fail .py-who > span { display: flex; flex-direction: column; gap: 3px; font-size: 15px; }

/* timesheets */
.py .py-ts { overflow-x: auto; }
.py .py-grid { display: grid; align-items: center; padding: 0 18px 8px 0; }
.py .py-gh { padding: 6px 4px 10px; color: var(--py-mute); font-size: 13px; font-weight: 500; line-height: 1.25; }
.py .py-gh:first-child { padding-left: 22px; }
.py .py-gcell { display: flex; align-items: center; justify-content: flex-end; height: 56px; padding: 0 4px; border-top: 1px solid var(--py-line2); font-size: 15px; font-variant-numeric: tabular-nums; }
.py .py-gcell.py-who { justify-content: flex-start; padding-left: 19px; border-left: 3px solid transparent; }
.py .py-gcell.py-who.is-flag { border-left-color: var(--py-red); }
.py .py-gcell.is-red { color: var(--py-red); font-weight: 650; }
.py .py-cellbtn { border: 0; border-top: 1px solid var(--py-line2); background: none; cursor: pointer; }
.py .py-cellbtn:hover { background: #FAFAF7; }
.py .py-fixes .py-ch > span, .py .py-asks .py-ch > span { font-size: 14px; }
.py .py-fix { padding: 14px 22px 16px; border-top: 1px solid var(--py-line2); border-left: 4px solid var(--py-red); }
.py .py-fix b { font-size: 15.5px; }
.py .py-fix p { margin: 4px 0 12px; font-size: 14.5px; }
.py .py-ask { display: flex; gap: 12px; padding: 14px 22px 16px; border-top: 1px solid var(--py-line2); }
.py .py-ask p { margin: 0 0 4px; font-size: 14.5px; line-height: 1.45; }
.py .py-ask .py-note { color: #3D3D39; }
.py .py-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 8px; }

/* leave */
.py .py-need { display: flex; align-items: center; gap: 16px; padding: 18px 22px; border-left: 4px solid var(--py-red); }
.py .py-needm { flex: 1; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.py .py-needm b { font-size: 16.5px; }
.py .py-wk { display: grid; grid-template-columns: 190px repeat(6, 1fr); align-items: center; }
.py .py-wkh { padding: 4px 12px 10px; border-left: 1px solid var(--py-line2); color: var(--py-mute); font-size: 13.5px; font-weight: 500; }
.py .py-wkrow { grid-template-columns: 190px 1fr; min-height: 64px; border-top: 1px solid var(--py-line2); }
.py .py-wkrow .py-who { padding-left: 22px; }
.py .py-wkbars { position: relative; height: 64px; }
.py .py-wkline { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--py-line2); }
.py .py-bar { position: absolute; top: 15px; height: 34px; padding: 0 10px; min-width: max-content; box-sizing: border-box; border: 0; border-radius: 8px; background: var(--py-col); font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: left; cursor: pointer; }
.py .py-bar.is-pending { background: #fff; border: 1.5px dashed #A9A9A1; }
.py .py-dline { display: flex; justify-content: space-between; width: 100%; padding: 14px 22px; border: 0; border-top: 1px solid var(--py-line2); background: none; font-size: 15px; text-align: left; cursor: pointer; }
.py .py-dline:hover { background: #FAFAF7; }
.py .py-ld { padding: 0 2px; }
.py .py-ldh { display: flex; align-items: center; gap: 14px; margin: 8px 0 18px; }
.py .py-ldh h2 { margin: 0; font-size: 21px; font-weight: 700; }
.py .py-ldh p { margin: 2px 0 0; }
.py .py-kv { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 13px 0; border-top: 1px solid var(--py-line2); font-size: 14.5px; }
.py .py-kv span { color: var(--py-mute); font-weight: 500; }
.py .py-kv b { font-weight: 500; }
.py .py-hist { margin: 0; padding: 0; list-style: none; }
.py .py-hist li { display: grid; grid-template-columns: 14px 1fr auto; gap: 12px; padding: 0 0 14px; font-size: 14.5px; }
.py .py-hist li > i { width: 9px; height: 9px; margin-top: 5px; border-radius: 50%; background: #BDBDB5; }
.py .py-hist li.is-now > i { background: #111; }
.py .py-hist li div { display: flex; flex-direction: column; gap: 2px; }
.py .py-ldfoot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--py-line2); }
.py .py-ldfoot p { width: 100%; margin: 4px 0 0; }

/* dialogs and forms */
.py-scrim { position: fixed; inset: 0; z-index: var(--z-sheet, 1300); display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(20, 20, 18, .32); }
.py-dlg { width: 100%; max-width: 520px; max-height: calc(100vh - 32px); overflow: auto; box-sizing: border-box; padding: 26px 28px 24px; border-radius: 18px; background: #fff; box-shadow: 0 20px 60px rgba(0,0,0,.18); }
.py-dlg.is-member { max-width: 560px; }
.py-dh { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.py-dh h2 { margin: 0; font-size: 23px; font-weight: 700; letter-spacing: -0.01em; }
.py-dh p { margin: 4px 0 0; font-size: 14.5px; }
.py-scrim .py-x { display: inline-flex; padding: 4px; border: 0; background: none; color: #555; cursor: pointer; }
.py-recs { border-radius: 12px; background: #F4F4EF; padding: 2px 18px; margin-bottom: 16px; }
.py-rec { display: flex; justify-content: space-between; padding: 12px 0; border-top: 1px solid #E5E5DE; font-size: 15px; }
.py-rec:first-child { border-top: 0; }
.py-rec b { font-weight: 650; }
.py-askline { margin: 0 0 14px; padding: 10px 14px; border-radius: 10px; background: #F7F2E1; font-size: 14px; color: #4D4A3F; }
.py-f { display: flex; flex-direction: column; gap: 7px; margin: 0 0 14px; }
.py-f > span { font-size: 14px; font-weight: 600; }
.py-scrim .py-in { width: 100%; height: 44px; padding: 0 14px; border: 1px solid #D9D9D2; border-radius: 10px; background: #fff; font-family: inherit; font-size: 16px; color: #111; box-sizing: border-box; }
.py-scrim textarea.py-in { height: auto; padding: 10px 14px; line-height: 1.4; resize: vertical; }
.py-scrim .py-in.is-time { max-width: 190px; }
.py-scrim .py-in.is-mid { max-width: 230px; }
.py-scrim .py-in:focus { outline: 2px solid #111; outline-offset: 1px; }
.py-scrim .py-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.py-scrim .py-row .py-f { flex: 1; min-width: 140px; }
.py-scrim .py-row.is-dates .py-in { flex: 1; min-width: 140px; }
.py-scrim .py-days { font-size: 15px; }
.py-scrim .py-seg { margin-top: 2px; align-self: flex-start; }
.py-scrim .py-seg.is-small { margin-bottom: 16px; }
.py-evid { margin: -4px 0 14px; color: var(--py-mute); font-size: 14px; line-height: 1.45; }
.py-fact { margin: -6px 0 14px; }
.py-dsum { padding-top: 14px; border-top: 1px solid var(--py-line2); }
.py-dsum p { margin: 0; }
.py-dfoot { display: flex; justify-content: flex-end; gap: 12px; margin-top: 20px; }
.py-dfoot .py-btn { height: 46px; padding: 0 22px; font-size: 16px; }
.py-file { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 12px; border: 1px solid #D9D9D2; border-radius: 10px; }
.py-file b { flex: 1; font-weight: 500; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.py-drop { display: flex; align-items: center; justify-content: center; height: 46px; border: 1.5px dashed #C9C9C1; border-radius: 10px; color: #3D3D39; font-size: 14.5px; font-weight: 600; cursor: pointer; }
.py-calm { margin: 4px 0 0; padding: 12px 16px; border-radius: 12px; background: #EFEFE9; font-size: 15px; }
.md-phead .py-askfix { border-top: 0; margin-top: 6px; padding-top: 0; }
.py-askfix { margin-top: 14px; padding-top: 12px; border-top: 1px solid #EFEFE9; }
.py-askfix p { margin: 0 0 6px; color: #73736D; font-size: 13.5px; }

@container (max-width: 1040px) { .py-cols { grid-template-columns: minmax(0, 1fr) !important; } }
@media (max-width: 560px) {
  .py-scrim { align-items: flex-end; padding: 0; }
  .py-dlg { max-width: none; border-radius: 18px 18px 0 0; padding: 22px 18px 26px; max-height: 92vh; }
  .py-dh h2 { font-size: 21px; }
  .py-scrim .py-seg { display: flex; flex-wrap: wrap; }
  .py-scrim .py-seg-o { flex: 1 1 auto; padding: 0 10px; }
  .py-dfoot .py-btn { flex: 1; }
}

/* ---- Rethink 18: Pay and Leave on the iPhone app (pay.js phoneTakes, inside #ios-payroll and
   #ios-leave). One column, 16px gutters, the page title and back control as on Today and the
   Business pages, stacked rows instead of tables, 44px targets. The timesheet's pay period is a
   row of day cells that scrolls sideways inside its own strip, never the page. ---------------- */
.py.py-phone { padding: 4px 16px 28px; min-width: 0; max-width: 100%; box-sizing: border-box; overflow-x: hidden; }
.py-phone .py-phead { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 4px 0 12px; }
.py-phone .py-ptitle { margin: 0; font-size: 34px; font-weight: 750; letter-spacing: -.02em; line-height: 1.15; }
.py-phone .py-pnav + .py-ptitle { margin: 2px 0 8px; font-size: 30px; }
.py-phone .py-phead .py-link, .py-phone .py-pnav .py-link { min-height: 44px; padding: 0 2px; font-size: 15px; }
.py-phone .py-pnav { display: flex; align-items: center; margin: 0 0 2px; }
.py-phone .py-pback, .py-pbar .py-pback { display: inline-flex; align-items: center; gap: 2px; min-height: 44px; margin-left: -6px; padding: 0 4px; border: 0; background: none; font-size: 17px; font-weight: 600; color: #111; cursor: pointer; }
.py.py-pbar { padding: 6px 16px 0; }
.py-phone .py-pseg { display: flex; width: 100%; padding: 3px; border-radius: 11px; background: var(--py-col); box-sizing: border-box; margin: 0 0 16px; }
.py-phone .py-pseg .py-seg-o { flex: 1 1 0; min-width: 0; height: 38px; padding: 0 6px; font-size: 15px; }
.py-phone .py-big { font-size: 23px; line-height: 1.25; letter-spacing: -.01em; }
.py-phone .py-sub { margin: 6px 0 16px; font-size: 15px; line-height: 1.4; }
.py-phone .py-card { border-radius: 18px; margin: 0 0 14px; }
.py-phone .py-ch { padding: 14px 16px 8px; flex-wrap: wrap; }
.py-phone .py-ch h2 { font-size: 17px; }
.py-phone .py-ppad { padding: 16px; }
.py-phone .py-pempty { margin: 0; padding: 4px 16px 14px; font-size: 14.5px; line-height: 1.45; color: var(--py-mute); }
.py-phone .py-pfoot { margin: 2px 2px 14px; font-size: 14px; line-height: 1.45; color: var(--py-mute); }
.py-phone .py-show { min-height: 44px; font-size: 14.5px; }
.py-phone .py-btn { min-height: 44px; height: auto; padding: 8px 16px; font-size: 15.5px; white-space: normal; text-align: center; }
.py-phone .py-btn.is-sm { min-height: 44px; padding: 6px 16px; }
.py-phone .py-btn.is-wide { width: 100%; }
.py-phone .py-pacts { display: flex; gap: 10px; flex-wrap: wrap; padding: 0 16px 16px; }
.py-phone .py-pacts .py-btn { flex: 1 1 140px; }
.py-phone .py-pacts.is-foot { padding-top: 6px; }
/* the run */
.py-phone .py-prun { padding: 16px 0 0; border-left: 4px solid transparent; }
.py-phone .py-prun.is-you { border-left-color: var(--py-red); }
.py-phone .py-vsteps { margin: 0; padding: 0 16px; list-style: none; }
.py-phone .py-vstep { position: relative; display: flex; gap: 12px; padding: 0 0 16px; font-size: 14.5px; color: var(--py-mute); }
.py-phone .py-vstep::before { content: ""; position: absolute; left: 13px; top: 28px; bottom: 0; width: 2px; background: #E2E2DA; }
.py-phone .py-vstep:last-child::before { display: none; }
.py-phone .py-vstep.is-done::before { background: #111; }
.py-phone .py-vstep .py-dotx { position: static; flex: none; width: 28px; height: 28px; }
.py-phone .py-vstep > span { display: flex; flex-direction: column; gap: 2px; padding-top: 3px; min-width: 0; }
.py-phone .py-vstep b { color: #111; font-size: 15.5px; font-weight: 600; }
.py-phone .py-vstep em { font-style: normal; font-weight: 600; color: #111; }
.py-phone .py-vstep em.is-red { color: var(--py-red); }
.py-phone .py-ptotal { display: flex; align-items: center; gap: 12px; margin: 0 16px; padding: 10px 0; border-top: 1px solid var(--py-line2); }
.py-phone .py-ptotal > span { color: var(--py-mute); font-size: 14.5px; }
.py-phone .py-ptotal b { flex: 1; font-size: 20px; text-align: right; }
.py-phone .py-pnote { margin: 0 16px 12px; font-size: 14px; line-height: 1.45; color: var(--py-mute); }
/* rows */
.py-phone .py-prow { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 60px; padding: 10px 16px 10px 13px; border: 0; border-top: 1px solid var(--py-line2);
  border-left: 3px solid transparent; background: none; text-align: left; font-size: 15px; box-sizing: border-box; cursor: pointer; }
.py-phone .py-ch + .py-prow { border-top: 0; }
.py-phone .py-prow.is-flag { border-left-color: var(--py-red); }
.py-phone .py-prow.is-done { color: var(--py-mute); }
.py-phone .py-prow.is-flat { cursor: default; min-height: 52px; }
.py-phone .py-prow > svg { flex: none; color: var(--py-mute); }
.py-phone .py-pmain { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.py-phone .py-pmain > b { font-size: 16px; font-weight: 600; }
.py-phone .py-pmain > span { font-size: 14px; line-height: 1.35; color: var(--py-mute); overflow-wrap: anywhere; }
.py-phone .py-pmain .py-pfacts { color: #3D3D39; }
.py-phone .py-pfacts .is-red { font-weight: 600; }
.py-phone .py-pamt { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; font-weight: 650; font-variant-numeric: tabular-nums; }
.py-phone .py-pamt small { font-size: 12.5px; font-weight: 500; color: var(--py-mute); }
.py-phone .py-pmain .py-prog { margin-top: 6px; max-width: none; }
.py-phone .py-pbal { flex: none; font-size: 17px; font-variant-numeric: tabular-nums; }
/* a run's lines */
.py-phone .py-pfail { border-left: 4px solid var(--py-red); }
.py-phone .py-pfailh { display: flex; gap: 12px; padding: 16px; }
.py-phone .py-pfailh > span { display: flex; flex-direction: column; gap: 3px; font-size: 15px; min-width: 0; }
.py-phone .py-pline { display: block; width: 100%; padding: 12px 16px 14px 13px; border: 0; border-top: 1px solid var(--py-line2); border-left: 3px solid transparent; background: none; text-align: left; font-size: 15px; box-sizing: border-box; cursor: pointer; }
.py-phone .py-ch + .py-pline { border-top: 0; }
.py-phone .py-pline.is-flag { border-left-color: var(--py-red); }
.py-phone .py-plh { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.py-phone .py-plh b { font-size: 16px; font-weight: 600; }
.py-phone .py-plst { font-size: 14px; font-weight: 600; color: var(--py-mute); }
.py-phone .py-plst.is-red { color: var(--py-red); }
.py-phone .py-lfs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; }
.py-phone .py-lf { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.py-phone .py-lf > span { font-size: 12.5px; color: var(--py-mute); }
.py-phone .py-lf > b { font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
/* timesheets */
.py-phone .py-pfix { display: flex; align-items: center; gap: 12px; padding: 10px 16px 12px 13px; border-top: 1px solid var(--py-line2); border-left: 3px solid var(--py-red); }
.py-phone .py-ch + .py-pfix { border-top: 0; }
.py-phone .py-pask { display: flex; gap: 12px; padding: 12px 16px 0; border-top: 1px solid var(--py-line2); }
.py-phone .py-pask > div { flex: 1; min-width: 0; }
.py-phone .py-pask p { margin: 0 0 6px; font-size: 14.5px; line-height: 1.45; }
.py-phone .py-pask .py-pacts { padding: 4px 0 12px; }
.py-phone .py-pts { padding: 10px 0 12px; border-top: 1px solid var(--py-line2); border-left: 3px solid transparent; }
.py-phone .py-ch + .py-pts { border-top: 0; }
.py-phone .py-pts.is-flag { border-left-color: var(--py-red); }
.py-phone .py-ptsh { display: flex; align-items: center; gap: 10px; padding: 0 16px 8px 13px; }
.py-phone .py-ptsh b { font-size: 16px; font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.py-phone .py-ptsn { font-size: 15px; font-weight: 650; font-variant-numeric: tabular-nums; }
.py-phone .py-ptsst { min-width: 44px; text-align: right; font-size: 14px; font-weight: 600; }
.py-phone .py-pdays { display: flex; gap: 6px; overflow-x: auto; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity; padding: 0 16px 2px 13px; scrollbar-width: none; }
.py-phone .py-pdays::-webkit-scrollbar { display: none; }
.py-phone .py-pday { flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; width: 50px; min-height: 52px; padding: 4px 0; border: 1px solid var(--py-line); border-radius: 10px;
  background: #fff; font-variant-numeric: tabular-nums; scroll-snap-align: start; box-sizing: border-box; }
.py-phone button.py-pday { cursor: pointer; }
.py-phone .py-pday .py-pdw { font-size: 11.5px; color: var(--py-mute); white-space: nowrap; }
.py-phone .py-pday b { font-size: 15px; font-weight: 650; }
.py-phone .py-pday.is-red { border-color: var(--py-red); color: var(--py-red); background: #FDF1EF; }
.py-phone .py-pday.is-today { border-color: #111; border-width: 2px; }
.py-phone .py-pday.is-future { background: #F6F6F2; border-style: dashed; color: #A5A59E; }
.py-phone .py-pday.is-leave b { font-size: 12.5px; color: var(--py-mute); }
.py-phone .py-warn { margin: 8px 16px 12px; }
/* leave */
.py-phone .py-pneed { border-left: 4px solid var(--py-red); }
.py-phone .py-pneedm { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 16px 12px; border: 0; background: none; text-align: left; cursor: pointer; box-sizing: border-box; }
.py-phone .py-pneedm > svg { flex: none; color: var(--py-mute); }
.py-phone .py-paway { display: flex; gap: 12px; padding: 10px 16px; border-top: 1px solid var(--py-line2); }
.py-phone .py-ch + .py-paway { border-top: 0; }
.py-phone .py-pchips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.py-phone .py-pchip { min-height: 36px; padding: 0 12px; border: 0; border-radius: 9px; background: var(--py-col); font-size: 14px; font-weight: 600; color: #111; cursor: pointer; }
.py-phone .py-pchip.is-pending { background: #fff; border: 1.5px dashed #A9A9A1; }

/* the phone's sheets (a run's line, a leave): the bottom sheet the dialogs already become */
.py-scrim .py-dlg.is-psheet { padding-bottom: calc(22px + env(safe-area-inset-bottom)); }
.py-scrim .py-sh { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 4px 0 8px; font-size: 15px; }
.py-scrim .py-show { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0; border: 0; background: none; color: var(--py-mute); font-size: 14.5px; font-weight: 500; cursor: pointer; }
.py-scrim .py-mask { letter-spacing: .06em; font-weight: 700; }
.py-scrim .py-rec b { display: inline-flex; align-items: center; gap: 6px; text-align: right; }
.py-scrim .py-x.is-sm { padding: 10px; margin: -10px -10px -10px 0; }
.py-scrim .py-btn.is-wide { width: 100%; margin: 0 0 10px; min-height: 46px; height: auto; white-space: normal; }
.py-scrim .py-btn.is-soft { background: #EBEBE4; border-color: transparent; }
.py-scrim .py-btn.is-danger { background: #FBE9E7; border-color: transparent; color: var(--py-red); }
.py-scrim .py-dfoot.is-stack { flex-direction: column; align-items: stretch; }
.py-scrim .py-dfoot .py-btn { min-height: 46px; height: auto; }
.py-scrim .py-bank { margin: -2px 0 12px; padding: 4px 14px; border-radius: 12px; background: #F4F4EF; font-size: 14.5px; }
.py-scrim .py-askline.is-red { background: #FDF1EF; color: var(--py-red); }
.py-scrim .py-ldh { display: flex; align-items: center; gap: 12px; min-width: 0; }
.py-scrim .py-ldh h2 { font-size: 20px; }
.py-scrim .py-hist { margin: 0 0 6px; padding: 0; list-style: none; }
.py-scrim .py-hist li { display: grid; grid-template-columns: 14px 1fr auto; gap: 12px; padding: 0 0 12px; font-size: 14.5px; }
.py-scrim .py-hist li > i { width: 9px; height: 9px; margin-top: 5px; border-radius: 50%; background: #BDBDB5; }
.py-scrim .py-hist li.is-now > i { background: #111; }
.py-scrim .py-hist li div { display: flex; flex-direction: column; gap: 2px; }
.py-scrim .py-link2 { min-height: 44px; }
.py-phone .py-vstep .py-dotx { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; border: 2px solid #D6D6CE; background: #fff; color: #fff; box-sizing: border-box; }
.py-phone .py-vstep.is-done .py-dotx { background: #111; border-color: #111; }
.py-phone .py-vstep.is-now .py-dotx { border-color: #111; box-shadow: inset 0 0 0 5px #fff, inset 0 0 0 12px #111; }
.py-phone .py-vstep.is-now.is-red .py-dotx { border-color: var(--py-red); box-shadow: inset 0 0 0 5px #fff, inset 0 0 0 12px var(--py-red); }
.py-phone .py-ch + .py-pask { border-top: 0; padding-top: 4px; }
.py-phone .py-pask .py-pacts .py-btn { flex: 1 1 100px; }
