.dwr-report-container {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.75rem;
    margin: 1.5rem 0;
    box-shadow: 0 12px 24px -16px rgba(15, 23, 42, 0.35);
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.dwr-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.dwr-title {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 700;
    color: #0f172a;
}

.dwr-description {
    margin: 0.35rem 0 0;
    color: #475569;
    font-size: 0.95rem;
}

.dwr-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.dwr-toolbar__metrics,
.dwr-toolbar__views {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.dwr-pill,
.dwr-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
    border: 1px solid transparent;
}

.dwr-pill {
    background: #f1f5f9;
    color: #1e293b;
}

.dwr-pill:hover {
    background: #e2e8f0;
}

.dwr-pill.is-active {
    background: #0ea5e9;
    color: #ffffff;
    border-color: #0ea5e9;
    box-shadow: 0 8px 16px -12px rgba(14, 165, 233, 0.75);
}

.dwr-tab {
    background: transparent;
    color: #334155;
    border-color: #e2e8f0;
}

.dwr-tab:hover {
    background: #f8fafc;
}

.dwr-tab.is-active {
    background: #0f172a;
    color: #ffffff;
    border-color: #0f172a;
}

.dwr-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-end;
    margin-bottom: 1.75rem;
    padding: 0.75rem 1rem;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

.dwr-filter label {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-size: 0.85rem;
    color: #475569;
}

.dwr-filter select {
    min-width: 140px;
    border-radius: 8px;
    border: 1px solid #cbd5f5;
    padding: 0.45rem 0.6rem;
    font-size: 0.95rem;
    background: #ffffff;
    transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease;
}

.dwr-filter select:focus {
    border-color: #0ea5e9;
    box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.15);
    outline: none;
}

.dwr-button {
    padding: 0.45rem 1rem;
    border-radius: 8px;
    border: none;
    background: #2563eb;
    color: #ffffff;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease-in-out, box-shadow 0.2s ease;
}

.dwr-button:hover {
    background: #1d4ed8;
    box-shadow: 0 12px 16px -14px rgba(37, 99, 235, 0.75);
}

.dwr-section {
    margin-bottom: 2rem;
}

.dwr-section__title {
    font-size: 1.15rem;
    margin: 0 0 0.75rem;
    color: #111827;
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.dwr-section__title small {
    font-size: 0.8rem;
    color: #64748b;
}

.dwr-table-wrapper {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.dwr-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.9rem;
    min-width: 720px;
}

.dwr-table thead th {
    background: #0f172a;
    color: #ffffff;
    padding: 0.75rem;
    text-align: center;
    font-weight: 600;
    position: sticky;
    top: 0;
}

.dwr-table tbody td,
.dwr-table tbody th,
.dwr-table tfoot th {
    padding: 0.6rem 0.5rem;
    text-align: center;
    border-bottom: 1px solid #e2e8f0;
    border-right: 1px solid #f1f5f9;
    min-width: 84px;
}

.dwr-table tbody td:first-child,
.dwr-table tbody th:first-child,
.dwr-table thead th:first-child,
.dwr-table tfoot th:first-child {
    position: sticky;
    left: 0;
    background: #f8fafc;
    z-index: 1;
    border-right: 1px solid #e2e8f0;
}

.dwr-table tbody tr:nth-child(even) td:first-child {
    background: #f1f5f9;
}

.dwr-table tfoot {
    background: #f8fafc;
}

.dwr-table tfoot th {
    font-weight: 700;
}

.dwr-year {
    font-weight: 600;
    color: #0f172a;
}

.dwr-no-data {
    color: #94a3b8;
    font-style: italic;
    background: #f8fafc;
}

.dwr-summary-cell {
    font-weight: 700;
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.08);
}

.dwr-cell-value {
    display: block;
    font-weight: 600;
}

.dwr-cell-meta {
    display: block;
    font-size: 0.75rem;
    margin-top: 0.15rem;
    line-height: 1.15;
}

.dwr-dev {
    font-weight: 600;
}

.dwr-dev-neutral {
    color: #94a3b8;
}

.dwr-cell-meta .dwr-dev {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0.1rem 0.35rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.18);
}

.dwr-cell-meta .dwr-dev-neutral {
    background: rgba(248, 250, 252, 0.9);
    color: #475569;
}

.dwr-trend-up {
    color: #dc2626;
}

.dwr-trend-down {
    color: #059669;
}

.dwr-trend-neutral {
    color: #94a3b8;
}

.dwr-message {
    margin: 1.25rem 0;
    padding: 1rem 1.25rem;
    background: #fef3c7;
    border: 1px solid #fcd34d;
    color: #92400e;
    border-radius: 8px;
    font-size: 0.95rem;
}

@media (max-width: 720px) {
    .dwr-report-container {
        padding: 1.25rem;
    }

    .dwr-toolbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .dwr-filter {
        flex-direction: column;
        align-items: stretch;
    }

    .dwr-filter label,
    .dwr-filter select,
    .dwr-button {
        width: 100%;
    }
}
