.table-pw td a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

:is(.table-responsive, .table-container, .table-wrapper, .overflow-auto, .overflow-scroll):has(.table-pw) {
  overflow: visible !important;
  max-height: none !important;
  height: auto !important;
}

.table-pw td .pdf-icon {
  display: inline-block;
  width: 16px;
  height: 16px;
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="%23004f92" viewBox="0 0 16 16"><path d="M14 14V4.5L9.5 0H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2M9.5 3A1.5 1.5 0 0 0 11 4.5h2V14a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1h5.5z"/><path d="M4.603 14.087a.8.8 0 0 1-.438-.42c-.195-.388-.13-.776.08-1.102.198-.307.526-.568.897-.787a7.7 7.7 0 0 1 1.482-.645 20 20 0 0 0 1.062-2.227 7.3 7.3 0 0 1-.43-1.295c-.086-.4-.119-.796-.046-1.136.075-.354.274-.672.65-.823.192-.077.4-.12.602-.077a.7.7 0 0 1 .477.365c.088.164.12.356.127.538.007.188-.012.396-.047.614-.084.51-.27 1.134-.52 1.794a11 11 0 0 0 .98 1.686 5.8 5.8 0 0 1 1.334.05c.364.066.734.195.96.465.12.144.193.32.2.518.007.192-.047.382-.138.563a1.04 1.04 0 0 1-.354.416.86.86 0 0 1-.51.138c-.331-.014-.654-.196-.933-.417a5.7 5.7 0 0 1-.911-.95 11.7 11.7 0 0 0-1.997.406 11.3 11.3 0 0 1-1.02 1.51c-.292.35-.609.656-.927.787a.8.8 0 0 1-.58.029m1.379-1.901q-.25.115-.459.238c-.328.194-.541.383-.647.547-.094.145-.096.25-.04.361q.016.032.026.044l.035-.012c.137-.056.355-.235.635-.572a8 8 0 0 0 .45-.606m1.64-1.33a13 13 0 0 1 1.01-.193 12 12 0 0 1-.51-.858 21 21 0 0 1-.5 1.05zm2.446.45q.226.245.435.41c.24.19.407.253.498.256a.1.1 0 0 0 .07-.015.3.3 0 0 0 .094-.125.44.44 0 0 0 .059-.2.1.1 0 0 0-.026-.063c-.052-.062-.2-.152-.518-.209a4 4 0 0 0-.612-.053zM8.078 7.8a7 7 0 0 0 .2-.828q.046-.282.038-.465a.6.6 0 0 0-.032-.198.5.5 0 0 0-.145.04c-.087.035-.158.106-.196.283-.04.192-.03.469.046.822q.036.167.09.346z"/></svg>');
  background-size: contain;
  background-repeat: no-repeat;
}

#reportTableBody td:first-child {
  white-space: nowrap;
}

/* sort indicator styles */

.sort-indicator {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  width: 10px;
  height: 10px;
  cursor: pointer;
  vertical-align: middle;
  margin-left: 0.25rem;
}

.sort-indicator::before,
.sort-indicator::after {
  content: '';
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
}

.sort-indicator::before {
  border-bottom: 4px solid #ccc;
}

.sort-indicator::after {
  border-top: 4px solid #ccc;
}

.sort-indicator.asc::before {
  border-bottom-color: #000;
}

.sort-indicator.desc::after {
  border-top-color: #000;
}

.sort-indicator:hover::before,
.sort-indicator:hover::after {
  opacity: 0.7;
}

/* pagination styles */

.pagination-pw {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 9px;
}

.pagination-left {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.display-control {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.display-control label {
  font-size: 13px;
  color: #000;
  white-space: nowrap;
  font-weight: 400;
  margin-bottom: 0;
}

.display-control select {
  padding: 6px 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 13px;
  cursor: pointer;
}

.display-control select:focus {
  outline: none;
  border-color: #2196F3;
  box-shadow: 0 0 0 2px rgba(33, 150, 243, 0.1);
}

.record-info {
  font-size: 13px;
  color: #000;
}

.pagination-right {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.page-btn {
  padding: 8px;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
}

.page-btn:hover:not(:disabled) {
  background: #f0f0f0;
}

.page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.page-btn svg {
  width: 20px;
  height: 20px;
  stroke: #000;
  stroke-width: 2;
  fill: none;
}


@media (max-width: 768px) {
  .pagination-pw {
    flex-direction: column;
  }

  .display-control {
    justify-content: space-between;
  }

  .record-info {
    text-align: center;
  }

  .pagination-right {
    justify-content: center;
  }
}

/* filters styles */

.filters-pw {
  background: #f5f5f5;
  padding: 20px;
  margin-bottom: 20px;
}

.filters-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.filter-dropdown {
  position: relative;
}

.filter-btn {
  width: 100%;
  padding: 10px 14px;
  background: #e9ebed;
  border: 1px solid #dde2e6;
  border-radius: 0px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #000;
  transition: all 0.2s;
}

/* .filter-btn:hover {
      border-color: #2196F3;
      background: #f8f9fa;
    } */

.filter-btn.active {
  border-color: #dde2e6;
  background: #dde2e6;
}

.filter-btn .chevron {
  width: 16px;
  date height: 16px;
  stroke: #666;
  stroke-width: 2;
  fill: none;
  transition: transform 0.2s;
}

.filter-btn.active .chevron {
  transform: rotate(180deg);
}

.filter-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 4px;
  background: #dde2e6;
  border: 1px solid #dde2e6;
  border-radius: 0;
  /* box-shadow: 0 4px 12px rgba(0,0,0,0.15); */
  z-index: 1000;
}

.filter-content.show {
  display: block;
  date
}

.filter-scroll {
  max-height: 400px;
  overflow-y: auto;
  padding: 12px;
}

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.checkbox-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
}

.checkbox-item input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
  margin: 0;
}

.checkbox-item label {
  font-size: 13px;
  color: #000;
  font-weight: 400;
  cursor: pointer;
  user-select: none;
  margin: 0;
}

.date-range {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.date-input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.date-input-group label {
  font-size: 13px;
  color: #555;
  font-weight: 500;
}

.date-input-group input[type="date"] {
  padding: 8px 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
}

.date-input-group input[type="date"]:focus {
  outline: none;
  border-color: #2196F3;
  box-shadow: 0 0 0 2px rgba(33, 150, 243, 0.1);
}

.reset-link {
  display: inline-block;
  color: #004F92;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: color 0.2s;
}

.reset-link:hover {
  color: #1976D2;
  text-decoration: underline;
}

@media (max-width: 768px) {
  .filters-row {
    grid-template-columns: 1fr;
  }

  .checkbox-grid {
    grid-template-columns: repeat(1, 1fr);
  }

  .filter-scroll {
    max-height: 300px;
  }


}

@media (min-width: 768.95px) {
  .filter-full {
    width: 680px;
  }
}

@media (min-width: 991.95px) {
  .filter-full {
    width: 900px;
  }
}

@media (min-width: 1200px) {
  .filter-full {
    width: 1100px;
  }
}

body:has(#reportTableBody) .col-md-8.col-lg-9.margin-bottom-20 {
  width: 100% !important;
  flex: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

body:has(#reportTableBody) aside.col-md-4.col-lg-3.margin-bottom-30 {
  width: 100% !important;
  margin-top: 25px;
}

.filter-btn.filter-active[data-filter="data"] {
  background: #004f92;
  color: #fff;
  border-color: #004f92;
}

.filter-btn.filter-active[data-filter="data"] .chevron {
  stroke: #fff;
}


body:has(#reportTableBody) :is(p, li::before) {
    padding-left: 15px;
    padding-right: 15px;
}
