/* station.cambodiameteo.com/admin - mobile first */
@font-face { font-family: Hanuman; src: url(/fonts/hanuman-400-km.woff2) format("woff2"); font-weight: 400; unicode-range: U+1780-17FF, U+19E0-19FF, U+200B-200D, U+25CC; }
@font-face { font-family: Hanuman; src: url(/fonts/hanuman-700-km.woff2) format("woff2"); font-weight: 700; unicode-range: U+1780-17FF, U+19E0-19FF, U+200B-200D, U+25CC; }
* { box-sizing: border-box; }
html { font-size: 16px; }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, Hanuman, sans-serif; color: #1c2733; background: #eef2f6; line-height: 1.45; }
body.noscroll { overflow: hidden; }
small { font-size: .78em; color: #5b6b7b; font-weight: 400; }
h1 { font-size: 1.3rem; margin: 0 0 .8rem; }
h1 small, label small, th small, button small { display: block; }
.top { display: flex; align-items: center; gap: .6rem; padding: .5rem .8rem; background: #0b4a7d; color: #fff; }
.top small { color: #cfe0ef; }
.seal { width: 38px; height: 38px; }
.ttl { flex: 1; display: flex; flex-direction: column; }
.who { display: flex; align-items: center; gap: .5rem; }
.who span { font-size: .9rem; }
.who form { margin: 0; }
.top .btn.ghost { color: #fff; border-color: #ffffff80; background: transparent; }
.top .btn.ghost small { color: #cfe0ef; }
.card { max-width: 420px; margin: 1.5rem auto; background: #fff; padding: 1.2rem; border-radius: 10px; box-shadow: 0 2px 10px #0001; }
.form { display: flex; flex-direction: column; gap: .9rem; margin-bottom: 1rem; }
label { display: flex; flex-direction: column; gap: .25rem; font-weight: 700; font-size: .95rem; }
input, select { font: inherit; font-weight: 400; padding: .6rem .7rem; border: 1px solid #b8c4d0; border-radius: 6px; background: #fff; min-height: 44px; width: 100%; }
input.code { font-size: 1.4rem; letter-spacing: .3em; text-align: center; }
.btn { font: inherit; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; padding: .45rem .9rem; min-height: 44px;
  border: 1px solid #9fb0c0; border-radius: 6px; background: #f6f8fa; color: #1c2733; cursor: pointer; text-decoration: none; line-height: 1.2; }
.btn small { font-size: .72em; }
.btn.primary { background: #0b6fb8; border-color: #0b6fb8; color: #fff; font-weight: 700; }
.btn.primary small { color: #dbeaf6; }
.btn:disabled { opacity: .45; cursor: default; }
.err { background: #fde8e8; color: #8a1c1c; padding: .6rem .8rem; border-radius: 6px; }
.wrap { padding: .7rem; max-width: 1200px; margin: 0 auto; }
.filters { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; background: #fff; padding: .7rem; border-radius: 8px; }
.filters label:first-child { grid-column: 1 / -1; }
.filters .chk { flex-direction: row; align-items: center; gap: .4rem; font-weight: 400; }
.filters .chk input { width: 22px; min-height: 22px; }
.count { align-self: center; color: #5b6b7b; }
.note { min-height: 1.2em; margin: .5rem 0; color: #1d5e2e; }
.note.bad { color: #a11; }
.tablewrap { background: #fff; border-radius: 8px; }
table { width: 100%; border-collapse: collapse; }
thead { display: none; }
tbody tr { display: grid; grid-template-columns: 1fr auto; gap: .15rem .6rem; padding: .6rem .7rem; border-bottom: 1px solid #e3e9ef; }
tbody td { padding: 0; }
td.name { grid-column: 1 / -1; display: flex; flex-direction: column; }
td.name b { font-size: 1.02rem; }
small.code { font-family: monospace; }
td.last { display: flex; flex-direction: column; }
td.num { font-variant-numeric: tabular-nums; color: #44525f; }
.st { display: inline-block; padding: .1rem .55rem; border-radius: 999px; font-size: .85rem; font-weight: 700; }
.st-up { background: #d9f2df; color: #145c26; }
.st-late { background: #fff1c9; color: #7a5300; }
.st-down { background: #fde0e0; color: #8a1c1c; }
.st-nodata { background: #e6e9ed; color: #4a5560; }
.log { background: #fff; border-radius: 8px; margin-top: .8rem; padding: .6rem .8rem; }
.log summary { cursor: pointer; font-weight: 700; }
.log ul { padding-left: 1.1rem; margin: .5rem 0 0; font-size: .9rem; }
.log li { margin-bottom: .3rem; }
.editor { position: fixed; inset: 0; background: #0008; z-index: 1000; display: flex; align-items: stretch; justify-content: center; }
.editor[hidden] { display: none; }
.panel { background: #fff; width: 100%; max-width: 760px; overflow-y: auto; padding: .8rem; display: flex; flex-direction: column; gap: .5rem; }
.ed-head { display: flex; align-items: center; gap: .5rem; }
.ed-head h2 { flex: 1; font-size: 1.1rem; margin: 0; }
.hint { margin: 0; color: #44525f; font-size: .9rem; }
.ed-map { height: 46vh; min-height: 260px; border-radius: 6px; border: 1px solid #b8c4d0; }
.ed-row { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.ed-actions { display: flex; gap: .6rem; flex-wrap: wrap; }
.ed-actions .btn { flex: 1; }
@media (min-width: 800px) {
  .filters { grid-template-columns: 2fr 1fr 1fr auto auto; align-items: end; }
  .filters label:first-child { grid-column: auto; }
  thead { display: table-header-group; }
  th { text-align: left; padding: .5rem .6rem; background: #f3f6f9; font-size: .9rem; border-bottom: 1px solid #d6dee6; }
  tbody tr { display: table-row; padding: 0; }
  tbody td { padding: .45rem .6rem; vertical-align: middle; }
  td.name { display: table-cell; }
  td.name b, td.name small { display: block; }
  td.last span, td.last small { display: block; }
  .num { text-align: right; }
  tbody tr:hover { background: #f7fafc; }
  .editor { align-items: center; padding: 1rem; }
  .panel { border-radius: 10px; max-height: 95vh; }
  .ed-map { height: 420px; }
}
/* map pin without image files (CSP: images from self only, Leaflet's default icons are not shipped) */
.pin { background: #e0262b; border: 3px solid #fff; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); box-shadow: 0 1px 6px #0009; cursor: grab; }
.pin::after { content: ""; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; margin: -4px 0 0 -4px; background: #fff; border-radius: 50%; }

/* compact admin (owner, 2026-12-05): smaller header, text, buttons; one-line tool list */
body { font-size: 13px; line-height: 1.35; }
.top { padding: 3px 10px; gap: 8px; }
.top .seal { width: 28px; height: 28px; }
.ttl { line-height: 1.15; } .ttl b { font-size: 14px; } .ttl small { font-size: 11px; }
.top .btn.ghost { display: none; }                         /* Map / Stations / View scope: already in the tab bar */
.top form .btn.ghost, .top .btn.ghost.out { display: inline-flex; }
.top .btn { min-height: 26px; padding: 1px 10px; font-size: 12px; }
.top .who { font-size: 12px; }
.btn { min-height: 30px; padding: 2px 10px; font-size: 12.5px; border-radius: 6px; }
.btn small { font-size: .78em; display: inline; margin-left: 4px; }
h1 small, label small, th small { display: inline; margin-left: 4px; font-size: .8em; color: #6b7b8a; }
input, select { min-height: 30px; padding: 3px 8px; font-size: 13px; }
.wrap { max-width: 1400px; padding: 6px 10px; }
.filters { padding: 6px 8px; gap: 6px; }
@media (min-width: 800px) { th { padding: 4px 8px; font-size: 12px; } tbody td { padding: 3px 8px; } }
td.name b { font-size: 13px; }
