/* Styles for the dashboard table, buttons, form toggle, pagination, and date picker */
.table {
    width: 100%;
    margin-bottom: 1rem;
    color: #212529;
}

/* --- Mobile responsive table: keep Date + first two fields + Actions --- */
@media (max-width: 640px) {
  /* Avoid wrapping that makes rows super tall */
  #entries-table th,
  #entries-table td {
    white-space: nowrap;
  }

  /* Hide columns from the 4th onward, except the last (Actions) */
  #entries-table th:nth-child(n+4):not(:last-child),
  #entries-table td:nth-child(n+4):not(:last-child) {
    display: none;
  }

  /* Slightly bigger tap targets */
  .form-toggle-buttons .btn,
  .action-buttons .btn,
  .pagination .page-link {
    padding: .5rem .75rem;
  }
}


.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(0,0,0,.05);
}
.table-hover tbody tr:hover {
    background-color: rgba(0,0,0,.075);
}
.table thead th {
    vertical-align: bottom;
    border-bottom: 2px solid #dee2e6;
}
.table td, .table th {
    padding: .75rem;
    vertical-align: top;
    border-top: 1px solid #dee2e6;
}
.thead-dark th {
    color: #fff;
    background-color: #343a40;
    border-color: #454d55;
}
.btn-primary {
    color: #fff;
    background-color: #cda053 !important;
    border-color: #cda053 !important;
    padding: .375rem .75rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: .25rem;
}
.btn-primary:hover {
    background-color: #b3883f !important;
    border-color: #b3883f !important;
}
.btn-info {
    color: #fff;
    background-color: #cda053 !important;
    border-color: #cda053 !important;
    padding: .25rem .5rem;
    font-size: .875rem;
    line-height: 1.5;
    border-radius: .2rem;
}
.btn-info:hover {
    background-color: #b3883f !important;
    border-color: #b3883f !important;
}
.btn-secondary {
    color: #fff;
    background-color: #6c757d;
    border-color: #6c757d;
    padding: .375rem .75rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: .25rem;
}
.container {
    width: 100% !important;
    max-width: none !important;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}
.fl-full-width .container, .fl-module .container {
    width: 100% !important;
    max-width: none !important;
    padding-right: 15px;
    padding-left: 15px;
}
.my-4 {
    margin-top: 1.5rem !important;
    margin-bottom: 1.5rem !important;
}
.mb-3 {
    margin-bottom: 1rem !important;
}
.form-toggle-buttons {
    margin-bottom: 1rem;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}
.form-toggle-buttons .btn {
    margin-right: 5px;
    background-color: #E5CFA8 !important;
    border-color: #E5CFA8 !important;
}
.form-toggle-buttons .btn.active {
    background-color: #b3883f !important;
    border-color: #b3883f !important;
    font-weight: bold;
}
.pagination {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
}
.pagination .page-item {
    margin: 0 2px;
}
.pagination .page-link {
    color: #fff;
    background-color: #cda053 !important;
    border: 1px solid #cda053 !important;
    padding: .375rem .75rem;
    border-radius: .25rem;
}
.pagination .page-item.active .page-link {
    color: #fff;
    background-color: #b3883f !important;
    border-color: #b3883f !important;
}
.pagination .page-item.disabled .page-link {
    color: #6c757d;
    pointer-events: none;
    background-color: #fff;
    border-color: #dee2e6;
}
.action-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 1rem;
    width: 100%;
}
.action-buttons .date-range-picker button,
.action-buttons .gf-download-csv {
    color: #fff;
    background-color: #cda053 !important;
    border-color: #cda053 !important;
    padding: .25rem .5rem;
    font-size: .875rem;
    line-height: 1.5;
    border-radius: .2rem;
}
.action-buttons .date-range-picker button:hover,
.action-buttons .gf-download-csv:hover {
    background-color: #b3883f !important;
    border-color: #b3883f !important;
}