.crm-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 0 0 24px;
  border-bottom: 1px solid #dce4ed;
  padding-bottom: 12px;
}
.crm-tabs a {
  padding: 9px 13px;
  border-radius: 8px;
  color: #40536a;
  text-decoration: none;
  font-weight: 600;
}
.crm-tabs a[aria-current="page"],
.crm-tabs a:hover {
  background: #e6f2ee;
  color: #135c49;
}
.crm-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.crm-stats h2 {
  font-size: 34px;
  margin: 12px 0;
}
.crm-stats small {
  color: #526578;
}
.crm-stats a {
  font-size: 13px;
}
.crm-filter {
  margin-bottom: 20px;
}
.crm-filter-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px;
}
.crm-table-wrap {
  overflow-x: auto;
}
.crm-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}
.crm-table th {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
  background: #f7f9fc;
}
.crm-table td,
.crm-table th {
  padding: 15px 12px;
  border-bottom: 1px solid #e8edf3;
  vertical-align: top;
}
.crm-table a {
  color: #176953;
}
.crm-block {
  display: block;
  color: #64748b;
  margin-top: 5px;
}
.crm-board {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 4px 0 24px;
}
.crm-lane {
  flex: 0 0 250px;
  background: #eef3f6;
  border-radius: 12px;
  padding: 14px;
}
.crm-lane h3 {
  margin: 0 0 6px;
}
.crm-lane > small {
  display: block;
  color: #66768a;
  min-height: 40px;
}
.crm-deal {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
  padding: 16px;
  text-decoration: none;
  color: #183d35;
  border: 1px solid #dce7e2;
}
.crm-deal:hover {
  border-color: #238769;
}
.crm-deal small {
  color: #64748b;
}
.crm-profile {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  overflow-wrap: anywhere;
}
.crm-profile dt {
  font-size: 12px;
  color: #64748b;
  margin-bottom: 5px;
}
.crm-profile dd {
  margin: 0;
}
.crm-filter .toolbar {
  margin-top: 16px;
  align-items: end;
}
.crm-filter .toolbar .field {
  margin: 0;
}
.crm-table .empty {
  padding: 28px;
}
#crm-form-error {
  color: #a52727;
}
.crm-tabs a:focus-visible,
.crm-deal:focus-visible {
  outline: 3px solid #2e8a70;
  outline-offset: 3px;
}
@media (max-width: 900px) {
  .crm-stats {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 550px) {
  .crm-stats,
  .crm-profile {
    grid-template-columns: 1fr;
  }
  .crm-tabs {
    gap: 2px;
  }
  .crm-tabs a {
    font-size: 12px;
    padding: 9px;
  }
  .crm-filter-fields {
    grid-template-columns: 1fr;
  }
}
