.charge-codes-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cc-status-panel {
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 10px;
  padding: 12px;
  background: linear-gradient(120deg, rgba(37, 99, 235, 0.05), rgba(14, 165, 233, 0.04));
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
}

.cc-status-panel__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.cc-status-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.cc-status-message {
  margin: 6px 0 10px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.04);
  font-size: 12px;
  color: var(--fg, #0f172a);
}

.cc-status-message.success {
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.35);
  color: #166534;
}

.cc-status-message.error {
  background: rgba(248, 113, 113, 0.18);
  border-color: rgba(248, 113, 113, 0.35);
  color: #b91c1c;
}

.cc-status-message:empty {
  display: none;
}

.cc-status-board {
  display: grid;
  gap: 8px;
}

.cc-status-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
  padding: 10px 12px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 8px;
  background: rgba(248, 250, 252, 0.8);
}

.cc-status-card h5 {
  margin: 0;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cc-status-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  text-transform: uppercase;
}

.cc-status-chip.ok {
  background: rgba(34, 197, 94, 0.12);
  color: #166534;
  border-color: rgba(34, 197, 94, 0.35);
}

.cc-status-chip.stale {
  background: rgba(234, 179, 8, 0.15);
  color: #b45309;
  border-color: rgba(234, 179, 8, 0.35);
}

.cc-status-chip.missing {
  background: rgba(248, 113, 113, 0.18);
  color: #b91c1c;
  border-color: rgba(248, 113, 113, 0.35);
}

.cc-status-meta {
  font-size: 12px;
  color: var(--muted, #475569);
  line-height: 1.4;
}

.cc-status-path {
  font-family: var(--mono, "SFMono-Regular", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);
  word-break: break-all;
  color: #0f172a;
}

.charge-code-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.cc-primary {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cc-label {
  font-weight: 600;
  font-size: 13px;
}

.cc-primary-inputs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.cc-primary-inputs input {
  min-width: 200px;
  flex: 1 1 220px;
  font-family: inherit;
  font-size: 15px;
}

.cc-primary-actions {
  display: flex;
  gap: 8px;
}

.cc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.cc-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
}

.cc-field input {
  font-size: 15px;
  padding: 8px 10px;
}

.cc-field input[readonly] {
  background-color: rgba(148, 163, 184, 0.12);
  color: inherit;
}

.price-editable.price-required {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.25);
  background-color: rgba(254, 226, 226, 0.35);
}

.price-editable.price-required::placeholder {
  color: #b91c1c;
}

.cc-checkbox-row {
  display: flex;
  align-items: center;
}

.checkbox-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14px;
}

.cc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

#cc-btn-download {
  margin-left: auto;
}

.cc-copy-indicator {
  align-self: flex-start;
  margin-top: 4px;
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid #95d5a4;
  background-color: #e8f8ec;
  color: #0f5132;
  font-size: 13px;
  font-weight: 500;
  max-width: 600px;
}

.cc-copy-indicator.info {
  border-color: #8ecae6;
  background-color: #e6f2fb;
  color: #0b4a5c;
}

.cc-status {
  min-height: 40px;
  padding: 12px;
  border-radius: 8px;
  background-color: rgba(59, 130, 246, 0.1);
  color: #1e3a8a;
  font-size: 14px;
  white-space: pre-line;
}

.cc-status.error {
  background-color: rgba(239, 68, 68, 0.12);
  color: #7f1d1d;
}

.cc-status.success {
  background-color: rgba(22, 163, 74, 0.12);
  color: #065f46;
}

.cc-status:empty {
  display: none;
}

.cc-hint {
  font-size: 13px;
  color: #1e3a8a;
}

.cc-options {
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  border-radius: 8px;
  background-color: rgba(148, 163, 184, 0.08);
}

.cc-option-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cc-option-list button {
  text-align: left;
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid rgba(51, 65, 85, 0.2);
  background-color: #f8fafc;
  font-size: 14px;
  line-height: 1.3;
}

.cc-option-list button:hover {
  background-color: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.6);
}

.cc-option-list button strong {
  display: block;
  font-weight: 600;
}

.cc-option-list button span {
  font-size: 12px;
  color: var(--muted, #64748b);
}

.cc-queue {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 8px;
  background-color: rgba(148, 163, 184, 0.08);
}

.cc-queue-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.cc-queue-header strong {
  font-size: 14px;
}

.cc-queue-actions {
  display: flex;
  gap: 8px;
}

.cc-queue-email {
  white-space: nowrap;
}

.cc-queue-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cc-queue-entry {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background-color: #f8fafc;
}

.cc-queue-entry-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
}

.cc-queue-entry-details strong {
  font-size: 14px;
}

.cc-queue-entry-meta {
  font-size: 12px;
  color: var(--muted, #64748b);
}

.cc-queue-entry-actions {
  display: flex;
  align-items: flex-start;
}

.cc-queue-remove {
  padding: 4px 10px;
  font-size: 12px;
}
