/* ============================================================
   t1-pro.css — มาตรฐานหน้าตาแบบมืออาชีพของ tracking1/frontend (ใช้ทั้งเลย์เอาต์หลัก main.php และเลย์เอาต์ dash.php)
   โหลดท้ายสุด (หลัง AdminLTE / pv2-skin / t1-shell หรือ css/dash/*) — คงธีม pv2 (paper + เขียว/ทอง) ชุดเดียวกับ backend
   - การเข้าถึง: ลิงก์ข้ามไปเนื้อหา, กรอบโฟกัสคีย์บอร์ด, ลดการเคลื่อนไหว
   - สองภาษา: ปุ่ม TH | EN บนส่วนหัว / หน้า login / ส่วนท้าย (components/Lang.php, css/lang.css)
   - ส่วนหัวหน้า, ตาราง, ตัวเลข, ส่วนท้าย, จอมือถือ, การพิมพ์
   ============================================================ */
:root {
  --t1p-green: #1F6D45; --t1p-green-deep: #123B27; --t1p-gold: #A97D2F; --t1p-ink: #17251C; --t1p-soft: #4B5B4F;
  --t1p-faint: #7C877D; --t1p-rule: #CFDACB; --t1p-rule-soft: #E3EAE0; --t1p-band: #EEF2EA; --t1p-paper: #F7F5EE; --t1p-card: #fff;
  --t1p-focus: #A97D2F;
}

/* ---------- การเข้าถึง ---------- */
.t1-skip { position: absolute; left: 12px; top: -60px; z-index: 2000; padding: 10px 16px; background: var(--t1p-green-deep); color: #fff !important; font: 600 14px 'Sarabun', sans-serif; text-decoration: none; transition: top .15s; }
.t1-skip:focus { top: 10px; outline: 3px solid var(--t1p-focus); outline-offset: 2px; }
#t1-main:focus { outline: none; }
body.pv2-skin a:focus-visible, body.pv2-skin button:focus-visible, body.pv2-skin summary:focus-visible, body.pv2-skin [tabindex]:not([tabindex="-1"]):focus-visible,
body.pv2 a:focus-visible, body.pv2 button:focus-visible, body.pv2 summary:focus-visible {
  outline: 3px solid var(--t1p-focus) !important; outline-offset: 2px; box-shadow: none;
}
::selection { background: #D9E8DC; color: var(--t1p-ink); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ---------- ตัวอักษร / ตัวเลข ---------- */
body.pv2-skin, body.pv2 { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body.pv2-skin .table, body.pv2 .table, .pv2-bellpanel, .t1gv-card, .t1gv-list, .small-box h3, .info-box-number { font-variant-numeric: tabular-nums; }
/* โหมด EN: ตัวอักษรละตินอ่านง่ายขึ้นเล็กน้อย (Sarabun มีละตินอยู่แล้ว) */
html[data-lang="en"] body.pv2-skin, html[data-lang="en"] body.pv2 { letter-spacing: .005em; }

/* ---------- ปุ่มสลับภาษา TH | EN ---------- */
.gs-langsw { flex: none; height: 32px; align-items: stretch; }
.gs-langsw button { padding: 0 10px; min-width: 38px; }
.gs-langsw button:hover:not([aria-pressed="true"]) { background: var(--t1p-band); }
.t1-nav > .gs-langsw { margin-left: 4px; }
.pv2-navlinks > .gs-langsw { margin-left: 2px; }
@media (max-width: 980px) {
  .t1-nav > .gs-langsw, .pv2-navlinks > .gs-langsw { align-self: flex-start; margin: 10px 4px; }
}
/* หน้า login: ชื่อระบบบนแผงสีเขียว (เดิมรับสีหัวเรื่องเขียวเข้มจากธีม — มองไม่เห็น) ; ไม่แสดงหมายเหตุโหมด EN */
.pv2 .pv2-main .lg-brand .lg-brand-title, .lg-brand .lg-brand-title { color: #fff; }
#t1-main > .gs-datanote:has(+ .lg-page) { display: none; }

/* หมายเหตุโหมด EN (Lang::dataNote) — ในเนื้อหา */
#t1-main > .gs-datanote { margin: 0 0 16px; max-width: 980px; }

/* ---------- ส่วนหัวของหน้า (เลย์เอาต์หลัก AdminLTE) ---------- */
body.pv2-skin .content-wrapper > .content-header {
  position: relative; display: flex; flex-direction: column-reverse; gap: 6px; padding-top: 22px; padding-bottom: 14px;
}
body.pv2-skin .content-wrapper > .content-header > h1 {
  margin: 0; font-size: clamp(21px, 2.2vw, 28px); line-height: 1.3; color: var(--t1p-green-deep); letter-spacing: -.005em;
  padding-left: 14px; border-left: 4px solid var(--t1p-gold);
}
body.pv2-skin .content-wrapper > .content-header > h1:empty { display: none; }
body.pv2-skin .content-wrapper > .content-header > h1 small { font-size: 55%; color: var(--t1p-faint); }
body.pv2-skin .content-wrapper > .content-header > .breadcrumb {
  position: static; float: none; margin: 0; padding: 0; background: transparent; font: 12px/1.4 'IBM Plex Mono', monospace; color: var(--t1p-faint);
}
body.pv2-skin .content-wrapper > .content-header > .breadcrumb > li + li::before { content: '›'; padding: 0 7px; color: var(--t1p-rule); }
body.pv2-skin .content-wrapper > .content-header > .breadcrumb > li > a { color: var(--t1p-green); text-decoration: none; }
body.pv2-skin .content-wrapper > .content-header > .breadcrumb > li > a:hover { text-decoration: underline; }
body.pv2-skin .content-wrapper > .content { padding-top: 6px; padding-bottom: 36px; min-height: 60vh; }

/* ---------- แผง / การ์ด / ตาราง ---------- */
body.pv2-skin .panel, body.pv2-skin .card, body.pv2-skin .box, body.pv2-skin .kv-panel { box-shadow: 0 1px 2px rgba(23, 37, 28, .04), 0 4px 14px rgba(23, 37, 28, .04); }
body.pv2-skin .grid-view, body.pv2 .grid-view { max-width: 100%; }
/* ตารางกว้าง: เลื่อนในกรอบตาราง ไม่ทำให้ทั้งหน้าเลื่อนแนวนอน (ยกเว้นมุมมองการ์ด/รายการ) */
body.pv2-skin .grid-view:not(.t1gv-card):not(.t1gv-list), body.pv2 .grid-view:not(.t1gv-card):not(.t1gv-list) { overflow-x: auto; -webkit-overflow-scrolling: touch; }
body.pv2-skin .table > tbody > tr > td, body.pv2 .table > tbody > tr > td { line-height: 1.5; }
body.pv2-skin .table > thead > tr > th a, body.pv2 .table > thead > tr > th a { color: inherit; }
body.pv2-skin .table > thead > tr > th a.asc::after, body.pv2-skin .table > thead > tr > th a.desc::after { opacity: .6; }
body.pv2-skin .summary, body.pv2 .summary { margin: 0 0 8px; }
body.pv2-skin .empty, body.pv2 .empty { display: block; padding: 22px 10px; text-align: center; color: var(--t1p-faint); font-style: italic; }
/* ปุ่มในตาราง (ดู/แก้ไข/ลบ) */
body.pv2-skin .grid-view td .glyphicon, body.pv2-skin .grid-view td .fa, body.pv2-skin .grid-view td .fas { color: var(--t1p-green); }
body.pv2-skin .grid-view td a:hover .glyphicon, body.pv2-skin .grid-view td a:hover .fa, body.pv2-skin .grid-view td a:hover .fas { color: var(--t1p-green-deep); }

/* ปุ่ม: ความสูงสม่ำเสมอ + ปุ่มอันตราย */
body.pv2-skin .btn:not(.btn-xs):not(.btn-sm):not(.btn-lg):not(.btn-link) { min-height: 34px; }
body.pv2-skin .btn-danger:not(.main-header .btn-danger) { background: #A33A2B; border-color: #A33A2B; color: #fff; }
body.pv2-skin .btn-danger:not(.main-header .btn-danger):hover { background: #862E22; border-color: #862E22; }
body.pv2-skin .btn-warning { background: #C98B1E; border-color: #C98B1E; color: #fff; }
body.pv2-skin .btn-info { background: #2B6F8A; border-color: #2B6F8A; color: #fff; }

/* ข้อความแจ้ง (flash / alert) */
body.pv2-skin .alert { border-radius: 0; border-width: 0 0 0 4px; box-shadow: 0 1px 2px rgba(23, 37, 28, .05); }
body.pv2-skin .alert-success { background: #E7F2EA; border-color: var(--t1p-green); color: var(--t1p-green-deep); }
body.pv2-skin .alert-danger, body.pv2-skin .alert-error { background: #FBEDEA; border-color: #A33A2B; color: #6E2219; }
body.pv2-skin .alert-warning { background: #FBF3E2; border-color: #C98B1E; color: #6A4A10; }
body.pv2-skin .alert-info { background: #E8F1F5; border-color: #2B6F8A; color: #1E4A5C; }

/* ---------- ส่วนท้าย (_t1_footer.php) ---------- */
.t1-footer { border-top: 1px solid var(--t1p-rule); background: var(--t1p-card); color: var(--t1p-soft); font: 400 13px/1.55 'Sarabun', sans-serif; margin-top: 8px; }
body.pv2-skin .t1-footer { position: relative; z-index: 810; }
@media (min-width: 768px) { body.pv2-skin:not(.sidebar-collapse) .t1-footer { margin-left: 230px; } }
.t1-footer-in { max-width: 1440px; margin: 0 auto; padding: 26px 28px 22px; display: grid; grid-template-columns: minmax(260px, 1.4fr) 1fr; gap: 18px 40px; align-items: start; }
.t1-footer-brand { display: flex; gap: 14px; align-items: flex-start; }
.t1-footer-brand img { flex: none; }
.t1-footer-brand b { display: block; font: 700 15px/1.3 'Taviraj', serif; color: var(--t1p-green-deep); letter-spacing: .02em; margin-bottom: 2px; }
.t1-footer-brand span { display: block; font-size: 12.5px; color: var(--t1p-faint); }
.t1-footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: flex-end; padding-top: 4px; }
.t1-footer-links a { color: var(--t1p-green-deep) !important; text-decoration: none; font-weight: 500; border-bottom: 1px solid transparent; }
.t1-footer-links a:hover { border-bottom-color: var(--t1p-gold); }
/* ไม่มีบล็อกแบรนด์ (หน้า login): ลิงก์ชิดซ้าย แถวเดียว */
.t1-footer--nobrand .t1-footer-in { grid-template-columns: 1fr; }
.t1-footer--nobrand .t1-footer-links { justify-content: flex-start; padding-top: 0; }
.t1-footer--nobrand .t1-footer-meta:first-child { border-top: 0; padding-top: 0; }
.t1-footer-meta { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 20px; padding-top: 14px; border-top: 1px solid var(--t1p-rule-soft); font-size: 12px; color: var(--t1p-faint); }
@media (max-width: 760px) {
  .t1-footer-in { grid-template-columns: 1fr; padding: 22px 16px 18px; }
  .t1-footer-links { justify-content: flex-start; }
}

/* ---------- แถบบน: จอมือถือ (gutter 16px, ไม่เลื่อนแนวนอน) ---------- */
html, body { overflow-x: clip; }
@media (max-width: 640px) {
  .t1-top { padding: 8px 12px; gap: 8px; }
  .t1-brand img + img { width: 88px; height: auto; }
  body.pv2-skin .content-wrapper > .content-header, body.pv2-skin .content-wrapper > .content { padding-left: 16px; padding-right: 16px; }
}

/* ---------- พิมพ์ ---------- */
@media print {
  .t1-top, .t1-footer, .t1-skip, .main-sidebar, .gs-langsw, nav.pv2-topnav, .pv2-searchpanel, .pv2-bellpanel, .dh-drawer, .gs-datanote, .t1gv-bar { display: none !important; }
  body.pv2-skin .content-wrapper, body.pv2-skin .wrapper, body.pv2 { background: #fff !important; margin: 0 !important; }
  body.pv2-skin .content-wrapper > .content-header > h1 { border-left: 0; padding-left: 0; }
  a[href^="http"]::after { content: ''; }
  .table { font-size: 11px !important; }
  thead { display: table-header-group; }
  tr, td, th { page-break-inside: avoid; }
}

/* ---------- หน้าแรก site/index (views/site/_dash/_home.php) ---------- */
.dash-home .dh-head { margin: 26px 0 18px; }
.dash-home .dh-eyebrow { font: 600 12.5px/1.4 'Sarabun', sans-serif; letter-spacing: .04em; color: var(--t1p-gold); text-transform: uppercase; }
.dash-home .dh-title { margin: 4px 0 6px; font: 700 clamp(26px, 3.2vw, 38px)/1.2 'Taviraj', serif; color: var(--t1p-green-deep); letter-spacing: -.005em; }
.dash-home .dh-sub { margin: 0; max-width: 860px; font-size: 15px; line-height: 1.6; color: var(--t1p-soft); }
.dash-home > .pv2-section, .dash-home > .dash-heatmap { scroll-margin-top: 130px; }
.d2569 .d-footnote { margin-top: 10px; font-size: 12.5px; }
/* ตัวเลขสถิติ: จัดแนวตรงกันทุกภาษา */
.d2569 .d-big, .d2569 .d-legend-num, .d2569 .s-num, .d2569 .dv-row-val, .d2569 .d-goal-pct { font-variant-numeric: tabular-nums; }
/* โหมด EN: ป้ายภาษาอังกฤษยาวกว่า — ให้ตัดบรรทัดได้ในแถบนำทางและหัวการ์ด */
html[data-lang="en"] .dh-nav a { letter-spacing: .01em; }
/* ช่องค้นหาของแต่ละหัวข้อ: เว้นที่ให้ไอคอน ⌕ (กฎ .pv2 input ของ staff-v2.css ทับ padding เดิม) */
.pv2 .dv-search { flex: 0 1 320px; }
.pv2 .dv-search input[type="search"] { padding-left: 34px !important; }

/* ---------- หน้ารายงานมาตรฐาน (views/site/_dash/_pagehead.php และหน้าที่ใช้) ---------- */
.t1-page { padding-bottom: 12px; }
.t1-ph { margin: 26px 0 8px; }
.t1-ph .dh-eyebrow { font: 600 12.5px/1.4 'Sarabun', sans-serif; letter-spacing: .04em; color: var(--t1p-gold); text-transform: uppercase; }
.t1-ph-title { margin: 4px 0 6px; font: 700 clamp(24px, 2.8vw, 34px)/1.25 'Taviraj', serif; color: var(--t1p-green-deep); }
.t1-ph-sub { margin: 0; max-width: 900px; font-size: 15px; line-height: 1.6; color: var(--t1p-soft); }
.t1-ph-stats { display: flex; flex-wrap: wrap; gap: 0; margin: 18px 0 0; border: 1px solid var(--t1p-rule); background: #fff; width: fit-content; max-width: 100%; }
.t1-ph-stats > div { padding: 12px 22px; border-right: 1px solid var(--t1p-rule-soft); }
.t1-ph-stats > div:last-child { border-right: 0; }
.t1-ph-stats dt { font: 500 12px/1.3 'Sarabun', sans-serif; color: var(--t1p-faint); }
.t1-ph-stats dd { margin: 2px 0 0; font: 600 24px/1.1 'IBM Plex Mono', monospace; color: var(--t1p-green-deep); font-variant-numeric: tabular-nums; }
.t1-ph-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--t1p-rule); }
.t1-ph-links { display: flex; flex-wrap: wrap; gap: 6px; flex: 1 1 auto; }
.t1-ph-links a { padding: 6px 12px; border: 1px solid var(--t1p-rule); background: #fff; color: var(--t1p-green-deep); font: 600 13px/1.2 'Sarabun', sans-serif; text-decoration: none; }
.t1-ph-links a:hover { border-color: var(--t1p-green); background: var(--t1p-band); }
.t1-ph-links a.is-current { background: var(--t1p-green-deep); border-color: var(--t1p-green-deep); color: #fff; }
.t1-ph-action { white-space: nowrap; }

/* ตัวกรองแบบชิป */
.t1-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 8px; }
.t1-filters-k { min-width: 74px; font: 600 12px/1 'Sarabun', sans-serif; color: var(--t1p-faint); text-transform: uppercase; letter-spacing: .04em; }
.t1-filters a { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border: 1px solid var(--t1p-rule); border-radius: 999px; background: #fff; color: var(--t1p-ink); font: 500 13px/1.2 'Sarabun', sans-serif; text-decoration: none; }
.t1-filters a small { color: var(--t1p-faint); font-family: 'IBM Plex Mono', monospace; }
.t1-filters a:hover { border-color: var(--t1p-green); }
.t1-filters a.is-on { background: var(--t1p-green-deep); border-color: var(--t1p-green-deep); color: #fff; }
.t1-filters a.is-on small { color: rgba(255, 255, 255, .75); }
.t1-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--c, var(--t1p-green)); }
.t1-filters + .dv, .t1-filters + .t1-filters + .dv, .t1-filters + .t1-filters + .t1-filters + .dv { margin-top: 14px; }

/* ปุ่ม CSV ในแถบเครื่องมือ (_bar.php) */
.dv-bar .dv-csv { height: 36px; padding: 0 12px; border: 1px solid var(--t1p-rule); background: #fff; color: var(--t1p-green-deep); font: 600 12.5px 'IBM Plex Mono', monospace; cursor: pointer; }
.dv-bar .dv-csv:hover { border-color: var(--t1p-green); background: var(--t1p-band); }

/* การ์ดกลุ่ม/ยุทธศาสตร์ (_classes.php) */
.t1-class-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.t1-class { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 18px 18px 16px; background: #fff; border: 1px solid var(--t1p-rule); border-top: 5px solid var(--c); color: var(--t1p-ink); text-decoration: none; min-height: 190px; }
.t1-class:hover { box-shadow: 0 8px 22px rgba(23, 37, 28, .10); transform: translateY(-1px); }
.t1-class-no { position: absolute; top: 12px; right: 14px; font: 700 26px/1 'IBM Plex Mono', monospace; color: var(--c); opacity: .35; }
.t1-class-name { font: 700 19px/1.3 'Taviraj', serif; color: var(--t1p-green-deep); padding-right: 34px; }
.t1-class-nums { display: flex; gap: 16px; font-size: 13px; color: var(--t1p-soft); }
.t1-class-nums b { font: 600 18px 'IBM Plex Mono', monospace; color: var(--t1p-ink); }
.t1-class-bar { height: 6px; background: var(--t1p-rule-soft); }
.t1-class-bar i { display: block; height: 100%; background: var(--c); }
.t1-class-go { margin-top: auto; font: 600 13px 'Sarabun', sans-serif; color: var(--t1p-green); }
.t1-swatch { display: inline-block; width: 14px; height: 14px; vertical-align: -2px; border: 1px solid rgba(0, 0, 0, .1); }
.t1-muted { color: var(--t1p-faint); }
.t1-kr-code { font: 600 11.5px 'IBM Plex Mono', monospace; color: var(--t1p-gold); letter-spacing: .02em; }

/* รายการพับเก็บได้ (นโยบาย → OKR, ยุทธศาสตร์ → OKR) */
.t1-acc { display: flex; flex-direction: column; gap: 8px; }
.t1-acc-item { background: #fff; border: 1px solid var(--t1p-rule); border-left: 4px solid var(--c, var(--t1p-green)); }
.t1-acc-item[hidden] { display: none; }
.t1-acc-item > summary { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 12px 16px; cursor: pointer; list-style: none; }
.t1-acc-item > summary::-webkit-details-marker { display: none; }
.t1-acc-item > summary::after { content: '▸'; grid-column: 3; justify-self: end; color: var(--t1p-faint); transition: transform .15s; }
.t1-acc-item[open] > summary::after { transform: rotate(90deg); }
.t1-acc-item > summary:hover { background: var(--t1p-band); }
.t1-acc-code { font: 600 12.5px 'IBM Plex Mono', monospace; color: var(--t1p-gold); min-width: 52px; }
.t1-acc-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.t1-acc-name { font: 600 14.5px/1.45 'Sarabun', sans-serif; color: var(--t1p-ink); }
.t1-acc-sub { font-size: 12.5px; color: var(--t1p-faint); }
.t1-acc-n { grid-column: 3; grid-row: 1; margin-right: 22px; white-space: nowrap; font-size: 12.5px; color: var(--t1p-soft); }
.t1-acc-n b { font: 600 16px 'IBM Plex Mono', monospace; color: var(--t1p-green-deep); }
.t1-acc-tbl { margin: 0; border-top: 1px solid var(--t1p-rule-soft); }
.t1-acc-body { padding: 0 0 6px; overflow-x: auto; }
.t1-icon-link { text-decoration: none; font-weight: 700; }
/* ตัวบ่งชี้ร้อยละ */
.t1-pct { display: inline-flex; align-items: center; gap: 8px; justify-content: flex-end; min-width: 120px; }
.t1-pct i { display: inline-block; width: 54px; height: 6px; background: var(--t1p-rule-soft); position: relative; }
.t1-pct i b { position: absolute; inset: 0 auto 0 0; background: var(--pc, var(--t1p-green)); }
.t1-pct.is-done { --pc: #1e8a44; } .t1-pct.is-mid { --pc: #d9a400; } .t1-pct.is-low { --pc: #e07b24; } .t1-pct.is-none { --pc: #c0392b; }
.t1-sum-row td { background: var(--t1p-band) !important; font-weight: 700; }
.t1-zone-row td { background: #F6F8F3 !important; font-weight: 600; color: var(--t1p-green-deep); }
@media (max-width: 640px) {
  .t1-acc-item > summary { grid-template-columns: 1fr auto; }
  .t1-acc-code { grid-column: 1 / -1; }
  .t1-ph-stats > div { padding: 10px 14px; }
}
/* การ์ดกลุ่ม/ยุทธศาสตร์เป็นกริด (กฎ .dv-pane ของ dash-views.css ตั้ง display:block) ; รายการพับเก็บ: ไม่มีกรอบ .dv-list ซ้อน */
.dv[data-view="card"] .dv-card.t1-class-grid { display: grid; }
.dv[data-view="list"] .dv-list.t1-acc { display: flex; background: transparent; border: 0; }
.t1-acc-item > summary { position: relative; padding-right: 40px; }
.t1-acc-item > summary::after { position: absolute; right: 16px; top: 50%; margin-top: -9px; grid-column: auto; }
.t1-acc-n { margin-right: 0; }
.t1-indent { padding-left: 26px !important; }
.t1-acc-foot { margin: 0; padding: 10px 16px; border-top: 1px solid var(--t1p-rule-soft); font-size: 13px; }
.dv-tile .t1-pct { justify-content: flex-start; }
.t1-acc-code img { display: block; }
.t1-nowrap { white-space: nowrap; }
.d2569 .dv-tbl td .t1-pct { white-space: nowrap; }
/* ยุทธศาสตร์ → OKR → โครงการ (_okrtree.php) */
.t1-page-related { margin: 10px 0 4px; }
.t1-acc-pol { margin: 0; padding: 10px 16px; font-size: 12.5px; color: var(--t1p-soft); border-top: 1px solid var(--t1p-rule-soft); }
.t1-pol-chip { display: inline-block; margin: 2px 2px 0 0; padding: 1px 7px; border: 1px solid var(--t1p-rule); background: var(--t1p-paper); font: 600 11.5px 'IBM Plex Mono', monospace; color: var(--t1p-green-deep); cursor: help; }
.t1-okrtree .d-strat-budget .t1-pct { min-width: 0; }

/* ---------- จอมือถือ: แถบเครื่องมือ / ส่วนหัว / ตาราง ---------- */
@media (max-width: 720px) {
  .dv-bar { flex-wrap: wrap; gap: 8px; }
  .dv-bar .dv-search { flex: 1 1 100%; order: 3; }
  .pv2 .dv-search { flex: 1 1 100%; }
  .dv-bar .dv-switch { margin-left: auto; }
  .dv-switch button { padding-left: 9px; padding-right: 9px; }
  .t1-ph { margin-top: 16px; }
  .t1-ph-stats { width: 100%; }
  .t1-ph-stats > div { flex: 1 1 45%; border-bottom: 1px solid var(--t1p-rule-soft); }
  .t1-ph-stats dd { font-size: 20px; }
  .t1-ph-links { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 4px; }
  .t1-ph-links a { white-space: nowrap; }
  .t1-filters { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
  .t1-filters a { white-space: nowrap; }
  .dv-tbl { font-size: 12.5px; }
  .dv-tbl th:first-child, .dv-tbl td:first-child { min-width: 170px; }
  .t1-acc-body { overflow-x: auto; }
  .t1-acc-n { grid-column: 1 / -1; grid-row: auto; justify-self: start; }
  .d-strat-grid, .dv-grid, .t1-class-grid { grid-template-columns: 1fr !important; }
}
