/* Approved mobile design: a responsive surface over the existing record flows. */
.mobile-only,.mobile-list-tools,.mobile-trip-progress{display:none}
.mobile-record-search{width:100%;margin:10px 0}
.mobile-settings-details>summary{display:none}
.mobile-settings-details:not([open])>.ws-more-grid{display:grid}
.mobile-filter-details{display:contents}
.mobile-filter-details>summary{display:none}
.mobile-filter-details:not([open])>*:not(summary){display:flex}
.gm-step-details>summary{display:none}
.gm-step-details:not([open])>.gm-directions{display:block}
@media screen and (max-width:767px){
 body:not(.auth-pending){--mobile-navy:#12233f;--mobile-blue:#0b49d0;--mobile-bg:#f4f6fa;--mobile-muted:#64748b;background:var(--mobile-bg);font-size:16px;line-height:1.5;color:#12233f}
 body:not(.auth-pending) *,body:not(.auth-pending) *::before,body:not(.auth-pending) *::after{box-sizing:border-box}
 body:not(.auth-pending) main,body[data-current-screen=overview]:not(.auth-pending) main{width:100%;margin:0;padding:max(12px,env(safe-area-inset-top)) 16px calc(84px + env(safe-area-inset-bottom));min-width:0}
 body:not(.auth-pending) main>*,.ws-screen>*{min-width:0}
 body:not(.auth-pending) .mobile-only{display:block}
 body:not(.auth-pending) .nesa-session-header{position:relative;display:none!important;align-items:center;justify-content:space-between;gap:12px;background:#12233f;color:white;width:100%;margin:0;padding:12px 16px;min-height:64px!important;height:auto!important;border:0}
 body:not(.auth-pending) .nesa-session-brand{gap:8px;flex-shrink:0}
 body:not(.auth-pending) .nesa-session-brand>.nesa-wordmark{display:inline;color:white;font-size:27px;letter-spacing:-1px;line-height:1;text-decoration:none}
 body:not(.auth-pending) .nesa-session-brand span{font-size:14px;color:#d0dcf1}
 .nesa-session-user,.nesa-session-back{display:none!important}
 body:not(.auth-pending) .nesa-session-signout{background:transparent;border:1px solid #536581;color:white;min-height:44px;font-size:13px;padding:8px 10px;border-radius:10px}
 .nesa-session-signout .nesa-icon{width:17px;height:17px}
 body:not(.auth-pending) .ws-heading{margin:0 0 12px;gap:12px;align-items:center;flex-wrap:wrap}
 body:not(.auth-pending) .ws-heading h1{font-size:25px;line-height:1.25;letter-spacing:-.6px;color:#12233f}
 .ws-heading p{font-size:13px!important;color:#46556f}
 .ws-heading-actions:has(.compact-heading-actions:not([hidden])){width:auto!important;margin-left:auto}
 .compact-heading-actions{width:auto;gap:8px;justify-content:flex-start}
 .compact-heading-actions:empty{display:none}
 body:not(.auth-pending) .btn,body:not(.auth-pending) .text-btn,body:not(.auth-pending) .icon-btn{font:600 15px/1.4 NesaInter,system-ui,sans-serif;min-height:48px;padding:11px 14px;border-radius:11px;touch-action:manipulation;white-space:normal}
 body:not(.auth-pending) .btn.primary{background:#0b49d0;border-color:#0b49d0;min-height:48px;color:#fff}
 body:not(.auth-pending) .btn:not(.primary){color:#245ac8}
 body:not(.auth-pending) a.btn{display:inline-flex;align-items:center;justify-content:center;text-decoration:none}
 body:not(.auth-pending) .icon-btn{min-width:44px;padding:8px}
 body:not(.auth-pending) button:focus-visible,body:not(.auth-pending) a:focus-visible,body:not(.auth-pending) summary:focus-visible{outline:3px solid #84adff;outline-offset:3px}
 body:not(.auth-pending) input,body:not(.auth-pending) select,body:not(.auth-pending) textarea{font:400 16px/1.5 NesaInter,system-ui,sans-serif;min-height:48px;width:100%;border:1px solid #dbe3ef;border-radius:11px;padding:11px 12px;background:#fff;color:#12233f;min-width:0}
 body:not(.auth-pending) textarea{min-height:110px;resize:vertical}
 body:not(.auth-pending) input[type=checkbox],body:not(.auth-pending) input[type=radio]{min-height:24px;height:24px;width:24px;flex:none;accent-color:#0b49d0;padding:0}
 body:not(.auth-pending) label{font-size:14px;line-height:1.5}
 body:not(.auth-pending) small,body:not(.auth-pending) .minor{font-size:13px;line-height:1.55}
 body:not(.auth-pending) .ws-icon{width:21px;height:21px;flex:none;vertical-align:middle}
 body:not(.auth-pending) .ws-panel,body:not(.auth-pending) .v2-screen.card{padding:0;border:0;background:transparent;border-radius:0;box-shadow:none}
 .ws-panel h2,.ws-panel h3{line-height:1.35}
 .ws-panel-head{gap:10px;margin:0 0 16px}
 .ws-panel-head h2{font-size:22px!important}
 .ws-pill,.status-badge,.v2-pill{font-size:12px!important;line-height:1.5;padding:5px 10px;border-radius:20px;white-space:normal;display:inline-flex;align-items:center}
 body:not(.auth-pending) .ws-empty,body:not(.auth-pending) .v2-empty{padding:24px 16px;font-size:15px;background:#fff;border:1px solid #e1e7f0;border-radius:14px}
 .ws-empty strong{font-size:17px!important}.ws-empty p{font-size:14px!important}
 .ws-mobile-nav{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;position:fixed;bottom:0;left:0;right:0;z-index:100;background:#fff;border-top:1px solid #e0e6ef;box-shadow:0 -4px 16px #12233f06;padding:6px 8px calc(6px + env(safe-area-inset-bottom));gap:2px}
 .ws-mobile-nav button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-height:60px;padding:7px 1px;border:0;border-radius:10px;font:500 11px/1.25 NesaInter,system-ui;color:#46556f;background:transparent;min-width:0}
 .ws-mobile-nav svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.8}
 .ws-mobile-nav button.active{background:#eff5ff;color:#0b49d0;font-weight:700}
 /* Daily work comes first; the existing map is one touch away. */
 body[data-current-screen=overview] .ws-heading,#ws-overview>.ws-stats{display:none!important}
 body:not(.mobile-overview-map) #ws-overview>.hm-workspace{display:none!important}
 body.mobile-overview-map .mobile-today{display:none!important}
 body:not(.auth-pending) .mobile-overview-switch{display:grid;grid-template-columns:1fr 1fr;gap:5px;border:1px solid #dfe6ef;background:#eaf0f8;padding:4px;border-radius:12px;margin:0 0 12px}
 .mobile-overview-switch button{display:flex;gap:8px;align-items:center;justify-content:center;min-height:44px;border:0;background:transparent;color:#46556f;font:600 14px/1.4 NesaInter,system-ui;border-radius:9px}
 .mobile-overview-switch button[aria-pressed=true]{background:white;color:#0b49d0;box-shadow:0 2px 6px #12233f0a}
 .mobile-welcome{margin:0 0 12px}.mobile-welcome h2{font-size:22px;line-height:1.25;letter-spacing:-.7px;margin:0 0 5px}.mobile-welcome p{font-size:14px;color:#46556f;margin:0}
 .mobile-today-stats{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:12px}
 .mobile-today-stats article{display:flex;align-items:center;gap:10px;padding:12px;background:white;border:1px solid #e3e9f2;border-radius:14px}
 .mobile-today-stats article>.ws-icon{color:#159753;width:32px!important;height:32px!important;background:#e6f8ed;padding:5px;border-radius:8px}
 .mobile-today-stats article+article>.ws-icon{color:#df8b0e;background:#fff3d8}
 .mobile-today-stats strong{display:block;font-size:24px;line-height:1.2}.mobile-today-stats span{font-size:13px;color:#46556f}
 .mobile-next,.mobile-plan-card{background:#fff;border:1px solid #e0e7f1;border-radius:15px;padding:14px;margin-bottom:12px;box-shadow:0 3px 12px #12233f03}
 .mobile-caption{display:flex;align-items:center;gap:7px;font-weight:600;font-size:13px;color:#46556f}
 .mobile-next h3{font-size:21px;letter-spacing:-.5px;line-height:1.3;margin:8px 0 6px;overflow-wrap:anywhere}
 .mobile-next p{display:flex;gap:6px;align-items:center;font-size:14px;color:#46556f;margin:0 0 12px;overflow-wrap:anywhere}
 .mobile-next-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.mobile-next-actions>.btn:only-child{grid-column:1/-1}.mobile-next .btn{width:100%;display:flex;gap:9px;align-items:center;justify-content:center}
 .mobile-next .btn:not(.primary){background:#fff;border:1px solid #aac4f5}
 .mobile-section-head{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:4px}
 .mobile-section-head h3{font-size:17px;margin:0}.mobile-section-head .btn{min-height:44px!important;font-size:13px!important;padding:8px!important;border:0;background:none}
 .mobile-plan-stop{width:100%;display:flex;align-items:center;gap:10px;text-align:left;position:relative;min-height:62px;padding:9px 4px;border:0;border-bottom:1px solid #edf0f6;background:#fff;color:#12233f;border-radius:0;font:500 14px/1.5 NesaInter,system-ui}
 .mobile-plan-stop>span:nth-of-type(2){flex:1;min-width:0}.mobile-plan-stop strong{display:block;font-size:14px;overflow-wrap:anywhere}.mobile-plan-stop small{display:block;font-size:12px!important;color:#46556f;margin-top:3px}
 .mobile-plan-stop time{font-size:13px;flex:none}.mobile-plan-stop>.ws-icon{width:16px!important;color:#8a9bb3}
 .mobile-stop-number{flex:none;display:grid;place-items:center;width:24px;height:24px;border:1px solid #ced8e7;border-radius:50%;font-size:12px;color:#46556f;background:#fff}
 .mobile-plan-stop.is-complete .mobile-stop-number{background:#17a568;border-color:#17a568;color:white}
 .mobile-plan-stop.is-next{background:#eff5ff;border-radius:10px;border-color:transparent}.mobile-plan-stop.is-next .mobile-stop-number{background:#0b49d0;border-color:#0b49d0;color:white}
 .mobile-add-visit{width:100%;margin-top:8px;border:1px solid #b6cdf9;display:flex;align-items:center;justify-content:center;gap:8px}
 .mobile-empty{font-size:14px;color:#46556f;padding:8px 0}
 .mobile-quick-links{display:grid;grid-template-columns:1fr 1fr;gap:10px}.mobile-quick-links .btn{background:#fff;border:1px solid #dee6f0;display:flex;align-items:center;justify-content:center;gap:8px}
 .mobile-plan-pager{display:flex;align-items:center;gap:8px;font-size:13px;color:#46556f;margin-top:12px}.mobile-plan-pager:empty{display:none}.mobile-plan-pager>span{margin-right:auto}
 /* Full width map and readable bottom sheet, with filters behind one disclosure. */
 body.mobile-overview-map .hm-workspace{position:relative;height:calc(100dvh - 166px - env(safe-area-inset-bottom) - env(safe-area-inset-top));min-height:350px;border:1px solid #dbe4ef;border-radius:15px;overflow:hidden}
 .hm-map-panel{display:flex;flex-direction:column;height:100%;background:white}
 .hm-toolbar{padding:12px;gap:10px}.hm-toolbar>.btn{min-height:48px!important;font-size:13px!important;padding:9px 12px!important}.hm-search{min-width:0;border-radius:10px}.hm-search input{min-height:46px!important;font-size:16px!important}
 .mobile-filter-details{display:block;padding:0 12px 10px;background:#fff}
 .mobile-filter-details>summary{display:flex;align-items:center;gap:8px;min-height:44px;color:#0b49d0;font-size:14px;font-weight:600;cursor:pointer;list-style:none}
 .mobile-filter-details>summary::-webkit-details-marker{display:none}
 .mobile-filter-details>summary::after{content:'+';margin-left:auto;font-size:20px}.mobile-filter-details[open]>summary::after{content:'−'}
 .mobile-filter-details:not([open])>*:not(summary){display:none!important}
 .hm-filters{display:grid;grid-template-columns:1fr 1fr;padding:6px 0;gap:10px}.hm-filters>label{display:grid;gap:5px;font-size:13px!important}.hm-filters>label select{min-height:48px!important;padding:10px!important;font-size:16px!important;max-width:100%;width:100%}.hm-filters .ws-filter-label{display:grid}.hm-clear{font-size:14px;min-height:44px}
 .hm-map-caption{font-size:11px;padding:9px;min-height:40px}.hm-canvas{min-height:230px}.hm-map-top>span,.hm-team-toggle{font-size:11px!important;padding:8px}
 .hm-map-controls>.btn{width:44px!important;min-height:44px!important}.hm-team-toggle input{width:18px!important;height:18px!important;min-height:18px!important}
 .hm-legend{display:none}.hm-mobile-panel{min-height:48px;font-size:14px;padding:12px 16px;left:12px;bottom:30px;border-radius:10px}
 .hm-side-panel{max-height:96%;border-radius:18px 18px 0 0}.hm-panel-head{padding:16px 16px 6px}.hm-panel-head h2{font-size:18px}.hm-close-panel{width:44px;height:44px}.hm-tabs{padding:0 16px;gap:16px}.hm-tabs button{font-size:14px;min-height:48px}
 .hm-side-panel>section{max-height:calc(100dvh - 350px);min-height:150px;padding:16px}.hm-stop{padding:16px 0}.hm-stop strong,.hm-customer-row strong{font-size:17px}.hm-stop-meta{font-size:12px}.hm-stop p{font-size:14px}.hm-step{width:28px;height:28px;font-size:13px}
 .hm-row-actions .btn,.hm-trip-actions .btn,.hm-detail-actions .btn,.hm-customer-detail>.btn,.hm-side-panel .hm-quick-actions .btn{font-size:14px!important;min-height:48px!important;padding:11px 12px!important}
 .hm-customer-detail h3{font-size:24px}.hm-customer-detail>p{font-size:14px}.hm-customer-detail dt{font-size:12px}.hm-customer-detail dd{font-size:16px}.hm-status{font-size:12px;border-radius:20px;padding:5px 10px}
 .hm-customer-row small{font-size:13px!important}.hm-customer-row{padding:17px 0}.hm-person strong{font-size:16px}.hm-person p,.hm-person small,#hm-team-status{font-size:13px!important}.hm-person .btn{font-size:14px!important;min-height:44px!important}
 .hm-pager{font-size:12px}.hm-pager .btn{min-width:44px;min-height:44px!important}
 /* Customers, offers, shipments and expenses keep the original controls inside cards. */
 body.ws-customer-screen #sales-view>.intro{margin:0 0 14px}.ws-customer-screen #sales-view>.intro .actions{justify-content:flex-end}.ws-customer-screen #sales-view>.intro #s-add{width:100%}
 .sales-filters{display:flex;flex-direction:column;padding:0;border:0;background:transparent;margin:0 0 12px;gap:0}.sales-filters>.search-filter{width:100%;min-width:0!important;margin-bottom:8px}.sales-filters>.search-filter>span{display:none}.sales-filters .mobile-filter-details{width:100%;border:1px solid #dfe6ef;border-radius:12px;padding:0 12px}.sales-filters .mobile-filter-details>label{display:grid!important;gap:5px;margin:10px 0;min-width:0!important;width:100%}.sales-filters .mobile-filter-details:not([open])>label{display:none!important}.sales-filters input,.sales-filters select{min-height:48px!important;font-size:16px!important}.sales-filters label>span{font-size:13px!important}
 .label-toggle{font-size:13px!important;min-height:44px;align-items:center;gap:8px}
 body:not(.auth-pending) .compact-tabs{gap:0;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:thin;border:0;background:#e9eff7;border-radius:12px;padding:4px;margin:0 0 16px}
 body:not(.auth-pending) .compact-tabs button{flex:1;min-width:max-content;min-height:44px!important;font-size:14px!important;padding:10px 14px!important;border:0!important;border-radius:9px!important;color:#46556f!important}
 body:not(.auth-pending) .compact-tabs button[aria-pressed=true]{background:#fff!important;color:#0b49d0!important;box-shadow:0 1px 4px #12233f0a!important}
 body:not(.auth-pending) .card.customer-list-card{padding:0;background:transparent;border:0;box-shadow:none}.customer-list-card h2{font-size:18px}.customer-list-card .list-heading{margin:0 0 12px}#s-visible-count{font-size:13px;color:#46556f}
 .table-scroll:has(.mobile-card-table){overflow:visible;max-width:100%}
 body:not(.auth-pending) table.mobile-card-table{display:block;min-width:0!important;width:100%!important;border:0;table-layout:auto;background:transparent}
 .mobile-card-table>thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
 .mobile-card-table>tbody{display:grid;gap:10px;width:100%}
 .mobile-card-table>tbody>tr{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px;padding:14px;background:white;border:1px solid #e0e7f1;border-radius:14px;text-align:left;box-shadow:0 2px 9px #12233f03}
 body:not(.auth-pending) .mobile-card-table>tbody>tr>td{display:block!important;min-width:0!important;max-width:none!important;width:auto!important;padding:0!important;border:0!important;background:transparent!important;text-align:left!important;font-size:14px!important;line-height:1.55;overflow-wrap:anywhere;white-space:normal}
 .mobile-card-table>tbody>tr>td:first-child{grid-column:1/-1}
 .mobile-card-table>tbody>tr>td:not(:first-child)::before{content:attr(data-mobile-label);display:block;font-size:11px;line-height:1.4;font-weight:500;color:#46556f;margin-bottom:4px}
 .mobile-card-table td:empty{display:none!important}.mobile-card-table td[data-mobile-label=""]::before{display:none!important}
 body:not(.auth-pending) .mobile-card-table .company-link{font-size:18px!important;line-height:1.4;font-weight:700;min-height:44px;display:inline-flex;align-items:center;text-align:left;overflow-wrap:anywhere;max-width:100%;padding:0;color:#12233f}
 body:not(.auth-pending) .mobile-card-table td small{font-size:13px!important;line-height:1.6;display:block;margin-top:5px;color:#46556f}
 .mobile-card-table .plan-btn{width:44px!important;min-height:44px!important;border-radius:10px;font-size:20px!important}
 .mobile-card-table .expense-amount{font-size:20px!important;font-weight:750;color:#12233f}
 .mobile-card-table td .expense-actions{gap:8px;flex-wrap:wrap}.mobile-card-table td:has(.expense-actions){grid-column:1/-1}
 body:not(.auth-pending) .compact-pager{font-size:13px;gap:8px;padding:12px 0;margin-top:4px;border:0;flex-wrap:wrap}.compact-pager>span{flex:1;min-width:110px}.compact-pager .btn{font-size:13px!important;min-height:44px!important;padding:10px 13px!important}
 .v2-screen>h2,.v2-screen>.list-heading h2{display:none}.v2-screen>.sub{font-size:14px!important}.v2-screen .eyebrow{display:none}.compact-category-actions{justify-content:stretch;margin-bottom:14px}body:not(.auth-pending) .compact-category-actions .btn{width:100%;background:#0b49d0;color:white;border-color:#0b49d0}
 .v2-screen>.list-heading{flex-wrap:wrap;gap:12px}.v2-screen>.list-heading>label{width:100%}
 .v2-summary{display:grid;grid-template-columns:1fr 1fr;gap:10px}.v2-summary strong{font-size:22px}.v2-summary>div{padding:14px;border-radius:12px}
 /* Travel and visit lists. */
 .mobile-list-tools{display:grid;gap:10px;margin-bottom:12px}.mobile-chips{display:flex;gap:6px;overflow-x:auto;padding-bottom:2px}
 .mobile-chips button{flex:1;min-height:44px;min-width:max-content;border:0;border-radius:11px;background:#e8eef7;color:#526783;padding:10px 12px;font:600 13px/1.4 NesaInter,system-ui}
 .mobile-chips button[aria-pressed=true]{background:#0b49d0;color:white}
 #field-trip-list,#field-visit-list,#field-people-list,#field-vehicle-list{display:grid;gap:14px}
 #field-trip-list>.field-row,#field-visit-list>.field-row,.compact-list .field-row{display:flex;align-items:flex-start;flex-direction:column;gap:10px;border:1px solid #dfe7f1;border-radius:14px;padding:14px;background:#fff;margin:0}
 #field-trip-list>.field-row>div,#field-visit-list>.field-row>div{width:100%;min-width:0}
 #field-trip-list .field-row strong,#field-visit-list .field-row strong,.compact-list .field-row strong{font-size:18px;line-height:1.4;overflow-wrap:anywhere}
 #field-trip-list .field-row p,#field-visit-list .field-row p,.compact-list .field-row p{font-size:14px;margin:5px 0 8px}
 #field-trip-list .field-row>.btn,#field-visit-list .field-row>.btn{width:100%;background:#edf4ff;border-color:#d2e2ff;margin:0;font-size:15px;min-height:48px}
 .mobile-trip-progress{display:grid;gap:6px;margin:10px 0 3px;font-size:13px;color:#526783}
 .mobile-trip-progress progress{width:100%;height:7px;appearance:none;border:0;background:#e6edf6;border-radius:10px;overflow:hidden;accent-color:#19a66a}.mobile-trip-progress progress::-webkit-progress-bar{background:#e6edf6}.mobile-trip-progress progress::-webkit-progress-value{background:#19a66a;border-radius:10px}.mobile-trip-progress progress::-moz-progress-bar{background:#19a66a}
 /* Lists and details occupy separate mobile views, with an explicit way back. */
 .compact-split{display:block}.compact-list{border:0;padding:0;background:transparent}.compact-list>label{font-size:13px;margin-bottom:16px}.compact-list>label input{margin-top:4px}
 body:not(.mobile-person-detail) #personnel-management,body:not(.mobile-vehicle-detail) .vehicle-management{display:none!important}
 body.mobile-person-detail #ws-people .compact-list,body.mobile-vehicle-detail #ws-vehicles .compact-list{display:none!important}
 .mobile-back{display:flex!important;align-items:center;gap:8px;min-height:44px;background:#fff;border:1px solid #dfe7f0;margin:0 0 16px;font-size:14px}.mobile-back svg{transform:rotate(180deg)}
 .personnel-section,.vehicle-management{background:#fff;padding:16px;border:1px solid #e0e7f1;border-radius:15px}
 .personnel-section>label,.vehicle-picker{display:none!important}.compact-detail-heading{padding:5px 0 18px}.compact-detail-heading h3{font-size:24px;line-height:1.3}.compact-detail-heading p{font-size:14px;overflow-wrap:anywhere}.personnel-avatar{width:62px;height:62px}
 .personnel-info{grid-template-columns:1fr;gap:5px}.personnel-info p{font-size:15px;line-height:1.6;margin:8px 0}.personnel-info strong{font-size:12px}.personnel-actions,.vehicle-actions{gap:10px;margin:16px 0}.personnel-actions .btn,.vehicle-actions .btn{flex:1 1 135px}
 .personnel-record h4,.vehicle-section h4{font-size:17px;margin:6px 0 14px}.personnel-record .field-row,.vehicle-section .field-row{padding:16px 0;gap:12px}.personnel-record .field-row strong,.vehicle-section .field-row strong{font-size:16px}.personnel-record .field-row p,.vehicle-section .field-row p{font-size:14px}
 .vehicle-data{grid-template-columns:1fr 1fr;gap:10px}.vehicle-data p{font-size:15px;padding:14px;background:#f4f7fb;border-radius:12px;overflow-wrap:anywhere}.vehicle-data strong{font-size:12px}.vehicle-alert,.personnel-alert{font-size:14px;line-height:1.6;padding:12px;border-radius:10px}
 .compact-list .field-actions{display:flex;flex-direction:row;flex-wrap:wrap;width:100%;gap:8px}.compact-list .field-row .btn{font-size:14px;min-height:48px;padding:10px 12px;flex:1}
 .team-person-name{font-size:20px!important}.team-person-badges{margin:10px 0}.team-person-badges>span{font-size:12px;padding:5px 9px;line-height:1.5}.team-person-row small{font-size:13px!important}.team-person-actions>.btn:first-child{flex-basis:100%;background:#edf4ff;border:1px solid #d2e2ff;color:#0b49d0!important}
 .compact-tabs[data-compact-tabs=person],.compact-tabs[data-compact-tabs=vehicle]{margin-top:12px}
 /* Full screen forms and customer record sections. */
 body:not(.auth-pending) .customer-dialog[open],body:not(.auth-pending) .gm-dialog[open]{position:fixed;inset:0;width:100%;max-width:100%;height:100dvh;max-height:100dvh;margin:0;padding:0;border:0;border-radius:0;background:#f4f6fa;overflow:auto;overscroll-behavior:contain}
 body:not(.auth-pending) .customer-dialog>.dialog-header,body:not(.auth-pending) .customer-dialog>form>.dialog-header{position:sticky;top:0;z-index:20;display:flex;align-items:center;gap:12px;background:#12233f;color:white;margin:0;padding:14px 16px;border:0;min-height:72px}
 .customer-dialog .dialog-header h2{font-size:20px;line-height:1.3;color:white;margin:0}.customer-dialog .dialog-header .eyebrow{color:#c7d5ec;font-size:11px}.customer-dialog .dialog-header .btn,.customer-dialog .dialog-header .icon-btn{color:white!important;border:1px solid #50627d;background:transparent;min-height:44px}
 .customer-dialog form>.form-grid{padding:20px 16px;display:grid;grid-template-columns:minmax(0,1fr);gap:18px}.customer-dialog .form-grid label{display:grid;gap:7px}.customer-dialog .form-grid .full{grid-column:1/-1;min-width:0}.customer-dialog .form-grid .field-check{display:flex!important}
 .customer-dialog .dialog-footer{position:sticky;bottom:0;z-index:19;display:flex;gap:10px;padding:12px 16px calc(12px + env(safe-area-inset-bottom));background:#fff;border-top:1px solid #dfe7ef;margin:0;flex-wrap:wrap}.customer-dialog .dialog-footer>.btn{flex:1;min-width:120px}
 .customer-dialog .form-error,.customer-dialog .form-help{margin:12px 16px;font-size:14px;line-height:1.6}.customer-dialog .form-error:empty{display:none}
 body:not(.auth-pending) #compact-dialog{padding:0}.customer-dialog #compact-dialog-body{padding:16px}
 .compact-customer-dialog #s-detail{padding:20px 16px!important;background:transparent}.compact-customer-dialog #s-detail>h2{font-size:27px;line-height:1.3;letter-spacing:-.6px;margin:14px 0 9px;overflow-wrap:anywhere}.compact-customer-dialog .detail-meta{font-size:14px;color:#46556f;line-height:1.7}.compact-customer-dialog .detail-top{gap:10px}
 .mobile-customer-actions{display:flex;flex-wrap:wrap;gap:10px;margin:18px 0}.mobile-customer-actions .btn{flex:1;min-width:120px}.mobile-customer-actions [data-action=plan]{order:3;flex-basis:100%;background:white!important;color:#0b49d0!important;border:1px solid #c7d8f5!important}.mobile-customer-actions [data-gm-customer]{background:#0b49d0!important;color:white!important;border:1px solid #0b49d0!important}
 body:not(.auth-pending) .mobile-customer-tabs{display:flex;background:white;border-bottom:1px solid #dfe7f1;margin:0 0 18px;position:sticky;top:72px;z-index:10;overflow-x:auto}
 .mobile-customer-tabs .btn{flex:1;min-width:max-content;border:0;border-bottom:3px solid transparent;border-radius:0;font-size:13px!important;padding:12px 10px!important;color:#46556f!important}.mobile-customer-tabs .btn[aria-pressed=true]{color:#0b49d0!important;border-bottom-color:#0b49d0}
 #s-detail [data-mobile-customer-pane]{display:none!important}
 #s-detail[data-mobile-tab=info] [data-mobile-customer-pane=info],#s-detail[data-mobile-tab=visits] [data-mobile-customer-pane=visits],#s-detail[data-mobile-tab=offers] [data-mobile-customer-pane=offers],#s-detail[data-mobile-tab=other] [data-mobile-customer-pane=other]{display:block!important}
 .compact-customer-dialog .detail-info,.compact-customer-dialog .note-form,.compact-customer-dialog .note-log,.compact-customer-dialog .v2-block{background:#fff;border:1px solid #e0e7f1;border-radius:14px;padding:18px;margin:14px 0}.detail-info dt{font-size:12px;color:#46556f}.detail-info dd{font-size:16px;line-height:1.6;margin:5px 0 16px;overflow-wrap:anywhere}.detail-info .call-link{display:inline-flex;align-items:center;min-height:44px}
 .note-form h3,.note-log h3,.v2-block h3{font-size:18px;line-height:1.4}.note-form{gap:14px}.note-form .detail-fields{display:grid;grid-template-columns:1fr;gap:14px}.mobile-record-visit{width:100%;margin-top:18px}.log-item,.v2-mini{font-size:15px;line-height:1.6;padding:15px 0}.detail-fields{grid-template-columns:1fr}
 /* Trip detail: a numbered stop sequence with clear actions. */
 .field-trip-summary{background:#fff;border:1px solid #e0e7f1;padding:18px;border-radius:14px}.field-trip-summary h3{font-size:24px!important;margin:12px 0;line-height:1.3}.field-trip-summary p{font-size:14px;line-height:1.6}.field-trip-summary>.btn{font-size:14px!important;min-height:48px!important;margin:8px 0 0;width:100%}
 .field-stop[data-step]{position:relative;padding:18px 16px 18px 50px;border:1px solid #dfe7f1;border-radius:14px;background:#fff;margin:0;min-width:0}.field-stop[data-step]::before{content:attr(data-step);position:absolute;top:20px;left:14px;width:25px;height:25px;border-radius:50%;display:grid;place-items:center;color:#0b49d0;background:#e8f0ff;font-size:13px;font-weight:700}.field-stop[data-status=completed]::before{background:#daf6e6;color:#148d4d}.field-stop[data-step] strong{font-size:18px;line-height:1.4}.field-stop[data-step] p{font-size:14px;line-height:1.6}.field-stop .field-actions{gap:8px}.field-stop .field-actions .btn{flex:1 1 120px;font-size:14px!important;padding:10px!important;min-height:48px}.field-stop .field-actions [data-field=directions]{background:#0b49d0;color:white!important;border-color:#0b49d0}.field-timeline{padding:16px;background:white;border:1px solid #e0e7f1;border-radius:14px}.field-timeline h3{font-size:18px}
 /* Route preview stays inside the app. */
 body:not(.auth-pending) .gm-dialog[open]{padding:0 16px calc(20px + env(safe-area-inset-bottom))}
 .gm-dialog-head{position:sticky;top:0;z-index:10;background:#12233f;color:white;margin:0 -16px 18px;padding:16px;align-items:center;min-height:76px}.gm-dialog-head h2{font-size:22px;line-height:1.3}.gm-dialog-head .btn{background:transparent;border-color:#536581;color:white!important;min-width:44px}.gm-eyebrow{font-size:10px;color:#cad7ec}
 .gm-route-form{grid-template-columns:1fr 1fr;gap:10px}.gm-route-form label{grid-column:1/-1;font-size:13px}.gm-route-form .btn{font-size:13px!important;min-height:48px!important;padding:10px!important}
 .gm-route-summary{font-size:23px!important;padding:14px 0;margin:0;min-height:0}.gm-route-summary:empty{display:none}
 .gm-route-layout{display:grid;grid-template-columns:1fr;gap:0}.gm-route-map{height:44dvh;min-height:300px;border-radius:14px 14px 0 0;overflow:hidden}
 .gm-step-details{display:block;background:white;border:1px solid #dfe7f1;border-radius:0 0 14px 14px;padding:0 16px}.gm-step-details>summary{display:flex;min-height:58px;align-items:center;justify-content:space-between;font-size:16px;font-weight:700;cursor:pointer;list-style:none}.gm-step-details>summary::after{content:'+';font-size:22px;color:#0b49d0}.gm-step-details[open]>summary::after{content:'−'}.gm-step-details>summary::-webkit-details-marker{display:none}.gm-step-details:not([open])>.gm-directions{display:none}.gm-directions{padding:0;max-height:none}.gm-directions li{font-size:15px;line-height:1.65;padding:16px 4px}.gm-directions small{font-size:13px!important}.gm-route-foot{font-size:12px!important;line-height:1.6;padding:0 2px}
 /* Expenses retain their actual approval-based balance semantics. */
 .expense-filters{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:18px 0}.expense-filters label{display:grid;min-width:0;font-size:13px!important}.expense-filters select{font-size:16px;min-height:48px}
 #ws-expenses .ws-stats{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:0 0 18px}#ws-expenses .ws-stats article{background:white;border:1px solid #dfe7f1;border-radius:14px;padding:16px!important}#ws-expenses .ws-stats span{font-size:12px}#ws-expenses .ws-stats strong{font-size:25px;overflow-wrap:anywhere}#ws-expenses .ws-stats article:last-child{background:#e9f1ff;color:#0b49d0}
 #ws-expenses .expense-actions .btn,.compact-heading-actions .expense-actions .btn{font-size:13px;min-height:44px!important;padding:10px}.expense-actions{gap:8px}.expense-proof{padding:16px;background:#fff;border-radius:12px}.expense-proof>strong{font-size:15px}.expense-proof .expense-actions{flex-wrap:wrap}.expense-proof .expense-actions .btn{font-size:14px;min-height:48px}
 /* Team map and secondary actions. */
 .location-map{height:43dvh;min-height:310px;border-radius:14px;overflow:hidden}.location-filters{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:16px 0}.location-filters>label{min-width:0;font-size:13px}.location-filters>.btn{font-size:13px!important;padding:10px}.location-filters input,.location-filters select{min-width:0}.location-actions{gap:8px;flex-wrap:wrap}
 #location-people{display:grid;grid-template-columns:1fr;gap:12px}#location-people>.field-row{border:1px solid #e0e7f1;border-radius:14px;background:white;padding:17px}#location-people .field-row strong{font-size:18px}#location-people .field-row p,#location-people .field-row small{font-size:14px!important}#location-people .location-actions .btn{font-size:13px;min-height:44px}.location-consent{background:white;border:1px solid #e0e7f1;border-radius:14px;padding:18px}.location-consent h3{font-size:20px}.location-consent p{font-size:15px;line-height:1.7}.location-consent>label{display:grid;gap:8px;margin:16px 0}.location-consent .field-check{display:flex!important;gap:10px}
 #compact-location-map>.ws-panel-head{flex-wrap:wrap}#compact-location-map h3{font-size:18px}#compact-location-map>.ws-panel-head .location-actions{width:100%;display:flex}#compact-location-map>.ws-panel-head .location-actions .btn{min-width:44px;min-height:44px}
 .mobile-more-profile{display:flex!important;align-items:center;gap:14px;background:#fff;padding:18px;border:1px solid #e0e7f1;border-radius:14px;margin-bottom:18px}.mobile-more-profile:empty{display:none!important}.mobile-more-profile .ws-avatar{width:48px;height:48px;font-size:17px;background:#e9f1ff;color:#0b49d0}.mobile-more-profile strong{display:block;font-size:18px}.mobile-more-profile small{display:block;color:#46556f;margin-top:4px}
 body:not(.auth-pending) .mobile-more-menu{display:grid;background:white;border:1px solid #e0e7f1;border-radius:14px;padding:0 16px;margin-bottom:18px}
 .mobile-more-menu button{display:flex;align-items:center;gap:14px;min-height:62px;padding:15px 0;background:none;border:0;border-bottom:1px solid #edf1f7;text-align:left;font:500 16px/1.5 NesaInter,system-ui;color:#12233f;width:100%}.mobile-more-menu button:last-child{border:0}.mobile-more-menu button>.ws-icon:first-child{color:#0b49d0}.mobile-more-menu span{flex:1}.mobile-more-menu button>.ws-icon:last-child{width:17px;color:#8295af}
 #ws-more>h2{display:none}.mobile-settings-details{background:white;border:1px solid #e0e7f1;border-radius:14px;padding:0 16px;margin-bottom:18px}.mobile-settings-details>summary{display:flex;align-items:center;min-height:62px;font-size:15px;font-weight:600;color:#345274;cursor:pointer}.mobile-settings-details:not([open])>.ws-more-grid{display:none}.ws-more-grid{display:grid;grid-template-columns:1fr;gap:16px;margin:10px 0 20px}.ws-more-grid>article{border:0;padding:0;border-radius:0}.ws-more-grid>article h3{font-size:16px}.ws-more-grid button{font-size:15px;min-height:48px;padding:13px 0}.ws-more-grid summary{font-size:14px;padding:14px 0}.ws-queue-panel{font-size:14px}.ws-queue-panel>p{font-size:13px}#ws-more>[data-ws-logout]{width:100%;color:#b63239!important;background:white;border:1px solid #ecd8d8}
 /* Compact phone layout: retain scrolling for real content, avoid empty chrome. */
 .ws-heading #ws-date{display:none}
 .ws-heading h1{margin:0!important;font-size:24px!important}
 .ws-heading-actions>.ws-pill{display:none}
 body.ws-customer-screen #sales-view>.intro{display:none!important}
 .compact-heading-actions #s-add{font-size:13px!important;min-height:44px!important;padding:9px 11px!important}
 .sales-filters .mobile-filter-details>.label-toggle{display:flex!important;flex-direction:row;align-items:center;gap:8px}
 .sales-filters .mobile-filter-details:not([open])>.label-toggle{display:none!important}
 body:not(.auth-pending) [data-compact-tabs=customers]{align-items:center;gap:3px;margin-bottom:10px}
 body:not(.auth-pending) [data-compact-tabs=customers]>.btn{flex:0 1 auto;min-width:70px}
 [data-compact-tabs=customers]>#s-visible-count{margin-left:auto;padding:0 6px;font-size:11px;white-space:nowrap}
 .customer-list-card .list-heading{display:none}
 body:not(.auth-pending) .mobile-card-table .mobile-empty-value{display:none!important}
 #s-customer-rows>tr{grid-template-columns:minmax(0,1fr) auto auto;align-items:center}
 #s-customer-rows>tr>td:first-child{grid-column:1/-1}
 #s-customer-rows>tr>td:nth-child(2){grid-column:1;grid-row:2}
 #s-customer-rows>tr>td:nth-child(3){grid-column:2;grid-row:2}
 #s-customer-rows>tr>td:nth-child(5){grid-column:3;grid-row:2}
 #s-customer-rows>tr>td:nth-child(4){grid-column:1/-1}
 #s-customer-rows>tr>td:nth-child(2)::before,#s-customer-rows>tr>td:nth-child(3)::before,#s-customer-rows>tr>td:nth-child(5)::before{display:none}
 #s-customer-rows>tr>td:nth-child(2)>small{display:inline!important;margin:0 0 0 7px}
 body:not(.auth-pending) .mobile-card-table .company-link{min-height:44px}
 #s-customer-rows .status-badge{font-size:11px!important;padding:4px 7px;max-width:110px}
 .compact-pager:not(:has(button)){padding:4px 0!important;margin:0!important;color:#46556f}
 .mobile-next.is-empty>p{display:none}
 .mobile-more-profile{padding:12px;gap:10px;margin-bottom:8px}
 .mobile-more-profile .ws-avatar{width:40px;height:40px;font-size:15px}
 body:not(.auth-pending) .mobile-account-actions{display:flex;gap:8px;margin-bottom:12px;flex-wrap:wrap}
 .mobile-account-actions .btn{flex:1;min-width:130px;min-height:44px!important;font-size:13px!important;padding:9px 10px!important}
 .mobile-account-actions [data-ws-logout]{color:#b63239!important;border-color:#ecd8d8}
 body:not(.auth-pending) .mobile-more-menu{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:0;border:0;background:none;margin-bottom:12px}
 .mobile-more-menu button{min-height:68px;padding:12px;gap:8px;background:white;border:1px solid #e0e7f1!important;border-radius:12px;font-size:14px;overflow-wrap:anywhere}
 .mobile-more-menu button>.ws-icon:last-child{display:none}
 .mobile-settings-details{margin-bottom:12px}.mobile-settings-details>summary{min-height:48px;font-size:14px}
 #field-queue-panel .ws-panel-head h3{font-size:14px}#field-queue-panel .btn{min-height:44px;font-size:13px}
 .mobile-form-section{font-size:16px;margin:6px 0 0;padding:12px 0 0;border-top:1px solid #dfe7ef;line-height:1.4}
 .mobile-form-section:first-child{border:0;padding-top:0;margin:0}
 .customer-dialog form>.form-grid{gap:14px;padding-top:16px;padding-bottom:16px}
 .mobile-trip-route:empty{display:none!important}
 .mobile-trip-route{display:block;font-size:13px;color:#46556f;line-height:1.5;margin-top:6px;overflow-wrap:anywhere}
 @media(max-width:359px){body:not(.auth-pending) main{padding-left:12px;padding-right:12px}.mobile-today-stats article{padding:12px;gap:8px}.mobile-today-stats article>.ws-icon{width:26px!important;height:26px!important}.mobile-plan-stop{gap:7px}.ws-mobile-nav button{font-size:10px}.mobile-chips button{font-size:12px;padding:10px}.mobile-customer-tabs .btn{padding:12px 8px!important}.mobile-card-table>tbody>tr{padding:14px;gap:10px}}
}
@media print{.mobile-only,.mobile-list-tools,.mobile-customer-tabs,.mobile-record-search{display:none!important}.mobile-filter-details:not([open])>*:not(summary),.mobile-settings-details:not([open])>.ws-more-grid,.gm-step-details:not([open])>.gm-directions{display:block}}
/* NESA mobile: grouped surfaces, consistent vector icons, restrained native-style motion. */
@media screen and (max-width:767px){
 body:not(.auth-pending){--mobile-radius:18px;--mobile-separator:#e7edf5;--mobile-surface:#fff;font-family:-apple-system,BlinkMacSystemFont,NesaInter,system-ui,sans-serif;letter-spacing:-.15px}
 body:not(.auth-pending) main{padding-left:16px;padding-right:16px}
 body:not(.auth-pending) .ws-icon{fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round;width:21px;height:21px;min-width:0;max-width:none;display:inline-block;vertical-align:middle;flex-shrink:0}
 .ws-heading{min-height:44px}.ws-heading h1{letter-spacing:-.8px!important;font-weight:750}
 body:not(.auth-pending) .btn,body:not(.auth-pending) .icon-btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;letter-spacing:-.15px;transition:background-color .16s,transform .16s;border-radius:12px}
 body:not(.auth-pending) .btn:active,.mobile-more-menu button:active,.mobile-task-list button:active{transform:scale(.98)}
 body:not(.auth-pending) input,body:not(.auth-pending) select,body:not(.auth-pending) textarea{border-color:#e5eaf2;border-radius:13px}
 body:not(.auth-pending) input[type=search]{background:#fff;box-shadow:0 1px 2px #12233f02}
 body:not(.auth-pending) .mobile-overview-switch{background:#e9eef6;border:0;padding:4px;border-radius:13px;gap:3px;margin-bottom:14px}
 .mobile-overview-switch button{min-height:40px;font-size:13px;border-radius:10px}
 .mobile-overview-switch button[aria-pressed=true]{color:#fff;background:#0b49d0;box-shadow:0 3px 8px #0b49d020}
 .mobile-overview-switch button[aria-pressed=true] .ws-icon{color:#fff}
 .mobile-welcome{margin-bottom:12px}.mobile-welcome h2{font-weight:750;letter-spacing:-.65px;margin-bottom:4px}.mobile-welcome p{font-size:12px}
 .mobile-today-stats{gap:10px;margin-bottom:12px}.mobile-today-stats article{border:1px solid #e7edf5;border-radius:16px;padding:10px 12px;gap:10px;min-height:64px;box-shadow:0 2px 4px #12233f02}
 .mobile-today-stats article>.ws-icon,.mobile-today-stats article+article>.ws-icon{background:#eef4ff;color:#0b49d0;width:34px!important;height:34px!important;padding:7px;border-radius:11px}
 .mobile-today-stats strong{font-size:23px;font-weight:750}.mobile-today-stats span{font-size:12px}
 .mobile-next{border-radius:18px;border-color:#e4eaf4;box-shadow:0 3px 10px #12233f04;padding:14px}
 .mobile-next h3{font-size:20px;font-weight:750;letter-spacing:-.5px}.mobile-next .mobile-caption{font-size:11px;font-weight:600}
 .mobile-next.is-empty{display:flex;align-items:center;gap:12px;min-height:120px}
 .mobile-empty-icon{width:54px;height:54px;flex:none;border-radius:50%;display:grid;place-items:center;color:#0b49d0;background:#eef4ff}
 body:not(.auth-pending) .mobile-empty-icon .ws-icon{width:31px;height:31px;stroke-width:1.6}
 .mobile-empty-content{flex:1;min-width:0}.mobile-next.is-empty h3{font-size:18px;margin:4px 0 10px}.mobile-next.is-empty .btn{min-height:42px!important;padding:8px 12px!important;font-size:13px;justify-content:space-between}
 .mobile-plan-card{padding:12px 14px;border-radius:18px;box-shadow:none}.mobile-section-head h3{font-size:15px;font-weight:700}.mobile-section-head .btn{font-size:12px!important;min-height:36px!important}
 .mobile-plan-card .mobile-empty{font-size:13px;padding:8px 0 6px}.mobile-add-visit{min-height:42px!important;font-size:13px!important;margin-top:8px;background:#f7faff;border-color:#e3ebf9}
 .mobile-plan-stop{min-height:58px;font-size:13px}.mobile-plan-stop strong{font-size:13px}.mobile-plan-stop small{font-size:11px!important}
 .mobile-work-section{margin:14px 0 12px}.mobile-work-section>h3{font-size:16px;font-weight:750;letter-spacing:-.3px;margin:0 0 8px}
 .mobile-task-list{border:1px solid #e4eaf3;border-radius:16px;background:#fff;overflow:hidden}
 .mobile-task-list>button{display:flex;align-items:center;gap:10px;width:100%;min-height:46px;background:#fff;border:0;padding:8px 12px;text-align:left;color:#12233f;font:500 13px/1.4 NesaInter,system-ui}
 .mobile-task-list>button+button{border-top:1px solid #edf1f7}.mobile-task-list>button>span:nth-child(2){flex:1}.mobile-task-list strong{font-size:14px;color:#46556f;font-weight:600;min-width:14px;text-align:right}
 .mobile-task-icon{display:flex;color:#0b49d0}.mobile-task-list>button>.ws-icon:last-child{width:15px;height:15px;color:#8b9bb2}
 .mobile-admin-tasks:empty{display:none}.mobile-admin-tasks{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:8px}.mobile-admin-tasks .btn{font-size:12px!important;background:#fff;min-height:44px!important;padding:8px!important}.mobile-admin-tasks .btn:only-child{grid-column:1/-1}
 .mobile-quick-links{gap:10px}.mobile-quick-links .btn{font-size:13px;min-height:44px!important;padding:9px 10px!important;border-radius:12px}
 .ws-mobile-nav{background:#fffffff2!important;backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);box-shadow:0 -2px 14px #12233f05!important;border-top-color:#e4eaf3!important}
 .ws-mobile-nav button{position:relative;min-height:58px;font-size:10px;font-weight:550;background:transparent!important;gap:4px;border-radius:10px}
 .ws-mobile-nav button.active{color:#0b49d0!important;font-weight:700}.ws-mobile-nav button.active::after{content:'';position:absolute;bottom:1px;left:calc(50% - 12px);width:24px;height:3px;border-radius:4px;background:#0b49d0}
 .ws-mobile-nav svg{stroke-linecap:round;stroke-linejoin:round;stroke-width:1.75!important}
 body:not(.auth-pending) .mobile-customer-filters{display:flex;align-items:center;gap:7px;margin:0 0 10px}
 body:not(.auth-pending) .mobile-customer-filters>.btn{flex:1;min-width:0;min-height:36px!important;padding:7px 10px!important;font-size:12px!important;background:#fff;border-color:#e4eaf4;border-radius:20px;color:#526582}
 body:not(.auth-pending) .mobile-customer-filters>.btn[aria-pressed=true]{background:#0b49d0;border-color:#0b49d0;color:#fff}
 .sales-filters>.search-filter{margin-bottom:10px}.sales-filters .mobile-filter-details{background:#fff;border-radius:13px;border-color:#e5eaf3;padding-bottom:0}
 .mobile-filter-details>summary{font-size:13px;min-height:44px}.mobile-filter-details>summary::after{color:#8190a9;font-size:18px}
 body:not(.auth-pending) .compact-tabs{background:#e9eef6;border-radius:12px}.compact-tabs .ws-icon{width:17px!important;height:17px!important}
 body:not(.auth-pending) .compact-tabs .btn[aria-pressed=true]{background:#fff!important;color:#0b49d0!important}
 body:not(.auth-pending) .mobile-card-table>tbody>tr{border-radius:18px;border-color:#e4eaf3;background:#fff;box-shadow:0 2px 7px #12233f03;padding:14px;gap:7px}
 #s-customer-rows>tr.selected{background:#fff!important;border-color:#c6d9fa}
 body:not(.auth-pending) #s-customer-rows>tr>td:first-child{display:grid!important;grid-template-columns:44px minmax(0,1fr);align-items:center;column-gap:10px}
 body:not(.auth-pending) .mobile-company-avatar{grid-column:1;grid-row:1/3;display:grid;place-items:center;width:44px;height:44px;border-radius:14px;background:#edf3ff;color:#245ac0}
 body:not(.auth-pending) .mobile-company-avatar .ws-icon{width:25px;height:25px;stroke-width:1.5}
 body:not(.auth-pending) #s-customer-rows .company-link{grid-column:2;font-size:16px!important;line-height:1.35;font-weight:700;letter-spacing:-.35px;min-height:44px}
 #s-customer-rows td:first-child>small,#s-customer-rows td:first-child>.sample-badge{grid-column:2}
 #s-customer-rows>tr>td:nth-child(2){font-size:12px!important}#s-customer-rows>tr>td:nth-child(2)>small{font-size:12px!important}
 .mobile-card-table .plan-btn{background:#f4f7fc;border-color:#e3eaf4;width:40px!important;min-height:44px!important;display:inline-flex;align-items:center;justify-content:center;padding:9px!important}
 .mobile-card-table .plan-btn .ws-icon{width:18px;height:18px}
 body:not(.auth-pending) .mobile-card-table td.mobile-row-actions{display:flex!important;grid-column:1/-1;gap:0;border-top:1px solid #edf1f7!important;padding-top:8px!important;margin-top:5px;align-items:stretch;justify-content:space-between}
 .mobile-row-actions>a,body:not(.auth-pending) .mobile-row-actions>.btn{flex:1;display:inline-flex;align-items:center;justify-content:center;gap:5px;min-width:0;min-height:44px!important;padding:8px 2px!important;border:0!important;background:none!important;border-radius:8px;text-decoration:none;color:#0b49d0!important;font:600 12px/1.3 NesaInter,system-ui!important}
 .mobile-row-actions>*+*{border-left:1px solid #edf1f7!important}.mobile-row-actions .ws-icon{width:17px!important;height:17px!important}.mobile-row-actions::before{display:none!important}
 body:not(.auth-pending) .mobile-more-profile{border-radius:18px 18px 0 0;margin:0;padding:14px;border-bottom:0;gap:12px}.mobile-more-profile .ws-avatar{width:44px;height:44px;border-radius:50%;background:#e5eeff;color:#245ac0;font-weight:700;font-size:16px}
 .mobile-more-profile strong{font-size:17px;font-weight:750}.mobile-more-profile small{font-size:12px;margin-top:3px}
 body:not(.auth-pending) .mobile-account-actions{border:1px solid #e0e7f1;border-top:0;border-radius:0 0 18px 18px;padding:0 12px 12px;margin:0 0 14px;background:#fff;gap:8px}
 .mobile-account-actions .btn{font-size:12px!important;min-width:0;padding:8px!important;background:#fff;min-height:44px!important}.mobile-account-actions .ws-icon{width:17px;height:17px}
 body:not(.auth-pending) .mobile-more-menu{gap:9px;margin-bottom:14px}
 .mobile-more-menu button{min-height:70px;border-radius:16px;padding:11px;gap:9px;font-size:12px;font-weight:600;letter-spacing:-.2px}
 .mobile-more-menu button>.ws-icon:first-child{width:34px!important;height:34px!important;min-width:34px;padding:7px;border-radius:11px;background:#edf3ff;color:#0b49d0;stroke-width:1.7}
 .mobile-more-menu button>.ws-icon:last-child{display:none}.mobile-more-menu button>span{min-width:0}
 .mobile-settings-details{border-radius:15px;padding:0 14px}.mobile-settings-details>summary{font-size:13px;min-height:48px}
 #field-queue-panel{background:#fff;border:1px solid #e2e9f4;border-radius:15px;padding:12px 14px;margin:12px 0}
 #field-queue-panel .ws-panel-head{align-items:center;margin:0 0 6px}#field-queue-panel h3{margin:0;font-size:13px!important}#field-queue-panel .btn{font-size:12px!important;min-height:40px!important;padding:8px!important}#field-queue-panel .minor{font-size:12px;line-height:1.5}
 #field-queue-panel .form-error{font-size:12px;line-height:1.6;color:#a13e39;margin:8px 0 0}
 #field-backup-panel{border:1px solid #e2e9f4;border-radius:15px;background:#fff;padding:12px 14px;margin:12px 0}#field-backup-panel h3{font-size:13px;margin:0}
 #field-backup-panel .ws-panel-head{margin:0;align-items:center}#field-backup-panel .btn{font-size:12px!important;min-height:40px!important;padding:8px!important}
 #sales-view>.demo-banner{background:transparent;border:0;padding:3px 0;font-size:10px;color:#7c8ca4;margin-bottom:8px}
 .sales-map-card .toolbar{flex-wrap:wrap;padding:12px;gap:8px}.sales-map-card .toolbar h2{font-size:15px}.sales-cargo-controls{display:flex;gap:8px;flex-wrap:wrap;width:100%;font-size:12px}.sales-cargo-controls label{min-width:0}
 .sales-cargo-controls select{max-width:160px;width:auto!important}.sales-cargo-controls input[type=checkbox]{width:20px!important;min-height:20px!important;height:20px!important}
 body:not(.auth-pending) .sales-map-card .map-scroll{overflow:visible;min-height:0;max-height:none;padding:10px 4px}
 body:not(.auth-pending) #sales-map{width:100%!important;min-width:0!important;max-width:100%;height:auto;display:block}
 .sales-map-legend{flex-wrap:wrap;gap:7px;font-size:10px}.sales-map-card .map-footnote{font-size:11px;padding:12px;line-height:1.6}
 .mobile-list-tools{gap:9px}.mobile-chips button{font-size:12px;min-height:38px;padding:8px 11px;border-radius:11px}.mobile-chips button[aria-pressed=true]{box-shadow:0 2px 5px #0b49d018}
 #field-trip-list>.field-row,#field-visit-list>.field-row,.compact-list .field-row{border-radius:18px;border-color:#e4eaf3}
 #field-trip-list .field-row strong{font-size:17px;font-weight:700;letter-spacing:-.35px}#field-trip-list .field-row p{font-size:12px}
 #field-trip-list>.field-row>.btn{font-size:13px;min-height:44px;border-radius:11px}.mobile-trip-add{width:100%;background:#fff!important;border-color:#d6e3fa!important;color:#0b49d0!important}
 #field-trip-list .mobile-trip-empty .mobile-trip-progress{display:none}
 .mobile-trip-route{font-size:12px;line-height:1.6}.mobile-trip-progress{font-size:12px}
 .customer-dialog>.dialog-header,.gm-dialog-head{box-shadow:0 3px 12px #12233f0c}.customer-dialog .dialog-header .btn{border-radius:10px}.customer-dialog .dialog-footer{backdrop-filter:blur(16px);background:#ffffffed}
 .personnel-section,.vehicle-management,.vehicle-data p,.field-trip-summary,.field-stop[data-step],.location-consent{border-radius:17px}
 #v3-today>.v2-block{border:1px solid #e3eaf4;border-radius:17px;background:#fff;padding:16px;margin-top:14px}#v3-today>.v2-block h3{font-size:17px;margin-top:0}#v3-today .btn{margin-top:10px}#v3-today .v3-task{border-radius:15px;background:#fff;padding:14px;margin:10px 0}#v3-today .v3-task h3{font-size:17px}#v3-today .v3-task-actions{display:flex;gap:8px;flex-wrap:wrap}
 @media(max-width:359px){.mobile-more-menu button{padding:10px 8px;gap:7px}.mobile-more-menu button>.ws-icon:first-child{width:29px!important;height:29px!important;min-width:29px;padding:6px}.mobile-row-actions>a,.mobile-row-actions>.btn{font-size:11px!important;gap:4px}.mobile-customer-filters>.btn{padding:7px 6px!important}}
}
@media(prefers-reduced-motion:reduce){.btn,.icon-btn,.mobile-task-list button,.mobile-more-menu button{transition:none!important;transform:none!important}}
@media print{.mobile-row-actions,.mobile-customer-filters,.mobile-work-section,.mobile-company-avatar,.mobile-trip-add{display:none!important}}
/* Map view fills the available viewport after controls, status and bottom navigation. */
@media screen and (max-width:767px){
 body.mobile-overview-map[data-current-screen=overview]:not(.auth-pending){height:100dvh;display:flex;flex-direction:column}
 body.mobile-overview-map[data-current-screen=overview]:not(.auth-pending) main{flex:1;min-height:0;display:flex;flex-direction:column}
 body.mobile-overview-map[data-current-screen=overview] #ws-overview{flex:1;min-height:0;display:flex;flex-direction:column}
 body.mobile-overview-map[data-current-screen=overview] .mobile-overview-switch,
 body.mobile-overview-map[data-current-screen=overview] #nesa-workspace-content{flex:none}
 body.mobile-overview-map[data-current-screen=overview] #ws-overview>.hm-workspace{flex:1;min-height:0;height:auto;max-height:none;grid-template-columns:minmax(0,1fr)}
 body.mobile-overview-map[data-current-screen=overview] .hm-map-panel{min-height:0;height:100%}
 body.mobile-overview-map[data-current-screen=overview] .hm-toolbar,
 body.mobile-overview-map[data-current-screen=overview] .mobile-filter-details,
 body.mobile-overview-map[data-current-screen=overview] .hm-map-caption{flex:none}
 body.mobile-overview-map[data-current-screen=overview] .hm-canvas{min-height:0}
}
/* Native desktop selects keep their behavior; phone filters use a bounded app sheet. */
@media screen and (max-width:767px){
 body:not(.auth-pending) .mobile-select-native{display:none!important}
 body:not(.auth-pending) .mobile-select-trigger{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;min-width:0;min-height:48px;padding:11px 12px;border:1px solid #e5eaf2;border-radius:13px;background:#fff;color:#12233f;text-align:left;font:400 16px/1.5 NesaInter,system-ui}
 .mobile-select-trigger>span{min-width:0;overflow-wrap:anywhere}.mobile-select-trigger>.ws-icon{width:16px!important;height:16px!important;transform:rotate(90deg);color:#8090a7}
 .mobile-select-trigger:disabled{opacity:.5}.mobile-select-trigger:focus-visible{outline:3px solid #84adff;outline-offset:2px}
 dialog.mobile-picker-dialog[open]{position:fixed;inset:auto 0 0;display:flex;flex-direction:column;gap:0;width:100%;max-width:100%;max-height:min(78dvh,640px);margin:0;padding:8px 16px max(16px,env(safe-area-inset-bottom));border:0;border-radius:22px 22px 0 0;background:#f4f6fa;color:#12233f;box-sizing:border-box;overflow:hidden;box-shadow:0 -8px 40px #12233f1a}
 .mobile-picker-dialog::backdrop{background:#12233f55;backdrop-filter:blur(3px)}
 .mobile-picker-handle{width:34px;height:4px;border-radius:4px;background:#cad3e0;align-self:center;margin:0 0 8px;flex:none}
 .mobile-picker-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex:none;margin:0 0 10px}
 .mobile-picker-head h2{font:700 20px/1.35 NesaInter,system-ui;letter-spacing:-.5px;margin:0}
 body:not(.auth-pending) .mobile-picker-head .btn{font-size:14px;min-height:44px;padding:8px 12px;border:0;background:#e9eff9;color:#0b49d0}
 .mobile-picker-search-label{position:absolute;width:1px;height:1px;clip:rect(0,0,0,0);overflow:hidden}
 body:not(.auth-pending) #mobile-picker-search{flex:none;margin:0 0 12px;width:100%;min-width:0;min-height:46px;font-size:16px;background:#fff}
 #mobile-picker-options{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;border-radius:14px;background:#fff;scrollbar-width:thin}
 #mobile-picker-options>button{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;min-width:0;min-height:48px;padding:12px 14px;border:0;border-bottom:1px solid #edf1f7;background:#fff;color:#12233f;text-align:left;font:400 16px/1.5 NesaInter,system-ui;overflow-wrap:anywhere}
 #mobile-picker-options>button:last-child{border:0}#mobile-picker-options>button[aria-selected=true]{background:#edf3ff;color:#0b49d0;font-weight:600}#mobile-picker-options>button:disabled{color:#94a3b8;background:#f8f9fb}
 #mobile-picker-options>button:focus-visible{outline:3px solid #84adff;outline-offset:-3px}#mobile-picker-options .ws-icon{width:19px;height:19px;color:#0b49d0}
 .mobile-picker-empty{padding:22px 14px;color:#46556f;font-size:14px}
}
/* Keep personnel identity and actions in explicit rows; column wrapping moved actions outside the phone. */
@media screen and (max-width:767px){
 #field-people-list{grid-template-columns:minmax(0,1fr);min-width:0}
 #field-people-list .team-person-row{display:grid;grid-template-columns:minmax(0,1fr);align-content:start;gap:10px;min-width:0;max-width:100%;height:auto;margin:0}
 #field-people-list .team-person-info{min-width:0;width:auto}
 #field-people-list .team-person-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:auto;min-width:0;gap:8px}
 #field-people-list .team-person-actions .btn{width:100%;min-width:0;margin:0;white-space:normal;overflow-wrap:anywhere}
 #field-people-list .team-person-actions [data-personnel=open]{grid-column:1/-1}
 body:not(.auth-pending) .compact-tabs button{display:flex;align-items:center;justify-content:center;gap:6px;white-space:normal;min-width:0}
 body:not(.auth-pending) .compact-tabs button[aria-pressed=true]{background:#fff!important;color:#0b49d0!important}
 #mobile-select-panel{display:flex;flex-direction:column;min-height:0;flex:1}
 #mobile-date-panel{overflow-y:auto;min-height:0;overscroll-behavior:contain}
 .mobile-calendar-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px}
 .mobile-calendar-head strong{text-align:center;font-size:16px}
 body:not(.auth-pending) .mobile-calendar-head .btn{min-width:44px;padding:6px;font-size:24px;background:#fff}
 .mobile-calendar-week,.mobile-calendar-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px;text-align:center}
 .mobile-calendar-week{font-size:12px;color:#46556f;padding:5px 0}
 .mobile-calendar-days>button{min-width:0;min-height:44px;padding:5px 0;border:0;border-radius:10px;background:#fff;color:#12233f;font:500 16px/1.4 NesaInter,system-ui}
 .mobile-calendar-days>button[aria-current=date]{box-shadow:inset 0 0 0 1px #0b49d0}
 .mobile-calendar-days>button[aria-pressed=true]{background:#0b49d0;color:#fff;font-weight:700}
 .mobile-calendar-days>button:disabled{opacity:.35;background:transparent}
 .mobile-calendar-days>button:focus-visible{outline:3px solid #84adff;outline-offset:-3px}
 .mobile-date-time{display:flex;align-items:end;justify-content:center;gap:10px;margin-top:14px}
 .mobile-date-time label{display:grid;gap:4px;min-width:0;font-size:12px!important;color:#46556f}
 body:not(.auth-pending) .mobile-date-time input{width:76px;max-width:100%;min-width:0;padding:8px;text-align:center;background:#fff;border:1px solid #e0e7f1}
 .mobile-date-time>span{padding-bottom:12px}.mobile-date-time>small{font-size:11px!important;padding-bottom:13px}
 #mobile-date-error{color:#a12b38;font-size:13px;margin-top:8px}#mobile-date-error:empty{display:none}
 .mobile-date-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px;padding-bottom:2px}
 body:not(.auth-pending) .mobile-date-actions .btn{flex:1;min-width:0;padding:10px 8px;font-size:13px;white-space:nowrap}
 @media(max-width:359px){body:not(.auth-pending) .mobile-date-actions [data-mobile-date-apply]{flex-basis:100%}}
}
/* The hidden legacy signout node remains for existing session lifecycle handlers. */
body .nesa-session-header #nesa-signout{display:none!important}
@media screen and (min-width:768px){
 body.shell-desktop-topbar:not(.auth-pending)>.nesa-session-header{display:flex;align-items:center;gap:20px;min-height:68px;height:auto;padding:10px 24px;background:#fff;border-bottom:1px solid #e0e7f1;color:#14284d;flex:none}
 body.shell-desktop-topbar>.nesa-session-header>.nesa-session-brand{display:none!important}
 body.shell-desktop-topbar>.nesa-session-header>.ws-heading{display:flex;align-items:center;justify-content:space-between;flex:1;min-width:0;min-height:0;margin:0;gap:16px}
 body.shell-desktop-topbar>.nesa-session-header .ws-heading>div:first-child{min-width:0}
 body.shell-desktop-topbar>.nesa-session-header #ws-title{font-size:22px;line-height:1.2;letter-spacing:-.45px;margin:0;color:#14284d;overflow-wrap:anywhere}
 body.shell-desktop-topbar>.nesa-session-header #ws-date{font-size:11px;line-height:1.3;margin:4px 0 0;color:#46556f}
 body.shell-desktop-topbar>.nesa-session-header .ws-heading-actions{display:flex;flex:0 1 auto;align-items:center;gap:7px;flex-wrap:wrap;justify-content:flex-end}
 body.shell-desktop-topbar>.nesa-session-header .compact-heading-actions{gap:7px;flex-wrap:wrap;justify-content:flex-end}
 body.shell-desktop-topbar>.nesa-session-header .ws-heading-actions .btn{min-height:34px;padding:7px 10px;font-size:12px;white-space:nowrap}
 body.shell-desktop-topbar>.nesa-session-header .nesa-session-actions{margin:0;display:flex;align-items:center;flex:none;gap:14px}
 body.shell-desktop-topbar>.nesa-session-header .nesa-session-user,body.shell-desktop-topbar>.nesa-session-header .nesa-session-back{font-size:12px;white-space:nowrap}
 body.shell-desktop-topbar:not(.auth-pending) main{padding-top:16px}
 body.shell-desktop-topbar.ws-customer-screen #sales-view>.intro{display:none!important}
 body.shell-desktop-topbar .ws-sidebar{box-sizing:border-box;overflow:hidden;padding-top:18px;padding-bottom:12px}
 body.shell-desktop-topbar .ws-sidebar-head{flex:none}
 body.shell-desktop-topbar .ws-sidebar-head .ws-brand{padding-bottom:18px}
 body.shell-desktop-topbar .ws-sidebar .ws-nav{display:flex;flex-direction:column;flex:1;min-height:0;gap:3px;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#637b98 transparent;padding-right:2px}
 body.shell-desktop-topbar .ws-sidebar .ws-nav::-webkit-scrollbar{width:4px}body.shell-desktop-topbar .ws-sidebar .ws-nav::-webkit-scrollbar-track{background:transparent}body.shell-desktop-topbar .ws-sidebar .ws-nav::-webkit-scrollbar-thumb{background:#637b98;border-radius:8px}
 body.shell-desktop-topbar .ws-sidebar .ws-nav>button{box-sizing:border-box;flex:0 0 auto;min-height:36px;padding:8px 10px;line-height:1.35}
 body.shell-desktop-topbar .ws-sidebar .ws-sidebar-bottom{flex:none;margin-top:10px;padding-top:9px;gap:3px}
 body.shell-desktop-topbar .ws-sidebar .ws-sidebar-bottom>button,body.shell-desktop-topbar .ws-sidebar #pwa-install{box-sizing:border-box;width:100%;justify-content:flex-start;min-height:36px;padding:8px 10px;font:500 12px/1.35 NesaInter,Inter,system-ui,sans-serif;color:#e2eafa;background:transparent;border:0;border-radius:6px;gap:10px;margin:0;text-align:left}
 body.shell-desktop-topbar .ws-sidebar #pwa-install:hover{background:#ffffff10}body.shell-desktop-topbar .ws-sidebar #pwa-install .ws-icon{width:20px;height:20px;flex:none}
 body.shell-desktop-topbar.ws-sidebar-collapsed .ws-sidebar .ws-nav>button,body.shell-desktop-topbar.ws-sidebar-collapsed .ws-sidebar .ws-sidebar-bottom>button,body.shell-desktop-topbar.ws-sidebar-collapsed .ws-sidebar #pwa-install{justify-content:center;padding:7px;min-height:36px}
 body.shell-desktop-topbar.ws-sidebar-collapsed .ws-sidebar .ws-nav>button svg{width:20px;height:20px}
 body.shell-desktop-topbar.ws-sidebar-collapsed .ws-sidebar-head{padding-bottom:14px}
 body.shell-desktop-topbar.ws-sidebar-collapsed .ws-sidebar .ws-nav{padding-right:0}
 @media(max-width:1150px){body.shell-desktop-topbar>.nesa-session-header .nesa-session-user{display:none}body.shell-desktop-topbar:not(.auth-pending)>.nesa-session-header{gap:12px;padding-left:20px;padding-right:20px}body.shell-desktop-topbar>.nesa-session-header #ws-title{font-size:20px}}
 @media(max-width:900px){body.shell-desktop-topbar>.nesa-session-header .nesa-session-back{display:none}body.shell-desktop-topbar>.nesa-session-header>.ws-heading{gap:10px}body.shell-desktop-topbar>.nesa-session-header .ws-heading-actions .btn{font-size:11px;padding:6px 8px}}
}
@media(max-width:767px){.shell-desktop-only{display:none!important}}
body.shell-desktop-topbar>.nesa-session-header .compact-heading-actions:empty{display:none}
@media print{
 body.shell-desktop-topbar:not(.auth-pending)>.nesa-session-header{display:block!important;margin:0!important;width:100%!important;min-height:0!important;height:auto!important;padding:0 0 12px!important;background:#fff!important;color:#14284d!important;border:0!important}
 body.shell-desktop-topbar>.nesa-session-header>.nesa-session-brand,body.shell-desktop-topbar>.nesa-session-header>.nesa-session-actions,body.shell-desktop-topbar>.nesa-session-header .ws-heading-actions{display:none!important}
 body.shell-desktop-topbar>.nesa-session-header>.ws-heading{display:block!important;margin:0!important}
 body.shell-desktop-topbar>.nesa-session-header #ws-title{color:#14284d;font-size:20px;margin:0}
 body.shell-desktop-topbar>.nesa-session-header #ws-date{color:#46556f;font-size:11px;margin:5px 0 0}
}
