﻿@import url('./lab-theme.css');

body {
    display: block;
}

.waits-grid {
    max-width: 1080px;
    width: calc(100% - 32px);
    margin: 12px auto;
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.wait-card {
    border: 1px solid var(--lab-border);
    border-radius: 14px;
    background: var(--lab-surface);
    box-shadow: var(--lab-shadow);
    padding: 16px;
}

.wait-card h2 {
    margin-top: 0;
    font-size: 1.05rem;
}

.wait-card p {
    margin: 8px 0 10px;
}

.delayed,
.loader-box,
.results-table,
.badge,
.status-chip,
.hint {
    margin-top: 10px;
}

.hidden {
    display: none;
}

.delayed {
    border: 1px dashed #9fb3c8;
    border-radius: 8px;
    background: #f8fbff;
    padding: 10px;
}

.status-chip {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-weight: 600;
}

.status-chip.pending {
    background: #fff4d6;
    color: #8a5d00;
}

.status-chip.done {
    background: #dcfce7;
    color: #166534;
}

.hint {
    color: #52606d;
}

.loader-box {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #b3c7d7;
    background: #f8fbff;
    border-radius: 10px;
    padding: 10px;
}

.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid #d9e2ec;
    border-top-color: #1f4b6e;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.results-table {
    width: 100%;
    border-collapse: collapse;
}

.results-table th,
.results-table td {
    border: 1px solid #d9e2ec;
    padding: 8px;
}

.results-table thead th {
    background: #f8fbff;
}

.badge {
    display: inline-block;
    border-radius: 999px;
    padding: 4px 12px;
    font-weight: 700;
}

.badge.waiting {
    background: #fff4d6;
    color: #8a5d00;
}

.badge.ready {
    background: #dcfce7;
    color: #166534;
}

.back-section {
    max-width: 1080px;
    width: calc(100% - 32px);
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.back-section button {
    width: auto;
    min-width: 190px;
}
