/* Payment History page styles extracted from inline styles in PaymentHistory.php */

/* ===== UTILITY CLASSES ===== */
.hidden {
  display: none !important;
}

/* ===== TABLE ROWS ===== */
tbody tr {
  display: table-row;
}

tbody tr.hidden {
  display: none !important;
}

/* ===== PAGINATION ===== */
.pagination {
  display: none;
}

.pagination.show {
  display: flex;
}

.pagination button {
  display: inline-block;
}

.pagination button.hidden {
  display: none !important;
}

body {
  font-family: Poppins, sans-serif !important;
  background-color: #f1f5f9;
}

.container {
  max-width: 1650px;
  width: 100%;
  padding: 30px 0px;
}

.header {
  margin-bottom: 25px;
}
.header-section {
  display: flex;
  justify-content: space-between;
  align-items: anchor-center;
  margin-bottom: 15px;
}
.header h1 {
  font-size: 2.5rem;
  font-weight: bold;
  margin: 0;
  color: #1f2937;
  margin-bottom: 20px;
}
.header p {
  color: #555;
  font-size: 1rem;
}

.main-content {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.left-section {
  flex: 1;
  background: white;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}
.right-section {
  width: 25%;
  background: white;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  height: fit-content;
}
.section-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
}
.section-hr {
  margin-top: 10px;
}
.filter-table {
  display: flex;
  width: 100%;
}
.filters {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 20px;
  width: 25%;
}
.filter-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 100%;
  border: none;
  padding: 10px 0 0 0;
}
.filter-group label {
  font-size: 12px;
  margin-bottom: 6px;
  font-weight: 600;
  color: #333333;
}
.filter-group select {
  font-size: 12px;
  background: #fafbfc;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #c4c6c9 !important;
}
.filter-group option {
  font-size: 12px;
}
.filter-group-date {
  display: flex;
  flex-direction: row;
  margin-top: 15px;
  justify-content: space-between;
  width: 100%;
}
.custom-select1 {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 12px 12px 0;
}
.dt {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 45%;
}
.dt input[type="text"] {
  padding: 8px 10px;
  border-radius: 9px;
  background: #fafbfc;
  border: 1px solid #c4c6c9 !important;
}
.dt label {
  font-size: 12px;
  font-weight: 600;
  color: #333333;
}
.filter-group input {
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 0.95rem;
}
.search-btn {
  padding: 10px 18px;
  background-color: #2563eb;
  color: white;
  border: none;
  border-radius: 12px;
  font-weight: 500;
  cursor: pointer;
}
.search-btn:hover {
  background-color: #1d4ed8;
}
.search-container {
  position: relative;
}
.search-input {
  padding: 10px 38px 10px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 0.95rem;
}
.search-icon {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  font-size: 1rem;
  color: #666;
  pointer-events: none;
}
.table-container {
  overflow-x: auto;
  border-radius: 8px;
  border: 1px solid #eee;
  width: 75%;
}
table {
  width: 100%;
  border-collapse: collapse;
}
th {
  background: #f9fafb;
  padding: 12px;
  text-align: left;
  font-weight: 600;
  font-size: 0.95rem;
  color: #444;
  border-bottom: 1px solid #eee;
}
td {
  padding: 12px;
  font-size: 0.95rem;
  border-bottom: 1px solid #f1f1f1;
}
tr:hover {
  background-color: #f9fafb;
}
.credit-badge {
  background-color: #22c55e;
  color: white;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 500;
}
.debit-badge {
  background-color: #ef4444;
  color: white;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 500;
}
.preciso-ultima-table_totals {
  display: flex;
  justify-content: end;
  gap: 70px;
  padding: 11px 38px;
  font-weight: 600;
  border-top: 1px solid #e5e7eb;
}
.preciso-ultima-table_totals span {
  font-size: 14px;
}
.pagination {
  margin-top: 10px;
  padding-left: 10px;
  padding-bottom: 10px;
  display: flex;
  gap: 8px;
}
input.search-input {
  border: 2px solid #0000005c !important;
  border-radius: 7px !important;
}
.pagination button {
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid #ccc;
  background: white;
  cursor: pointer;
  font-weight: 500;
}
.pagination button.active {
  background-color: #9333ea;
  color: white;
  border-color: #9333ea;
}
.pagination button:hover:not(.active) {
  background-color: #f3f4f6;
}
.help-section h3 {
  margin-bottom: 10px;
  color: #333;
}
.help-section p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.5;
}

/* Mobile adjustments (same as inline media queries) */
@media (max-width: 768px) {
  .main-content {
    flex-direction: column;
  }
  .right-section {
    width: 100%;
  }
  .filter-table{
    display: block;
  }
  .filters {
    flex-direction: column;
    align-items: stretch;
    width:100%;
  }
  .left-section {
    width:100%;
  }
  .table-container{
    width:100%;
  }
  .preciso-ultima-table_totals {
   width: 410px;
    gap:48px;
  }
}
