/* G471 - unified WEVIX design system for ONE APK / FOUR authorized login roles.
   White + soft gray dominate. Navy/gold only identifiers and active accents.
   Purely presentational; no changes to business API or Android permissions. */
body.wx-role-admin,
body.wx-role-pengurus,
body.wx-role-sopir,
body.wx-role-client{--wx-ink:#172f4b;--wx-accent:#d2ab42;--wx-soft:#f6f8fb;background:#f6f8fb;}
body[data-wx-role] >header{background:#fff;color:#1a344f;border-bottom:1px solid #e5ebf1;box-shadow:0 2px 12px rgba(18,52,84,.045)}
body[data-wx-role] >header h1{color:#1b3550}
body[data-wx-role] >header small{color:#687d8f}
body[data-wx-role] .wx-role-indicator{
 display:flex;align-items:center;justify-content:center;gap:5px;
 margin-left:auto;padding:6px 7px;border:1px solid #e6eaf0;
 border-radius:22px;background:#f8fafc;color:#294762;
 white-space:nowrap;font-size:10px;font-weight:800;flex-shrink:0;
}
body[data-wx-role] .wx-role-indicator .wx-icon{color:#b18435;width:15px;height:15px}
body[data-wx-role] header .g470-account-icon{display:none}
body[data-wx-role] main{background:#f6f8fb}
body[data-wx-role] #portalContent .card,
body.wx-role-sopir #content .card{
 background:#fff;color:#1b3852;border-radius:15px;
 border:1px solid #e5ecf2;box-shadow:0 3px 12px rgba(22,52,80,.045);
}
body[data-wx-role] .portal-metric{background:#fff;color:#1e3c58}
body[data-wx-role] .portal-metric b{color:#193753}
body[data-wx-role] .wx-four-hero{
 background:#fff;color:#1f3e57;
 border:1px solid #e4ebf2;border-left:3px solid #d1a848;
 box-shadow:0 3px 13px rgba(20,47,78,.04);min-height:115px;
}
body[data-wx-role] .wx-four-hero::before,
body[data-wx-role] .wx-four-hero::after{display:none}
body[data-wx-role] .wx-four-hero small{color:#a57b2f}
body[data-wx-role] .wx-four-hero strong{color:#183752;font-size:19px}
body[data-wx-role] .wx-four-hero p{color:#60778c;font-size:11px}

/* Bottom navigation. Existing role-specific routes are still determined by portalMenus. */
body[data-wx-role] #portalTabs,
body.wx-role-sopir #tabs{
 display:flex;align-items:stretch;justify-content:space-around;
 background:#fff;border-top:1px solid #e2eaf2;
 box-shadow:0 -3px 13px rgba(20,53,84,.045);padding:5px 4px max(7px,env(safe-area-inset-bottom))
}
body[data-wx-role] #portalTabs.hide,
body.wx-role-sopir #tabs.hide{display:none!important}
body[data-wx-role] #portalTabs button.wx-role-nav-item,
body.wx-role-sopir #tabs button.wx-role-nav-item{
 flex:1;min-width:0;min-height:55px;
 display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;
 border:0;border-radius:11px;padding:5px 2px;
 font-size:10px;line-height:1.15;color:#64788d;
 background:transparent;box-shadow:none;
}
body[data-wx-role] #portalTabs button.wx-role-nav-item .wx-icon,
body.wx-role-sopir #tabs button.wx-role-nav-item .wx-icon{
 width:21px;height:21px;flex-shrink:0;
}
body[data-wx-role] #portalTabs button.wx-role-nav-item.active,
body.wx-role-sopir #tabs button.wx-role-nav-item.active{
 background:#fff8e8;color:#8e692f;
 box-shadow:inset 0 2px 0 #d4af37;
}
body[data-wx-role] #portalTabs button.wx-role-nav-item.active .wx-icon,
body.wx-role-sopir #tabs button.wx-role-nav-item.active .wx-icon{color:#b4862f}

/* Pengurus and Client: modules are an actual role-filtered menu, not fake shortcuts. */
body[data-wx-role] .wx-role-menu{
 padding:16px 13px;border:1px solid #e6ecf2;border-radius:16px;
 background:#fff;box-shadow:0 3px 12px rgba(22,52,80,.035);
}
body[data-wx-role] .wx-role-page-heading h2{
 font-size:19px;line-height:1.25;margin:0;color:#1a344f;
}
body[data-wx-role] .wx-role-page-heading p{
 font-size:11px;color:#7a8d9d;margin:5px 0 14px
}
body[data-wx-role] .wx-role-tile-grid{
 display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;
}
body[data-wx-role] button.wx-role-tile,
body[data-wx-role] .wx-four-shortcuts button.wx-role-tile{
 display:flex;align-items:center;justify-content:center;flex-direction:column;
 text-align:center;gap:8px;min-height:91px;
 border:1px solid #e5ebf1;border-radius:12px;
 padding:9px 4px;color:#274660;background:#fff;
 font-size:11px;line-height:1.35;font-weight:750;box-shadow:0 2px 8px rgba(22,52,80,.025)
}
body[data-wx-role] .wx-role-tile-icon{
 display:grid;place-items:center;width:35px;height:35px;
 border-radius:10px;background:#f2f6fa;color:#234769;
}
body[data-wx-role] .wx-role-tile-icon .wx-icon{width:21px;height:21px}
body[data-wx-role] .wx-role-tile:nth-child(4n+1) .wx-role-tile-icon{background:#fcf4e2;color:#ad8135}
body[data-wx-role] .wx-role-tile:active{background:#faf5e8}
body[data-wx-role] .wx-role-tile:focus-visible{outline:2px solid #d4af37;outline-offset:2px}
body[data-wx-role] .wx-role-menu-footnote{
 margin:16px 0 0;display:flex;align-items:flex-start;gap:7px;
 color:#768a9a;font-size:10px;line-height:1.45;
}
body[data-wx-role] .wx-role-menu-footnote .wx-icon{color:#b28639;width:15px;height:15px;flex-shrink:0}
body[data-wx-role] .wx-four-shortcuts{
 display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;
}
body[data-wx-role] .wx-four-shortcuts button.wx-role-tile{min-height:80px}

/* Sopir: keep the original native camera/GPS/checkpoint workflow. */
body.wx-role-sopir #pageHome .wx-driver-hero{
 background:#fff;color:#183552;border:1px solid #e2e9f0;
 border-left:3px solid #d4af37;box-shadow:0 3px 12px rgba(18,52,84,.05);
}
body.wx-role-sopir #pageHome .wx-driver-hero .kicker{color:#a78037!important}
body.wx-role-sopir #pageHome .wx-driver-hero #headline{color:#173651;font-size:20px}
body.wx-role-sopir #pageHome .wx-driver-hero #homeStatus{color:#72869a}
body.wx-role-sopir .wx-driver-task-list .card{
 border-left:3px solid #d4af37;cursor:pointer
}
body.wx-role-sopir .wx-driver-task-detail .g468-evidence{
 background:#fff;border:1px solid #e0e9f2
}
body.wx-role-sopir .wx-driver-task-detail button.primary{
 background:#193e60;color:#fff
}
/* Client: same white frame, no editing modules are invented. */
body.wx-role-client #portalContent .card{
 border-color:#e5ecf2;
}
body.wx-role-client #portalContent .status{
 background:#edf5fe;color:#235788
}
body.wx-role-client #portalContent .g467-map-card{
 background:#fff;
}
@media(max-width:360px){
 body[data-wx-role] .wx-role-tile-grid{gap:6px}
 body[data-wx-role] button.wx-role-tile{min-height:81px;font-size:10px;padding:8px 2px}
 body[data-wx-role] .wx-role-indicator{font-size:9px;padding:4px}
 body[data-wx-role] .wx-role-indicator .wx-icon{width:13px;height:13px}
}
@media(prefers-reduced-motion:reduce){
 body[data-wx-role] *{transition-duration:.01ms!important;animation-duration:.01ms!important}
}