/* QC297 V5.37 · Summary hub
 * Owns only the merged Tổng hợp/Báo cáo shell, direct record actions and detail sheet.
 */
.summary-hub-v537{display:block}
.summary-hub-panel-v537.hidden{display:none!important}

.summary-record-head-v537{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:start;
  gap:8px;
}
.summary-record-copy-v537{min-width:0}
.summary-record-direct-actions-v60{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:2px;
  flex:0 0 auto;
}
.summary-record-action-v60{
  min-width:42px;
  min-height:36px;
  padding:0 7px;
  border:0;
  border-radius:8px;
  background:transparent;
  font:inherit;
  font-size:12px;
  font-weight:850;
  line-height:1;
  cursor:pointer;
  -webkit-tap-highlight-color:transparent;
}
.summary-record-action-v60.edit{color:var(--primary,#0866ff)}
.summary-record-action-v60.delete{color:#b42318}
.summary-record-action-v60:active{background:color-mix(in srgb,var(--line) 48%,transparent)}
.summary-record-card-v60{
  cursor:pointer;
  -webkit-tap-highlight-color:transparent;
}
.summary-record-card-v60:focus-visible{
  outline:2px solid color-mix(in srgb,var(--primary,#0866ff) 72%,transparent);
  outline-offset:2px;
}
.weekly-item.summary-record-card-v60:active,
.summary-lookup-row.summary-record-card-v60:active{
  background:color-mix(in srgb,var(--card,#fff) 94%,var(--primary,#0866ff));
}

/* Direct actions stay compact beside long titles on mobile. */
.weekly-item .summary-record-head-v537,
.summary-lookup-row .summary-record-head-v537{
  min-height:0;
}
@media (max-width:360px){
  .summary-record-head-v537{gap:4px}
  .summary-record-direct-actions-v60{gap:0}
  .summary-record-action-v60{min-width:38px;min-height:36px;padding:0 5px}
}

/* V5.9.14 · Derived travel state in Trong tuần. Business status is untouched. */
.weekly-travel-phase-v5914{
  display:inline-flex;
  align-items:center;
  min-height:22px;
  margin-left:7px;
  padding:2px 8px;
  border-radius:999px;
  font-size:11px;
  font-weight:900;
  line-height:1.1;
  vertical-align:2px;
  white-space:nowrap;
}
.weekly-travel-phase-v5914.upcoming{
  color:#9a6700;
  background:#fff4ce;
  border:1px solid #f2d675;
}
.weekly-travel-phase-v5914.active{
  color:#067647;
  background:#ecfdf3;
  border:1px solid #abefc6;
}
html[data-theme="dark"] .weekly-travel-phase-v5914.upcoming{
  color:#f5d56b;
  background:#342a0b;
  border-color:#6d5714;
}
html[data-theme="dark"] .weekly-travel-phase-v5914.active{
  color:#75e0a7;
  background:#0e2f24;
  border-color:#176448;
}
