﻿/*─────────────────────────────────────────────────────────────────────────────
  Base styling
─────────────────────────────────────────────────────────────────────────────*/
body,
table {
    font-family: Arial, sans-serif;
    font-size: 0.9rem;
}

#grid {
    padding: 1rem;
}

/*─────────────────────────────────────────────────────────────────────────────
  Page header (logo + title)
─────────────────────────────────────────────────────────────────────────────*/
.page-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin: 1.5rem 0;
}

    .page-header img#clientLogo {
        max-height: 100px;
        object-fit: contain;
    }

    .page-header h1,
    #pageTitle {
        font-size: 1.75rem;
        margin: 0;
        color: #003c71;
        font-family: Arial, sans-serif;
        text-align: center;
    }

/*─────────────────────────────────────────────────────────────────────────────
  Disclaimer footer
─────────────────────────────────────────────────────────────────────────────*/
.page-disclaimer {
    font-size: 0.85rem;
    color: #555;
    margin-top: 1.5rem;
    border-top: 1px solid #ddd;
    padding-top: 0.75rem;
}

/*─────────────────────────────────────────────────────────────────────────────
  DataTables styling
─────────────────────────────────────────────────────────────────────────────*/
/* Table header */
#eventTable.dataTable thead th {
    background-color: #003c71 !important;
    color: #fff !important;
    font-weight: 600;
    border-bottom: none !important;
    padding: 0.75rem 1rem;
}

/* No borders */
#eventTable.dataTable,
#eventTable.dataTable th,
#eventTable.dataTable td {
    border: none !important;
}

    /* Row striping & hover */
    #eventTable.dataTable tbody tr.odd-row {
        background-color: #f5f5f5 !important;
    }

    #eventTable.dataTable tbody tr:hover {
        background-color: #ddeeff !important;
    }

    /* Cell padding */
    #eventTable.dataTable td {
        padding: 0.75rem 1rem;
    }

/* Hide built‑in search box */
.dataTables_filter {
    display: none !important;
}

/* Top bar (only paging controls if you want, but we've hidden the search) */
.dt-top {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 0.5rem;
}

/* Footer: paginate | info | length */
.dt-footer {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.5rem;
}

.dataTables_paginate {
    flex: 0 0 auto;
}

.dataTables_info {
    flex: 1 1 auto;
    margin: 0;
    text-align: center;
    font-size: 0.85rem;
}

.dataTables_length {
    flex: 0 0 auto;
    margin-left: auto;
}

/* Pagination buttons */
.dataTables_paginate .paginate_button {
    padding: 0.3rem 0.6rem;
    margin-left: 0.25rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: none;
}

    .dataTables_paginate .paginate_button.current {
        background-color: #003c71;
        color: #fff !important;
        border-color: #003c71;
    }

    .dataTables_paginate .paginate_button:hover {
        background-color: #00509e;
        color: #fff !important;
        border-color: #00509e;
    }

/* Length & filter inputs (hidden search, but just in case) */
.dataTables_filter input,
.dataTables_length select {
    padding: 0.25rem 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/*─────────────────────────────────────────────────────────────────────────────
  Filters box (radio + dropdown)
─────────────────────────────────────────────────────────────────────────────*/
.filter-box {
    display: flex; /* horizontal layout */
    flex-wrap: nowrap; /* prevent wrapping onto multiple lines */
    justify-content: center; /* center the children */
    gap: 1rem; /* space between the two groups */
    align-items: flex-start;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    padding: 1rem;
    margin: 0 auto 1.5rem; /* auto‑center the box itself */
    max-width: 800px; /* optional: cap the box’s width */
    font-family: inherit;
}


.filter-group {
    display: flex;
    flex-direction: column;
    flex: 1 1 200px;
}

.filter-title {
    font-size: 1rem;
    font-weight: 600;
    color: #003c71;
    margin-bottom: 0.5rem;
}

.filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

    .filter-options label {
        display: flex;
        align-items: center;
        gap: 0.3rem;
        font-size: 0.9rem;
        color: #333;
        cursor: pointer;
    }

    .filter-options input[type="radio"] {
        margin: 0;
    }

    .filter-options select {
        padding: 0.3rem 0.6rem;
        font-size: 0.9rem;
        border: 1px solid #ccc;
        border-radius: 4px;
        background: white;
        color: #333;
    }
