Files
omniai-web/src/styles/pages/provider-health.css
T

166 lines
3.0 KiB
CSS
Raw Normal View History

2026-06-02 12:38:01 +08:00
.provider-health-page__inner {
display: flex;
flex-direction: column;
gap: 24px;
padding: 24px;
max-width: 960px;
}
.provider-health-toolbar {
display: flex;
justify-content: space-between;
align-items: flex-start;
}
.provider-health-toolbar h2 {
font-size: 18px;
margin: 0 0 4px;
}
.provider-health-toolbar p {
font-size: 13px;
color: var(--text-muted);
margin: 0;
}
.provider-health-toolbar button {
display: inline-flex;
align-items: center;
gap: 6px;
padding: 6px 14px;
border-radius: 8px;
border: 1px solid var(--border-subtle);
background: var(--surface-elevated);
color: var(--text-primary);
font-size: 13px;
cursor: pointer;
}
.provider-health-toolbar button:disabled {
opacity: 0.5;
cursor: wait;
}
.provider-health-access {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 12px;
padding: 80px 0;
text-align: center;
color: var(--text-muted);
}
.provider-health-access button {
padding: 8px 20px;
border-radius: 10px;
background: var(--accent);
color: #fff;
border: none;
cursor: pointer;
}
.provider-health-error {
color: var(--error, #ef4444);
font-size: 13px;
}
.provider-health-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
gap: 12px;
}
.provider-health-card {
padding: 16px;
border-radius: 14px;
background: var(--surface-card);
border: 1px solid var(--border-subtle);
display: flex;
flex-direction: column;
gap: 8px;
}
.provider-health-card__header {
display: flex;
align-items: center;
gap: 8px;
font-size: 15px;
}
.provider-health-card__status {
font-size: 12px;
padding: 2px 8px;
border-radius: 999px;
font-weight: 500;
}
.provider-health-card__status--healthy {
background: rgba(16, 185, 129, 0.15);
color: #10b981;
}
.provider-health-card__status--arrears,
.provider-health-card__status--denied,
.provider-health-card__status--error {
background: rgba(239, 68, 68, 0.15);
color: #ef4444;
}
.provider-health-card__status--timeout,
.provider-health-card__status--no_key {
background: rgba(245, 158, 11, 0.15);
color: #f59e0b;
}
.provider-health-card__status--unknown {
background: rgba(156, 163, 175, 0.15);
color: #9ca3af;
}
.provider-health-card__time {
font-size: 11px;
color: var(--text-muted);
}
.provider-health-card__error {
font-size: 12px;
color: var(--error, #ef4444);
margin: 0;
}
.provider-health-section {
display: flex;
flex-direction: column;
gap: 8px;
}
.provider-health-section h3 {
font-size: 14px;
margin: 0;
}
.provider-health-table {
width: 100%;
border-collapse: collapse;
font-size: 13px;
}
.provider-health-table th {
text-align: left;
padding: 8px 12px;
border-bottom: 2px solid var(--border-subtle);
color: var(--text-muted);
font-size: 12px;
font-weight: 500;
}
.provider-health-table td {
padding: 6px 12px;
border-bottom: 1px solid var(--border-subtle);
}
.provider-health-table tr:hover td {
background: var(--surface-elevated);
}