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

/* No entries message */
.gf-no-entries {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: .25rem;
    padding: 60px 20px;
    text-align: center;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px 0;
}

.gf-no-entries p {
    font-size: 1.125rem;
    color: #6c757d;
    margin: 0;
}

/* --- 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: #6c757d !important;
    border-color: #6c757d !important;
    padding: .375rem .75rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: .25rem;
}
.btn-primary:hover {
    background-color: #5a6268 !important;
    border-color: #545b62 !important;
}
.btn-info {
    color: #fff;
    background-color: #6c757d !important;
    border-color: #6c757d !important;
    padding: .25rem .5rem;
    font-size: .875rem;
    line-height: 1.5;
    border-radius: .2rem;
}
.btn-info:hover {
    background-color: #5a6268 !important;
    border-color: #545b62 !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-selector-wrapper {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}
.form-selector-wrapper label {
    font-weight: 600;
    margin: 0;
    color: #495057;
}
.form-selector {
    padding: .5rem 2rem .5rem .75rem;
    font-size: 1rem;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right .75rem center;
    background-size: 16px 12px;
    border: 1px solid #ced4da;
    border-radius: .25rem;
    appearance: none;
    cursor: pointer;
    min-width: 250px;
}
.form-selector:focus {
    border-color: #6c757d;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(108, 117, 125, 0.25);
}
.form-toggle-buttons {
    margin-bottom: 1rem;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}
.form-toggle-buttons .btn {
    margin-right: 5px;
    background-color: #e9ecef !important;
    border-color: #dee2e6 !important;
    color: #495057 !important;
}
.form-toggle-buttons .btn.active {
    background-color: #6c757d !important;
    border-color: #6c757d !important;
    color: #fff !important;
    font-weight: bold;
}
.pagination {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    list-style: none !important;
    padding-left: 0 !important;
}
.pagination .page-item {
    margin: 0 2px;
    list-style: none !important;
}
.pagination .page-item::before {
    content: none !important;
}
.pagination .page-link {
    color: #fff;
    background-color: #6c757d !important;
    border: 1px solid #6c757d !important;
    padding: .375rem .75rem;
    border-radius: .25rem;
    display: block;
    text-decoration: none;
}
.pagination .page-link:hover {
    background-color: #5a6268 !important;
    border-color: #545b62 !important;
}
.pagination .page-item.active .page-link {
    background-color: #495057 !important;
    border-color: #495057 !important;
    font-weight: bold;
}
.pagination .page-item.disabled .page-link {
    color: #6c757d;
    background-color: #f8f9fa !important;
    border-color: #dee2e6 !important;
    pointer-events: none;
}
.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: #6c757d !important;
    border-color: #6c757d !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: #5a6268 !important;
    border-color: #545b62 !important;
}