:root {
    --ptop-blue: #0072bc;
    --ptop-blue-dark: #003b73;
    --ptop-blue-deep: #00285e;
    --ptop-blue-light: #eef6fc;
    --ptop-yellow: #fdb913;
    --ptop-red: #ed1b2f;
    --ptop-green: #267a4b;
    --ptop-border: #cbdbea;
    --ptop-text: #17324d;
    --ptop-muted: #627489;
    --ptop-white: #ffffff;
    --ptop-focus: #005fcc;
}

body.ptop-report-standalone {
    margin: 0;
    min-height: 100vh;
    background: var(--ptop-blue-light);
    color: var(--ptop-text);
}

body.ptop-report-standalone #header-outer,
body.ptop-report-standalone #header-space,
body.ptop-report-standalone header,
body.ptop-report-standalone footer,
body.ptop-report-standalone #footer-outer,
body.ptop-report-standalone #copyright {
    display: none !important;
}

.ptop-sr-only,
.ptop-report-table caption {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.ptop-skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 9999;
    transform: translateY(-160%);
    padding: 10px 14px;
    border: 2px solid var(--ptop-focus);
    border-radius: 8px;
    background: var(--ptop-white);
    color: var(--ptop-blue-deep);
    font-weight: 800;
    text-decoration: none;
}

.ptop-skip-link:focus {
    transform: translateY(0);
    outline: 3px solid rgba(0, 95, 204, 0.25);
}

.ptop-mec-reports a:focus-visible,
.ptop-mec-reports button:focus-visible,
.ptop-mec-reports input:focus-visible,
.ptop-mec-reports select:focus-visible,
.ptop-table-wrap:focus-visible {
    outline: 3px solid rgba(0, 95, 204, 0.3);
    outline-offset: 2px;
}

.ptop-report-shell {
    min-height: 100vh;
    padding: 22px 0 48px;
}

.ptop-mec-reports {
    width: min(96vw, 1840px);
    max-width: none;
    margin: 0 auto;
    padding: 0;
    color: var(--ptop-text);
}

.ptop-report-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 auto 10px;
    text-align: center;
}

.ptop-report-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    margin-bottom: 2px;
}

.ptop-report-logo-image,
.ptop-report-logo .custom-logo {
    display: block;
    width: auto;
    max-width: 150px;
    max-height: 58px;
    object-fit: contain;
}

.ptop-report-site-name {
    color: var(--ptop-blue-deep);
    font-size: 24px;
    font-weight: 800;
}

.ptop-report-titlebar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 16px;
}

.ptop-report-titlebar h1 {
    margin: 0;
    color: var(--ptop-blue-deep);
    font-size: 32px;
    line-height: 1.1;
}

.ptop-report-titlebar h1::after {
    display: none;
}

.ptop-report-summary {
    display: inline-block;
    margin: 0;
    color: var(--ptop-muted);
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    text-align: right;
}

.ptop-report-filters {
    padding: 8px;
    margin-bottom: 18px;
    border: 1px solid var(--ptop-border);
    border-radius: 4px;
    background: #f6f7f7;
    box-shadow: none;
    overflow: visible;
}

.ptop-active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    min-width: 0;
}

.ptop-active-filters-label {
    color: var(--ptop-blue-deep);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.ptop-filter-chip {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 3px 8px;
    border: 1px solid #b9d7ec;
    border-radius: 999px;
    background: #f3f9fd;
    color: var(--ptop-blue-deep);
    font-size: 11px;
    font-weight: 800;
}

.ptop-active-filters-empty {
    color: var(--ptop-muted);
}

.ptop-filter-layout {
    display: grid;
    gap: 8px;
}

.ptop-filter-line {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    justify-content: flex-start;
    overflow: visible;
}

.ptop-filter-line-primary {
    align-items: center;
}

.ptop-filter-line-secondary {
    justify-content: space-between;
    padding-top: 8px;
    border-top: 1px solid #dce7f0;
}

.ptop-filter-secondary-fields {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.ptop-date-range {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.ptop-filter-line-search {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) 95px;
    align-items: end;
    padding-top: 10px;
    border-top: 1px solid #e3ebf2;
}

.ptop-filter-subbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
    padding-top: 0;
}

.ptop-filter-subbar-sr {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.ptop-filter-state {
    min-width: 0;
}

.ptop-filter-export-actions {
    margin-left: auto;
}

.ptop-field {
    position: relative;
    min-width: 0;
}

.ptop-field-control {
    position: relative;
    display: block;
    width: 100%;
}

.ptop-field.is-filter-active .ptop-field-control::before,
.ptop-button.is-filter-active::before {
    position: absolute;
    top: -4px;
    right: -4px;
    z-index: 3;
    width: 8px;
    height: 8px;
    border: 2px solid var(--ptop-white);
    border-radius: 50%;
    background: var(--ptop-blue);
    box-shadow: 0 1px 4px rgba(0, 40, 94, 0.28);
    content: "";
    pointer-events: none;
}

.ptop-field label {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.ptop-field-date label {
    position: static !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    overflow: visible !important;
    clip: auto !important;
    white-space: normal !important;
    color: var(--ptop-blue-deep);
    font-size: 12px;
    font-weight: 800;
}

.ptop-field-search label {
    position: static !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    overflow: visible !important;
    clip: auto !important;
    white-space: normal !important;
    color: var(--ptop-blue-deep);
    font-size: 12px;
    font-weight: 800;
}

.ptop-field-search {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 8px;
    align-items: center;
}

.ptop-field-date {
    display: inline-flex;
    gap: 6px;
    align-items: center;
}

.ptop-field input,
.ptop-field select {
    width: 100%;
    height: 36px;
    box-sizing: border-box;
    padding: 6px 9px;
    border: 1px solid var(--ptop-border);
    border-radius: 6px;
    background: var(--ptop-white);
    color: var(--ptop-text);
    font: inherit;
    font-size: 13px;
}

.ptop-field-date {
    width: auto;
}

.ptop-field-date .ptop-field-control {
    width: auto;
}

.ptop-field-date input {
    width: 142px;
}

.ptop-field-month {
    width: 132px;
}

.ptop-field-workshop {
    width: 260px;
}

.ptop-field-location {
    width: 190px;
}

.ptop-field-search {
    width: auto;
}

.ptop-filter-line-secondary .ptop-field-search {
    display: block;
    width: 260px;
}

.ptop-filter-line-secondary .ptop-field-search input[type="search"] {
    border-color: var(--ptop-border) !important;
    background: var(--ptop-white) !important;
    box-shadow: 0 2px 6px rgba(0, 40, 94, 0.12);
}

.ptop-filter-line-secondary .ptop-field-search label {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.ptop-field-status {
    width: 142px;
}

.ptop-field-per-page {
    width: 95px;
}

.ptop-field input:focus,
.ptop-field select:focus {
    border-color: var(--ptop-blue);
    outline: 3px solid rgba(0, 95, 204, 0.24);
}

.ptop-filter-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    align-items: center;
    justify-content: flex-start;
    white-space: nowrap;
}

.ptop-filter-download-actions {
    margin-left: auto;
}

.ptop-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 6px 12px !important;
    border: 1px solid var(--ptop-border);
    border-radius: 6px !important;
    background: var(--ptop-white);
    color: var(--ptop-blue-deep);
    text-decoration: none;
    font-size: 12px !important;
    font-weight: 800 !important;
    cursor: pointer;
    letter-spacing: 0 !important;
}

.ptop-button:hover,
.ptop-button:focus {
    transform: translateY(-1px);
}

.ptop-button-primary {
    border-color: var(--ptop-blue-deep) !important;
    background: var(--ptop-blue-deep) !important;
    color: #fff !important;
}

.ptop-button-primary:hover,
.ptop-button-primary:focus {
    background: var(--ptop-blue-dark) !important;
    color: #fff;
}

.ptop-button-secondary {
    border-color: var(--ptop-blue);
    color: var(--ptop-blue-deep);
}

.ptop-button-export {
    min-width: 250px;
    border-color: var(--ptop-yellow);
    background: var(--ptop-yellow);
    color: var(--ptop-blue-deep);
}

.ptop-button-export:hover,
.ptop-button-export:focus {
    background: #e7a900;
    color: var(--ptop-blue-deep);
}

.ptop-quick-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 0;
    padding: 0;
    border: 0;
}

.ptop-quick-filter {
    min-height: 28px;
    padding: 4px 9px;
    border: 1px solid #b9d7ec;
    border-radius: 999px;
    background: #f3f9fd;
    color: var(--ptop-blue-deep);
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
}

.ptop-quick-filter:hover,
.ptop-quick-filter:focus {
    border-color: var(--ptop-blue);
    background: #e5f3fc;
}

.ptop-advanced-dialog {
    width: min(560px, calc(100vw - 32px));
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: var(--ptop-white);
    color: var(--ptop-text);
    box-shadow: 0 24px 70px rgba(0, 40, 94, 0.32);
}

.ptop-advanced-dialog::backdrop {
    background: rgba(0, 40, 94, 0.38);
}

.ptop-advanced-dialog-inner {
    display: grid;
    gap: 16px;
    padding: 18px;
}

.ptop-advanced-dialog-header {
    display: flex;
    gap: 14px;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 12px;
    border-bottom: 1px solid #e3ebf2;
}

.ptop-advanced-dialog-header h2 {
    margin: 0;
    color: var(--ptop-blue-deep);
    font-size: 20px;
    line-height: 1.2;
}

.ptop-dialog-close {
    min-height: 32px;
    padding: 4px 10px;
    border: 1px solid var(--ptop-border);
    border-radius: 6px;
    background: var(--ptop-white);
    color: var(--ptop-blue-deep);
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.ptop-advanced-grid {
    display: grid;
    gap: 14px;
}

.ptop-advanced-dialog .ptop-date-range {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.ptop-advanced-dialog .ptop-field,
.ptop-advanced-dialog .ptop-field-date,
.ptop-advanced-dialog .ptop-field-search {
    display: grid;
    width: 100%;
    gap: 6px;
}

.ptop-advanced-dialog .ptop-field label {
    position: static !important;
    width: auto !important;
    height: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
    clip: auto !important;
    white-space: normal !important;
    border: 0 !important;
    color: var(--ptop-blue-deep);
    font-size: 12px;
    font-weight: 800;
}

.ptop-advanced-dialog .ptop-field-control,
.ptop-advanced-dialog .ptop-field-date .ptop-field-control {
    width: 100%;
}

.ptop-advanced-dialog .ptop-field-date input {
    width: 100%;
}

.ptop-advanced-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
    padding-top: 14px;
    border-top: 1px solid #e3ebf2;
}

.ptop-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--ptop-border);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 40, 94, 0.07);
}

.ptop-report-table {
    width: 100%;
    min-width: 1320px;
    border-collapse: collapse;
    font-size: 13px;
}

.ptop-report-table th,
.ptop-report-table td {
    padding: 11px 10px;
    border-right: 1px solid #e3ebf2;
    border-bottom: 1px solid #e3ebf2;
    text-align: left;
    vertical-align: top;
}

.ptop-report-table th:last-child,
.ptop-report-table td:last-child {
    border-right: 0;
}

.ptop-report-table th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: var(--ptop-blue-deep);
    color: #fff;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .03em;
    white-space: nowrap;
}

.ptop-sort-link {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    color: #fff !important;
    text-decoration: none;
}

.ptop-sort-link:hover,
.ptop-sort-link:focus {
    color: #fff !important;
    text-decoration: underline;
}

.ptop-sort-link::after {
    display: inline-block;
    width: 0;
    height: 0;
    border-right: 4px solid transparent;
    border-left: 4px solid transparent;
    opacity: .5;
    content: "";
}

.ptop-sort-link:not(.is-active)::after {
    border-top: 5px solid #fff;
    border-bottom: 0;
}

.ptop-sort-link.is-asc::after {
    border-right-width: 5px;
    border-bottom: 6px solid var(--ptop-yellow);
    border-left-width: 5px;
    opacity: 1;
}

.ptop-sort-link.is-desc::after {
    border-top: 6px solid var(--ptop-yellow);
    border-right-width: 5px;
    border-left-width: 5px;
    opacity: 1;
}

.ptop-report-table td::before {
    display: none;
}

.ptop-report-table tbody tr:nth-child(even) {
    background: #f7fbff;
}

.ptop-report-table tbody tr:hover {
    background: #eaf5fc;
}

.ptop-report-table a {
    color: var(--ptop-blue);
    word-break: break-word;
}

.ptop-status {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 999px;
    background: #eef1f5;
    color: #3d4858;
    font-size: 11px;
    font-weight: 800;
}

.ptop-attendees summary {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 4px 8px;
    border: 1px solid #b9d7ec;
    border-radius: 8px;
    background: #f3f9fd;
    color: var(--ptop-blue-deep);
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.ptop-attendees summary:focus-visible {
    outline: 3px solid rgba(0, 95, 204, 0.3);
    outline-offset: 2px;
}

.ptop-attendees ul {
    margin: 8px 0 0;
    padding-left: 18px;
    color: var(--ptop-text);
}

.ptop-attendees li + li {
    margin-top: 4px;
}

.ptop-status-confirmed,
.ptop-status-verified {
    background: #def3e8;
    color: #17613d;
}

.ptop-status-canceled {
    background: #fde5e8;
    color: #b42332;
}

.ptop-status-pending {
    background: #fff1c7;
    color: #765200;
}

.ptop-empty {
    padding: 40px !important;
    text-align: center !important;
    color: var(--ptop-muted);
}

.ptop-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 16px;
}

.ptop-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    min-height: 38px;
    padding: 6px 10px;
    border: 1px solid var(--ptop-border);
    border-radius: 7px;
    background: #fff;
    color: var(--ptop-blue-deep);
    text-decoration: none;
}

.ptop-pagination .current {
    border-color: var(--ptop-blue-deep);
    background: var(--ptop-blue-deep);
    color: #fff;
}

.ptop-report-footnote {
    margin-top: 10px;
    color: var(--ptop-muted);
    font-size: 12px;
}

.ptop-report-notice {
    max-width: 700px;
    margin: 40px auto;
    padding: 24px;
    border: 1px solid var(--ptop-border);
    border-radius: 8px;
    background: #fff;
}

.ptop-report-error {
    border-color: #e5b4b4;
    background: #fff5f5;
}

.ptop-report-header,
.ptop-report-count {
    display: none !important;
}

body.admin-bar .ptop-report-shell {
    padding-top: 42px;
}

@media (min-width: 901px) {
    .ptop-filter-line-primary {
        flex-wrap: nowrap;
        overflow: visible;
        padding-bottom: 1px;
    }

    .ptop-filter-line-secondary {
        flex-wrap: nowrap;
    }
}

@media (max-width: 1500px) {
    .ptop-field-workshop {
        width: 220px;
    }
}

@media (max-width: 900px) {
    .ptop-field-date,
    .ptop-field-month,
    .ptop-field-workshop,
    .ptop-field-location,
    .ptop-field-search,
    .ptop-field-status,
    .ptop-field-per-page {
        width: auto;
    }

    .ptop-field-date input {
        width: 100%;
    }

    .ptop-filter-download-actions {
        margin-left: 0;
    }

    .ptop-filter-line-secondary .ptop-field-search {
        width: min(260px, 100%);
    }

    .ptop-filter-line-search {
        grid-template-columns: minmax(220px, 1fr) 120px;
    }
}

@media (max-width: 620px) {
    .ptop-mec-reports {
        width: min(94vw, 1840px);
    }

    .ptop-report-shell {
        padding-top: 14px;
    }

    .ptop-report-brand {
        margin-bottom: 14px;
    }

    .ptop-report-titlebar {
        align-items: flex-start;
        flex-direction: column;
    }

    .ptop-report-titlebar h1 {
        font-size: 22px;
    }

    .ptop-report-summary {
        text-align: left;
    }

    .ptop-report-filters {
        padding: 14px;
    }

    .ptop-filter-line-search {
        grid-template-columns: 1fr;
    }

    .ptop-date-range,
    .ptop-filter-line,
    .ptop-filter-secondary-fields,
    .ptop-filter-subbar,
    .ptop-filter-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .ptop-field-date {
        display: grid;
        grid-template-columns: 48px minmax(0, 1fr);
    }

    .ptop-field-per-page,
    .ptop-filter-line-secondary .ptop-field-search,
    .ptop-button {
        width: 100%;
    }

    .ptop-filter-export-actions {
        margin-left: 0;
    }

    .ptop-advanced-dialog .ptop-date-range {
        grid-template-columns: 1fr;
    }

    .ptop-button-export {
        min-width: 0;
    }
}

@media (max-width: 760px) {
    .ptop-table-wrap {
        overflow-x: visible;
        border: 0;
        background: transparent;
        box-shadow: none;
    }

    .ptop-report-table {
        min-width: 0;
        border-collapse: separate;
        border-spacing: 0 12px;
    }

    .ptop-report-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
    }

    .ptop-report-table tr {
        display: block;
        border: 1px solid var(--ptop-border);
        border-radius: 8px;
        background: var(--ptop-white);
        box-shadow: 0 8px 22px rgba(0, 40, 94, 0.06);
    }

    .ptop-report-table tbody tr:nth-child(even),
    .ptop-report-table tbody tr:hover {
        background: var(--ptop-white);
    }

    .ptop-report-table td {
        display: grid;
        grid-template-columns: minmax(118px, 38%) minmax(0, 1fr);
        gap: 12px;
        min-height: 42px;
        padding: 10px 12px;
        border-right: 0;
        text-align: left;
        word-break: break-word;
    }

    .ptop-report-table td::before {
        display: block;
        color: var(--ptop-blue-deep);
        font-size: 12px;
        font-weight: 800;
        content: attr(data-label);
    }

    .ptop-empty {
        display: block !important;
    }

    .ptop-empty::before {
        display: none !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }

    .ptop-button:hover,
    .ptop-button:focus {
        transform: none;
    }
}
