.special-case-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.special-case-summary-item {
  border: 1px solid var(--ui-line);
  border-radius: 10px;
  background: var(--ui-soft);
  padding: 14px 16px;
}

.special-case-summary-item span {
  display: block;
  color: var(--ui-muted);
  font-size: 12px;
  font-weight: 600;
}

.special-case-summary-item strong {
  display: block;
  margin-top: 5px;
  color: var(--ui-text);
  font-size: 24px;
  line-height: 1;
}

.special-case-notice {
  margin-bottom: 16px;
  border-left: 4px solid var(--ui-primary);
  background: var(--ui-primary-soft);
  color: var(--ui-text);
  padding: 12px 14px;
  line-height: 1.6;
}

.special-case-table { min-width: 1220px; }
.special-case-table th { white-space: nowrap; }
.special-case-table td { vertical-align: top; }
.special-case-name { min-width: 190px; }

.special-case-customer {
  min-width: 170px;
  color: var(--ui-muted);
  line-height: 1.55;
}

.special-case-customer-pill {
  display: inline-flex;
  align-items: center;
  margin-bottom: 7px;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--ui-success-soft);
  color: var(--ui-success);
  font-size: 12px;
  font-weight: 600;
}

.special-case-customer-pill.selected {
  background: var(--ui-warning-soft);
  color: var(--ui-warning);
}

.special-case-customer-edit-button {
  margin-top: 10px;
}

.special-case-customer-editor {
  width: 280px;
  margin-top: 10px;
  padding: 11px;
  border: 1px solid var(--ui-primary-line);
  border-radius: 9px;
  background: var(--ui-soft);
}

.special-case-customer-mode,
.special-case-customer-option {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  cursor: pointer;
}

.special-case-customer-mode + .special-case-customer-mode {
  margin-top: 6px;
}

.special-case-customer-options {
  display: grid;
  gap: 7px;
  max-height: 190px;
  margin-top: 10px;
  padding: 9px;
  overflow-y: auto;
  border: 1px solid var(--ui-line);
  border-radius: 7px;
  background: var(--lp-surface);
}

.special-case-customer-options.hidden {
  display: none;
}

.special-case-customer-empty {
  color: #94a3b8;
  font-size: 12px;
}

.special-case-customer-editor-actions {
  display: flex;
  gap: 7px;
  margin-top: 10px;
}

.special-case-name strong {
  display: block;
  color: var(--ui-text);
  font-size: 15px;
  line-height: 1.4;
}

.special-case-name code {
  display: inline-block;
  margin-top: 6px;
  color: var(--ui-muted);
  font-size: 11px;
  overflow-wrap: anywhere;
}

.special-case-detail {
  min-width: 250px;
  color: var(--ui-muted);
  line-height: 1.65;
}

.special-case-detail b {
  display: block;
  margin-bottom: 3px;
  color: var(--ui-text);
}

.special-case-scope {
  margin-top: 7px;
  color: var(--ui-muted);
  font-size: 12px;
}

.special-case-action {
  min-width: 118px;
  text-align: right;
}

.special-case-action .btn-primary,
.special-case-action .btn-danger {
  min-width: 88px;
}

@media (max-width: 760px) {
  .special-case-summary { grid-template-columns: 1fr; }
}
