/* Mock AdSense "Info pembayaran" — Google Material look, dependency-free. */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Roboto, 'Segoe UI', Arial, sans-serif;
  background: #f1f3f4;
  color: #202124;
  font-size: 14px;
}

.ms {
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  font-size: 20px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  direction: ltr;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  -webkit-font-smoothing: antialiased;
}

/* ---------- left rail ---------- */

.rail {
  position: fixed;
  inset: 0 auto 0 0;
  width: 240px;
  background: #fff;
  border-right: 1px solid #dadce0;
  display: flex;
  flex-direction: column;
  padding: 12px 0;
  z-index: 10;
}

.rail__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 24px 20px;
}

.rail__mark {
  width: 28px;
  height: 28px;
}

.rail__wordmark {
  font-size: 20px;
  color: #5f6368;
}

.rail__nav,
.rail__foot {
  display: flex;
  flex-direction: column;
}

.rail__foot {
  margin-top: auto;
  border-top: 1px solid #f1f3f4;
  padding-top: 8px;
}

.rail__item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 9px 24px;
  color: #3c4043;
  font-size: 14px;
  border-radius: 0 24px 24px 0;
}

.rail__item .ms {
  color: #5f6368;
}

.rail__item--active {
  background: #e8f0fe;
  color: #1a73e8;
  font-weight: 500;
}

.rail__item--active .ms {
  color: #1a73e8;
}

.rail__sub {
  padding: 7px 24px 7px 60px;
  color: #5f6368;
  font-size: 13px;
  border-radius: 0 24px 24px 0;
}

.rail__sub:first-of-type {
  background: #e8f0fe;
  color: #1a73e8;
  font-weight: 500;
}

/* ---------- top bar ---------- */

.app {
  margin-left: 240px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  gap: 20px;
  height: 56px;
  padding: 0 16px 0 8px;
  background: #fff;
  border-bottom: 1px solid #dadce0;
  z-index: 5;
}

.topbar__brand {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 216px;
}

.topbar__menu {
  padding: 10px;
  border-radius: 50%;
  color: #5f6368;
  cursor: pointer;
}

.topbar__menu:hover {
  background: #f1f3f4;
}

.topbar__g {
  width: 22px;
  height: 22px;
}

.topbar__product {
  font-size: 20px;
  color: #5f6368;
}

.topbar__search {
  flex: 1;
  max-width: 640px;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 40px;
  padding: 0 16px;
  background: #f1f3f4;
  border-radius: 20px;
}

.topbar__search input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font: inherit;
  color: #202124;
}

.topbar__search-icon {
  color: #5f6368;
  font-size: 18px;
}

.topbar__right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
}

.topbar__icon {
  padding: 10px;
  border-radius: 50%;
  color: #5f6368;
  cursor: pointer;
  position: relative;
}

.topbar__icon:hover {
  background: #f1f3f4;
}

.topbar__icon--dot::after {
  content: '';
  position: absolute;
  top: 8px;
  right: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d93025;
  border: 2px solid #fff;
}

.topbar__account {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px 4px 4px;
  border-radius: 24px;
  cursor: pointer;
}

.topbar__account:hover {
  background: #f1f3f4;
}

.topbar__avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #1a73e8;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 500;
}

.topbar__name {
  font-size: 14px;
  font-weight: 500;
}

.topbar__mail {
  font-size: 12px;
  color: #5f6368;
}

.topbar__chev {
  color: #5f6368;
}

/* ---------- page ---------- */

.page {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 20px 24px 48px;
}

.page__heading {
  font-size: 24px;
  font-weight: 400;
  margin: 12px 0 20px;
}

.card {
  background: #fff;
  border: 1px solid #dadce0;
  border-radius: 8px;
  padding: 20px 24px;
  margin-bottom: 16px;
}

.card--balance {
  border-left: 4px solid #1a73e8;
}

.card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.card__title {
  font-size: 15px;
  font-weight: 500;
  margin: 0 0 12px;
}

.card__head .card__title {
  margin: 0;
}

.card__note {
  font-size: 12px;
  color: #5f6368;
  margin: 12px 0 0;
}

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

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 12px;
  border-radius: 14px;
  font-size: 12.5px;
}

.chip--paid {
  background: #e6f4ea;
  color: #188038;
}

.chip__icon {
  font-size: 16px;
}

.balance__label {
  display: block;
  font-size: 13px;
  color: #5f6368;
  margin-bottom: 4px;
}

.balance-amount {
  font-size: 34px;
  font-weight: 400;
  color: #202124;
  font-variant-numeric: tabular-nums;
}

.balance-amount--est {
  color: #b06000;
}

.meta {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #f1f3f4;
}

.meta__item {
  font-size: 12px;
  color: #5f6368;
  font-variant-numeric: tabular-nums;
}

.schedule {
  margin: 0;
}

.schedule__row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #f1f3f4;
  font-size: 14px;
}

.schedule__row:last-child {
  border-bottom: none;
}

.schedule__row dt {
  color: #5f6368;
}

.schedule__row dd {
  margin: 0;
  font-variant-numeric: tabular-nums;
}

.link {
  display: inline-block;
  margin-top: 10px;
  color: #1a73e8;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

.ledger {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.ledger th {
  text-align: left;
  font-weight: 500;
  color: #5f6368;
  border-bottom: 1px solid #dadce0;
  padding: 8px 0;
}

.ledger td {
  padding: 10px 0;
  border-bottom: 1px solid #f1f3f4;
}

.ledger tr:last-child td {
  border-bottom: none;
}

.ledger__amount {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.tag {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 8px;
  border-radius: 10px;
  background: #fef7e0;
  color: #b06000;
  font-size: 11px;
}

.footer {
  margin-top: auto;
  text-align: center;
  font-size: 12px;
  color: #80868b;
  padding: 24px 0 32px;
}

/* ---------- payment methods ---------- */

.pay-method {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid #dadce0;
  border-radius: 8px;
  margin-bottom: 10px;
}

.pay-method--selected {
  border-color: #1a73e8;
  background: #f8fbff;
}

.radio {
  flex: none;
  width: 18px;
  height: 18px;
  border: 2px solid #5f6368;
  border-radius: 50%;
}

.radio--on {
  border-color: #1a73e8;
  background: radial-gradient(circle, #1a73e8 0 5px, transparent 5.5px);
}

.pay-method__body {
  flex: 1;
  min-width: 0;
}

.pay-method__name {
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pay-method__detail {
  font-size: 13px;
  color: #5f6368;
  margin-top: 2px;
  font-variant-numeric: tabular-nums;
}

.pay-method__icon {
  color: #5f6368;
}

.pay-method--selected .pay-method__icon {
  color: #1a73e8;
}

.tag--primary {
  background: #e8f0fe;
  color: #1a73e8;
}

.tag--ok {
  background: #e6f4ea;
  color: #188038;
}

@media (max-width: 900px) {
  .rail {
    display: none;
  }

  .app {
    margin-left: 0;
  }

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

  .topbar__search,
  .topbar__id {
    display: none;
  }
}
