html, body {
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    background: #f7f8fa;
    color: #111827;
}

a, .btn-link {
    color: #0f62fe;
}

.btn-primary {
    color: #fff;
    background-color: #0f62fe;
    border-color: #0f62fe;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #0f62fe;
}

h1:focus {
    outline: none;
}

.page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.page-title {
    margin: 0;
    font-size: 28px;
    font-weight: 600;
    line-height: 1.25;
}

.page-subtitle {
    margin: 6px 0 0;
    color: #4b5563;
    font-size: 14px;
}

.toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.button {
    border: 1px solid #d9dee7;
    border-radius: 6px;
    height: 36px;
    padding: 0 14px;
    background: #ffffff;
    color: #111827;
    font-size: 14px;
    font-weight: 500;
}

.button.primary {
    background: #0f62fe;
    color: #ffffff;
    border-color: #0f62fe;
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

.metric-card,
.panel {
    background: #ffffff;
    border: 1px solid #d9dee7;
    border-radius: 8px;
}

.metric-card {
    padding: 16px;
}

.metric-label {
    color: #6b7280;
    font-size: 12px;
}

.metric-value {
    margin-top: 8px;
    font-size: 26px;
    font-weight: 700;
}

.content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.8fr);
    gap: 16px;
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 48px;
    padding: 12px 16px;
    border-bottom: 1px solid #d9dee7;
}

.panel-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.table-wrap {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.data-table th {
    height: 40px;
    color: #4b5563;
    background: #f7f8fa;
    border-bottom: 1px solid #d9dee7;
    font-weight: 600;
    text-align: left;
    padding: 0 16px;
}

.data-table td {
    height: 52px;
    border-bottom: 1px solid #eef1f5;
    padding: 8px 16px;
    vertical-align: middle;
}

.data-table tr:last-child td {
    border-bottom: 0;
}

.muted {
    color: #6b7280;
    font-size: 12px;
}

.badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 9px;
}

.badge.pending {
    background: #fff8e1;
    color: #8a5a00;
}

.badge.success {
    background: #e8f5ec;
    color: #198038;
}

.badge.danger {
    background: #fde8e8;
    color: #b91c1c;
}

.badge.info {
    background: #e8f1ff;
    color: #0f62fe;
}

.timeline {
    display: grid;
    gap: 12px;
    padding: 16px;
}

.timeline-item {
    border-left: 3px solid #d9dee7;
    padding-left: 12px;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #198038;
}

.invalid {
    outline: 1px solid #da1e28;
}

.validation-message {
    color: #da1e28;
}

.blazor-error-boundary {
    background: #da1e28;
    padding: 1rem;
    color: white;
}

.blazor-error-boundary::after {
    content: "An error has occurred."
}

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

@media (max-width: 960px) {
    .metric-grid,
    .content-grid {
        grid-template-columns: 1fr;
    }

    .page-header {
        flex-direction: column;
    }
}
