/* N12: source-detail summary only; cancellation facts never change order state. */
.repeat-fulfillment-actions .v735-source-cancellations { margin-top: 3px; min-width: 0; font-size: 12px; }
.repeat-fulfillment-actions .v735-source-cancellations > summary { display: list-item; width: fit-content; color: var(--primary); cursor: pointer; line-height: 1.6; }
.repeat-fulfillment-actions .v735-source-cancellations > summary:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 3px; }
.repeat-fulfillment-actions .v735-source-cancellations ul { display: grid; gap: 7px; padding: 7px 0 0; margin: 0; list-style: none; }
.repeat-fulfillment-actions .v735-source-cancellations li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 3px 12px; padding: 7px 9px; background: rgba(255, 255, 255, .72); border: 1px solid var(--line); border-radius: 5px; line-height: 1.5; overflow-wrap: anywhere; }
.repeat-fulfillment-actions .v735-source-cancellations li > strong { font-size: 12px; font-weight: 600; }
.repeat-fulfillment-actions .v735-source-cancellations li > span { font-size: 12px; }

/* N13: one readable report per desktop row, rather than eleven columns in half
   a card. Original figures and all business columns remain visible. Small
   screens scroll inside the table region, never by widening the whole page. */
#backendStatsPanel .backend-report-grid:has(.v735-route-report-card) { grid-template-columns: minmax(0, 1fr); gap: 10px; }
#backendStatsPanel .backend-stats-body { padding: 10px; min-width: 0; }
#backendStatsPanel .v735-route-report-card { min-width: 0; width: 100%; grid-column: 1 / -1; }
#backendStatsPanel .v735-route-report-card h3 { padding: 9px 12px; font-size: 14px; }
#backendStatsPanel .v735-route-report-card .backend-report-scroll { max-width: 100%; overflow-x: auto; overscroll-behavior-inline: contain; }
#backendStatsPanel .v735-route-report-table { --v735-rank-width: 42px; --v735-name-left: 0px; width: 100%; min-width: 720px; table-layout: fixed; border-collapse: separate; border-spacing: 0; }
#backendStatsPanel .v735-route-report-table.v735-route-ranked { --v735-name-left: var(--v735-rank-width); }
#backendStatsPanel .v735-route-report-table.backend-postal-ranked-report { min-width: 640px; }
#backendStatsPanel .v735-route-report-table.backend-visit-ranked-report { min-width: 760px; }
#backendStatsPanel .v735-route-report-table th,
#backendStatsPanel .v735-route-report-table td { padding: 7px 8px; text-align: center; font-size: 13px; line-height: 1.45; font-variant-numeric: tabular-nums; white-space: normal; overflow-wrap: anywhere; }
#backendStatsPanel .v735-route-report-table th { padding-block: 8px; font-size: 12px; }
#backendStatsPanel .v735-route-report-table .v735-bucket-rate { display: inline-block; white-space: nowrap; }
#backendStatsPanel .v735-route-report-table .v735-under-five { display: inline-block; color: var(--muted); white-space: nowrap; font-size: 12px; font-weight: 400; }
#backendStatsPanel .v735-route-report-table .v735-rank-col { width: var(--v735-rank-width); }
#backendStatsPanel .v735-route-report-table .v735-name-col { width: 86px; }
#backendStatsPanel .v735-route-report-table .v735-count-col { width: 64px; }
#backendStatsPanel .v735-route-report-table .v735-success-col { width: 76px; }
#backendStatsPanel .v735-route-report-table .backend-postal-rank-column { position: sticky; left: 0; z-index: 2; width: var(--v735-rank-width); min-width: var(--v735-rank-width); padding-inline: 4px; background: #fff; }
#backendStatsPanel .v735-route-report-table .v735-name-column { position: sticky; left: var(--v735-name-left); z-index: 2; background: #fff; text-align: left; box-shadow: 1px 0 0 var(--line); }
#backendStatsPanel .v735-route-report-table th.backend-postal-rank-column,
#backendStatsPanel .v735-route-report-table th.v735-name-column { z-index: 3; background: var(--panel-soft); }
#backendStatsPanel .v735-route-report-table .summary-row .backend-postal-rank-column,
#backendStatsPanel .v735-route-report-table .summary-row .v735-name-column { background: #f6fbff; }
#backendStatsPanel .v735-route-report-table tr.is-backend-leader .backend-postal-rank-column,
#backendStatsPanel .v735-route-report-table tr.is-backend-leader .v735-name-column { background: #f3edff; }
@media (max-width: 720px) {
  #backendStatsPanel .backend-stats-body { padding: 8px; }
  #backendStatsPanel .v735-route-report-card h3 { padding: 8px 10px; }
  #backendStatsPanel .v735-route-report-table th,
  #backendStatsPanel .v735-route-report-table td { padding-inline: 7px; }
  .repeat-fulfillment-actions .v735-source-cancellations li { align-items: stretch; flex-direction: column; gap: 2px; }
}
