.m50c-cash-tabs .b24-tab-buttons {
  margin-bottom: 16px;
}

.m50c-cash-create-actions {
  align-items: flex-start;
  flex-wrap: wrap;
}

.m50c-action-with-reason {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  max-width: 250px;
}

.m50c-action-with-reason small,
.m50c-prerequisite-note {
  color: #8a5a17;
  font-size: .75rem;
  line-height: 1.35;
  max-width: 260px;
}

.m50c-cash-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 0 16px 16px;
}

.m50c-cash-summary > span {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid #dbe4f0;
  border-radius: 12px;
  background: #f8fbff;
}

.m50c-cash-summary strong {
  color: #0f766e;
  font-size: 1.15rem;
}

.m50c-cash-summary small {
  color: #64748b;
}

.m50c-receipt-filters {
  padding: 0 16px 16px;
}

.m50c-receipt-source {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 700;
  white-space: nowrap;
}

.m50c-receipt-source.customer {
  color: #1d4ed8;
  background: #dbeafe;
}

.m50c-receipt-source.supplier {
  color: #047857;
  background: #d1fae5;
}

.m50c-receipt-source.employee {
  color: #7c3aed;
  background: #ede9fe;
}

.m50c-on-behalf-button {
  border-style: dashed;
}

.m50c-employee-picker {
  width: min(720px, calc(100vw - 32px));
}

@media (max-width: 900px) {
  .m50c-cash-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .m50c-cash-summary {
    grid-template-columns: 1fr;
  }

  .m50c-action-with-reason,
  .m50c-action-with-reason .btn {
    width: 100%;
    max-width: none;
  }
}
