/* Страница «Шаблоны» — доп. стили (модалка очереди: components/generation_queue_modal.css) */

.template-input-badge {
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px;
    box-sizing: border-box;
    border-radius: 6px;
    overflow: hidden;
}

.template-input-badge img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    object-position: center;
}

.templates-history-status {
    margin-bottom: 12px;
}

.templates-history-error-actions {
    margin-top: 10px;
}

.templates-queue-fix-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
    padding: 10px 16px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    cursor: pointer;
    color: #fff;
    background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%);
    box-shadow: 0 2px 8px rgba(91, 33, 182, 0.35);
    transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}

.templates-queue-fix-btn:hover {
    background: linear-gradient(135deg, #6d28d9 0%, #4c1d95 100%);
    box-shadow: 0 4px 12px rgba(91, 33, 182, 0.45);
}

.templates-queue-fix-btn:active {
    transform: scale(0.98);
}
