/* station.cambodiameteo.com: portal tab bar (map, report, admin pages, moved tools) - one compact row, blue/yellow */
.ptabs{display:flex;flex-wrap:nowrap;gap:4px;overflow-x:auto;scrollbar-width:thin;padding:4px 8px;margin:0;
  background:linear-gradient(180deg,#2e7dd2,#1e5aa8);border-radius:10px;box-shadow:0 2px 8px rgba(30,90,168,.25);
  font:13px/1.3 system-ui,-apple-system,"Segoe UI",Roboto,Hanuman,"Noto Sans Khmer",sans-serif;flex:0 0 auto}
.ptabs a{flex:0 0 auto;display:inline-flex;align-items:baseline;gap:5px;padding:5px 12px;border-radius:7px;color:#fff;
  text-decoration:none;white-space:nowrap;font-weight:700;border:1px solid transparent}
.ptabs a small{font-size:11px;font-weight:400;color:#dbe9fb;display:inline}
.ptabs a:hover{background:rgba(255,255,255,.16)}
.ptabs a:focus-visible{outline:2px solid #fbbf24;outline-offset:1px}
.ptabs a.on{background:#fbbf24;color:#163f7a}
.ptabs a.on small{color:#163f7a}
body.st-tools .ptabs,body[data-page] .ptabs{border-radius:0;box-shadow:none}
@media (max-width:640px){.ptabs a{padding:4px 9px}.ptabs a small{display:none}}

/* map page: Report button, bottom-right of the map */
.rpt-fab{position:absolute;right:10px;bottom:28px;z-index:900;display:flex;flex-direction:column;align-items:center;padding:8px 14px;border-radius:10px;background:#1e5aa8;color:#fff;text-decoration:none;box-shadow:0 2px 8px rgba(0,0,0,.35);border:2px solid #f5c400;line-height:1.2}
.rpt-fab:hover,.rpt-fab:focus{background:#16457f}
.rpt-fab b{font-size:14px}.rpt-fab small{font-size:11px;opacity:.9}
/* compact (owner, 2026-12-05) */
.ptabs{padding:2px 6px;gap:2px}
.ptabs a{padding:2px 10px !important;font-size:13px !important;min-height:0 !important;line-height:1.5 !important;border-radius:6px !important}
.ptabs a small{font-size:11px !important}
/* ===== shared portal look = the /admin/users page (owner, 2026-12-05) =====
   Loaded on every portal page: admin pages (+admin.css), tool pages (+tools.css), map, report.
   Classes: .wrap h1/h2 (+small) .hint .btn .btn.primary .btn.danger .inl .tablewrap .utbl .ptools .psub .pwonce, inputs inside .wrap/.st-main/.utbl/.inl
   Page-specific rules go in the page's own css. Element rules use :where() (no specificity) so a page's own class wins. */
:where(.wrap,.st-main){color:#1c2733}
.wrap{max-width:1400px;margin:0 auto;padding:6px 10px;box-sizing:border-box}
.st-main .wrap{padding:0;max-width:none}
:where(.wrap,.st-main) h1{font-size:1.3rem;line-height:1.3;font-weight:700;margin:0 0 .8rem}
:where(.wrap,.st-main) h2{font-size:15px;line-height:1.3;font-weight:700;margin:12px 0 6px}
:where(.wrap,.st-main) :is(h1,h2,h3) small{display:inline;margin-left:4px;font-size:.8em;font-weight:400;color:#6b7b8a}
.hint{margin:2px 0 6px;color:#5b6b7b;font-size:12px;line-height:1.35}
.hint small{display:inline;margin-left:4px;font-size:.92em;color:#6b7b8a}
/* buttons: Khmer on top, small English under it, 30px high */
.btn{font:inherit;font-size:12.5px;font-weight:400;line-height:1.2;display:inline-flex;flex-direction:column;align-items:center;justify-content:center;
  min-height:30px;padding:2px 10px;border:1px solid #9fb0c0;border-radius:6px;background:#f6f8fa;color:#1c2733;cursor:pointer;text-decoration:none;box-sizing:border-box;vertical-align:middle}
.btn small{display:inline;margin-left:4px;font-size:.78em;font-weight:400;color:#5b6b7b}
.btn:hover{background:#eaf1f8;border-color:#7f9ab3}
.btn:focus-visible{outline:2px solid #0b6fb8;outline-offset:1px}
.btn.primary{background:#0b6fb8;border-color:#0b6fb8;color:#fff;font-weight:700}
.btn.primary small{color:#dbeaf6}
.btn.primary:hover{background:#095c99;border-color:#095c99}
.btn.danger{color:#a11;border-color:#d9a0a0}
.btn:disabled,.btn[disabled]{opacity:.45;cursor:default}
/* inputs: 30px, thin border (checkbox/radio/file keep the browser look) */
:where(.wrap,.st-main,.utbl,.inl) :where(input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=file]):not([type=range]):not([type=color]):not([type=submit]):not([type=button]):not([type=reset]):not([type=image]),select,textarea){
  font:inherit;font-size:13px;font-weight:400;min-height:30px;padding:3px 8px;border:1px solid #b8c4d0;border-radius:6px;background:#fff;color:#1c2733;box-sizing:border-box;max-width:100%}
:where(.wrap,.st-main,.utbl,.inl) :where(input,select,textarea):focus-visible{outline:2px solid #0b6fb8;outline-offset:0;border-color:#0b6fb8}
/* a form on one row (in a table cell or under a title) */
.inl{display:inline-flex;gap:4px;align-items:center;margin:0 4px 4px 0;vertical-align:middle}
.inl .btn{padding:3px 8px}
.inl .btn small{display:inline}
/* compact white tables: light-blue header, Khmer + small grey English in th */
.tablewrap{background:#fff;border-radius:8px;overflow-x:auto}
.utbl{width:100%;border-collapse:collapse;background:#fff;font-size:12.5px;line-height:1.35;color:#1c2733}
.utbl thead{display:table-header-group}
.utbl tbody tr{display:table-row;padding:0;border:0}
.utbl tbody td{display:table-cell}
.utbl th,.utbl td{border:1px solid #d5dde5;padding:3px 6px;text-align:left;vertical-align:top}
.utbl th{background:#e8f2fc;font-size:12px;font-weight:700}
.utbl th small{display:inline;margin-left:4px;font-size:.8em;font-weight:400;color:#6b7b8a}
.utbl td small{display:block;font-size:.78em;color:#5b6b7b}
.utbl td .btn small,.utbl td small.hint{display:inline}
.utbl tbody tr:hover{background:#f7fafc}
.utbl tr.off td{color:#8a96a3;background:#f6f7f9}
.utbl .acts{white-space:nowrap}
.utbl .num{text-align:right;font-variant-numeric:tabular-nums}
.utbl tfoot .addrow td{background:#f6f9fd;border-top:2px solid #cfe0f3;vertical-align:middle}
.utbl tfoot :where(input,select){min-height:26px;padding:2px 6px;font-size:12px;margin:1px 0;width:100%}
/* tools list (/admin): one line of small pills */
.ptools{display:flex;flex-wrap:wrap;gap:4px;align-items:center;margin:4px 0 6px;font-size:12px}
.ptools b{font-size:12px;margin-right:4px}
.ptools a{display:inline-block;padding:1px 8px;border:1px solid #1e5aa8;border-radius:999px;color:#1e5aa8;text-decoration:none;background:#fff;font-size:12px;line-height:1.5;min-height:0}
.ptools a:hover{background:#1e5aa8;color:#fff}
.ptools a small,.ptools b small{display:inline;margin-left:3px}
.ptools a:hover small{color:#dbe9fb}
/* submenu: second row under the tab bar, current section blue */
.psub{display:flex;flex-wrap:wrap;gap:3px;align-items:center;margin:0;padding:3px 8px;background:#e8f1fb;border-bottom:1px solid #cfe0f3;
  font:12px/1.4 system-ui,-apple-system,"Segoe UI",Roboto,Hanuman,"Noto Sans Khmer",sans-serif}
.psub a{display:inline-flex;align-items:baseline;gap:3px;padding:1px 9px;border:1px solid #bcd3ee;border-radius:999px;background:#fff;color:#1e5aa8;text-decoration:none;white-space:nowrap}
.psub a small{display:inline;font-size:11px;font-weight:400;color:#5b7ba3}
.psub a:hover{border-color:#1e5aa8}
.psub a:focus-visible{outline:2px solid #fbbf24;outline-offset:1px}
.psub a.on{background:#1e5aa8;border-color:#1e5aa8;color:#fff;font-weight:700}
.psub a.on small{color:#dbe9fb}
/* one-time password box, wide card */
.pwonce{background:#fff7d6;border:2px solid #fbbf24;border-radius:10px;padding:.8rem 1rem;margin:0 0 1rem}
.pwonce code{font-size:1.15rem;background:#fff;padding:2px 8px;border-radius:4px;user-select:all}
.card.wide{max-width:520px;margin:1.2rem 0}
/* QC tab badge: open errors in the user's scope (/admin/qc, 2026-12-05) */
.ptabs a .qcb{display:inline-block;min-width:1.3em;padding:0 4px;border-radius:999px;background:#d62828;color:#fff;font-size:10.5px;font-weight:700;line-height:1.5;text-align:center}

/* wide tables: the custom top/bottom bars (portal-scroll.js) replace the native one (2026-12-05) */
.tablewrap.xs-on{scrollbar-width:none}.tablewrap.xs-on::-webkit-scrollbar{display:none}
