/* THE SCREEN LOCK - PHONE PAGES (Daniel, 21 Nov 2026, APPROVE). Loaded LAST on every staff phone page and every client phone page
   (staff sign-in, clock, job photos, my shifts, my record, time off, people, client photos, new starter, client signing). Held by tests/test_screen_lock_1121.py.

   WHAT DANIEL HAS DECIDED, AND WHEN (read before changing anything here):
   - 12 Nov 2026 22:32: one size for the green top on every white staff page, the words centred up and down in the space below the logo.
   - 16 Nov 2026 14:32 (picture "draft 1429"): a logo rule on staff sign-in and job photos only - logo centred, 20px from the top - with the note
     "the pages after sign-in keep their equal-height green tops until he has seen them drawn".
   - 21 Nov 2026 (drawn and APPROVED): every phone page takes the 16 Nov rule; the 12 Nov equal-height tops are retired.

   THE RULE:
   1. The logo: the Cleanie logo, 42px high, centred, 20px from the top, on every screen (size in lock.css, class lk-phone).
   2. The title: 25px under the logo (the Welcome Back distance), one size, centred.
   3. The green band: logo, title and the short line under it, all centred; the band closes 19px below the words (no fixed height).
   4. Everything below the band: left-aligned.
   5. On a laptop the staff phone pages keep a phone-width column (480px) in the middle of the screen.
   The clock keeps its own big time (no title); only its logo follows rule 1. */
/* the 20px goes on the box that holds the logo itself, never on the page around it */
:is(.ppband, .pgpage, .cktop, .clkpage, body > .top > .in):has(> img.lk-phone) { padding-top: max(20px, env(safe-area-inset-top)) !important; }
:is(.pgpage, .clkpage):has(> :is(.ppband, .cktop) > img.lk-phone), body > .top:has(> .in > img.lk-phone) { padding-top: 0 !important; }
img.lk-phone + h1 { margin-top: 25px !important; line-height: 1.02 !important; font-size: 34px !important; }
.pg.wt .ppband, .pg.si .ppband, .pg.jp .ppband { height: auto !important; padding-bottom: 19px !important; }
.pg.wt .ppband > h1 { margin-top: 25px !important; } .pg.wt .ppband > p.sub { margin-bottom: 0 !important; padding-bottom: 0 !important; }
body > .top .in, body > .top h1, body > .top p { text-align: center; margin-left: auto; margin-right: auto; }
@media (min-width: 821px) {
  html, body.app { background: #d9ded8; }
  body.app .screen { left: 50%; right: auto; width: 480px; transform: translateX(-50%); }
}
/* CleanieConnect (approval 7, Daniel APPROVE 2 Dec 2026): the logo is sized by width like Cleantelligence on a phone, and the on-shift band grows 24px to hold it. */
img.lk-phone[src*="cleanieconnect-logo"] { height: auto !important; width: min(calc(100vw - 84px), 360px) !important; }   /* approval 7, 2 Dec 2026: the CleanieConnect logo only */
.clk.on .cktop { height: calc(220px + max(26px, env(safe-area-inset-top))) !important; }

/* Approval 9, 2 Dec 2026: the Monday weekly record and the optional late reason, on the clock screen */
.gcard.wkrec{background:#eef3e6}
.gcard.wkrec.bad{background:#f6d6c8;color:#7a2a14}
.gcard.wkrec.bad .cap,.gcard.wkrec.bad .s{color:#7a2a14}
.gcard.wkrec .trio{margin:10px 0}
.gcard.wkrec .trio div{background:#fff8f4 !important}
.gcard.wkrec .trio b{color:#022011 !important}
.gcard.wkrec.bad .trio b{color:#7a2a14 !important}
.gcard.wkrec .trio span{color:inherit !important;opacity:.85}
.gcard.wkrec .s{display:block}
.gcard.wkrec .seen{margin-top:12px;display:inline-block;padding:10px 22px;border-radius:999px;background:#022011;color:#deef65;font-weight:700;border:0;font:inherit;font-weight:700}
.gcard.why .whys{display:flex;gap:8px;flex-wrap:wrap;justify-content:center;margin-top:12px}
.gcard.why .whys button{padding:10px 16px;border-radius:999px;background:#eef3e6;color:#022011;font:inherit;font-weight:600;border:0;min-height:44px}
.gcard.why .skip{margin-top:10px;background:none;border:0;font:inherit;font-size:13px;color:#5c6b60;min-height:44px}
/* Daniel, 2 Dec 2026: under the clock button the weekly card needs the same breathing room the button has before "Your week" */
#clock + .gcard.wkrec { margin-top: 0; margin-bottom: 40px; }
/* Fix My Time (deploy 72): four kinds in two rows */
.kinds.fixkinds { grid-template-columns: repeat(2, 1fr); } .kinds.fixkinds .chip { min-height: 48px; text-align: center; }
/* Approval 4 (deploy 72): a late change waits at the top until Got It */
.gcard.notice2{background:#deef65 !important;color:#022011 !important;border:0 !important}
.gcard.notice2 .cap,.gcard.notice2 .s{color:#022011 !important}
.gcard.notice2 .seen{margin-top:10px;display:inline-block;padding:10px 22px;border-radius:999px;background:#022011;color:#deef65;border:0;font:inherit;font-weight:700;min-height:44px}
/* My Shifts (deploy 72): Confirm, Can't make it, Fix My Time */
.cform{display:inline}.cbtn{margin-top:8px;padding:8px 16px;border-radius:999px;background:#deef65;color:#022011;font:inherit;font-weight:700;font-size:13px;border:0;min-height:40px}
.sh.upnext .cbtn{background:#022011;color:#deef65}
details.cant{margin-top:8px;font-size:13px}details.cant summary{cursor:pointer;color:inherit;opacity:.8;min-height:32px;display:flex;align-items:center}
details.cant form{display:flex;flex-direction:column;gap:8px;margin-top:6px}.cantbtns{display:flex;gap:8px}.cantbtns button{flex:1;min-height:44px;border-radius:999px;border:0;font:inherit;font-weight:600;background:#f6d6c8;color:#7a2a14}
.box2{border-radius:18px;padding:14px 16px;margin:0 0 12px}.box2 b{display:block}.box2 small{display:block;margin-top:4px;line-height:1.4}.box2.warn{background:#f6d6c8;color:#7a2a14}
a.fixlink{display:block;text-align:center;margin:0 0 14px;font-size:13px;font-weight:600;color:inherit;opacity:.85}
/* Time off balances (deploy 72) */
.bal3{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:18px 0 16px}.bal3 div{background:#eef3e6;border-radius:16px;padding:12px 8px;text-align:center}
.bal3 b{display:block;font-family:Anton,sans-serif;font-size:30px;font-weight:400;color:#022011}.bal3 span{font-size:12px;color:#5c6b60}
