/* Peppol Inbox styles — T1.1 */

.peppol-status-badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.peppol-status-validated_ok       { background:#dcfce7; color:#166534; }
.peppol-status-received_pending_review { background:#fef9c3; color:#854d0e; }
.peppol-status-rejected_schematron { background:#fee2e2; color:#991b1b; }
.peppol-status-rejected_parse     { background:#fee2e2; color:#991b1b; }
.peppol-status-rejected_manual    { background:#f1f5f9; color:#475569; }
.peppol-status-accepted           { background:#dbeafe; color:#1e40af; }

[data-theme="dark"] .peppol-status-validated_ok       { background:#14532d; color:#bbf7d0; }
[data-theme="dark"] .peppol-status-received_pending_review { background:#713f12; color:#fef9c3; }
[data-theme="dark"] .peppol-status-rejected_schematron { background:#7f1d1d; color:#fecaca; }
[data-theme="dark"] .peppol-status-rejected_parse     { background:#7f1d1d; color:#fecaca; }
[data-theme="dark"] .peppol-status-rejected_manual    { background:#1e293b; color:#cbd5e1; }
[data-theme="dark"] .peppol-status-accepted           { background:#1e3a8a; color:#bfdbfe; }

.peppol-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-surface, #fff);
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(15,23,42,0.05);
}
.peppol-table th, .peppol-table td {
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--color-border, #e2e8f0);
  font-size: 0.875rem;
}
.peppol-table th {
  background: var(--color-bg-muted, #f8fafc);
  font-weight: 600;
  color: var(--color-text-secondary, #475569);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 0.7rem;
}
.peppol-table tr:hover td { background: var(--color-bg-hover, #f1f5f9); cursor: pointer; }

.peppol-empty {
  background: var(--color-surface, #fff);
  padding: 3rem 1.5rem;
  text-align: center;
  border-radius: 0.5rem;
  color: var(--color-text-secondary, #64748b);
  box-shadow: 0 1px 2px rgba(15,23,42,0.05);
}

.peppol-detail-section { margin-top: 1.5rem; }
.peppol-detail-section h2 { font-size: 1rem; font-weight: 700; margin: 0 0 0.5rem 0; color: var(--color-text-primary,#1e293b); }

.peppol-kv {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 0.5rem 1rem;
  background: var(--color-surface,#fff);
  padding: 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
}
.peppol-kv dt { color: var(--color-text-secondary,#64748b); font-weight: 500; }
.peppol-kv dd { margin: 0; color: var(--color-text-primary,#1e293b); }

.peppol-errors {
  background: #fef2f2;
  border-left: 3px solid #b91c1c;
  padding: 1rem;
  border-radius: 0.25rem;
  font-size: 0.875rem;
  color: #7f1d1d;
}
.peppol-errors ul { margin: 0.5rem 0 0 1.25rem; padding: 0; }
.peppol-errors li { margin: 0.25rem 0; }
.peppol-errors code { background: rgba(127,29,29,0.1); padding: 0.05rem 0.3rem; border-radius: 0.25rem; font-size: 0.8rem; }
[data-theme="dark"] .peppol-errors { background:#450a0a; color:#fecaca; border-color:#fca5a5; }
[data-theme="dark"] .peppol-errors code { background: rgba(252,165,165,0.15); color:#fecaca; }

.peppol-actions { display: flex; gap: 0.5rem; margin-top: 1rem; }

.peppol-upload-modal {
  position: fixed; inset: 0; background: rgba(15,23,42,0.5); display: flex; align-items: center; justify-content: center; z-index: 1000;
}
.peppol-upload-modal__card {
  background: var(--color-surface,#fff); border-radius: 0.5rem; padding: 1.5rem; max-width: 480px; width: calc(100% - 2rem);
}
.peppol-upload-modal__card h2 { margin: 0 0 1rem 0; font-size: 1.125rem; font-weight: 700; }
.peppol-upload-modal__buttons { display: flex; justify-content: flex-end; gap: 0.5rem; margin-top: 1rem; }
