.report-table-container {
  width: 100%;
  overflow-x: auto;
  background: white;
  position: relative;
}

.finisher-table-header-wrapper {
  position: sticky;
  top:0;
  z-index: 100;
  background-color: white;
  overflow-x: hidden;
  border-bottom: 2px solid #ddd;
}

.finisher-table-body-wrapper {
  overflow-x: auto;
  width: 100%;
}

.finisher-table-header, .finisher-table-main {
  width: 100%;
  font-family: 'Segoe UI', Arial, sans-serif;
  color: #2c3e50;
  border: 1px solid #e0e0e0;
  border-collapse: collapse;
  margin-top: 0px !important;
  margin-bottom: 0px !important;
}

.finisher-table-main tbody tr:nth-child(odd),
.finisher-table-main tbody tr:nth-child(even) {
  background: #ffffff !important;
}

.finisher-table-header th {
  padding: 12px 15px;
  border-left: 2px solid #e0e0e0;
  border-right: 2px solid #e0e0e0;
  border-collapse: collapse;
  background: #2c3e50;
  color: white;
  text-align: center;
  font-weight: 600;
  white-space: nowrap;
}

.finisher-table-main td {
  padding: 12px 15px;
  text-align: center;
  border-bottom: 1px solid #e0e0e0;
}

.finisher-table-main tr:hover td {
  background-color: #f0f7fc;
}


.report-table-container::-webkit-scrollbar {
  height: 6px;
  width: 6px;
}

.report-table-container::-webkit-scrollbar-track {
  background: #f8f9fa;
  border-radius: 0 0 8px 8px;
}

.report-table-container::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

.report-table-container::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}


.table-controls {
  position: relative;
  top: 0px;
  z-index: 101;
  background: white;
  padding: 10px 0;
  margin-bottom: 0;
}

.table-controls .dropdown-menu {
  z-index: 102;
  position: absolute;
  left: 0 !important;
  right: auto !important;
  min-width: 150px;
  max-height: 50vh;
  overflow-y: auto;
  margin-top: 5px;
  transform: none !important;
  top: 100% !important;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  border: 1px solid #ddd;
}


/* Main container */
.cf-report-container {
  width: 100%;
  max-width: 90vw;
  margin: 20px auto;
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  font-family: 'Segoe UI', Arial, sans-serif;
  color: #2c3e50;
}

/* Header section */
.cf-report-header {
  padding: 20px;
  border-bottom: 1px solid #e0e0e0;
}

.cf-report-title {
  margin: 0 0 10px 0;
  color: #2c3e50;
  font-size: 1.5em;
}

.cf-report-description {
  margin: 0;
  color: #7f8c8d;
  font-size: 0.95em;
}

.cf-section {
  padding: 15px;
  overflow-x: auto;
}

.cf-data-table {
  width: 100%;
  min-width: 800px;
  border-collapse: separate;
  border-spacing: 0;
  margin-bottom: 20px;
}

.cf-data-table tbody tr:nth-child(odd),
.cf-data-table tbody tr:nth-child(even) {
  background-color: #ffffff;
}

.cf-section-header th {
  background: #2c3e50;
  color: white;
  font-weight: 600;
  padding: 12px 15px;
  text-align: center;
  border-right: 1px solid #3d5166;
}

.cf-section-title {
  display: inline-block;
  width: 300px;
}

.cf-column-headers th {
  background: #f8f9fa;
  color: #2c3e50;
  font-weight: 600;
  padding: 10px 15px;
  border-bottom: 2px solid #ddd;
  text-align: right;
}

.cf-row-title {
  text-align: left !important;
  width: 300px;
}

.cf-data-row td {
  padding: 10px 15px;
  border-bottom: 1px solid #e0e0e0;
  text-align: right;
  white-space: nowrap;
}

.cf-data-row:hover td {
  background-color: #f0f7fc;
}

.cf-row-label {
  text-align: left !important;
  width: 300px;
}

.cf-row-label span {
  display: inline-block;
  width: 280px;
}

.cf-subtotal,
.cf-footer {
  border-top: 2px solid #2c3e50;
  font-weight: 600;
}

.cf-footer {
  padding: 10px 15px;
  font-size: 0.85em;
  color: #7f8c8d;
  text-align: right;
}


.cf-month {
  min-width: 80px;
}

.cf-value {
  min-width: 100px;
}

.cf-section::-webkit-scrollbar {
  height: 8px;
}

.cf-section::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 4px;
}

.cf-section::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}