:root { --primary:#4f46e5; --ink:#172033; --muted:#5d6677; --line:#dbe2ea; --surface:#fff; --page:#f4f7fb; }
* { box-sizing:border-box; }
[hidden] { display:none !important; }
body { margin:0; font:15px/1.55 system-ui,-apple-system,"Segoe UI",sans-serif; color:var(--ink); background:var(--page); }
main { max-width:1480px; margin:auto; padding:32px 28px 56px; }
a { color:var(--primary); text-underline-offset:3px; }
nav { margin-bottom:28px; }
header { margin-bottom:24px; }
.eyebrow { color:var(--primary); font-size:.75rem; font-weight:750; letter-spacing:.1em; }
h1 { margin:8px 0; font-size:clamp(2rem,4vw,2.7rem); line-height:1.15; letter-spacing:-.03em; }
p { margin:0; }
.intro,.hint,footer { color:var(--muted); }
.filters { padding:20px; background:var(--surface); border:1px solid var(--line); border-radius:14px; }
.search-row,.filter-row { display:flex; gap:16px; align-items:end; flex-wrap:wrap; }
.field { flex:1; min-width:170px; }
.search-field { flex:3; }
label { display:block; margin-bottom:6px; font-weight:600; font-size:.85rem; }
input,select,button { font:inherit; color:var(--ink); }
input,select { width:100%; height:44px; padding:8px 12px; border:1px solid #aeb8c5; border-radius:8px; background:#fff; }
input:focus-visible,select:focus-visible,button:focus-visible,summary:focus-visible,a:focus-visible,.table-wrap:focus-visible { outline:3px solid #c7d2fe; outline-offset:2px; }
.hint { margin:8px 0 18px; font-size:.82rem; }
.secondary { min-height:44px; padding:8px 15px; border:1px solid var(--line); border-radius:8px; background:#fff; cursor:pointer; font-weight:600; }
.secondary:hover:not(:disabled) { background:#eef2ff; border-color:#b4b1ee; }
.secondary:disabled { opacity:.45; cursor:default; }
.results-bar { display:flex; align-items:center; justify-content:space-between; gap:16px; margin:22px 0 12px; }
#resultado { font-weight:600; }
.page-size { display:flex; align-items:center; gap:10px; white-space:nowrap; margin:0; color:var(--muted); }
.page-size select { width:80px; }
.table-wrap { max-width:100%; overflow:auto; background:#fff; border:1px solid var(--line); border-radius:12px; }
table { width:100%; min-width:830px; border-collapse:collapse; table-layout:fixed; }
th { padding:14px 18px; background:#eef2f8; color:#44516a; text-align:left; font-size:.8rem; text-transform:uppercase; letter-spacing:.04em; }
th:nth-child(1) { width:29%; } th:nth-child(2) { width:35%; } th:nth-child(3) { width:36%; }
td { padding:18px; border-top:1px solid var(--line); vertical-align:top; overflow-wrap:anywhere; }
tbody tr:hover { background:#fcfcff; }
code { font: .82rem/1.6 ui-monospace,SFMono-Regular,Consolas,monospace; overflow-wrap:anywhere; white-space:normal; }
.report-name { display:block; font-size:.9rem; font-weight:700; }
.folder { display:block; color:var(--muted); font-size:.76rem; margin-top:3px; }
.badge { display:inline-block; margin:8px 5px 0 0; padding:2px 8px; background:#eef2ff; color:#3730a3; border-radius:20px; font-size:.72rem; font-weight:700; }
.badge.ticket { background:#e5f5ed; color:#166345; }
.call+.call,.source+.source { margin-top:14px; padding-top:12px; border-top:1px dashed var(--line); }
.call-label,.source-label { display:block; font-weight:650; font-size:.8rem; margin-bottom:3px; }
.actions { margin:4px 0 0; padding-left:17px; color:var(--muted); font-size:.81rem; }
.keys { display:flex; flex-wrap:wrap; gap:4px; margin-top:6px; }
.key { background:#f0f3f8; padding:2px 6px; border-radius:4px; }
.meta { color:var(--muted); font-size:.76rem; margin-top:4px; }
details { margin-top:10px; }
summary { cursor:pointer; color:var(--primary); font-size:.81rem; font-weight:650; }
details[open] summary { margin-bottom:9px; }
.condition { font-size:.8rem; color:var(--muted); }
.pagination { display:flex; align-items:center; justify-content:center; gap:20px; margin:22px 0 28px; }
#pagina { font-size:.85rem; color:var(--muted); }
.state { padding:24px; border:1px dashed #aeb8c5; border-radius:10px; background:#fff; }
.help { padding:16px 20px; background:#fff; border:1px solid var(--line); border-radius:10px; }
.help summary { font-size:.9rem; }
.help p { margin-top:12px; max-width:980px; color:var(--muted); }
footer { margin-top:22px; font-size:.8rem; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
@media (max-width:640px) {
  main { padding:24px 14px 36px; }
  nav { font-size:.85rem; margin-bottom:24px; }
  .filters { padding:15px; }
  .search-row,.filter-row { gap:12px; }
  .search-row .field { flex-basis:100%; }
  .filter-row .field { min-width:125px; }
  #limpiar { width:100%; }
  .results-bar { align-items:flex-start; flex-direction:column; gap:10px; }
  .page-size select { height:38px; }
  .pagination { gap:10px; justify-content:space-between; }
  .pagination button { padding:8px 10px; }
  td { padding:14px; }
}
