.vizo-finance { max-width: 1900px; }
.vizo-finance-shortcuts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; }
.vizo-finance-shortcuts a { display: flex; align-items: center; gap: .8rem; padding: .9rem 1rem; color: inherit; border: 1px solid var(--vz-border-color); border-radius: 12px; background: var(--vz-card-bg-custom); box-shadow: 0 5px 18px rgba(29, 34, 58, .04); }
.vizo-finance-shortcuts a:hover { border-color: rgba(114,84,243,.4); transform: translateY(-1px); }
.vizo-finance-shortcuts i { display: grid; flex: 0 0 38px; height: 38px; place-items: center; color: #7254f3; border-radius: 10px; background: rgba(114,84,243,.1); font-size: 1.2rem; }
.vizo-finance-shortcuts span, .vizo-finance-shortcuts strong, .vizo-finance-shortcuts small { display: block; }
.vizo-finance-shortcuts small { margin-top: 2px; color: var(--vz-secondary-color); }
.vizo-client-balance-table td { white-space: nowrap; }
.vizo-finance-stat { border: 1px solid rgba(114,84,243,.16); }
.vizo-finance-stat .card-body { display: grid; gap: .35rem; }
.vizo-finance-stat span, .vizo-finance-stat small { color: var(--vz-secondary-color); }
.vizo-finance-stat strong { color: #7254f3; font-size: 1.45rem; }
.vizo-finance-stat.is-paid strong { color: #20a779; }
.vizo-finance-stat.is-due strong { color: #e85959; }
.vizo-service-card { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 100%; padding: 1rem; border: 1px solid var(--vz-border-color); border-radius: 14px; }
.vizo-service-card > div:first-child { min-width: 0; }
.vizo-service-card strong, .vizo-service-card span { display: block; }
.vizo-service-card span { overflow: hidden; color: var(--vz-secondary-color); font-size: .8rem; text-overflow: ellipsis; white-space: nowrap; }
.vizo-service-card.is-inactive { opacity: .58; }
.vizo-finance-item { display: grid; grid-template-columns: 1.05fr 1.1fr 1.35fr 90px 130px 40px; align-items: end; gap: .65rem; padding: .8rem; margin-bottom: .7rem; border: 1px solid var(--vz-border-color); border-radius: 12px; background: var(--vz-tertiary-bg); }
.vizo-remove-label { display: none; }
.vizo-finance-total { padding: 1rem 1.2rem; color: var(--vz-secondary-color); border-radius: 12px; background: rgba(114,84,243,.08); text-align: right; }
.vizo-finance-total strong { color: var(--vz-heading-color); font-size: 1.25rem; }
.vizo-project-balance { display: grid; gap: .3rem; padding: 1rem; border-radius: 14px; background: var(--vz-tertiary-bg); }
.vizo-project-modal .modal-content > form { display: flex; min-height: 0; max-height: calc(100vh - 3.5rem); flex: 1 1 auto; flex-direction: column; overflow: hidden; }
.vizo-project-modal .modal-body { min-height: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; }
@media (max-width: 1199.98px) { .vizo-finance-item { grid-template-columns: repeat(2, minmax(0,1fr)); } .vizo-finance-item .quitarItemFinanzas { grid-column: 2; justify-self: end; } }
@media (max-width: 767.98px) {
  .vizo-finance-shortcuts { grid-template-columns: 1fr; }
  .vizo-project-modal .modal-dialog { width: auto; max-width: none; height: calc(100% - 1rem); min-height: 0; margin: .5rem; }
  .vizo-project-modal .modal-content { height: 100%; border-radius: 16px; }
  .vizo-project-modal .modal-content > form { height: 100%; max-height: none; }
  .vizo-project-modal .modal-header { align-items: flex-start; padding: .9rem 1rem; }
  .vizo-project-modal .modal-header > div { min-width: 0; padding-right: .5rem; }
  .vizo-project-modal .modal-title { font-size: 1rem; }
  .vizo-project-modal .modal-body { padding: 1rem; }
  .vizo-project-modal .modal-footer { display: grid; grid-template-columns: 1fr 1fr; gap: .65rem; padding: .75rem 1rem; }
  .vizo-project-modal .modal-footer > * { width: 100%; margin: 0; }
  .vizo-project-modal .form-control,
  .vizo-project-modal .form-select { min-height: 44px; font-size: 16px; }
  .vizo-project-modal textarea.form-control { min-height: 76px; }
  .vizo-project-modal .form-switch { width: 100%; padding: .75rem .8rem .75rem 3rem; margin: 0 !important; border-radius: 10px; background: var(--vz-tertiary-bg); }
}
@media (max-width: 575.98px) {
  .vizo-finance-items-heading { align-items: stretch !important; flex-direction: column; gap: .65rem; }
  .vizo-finance-items-heading .btn { width: 100%; min-height: 42px; }
  .vizo-finance-item { grid-template-columns: 1fr; gap: .75rem; padding: .85rem; }
  .vizo-finance-item .form-label { margin-bottom: .3rem; }
  .vizo-finance-item .quitarItemFinanzas { display: inline-flex; width: 100%; min-height: 42px; grid-column: 1; align-items: center; justify-content: center; gap: .4rem; }
  .vizo-remove-label { display: inline; }
  .vizo-finance-total { display: flex; padding: .85rem 1rem; align-items: center; justify-content: space-between; gap: .75rem; text-align: left; }
  .vizo-finance-total strong { font-size: 1.1rem; white-space: nowrap; }
}
@media (max-width: 380px) {
  .vizo-project-modal .modal-dialog { height: 100%; margin: 0; }
  .vizo-project-modal .modal-content { border: 0; border-radius: 0; }
  .vizo-project-modal .modal-header p { display: none; }
  .vizo-project-modal .modal-footer { grid-template-columns: 1fr; }
}
