/* =====================================================
   Print/PDF styling – Amicare (navy + gold), clean
   ===================================================== */

@page { margin: 16mm; }

:root{
  --aq-navy: #132B5D;
  --aq-gold: #D8B26B;
  --aq-text: #0F172A;
  --aq-muted: rgba(15,23,42,.72);
  --aq-line: rgba(19,43,93,.14);
  --aq-soft: rgba(19,43,93,.06);
}

body{
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--aq-text);
  background: #fff;
}

.aq-report{ max-width: 900px; margin: 0 auto; }

/* Header */
.aq-report__head{
  display:flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;

  border-bottom: 2px solid var(--aq-line);
  padding-bottom: 10px;
  margin-bottom: 12px;
}

.aq-report__head h1{
  margin: 0;
  font-size: 22px;
  letter-spacing: -.2px;
  color: var(--aq-navy);
}

.aq-report__muted{
  margin: 6px 0 0;
  color: var(--aq-muted);
  font-size: 12px;
}

/* Buttons (screen only, hidden on print anyway) */
.aq-report__actions button{
  background: var(--aq-navy);
  color: #fff;
  border: 1px solid rgba(19,43,93,.12);
  border-radius: 12px;
  padding: 10px 12px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(15,23,42,.10);
}
.aq-report__actions button:hover{
  filter: brightness(.98);
}

/* Summary stats */
.aq-report__summary{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 10px;
  margin: 12px 0 18px;
}

.aq-stat{
  border: 1px solid var(--aq-line);
  border-radius: 14px;
  padding: 10px 12px;
  background: #fff;
}

.aq-stat .k{
  font-size: 12px;
  color: var(--aq-muted);
}

.aq-stat .v{
  font-size: 16px;
  font-weight: 900;
  margin-top: 2px;
  color: var(--aq-navy);
}

/* FIX: spanwhile -> span */
.aq-stat .v span{
  opacity: .75;
  font-weight: 700;
  font-size: 12px;
  margin-left: 4px;
}

/* Items */
.aq-report__items h2{
  margin: 0 0 10px;
  font-size: 16px;
  color: var(--aq-navy);
}

.aq-item{
  border: 1px solid var(--aq-line);
  border-radius: 16px;
  padding: 12px 14px;
  margin-bottom: 12px;
  break-inside: avoid;
  background: #fff;
}

.aq-item__head{
  display:flex;
  justify-content: space-between;
  gap: 12px;
  align-items:flex-start;

  padding-bottom: 8px;
  border-bottom: 1px solid var(--aq-line);
  margin-bottom: 8px;
}

.aq-item__org{
  font-weight: 950;
  color: var(--aq-text);
}

.aq-item__date{
  font-size: 12px;
  color: var(--aq-muted);
  margin-top: 4px;
}

/* Badge */
.aq-badge{
  border: 1px solid rgba(216,178,107,.75);
  background: rgba(216,178,107,.16);
  color: var(--aq-navy);

  border-radius: 999px;
  padding: 6px 10px;
  font-weight: 950;
  white-space: nowrap;
}

.aq-badge span{
  opacity:.72;
  font-weight: 800;
  font-size: 12px;
}

/* Table */
.aq-table{
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

.aq-table th,
.aq-table td{
  border-bottom: 1px solid var(--aq-line);
  padding: 6px 8px;
  font-size: 12px;
  text-align: left;
}

.aq-table th{
  background: rgba(19,43,93,.06);
  color: var(--aq-navy);
  font-weight: 950;
}

/* Print tweaks */
@media print{
  .aq-report__actions{ display:none; }
  .aq-item{ box-shadow: none; }
}
