body {
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    color: #1f2937;
    background: #f8f9fb;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: #b32121;
    padding: 1rem 1rem 1rem 1.25rem;
    color: white;
}

.blazor-error-boundary::after {
    content: "An error has occurred.";
}

.hero-card {
    background: linear-gradient(135deg, #ffffff 0%, #f2f6ff 100%);
}

.year-block {
    display: inline-block;
    width: 7px;
    height: 16px;
    margin-right: 1px;
    border-radius: 2px;
    border: 1px solid #d0d8eb;
    vertical-align: middle;
}

.year-block.filled {
    background: #3b82f6;
    border-color: #3b82f6;
}

.year-block.esg.filled {
    background: #10b981;
    border-color: #10b981;
}

.year-block.empty {
    background: #f8fafc;
}

.year-block.nope {
    border-color: transparent;
    background: transparent;
}

.table td,
.table th {
    font-size: 0.92rem;
}

.btn-group .btn.active {
    pointer-events: none;
}

.chart-row {
    display: grid;
    grid-template-columns: 140px 1fr 110px;
    gap: 0.6rem;
    align-items: center;
    margin-bottom: 0.7rem;
}

.chart-label {
    font-size: 0.9rem;
    color: #374151;
}

.chart-track {
    width: 100%;
    height: 12px;
    background: #e5e7eb;
    border-radius: 999px;
    overflow: hidden;
}

.chart-fill {
    height: 100%;
}

.chart-value {
    text-align: right;
    font-size: 0.88rem;
    color: #374151;
}

.bg-teal {
    background-color: #14b8a6;
}

.quarter-track {
    display: flex;
    width: 100%;
    height: 12px;
    border-radius: 999px;
    overflow: hidden;
    background: #e5e7eb;
}

.quarter-women {
    background: #8b5cf6;
}

.quarter-men {
    background: #6b7280;
}

.permission-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border: 1px solid #ced4da;
    background: transparent;
    color: #6c757d;
    font-weight: 500;
}

.permission-badge .permission-eye {
    font-size: 0.85rem;
    line-height: 1;
}

.permission-eye-icon {
    font-size: 1em;
    opacity: 0.6;
    cursor: help;
    margin-left: 0.2rem;
}

.sort-th {
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
}

.sort-th:hover {
    background-color: rgba(0, 0, 0, 0.04);
}

.sort-indicator {
    font-size: 0.75em;
    opacity: 0.4;
    margin-left: 0.15rem;
}

.sort-indicator.active {
    opacity: 1;
}

.trend-indicator {
    font-weight: 700;
    font-size: 0.82rem;
}

.trend-up {
    color: #198754;
}

.trend-down {
    color: #dc3545;
}

.trend-flat {
    color: #6c757d;
}

/* Quick company search in navbar */
.quick-search {
    position: relative;
}

.quick-search-input {
    width: 220px;
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
    color: #fff !important;
}

.quick-search-input::placeholder {
    color: rgba(255, 255, 255, 0.55);
}

.quick-search-input:focus {
    background: rgba(255, 255, 255, 0.22) !important;
    border-color: rgba(255, 255, 255, 0.45) !important;
    box-shadow: 0 0 0 0.15rem rgba(255, 255, 255, 0.15);
}

.quick-search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1050;
    margin-top: 4px;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    list-style: none;
    padding: 0.25rem 0;
    max-height: 320px;
    overflow-y: auto;
}

.quick-search-item {
    display: flex;
    flex-direction: column;
    padding: 0.4rem 0.75rem;
    cursor: pointer;
    font-size: 0.875rem;
    color: #1f2937;
    transition: background-color 0.1s;
}

.quick-search-item:hover,
.quick-search-item.active {
    background-color: #e9ecef;
}

.quick-search-name {
    font-weight: 500;
}

.quick-search-legal {
    font-size: 0.78rem;
}

/* The DEI scoring page's "live" marker. */
.dei-live-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 0.35rem;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
    vertical-align: 1px;
}

/* The DEI scoring page's recent jobs. */
.dei-recent-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem 0.6rem;
    width: 100%;
    padding: 0.35rem 0.25rem;
    border: 0;
    border-radius: 0.5rem;
    background: none;
    color: inherit;
    text-align: left;
}

.dei-recent-row:hover {
    background: #f3f4f6;
}

/* A failed recent job's retry checkbox, or the space it takes in the other rows. */
.dei-check {
    flex: 0 0 1rem;
    width: 1rem;
    height: 1rem;
}

.dei-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
}

.dei-dot.bad {
    background: #ef4444;
}

.dei-dot.old {
    background: #9ca3af;
}

.dei-tag {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    padding: 0.1rem 0.4rem;
    border-radius: 999px;
    color: #1d4ed8;
    background: #dbeafe;
}

.dei-tag.esg {
    color: #047857;
    background: #d1fae5;
}
