/* Read-only report presentation, also loaded by the standalone report tab. */
.rsv-daily-report-host{margin-top:18px;min-width:0}
.rsv-daily-report{min-width:0;max-width:1060px;margin:0 auto;color:var(--ink,#1f2937);line-height:1.65}
.rsv-daily-report .rsv-report-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;flex-wrap:wrap;margin:12px 0 20px;padding:30px 34px;border:0;border-radius:14px;background:linear-gradient(135deg,#4f46e5 0%,#7c3aed 60%,#8b5cf6 100%);box-shadow:0 8px 24px rgba(79,70,229,.18);color:#fff}
.rsv-daily-report .rsv-report-head h3{margin:0 0 8px;font-size:24px;line-height:1.3;letter-spacing:.02em;color:#fff}
.rsv-daily-report .rsv-report-head p{margin:0;font-size:13px;color:rgba(255,255,255,.92)}
.rsv-daily-report .rsv-stats-chip{display:inline-flex;padding:4px 10px;border:1px solid var(--line,#dce3ed);border-radius:999px;background:var(--surface,#fff);font-size:11px;overflow-wrap:anywhere}
.rsv-daily-report .rsv-report-kpis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:16px 0 0}
.rsv-daily-report .rsv-report-kpi{display:flex;flex-direction:column;gap:6px;min-width:0;padding:16px 18px;border:1px solid var(--line,#e5e7eb);border-radius:12px;background:#fafbff}
.rsv-daily-report .rsv-report-kpi-label{font-size:12px;color:var(--muted,#607086)}
.rsv-daily-report .rsv-report-kpi strong{font-size:27px;line-height:1.25;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.rsv-daily-report .rsv-report-kpi small{font-size:11px;line-height:1.6;color:var(--muted,#607086)}
.rsv-daily-report .rsv-report-block{min-width:0;margin:20px 0 0;padding:24px 28px;border:1px solid var(--line,#e5e7eb);border-radius:14px;background:var(--surface,#fff);box-shadow:0 2px 8px rgba(17,24,39,.04)}
.rsv-daily-report .rsv-report-block h4{margin:0 0 13px;padding:5px 0 5px 12px;border-left:4px solid #4f46e5;border-radius:0 8px 8px 0;background:linear-gradient(90deg,rgba(79,70,229,.05),transparent);font-size:17px;line-height:1.35}
.rsv-daily-report .rsv-report-block p{margin:5px 0;line-height:1.7;overflow-wrap:anywhere}
.rsv-daily-report .rsv-report-list{display:grid;gap:9px;margin:0;padding-left:20px}
.rsv-daily-report .rsv-report-summary .rsv-report-list{list-style:none;padding:0;gap:0}
.rsv-daily-report .rsv-report-summary .rsv-report-list li{position:relative;padding:9px 0 9px 26px;border-bottom:1px dashed #eef0f4}
.rsv-daily-report .rsv-report-summary .rsv-report-list li:last-child{border-bottom:0}
.rsv-daily-report .rsv-report-summary .rsv-report-list li:before{content:"";position:absolute;left:6px;top:19px;width:8px;height:8px;border-radius:50%;background:#4f46e5}
.rsv-daily-report .rsv-report-list li{padding-left:2px;line-height:1.7;overflow-wrap:anywhere}
.rsv-daily-report .rsv-report-list li>p{margin:3px 0}
.rsv-daily-report .rsv-report-section-note{margin:0 0 14px!important;color:var(--muted,#607086);font-size:12px}
.rsv-daily-report .rsv-report-policy{margin:12px 0 0!important;padding:9px 12px;border-left:3px solid #4f46e5;border-radius:0 8px 8px 0;background:#f8f9ff;color:var(--ink,#1f2937);font-size:12px;line-height:1.6}
.rsv-daily-report .rsv-report-advice-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.rsv-daily-report .rsv-report-advice-kind{display:table;margin:0 0 5px;padding:2px 8px;border-radius:6px;background:var(--surface-soft,#f5f8fc);color:var(--muted,#607086);font-size:10px}
.rsv-daily-report .rsv-report-advice-inferred{border:1px dashed var(--line,#dce3ed);background:var(--rsv-blue-bg,#edf4ff)}
.rsv-daily-report .rsv-report-citations{display:inline;white-space:normal}
.rsv-daily-report .rsv-report-source,.rsv-daily-report .rsv-report-source-missing{display:inline-block;margin-left:6px;font-size:11px;overflow-wrap:anywhere}
.rsv-daily-report .rsv-report-source{color:var(--rsv-blue,#2874dd);text-decoration:underline;text-underline-offset:3px}
.rsv-daily-report .rsv-report-source-missing{color:var(--muted,#607086)}
.rsv-daily-report .rsv-report-source:focus-visible,.rsv-daily-report summary:focus-visible{outline:2px solid var(--rsv-blue,#2874dd);outline-offset:4px;border-radius:3px}
.rsv-daily-report .rsv-stats-scroll{max-width:100%;overflow-x:auto;margin-top:10px;border:1px solid var(--line,#dce3ed);border-radius:10px}
.rsv-daily-report .rsv-stats-table{width:100%;min-width:560px;border-collapse:collapse;font-size:12px;text-align:left}
.rsv-daily-report .rsv-stats-table th,.rsv-daily-report .rsv-stats-table td{padding:10px 12px;vertical-align:top;border-bottom:1px solid var(--line,#dce3ed);overflow-wrap:anywhere}
.rsv-daily-report .rsv-stats-table th{font-weight:600;background:var(--surface-soft,#f5f8fc);white-space:nowrap}
.rsv-daily-report .rsv-stats-table tbody tr:last-child td{border-bottom:0}
.rsv-daily-report .rsv-stats-table tr[data-rsv-stats-rest="true"]{background:var(--surface-soft,#f5f8fc);color:var(--muted,#607086)}
.rsv-daily-report .rsv-report-management-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:0 0 8px}
.rsv-daily-report .rsv-report-management-facts>div{padding:12px;border-radius:10px;background:var(--surface-soft,#f5f8fc)}
.rsv-daily-report .rsv-report-management-facts dt{font-size:12px;color:var(--muted,#607086)}
.rsv-daily-report .rsv-report-management-facts dd{margin:4px 0 0;font-size:20px;font-weight:600;font-variant-numeric:tabular-nums}
.rsv-daily-report .rsv-report-evidence-index{display:grid;gap:8px;margin-top:14px}
.rsv-daily-report .rsv-report-evidence{padding:10px 12px;border:1px solid var(--line,#dce3ed);border-radius:10px;min-width:0}
.rsv-daily-report .rsv-report-evidence summary{cursor:pointer;font-size:12px;font-weight:600;overflow-wrap:anywhere}
.rsv-daily-report .rsv-report-excerpt{margin:9px 0;max-height:280px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;font-family:inherit;font-size:12px;line-height:1.7;color:var(--ink,#182230);background:var(--surface-soft,#f5f8fc);border-radius:8px;padding:10px}
.rsv-daily-report .rsv-report-quality{background:var(--surface-soft,#f5f8fc)}
.rsv-daily-report .rsv-report-narrative{border-color:var(--rsv-blue,#2874dd);background:var(--surface,#fff)}
.rsv-daily-report .rsv-narrative-controls{display:flex;align-items:center;flex-wrap:wrap;gap:8px;min-width:0}
.rsv-daily-report .rsv-narrative-controls .rsv-button{max-width:100%;white-space:normal;overflow-wrap:anywhere}
.rsv-daily-report .rsv-narrative-controls .rsv-button:focus-visible{outline:2px solid var(--rsv-blue,#2874dd);outline-offset:3px}
.rsv-daily-report .rsv-narrative-status{font-size:12px;color:var(--muted,#607086);min-height:1.7em}
.rsv-daily-report .rsv-narrative-progress{width:110px;height:6px;accent-color:var(--rsv-blue,#2874dd)}
.rsv-daily-report .rsv-narrative-items{display:grid;gap:14px;margin-top:14px}
.rsv-daily-report .rsv-narrative-item{min-width:0;padding-top:14px;border-top:1px solid var(--line,#dce3ed)}
.rsv-daily-report .rsv-narrative-item h5{margin:0 0 6px;font-size:14px}
.rsv-daily-report .rsv-narrative-prose{white-space:pre-wrap;overflow-wrap:anywhere}
.rsv-daily-report .rsv-narrative-facts{display:flex;flex-wrap:wrap;gap:7px;list-style:none;margin:12px 0;padding:0}
.rsv-daily-report .rsv-narrative-facts li{padding:5px 9px;max-width:100%;border-radius:7px;background:var(--surface-soft,#f5f8fc);font-size:12px;overflow-wrap:anywhere}
.rsv-daily-report .rsv-narrative-item .rsv-report-evidence{margin-top:8px}
.rsv-daily-report .rsv-narrative-controls [hidden]{display:none}
/* Usage ring. The five purpose colours match the statistics panel
   (点检 #3b82f6 / 测试 #8b5cf6 / 维修 #f59e0b / 充电 #14b8a6 / 空闲 #d1d5db);
   an unrecorded-purpose slice gets its own slate so it is never mistaken
   for real idle time. */
.rsv-daily-report .rsv-report-usage{margin:0 0 16px}
.rsv-daily-report .rsv-report-rings{display:grid;gap:14px;grid-template-columns:repeat(auto-fit,minmax(258px,1fr))}
.rsv-daily-report .rsv-report-ring-card{min-width:0;padding:16px 18px;border:1px solid var(--line,#dce3ed);border-radius:14px;background:var(--surface,#fff)}
.rsv-daily-report .rsv-report-ring-title{margin:0 0 12px;font-size:13px;font-weight:600;line-height:1.45;overflow-wrap:anywhere}
.rsv-daily-report .rsv-report-ring-body{display:flex;align-items:center;gap:16px;flex-wrap:wrap}
.rsv-daily-report .rsv-report-ring{flex:0 0 auto;width:132px;height:132px}
.rsv-daily-report .rsv-report-ring-track{stroke:var(--rsv-ring-track,#eef2f7)}
.rsv-daily-report .rsv-report-ring-value{font-size:19px;font-weight:600;fill:var(--ink,#182230)}
.rsv-daily-report .rsv-report-ring-label{font-size:10px;fill:var(--muted,#607086)}
.rsv-daily-report .rsv-report-ring-legend{flex:1 1 120px;min-width:0;margin:0;padding:0;list-style:none;display:grid;gap:6px}
.rsv-daily-report .rsv-report-ring-legend li{display:flex;align-items:center;gap:8px;font-size:12px;line-height:1.5;overflow-wrap:anywhere}
.rsv-daily-report .rsv-usage-swatch{flex:0 0 auto;width:10px;height:10px;border-radius:3px}
.rsv-daily-report .rsv-usage-check{stroke:var(--check,#3b82f6);background:var(--check,#3b82f6)}
.rsv-daily-report .rsv-usage-test{stroke:var(--test,#8b5cf6);background:var(--test,#8b5cf6)}
.rsv-daily-report .rsv-usage-repair{stroke:var(--repair,#f59e0b);background:var(--repair,#f59e0b)}
.rsv-daily-report .rsv-usage-charge{stroke:var(--charge,#14b8a6);background:var(--charge,#14b8a6)}
.rsv-daily-report .rsv-usage-idle{stroke:var(--idle,#d1d5db);background:var(--idle,#d1d5db)}
.rsv-daily-report .rsv-usage-unknown{stroke:var(--unknown,#64748b);background:var(--unknown,#64748b)}
/* Success-rate bars (figure 2 of the reference report).  Bar height is the
   locked rate; an unquantified entry is hatched (amber) so it can never be
   read as a measured zero.  Colours load from tokens with hard fallbacks so
   the standalone report tab renders identically without the app stylesheet. */
.rsv-daily-report .rsv-report-bars{display:block;width:100%;height:auto;margin:2px 0 14px;overflow:visible;font-family:inherit}
.rsv-daily-report .rsv-report-bars-grid{stroke:var(--line,#e5e7eb);stroke-width:1}
.rsv-daily-report .rsv-report-bars-axis{fill:var(--muted,#9ca3af);font-size:11px}
.rsv-daily-report .rsv-report-bars-dates{fill:var(--ink,#374151);font-size:12.5px;font-weight:600}
.rsv-daily-report .rsv-report-bars-detail{fill:var(--muted,#9ca3af);font-size:11px}
.rsv-daily-report .rsv-report-bars-value{fill:var(--rsv-bar-label,#6d28d9);font-size:14px;font-weight:700}
.rsv-daily-report .rsv-report-bars-value-qualitative{fill:var(--rsv-bar-label-qualitative,#b45309)}
.rsv-daily-report .rsv-report-bar-value{fill:var(--rsv-bar-fill,#8b5cf6)}
.rsv-daily-report .rsv-report-bar-qualitative{fill:url(#rsv-report-hatch)}
.rsv-daily-report .rsv-report-bar-hatch-base{fill:var(--rsv-bar-hatch-base,#fde68a)}
.rsv-daily-report .rsv-report-bar-hatch-line{stroke:var(--rsv-bar-hatch-line,#d97706);stroke-width:2}
.rsv-daily-report .rsv-report-bars-footnote{fill:var(--muted,#9ca3af);font-size:11px}
@media(max-width:900px){.rsv-daily-report .rsv-report-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){
  .rsv-daily-report .rsv-report-head{padding:22px}
  .rsv-daily-report .rsv-report-head h3{font-size:20px}
  .rsv-daily-report .rsv-report-block{padding:15px}
  .rsv-daily-report .rsv-report-kpis,.rsv-daily-report .rsv-report-advice-grid,.rsv-daily-report .rsv-report-management-facts{grid-template-columns:1fr}
}
