/* V5.10.14 · Báo cáo: action bar nằm dưới preview, căn giữa theo từng khung. */
/* QC297 · Reports module: compact preview + one canonical Mini PC action bar. */
#summaryHubReportPanelV537 .report-exact-card{margin-top:14px;border:1px solid var(--line);border-radius:14px;overflow:hidden;background:#fff}
#summaryHubReportPanelV537 .report-exact-card:first-child{margin-top:0}
#summaryHubReportPanelV537 .report-exact-preview.fast-data-preview{display:block;min-height:0;padding:0;overflow:visible;background:#fff}
#summaryHubReportPanelV537 .report-list-export{background:#fff}
#summaryHubReportPanelV537 .report-table-wrap{width:100%;max-width:100%;overflow-x:auto;overflow-y:visible;-webkit-overflow-scrolling:touch}
#summaryHubReportPanelV537 .report-table-wrap>.report-table{max-width:none}

/* Action bar luôn ở sau preview trong DOM; dùng flow tự nhiên, không reorder/absolute/fixed. */
#summaryHubReportPanelV537 .report-list-actions.report-icon-actions{
  display:flex!important;
  flex-wrap:wrap!important;
  justify-content:center!important;
  align-items:center!important;
  gap:10px!important;
  padding:12px 14px 14px!important;
  border-top:1px solid rgba(148,163,184,.13)!important;
  border-bottom:0!important;
  background:#fff;
  position:relative;
  z-index:1;
}
#summaryHubReportPanelV537 .report-icon-btn{
  flex:0 1 104px!important;
  min-width:86px!important;
  max-width:126px!important;
  width:auto!important;
  height:48px!important;
  min-height:48px!important;
  padding:7px 10px!important;
  border-radius:10px!important;
  display:flex!important;
  flex-direction:row;
  gap:7px;
  align-items:center!important;
  justify-content:center!important;
  box-shadow:none!important;
  -webkit-tap-highlight-color:transparent;
  transition:transform .12s ease,opacity .12s ease,background-color .12s ease;
  font:inherit;
  font-weight:800;
}
#summaryHubReportPanelV537 .report-icon-btn .report-action-svg{width:18px!important;height:18px!important;display:block;flex:0 0 auto;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
#summaryHubReportPanelV537 .report-action-label{display:block;font-size:11.5px;line-height:1.05;white-space:nowrap}
#summaryHubReportPanelV537 .report-icon-btn--copy{background:#eaf7ff!important;border:1px solid #addbf8!important;color:#176ba4!important}
#summaryHubReportPanelV537 .report-icon-btn--word{background:#eaf0ff!important;border:1px solid #b8caf8!important;color:#2454b8!important}
#summaryHubReportPanelV537 .report-icon-btn--pdf{background:#fff0f0!important;border:1px solid #f3bcbc!important;color:#c93737!important}
#summaryHubReportPanelV537 .report-icon-btn--print{background:#eef1f4!important;border:1px solid #cbd2d9!important;color:#4d5966!important}
#summaryHubReportPanelV537 .report-icon-btn:active{transform:scale(.96)!important}
#summaryHubReportPanelV537 .report-icon-btn:disabled{opacity:.58!important;cursor:not-allowed!important;transform:none!important;filter:saturate(.55)}
#summaryHubReportPanelV537 .report-icon-btn.is-ready{opacity:1!important;filter:none}
.report-print-frame{position:fixed!important;left:-10000px!important;top:-10000px!important;width:1px!important;height:1px!important;border:0!important;opacity:0!important;pointer-events:none!important}

/* Mobile: cố giữ 4 nút trên một hàng bằng cách co hợp lý; chỉ wrap khi thật sự thiếu chỗ. */
@media(max-width:700px){
  #summaryHubReportPanelV537 .report-list-actions.report-icon-actions{gap:8px!important;padding:10px 10px 14px!important}
  #summaryHubReportPanelV537 .report-icon-btn{
    flex:1 1 64px!important;
    min-width:64px!important;
    max-width:92px!important;
    width:auto!important;
    height:50px!important;
    min-height:50px!important;
    padding:5px 4px!important;
    border-radius:9px!important;
    flex-direction:column;
    gap:3px;
  }
  #summaryHubReportPanelV537 .report-icon-btn .report-action-svg{width:20px!important;height:20px!important}
  #summaryHubReportPanelV537 .report-action-label{font-size:9.5px}
}

/* Desktop: preview giữ nguyên vùng cuộn; action bar vẫn nằm dưới và căn giữa. */
@media(min-width:1200px){
  #summaryHubReportPanelV537 .report-exact-card{display:flex;flex-direction:column;margin-top:16px;border-radius:16px}
  #summaryHubReportPanelV537 .report-list-actions.report-icon-actions{justify-content:center!important;padding:14px 16px 16px!important;gap:10px!important;border-top:1px solid rgba(148,163,184,.16)!important;border-bottom:0!important}
  #summaryHubReportPanelV537 .report-icon-btn{flex:0 0 auto!important;width:auto!important;min-width:112px!important;max-width:none!important;height:44px!important;min-height:44px!important;padding:7px 12px!important;flex-direction:row!important;gap:7px!important;border-radius:10px!important}
  #summaryHubReportPanelV537 .report-action-label{font-size:12px!important}
  #summaryHubReportPanelV537 .report-icon-btn .report-action-svg{width:18px!important;height:18px!important}
  #summaryHubReportPanelV537 .report-table-wrap{max-height:calc(100vh - 300px);overflow:auto!important}
  #summaryHubReportPanelV537 .report-table thead th{position:sticky;top:0;z-index:2;background:#fff}
}
@media(min-width:1200px){html[data-theme="dark"] #summaryHubReportPanelV537 .report-table thead th{background:#1c2736}}

/* =========================================================
   DARK MODE - BÁO CÁO (REPORTS MODULE)
   Đồng bộ toàn bộ bảng biểu, tiêu đề, nhãn số lượng và nút thao tác
   ========================================================= */
html[data-theme="dark"] #summaryHubReportPanelV537 .report-exact-card,
html[data-theme="dark"] .report-exact-card {
  background: #151d27 !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35) !important;
}

html[data-theme="dark"] #summaryHubReportPanelV537 .report-exact-preview.fast-data-preview,
html[data-theme="dark"] .report-exact-preview.fast-data-preview,
html[data-theme="dark"] #summaryHubReportPanelV537 .report-list-export,
html[data-theme="dark"] .report-list-export {
  background: #151d27 !important;
}

html[data-theme="dark"] #summaryHubReportPanelV537 .report-section-head,
html[data-theme="dark"] .report-section-head {
  background: #1a2332 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

html[data-theme="dark"] #summaryHubReportPanelV537 .report-section-title,
html[data-theme="dark"] .report-section-title {
  color: #f0f6fc !important;
  font-weight: 800 !important;
}

html[data-theme="dark"] #summaryHubReportPanelV537 .report-section-count,
html[data-theme="dark"] .report-section-count {
  background: rgba(56, 139, 253, 0.2) !important;
  color: #79c0ff !important;
  border: 1px solid rgba(56, 139, 253, 0.35) !important;
}

html[data-theme="dark"] #summaryHubReportPanelV537 .report-table,
html[data-theme="dark"] .report-table {
  background: #151d27 !important;
  color: #e6edf3 !important;
}

html[data-theme="dark"] #summaryHubReportPanelV537 .report-table th,
html[data-theme="dark"] .report-table th {
  background: #1c2736 !important;
  color: #79c0ff !important;
  border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14) !important;
  font-weight: 800 !important;
}

html[data-theme="dark"] #summaryHubReportPanelV537 .report-table td,
html[data-theme="dark"] .report-table td {
  background: #151d27 !important;
  color: #edf2f8 !important;
  border-right: 1px solid rgba(255, 255, 255, 0.06) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
}

html[data-theme="dark"] #summaryHubReportPanelV537 .report-table tr:nth-child(even) td,
html[data-theme="dark"] .report-table tr:nth-child(even) td {
  background: #182230 !important;
}

html[data-theme="dark"] #summaryHubReportPanelV537 .report-table tr:hover td,
html[data-theme="dark"] .report-table tr:hover td {
  background: #1f2d3e !important;
}

html[data-theme="dark"] #summaryHubReportPanelV537 .report-list-actions.report-icon-actions,
html[data-theme="dark"] .report-list-actions {
  background: #182230 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}

html[data-theme="dark"] #summaryHubReportPanelV537 .report-icon-btn--copy {
  background: rgba(56, 139, 253, 0.18) !important;
  border: 1px solid rgba(56, 139, 253, 0.4) !important;
  color: #79c0ff !important;
}
html[data-theme="dark"] #summaryHubReportPanelV537 .report-icon-btn--word {
  background: rgba(99, 102, 241, 0.18) !important;
  border: 1px solid rgba(99, 102, 241, 0.4) !important;
  color: #a5b4fc !important;
}
html[data-theme="dark"] #summaryHubReportPanelV537 .report-icon-btn--pdf {
  background: rgba(248, 81, 73, 0.18) !important;
  border: 1px solid rgba(248, 81, 73, 0.4) !important;
  color: #ff7b72 !important;
}
html[data-theme="dark"] #summaryHubReportPanelV537 .report-icon-btn--print {
  background: rgba(148, 163, 184, 0.18) !important;
  border: 1px solid rgba(148, 163, 184, 0.35) !important;
  color: #cbd5e1 !important;
}
html[data-theme="dark"] #summaryHubReportPanelV537 .report-icon-btn:hover {
  filter: brightness(1.15) !important;
}
html[data-theme="dark"] .report-exact-loading{color:#94a3b8 !important;}
html[data-theme="dark"] .report-empty{color:#94a3b8 !important;background:#151d27 !important;}

