/* Theme entry: DARK
 * Phase 0 (transitional): re-exports legacy admin.css so behavior is unchanged.
 * Subsequent phases will replace these imports with shared/* + theme-dark/*.
 */
@import url("./admin/base.css?v=uifix-4");
@import url("./admin/components.css?v=wide-swal-full-1");
@import url("./admin/pages.css?v=bethistory-ui-1");
@import url("./admin/security-admins.css?v=feature-15");

/* Bank/Wallet/Autopeer logo size guards (from legacy admin.css) */
.truewallet-logo,
.home-balance-logo.truewallet-logo,
.acc-stat-wallet-logo,
.account-table-wallet-logo{
  width:34px!important;
  height:34px!important;
  min-width:34px!important;
  border-radius:7px!important;
  background:transparent!important;
  padding:0!important;
  border:0!important;
  box-shadow:none!important;
}
.truewallet-logo>img{
  width:100%!important;
  height:100%!important;
  max-width:100%!important;
  max-height:100%!important;
  object-fit:contain!important;
  border-radius:0!important;
}
.home-balance-logo.autopeer-logo{
  width:48px!important;
  height:48px!important;
  min-width:48px!important;
  border-radius:10px!important;
  background:rgba(255,255,255,.94)!important;
  padding:4px!important;
  border:0!important;
  box-shadow:0 4px 10px rgba(0,0,0,.18)!important;
}
.home-balance-logo.autopeer-logo>img,
.home-balance-logo.autopeer-logo img[src*="/admin/assets/autopeer-logo"]{
  width:100%!important;
  height:100%!important;
  min-width:0!important;
  max-width:100%!important;
  max-height:100%!important;
  object-fit:contain!important;
  border-radius:0!important;
  transform:none!important;
}
.users-bank-logo,
.acc-sum-logo,
img[src*="/assets/banks/"],
img[src*="/admin/assets/autopeer-logo"]{
  /* ขนาดเท่าโลโก้ TrueWallet (28px/มุม 7) เพื่อให้คอลัมน์ธนาคารดูเป็นชุดเดียวกัน */
  width:28px!important;
  height:28px!important;
  min-width:28px!important;
  object-fit:contain!important;
  background:transparent!important;
  padding:0!important;
  border:0!important;
  box-shadow:none!important;
}
img[src*="/assets/banks/"]{
  border-radius:7px!important;
}
img[src*="/admin/assets/autopeer-logo"]{
  width:44px!important;
  height:44px!important;
  min-width:44px!important;
  border-radius:8px!important;
}
.home-balance-logo img[src*="/admin/assets/autopeer-logo"]{
  width:34px!important;
  height:34px!important;
  min-width:34px!important;
  object-fit:contain!important;
}
.home-feed-icon img[src*="/admin/assets/autopeer-logo"],
.home-pending-logo img[src*="/admin/assets/autopeer-logo"],
.notify-icon img[src*="/admin/assets/autopeer-logo"]{
  width:100%!important;
  height:100%!important;
  min-width:0!important;
  object-fit:contain!important;
}
.notify-autopeer-logo{
  display:block;
  border-radius:8px!important;
}


/* wallet-mini-28 */
/* โลโก้ TrueWallet ขนาดเล็กในตาราง (สมาชิก/ประวัติ) ให้เท่าโลโก้ธนาคาร 28px
   ยกเว้นตัวที่ใช้ในการ์ดยอดเงินหน้าแรกและตารางบัญชี ซึ่งตั้งขนาดไว้เองอยู่แล้ว */
.truewallet-logo:not(.home-balance-logo):not(.acc-stat-wallet-logo):not(.account-table-wallet-logo){
  width:28px!important;
  height:28px!important;
  min-width:28px!important;
  border-radius:7px!important;
}


/* bank-col-align */
/* คอลัมน์ "ธนาคาร" ในตารางสมาชิก (คอลัมน์ที่ 4)
   แถวธนาคารเป็น <img> ส่วนแถววอเลทเป็น <span> ทำให้ตำแหน่งเยื้องกัน
   บังคับจัดกึ่งกลางทั้งหัวตารางและช่องข้อมูล จะได้ตรงกันทุกแถวและตรงกับหัวคอลัมน์ */
#usersTable table th:nth-child(4),
#usersTable table td:nth-child(4){
  text-align:center!important;
}
#usersTable table td:nth-child(4) > *{
  display:inline-flex!important;
  vertical-align:middle!important;
  margin:0 auto!important;
  float:none!important;
}
