:root {
  color-scheme: dark;
  --bg: #101a2d;
  --bg-2: #16233a;
  --sidebar: #111d33;
  --sidebar-deep: #0c1628;
  --panel: #1f2d49;
  --panel-solid: #263653;
  --panel-2: #1a2741;
  --line: rgba(196, 215, 255, 0.11);
  --line-strong: rgba(214, 228, 255, 0.2);
  --text: #f6f8ff;
  --muted: #b9c5dc;
  --muted-2: #8795b0;
  --green: #38e39f;
  --teal: #3bd4dd;
  --pink: #ff6f8f;
  --amber: #d9a75c;
  --gold: #f0c878;
  --violet: #8f76ff;
  --shadow: 0 10px 24px rgba(1, 7, 20, 0.32);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at 70% -20%, rgba(47, 72, 125, 0.38), transparent 34%), #101a2d;
  color: var(--text);
  font-family: "Noto Sans Thai", system-ui, sans-serif;
  letter-spacing: 0;
}

.login-screen {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  padding: 0;
  background: #141c2f;
}

.login-panel {
  position: relative;
  min-height: 100vh;
  width: 100%;
  display: grid;
  align-items: center;
  padding: 0 70px;
  background: #28344c;
  border-left: 1px solid rgba(9, 15, 28, 0.3);
}

.login-visual {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(28px, 6vw, 86px);
  overflow: hidden;
}

.login-visual svg {
  display: none;
}

.login-visual::before {
  content: "";
  display: block;
  width: min(555px, 64vw);
  aspect-ratio: 760 / 450;
  background: url("./login-illustration.svg?v=20260731-2333") center / contain no-repeat;
  filter: drop-shadow(0 28px 38px rgba(2, 7, 20, 0.18));
  transform: translate(18px, 2px);
}

.login-form {
  display: grid;
  gap: 12px;
  width: 180px;
  margin: 0 auto;
  transform: translateY(6px);
}

.login-form label {
  display: grid;
  gap: 4px;
  color: #acb5c8;
  font-size: 8px;
  font-weight: 400;
  line-height: 1.15;
}

.login-form input {
  width: 100%;
  height: 22px;
  border: 1px solid rgba(64, 76, 109, 0.82);
  border-radius: 3px;
  background: #111a2d;
  color: #dfe6f7;
  outline: none;
  padding: 0 9px;
  font-size: 9px;
  font-weight: 400;
  box-shadow: inset 0 1px 2px rgba(1, 6, 18, 0.36);
}

.login-form input::placeholder {
  color: #6d778d;
}

.login-form input:focus {
  border-color: #6e62df;
  box-shadow: 0 0 0 1px rgba(110, 98, 223, 0.32), inset 0 1px 2px rgba(1, 6, 18, 0.36);
}

.password-field {
  position: relative;
  display: block;
}

.password-field input {
  padding-right: 28px;
}

.password-toggle {
  position: absolute;
  inset: 0 5px 0 auto;
  width: 20px;
  height: 22px;
  border: 0;
  background: transparent;
  color: #7e879a;
  display: grid;
  place-items: center;
  padding: 0;
  cursor: pointer;
}

.password-toggle:hover {
  transform: none;
  color: #c8d3ed;
}

.password-toggle svg {
  width: 11px;
  height: 11px;
}

.login-submit {
  height: 24px;
  border: 0;
  border-radius: 3px;
  background: #6657c9;
  color: #d9def1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 500;
  cursor: pointer;
}

.login-submit:hover {
  background: #7567dc;
}

.login-submit:disabled {
  cursor: wait;
  opacity: 0.7;
  transform: none;
}

.login-form svg {
  width: 11px;
  height: 11px;
}

#loginFeedback {
  display: none;
  min-height: 14px;
  margin: 0;
  color: #ff9aab;
  font-size: 9px;
  font-weight: 500;
}

#loginFeedback.show {
  display: block;
}

.login-cache {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  color: rgba(188, 198, 219, 0.24);
  font-size: 8px;
  font-weight: 400;
  white-space: nowrap;
}

@media (max-width: 860px) {
  .login-screen {
    grid-template-columns: 1fr;
    background: #28344c;
  }

  .login-visual {
    min-height: 45vh;
    padding: 34px 24px 10px;
  }

  .login-visual::before {
    width: min(520px, 92vw);
    max-height: 40vh;
    transform: none;
  }

  .login-panel {
    position: relative;
    min-height: 55vh;
    padding: 24px;
  }

  .login-form {
    width: min(260px, 100%);
    transform: none;
  }
}

button,
a {
  font: inherit;
}

button {
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

button:hover {
  transform: translateY(-1px);
}

.app-shell {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  background: linear-gradient(180deg, #122039 0%, #0b1527 100%);
  border-right: 1px solid rgba(190, 211, 255, 0.12);
  padding: 18px 13px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: rgba(154, 166, 190, 0.82) rgba(10, 18, 33, 0.62);
}

.sidebar::-webkit-scrollbar {
  width: 7px;
}

.sidebar::-webkit-scrollbar-track {
  background: rgba(10, 18, 33, 0.62);
  border-radius: 999px;
}

.sidebar::-webkit-scrollbar-thumb {
  min-height: 58px;
  border: 2px solid rgba(10, 18, 33, 0.62);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(186, 195, 215, 0.9), rgba(116, 129, 158, 0.9));
}

.sidebar::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(214, 222, 238, 0.95), rgba(143, 156, 185, 0.95));
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 38px;
  margin-bottom: 22px;
  padding: 0 4px 0 2px;
}

.brand-mark {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: linear-gradient(135deg, #2d66dd 0%, #735df4 100%);
  border: 1px solid rgba(213, 190, 116, 0.42);
  box-shadow: 0 0 18px rgba(115, 93, 244, 0.24), inset 0 1px 0 rgba(255, 224, 153, 0.18);
}

.brand-mark svg {
  width: 16px;
  height: 16px;
  color: #d9e5ff;
}

.brand strong {
  display: block;
  color: #d8c48a;
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
}

.brand span {
  display: block;
  color: #8998b4;
  font-size: 10px;
  font-weight: 800;
  margin-top: 2px;
}

.brand-target {
  width: 17px;
  height: 17px;
  color: #d5bd78;
  margin-left: auto;
  opacity: 0.9;
}

.nav {
  display: grid;
  gap: 5px;
}

.nav-block {
  display: grid;
  gap: 3px;
}

.nav-label {
  color: #7f8da8;
  font-size: 11px;
  font-weight: 700;
  margin: 18px 10px 6px;
}

.nav-item {
  color: #dfe8f8;
  min-height: 36px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  padding: 0 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid transparent;
}

.nav-item svg,
.nav-subitem svg,
button svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}

.nav-item span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-item:hover {
  background: rgba(93, 120, 183, 0.14);
  border-color: var(--line);
}

.nav-item.active {
  color: #ffffff;
  background: linear-gradient(90deg, #7357f0 0%, #6350df 55%, #4f44be 100%);
  border-color: rgba(209, 190, 255, 0.55);
  box-shadow: 0 12px 28px rgba(71, 59, 194, 0.36), inset 0 1px 0 rgba(255, 232, 171, 0.16);
  font-weight: 800;
}

.nav-block.has-children.open > .nav-item.active {
  background: #141f37;
  border-color: rgba(127, 149, 190, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 8px 18px rgba(0, 0, 0, 0.12);
}

.nav-chevron {
  margin-left: auto;
  width: 15px;
  height: 15px;
  color: #9aa8c1;
  transition: transform 160ms ease;
}

.nav-block.open > a .nav-chevron {
  transform: rotate(180deg);
}

.nav-sublist {
  display: none;
  gap: 3px;
  padding: 8px 0 7px 22px;
}

.nav-block.open > .nav-sublist {
  display: grid;
}

.nav-subitem {
  min-height: 34px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: #d9e3f4;
  text-decoration: none;
  border-radius: 5px;
  padding: 0 10px 0 7px;
  font-size: 13px;
  font-weight: 800;
  border: 1px solid transparent;
}

.nav-subitem span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-subitem.nested {
  min-height: 32px;
  padding-left: 7px;
  font-size: 12px;
  color: #cbd7ea;
}

.nav-sublist .nav-sublist {
  padding: 2px 0 4px 22px;
}

.nav-subitem:hover,
.nav-subitem.active {
  background: rgba(99, 128, 196, 0.13);
  border-color: rgba(196, 215, 255, 0.12);
}

.nav-subitem.active {
  color: #ffffff;
  background: linear-gradient(90deg, #7d5cf7 0%, #6c50e8 56%, #5b47ce 100%);
  border-color: rgba(216, 204, 255, 0.48);
  box-shadow: 0 9px 20px rgba(98, 72, 224, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  font-weight: 600;
}

.nav-subitem svg {
  width: 14px;
  height: 14px;
  color: #d7e3f7;
  opacity: 0.9;
}

.nav-subitem.active svg {
  color: #ffffff;
  opacity: 1;
}

.sidebar-card {
  display: none;
  margin-top: 22px;
  padding: 14px;
  border-radius: 8px;
  background: rgba(33, 223, 154, 0.07);
  border: 1px solid rgba(33, 223, 154, 0.18);
}

.sidebar-card span,
.sidebar-card small {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

.sidebar-card strong {
  display: block;
  margin: 5px 0 3px;
  color: var(--green);
  font-size: 18px;
}

.main {
  min-width: 0;
  padding: 9px 18px 20px;
}

/* Release 20260731-2337: remove the crowded global header area from the admin shell. */
.topbar,
.notice {
  display: none;
}

.main > #view {
  padding-top: 3px;
}

.topbar {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.top-actions,
.profile,
.notice,
.panel-head {
  display: flex;
  align-items: center;
}

.top-actions {
  gap: 7px;
}

.time-pill {
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #efc678;
  background: rgba(70, 53, 32, 0.68);
  border: 1px solid rgba(217, 167, 92, 0.42);
  border-radius: 6px;
  padding: 0 9px;
  font-size: 10px;
  font-weight: 700;
}

.time-pill svg {
  width: 13px;
  height: 13px;
  flex: 0 0 13px;
}

.ghost-button,
.danger-button,
.icon-button,
.notice button,
.panel-head button {
  border: 1px solid var(--line);
  color: #edf3ff;
  background: var(--panel-solid);
  border-radius: 5px;
  min-height: 25px;
  padding: 0 9px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  white-space: nowrap;
}

.ghost-button {
  border-color: rgba(150, 137, 244, 0.34);
  color: #ded8ff;
}

.danger-button {
  border-color: rgba(255, 111, 143, 0.34);
  color: #ffadbf;
}

.icon-button {
  width: 28px;
  justify-content: center;
  padding: 0;
}

.profile {
  gap: 8px;
  color: #ffffff;
  font-size: 11px;
  text-align: right;
  line-height: 1.05;
}

.profile small {
  color: var(--muted);
}

.profile img {
  width: 31px;
  height: 31px;
  border-radius: 7px;
  object-fit: cover;
  border: 1px solid var(--line-strong);
}

.notice {
  position: relative;
  gap: 8px;
  min-height: 32px;
  margin: 10px 0;
  background: linear-gradient(90deg, rgba(85, 60, 35, 0.86), rgba(72, 50, 35, 0.76));
  border: 1px solid rgba(217, 167, 92, 0.42);
  border-radius: 4px;
  color: #f8d99a;
  padding: 5px 34px 5px 10px;
  font-size: 11px;
}

.notice > svg {
  width: 16px;
  height: 16px;
  color: #f0c878;
}

.notice span {
  min-width: 0;
}

.notice button {
  margin-left: auto;
  background: linear-gradient(180deg, #43e5a3, #31c98b);
  color: #061b13;
  border-color: rgba(85, 239, 172, 0.58);
  font-weight: 800;
  min-width: 102px;
  min-height: 22px;
  font-size: 10px;
}

.notice-close {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.55;
}

.view-head {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 4px 0 14px;
}

.view-head p {
  margin: 0 0 4px;
  color: #8795b0;
  font-size: 11px;
  font-weight: 800;
}

.view-head h1 {
  margin: 0;
  color: #f6f8ff;
  font-size: 18px;
  line-height: 1.1;
}

.view-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.view-actions button,
.toolbar button,
.setting-card button,
.success-button,
.primary-button,
.secondary-button {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 5px;
  border: 1px solid var(--line);
  background: #263653;
  color: #edf3ff;
  padding: 0 12px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.view-actions svg,
.toolbar svg,
.success-button svg {
  width: 15px;
  height: 15px;
}

.metrics {
  display: grid;
  gap: 18px;
}

.primary-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.metric-card,
.compact-metrics article,
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.metric-card,
.compact-metrics article {
  background: linear-gradient(180deg, #243451 0%, #1f2d49 100%);
}

.metric-card {
  border-radius: 5px;
  min-height: 104px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 9px;
  padding: 16px;
  position: relative;
  overflow: hidden;
}

.metric-card strong {
  font-size: clamp(20px, 1.75vw, 24px);
  line-height: 1;
}

.metric-card small,
.compact-metrics small {
  color: var(--muted);
  font-size: 11px;
}

.coin {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.green { background: rgba(56, 227, 159, 0.16); color: var(--green); }
.red { background: rgba(255, 111, 143, 0.15); color: var(--pink); }
.amber { background: rgba(240, 200, 120, 0.18); color: var(--gold); }
.purple { background: rgba(143, 118, 255, 0.17); color: var(--violet); }

.compact-metrics {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  margin-top: 18px;
}

.compact-metrics article {
  grid-column: span 3;
  border-radius: 5px;
  min-height: 61px;
  padding: 12px 48px 12px 14px;
  position: relative;
}

.compact-metrics article.third-row {
  grid-column: span 4;
}

.compact-metrics strong {
  display: block;
  font-size: 18px;
  line-height: 1;
}

.compact-metrics svg {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  color: var(--green);
  opacity: 0.78;
}

.split b {
  color: var(--green);
}

.split span {
  color: #f4f8ff;
}

.split em {
  color: var(--pink);
  font-style: normal;
}

.work-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 18px;
}

.panel {
  border-radius: 5px;
  overflow: hidden;
  min-height: 280px;
}

.panel-head {
  justify-content: space-between;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(61, 80, 122, 0.42), rgba(31, 45, 73, 0.6));
}

.panel h2 {
  margin: 0;
  font-size: 14px;
}

.panel-head button {
  min-height: 26px;
  color: #aef9de;
  border-color: rgba(56, 227, 159, 0.34);
  font-size: 10px;
}

.panel-head button.pink {
  color: #ffb8c8;
  border-color: rgba(255, 111, 143, 0.34);
}

.rows {
  display: grid;
}

.row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  min-height: 70px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(205, 222, 255, 0.075);
}

.row:hover {
  background: rgba(95, 121, 184, 0.075);
}

.person {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.badge {
  width: fit-content;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 800;
}

.badge.ok {
  background: rgba(56, 227, 159, 0.18);
  color: var(--green);
}

.badge.warn {
  background: rgba(255, 111, 143, 0.17);
  color: #ffb8c8;
}

.name {
  font-size: 12px;
  font-weight: 800;
  color: #f4f8ff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ref,
.time {
  font-size: 11px;
  color: #a2b7d1;
}

.amount {
  text-align: right;
  display: grid;
  align-content: center;
  gap: 3px;
  color: var(--muted);
  font-size: 11px;
}

.amount strong {
  color: var(--green);
  font-size: 12px;
}

.amount.negative strong {
  color: var(--pink);
}

.form-panel,
.data-panel,
.toolbar,
.setting-card {
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.form-panel {
  border-radius: 5px;
  padding: 22px 20px 20px;
}

.form-row,
.permission-layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}

.form-row label,
.permission-layout > label {
  color: #bac7dc;
  text-align: right;
  font-size: 12px;
  font-weight: 800;
}

.form-row label span {
  color: #ff6f8f;
}

.form-row input,
.search-box input {
  width: 100%;
  min-height: 34px;
  border: 1px solid rgba(196, 215, 255, 0.08);
  border-radius: 4px;
  background: #17243b;
  color: #f6f8ff;
  padding: 0 12px;
  outline: none;
  font: inherit;
  font-size: 12px;
}

.form-row input:focus,
.search-box input:focus {
  border-color: rgba(143, 118, 255, 0.54);
}

.success-button {
  width: fit-content;
  min-height: 27px;
  color: #052017;
  background: linear-gradient(180deg, #43e5a3, #2bc482);
  border-color: rgba(76, 236, 170, 0.6);
}

.permission-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 10px 26px;
}

.check-item {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  color: #d7e2f4;
  font-size: 12px;
  font-weight: 700;
}

.check-item input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.check-item span {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  display: grid;
  place-items: center;
  background: #33435f;
  border: 1px solid rgba(196, 215, 255, 0.16);
  color: transparent;
  flex: 0 0 16px;
}

.check-item.checked span {
  background: linear-gradient(180deg, #45dfa1, #26b979);
  border-color: rgba(80, 235, 170, 0.7);
  color: #052017;
}

.check-item svg {
  width: 12px;
  height: 12px;
}

.form-actions {
  display: flex;
  gap: 10px;
  padding-left: 226px;
  margin-top: 16px;
}

.primary-button {
  min-width: 78px;
  background: linear-gradient(180deg, #866fff, #6550dd);
  border-color: rgba(197, 183, 255, 0.48);
}

.secondary-button {
  min-width: 78px;
  color: #c8d5eb;
  background: #1d2a43;
}

.toolbar {
  min-height: 52px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  margin-bottom: 14px;
}

.search-box {
  flex: 1 1 240px;
  position: relative;
}

.search-box svg {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  color: #8292ad;
}

.search-box input {
  padding-left: 34px;
}

.data-panel {
  border-radius: 5px;
  overflow: hidden;
}

.data-table {
  min-width: 760px;
}

.table-head,
.table-row {
  display: grid;
  grid-template-columns: 1.1fr 1.1fr 1.2fr 1fr 0.9fr;
  gap: 10px;
  align-items: center;
  padding: 11px 14px;
}

.table-head {
  color: #8d9db7;
  background: rgba(12, 22, 40, 0.34);
  font-size: 11px;
  font-weight: 800;
}

.table-row {
  min-height: 54px;
  border-top: 1px solid rgba(205, 222, 255, 0.075);
  color: #dbe5f6;
  font-size: 12px;
  font-weight: 700;
}

.table-row:hover {
  background: rgba(95, 121, 184, 0.075);
}

.status-cell {
  width: fit-content;
  padding: 3px 9px;
  border-radius: 999px;
  color: #53e7a9;
  background: rgba(56, 227, 159, 0.12);
}

.report-page {
  display: grid;
  gap: 16px;
}

.report-head {
  min-height: 56px;
  padding: 6px 0 8px;
}

.report-filter,
.report-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.report-filter {
  min-height: 76px;
  display: flex;
  align-items: end;
  gap: 24px;
  padding: 14px 18px;
}

.report-filter label {
  flex: 0 1 244px;
  display: grid;
  gap: 8px;
}

.report-filter span {
  color: #aab8d0;
  font-size: 11px;
  font-weight: 800;
}

.report-filter input {
  width: 100%;
  min-height: 32px;
  border: 1px solid rgba(196, 215, 255, 0.08);
  border-radius: 4px;
  background: #111c31;
  color: #dfe8f8;
  padding: 0 12px;
  outline: none;
  font: inherit;
  font-size: 12px;
}

.report-filter select {
  width: 100%;
  min-height: 32px;
  border: 1px solid rgba(196, 215, 255, 0.08);
  border-radius: 4px;
  background: #111c31;
  color: #dfe8f8;
  padding: 0 12px;
  outline: none;
  font: inherit;
  font-size: 12px;
}

.personal-report-filter {
  display: grid;
  grid-template-columns: 1.15fr auto 1.05fr 1.05fr auto 1.15fr 1.15fr 1.65fr auto;
  align-items: end;
  gap: 12px 24px;
}

.personal-report-filter label {
  flex: none;
  min-width: 0;
}

.no-deposit-filter {
  display: grid;
  grid-template-columns: 1.25fr auto 1.05fr 0.8fr 1.05fr 0.8fr auto;
  align-items: end;
  gap: 12px 24px;
}

.no-deposit-filter label {
  flex: none;
  min-width: 0;
}

.report-load {
  min-width: 98px;
}

.money-filter {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px;
  overflow: hidden;
  border-radius: 4px;
  background: #111c31;
  border: 1px solid rgba(196, 215, 255, 0.08);
}

.money-filter input {
  border: 0;
  border-radius: 0;
}

.money-filter em {
  min-height: 32px;
  display: grid;
  place-items: center;
  color: #c8d3e7;
  border-left: 1px solid rgba(196, 215, 255, 0.08);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.clear-filter {
  min-width: 124px;
}

.report-search {
  min-width: 112px;
  background: linear-gradient(180deg, #8d72ff, #6c58ea);
  border-color: rgba(197, 183, 255, 0.5);
}

.report-panel {
  border-radius: 5px;
  overflow: hidden;
}

.source-report-panel {
  width: min(820px, 100%);
}

.no-deposit-panel {
  width: min(860px, 100%);
}

.report-panel-head {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 18px;
}

.stacked-panel-head {
  align-items: stretch;
  flex-direction: column;
}

.inline-report-filter {
  display: grid;
  grid-template-columns: 170px 170px minmax(280px, 1fr) auto;
  align-items: end;
  gap: 14px 24px;
  margin-top: 12px;
}

.inline-report-filter label {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.inline-report-filter span {
  color: #aab8d0;
  font-size: 11px;
  font-weight: 800;
}

.inline-report-filter input {
  width: 100%;
  min-height: 32px;
  border: 1px solid rgba(196, 215, 255, 0.08);
  border-radius: 4px;
  background: #111c31;
  color: #dfe8f8;
  padding: 0 12px;
  outline: none;
  font: inherit;
  font-size: 12px;
}

.report-panel-head h2 {
  margin: 0;
  color: #f4f8ff;
  font-size: 13px;
  font-weight: 800;
}

.report-panel-head small {
  color: #c4d0e4;
  font-size: 12px;
  font-weight: 800;
}

.report-panel-head b,
.money-value {
  color: var(--green);
}

.report-panel-head em,
.danger-value {
  color: var(--pink);
  font-style: normal;
}

.page-size {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #c0cce2;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.report-table-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  min-width: 0;
}

.table-inline-search {
  width: min(300px, 34vw);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px;
  overflow: hidden;
  border: 1px solid rgba(196, 215, 255, 0.08);
  border-radius: 4px;
  background: #111c31;
}

.table-inline-search input {
  min-width: 0;
  min-height: 30px;
  border: 0;
  background: transparent;
  color: #dfe8f8;
  padding: 0 12px;
  outline: none;
  font: inherit;
  font-size: 11px;
}

.table-inline-search button {
  display: grid;
  place-items: center;
  border: 0;
  border-left: 1px solid rgba(196, 215, 255, 0.08);
  background: #17243b;
  color: #dfe8f8;
  cursor: pointer;
}

.table-inline-search svg {
  width: 13px;
  height: 13px;
}

.page-size button {
  min-width: 52px;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 1px solid rgba(196, 215, 255, 0.08);
  border-radius: 4px;
  background: #17243b;
  color: #dfe8f8;
  font-size: 11px;
  font-weight: 800;
}

.page-size svg {
  width: 12px;
  height: 12px;
}

.report-table {
  min-width: 860px;
  padding: 0 18px 18px;
}

.report-row {
  display: grid;
  align-items: center;
  gap: 14px;
  min-height: 54px;
  border-top: 1px solid rgba(205, 222, 255, 0.075);
  color: #dbe5f6;
  font-size: 12px;
  font-weight: 700;
}

.promotion-summary-table .report-row {
  grid-template-columns: 1.65fr 0.8fr 1fr 1fr;
}

.promotion-claim-table .report-row {
  grid-template-columns: 1.35fr 1.6fr 0.9fr 1fr 1.35fr;
}

.cashback-table .report-row {
  grid-template-columns: 1.35fr 1fr 1.35fr;
}

.referral-table .report-row {
  grid-template-columns: 1.5fr 1.25fr 0.9fr 1.4fr;
}

.free-credit-summary-table .report-row {
  grid-template-columns: 1.55fr 0.95fr 1.1fr;
}

.free-credit-claim-table .report-row {
  grid-template-columns: 1.3fr 1.5fr 0.85fr 1.35fr;
}

.lucky-wheel-table .report-row {
  grid-template-columns: 1.35fr 1fr 1.35fr;
}

.accumulate-table .report-row {
  grid-template-columns: 1.35fr 1fr 1.35fr;
}

.bonus-summary-table .report-row {
  grid-template-columns: 1.25fr 1fr 1fr;
}

.bonus-summary-claim-table .report-row {
  grid-template-columns: 1.3fr 1.5fr 0.85fr 1.35fr;
}

.personal-deposit-withdraw-table .report-row {
  grid-template-columns: 1.35fr 1.25fr 1.25fr 1.25fr;
}

.bank-admin-slip-table .report-row {
  grid-template-columns: 1fr 1.15fr 1.15fr 1.2fr 0.85fr 1.15fr 1.15fr;
}

.manual-adjust-table .report-row {
  grid-template-columns: 1fr 1.4fr 1.35fr 1fr 1.2fr;
}

.account-transfer-table .report-row {
  grid-template-columns: 1fr 1.7fr 1.25fr 1.25fr;
}

.bank-ledger-panel {
  padding: 14px 16px 18px;
}

.bank-ledger-tabs {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 32px;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(205, 222, 255, 0.08);
}

.bank-ledger-tab {
  position: relative;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 0;
  background: transparent;
  color: #c4d0e4;
  padding: 0 2px 9px;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

.bank-ledger-tab .bank-logo {
  width: 18px;
  height: 18px;
  border-radius: 4px;
}

.bank-ledger-tab .bank-logo::before {
  width: 9px;
  height: 9px;
}

.bank-ledger-tab.active {
  color: #f4f8ff;
}

.bank-ledger-tab.active::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  border-radius: 999px;
  background: #a74cff;
  box-shadow: 0 0 12px rgba(167, 76, 255, 0.6);
}

.bank-ledger-subhead {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 398px;
  align-items: end;
  gap: 22px;
  margin-bottom: 10px;
}

.bank-ledger-account {
  display: flex;
  align-items: end;
  justify-content: flex-start;
  gap: 12px;
  min-width: 0;
}

.bank-ledger-account h2 {
  margin: 0 0 4px;
  color: #f4f8ff;
  font-size: 14px;
  font-weight: 900;
}

.bank-ledger-account p {
  margin: 0;
  color: #aebbd2;
  font-size: 11px;
  font-weight: 800;
}

.bank-ledger-account p b,
.bank-ledger-account strong {
  color: #24e391;
}

.bank-ledger-toolbar {
  display: grid;
  grid-template-columns: 126px minmax(0, 1fr) 38px;
  align-items: end;
  gap: 8px;
  margin-left: auto;
  width: 100%;
}

.bank-ledger-toolbar label {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.bank-ledger-toolbar span {
  color: #aab8d0;
  font-size: 10px;
  font-weight: 800;
}

.bank-ledger-toolbar input {
  width: 100%;
  min-height: 28px;
  border: 1px solid rgba(196, 215, 255, 0.08);
  border-radius: 4px;
  background: #111c31;
  color: #dfe8f8;
  padding: 0 9px;
  outline: none;
  font: inherit;
  font-size: 10.5px;
}

.bank-ledger-toolbar .report-search {
  min-width: 38px;
  min-height: 28px;
  padding: 0;
}

.bank-ledger-toolbar .report-search svg {
  width: 13px;
  height: 13px;
}

.bank-ledger-table {
  min-width: 1120px;
  padding: 0;
}

.bank-ledger-table .report-row {
  grid-template-columns: 52px 1.1fr 1.65fr 1fr minmax(360px, 2.35fr);
  min-height: 42px;
  gap: 12px;
  padding: 0 12px;
  font-size: 10.5px;
}

.bank-ledger-table .report-table-head {
  min-height: 32px;
  background: #314364;
  color: #aebbd2;
  font-size: 10px;
}

.bank-ledger-table .report-row span:nth-child(4) {
  text-align: left;
}

.ledger-note {
  overflow: hidden;
  color: #c1cce2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.report-tab-label {
  margin-left: 18px;
  color: #aebbd2;
  font-size: 11px;
  font-weight: 800;
}

.deposits-panel {
  padding: 16px;
}

.deposit-panel-title {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.deposit-panel-title h2 {
  margin: 0;
  color: #f4f8ff;
  font-size: 13px;
  font-weight: 900;
}

.deposit-history-button {
  min-height: 23px;
  border-radius: 4px;
  padding: 0 12px;
  color: #ffe5eb;
  font-size: 10.5px;
  font-weight: 900;
}

.deposit-filter-grid {
  display: grid;
  grid-template-columns: 1.05fr 1.05fr 1fr minmax(220px, 1fr) 74px;
  gap: 10px 16px;
  align-items: end;
  margin-bottom: 10px;
}

.deposit-filter-grid label {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.deposit-filter-grid span {
  color: #aab8d0;
  font-size: 10px;
  font-weight: 800;
}

.deposit-filter-grid input,
.deposit-filter-grid select {
  width: 100%;
  min-height: 29px;
  border: 1px solid rgba(196, 215, 255, 0.08);
  border-radius: 4px;
  background: #111c31;
  color: #dfe8f8;
  padding: 0 10px;
  outline: none;
  font: inherit;
  font-size: 10.5px;
}

.deposit-filter-grid .report-search {
  min-height: 29px;
  padding: 0 12px;
  font-size: 10.5px;
}

.deposits-table {
  min-width: 1220px;
  padding: 0;
}

.deposits-table .report-row {
  grid-template-columns: 22px 34px 140px 80px 140px minmax(190px, 1fr) 44px 58px 106px 58px 82px 188px;
  min-height: 58px;
  gap: 5px;
  padding: 0 8px;
  font-size: 9.5px;
}

.deposits-table .report-table-head {
  min-height: 32px;
  background: #314364;
  color: #aebbd2;
  font-size: 9.5px;
}

.deposits-table .report-row span:nth-child(8) {
  text-align: left;
}

.table-check {
  width: 13px;
  height: 13px;
  accent-color: #7357f0;
}

.deposit-type-cell {
  color: #cdd8eb;
  font-weight: 800;
}

.deposit-detail {
  overflow: hidden;
  color: #ff6f8f;
  font-size: 8.5px;
  font-weight: 900;
  line-height: 1.3;
  text-overflow: ellipsis;
}

.deposit-note {
  min-width: 0;
  overflow: hidden;
  color: #c1cce2;
  display: -webkit-box;
  line-height: 1.3;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.deposit-actions {
  display: grid;
  grid-template-columns: 88px 92px;
  align-items: center;
  justify-content: start;
  gap: 4px;
}

.deposit-action {
  min-height: 21px;
  border: 0;
  border-radius: 4px;
  padding: 0 7px;
  color: #ffffff;
  font-size: 9px;
  font-weight: 900;
  cursor: pointer;
  line-height: 1;
  white-space: nowrap;
}

.deposit-action.orange {
  background: linear-gradient(180deg, #f6a53e, #db7a1f);
}

.deposit-action.green {
  background: linear-gradient(180deg, #33dd87, #1cbb6a);
}

.deposit-action.dark {
  background: linear-gradient(180deg, #202c42, #121d31);
  border: 1px solid rgba(196, 215, 255, 0.12);
}

.deposit-action.red {
  background: linear-gradient(180deg, #ff6f8f, #d94162);
}

.users-page {
  display: grid;
  gap: 12px;
}

.users-head {
  align-items: end;
  margin-bottom: 0;
}

.users-head h1 {
  display: inline-block;
  margin-right: 18px;
}

.subtab {
  color: #9aa8c1;
  font-size: 12px;
  font-weight: 800;
}

.users-panel {
  position: relative;
  min-height: 520px;
}

.users-panel-head {
  min-height: 58px;
  align-items: start;
}

.users-add-button {
  min-height: 30px;
  padding: 0 13px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 900;
}

.users-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 0 18px 10px;
}

.page-size select {
  min-width: 48px;
  height: 28px;
  border: 1px solid rgba(196, 215, 255, 0.08);
  border-radius: 4px;
  background: #111c31;
  color: #dfe8f8;
  padding: 0 8px;
  font-size: 11px;
  font-weight: 800;
  outline: none;
}

.users-search {
  width: 245px;
}

.users-table {
  min-width: 1030px;
}

.users-table .report-row {
  grid-template-columns: 0.55fr 1.2fr 1.05fr 1.45fr 1.05fr 0.8fr 0.85fr;
  min-height: 38px;
  gap: 16px;
}

.users-table .report-table-head {
  min-height: 32px;
}

.users-table .report-table-head span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.users-table .report-table-head span::after {
  content: "↕";
  color: #62708b;
  font-size: 10px;
}

.user-role-cell {
  color: #7368ee;
  font-weight: 900;
}

.twofa-status {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  font-size: 11px;
  font-weight: 900;
}

.twofa-status.success {
  color: #22d18c;
}

.twofa-status.danger {
  color: #ff607e;
}

.user-toggle {
  width: 34px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: rgba(89, 102, 128, 0.55);
  color: #ffffff;
  cursor: pointer;
}

.user-toggle.on {
  background: linear-gradient(90deg, #25d285 0%, #21c777 100%);
}

.user-toggle svg {
  width: 12px;
  height: 12px;
}

.user-edit-button {
  min-width: 56px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 0;
  border-radius: 4px;
  background: #f59a32;
  color: #ffffff;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

.user-edit-button svg {
  width: 12px;
  height: 12px;
}

.users-pagination {
  position: absolute;
  right: 18px;
  bottom: 24px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.users-pagination button {
  min-width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #8c99b3;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

.users-pagination button.active {
  color: #ffffff;
  background: linear-gradient(135deg, #7e61ff, #674fe3);
  box-shadow: 0 7px 16px rgba(96, 72, 224, 0.32);
}

.users-pagination svg {
  width: 13px;
  height: 13px;
}

.withdrawals-panel {
  padding: 16px;
}

.withdrawal-panel-title {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.withdrawal-panel-title h2 {
  margin: 0;
  color: #f4f8ff;
  font-size: 13px;
  font-weight: 900;
}

.withdrawal-history-button {
  min-height: 23px;
  border-radius: 4px;
  padding: 0 12px;
  color: #ffe5eb;
  font-size: 10.5px;
  font-weight: 900;
}

.withdrawal-filter-grid {
  display: grid;
  grid-template-columns: 1.05fr 1.05fr 1fr minmax(220px, 1fr) 74px;
  gap: 10px 16px;
  align-items: end;
  margin-bottom: 10px;
}

.withdrawal-filter-grid label {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.withdrawal-filter-grid span {
  color: #aab8d0;
  font-size: 10px;
  font-weight: 800;
}

.withdrawal-filter-grid input,
.withdrawal-filter-grid select {
  width: 100%;
  min-height: 29px;
  border: 1px solid rgba(196, 215, 255, 0.08);
  border-radius: 4px;
  background: #111c31;
  color: #dfe8f8;
  padding: 0 10px;
  outline: none;
  font: inherit;
  font-size: 10.5px;
}

.withdrawal-filter-grid .report-search {
  min-height: 29px;
  padding: 0 12px;
  font-size: 10.5px;
}

.withdrawals-table {
  min-width: 1080px;
  padding: 0;
}

.withdrawals-table .report-row {
  grid-template-columns: 22px 42px 190px 150px 96px 150px 98px 230px;
  min-height: 54px;
  gap: 8px;
  padding: 0 10px;
  font-size: 10.5px;
}

.withdrawals-table .report-table-head {
  min-height: 32px;
  background: #314364;
  color: #aebbd2;
  font-size: 9.5px;
}

.withdrawal-bank-cell {
  display: grid;
  gap: 2px;
}

.withdrawal-bank-cell small {
  color: #94a3bd;
}

.withdrawal-actions {
  display: grid;
  grid-template-columns: 82px 96px;
  gap: 4px;
}

.withdrawal-action {
  min-height: 21px;
  border: 0;
  border-radius: 4px;
  padding: 0 7px;
  color: #ffffff;
  font-size: 9px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
}

.withdrawal-action.green {
  background: linear-gradient(180deg, #33dd87, #1cbb6a);
}

.withdrawal-action.orange {
  background: linear-gradient(180deg, #f6a53e, #db7a1f);
}

.withdrawal-action.dark {
  background: linear-gradient(180deg, #202c42, #121d31);
  border: 1px solid rgba(196, 215, 255, 0.12);
}

.withdrawal-action.red {
  background: linear-gradient(180deg, #ff6f8f, #d94162);
}

.withdrawal-overview-page {
  padding-top: 8px;
}

.withdrawal-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.withdrawal-tab {
  min-height: 32px;
  border-radius: 5px;
  background: rgba(31, 45, 73, 0.82);
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

.withdrawal-tab.green {
  color: #47e59d;
  border: 1px solid rgba(63, 229, 157, 0.55);
}

.withdrawal-tab.red {
  color: #ff6f8f;
  border: 1px solid rgba(255, 111, 143, 0.55);
}

.withdrawal-tab.gold {
  color: #f0c878;
  border: 1px solid rgba(240, 200, 120, 0.55);
}

.withdrawal-tab.purple {
  color: #b6a8ff;
  border: 1px solid rgba(150, 137, 244, 0.6);
}

.withdrawal-overview-grid {
  display: grid;
  grid-template-columns: minmax(520px, 2.05fr) minmax(250px, 1fr) minmax(250px, 1fr);
  gap: 16px;
  align-items: start;
}

.withdrawal-main-panel,
.withdrawal-account-card,
.withdrawal-small-panel {
  background: #243451;
  border: 1px solid rgba(196, 215, 255, 0.08);
  border-radius: 5px;
  box-shadow: var(--shadow);
}

.withdrawal-main-panel {
  min-height: 394px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.withdrawal-main-panel h2,
.withdrawal-small-panel h3,
.withdrawal-account-card h3 {
  margin: 0;
  color: #f2f6ff;
  font-size: 12px;
  font-weight: 900;
}

.withdrawal-account-card h3 {
  max-width: 100%;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.withdrawal-main-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.withdrawal-main-panel .withdrawal-pill {
  min-height: 22px;
}

.withdrawal-pill.red {
  background: linear-gradient(90deg, #ff596b, #f05359);
}

.withdrawal-warning {
  margin: 0;
  color: #ff6f8f;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.45;
}

.withdrawal-outline-red {
  width: max-content;
  min-height: 22px;
  border: 1px solid rgba(255, 89, 107, 0.52);
  border-radius: 4px;
  background: rgba(255, 89, 107, 0.08);
  color: #ff7890;
  padding: 0 9px;
  font-size: 10px;
  font-weight: 900;
}

.withdrawal-bank-body {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(360px, 0.88fr);
  gap: 22px;
  align-items: stretch;
  flex: 1;
}

.withdrawal-customer-info {
  grid-column: 1;
  grid-row: 1;
  position: relative;
  min-width: 0;
  padding-right: 98px;
}

.withdrawal-history-label {
  display: grid;
  place-items: center;
  min-height: 26px;
  margin-bottom: 12px;
  margin-right: -98px;
  border: 1px solid rgba(226, 188, 108, 0.18);
  background: rgba(226, 188, 108, 0.18);
  color: #f2f6ff;
  font-size: 12px;
  font-weight: 900;
}

.withdrawal-customer-info dl {
  display: grid;
  gap: 5px;
  margin: 0;
  max-width: 310px;
}

.withdrawal-customer-info div {
  min-width: 0;
}

.withdrawal-customer-info dt {
  color: #9dadc8;
  font-size: 10px;
  font-weight: 800;
}

.withdrawal-customer-info dd {
  margin: 1px 0 0;
  color: #f4f8ff;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.25;
}

.withdrawal-customer-info .cyan-text {
  color: #27d8e9;
  font-size: 18px;
  font-weight: 900;
}

.bank-logo.large {
  grid-column: 1;
  grid-row: 1;
  width: 68px;
  height: 68px;
  align-self: center;
  justify-self: end;
  margin-right: 2px;
}

.bank-logo.large::before {
  width: 28px;
  height: 28px;
}

.withdrawal-action-area {
  grid-column: 2;
  grid-row: 1;
  display: grid;
  gap: 12px;
  align-self: stretch;
  border-left: 1px solid rgba(196, 215, 255, 0.12);
  padding-left: 22px;
}

.wide-action,
.soft-action {
  width: 100%;
  min-height: 48px;
  justify-content: center;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 900;
}

.withdrawal-action-area .primary-button {
  background: linear-gradient(180deg, #7b63f1, #6448e5);
}

.withdrawal-action-area .success-button {
  background: linear-gradient(180deg, #2ccf83, #15ac66);
  border-color: rgba(63, 229, 157, 0.42);
  color: #ffffff;
}

.withdrawal-action-area .danger-button {
  background: linear-gradient(180deg, #ff6666, #e24b52);
  border-color: rgba(255, 111, 143, 0.48);
  color: #ffffff;
}

.soft-action {
  border: 0;
  background: #edf1ff;
  color: #d34b68;
}

.withdrawal-total-box {
  min-height: 84px;
  margin-top: 18px;
  padding: 10px;
  border: 1px solid rgba(255, 89, 107, 0.56);
  border-radius: 6px;
  background: rgba(28, 41, 67, 0.7);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 10px;
  align-items: end;
}

.withdrawal-total-box span {
  grid-column: 1 / -1;
  color: #ff6f8f;
  font-size: 12px;
  font-weight: 900;
}

.withdrawal-total-box div {
  display: grid;
  gap: 4px;
  align-self: center;
}

.withdrawal-total-box button {
  min-height: 18px;
  border: 0;
  border-radius: 3px;
  background: linear-gradient(180deg, #ff9c45, #f47a2c);
  color: #ffffff;
  padding: 0 8px;
  font-size: 9px;
  font-weight: 900;
}

.withdrawal-total-box strong {
  color: #f6f8ff;
  font-size: 26px;
  font-weight: 800;
  line-height: 1;
}

.withdrawal-balance-bars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.withdrawal-balance-bars span {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-radius: 4px;
  padding: 0 10px;
  color: #f4f8ff;
  font-size: 10px;
  font-weight: 900;
}

.withdrawal-balance-bars span:first-child {
  background: rgba(226, 157, 89, 0.22);
  border: 1px solid rgba(226, 157, 89, 0.34);
}

.withdrawal-balance-bars span:last-child {
  background: rgba(63, 229, 157, 0.14);
  border: 1px solid rgba(63, 229, 157, 0.28);
}

.withdrawal-balance-bars strong {
  color: #ffffff;
  font-size: 13px;
}

.withdrawal-side-stack {
  display: grid;
  gap: 16px;
}

.withdrawal-account-card {
  min-height: 126px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 6px 12px;
  padding: 16px 18px;
  align-items: start;
}

.withdrawal-account-card > div {
  grid-column: 2 / -1;
  min-width: 0;
  padding-right: 6px;
}

.withdrawal-account-card .bank-logo {
  grid-column: 1;
  grid-row: 1;
  align-self: start;
}

.withdrawal-account-card p {
  margin: 4px 0 0;
  color: #aab8d0;
  font-size: 11px;
  font-weight: 800;
}

.withdrawal-account-card > span {
  grid-column: 1 / -1;
  margin-top: 12px;
  color: #d9a75c;
  font-size: 10px;
  font-weight: 900;
}

.withdrawal-account-card strong {
  grid-column: 1 / 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #f5f8ff;
  font-size: 16px;
  font-weight: 900;
}

.withdrawal-account-card strong svg {
  width: 16px;
  height: 16px;
  color: #aebbd2;
}

.withdrawal-account-card .cyan-button {
  grid-column: 3;
  justify-self: end;
  align-self: end;
}

.cyan-button {
  min-height: 24px;
  border: 0;
  border-radius: 4px;
  background: linear-gradient(180deg, #20d6e5, #12a7c7);
  color: #042126;
  padding: 0 11px;
  font-size: 10px;
  font-weight: 900;
  cursor: pointer;
}

.withdrawal-small-panel {
  min-height: 64px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
}

.withdrawal-pill {
  min-height: 20px;
  border: 0;
  border-radius: 999px;
  padding: 0 12px;
  color: #ffffff;
  font-size: 9.5px;
  font-weight: 900;
  cursor: pointer;
}

.withdrawal-pill.purple {
  background: linear-gradient(90deg, #7357f0, #9a78ff);
}

.transfer-panel {
  min-height: 78px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
}

.transfer-actions {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 0.42fr 0.58fr;
  gap: 0;
  margin-top: 12px;
  border-radius: 7px;
  overflow: hidden;
}

.transfer-actions .success-button,
.transfer-actions .primary-button {
  min-height: 28px;
  padding: 0 10px;
  width: 100%;
  min-width: 0;
  font-size: 9.5px;
  border: 0;
  border-radius: 0;
  white-space: nowrap;
}

.transfer-actions .success-button {
  border-radius: 7px 0 0 7px;
}

.transfer-actions .primary-button {
  border-radius: 0 7px 7px 0;
}

.transfer-actions .success-button {
  background: linear-gradient(180deg, #2ecf86, #17b16c);
  color: #ffffff;
}

.transfer-actions .primary-button {
  background: linear-gradient(180deg, #14d2df, #12b9c9);
  color: #ffffff;
}

.source-signups-table {
  min-width: 620px;
}

.source-signups-table .report-row {
  grid-template-columns: 1.6fr 1.15fr 0.7fr;
}

.no-deposit-signups-table {
  min-width: 680px;
}

.no-deposit-signups-table .report-row {
  grid-template-columns: 1.15fr 1.55fr 1fr;
}

.deposit-withdraw-all-table {
  min-width: 1120px;
}

.deposit-withdraw-all-table .report-row {
  grid-template-columns: 0.5fr 1.35fr 1.15fr 1.25fr 0.8fr 1fr 0.9fr 1.25fr;
}

.summary-report-panel {
  width: min(710px, 100%);
  padding: 14px;
}

.summary-report-table {
  width: 100%;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border-radius: 4px;
  background: transparent;
}

.summary-report-table .report-row {
  grid-template-columns: minmax(0, 1fr) 92px 66px 66px;
  min-height: 38px;
  gap: 12px;
  padding: 0 14px;
  font-size: 11px;
}

.summary-report-table .report-table-head {
  min-height: 32px;
  background: #314364;
  border-bottom: 1px solid rgba(214, 228, 255, 0.12);
}

.summary-report-table .summary-row {
  font-weight: 900;
}

.summary-report-table .summary-amount {
  text-align: right;
}

.summary-report-table .report-table-head span:nth-child(2) {
  text-align: right;
}

.summary-report-table .report-table-head span:nth-child(3),
.summary-report-table .report-table-head span:nth-child(4),
.summary-report-table .report-row span:nth-child(3),
.summary-report-table .report-row span:nth-child(4) {
  text-align: center;
}

.blacklist-panel {
  padding: 16px;
}

.blacklist-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
}

.blacklist-table {
  min-width: 900px;
  padding: 0;
}

.blacklist-table .report-row {
  grid-template-columns: 48px 1.15fr 1fr 1fr;
  min-height: 58px;
  padding: 0 14px;
}

.blacklist-table .report-table-head {
  min-height: 34px;
  background: #314364;
}

.blacklist-bank-cell {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.blacklist-bank-cell > span {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.blacklist-bank-cell strong {
  color: #f4f8ff;
  font-size: 12px;
  line-height: 1;
}

.fraud-bank-logo {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  flex: 0 0 30px;
  border-radius: 6px;
  color: #ffffff;
  font-size: 8px;
  font-style: normal;
  font-weight: 900;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.fraud-bank-logo::before {
  content: attr(data-bank);
}

.fraud-bank-logo.blue {
  background: linear-gradient(135deg, #19c4e9, #2b82de);
}

.fraud-bank-logo.purple {
  background: linear-gradient(135deg, #9c4bed, #6c46d9);
}

.fraud-bank-logo.pink {
  background: linear-gradient(135deg, #ff3ca8, #d51e7e);
}

.fraud-bank-logo.wallet {
  color: #d54024;
  background: linear-gradient(135deg, #ffffff, #e9eef7);
}

.fraud-bank-logo.navy {
  background: linear-gradient(135deg, #2269d9, #133a8f);
}

.fraud-bank-logo.orange {
  background: linear-gradient(135deg, #ffad3d, #4078db);
}

.fraud-bank-logo.green {
  background: linear-gradient(135deg, #2fcf72, #07893f);
}

.title-count {
  color: #c8d4ea;
  font-size: 16px;
  font-weight: 800;
}

.customers-panel {
  padding: 16px;
}

.customers-panel-title {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.add-member-button {
  min-width: 260px;
  min-height: 32px;
  background: linear-gradient(180deg, #30d982, #1bb86d);
  border-color: rgba(85, 239, 164, 0.45);
  color: #052017;
  font-weight: 900;
}

.customer-filter-grid {
  width: 100%;
  display: grid;
  grid-template-columns: 160px 190px 190px minmax(260px, 1fr) 90px;
  gap: 10px 16px;
  align-items: end;
}

.customer-filter-grid label {
  min-width: 0;
  display: grid;
  gap: 7px;
}

.customer-filter-grid span {
  color: #aab8d0;
  font-size: 11px;
  font-weight: 800;
}

.customer-filter-grid input,
.customer-filter-grid select {
  width: 100%;
  min-height: 32px;
  border: 1px solid rgba(196, 215, 255, 0.08);
  border-radius: 4px;
  background: #111c31;
  color: #dfe8f8;
  padding: 0 12px;
  outline: none;
  font: inherit;
  font-size: 12px;
}

.customers-table {
  min-width: 1120px;
  padding: 0;
  width: 100%;
}

.customers-table .report-row {
  grid-template-columns: 34px 124px 118px 124px 78px minmax(118px, 1fr) 88px 42px 82px 64px 58px 58px 62px;
  min-height: 42px;
  gap: 4px;
  padding: 0 8px;
  font-size: 10px;
}

.customers-table .report-table-head {
  min-height: 32px;
  background: #314364;
  color: #aebbd2;
  font-size: 9.5px;
  line-height: 1.2;
}

.customers-table .report-table-head span {
  white-space: normal;
}

.customers-table .report-table-head span:nth-child(n + 8),
.customers-table .report-row span:nth-child(n + 8) {
  justify-content: center;
  text-align: center;
}

.customers-table .danger-row {
  background: rgba(169, 61, 85, 0.36);
}

.customers-table .danger-row:hover {
  background: rgba(169, 61, 85, 0.44);
}

.source-cell {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.source-cell small {
  overflow: hidden;
  color: #7b8cff;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.balance-cell {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  white-space: nowrap;
}

.customers-table .money-value {
  min-width: 48px;
  color: #24e391;
  font-weight: 900;
  text-align: left;
}

.customers-table .status-cell {
  width: auto;
  padding: 0;
  display: inline-flex;
  justify-content: flex-start;
  background: transparent;
}

.tiny-square {
  width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: 4px;
  background: rgba(113, 129, 170, 0.26);
  color: #c8d5eb;
  vertical-align: middle;
}

.tiny-square svg {
  width: 11px;
  height: 11px;
}

.customer-action-pair {
  display: inline-flex;
  justify-content: center;
  gap: 4px;
}

.tag-button {
  min-height: 18px;
  border: 0;
  border-radius: 4px;
  padding: 0 6px;
  color: #ffffff;
  font-size: 9.5px;
  font-weight: 900;
}

.tag-button.purple {
  background: #7357f0;
}

.tag-button.red {
  background: #ef5d6d;
}

.mini-icon.green-plus {
  background: #26d978;
  color: #052017;
}

.check-badge {
  width: 20px;
  height: 20px;
  padding: 3px;
  border-radius: 4px;
  color: #d9e2f3;
  background: rgba(216, 226, 243, 0.18);
}

.status-pill.danger {
  color: #ffffff;
  background: #ef5d6d;
}

.indent-cell {
  padding-left: 28px;
  color: #cbd7ea;
}

.mini-icon {
  width: 20px;
  height: 20px;
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: 4px;
  cursor: pointer;
}

.customer-icon-cell {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mini-icon svg {
  width: 12px;
  height: 12px;
}

.mini-icon.cyan {
  background: #18d2e5;
  color: #052126;
}

.mini-icon.orange {
  background: #f4a24d;
  color: #261507;
}

.status-pill {
  min-width: 58px;
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 10px;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.status-pill.success {
  color: #052017;
  background: linear-gradient(180deg, #43e5a3, #27bd7c);
  box-shadow: 0 0 14px rgba(67, 229, 163, 0.28);
}

.status-pill.warning {
  color: #3a2300;
  background: linear-gradient(180deg, #ffc466, #f59b23);
  box-shadow: 0 0 12px rgba(245, 155, 35, 0.24);
}

.table-link {
  color: #788dff;
  text-decoration: none;
}

.table-link:hover {
  color: #aebaff;
  text-decoration: underline;
}

.type-pill {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  border-radius: 6px;
  padding: 0 10px;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(101, 84, 230, 0.22);
}

.type-pill.purple {
  background: linear-gradient(180deg, #8d72ff, #6852e5);
}

.type-pill.green {
  background: linear-gradient(180deg, #43e5a3, #28bd7d);
  color: #061b13;
}

.bank-cell {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 2px 10px;
}

.bank-cell strong,
.bank-cell small {
  grid-column: 2;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bank-cell strong {
  color: #f4f8ff;
  font-size: 12px;
}

.bank-logo {
  grid-row: 1 / span 2;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 6px;
}

.bank-logo::before {
  content: "";
  width: 13px;
  height: 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
}

.bank-logo.purple {
  background: linear-gradient(135deg, #ff3ca8, #8f55ff);
}

.bank-logo.green {
  background: linear-gradient(135deg, #32d296, #47a8ff);
}

.bank-logo.pink {
  background: linear-gradient(135deg, #ff3ba6, #bb2fd6);
}

.bank-logo.orange {
  background: linear-gradient(135deg, #ffad3d, #df6d35);
}

.bank-logo.blue {
  background: linear-gradient(135deg, #38d1f3, #2c7ce8);
}

.bank-logo.wallet {
  background: linear-gradient(135deg, #fff, #e8edf8);
}

.bank-logo.wallet::before {
  width: 16px;
  height: 10px;
  border-radius: 2px;
  background: linear-gradient(90deg, #ff8a3d, #f6cf47);
}

.summary-row {
  color: #f4f8ff;
  font-weight: 900;
}

.report-row small {
  color: #9baac3;
  font-size: 11px;
  font-weight: 800;
}

.report-table-head {
  min-height: 38px;
  color: #8d9db7;
  background: rgba(78, 94, 138, 0.34);
  border-top: 0;
  padding: 0 12px;
  font-size: 11px;
  font-weight: 800;
}

.report-row:not(.report-table-head) {
  padding: 0 12px;
}

.report-row:not(.report-table-head):hover {
  background: rgba(95, 121, 184, 0.075);
}

.report-empty {
  grid-column: 1 / -1;
  color: #a5b1c8;
  font-size: 11px;
  font-weight: 700;
}

.link-value {
  color: #7d8cff;
}

.member-cell {
  display: grid;
  gap: 2px;
}

.member-cell strong {
  color: #f3f7ff;
  font-size: 12px;
}

.member-cell small {
  color: #8795b0;
  font-size: 11px;
}

.report-total {
  min-height: 34px;
  display: flex;
  align-items: center;
  color: #a9b6ce;
  font-size: 11px;
  font-weight: 700;
}

.report-pagination {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  padding: 0 18px 16px;
}

.report-pagination button {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: #7f8da8;
  font-size: 11px;
  font-weight: 800;
}

.report-pagination button.active {
  color: #ffffff;
  background: linear-gradient(180deg, #8068ff, #6654e6);
  box-shadow: 0 9px 20px rgba(101, 84, 230, 0.32);
}

.report-pagination svg {
  width: 13px;
  height: 13px;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.setting-card {
  min-height: 166px;
  border-radius: 5px;
  padding: 16px;
  display: grid;
  align-content: start;
  gap: 10px;
}

.setting-icon {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  background: rgba(56, 227, 159, 0.14);
  color: #53e7a9;
}

.setting-icon svg {
  width: 18px;
  height: 18px;
}

.setting-card strong {
  color: #f5f8ff;
  font-size: 14px;
}

.setting-card small {
  color: #aab8d0;
  min-height: 38px;
  font-size: 11px;
}

.setting-card button {
  margin-top: auto;
  color: #ded8ff;
  border-color: rgba(143, 118, 255, 0.28);
}

@media (max-width: 1120px) {
  .app-shell {
    grid-template-columns: 212px minmax(0, 1fr);
  }

  .primary-metrics,
  .compact-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .compact-metrics article,
  .compact-metrics article.third-row {
    grid-column: auto;
  }

  .work-grid {
    grid-template-columns: 1fr;
  }

  .permission-grid,
  .settings-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: relative;
    height: auto;
    padding-bottom: 12px;
  }

  .brand {
    margin-bottom: 12px;
  }

  .nav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 6px;
  }

  .nav-label,
  .sidebar-card {
    display: none;
  }

  .nav-item {
    flex: 0 0 auto;
    min-width: 122px;
    white-space: nowrap;
    justify-content: center;
  }

  .nav-block {
    flex: 0 0 auto;
  }

  .nav-sublist {
    min-width: 238px;
    padding-left: 0;
  }

  .main {
    padding: 16px;
  }

  .topbar,
  .notice {
    align-items: flex-start;
    flex-direction: column;
  }

  .notice {
    padding-right: 34px;
  }

  .top-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .profile {
    margin-left: auto;
  }

  .notice button {
    margin-left: 0;
  }

  .view-head,
  .toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .view-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .view-actions button,
  .toolbar button {
    flex: 1 1 130px;
  }

  .form-row,
  .permission-layout {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .form-row label,
  .permission-layout > label {
    text-align: left;
  }

  .form-actions {
    padding-left: 0;
  }

  .data-panel {
    overflow-x: auto;
  }

  .report-filter,
  .report-panel-head {
    align-items: stretch;
    flex-direction: column;
  }

  .report-table-tools {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }

  .table-inline-search {
    width: 100%;
  }

  .personal-report-filter {
    display: grid;
    grid-template-columns: 1fr;
  }

  .no-deposit-filter {
    display: grid;
    grid-template-columns: 1fr;
  }

  .inline-report-filter {
    grid-template-columns: 1fr;
  }

  .bank-ledger-subhead,
  .bank-ledger-toolbar,
  .deposit-filter-grid,
  .withdrawal-filter-grid {
    grid-template-columns: 1fr;
  }

  .deposit-panel-title,
  .withdrawal-panel-title {
    align-items: stretch;
    flex-direction: column;
  }

  .withdrawal-tabs,
  .withdrawal-overview-grid {
    grid-template-columns: 1fr;
  }

  .transfer-actions {
    grid-template-columns: 1fr;
  }

  .bank-ledger-tabs {
    overflow-x: auto;
  }

  .report-filter {
    gap: 12px;
  }

  .report-filter label,
  .report-search {
    width: 100%;
    flex-basis: auto;
  }

  .report-panel {
    overflow-x: auto;
  }
}

@media (max-width: 560px) {
  .main {
    padding: 12px;
  }

  .primary-metrics,
  .compact-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .metric-card {
    min-height: 86px;
    padding: 12px 8px;
  }

  .metric-card strong {
    font-size: 18px;
  }

  .metric-card small,
  .compact-metrics small {
    font-size: 10px;
  }

  .compact-metrics article {
    min-height: 58px;
    padding: 11px 34px 10px 11px;
  }

  .compact-metrics strong {
    font-size: 15px;
  }

  .compact-metrics svg {
    right: 10px;
    width: 18px;
    height: 18px;
  }

  .row {
    grid-template-columns: 1fr;
  }

  .amount {
    text-align: left;
  }

  .ghost-button,
  .danger-button {
    flex: 1 1 138px;
    justify-content: center;
  }

  .permission-grid,
  .settings-grid {
    grid-template-columns: 1fr;
  }

  .form-actions {
    flex-direction: column;
  }
}

@media (max-width: 360px) {
  .primary-metrics,
  .compact-metrics {
    grid-template-columns: 1fr;
  }

  .compact-metrics article,
  .compact-metrics article.third-row {
    grid-column: auto;
  }
}

/* Release 20260731-1527: slimmer Thai typography pass */
body {
  font-weight: 400;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.nav-label,
.metric-card small,
.compact-metrics small,
.ref,
.time,
.amount,
.sidebar-card small,
.view-head p,
.time-pill,
.notice,
.profile small {
  font-weight: 400;
}

.nav-item,
.nav-subitem,
.top-actions button,
.view-actions button,
.toolbar button,
.panel-head button,
.badge,
.form-row label,
.permission-layout > label,
.report-panel-head,
.report-table,
.table-inline-search input,
.page-size,
.success-button,
.primary-button,
.secondary-button,
.danger-button,
.ghost-button {
  font-weight: 500;
}

.brand strong,
.view-head h1,
.panel h2,
.metric-card strong,
.compact-metrics strong,
.name,
.amount strong,
.split,
.report-panel h2,
.report-table-head,
.users-table .report-table-head,
.deposit-actions button,
.withdrawal-actions button,
.transfer-actions button,
.withdrawal-account-card strong,
.withdrawal-amount-card strong {
  font-weight: 600;
}

.coin {
  font-weight: 600;
}

/* Release 20260731-1846: full website general settings form */
.website-settings-page {
  display: grid;
  gap: 12px;
}

.website-settings-head {
  margin-bottom: 0;
}

.website-settings-panel {
  background: #263550;
  border: 1px solid rgba(196, 215, 255, 0.08);
  border-radius: 4px;
  box-shadow: 0 10px 24px rgba(1, 7, 20, 0.18);
  overflow: hidden;
}

.website-setting-section {
  padding: 18px 22px 20px;
  border-bottom: 1px solid rgba(196, 215, 255, 0.08);
}

.website-setting-section:last-of-type {
  border-bottom: 0;
}

.website-section-head {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 18px;
}

.website-section-head > svg {
  width: 15px;
  height: 15px;
  color: #dbe6fa;
  margin-top: 2px;
}

.website-section-head h2 {
  margin: 0;
  color: #edf3ff;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.25;
}

.website-section-head p {
  margin: 4px 0 0;
  color: #7f8ea8;
  font-size: 11px;
  font-weight: 400;
}

.website-form-list {
  display: grid;
  gap: 11px;
}

.website-toggle-row,
.website-input-row {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 14px;
  min-height: 27px;
}

.website-input-row {
  grid-template-columns: 260px minmax(0, 1fr);
}

.website-toggle-row > span,
.website-input-row > span {
  color: #d6deee;
  font-size: 11px;
  font-weight: 400;
  text-align: right;
  line-height: 1.35;
}

.website-toggle-row > b {
  color: #e8eefb;
  font-size: 11px;
  font-weight: 400;
}

.setting-switch {
  width: 39px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  padding: 2px;
  border: 0;
  border-radius: 999px;
  background: #566278;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.25);
}

.setting-switch i {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.28);
}

.setting-switch.on {
  justify-content: flex-end;
  background: linear-gradient(180deg, #8d73ff, #614de3);
}

.website-input-row input,
.website-input-row select,
.website-input-row textarea {
  width: 100%;
  min-height: 27px;
  border: 1px solid rgba(99, 119, 156, 0.24);
  border-radius: 3px;
  background: #15213a;
  color: #eaf0fc;
  outline: none;
  padding: 0 12px;
  font: inherit;
  font-size: 11px;
  font-weight: 400;
}

.website-input-row select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #9eabc1 50%), linear-gradient(135deg, #9eabc1 50%, transparent 50%);
  background-position: calc(100% - 13px) 11px, calc(100% - 8px) 11px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.website-input-row textarea {
  min-height: 96px;
  resize: vertical;
  padding: 10px 12px;
  line-height: 1.55;
}

.website-input-row input::placeholder,
.website-input-row textarea::placeholder {
  color: #687894;
}

.website-input-row input:focus,
.website-input-row select:focus,
.website-input-row textarea:focus {
  border-color: rgba(143, 118, 255, 0.54);
}

.website-settings-actions {
  display: flex;
  gap: 12px;
  padding: 14px 22px 18px 296px;
  border-top: 1px solid rgba(196, 215, 255, 0.08);
}

.website-settings-actions .primary-button,
.website-settings-actions .secondary-button {
  min-width: 74px;
  min-height: 30px;
  border-radius: 4px;
}

@media (max-width: 980px) {
  .website-toggle-row,
  .website-input-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .website-toggle-row {
    grid-template-columns: 1fr 40px 32px;
  }

  .website-toggle-row > span,
  .website-input-row > span {
    text-align: left;
  }

  .website-settings-actions {
    padding-left: 22px;
  }
}

/* Release 20260731-1934: bank account management page */
.bank-accounts-page {
  gap: 12px;
}

.bank-accounts-page .report-head {
  display: flex;
  align-items: center;
  gap: 16px;
}

.bank-accounts-panel {
  padding: 16px 18px 18px;
  background: #263550;
  border-radius: 4px;
}

.bank-accounts-topline {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 14px;
}

.bank-accounts-topline h2 {
  margin: 0;
  color: #8c72ff;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}

.bank-accounts-topline p {
  margin: 0;
  color: #ff6f8f;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.45;
}

.bank-accounts-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-bottom: 16px;
}

.bank-action {
  min-height: 28px;
  border-radius: 4px;
  border: 1px solid rgba(196, 215, 255, 0.12);
  padding: 0 13px;
  color: #edf4ff;
  font-size: 10px;
  font-weight: 500;
  white-space: nowrap;
}

.bank-action.dark {
  background: #4b5364;
}

.bank-action.green {
  background: #20c986;
  border-color: rgba(56, 227, 159, 0.5);
}

.bank-action.outline {
  background: #1b2942;
  border-color: rgba(59, 212, 221, 0.42);
  color: #69d7ec;
}

.bank-action.purple {
  background: linear-gradient(180deg, #8e78ff, #6c58ea);
  border-color: rgba(197, 183, 255, 0.5);
}

.bank-accounts-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 34px;
  margin-bottom: 8px;
}

.bank-account-search {
  width: 255px;
}

.bank-accounts-table {
  min-width: 1220px;
  padding: 0;
}

.bank-accounts-table .report-row {
  grid-template-columns: 48px 112px 170px 110px minmax(170px, 1.35fr) 80px 78px 70px 86px 82px 86px;
  min-height: 70px;
  gap: 10px;
  padding: 0 10px;
  font-size: 10px;
}

.bank-accounts-table .report-table-head {
  min-height: 32px;
  background: #314364;
  color: #aebbd2;
  font-size: 9.5px;
  font-weight: 500;
}

.bank-accounts-table .report-table-head span {
  justify-content: center;
  text-align: center;
}

.bank-account-control-cell,
.bank-connect-cell {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 5px;
}

.bank-mini {
  min-height: 18px;
  border: 0;
  border-radius: 3px;
  padding: 0 8px;
  color: #fff;
  font-size: 9px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}

.bank-mini.cyan {
  background: #16c7ee;
}

.bank-mini.orange {
  background: #ee9441;
}

.bank-mini.gray {
  background: #596174;
}

.bank-mini.green {
  background: #16c77c;
}

.bank-mini.purple {
  background: #7357f0;
}

.bank-balance-cell {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.bank-balance-cell .tiny-square {
  width: 22px;
  height: 22px;
  border-radius: 4px;
}

.bank-account-name-cell {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 0 9px;
  min-width: 0;
}

.bank-account-name-cell .bank-logo {
  grid-row: span 2;
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.bank-account-name-cell strong,
.bank-account-name-cell small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bank-account-name-cell strong {
  color: #f0f5ff;
  font-size: 10.5px;
  font-weight: 500;
}

.bank-account-name-cell small {
  color: #b7c4da;
  font-size: 10px;
}

.bank-toggle {
  width: 32px;
  height: 17px;
  display: inline-flex;
  align-items: center;
  padding: 2px;
  border: 0;
  border-radius: 999px;
  background: #586273;
  justify-self: center;
}

.bank-toggle i {
  width: 13px;
  height: 13px;
  border-radius: 999px;
  background: #ffffff;
}

.bank-toggle.on {
  justify-content: flex-end;
  background: #20ce87;
}

.bank-row-actions {
  display: flex;
  justify-content: center;
  gap: 6px;
}

.bank-edit,
.bank-delete {
  min-height: 20px;
  border: 0;
  border-radius: 3px;
  padding: 0 9px;
  color: #fff;
  font-size: 9px;
  font-weight: 500;
}

.bank-edit {
  background: #f28b3f;
}

.bank-delete {
  background: #e65f62;
}

.bank-accounts-feedback {
  min-height: 18px;
  margin-top: 9px;
  color: #93a2ba;
  font-size: 10px;
}

.bank-accounts-feedback.success {
  color: #39e39d;
}

.bank-accounts-feedback.danger {
  color: #ff7892;
}

.truemoney-topline {
  align-items: center;
  justify-content: space-between;
}

.truemoney-topline .bank-accounts-actions {
  margin-bottom: 0;
}

.truemoney-accounts-table {
  min-width: 1220px;
  padding: 0;
}

.truemoney-accounts-table .report-row {
  grid-template-columns: 42px 150px 132px 78px 112px 110px minmax(120px, 1fr) 66px 70px 68px 76px 78px 78px;
  min-height: 68px;
  gap: 8px;
  padding: 0 10px;
  font-size: 9.5px;
}

.truemoney-accounts-table .report-table-head {
  min-height: 32px;
  background: #314364;
  color: #aebbd2;
  font-size: 9px;
  font-weight: 500;
}

.truemoney-accounts-table .report-table-head span,
.truemoney-accounts-table .report-row span:nth-child(n + 8) {
  justify-content: center;
  text-align: center;
}

.app-active-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  min-height: 19px;
  border-radius: 999px;
  background: rgba(56, 227, 159, 0.18);
  color: #38e39f;
  box-shadow: 0 0 14px rgba(56, 227, 159, 0.16);
  font-size: 9px;
  font-weight: 500;
  text-transform: lowercase;
}

.toggle-text {
  display: inline-block;
  margin-left: 7px;
  color: #dce6f6;
  font-size: 9px;
  vertical-align: middle;
}

/* Release 20260731-1950: website domain management page */
.website-domain-panel {
  padding: 18px;
  background: #263550;
  border-radius: 4px;
}

.domain-panel-head {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.domain-panel-head h2 {
  margin: 0;
  color: #edf4ff;
  font-size: 13px;
  font-weight: 500;
}

.domain-table-scroll {
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(124, 139, 169, 0.52) rgba(18, 29, 50, 0.62);
}

.domain-table-scroll::-webkit-scrollbar {
  height: 7px;
}

.domain-table-scroll::-webkit-scrollbar-track {
  background: rgba(18, 29, 50, 0.62);
  border-radius: 999px;
}

.domain-table-scroll::-webkit-scrollbar-thumb {
  border: 2px solid rgba(18, 29, 50, 0.62);
  border-radius: 999px;
  background: rgba(132, 145, 171, 0.74);
  background-clip: padding-box;
}

.website-domain-table {
  min-width: 1540px;
  padding: 0;
}

.website-domain-table .report-row {
  grid-template-columns: 56px 112px 118px 150px 344px 156px 214px 320px 54px;
  min-height: 84px;
  gap: 8px;
  padding: 0 12px;
  font-size: 9.5px;
}

.website-domain-table .report-table-head {
  min-height: 32px;
  background: #314364;
  color: #aebbd2;
  font-size: 9px;
  font-weight: 500;
}

.website-domain-table .report-table-head span:nth-child(1),
.website-domain-table .report-row span:nth-child(1),
.website-domain-table .report-table-head span:nth-child(3),
.website-domain-table .report-row span:nth-child(3),
.website-domain-table .report-table-head span:nth-child(4),
.website-domain-table .report-row span:nth-child(4),
.website-domain-table .report-table-head span:nth-child(n + 6),
.website-domain-table .report-row span:nth-child(n + 6) {
  justify-content: center;
}

.website-domain-table .report-table-head span:nth-child(5),
.website-domain-table .report-row span:nth-child(5) {
  justify-content: start;
}

.website-domain-table .report-table-head svg {
  width: 12px;
  height: 12px;
  margin-left: 8px;
  color: #74839d;
}

.domain-preview-cell {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.domain-preview-tools {
  display: grid;
  justify-items: center;
  gap: 5px;
}

.domain-preview-tools .tiny-square {
  width: 20px;
  height: 20px;
  background: rgba(59, 212, 221, 0.2);
}

.domain-preview-tools .bank-mini {
  min-width: 31px;
  padding: 0 6px;
}

.domain-preview-label {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 5px;
}

.domain-preview-label b {
  overflow: hidden;
  color: #eaf1ff;
  font-size: 9.5px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.domain-open-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 22px;
  border-radius: 4px;
  background: #18c87c;
  color: #ffffff;
  font-size: 9.5px;
  font-weight: 500;
}

.domain-language-cell {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.domain-language-cell small {
  color: #adb9cf;
  font-size: 9px;
}

.domain-language-cell b {
  color: #edf4ff;
  font-size: 10px;
  font-weight: 500;
}

.domain-link-cell {
  display: grid;
  align-items: center;
  justify-items: start;
  gap: 9px;
  min-width: 0;
}

.domain-link-line,
.domain-verification-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.domain-verification-line input {
  width: 208px;
  min-height: 26px;
  border: 1px solid rgba(196, 215, 255, 0.08);
  border-radius: 3px;
  background: #111c31;
  color: #7f8da8;
  padding: 0 11px;
  font: inherit;
  font-size: 9px;
  outline: none;
}

.domain-verification-line .bank-mini.green {
  min-width: 48px;
  min-height: 22px;
  font-size: 9px;
}

.domain-link-button {
  min-width: 0;
  max-width: 152px;
  min-height: 22px;
  overflow: hidden;
  border: 0;
  border-radius: 3px;
  background: #6d58ea;
  color: #ffffff;
  padding: 0 9px;
  font-size: 9px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.domain-primary-link {
  min-width: 72px;
  min-height: 24px;
  border: 1px solid rgba(130, 105, 255, 0.65);
  background: rgba(92, 71, 205, 0.22);
  color: #8d7cff;
  font-size: 9px;
}

.tiny-square.cyan {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  background: rgba(59, 212, 221, 0.18);
  color: #51dce9;
}

.mini-pencil {
  width: 20px;
  height: 20px;
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #d9a75c;
  vertical-align: middle;
}

.mini-pencil svg {
  width: 12px;
  height: 12px;
}

.domain-theme-cell,
.domain-seo-cell {
  display: grid;
  align-items: center;
  justify-items: center;
  gap: 7px;
  min-width: 0;
}

.domain-button-line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
}

.domain-theme-cell small,
.domain-seo-cell small {
  color: #b8c4d9;
  font-size: 9px;
  line-height: 1.35;
  max-width: 100%;
  overflow: hidden;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.domain-theme-cell .bank-mini,
.domain-seo-cell .bank-mini,
.website-domain-table .bank-mini.purple {
  min-width: auto;
  padding: 0 7px;
  white-space: nowrap;
}

.domain-theme-cell b {
  color: #dfe7f7;
}

.domain-status-cell {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.domain-delete {
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: 4px;
  background: #e65f62;
  color: #ffffff;
}

.domain-delete svg {
  width: 12px;
  height: 12px;
}

@media (max-width: 1120px) {
  .bank-accounts-actions,
  .bank-accounts-topline,
  .bank-accounts-tools {
    align-items: stretch;
    flex-direction: column;
  }

  .bank-accounts-actions {
    justify-content: flex-start;
  }

  .bank-account-search {
    width: 100%;
  }
}

.metric-card strong,
.compact-metrics strong {
  letter-spacing: 0.1px;
}

.metric-card small,
.compact-metrics small,
.row,
.panel,
.report-table,
.nav-item,
.nav-subitem {
  letter-spacing: 0;
}

/* Release 20260731-1649: provider API backend readiness page */
.provider-api-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 14px;
  margin-bottom: 14px;
}

.provider-api-card,
.provider-api-console {
  border: 1px solid rgba(177, 195, 224, 0.1);
  background: rgba(15, 25, 43, 0.92);
  border-radius: 6px;
  box-shadow: 0 12px 32px rgba(2, 8, 18, 0.2);
}

.provider-api-card {
  min-height: 230px;
  padding: 18px;
}

.provider-api-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.provider-api-head span {
  display: block;
  margin-bottom: 4px;
  color: #8fa0bd;
  font-size: 11px;
  font-weight: 500;
}

.provider-api-head h2,
.provider-api-console h2 {
  margin: 0;
  color: #edf4ff;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0;
}

.provider-api-card p,
.provider-api-list {
  color: #b7c4da;
  font-size: 12px;
  line-height: 1.7;
}

.provider-api-list {
  margin: 12px 0 0;
  padding-left: 18px;
}

.provider-api-status {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 16px;
}

.provider-api-status div {
  min-width: 0;
  padding: 10px 12px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(177, 195, 224, 0.08);
}

.provider-api-status dt {
  color: #7d8ea8;
  font-size: 10px;
  font-weight: 500;
}

.provider-api-status dd {
  margin: 3px 0 0;
  color: #edf4ff;
  font-size: 12px;
  font-weight: 500;
}

.provider-api-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.provider-api-console {
  padding: 18px;
}

.provider-api-console h2 {
  margin-bottom: 12px;
}

.provider-api-console code {
  display: inline-flex;
  margin: 0 8px 8px 0;
  padding: 7px 9px;
  border-radius: 4px;
  background: #101a2e;
  border: 1px solid rgba(177, 195, 224, 0.08);
  color: #b8c7e0;
  font-size: 11px;
}

.provider-api-console pre {
  max-height: 280px;
  overflow: auto;
  margin: 10px 0 0;
  padding: 14px;
  border-radius: 4px;
  background: #07101d;
  color: #cfe2ff;
  font-size: 12px;
  line-height: 1.55;
  white-space: pre-wrap;
}

@media (max-width: 1080px) {
  .provider-api-grid {
    grid-template-columns: 1fr;
  }
}
