.list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.workerCard {
    composes: card from '@common/assets/ui.module.css';
    padding: 10px 14px;
    gap: 8px;
    border: 1px solid var(--border);
    background: var(--bg-secondary);
}

.workerHeader {
    display: flex;
    align-items: center;
    gap: 8px;
}

.workerInfo {
    flex: 1;
    min-width: 0;
}

.workerName {
    font-weight: 600;
    font-size: 14px;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.workerModels {
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.badges {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.badge {
    composes: badge from '@common/assets/ui.module.css';
    font-size: 11px;
    padding: 2px 8px;
}

.badgeOnline {
    composes: badge;
    color: var(--accent-alt) !important;
    font-weight: 500;
}

.badgeOffline {
    composes: badge;
    background: var(--bg-active);
    color: var(--text-muted);
}

.badgeMaintenance {
    composes: badge;
    background: var(--warning, var(--bg-active));
    color: var(--warning-text, var(--text));
}

.fields {
    display: flex;
    flex-direction: column;
    gap: 6px;

    .label {
        margin-bottom: 2px;
        font-size: 12px;
    }
}

.checkboxLabel {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-muted);
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
}

.actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.spacer {
    flex: 1;
}

.deleteBtn {
    padding: 8px 16px;
    border-radius: var(--radius);
    font-size: 14px;
    font-family: inherit;
    cursor: pointer;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all var(--transition);

    &:hover:not(:disabled) {
        background: var(--danger);
        border-color: var(--danger);
        color: var(--bg);
    }

    &:disabled {
        opacity: 0.3;
        cursor: not-allowed;
    }
}

.deleteConfirm {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-muted);
}

.empty {
    composes: empty from '@common/assets/ui.module.css';
    text-align: center;
    padding: 32px 0;
}

.error {
    composes: empty;
    color: var(--danger);
}

.toastIcon {
    display: inline;
    vertical-align: middle;
    margin-right: 4px;
}

.footer {
    width: 100%;
    display: flex;
    justify-content: space-between;
    flex-direction: row;
    align-items: center;
}

.footerInfo {
    font-size: 13px;
    color: var(--text-muted);
}

.footerActions {
    display: flex;
    gap: 8px;
}

.toast {
    font-size: 13px;
    color: var(--success, var(--accent-alt));
    animation: fadeOut 1.5s ease forwards;
}

@keyframes fadeOut {
    0%, 70% { opacity: 1; }
    100% { opacity: 0; }
}
