#bes-panel-dashboard .page-head {
    padding: 48px 0 24px;
}

/* Guest CTA banner, encourages signup to persist recent reports */
#bes-panel-dashboard .guest-cta {
    background: var(--blue-50);
    border: 1px solid #dbe7fe;
    border-radius: var(--radius-md);
    padding: 16px 20px;
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

#bes-panel-dashboard .guest-cta-text {
    flex: 1;
    min-width: 220px;
    font-size: 13px;
    color: var(--ink-700);
}

#bes-panel-dashboard .guest-cta-text strong {
    color: var(--ink-900);
    display: block;
    margin-bottom: 2px;
    font-weight: 600;
}

#bes-panel-dashboard .guest-cta-text span {
    color: var(--ink-500);
}

#bes-panel-dashboard .page-title {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 30px;
    font-weight: 600;
    color: var(--ink-900);
    line-height: 1.2;
    margin-bottom: 6px;
}

#bes-panel-dashboard .page-sub {
    color: var(--ink-500);
    font-size: 15px;
}

/* Quick search bar at the top of the dashboard */
#bes-panel-dashboard .quick-search {
    display: flex;
    gap: 8px;
    background: #fff;
    border: 1px solid var(--ink-200);
    border-radius: var(--radius-md);
    padding: 6px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 32px;
}

#bes-panel-dashboard .quick-search-state {
    flex: 0 0 120px;
    display: flex;
}

#bes-panel-dashboard .quick-search-state select {
    height: 100%;
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    background: var(--ink-50);
    border: 1px solid var(--ink-200);
    border-radius: 6px;
    padding: 10px 26px 10px 12px;
    font-size: 13px;
    font-family: inherit;
    color: var(--ink-800);
    font-weight: 500;
    cursor: pointer;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2371717a' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 11px 11px;
}

#bes-panel-dashboard .quick-search-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 12px 14px;
    font-size: 15px;
    font-family: inherit;
    color: var(--ink-900);
    outline: none;
}

#bes-panel-dashboard .quick-search-submit {
    background: #fff;
    color: var(--blue-600);
    border: 1.5px solid var(--blue-600);
    border-radius: 6px;
    padding: 0 22px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.15s;
}

#bes-panel-dashboard .quick-search-submit:hover {
    background: var(--blue-50);
    color: var(--blue-700);
    border-color: var(--blue-700);
}

/* Reports section */
#bes-panel-dashboard .section-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 14px;
}

#bes-panel-dashboard .section-title {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 20px;
    font-weight: 600;
    color: var(--ink-900);
}

/* Filters row, same pattern as search-results page */
#bes-panel-dashboard .reports-filters-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

#bes-panel-dashboard .reports-filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

#bes-panel-dashboard .filter-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--ink-500);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

#bes-panel-dashboard .reports-filters-row select {
    appearance: none;
    background: #fff;
    border: 1px solid var(--ink-200);
    border-radius: var(--radius-sm);
    padding: 8px 32px 8px 14px;
    font-size: 13px;
    font-family: inherit;
    color: var(--ink-700);
    font-weight: 500;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2371717a' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
}

/* Reports rendered as a clean table */
#bes-panel-dashboard .reports-table {
    background: #fff;
    border: 1px solid var(--ink-200);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 16px;
}

#bes-panel-dashboard .reports-table-head,
#bes-panel-dashboard .report-row {
    display: grid;
    grid-template-columns: 2fr 1.4fr 1fr 1fr 90px;
    gap: 18px;
    align-items: center;
    padding: 14px 18px;
}

#bes-panel-dashboard .rcol-action {
    display: flex;
    justify-content: flex-end;
}

#bes-panel-dashboard .reports-table-head {
    background: var(--ink-50);
    border-bottom: 1px solid var(--ink-200);
    font-size: 11px;
    font-weight: 600;
    color: var(--ink-500);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

#bes-panel-dashboard .report-row {
    background: #fff;
    border-bottom: 1px solid var(--ink-100);
    transition: background 0.12s;
    text-decoration: none;
    color: inherit;
}

#bes-panel-dashboard .report-row:last-child {
    border-bottom: none;
}

#bes-panel-dashboard .report-row:hover {
    background: var(--ink-50);
    text-decoration: none;
}

#bes-panel-dashboard .rcol-entity .report-name {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 16px;
    font-weight: 600;
    color: var(--ink-900);
    line-height: 1.2;
}

#bes-panel-dashboard .rcol-entity .report-meta {
    font-size: 12px;
    color: var(--ink-500);
    margin-top: 2px;
}

#bes-panel-dashboard .rcol-type,
#bes-panel-dashboard .rcol-date,
#bes-panel-dashboard .rcol-status {
    font-size: 13px;
    color: var(--ink-700);
}

#bes-panel-dashboard .rcol-action .btn {
    padding: 8px 12px;
    font-size: 13px;
}

#bes-panel-dashboard .reports-summary {
    font-size: 13px;
    color: var(--ink-500);
    margin-bottom: 48px;
}

#bes-panel-dashboard .report-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: var(--radius-pill);
}

#bes-panel-dashboard .report-status.active {
    background: var(--green-50);
    color: #047857;
}

#bes-panel-dashboard .report-status.active .dot {
    width: 5px;
    height: 5px;
    background: var(--green-500);
    border-radius: 50%;
}

#bes-panel-dashboard .report-status.dissolved {
    background: var(--ink-100);
    color: var(--ink-500);
}

/* Empty state */
#bes-panel-dashboard .empty {
    background: #fff;
    border: 1px dashed var(--ink-200);
    border-radius: var(--radius-md);
    padding: 56px 32px;
    text-align: center;
}

#bes-panel-dashboard .empty-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--ink-100);
    color: var(--ink-500);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}

#bes-panel-dashboard .empty-title {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--ink-900);
    margin-bottom: 6px;
}

#bes-panel-dashboard .empty-sub {
    color: var(--ink-500);
    font-size: 14px;
    margin-bottom: 18px;
}

/* Footer (matches sitewide) */
.footer {
    background: #1a202c;
    color: var(--ink-400);
    padding: 64px 0 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 48px;
    max-width: 1300px;
    margin: 0 auto 48px;
}

.footer-brand p {
    margin-top: 16px;
    font-size: 14px;
    color: var(--ink-400);
    max-width: 280px;
    line-height: 1.55;
}

.footer-col h4 {
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 10px;
}

.footer-col a {
    color: var(--ink-400);
    font-size: 14px;
    text-decoration: none;
    transition: color 0.15s;
}

.footer-col a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 13px;
    color: var(--ink-500);
    max-width: 1300px;
    margin: 0 auto;
}

.footer .logo img {
    height: 24px;
    filter: brightness(0) invert(1) opacity(0.92);
}

@media (max-width: 760px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    #bes-panel-dashboard .quick-search-state {
        flex: 0 0 100px;
    }

    /* On narrow widths, hide State and Results columns */
    #bes-panel-dashboard .reports-table-head,
    #bes-panel-dashboard .report-row {
        grid-template-columns: 1fr auto auto;
    }

    #bes-panel-dashboard .reports-table-head > div:nth-child(2),
    #bes-panel-dashboard .reports-table-head > div:nth-child(3),
    #bes-panel-dashboard .report-row .rcol-type,
    #bes-panel-dashboard .report-row .rcol-date {
        display: none;
    }
}

/* =========================================================
     Mobile responsive (<= 640px)
     ========================================================= */
@media (max-width: 640px) {
    .container {
        padding: 0 16px;
    }

    /* Nav */
    .nav-inner {
        padding: 12px 16px;
    }

    .nav .logo img {
        height: 26px;
    }

    .nav-links {
        gap: 4px;
    }

    .nav-link {
        padding: 6px 8px;
        font-size: 13px;
    }

    .nav .btn-sm {
        padding: 8px 12px;
        font-size: 13px;
    }

    /* Page head */
    section {
        padding: 24px 0 40px;
    }

    #bes-panel-dashboard .page-head {
        margin-bottom: 18px;
    }

    #bes-panel-dashboard .page-title {
        font-size: 24px;
        line-height: 1.2;
    }

    #bes-panel-dashboard .page-sub {
        font-size: 14px;
    }

    /* Guest CTA banner */
    #bes-panel-dashboard .guest-cta {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 16px;
    }

    #bes-panel-dashboard .guest-cta-text {
        font-size: 13px;
    }

    #bes-panel-dashboard .guest-cta .btn {
        width: 100%;
        justify-content: center;
    }

    /* Quick search */
    #bes-panel-dashboard .quick-search {
        flex-direction: column;
        padding: 8px;
        gap: 8px;
    }

    #bes-panel-dashboard .quick-search-state {
        width: 100%;
        flex: none;
        border-right: none;
        border-bottom: 1px solid var(--ink-200);
        padding: 6px 8px 12px;
    }

    #bes-panel-dashboard .quick-search-state select {
        width: 100%;
        font-size: 16px;
    }

    #bes-panel-dashboard .quick-search-input {
        width: 100%;
    }

    #bes-panel-dashboard .quick-search button[type="submit"] {
        width: 100%;
        padding: 12px 18px;
        font-size: 14px;
    }

    /* Section heads */
    #bes-panel-dashboard .section-head {
        margin-top: 28px;
        margin-bottom: 12px;
    }

    #bes-panel-dashboard .section-title {
        font-size: 16px;
    }

    #bes-panel-dashboard .section-meta {
        font-size: 12px;
    }

    /* Reports/recents table -> cards on mobile */
    #bes-panel-dashboard .reports-table {
        border: none;
        background: transparent;
    }

    #bes-panel-dashboard .reports-table-head {
        display: none;
    }

    #bes-panel-dashboard .report-row {
        display: block;
        border: 1px solid var(--ink-200);
        border-radius: var(--radius-md);
        padding: 14px 16px;
        margin-bottom: 10px;
        background: #fff;
    }

    #bes-panel-dashboard .report-row .rcol-entity {
        margin-bottom: 10px;
    }

    #bes-panel-dashboard .report-row .rcol-type,
    #bes-panel-dashboard .report-row .rcol-date {
        display: none;
    }

    #bes-panel-dashboard .report-row .rcol-action {
        width: 100%;
    }

    #bes-panel-dashboard .report-row .rcol-action .btn {
        width: 100%;
        justify-content: center;
        padding: 10px;
        font-size: 13px;
    }

    #bes-panel-dashboard .report-name {
        font-size: 15px;
    }

    #bes-panel-dashboard .report-meta {
        font-size: 12px;
    }

    /* Empty state */
    #bes-panel-dashboard .empty-state {
        padding: 28px 16px;
    }

    #bes-panel-dashboard .empty-state h3 {
        font-size: 16px;
    }

    #bes-panel-dashboard .empty-state p {
        font-size: 13px;
    }

    /* Footer */
    .footer {
        padding: 32px 0 18px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        margin-bottom: 24px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
        font-size: 12px;
    }
}

/* Small phones (<= 380px) */
@media (max-width: 380px) {
    #bes-panel-dashboard .page-title {
        font-size: 21px;
    }

    .nav-link {
        font-size: 12px;
        padding: 6px;
    }
}