/* ===== GGPS Admin — admin.css (โครง header/pane/bottom-nav เดียวกับ ggps_tracking/assets/css/app.css; ส่วนของ admin ใช้ prefix .ga-*) ===== */
:root {
  --ggps-header-h: 48px;
  --ggps-bottomnav-h: 56px;
  --ggps-blue: #1b4f8a;
  --ggps-blue-dark: #143a66;
  --ggps-accent: #0d6efd;
  --ggps-panel-bg: #f5f7fa;
  --ggps-border: #d7dde5;
  --ga-touch: 44px;
}
html, body { height: 100%; }
body.ggps-app {
  margin: 0; overflow: hidden; background: var(--ggps-panel-bg);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans Thai", "Sarabun", Tahoma, sans-serif;
  font-size: calc(13px * var(--ga-k, 1));
}
.ggps-app .form-control, .ggps-app .form-select, .ggps-app .btn { font-size: calc(13px * var(--ga-k, 1)); }
.ggps-app .form-control-sm, .ggps-app .form-select-sm, .ggps-app .btn-sm { font-size: calc(12px * var(--ga-k, 1)); }

/* ---------- header ---------- */
.ggps-header {
  position: fixed; top: 0; left: 0; right: 0; height: var(--ggps-header-h); z-index: 1030;
  display: flex; align-items: center; gap: 12px; padding: 0 10px;
  background: linear-gradient(180deg, var(--ggps-blue) 0%, var(--ggps-blue-dark) 100%); color: #fff;
}
.ggps-logo img { display: block; }
.ggps-tabs { display: flex; gap: 2px; margin-left: 12px; height: 100%; }
.ggps-tabs .ggps-tab {
  background: transparent; border: 0; color: rgba(255,255,255,.8); padding: 0 12px; height: 100%;
  border-bottom: 3px solid transparent; cursor: pointer; font-weight: 500; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px;
}
.ggps-tabs .ggps-tab .ggps-ico { width: 16px; height: 16px; }
.ggps-tabs .ggps-tab:hover { color: #fff; background: rgba(255,255,255,.08); }
.ggps-tabs .ggps-tab.active { color: #fff; border-bottom-color: #ffc107; }
.ggps-header-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.ggps-user { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.ga-role-badge { font-weight: 500; text-transform: uppercase; font-size: calc(10px * var(--ga-k, 1)); }
.ga-hlink { color: #fff; text-decoration: none; align-items: center; gap: 4px; padding: 4px 6px; border-radius: 4px; }
.ga-hlink:hover { background: rgba(255,255,255,.12); color: #fff; }
.ga-hlink .ggps-ico { width: 18px; height: 18px; }
.ga-hbtn { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.35); display: inline-flex; font: inherit; cursor: pointer; }
.ga-hbtn:hover { background: rgba(255,255,255,.22); }
.ggps-logout img { display: block; }

/* ---------- main / panes ---------- */
.ggps-main { position: fixed; top: var(--ggps-header-h); left: 0; right: 0; bottom: 0; }
.ggps-pane { display: none; position: absolute; inset: 0; }
.ggps-pane.active { display: block; }
.ggps-stub { height: 100%; display: flex; align-items: center; justify-content: center; font-size: calc(16px * var(--ga-k, 1)); }

/* ---------- bottom nav (mobile) ---------- */
.ggps-bottomnav {
  position: fixed; left: 0; right: 0; bottom: 0; height: var(--ggps-bottomnav-h); z-index: 1030;
  background: #fff; border-top: 1px solid var(--ggps-border); padding-bottom: env(safe-area-inset-bottom);
}
.ggps-bottomnav .ggps-tab {
  flex: 1; border: 0; background: transparent; color: #6c757d; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 2px; font-size: calc(11px * var(--ga-k, 1)); padding: 4px 0;
}
.ggps-bottomnav .ggps-tab.active { color: var(--ggps-accent); }
.ggps-ico { width: 22px; height: 22px; display: inline-block; background: currentColor; flex: 0 0 auto;
  -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat; }
.ggps-ico-users   { --ico: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M7 14s-1 0-1-1 1-4 5-4 5 3 5 4-1 1-1 1H7zm4-6a3 3 0 1 0 0-6 3 3 0 0 0 0 6z'/><path d='M5.2 9.5A4.5 4.5 0 0 0 4 13c0 .5.1 1 .2 1H1s-1 0-1-1 1-4 4-4c.4 0 .8 0 1.2.1-.2.2-.4.3-.6.4zM4.5 8a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5z'/></svg>"); }
.ggps-ico-report  { --ico: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M4 0h5.5L14 4.5V14a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V2a2 2 0 0 1 2-2zm5 1v3a1 1 0 0 0 1 1h3L9 1zM4.5 8h7v1h-7V8zm0 2h7v1h-7v-1zm0 2h5v1h-5v-1z'/></svg>"); }
.ggps-ico-ota     { --ico: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M8 3a5 5 0 0 0-4.5 2.9l-1.3-.7A6.5 6.5 0 0 1 14.5 8H13a5 5 0 0 0-5-5zm0 10a5 5 0 0 0 4.5-2.9l1.3.7A6.5 6.5 0 0 1 1.5 8H3a5 5 0 0 0 5 5z'/><path d='M8 5.5 10.5 8H9v3H7V8H5.5L8 5.5z'/></svg>"); }
.ggps-ico-dlt     { --ico: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M0 3.5A1.5 1.5 0 0 1 1.5 2h9A1.5 1.5 0 0 1 12 3.5V5h1.02a1.5 1.5 0 0 1 1.17.563l1.481 1.85a1.5 1.5 0 0 1 .329.938V10.5a1.5 1.5 0 0 1-1.5 1.5H14a2 2 0 1 1-4 0H5a2 2 0 1 1-4 0 1.5 1.5 0 0 1-1-1.414V3.5zM12 6v3h3.5v-.8l-1.5-1.9a.5.5 0 0 0-.4-.2H12z'/></svg>"); }
.ggps-ico-info    { --ico: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M8 16A8 8 0 1 0 8 0a8 8 0 0 0 0 16zm.93-9.412-1 4.705c-.07.34.029.533.304.533.194 0 .487-.07.686-.246l-.088.416c-.287.346-.92.598-1.465.598-.703 0-1.002-.422-.808-1.319l.738-3.468c.064-.293.006-.399-.287-.47l-.451-.081.082-.381 2.29-.287zM8 5.5a1 1 0 1 1 0-2 1 1 0 0 1 0 2z'/></svg>"); }
.ggps-ico-service { --ico: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M1 2.5A1.5 1.5 0 0 1 2.5 1h3A1.5 1.5 0 0 1 7 2.5v3A1.5 1.5 0 0 1 5.5 7h-3A1.5 1.5 0 0 1 1 5.5v-3zm8 0A1.5 1.5 0 0 1 10.5 1h3A1.5 1.5 0 0 1 15 2.5v3A1.5 1.5 0 0 1 13.5 7h-3A1.5 1.5 0 0 1 9 5.5v-3zm-8 8A1.5 1.5 0 0 1 2.5 9h3A1.5 1.5 0 0 1 7 10.5v3A1.5 1.5 0 0 1 5.5 15h-3A1.5 1.5 0 0 1 1 13.5v-3zm8 0A1.5 1.5 0 0 1 10.5 9h3a1.5 1.5 0 0 1 1.5 1.5v3a1.5 1.5 0 0 1-1.5 1.5h-3A1.5 1.5 0 0 1 9 13.5v-3z'/></svg>"); }
.ggps-ico-back    { --ico: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/></svg>"); }
.ggps-ico-car     { --ico: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M2.52 3.515A2.5 2.5 0 0 1 4.82 2h6.362c1 0 1.904.596 2.298 1.515l.792 1.848c.075.175.21.319.38.404.5.25.855.715.965 1.262l.335 1.679c.033.161.049.325.049.49v.413c0 .814-.39 1.543-1 1.997V13.5a.5.5 0 0 1-.5.5h-2a.5.5 0 0 1-.5-.5V12H4v1.5a.5.5 0 0 1-.5.5h-2a.5.5 0 0 1-.5-.5v-1.892c-.61-.454-1-1.183-1-1.997v-.413a2.5 2.5 0 0 1 .049-.49l.335-1.68c.11-.546.465-1.012.964-1.261a.807.807 0 0 0 .381-.404l.792-1.848zM3 10a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm10 0a1 1 0 1 0 0-2 1 1 0 0 0 0 2z'/></svg>"); }

/* ---------- toolbar / search / grid (ล้อ .tk-* ของ tracking) ---------- */
.ga-toolbar { padding: 6px 8px; border-bottom: 1px solid var(--ggps-border); background: var(--ggps-panel-bg); display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; flex: 0 0 auto; }
.ga-toolbar .form-check { margin: 0; white-space: nowrap; }
.ga-toolbar .form-check-label { cursor: pointer; }
.ga-toolbar .vr { height: 22px; opacity: .25; }
.ga-search { position: relative; flex: 1; min-width: 140px; max-width: 320px; }
.ga-search .ga-search-clear { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; color: #888; padding: 0 6px; line-height: 1; font-size: calc(16px * var(--ga-k, 1)); }
.ga-grid-wrap { flex: 1; min-height: 0; position: relative; }
.ga-grid { height: 100%; }
.ga-pager { display: flex; align-items: center; gap: 6px; padding: 4px 8px; border-top: 1px solid var(--ggps-border); background: var(--ggps-panel-bg); font-size: calc(12px * var(--ga-k, 1)); flex: 0 0 auto; }
.ga-pager .btn { padding: 0 8px; line-height: 26px; min-width: 30px; }
.ga-pager .ms-auto { color: #555; }
.ga-panel-title { padding: 6px 10px; background: var(--ggps-blue); color: #fff; font-weight: 600; display: flex; align-items: center; justify-content: space-between; gap: 8px; flex: 0 0 auto; min-height: 34px; }
.ga-panel-title .ga-title-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ga-back { display: none; border: 0; background: transparent; color: #fff; padding: 0 6px 0 0; }
.ga-back .ggps-ico { width: 20px; height: 20px; }

/* Tabulator ปรับ */
.ga-grid .tabulator { font-size: calc(12px * var(--ga-k, 1)); border: 0; }
.ga-grid .tabulator .tabulator-header .tabulator-col .tabulator-col-content { padding: 4px 4px; font-size: calc(12px * var(--ga-k, 1)); }
.ga-grid .tabulator-row .tabulator-cell { padding: 3px 6px; }
.ga-grid .tabulator-row.tabulator-selected { background-color: #cfe2ff !important; }
.ga-grid .tabulator-row.tabulator-selectable:hover { background-color: #e9f1ff; }
.ga-grid .tabulator-cell img { vertical-align: middle; }
.ga-grid .tabulator-responsive-collapse { padding: 4px 8px; }
.ga-grid .tabulator-responsive-collapse table { font-size: calc(12px * var(--ga-k, 1)); }
.ga-grid .tabulator-responsive-collapse td { padding: 2px 6px; vertical-align: top; }
.ga-grid .tabulator-responsive-collapse td:first-child { color: #555; white-space: nowrap; }
.ga-grid .tabulator-row .tabulator-responsive-collapse-toggle { width: 22px; height: 22px; }

/* action buttons ในแถว (≥ 32px บน desktop, ≥ 44px บนมือถือ) */
.ga-acts { display: flex; gap: 3px; align-items: center; }
.ga-act { flex: 0 0 auto; border: 1px solid #c9d1da; background: #fff; border-radius: 4px; width: 30px; height: 28px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; color: #345; padding: 0; }
.ga-act:hover { background: #e9f1ff; border-color: #9ec5fe; }
.ga-act .ggps-ico { width: 16px; height: 16px; }
.ga-act.ga-act-primary { background: var(--ggps-accent); color: #fff; border-color: var(--ggps-accent); }
.ga-act.ga-act-primary:hover { background: #0b5ed7; }
.ga-act.ga-act-danger { color: #b02a37; }
.ga-act.ga-act-danger:hover { background: #f8d7da; border-color: #f1aeb5; }
.ga-act.ga-act-empty { visibility: hidden; pointer-events: none; }
.ga-act-text { width: auto; padding: 0 8px; font-size: calc(12px * var(--ga-k, 1)); white-space: nowrap; }
.ga-dlt-links a { margin: 0 2px; }
.ga-dlt-links img { width: 16px; height: 16px; }
.ga-dlt-links .ga-dlt-grp { display: inline-block; white-space: nowrap; margin-right: 6px; color: #666; font-size: calc(11px * var(--ga-k, 1)); }
.ggps-ico-edit    { --ico: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M12.146.146a.5.5 0 0 1 .708 0l3 3a.5.5 0 0 1 0 .708l-10 10a.5.5 0 0 1-.168.11l-5 2a.5.5 0 0 1-.65-.65l2-5a.5.5 0 0 1 .11-.168l10-10zM11.207 2.5 13.5 4.793 14.793 3.5 12.5 1.207 11.207 2.5zm1.586 3L10.5 3.207 4 9.707V10h.5a.5.5 0 0 1 .5.5v.5h.5a.5.5 0 0 1 .5.5v.5h.293l6.5-6.5z'/></svg>"); }
.ggps-ico-eye     { --ico: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M16 8s-3-5.5-8-5.5S0 8 0 8s3 5.5 8 5.5S16 8 16 8zM1.173 8a13.133 13.133 0 0 1 1.66-2.043C4.12 4.668 5.88 3.5 8 3.5c2.12 0 3.879 1.168 5.168 2.457A13.133 13.133 0 0 1 14.828 8c-.058.087-.122.183-.195.288-.335.48-.83 1.12-1.465 1.755C11.879 11.332 10.119 12.5 8 12.5c-2.12 0-3.879-1.168-5.168-2.457A13.134 13.134 0 0 1 1.172 8z'/><path d='M8 5.5a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5zM4.5 8a3.5 3.5 0 1 1 7 0 3.5 3.5 0 0 1-7 0z'/></svg>"); }
.ggps-ico-image   { --ico: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M6.002 5.5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0z'/><path d='M2.002 1a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V3a2 2 0 0 0-2-2h-12zm12 1a1 1 0 0 1 1 1v6.5l-3.777-1.947a.5.5 0 0 0-.577.093l-3.71 3.71-2.66-1.772a.5.5 0 0 0-.63.062L1.002 12V3a1 1 0 0 1 1-1h12z'/></svg>"); }
.ggps-ico-renew   { --ico: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M11.534 7h3.932a.25.25 0 0 1 .192.41l-1.966 2.36a.25.25 0 0 1-.384 0l-1.966-2.36a.25.25 0 0 1 .192-.41zm-11 2h3.932a.25.25 0 0 0 .192-.41L2.692 6.23a.25.25 0 0 0-.384 0L.342 8.59A.25.25 0 0 0 .534 9z'/><path d='M8 3c-1.552 0-2.94.707-3.857 1.818a.5.5 0 1 1-.771-.636A6.002 6.002 0 0 1 13.917 7H12.9A5.002 5.002 0 0 0 8 3zM3.1 9a5.002 5.002 0 0 0 8.757 2.182.5.5 0 1 1 .771.636A6.002 6.002 0 0 1 2.083 9H3.1z'/></svg>"); }
.ggps-ico-gd      { --ico: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M4 1h8a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2zm0 1a1 1 0 0 0-1 1v10a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1V3a1 1 0 0 0-1-1H4z'/><path d='M5 4h6v1H5zm0 2.5h6v1H5zM5 9h4v1H5zm3.5 3.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0z'/></svg>"); }
.ggps-ico-trash   { --ico: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M5.5 5.5A.5.5 0 0 1 6 6v6a.5.5 0 0 1-1 0V6a.5.5 0 0 1 .5-.5zm2.5 0a.5.5 0 0 1 .5.5v6a.5.5 0 0 1-1 0V6a.5.5 0 0 1 .5-.5zm3 .5a.5.5 0 0 0-1 0v6a.5.5 0 0 0 1 0V6z'/><path d='M14.5 3a1 1 0 0 1-1 1H13v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V4h-.5a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1H6a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1h3.5a1 1 0 0 1 1 1v1zM4.118 4 4 4.059V13a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1V4.059L11.882 4H4.118zM2.5 3V2h11v1h-11z'/></svg>"); }
.ggps-ico-monitor { --ico: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M0 4s0-2 2-2h12s2 0 2 2v6s0 2-2 2h-4c0 .667.083 1.167.25 1.5H11a.5.5 0 0 1 0 1H5a.5.5 0 0 1 0-1h.75c.167-.333.25-.833.25-1.5H2s-2 0-2-2V4zm1.398-.855a.758.758 0 0 0-.254.302A1.46 1.46 0 0 0 1 4.01V10c0 .325.078.502.145.602.07.105.17.188.302.254a1.464 1.464 0 0 0 .538.143L2.01 11H14c.325 0 .502-.078.602-.145a.758.758 0 0 0 .254-.302 1.464 1.464 0 0 0 .143-.538L15 9.99V4c0-.325-.078-.502-.145-.602a.757.757 0 0 0-.302-.254A1.46 1.46 0 0 0 13.99 3H2c-.325 0-.502.078-.602.145z'/></svg>"); }
.ggps-ico-permit  { --ico: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M10.5 8a2.5 2.5 0 1 1-5 0 2.5 2.5 0 0 1 5 0z'/><path d='M0 8s3-5.5 8-5.5S16 8 16 8s-3 5.5-8 5.5S0 8 0 8zm8 3.5a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7z'/></svg>"); }
.ggps-ico-plus    { --ico: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M8 2a.5.5 0 0 1 .5.5v5h5a.5.5 0 0 1 0 1h-5v5a.5.5 0 0 1-1 0v-5h-5a.5.5 0 0 1 0-1h5v-5A.5.5 0 0 1 8 2z'/></svg>"); }
.ggps-ico-columns { --ico: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M0 2a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V2zm5 1v12h3V3H5zm4 0v12h3V3H9zM1 3v12h3V3H1zm12 0v12h2V3h-2z'/></svg>"); }

/* ---------- users module layout ---------- */
.us-layout { position: absolute; inset: 0; display: flex; }
.us-left { width: 420px; min-width: 300px; max-width: 70%; display: flex; flex-direction: column; background: #fff; border-right: 1px solid var(--ggps-border); }
.us-left.collapsed { width: 0 !important; min-width: 0; overflow: hidden; border-right: 0; }
.us-splitter { width: 6px; cursor: col-resize; background: #e3e8ee; border-right: 1px solid var(--ggps-border); flex: 0 0 auto; position: relative; }
.us-splitter:hover { background: #cfd8e3; }
.us-splitter .us-collapse-btn {
  position: absolute; top: 50%; left: -1px; transform: translateY(-50%); width: 8px; height: 48px;
  background: #9aa7b5; border: 0; border-radius: 0 3px 3px 0; padding: 0; cursor: pointer; color: #fff; font-size: calc(8px * var(--ga-k, 1)); line-height: 48px;
}
.us-right { flex: 1; min-width: 0; display: flex; flex-direction: column; background: #fff; }
/* รายชื่อผู้ใช้ (list แบบ card-row กดง่าย) */
.us-list { flex: 1; min-height: 0; overflow: auto; }
.us-row { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-bottom: 1px solid #eef1f4; cursor: pointer; min-height: var(--ga-touch); }
.us-row:hover { background: #f3f7ff; }
.us-row.active { background: #e2ecfb; box-shadow: inset 3px 0 0 var(--ggps-accent); }
.us-row .us-num { width: 34px; flex: 0 0 auto; text-align: right; color: #8a94a0; font-size: calc(11px * var(--ga-k, 1)); }
.us-row .us-main { flex: 1; min-width: 0; }
.us-row .us-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.us-row .us-sub { color: #6c757d; font-size: calc(11px * var(--ga-k, 1)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.us-row .ga-acts { flex: 0 0 auto; }
.us-empty { padding: 24px; text-align: center; color: #888; }
.us-loading { position: absolute; inset: 0; background: rgba(255,255,255,.6); display: flex; align-items: center; justify-content: center; z-index: 3; }

/* ---------- forms ---------- */
.ga-fs { border: 1px solid var(--ggps-border); border-radius: 6px; padding: 8px 12px 2px; margin-bottom: 10px; background: #fff; }
.ga-fs legend { float: none; width: auto; font-size: calc(13px * var(--ga-k, 1)); font-weight: 600; padding: 0 6px; margin: 0 0 4px; }
.ga-form .row { margin-bottom: 6px; }
.ga-form .col-form-label { color: #444; }
.ga-form .form-check-inline { margin-right: 10px; }
.ga-form .ga-info { background: #f5f7fa; border: 1px solid var(--ggps-border); border-radius: 6px; padding: 6px 10px; margin-bottom: 10px; font-size: calc(12px * var(--ga-k, 1)); display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 2px 12px; }
.ga-form .ga-info b { color: #345; }
.ga-form .ga-info { grid-template-columns: repeat(auto-fill, minmax(calc(190px * var(--ga-k, 1)), 1fr)); }
.ga-form .ga-info > * { min-width: 0; overflow-wrap: anywhere; }   /* Unit ID ยาว ไม่ล้นทับช่องข้าง (ตัวอักษรใหญ่) */
.ga-pics { display: flex; flex-wrap: wrap; gap: 4px 10px; }
.ga-pic { display: inline-flex; align-items: center; gap: 4px; cursor: pointer; border: 1px solid transparent; border-radius: 4px; padding: 2px 4px; }
.ga-pic:has(input:checked) { border-color: #9ec5fe; background: #e7f0ff; }
.ga-pic img { height: 22px; }
.ga-required { color: #dc3545; font-weight: 700; }
.ga-modal-footer { flex-wrap: wrap; gap: 4px; }
.ga-modal-footer .ga-left { margin-right: auto; display: flex; gap: 4px; flex-wrap: wrap; }
.ga-dlt-status { margin-top: 3px; padding: 3px 8px; border-radius: 3px; font-size: calc(11px * var(--ga-k, 1)); line-height: 16px; display: none; }
.ga-dlt-status.is-ok   { display: block; color: #1b7a2f; background: #e6f6ea; border: 1px solid #9bd3a8; }
.ga-dlt-status.is-bad  { display: block; color: #b3261e; background: #fdecea; border: 1px solid #f1a9a4; }
.ga-dlt-status.is-none { display: block; color: #666; background: #f3f3f3; border: 1px solid #ddd; }
.ga-dlt-status.is-info { display: block; color: #0b5394; background: #e8f1fb; border: 1px solid #a9c7ea; }
.ga-dlt-ok  { border-color: #3fa55b !important; }
.ga-dlt-bad { border-color: #d9534f !important; box-shadow: 0 0 0 1px #d9534f inset; }
.ga-script-box { white-space: pre-wrap; word-break: break-all; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: calc(11px * var(--ga-k, 1)); background: #f6f8fa; border: 1px solid var(--ggps-border); border-radius: 4px; padding: 8px; max-height: 40vh; overflow: auto; }
.ga-modal-grid { height: 60vh; min-height: 260px; display: flex; flex-direction: column; }
.ga-modal-grid .ga-grid-wrap { flex: 1; }
.modal-body.ga-modal-body-flex { display: flex; flex-direction: column; padding: 0; }
.modal-body.ga-modal-body-flex .ga-grid-wrap { flex: 1; min-height: 240px; }
/* permit modal: ผู้ใช้ (ซ้าย) + รถ (ขวา) */
.pm-layout { display: flex; height: 70vh; min-height: 300px; }
.pm-left { width: 300px; flex: 0 0 auto; display: flex; flex-direction: column; border-right: 1px solid var(--ggps-border); }
.pm-right { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.flatpickr-calendar { font-size: calc(13px * var(--ga-k, 1)); }

/* ---------- notupdate module (D2) ---------- */
.nu-layout { position: absolute; inset: 0; display: flex; flex-direction: column; background: #fff; }
.nu-layout.nu-loading .ga-grid-wrap::after { content: ''; position: absolute; inset: 0; background: rgba(255,255,255,.45); z-index: 3; }
.nu-type { width: auto; max-width: 180px; flex: 0 0 auto; }
.nu-summary { white-space: nowrap; color: #444; }
.nu-summary .badge { font-size: calc(12px * var(--ga-k, 1)); }
.nu-last { font-weight: 600; white-space: nowrap; }
.nu-last-green { color: #00a000; }
.nu-last-blue { color: #0000FF; }
.nu-last-red { color: #FF0000; }
.nu-reset { padding: 1px 8px; line-height: 20px; font-weight: 600; }
.nu-phone { white-space: nowrap; }

/* ---------- info module (D2) ---------- */
.in-layout { position: absolute; inset: 0; overflow: auto; padding: 12px; background: var(--ggps-panel-bg); }
.in-card { max-width: 760px; margin: 0 auto; background: #fff; border: 1px solid var(--ggps-border); border-radius: 6px; overflow: hidden; }
.in-card .ga-panel-title { border-radius: 0; }
.in-status .badge { font-weight: 500; }
.in-form { padding: 12px 14px; }
.in-form.in-busy { opacity: .5; pointer-events: none; }
.in-switch { margin-bottom: 12px; padding-left: 2.8em; min-height: var(--ga-touch); display: flex; align-items: center; }
.in-switch .form-check-input { width: 2.4em; height: 1.3em; margin-left: -2.8em; cursor: pointer; }
.in-form textarea { font-size: calc(14px * var(--ga-k, 1)); line-height: 1.45; }
.in-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.in-actions .btn { min-width: 110px; }

/* ---------- ota module (D3) ---------- */
.ot-layout { position: absolute; inset: 0; display: flex; flex-direction: column; background: #fff; }
.ot-layout.ot-loading .ga-grid-wrap::after { content: ''; position: absolute; inset: 0; background: rgba(255,255,255,.45); z-index: 3; }
.ot-sel { white-space: nowrap; font-size: calc(12px * var(--ga-k, 1)); }
.ot-range { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.ot-range input { width: 130px; }
.ot-prog { position: relative; height: 18px; background: #e9ecef; border-radius: 3px; overflow: hidden; min-width: 90px; }
.ot-prog-bar { position: absolute; inset: 0 auto 0 0; background: #4dabf7; }
.ot-prog-bar.done { background: #40c057; }
.ot-prog span { position: relative; display: block; text-align: center; font-size: calc(11px * var(--ga-k, 1)); line-height: 18px; color: #1b2a3a; }
.ot-fs legend { display: flex; align-items: center; }
.ot-fs legend .form-check-input { cursor: pointer; }
.ot-fs.is-off .ot-fs-body { opacity: .5; }
.ot-targets { word-break: break-word; }
.ot-fw-body { display: flex; flex-direction: column; }
.ot-fw-body .ga-modal-grid { height: 40vh; min-height: 220px; }
.ggps-ico-chip    { --ico: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M5 0a.5.5 0 0 1 .5.5V2h1V.5a.5.5 0 0 1 1 0V2h1V.5a.5.5 0 0 1 1 0V2h1V.5a.5.5 0 0 1 1 0V2A2.5 2.5 0 0 1 14 4.5h1.5a.5.5 0 0 1 0 1H14v1h1.5a.5.5 0 0 1 0 1H14v1h1.5a.5.5 0 0 1 0 1H14v1h1.5a.5.5 0 0 1 0 1H14a2.5 2.5 0 0 1-2.5 2.5v1.5a.5.5 0 0 1-1 0V14h-1v1.5a.5.5 0 0 1-1 0V14h-1v1.5a.5.5 0 0 1-1 0V14h-1v1.5a.5.5 0 0 1-1 0V14A2.5 2.5 0 0 1 2 11.5H.5a.5.5 0 0 1 0-1H2v-1H.5a.5.5 0 0 1 0-1H2v-1H.5a.5.5 0 0 1 0-1H2v-1H.5a.5.5 0 0 1 0-1H2A2.5 2.5 0 0 1 4.5 2V.5A.5.5 0 0 1 5 0zm-.5 3A1.5 1.5 0 0 0 3 4.5v7A1.5 1.5 0 0 0 4.5 13h7a1.5 1.5 0 0 0 1.5-1.5v-7A1.5 1.5 0 0 0 11.5 3h-7zM5 6.5A1.5 1.5 0 0 1 6.5 5h3A1.5 1.5 0 0 1 11 6.5v3A1.5 1.5 0 0 1 9.5 11h-3A1.5 1.5 0 0 1 5 9.5v-3z'/></svg>"); }
.ggps-ico-power   { --ico: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M7.5 1v7h1V1h-1z'/><path d='M3 8.812a4.999 4.999 0 0 1 2.578-4.375l-.485-.874A6 6 0 1 0 11 3.616l-.501.865A5 5 0 1 1 3 8.812z'/></svg>"); }
.ggps-ico-gear    { --ico: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M8 4.754a3.246 3.246 0 1 0 0 6.492 3.246 3.246 0 0 0 0-6.492zM5.754 8a2.246 2.246 0 1 1 4.492 0 2.246 2.246 0 0 1-4.492 0z'/><path d='M9.796 1.343c-.527-1.79-3.065-1.79-3.592 0l-.094.319a.873.873 0 0 1-1.255.52l-.292-.16c-1.64-.892-3.433.902-2.54 2.541l.159.292a.873.873 0 0 1-.52 1.255l-.319.094c-1.79.527-1.79 3.065 0 3.592l.319.094a.873.873 0 0 1 .52 1.255l-.16.292c-.892 1.64.901 3.434 2.541 2.54l.292-.159a.873.873 0 0 1 1.255.52l.094.319c.527 1.79 3.065 1.79 3.592 0l.094-.319a.873.873 0 0 1 1.255-.52l.292.16c1.64.893 3.434-.902 2.54-2.541l-.159-.292a.873.873 0 0 1 .52-1.255l.319-.094c1.79-.527 1.79-3.065 0-3.592l-.319-.094a.873.873 0 0 1-.52-1.255l.16-.292c.893-1.64-.902-3.433-2.541-2.54l-.292.159a.873.873 0 0 1-1.255-.52l-.094-.319z'/></svg>"); }
.ggps-ico-excel   { --ico: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M14 14V4.5L9.5 0H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2zM9.5 3A1.5 1.5 0 0 0 11 4.5h2V14a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1h5.5v2z'/><path d='M5.884 6.68 8 9.219l2.116-2.54a.5.5 0 1 1 .768.641L8.651 10l2.233 2.68a.5.5 0 0 1-.768.64L8 10.781l-2.116 2.54a.5.5 0 0 1-.768-.641L7.349 10 5.116 7.32a.5.5 0 1 1 .768-.64z'/></svg>"); }

/* ---------- dlt module + import (D4) ---------- */
.dl-layout { position: absolute; inset: 0; display: flex; flex-direction: column; background: #fff; }
.dl-notice { flex: 0 0 auto; }
.ot-imp-sum { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 8px; font-size: calc(12px * var(--ga-k, 1)); }
.ot-imp-grid { height: 42vh; min-height: 200px; }
.ggps-ico-upload  { --ico: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M.5 9.9a.5.5 0 0 1 .5.5v2.5a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-2.5a.5.5 0 0 1 1 0v2.5a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2v-2.5a.5.5 0 0 1 .5-.5z'/><path d='M7.646 1.146a.5.5 0 0 1 .708 0l3 3a.5.5 0 0 1-.708.708L8.5 2.707V11.5a.5.5 0 0 1-1 0V2.707L5.354 4.854a.5.5 0 1 1-.708-.708l3-3z'/></svg>"); }

/* ---------- mobile ---------- */
@media (max-width: 767.98px) {
  body.ggps-app { font-size: calc(14px * var(--ga-k, 1)); }
  .ggps-app .form-control, .ggps-app .form-select, .ggps-app .btn { font-size: calc(14px * var(--ga-k, 1)); }
  .ggps-app .form-control-sm, .ggps-app .form-select-sm, .ggps-app .btn-sm { font-size: calc(13px * var(--ga-k, 1)); }
  .ggps-header { gap: 8px; }
  .ggps-main { bottom: var(--ggps-bottomnav-h); }
  .ga-toolbar { padding: 4px 6px; gap: 4px 6px; }
  .ga-toolbar .btn { min-height: 38px; }
  .ga-search { max-width: none; }
  .ga-act { width: var(--ga-touch); height: 40px; }
  .ga-act .ggps-ico { width: 20px; height: 20px; }
  .ga-act-text { width: auto; }
  .ga-pager .btn { min-width: 38px; line-height: 32px; }
  .us-layout { flex-direction: column; }
  .us-splitter { display: none; }
  .us-left, .us-right { position: absolute; inset: 0; width: auto !important; min-width: 0; max-width: none; border-right: 0; }
  .us-left.collapsed { display: none; }
  .us-right { display: none; }
  .us-layout.show-vehicles .us-left { display: none; }
  .us-layout.show-vehicles .us-right { display: flex; }
  .ga-back { display: inline-flex; align-items: center; }
  .ga-grid .tabulator-row { min-height: var(--ga-touch); }
  .ga-grid .tabulator-row .tabulator-cell { padding: 6px 6px; }
  .ga-grid .tabulator-row .tabulator-responsive-collapse-toggle { width: 28px; height: 28px; }
  .ga-form .col-form-label { padding-bottom: 0; }
  .pm-layout { flex-direction: column; height: auto; }
  .pm-left { width: auto; border-right: 0; border-bottom: 1px solid var(--ggps-border); max-height: 40vh; }
  .pm-right { min-height: 50vh; }
  .ga-modal-grid { height: calc(100vh - 140px); }
  .nu-type { max-width: 44%; }
  .nu-summary { font-size: calc(12px * var(--ga-k, 1)); }
  .nu-reset { padding: 6px 12px; line-height: 20px; }
  .in-layout { padding: 8px; }
  .in-actions .btn { flex: 1 1 30%; min-height: var(--ga-touch); }
  .modal-fullscreen-md-down { max-width: none !important; }  /* D3 fix: A.modal({width}) ใส่ inline max-width ทับ fullscreen บนมือถือ */
  .ga-modal-footer .btn { min-height: 40px; min-width: 88px; }
  .ot-range input { width: 40%; }
  .ga-hbtn { min-width: 40px; min-height: 40px; justify-content: center; }
  .ot-excel { margin-left: 0 !important; width: 100%; }
  .ot-layout .ga-toolbar .btn { flex: 1 1 auto; }
  .ot-prog { min-width: 70px; }
  .ot-fw-body .ga-modal-grid { height: calc(100vh - 420px); }
}

/* ---------- login page ---------- */
body.ggps-login-page { background: #f2f4f7; min-height: 100vh; margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans Thai", Tahoma, sans-serif; }
.ggps-login-wrap { display: flex; flex-direction: column; align-items: center; padding: 40px 16px; gap: 28px; }
.ggps-login-logo { width: 300px; max-width: 80vw; height: auto; }
.ggps-login-card { width: 340px; max-width: 100%; }
.ggps-login-card .card-header { background: var(--ggps-blue); color: #fff; }

/* 2026-11-02 ค้างส่ง config + ตั้งค่าระบบ */
.ga-act.ga-act-warn { background: #ffc107; border-color: #ffc107; color: #3d2e00; font-weight: 600; }
.ga-act.ga-act-warn:hover { background: #ffb300; }
.ga-cfgq-table td, .ga-cfgq-table th { font-size: calc(13px * var(--ga-k, 1)); }
.ga-cfgq-table .cfgq-st { max-width: 360px; }
.ga-cfgq-table .cfgq-send { min-width: 56px; min-height: 34px; }
@media (max-width: 767.98px) { .ga-cfgq-table .cfgq-send { min-height: 44px; } }
.ga-setting-row { display: flex; align-items: flex-start; gap: .5rem; font-size: calc(15px * var(--ga-k, 1)); }
.ga-setting-row .form-check-input { width: 3em; height: 1.5em; flex: none; margin-top: .1em; }

/* 2026-11-02 ตัวบอกกำลังดึงข้อมูล (A.busy) */
.ga-list-wrap { flex: 1; min-height: 0; position: relative; display: flex; flex-direction: column; }
.ga-list-wrap > .us-list { flex: 1; min-height: 0; }
.ga-busy { position: absolute; inset: 0; z-index: 20; background: rgba(255,255,255,.6); display: flex; align-items: flex-start; justify-content: center; padding-top: 72px; cursor: progress; }
.ga-busy-box { background: #fff; border: 1px solid #dee2e6; border-radius: 8px; padding: 10px 16px; box-shadow: 0 4px 14px rgba(0,0,0,.12); font-size: calc(14px * var(--ga-k, 1)); text-align: center; }
.ga-pager-busy { pointer-events: none; opacity: .55; }

/* ===== 2026-11-03 ปรับขนาดตัวอักษร (เฟือง → setting.js) =====
 * html.ga-fs-l / ga-fs-xl = ขนาด · html.ga-fs-all = ใช้ทั้งหน้า (ไม่มี = เฉพาะหน้าต่าง/ฟอร์ม)
 * --ga-k = ตัวคูณที่ font-size ทุกตัวในไฟล์นี้ใช้ (calc(Npx * var(--ga-k))) · แถบเมนูบน/ล่าง คงขนาดเดิมเสมอ */
html { --ga-fm: 1; --ga-fp: 1; }
html.ga-fs-l  { --ga-fm: 1.15; }
html.ga-fs-xl { --ga-fm: 1.3; }
html.ga-fs-l.ga-fs-all  { --ga-fp: 1.15; }
html.ga-fs-xl.ga-fs-all { --ga-fp: 1.3; }
body.ggps-app { --ga-k: var(--ga-fp); }
.ggps-app .modal { --ga-k: var(--ga-fm); font-size: calc(13px * var(--ga-k)); }
.ggps-app .modal .input-group-text { font-size: calc(13px * var(--ga-k)); }
.ggps-app .modal-title { font-size: calc(15px * var(--ga-k)); }
.ga-grid.tabulator { font-size: calc(16px * var(--ga-k, 1)); }   /* ตาราง = 16px จาก theme tabulator (เท่าเดิม) แค่ให้ขยายตามได้ */
.ggps-header, .ggps-bottomnav { --ga-k: 1; font-size: 13px; }
.ggps-app .modal .col-form-label-sm { font-size: calc(14px * var(--ga-k)); }   /* bootstrap .875rem */
@media (min-width: 576px) {   /* หน้าต่างกว้างขึ้นตามตัวอักษร (ไม่เกินจอ) — A.modal ส่งความกว้างมาทาง --ga-mw */
  .ggps-app .modal-dialog { max-width: min(calc(var(--bs-modal-width) * var(--ga-k)), calc(100vw - 1rem)); }
  .ggps-app .modal-dialog[style*="--ga-mw"] { max-width: min(calc(var(--ga-mw) * var(--ga-k)), calc(100vw - 1rem)); }
}
@media (max-width: 767.98px) {   /* มือถือ: ฐาน 14px เหมือนส่วนอื่นของมือถือ */
  .ggps-app .modal, .ggps-app .modal .input-group-text { font-size: calc(14px * var(--ga-k)); }
  .ggps-header, .ggps-bottomnav { font-size: 14px; }
  .ggps-app .modal-dialog.modal-fullscreen-md-down { max-width: none; }
}
.ga-fs-opts { display: flex; flex-wrap: wrap; gap: 6px; }
.ga-fs-opts .btn { min-width: 92px; }
.ga-fs-sample { border: 1px dashed var(--ggps-border); border-radius: 6px; padding: 6px 10px; margin-top: 8px; font-size: calc(13px * var(--ga-k)); }

/* ===== 2026-11-03 popup เด่นขึ้น (ui.msg / ui.confirm / A.prompt) ===== */
/* popup ซ้อนบนหน้าต่างอื่น: ให้ฉากมืดของ popup อยู่เหนือหน้าต่างเดิม (เดิมอยู่ใต้ → หน้าต่างข้างหลังไม่มืด popup กลืน) */
.modal-backdrop ~ .modal-backdrop { z-index: 1060; }
.modal-backdrop ~ .modal { z-index: 1065; }
.ga-pop { --ga-pop-c: var(--ggps-blue); }
.ga-pop-success { --ga-pop-c: #198754; }
.ga-pop-warning { --ga-pop-c: #c76a00; }
.ga-pop-danger  { --ga-pop-c: #c82333; }
.ga-pop .modal-content { border: 2px solid var(--ga-pop-c); border-radius: 10px; box-shadow: 0 14px 48px rgba(0,0,0,.45); overflow: hidden; }
.ga-pop .modal-header { background: var(--ga-pop-c); color: #fff; border-bottom: 0; padding: 10px 14px; }
.ga-pop .modal-title { font-weight: 600; font-size: calc(16px * var(--ga-k, 1)); }
.ga-pop .modal-header .btn-close { filter: invert(1) grayscale(1) brightness(2); opacity: .85; }
.ga-pop .modal-body { font-size: calc(15px * var(--ga-k, 1)); padding: 16px 18px; }
.ga-pop .modal-footer { background: #f6f7f9; padding: 8px 12px; }
.ga-pop .modal-footer .btn { min-width: 96px; font-size: calc(14px * var(--ga-k, 1)); }
.ga-pop-ico { flex: none; width: 24px; height: 24px; margin-right: 8px; border-radius: 50%; background: rgba(255,255,255,.25); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px; line-height: 1; }
.ga-pop-info .ga-pop-ico::before    { content: "i"; font-family: Georgia, serif; }
.ga-pop-success .ga-pop-ico::before { content: "\2713"; }
.ga-pop-warning .ga-pop-ico::before { content: "!"; }
.ga-pop-danger .ga-pop-ico::before  { content: "\2715"; }

/* ===== 2026-11-04 dropdown พิมพ์ค้นหาได้ (A.combo) — จังหวัด / ยี่ห้อ / ลักษณะรถ ===== */
select.ga-cb-src { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden; clip: rect(0 0 0 0); border: 0 !important; opacity: 0; pointer-events: none; }
.ga-cb-btn { display: block; width: 100%; text-align: left; min-height: calc(1.5em + .5rem + 2px); }
.ga-cb-btn .ga-cb-txt { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ga-cb-btn.ga-cb-on { border-color: #86b7fe; box-shadow: 0 0 0 .2rem rgba(13,110,253,.2); }
.ga-cb-btn:disabled { background-color: var(--bs-secondary-bg, #e9ecef); }
.ga-cb-pop { position: fixed; z-index: 1090; background: #fff; border: 1px solid #9aa4b1; border-radius: 8px; box-shadow: 0 10px 32px rgba(0,0,0,.28); padding: 6px; font-size: calc(14px * var(--ga-k, 1)); }
.ga-cb-pop .ga-cb-q { font-size: inherit; margin-bottom: 4px; }
.ga-cb-list { overflow-y: auto; overscroll-behavior: contain; max-height: 320px; }
.ga-cb-opt { padding: 5px 8px; border-radius: 4px; cursor: pointer; line-height: 1.35; }
.ga-cb-opt:hover { background: #eef3fb; }
.ga-cb-opt.ga-cb-cur { font-weight: 600; }
.ga-cb-opt.ga-cb-act { background: var(--ggps-blue, #0d6efd); color: #fff; }
.ga-cb-opt mark { padding: 0; background: #ffe58a; color: inherit; border-radius: 2px; }
.ga-cb-opt.ga-cb-act mark { background: rgba(255,255,255,.35); }
.ga-cb-none { padding: 8px; color: #6c757d; }
@media (max-width: 575.98px) {
  .ga-cb-pop { font-size: calc(16px * var(--ga-k, 1)); box-shadow: 0 0 0 100vmax rgba(0,0,0,.35), 0 10px 32px rgba(0,0,0,.3); }
  .ga-cb-pop .ga-cb-q { font-size: 16px; }   /* iOS: < 16px จะซูมจอเอง */
  .ga-cb-opt { padding: 9px 10px; border-bottom: 1px solid #eef0f3; }
}
