.pimm-customers-shell {
  width: 100%;
  max-width: 1480px;
  margin: 0 auto;
  padding: 14px;
  box-sizing: border-box;
}

.pimm-customers-hero {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 14px;
  padding: 18px;
  border: 1px solid #d9e2ef;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.pimm-customers-kicker {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0f766e;
  font-weight: 800;
  margin-bottom: 6px;
}

.pimm-customers-hero h1 {
  margin: 0 0 7px 0;
  font-size: 28px;
  line-height: 1.15;
  color: #142033;
}

.pimm-customers-hero p {
  margin: 0;
  color: #667085;
  max-width: 760px;
  line-height: 1.45;
}

.pimm-customers-context {
  min-width: 210px;
  display: grid;
  align-content: center;
  padding: 12px 14px;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 13px;
  background: rgba(15, 118, 110, 0.08);
  color: #0f766e;
}

.pimm-customers-warning {
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px dashed #d9e2ef;
  border-radius: 12px;
  background: #ffffff;
  color: #667085;
  font-size: 13px;
}

.pimm-customers-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.pimm-customers-card {
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-height: 142px;
  padding: 15px;
  text-decoration: none;
  border: 1px solid #d9e2ef;
  border-radius: 14px;
  color: #142033;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.035);
}

.pimm-customers-card span {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #0f766e;
  font-weight: 900;
}

.pimm-customers-card strong {
  font-size: 17px;
}

.pimm-customers-card small {
  color: #667085;
  line-height: 1.4;
}

.pimm-customers-card b {
  margin-top: auto;
  align-self: flex-start;
  padding: 6px 9px;
  border-radius: 999px;
  background: #f4f6f8;
  border: 1px solid #d9e2ef;
  color: #667085;
  font-size: 11px;
}

.pimm-customers-status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.pimm-customers-badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  border: 1px solid #d9e2ef;
  background: #ffffff;
  color: #667085;
}

.pimm-customers-badge.warning {
  border-color: rgba(180, 83, 9, 0.24);
  background: rgba(255, 251, 235, 0.95);
  color: #92400e;
}

.pimm-customers-badge.muted {
  background: #f4f6f8;
}

.pimm-customers-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 14px;
  margin-top: 14px;
}

.pimm-customers-panel,
.pimm-customers-placeholder {
  padding: 16px;
  border: 1px solid #d9e2ef;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.035);
}

.pimm-customers-panel h2,
.pimm-customers-placeholder h2 {
  margin: 0 0 8px;
  font-size: 17px;
  color: #142033;
}

.pimm-customers-panel p,
.pimm-customers-placeholder p {
  margin: 0;
  color: #667085;
}

.pimm-customers-field-preview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.pimm-customers-field-preview span {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 7px 9px;
  border: 1px solid #d9e2ef;
  border-radius: 10px;
  background: #f4f6f8;
  color: #142033;
  font-size: 12px;
  font-weight: 800;
}

.pimm-customers-placeholder {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 14px;
}

.pimm-customers-placeholder a {
  align-self: center;
  padding: 9px 12px;
  border-radius: 999px;
  background: #0f766e;
  color: #ffffff;
  text-decoration: none;
  font-weight: 800;
  font-size: 12px;
  white-space: nowrap;
}

.pimm-customers-mini-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.pimm-customers-mini-nav a {
  padding: 8px 10px;
  border: 1px solid #d9e2ef;
  border-radius: 999px;
  text-decoration: none;
  color: #142033;
  background: #ffffff;
  font-size: 12px;
  font-weight: 800;
}

.pimm-customers-mini-nav a.active {
  border-color: #0f766e;
  background: rgba(15, 118, 110, 0.10);
  color: #0f766e;
}

@media (max-width: 1000px) {
  .pimm-customers-grid,
  .pimm-customers-detail-grid,
  .pimm-customers-field-preview {
    grid-template-columns: 1fr;
  }

  .pimm-customers-hero,
  .pimm-customers-placeholder {
    flex-direction: column;
  }
}
