/* =====================================================================
   V17 DATA TABLE — ตารางแบบกะทัดรัดสไตล์ระบบหลังบ้าน (ลบบล็อกนี้เพื่อย้อนกลับ)
   ===================================================================== */
#adminMainScroll .table-responsive,#adminMainScroll .bg-white.rounded-2xl:has(>table),#adminMainScroll .bg-white.rounded-2xl:has(>.table-responsive){border-radius:6px!important;box-shadow:none!important}
#adminMainScroll table.table{--rr-line:#e3e6ea;border-collapse:collapse!important;width:100%;font-size:13px;color:#222;margin:0}
#adminMainScroll table.table thead th{
  background:#fff!important;color:#111!important;font-size:12.5px!important;font-weight:600!important;letter-spacing:0!important;
  padding:7px 22px 7px 8px!important;border:0!important;border-bottom:2px solid #1f2937!important;white-space:nowrap;position:relative;
  text-align:left;user-select:none}
#adminMainScroll table.table thead th.text-right{text-align:right}
#adminMainScroll table.table thead th.rr-sortable{cursor:pointer}
#adminMainScroll table.table thead th.rr-sortable::after{content:"\2195";position:absolute;right:6px;top:50%;transform:translateY(-50%);font-size:11px;color:#c3c9d1;font-weight:400}
#adminMainScroll table.table thead th.rr-sortable:hover{background:#f4f7fa!important}
#adminMainScroll table.table thead th.rr-asc,#adminMainScroll table.table thead th.rr-desc{color:#0b5ed7!important}
#adminMainScroll table.table thead th.rr-asc::after{content:"\25B2";color:#0b5ed7}
#adminMainScroll table.table thead th.rr-desc::after{content:"\25BC";color:#0b5ed7}
#adminMainScroll table.table thead th.col-amt-h{color:#0aa2c0!important;text-align:right}
#adminMainScroll table.table tbody td{
  padding:6px 8px!important;border:0!important;border-bottom:1px solid var(--rr-line)!important;border-right:0!important;
  font-size:13px!important;line-height:1.35;vertical-align:middle;background:#fff}
#adminMainScroll table.table tbody tr:nth-child(even) td{background:#f8f9fa}
#adminMainScroll table.table tbody tr:hover td{background:#eef8fb!important}
#adminMainScroll table.table tbody td .small,#adminMainScroll table.table tbody td small{font-size:11.5px}
#adminMainScroll table.table tbody td.col-id{font-variant-numeric:tabular-nums;font-weight:500;white-space:nowrap}
#adminMainScroll table.table tbody td.col-dt{white-space:nowrap;font-variant-numeric:tabular-nums}
#adminMainScroll table.table tbody td.col-amt{text-align:right;font-weight:700;color:#0aa2c0;white-space:nowrap;font-variant-numeric:tabular-nums;padding-right:14px!important}
.printed-mark{color:#16a34a;font-weight:700;font-size:12px}
/* สถานะ: ตัวหนังสือสีล้วน แทนป้ายพื้นสี */
#adminMainScroll table.table .badge{background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important;font-size:13px!important;font-weight:500!important}
#adminMainScroll table.table .badge-dot{display:none!important}
#adminMainScroll table.table .badge-green{color:#16a34a!important}
#adminMainScroll table.table .badge-amber{color:#d97706!important}
#adminMainScroll table.table .badge-red{color:#dc2626!important}
#adminMainScroll table.table .badge-gray{color:#6b7280!important}
#adminMainScroll table.table .badge-teal,#adminMainScroll table.table .badge-gold{color:#0b7f75!important}
/* ปุ่มในตาราง: ลิงก์ตัวเล็ก */
#adminMainScroll table.table tbody td .btn{min-height:24px!important;padding:1px 9px!important;font-size:12px!important;border-radius:5px!important;box-shadow:none!important}
#adminMainScroll table.table tbody td img{max-height:26px}
/* DataTables */
#adminMainScroll table.dataTable thead th{padding-right:22px!important}
html[data-rr-mode="dark"] #adminMainScroll table.table{--rr-line:#26354f;color:#e8eef8}
html[data-rr-mode="dark"] #adminMainScroll table.table thead th{background:#111a2c!important;color:#e8eef8!important;border-bottom-color:#5b6b86!important}
html[data-rr-mode="dark"] #adminMainScroll table.table thead th.rr-sortable:hover{background:#16233a!important}
html[data-rr-mode="dark"] #adminMainScroll table.table tbody td{background:#111a2c!important;color:#e8eef8}
html[data-rr-mode="dark"] #adminMainScroll table.table tbody tr:nth-child(even) td{background:#0f1829!important}
html[data-rr-mode="dark"] #adminMainScroll table.table tbody tr:hover td{background:color-mix(in srgb,var(--rr-brand) 16%,#0f1829)!important}
html[data-rr-mode="dark"] #adminMainScroll table.table thead th.rr-asc,html[data-rr-mode="dark"] #adminMainScroll table.table thead th.rr-desc{color:#7db4ff!important}
