/* Reset e configurações básicas */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
    color: #333;
}

/* Navbar principal */
.navbar {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    padding: 0 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.navbar-header {
    display: flex;
    align-items: center;
    padding: 15px 0;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    height: 50px;
    width: auto;
}

/* Menu principal */
.navbar-menu {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px 0;
}

.menu-item {
    position: relative;
}

.menu-item a {
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
    display: block;
}

.menu-item a:hover {
    background-color: rgba(255,255,255,0.1);
    transform: translateY(-2px);
}

/* Dropdown menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    color: #333;
    padding: 12px 20px;
    border-bottom: 1px solid #eee;
    transition: all 0.3s ease;
}

.dropdown-menu a:last-child {
    border-bottom: none;
}

.dropdown-menu a:hover {
    background-color: #f8f9fa;
    color: #1e3c72;
    transform: none;
}

/* Conteúdo principal */
.main-content {
    margin-top: 120px;
    padding: 3rem;
}

/* Cards do dashboard */
.dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.card-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.card-value {
    font-size: 24px;
    font-weight: bold;
    margin: 10px 0;
}

.card-value.positive {
    color: #4caf50;
}

.card-value.negative {
    color: #f44336;
}

.card-value.neutral {
    color: #2196f3;
}

.card-actions {
    display: flex;
    gap: 10px;
}

.card-actions i {
    color: #666;
    cursor: pointer;
    transition: color 0.3s ease;
}

.card-actions i:hover {
    color: #1e3c72;
}

/* Botões de ação */
.action-buttons {
    display: flex;
    gap: 15px;
    margin: 20px 0;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
}

.btn-secondary {
    background: linear-gradient(135deg, #4fc3f7 0%, #29b6f6 100%);
    color: white;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Página de clientes */
.page-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.kit-page-header {
    background: none;
    box-shadow: none;
}

.kit-main-content {
    margin-top: 150px;
}

.kit-group {
    margin-bottom: 21px;
}

.header-actions {
    display: flex;
    gap: 15px;
    margin-top: 15px
}

.kit-header-actions {
    justify-content: center;
    width: 100%;
}

.btn-outline {
    background: white;
    color: #666;
    border: 1px solid #ddd;
}

/* Área de busca */
.search-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.search-form {
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-box input {
    height: 35px;
    margin: 0;
}

.search-icon {
    position: absolute;
    left: 12px;
    color: #666;
}

.search-input {
    padding: 10px 10px 10px 40px;
    border: 1px solid #ddd;
    border-radius: 5px;
    width: 300px;
    font-size: 14px;
    text-indent: 21px;
}

.search-btn {
    padding: 10px 20px;
    background: #1e3c72;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-btn:hover {
    background: #2a5298;
}

/* TODO: Remove opacity and change cursor to pointer if we decide to implement filters*/
.filter-section {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: default;
    padding: 8px 12px;
    border-radius: 5px;
    transition: background 0.3s ease;
    opacity: 0;
}

.filter-section:hover {
    background: #f5f5f5;
}

.filter-text {
    color: #666;
    font-size: 14px;
}

/* Controles de exibição */
.display-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.results-info {
    color: #666;
    font-size: 14px;
}

/* Remove opacity 0 and change cursort to pointer if we decide to implement page 10, 25, 50*/
.per-page {
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
}

.per-page span {
    color: #666;
    font-size: 14px;
    cursor: default;
}

.per-page-btn {
    padding: 5px 10px;
    border: 1px solid #ddd;
    background: white;
    color: #666;
    cursor: default;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.per-page-btn.active {
    background: #1e3c72;
    color: white;
    border-color: #1e3c72;
}

/* Tabela */
.table-container {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

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

.data-table th {
    background: #f8f9fa;
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: #333;
    border-bottom: 1px solid #eee;
}

.data-table td {
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.row-even {
    background: white;
}

.row-odd {
    background: #f8f9fa;
}

.category-badge {
    background: #e3f2fd;
    color: #1976d2;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.no-address {
    color: #999;
    font-style: italic;
    font-size: 12px;
}

.veiculo-info {
    margin-bottom: 5px;
}

.veiculo-info:last-child {
    margin-bottom: 0;
}

.veiculo-info strong {
    color: #333;
    font-size: 13px;
}

.veiculo-info small {
    color: #666;
    font-size: 11px;
}

.no-vehicle {
    color: #999;
    font-style: italic;
    font-size: 12px;
}

.status-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.status-badge.active {
    background: #e8f5e8;
    color: #2e7d32;
}

.status-badge.inactive {
    background: #ffebee;
    color: #c62828;
}

/* Status badges para orçamentos */
.status-badge.status-em-aberto {
    background: linear-gradient(135deg, #ffc107 0%, #ffb300 100%);
    color: #212529;
}

.status-badge.status-aprovado {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
}

.status-badge.status-rejeitado {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
}

.status-badge.status-concluído {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    color: white;
}

.status-badge.status-aguardando-revisão {
    background: linear-gradient(135deg, #e91e63 0%, #c2185b 100%);
    color: white;
}

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

.action-btn {
    padding: 6px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.edit-btn {
    background: #e3f2fd;
    color: #1976d2;
}

.edit-btn:hover {
    background: #1976d2;
    color: white;
}

.copy-btn {
    background: #e0fce8;
    color: #17d443;
}

.copy-btn:hover {
    background: #17d443;
    color: white;
}

.delete-btn {
    background: #ffebee;
    color: #d32f2f;
}

.delete-btn:hover {
    background: #d32f2f;
    color: white;
}

.no-data {
    text-align: center;
    padding: 60px 20px;
}

.no-data-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.no-data-content i {
    font-size: 48px;
    color: #ccc;
}

.no-data-content p {
    color: #666;
    font-size: 16px;
}

/* Paginação */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin-top: 30px;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.page-link {
    padding: 8px 12px;
    border: 1px solid #ddd;
    background: white;
    color: #666;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.page-link:hover {
    background: #f5f5f5;
    color: #333;
}

.page-link.active {
    background: #1e3c72;
    color: white;
    border-color: #1e3c72;
}

/* Responsividade */
@media (max-width: 768px) {
    .navbar-menu {
        flex-direction: column;
        gap: 10px;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: rgba(255,255,255,0.1);
    }
    
    .dropdown-menu a {
        color: white;
        border-bottom: 1px solid rgba(255,255,255,0.2);
    }
    
    .dashboard {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .page-header {
        flex-direction: column;
        gap: 20px;
    }
    
    .header-actions {
        flex-wrap: wrap;
    }
    
    .search-section {
        flex-direction: column;
        gap: 15px;
    }
    
    .search-input {
        width: 100%;
    }
    
    .display-controls {
        flex-direction: column;
        gap: 15px;
    }
    
    .data-table {
        font-size: 14px;
    }
    
    .data-table th,
    .data-table td {
        padding: 10px 8px;
    }
}

/* Formulário de cadastro de clientes */
.form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.form-header h1 {
    color: #333;
    font-size: 24px;
    font-weight: 600;
    margin-top: 15px;
}

.form-header button {
    margin-top: 15px;
}

.btn-success {
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
    color: white;
}

.form-container {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 30px;
}

.form-section {
    margin-bottom: 30px;
}

.form-section h2 {
    color: #333;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #1e3c72;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-label {
    color: #333;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: #1e3c72;
    box-shadow: 0 0 0 2px rgba(30, 60, 114, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

.input-with-icon {
    position: relative;
}

.input-with-icon i {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    pointer-events: none;
}

/* Radio buttons */
.radio-group {
    display: flex;
    gap: 20px;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.radio-label input[type="radio"] {
    width: 16px;
    height: 16px;
    accent-color: #1e3c72;
}

.radio-text {
    color: #333;
    font-size: 14px;
}

/* Checkboxes */
.checkbox-group {
    display: flex;
    align-items: center;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #1e3c72;
}

.checkbox-text {
    color: #333;
    font-size: 14px;
}

/* Responsividade do formulário */
@media (max-width: 768px) {
    .form-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .radio-group {
        flex-direction: column;
        gap: 10px;
    }
    
    .form-container {
        padding: 20px;
    }
}

/* Seção de endereços */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-header h2 {
    margin: 0;
}

.endereco-item {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.endereco-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #dee2e6;
}

.endereco-header h3 {
    color: #333;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

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

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

.btn-danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #c82333 0%, #bd2130 100%);
}

/* Responsividade dos endereços */
@media (max-width: 768px) {
    .section-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .endereco-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .endereco-actions {
        flex-direction: column;
        gap: 10px;
    }
}

.product-image {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.no-image {
    width: 50px;
    height: 50px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: #999;
    text-align: center;
}

.current-image {
    margin-top: 5px;
    color: #666;
    font-size: 12px;
}

.full-width {
    grid-column: 1 / -1;
}

/* Custos Fixos Form Layout */
.custos-fixos-form {
    margin-top: 20px;
}

.custos-fixos-form .form-row {
    margin-bottom: 15px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    align-items: end;
}

.custos-fixos-form .form-group {
    display: flex;
    flex-direction: column;
}

.custos-fixos-form .form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
}

.custos-fixos-form .form-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #fff;
}

.custos-fixos-form .form-input:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
    outline: none;
}

.custos-fixos-form .form-input::placeholder {
    color: #adb5bd;
}

.novo-sintoma {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#input-novo-sintoma {
    width: 85%;
}

/* Responsive adjustments for custos fixos form */
@media (max-width: 1200px) {
    .custos-fixos-form .form-row {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 768px) {
    .custos-fixos-form .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

/* Estilos para seleção de peças e serviços */
.pecas-section,
.servicos-section {
    margin: 30px 0;
}

.pecas-section h3,
.servicos-section h3 {
    color: #495057;
    font-size: 18px;
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #007bff;
}

.itens-container {
    margin-bottom: 20px;
}

.item-row {
    display: grid;
    grid-template-columns: 2fr 80px 120px 100px 120px 100px;
    gap: 12px;
    align-items: center;
    padding: 10px 0;
    background: transparent;
    border-bottom: 1px solid #e9ecef;
    margin: 0;
}

.item-row .form-group {
    margin: 0;
}

.item-row .form-label {
    font-size: 12px;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.item-row .form-input,
.item-row .form-select {
    font-size: 14px;
    padding: 8px 12px;
}

.item-row .valor-unitario,
.item-row .total-item {
    background: #e9ecef;
    color: #495057;
    font-weight: 600;
}

.remove-item {
    padding: 8px 12px;
    font-size: 14px;
    border-radius: 6px;
    border: none;
    background: #dc3545;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 38px;
}

.remove-item:hover {
    background: #c82333;
    transform: scale(1.05);
}

/* Estilos para resumo dos valores */
.resumo-section {
    margin: 30px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #dee2e6;
}

.resumo-section h3 {
    color: #495057;
    font-size: 18px;
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #007bff;
}

.resumo-grid {
    display: grid;
    gap: 15px;
}

.resumo-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: white;
    border-radius: 8px;
    border-left: 4px solid #007bff;
}

.resumo-item.total-geral {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    border-left-color: #0056b3;
    font-weight: 600;
    font-size: 16px;
}

.resumo-label {
    font-weight: 600;
    color: #495057;
}

.resumo-item.total-geral .resumo-label {
    color: white;
}

.resumo-valor {
    font-weight: 600;
    color: #28a745;
    font-size: 16px;
}

.resumo-item.total-geral .resumo-valor {
    color: white;
    font-size: 18px;
}

/* Responsividade para peças e serviços */
@media (max-width: 768px) {
    .item-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .item-row .form-group {
        margin-bottom: 10px;
    }

    .remove-item {
        width: 100%;
        height: 40px;
    }

    .resumo-item {
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }
}

/* Estilos para seção do colaborador */
.colaborador-section {
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #dee2e6;
}

.colaborador-section h3 {
    color: #495057;
    font-size: 18px;
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #007bff;
}

.colaborador-section .section-description {
    color: #6c757d;
    margin-bottom: 20px;
    font-size: 14px;
}

.colaborador-section .form-select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    font-size: 16px;
    background-color: white;
    transition: all 0.3s ease;
}

.colaborador-section .form-select:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
    outline: none;
}

.colaborador-section .form-select option {
    padding: 10px;
    font-size: 16px;
}

/* Estilos para etapa 5 - Revisão e Confirmação */
.review-section {
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #dee2e6;
}

.review-section h3 {
    color: #495057;
    font-size: 18px;
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #007bff;
}

.review-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.review-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: white;
    border-radius: 8px;
    border-left: 4px solid #007bff;
}

.review-item.full-width {
    grid-column: 1 / -1;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.review-item strong {
    color: #495057;
    font-weight: 600;
}

.review-item span {
    color: #6c757d;
    font-weight: 500;
}

.review-item.total-geral {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    border-left-color: #0056b3;
    font-weight: 600;
    font-size: 16px;
}

.review-item.total-geral strong,
.review-item.total-geral span {
    color: white;
}

/* Tabelas de revisão */
.review-table-container {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

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

.review-table th {
    background: #007bff;
    color: white;
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
}

.review-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #dee2e6;
    font-size: 14px;
}

.review-table tr:last-child td {
    border-bottom: none;
}

.review-table tr:nth-child(even) {
    background-color: #f8f9fa;
}

/* Precificações */
.precificacoes-section {
    margin-bottom: 30px;
    height: auto;
}

.precificacoes-section h3 {
    color: #495057;
    font-size: 18px;
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #007bff;
}

.precificacoes-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    min-height: 300px;
}

.precificacao-card {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    padding: 20px;
    min-height: 200px;
    position: relative;
}

.precificacao-card h4 {
    color: #495057;
    font-size: 16px;
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #007bff;
    text-align: center;
}

.precificacao-content {
    display: flex;
    align-items: center;
    justify-content: center;
    height: auto;
    color: #6c757d;
    font-style: italic;
}

/* Oculta linhas extras por padrão */
.info-extra {
  display: none;
}

.info-extra2 {
  display: none;
}

/* Botão no canto inferior direito */
.toggle-info {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: white;
  border: 1px solid #ccc;
  border-radius: 50%;
  width: 35px;
  height: 35px;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Botão no canto inferior direito */
.toggle-info2 {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: white;
  border: 1px solid #ccc;
  border-radius: 50%;
  width: 35px;
  height: 35px;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Responsividade para etapa 5 */
@media (max-width: 768px) {
    .review-grid {
        grid-template-columns: 1fr;
    }
    
    .precificacoes-grid {
        grid-template-columns: 1fr;
    }
    
    .review-table {
        font-size: 12px;
    }
    
    .review-table th,
    .review-table td {
        padding: 8px 10px;
    }
}

/* --- INÍCIO: CSS migrado de orcamento_cadastro.html --- */
/* Estilos para as abas */
.tabs-navigation {
    display: flex;
    border-bottom: 2px solid #e9ecef;
    margin-bottom: 20px;
}

.tab-btn {
    background: none;
    border: none;
    padding: 12px 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #6c757d;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    color: #007bff;
    background-color: #f8f9fa;
}

.tab-btn.active {
    color: #007bff;
    border-bottom-color: #007bff;
    background-color: #f8f9fa;
}

.tab-btn i {
    margin-right: 8px;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Estilos para detalhes dos veículos */
.veiculo-detail-item {
    margin-bottom: 5px;
    font-size: 13px;
    color: #666;
}

.veiculo-detail-item strong {
    color: #333;
    font-weight: 600;
}

/* Estilos para o indicador de progresso */
.progress-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 30px 0;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex: 1;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.step.completed .step-number {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
}

.step.active .step-number {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
}

.step.pending .step-number {
    background: #e9ecef;
    color: #6c757d;
}

.step-info {
    text-align: center;
}

.step-title {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 5px;
}

.step-description {
    font-size: 12px;
    color: #6c757d;
}

.step-connector {
    position: absolute;
    top: 20px;
    left: 50%;
    width: 100%;
    height: 2px;
    background: #e9ecef;
    z-index: -1;
}

/* Estilos para select com busca */
.select-with-search {
    position: relative;
}

.search-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    margin-bottom: 5px;
    background-color: #f8f9fa;
}

.search-input:focus {
    outline: none;
    border-color: #007bff;
    background-color: white;
}

/* Estilos para campos editáveis */
.descricao-item {
    font-style: italic;
    color: #666;
}

.descricao-item:focus {
    font-style: normal;
    color: #333;
}

/* Estilos para seção de frete */
.frete-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    border: 1px solid #e9ecef;
}

.frete-section h3 {
    margin-top: 0;
    color: #495057;
    font-size: 18px;
}

/* Estilos para listagem compacta de itens */
.item-row-compact {
    display: grid;
    grid-template-columns: 2fr 80px 100px 80px 80px 100px 80px;
    gap: 10px;
    align-items: center;
    padding: 10px;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    margin-bottom: 8px;
    background: white;
}

.item-row-compact:hover {
    background: #f8f9fa;
}

.item-info {
    display: flex;
    flex-direction: column;
}

.item-descricao {
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
    line-height: 1.2;
}

.item-quantidade,
.item-valor-unitario,
.item-frete,
.item-tempo {
    text-align: center;
}

.form-input-compact {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 12px;
    text-align: center;
}

.form-input-compact:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.form-input-compact[readonly] {
    background-color: #f8f9fa;
    color: #6c757d;
    cursor: not-allowed;
    border-color: #dee2e6;
}

.form-input-compact[readonly]:focus {
    border-color: #dee2e6;
    box-shadow: none;
}

.item-total {
    font-weight: 600;
    color: #28a745;
    text-align: center;
    font-size: 14px;
}

.item-acoes {
    display: flex;
    gap: 5px;
    justify-content: center;
}

.btn-sm {
    padding: 4px 8px;
    font-size: 12px;
}

.no-frete {
    color: #6c757d;
    font-style: italic;
}

.tempo-servico {
    color: #495057;
    font-weight: 500;
    font-size: 12px;
}

/* Cabeçalho da listagem */
.itens-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr 1fr 1fr;
    gap: 12px;
    padding: 15px;
    background: #e9ecef;
    border-radius: 6px;
    border-bottom: 2px solid #dee2e6;
    margin-bottom: 8px;
    font-weight: 600;
    color: #495057;
    font-size: 12px;
    text-align: center;
}

.itens-header .header-descricao {
    text-align: left;
    max-width: 188px;
}

/* Estilos para resumo dos valores */
.resumo-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    border: 1px solid #e9ecef;
}

.resumo-section h3 {
    margin-top: 0;
    color: #495057;
    font-size: 18px;
}

.resumo-grid {
    display: grid;
    gap: 15px;
}

.resumo-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #e9ecef;
}

.resumo-item:last-child {
    border-bottom: none;
}

.resumo-label {
    font-weight: 600;
    color: #495057;
}

.resumo-valor {
    font-weight: 700;
    color: #007bff;
    font-size: 16px;
}

.total-geral {
    border-top: 2px solid #007bff;
    padding-top: 15px;
    margin-top: 10px;
}

.total-geral .resumo-valor {
    color: #28a745;
    font-size: 18px;
}

.step.completed .step-connector {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.step.active .step-connector {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
}

/* Estilos para o conteúdo da etapa */
.step-content {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-top: 20px;
}

.step-form {
    max-width: 800px;
    margin: 0 auto;
}

/* Modal Styles */
.modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.6) !important;
    z-index: 9999 !important;
    display: none !important;
    align-items: center !important;
    justify-content: center !important;
    backdrop-filter: blur(5px) !important;
    animation: fadeIn 0.3s ease-out !important;
}

/* Garantir que o modal seja visível quando display: flex */
.modal[style*="display: flex"] {
    display: flex !important;
}

.modal[style*="display: block"] {
    display: flex !important;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: white;
    border-radius: 16px;
    width: 95%;
    max-width: 1200px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease-out;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

@keyframes slideIn {
    from { 
        transform: translateY(-50px) scale(0.95);
        opacity: 0;
    }
    to { 
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 30px;
    border-bottom: 1px solid #e9ecef;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.modal-header h2 {
    margin: 0;
    color: white;
    font-size: 18px;
    font-weight: 600;
}

.modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: white;
    padding: 8px 12px;
    border-radius: 50%;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.modal-body {
    padding: 25px;
    max-height: calc(90vh - 100px);
    overflow-y: auto;
    background: #fafbfc;
}

/* Search Section */
.search-section {
    margin-bottom: 30px;
}

.search-section .form-group {
    margin-bottom: 15px;
}

/* Estilos específicos para o modal de edição */
#modal-edicao-item .modal-content {
    max-width: 500px;
    margin: 50px auto;
}

#modal-edicao-item .modal-header {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

#modal-edicao-item .modal-body {
    padding: 20px;
}

#modal-edicao-item .modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 20px;
    border-top: 1px solid #e9ecef;
    background: #f8f9fa;
}

.search-section .form-label {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    display: block;
    font-size: 13px;
}

.search-section .form-input {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid #e1e8ed;
    border-radius: 12px;
    font-size: 13px;
    transition: all 0.3s ease;
    background: white;
}

.search-section .form-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-results {
    margin-top: 15px;
    border: 2px solid #e1e8ed;
    border-radius: 12px;
    max-height: 300px;
    overflow-y: auto;
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.search-result-item {
    padding: 16px 20px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.search-result-item:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateX(5px);
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item.selected {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

/* Lista de Clientes */
.clientes-list {
    margin: 25px 0;
    max-height: 400px;
    overflow-y: auto;
    background: white;
    border-radius: 12px;
    border: 2px solid #e1e8ed;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.cliente-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 3px 10px;
    margin: 0;
    background: white;
    border-bottom: 1px solid #ddd;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.cliente-item:hover {
    background-color: #f8f9fa;
}

.cliente-info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 15px;
}

.cliente-info strong {
    font-size: 12px;
    color: #333;
    font-weight: 600;
    min-width: 120px;
}

.cliente-details {
    font-size: 11px;
    color: #666;
    display: flex;
    gap: 12px;
}

.cliente-cpf {
    min-width: 140px;
    color: #666;
}

.cliente-telefone {
    min-width: 120px;
    color: #666;
}

.cliente-actions {
    margin-left: 20px;
}

.cliente-actions .btn {
    background: #f8f9fa;
    border: 1px solid #ddd;
    color: #666;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.cliente-actions .btn:hover {
    background: #e9ecef;
    color: #333;
}

/* Modal Actions */
.modal-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    padding-top: 30px;
    border-top: 2px solid #e1e8ed;
    margin-top: 30px;
}

.modal-actions .btn {
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-actions .btn-secondary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.modal-actions .btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.btn-sm {
    padding: 8px 12px;
    font-size: 13px;
    border-radius: 8px;
}

/* Seção de Detalhes do Cliente */
.cliente-detalhes-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 2px solid #e1e8ed;
}

.cliente-detalhes-card h3 {
    color: #2c3e50;
    margin-bottom: 25px;
    font-size: 22px;
    font-weight: 600;
    text-align: center;
}

.cliente-detalhes-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.detalhe-item {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.detalhe-item strong {
    color: #2c3e50;
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
}

.enderecos-section {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 2px solid #e1e8ed;
}

.enderecos-section h4 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 600;
}

.endereco-item {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    border-left: 4px solid #667eea;
}

.endereco-item.preferencial {
    border-left-color: #ffc107;
    background: #fff8e1;
}

.endereco-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
    color: #2c3e50;
    font-weight: 600;
}

.endereco-content p {
    margin: 5px 0;
    color: #495057;
    font-size: 14px;
}

.cliente-detalhes-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
    padding-top: 25px;
    border-top: 2px solid #e1e8ed;
}

.cliente-detalhes-actions .btn {
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cliente-detalhes-actions .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.cliente-detalhes-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.cliente-detalhes-actions .btn-secondary {
    background: #6c757d;
    color: white;
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
}

.cliente-detalhes-actions .btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(108, 117, 125, 0.4);
}

.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

/* Estilos para a seção de revisão */
.review-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
}

.review-section h3 {
    color: #495057;
    font-size: 16px;
    margin: 20px 0 10px 0;
    padding-bottom: 5px;
    border-bottom: 1px solid #dee2e6;
}

.review-section h3:first-child {
    margin-top: 0;
}

.review-item {
    margin: 10px 0;
    padding: 10px;
    background: white;
    border-radius: 4px;
    border-left: 3px solid #007bff;
}

.review-item strong {
    color: #495057;
}

/* Responsividade */
@media (max-width: 768px) {
    .progress-steps {
        flex-direction: column;
        gap: 20px;
    }
    .step-connector {
        display: none;
    }
    .form-actions {
        flex-direction: column;
        gap: 15px;
    }
    .form-actions button {
        width: 100%;
    }
}

/* Estilos para dados do cliente */
.cliente-info {
    margin-top: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.cliente-info h3 {
    color: #495057;
    font-size: 18px;
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #007bff;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.info-item {
    padding: 12px;
    background: white;
    border-radius: 6px;
    border-left: 3px solid #007bff;
}

.info-item strong {
    color: #495057;
    display: block;
    margin-bottom: 5px;
    font-size: 12px;
    text-transform: uppercase;
    color: #6c757d;
}

/* Estilos para endereços */
.enderecos-list {
    display: grid;
    gap: 15px;
    margin-bottom: 30px;
}

.endereco-item {
    background: white;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    overflow: hidden;
}

.endereco-item.preferencial {
    border: 2px solid #ffc107;
}

.endereco-header {
    background: #f8f9fa;
    padding: 12px 15px;
    border-bottom: 1px solid #dee2e6;
}

.endereco-header h4 {
    margin: 0;
    font-size: 14px;
    color: #495057;
    display: flex;
    align-items: center;
    gap: 8px;
}

.endereco-content {
    padding: 15px;
}

.endereco-content p {
    margin: 5px 0;
    color: #495057;
    font-size: 14px;
}

/* Estilos para veículos */
.veiculo-card-selecionavel {
    cursor: pointer;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    border: 2px solid #e1e8ed;
    border-radius: 12px;
    background: white;
}

.veiculo-card-selecionavel:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.veiculo-card-selecionavel.veiculo-selecionado {
    border-color: #007bff;
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.25);
    background-color: #e9f5ff;
    transition: all 0.3s ease-in-out;
}

.veiculo-titulo {
    color: #2c3e50;
    margin-bottom: 25px;
    font-size: 22px;
    font-weight: 600;
    text-align: center;
}

.no-vehicles p {
    color: #6c757d;
    font-style: italic;
    margin: 0;
}

.veiculo-item.veiculo-selecionado {
    border-color: #007bff; /* Borda azul para indicar seleção */
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.25); /* Sombra para dar destaque */
    background-color: #e9f5ff; /* Cor de fundo levemente azulada */
    transition: all 0.3s ease-in-out; /* Adiciona uma transição suave */
}

.veiculo-item.veiculo-selecionado .placa {
    background: #007bff; /* Mudar a cor da placa para combinar com a seleção */
}

.veiculo-item {
    background: white;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    overflow: hidden;
    cursor: pointer;
}

.veiculo-header {
    background: #e3f2fd;
    padding: 12px 15px;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.veiculo-details {
    font-size: 18px;
}

.veiculo-header h4 {
    margin: 0;
    font-size: 16px;
    color: #1976d2;
    font-weight: 600;
}

.veiculos-list {
    display: grid;
    gap: 15px;
    margin-bottom: 20px;
}

.veiculo-info {
    font-size: 14px;
    color: #495057;
}

.veiculo-info strong {
    color: #6c757d;
    font-size: 12px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 3px;
}

/* Responsividade para dados do cliente */
@media (max-width: 768px) {
    .info-grid {
        grid-template-columns: 1fr;
    }
    .veiculo-content {
        grid-template-columns: 1fr;
    }
    .veiculo-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

/* Estilos para perguntas investigativas */
.investigative-questions {
    margin: 30px 0;
}

.investigative-questions h3 {
    color: #495057;
    font-size: 18px;
    margin: 0 0 25px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #007bff;
}

.question-group {
    margin-bottom: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.question-label {
    display: block;
    font-weight: 600;
    color: #495057;
    margin-bottom: 15px;
    font-size: 16px;
}

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

.radio-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 10px;
    border-radius: 6px;
    transition: background-color 0.2s ease;
    position: relative;
}

.radio-option:hover {
    background-color: #e9ecef;
}

.radio-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.radio-custom {
    position: relative;
    height: 20px;
    width: 20px;
    background-color: white;
    border: 2px solid #dee2e6;
    border-radius: 50%;
    margin-right: 12px;
    transition: all 0.2s ease;
}

.radio-option input[type="radio"]:checked ~ .radio-custom {
    background-color: #007bff;
    border-color: #007bff;
}

.radio-option input[type="radio"]:checked ~ .radio-custom::after {
    content: '';
    position: absolute;
    display: block;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: white;
}

.radio-option input[type="radio"]:focus ~ .radio-custom {
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

/* Responsividade para perguntas investigativas */
@media (max-width: 768px) {
    .question-group {
        padding: 15px;
    }
    .radio-group {
        gap: 10px;
    }
    .radio-option {
        padding: 8px;
    }
}

/* Estilos para perguntas de escala */
.escala-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.escala-option {
    min-width: 40px;
    text-align: center;
}

.escala-option .radio-custom {
    width: 30px;
    height: 30px;
    border-radius: 50%;
}

/* Estilos para quando não há perguntas */
.no-questions {
    text-align: center;
    padding: 40px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px dashed #dee2e6;
}

.no-questions p {
    margin-bottom: 15px;
    color: #6c757d;
}

/* Estilos para sintomas identificados */
.sintomas-section {
    margin: 30px 0;
}

.sintomas-section h3 {
    color: #495057;
    font-size: 18px;
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #007bff;
}

.section-description {
    color: #6c757d;
    font-size: 14px;
    margin-bottom: 20px;
    font-style: italic;
}

.sintomas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.checkbox-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 12px;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    transition: all 0.2s ease;
    position: relative;
}

.checkbox-option:hover {
    background-color: #f8f9fa;
    border-color: #007bff;
}

.checkbox-option input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkbox-custom {
    position: relative;
    height: 20px;
    width: 20px;
    background-color: white;
    border: 2px solid #dee2e6;
    border-radius: 4px;
    margin-right: 12px;
    transition: all 0.2s ease;
}

.checkbox-option input[type="checkbox"]:checked ~ .checkbox-custom {
    background-color: #007bff;
    border-color: #007bff;
}

.checkbox-option input[type="checkbox"]:checked ~ .checkbox-custom::after {
    content: '✓';
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.checkbox-option input[type="checkbox"]:focus ~ .checkbox-custom {
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

.checkbox-label {
    font-size: 14px;
    color: #495057;
    font-weight: 500;
}

/* Estilos para upload de imagens */
.imagens-section {
    margin: 30px 0;
}

.imagens-section h3 {
    color: #495057;
    font-size: 18px;
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #007bff;
}

.upload-area {
    position: relative;
    border: 2px dashed #dee2e6;
    border-radius: 10px;
    padding: 40px 20px;
    text-align: center;
    background: #f8f9fa;
    transition: all 0.3s ease;
    cursor: pointer;
    margin-bottom: 20px;
}

.upload-area:hover {
    border-color: #007bff;
    background: #e3f2fd;
}

.upload-area.dragover {
    border-color: #007bff;
    background: #e3f2fd;
    transform: scale(1.02);
}

.upload-content i {
    font-size: 48px;
    color: #6c757d;
    margin-bottom: 15px;
}

.upload-content p {
    font-size: 16px;
    color: #495057;
    margin: 10px 0;
    font-weight: 500;
}

.upload-hint {
    font-size: 12px;
    color: #6c757d;
}

.file-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.imagens-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.imagem-preview-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.imagem-preview-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.imagem-preview-item .imagem-nome {
    display: block;
    padding: 6px 8px;
    font-size: 12px;
    color: #495057;
    background: #ffffff;
    border-top: 1px solid #eee;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.imagem-preview-item .remove-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(220, 53, 69, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.imagem-preview-item .remove-btn:hover {
    background: rgba(220, 53, 69, 1);
    transform: scale(1.1);
}

/* Responsividade para sintomas e imagens */
@media (max-width: 768px) {
    .sintomas-grid {
        grid-template-columns: 1fr;
    }
    .imagens-preview {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
    .upload-area {
        padding: 30px 15px;
    }
    .upload-content i {
        font-size: 36px;
    }
    .upload-content p {
        font-size: 14px;
    }
}

/* Estilos para seleção de peças e serviços */
.pecas-section,
.servicos-section {
    margin: 30px 0;
}

.pecas-section h3,
.servicos-section h3 {
    color: #495057;
    font-size: 18px;
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #007bff;
}

.itens-container {
    margin-bottom: 20px;
}

.item-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr 1fr 1fr;
    gap: 12px;
    align-items: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #dee2e6;
    margin-bottom: 10px;
}

.item-row .form-group {
    margin: 0;
}

.item-row .form-label {
    font-size: 12px;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.item-row .form-input,
.item-row .form-select {
    font-size: 14px;
    padding: 8px 12px;
}

.item-row .valor-unitario,
.item-row .total-item {
    background: #e9ecef;
    color: #495057;
    font-weight: 600;
}

.remove-item {
    padding: 8px 12px;
    font-size: 14px;
    border-radius: 6px;
    border: none;
    background: #dc3545;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 38px;
}

.remove-item:hover {
    background: #c82333;
    transform: scale(1.05);
}

/* Estilos para resumo dos valores */
.resumo-section {
    margin: 30px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #dee2e6;
}

.resumo-section h3 {
    color: #495057;
    font-size: 18px;
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #007bff;
}

.resumo-grid {
    display: grid;
    gap: 15px;
}

.resumo-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: white;
    border-radius: 8px;
    border-left: 4px solid #007bff;
}

.resumo-item.total-geral {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    border-left-color: #0056b3;
    font-weight: 600;
    font-size: 16px;
}

.resumo-label {
    font-weight: 600;
    color: #495057;
}

.resumo-item.total-geral .resumo-label {
    color: white;
}

.resumo-valor {
    font-weight: 600;
    color: #28a745;
    font-size: 16px;
}

.resumo-item.total-geral .resumo-valor {
    color: white;
    font-size: 18px;
}

/* Responsividade para peças e serviços */
@media (max-width: 768px) {
    .item-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .item-row .form-group {
        margin-bottom: 10px;
    }
    .remove-item {
        width: 100%;
        height: 40px;
    }
    .resumo-item {
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }
}

/* --- FIM: CSS migrado de orcamento_cadastro.html --- */
.btn-margin-right-10 { margin-right: 10px !important; }
.orcamento-progress-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 30px 0;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.orcamento-progress-steps .step-link {
    text-decoration: none;
    color: inherit;
}
.orcamento-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex: 1;
}
.orcamento-step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 10px;
}
.bg-dynamic-success { background: #28a745 !important; }
.bg-dynamic-primary { background: #007bff !important; }
.bg-dynamic-default { background: #e9ecef !important; }
.color-dynamic-white { color: white !important; }
.color-dynamic-gray { color: #6c757d !important; }
.text-center { text-align: center !important; }
.font-weight-600 { font-weight: 600 !important; }
.font-size-14 { font-size: 14px !important; }
.margin-bottom-5 { margin-bottom: 5px !important; }
.font-size-12 { font-size: 12px !important; }
.text-gray { color: #6c757d !important; }
.orcamento-step-connector {
    position: absolute;
    top: 20px;
    left: 50%;
    width: 100%;
    height: 2px;
    background: #e9ecef;
    z-index: -1;
}
.text-center { text-align: center !important; }
.p-20 { padding: 20px !important; }
.text-gray { color: #666 !important; }
.text-danger { color: #dc3545 !important; }
.star-gold { color: #ffc107 !important; }
/* Grid alignment improvements for Step 4 (Peças/Serviços) */
.itens-header > div,
.item-row > * {

}

/* Ensure left alignment for description cells */
.itens-header .header-descricao,
.item-row .item-descricao {
    text-align: left;
    margin-bottom: 0;
}

/* Center alignment for numeric/value/action cells */
.item-row .item-quantidade,
.item-custo,
.item-row .item-valor-unitario,
.item-row .item-frete,
.item-row .item-tempo,
.item-row .item-total,
.item-row .item-acoes {
    text-align: center;
}

/* Remove boxed background from value/total cells to keep cohesive row look */
.item-row .valor-unitario,
.item-row .total-item {
    background: transparent !important;
}

/* Step 4 numeric inputs: remove box and center */
.item-row .item-quantidade input[type="number"],
.item-row .item-valor-unitario input[type="number"],
.item-row .item-frete input[type="number"] {
    width: 100%;
    padding: 0;
    border: none !important;
    background: transparent !important;
    text-align: center;
    font: inherit;
    color: inherit;
    outline: none;
}

/* Remove spin buttons for a cleaner look */
.item-row input[type="number"]::-webkit-outer-spin-button,
.item-row input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.item-row input[type="number"] {
    -moz-appearance: textfield;
}


/* User Tools */
#navbar-user-tools {
    color: #fff !important;
    font-size: 0.8rem !important;
}

#navbar-user-tools a {
    color: #fff !important;
    font-size: 0.8rem !important;
    text-decoration: none;
}

#navbar-user-tools a:hover {
    text-decoration: underline;
}


.error-text {
    color: red
}

 /* Estilos específicos para a tela de login */
/* Autenticacao */
.auth-logo-img {
    width: 100%;
}

/* Container principal da tela de login */
.login-container {
    display: flex;
    height: 100vh;
}

/* Lado esquerdo - Logo */
.login-left {
    flex: 1;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Efeito de partículas/círculos no fundo */
.login-left::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background-image: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-20px, -20px) rotate(180deg); }
}

.logo-section {
    text-align: center;
    z-index: 2;
    position: relative;
}

.logo-main {
    font-size: 4rem;
    font-weight: 300;
    color: #4fc3f7;
    margin-bottom: 0.5rem;
    letter-spacing: -2px;
}

.logo-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.logo-subtitle::before,
.logo-subtitle::after {
    content: '';
    width: 30px;
    height: 1px;
    background: rgba(255, 255, 255, 0.5);
}

/* Lado direito - Formulário */
.login-right {
    flex: 1;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.login-form-container {
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.login-title {
    font-size: 2.5rem;
    font-weight: 600;
    color: #1e3c72;
    margin-bottom: 0.5rem;
}

.login-description {
    color: #666;
    margin-bottom: 3rem;
    font-size: 1rem;
    line-height: 1.5;
}

/* Estilos do formulário */
.login-form {
    text-align: left;
}

.login-form .form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.login-form .form-label {
    display: block;
    color: #333;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.login-form .form-label .required {
    color: #dc3545;
    margin-left: 2px;
}

.login-form .form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.login-form .form-input:focus {
    outline: none;
    border-color: #1e3c72;
    box-shadow: 0 0 0 3px rgba(30, 60, 114, 0.1);
}

.password-input-container {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 0.25rem;
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: #1e3c72;
}

/* Botão de login */
.login-button {
    width: 100%;
    padding: 0.875rem 1rem;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
}

.login-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(30, 60, 114, 0.3);
}

.login-button:active {
    transform: translateY(0);
}

/* Link esqueci senha */
.forgot-password {
    text-align: center;
    margin-bottom: 2rem;
}

.forgot-password a {
    color: #1e3c72;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.forgot-password a:hover {
    color: #2a5298;
    text-decoration: underline;
}

/* Política de privacidade */
.privacy-notice {
    text-align: center;
    font-size: 0.8rem;
    color: #666;
    line-height: 1.4;
}

.privacy-notice a {
    color: #1e3c72;
    text-decoration: none;
    font-weight: 600;
}

.privacy-notice a:hover {
    text-decoration: underline;
}

/* Mensagens de erro */
.error-messages {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 0.75rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.error-messages ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.error-messages li {
    margin: 0.25rem 0;
}

.error-messages li::before {
    content: "⚠️ ";
    margin-right: 0.5rem;
}

/* Mensagens de sucesso */
.success-message {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 0.75rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

/* Estados de carregamento */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.loading .login-button {
    background: #6c757d;
    cursor: not-allowed;
}

.kit-search-input {
    margin-bottom: 20px;
}

/* Responsividade */
@media (max-width: 768px) {
    .login-container {
        flex-direction: column;
    }

    .login-left {
        flex: 0 0 30%;
        min-height: 30vh;
    }

    .logo-main {
        font-size: 2.5rem;
    }

    .logo-subtitle {
        font-size: 0.8rem;
    }

    .login-right {
        flex: 1;
        padding: 1.5rem;
    }

    .login-title {
        font-size: 2rem;
    }

    .login-description {
        margin-bottom: 2rem;
    }
}

@media (max-width: 480px) {
    .login-left {
        min-height: 25vh;
    }

    .logo-main {
        font-size: 2rem;
    }

    .login-right {
        padding: 1rem;
    }

    .login-title {
        font-size: 1.75rem;
    }
}

/* Animações de entrada */
.login-left {
    animation: slideInLeft 0.6s ease-out;
}

.login-right {
    animation: slideInRight 0.6s ease-out;
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Oculta os labels padrão do Django */
.login-form label {
    display: none !important;
}

/* Estiliza os inputs do Django form */
.login-form input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
    margin-bottom: 0.5rem;
}

.login-form input:focus {
    outline: none;
    border-color: #1e3c72;
    box-shadow: 0 0 0 3px rgba(30, 60, 114, 0.1);
}

/* Estiliza os erros do formulário Django */
.errorlist {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem 0;
}

.errorlist li {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 0.5rem;
    border-radius: 6px;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
}

.errorlist li::before {
    content: "⚠️ ";
    margin-right: 0.5rem;
}

/* Estilos das Abas */
.tabs-container {
    display: flex;
    border-bottom: 2px solid #ddd;
    margin-bottom: 20px;
    gap: 5px;
}

.tab-button {
    padding: 10px 20px;
    border: none;
    background: #f1f1f1;
    cursor: pointer;
    font-weight: bold;
    color: #666;
    border-radius: 8px 8px 0 0;
    transition: 0.3s;
}

.tab-button:hover {
    background: #e2e2e2;
}

.tab-button.active {
    background: #007bff;
    color: white;
}

/* ABA HISTORICO Container da Tabela */
.table-responsive {
    margin-top: 20px;
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

/* Tabela Customizada */
.history-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    color: #2d3748;
}

.history-table thead {
    background-color: #f8fafc;
}

.history-table th {
    padding: 15px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    color: #64748b;
    border-bottom: 2px solid #e2e8f0;
}

.history-table td {
    padding: 15px;
    border-bottom: 1px solid #edf2f7;
    vertical-align: middle;
}

.history-table tr:hover {
    background-color: #f1f5f9;
}

/* Identificadores de Documento */
.doc-id {
    display: flex;
    align-items: center;
    gap: 8px;
}

.icon-os { color: #3182ce; } /* Azul para OS */
.icon-orc { color: #718096; } /* Cinza para Orçamento */

.doc-label {
    font-weight: 700;
    font-size: 0.9rem;
}

.doc-sub {
    font-size: 0.75rem;
    color: #a0aec0;
    display: block;
}

/* Cliente e Veículo */
.client-info strong {
    display: block;
    color: #1a202c;
    font-size: 0.9rem;
}

.client-info span {
    font-size: 0.8rem;
    color: #718096;
}

/* Badges de Status Dinâmicos */
.status-badge {
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
}

/* Cores por tipo de registro */
.status-os {
    background-color: #ebf8ff;
    color: #2b6cb0;
    border: 1px solid #bee3f8;
}

.status-orc {
    background-color: #f7fafc;
    color: #4a5568;
    border: 1px solid #e2e8f0;
}

/* Alinhamento de Quantidade e Valor */
.text-bold {
    font-weight: 700;
    color: #2d3748;
}