
.container {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.table-wrapper {
  width: 100%;
  max-width: 48%;
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 10px;
}
th, td {
  border: 1px solid #ccc;
  padding: 8px;
  text-align: right;
}
.pagination {
  text-align: center;
  margin-bottom: 20px;
}
.pagination button {
  margin: 2px;
  padding: 5px 10px;
  cursor: pointer;
}
.chart-container {
  margin-top: 40px;
}


@media (max-width: 768px) {
  .container {
    flex-direction: column;
    gap: 8px;
  }
  .table-wrapper {
    max-width: 100%;
    width: 100%;
    overflow-x: auto;
  }
  table {
    font-size: 14px;
    min-width: 500px;
  }
  .chart-container {
    height: 50vw !important;
    min-height: 280px;
  }
}


/* Font-size nhỏ hơn trong bảng thanh toán */
.fixed-table, .decreasing-table, .fixed-table th, .fixed-table td, .decreasing-table th, .decreasing-table td {
  font-size: 14px !important;
}
@media (max-width: 600px) {
  .fixed-table, .decreasing-table, .fixed-table th, .fixed-table td, .decreasing-table th, .decreasing-table td {
    font-size: 12px !important;
  }
}

/* Biểu đồ cao hơn */
.chart-container {
  min-height: 340px !important;
  height: 52vw !important;
  max-height: 430px;
}
@media (max-width: 700px) {
  .chart-container {
    min-height: 250px !important;
    height: 68vw !important;
    max-height: 320px;
  }
}

/* Gọn cột bảng thanh toán */
.fixed-table th, .fixed-table td, .decreasing-table th, .decreasing-table td {
  padding: 4px 2px !important;
  font-size: 13px !important;
  max-width: 95px;
  white-space: nowrap;
}
.fixed-table th:first-child, .fixed-table td:first-child,
.decreasing-table th:first-child, .decreasing-table td:first-child {
  min-width: 36px;
  max-width: 40px;
  text-align: center;
}

/* Nếu nhiều dữ liệu, cho phép cuộn ngang */
.table-wrapper {
  overflow-x: auto;
}
