.account-action {
  height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 13px;
  border: 1px solid #dfe5eb;
  border-radius: 12px;
  background: #fff;
  color: #536171;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color .16s, color .16s, background .16s;
}

.account-action:hover {
  border-color: #9dcef5;
  background: #f3f9ff;
  color: #168bf0;
}

.account-action svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.password-hint {
  margin-top: 2px !important;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f6f8fa;
  color: #7c8794 !important;
}

@media (max-width: 720px) {
  .account-action {
    width: 40px;
    padding: 0;
    justify-content: center;
  }

  .account-action span {
    display: none;
  }
}

/* Keep the supplied JOY artwork, but crop away its white square corners. */
.login-card-brand img {
  border-radius: 50%;
  clip-path: circle(49% at 50% 50%);
}

.side-brand::before {
  border-radius: 50%;
  clip-path: circle(49% at 50% 50%);
}

.records-scroll table {
  min-width: 2360px !important;
}

.records-scroll .balance-after {
  color: #17202d;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* HiPay login branding */
.login-card-brand {
  width: 100%;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 30px;
  text-align: center;
  color: #071d36;
  font-size: 30px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: .4px;
}

.login-card-brand img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 50%;
  clip-path: circle(49% at 50% 50%);
  box-shadow: 0 9px 24px rgba(0, 116, 217, .2);
}

.login-card-brand span {
  display: block;
  line-height: 1;
}

.otp-card .login-card-brand {
  gap: 9px;
  margin-bottom: 18px;
  font-size: 23px;
}

.otp-card .login-card-brand img {
  width: 46px;
  height: 46px;
}

.side-brand::before {
  background-image: url("./public/hipay-logo.png");
  background-size: cover;
  background-position: center;
}

/* Isolate the password icon from generic button and SVG sizing. */
.account-action {
  width: auto;
  min-width: 108px;
  max-height: 40px;
  overflow: hidden;
}

.account-action-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.account-action-icon > svg {
  display: block;
  width: 18px !important;
  height: 18px !important;
  max-width: 18px;
  max-height: 18px;
  flex: 0 0 18px;
}

@media (max-width: 720px) {
  .account-action {
    min-width: 40px;
  }

  .account-action-label {
    display: none;
  }

  .account-action-icon {
    display: inline-flex !important;
  }
}

@media (max-width: 560px) {
  .login-card-brand {
    margin-bottom: 24px;
    font-size: 25px;
  }

  .login-card-brand img {
    width: 52px;
    height: 52px;
  }

  .otp-card .login-card-brand img {
    width: 42px;
    height: 42px;
  }
}

.ledger-rate-card {
  display: grid;
  grid-template-columns: minmax(220px, .8fr) minmax(320px, 1.4fr) auto;
  align-items: center;
  gap: 24px;
  margin-bottom: 16px;
  padding: 18px 22px;
  border: 1px solid #dde5ec;
  border-radius: 18px;
  background: #fff;
}

.ledger-rate-card > div {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.ledger-rate-card span {
  color: #7b8795;
  font-size: 13px;
}

.ledger-rate-card strong {
  font-size: 20px;
}

.ledger-rate-card b {
  color: #394655;
  font-size: 14px;
}

.ledger-table {
  width: 100%;
  min-width: 0 !important;
  table-layout: fixed;
}

.ledger-table th,
.ledger-table td {
  min-width: 0 !important;
  padding-right: 10px;
  padding-left: 10px;
  white-space: normal;
}

.ledger-table th:first-child,
.ledger-table td:first-child {
  width: 18%;
}

.ledger-table td b,
.ledger-table td small {
  display: block;
  white-space: nowrap;
}

.ledger-table td b {
  font-size: 15px;
}

.ledger-table td > .income,
.ledger-table td > .expense {
  white-space: nowrap;
  font-size: 15px;
}

.ledger-table td small {
  margin-top: 5px;
  color: #8b96a5;
  font-size: 11px;
}

.interface-config-card {
  max-width: 820px;
  padding: 28px;
  background: #fff;
  border: 1px solid #dde3e8;
  border-radius: 20px;
}

.interface-config-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.interface-config-head h3 { margin: 0 0 6px; font-size: 20px; }
.interface-config-head p { margin: 0; color: #8a95a3; font-size: 14px; }
.interface-config-card > label { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; color: #525e6c; font-size: 14px; font-weight: 700; }
.interface-config-card input { width: 100%; height: 50px; padding: 0 15px; border: 1px solid #dce2e8; border-radius: 12px; background: #fff; font: inherit; outline: none; }
.interface-config-card input:focus { border-color: #259bff; box-shadow: 0 0 0 3px rgba(37, 155, 255, .1); }
.interface-config-card > small { display: block; color: #9aa4b0; font-size: 12px; line-height: 1.7; }
.interface-config-meta { margin-top: 20px; padding: 12px 14px; border-radius: 10px; background: #f6f8fa; color: #7c8794; font-size: 13px; }
.interface-config-actions { display: flex; justify-content: flex-end; margin-top: 20px; }

@media (max-width: 900px) {
  .ledger-rate-card {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}
