/* Унифицированные стили кнопок для всего проекта */

/* Базовые кнопки */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 120px;
    text-align: center;
    line-height: 1.2;
    white-space: nowrap;
    height: 44px;
    box-sizing: border-box;
}

/* Кнопки навигации */
.nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 0.8rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
    text-align: center;
    line-height: 1.2;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
    height: 38px;
    box-sizing: border-box;
}

/* Маленькие кнопки */
.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    min-width: 100px;
    height: 38px;
}

/* Большие кнопки */
.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
    min-width: 140px;
    height: 50px;
}

/* Цветовые варианты */
.btn-danger {
    background: var(--danger-color) !important;
}

.btn-danger:hover {
    background: #c0392b !important;
}

.btn-success {
    background: var(--success-color);
}

.btn-success:hover {
    background: #219a52;
}

/* Ховер эффекты для всех кнопок */
.btn:hover,
.nav-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-1px);
    color: white;
}

/* Специфичные ховеры для цветных кнопок */
.btn-danger:hover {
    background: #c0392b !important;
}

.btn-success:hover {
    background: #219a52;
}

/* Адаптивность для мобильных */


/* Опасные кнопки навигации */


@media (max-width: 768px) {
    .btn {
        min-width: 100px;
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
        height: 38px;
    }

    .nav-btn {
        height: 36px;
        font-size: 0.75rem;
        padding: 0.5rem 0.3rem;
    }

    .btn-sm {
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
        min-width: 90px;
        height: 36px;
    }
}

@media (max-width: 480px) {
    .btn {
        min-width: 90px;
        padding: 0.5rem 0.8rem;
        font-size: 0.75rem;
        height: 36px;
    }

    .nav-btn {
        height: 34px;
        font-size: 0.7rem;
        padding: 0.4rem 0.2rem;
    }

    .btn-sm {
        padding: 0.35rem 0.6rem;
        font-size: 0.7rem;
        min-width: 80px;
        height: 36px;
    }
}

@media (max-width: 360px) {
    .nav-btn {
        height: 32px;
        font-size: 0.65rem;
        padding: 0.35rem 0.1rem;
    }
}




/* Стили для кнопок в карточках автомобилей в мобильной версии */
@media (max-width: 768px) {
    .vehicle-actions {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
    }
    
    .vehicle-actions .btn {
        width: 100%;
        min-width: 100%;
        flex: none;
        height: 36px;
    }
}

/* Стили для выравнивания ячеек таблицы в детальном просмотре работ */
.quantity-cell {
    text-align: center;
    vertical-align: middle;
}

.price-cell {
    text-align: center;
    vertical-align: middle;
}

.total-cell {
    text-align: center;
    vertical-align: middle;
}

.part-cell {
    text-align: left;
    vertical-align: middle;
}