.report-shell{width:100%;min-width:0;max-width:1240px;margin:auto;padding:32px 24px 64px}.report-nav,.report-filters{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.report-nav{margin:20px 0 36px}.report-filters{margin:24px 0}.report-filters a,.report-filters button{border:1px solid #d9d2e7;border-radius:10px;padding:10px 16px;background:var(--card,#fff);color:var(--ink,#1d2b45);font:inherit;text-decoration:none;cursor:pointer}.report-filters [aria-current]{background:#6c4cf0;color:white}.report-filters form{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.report-filters input{font:inherit;padding:8px;border:1px solid #d9d2e7;border-radius:8px;max-width:160px}.report-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:24px 0}.report-card{border:1px solid #ddd6e8;background:var(--card,#fff);border-radius:18px;padding:22px;min-width:0}.report-card h2{font-size:18px;margin:0 0 18px}.report-stat{font-size:28px;font-weight:700;margin:8px 0}.report-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin:20px 0}.report-table{overflow:auto}.report-table table{width:100%;border-collapse:collapse;font-size:14px;white-space:nowrap}.report-table th,.report-table td{text-align:right;padding:12px 10px;border-bottom:1px solid #e5dfec}.report-table th:first-child,.report-table td:first-child{text-align:left}.report-table td:first-child{max-width:360px;white-space:normal;overflow-wrap:anywhere}.report-muted{color:#657087}.report-chart svg{width:100%;height:auto;min-height:180px}.report-note{font-size:13px;line-height:1.7}.report-status{padding:16px 0}.report-chart .legend{display:flex;gap:20px;font-size:13px}.report-chart .legend span:first-child{color:#6c4cf0}.report-chart .legend span:last-child{color:#0d9488}#report-content[hidden]{display:none}@media(max-width:720px){.report-shell{padding:24px 16px}.report-stats,.report-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.report-grid>.report-card{grid-column:span 2}.report-card{padding:16px}.report-stat{font-size:24px}.report-filters form{width:100%}}
#emergency-search{width:100%;box-sizing:border-box;display:block;font:inherit;padding:15px 18px;border:1px solid #d9d2e7;border-radius:12px;margin:10px 0 16px}.emergency-owner{margin:32px 0}.emergency-pets{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,280px),1fr));gap:20px}.emergency-tile{padding:0;overflow:hidden}.emergency-tile img,.emergency-placeholder{width:100%;height:230px;object-fit:cover;background:#ede7fa}.emergency-placeholder{display:grid;place-content:center;text-align:center;color:#6c4cf0;font-size:48px}.emergency-placeholder small{font-size:14px}.emergency-details{padding:20px}.emergency-details h3{margin:0;font-size:24px}.emergency-details dl{margin:18px 0 0}.emergency-details dt{font-size:12px;text-transform:uppercase;letter-spacing:.06em;color:#657087;margin-top:16px}.emergency-details dd{margin:5px 0;overflow-wrap:anywhere;line-height:1.7}.emergency-details a{display:inline-block;padding:3px 0}.emergency-contact{padding-top:12px;border-top:1px solid #ddd6e8;margin-top:16px}
/* Match the existing portal sidebar and keep wide report tables inside the content column. */
.report-layout{grid-template-columns:230px minmax(0,1fr)}
.report-layout .report-shell{margin:0 auto;align-self:start}
@media(max-width:760px){.report-layout{grid-template-columns:minmax(0,1fr)}}

.audit-search{display:flex;gap:12px;align-items:end;flex-wrap:wrap;margin:20px 0}.audit-search label{display:grid;gap:5px;font-size:14px}.audit-search input,.audit-search select{font:inherit;padding:10px;border:1px solid #d9d2e7;border-radius:8px;min-width:0;max-width:100%;background:#fff}.audit-search button{margin:0}.audit-pagination{display:flex;gap:18px;align-items:center;margin:22px 0;flex-wrap:wrap}.audit-rows td:last-child{white-space:normal;min-width:130px}@media(max-width:600px){.audit-search label{flex:1 1 145px}.audit-search input,.audit-search select{width:100%}}
