/* v50 Program Admin phone big-button UI (tablet/desktop untouched). */
@media (max-width: 760px) {
  body.mh-admin .tabbar { display: block; height: calc(72px + env(safe-area-inset-bottom)); padding: 4px 0 env(safe-area-inset-bottom); }
  .atb { display: flex; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; height: 68px; -webkit-overflow-scrolling: touch; }
  .atb::-webkit-scrollbar { display: none; }
  /* Oct 16: Fleet Tech = 4 evenly spaced fixed tabs, no scrolling, no edge fades. */
  .atb.atb4 { overflow-x: visible; -webkit-mask-image: none !important; mask-image: none !important; } .atb.atb4 a { flex: 1 1 0; min-width: 0; }
  .atb.fr { -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
  .atb.fl { -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%); mask-image: linear-gradient(90deg, transparent, #000 15%); }
  .atb.fl.fr { -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
  .atb a { flex: none; min-width: 76px; min-height: 60px; scroll-snap-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 12.5px; font-weight: 700; color: var(--ink-3); text-decoration: none; position: relative; padding: 0 6px; }
  .atb a svg { width: 26px; height: 26px; }
  .atb a.on { color: var(--mblue, #1d5fd1); } .atb a.on::after { content: ''; position: absolute; top: 0; left: 18px; right: 18px; height: 3px; border-radius: 3px; background: currentColor; }
  :root[data-theme="dark"] .atb a.on { color: #7fb0ff; }
  .atb .tb-badge { position: absolute; top: 4px; right: 12px; min-width: 20px; height: 20px; border-radius: 10px; background: #B91C1C; color: #fff; font-size: 11.5px; display: grid; place-items: center; padding: 0 5px; }
  body.mh-admin .scroller { padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
}
/* Admin Home tiles */
.ah .mh-grid.ag { grid-template-columns: 1fr 1fr; }
.mh-tile.at { min-height: 112px; gap: 4px; }
.mh-tile.at .at-n { font-size: 38px; line-height: 1; font-weight: 900; }
.mh-tile.at small { font-size: 13px; font-weight: 600; opacity: .9; }
.mh-tile.at.t-search { background: #0F766E !important; } .mh-tile.at.t-alert { background: #B91C1C !important; } .mh-tile.at.t-req { background: #6D28D9 !important; }
.mh-tile.at.t-due { background: #B45309 !important; } .mh-tile.at.t-out { background: #1D4ED8 !important; } .mh-tile.at.t-rep { background: #334155 !important; }
@media (max-height: 800px) { .mh-tile.at { min-height: 96px; } .ah .mh-scan { min-height: 96px; } }
/* Lists */
.ap .mh-h h1 { flex: 1; } .ap-n { min-width: 32px; height: 32px; border-radius: 16px; background: #B91C1C; color: #fff; display: grid; place-items: center; font-weight: 800; padding: 0 8px; }
.ap-sticky { position: sticky; top: var(--sat, 0px); z-index: 5; background: var(--bg); padding: 8px 0 10px; }
.ap-chips { display: flex; gap: 8px; overflow-x: auto; margin-top: 10px; scrollbar-width: none; }
.ap-chips a { flex: none; min-height: 44px; padding: 0 16px; border-radius: 22px; display: grid; place-items: center; background: var(--surface); border: 1.5px solid var(--border); color: var(--ink); font-weight: 700; text-decoration: none; font-size: 15px; }
.ap-chips a.on { background: #0b1f3a; color: #fff; border-color: #0b1f3a; } :root[data-theme="dark"] .ap-chips a.on { background: #e6eefb; color: #0b1f3a; }
.ap-list { display: flex; flex-direction: column; gap: 10px; }
.ac { display: flex; align-items: center; gap: 12px; min-height: 84px; padding: 10px 12px; border-radius: 16px; background: var(--surface); border: 1.5px solid var(--border); border-left: 8px solid #15803d; text-decoration: none; color: var(--ink); }
.ac.blue { border-left-color: #1D4ED8; } .ac.red { border-left-color: #B91C1C; }
.ac-ph { width: 96px; height: 54px; border-radius: 10px; flex: none; display: grid; place-items: center; background: var(--surface-2); color: var(--ink-3); overflow: hidden; } .ac-ph svg { width: 28px; height: 28px; }
.ac-t { display: flex; flex-direction: column; min-width: 0; } .ac-t b { font-size: 19px; } .ac-t small { color: var(--ink-3); font-size: 14px; }
.ac-d { margin-top: 4px; align-self: flex-start; font-size: 12.5px; font-weight: 800; padding: 2px 8px; border-radius: 8px; } .ac-d.r { background: #B91C1C; color: #fff; } .ac-d.a { background: #B45309; color: #fff; }
.aa { border-radius: 16px; background: var(--surface); border: 1.5px solid var(--border); border-left: 8px solid #B45309; padding: 12px; } .aa.red { border-left-color: #B91C1C; }
.aa-t { display: flex; gap: 12px; text-decoration: none; color: var(--ink); } .aa-i svg { width: 28px; height: 28px; color: #B91C1C; } .aa.amber .aa-i svg { color: #B45309; }
.aa-t > span:last-child { display: flex; flex-direction: column; gap: 2px; } .aa-t small { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); }
.aa-t b { font-size: 17px; } .aa-t em { font-style: normal; font-size: 13px; color: var(--ink-3); }
.aa-a, .au-a { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.ap-btn { flex: 1; min-height: 48px; border-radius: 14px; border: 1.5px solid var(--border-strong, #cbd5e1); background: var(--surface); color: var(--ink); font: inherit; font-weight: 700; font-size: 15px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; text-decoration: none; padding: 0 12px; }
.ap-btn svg { width: 18px; height: 18px; } .ap-btn.pri { background: #1d5fd1; border-color: #1d5fd1; color: #fff; } .ap-btn.red { color: #B91C1C; border-color: #B91C1C; }
.au { border-radius: 16px; background: var(--surface); border: 1.5px solid var(--border); padding: 12px; margin-bottom: 10px; } .au.req { border-left: 8px solid #6D28D9; } .au.off { opacity: .65; }
.au-h { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; } .au-h b { font-size: 17px; display: block; } .au-h span:not(.mh-av) { display: block; font-size: 13.5px; color: var(--ink-3); word-break: break-all; }
.au select.mh-in { min-height: 52px; }
.mh-btn.pri { background: #1d5fd1; color: #fff; border-color: #1d5fd1; margin-bottom: 14px; }
.ap-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ap-big { min-height: 64px; border-radius: 16px; border: 1.5px solid var(--border-strong, #cbd5e1); background: var(--surface); color: var(--ink); font: inherit; font-weight: 750; font-size: 15.5px; display: flex; align-items: center; gap: 8px; padding: 0 12px; text-align: left; }
.ap-big svg { width: 22px; height: 22px; flex: none; } .ap-big.red { color: #B91C1C; border-color: #B91C1C; }
:root[data-theme="dark"] .ap-big.red, :root[data-theme="dark"] .ap-btn.red { color: #fca5a5; border-color: #f87171; }
.ap-sticky .mh-in { font-size: 18px; }
/* v51: Schedules / Reports / Settings (and other topbar pages) on staff phone: page header with back arrow, big sections. */
@media (max-width: 760px) {
  body.mh-admin .sp-h { padding: 10px 16px 4px; }
  body.mh-admin .sp-h .m9-t span { font-size: 13.5px; }
  body.mh-admin .sp-acts { position: sticky; bottom: 0; z-index: 6; display: flex; gap: 10px; padding: 10px 16px; background: var(--bg); border-top: 1px solid var(--border); order: 99; }
  body.mh-admin .sp-acts .btn { flex: 1; min-height: 56px; font-size: 17px; border-radius: 16px; justify-content: center; }
  body.mh-admin .content .card { border-radius: 18px; }
  body.mh-admin .content .card-h h3 { font-size: 19px; }
  body.mh-admin .content .btn { min-height: 48px; border-radius: 14px; font-size: 15.5px; }
  body.mh-admin .content .btn.primary { min-height: 56px; font-size: 17px; }
  body.mh-admin .content input:not([type=checkbox]):not([type=radio]), body.mh-admin .content select { min-height: 48px; font-size: 16px; border-radius: 12px; }
  body.mh-admin .content .set-row { padding: 14px 4px; gap: 10px; flex-wrap: wrap; }
  body.mh-admin .content .set-row .t b { font-size: 16.5px; }
  body.mh-admin .content .card-f { position: sticky; bottom: 0; background: var(--surface); z-index: 2; }
  body.mh-admin .content .card-f .btn { width: 100%; }
}
.mh-tile.at { min-height: 124px; padding: 10px 8px; } .mh-tile.at .at-n { font-size: 32px; } .mh-tile.at span { line-height: 1.15; } .mh-tile.at small { line-height: 1.2; }
@media (max-width: 760px) { body.mh-admin .crumb { display: none; } }
/* v53: 5 home tiles -> last one full width; phone Reports note. */
.ag .mh-tile.at:last-child:nth-child(odd) { grid-column: 1 / -1; min-height: 96px; }
.rp-note { margin-top: 24px; border-radius: 20px; background: var(--surface); border: 1.5px solid var(--border); padding: 28px 20px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; }
.rp-note > svg { width: 56px; height: 56px; color: var(--ink-3); } .rp-note b { font-size: 21px; } .rp-note span { color: var(--ink-3); font-size: 15.5px; }
.rp-note .mh-btn { margin-top: 12px; text-decoration: none; justify-content: center; }
/* Oct 16: phone "Needs service" list (#/due). */
.ac.amber { border-left-color: #B45309; }
.ac-ds { display: flex; flex-wrap: wrap; gap: 6px; } .ap-ct { margin-left: auto; font-size: 15px; font-weight: 800; padding: 3px 12px; border-radius: 999px; background: #B91C1C; color: #fff; }
#aneeds { display: flex; flex-direction: column; gap: 10px; } #aneeds .mh-h { margin-bottom: 4px; }
.ah-perm { margin-top: 14px; } .ah-perm .card { border-radius: 16px; }
