/* payments.css - styles specific to payments.html */

th.sortable {
  cursor: pointer;
  user-select: none;
  position: relative;
}

th.sortable .sort-indicator {
  font-size: 0.9em;
  margin-left: 4px;
  color: #888;
}

th.sorted-asc .sort-indicator {
  color: #000;
}

th.sorted-desc .sort-indicator {
  color: #000;
}

/* Optional: highlight sorted column */
th.sorted-asc, th.sorted-desc {
  background-color: #e9ecef;
} 

/* Three-dot vertical icon button */
.three-dot-btn {
  background: none;
  border: none;
  outline: none;
  box-shadow: none;
  color: #333;
  vertical-align: middle;
  transition: color 0.2s;
}
.three-dot-btn:hover, .three-dot-btn:focus {
  color: #007bff;
  background: none;
}

/* Dropdown menu customizations for admin UI */
.dropdown-menu {
  min-width: 180px;
  font-size: 1rem;
  border-radius: 0.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  padding: 0.25rem 0;
}
.dropdown-item {
  padding: 0.5rem 1.25rem;
}
.dropdown-item:active, .dropdown-item:focus {
  background-color: #e9ecef;
  color: #212529;
} 
 
    /* Developed by Syed Hassan Raza  
    Fiverr: https://www.fiverr.com/syedhassanr  
    Email: hassan.bscs@gmail.com  
    Project: Payments & Debtors Pages | Parents Booking Platform  
    Client: Netmedia Ltd | Will Mackenzie | © 2025   */

/* Fix for dropdown menu being scrollable with minimal height */
.dropdown-menu {
  max-height: none !important;
  overflow: visible !important;
  z-index: 1050;
} 

/* Custom dropdown menu for action column */
.custom-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 180px;
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: 0.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  z-index: 9999 !important;
  padding: 0.25rem 0;
  max-height: none !important;
  overflow: visible !important;
}
.custom-dropdown-menu.show {
  display: block;
}
.custom-dropdown-menu .dropdown-item {
  display: block;
  width: 100%;
  padding: 0.5rem 1.25rem;
  color: #212529;
  text-decoration: none;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
}
.custom-dropdown-menu .dropdown-item:hover, .custom-dropdown-menu .dropdown-item:focus {
  background-color: #e9ecef;
  color: #212529;
} 

/* Prevent parent containers from clipping the dropdown */
.table-responsive, td, tr, tbody {
  overflow: visible !important;
} 

/* Responsive table for mobile */
@media (max-width: 576px) {
  .table-responsive {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
  }
  /* Reduce left padding/margin of total row on mobile */
  tfoot td.fw-bold.text-end {
    padding-left: 0.5rem !important;
    margin-left: 0 !important;
  }
  td, th {
    font-size: 10px;
    max-width: 70px;
  }
  .total-income, .fw-bold {
    font-size: 16px !important;
  }
} 