/* 明细优先：全宽、全量展开，表格不产生内部滚动。 */
.compact-layout{background:#f5f7fa;color:#26364b}
.compact-layout main{margin-left:0}
.compact-layout .topbar{height:42px;padding:0 16px;gap:12px}
.workspace-nav,.workspace-nav nav{display:flex;align-items:center;gap:8px;min-width:0}
.workspace-title{font-size:14px;margin-right:12px;white-space:nowrap}
.compact-layout .nav{display:block;width:auto;margin:0;padding:5px 10px;font-size:12px;border-radius:4px;white-space:nowrap}
.compact-layout .identity{gap:5px;flex-shrink:0}
.compact-layout .identity input{width:135px;font-size:12px;border:1px solid #e2e8f0;border-radius:4px;padding:4px 8px}
.compact-layout .identity-hint{border:0;padding:0;font-size:10px}
.compact-layout .content{max-width:none;padding:12px 16px 16px}
.compact-layout #view-review{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:16px;align-items:center}
.compact-layout #view-review>.page-heading{grid-column:1;grid-row:1}
.compact-layout #view-review>.date-bar{grid-column:2;grid-row:1}
.compact-layout #view-review>.metrics,.compact-layout #view-review>.notice,.compact-layout #view-review>.review-panel,.compact-layout #view-review>.bottom-note{grid-column:1/-1}
.compact-layout .page-heading{margin-bottom:9px;gap:12px}
.compact-layout .page-heading h1{font-size:19px;letter-spacing:0}
.compact-layout .eyebrow,.compact-layout #view-review>.page-heading p{display:none}
.compact-layout .heading-actions{flex-direction:row;gap:7px}
.compact-layout .button{height:29px;font-size:11px;padding:0 10px}
.compact-layout .date-bar{margin-bottom:8px;gap:10px;flex-wrap:wrap}
.compact-layout .date-selection{gap:6px}
.compact-layout input[type=date]{height:28px}
.compact-layout .icon-button{height:25px;width:25px}
.compact-layout .date-tag{padding:4px 7px}
.compact-layout .refresh-info{font-size:10px}
.compact-layout .notice.warning{padding:7px 10px;margin-bottom:8px}
.compact-layout .metrics{display:flex;flex-wrap:wrap;gap:0;margin-bottom:10px;border:1px solid #e2e8f0;border-radius:5px;background:#fff}
.compact-layout .metric{display:flex;gap:8px;align-items:baseline;border:0;border-right:1px solid #e9edf3;border-radius:0;padding:7px 15px;background:transparent}
.compact-layout .metric:last-child{border-right:0}
.compact-layout .metric:hover{background:#f4f8ff}
.compact-layout .metric-label{color:#66768a;font-size:11px}
.compact-layout .metric-value{margin:0;font-size:17px;line-height:1.1;letter-spacing:0}
.compact-layout .metric-value small{font-size:10px;margin-left:4px}
.compact-layout .metric-symbol,.compact-layout .metric-note{display:none}
.compact-layout .metric:nth-child(2) .metric-value{color:#b07828}
.compact-layout .metric:nth-child(3) .metric-value,.compact-layout .metric:nth-child(4) .metric-value{color:#188564}
.compact-layout .review-panel{border-radius:5px}
.compact-layout #view-review .review-panel{overflow:visible}
.compact-layout .panel-heading{padding:7px 12px}
.compact-layout #view-review .panel-heading>div{display:flex;align-items:baseline;gap:12px;flex-wrap:wrap}
.compact-layout .panel-heading h2{font-size:14px}
.compact-layout .panel-heading p{margin:0;color:#738298;font-size:10px}
.compact-layout .tabs{overflow:visible;flex-wrap:wrap;padding:0 12px;gap:20px}
.compact-layout .tab{padding:8px 0;font-size:11px}
.compact-layout .filters{padding:6px 12px;gap:8px;flex-wrap:wrap}
.compact-layout .search{height:28px;width:260px;margin:0}
.compact-layout .search input{font-size:11px}
.compact-layout .filters select{height:28px;font-size:11px;max-width:200px}
.compact-layout .filters-right{display:block;color:#7b899e}
.compact-layout .table-scroll{overflow:visible;max-height:none;min-height:0}
.compact-layout table{table-layout:fixed;width:100%;white-space:normal;font-size:12px}
.compact-layout thead{position:sticky;top:0;z-index:4}
.compact-layout th{height:36px;padding:6px 5px;background:#edf2f8;color:#50647d;font-size:11px;font-weight:600;line-height:1.4;overflow-wrap:anywhere;border-right:1px solid #e3e9f1}
.compact-layout td{height:auto;padding:4px 5px;vertical-align:middle;border-right:1px solid #e9edf3;line-height:1.3;color:#3f526b;overflow-wrap:anywhere}
.compact-layout td:last-child,.compact-layout th:last-child{border-right:0}
.compact-layout td:first-child,.compact-layout th:first-child{position:static;width:auto;min-width:0;max-width:none;padding-left:10px}
.compact-layout tbody tr:nth-child(even) td{background:#f8fafc}
.compact-layout tbody tr:hover td{background:#edf4ff}
.compact-layout .line-name{max-width:none;white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere;font-size:12px;line-height:1.3;color:#243d5b;font-weight:600}
.compact-layout .line-sub{gap:6px;flex-wrap:wrap;font-size:10px;line-height:1.2;margin-top:2px;color:#718299}
.compact-layout .quick-feedback{font-size:10px;white-space:nowrap}
.compact-layout .fleet-text,.compact-layout .city-text,.compact-layout .model-text,.compact-layout .carrier-text{min-width:0;max-width:none;font-size:11px;line-height:1.3;overflow-wrap:anywhere}
.compact-layout .history-cell,.compact-layout .reason-cell{min-width:0}
.compact-layout .table-scroll .badge{max-width:100%;white-space:normal;overflow:visible;text-overflow:clip;padding:2px 4px;font-size:11px;line-height:1.2;align-items:baseline;overflow-wrap:anywhere}
.compact-layout .history-weight{font-size:10px;line-height:1.35;margin-top:3px;color:#798aa1}
.compact-layout .history-weight strong{color:#536b88;white-space:nowrap}
.compact-layout .history-volume{margin-top:2px;font-size:10px;line-height:1.35;color:#526b88;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.compact-layout .history-load{margin-top:2px;font-size:10px;line-height:1.35;color:#526b88;font-variant-numeric:tabular-nums;white-space:nowrap;letter-spacing:-.2px}
.compact-layout .current-history{display:flex;align-items:center;gap:5px;flex-wrap:wrap;border:0;background:transparent;padding:0;margin:0 0 1px;text-align:left;cursor:pointer;max-width:100%;font:inherit}
.compact-layout .current-history .history-load{margin:0}
.compact-layout #view-review .panel-heading .export-actions{display:flex;gap:6px;align-items:center}
.image-download-dialog{max-width:540px;width:90%;padding:24px;border:1px solid #dce4ee;border-radius:8px;color:#3f526b}
.image-download-dialog h2{font-size:18px;margin:0 0 12px}
.image-download-dialog p{font-size:13px;line-height:1.6;margin:0 0 16px}
.image-download-dialog a{display:flex;margin-bottom:8px;text-decoration:none}
.image-download-dialog::backdrop{background:#162c4e66}
.compact-layout .badge.filled{color:#7435ad;background:#f0e5ff;border:1px solid #d9c1f2}
.status-legend{white-space:nowrap;margin-left:8px}
.legend-full{color:#23856c}
.legend-filled{color:#7435ad}
.compact-layout .table-scroll tr.feedback-expansion{display:table-row;background:#f3f7fd}
.compact-layout .table-scroll tr.feedback-expansion>td{display:table-cell;padding:0;border:0;border-bottom:1px solid #cfdaea;background:#f3f7fd!important;white-space:normal;text-align:left;box-shadow:none}
.compact-layout .table-scroll tr.feedback-expansion>td:before{display:none}
.feedback-panel{padding:8px 12px;border-left:3px solid #8eafe0;max-width:100%;font-size:11px;color:#526b88}
.feedback-panel-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:5px}
.feedback-panel-heading>div{display:flex;gap:10px;align-items:baseline;flex-wrap:wrap;min-width:0}
.feedback-panel-heading strong{font-size:12px;color:#35537a}
.feedback-panel-heading span{overflow-wrap:anywhere}
.feedback-panel-meta{font-size:10px;color:#71849c;line-height:1.3;margin-bottom:6px}
.feedback-form-grid{display:grid;grid-template-columns:minmax(260px,1fr) minmax(0,2fr);gap:16px;max-width:1100px}
.feedback-panel .form-label{font-size:11px;gap:5px;margin-bottom:8px}
.feedback-panel .form-label select{height:34px;font-size:12px;padding:5px 9px;min-width:0;max-width:none;width:100%}
.feedback-panel .form-label textarea{height:58px;min-height:34px;padding:6px 9px;font-size:12px;line-height:1.5}
.feedback-panel-footer{display:flex;align-items:center;gap:12px;flex-wrap:wrap;font-size:10px}
.feedback-panel-footer .save-status{margin-left:auto}
.feedback-log-details{margin-top:8px;color:#6981a0;font-size:10px}
.feedback-log-details summary{cursor:pointer;display:list-item}
.feedback-panel .mini-timeline{margin-top:8px}
@media(max-width:1199px){
  .compact-layout .table-scroll tr.feedback-expansion{display:block;padding:0}
  .compact-layout .table-scroll tr.feedback-expansion>td{display:block;width:100%;margin:0}
  .feedback-form-grid{grid-template-columns:1fr;gap:2px}
  .feedback-panel{padding:10px}
}
.history-meta{display:flex;align-items:center;gap:3px;flex-wrap:wrap;margin-bottom:3px;font-size:10px;line-height:1.3}
.node-tag{display:inline-block;padding:1px 3px;border-radius:3px;background:#e6edf7;color:#395a83;font-size:10px;white-space:nowrap}
.node-tag.non-node{background:#eef0f3;color:#687486}
.direct-tag{color:#718299;font-size:10px}
.run-feedback-heading{display:flex;align-items:baseline;gap:8px;margin:6px 0 8px;min-width:0}
.run-feedback-heading .badge{flex-shrink:0}
.run-feedback-heading strong{font-size:16px;line-height:1.5;color:#355c88;white-space:pre-wrap;overflow-wrap:anywhere;min-width:0}
.run-feedback-detail{font-size:13px;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere;color:#3f526b}
.run-feedback-time{font-size:11px;color:#718299}
.compact-layout .table-scroll td.fleet-cell{background:var(--fleet-bg)!important;color:var(--fleet-text);box-shadow:inset 3px 0 var(--fleet-border)}
.compact-layout .fleet-cell .fleet-text{color:var(--fleet-text);font-weight:600}
.compact-layout .table-scroll tr.fleet-start td{border-top:2px solid #cad6e5}
.compact-layout .history-weight .run-count{display:inline-block;font-size:9px;margin-left:3px}
.compact-layout .reason-button{display:block;width:100%;font-size:11px;padding:1px 0;color:#6887af;line-height:1.25;text-align:left}
.compact-layout .reason-button span:first-child{min-width:0;max-width:none;white-space:pre-wrap;overflow:visible;text-overflow:clip;overflow-wrap:anywhere}
.compact-layout .reason-button span:last-child{flex-shrink:0}
.compact-layout .reason-button.has-selection,.compact-layout .reason-button.has-feedback{border:0;background:transparent;color:#35536e}
.compact-layout .reason-button.has-selection span:first-child,.compact-layout .reason-button.has-feedback span:first-child{font-weight:500}
.compact-layout .reason-author{display:inline;font-size:9px;font-weight:400;line-height:1.25;margin:0 0 0 5px;white-space:nowrap;color:#8493a6}
.compact-layout .reason-edit{display:inline;font-size:10px;margin-left:5px;white-space:nowrap;color:#6887af}
.compact-layout .feedback-detail-summary{margin-top:4px;font-size:11px;line-height:1.5;color:#3f526b;white-space:pre-wrap;overflow-wrap:anywhere}
.compact-layout .reason-author.saved{color:#25846c}
.compact-layout .reason-author.pending{color:#97712f}
.compact-layout .reason-author.error{color:#b45a50}
.compact-layout .number{font-size:12px;white-space:nowrap;padding-left:2px;padding-right:4px}
.compact-layout .volume-wrap{gap:3px}
.compact-layout .volume-bar{width:100%;max-width:43px;height:2px}
.compact-layout .tw-link{font-size:11px;overflow-wrap:anywhere;line-height:1.5;color:#2c65ae}
.compact-layout .table-footer{padding:8px 12px;font-size:10px;gap:12px;flex-wrap:wrap}
.compact-layout .bottom-note{margin-top:8px;font-size:10px}
.compact-layout .toast{left:50%}

@media(max-width:1199px){
  .compact-layout #view-review{display:block}
}
@media(min-width:1200px) and (max-width:1399px){
  .compact-layout .table-scroll .badge,.compact-layout .fleet-text,.compact-layout .city-text,.compact-layout .model-text,.compact-layout .carrier-text,.compact-layout .reason-button,.compact-layout .tw-link{font-size:10px}
  .compact-layout th{font-size:10px}
  .compact-layout td{padding:4px}
  .compact-layout .line-name{font-size:11px}
}

/* 窄窗口逐线路展开全部字段，保持字号可读，不横向滚动。 */
@media(max-width:1199px){
  .compact-layout .topbar{height:auto;min-height:42px;padding:6px 10px;flex-wrap:wrap}
  .workspace-title{margin-right:3px;font-size:13px}
  .workspace-nav,.workspace-nav nav{gap:2px}
  .compact-layout .nav{font-size:11px;padding:5px 7px}
  .compact-layout .identity{margin-left:auto}
  .compact-layout .identity input{width:125px}
  .compact-layout .content{padding:10px}
  .compact-layout .metrics{gap:0}
  .compact-layout .metric,.compact-layout .metric:nth-child(4),.compact-layout .metric:nth-child(5){padding:6px 9px}
  .compact-layout .metric-value{font-size:16px}
  .compact-layout .heading-actions .secondary{display:inline-flex}
  .compact-layout .filters-right{margin-left:0}
  .compact-layout .table-scroll table,.compact-layout .table-scroll tbody{display:block}
  .compact-layout .table-scroll colgroup,.compact-layout .table-scroll thead{display:none}
  .compact-layout .table-scroll tr{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border-bottom:1px solid #dce5f0;padding:5px;background:#fff;gap:0}
  .compact-layout .table-scroll td{display:block;height:auto;padding:4px 7px;border:0;min-width:0;max-width:none;width:auto;background:transparent!important;white-space:normal;text-align:left;font-size:12px}
  .compact-layout .table-scroll td:before{content:attr(data-label);display:block;font-size:10px;font-weight:400;line-height:1.4;color:#7a8a9f;margin-bottom:3px}
  .compact-layout .table-scroll td:first-child{grid-column:1/-1;padding:5px 7px 8px;border-bottom:1px solid #edf1f7;margin-bottom:3px}
  .compact-layout .table-scroll td:first-child:before{display:none}
  .compact-layout .table-scroll td.reason-cell{grid-column:span 2}
  .compact-layout .table-scroll tr:nth-child(even){background:#f7f9fc}
  .compact-layout .table-scroll tr:hover{background:#f0f6ff}
  .compact-layout .line-name{font-size:13px}
  .compact-layout .line-sub{flex-wrap:nowrap}
  .compact-layout .table-scroll .badge{max-width:100%}
  .compact-layout .volume-wrap{align-items:flex-start}
  .compact-layout .tw-link{font-size:11px}
}
@media(max-width:600px){
  .compact-layout .table-scroll tr{grid-template-columns:repeat(2,minmax(0,1fr))}
  .compact-layout .heading-actions{gap:4px}
  .compact-layout .heading-actions .button{font-size:10px;padding:0 6px}
  .compact-layout .page-heading h1{font-size:17px}
  .compact-layout .identity-hint,.compact-layout .identity .live-dot{display:none}
  .compact-layout .date-selection{flex-wrap:wrap;gap:5px}
  .compact-layout .search{width:100%}
  .compact-layout .filters select{max-width:calc(50% - 25px)}
  .compact-layout .tabs{gap:12px}
}
@media print{
  .compact-layout .topbar,.compact-layout .heading-actions,.compact-layout .filters,.compact-layout .tabs,.compact-layout .quick-feedback,.compact-layout .panel-heading>.button,.compact-layout .bottom-note,.compact-layout .feedback-expansion{display:none!important}
  .compact-layout .content{padding:0}
  .compact-layout table{display:table!important;font-size:9px}
  .compact-layout colgroup{display:table-column-group!important}
  .compact-layout thead{display:table-header-group!important;position:static}
  .compact-layout tbody{display:table-row-group!important}
  .compact-layout tr{display:table-row!important;break-inside:avoid}
  .compact-layout td,.compact-layout th{display:table-cell!important;padding:3px!important;font-size:9px!important}
  .compact-layout td:before{display:none!important}
}
