
/* reset ที่เดิมมาจาก @tailwind base (preflight) — ตัดออกตอนพอร์ตมา จึงใส่เฉพาะที่จำเป็น */
a { text-decoration: none; color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
table { border-collapse: collapse; width: 100%; }
h1, h2, h3, h4 { font-size: inherit; font-weight: inherit; margin: 0; }
img { display: block; max-width: 100%; }

/* ===== DragonAdmin — HelioAdmin theme (white sidebar, red #DC2626) ===== */
:root {
    --red: #DC2626;
    --red-d: #B91C1C;
    --red-l: #FBE9E9;
    --ink: #18181B;
    --muted: #71717a;
    --bg: #f4f4f5;
    --line: #e4e4e7;
    --side: #ffffff;
    --hd: #1c1c20;
    --hd2: #2b2b31;
    --txt2: #41505f;
}

* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", sans-serif; background: var(--bg); color: var(--ink); font-size: 14px; }
.mono { font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; }
[x-cloak] { display: none !important; }

/* layout */
.sidebar { position: fixed; top: 0; left: 0; width: 236px; height: 100vh; background: var(--side); border-right: 1px solid var(--line); overflow-y: auto; z-index: 6; }
.topbar { position: fixed; top: 0; left: 236px; right: 0; height: 56px; background: #fff; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; padding: 0 22px; z-index: 5; }
.content { margin-left: 236px; margin-top: 56px; padding: 24px; }

/* brand */
.brand { display: flex; align-items: center; gap: 11px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.brand .logo-img { width: 40px; height: 40px; object-fit: contain; flex-shrink: 0; }
.brand .name { font-size: 20px; font-weight: 700; letter-spacing: .2px; line-height: 1.05; color: #111; }
.brand .name .b { color: var(--red); }
.brand .sub { font-size: 8.5px; color: var(--muted); letter-spacing: .22em; text-transform: uppercase; margin-top: 4px; }

/* nav (white, with bootstrap icons) */
.navlabel { font-size: 11px; letter-spacing: .08em; color: var(--muted); padding: 16px 18px 6px; text-transform: uppercase; }
.nav a, .nav button { width: 100%; text-align: left; background: none; border: 0; cursor: pointer; display: flex; align-items: center; gap: 11px; padding: 10px 18px; font-size: 14px; color: var(--txt2); text-decoration: none; border-left: 3px solid transparent; font-family: inherit; }
.nav a i, .nav button i { font-size: 16px; width: 18px; text-align: center; color: var(--muted); }
.nav a:hover, .nav button:hover { background: #f5f8fa; }
.nav a.active { background: var(--red-l); border-left-color: var(--red); color: var(--red-d); font-weight: 600; }
.nav a.active i { color: var(--red-d); }
.nav a.soon { color: #b6bfc8; cursor: default; }
.nav a.soon:hover { background: transparent; }
.nav a.soon i { color: #d8dee4; }
.nav .soon-badge { margin-left: auto; background: #f1f4f7; color: #9aa6b2; padding: 1px 6px; border-radius: 7px; font-size: 9px; text-transform: uppercase; letter-spacing: .03em; }

/* topbar right */
.who { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.langdd { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); margin-right: 6px; }
.langdd i { font-size: 15px; }
.langdd select { border: 1px solid var(--line); background: #fff; color: var(--txt2); border-radius: 7px; padding: 5px 26px 5px 9px; font-size: 13px; cursor: pointer; -webkit-appearance: none; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 16 16' fill='%237b8a99'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 9px center; }
.langdd select:focus { outline: 0; border-color: var(--red); }
.pill { background: var(--red-l); color: var(--red-d); padding: 2px 9px; border-radius: 11px; font-size: 12px; font-weight: 600; }
.av { width: 32px; height: 32px; border-radius: 50%; background: transparent; color: var(--txt2); display: grid; place-items: center; font-weight: 600; }

/* page head (dark card) */
.pagehead { background: linear-gradient(120deg, var(--hd), var(--hd2)); color: #fff; border-radius: 10px; padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; box-shadow: 0 4px 14px rgb(0 0 0 / 18%); flex-wrap: wrap; }
.pagehead h1 { margin: 0; font-size: 19px; font-weight: 600; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pagehead h1 i { color: #F87171; }
.pagehead > div { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.draft-bar { position: sticky; top: 8px; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; background: #FEF2F2; border: 1px solid #FCA5A5; border-left: 4px solid var(--red, #DC2626); border-radius: 10px; padding: 10px 16px; margin-bottom: 16px; box-shadow: 0 4px 14px rgb(220 38 38 / 12%); }
.draft-bar-msg { font-size: 14px; color: var(--red-d, #991B1B); display: flex; align-items: center; gap: 8px; }
.draft-bar-msg i { color: var(--red, #DC2626); font-size: 16px; }
.draft-bar-act { display: flex; gap: 8px; flex-wrap: wrap; }
.badge-w { background: rgb(255 255 255 / 18%); color: #fff; }

/* card */
.card { background: #fff; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 18px; overflow: hidden; }
.card .hd { padding: 13px 18px; border-bottom: 1px solid var(--line); font-weight: 600; font-size: 14px; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.card .hd i { color: var(--red); }
.card .bd { padding: 16px 18px; }

/* table */
table { width: 100%; border-collapse: collapse; }
thead th { background: #f6f8fa; text-align: left; padding: 10px 12px; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; border-bottom: 1px solid var(--line); }
tbody td { padding: 6px 12px; border-bottom: 1px solid var(--line); font-size: 14px; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: #fafbfc; }
tbody tr.editing td { background: #fff7ed; }
.subpath { color: var(--muted); font-size: 11px; }
/* ลิงก์ในตาราง (เลขที่เอกสาร/รหัสรายการ) เป็นสีฟ้า ให้เห็นชัดว่ากดดูรายละเอียดได้
   ทั้งเว็บใช้ a { color: inherit } เลขที่เอกสารเลยกลมกลืนกับข้อความธรรมดาจนไม่มีใครกด */
tbody td a:not(.btn) { color: #1d6fd0; }
tbody td a:not(.btn):hover { text-decoration: underline; }
.docbtn a, .docbtn a:hover { text-decoration: none; }
/* ช่องท้ายตาราง (สถานะ / ปุ่มเอกสาร) กว้างเท่าเนื้อหาพอ ไม่งั้นเบราว์เซอร์
   จะโยนพื้นที่เหลือของตารางไปกองไว้ที่ช่องเดียวจนดูเหมือนมีช่องว่างใหญ่คั่น */
/* ตารางรายละเอียด (คีย์-ค่า) — ช่องซ้ายกว้างคงที่ทุกแถว ค่าจะได้เริ่มตรงแนวเดียวกัน
   table-layout: fixed สำคัญ ไม่งั้นเบราว์เซอร์จะยืด/หดคอลัมน์ตามเนื้อหาจนดูเหลื่อม */
table.kv { table-layout: fixed; width: 100%; border-collapse: collapse; }
table.kv td.k { width: 210px; }
table.kv td { white-space: normal; }
@media(max-width:600px){ table.kv td.k { width: 140px; } }
.scroll table thead th:last-child, .scroll table tbody td:last-child,
.scroll table thead th:nth-last-child(2), .scroll table tbody td:nth-last-child(2) { width: 1%; white-space: nowrap; }
/* คอลัมน์รหัสเอกสารในหน้า "รายการ" — กว้างเท่าตัวอักษรพอ ไม่ต้องยืดจนเกิดช่องว่างก่อนถึงชื่อ
   จำกัดไว้ที่ .idlist เท่านั้น ตารางอื่นคอลัมน์แรกเป็นข้อความยาว ถ้า nowrap จะดันตารางจนต้องเลื่อน */
.scroll.idlist table thead th:first-child, .scroll.idlist table tbody td:first-child { width: 1%; white-space: nowrap; }

/* buttons */
.btn { border: 0; border-radius: 7px; padding: 8px 15px; font-weight: 600; font-size: 14px; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; text-decoration: none; line-height: 1.2; font-family: inherit; }
.btn-green { background: var(--red); color: #fff; }
.btn-green:hover { background: var(--red-d); }
.btn-ghost { background: #fff; border: 1px solid var(--line); color: var(--txt2); }
.btn-ghost:hover { background: #f5f8fa; }
.btn-red { background: var(--red); color: #fff; }
.btn-white { background: #fff; color: var(--red-d); }
.btn-sm { padding: 5px 11px; font-size: 13px; }
.btn-link { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 13px; padding: 5px 9px; border-radius: 6px; font-family: inherit; }
.btn-link:hover { background: #f1f4f7; color: var(--ink); }
.btn-link.del:hover { color: var(--red); background: var(--red-l); }

/* badges */
.badge { font-size: 12px; padding: 2px 9px; border-radius: 10px; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.badge.on { background: #e6f4ea; color: #1e7e34; }
.badge.warn { background: #fef3c7; color: #b45309; }
.badge.neutral { background: #eef2f5; color: var(--txt2); }

/* inputs */
.inp { background: #fff; border: 1px solid var(--line); border-radius: 7px; padding: 8px 10px; font-size: 14px; color: var(--ink); font-family: inherit; }
.inp:focus { outline: 0; border-color: var(--red); box-shadow: 0 0 0 3px rgb(209 26 42 / 12%); }
.inp.search { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2399a' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M21 21l-4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: 9px center; background-size: 15px; padding-left: 31px; }

/* dashboard 2-column grid */
.dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 980px) { .dash-grid { grid-template-columns: 1fr; } }

/* meters */
.srow { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 13px; }
.srow .subpath { font-size: 13px; }

/* proxmox-style summary rows */
.mrow { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 7px 0; font-size: 14px; }
.mrow-l { display: flex; align-items: center; gap: 9px; color: #3f4651; white-space: nowrap; }
.mrow-l i { font-size: 15px; color: #8a93a0; width: 17px; text-align: center; }
.mrow-v { color: var(--ink); text-align: right; font-variant-numeric: tabular-nums; }
.mbar { height: 4px; border-radius: 3px; background: #edf0f3; overflow: hidden; margin: -3px 0 7px; }
.mbar span { display: block; height: 100%; background: #6ea8dc; transition: width .4s; }
.mbar.hot span { background: #e5933a; }
.mbar.full span { background: #e5484d; }
.drow { display: flex; justify-content: space-between; gap: 16px; padding: 6px 2px; border-top: 1px solid #f1f3f5; font-size: 13px; }
.drow .k { color: var(--muted); white-space: nowrap; }
.drow .v { text-align: right; color: var(--ink); word-break: break-word; }
.dbar { height: 9px; border-radius: 5px; background: #eef2f5; overflow: hidden; margin-top: 6px; }
.dbar span { display: block; height: 100%; background: #3ba55d; transition: width .4s; }
.dbar.hot span { background: #e5933a; }
.dbar.full span { background: var(--red); }

/* toast */
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: #fff; color: var(--ink); padding: 11px 16px 11px 14px; border-radius: 10px; z-index: 70; box-shadow: 0 10px 34px rgb(0 0 0 / 16%); display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; border: 1px solid var(--line); }
.toast i { font-size: 18px; }
.toast.ok i { color: #1e9e54; }
.toast.err i { color: #e5484d; }

/* QR */
.qrbox { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 10px; display: inline-block; line-height: 0; }
.qrbox svg { width: 190px; height: 190px; display: block; shape-rendering: crispEdges; }

/* modal + form */
.modal-ov { position: fixed; inset: 0; background: rgb(0 0 0 / 42%); display: flex; align-items: center; justify-content: center; z-index: 60; padding: 16px; }
.modal { background: #fff; border-radius: 12px; width: 440px; max-width: 100%; box-shadow: 0 20px 50px rgb(0 0 0 / 30%); overflow: hidden; }
.modal .mhd { padding: 15px 20px; border-bottom: 1px solid var(--line); font-weight: 600; font-size: 15px; display: flex; align-items: center; gap: 9px; }
.modal .mhd i { color: var(--red); }
.modal .mbd { padding: 18px 20px; }
.modal .mft { padding: 14px 20px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 10px; background: #fafbfc; }
.field { margin-bottom: 14px; }
.field:last-child { margin-bottom: 0; }
.field label { display: block; font-size: 13px; color: #52606d; margin-bottom: 6px; font-weight: 500; }
.field .inp { width: 100%; }

/* main page tabs (Domains Zone / Reverse Zone) */
.maintabs { display: flex; gap: 4px; border-bottom: 2px solid var(--line); margin-bottom: 18px; }
.maintabs a { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; font-weight: 600; font-size: 14px; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -2px; }
.maintabs a i { font-size: 15px; }
.maintabs a:hover { color: var(--ink); }
.maintabs a.active { color: var(--red); border-bottom-color: var(--red); }

/* tabs (class-C) */
.tabbar { display: flex; gap: 2px; flex-wrap: wrap; border-bottom: 2px solid var(--line); margin-bottom: 16px; }
.tabbar button { background: none; border: 0; padding: 10px 16px; font-weight: 600; font-size: 14px; cursor: pointer; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -2px; font-family: inherit; }
.tabbar button:hover { color: var(--ink); }
.tabbar button.active { color: var(--red); border-bottom-color: var(--red); }

/* ---- ส่วนเพิ่มสำหรับ mail portal ---- */
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 18px; }
.kv { display: flex; align-items: center; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--line); }
.kv:last-child { border-bottom: 0; }
.kv .k { display: flex; align-items: center; gap: 9px; color: var(--txt2); }
.kv .k i { color: var(--red); font-size: 15px; }
.kv .v { font-weight: 600; }
.bar { height: 4px; border-radius: 3px; background: #eef0f2; overflow: hidden; margin-top: 6px; }
.bar > span { display: block; height: 100%; background: var(--red); }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-bottom: 18px; }
.tile { background:#fff; border:1px solid var(--line); border-radius:10px; padding:15px 17px; }
.tile .t { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.tile .n { font-size: 22px; font-weight: 700; margin-top: 5px; }
.tile .n small { font-size: 13px; font-weight: 500; color: var(--muted); }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 7px; }
.dot.up { background: #16a34a; } .dot.down { background: #dc2626; } .dot.idle { background: #a1a1aa; }
.qr { background:#fff; padding:10px; border:1px solid var(--line); border-radius:10px; width:220px; }
.qr svg { width: 200px; height: 200px; display:block; }
pre.cfg { background:#1c1c20; color:#e4e4e7; padding:14px 16px; border-radius:9px; font-size:12.5px; overflow:auto; }
.inp { border:1px solid var(--line); border-radius:7px; padding:8px 11px; font-size:14px; font-family:inherit; }
.inp:focus { outline:0; border-color: var(--red); }
form.row-form { display:flex; gap:10px; flex-wrap:wrap; align-items:center; }
.muted { color: var(--muted); }
.hamb { display:none; background:none; border:0; font-size:23px; color:var(--ink); cursor:pointer; padding:2px 6px; line-height:1; }
.sb-backdrop { display:none; position:fixed; inset:0; background:rgba(15,23,42,.4); z-index:5; }
@media (max-width: 820px) {
  .sidebar { transform: translateX(-100%); transition: transform .22s ease; box-shadow: 0 0 40px rgba(0,0,0,.2); }
  body.sbopen .sidebar { transform: translateX(0); }
  body.sbopen .sb-backdrop { display: block; }
  .topbar { left: 0; }
  .content { margin-left: 0; }
  .hamb { display: inline-flex; align-items:center; }
}

/* ---- system monitor card (ลอกจาก DragonAdmin) ---- */
.sysgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 34px; padding: 12px 18px 6px; }
.metric { padding: 11px 0; }
.metric .r { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.metric .k { display: flex; align-items: center; gap: 10px; color: var(--txt2); }
.metric .k i { color: #8b95a1; font-size: 16px; }
.metric .v { font-weight: 500; color: var(--ink); white-space: nowrap; }
.metric .bar { height: 3px; margin-top: 9px; background: #eef0f2; border-radius: 2px; overflow: hidden; }
.metric .bar > span { display: block; height: 100%; background: #3b82f6; transition: width .4s ease; }
.sysrows .kv2 { display: flex; align-items: center; justify-content: space-between; padding: 11px 18px; border-top: 1px solid var(--line); }
.sysrows .kv2 .k { color: var(--txt2); }
.sysrows .kv2 .v { color: var(--ink); }
@media (max-width: 720px) { .sysgrid { grid-template-columns: 1fr } }

/* สถานะ Zimbra — 19 บริการ ยาวเกินไปถ้าเรียงคอลัมน์เดียว */
.svc2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 26px; position: relative; }
/* เส้นแบ่งกลางระหว่างสองคอลัมน์ */
.svc2::before { content: ""; position: absolute; top: 2px; bottom: 2px; left: 50%; width: 1px; background: var(--line); }
@media (max-width: 640px) { .svc2 { grid-template-columns: 1fr; } .svc2::before { display: none; } }
.svc2 .mrow { padding: 5px 0; font-size: 13.5px; }
.svc2 > .mrow:nth-child(odd)  { padding-right: 13px; }
.svc2 > .mrow:nth-child(even) { padding-left: 13px; }

/* ปุ่มในหัวการ์ด: อย่าให้กฎ ".card .hd i { color: var(--red) }" มาทับสีไอคอนบนปุ่ม
   (ไอคอนแดงบนปุ่มพื้นแดง = มองไม่เห็น) */
.card .hd .btn i,
.card .hd button i,
.card .hd form i { color: inherit; }
/* ปุ่มชิดขวาบนหัวการ์ด เช่น ปุ่มแก้ไขข้อมูลผู้เสียภาษีในใบสั่งซื้อ */
.card .hd .hd-right { margin-left: auto; display: flex; align-items: center; gap: 8px; font-weight: 400; }

/* popup เลือกสมาชิกเข้ากลุ่ม */
.ovl2{position:fixed;inset:0;background:rgba(15,23,42,.45);display:none;align-items:center;justify-content:center;z-index:60}
.ovl2.on{display:flex}
.ovl2-box{background:#fff;border-radius:14px;padding:20px 22px;width:min(94vw,480px);max-height:82vh;overflow:auto;
box-shadow:0 24px 60px rgba(0,0,0,.28)}
.ovl2-hd{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px;font-size:15px}
.picklist{border:1px solid var(--line);border-radius:10px;max-height:44vh;overflow:auto}
.pick{display:flex;align-items:center;gap:10px;padding:9px 12px;border-bottom:1px solid var(--line);cursor:pointer;font-size:14px}
.pick:last-child{border-bottom:0}
.pick:hover{background:#f6f8fa}
.pick input{width:16px;height:16px;accent-color:var(--red)}

/* ===== โทนสีประจำหมวด =====================================================
   แต่ละหมวดมีสีของตัวเอง เปลี่ยนแค่พื้นหลังจาง ๆ กับแถบหัวเรื่อง
   เพื่อให้รู้ทันทีว่าอยู่ส่วนไหน โดยไม่ต้องอ่านเมนู
   ตัวการ์ดยังขาวเหมือนเดิมทุกหน้า ความอ่านง่ายจึงไม่เปลี่ยน
   และปุ่มหลักยังเป็นสีแบรนด์ (แดง) เสมอ ไม่ไหลตามโทนหน้า */
body[class*="th-"] { background: var(--tone-bg, var(--bg)); }
body[class*="th-"] .pagehead { background: linear-gradient(120deg, var(--tone-d), var(--tone)); }
body[class*="th-"] .pagehead h1 i { color: rgb(255 255 255 / 72%); }
body[class*="th-"] .sidebar .nav a.on { border-left-color: var(--tone); color: var(--tone-d); }
body[class*="th-"] .sidebar .nav a.on i { color: var(--tone); }

body.th-service  { --tone:#0d9488; --tone-d:#0f5f59; --tone-bg:#eef7f6; }  /* บริการ — เขียวอมฟ้า */
body.th-order    { --tone:#7c3aed; --tone-d:#5b21b6; --tone-bg:#f4f0fe; }  /* สั่งซื้อ — ม่วง */
body.th-bank     { --tone:#0891b2; --tone-d:#0e6b82; --tone-bg:#eef7fb; }  /* บัญชีธนาคาร — ฟ้า */
body.th-topup    { --tone:#059669; --tone-d:#046c4c; --tone-bg:#eef8f2; }  /* แจ้งชำระเงิน — เขียว */
body.th-withdraw { --tone:#ea580c; --tone-d:#b03f06; --tone-bg:#fdf3ec; }  /* แจ้งถอนเงิน — ส้ม */
body.th-ledger   { --tone:#0284c7; --tone-d:#075d8c; --tone-bg:#eef6fc; }  /* รายรับ-รายจ่าย — น้ำเงิน */
body.th-points   { --tone:#d97706; --tone-d:#a15709; --tone-bg:#fdf6ea; }  /* คะแนนสะสม — เหลืองอำพัน */
body.th-invoice  { --tone:#4f46e5; --tone-d:#3730a3; --tone-bg:#f1f1fd; }  /* ใบแจ้งหนี้ — คราม */
body.th-receipt  { --tone:#15803d; --tone-d:#14532d; --tone-bg:#eff7f0; }  /* ใบเสร็จ — เขียวเข้ม */
body.th-ticket   { --tone:#db2777; --tone-d:#9d174d; --tone-bg:#fdeff5; }  /* Support/Ticket — ชมพู */
body.th-account  { --tone:#475569; --tone-d:#1e293b; --tone-bg:#f1f4f8; }  /* บัญชีผู้ใช้ — เทาน้ำเงิน */
/* action tiles — ปุ่มใหญ่พร้อมคำอธิบาย ใช้ในการ์ดที่มีแอคชันไม่กี่ตัว
   (ปุ่มเรียงเดี่ยว ๆ บนพื้นขาวมองไม่ค่อยเห็นว่ากดได้) */
.acts { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; }
.act { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
       padding: 14px 14px; border: 1px solid var(--line); border-radius: 10px;
       background: #fff; cursor: pointer; font-family: inherit; transition: .12s; }
.act:hover { border-color: var(--red); background: #fffafa; }
.act .ic { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 10px; display: flex;
           align-items: center; justify-content: center; font-size: 18px;
           background: var(--red-l); color: var(--red-d); }
.act .ic.amber { background: #fef3c7; color: #b45309; }
.act .tx { flex: 1 1 auto; min-width: 0; }
.act .tx b { display: block; font-size: 14px; font-weight: 700; color: var(--ink); }
.act .tx small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.act .go { flex: 0 0 auto; color: #c3c9d1; font-size: 15px; }
.act:hover .go { color: var(--red); }

/* แท็บสลับรายการในหน้าเดียว (ใช้งานอยู่/สิ้นสุดแล้ว, กำลังดำเนินการ/ปิดแล้ว)
   เดิมเป็นการ์ดวางซ้อนกัน ต้องเลื่อนผ่านของที่ยังใช้งานอยู่ไปดูของเก่า
   และมีหัวตารางซ้ำสองชุดในหน้าเดียวซึ่งชวนสับสน
   สีของแท็บใช้โทนของหมวดนั้น ๆ (var(--tone)) จึงกลมกลืนกับหน้าอื่นในหมวดเดียวกัน */
.svtabs { display: flex; gap: 4px; border-bottom: 2px solid var(--line); margin-bottom: 16px; flex-wrap: wrap; }
.svtabs button { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; font-weight: 600;
  font-size: 14px; color: var(--muted); background: none; border: 0; border-bottom: 2px solid transparent;
  margin-bottom: -2px; cursor: pointer; font-family: inherit; }
.svtabs button:hover { color: var(--ink); }
.svtabs button.on { color: var(--tone, var(--red)); border-bottom-color: var(--tone, var(--red)); }
.svtabs .cnt { background: var(--line); color: var(--txt2); border-radius: 999px; padding: 1px 9px;
  font-size: 12px; font-weight: 700; line-height: 1.7; }
.svtabs button.on .cnt { background: var(--tone, var(--red)); color: #fff; }
.svpane { display: none; }
.svpane.on { display: block; }
