/* Mobile-Attendance "Mobile-App" testing workflow - kept in its own file, separate from the giant
   shared styles.css, so it can grow through later phases without touching unrelated pages. */
.mobile-app-frame{display:flex;justify-content:center;padding:20px 0}
.mobile-app-screen{width:min(430px,100%);border:3px solid #FF5A00;border-radius:28px;background:#fff;box-shadow:0 18px 42px rgba(12,57,59,.1);padding:22px 18px 26px;display:flex;flex-direction:column;gap:16px;box-sizing:border-box;overflow-x:hidden}

/* Phase 1.3/1.4 (2026-09-22) generic offline notice - #mobileAppOfflineBanner in mobile-app.html,
   visibility driven by mobileAppUpdateOfflineBanner() in mobile-attendance-app.js. Plain, static markup
   outside .mobile-app-screen (shown above the whole card, same position on every standalone surface). */
.mobile-app-offline-banner{margin:0 0 12px;padding:12px 14px;border-radius:10px;font-size:16px;font-weight:700;line-height:1.45;text-align:center;background:#fff6e0;color:#5c3900;border:1px solid #a15c00;overflow-wrap:anywhere}

/* Phase 1.5 (2026-09-22) - #mobileAppUpdateBanner in mobile-app.html, filled/shown by mobileAppCheckUpdateStatus() in mobile-attendance-app.js. */
.mobile-app-update-banner{margin:0 0 12px;padding:10px 13px;border-radius:10px;font-size:14px;font-weight:700;line-height:1.45;text-align:center;background:#eef2f7;color:#1d3f66;border:1px solid #c7d9ec;overflow-wrap:anywhere}

.mobile-app-steps{display:flex;align-items:center;list-style:none;margin:0 0 4px;padding:0;flex-wrap:wrap;gap:2px}
.mobile-app-steps li{display:flex;align-items:center;gap:6px;font-size:10px;font-weight:800;color:#9db3af;white-space:nowrap}
.mobile-app-steps li span{display:grid;place-items:center;width:20px;height:20px;border-radius:50%;background:#eef2f0;color:#8ca09d;font-size:10px}
.mobile-app-steps li.current{color:var(--teal)}
.mobile-app-steps li.current span{background:var(--teal);color:#fff}
.mobile-app-steps li.done span{background:#78d5c3;color:#083d44}
.mobile-app-step-arrow{color:#c3d2cf;font-size:11px}

.mobile-app-card{border:1px solid var(--line);border-radius:16px;padding:16px;background:#f9faf7;text-align:left}
.mobile-app-card h3{margin:0 0 12px;font-family:Georgia,serif;font-size:16px;font-weight:400;color:var(--ink)}
.mobile-app-card h4{margin:14px 0 10px;font-size:12px;font-weight:800;color:var(--ink)}

.mobile-app-prereq-grid{display:grid;grid-template-columns:1fr;gap:8px;margin-bottom:12px}
.mobile-app-prereq-grid>div{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:6px 10px;font-size:11px;font-weight:700;color:#405955;min-width:0}
/* 2026-09-24: status chips wrap inside the card (a long status such as a GPS/camera failure used to force sideways scrolling on a phone). */
.mobile-app-chip{display:inline-flex;align-items:center;gap:4px;max-width:100%;padding:4px 9px;border-radius:14px;font-size:10px;font-weight:800;white-space:normal;overflow-wrap:anywhere;text-align:left}
.mobile-app-chip.ok{background:#e6f5ee;color:#227a58}
.mobile-app-chip.fail{background:#fff0ed;color:#7a1f19;border:1px solid #b3261e;font-size:14px;font-weight:700;line-height:1.4}
.mobile-app-chip.warn{background:#fff6e0;color:#7a4b00;border:1px solid #c98a00;font-size:14px;font-weight:700;line-height:1.4}
.mobile-app-chip.pending{background:#eef2f0;color:#8ca09d}
.mobile-app-chip.unknown{background:#eef2f7;color:#4a6a8c}
.mobile-app-toggle{display:flex;align-items:center;gap:6px;cursor:pointer;font-size:10px;font-weight:800;color:#4a6a8c}
.mobile-app-toggle input{width:15px;height:15px}
.mobile-app-toggle input:disabled{cursor:not-allowed}
.mobile-app-toggle:has(input:disabled){cursor:not-allowed;opacity:.85}
.mobile-app-gps-override-inline{margin-top:12px;padding:9px 11px;border-radius:8px;background:#fff8e6;color:#8a6a1f;border:1px solid #f0dca0}
.mobile-app-prereq-message{margin:8px 0 0;color:#7a1f19;font-size:16px;font-weight:700;line-height:1.45;min-height:14px;overflow-wrap:anywhere}
/* Device Location blocker (2026-09-28): the only screen while device Location is OFF - large, high-contrast message and a full-width Retry,
   readable on a phone without scrolling. Shared by every surface (mobile-app-real.css keeps this card visible). */
.mobile-app-location-blocked-card .mobile-app-prereq-message{margin:14px 0;padding:16px;border:2px solid #b3261e;border-radius:10px;background:#fff4f2;color:#7a1410;font-size:22px;font-weight:800;line-height:1.35}
.mobile-app-location-blocked-card #mobileAppLocationRetry{display:block;width:100%;min-height:52px;font-size:19px;font-weight:800}
/* Phase 6 (2026-09-21) Save Testing Options - only rendered on editable surfaces (embedded ERP tab,
   /mobile-app); mobileAppSurfaceIsReal() in mobile-attendance-app.js returns '' for this whole area on
   /mobile-app-real, so no rule here ever needs to hide it - the markup itself does not exist there. */
.mobile-app-testing-save{margin-top:4px}

.mobile-app-form{display:flex;flex-direction:column;gap:12px}
.mobile-app-form label{display:flex;flex-direction:column;gap:5px;font-size:10px;font-weight:800;color:#405955;text-transform:uppercase;letter-spacing:.04em}
.mobile-app-form input{height:40px;border:1px solid #c4d5d1;border-radius:8px;padding:0 11px;font-size:13px;color:var(--ink);outline:none}
.mobile-app-form textarea{min-height:72px;border:1px solid #c4d5d1;border-radius:8px;padding:9px 11px;font-size:13px;color:var(--ink);outline:none;font-family:inherit;resize:vertical}
.mobile-app-form input:focus,.mobile-app-form textarea:focus{border-color:var(--teal);box-shadow:0 0 0 3px rgba(13,111,112,.08)}
/* Registered mobile identity: text hierarchy and a subtle accent, without an input border or focus target. */
.mobile-app-registered-identity{display:flex;flex-direction:column;gap:5px;padding:10px 0 10px 12px;border-left:3px solid var(--teal);cursor:default}
.mobile-app-registered-identity-label{font-size:10px;font-weight:800;color:#405955;text-transform:uppercase;letter-spacing:.04em}
.mobile-app-registered-identity-value{font-size:22px;font-weight:700;line-height:1.25;color:var(--ink);overflow-wrap:anywhere}
.mobile-app-registered-identity-hint{font-size:11px;line-height:1.5;color:#405955}

.mobile-app-form-actions{display:flex;flex-wrap:wrap;gap:8px}
.mobile-app-form [hidden]{display:none!important}
.mobile-app-error{margin:0;padding:12px 14px;border:1px solid #b3261e;border-left-width:6px;border-radius:10px;background:#fff0ed;color:#7a1f19;font-size:16px;font-weight:600;line-height:1.5;overflow-wrap:anywhere}

/* ONE shared message component (2026-09-24) - mobileAppMessage() in mobile-attendance-app.js - for important errors, warnings and cautions on every
   surface (registration, OTP, Forgot Password, device registration, Attendance/GPS/face, sync/security). Heading ~19px/700, body ~17px/600, generous
   padding, wraps inside any width (no horizontal scroll), high-contrast text; severity is also shown by the icon shape and the thick left border, not
   by colour alone. The plain .mobile-app-error paragraphs above use the same readable body scale. */
.mobile-app-message{display:flex;align-items:flex-start;gap:12px;margin:0;padding:14px 16px;border:1px solid;border-left-width:6px;border-radius:10px;text-align:left;max-width:100%;box-sizing:border-box;overflow-wrap:anywhere}
.mobile-app-message-icon{flex:none;display:grid;place-items:center;width:28px;height:28px;margin-top:1px;border-radius:50%;color:#fff;font:900 17px/1 Arial,sans-serif}
.mobile-app-message-content{flex:1;min-width:0;display:flex;flex-direction:column;gap:6px}
.mobile-app-message-title{margin:0;font-size:19px;font-weight:700;line-height:1.3}
.mobile-app-message-body{margin:0;font-size:17px;font-weight:600;line-height:1.5}
.mobile-app-message-strong .mobile-app-message-body{font-weight:700} /* 2026-10-01: the bold, icon-free "already completed User Registration" device message */
.mobile-app-message-list{margin:0;padding-left:22px;font-size:17px;font-weight:700;line-height:1.5}
.mobile-app-message-error{background:#fff0ed;border-color:#b3261e;color:#7a1f19}
.mobile-app-message-error .mobile-app-message-icon{background:#b3261e}
.mobile-app-message-warning,.mobile-app-message-caution{background:#fff6e0;border-color:#a15c00;color:#5c3900}
.mobile-app-message-warning .mobile-app-message-icon,.mobile-app-message-caution .mobile-app-message-icon{background:#a15c00;border-radius:6px}
.mobile-app-message-caution{border-width:2px;border-left-width:6px}
.mobile-app-message-info{background:#eef4fa;border-color:#2c5a8c;color:#1d3f66}
.mobile-app-message-info .mobile-app-message-icon{background:#2c5a8c;font-family:Georgia,serif}
.mobile-app-message-success{background:#e8f6ef;border-color:#227a58;color:#15573d}
.mobile-app-message-success .mobile-app-message-icon{background:#227a58}
@media(max-width:360px){.mobile-app-message{padding:12px;gap:10px}.mobile-app-message-title{font-size:18px}.mobile-app-message-body,.mobile-app-message-list{font-size:16px}}

.mobile-app-forgot{width:min(100%,430px);margin:16px auto 0;padding:14px 16px 2px;border-top:1px dashed var(--line);display:flex;flex-direction:column;gap:8px;box-sizing:border-box}
.mobile-app-forgot label{display:flex;flex-direction:column;gap:5px;font-size:10px;font-weight:800;color:#405955;text-transform:uppercase;letter-spacing:.04em}
.mobile-app-forgot input{height:38px;border:1px solid #c4d5d1;border-radius:8px;padding:0 11px;font-size:12px;color:var(--ink);outline:none}
/* Shared recovery controls: guidance first, then the compact display-only status/action row. */
.mobile-app-screen:has(.mobile-app-forgot){width:min(460px,100%)}
.mobile-app-forgot-options{display:flex;align-items:stretch;gap:8px;min-width:0;flex-wrap:nowrap}
.mobile-app-forgot-statuses{display:flex;flex:1;flex-direction:column;gap:4px;min-width:0}
.mobile-app-forgot-status{display:grid;flex:1;place-items:center;padding:6px 8px;border-radius:9px;background:#dfeae6;color:var(--ink);font-size:12px;font-weight:600;line-height:1.4;text-align:center;overflow-wrap:anywhere;box-sizing:border-box;cursor:default}
.mobile-app-forgot-email-instruction{margin:0;color:#000;font-size:16px;font-weight:800;line-height:1.5;overflow-wrap:anywhere}
.mobile-app-forgot-email-instruction strong{color:#0000ff;font-weight:900}
.mobile-app-forgot-code-actions{display:flex;flex-wrap:nowrap;align-items:stretch;gap:8px}
.mobile-app-forgot-code-actions .button{flex:1 1 0;min-width:0;min-height:48px;padding:10px 8px;font-size:14px;line-height:1.25;white-space:normal;overflow-wrap:anywhere}
.mobile-app-forgot-guidance{width:100%;min-width:0;padding:8px 10px;border:1px solid var(--line);border-radius:8px;background:#f6faf9;box-sizing:border-box;overflow-wrap:anywhere}
.mobile-app-forgot-guidance p{margin:0;color:#000;font-size:14px;font-weight:400;line-height:1.45}
.mobile-app-forgot-guidance-password strong{color:#0000ff;font-weight:900}
.mobile-app-forgot-generate.button{flex:0 0 180px;min-width:180px;max-width:180px;min-height:48px;padding:6px 8px;border-radius:8px;background:#dfeae6;color:#0000ff;font-size:12px;font-weight:700;line-height:1.25;white-space:normal;overflow-wrap:anywhere;box-sizing:border-box}
.mobile-app-register .mobile-app-forgot-options{flex-direction:column;align-items:stretch;gap:8px}
.mobile-app-register .mobile-app-forgot-statuses{flex:none}
.mobile-app-register .mobile-app-forgot-generate.button{flex:0 0 auto;min-width:0;max-width:100%;width:100%;min-height:44px;white-space:normal;overflow-wrap:anywhere}
.mobile-app-forgot-generate.button span{display:block}
.mobile-app-forgot-generate.button:disabled{opacity:.65;cursor:not-allowed;box-shadow:none}
.mobile-app-forgot-generate.button:focus-visible{outline:2px solid #0000ff;outline-offset:3px}
.mobile-app-forgot-admin-hint{margin-top:2px}
.mobile-app-forgot-back-actions{justify-content:center;margin-top:10px}
.mobile-app-forgot-back.button{min-width:min(210px,100%);max-width:100%;min-height:52px;padding:12px 30px;border:1px solid #dce5e1;border-radius:12px;background:#fff;color:var(--ink);font-size:18px;font-weight:700;line-height:1.3;box-sizing:border-box;box-shadow:0 2px 7px rgba(16,44,49,.08)}
.mobile-app-hint{margin:0;font-size:11px;color:var(--muted);line-height:1.6}
.mobile-app-hint.error{padding:12px 14px;border:1px solid #b3261e;border-left-width:6px;border-radius:10px;background:#fff0ed;color:#7a1f19;font-size:16px;font-weight:600;line-height:1.5;overflow-wrap:anywhere}
/* Forgot Password verification step: the preview sentence and the server's e-mail/SMS-service + expiry sentence use the guidance blue; the
   six-digit code is bigger and bolder than its sentence and never wraps. Error messages keep their red style (.error). */
.mobile-app-hint.mobile-app-forgot-preview{color:#0000ff;font-size:16px;line-height:1.5;overflow-wrap:anywhere}
.mobile-app-forgot-preview strong{display:inline-block;max-width:100%;font-size:21px;font-weight:800;line-height:1.3;letter-spacing:.06em;white-space:nowrap}
.mobile-app-hint.mobile-app-forgot-code-info:not(.error){color:#0000ff}
.mobile-app-forgot-countdown{margin:0;color:#0000ff;font-size:19px;font-weight:900;line-height:1.35;text-align:center}
.mobile-app-forgot-expired{margin:0;color:#7a1f19;font-size:16px;font-weight:800;line-height:1.4}
/* Development-only reset preview: the server-returned sentence stays separate from the server-returned credential so the numeric password can be emphasized without parsing or generating it in JavaScript. */
.mobile-app-message-success.mobile-app-forgot-success{color:#0000ff}
.mobile-app-forgot-success-password{display:block;max-width:100%;color:#0000ff;font-size:23px;font-weight:800;line-height:1.25;letter-spacing:.05em;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
/* New User Registration (shared by every surface) */
.mobile-app-register{display:flex;flex-direction:column;gap:12px}
.mobile-app-register-success-message{font-size:18px;font-weight:700;line-height:1.5;color:var(--ink);max-width:100%;overflow-wrap:anywhere}
.mobile-app-register-success-message strong{color:#0000ff;font-weight:800}
.mobile-app-register-identity{display:grid;gap:8px;padding:10px 12px;border:1px solid #c4d5d1;border-radius:8px;background:#f6faf9}
.mobile-app-register-identity div{display:flex;flex-direction:column;gap:2px}
.mobile-app-register-identity span{font-size:10px;font-weight:800;color:#405955;text-transform:uppercase;letter-spacing:.04em}
.mobile-app-register-identity strong{font-size:14px;color:var(--ink)}

/* Phase 4 (2026-09-21) shared repeated-reading GPS acquisition panel - one implementation, used by every
   surface via mobile-attendance-app.js/mobileAppGpsAcquisitionPanel(); no surface-specific copy. */
.mobile-app-gps-acquisition{margin:10px 0;padding:10px 12px;border:1px solid var(--line);border-radius:10px;background:#f4f7f5;display:flex;flex-direction:column;gap:4px}
.mobile-app-gps-reading{font-size:11px;color:var(--muted)}
.mobile-app-gps-reading.accepted{color:#227a58;font-weight:700}
.mobile-app-gps-summary{margin-top:6px;padding-top:8px;border-top:1px dashed var(--line);display:flex;flex-direction:column;gap:3px;font-size:11px;font-weight:700;color:var(--ink)}

/* Phase 5 (2026-09-21) shared authoritative SAVED-location line - directly below an event's Date/Time
   wherever that Date/Time already appears (mobileAppLocationDetail in mobile-attendance-app.js); no
   surface-specific copy. The two inner spans render as their own lines via display:block, independent
   of whatever element (grid cell/<strong>/etc) mobileAppLocationDetail's own span is nested inside. */
.mobile-app-location-detail{display:block;margin-top:2px}
.mobile-app-location-name{display:block;font-size:11px;font-weight:600;color:var(--ink)}
.mobile-app-location-accuracy{display:block;font-size:10px;font-weight:600;color:var(--muted)}

.mobile-app-session-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 14px;margin-bottom:14px}
.mobile-app-session-grid>div{display:flex;flex-direction:column;gap:3px}
.mobile-app-session-grid span{font-size:9px;font-weight:800;color:#8ca09d;text-transform:uppercase;letter-spacing:.05em}
.mobile-app-session-grid strong{font-size:12px;color:var(--ink)}

@media(max-width:480px){.mobile-app-session-grid{grid-template-columns:1fr}}

/* Today's Visits (2026-09-13c restructure: many EmployeeAttendanceMobileVisit rows per GPS session) */
.mobile-app-visit-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}
.mobile-app-visit-item{border:1px solid var(--line);border-radius:10px;background:#fff;overflow:hidden}
.mobile-app-visit-item.active{border-color:var(--teal)}
.mobile-app-visit-summary{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;padding:10px 12px;border:0;background:transparent;font-size:12px;font-weight:800;color:var(--ink);cursor:pointer;text-align:left}
.mobile-app-visit-status{padding:3px 9px;border-radius:20px;font-size:10px;font-weight:800;white-space:nowrap;background:#eef2f0;color:#8ca09d}
.mobile-app-visit-status.checked_in{background:#eef2f7;color:#4a6a8c}
.mobile-app-visit-status.in_progress{background:#fff8e6;color:#8a6a1f}
.mobile-app-visit-status.completed{background:#e6f5ee;color:#227a58}
.mobile-app-visit-detail{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 12px;padding:0 12px 12px;border-top:1px dashed var(--line)}
.mobile-app-visit-detail>div{display:flex;flex-direction:column;gap:2px;padding-top:10px}
.mobile-app-visit-detail span{font-size:9px;font-weight:800;color:#8ca09d;text-transform:uppercase;letter-spacing:.05em}
.mobile-app-visit-detail strong{font-size:11px;color:var(--ink);font-weight:600;word-break:break-word}
@media(max-width:480px){.mobile-app-visit-detail{grid-template-columns:1fr}}

/* Field Visit Report (per-visit, inside a Today's Visits expanded row) */
.mobile-app-field-visit-report{grid-column:1/-1;display:flex;flex-direction:column;gap:8px;margin-top:6px;padding-top:12px;border-top:1px dashed var(--line)}
.mobile-app-field-visit-report-title{margin:0;font-size:11px;font-weight:800;color:var(--ink)}
.mobile-app-checkbox{display:flex;align-items:center;gap:8px;font-size:11px;font-weight:600;color:var(--ink);cursor:pointer}
.mobile-app-checkbox input{width:15px;height:15px;flex:none}
.mobile-app-checkbox-disabled{color:#8ca09d;cursor:default}

.mobile-app-video{width:100%;max-height:320px;border-radius:12px;background:#111;object-fit:cover;transform:scaleX(-1)}
.mobile-app-photo-preview{width:100%;max-height:320px;border-radius:12px;object-fit:cover}
.mobile-app-photo-save-status{display:block;margin-top:4px;color:var(--muted);font-size:11px;font-weight:700}

.mobile-app-map{width:100%;height:260px;border-radius:12px;margin-bottom:14px;background:#e9efec}
.mobile-app-map-pending{display:flex;align-items:center;justify-content:center;font-size:11px;font-weight:800;color:#8ca09d;text-align:center;padding:0 16px}
/* Phase 1.3/1.4 (2026-09-22): offline placeholder inside .mobile-app-map when mobileAppInitRouteMapIfNeeded() skips the OSM tile layer - see mobile-attendance-app.js. */
.mobile-app-map-offline-note{position:relative;z-index:400;display:flex;align-items:center;justify-content:center;height:100%;font-size:11px;font-weight:800;color:#8ca09d;text-align:center;padding:0 16px;background:#e9efec}
.mobile-app-saved-photo{margin:6px 0 12px}.mobile-app-saved-photo img{display:block;max-width:100%;width:150px;max-height:110px;object-fit:cover;border-radius:8px;border:1px solid #cbd8d3}.mobile-app-saved-photo figcaption{font-size:11px;color:#58706a;margin-top:3px}
.mobile-app-pending-photo{margin:6px 0 12px}.mobile-app-pending-photo img{display:block;max-width:100%;width:150px;max-height:110px;object-fit:cover;border-radius:8px;border:1px solid #d6a84f}.mobile-app-pending-photo figcaption{font-size:11px;color:#8a5a00;margin-top:3px}
.mobile-app-report-photo-camera{position:fixed;inset:0;z-index:10000;display:grid;place-items:center;padding:16px;background:rgba(0,0,0,.82)}.mobile-app-report-photo-camera .mobile-app-card{width:min(100%,480px);max-height:calc(100vh - 32px);overflow:auto}.mobile-app-report-photo-camera video{display:block;width:100%;max-height:60vh;object-fit:contain;background:#111;border-radius:10px}

/* UI-ONLY strict reference layout (2026-09-18, compact pass) - flat spreadsheet-style look for the shared
   MobileGPS Session and combined Attendance Complete / Attendance Out blocks. Scoped to
   .mobile-app-card-session, .mobile-app-card-attendance, .mobile-app-xl*, .mobile-app-attendance-out and
   .mobile-app-note only. ROLLBACK: delete this whole block (and restore the render functions in
   mobile-attendance-app.js). */
.mobile-app-card-session,.mobile-app-card-attendance{--xl-blue:#0000ff;--xl-line:#d0d0d0;padding:0;border:0;border-radius:0;background:#fff;color:#000;font-family:Calibri,"Segoe UI",Arial,sans-serif}
/* session + attendance read as ONE continuous table (cancels the 16px flex gap, overlapping the 1px border) */
.mobile-app-card-session+.mobile-app-card-attendance{margin-top:-17px}
.mobile-app-xl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));border-top:1px solid var(--xl-line);border-left:1px solid var(--xl-line)}
.mobile-app-xl>div{padding:4px 8px;border-right:1px solid var(--xl-line);border-bottom:1px solid var(--xl-line);font-size:14px;font-weight:700;line-height:1.25;color:#000;overflow-wrap:anywhere}
.mobile-app-xl>.mobile-app-xl-title{grid-column:1/-1;text-align:center;font-size:18px;color:var(--xl-blue);padding:5px 8px}
.mobile-app-xl>.mobile-app-xl-wide{grid-column:1/-1}
.mobile-app-xl>.mobile-app-xl-center{text-align:center}
.mobile-app-xl>.mobile-app-xl-big{font-size:16px}
.mobile-app-xl>.mobile-app-xl-pair{display:flex;justify-content:space-between;align-items:baseline;gap:8px}
.mobile-app-xl-pair>*{overflow-wrap:break-word}
.mobile-app-xl-pair>b{color:var(--xl-blue);font-weight:700;text-align:right}
.mobile-app-xl>.mobile-app-xl-val,.mobile-app-xl>.mobile-app-xl-blue{color:var(--xl-blue)}
.mobile-app-xl-gap{margin-right:10px}
.mobile-app-xl-blue,.mobile-app-xl-tick{color:var(--xl-blue);font-style:normal;font-weight:700}
.mobile-app-xl-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;padding:6px 8px;border:1px solid var(--xl-line);border-top:0}
.mobile-app-xl-signout{background:#92d050;padding:3px 8px}
.mobile-app-card-session .mobile-app-xl-actions .mobile-app-hint{color:#000;font-weight:700;text-align:center}
.mobile-app-card-session .button.mobile-app-xl-link{min-height:0;height:auto;padding:3px 8px;border:0;background:transparent;box-shadow:none;color:var(--xl-blue);font:700 17px Calibri,"Segoe UI",Arial,sans-serif}
.mobile-app-card-attendance .mobile-app-gps-override-inline{margin:8px 0 0}
.mobile-app-attendance-out{margin-top:8px;display:flex;flex-direction:column;gap:8px}
.mobile-app-attendance-out .mobile-app-form-actions{justify-content:center}
/* The two explanatory messages (Log Off pending / Reopen helper) share this ONE rule so their size, weight and colour can never diverge. */
.mobile-app-note{margin:0;font-family:Calibri,"Segoe UI",Arial,sans-serif;font-size:15px;font-weight:700;line-height:1.45;color:#000}
.mobile-app-offline-photo-overlay { position: fixed; inset: 0; z-index: 10000; background: rgba(0,0,0,.85); display: grid; place-items: center; padding: 1rem; }
.mobile-app-offline-photo-overlay .mobile-app-card { width: min(100%, 480px); }
.mobile-app-offline-photo-overlay video { display: block; width: 100%; max-height: 65vh; object-fit: contain; background: #111; }
/* Phase 12: offline recovery/status card (shared - rendered only where the native offline store exists). */
.mobile-app-offline-counts{list-style:none;margin:8px 0;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(96px,1fr));gap:6px}
.mobile-app-offline-count{display:flex;flex-direction:column;gap:2px;padding:6px 8px;border:1px solid #e3e6ea;border-radius:8px;font-size:11px}
.mobile-app-offline-count strong{font-size:16px}
.mobile-app-offline-action{margin:6px 0;font-size:12px;line-height:1.5}
.mobile-app-offline-events{margin:8px 0 0;padding:0 0 0 18px;display:flex;flex-direction:column;gap:8px}
.mobile-app-offline-event p{margin:0}
.mobile-app-offline-event[data-offline-event-status="REJECTED"],.mobile-app-offline-event[data-offline-event-status="QUARANTINED"]{border-left:3px solid #a3423a;padding-left:6px}
.mobile-app-version{margin:14px 0 4px;text-align:center;font-size:12px;line-height:1.4;color:#5f6b7a;letter-spacing:.2px;user-select:text}

/* C8 approved compact Location popup, scoped to ERP-MOBILE only. */
.mobile-app-location-modal{position:fixed;inset:0;z-index:20000;display:grid;place-items:center;padding:16px;background:transparent}
.mobile-app-location-popup{width:min(100%,360px);padding:20px;border:1px solid #FF5A00;border-radius:10px;background:#FFFFFF;box-shadow:none;color:#000000}
.mobile-app-location-heading{display:flex;align-items:center;gap:8px;margin:0 0 12px}.mobile-app-location-heading h2{margin:0;color:#FF5A00;font-size:19px;line-height:1.2}.mobile-app-location-icon{display:grid;place-items:center;width:23px;height:23px;border-radius:50%;background:#FF5A00;color:#FFFFFF;font-size:18px;line-height:1}
.mobile-app-location-popup>p{margin:0;font-size:14px;line-height:1.5}.mobile-app-location-guidance{margin-top:10px!important;color:#000000;font-size:13px!important}.mobile-app-location-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:18px}.mobile-app-location-ok{min-width:72px;padding:8px 18px;border:1px solid #FF5A00;border-radius:5px;background:#FF5A00;color:#000000;font-size:14px;font-weight:700;cursor:pointer}.mobile-app-location-ok:focus,.mobile-app-location-actions .button:focus{outline:3px solid #000000;outline-offset:2px}.mobile-app-location-actions .button-primary{background:#FF5A00;border:1px solid #FF5A00;color:#000000}.mobile-app-location-actions .button-secondary{background:#FFFFFF;border:1px solid #000000;color:#000000}
@media(max-width:480px){.mobile-app-location-popup{width:min(100%,330px);padding:18px}.mobile-app-location-heading h2{font-size:18px}}

/* Entry choice (EXISTING USER / NEW USER): two prominent full-width buttons, stacked on a phone */
.mobile-app-entry-choice-actions{flex-direction:column}
.mobile-app-entry-choice-actions .button{width:100%;min-height:52px;font-size:16px;font-weight:700;letter-spacing:.4px}
.mobile-app-entry-back{display:flex;flex-wrap:wrap;gap:8px;margin-top:4px}

/* Post-login Home (Phase A): same card, button and type conventions as the rest of the Mobile-App - no new theme. One full-width row per module. */
.mobile-app-home-head{display:flex;flex-direction:column;gap:4px;margin-bottom:14px}
.mobile-app-home-head h3{margin:0}
.mobile-app-home-name{font-size:22px;font-weight:700;line-height:1.25;color:var(--ink);overflow-wrap:anywhere}
.mobile-app-home-id{font-size:13px;color:var(--muted)}
.mobile-app-home-menu{display:flex;flex-direction:column;gap:10px}
.mobile-app-home-row{display:block;width:100%;min-height:52px;text-align:left;font-size:16px}
.mobile-app-home-soon{display:flex;align-items:center;justify-content:space-between;gap:8px}
.mobile-app-home-soon:disabled{opacity:.65;cursor:not-allowed;box-shadow:none}
.mobile-app-home-soon-tag{font-size:12px;font-weight:400;color:var(--muted);white-space:nowrap}
.mobile-app-home-bar{display:flex;justify-content:flex-start;margin:0 0 10px}
#mobileAppMarkSubmit:disabled,#mobileAppVisitCaptureSubmit:disabled{opacity:.55;cursor:not-allowed;box-shadow:none}

/* 2026-11-15 UI reorganisation (owner-approved C1-C3): STRUCTURE for the compact upper bar and the single Field Visit Reports area, shared by the ERP tab, /mobile-app and
   /mobile-app-real. Existing tokens only; the /mobile-app-real appearance is in mobile-app-real.css. */
.mobile-app-upper-compact{padding:10px 12px 12px;border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--ink);font-family:inherit}
.mobile-app-card-session+.mobile-app-card-attendance-compact{margin-top:0}
.mobile-app-upper-line{display:flex;align-items:center;justify-content:space-between;gap:8px}
.mobile-app-upper-who{display:flex;flex-direction:column;min-width:0}
.mobile-app-upper-who b{font-size:16px;overflow-wrap:anywhere}
.mobile-app-upper-who span{font-size:12px}
.mobile-app-upper-toggle{flex:0 0 auto;min-height:44px;padding:0 12px}
.mobile-app-upper-chips{display:flex;flex-wrap:wrap;gap:6px;margin:6px 0}
.mobile-app-upper-chip{font-size:12px;font-weight:700;border:1px solid var(--line);border-radius:999px;padding:3px 10px}
.mobile-app-upper-chip i{font-style:normal;font-weight:400;margin-right:4px}
.mobile-app-upper-state{margin:0 0 6px;font-size:12px}
.mobile-app-upper-compact .mobile-app-xl-actions{margin:0}
.mobile-app-card-fvr .mobile-app-fvr-sub{margin:0}
.mobile-app-visit-report-batch-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px}
.mobile-app-visit-report-batch-row{display:flex;flex-direction:column;gap:0;padding:0;border:1px solid var(--line);border-radius:12px;background:#fff;overflow:hidden}
/* v42 Field Visit Reports card (2026-11-16, owner-approved). The head is a three-column grid so no element can sit on another one: [batch checkbox 48px] [text column] [arrow 34px].
   The text column holds the customer name (wraps between words, never mid-word) and under it the visit id (v43: the "Latest completed" label was removed; the newest visit keeps only its accent border).
   The checkbox only selects the visit for the batch send; the text column and the arrow are one button that opens / closes the card. The recipient form exists only while a card is open. */
.mobile-app-fvr-head{display:grid;grid-template-columns:48px minmax(0,1fr);align-items:stretch;gap:0}
.mobile-app-fvr-select{display:flex;align-items:center;justify-content:center;min-width:48px;min-height:60px;margin:0;cursor:pointer}
.mobile-app-fvr-select input{width:22px;height:22px;margin:0;flex:none}
.mobile-app-fvr-toggle{display:grid;grid-template-columns:minmax(0,1fr) 34px;align-items:center;gap:8px;min-width:0;min-height:60px;width:100%;margin:0;padding:8px 10px 8px 2px;border:0;background:transparent;color:inherit;font:inherit;text-align:left;cursor:pointer}
.mobile-app-fvr-toggle:focus-visible{outline:2px solid var(--teal);outline-offset:-2px;border-radius:8px}
.mobile-app-fvr-main{display:flex;flex-direction:column;gap:5px;min-width:0}
.mobile-app-fvr-customer{font-size:14px;font-weight:800;line-height:1.25;overflow-wrap:break-word;word-break:normal}
.mobile-app-fvr-meta{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px;min-width:0}
.mobile-app-fvr-visitid{font-size:12px;font-weight:600;line-height:1.3;overflow-wrap:anywhere}
.mobile-app-fvr-chevron{justify-self:end;width:32px;height:32px;display:flex;align-items:center;justify-content:center;margin:0;padding:0;border:1.5px solid var(--ink);border-radius:50%;font-size:11px;line-height:1;color:var(--ink);background:#fff}
.mobile-app-fvr-expanded .mobile-app-fvr-chevron{background:var(--ink);color:#fff}
.mobile-app-fvr-body{display:flex;flex-direction:column;gap:6px;padding:6px 14px 14px;border-top:1px solid var(--line)}
.mobile-app-fvr-body>.mobile-app-hint:first-child{font-size:12px;font-weight:800;letter-spacing:.05em;text-transform:uppercase;margin:4px 0 0}
.mobile-app-fvr-body .mobile-app-checkbox{min-height:44px;align-items:flex-start;padding:6px 0}
.mobile-app-fvr-status{display:flex;flex-direction:column;gap:6px;padding:0 14px 12px}
.mobile-app-fvr-status p{margin:0}
.mobile-app-fvr-body .mobile-app-form-actions .button{width:100%;min-height:44px}
.mobile-app-fvr-count{margin:8px 0 0;font-size:12px;font-weight:800}
.mobile-app-checkbox span{overflow-wrap:anywhere}
.mobile-app-visit-report-latest{border-color:var(--teal);box-shadow:inset 0 0 0 1px var(--teal)}
.mobile-app-card-decision .mobile-app-form-actions{margin-top:10px}

/* End Day guidance (approved) */
.mobile-app-endday-guide{margin-top:8px;font-size:13px;line-height:1.5;overflow-wrap:anywhere}
