/* =============================================================================
   TLO Public — IP database pages (list + detail)
   โหลดผ่าน view_ipdb.php
   ============================================================================= */

/* ---- Breadcrumb override ---- */
.rbt-breadcrumb-default { padding: 52px 0 !important; background: #fff7ee !important; }
.rbt-breadcrumb-default .title { color: #c2620f; }

/* ---- List (ipdb/index) ---- */
.ipdb-wrap { padding: 40px 0 70px; background: #fff; }
.ipdb-toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 24px; }
.ipdb-search { position: relative; flex: 1 1 280px; }
.ipdb-search input { width: 100%; height: 46px; border: 1px solid #e6dccd; border-radius: 12px; padding: 0 16px 0 44px; font-size: 15px; background: #fff; }
.ipdb-search .feather-search { position: absolute; left: 15px; top: 13px; color: #b69b7d; }
.ipdb-ddl { position: relative; }
.ipdb-ddl-btn { height: 46px; min-width: 210px; display: flex; align-items: center; justify-content: space-between; gap: 10px; background: #fff; border: 1px solid #e6dccd; border-radius: 12px; padding: 0 16px; font-size: 15px; color: #5b5347; cursor: pointer; }
.ipdb-ddl-btn .lbl.placeholder { color: #a99c89; }
.ipdb-ddl-btn .cnt { background: #ea7b1e; color: #fff; font-size: 12px; border-radius: 20px; padding: 1px 8px; margin-left: auto; }
.ipdb-ddl-menu { display: none; position: absolute; z-index: 30; top: 52px; left: 0; min-width: 280px; background: #fff; border: 1px solid #ece2d4; border-radius: 12px; box-shadow: 0 12px 34px rgba(120, 80, 20, .16); padding: 8px; }
.ipdb-ddl.open .ipdb-ddl-menu { display: block; }
.ipdb-ddl-hint { display: flex; align-items: center; justify-content: space-between; padding: 4px 8px 8px; border-bottom: 1px solid #f1ebe1; margin-bottom: 4px; }
.ipdb-ddl-hint .h { font-size: 12.5px; color: #a07d4f; }
.ipdb-ddl-hint .clr { font-size: 12.5px; color: #e0566f; cursor: pointer; }
.ipdb-cb { display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: 8px; cursor: pointer; font-size: 14.5px; color: #4a443b; }
.ipdb-cb:hover { background: #fbf3e8; }
.ipdb-cb input { appearance: none; -webkit-appearance: none; width: 19px; height: 19px; flex: none; border: 1.5px solid #d9ccb8; border-radius: 6px; background: #fff; position: relative; cursor: pointer; transition: .12s; }
.ipdb-cb input:checked { background: #ea7b1e; border-color: #ea7b1e; }
.ipdb-cb input:checked::after { content: ''; position: absolute; left: 6px; top: 2px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.ipdb-cb input:checked ~ span { color: #c2620f; font-weight: 600; }
.ipdb-view-toggle { display: flex; border: 1px solid #e6dccd; border-radius: 12px; overflow: hidden; background: #fff; }
.ipdb-view-toggle button { width: 46px; height: 46px; border: 0; background: #fff; color: #b09a80; cursor: pointer; font-size: 18px; }
.ipdb-view-toggle button.active { background: #ea7b1e; color: #fff; }
.ipdb-count { color: #857a6b; font-size: 15px; margin-bottom: 18px; }
.ipdb-count b { color: #c2620f; }

/* grid card */
.ipdb-card { display: block; height: 100%; background: #fff; border: 1px solid #efe5d6; border-radius: 18px; overflow: hidden; text-decoration: none; color: inherit; transition: .18s; }
.ipdb-card:hover { transform: translateY(-5px); box-shadow: 0 18px 38px rgba(234, 123, 30, .16); border-color: #f1d3ad; color: inherit; text-decoration: none; }
.ipdb-cover { position: relative; height: 168px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.ipdb-cover img { width: 100%; height: 100%; object-fit: cover; }
.ipdb-cover .ph-icon { font-size: 46px; opacity: .85; }
.ipdb-cover .ph-type { position: absolute; bottom: 10px; left: 12px; font-size: 12px; color: #7a6a52; background: rgba(255, 255, 255, .78); border-radius: 20px; padding: 3px 12px; }
.ipdb-status-chip { position: absolute; top: 12px; right: 12px; font-size: 12px; font-weight: 600; color: #fff; border-radius: 20px; padding: 3px 11px; }
.ipdb-cbody { padding: 16px 18px 18px; }
.ipdb-ctitle { font-size: 16.5px; font-weight: 700; color: #2b2a28; line-height: 1.5; margin: 0 0 14px; min-height: 50px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ipdb-frow { display: flex; align-items: flex-start; gap: 8px; font-size: 13.5px; margin-top: 7px; }
.ipdb-frow .feather { color: #ea7b1e; margin-top: 2px; }
.ipdb-flabel { color: #9a8f7e; min-width: 74px; }
.ipdb-fval { color: #33312e; font-weight: 600; }

/* table — modern */
.ipdb-tablewrap { background: #fff; border: 1px solid #efe5d6; border-radius: 18px; box-shadow: 0 8px 26px rgba(234, 123, 30, .07); overflow: hidden; }
.ipdb-table { width: 100%; border-collapse: collapse; border-spacing: 0; }
.ipdb-table th, .ipdb-table td { border: 0 !important; }
.ipdb-table tbody tr:not(:last-child) td { border-bottom: 1px solid #f4eee4 !important; }
.ipdb-table th { background: #fff8f0; color: #a67c45; font-size: 12.5px; font-weight: 700; letter-spacing: .02em; padding: 15px 18px; text-align: left; text-transform: uppercase; }
.ipdb-table td { padding: 14px 18px; font-size: 14.5px; vertical-align: middle; color: #4a463f; }
.ipdb-table th:nth-child(2), .ipdb-table th:nth-child(3), .ipdb-table th:nth-child(4),
.ipdb-table td:nth-child(2), .ipdb-table td:nth-child(3), .ipdb-table td:nth-child(4) { text-align: center; }
.ipdb-trow { cursor: pointer; transition: .14s; }
.ipdb-trow:hover { background: #fff7ee; box-shadow: inset 3px 0 0 #ea7b1e; }
.ipdb-trow td:first-child { border-left: 3px solid transparent; }
.ipdb-ttitle { font-weight: 700; color: #2b2a28; }
.ipdb-tsub { font-size: 12.5px; color: #a99c89; margin-top: 2px; }
.ipdb-tthumb { width: 58px; height: 46px; border-radius: 10px; object-fit: cover; display: flex; align-items: center; justify-content: center; font-size: 20px; }
.ipdb-table .ipdb-tc-c { text-align: center; }
.ipdb-views { color: #9a8f7e; font-size: 13.5px; white-space: nowrap; }
.ipdb-viewbtn { display: inline-flex; align-items: center; gap: 5px; font-size: 13.5px; font-weight: 600; color: #ea7b1e; border: 1px solid #f0d6b3; border-radius: 20px; padding: 5px 13px; white-space: nowrap; transition: .14s; }
.ipdb-trow:hover .ipdb-viewbtn { background: #ea7b1e; color: #fff; border-color: #ea7b1e; }
.ipdb-badge { display: inline-block; font-size: 12px; font-weight: 600; color: #fff; border-radius: 20px; padding: 3px 11px; }
.ipdb-type-chip { display: inline-block; font-size: 12.5px; color: #c2620f; background: #fff3e6; border-radius: 20px; padding: 3px 11px; }

.ipdb-empty { text-align: center; padding: 70px 0; color: #a99c89; }
.ipdb-pagerbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.ipdb-pageinfo { color: #857a6b; font-size: 14.5px; }
.ipdb-pageinfo b { color: inherit; font-weight: 400; }
.ipdb-pager { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; margin-left: auto; }
.ipdb-pager button { min-width: 42px; height: 42px; padding: 0 13px; border-radius: 11px; border: 1px solid #e8ddcf; background: #fff; color: #6a6258; cursor: pointer; font-size: 14.5px; }
.ipdb-pager button:hover:not(:disabled) { border-color: #ea7b1e; color: #ea7b1e; }
.ipdb-pager button.active { background: #ea7b1e; color: #fff; border-color: #ea7b1e; }
.ipdb-pager button:disabled { opacity: .4; cursor: default; }
.ipdb-loading { text-align: center; padding: 50px 0; color: #b09a80; }

/* ---- Detail (ipdb/detail) ---- */
.ipd-wrap { padding: 36px 0 72px; background: #fbf7f1; }
.ipd-back { display: inline-block; margin-bottom: 18px; color: #8a8378; text-decoration: none; font-size: 14.5px; }
.ipd-back:hover { color: #ea7b1e; }
.ipd-block { background: #fff; border: 1px solid #efe5d6; border-radius: 18px; box-shadow: 0 6px 22px rgba(234, 123, 30, .06); overflow: hidden; margin-bottom: 24px; }
.ipd-block-h { display: flex; align-items: center; gap: 10px; padding: 16px 24px; border-bottom: 1px solid #f4ece1; font-size: 16px; font-weight: 700; color: #2b2a28; }
.ipd-block-h .feather { color: #ea7b1e; }
.ipd-block-b { padding: 22px 24px; }
.ipd-hero { display: flex; flex-wrap: wrap; }
.ipd-hero-cover { flex: 0 0 300px; max-width: 300px; min-height: 230px; display: flex; align-items: center; justify-content: center; }
.ipd-hero-cover img { width: 100%; height: 100%; object-fit: cover; }
.ipd-hero-cover .ic { font-size: 74px; color: #fff; opacity: .95; }
.ipd-hero-body { flex: 1 1 320px; padding: 26px 28px; }
.ipd-chip { display: inline-block; font-size: 13px; font-weight: 600; color: #c2620f; background: #fff3e6; border-radius: 30px; padding: 5px 15px; }
.ipd-badge { display: inline-block; font-size: 13px; font-weight: 600; color: #fff; border-radius: 30px; padding: 5px 15px; margin-left: 6px; }
.ipd-title { font-size: 25px; font-weight: 800; color: #2b2a28; line-height: 1.4; margin: 16px 0 6px; }
.ipd-title-en { font-size: 15.5px; color: #8a8378; margin-bottom: 14px; }
.ipd-quick { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 8px; }
.ipd-quick .q { font-size: 14px; }
.ipd-quick .q .lab { color: #9a8f7e; display: block; font-size: 12.5px; margin-bottom: 2px; }
.ipd-quick .q .val { color: #33312e; font-weight: 700; }
.ipd-views { color: #a99c89; font-size: 13px; margin-top: 16px; }
.ipd-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px 28px; }
.ipd-grid .row2 { padding: 11px 0; border-bottom: 1px solid #f4ece1; }
.ipd-grid .lab { color: #9a8f7e; font-size: 13px; margin-bottom: 3px; }
.ipd-grid .val { color: #33312e; font-size: 15.5px; font-weight: 600; }
.ipd-abstract { white-space: pre-wrap; color: #4a463f; font-size: 15.5px; line-height: 1.85; }
.ipd-side { position: sticky; top: 90px; }
.ipd-side .ipd-block-h { background: linear-gradient(135deg, #fff3e6, #fff); }
.ipd-field { margin-bottom: 13px; }
.ipd-field label { display: block; font-size: 14px; color: #5a544b; margin-bottom: 5px; font-weight: 500; }
.ipd-field .ctl { width: 100%; border: 1px solid #e2d9cd; border-radius: 9px; padding: 10px 12px; font-size: 14.5px; }
.ipd-field textarea.ctl { resize: vertical; min-height: 84px; }
.ipd-submit { width: 100%; border: 0; border-radius: 11px; background: #ea7b1e; color: #fff; font-weight: 700; height: 48px; cursor: pointer; font-size: 15.5px; }
.ipd-submit:hover { background: #d76d12; }
.ipd-submit:disabled { opacity: .6; cursor: not-allowed; }
#ipd-msg { display: none; border-radius: 9px; padding: 11px 14px; font-size: 14.5px; margin-bottom: 14px; }
#ipd-msg.ok { display: block; background: #e7f7ed; color: #15803d; border: 1px solid #b7e6c7; }
#ipd-msg.err { display: block; background: #fdeaea; color: #b91c1c; border: 1px solid #f3c2c2; }
.ipd-field .ctl.invalid { border-color: #e0566f; box-shadow: 0 0 0 .15rem rgba(224, 86, 111, .12); }
.ipd-err { display: none; color: #d33a56; font-size: 13px; margin-top: 5px; }
.ipd-err.show { display: block; }

/* ---- Detail topbar (back link + share อยู่แถวเดียวกัน) ---- */
.ipd-topbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.ipd-topbar .ipd-back { margin-bottom: 0; }

/* ---- Share (Facebook + LINE) ---- */
.tlo-share { display: flex; align-items: center; gap: 10px; }
.tlo-share-label { font-size: 13.5px; color: #8a8378; font-weight: 600; }
.tlo-share .fb-share-button, .tlo-share .line-it-button { display: inline-block; vertical-align: middle; }

/* ---- Contact us page (พื้นขาว + block มีมิติ) ---- */
.con-wrap { background: #fff; }
.con-wrap .ipd-block { box-shadow: 0 14px 36px rgba(120, 90, 40, .10); border-color: #f2e8d8; }
.con-info-row { display: flex; gap: 13px; margin-bottom: 18px; align-items: flex-start; }
.con-info-row .ic { width: 44px; height: 44px; border-radius: 13px; background: #fff3e6; color: #ea7b1e; display: flex; align-items: center; justify-content: center; font-size: 18px; flex: none; box-shadow: 0 4px 12px rgba(234, 123, 30, .14); }
.con-info-row .lab { font-size: 12.5px; color: #9a8f7e; margin-bottom: 2px; }
.con-info-row .val { font-size: 14.5px; color: #33312e; line-height: 1.7; }
.con-info-row .val a { color: #33312e; text-decoration: none; }
.con-info-row .val a:hover { color: #c2620f; }
.con-map { border-radius: 16px; overflow: hidden; border: 1px solid #efe5d6; height: 300px; margin-top: 24px; }
.con-map iframe { width: 100%; height: 100%; border: 0; display: block; }
.con-form-title { font-size: 19px; font-weight: 700; color: #33302b; margin-bottom: 22px; }
.ipd-msg-box { display: none; border-radius: 9px; padding: 11px 14px; font-size: 14.5px; margin-bottom: 16px; }
.ipd-msg-box.ok { display: block; background: #e7f7ed; color: #15803d; border: 1px solid #b7e6c7; }
.ipd-msg-box.err { display: block; background: #fdeaea; color: #b91c1c; border: 1px solid #f3c2c2; }
@media (max-width: 575px) { .ipd-grid { grid-template-columns: 1fr; } .ipd-hero-cover { flex-basis: 100%; max-width: 100%; } }

/* ============ Statistics dashboard (.stat-*) ============ */
.stat-wrap { background: #fff; }
.stat-filter { position: relative; background: #fff; border: 1px solid #eef0f3; border-radius: 16px; margin-bottom: 24px; box-shadow: 0 8px 22px rgba(60,70,90,.05); }
.stat-filter-head { display: flex; align-items: center; justify-content: space-between; padding: 15px 20px; cursor: pointer; font-weight: 700; color: #33312e; font-size: 15px; user-select: none; border-radius: 16px 16px 0 0; }
.stat-filter-head i:first-child { color: #ea7b1e; margin-right: 7px; }
.stat-filter-head:hover { background: #fffaf3; }
.stat-filter-body { padding: 4px 20px 20px; }
.stat-filter-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px 16px; }
.sf-item { display: flex; flex-direction: column; }
.sf-item-wide { grid-column: span 2; }
.sf-item label { font-size: 12.5px; color: #8a8378; margin-bottom: 5px; font-weight: 500; }
.sf-year { display: flex; align-items: center; gap: 8px; }
.sf-year > .bootstrap-select, .sf-year .dropdown { flex: 1; }
.sf-dash { color: #b0a89a; }
/* bootstrap-select ปรับสูง 42px ให้เข้าชุด */
.stat-filter .bootstrap-select > .dropdown-toggle { height: 42px; display: flex; align-items: center; border: 1px solid #e2d9cd !important; border-radius: 9px; background: #fff; color: #33312e; font-size: 14px; box-shadow: none !important; }
.stat-filter .bootstrap-select > .dropdown-toggle:focus { outline: none !important; border-color: #ea7b1e !important; }
.stat-filter .bootstrap-select .dropdown-toggle .filter-option-inner-inner { color: #33312e; font-size: 14px; }
/* ให้ dropdown ที่เปิดอยู่ลอยทับ chart ด้านล่าง (ไม่ถูกบัง) */
.stat-filter .bootstrap-select.show { z-index: 1050; }
.stat-filter .bootstrap-select .dropdown-menu { z-index: 1050; }
/* ขนาดฟอนต์ในเมนู dropdown ของ bootstrap-select (กันธีมย่อเล็ก) */
.stat-filter .bootstrap-select .dropdown-menu { font-size: 14px; }
.stat-filter .bootstrap-select .dropdown-menu li a,
.stat-filter .bootstrap-select .dropdown-menu li a .text { font-size: 14px !important; }
.stat-filter .bootstrap-select .dropdown-menu li a { padding: 8px 14px; }
.stat-filter .bootstrap-select .bs-searchbox .form-control { font-size: 14px; height: 38px; }
.stat-filter .bootstrap-select .bs-actionsbox .btn { font-size: 13px; }
.stat-filter-act { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; justify-content: flex-end; }
.sf-btn { display: inline-flex; align-items: center; gap: 6px; border-radius: 10px; padding: 0 20px; height: 42px; font-size: 14px; font-weight: 600; cursor: pointer; border: 1px solid transparent; transition: all .15s; }
.sf-btn-go { background: #ea7b1e; color: #fff; }
.sf-btn-go:hover { background: #d76d12; }
.sf-btn-clear { background: #fff; color: #8a8378; border-color: #e2d9cd; }
.sf-btn-clear:hover { border-color: #c2620f; color: #c2620f; }
@media (max-width: 991px) { .stat-filter-grid { grid-template-columns: repeat(2, 1fr); } .sf-item-wide { grid-column: span 2; } }
@media (max-width: 575px) { .stat-filter-grid { grid-template-columns: 1fr; } .sf-item-wide { grid-column: span 1; } }
.stat-loading { text-align: center; color: #8a8378; font-size: 15px; padding: 70px 0; }
.stat-spinner { width: 42px; height: 42px; margin: 0 auto 16px; border: 4px solid #eef1f5; border-top-color: #008ffb; border-radius: 50%; animation: statspin .8s linear infinite; }
@keyframes statspin { to { transform: rotate(360deg); } }
.stat-error { text-align: center; color: #b91c1c; font-size: 15px; padding: 50px 0; background: #fdeaea; border: 1px solid #f3c2c2; border-radius: 12px; }
.stat-error i { font-size: 26px; display: block; margin-bottom: 8px; }
.stat-error a { color: #c2620f; font-weight: 600; }
.stat-cards { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; margin-bottom: 28px; }
.stat-card { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid #eef0f3; border-radius: 16px; padding: 18px 18px; text-decoration: none; box-shadow: 0 10px 26px rgba(60, 70, 90, .06); border-top: 3px solid var(--accent, #94a3b8); }
.stat-card-total { background: linear-gradient(135deg, #f6f8fb, #fff); }
.stat-ic { width: 48px; height: 48px; flex: none; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 22px; color: #94a3b8; background: #f1f5f9; }
.stat-num { font-size: 27px; font-weight: 800; color: #2b2a28; line-height: 1.1; }
.stat-lab { font-size: 13px; color: #8a8378; margin-top: 3px; line-height: 1.35; }
.stat-chart-box { position: relative; height: 320px; }
.stat-chart-box.stat-chart-tall { height: 400px; }
.stat-table-wrap { overflow-x: auto; }
.stat-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.stat-table th, .stat-table td { padding: 13px 16px; text-align: center; border-bottom: 1px solid #f4ece1; white-space: nowrap; }
.stat-table thead th { background: #fff7ee; color: #c2620f; font-weight: 700; font-size: 14px; }
.stat-table .t-left { text-align: left; }
.stat-table tbody td { color: #4a463f; }
.stat-table .t-total { font-weight: 800; color: #2b2a28; }
.stat-table tbody tr:hover { background: #fffaf3; }
.stat-table tfoot td { background: #fbf3e8; font-weight: 800; color: #2b2a28; border-top: 2px solid #f0ddc4; border-bottom: 0; }
.stat-foot-note { margin-top: 22px; font-size: 14px; color: #8a8378; background: #fff7ee; border: 1px solid #f3e6d2; border-radius: 12px; padding: 14px 18px; }
.stat-foot-note i { color: #ea7b1e; margin-right: 5px; }
.stat-foot-note a { color: #c2620f; font-weight: 600; }
@media (max-width: 1200px) { .stat-cards { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 767px) { .stat-cards { grid-template-columns: repeat(2, 1fr); } .stat-chart-box { height: 280px; } }
@media (max-width: 420px) { .stat-cards { grid-template-columns: 1fr; } }
.stat-unit { font-size: 14px; font-weight: 600; color: #8a8378; }

/* ---- Utilization report (.util-*) ---- */
.util-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 28px; }
.stat-table .t-right { text-align: right; }
.util-iplink { color: #2b2a28; text-decoration: none; font-weight: 600; }
.util-iplink:hover { color: #c2620f; text-decoration: underline; }
.util-utilizer { color: #33312e; font-weight: 600; }
.util-org { color: #9a8f7e; font-size: 13px; margin-top: 2px; }
.util-badge { display: inline-block; background: #eef2f6; color: #4a5568; font-size: 12.5px; font-weight: 600; border-radius: 30px; padding: 4px 13px; white-space: nowrap; }
.util-table tbody td { vertical-align: middle; }
@media (max-width: 991px) { .util-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .util-cards { grid-template-columns: 1fr; } }

/* ============ About page (.about-*) ============ */
.about-wrap { background: #fff; }
/* hero (ข้อความ + ภาพ) */
.about-hero { display: grid; grid-template-columns: 1.15fr 1fr; gap: 28px; align-items: center; background: linear-gradient(135deg, #fff7ee, #fff); border: 1px solid #f3e6d2; border-radius: 18px; padding: 32px 34px; margin-bottom: 26px; }
.about-hero-eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: #c2620f; background: #fff3e6; border-radius: 30px; padding: 5px 14px; }
.about-hero-title { font-size: 27px; font-weight: 800; color: #2b2a28; margin: 14px 0 4px; }
.about-hero-sub { font-size: 15px; color: #c2620f; font-weight: 600; margin: 0 0 14px; line-height: 1.6; }
.about-hero-desc { font-size: 15.5px; color: #4a463f; line-height: 1.9; margin: 0; }
/* รูป + fallback placeholder */
.about-figure { margin: 0; border-radius: 14px; overflow: hidden; }
.about-figure img { display: block; width: 100%; height: 100%; object-fit: cover; }
.about-figure-ph { display: none; }
.about-figure.is-empty { border: 1px dashed #e6d3b6; background: repeating-linear-gradient(45deg,#fffaf3,#fffaf3 12px,#fff5e8 12px,#fff5e8 24px); }
.about-figure.is-empty .about-figure-ph { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; height: 100%; color: #c2a06a; font-size: 14px; text-align: center; padding: 16px; }
.about-figure.is-empty .about-figure-ph i { font-size: 34px; }
.about-hero-figure { height: 240px; }
.about-side-figure { height: 100%; min-height: 320px; }
/* แสดงภาพเต็ม ไม่ crop + พื้นขาวกลมกลืนกับ block */
.about-figure-contain { background: #fff; border: 0; }
.about-figure-contain img { object-fit: contain; }
.about-2col { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 24px; align-items: stretch; }
.about-2col-text { align-self: start; }
.about-sec { margin-top: 24px; }
/* ประวัติ — รูปแนวตั้งคอลัมน์ซ้าย (ตรึงบน) + ข้อความไหลคอลัมน์เดียวข้างขวา */
.about-2col-history { grid-template-columns: 0.82fr 1.18fr; align-items: start; gap: 30px; }
.about-figure-natural { height: auto; min-height: 0; align-self: start; position: sticky; top: 88px; }
.about-figure-natural img { height: auto; }
.about-figure-cap { display: block; margin-top: 12px; font-size: 14px; color: #9a8f7e; line-height: 1.55; text-align: center; }
.about-figure.is-empty .about-figure-cap { display: none; }
/* หัวข้อย่อยแบบ highlight (เส้นขอบส้ม + บรรทัดหลัก/รอง) */
.about-hl { margin: 26px 0 11px; padding-left: 15px; border-left: 3px solid #ea7b1e; }
.about-hl:first-child { margin-top: 0; }
.about-hl .hl-main { display: block; font-size: 19px; font-weight: 800; color: #2b2a28; line-height: 1.45; }
.about-hl .hl-sub { display: block; font-size: 14.5px; font-weight: 600; color: #c2620f; margin-top: 4px; line-height: 1.5; }
.about-text { font-size: 15.5px; color: #44403a; line-height: 1.9; margin: 0 0 14px; }
.about-note { font-size: 13.5px; color: #a07b48; background: #fff7ee; border: 1px dashed #ecd9bf; border-radius: 10px; padding: 10px 14px; margin: 6px 0 0; }
.about-note i { color: #ea7b1e; margin-right: 5px; }
.about-vision { background: linear-gradient(135deg, #fff3e6, #fff); height: 100%; }
.about-vision-text { font-size: 16.5px; color: #5a3a14; font-weight: 600; line-height: 1.85; margin: 0; }
.about-mission-list { list-style: none; margin: 0; padding: 0; }
.about-mission-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; color: #44403a; line-height: 1.7; padding: 10px 0; border-bottom: 1px solid #f4ece1; }
.about-mission-list li:last-child { border-bottom: 0; }
.about-mission-no { width: 26px; height: 26px; flex: none; border-radius: 50%; background: #fff3e6; color: #c2620f; font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.about-mission-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.about-mcard { background: #fff; border: 1px solid #f1e7d8; border-radius: 14px; padding: 20px; text-align: center; transition: transform .15s, box-shadow .15s; }
.about-mcard:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(120,90,40,.1); }
.about-mcard-ic { width: 52px; height: 52px; margin: 0 auto 12px; border-radius: 14px; background: #fff3e6; color: #ea7b1e; display: flex; align-items: center; justify-content: center; font-size: 23px; }
.about-mcard-title { font-size: 15.5px; font-weight: 700; color: #2b2a28; margin-bottom: 7px; }
.about-mcard-desc { font-size: 13.5px; color: #7c7468; line-height: 1.65; }
.about-person-lead { display: flex; gap: 22px; align-items: center; }
.about-person-photo { width: 150px; height: 180px; flex: none; border-radius: 14px; }
.about-person-photo.is-empty { border: 1px dashed #e6d3b6; }
.about-person-role { font-size: 13px; font-weight: 700; color: #c2620f; background: #fff3e6; display: inline-block; border-radius: 30px; padding: 4px 14px; margin-bottom: 8px; }
.about-person-name { font-size: 18px; font-weight: 700; color: #33312e; margin-bottom: 8px; }
/* บุคลากร — กริดเจ้าหน้าที่ (การ์ด: รูปเต็มความกว้างด้านบน + ข้อมูลด้านล่าง) */
.person-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.person-card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid #f1e7d8; border-radius: 18px; overflow: hidden; transition: transform .18s, box-shadow .18s; }
.person-card:hover { transform: translateY(-5px); box-shadow: 0 18px 38px rgba(120,90,40,.16); }
.person-card-photo { width: 100%; aspect-ratio: 2 / 3; height: auto; border-radius: 0; margin: 0; background: #fff5e8; }
.person-card-photo img { border-radius: 0; object-position: center top; }
.person-card-photo.is-empty { background: repeating-linear-gradient(45deg,#fffaf3,#fffaf3 12px,#fff5e8 12px,#fff5e8 24px); }
.person-card-photo.is-empty .about-figure-ph i { font-size: 40px; }
.person-card-body { display: flex; flex-direction: column; align-items: center; text-align: center; flex: 1; padding: 18px 18px 22px; }
.person-card-role { font-size: 18px; font-weight: 800; color: #2b2a28; margin-bottom: 8px; line-height: 1.4; }
.person-card-name { font-size: 14.5px; color: #7c7468; line-height: 1.55; min-height: 45px; margin-bottom: 16px; }
.person-card-email { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 8px 16px; border-radius: 30px; border: 1px solid #f1d4b3; background: #fff8f0; color: #c2620f; font-size: 13.5px; font-weight: 600; text-decoration: none; word-break: break-all; transition: background .15s, color .15s, border-color .15s; }
.person-card-email:hover { background: #ea7b1e; color: #fff; border-color: #ea7b1e; }
.person-card-email i { font-size: 15px; flex: none; }
@media (max-width: 991px) { .person-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .person-grid { grid-template-columns: 1fr; } }
.about-cta { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; background: linear-gradient(135deg, #ea7b1e, #f4a44d); border-radius: 18px; padding: 26px 32px; margin-top: 28px; }
.about-cta-text { color: #fff; }
.about-cta-text strong { display: block; font-size: 18px; margin-bottom: 4px; }
.about-cta-text span { font-size: 14.5px; opacity: .95; }
.about-cta-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.about-btn { display: inline-flex; align-items: center; gap: 7px; border-radius: 11px; padding: 11px 20px; font-size: 14.5px; font-weight: 700; text-decoration: none; }
.about-btn-primary { background: #fff; color: #c2620f; }
.about-btn-primary:hover { background: #fff3e6; color: #a8540d; }
.about-btn-ghost { background: rgba(255,255,255,.18); color: #fff; border: 1px solid rgba(255,255,255,.6); }
.about-btn-ghost:hover { background: rgba(255,255,255,.28); color: #fff; }
/* หน้า About — ข้อความเนื้อหา (ไม่ใช่หัวข้อ) = 18px */
.about-wrap .about-hero-desc,
.about-wrap .about-text,
.about-wrap .about-mission-list li,
.about-wrap .about-vision-text,
.about-wrap .about-mcard-desc,
.about-wrap .about-cta-text span { font-size: 18px; line-height: 1.85; }
/* หน้า About — สเกลหัวข้อ/ป้ายให้สัมพันธ์กับ body 18px */
.about-wrap .ipd-block-h { font-size: 20px; }
.about-wrap .about-hero-eyebrow { font-size: 14px; }
.about-wrap .about-hero-title { font-size: 30px; }
.about-wrap .about-hero-sub { font-size: 18px; }
.about-wrap .about-vision-text { font-size: 19px; }
.about-wrap .about-mission-no { width: 28px; height: 28px; font-size: 14px; }
.about-wrap .about-mcard-title { font-size: 19px; }
.about-wrap .about-mcard-ic { width: 58px; height: 58px; font-size: 26px; }
.about-wrap .about-note { font-size: 15px; }
.about-wrap .about-hl .hl-main { font-size: 21px; }
.about-wrap .about-hl .hl-sub { font-size: 16px; }
.about-wrap .about-figure-cap { font-size: 15px; }
.about-wrap .about-cta-text strong { font-size: 21px; }
.about-wrap .about-cta .about-btn { font-size: 16px; }
@media (max-width: 991px) { .about-mission-grid { grid-template-columns: repeat(2, 1fr); } .about-hero { grid-template-columns: 1fr; } .about-hero-figure { height: 220px; } .about-2col { grid-template-columns: 1fr; } .about-side-figure { min-height: 200px; } .about-figure-natural { position: static; } .about-2col-history .about-figure { max-width: 460px; margin: 0 auto; } }
@media (max-width: 575px) { .about-mission-grid { grid-template-columns: 1fr; } .about-cta { flex-direction: column; align-items: flex-start; } .about-person-lead { flex-direction: column; align-items: flex-start; } }

/* ---- Utilization map (Leaflet choropleth + province ranking) ---- */
.util-map-row { display: flex; gap: 18px; align-items: stretch; }
.util-map-col { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.util-map { width: 100%; height: 580px; border-radius: 12px; overflow: hidden; border: 1px solid #eef0f3; position: relative; z-index: 0; }
.util-map-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-top: 10px; font-size: 12.5px; color: #8a8378; }
.util-map-legend .util-legend-label { font-weight: 600; color: #6f675b; }
.util-legend-item { display: inline-flex; align-items: center; gap: 4px; }
.util-legend-item i { width: 16px; height: 12px; border-radius: 3px; display: inline-block; }
.util-prov-panel { width: 270px; flex: none; border: 1px solid #f1e7d8; border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; }
.util-prov-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; background: #fff7ee; color: #c2620f; font-size: 12.5px; font-weight: 700; border-bottom: 1px solid #f3e6d2; }
.util-prov-list { flex: 1 1 auto; overflow-y: auto; }
.util-prov-item { display: flex; align-items: center; gap: 10px; padding: 9px 14px; border-bottom: 1px solid #f6f0e6; font-size: 14px; }
.util-prov-item:last-child { border-bottom: 0; }
.util-prov-rank { width: 22px; height: 22px; border-radius: 50%; background: #fff3e6; color: #c2620f; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex: none; }
.util-prov-name { flex: 1; color: #33312e; }
.util-prov-cnt { font-weight: 700; color: #ea7b1e; }
.leaflet-container { font-family: 'Kanit','Prompt',sans-serif; }
@media (max-width: 767px) { .util-map-row { flex-direction: column; } .util-map { height: 460px; } .util-prov-panel { width: 100%; max-height: 300px; } }

/* ประเภทผู้ใช้ — badge แยกสี */
.util-ubadge { display: inline-block; font-size: 12px; font-weight: 600; border-radius: 30px; padding: 3px 11px; white-space: nowrap; }
.uz-Internal   { background: #e3f2ff; color: #1769b3; }
.uz-External   { background: #eeeafb; color: #5b3fb0; }
.uz-Company    { background: #fff0e2; color: #c2620f; }
.uz-Community  { background: #e0faf0; color: #1d8f5b; }
.uz-Government { background: #fdecef; color: #c0395a; }
.uz-Other      { background: #eef1f5; color: #5a6473; }

/* ---- Export button + DataTable (modern) ---- */
.util-xls { display: inline-flex; align-items: center; gap: 6px; background: #1d8f5b; color: #fff; border: 0; border-radius: 9px; padding: 8px 16px; font-size: 13.5px; font-weight: 600; cursor: pointer; transition: background .15s; }
.util-xls:hover { background: #176f47; }
.util-dt-wrap { padding-top: 4px; }
table.util-dt { border-collapse: separate !important; border-spacing: 0; font-size: 14.5px; }
/* modern + ไม่มีเส้น (override DataTables) */
table.util-dt.dataTable, table.util-dt.dataTable th, table.util-dt.dataTable td { border: 0 !important; }
table.util-dt.dataTable.no-footer { border-bottom: 0 !important; }
table.util-dt thead th { background: transparent; color: #8a8378; font-weight: 700; font-size: 13px; border-bottom: 1px solid #eef0f3 !important; padding: 12px 14px; }
table.util-dt tbody td { padding: 13px 14px; color: #44403a; vertical-align: middle; }
table.util-dt tbody tr { transition: background .12s; }
table.util-dt tbody tr:nth-child(even) { background: #fcfcfd; }
table.util-dt tbody tr:hover { background: #fff7ee; }
table.util-dt .dt-center { text-align: center; }
table.util-dt .dt-right { text-align: right; font-variant-numeric: tabular-nums; }
/* DataTables controls → โทนเข้าชุด */
.dataTables_wrapper .dataTables_filter input { border: 1px solid #e2d9cd; border-radius: 8px; padding: 7px 11px; font-size: 14px; outline: none; margin-left: 6px; }
.dataTables_wrapper .dataTables_filter input:focus { border-color: #ea7b1e; }
.dataTables_wrapper .dataTables_length select { border: 1px solid #e2d9cd; border-radius: 8px; padding: 5px 8px; }
.dataTables_wrapper .dataTables_length, .dataTables_wrapper .dataTables_filter { font-size: 13.5px; color: #6f675b; margin-bottom: 12px; }
.dataTables_wrapper .dataTables_info { font-size: 13px; color: #8a8378; padding-top: 14px; }
.dataTables_wrapper .dataTables_paginate { padding-top: 10px; }
.dataTables_wrapper .dataTables_paginate .paginate_button { padding: 6px 12px !important; border-radius: 8px !important; border: 1px solid #eadfce !important; margin: 0 2px; color: #6f675b !important; background: #fff !important; }
.dataTables_wrapper .dataTables_paginate .paginate_button.current { background: #ea7b1e !important; border-color: #ea7b1e !important; color: #fff !important; }
.dataTables_wrapper .dataTables_paginate .paginate_button:hover { background: #fff3e6 !important; border-color: #ea7b1e !important; color: #c2620f !important; }
@media (max-width: 575px) { .util-cards { grid-template-columns: 1fr; } }

/* ---- Download center (.dl-*) ---- */
.dl-wrap { background: #fff; }
.dl-toolbar { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.dl-search { position: relative; flex: 1 1 320px; max-width: 420px; }
.dl-search i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #c9a06a; font-size: 16px; }
.dl-search input { width: 100%; border: 1px solid #e2d9cd; border-radius: 30px; padding: 11px 16px 11px 40px; font-size: 14.5px; outline: none; }
.dl-search input:focus { border-color: #ea7b1e; box-shadow: 0 0 0 .15rem rgba(234,123,30,.12); }
.dl-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.dl-pill { border: 1px solid #ecd9bf; background: #fff; color: #8a6a3a; border-radius: 30px; padding: 8px 16px; font-size: 13.5px; font-weight: 600; cursor: pointer; transition: all .15s; }
.dl-pill:hover { border-color: #ea7b1e; color: #c2620f; }
.dl-pill.active { background: #ea7b1e; border-color: #ea7b1e; color: #fff; }
.dl-group { margin-bottom: 26px; }
.dl-group-h { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 700; color: #33302b; margin-bottom: 14px; }
.dl-group-bar { width: 5px; height: 20px; border-radius: 4px; background: #ea7b1e; display: inline-block; }
.dl-group-cnt { font-size: 12.5px; font-weight: 600; color: #c2620f; background: #fff3e6; border-radius: 30px; padding: 2px 11px; }
.dl-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.dl-item { display: flex; align-items: center; gap: 15px; background: #fff; border: 1px solid #f1e7d8; border-radius: 14px; padding: 15px 17px; box-shadow: 0 8px 20px rgba(120,90,40,.05); transition: box-shadow .15s, transform .15s; }
.dl-item:hover { box-shadow: 0 14px 30px rgba(120,90,40,.12); transform: translateY(-2px); }
.dl-fileic { width: 50px; height: 58px; flex: none; border-radius: 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 20px; }
.dl-fileic span { font-size: 10px; font-weight: 700; letter-spacing: .5px; }
.dl-fileic.is-pdf { background: #fdeef0; color: #e57382; }
.dl-fileic.is-doc { background: #eaf2fb; color: #5a9bd4; }
.dl-info { flex: 1 1 auto; min-width: 0; }
.dl-title { font-size: 15px; font-weight: 600; color: #2b2a28; line-height: 1.5; margin-bottom: 7px; }
.dl-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.dl-tag { display: inline-block; font-size: 11.5px; font-weight: 500; border-radius: 30px; padding: 3px 12px; background: transparent; color: #ada595; border: 1px solid #e3ddd2; }
.dl-sub { font-size: 12.5px; color: #9a8f7e; display: inline-flex; align-items: center; gap: 4px; }
.dl-btn { flex: none; display: inline-flex; align-items: center; gap: 6px; background: #fff3e6; color: #c2620f; border: 1px solid #f3d9b8; border-radius: 10px; padding: 9px 15px; font-size: 13.5px; font-weight: 700; text-decoration: none; transition: all .15s; }
.dl-btn:hover { background: #ea7b1e; border-color: #ea7b1e; color: #fff; }
.dl-empty { text-align: center; color: #9a8f7e; font-size: 15px; padding: 40px 0; }
.dl-empty i { display: block; font-size: 34px; margin-bottom: 8px; color: #d8c4a6; }
@media (max-width: 767px) { .dl-list { grid-template-columns: 1fr; } .dl-toolbar { flex-direction: column; align-items: stretch; } .dl-search { max-width: none; } }

/* ---- News / Activity / Article (.news-*) ---- */
.news-wrap { background: #fff; }
.news-filters { margin-bottom: 26px; }
.news-filters .dl-pill { text-decoration: none; }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.news-card { display: flex; flex-direction: column; background: #fff; border: 1px solid #f1e7d8; border-radius: 16px; overflow: hidden; text-decoration: none; box-shadow: 0 10px 26px rgba(120,90,40,.06); transition: transform .15s, box-shadow .15s; }
.news-card:hover { transform: translateY(-4px); box-shadow: 0 18px 38px rgba(120,90,40,.14); }
.news-cover { position: relative; height: 168px; background: linear-gradient(135deg, color-mix(in srgb, var(--accent,#ea7b1e) 16%, #fff), #fff); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.news-cover img { width: 100%; height: 100%; object-fit: cover; }
.news-cover > i { font-size: 52px; color: var(--accent, #ea7b1e); opacity: .55; }
.news-cat { position: absolute; top: 12px; left: 12px; color: #fff; font-size: 12px; font-weight: 600; border-radius: 30px; padding: 3px 12px; }
.news-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1 1 auto; }
.news-date { font-size: 12.5px; color: #a99c89; display: flex; align-items: center; gap: 5px; margin-bottom: 8px; }
.news-title { font-size: 16px; font-weight: 700; color: #2b2a28; line-height: 1.5; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-sum { font-size: 13.5px; color: #7c7468; line-height: 1.65; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; flex: 1 1 auto; }
.news-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; padding-top: 12px; border-top: 1px solid #f4ece1; }
.news-views { font-size: 12.5px; color: #a99c89; display: inline-flex; align-items: center; gap: 5px; }
.news-more { font-size: 13px; font-weight: 600; color: #c2620f; display: inline-flex; align-items: center; gap: 4px; }
/* detail */
.news-detail-cover { height: 300px; overflow: hidden; }
.news-detail-cover img { width: 100%; height: 100%; object-fit: cover; }
.news-detail-noimg { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, color-mix(in srgb, var(--accent,#ea7b1e) 18%, #fff), #fff); }
.news-detail-noimg i { font-size: 80px; color: var(--accent, #ea7b1e); opacity: .5; }
.news-cat-inline { display: inline-block; color: #fff; font-size: 12.5px; font-weight: 600; border-radius: 30px; padding: 4px 14px; }
.news-detail-title { font-size: 26px; font-weight: 800; color: #2b2a28; line-height: 1.4; margin: 14px 0 10px; }
.news-detail-meta { display: flex; flex-wrap: wrap; gap: 18px; color: #a99c89; font-size: 13.5px; margin-bottom: 18px; }
.news-detail-meta span { display: inline-flex; align-items: center; gap: 6px; }
.news-detail-sum { font-size: 16px; color: #4a463f; font-weight: 600; line-height: 1.75; background: #fff7ee; border-left: 4px solid #ea7b1e; border-radius: 8px; padding: 14px 16px; margin-bottom: 20px; }
.news-detail-content { font-size: 15.5px; color: #44403a; line-height: 1.9; }
.news-detail-content p { margin-bottom: 16px; }
.news-side-item { display: flex; gap: 10px; padding: 12px 0; border-bottom: 1px solid #f4ece1; text-decoration: none; }
.news-side-item:last-child { border-bottom: 0; }
.news-side-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; margin-top: 6px; }
.news-side-title { display: block; font-size: 14px; color: #33312e; font-weight: 600; line-height: 1.5; }
.news-side-item:hover .news-side-title { color: #c2620f; }
.news-side-date { display: block; font-size: 12px; color: #a99c89; margin-top: 3px; }
@media (max-width: 991px) { .news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px) { .news-grid { grid-template-columns: 1fr; } }

/* ============ Home page (.home-*) — TLO Orange-White ============ */
.home-hero { background: linear-gradient(135deg, #fff3e6 0%, #ffffff 60%); border-bottom: 1px solid #f3e6d2; padding: 64px 0 56px; }
.home-hero-inner { max-width: 820px; }
.home-hero-eyebrow { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 700; color: #c2620f; background: #fff; border: 1px solid #f3d8b8; border-radius: 30px; padding: 6px 16px; }
.home-hero-title { font-size: 44px; line-height: 1.25; font-weight: 800; color: #2b2a28; margin: 18px 0 14px; }
.home-hero-title span { color: #ea7b1e; }
.home-hero-sub { font-size: 18px; line-height: 1.8; color: #5a5249; margin: 0 0 26px; }
.home-search { display: flex; align-items: center; background: #fff; border: 1px solid #ecd9bf; border-radius: 14px; padding: 6px 6px 6px 16px; box-shadow: 0 10px 30px rgba(120,90,40,.08); max-width: 640px; }
.home-search i { color: #c2620f; font-size: 19px; flex: none; }
.home-search input { flex: 1; border: 0; outline: 0; font-size: 16px; padding: 12px 12px; background: transparent; color: #33312e; }
.home-search button { flex: none; background: #ea7b1e; color: #fff; border: 0; border-radius: 10px; padding: 12px 26px; font-size: 15px; font-weight: 700; cursor: pointer; transition: background .15s; }
.home-search button:hover { background: #d96d12; }
.home-hero-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.home-btn { display: inline-flex; align-items: center; gap: 8px; border-radius: 11px; padding: 12px 24px; font-size: 15.5px; font-weight: 700; text-decoration: none; transition: all .15s; cursor: pointer; }
.home-btn-primary { background: linear-gradient(135deg, #f8531d, #ff8a3c); color: #fff; box-shadow: 0 8px 20px rgba(248,83,29,.28); }
.home-btn-primary:hover { background: linear-gradient(135deg, #e8470f, #f97316); color: #fff; }
.home-btn-ghost { background: #fff; color: #c2620f; border: 1px solid #f0caa0; }
.home-btn-ghost:hover { background: #fff3e6; color: #a8540d; }
.home-btn-outline { background: #fff; color: #c2620f; border: 1px solid #f0caa0; }
.home-btn-outline:hover { background: linear-gradient(135deg, #f8531d, #ff8a3c); color: #fff; border-color: transparent; box-shadow: 0 8px 20px rgba(248,83,29,.28); }
.home-btn-white { background: #fff; color: #c2620f; }
.home-btn-white:hover { background: #fff3e6; color: #a8540d; }
.home-btn-ghost-white { background: rgba(255,255,255,.18); color: #fff; border: 1px solid rgba(255,255,255,.65); }
.home-btn-ghost-white:hover { background: rgba(255,255,255,.3); color: #fff; }
/* stats */
.home-stats { background: #fff; padding: 44px 0 10px; }
.home-stats-cta { text-align: center; margin-top: 42px; }
.home-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.home-stat { background: #fff; border: 1px solid #f1e7d8; border-radius: 16px; padding: 24px 18px; text-align: center; box-shadow: 0 12px 30px rgba(120,90,40,.07); transition: transform .15s, box-shadow .15s; }
.home-stat:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(120,90,40,.12); }
.home-stat-ic { width: 50px; height: 50px; margin: 0 auto 12px; border-radius: 15px; background: linear-gradient(135deg, #fff1e3, #ffe0c2); color: #f8531d; display: flex; align-items: center; justify-content: center; font-size: 23px; }
.home-stat-num { font-size: 35px; font-weight: 800; color: #f8531d; line-height: 1.05; }
.home-stat-money { font-size: 24px; }
.home-stat-label { font-size: 14.5px; color: #6b6358; margin-top: 8px; }
.home-stats-link { display: inline-flex; align-items: center; gap: 9px; font-size: 15.5px; font-weight: 700; color: #fff; text-decoration: none;
    background: linear-gradient(135deg, #f8531d, #ff8a3c); padding: 13px 30px; border-radius: 30px;
    box-shadow: 0 12px 26px rgba(248,83,29,.32); transition: transform .2s cubic-bezier(.2,.7,.3,1), box-shadow .2s, gap .2s; }
.home-stats-link:hover { color: #fff; transform: translateY(-3px); box-shadow: 0 18px 36px rgba(248,83,29,.42); gap: 13px; }
.home-stats-link i { transition: transform .2s; }
.home-stats-link:hover i { transform: translateX(3px); }
/* sections */
.home-sec { padding: 56px 0; }
.home-sec-alt { background: #fff9f2; }
.home-sec-head { text-align: center; max-width: 640px; margin: 0 auto 34px; }
.home-sec-head h2 { font-size: 30px; font-weight: 800; color: #2b2a28; margin: 0 0 8px; }
.home-sec-head h2:after { content: ''; display: block; width: 56px; height: 4px; background: linear-gradient(90deg, #f8531d, #ff9a3c); border-radius: 4px; margin: 12px auto 0; }
.home-sec-head p { font-size: 16px; color: #7c7468; margin: 14px 0 0; }
/* service cards */
.home-svc-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.home-svc-card { display: block; background: #fff; border: 1px solid #f1e7d8; border-radius: 16px; padding: 26px 18px; text-align: center; text-decoration: none; transition: transform .15s, box-shadow .15s, border-color .15s; }
.home-svc-card:hover { transform: translateY(-5px); box-shadow: 0 16px 34px rgba(120,90,40,.12); border-color: #f0caa0; }
.home-svc-ic { width: 60px; height: 60px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 26px; margin: 0 auto 14px; }
.home-svc-name { font-size: 16px; font-weight: 700; color: #2b2a28; margin-bottom: 7px; line-height: 1.4; }
.home-svc-desc { font-size: 13px; color: #8a8175; line-height: 1.6; }
/* item cards (commercial) */
.home-card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.home-item-card { display: block; background: #fff; border: 1px solid #f1e7d8; border-radius: 16px; overflow: hidden; text-decoration: none; transition: transform .15s, box-shadow .15s; }
.home-item-card:hover { transform: translateY(-5px); box-shadow: 0 16px 34px rgba(120,90,40,.12); }
.home-item-thumb { position: relative; height: 170px; background: linear-gradient(135deg, #fff3e6, #ffe6cc); display: flex; align-items: center; justify-content: center; }
.home-item-thumb img { width: 100%; height: 100%; object-fit: cover; }
.home-item-ph { color: #e0a86a; font-size: 42px; }
.home-item-cat { position: absolute; top: 12px; left: 12px; background: rgba(255,255,255,.92); color: #c2620f; font-size: 12px; font-weight: 700; border-radius: 30px; padding: 4px 12px; }
.home-item-body { padding: 16px 18px 18px; }
.home-item-title { font-size: 16px; font-weight: 700; color: #2b2a28; line-height: 1.45; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.home-item-meta { font-size: 13px; color: #8a8175; }
.home-item-trl { display: inline-block; margin-top: 10px; font-size: 12px; font-weight: 700; color: #2c8c99; background: #e6f4f6; border-radius: 30px; padding: 3px 12px; }
/* news cards */
.home-news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.home-news-card { display: block; background: #fff; border: 1px solid #f1e7d8; border-radius: 16px; overflow: hidden; text-decoration: none; transition: transform .15s, box-shadow .15s; }
.home-news-card:hover { transform: translateY(-5px); box-shadow: 0 16px 34px rgba(120,90,40,.12); }
.home-news-thumb { height: 160px; background: linear-gradient(135deg, #fff3e6, #ffe6cc); display: flex; align-items: center; justify-content: center; }
.home-news-thumb img { width: 100%; height: 100%; object-fit: cover; }
.home-news-body { padding: 16px 18px 18px; }
.home-news-cat { display: inline-block; font-size: 12px; font-weight: 700; color: #c2620f; background: #fff3e6; border-radius: 30px; padding: 3px 12px; margin-bottom: 9px; }
.home-news-title { font-size: 16px; font-weight: 700; color: #2b2a28; line-height: 1.45; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.home-news-date { font-size: 13px; color: #9a8f7e; }
/* CTA — 3 การ์ดก่อน footer (gradient ส้มสด + glow + การ์ด glass) */
.home-final { position: relative; overflow: hidden; padding: 74px 0 82px; border-top: 1px solid #f7e7d4;
    background:
        radial-gradient(at 12% 18%, rgba(255,154,60,.16), transparent 45%),
        radial-gradient(at 88% 12%, rgba(248,83,29,.09), transparent 42%),
        radial-gradient(at 78% 90%, rgba(255,176,84,.18), transparent 46%),
        linear-gradient(135deg, #fff7ef 0%, #ffeede 55%, #ffe4d0 100%); }
.home-final .container { position: relative; z-index: 1; }
.home-final-head { text-align: center; max-width: 700px; margin: 0 auto 42px; }
.home-final-eyebrow { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 700; color: #c2620f;
    background: rgba(255,255,255,.8); border: 1px solid #f3d8b8; border-radius: 30px; padding: 7px 17px; margin-bottom: 18px;
    box-shadow: 0 4px 16px rgba(180,110,40,.1); }
.home-final-head h2 { color: #2b2a28; font-size: 34px; font-weight: 800; margin: 0 0 14px; letter-spacing: -.02em; line-height: 1.3; }
.home-final-head h2 .hl { background: linear-gradient(90deg, #f8531d, #ff9a3c); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: #f8531d; }
.home-final-head p { color: #7c6f60; font-size: 16px; line-height: 1.8; margin: 0; }
.home-final-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
/* การ์ดขาวสม่ำเสมอทั้ง 3 ใบ — ใบหลักเน้นด้วยแถบ accent ด้านบน */
.home-final-card { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center;
    background: linear-gradient(180deg, #ffffff 0%, #fffaf4 100%); border: 1px solid #f3e3d2; border-radius: 24px; padding: 38px 26px 32px; text-decoration: none;
    box-shadow: 0 16px 40px rgba(180,110,40,.13); transition: transform .25s cubic-bezier(.2,.7,.3,1), box-shadow .25s, border-color .25s; }
.home-final-card:hover { transform: translateY(-8px); box-shadow: 0 28px 56px rgba(180,110,40,.22); border-color: #f6c79c; }
.home-final-card.is-feature { box-shadow: 0 20px 48px rgba(248,83,29,.18); border-color: #f9d3b3; }
.home-final-card.is-feature::before { content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    width: 70px; height: 4px; border-radius: 0 0 5px 5px; background: linear-gradient(90deg, #f8531d, #ff9a3c); }
.home-final-ic { width: 76px; height: 76px; margin: 0 auto 20px; border-radius: 22px; display: flex; align-items: center; justify-content: center;
    font-size: 31px; background: linear-gradient(135deg, #fff1e3, #ffe0c2); color: #f8531d; transition: transform .25s; }
.home-final-card:hover .home-final-ic { transform: translateY(-3px) scale(1.06); }
.home-final-card.is-feature .home-final-ic { background: linear-gradient(135deg, #f8531d, #ff8a3c); color: #fff; box-shadow: 0 10px 22px rgba(248,83,29,.34); }
.home-final-title { font-size: 19.5px; font-weight: 800; color: #2b2a28; margin-bottom: 10px; }
.home-final-desc { font-size: 14.5px; line-height: 1.7; color: #6b6358; margin-bottom: 20px; flex: 1; }
.home-final-link { display: inline-flex; align-items: center; gap: 7px; font-size: 15px; font-weight: 700; color: #f8531d; transition: gap .2s; }
.home-final-card:hover .home-final-link { gap: 12px; }
@media (max-width: 991px) {
    .home-hero-title { font-size: 34px; }
    .home-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .home-svc-grid { grid-template-columns: repeat(3, 1fr); }
    .home-card-grid, .home-news-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575px) {
    .home-hero { padding: 44px 0 40px; }
    .home-hero-title { font-size: 27px; }
    .home-search button { padding: 12px 16px; }
    .home-svc-grid, .home-card-grid, .home-news-grid, .home-final-grid { grid-template-columns: 1fr; }
}

/* HERO banner — ความสูงปรับตามสัดส่วนภาพ 4:1 (2048x512) */
.rbt-banner-5.tlo-hero {
    position: relative;
    width: 100%;
    height: 432px;              /* ความสูง section banner */
    min-height: 432px;
    display: flex;
    align-items: center;
    padding: 40px 0 0;          /* เผื่อ header ด้านบน */
    box-sizing: border-box;
    overflow: hidden;           /* ซ่อนส่วน zoom/parallax ที่ล้นกรอบ */
    background: none;           /* ภาพอยู่ที่ layer .tlo-hero-bg */
}
.rbt-banner-5.tlo-hero > .container { position: relative; z-index: 2; }
/* layer ภาพ — zoom เล็กน้อย ตรึงขอบบน (หัวผู้หญิง) ไว้ที่ขอบบนเสมอ ภาพล้นลงด้านล่าง */
.tlo-hero-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: url(../images/bg/bg-image-19.jpg);
    background-repeat: no-repeat;
    background-position: center top;
    background-size: cover;
    transform-origin: center top;
    transform: scale(1.08);     /* ค่าเริ่มต้น (เผื่อ JS ไม่ทำงาน) */
    will-change: transform;
    z-index: 0;
}
/* จอแคบลง — สัดส่วนกรอบเตี้ยลงตามภาพ */
@media (max-width: 991px) {
    .rbt-banner-5.tlo-hero { padding-top: 30px; }
}
/* มือถือ — ภาพ 4:1 เตี้ยเกินสำหรับข้อความ จึงตั้ง min-height, ปิด parallax, anchor ฝั่งซ้าย (พื้นที่ขาว) */
@media (max-width: 767px) {
    .rbt-banner-5.tlo-hero {
        aspect-ratio: auto;
        min-height: 360px;
        padding: 80px 0 40px;
    }
    .tlo-hero-bg {
        background-position: left center;
        transform: none;
    }
}
/* HERO title/description — ขนาดเหมาะกับกรอบ ~480px */
.rbt-banner-5.tlo-hero .inner.text-start .title {
    font-size: 3.4rem;
    line-height: 1.3;
    max-width: 52%;
    margin-bottom: 20px;
}
.rbt-banner-5.tlo-hero .inner.text-start .description {
    font-size: 18px;
    line-height: 1.7;
    max-width: 46%;
    margin-bottom: 28px;
}
@media (max-width: 1199px) {
    .rbt-banner-5.tlo-hero .inner.text-start .title { font-size: 2.6rem; max-width: 66%; }
    .rbt-banner-5.tlo-hero .inner.text-start .description { max-width: 62%; }
}
@media (max-width: 767px) {
    .rbt-banner-5.tlo-hero .inner.text-start .title { font-size: 1.9rem; max-width: 100%; }
    .rbt-banner-5.tlo-hero .inner.text-start .description { font-size: 15px; max-width: 100%; }
}

/* ===== News — recommend badge + gallery + attachments ===== */
/* การ์ดที่แนะนำ — เพิ่มเส้นบนสีเหลือง */
.news-card.is-recommend { box-shadow: 0 4px 18px rgba(245, 158, 11, .15); border: 1px solid #fde68a; }
.news-card.is-recommend:hover { box-shadow: 0 8px 28px rgba(245, 158, 11, .22); }
/* badge "แนะนำ" บน cover */
.news-recommend { position: absolute; top: 12px; right: 12px; display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 9999px; font-size: 11.5px; font-weight: 600; background: #f59e0b; color: #fff; box-shadow: 0 2px 8px rgba(245, 158, 11, .35); }
.news-recommend i { font-size: 11px; }
/* inline บน detail */
.news-recommend-inline { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 9999px; font-size: 12px; font-weight: 600; background: #fef3c7; color: #92400e; margin-left: 6px; vertical-align: middle; }
/* side panel — ข่าวอื่นที่เป็นแนะนำ */
.news-side-item.is-recommend { background: linear-gradient(90deg, #fffbeb 0%, #fff 100%); }

/* ===== Gallery ===== */
.news-section-h { font-size: 17px; font-weight: 600; color: #1f2937; margin: 28px 0 14px; display: flex; align-items: center; gap: 8px; padding-bottom: 8px; border-bottom: 1px solid #e6e9ee; }
.news-section-h i { color: #ea7b1e; }
.news-gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.news-gallery-item { display: block; aspect-ratio: 4/3; overflow: hidden; border-radius: 8px; border: 1px solid #e6e9ee; background: #f5f7fa; transition: transform .15s, box-shadow .15s; }
.news-gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.news-gallery-item:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0, 0, 0, .12); }

/* ===== File attachments ===== */
.news-file-list { list-style: none; padding: 0; margin: 0; }
.news-file-list li { margin-bottom: 6px; }
.news-file-row { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid #e6e9ee; border-radius: 8px; background: #fafbfc; color: #1f2937; text-decoration: none; transition: border-color .15s, background .15s; }
.news-file-row:hover { border-color: #ea7b1e; background: #fff7ed; color: #1f2937; text-decoration: none; }
.news-file-row > i:first-child { font-size: 22px; color: #ea7b1e; flex-shrink: 0; }
.news-file-row > i:last-child { font-size: 16px; color: #94a3b8; flex-shrink: 0; }
.news-file-name { flex: 1; font-size: 14px; word-break: break-word; }
.news-file-meta { display: flex; gap: 8px; align-items: center; font-size: 12px; }
.news-file-ext { padding: 2px 8px; border-radius: 4px; background: #1f2937; color: #fff; font-weight: 600; font-size: 10.5px; letter-spacing: .5px; }
.news-file-size { color: #6b7280; }

/* ===== News Gallery — hover zoom overlay + count badge ===== */
.news-gallery-count { font-size: 13px; font-weight: 400; color: #6b7280; margin-left: 6px; }
.news-gallery-item { position: relative; cursor: zoom-in; }
.news-gallery-item img { transition: transform .25s ease; }
.news-gallery-item:hover img { transform: scale(1.05); }
/* แสดง icon zoom ตอน hover */
.news-gallery-zoom { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(15, 23, 42, 0); color: #fff; font-size: 26px; opacity: 0; transition: opacity .2s, background .2s; pointer-events: none; }
.news-gallery-item:hover .news-gallery-zoom { opacity: 1; background: rgba(15, 23, 42, .35); }

/* Fancybox caption — โทนส้มอ่อนเข้ากับธีม */
.fancybox-caption { background: linear-gradient(to top, rgba(0,0,0,.85) 0%, rgba(0,0,0,.4) 60%, transparent 100%) !important; }
.fancybox-button { background: rgba(234, 123, 30, .9) !important; }
.fancybox-button:hover { background: #ea7b1e !important; }

/* ===== News List — skeleton + pagination ===== */
.news-skeleton-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.news-skeleton-card { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,.04); border: 1px solid #f1f1f1; }
.news-skeleton-cover { aspect-ratio: 16/10; background: linear-gradient(110deg, #f1f3f5 30%, #fafbfc 50%, #f1f3f5 70%); background-size: 200% 100%; animation: skeleton-shine 1.4s ease-in-out infinite; }
.news-skeleton-body { padding: 18px; }
.news-skeleton-line { height: 12px; border-radius: 4px; background: linear-gradient(110deg, #f1f3f5 30%, #fafbfc 50%, #f1f3f5 70%); background-size: 200% 100%; animation: skeleton-shine 1.4s ease-in-out infinite; margin-bottom: 10px; }
.news-skeleton-line.w-50 { width: 50%; }
.news-skeleton-line.w-90 { width: 90%; }
.news-skeleton-line.w-70 { width: 70%; }
@keyframes skeleton-shine { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* Pagination */
.news-pager { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px; margin: 30px 0 10px; }
.news-page-btn { min-width: 38px; height: 38px; padding: 0 12px; border: 1px solid #e6e9ee; background: #fff; color: #475569; border-radius: 8px; font-size: 14px; font-weight: 500; cursor: pointer; transition: background .15s, color .15s, border-color .15s; display: inline-flex; align-items: center; justify-content: center; }
.news-page-btn:hover:not(:disabled) { border-color: #ea7b1e; color: #ea7b1e; background: #fff7ed; }
.news-page-btn.is-current { background: #ea7b1e; border-color: #ea7b1e; color: #fff; }
.news-page-btn.is-current:hover { background: #c2410c; color: #fff; }
.news-page-btn:disabled { opacity: .35; cursor: not-allowed; }
.news-page-nav i { font-size: 16px; }
.news-page-ellipsis { color: #94a3b8; padding: 0 4px; user-select: none; }
.news-page-info { margin-left: 14px; color: #6b7280; font-size: 13px; }
@media (max-width: 540px) { .news-page-info { display: none; } }

/* ===== Download — recommend, link mode, skeleton ===== */
/* recommend */
.dl-item.is-recommend { border-color: #fde68a; box-shadow: 0 4px 14px rgba(245, 158, 11, .12); }
.dl-item.is-recommend:hover { box-shadow: 0 6px 22px rgba(245, 158, 11, .18); }
.dl-recommend { display: inline-flex; align-items: center; gap: 3px; padding: 2px 8px; border-radius: 9999px; font-size: 11px; font-weight: 600; background: #fef3c7; color: #92400e; margin-right: 6px; }
.dl-recommend i { font-size: 10px; }

/* file icon — link mode (สีฟ้า) */
.dl-fileic.is-link { background: linear-gradient(135deg, #dbeafe, #93c5fd); color: #1e40af; }

/* button — link mode (โทนน้ำเงิน — แยกจาก download โทนส้ม) */
.dl-btn.is-link { background: #2563eb; }
.dl-btn.is-link:hover { background: #1d4ed8; }

/* tag — generic style (เคยใช้ class dl-tag-<cat> แต่ตอนนี้ใช้ inline-style จาก JS) */
.dl-tag { display: inline-block; padding: 2px 10px; border-radius: 9999px; font-size: 11.5px; font-weight: 500; border: 1px solid transparent; }

/* skeleton list (matches news skeleton pattern) */
.dl-skeleton-list { display: flex; flex-direction: column; gap: 12px; }
.dl-skeleton-row { display: flex; align-items: center; gap: 14px; padding: 16px; background: #fff; border: 1px solid #f1f1f1; border-radius: 10px; }
.dl-skeleton-ic { width: 60px; height: 60px; border-radius: 8px; background: linear-gradient(110deg, #f1f3f5 30%, #fafbfc 50%, #f1f3f5 70%); background-size: 200% 100%; animation: skeleton-shine 1.4s ease-in-out infinite; flex-shrink: 0; }
.dl-skeleton-info { flex: 1; }
.dl-skeleton-btn { width: 110px; height: 38px; border-radius: 8px; background: linear-gradient(110deg, #f1f3f5 30%, #fafbfc 50%, #f1f3f5 70%); background-size: 200% 100%; animation: skeleton-shine 1.4s ease-in-out infinite; flex-shrink: 0; }

/* ===== Download — multi-select dropdown สำหรับ "กลุ่มบริการ" ===== */
.dl-ms { position: relative; display: inline-block; vertical-align: middle; }
.dl-ms-btn { display: inline-flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 220px; height: 38px; padding: 6px 14px; background: #fff; border: 1.5px solid #fed7aa; border-radius: 9999px; color: #475569; font-size: 14px; font-weight: 500; cursor: pointer; transition: border-color .15s, background .15s, color .15s; }
.dl-ms-btn:hover { border-color: #ea7b1e; color: #ea7b1e; }
.dl-ms-btn.is-active { background: #ea7b1e; border-color: #ea7b1e; color: #fff; }
.dl-ms-chev { font-size: 14px; transition: transform .15s; }
.dl-ms.is-open .dl-ms-chev { transform: rotate(180deg); }
.dl-ms-menu { position: absolute; top: calc(100% + 6px); left: 0; min-width: 280px; max-width: 360px; background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; box-shadow: 0 12px 28px rgba(0, 0, 0, .12); z-index: 50; display: none; }
.dl-ms.is-open .dl-ms-menu { display: block; }
.dl-ms-hd { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-bottom: 1px solid #f0f0f0; font-size: 12px; color: #6b7280; }
.dl-ms-clr { font-size: 12px; color: #ea7b1e; background: none; border: 0; cursor: pointer; padding: 0; font-weight: 600; }
.dl-ms-clr:hover { color: #c2410c; text-decoration: underline; }
.dl-ms-opts { padding: 6px; max-height: 320px; overflow-y: auto; }
.dl-ms-opt { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 6px; cursor: pointer; font-size: 14px; color: #1f2937; user-select: none; }
.dl-ms-opt:hover { background: #fff7ed; }
.dl-ms-opt input[type=checkbox] { margin: 0; cursor: pointer; width: 16px; height: 16px; accent-color: #ea7b1e; }
.dl-ms-opt.is-checked { background: #fff7ed; color: #c2410c; font-weight: 500; }
.dl-ms-opt.is-checked:hover { background: #fed7aa; }
