/* Standalone, print-friendly stylesheet for the public invoice page.
   Deliberately light/neutral — this is a formal business document, not
   part of the dark admin theme or the space-themed marketing site. */

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 40px 20px;
  background: #f4f5f7;
  color: #1f2430;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  line-height: 1.5;
}

.invoice-wrap {
  max-width: 720px;
  margin: 0 auto;
}

.invoice-card {
  background: #ffffff;
  border: 1px solid #e2e4e9;
  border-radius: 10px;
  padding: 40px;
}

.invoice-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.invoice-head h1 {
  margin: 0 0 4px;
  font-size: 1.3rem;
}

.invoice-meta {
  margin: 0;
  color: #6b7280;
  font-size: 0.9rem;
}

.invoice-status {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: #eef0f4;
  color: #4b5160;
  white-space: nowrap;
}

.invoice-status-paid { background: #dff5e8; color: #1c7a43; }
.invoice-status-sent { background: #e8effc; color: #2a5cc9; }
.invoice-status-void { background: #f5e8e8; color: #a13a3a; }

.invoice-alert {
  padding: 12px 16px;
  border-radius: 8px;
  background: #e8effc;
  color: #2a5cc9;
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.invoice-alert-muted { background: #f0f1f4; color: #4b5160; }
.invoice-alert-error { background: #f5e8e8; color: #a13a3a; }

.invoice-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-bottom: 28px;
}

.invoice-info-grid p {
  margin: 2px 0 10px;
}

.invoice-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #9aa0ac;
}

.invoice-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  margin-bottom: 20px;
}

.invoice-table th {
  text-align: left;
  padding: 8px 10px;
  border-bottom: 2px solid #e2e4e9;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #9aa0ac;
}

.invoice-table td {
  padding: 10px;
  border-bottom: 1px solid #eef0f4;
}

.invoice-table tfoot td {
  border-bottom: none;
  padding: 6px 10px;
}

.invoice-total-row td {
  font-weight: 700;
  font-size: 1.05rem;
  border-top: 2px solid #e2e4e9;
  padding-top: 12px;
}

.invoice-notes {
  color: #4b5160;
  font-size: 0.9rem;
  background: #f8f9fb;
  padding: 14px 16px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.invoice-paid-notice {
  text-align: center;
  padding: 14px;
  border-radius: 8px;
  background: #dff5e8;
  color: #1c7a43;
  font-weight: 600;
}

.invoice-pay-btn {
  display: block;
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 8px;
  background: #1a1f2e;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}

.invoice-pay-btn:hover {
  background: #2a3145;
}

@media print {
  body { background: #fff; padding: 0; }
  .invoice-card { border: none; padding: 0; }
  .invoice-pay-btn { display: none; }
}
