.report-page {
    --primary: #9f1738;
    --primary-dark: #80102c;
    --primary-soft: #f9e9ed;
    --blue: #2563eb;
    --blue-soft: #eaf1ff;
    --green: #059669;
    --green-soft: #e8f8f2;
    --orange: #d97706;
    --orange-soft: #fff4df;
    --text: #172033;
    --muted: #6c7485;
    --border: #e7eaf0;
    --background: #f6f7fa;
    --white: #ffffff;
    --shadow: 0 10px 35px rgba(24, 32, 51, 0.07);

    color: var(--text);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont,
        "Segoe UI", sans-serif;
}

.report-page *,
.report-page *::before,
.report-page *::after {
    box-sizing: border-box;
}

.report-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    min-height: 190px;
    margin-bottom: 22px;
    padding: 34px 38px;
    overflow: hidden;
    color: #ffffff;
    background:
        radial-gradient(
            circle at 90% 10%,
            rgba(255, 255, 255, 0.14),
            transparent 34%
        ),
        linear-gradient(125deg, #78102b, #af1e45 62%, #c92e55);
    border-radius: 22px;
    box-shadow: 0 16px 40px rgba(127, 16, 45, 0.2);
}

.report-hero::after {
    position: absolute;
    right: -55px;
    bottom: -100px;
    width: 270px;
    height: 270px;
    content: "";
    border: 40px solid rgba(255, 255, 255, 0.06);
    border-radius: 50%;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 660px;
}

.hero-label {
    display: inline-flex;
    align-items: center;
    padding: 6px 11px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
}

.hero-content h1 {
    margin: 12px 0 7px;
    color: #ffffff;
    font-size: clamp(27px, 3vw, 38px);
    line-height: 1.15;
}

.hero-content p {
    max-width: 610px;
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    line-height: 1.7;
}

.hero-summary {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 235px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.19);
    border-radius: 16px;
    backdrop-filter: blur(8px);
}

.hero-summary-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.16);
    border-radius: 13px;
}

.hero-summary-icon svg {
    width: 23px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hero-summary span,
.hero-summary small,
.hero-summary strong {
    display: block;
}

.hero-summary span {
    color: rgba(255, 255, 255, 0.75);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.hero-summary strong {
    margin: 2px 0;
    color: #ffffff;
    font-size: 27px;
    line-height: 1;
}

.hero-summary small {
    color: rgba(255, 255, 255, 0.7);
    font-size: 9px;
}

.report-panel {
    margin-bottom: 22px;
    padding: 23px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 19px;
    box-shadow: var(--shadow);
}

.panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 21px;
}

.heading-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.heading-content h2 {
    margin: 0 0 3px;
    color: var(--text);
    font-size: 16px;
}

.heading-content p {
    margin: 0;
    color: var(--muted);
    font-size: 11px;
}

.heading-icon {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    color: var(--primary);
    background: var(--primary-soft);
    border-radius: 11px;
}

.heading-icon.blue {
    color: var(--blue);
    background: var(--blue-soft);
}

.heading-icon svg {
    width: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.filter-active-badge,
.secure-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 10px;
    color: var(--primary);
    font-size: 10px;
    font-weight: 700;
    background: var(--primary-soft);
    border-radius: 30px;
}

.secure-label {
    color: var(--green);
    background: var(--green-soft);
}

.secure-label svg {
    width: 13px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.report-filter-form {
    display: grid;
    grid-template-columns:
        minmax(180px, 1fr)
        minmax(150px, 0.7fr)
        minmax(150px, 0.7fr)
        auto;
    align-items: end;
    gap: 15px;
}

.filter-field label {
    display: block;
    margin-bottom: 7px;
    color: #333b4c;
    font-size: 11px;
    font-weight: 700;
}

.select-control {
    position: relative;
}

.field-icon {
    position: absolute;
    top: 50%;
    left: 13px;
    z-index: 1;
    display: grid;
    place-items: center;
    color: #8a91a0;
    pointer-events: none;
    transform: translateY(-50%);
}

.field-icon svg {
    width: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.select-control select {
    width: 100%;
    height: 44px;
    padding: 0 38px;
    color: var(--text);
    font: inherit;
    font-size: 11px;
    background: #fafbfc;
    border: 1px solid #dfe3e9;
    border-radius: 11px;
    outline: none;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.select-control select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(159, 23, 56, 0.1);
}

.filter-buttons {
    display: flex;
    gap: 8px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 44px;
    padding: 0 16px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
    border: 0;
    border-radius: 11px;
    cursor: pointer;
    text-decoration: none;
    transition:
        transform 0.2s ease,
        background-color 0.2s ease,
        box-shadow 0.2s ease;
}

.button:hover {
    text-decoration: none;
    transform: translateY(-1px);
}

.button svg {
    width: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.button-primary {
    color: #ffffff;
    background: var(--primary);
    box-shadow: 0 7px 15px rgba(159, 23, 56, 0.2);
}

.button-primary:hover {
    color: #ffffff;
    background: var(--primary-dark);
}

.button-secondary {
    color: #555e6e;
    background: #f0f2f5;
}

.button-secondary:hover {
    color: var(--text);
    background: #e5e8ed;
}

.report-list-panel {
    padding: 0;
    overflow: hidden;
}

.list-heading {
    margin: 0;
    padding: 22px 23px;
    border-bottom: 1px solid var(--border);
}

.report-table-wrapper {
    width: 100%;
    overflow-x: auto;
}

.report-table {
    width: 100%;
    min-width: 920px;
    border-collapse: collapse;
}

.report-table th,
.report-table td {
    padding: 15px 17px;
    text-align: left;
    vertical-align: middle;
    border-bottom: 1px solid #edf0f4;
}

.report-table th {
    color: #747c8c;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    background: #fafbfc;
}

.report-table td {
    color: #434b5c;
    font-size: 11px;
}

.report-table tbody tr {
    transition: background-color 0.2s ease;
}

.report-table tbody tr:hover {
    background: #fcfcfd;
}

.report-table tbody tr:last-child td {
    border-bottom: 0;
}

.serial-column,
.serial-cell {
    width: 65px;
    text-align: center !important;
}

.action-column,
.action-cell {
    text-align: right !important;
}

.assessment-details {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 260px;
}

.assessment-avatar {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    color: var(--primary);
    font-size: 15px;
    font-weight: 800;
    background: var(--primary-soft);
    border-radius: 12px;
}

.assessment-details strong,
.assessment-details small {
    display: block;
}

.assessment-details strong {
    margin-bottom: 3px;
    color: var(--text);
    font-size: 12px;
}

.assessment-details small {
    max-width: 330px;
    overflow: hidden;
    color: var(--muted);
    font-size: 9px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.assessment-code {
    display: inline-block;
    margin-top: 5px;
    color: #8c93a0;
    font-size: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.language-badge {
    display: inline-flex;
    padding: 5px 8px;
    color: #43516b;
    font-size: 9px;
    font-weight: 700;
    background: #eef1f6;
    border-radius: 7px;
}

.date-value {
    display: flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
}

.date-value svg {
    width: 14px;
    color: #88909e;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 9px;
    font-size: 9px;
    font-weight: 700;
    border-radius: 30px;
}

.status-badge i {
    width: 6px;
    height: 6px;
    background: currentColor;
    border-radius: 50%;
}

.status-badge.generated {
    color: var(--green);
    background: var(--green-soft);
}

.status-badge.processing {
    color: var(--orange);
    background: var(--orange-soft);
}

.download-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 105px;
    height: 36px;
    padding: 0 12px;
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    background: var(--primary);
    border: 0;
    border-radius: 9px;
    text-decoration: none;
    cursor: pointer;
    transition:
        background-color 0.2s ease,
        transform 0.2s ease;
}

.download-button:hover {
    color: #ffffff;
    background: var(--primary-dark);
    text-decoration: none;
    transform: translateY(-1px);
}

.download-button svg {
    width: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.download-button.disabled {
    color: #8a919f;
    background: #ebedf1;
    cursor: not-allowed;
}

.download-button.disabled:hover {
    transform: none;
}

.empty-cell {
    padding: 55px 20px !important;
}

.empty-state {
    text-align: center;
}

.empty-icon {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    margin: 0 auto 13px;
    color: #9198a6;
    background: #f0f2f5;
    border-radius: 16px;
}

.empty-icon svg {
    width: 27px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
}

.empty-state h3 {
    margin: 0 0 6px;
    color: var(--text);
    font-size: 16px;
}

.empty-state p {
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 11px;
}

.empty-state a {
    color: var(--primary);
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
}

.pagination-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 23px;
    background: #fafbfc;
    border-top: 1px solid var(--border);
}

.pagination-information {
    color: var(--muted);
    font-size: 10px;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 5px;
}

.page-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 9px;
    color: #626b7a;
    font-size: 10px;
    font-weight: 700;
    background: #ffffff;
    border: 1px solid #dfe3e9;
    border-radius: 8px;
    text-decoration: none;
}

.page-button:hover,
.page-button.active {
    color: #ffffff;
    background: var(--primary);
    border-color: var(--primary);
    text-decoration: none;
}

.page-navigation {
    padding: 0 12px;
}

.page-dots {
    padding: 0 4px;
    color: #9299a6;
}

/* Responsive layout */

@media (max-width: 1100px) {
    .report-filter-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .filter-buttons {
        grid-column: span 2;
    }
}

@media (max-width: 700px) {
    .report-hero {
        align-items: stretch;
        flex-direction: column;
        padding: 26px 21px;
    }

    .hero-summary {
        min-width: 0;
    }

    .report-panel {
        padding: 17px;
        border-radius: 15px;
    }

    .report-filter-form {
        grid-template-columns: 1fr;
    }

    .filter-buttons {
        grid-column: auto;
    }

    .filter-buttons .button {
        flex: 1;
    }

    .panel-heading {
        align-items: flex-start;
    }

    .filter-active-badge,
    .secure-label {
        display: none;
    }

    .list-heading {
        padding: 18px;
    }

    .pagination-container {
        align-items: flex-start;
        flex-direction: column;
        padding: 16px;
    }

    .pagination {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 3px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .button,
    .download-button,
    .report-table tbody tr {
        transition: none;
    }
}