/* ===== Reporting Menu Page ===== */

body
{
    font-family: Arial, Helvetica, sans-serif;
    margin: 0;
    background: #f0f2f5;
}

.container
{
    max-width: 900px;
    margin: 40px auto;
    padding: 0 24px 60px;
}

h1
{
    font-size: 22px;
    color: #222;
    margin-bottom: 4px;
}

.page-subtitle
{
    color: #666;
    font-size: 13px;
    margin-bottom: 24px;
}

a
{
    color: #0066cc;
    text-decoration: none;
}

a:hover
{
    text-decoration: underline;
}

/* ── Accordion ── */

.accordion-panel
{
    border: 1px solid #d0d5dd;
    border-radius: 6px;
    margin-bottom: 10px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
}

.accordion-header
{
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: #fff;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    color: #222;
    transition: background 0.15s;
}

.accordion-header:hover
{
    background: #f5f7fa;
}

.accordion-panel.accordion-open .accordion-header
{
    background: #f0f4ff;
    border-bottom: 1px solid #d0d5dd;
}

.accordion-title
{
    flex: 1;
}

.accordion-meta
{
    font-size: 12px;
    font-weight: normal;
    color: #888;
}

.accordion-icon
{
    font-size: 11px;
    color: #888;
    transition: transform 0.2s;
    transform: rotate(-90deg);   /* collapsed = pointing right */
}

.accordion-panel.accordion-open .accordion-icon
{
    transform: rotate(0deg);     /* open = pointing down */
}

.accordion-body
{
    display: none;
    padding: 16px 18px 20px;
}

.accordion-panel.accordion-open .accordion-body
{
    display: block;
}

/* ── Project filter form ── */

.project-filter
{
    display: flex;
    align-items: flex-start;
    gap: 12px;
    flex-wrap: wrap;
    background: #f7f8fa;
    border: 1px solid #e0e3e8;
    border-radius: 4px;
    padding: 12px 16px;
    margin-bottom: 16px;
}

.filter-field
{
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.filter-label
{
    font-size: 11px;
    font-weight: 600;
    color: #555;
}

.filter-label span
{
    font-weight: normal;
    color: #888;
}

.filter-input
{
    font-size: 12px;
    padding: 4px 7px;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-family: inherit;
}

.filter-select
{
    font-size: 12px;
    padding: 2px 4px;
    border: 1px solid #ccc;
    border-radius: 3px;
    min-width: 160px;
    background: #fff;
    font-family: inherit;
}

.filter-submit
{
    font-size: 12px;
    padding: 5px 14px;
    border: 1px solid #666;
    background: #f2f2f2;
    cursor: pointer;
    border-radius: 3px;
    font-family: inherit;
}

.filter-submit:hover
{
    background: #e0e0e0;
}

.filter-actions
{
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

/* ── Report list table ── */

.report-list
{
    border-collapse: collapse;
    width: 100%;
    font-size: 13px;
}

.report-list th
{
    padding: 6px 10px;
    background: #f0f2f5;
    text-align: left;
    font-weight: 600;
    color: #444;
    border-bottom: 2px solid #d0d5dd;
}

.report-list th:not(:first-child)
{
    text-align: center;
}

.report-list td
{
    padding: 6px 10px;
    border-bottom: 1px solid #eee;
}

.report-list td:not(:first-child)
{
    text-align: center;
}

.report-list tbody tr:last-child td
{
    border-bottom: none;
}

.report-list tbody tr:nth-child(odd)
{
    background: #ffffff;
}

.report-list tbody tr:nth-child(even)
{
    /* background: #f5f7fa; */
    background: #f5f7fa;

}

.report-list tbody tr:hover
{
/* background: #e8edf5; */
    background: #ebebeb;
}

/* ── Report group headers — add to reporting-menu.css ─────────────────── */
.report-group-hdr td 
{
    background: #2e4057;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 6px 12px;
    border-top: 2px solid #1a2c3d;
}

.report-name 
{
    padding-left: 20px !important;
}

/* Alternating group colours for visual separation */
.report-group-hdr:nth-of-type(1) td { background: #2e4057; }
.report-group-hdr:nth-of-type(2) td { background: #1a6b4a; }
.report-group-hdr:nth-of-type(3) td { background: #5a3e8a; }
.report-group-hdr:nth-of-type(4) td { background: #8a3e1a; }
