/* G513 — compact, single-map Android live tracker */

body[data-wx-role] #portalView .g513-live{margin:0;padding:0;position:relative;height:calc(100vh - 165px);height:calc(100dvh - 165px);min-height:360px;border:0;background:#edf3f6;overflow:hidden;border-radius:14px;display:flex;flex-direction:column}

body[data-wx-role] #portalView .g513-map{position:relative;flex:1;min-height:0;overflow:hidden;background:#e6eef4}

body[data-wx-role] #portalView .g513-map .g455-map-view{z-index:1}

body[data-wx-role] #portalView .g513-pins{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none;z-index:7}

body[data-wx-role] #portalView .g513-pin{position:absolute;transform:translate(-50%,-95%);width:42px;height:42px;min-height:42px;z-index:1;background:#123a65;color:#fff;border:3px solid #fff;border-radius:50%;box-shadow:0 3px 12px #0b1b3870;font-size:20px;padding:3px;pointer-events:auto}

body[data-wx-role] #portalView .g513-pin.active{background:#be8e27;z-index:3;transform:translate(-50%,-95%) scale(1.18)}

body[data-wx-role] #portalView .g513-topbar{position:absolute;top:env(safe-area-inset-top,0px);left:0;right:0;z-index:10;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:9px 10px;background:linear-gradient(to bottom,#09213cdd,transparent)}

body[data-wx-role] #portalView .g513-brand{font-size:12px;font-weight:900;color:white;letter-spacing:.07em;text-shadow:0 1px 4px #00172b}

body[data-wx-role] #portalView .g513-brand span{font-weight:500;letter-spacing:0}

body[data-wx-role] #portalView .g513-chip{width:auto!important;min-height:39px!important;padding:7px 11px!important;background:#fff!important;color:#193651!important;border-radius:28px!important;border:1px solid #d9e0e9!important;font-size:12px!important;white-space:nowrap}

body[data-wx-role] #portalView .g513-controls{position:absolute;right:9px;top:84px;z-index:9;display:grid;gap:8px}

body[data-wx-role] #portalView .g513-controls button{height:44px;min-height:44px;width:44px;padding:2px;background:#fff;color:#0d3154;border:1px solid #dce5ee;border-radius:12px;font-size:25px;box-shadow:0 3px 11px #0f2d4340}

body[data-wx-role] #portalView .g513-info{position:absolute;bottom:8px;left:8px;right:8px;z-index:8;background:#fffffff0;color:#112f4b;border-radius:12px;padding:11px 12px;box-shadow:0 3px 15px #162d4b40;backdrop-filter:blur(8px);font-size:12px}

body[data-wx-role] #portalView .g513-info-head{display:flex;gap:9px;justify-content:space-between;align-items:center}

body[data-wx-role] #portalView .g513-info-head strong{font-size:15px;color:#0c2c4e}

body[data-wx-role] #portalView .g513-info-head span{font-size:10px;color:#526d86}

body[data-wx-role] #portalView .g513-info-detail{font-size:11px;margin-top:3px;color:#496079}

body[data-wx-role] #portalView .g513-empty{position:absolute;left:15px;right:15px;top:42%;z-index:6;border-radius:12px;background:#ffffffea;box-shadow:0 3px 9px #142d4d21;padding:16px 14px;text-align:center;font-size:13px;color:#334f65;line-height:1.5}

body[data-wx-role] #portalView .g513-empty[hidden]{display:none!important}

body[data-wx-role] #portalView .g513-footer{height:43px;min-height:43px;display:flex;gap:7px;align-items:center;justify-content:space-between;padding:4px 8px;background:#fff;color:#476178;font-size:10px;border-top:1px solid #e2eaf0}

body[data-wx-role] #portalView .g513-footer button{width:auto!important;min-height:35px!important;padding:5px 10px!important;border-radius:9px!important;font-size:11px;background:#eef4fa;color:#19446c}

body[data-wx-role] #portalView .g513-sheet{position:absolute;left:0;right:0;bottom:43px;max-height:55%;background:#fff;z-index:11;border-radius:16px 16px 0 0;padding:12px;box-shadow:0 -4px 18px #12314f40;transform:translateY(110%);transition:transform .2s ease;visibility:hidden;overflow:auto}

body[data-wx-role] #portalView .g513-sheet.open{transform:none;visibility:visible}

body[data-wx-role] #portalView .g513-sheet-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}

body[data-wx-role] #portalView .g513-sheet-head button{width:auto!important;min-height:32px!important;padding:5px 10px!important}

body[data-wx-role] #portalView .g513-list{display:grid;gap:6px}

body[data-wx-role] #portalView .g513-entry{width:100%;background:#f4f7fa;color:#1f3d5c;text-align:left;min-height:43px;border-radius:9px;padding:9px 11px;font-size:12px;font-weight:600}

body[data-wx-role] #portalView .g513-entry.active{background:#fff5df;color:#775a1b}

body.g513-fullscreen{overflow:hidden!important}

body.g513-fullscreen >header,body.g513-fullscreen #portalTabs,body.g513-fullscreen #tabs,body.g513-fullscreen #hint{display:none!important}

body.g513-fullscreen main,body.g513-fullscreen #portalContent{margin:0!important;padding:0!important;max-width:none!important;width:100%!important}

body.g513-fullscreen #portalView .g513-live{position:fixed!important;inset:0!important;width:100vw!important;height:100vh!important;height:100dvh!important;min-height:0!important;max-height:none!important;margin:0!important;border-radius:0!important;z-index:90!important}

body.g513-fullscreen #portalView .g513-map{height:auto!important}

body.g513-fullscreen #portalView .g513-footer{padding-bottom:max(4px,env(safe-area-inset-bottom))}

@media(max-width:390px){body[data-wx-role] #portalView .g513-brand{font-size:11px}body[data-wx-role] #portalView .g513-info{padding:9px 10px}body[data-wx-role] #portalView .g513-chip{font-size:11px!important}}

@media(prefers-reduced-motion:reduce){body[data-wx-role] #portalView .g513-sheet{transition:none}}


/* G687 source-specific marker label: HP=Sopir / Nopol; GPS=Nopol / Sopir. */
body[data-wx-role] #portalView .g513-pin{
 width:auto!important;max-width:min(220px,calc(100vw - 55px));
 height:auto!important;min-height:37px!important;padding:5px 8px!important;
 display:flex!important;flex-direction:row;align-items:center;gap:6px;
 background:#fff!important;color:#123b5c!important;border:1px solid #bfcfe0!important;
 border-radius:10px!important;font:700 11px/1.25 system-ui,sans-serif!important;
 box-shadow:0 2px 10px #0c2d4a44!important;white-space:normal;
 text-align:left;overflow-wrap:anywhere;transform:translate(-50%,-100%)!important;
}
body[data-wx-role] #portalView .g513-pin .g687-pin-dot{color:#1486bd;font-size:20px;line-height:1}
body[data-wx-role] #portalView .g513-pin[data-source="GPS"] .g687-pin-dot{color:#c69a34}
body[data-wx-role] #portalView .g513-pin .g687-pin-label{display:block;min-width:0;max-width:175px}
body[data-wx-role] #portalView .g513-pin.active{
 background:#fff8e6!important;outline:2px solid #cda441;z-index:9;transform:translate(-50%,-100%)!important;
}
