/* G1016: presentation only — never alter /customer form content, API or rules. */
:root{--g16-navy:#153b59;--g16-gold:#c69b39;--g16-line:#d5e0e9;--g16-ink:#193449}
html{-webkit-text-size-adjust:100%}
body:not(.g513-fullscreen){background:#f5f7fa;color:var(--g16-ink)}
body:not(.g513-fullscreen) header{background:#102d49;color:#fff;border-bottom:2px solid var(--g16-gold);min-height:62px;padding:11px 14px;gap:10px}
body:not(.g513-fullscreen) header h1{font-size:16px;line-height:1.3;margin:0 0 3px}
body:not(.g513-fullscreen) header small{font-size:11px;color:#e1ebf4;opacity:1}
body:not(.g513-fullscreen) main{max-width:680px;padding:12px 12px calc(105px + env(safe-area-inset-bottom))}
body:not(.g513-fullscreen) :is(#portalView,#content) :is(.card,.g528-box,.g976-panel,.g682-task,.g528-item){
  min-width:0;max-width:100%;border:1px solid var(--g16-line);border-radius:13px;background:#fff;box-shadow:0 2px 8px #12304a09}
body:not(.g513-fullscreen) :is(#portalView,#content) :is(.card,.g528-box,.g976-panel){padding:14px;margin-bottom:11px}
body:not(.g513-fullscreen) :is(#portalView,#content) :is(h2,h3){overflow-wrap:anywhere;line-height:1.35;color:var(--g16-navy)}
body:not(.g513-fullscreen) :is(#portalView,#content) h2{font-size:17px}
body:not(.g513-fullscreen) :is(#portalView,#content) h3{font-size:15px}
body:not(.g513-fullscreen) :is(#portalView,#content,.g979-root) :is(p,small,figcaption){max-width:100%;overflow-wrap:anywhere;line-height:1.48}
body:not(.g513-fullscreen) :is(#portalView,#content,.g979-root) label{font-size:13px;line-height:1.45;font-weight:700;color:#28475f;white-space:normal;overflow-wrap:anywhere}
body:not(.g513-fullscreen) :is(#portalView,#content,.g979-root) :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select,textarea){
 box-sizing:border-box;width:100%;max-width:100%;min-width:0;min-height:46px;
 border:1px solid #b7cbdc;border-radius:10px;padding:10px 11px;font-size:16px;line-height:1.4;color:var(--g16-ink);background:#fff}
body:not(.g513-fullscreen) :is(#portalView,#content,.g979-root) textarea{min-height:90px;resize:vertical}
body:not(.g513-fullscreen) :is(#portalView,#content,.g979-root) :is(input[type=checkbox],input[type=radio]){width:20px;height:20px;min-width:20px;accent-color:#ae822c;vertical-align:middle}
body:not(.g513-fullscreen) :is(#portalView,#content,.g979-root) :is(button,.primary,.secondary){min-height:44px;touch-action:manipulation;line-height:1.35;overflow-wrap:anywhere}
body:not(.g513-fullscreen) :is(#portalView,#content,.g979-root) :is(button.primary,.primary){background:var(--g16-navy);color:#fff}
body:not(.g513-fullscreen) :is(#portalView,#content,.g979-root) :is(button.secondary,.secondary){background:#edf3f7;color:#163f61}
body:not(.g513-fullscreen) :is(#portalView,#content,.g979-root) :is(button,input,select,textarea):focus-visible{outline:2px solid var(--g16-gold);outline-offset:2px}
body:not(.g513-fullscreen) :is(#portalView,#content,.g979-root) button:disabled{opacity:.65;box-shadow:none;cursor:not-allowed}
/* Exactly one role-specific bottom nav, retaining existing SVG+label and onclick. */
html body[data-g1009-nav="locked"] :is(#portalTabs,#tabs),
html body[data-g1009-nav="portal"] #tabs,
html body[data-g1009-nav="driver"] #portalTabs,
html body.g513-fullscreen :is(#portalTabs,#tabs){display:none!important}
html body[data-g1009-nav="portal"] #portalTabs:not(.hide),
html body[data-g1009-nav="driver"] #tabs:not(.hide){
 display:grid!important;position:fixed!important;left:0!important;right:0!important;bottom:0!important;width:100%!important;
 grid-template-columns:repeat(var(--g1009-count,5),minmax(0,1fr))!important;gap:0!important;
 box-sizing:border-box!important;padding:5px max(5px,env(safe-area-inset-right))
 calc(6px + env(safe-area-inset-bottom)) max(5px,env(safe-area-inset-left))!important;
 border-top:1px solid #d3dce5!important;background:#fff!important;box-shadow:0 -3px 13px #0a264111!important;
 z-index:95!important;overflow:hidden!important}
html body[data-g1009-nav] :is(#portalTabs,#tabs):not(.hide)>button:not(.hide){
 width:100%!important;max-width:100%!important;min-width:0!important;
 height:58px!important;min-height:58px!important;max-height:58px!important;
 border:0!important;border-radius:10px!important;margin:0!important;padding:5px 1px!important;
 background:transparent!important;color:#456075!important;display:flex!important;flex-direction:column!important;
 align-items:center!important;justify-content:center!important;gap:3px!important;
 font:700 10px/13px Roboto,Arial,sans-serif!important;text-align:center!important;white-space:nowrap!important;overflow:hidden!important}
html body[data-g1009-nav] :is(#portalTabs,#tabs):not(.hide)>button:not(.hide).active{
 background:#fff6e3!important;color:#173d5b!important;box-shadow:inset 0 3px var(--g16-gold)!important}
html body[data-g1009-nav] :is(#portalTabs,#tabs):not(.hide)>button:not(.hide) :is(.wx-icon,svg){
 width:22px!important;height:22px!important;min-width:22px!important;min-height:22px!important;flex:none!important;margin:0!important}
html body[data-g1009-nav] :is(#portalTabs,#tabs):not(.hide)>button:not(.hide)>span:last-child{
 display:block;min-width:0;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html body[data-g1009-nav] :is(#portalTabs,#tabs):not(.hide)>button:not(.hide):focus-visible{outline:2px solid #b58b32;outline-offset:-3px}
body:not(.g513-fullscreen) :is(#portalContent,#content){padding-bottom:calc(96px + env(safe-area-inset-bottom))!important}
body:not(.g513-fullscreen) :is(#portalView,#content) table{display:block;max-width:100%;overflow-x:auto;overscroll-behavior-x:contain}
body:not(.g513-fullscreen) .g976-navigation{bottom:calc(75px + env(safe-area-inset-bottom));z-index:12}
body.g513-fullscreen[data-g1009-nav] :is(main,#portalContent,#content){padding:0!important}
@media(max-width:355px){
 html body[data-g1009-nav] :is(#portalTabs,#tabs):not(.hide)>button:not(.hide){font-size:9px!important}
 body:not(.g513-fullscreen) main{padding-left:9px;padding-right:9px}
}
html body.g513-fullscreen[data-g1009-nav] #portalTabs:not(.hide),html body.g513-fullscreen[data-g1009-nav] #tabs:not(.hide){display:none!important;visibility:hidden!important;pointer-events:none!important}
