.cf-class-page {
  display: grid;
  gap: 14px;
}

.cf-class-toolbar,
.cf-class-actions,
.cf-class-table-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
}

.cf-class-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cf-class-tabs button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  border: 1px solid var(--erp-border, #e5e7eb);
  border-radius: 10px;
  padding: 8px 12px;
  color: var(--erp-text, #172033);
  background: #fff;
  font-weight: 800;
}

.cf-class-tabs button.active {
  color: #fff;
  border-color: var(--erp-primary, #2563eb);
  background: var(--erp-primary, #2563eb);
}

.cf-class-tabs b {
  display: inline-flex;
  min-width: 26px;
  justify-content: center;
  padding: 1px 6px;
  border-radius: 999px;
  color: inherit;
  background: rgba(255, 255, 255, .18);
}

.cf-class-tabs button:not(.active) b {
  color: var(--erp-primary, #2563eb);
  background: color-mix(in srgb, var(--erp-primary, #2563eb) 9%, #fff);
}

.cf-class-search {
  flex: 1 1 300px;
  max-width: 430px;
}

.cf-class-actions > div:first-child {
  display: grid;
  gap: 2px;
}

.cf-class-card {
  overflow: hidden;
}

.cf-class-table-head {
  border-bottom: 1px solid var(--erp-border, #e5e7eb);
}

.cf-class-table-head label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
}

.cf-class-table th:first-child,
.cf-class-table td:first-child {
  width: 46px;
  text-align: center;
}

.cf-class-empty {
  padding: 34px !important;
  text-align: center !important;
  color: var(--erp-muted, #64748b);
}

.cf-class-badge {
  display: inline-flex;
  min-width: 86px;
  justify-content: center;
  padding: 5px 9px;
  border-radius: 999px;
  font-weight: 900;
}

.cf-class-badge.NONE {
  color: #64748b;
  background: #f1f5f9;
}

.cf-class-badge.OPERATING {
  color: #047857;
  background: #ecfdf5;
}

.cf-class-badge.INVESTING {
  color: #1d4ed8;
  background: #eff6ff;
}

.cf-class-badge.FINANCING {
  color: #7c2d12;
  background: #fff7ed;
}

.cf-class-suggestion {
  display: inline-flex;
  margin-bottom: 3px;
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--erp-primary, #2563eb);
  background: color-mix(in srgb, var(--erp-primary, #2563eb) 8%, #fff);
  font-size: .78rem;
  font-weight: 900;
}

.cf-class-suggestion.NONE {
  color: #64748b;
  background: #f1f5f9;
}

.cf-class-table small {
  display: block;
  max-width: 340px;
  color: var(--erp-muted, #64748b);
  line-height: 1.45;
}

@media (max-width: 820px) {
  .cf-class-toolbar,
  .cf-class-actions,
  .cf-class-table-head {
    align-items: stretch;
    flex-direction: column;
  }

  .cf-class-search {
    max-width: none;
  }
}
