/* Employee Questionnaire Dashboard */

.eqd {
    --eqd-ink: #1a2332;
    --eqd-muted: #5c6b7a;
    --eqd-line: #d5dde5;
    --eqd-surface: #f3f6f9;
    --eqd-accent: #0d6e6e;
    --eqd-warn: #9a5b00;
    color: var(--eqd-ink);
    font-family: "Source Sans 3", "Segoe UI", sans-serif;
}

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

.eqd-header h2 {
    margin: 0 0 0.35rem;
    font-family: "Fraunces", Georgia, serif;
    font-weight: 600;
    font-size: 1.65rem;
}

.eqd-muted { color: var(--eqd-muted); font-size: 0.95rem; }

.eqd-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.eqd-card {
    background: linear-gradient(160deg, #eef4f6 0%, #f8fafb 100%);
    border-bottom: 3px solid var(--eqd-accent);
    padding: 1rem;
}

.eqd-card__value {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    font-family: "Fraunces", Georgia, serif;
}

.eqd-card__label {
    color: var(--eqd-muted);
    font-size: 0.85rem;
}

.eqd-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.eqd-input, .eqd-textarea, .eqd-label input {
    border: 1px solid var(--eqd-line);
    background: #fff;
    padding: 0.5rem 0.65rem;
    font: inherit;
    border-radius: 2px;
}

.eqd-textarea { width: 100%; margin: 0.5rem 0; }

.eqd-label {
    display: block;
    margin-bottom: 0.75rem;
}

.eqd-label .eqd-input { display: block; width: 100%; margin-top: 0.25rem; }

.eqd-table-wrap { overflow-x: auto; margin-bottom: 1rem; }

.eqd-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.eqd-table th,
.eqd-table td {
    text-align: left;
    padding: 0.65rem 0.5rem;
    border-bottom: 1px solid var(--eqd-line);
}

.eqd-table tbody tr { cursor: pointer; }
.eqd-table tbody tr:hover { background: var(--eqd-surface); }

.eqd-status {
    display: inline-block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.15rem 0.4rem;
    background: var(--eqd-surface);
}

.eqd-status--active { background: #d8efe8; color: #0a5c4a; }
.eqd-status--paused { background: #f5e6c8; color: var(--eqd-warn); }
.eqd-status--completed { background: #dde7f5; color: #1e3a5f; }
.eqd-status--draft, .eqd-status--ready { background: #eee; }

.eqd-pager {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.eqd-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--eqd-line);
}

.eqd-tab {
    border: 0;
    background: transparent;
    padding: 0.55rem 0.75rem;
    cursor: pointer;
    color: var(--eqd-muted);
    font: inherit;
}

.eqd-tab.is-active {
    color: var(--eqd-accent);
    border-bottom: 2px solid var(--eqd-accent);
    font-weight: 600;
}

.eqd-tab-body { min-height: 12rem; }

.eqd-pre {
    background: var(--eqd-surface);
    padding: 0.75rem;
    overflow: auto;
    font-size: 0.8rem;
    max-height: 28rem;
}

.eqd-steps {
    display: flex;
    gap: 1rem;
    list-style: none;
    padding: 0;
    margin: 1rem 0;
    color: var(--eqd-muted);
}

.eqd-steps .is-active { color: var(--eqd-accent); font-weight: 600; }

.eqd-upgrade {
    max-width: 36rem;
    padding: 1.5rem;
    background:
        radial-gradient(ellipse at top left, rgba(13, 110, 110, 0.12), transparent 50%),
        linear-gradient(180deg, #f7fafb, #eef3f5);
}

.eqd-upgrade__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }

.eqd-progress {
    height: 8px;
    background: var(--eqd-line);
    margin: 0.5rem 0;
    border-radius: 2px;
    overflow: hidden;
}

.eqd-progress__bar {
    height: 100%;
    background: var(--eqd-accent);
    transition: width 0.3s ease;
}

.eqd-actions-bar { margin: 1rem 0; }
.eqd-loading, .eqd-error { padding: 1rem; }
.eqd-error { color: #8b1e1e; }
.eqd-fieldset { border: 1px solid var(--eqd-line); padding: 1rem; margin-bottom: 1rem; }
.eqd-out { margin: 0.75rem 0; }
.eqd-audit { list-style: none; padding: 0; }
.eqd-audit li { padding: 0.35rem 0; border-bottom: 1px solid var(--eqd-line); font-size: 0.9rem; }

@media (max-width: 720px) {
    .eqd-header { flex-direction: column; }
    .eqd-actions { display: flex; flex-direction: column; gap: 0.25rem; }
}
