/* ============================================
   Wallet Budget Module
   Prefix: wb-
   ============================================ */
.main-content-body {
  background: var(--bg-soft, #f4f7fb);

}


.main-content-body > .main-body {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
}

.main-body .btn-tool-default:not(.btn-lg) {
  min-height: 36px !important;
  padding-top: 0.35rem;
  padding-bottom: 0.35rem;
  font-size: 0.9rem;
}

.main-body .btn-tool-default.btn-sm {
  min-height: 32px !important;
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
  font-size: 0.85rem;
}

.main-body .wallet-icon-btn {
  width: 34px;
  height: 34px;
  font-size: 0.85rem;
}

.wb-card {
  border-radius: 16px;
}

.wb-row {
  display: grid;
  grid-template-columns: 1fr 140px 140px 140px;
  align-items: center;
  width: 100%;
}

.wb-row--dashboard {
  grid-template-columns: minmax(0, 1fr) repeat(4, minmax(90px, 140px));
}

.wb-row--setup {
  grid-template-columns: 1fr 130px 145px 130px 130px 100px !important;
}

.wb-row--category {
  grid-template-columns: minmax(0, 1fr) 140px;
}

.wb-category-total {
  color: #ef4444;
  font-weight: 600;
}

.wb-category-total__value {
  font-size: 1.05rem;
  font-weight: 700;
}

.wb-col {
  text-align: right;
  padding-right: 4px;
  font-variant-numeric: tabular-nums;
}

.wb-col__label {
  font-size: 0.8rem;
  color: #64748b;
  margin-bottom: 2px;
  display: none;
}

@media (min-width: 768px) {
  .wb-col__label {
    display: block;
  }
}

.wb-col__value {
  font-weight: 600;
}

.wb-text-green {
  color: #10b981 !important;
  font-weight: 700 !important;
}

.wb-text-red {
  color: #ef4444 !important;
}

.wb-text-yellow {
  color: #d97706 !important;
  font-weight: 700 !important;
}

.wb-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 4px;
  vertical-align: middle;
}

.wb-dot--green {
  background: #10b981;
}

.wb-dot--red {
  background: #ef4444;
}

.wb-dot--yellow {
  background: #f59e0b;
}

.wb-dot--blue {
  background: #3b82f6;
}

.wb-dot--dark {
  background: #1e293b;
}

.wb-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  flex-shrink: 0;
}

.wb-icon--primary {
  width: 42px;
  height: 42px;
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
}

.wb-icon--sm {
  width: 36px;
  height: 36px;
}

.wb-icon--circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.wb-icon--success {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

.wb-icon--purple {
  background: #f3e8ff;
  color: #8b5cf6;
}

.wb-accordion-btn {
  padding: 1rem 1.25rem;
  background: #fff !important;
  box-shadow: none !important;
}

.wb-accordion-btn::after {
  display: none !important;
}

.wb-accordion-btn:focus {
  box-shadow: none !important;
}

.wb-accordion-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 36px;
  padding: 0;
  border: 0;
  background: transparent;
  flex-shrink: 0;
}

.wb-accordion-toggle:not(.collapsed) .wb-toggle {
  transform: rotate(90deg);
}

.wb-toggle {
  transition: transform 0.2s ease;
  font-size: 0.9rem;
  color: #94a3b8;
  width: 20px;
  flex-shrink: 0;
}

.wb-name-link {
  color: inherit;
  text-decoration: none;
}

.wb-name-link:hover {
  color: #2563eb;
  text-decoration: underline;
}

.wb-header {
  font-size: 0.875rem;
  color: #64748b;
  font-weight: 500;
  padding: 0 1.25rem 8px;
  display: none;
}

@media (min-width: 768px) {
  .wb-header {
    display: grid;
  }
}

.wb-sub-row {
  padding: 0.85rem 1.25rem 0.85rem 3.5rem;
}

@media (max-width: 991.98px) {
  .wb-row--setup {
    grid-template-columns: 1fr !important;
    gap: 8px;
  }
}

@media (max-width: 767.98px) {
  .wb-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

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

  .wb-col {
    text-align: left;
    display: flex;
    justify-content: space-between;
    padding-right: 0;
  }

  .wb-col::before {
    content: attr(data-label);
    color: #64748b;
    font-size: 0.8rem;
    font-weight: 400;
  }

  .wb-sub-row {
    padding-left: 1.75rem;
  }

  .wb-header {
    display: none !important;
  }
}