/**
 * Reports Module Styles (dashboard เลือกเองได้)
 */
.rpt-grid {
  min-height: 120px;
}
.rpt-widget {
  position: relative;
}
.rpt-chart {
  padding: 0.5rem 1rem 1rem;
}
.rpt-chart-body {
  height: 320px;
}
.rpt-widget-tools {
  position: absolute;
  top: 0.4rem;
  right: 0.4rem;
  z-index: 5;
}
.rpt-tool {
  padding: 0.1em 0.45em;
}
.rpt-editing .rpt-widget {
  outline: 2px dashed var(--primary-color, #4a90d9);
  outline-offset: -2px;
  cursor: grab;
}
.rpt-widget-error {
  color: #721c24;
  padding: 1rem;
}
/* Builder modal */
.rpt-builder > div {
  margin-bottom: 0.6rem;
}
.rpt-builder label {
  display: block;
  font-size: 0.85em;
  margin-bottom: 0.2rem;
}
.rpt-builder-preview {
  min-height: 40px;
  border-top: 1px dashed var(--border-color, #eee);
  padding-top: 0.5rem;
}
.rpt-builder-preview .rpt-chart-body {
  height: 220px;
}
.sortable-ghost {
  opacity: 0.4;
}
/* Report builder */
.rpt-b-saved {
  min-width: 200px;
}
.rpt-b-result {
  margin-top: 1rem;
}
.rpt-b-result td.right,
.rpt-b-result th.right {
  text-align: right;
}
.rpt-b-result tfoot td {
  font-weight: 700;
  border-top: 2px solid var(--border-color, #ccc);
}