body {
  font-family: Arial, sans-serif;
  margin: 0;
  box-sizing: border-box;
  overflow-x: hidden;
}

/* === Dropdown Filters === */
.filters {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.filters select {
  height: 35px;
  flex: 1;
  font-size: 16px;
  padding: 0 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-sizing: border-box;
}

/* === Summary Cards (2nd Row) === */
.card-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin-bottom: 20px;
}

/* === Rental Cards (3rd Row) === */
.rental-cards {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
}

.rental-cards .card {
  flex: 1;
  height: 75px;
  box-sizing: border-box;
}

/* === Shared Card Styling === */
.card {
  background: #f2f2f2;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 75px;
  box-sizing: border-box;
}

.card.green {
  background-color: #d4edda;
}

.card.red {
  background-color: #f8d7da;
}

/* === Table Styling === */
/* === Table Styling === */
table {
  width: 100%;
  border-collapse: collapse;
  background: #f2f2f2;
  margin-bottom: 20px;
  font-size: 13px; /* ✅ reduce size of all text inside table */
}

th {
  background-color: #B4905A; /* ✅ updated header color */
  color: white;
  font-size: 14px; /* slightly larger than cell values */
  padding: 8px;
}

td {
  border: 1px solid #ddd;
  padding: 6px 8px;
  text-align: center;
  font-size: 13px; /* ✅ smaller value font */
}

/* === Charts: Radar + Line === */
.charts {
  display: flex;
  gap: 20px;
  flex-wrap: nowrap;
  margin-bottom: 20px;
  align-items: stretch; /* ✅ makes both wrappers same height */
}

.chart-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
  height: 400px; /* ✅ equal fixed height */
}

.chart-wrapper:nth-child(1) {
  flex: 0 0 35%;
}

.chart-wrapper:nth-child(2) {
  flex: 0 0 63%;
}

.chart-wrapper canvas {
  width: 100% !important;
  height: 100% !important; /* ✅ fill height of parent */
  background: #fff;
  border: 1px solid #ccc;
  padding: 10px;
  border-radius: 8px;
  box-sizing: border-box;
}



body::before {
  content: '';
  display: none;
}

/*@media (max-width: 800px) {*/
/*  body::before {*/
/*    display: block;*/
/*    color: red;*/
/*    font-weight: bold;*/
/*    font-size: 18px;*/
/*    text-align: center;*/
/*    margin-bottom: 10px;*/
/*  }*/
/*}*/
@media (max-width: 800px) {
    body {
    overflow-x: hidden; /* Ensure no horizontal scroll */
  }
  /* Summary cards: 2 per row */
  .card-container {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* Rental cards: 2 per row */
  .rental-cards {
    flex-wrap: wrap !important;
  }

  .rental-cards .card {
    width: calc(50% - 7.5px) !important;
    margin-bottom: 15px;
  }

  .charts {
    flex-direction: column;
    flex-wrap: nowrap;
  }

  .chart-wrapper {
    flex: 1 1 100%;
    height: 800px; /* ✅ fixed height for wrapper */
  }

  .chart-wrapper canvas {
    width: 100% !important;
    height: 100% !important; /* ✅ fill full wrapper height */
    aspect-ratio: unset !important; /* ✅ disable aspect ratio constraint */
    display: block;
  }

  /* Dropdowns: stacked */
  .filters {
    flex-direction: column !important;
  }

  .filters select {
    width: 100% !important;
  }
  /* === Make table scrollable on small screens === */
.table-wrapper {
  width: 100%;
  overflow-x: auto;
}

.table-wrapper table {
  min-width: 600px;
}
}

.card.gold {
  background-color: #B4905A;
  color: white;
}

.card.green {
  background-color: #d4edda;
  color: #155724;
}

.card.red {
  background-color: #f8d7da;
  color: #721c24;
}
.section-heading {
  font-size: 20px;
  font-weight: bold;
  margin: 20px 0 10px;
  color: #333;
}


.loading {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(255,255,255,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.spinner {
  width: 60px; height: 60px;
  border: 8px solid #f3f3f3;
  border-top: 8px solid #3498db;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}



