/* Custom reports follow the content theme: the panel is a standard .card (light by default,
   html[data-content-theme=dark] from vibrant.css); inner cards and accents use the same palette. */
.report-tabs { display:flex; gap:.5rem; margin-bottom:1rem; }
.report-tabs [aria-selected="true"] { background:#0ea5e9; color:#0f172a; }
[data-customer-report] { font-size:1rem; }
[data-customer-report] * { box-sizing:border-box; }
[data-customer-report] h2,[data-customer-report] h3 { color:var(--ui-heading-color,#1c3559); margin:0 0 .75rem; }
[data-customer-report] p { color:#425576; line-height:1.5; }
[data-customer-report] button:disabled { opacity:.5; cursor:default; }
[data-customer-report] :focus-visible,.report-tabs :focus-visible { outline:3px solid #38bdf8; outline-offset:3px; }
.customer-report-toolbar { display:flex; align-items:center; justify-content:space-between; gap:1rem; margin-bottom:1rem; }
.customer-report-grid { display:grid; grid-template-columns:repeat(4, 1fr); gap:1rem; }
.customer-report-card { background:#fbfdff; padding:1rem; border:1px solid #cadbed; border-radius:.5rem; min-width:0; overflow-wrap:anywhere; }
.customer-preview,.customer-saved { grid-column:1 / -1; }
.customer-dropzone { display:block; border:2px dashed var(--page-accent,#0891b2); border-radius:.5rem; padding:1rem; cursor:pointer; line-height:1.5; }
.customer-dropzone.dragging { background:#e0f2fe; }
.customer-dropzone input { display:block; width:100%; margin-top:.75rem; font-size:.875rem; }
.customer-tag,.customer-formula { display:grid; gap:.5rem; padding:.75rem 0; border-bottom:1px solid #d5e1f1; }
.customer-tag code,.customer-formula code { white-space:normal; color:#0e7490; }
.customer-valid,.customer-invalid { padding:.25rem .5rem; border-radius:.25rem; width:fit-content; font-size:.875rem; }
.customer-valid { background:#dcfce7; color:#166534; }
.customer-invalid { background:#fee2e2; color:#991b1b; }
[data-customer-report] dl { margin:0; }
[data-customer-report] dt { color:#61738b; margin-top:.75rem; }
[data-customer-report] dd { margin:.25rem 0; }
.customer-table-wrap { overflow-x:auto; }
[data-customer-report] table { width:100%; border-collapse:collapse; }
[data-customer-report] th,[data-customer-report] td { padding:.35rem .5rem; border:1px solid #d5e1f1; text-align:left; white-space:nowrap; }
.customer-saved-row { display:flex; align-items:center; justify-content:space-between; gap:1rem; padding:.5rem; border-bottom:1px solid #d5e1f1; border-radius:.4rem; }
.customer-report-actions { display:flex; gap:.5rem; flex-wrap:wrap; }
[data-editor] { margin-top:1rem; }
html body main [data-customer-report] .customer-saved-row button.customer-report-select { flex:1; justify-content:flex-start; text-align:left; background:transparent; color:var(--page-accent,#0891b2); border-color:transparent; }
html body main [data-customer-report] .customer-saved-row button.customer-report-delete { background:transparent; color:#be123c; border-color:transparent; }
.customer-saved-row.customer-selected { background:#e0f2fe; }
.customer-table-wrap { max-height:22rem; overflow:auto; }
html[data-content-theme=dark] [data-customer-report] p { color:#a9bbd3; }
html[data-content-theme=dark] .customer-report-card { background:#152238; border-color:#364b68; }
html[data-content-theme=dark] .customer-dropzone.dragging { background:#075985; }
html[data-content-theme=dark] :is(.customer-tag,.customer-formula,.customer-saved-row) { border-bottom-color:#364b68; }
html[data-content-theme=dark] :is(.customer-tag,.customer-formula) code { color:#bae6fd; }
html[data-content-theme=dark] .customer-valid { background:#14532d; color:#bbf7d0; }
html[data-content-theme=dark] .customer-invalid { background:#7f1d1d; color:#fecaca; }
html[data-content-theme=dark] [data-customer-report] dt { color:#a9bbd3; }
html[data-content-theme=dark] [data-customer-report] :is(th,td) { border-color:#364b68; }
html[data-content-theme=dark] body main [data-customer-report] .customer-saved-row button.customer-report-select { color:#7dd3fc; }
html[data-content-theme=dark] body main [data-customer-report] .customer-saved-row button.customer-report-delete { color:#fca5a5; }
html[data-content-theme=dark] .customer-saved-row.customer-selected { background:#0c4a6e; }
@media(max-width:1100px) { .customer-report-grid { grid-template-columns:repeat(2,1fr); } }
@media(max-width:640px) { .customer-report-grid { grid-template-columns:1fr; } .customer-report-toolbar { align-items:stretch; flex-direction:column; } }
[hidden] { display:none !important; }
