/* MyWallet — company prepaid wallet */
.mw-page-wrap {
  padding: 1.25rem 1.5rem 3rem;
  background: linear-gradient(180deg, #f4f7fb 0%, #eef2f7 48%, #f8fafc 100%);
  min-height: calc(100vh - 88px);
}

.mw-page {
  max-width: 1120px;
  margin: 0 auto;
}

.mw-title {
  margin: 0;
  font-family: var(--bm-font-display, "DM Serif Display", Georgia, serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--bm-color-navy, #262646);
  letter-spacing: -0.02em;
}

.mw-subtitle {
  margin: 0.45rem 0 0;
  max-width: 46rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: #6b7280;
}

.mw-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
  margin: 1.35rem 0 1.25rem;
}

.mw-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 1.1rem 1.15rem 1.15rem;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.mw-card-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9ca3af;
  margin-bottom: 0.45rem;
}

.mw-card-value {
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--bm-color-navy, #262646);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.mw-card-meta {
  margin-top: 0.45rem;
  font-size: 0.82rem;
  color: #6b7280;
}

.mw-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
}

.mw-pill-ok {
  background: #dcfce7;
  color: #166534;
}

.mw-pill-warn {
  background: #fef3c7;
  color: #92400e;
}

.mw-pill-muted {
  background: #f3f4f6;
  color: #6b7280;
}

.mw-pill-reserved {
  background: #ede9fe;
  color: #5b21b6;
}

.mw-pill-charged,
.mw-pill-paid {
  background: #dcfce7;
  color: #166534;
}

.mw-pill-released {
  background: #f3f4f6;
  color: #6b7280;
}

.mw-grid-2 {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.mw-panel {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
  overflow: hidden;
}

.mw-panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.25rem 0.85rem;
}

.mw-panel-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--bm-color-navy, #262646);
}

.mw-panel-hint {
  font-size: 0.78rem;
  color: #9ca3af;
  white-space: nowrap;
}

.mw-panel-body {
  padding: 0 1.25rem 1.25rem;
}

.mw-amount-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}

.mw-amount-btn {
  border: 1px solid #e5e7eb;
  background: #fff;
  border-radius: 12px;
  padding: 0.95rem 0.75rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.mw-amount-btn:hover {
  border-color: #99f6e4;
}

.mw-amount-btn.is-selected {
  background: #ecfeff;
  border-color: var(--bm-color-teal, #2dd4bf);
  box-shadow: 0 0 0 1px var(--bm-color-teal, #2dd4bf);
}

.mw-amount-btn-value {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--bm-color-navy, #262646);
}

.mw-amount-btn-label {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.72rem;
  color: #9ca3af;
  font-weight: 600;
}

.mw-field-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: #6b7280;
  margin-bottom: 0.35rem;
}

.mw-input {
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 0.65rem 0.85rem;
  font-size: 0.95rem;
  color: var(--bm-color-navy, #262646);
  background: #fff;
}

.mw-input:focus {
  outline: none;
  border-color: var(--bm-color-teal, #2dd4bf);
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.18);
}

.mw-breakdown {
  width: 100%;
  margin: 1rem 0 0;
  border-collapse: collapse;
}

.mw-breakdown td {
  padding: 0.35rem 0;
  font-size: 0.9rem;
  color: #6b7280;
}

.mw-breakdown td:last-child {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.mw-breakdown .mw-total td {
  padding-top: 0.65rem;
  border-top: 1px solid #e5e7eb;
  font-weight: 700;
  color: var(--bm-color-navy, #262646);
}

.mw-breakdown .mw-added td {
  font-weight: 700;
  color: #15803d;
}

.mw-note {
  margin-top: 0.85rem;
  background: #f9fafb;
  border-radius: 10px;
  padding: 0.75rem 0.9rem;
  font-size: 0.85rem;
  color: #6b7280;
  line-height: 1.45;
}

.mw-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
}

.mw-btn-primary {
  background: var(--bm-color-teal, #14b8a6);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 0.7rem 1.15rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.mw-btn-primary:hover:not(:disabled) {
  background: #0d9488;
  color: #fff;
}

.mw-btn-primary:disabled,
.mw-btn-secondary:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.mw-btn-secondary {
  background: #fff;
  color: var(--bm-color-navy, #262646);
  border: 1px solid #d1d5db;
  border-radius: 10px;
  padding: 0.7rem 1.15rem;
  font-size: 0.88rem;
  font-weight: 600;
}

.mw-btn-secondary:hover:not(:disabled) {
  background: #f9fafb;
}

.mw-pay-hint {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: #9ca3af;
}

.mw-cost-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.mw-cost-row {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.mw-cost-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}

.mw-cost-icon.esign { background: linear-gradient(135deg, #5b21b6 0%, #7c3aed 100%); }
.mw-cost-icon.bank { background: linear-gradient(135deg, #0d9488 0%, #14b8a6 100%); }
.mw-cost-icon.minty { background: linear-gradient(135deg, #0e7490 0%, #06b6d4 100%); }
.mw-cost-icon.aml { background: linear-gradient(135deg, #6b7280 0%, #9ca3af 100%); }

.mw-cost-body { flex: 1; min-width: 0; }

.mw-cost-top {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  align-items: baseline;
}

.mw-cost-name {
  font-weight: 700;
  color: var(--bm-color-navy, #262646);
  font-size: 0.95rem;
}

.mw-cost-price {
  font-weight: 700;
  color: var(--bm-color-navy, #262646);
  font-size: 0.95rem;
  white-space: nowrap;
}

.mw-cost-desc {
  margin: 0.2rem 0 0;
  font-size: 0.82rem;
  color: #6b7280;
  line-height: 1.45;
}

.mw-alert-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.65rem;
  margin-bottom: 1rem;
}

.mw-alert-row .mw-input {
  width: 5.5rem;
}

.mw-switch {
  position: relative;
  width: 42px;
  height: 24px;
  flex-shrink: 0;
}

.mw-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.mw-switch-slider {
  position: absolute;
  inset: 0;
  background: #d1d5db;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s;
}

.mw-switch-slider::before {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.15s;
}

.mw-switch input:checked + .mw-switch-slider {
  background: var(--bm-color-teal, #14b8a6);
}

.mw-switch input:checked + .mw-switch-slider::before {
  transform: translateX(18px);
}

.mw-spend-row {
  display: grid;
  grid-template-columns: 8.5rem 1fr 4.5rem;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 0.65rem;
}

.mw-spend-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: #374151;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mw-spend-bar {
  height: 12px;
  border-radius: 999px;
  background: #f3f4f6;
  overflow: hidden;
  display: flex;
}

.mw-spend-seg.esign { background: #7c3aed; }
.mw-spend-seg.bank { background: #14b8a6; }

.mw-spend-total {
  text-align: right;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--bm-color-navy, #262646);
  font-variant-numeric: tabular-nums;
}

.mw-legend {
  display: flex;
  gap: 1rem;
  margin-top: 0.75rem;
  font-size: 0.78rem;
  color: #6b7280;
}

.mw-legend span::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 0.4rem;
  vertical-align: middle;
}

.mw-legend .esign::before { background: #7c3aed; }
.mw-legend .bank::before { background: #14b8a6; }

.mw-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.mw-filter {
  border: none;
  background: transparent;
  color: #6b7280;
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  font-size: 0.82rem;
  font-weight: 600;
}

.mw-filter.is-active {
  background: #ede9fe;
  color: #5b21b6;
}

.mw-table {
  width: 100%;
  border-collapse: collapse;
}

.mw-table th {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #9ca3af;
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid #e5e7eb;
  white-space: nowrap;
}

.mw-table td {
  padding: 0.75rem;
  font-size: 0.88rem;
  color: #4b5563;
  border-bottom: 1px solid #f3f4f6;
  vertical-align: middle;
}

.mw-table tr:last-child td { border-bottom: none; }

.mw-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 0.45rem;
  vertical-align: middle;
}

.mw-dot.esign { background: #7c3aed; }
.mw-dot.bank { background: #14b8a6; }
.mw-dot.minty { background: #06b6d4; }
.mw-dot.topup { background: #14b8a6; }

.mw-amount-neg { color: #4b5563; }
.mw-amount-pos { color: #15803d; font-weight: 600; }
.mw-amount-hold { color: #6b7280; }
.mw-balance-col {
  font-weight: 700;
  color: var(--bm-color-navy, #262646);
  font-variant-numeric: tabular-nums;
}

.mw-empty {
  padding: 1.5rem;
  text-align: center;
  color: #9ca3af;
  font-size: 0.9rem;
}

.mw-requests {
  margin-bottom: 1rem;
}

@media (max-width: 991px) {
  .mw-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mw-grid-2 { grid-template-columns: 1fr; }
}

@media (max-width: 575px) {
  .mw-summary { grid-template-columns: 1fr; }
  .mw-amount-grid { grid-template-columns: 1fr; }
  .mw-spend-row { grid-template-columns: 1fr; gap: 0.25rem; }
  .mw-page-wrap { padding: 1rem; }
}
