/* ===== PROPOSTAS - VISUALIZAÇÃO DETALHADA ===== */
.proposta-details {
    padding: 20px 0;
}

.detail-row {
    display: flex;
    padding: 12px 0;
    border-bottom: 1px solid #e9ecef;
}

.detail-row label {
    font-weight: 600;
    min-width: 150px;
    color: #495057;
}

.detail-row span {
    flex: 1;
    color: #212529;
}

.detail-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #003366;
}

.detail-section h4 {
    color: #003366;
    margin-bottom: 15px;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.detail-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.detail-table thead {
    background: linear-gradient(135deg, #003366, #0055aa);
    color: white;
}

.detail-table th,
.detail-table td {
    padding: 12px;
    border: 1px solid #dee2e6;
}

.detail-table th {
    font-weight: 600;
    text-align: left;
}

.detail-table tbody tr:hover {
    background-color: #f8f9fa;
}

.detail-table tfoot {
    background-color: #f8f9fa;
    font-weight: 600;
}

.detail-table tfoot td {
    border-top: 2px solid #003366;
}

/* ===== BUSCA E FILTROS ===== */
.search-filter-bar {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.search-box {
    position: relative;
    margin-bottom: 15px;
}

.search-box i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    pointer-events: none;
}

.search-box input {
    width: 100%;
    padding: 12px 45px 12px 45px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
}

.search-box input:focus {
    border-color: #003366;
    box-shadow: 0 0 0 3px rgba(0, 51, 102, 0.1);
    outline: none;
}

.search-clear {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    padding: 5px 10px;
    transition: color 0.3s ease;
}

.search-clear:hover {
    color: #dc3545;
}

.filters-row {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 180px;
}

.filter-group label {
    font-size: 13px;
    font-weight: 600;
    color: #495057;
    display: flex;
    align-items: center;
    gap: 5px;
}

.filter-group .form-select,
.filter-group .form-control {
    padding: 8px 12px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.filter-group .form-select:focus,
.filter-group .form-control:focus {
    border-color: #003366;
    box-shadow: 0 0 0 3px rgba(0, 51, 102, 0.1);
    outline: none;
}

/* ===== RESUMO MINI CARDS ===== */
.summary-cards-mini {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.summary-card-mini {
    background: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    gap: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.summary-card-mini:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.summary-card-mini i {
    font-size: 32px;
}

.summary-card-mini.pendente i {
    color: #ffc107;
}

.summary-card-mini.aprovada i {
    color: #28a745;
}

.summary-card-mini.total i {
    color: #007bff;
}

.summary-card-mini.valor i {
    color: #17a2b8;
}

.summary-card-mini > div {
    flex: 1;
}

.summary-card-mini span {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: #212529;
}

.summary-card-mini label {
    display: block;
    font-size: 12px;
    color: #6c757d;
    text-transform: uppercase;
    font-weight: 600;
    margin-top: 2px;
}

/* ===== ORDENAÇÃO DE COLUNAS ===== */
.sortable {
    cursor: pointer;
    user-select: none;
    position: relative;
}

.sortable:hover {
    background-color: rgba(255,255,255,0.1);
}

.sortable i {
    opacity: 0.3;
    transition: opacity 0.3s ease;
}

.sortable:hover i {
    opacity: 0.6;
}

.sortable.asc i:before {
    content: "\f0de"; /* fa-sort-up */
    opacity: 1;
}

.sortable.desc i:before {
    content: "\f0dd"; /* fa-sort-down */
    opacity: 1;
}

/* ===== AÇÕES ===== */
.actions-group {
    display: flex;
    gap: 5px;
    justify-content: center;
}

.btn-action {
    padding: 6px 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.btn-action.view {
    background-color: #17a2b8;
    color: white;
}

.btn-action.view:hover {
    background-color: #138496;
    transform: translateY(-2px);
}

.btn-action.edit {
    background-color: #007bff;
    color: white;
}

.btn-action.edit:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

.btn-action.duplicate {
    background-color: #6f42c1;
    color: white;
}

.btn-action.duplicate:hover {
    background-color: #5a32a3;
    transform: translateY(-2px);
}

.btn-action.print {
    background-color: #28a745;
    color: white;
}

.btn-action.print:hover {
    background-color: #218838;
    transform: translateY(-2px);
}

.btn-action.delete {
    background-color: #dc3545;
    color: white;
}

.btn-action.delete:hover {
    background-color: #c82333;
    transform: translateY(-2px);
}

/* ===== MODAL DE RECUSA ===== */
.alert {
    padding: 12px 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-warning {
    background-color: #fff3cd;
    border: 1px solid #ffc107;
    color: #856404;
}

.alert i {
    font-size: 20px;
}

/* ===== BOTÕES DE STATUS ===== */
.modal-footer .btn-success {
    background: linear-gradient(135deg, #28a745, #20c997);
    border: none;
    color: white;
    padding: 10px 20px;
    transition: all 0.3s ease;
}

.modal-footer .btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.modal-footer .btn-danger {
    background: linear-gradient(135deg, #dc3545, #c82333);
    border: none;
    color: white;
    padding: 10px 20px;
    transition: all 0.3s ease;
}

.modal-footer .btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

/* ===== MELHORIAS NA VISUALIZAÇÃO ===== */
.detail-section-header {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 12px 15px;
    border-radius: 6px;
    margin: 20px 0 15px 0;
    border-left: 4px solid #003366;
}

.detail-section-header h4 {
    margin: 0;
    color: #003366;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.detail-section-header i {
    font-size: 18px;
}

.detail-box {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    border-left: 4px solid #0055aa;
    margin: 10px 0;
}

.detail-box.alert-danger {
    background: #fff5f5;
    border-left-color: #dc3545;
}

.detail-box p {
    margin: 0;
    color: #495057;
    line-height: 1.6;
}

.detail-table {
    margin-top: 10px;
}

.detail-table thead {
    background: linear-gradient(135deg, #003366, #0055aa);
}

.detail-table tbody tr {
    transition: background-color 0.2s ease;
}

.detail-table tbody tr:hover {
    background-color: #f1f3f5;
}

.detail-table tfoot {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-top: 3px solid #003366;
}

/* ===== INFO DE RESULTADOS ===== */
.table-info {
    background: white;
    padding: 12px 20px;
    border-radius: 8px;
    margin-top: 15px;
    text-align: center;
    font-size: 14px;
    color: #6c757d;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* ===== RESPONSIVO ===== */
@media (max-width: 768px) {
    .filters-row {
        flex-direction: column;
    }
    
    .filter-group {
        width: 100%;
        min-width: 100%;
    }
    
    .summary-cards-mini {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .actions-group {
        flex-wrap: wrap;
    }
    
    .btn-action {
        flex: 1;
        min-width: 40px;
    }
}
