.cash-view {
  display: block;
}

.cash-page {
  display: grid;
  gap: 20px;
}

.cash-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}

.cash-head__eyebrow {
  margin: 0 0 8px;
  color: #6366f1;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.cash-head__title {
  margin: 0;
  font-size: 30px;
  line-height: 1.05;
  color: #0f172a;
}

.cash-head__subtitle {
  margin: 8px 0 0;
  max-width: 760px;
  color: #64748b;
  font-size: 14px;
}

.cash-head__actions {
  display: flex;
  gap: 12px;
}

.cash-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 11px 16px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  transition: .18s ease;
}

.cash-btn svg {
  width: 16px;
  height: 16px;
}

.cash-btn--primary {
  background: #111827;
  color: #fff;
}

.cash-btn--primary:hover {
  background: #0f172a;
}

.cash-btn--secondary {
  background: #fff;
  color: #111827;
  border-color: #cbd5e1;
}

.cash-btn--ghost {
  background: #f8fafc;
  color: #334155;
  border-color: #e2e8f0;
}

.cash-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}

.cash-panel,
.cash-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .04);
}

.cash-card {
  padding: 18px;
}

.cash-card__label,
.cash-card__mini-label {
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.cash-card__value {
  margin-top: 10px;
  color: #0f172a;
  font-size: 30px;
  font-weight: 800;
}

.cash-card__hint {
  margin-top: 8px;
  color: #94a3b8;
  font-size: 13px;
}

.cash-card__split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 14px;
}

.cash-card__mini-value {
  margin-top: 6px;
  color: #0f172a;
  font-size: 21px;
  font-weight: 800;
}

.cash-panel {
  padding: 18px;
}

.cash-filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  align-items: end;
}

.cash-field {
  display: grid;
  gap: 7px;
}

.cash-field--wide {
  grid-column: 1 / -1;
}

.cash-label {
  color: #334155;
  font-size: 13px;
  font-weight: 700;
}

.cash-input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  background: #fff;
  color: #0f172a;
  font-size: 14px;
}

.cash-input--textarea {
  min-height: 110px;
  resize: vertical;
}

.cash-input:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, .14);
}

.cash-filters__actions,
.cash-form__actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.cash-table-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
}

.cash-table-head__title {
  margin: 0;
  font-size: 20px;
  color: #0f172a;
}

.cash-table-head__subtitle {
  margin: 6px 0 0;
  color: #64748b;
  font-size: 14px;
}

.cash-table-wrap {
  overflow-x: auto;
}

.cash-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 980px;
}

.cash-table th,
.cash-table td {
  padding: 14px 12px;
  border-bottom: 1px solid #e2e8f0;
  text-align: left;
  vertical-align: top;
  font-size: 14px;
}

.cash-table th {
  color: #64748b;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.cash-table__right {
  text-align: right !important;
}

.cash-table__amount {
  font-weight: 800;
  color: #0f172a;
}

.cash-table__notes {
  max-width: 260px;
  white-space: normal;
}

.cash-table__empty {
  padding: 34px 16px;
  text-align: center !important;
  color: #64748b;
}

.cash-table__actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.cash-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: #eef2ff;
  color: #4338ca;
  font-size: 12px;
  font-weight: 700;
}

.cash-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #fff;
  color: #334155;
  cursor: pointer;
}

.cash-icon-btn svg {
  width: 16px;
  height: 16px;
}

.cash-icon-btn--danger {
  color: #b91c1c;
  border-color: #fecaca;
  background: #fff5f5;
}

.cash-modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 23, 42, .55);
}

.cash-modal[hidden] {
  display: none !important;
}

.cash-modal__dialog {
  width: min(920px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, .22);
}

.cash-modal__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 22px 22px 0;
}

.cash-modal__title {
  margin: 0;
  color: #0f172a;
  font-size: 22px;
}

.cash-modal__subtitle {
  margin: 6px 0 0;
  color: #64748b;
  font-size: 14px;
}

.cash-modal__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  color: #334155;
  cursor: pointer;
}

.cash-form {
  padding: 22px;
}

.cash-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.cash-form__error {
  min-height: 22px;
  margin-top: 12px;
  color: #b91c1c;
  font-size: 14px;
  font-weight: 700;
}

@media (max-width: 860px) {
  .cash-form__grid,
  .cash-card__split {
    grid-template-columns: 1fr;
  }
}

.cash-card__account-breakdown{display:flex;gap:12px;flex-wrap:wrap;margin-top:12px;font-size:12px;color:var(--muted-foreground,#64748b)}
.cash-pill--bucket{background:rgba(15,23,42,.08);color:#0f172a}
