/* Ficha de equipo (revisión UX M5) y Reportes (M10). Complementa k3.css con sus mismos tokens. */
.device-summary>h2{margin-bottom:10px}
.device-chips{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 18px}
.device-chips .badge{font-size:12px}
.device-facts{grid-template-columns:repeat(3,minmax(0,1fr))}
.device-facts dd .badge{margin-right:6px}
.device-facts .state-note{display:block;margin-top:4px;font-size:11px;font-weight:400;color:var(--muted)}
.device-more{margin-top:18px}
.device-more summary{cursor:pointer;min-height:36px;display:flex;align-items:center;color:var(--accent);font-size:13px;font-weight:600}
.device-more[open] summary{margin-bottom:12px}
.history-checked{margin:6px 0 0}
.device-history .history-subhead{margin:28px 0 10px}
.device-history>.help{margin:4px 0}
.device-hardening .toolbar{margin:16px 0 8px}
.dialog-extra:empty{display:none}
.device-rename-state{margin:18px 0 0;padding:12px 16px;border:1px solid var(--line);border-left:3px solid var(--accent);border-radius:0 8px 8px 0;background:var(--surface)}
.device-rename-state[data-rename=pending_restart]{border-left-color:#ac9872}
.device-rename-state[data-rename=failed]{border-left-color:var(--error)}
.device-rename-state .rename-line{font-size:14px;margin:0 0 4px}
.device-rename-state .help{margin:2px 0 0}
.device-rename-state .actions{margin-top:10px}
.remote-preset-note{color:var(--ink)!important;font-weight:600}
.dialog-extra{margin:0 0 12px}

/* Cabecera compacta de los reportes (2026-11-13): fechas, buscador y Consultar en una fila; atajos y ayuda de fechas en otra. */
.report-form{align-items:end;gap:8px 12px;margin:8px 0}
.report-form>label,.report-form>label:first-child{flex:0 1 170px;min-width:140px}
.report-form>.report-filters{flex:1 1 260px;margin:0}
.report-form>.report-chips{flex:1 1 100%}
.report-form>.report-presets{flex:1 1 100%;display:flex;flex-wrap:wrap;align-items:center;gap:6px 8px}
.report-presets button{min-height:30px;padding:4px 10px;font-size:12px}
.report-presets .report-date-help{flex:1 1 180px;margin:0}
#tenant-control:has(+ .report-form){margin-bottom:8px}
.coordinator:has(>.report-results){gap:10px}
.report-results .tabs{margin:0 0 12px}
.report-state{margin:0;padding:8px 12px}
.report-state.pending{border-left-color:var(--line)}
.report-state.stale{border-left-color:#ac9872;color:#6d4c15;font-weight:600}
.report-state.invalid{border-left-color:var(--error);color:var(--error);font-weight:600}
.report-query{font-size:13px;font-weight:600;margin:0 0 8px;overflow-wrap:anywhere}
.report-query span{font-weight:400;color:var(--muted)}
.report-results .tab-panel>.work-surface{margin:0}

@media(max-width:1000px){.device-facts{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.device-facts{grid-template-columns:1fr}}
/* Buscador único de los reportes: campo con sugerencias y etiquetas de lo elegido (2026-11-13). */
.filter-search{flex:1 1 100%;display:grid}
.filter-field{position:relative}
.filter-field input{width:100%}
.filter-suggestions{position:absolute;z-index:20;inset:calc(100% + 4px) 0 auto 0;margin:0;padding:4px;list-style:none;border:1px solid var(--line);border-radius:10px;background:var(--surface);box-shadow:var(--overlay);max-height:320px;overflow:auto}
.filter-suggestions li{padding:8px 10px;border-radius:6px;cursor:pointer;font-size:14px}
.filter-suggestions li[aria-selected="true"],.filter-suggestions li:hover{background:var(--p-50);color:var(--p-800)}
.filter-suggestions li.filter-none{cursor:default;color:var(--muted)}
.filter-suggestions li.filter-none:hover{background:none;color:var(--muted)}
.filter-chips{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.filter-chips .help{margin:0}
.filter-chip{min-height:32px;padding:4px 10px;border:1px solid var(--p-200);border-radius:999px;background:var(--p-50);color:var(--p-800);font-size:13px;font-weight:600}
.filter-chip:hover{background:var(--p-100)}
