/* Modal de Vendas - Estilos Principais */
.venda-modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-bottom: none;
    padding: 15px 20px;
    position: relative;
}

.venda-modal-header .modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}

.venda-modal-header .modal-title i {
    margin-right: 8px;
}

.venda-modal-header .close {
    color: white;
    opacity: 0.8;
    font-size: 1.5rem;
    font-weight: 300;
    text-shadow: none;
}

.venda-modal-header .close:hover {
    opacity: 1;
}

.venda-modal-body {
    padding: 0;
    max-height: 80vh;
    overflow-y: auto;
    background: #f8f9fa;
}

.venda-modal-footer {
    background: white;
    border-top: 1px solid #dee2e6;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

/* Navegação por Abas */
.venda-tabs {
    background: white;
    border-bottom: 1px solid #dee2e6;
    position: sticky;
    top: 0;
    z-index: 10;
}

.tab-nav {
    display: flex;
    padding: 0;
    margin: 0;
    list-style: none;
}

.tab-button {
    flex: 1;
    background: transparent;
    border: none;
    padding: 15px 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    color: #6c757d;
    font-size: 0.9rem;
    position: relative;
}

.tab-button:hover:not(.disabled) {
    background: #f8f9fa;
    color: #495057;
}

.tab-button.active {
    color: #667eea;
    background: #f8f9fa;
}

.tab-button.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #667eea;
}

.tab-button.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.tab-button i {
    font-size: 1.2rem;
}

.tab-text {
    font-size: 0.8rem;
    font-weight: 500;
}

.tab-button .badge {
    position: absolute;
    top: 5px;
    right: 10px;
    font-size: 0.7rem;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

/* Conteúdo das Abas */
.tab-content {
    min-height: 400px;
}

.tab-pane {
    display: none;
    padding: 20px;
}

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

/* Formulário de Venda */
.venda-form {
    max-width: 100%;
}

.form-section {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.section-title {
    color: #495057;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-title i {
    color: #667eea;
}

.subsection-title {
    color: #6c757d;
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Informações da Venda */
.venda-info-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 20px;
    margin: -20px -20px 20px -20px;
    border-radius: 8px 8px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.total-display {
    font-size: 1.2rem;
    font-weight: 700;
    background: rgba(255,255,255,0.2);
    padding: 5px 10px;
    border-radius: 20px;
}

.saldo-display {
    font-size: 1rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 15px;
    background: rgba(255,255,255,0.2);
}

/* Resumo da Venda */
.venda-resumo {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-top: 10px;
}

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

.resumo-item .label {
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 500;
}

.resumo-item .value {
    font-size: 1.1rem;
    font-weight: 600;
    color: #495057;
}

.resumo-item .value.total {
    color: #28a745;
    font-size: 1.3rem;
}

/* Seções Específicas */
.funcionario-section,
.produto-section {
    margin-bottom: 20px;
}

.item-details {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
}

.segunda-comissao {
    background: #fff3cd;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
    border: 1px solid #ffeaa7;
}

/* Ações do Formulário */
.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
    flex-wrap: wrap;
}

.form-actions .btn {
    min-width: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

/* Lista de Itens */
.itens-lista {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.item-card {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
    transition: all 0.3s ease;
}

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

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

.item-funcionario {
    color: #667eea;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.item-actions {
    display: flex;
    gap: 5px;
}

.item-body {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
}

.item-produto {
    flex: 1;
}

.item-produto strong {
    color: #495057;
    font-size: 1rem;
}

.item-descritivo {
    margin-top: 5px;
    font-style: italic;
}

.item-valores {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    min-width: 100px;
}

.item-valores .quantidade {
    font-size: 0.9rem;
    color: #6c757d;
}

.item-valores .preco {
    font-size: 0.9rem;
    color: #6c757d;
}

.item-valores .total {
    font-size: 1.1rem;
    font-weight: 600;
    color: #28a745;
}

/* Lista de Pagamentos */
.pagamentos-lista {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pagamento-card {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
    transition: all 0.3s ease;
}

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

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

.pagamento-forma {
    color: #667eea;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.pagamento-body {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.pagamento-info .vencimento {
    color: #6c757d;
    font-size: 0.9rem;
}

.pagamento-info .parcelas {
    background: #e9ecef;
    color: #495057;
    padding: 2px 6px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.pagamento-valor {
    font-size: 1.1rem;
    font-weight: 600;
    color: #28a745;
}

/* Footer */
.footer-info {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.footer-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.footer-actions .btn {
    display: flex;
    align-items: center;
    gap: 5px;
    min-width: 100px;
    justify-content: center;
}

/* Responsividade Mobile */
@media (max-width: 768px) {
    .venda-modal-body {
        max-height: 70vh;
    }
    
    .tab-pane {
        padding: 15px;
    }
    
    .form-section {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .venda-info-header {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    
    .venda-resumo {
        flex-direction: column;
        gap: 10px;
    }
    
    .resumo-item {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }
    
    .item-body {
        flex-direction: column;
        gap: 10px;
    }
    
    .item-valores {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }
    
    .pagamento-body {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }
    
    .form-actions {
        justify-content: center;
    }
    
    .footer-info,
    .footer-actions {
        width: 100%;
        justify-content: center;
    }
    
    .tab-button {
        padding: 12px 8px;
        font-size: 0.8rem;
    }
    
    .tab-button i {
        font-size: 1rem;
    }
    
    .tab-text {
        font-size: 0.7rem;
    }
}

@media (max-width: 576px) {
    .venda-modal-header {
        padding: 10px 15px;
        flex: 0 0 auto !important;
    }

    .venda-modal-body {
        max-height: none !important;
        flex: 1 1 auto !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        padding: 0 !important;
        min-height: 0 !important;
    }
    
    .venda-modal-footer {
        padding: 10px 15px;
        flex: 0 0 auto !important;
    }
    
    .tab-content {
        min-height: 0 !important;
        height: 100% !important;
    }
    
    .tab-pane {
        padding: 10px;
        min-height: 0 !important;
    }
    
    .form-section {
        padding: 10px;
    }
    
    .venda-info-header {
        margin: -10px -10px 15px -10px;
        padding: 10px 15px;
    }
    
    .tab-button {
        padding: 10px 5px;
    }
    
    .tab-text {
        display: none;
    }
    
    .form-actions .btn {
        min-width: 80px;
        font-size: 0.9rem;
    }
    
    .footer-actions .btn {
        min-width: 80px;
        font-size: 0.9rem;
    }
}

/* Estados e Animações */
.btn {
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.btn:active {
    transform: translateY(0);
}

.badge {
    font-size: 0.75rem;
    padding: 0.25em 0.6em;
}

.badge-warning {
    background-color: #ffc107;
    color: #212529;
}

.badge-success {
    background-color: #28a745;
}

.badge-danger {
    background-color: #dc3545;
}

.badge-info {
    background-color: #17a2b8;
}

.badge-primary {
    background-color: #667eea;
}

/* Cores de texto */
.text-success {
    color: #28a745 !important;
}

.text-warning {
    color: #ffc107 !important;
}

.text-danger {
    color: #dc3545 !important;
}

.text-muted {
    color: #6c757d !important;
}

/* Inputs customizados */
.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.form-control.text-right {
    text-align: right;
}

.form-control.text-center {
    text-align: center;
}

/* Botões customizados */
.btn-primary {
    background-color: #667eea;
    border-color: #667eea;
}

.btn-primary:hover {
    background-color: #5a6fd8;
    border-color: #5a6fd8;
}

.btn-success {
    background-color: #28a745;
    border-color: #28a745;
}

.btn-success:hover {
    background-color: #218838;
    border-color: #218838;
}

.btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
}

.btn-secondary:hover {
    background-color: #5a6268;
    border-color: #5a6268;
}

.btn-info {
    background-color: #17a2b8;
    border-color: #17a2b8;
}

.btn-info:hover {
    background-color: #138496;
    border-color: #138496;
}

.btn-danger {
    background-color: #dc3545;
    border-color: #dc3545;
}

.btn-danger:hover {
    background-color: #c82333;
    border-color: #c82333;
}

/* Scrollbar customizada */
.venda-modal-body::-webkit-scrollbar {
    width: 6px;
}

.venda-modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.venda-modal-body::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.venda-modal-body::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Estilos para adicionar item */
.add-item-section {
    text-align: center;
    padding: 30px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px dashed #dee2e6;
    border-radius: 12px;
    margin-bottom: 25px;
}

.add-item-btn {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.3);
    transition: all 0.3s ease;
}

.add-item-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(40, 167, 69, 0.4);
}

.add-item-desc {
    margin-top: 10px;
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Estilos para o cabeçalho de itens */
.itens-header {
    margin-bottom: 20px;
}

.itens-header .section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0;
}

.itens-header .badge {
    margin-left: 10px;
}

/* Estado vazio */
.itens-empty {
    text-align: center;
    padding: 40px 20px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
}

.empty-state {
    color: #6c757d;
}

.empty-icon {
    font-size: 3rem;
    color: #dee2e6;
    margin-bottom: 15px;
}

.empty-state h6 {
    color: #495057;
    margin-bottom: 10px;
}

.empty-state p {
    margin-bottom: 0;
    font-size: 0.9rem;
}

/* Sobrescrever estilos existentes da lista de itens */
.itens-lista .item-card {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 12px;
    padding: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    overflow: hidden;
}

.itens-lista .item-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.itens-lista .item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid #dee2e6;
    margin-bottom: 0;
}

.item-numero {
    background: #007bff;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
}

.itens-lista .item-funcionario {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #495057;
    font-weight: 500;
    flex: 1;
    margin-left: 15px;
}

.itens-lista .item-funcionario i {
    color: #28a745;
}

.funcionario-nome {
    font-weight: 600;
}

.itens-lista .item-actions {
    display: flex;
    gap: 8px;
}

.itens-lista .item-actions .btn {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.itens-lista .item-actions .btn:hover {
    transform: translateY(-1px);
}

.itens-lista .item-body {
    padding: 20px;
    display: block;
    gap: 0;
}

.itens-lista .item-produto {
    margin-bottom: 15px;
    flex: none;
}

.produto-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.produto-nome {
    color: #212529;
    font-size: 1.1rem;
    font-weight: 600;
}

.produto-tipo .badge {
    font-size: 0.75rem;
    padding: 4px 8px;
}

.itens-lista .item-descritivo {
    margin-top: 8px;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 3px solid #007bff;
    font-style: normal;
}

.itens-lista .item-descritivo i {
    margin-right: 5px;
}

.itens-lista .item-valores {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    flex-direction: row;
    align-items: stretch;
    min-width: auto;
}

.valor-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.valor-label {
    font-size: 0.8rem;
    color: #6c757d;
    font-weight: 500;
    margin-bottom: 4px;
}

.valor-numero {
    font-size: 1rem;
    font-weight: 600;
    color: #495057;
}

.total-item {
    border-left: 2px solid #28a745;
    padding-left: 15px;
}

.total-item .valor-numero {
    color: #28a745;
    font-size: 1.2rem;
}

/* Segunda comissão */
.item-comissao {
    padding: 12px 20px;
    background: #fff3cd;
    border-top: 1px solid #ffeaa7;
}

.comissao-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #856404;
}

.comissao-info i {
    color: #f39c12;
}

.comissao-texto {
    flex: 1;
}

.comissao-valor {
    font-weight: 600;
}

/* Resumo dos itens */
.itens-resumo {
    margin-top: 25px;
    padding: 20px;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border: 1px solid #2196f3;
    border-radius: 12px;
}

.resumo-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.itens-resumo .resumo-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.resumo-label {
    font-size: 0.9rem;
    color: #1976d2;
    font-weight: 500;
    margin-bottom: 5px;
}

.resumo-valor {
    font-size: 1.1rem;
    font-weight: 600;
    color: #0d47a1;
}

.total-geral {
    border-left: 2px solid #2196f3;
    padding-left: 20px;
}

.total-geral .resumo-valor {
    font-size: 1.4rem;
    color: #1976d2;
}

/* Responsividade para novos estilos */
@media (max-width: 768px) {
    .add-item-section {
        padding: 20px 15px;
    }
    
    .add-item-btn {
        padding: 12px 24px;
        font-size: 1rem;
    }
    
    .itens-lista .item-valores {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .produto-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .resumo-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .total-geral {
        border-left: none;
        border-top: 2px solid #2196f3;
        padding-left: 0;
        padding-top: 15px;
    }
}

@media (max-width: 576px) {
    .itens-lista .item-header {
        padding: 12px 15px;
    }
    
    .itens-lista .item-body {
        padding: 15px;
    }
    
    .itens-lista .item-actions .btn {
        padding: 4px 8px;
        font-size: 0.8rem;
    }
    
    .item-numero {
        width: 25px;
        height: 25px;
        font-size: 0.8rem;
    }
}

/* === ESTILOS ESPECÍFICOS DO MODAL DE ITEM === */

/* Header do Modal de Item */
.item-modal-header {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border-bottom: none;
    padding: 15px 20px;
    position: relative;
}

.item-modal-header .modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}

.item-modal-header .modal-title i {
    margin-right: 8px;
}

.item-modal-header .close {
    color: white;
    opacity: 0.8;
    font-size: 1.5rem;
    font-weight: 300;
    text-shadow: none;
}

.item-modal-header .close:hover {
    opacity: 1;
}

/* Body do Modal de Item */
.item-modal-body {
    padding: 0;
    padding-bottom: 0;
    margin-bottom: 0;
    max-height: 80vh;
    overflow-y: auto;
    background: #f8f9fa;
}

/* Footer do Modal de Item */
.item-modal-footer {
    background: white;
    border-top: 1px solid #dee2e6;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

/* Informações da Venda - Versão Compacta */
.venda-info-compact {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 20px;
    margin: 0;
    border-radius: 0;
}

.venda-info-compact .info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    align-items: center;
}

.venda-info-compact .info-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.venda-info-compact .info-icon {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    min-width: 20px;
}

.venda-info-compact .info-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.venda-info-compact .info-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.venda-info-compact .info-value {
    font-size: 0.95rem;
    color: white;
    font-weight: 600;
}

/* Layout Responsivo dos Detalhes do Item */
.item-details-responsive {
    display: grid;
    gap: 20px;
    margin-top: 15px;
}

.detail-row-responsive {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: end;
}

.detail-row-full {
    display: grid;
    grid-template-columns: 1fr;
}

.detail-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.detail-field label {
    font-weight: 600;
    color: #495057;
    font-size: 0.9rem;
    margin-bottom: 0;
}

.detail-field .form-control {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 12px 15px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: white;
}

.detail-field .form-control:focus {
    border-color: #28a745;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
    background: #f8fff8;
}

.detail-field .form-control:read-only {
    background: #f8f9fa;
    color: #6c757d;
    border-color: #dee2e6;
}

.detail-field .total-input {
    background: linear-gradient(135deg, #e8f5e8 0%, #f0f9f0 100%) !important;
    border-color: #28a745 !important;
    color: #28a745 !important;
    font-weight: 700 !important;
}

/* Resumo do Item */
.item-resumo {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border: 1px solid #2196f3;
    border-radius: 12px;
    margin-top: 20px;
}

.item-resumo .section-title {
    color: #1976d2;
    border-bottom-color: #2196f3;
    margin-bottom: 15px;
}

.resumo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.resumo-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(33, 150, 243, 0.2);
}

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

.resumo-label {
    font-weight: 600;
    color: #1976d2;
    font-size: 0.9rem;
}

.resumo-value {
    font-weight: 600;
    color: #0d47a1;
    font-size: 0.95rem;
}

.total-resumo {
    background: rgba(33, 150, 243, 0.1);
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #2196f3;
    margin-top: 10px;
}

.total-resumo .resumo-value {
    font-size: 1.1rem;
    color: #1976d2;
}

/* Produto Selecionado no Modal de Item - Layout Compacto */
.item-modal-body .produto-venda-container .produto-selecionado {
    background: linear-gradient(135deg, #f8fff8 0%, #e8f5e8 100%) !important;
    border: 2px solid #28a745 !important;
    border-radius: 8px !important;
    padding: 10px !important;
    margin: 0 !important;
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.1) !important;
}

.item-modal-body .produto-venda-container .produto-info {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
}

.item-modal-body .produto-venda-container .produto-info .produto-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    border-bottom: none !important;
}

.item-modal-body .produto-venda-container .produto-codigo {
    display: flex !important;
    align-items: center !important;
}

.item-modal-body .produto-venda-container .produto-codigo .badge {
    font-size: 0.75rem !important;
    padding: 3px 6px !important;
}

.item-modal-body .produto-venda-container .produto-actions {
    display: flex !important;
    gap: 4px !important;
}

.item-modal-body .produto-venda-container .produto-actions .btn {
    padding: 4px 8px !important;
    font-size: 0.75rem !important;
    border-radius: 4px !important;
}

.item-modal-body .produto-venda-container .produto-detalhes {
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
}

.item-modal-body .produto-venda-container .produto-nome {
    font-size: 1rem !important;
    color: #155724 !important;
    font-weight: 700 !important;
    margin-bottom: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.item-modal-body .produto-venda-container .produto-nome strong {
    flex: 1 !important;
}

.item-modal-body .produto-venda-container .produto-nome .badge {
    font-size: 0.7rem !important;
    padding: 2px 6px !important;
    margin-left: 0 !important;
}

.item-modal-body .produto-venda-container .produto-info-compacta {
    margin-top: 0 !important;
}

.item-modal-body .produto-venda-container .info-row {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    margin-top: 0 !important;
    flex-wrap: wrap !important;
}

.item-modal-body .produto-venda-container .info-item {
    background: rgba(255, 255, 255, 0.9) !important;
    padding: 4px 8px !important;
    border-radius: 4px !important;
    border: 1px solid rgba(40, 167, 69, 0.3) !important;
    font-size: 0.8rem !important;
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    white-space: nowrap !important;
}

.item-modal-body .produto-venda-container .info-item i {
    color: #28a745 !important;
    font-size: 0.75rem !important;
}

.item-modal-body .produto-venda-container .info-item.preco-destaque {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%) !important;
    border-color: #28a745 !important;
    font-weight: 700 !important;
}

.item-modal-body .produto-venda-container .info-item.preco-destaque .preco-valor {
    color: #155724 !important;
    font-weight: 700 !important;
    font-size: 0.85rem !important;
}

/* Responsividade para Modal de Item */
@media (max-width: 992px) {
    .detail-row-responsive {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .venda-info-compact .info-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 10px;
    }
    
    .resumo-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

@media (max-width: 768px) {
    .item-modal-body {
        padding: 0;
    }
    
    .venda-info-compact {
        padding: 15px;
    }
    
    .venda-info-compact .info-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .form-section {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .detail-field .form-control {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
    
    .item-modal-body .produto-venda-container .produto-selecionado {
        padding: 8px !important;
        border-radius: 6px !important;
    }
    
    .item-modal-body .produto-venda-container .info-row {
        gap: 8px !important;
        flex-direction: column !important;
        align-items: stretch !important;
    }
    
    .item-modal-body .produto-venda-container .info-item {
        padding: 4px 6px !important;
        font-size: 0.75rem !important;
        justify-content: center !important;
    }
    
    .item-modal-body .produto-venda-container .produto-actions .btn {
        padding: 3px 6px !important;
        font-size: 0.7rem !important;
    }
    
    .item-modal-footer {
        padding: 12px 15px;
        flex-direction: column;
        gap: 8px;
    }
    
    .item-modal-footer .btn {
        width: 100%;
        margin: 0;
    }
}

@media (max-width: 576px) {
    .venda-info-compact .info-content {
        gap: 1px;
    }
    
    .venda-info-compact .info-label {
        font-size: 0.75rem;
    }
    
    .venda-info-compact .info-value {
        font-size: 0.9rem;
    }
    
    .detail-field label {
        font-size: 0.85rem;
    }
    
    .detail-field .form-control {
        padding: 8px 10px;
        font-size: 0.85rem;
    }
    
    .item-modal-body .produto-venda-container .produto-nome {
        font-size: 0.9rem !important;
    }
    
    .item-modal-body .produto-venda-container .produto-nome strong {
        font-size: 0.9rem !important;
    }
    
    .section-title {
        font-size: 1rem;
    }
}

/* === ESTILOS PARA PAGAMENTOS === */

/* Status do Pagamento */
.payment-status-header {
    margin-bottom: 25px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.status-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.status-info {
    display: flex;
    gap: 20px;
    align-items: center;
}

.status-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.status-label {
    font-size: 12px;
    opacity: 0.9;
    font-weight: 500;
}

.status-values {
    display: flex;
    gap: 25px;
    align-items: center;
}

.value-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.value-label {
    font-size: 11px;
    opacity: 0.9;
    margin-bottom: 5px;
}

.value-amount {
    font-size: 16px;
    font-weight: bold;
}

.value-amount.total {
    color: #fff;
}

.value-amount.paid {
    color: #4CAF50;
}

.balance-positive {
    color: #FF9800 !important;
}

.balance-zero {
    color: #4CAF50 !important;
}

.balance-negative {
    color: #F44336 !important;
}

/* Indicador de Status */
.payment-indicator {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    display: flex;
    justify-content: center;
    gap: 30px;
}

.indicator-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.indicator-item.active {
    opacity: 1;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.indicator-item.warning.active {
    background: rgba(255, 152, 0, 0.8);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Formulário de Pagamento */
.payment-form-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 25px;
    border: 1px solid #e9ecef;
}

.payment-form .form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.payment-form .form-label i {
    color: #6c757d;
    width: 16px;
}

.payment-form .form-control-lg {
    height: 45px;
    font-size: 16px;
    border-radius: 6px;
    border: 2px solid #e9ecef;
    transition: border-color 0.3s ease;
}

.payment-form .form-control-lg:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.payment-actions {
    display: flex;
    gap: 15px;
    padding-top: 10px;
}

.payment-actions .btn-lg {
    padding: 12px 25px;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.payment-actions .btn-lg:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.payment-actions .btn-lg:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Lista de Pagamentos */
.payments-list-section {
    margin-bottom: 25px;
}

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

.payment-item {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.payment-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.payment-content {
    flex: 1;
}

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

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

.payment-icon {
    color: #007bff;
    font-size: 18px;
}

.payment-method {
    font-weight: 600;
    color: #495057;
}

.payment-badge {
    background: #ffc107;
    color: #212529;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.payment-value {
    font-size: 18px;
    font-weight: bold;
    color: #28a745;
}

.payment-details {
    display: flex;
    gap: 20px;
    color: #6c757d;
    font-size: 14px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

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

/* Resumo dos Pagamentos */
.payments-summary {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 20px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.summary-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.summary-label {
    font-size: 12px;
    opacity: 0.9;
}

.summary-value {
    font-size: 18px;
    font-weight: bold;
}

.summary-value.troco {
    color: #ffc107;
    animation: pulse 2s infinite;
}

/* Estado Vazio */
.no-payments-message {
    padding: 40px;
    text-align: center;
}

.empty-state {
    color: #6c757d;
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.5;
}

.empty-state h6 {
    margin-bottom: 10px;
    font-weight: 600;
}

.empty-state p {
    margin: 0;
    opacity: 0.8;
}

/* Responsividade */
@media (max-width: 768px) {
    .status-card {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .status-info {
        justify-content: center;
    }
    
    .status-values {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .payment-indicator {
        flex-direction: column;
        gap: 15px;
    }
    
    .payment-actions {
        flex-direction: column;
    }
    
    .payment-actions .btn-lg {
        width: 100%;
    }
    
    .payment-item {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .payment-header {
        width: 100%;
    }
    
    .payment-actions {
        align-self: flex-end;
    }
    
    .payments-summary {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

/* === BOTÕES DE FORMA DE PAGAMENTO === */

/* Grid de Métodos de Pagamento */
.payment-methods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 8px;
    margin-bottom: 20px;
}

/* Botão de Método de Pagamento */
.payment-method-btn {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    width: 100%;
    min-height: 40px;
    font-size: 13px;
}

.payment-method-btn:hover {
    border-color: #007bff;
    background: #f8f9fa;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.15);
}

.payment-method-btn.active {
    border-color: #007bff;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    box-shadow: 0 2px 10px rgba(0, 123, 255, 0.3);
}

.payment-method-btn:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

/* Ícone do Método de Pagamento */
.payment-method-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: #f8f9fa;
    border-radius: 50%;
    font-size: 12px;
    color: #007bff;
    flex-shrink: 0;
}

.payment-method-btn.active .payment-method-icon {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* Informações do Método de Pagamento */
.payment-method-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0; /* Permite texto ser truncado */
}

.payment-method-name {
    font-weight: 600;
    font-size: 13px;
    color: #495057;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.payment-method-btn.active .payment-method-name {
    color: white;
}

.payment-method-detail {
    font-size: 10px;
    color: #6c757d;
    opacity: 0.8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.payment-method-btn.active .payment-method-detail {
    color: rgba(255, 255, 255, 0.8);
}

/* === SELETOR DE PARCELAS === */

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

.parcelas-selector .btn-sm {
    width: 32px;
    height: 32px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 12px;
}

.parcelas-input {
    flex: 1;
    max-width: 60px;
    font-weight: bold;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    height: 32px;
    font-size: 14px;
}

.parcelas-input:focus {
    background: white;
    border-color: #007bff;
}

/* === RESPONSIVIDADE PARA PAGAMENTOS === */

@media (max-width: 768px) {
    /* Grid de Pagamentos em Mobile */
    .payment-methods-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }
    
    .payment-method-btn {
        padding: 6px 10px;
        min-height: 36px;
        font-size: 12px;
    }
    
    .payment-method-icon {
        width: 20px;
        height: 20px;
        font-size: 10px;
    }
    
    .payment-method-name {
        font-size: 12px;
    }
    
    .payment-method-detail {
        font-size: 9px;
    }
    
    /* Seletor de Parcelas em Mobile */
    .parcelas-selector {
        justify-content: center;
    }
    
    .parcelas-selector .btn-sm {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
    
    .parcelas-input {
        max-width: 50px;
        font-size: 16px;
        height: 36px;
    }
}

@media (max-width: 480px) {
    /* Ajustes para telas muito pequenas */
    .payment-methods-grid {
        grid-template-columns: 1fr;
        gap: 5px;
    }
    
    .payment-method-btn {
        padding: 5px 8px;
        min-height: 32px;
        gap: 6px;
        font-size: 11px;
    }
    
    .payment-method-icon {
        width: 18px;
        height: 18px;
        font-size: 9px;
    }
    
    .payment-method-name {
        font-size: 11px;
    }
    
    .payment-method-detail {
        font-size: 8px;
    }
}

/* Estilo para edição de vencimento */
.vencimento-input:focus {
    border: 1px solid #007bff !important;
    background: white !important;
    box-shadow: 0 0 3px rgba(0, 123, 255, 0.3);
}

/* === LAYOUT MODERNO - ABA DE ITENS === */

.itens-modern-layout {
    padding: 0 !important;
}

/* Header Moderno com Cliente e Total */
.itens-modern-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 16px 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: center;
    margin: -20px -20px 0 -20px;
    border-radius: 0;
}

.cliente-info-modern {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cliente-label {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    opacity: 0.8;
}

.cliente-nome {
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.total-info-modern {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    text-align: right;
}

.total-label {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    opacity: 0.8;
}

.total-valor {
    font-size: 1.5rem;
    font-weight: 900;
    color: white;
    line-height: 1;
}

/* Botão Adicionar Item Moderno */
.add-item-modern-section {
    padding: 24px;
    background: white;
    display: flex;
    gap: 12px;
}

.btn-add-item-modern {
    flex: 1;
    background: linear-gradient(135deg, #56ab2f 0%, #a8e063 100%);
    border: none;
    border-radius: 16px;
    padding: 18px 24px;
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow: 0 4px 16px rgba(86, 171, 47, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-add-item-modern:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(86, 171, 47, 0.4);
}

.btn-add-item-modern:active:not(:disabled) {
    transform: translateY(0);
}

.btn-add-item-modern:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-add-item-modern i {
    font-size: 1.3rem;
}

.btn-add-consumo-modern {
    flex: 1;
    background: linear-gradient(135deg, #f39c12 0%, #f1c40f 100%);
    border: none;
    border-radius: 16px;
    padding: 18px 24px;
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow: 0 4px 16px rgba(243, 156, 18, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-add-consumo-modern:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(243, 156, 18, 0.4);
}

.btn-add-consumo-modern:active:not(:disabled) {
    transform: translateY(0);
}

.btn-add-consumo-modern:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-add-consumo-modern i {
    font-size: 1.3rem;
}

/* Conteúdo da Lista de Itens */
.itens-modern-content {
    padding: 24px;
    background: #f5f6fa;
}

.itens-lista-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e8e9ed;
}

.lista-titulo {
    font-size: 0.9rem;
    font-weight: 700;
    color: #667eea;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.lista-count {
    font-size: 0.9rem;
    font-weight: 600;
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
    padding: 4px 12px;
    border-radius: 12px;
}

/* Estado Vazio Moderno */
.itens-empty-modern {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 16px;
    border: 2px dashed #e8e9ed;
}

.empty-state-modern {
    color: #9ca3af;
}

.empty-icon-modern {
    font-size: 4rem;
    color: #e8e9ed;
    margin-bottom: 20px;
}

.empty-state-modern h6 {
    color: #6b7280;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.empty-state-modern p {
    margin: 0;
    color: #9ca3af;
    font-size: 0.95rem;
}

/* Lista de Itens Moderna */
.itens-lista-modern {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Card de Item Moderno */
.item-card-modern {
    background: white;
    border-radius: 16px;
    padding: 0;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    overflow: hidden;
    border: 1px solid #e8e9ed;
}

.item-card-modern:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

/* Topo do Item - Tipo e Ações */
.item-top-modern {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid #e8e9ed;
}

.item-tipo-badge {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.badge-produto {
    background: linear-gradient(135deg, #56ab2f 0%, #a8e063 100%);
    color: white;
}

.item-actions-modern {
    display: flex;
    gap: 8px;
}

.btn-icon-modern {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: none;
    background: white;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.btn-icon-modern:hover:not(:disabled) {
    transform: scale(1.1);
}

.btn-icon-modern.btn-edit {
    color: #667eea;
}

.btn-icon-modern.btn-edit:hover:not(:disabled) {
    background: #667eea;
    color: white;
}

.btn-icon-modern.btn-delete {
    color: #dc3545;
}

.btn-icon-modern.btn-delete:hover:not(:disabled) {
    background: #dc3545;
    color: white;
}

.btn-icon-modern:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Nome do Produto */
.item-produto-modern {
    padding: 16px 20px 12px 20px;
}

.produto-nome-modern {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1a1d29;
    margin: 0;
    line-height: 1.4;
}

/* Profissional */
.item-profissional-modern {
    padding: 0 20px 12px 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6b7280;
    font-size: 0.85rem;
}

.item-profissional-modern i {
    color: #667eea;
    font-size: 1rem;
}

.profissional-label {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #9ca3af;
    font-size: 0.65rem;
}

.profissional-nome {
    font-weight: 600;
    color: #374151;
}

/* Valores do Item */
.item-valores-modern {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 16px 20px;
    background: #f8f9fa;
    border-top: 1px solid #e8e9ed;
}

.valor-box {
    text-align: center;
}

.valor-label-modern {
    display: block;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #9ca3af;
    margin-bottom: 4px;
}

.valor-numero-modern {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: #374151;
}

.valor-total-box {
    border-left: 2px solid #56ab2f;
    padding-left: 12px;
}

.total-destaque {
    font-size: 1.2rem;
    color: #56ab2f;
}

/* Observações do Item */
.item-obs-modern {
    padding: 12px 20px;
    background: #fef3c7;
    border-top: 1px solid #fde68a;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.85rem;
    color: #92400e;
}

.item-obs-modern i {
    color: #f59e0b;
    margin-top: 2px;
    flex-shrink: 0;
}

/* Segunda Comissão */
.item-segunda-comissao-modern {
    padding: 12px 20px;
    background: #dbeafe;
    border-top: 1px solid #bfdbfe;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #1e40af;
}

.item-segunda-comissao-modern i {
    color: #3b82f6;
}

/* Seção Itens Adicionados */
.itens-adicionados-section {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 2px solid #e8e9ed;
}

.itens-adicionados-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.itens-adicionados-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: #667eea;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.itens-adicionados-count {
    font-size: 0.9rem;
    font-weight: 700;
    color: #374151;
}

/* Responsividade */
@media (max-width: 768px) {
    .itens-modern-header {
        padding: 16px 20px;
        gap: 16px;
    }
    
    .add-item-modern-section {
        padding: 20px;
        flex-direction: column;
    }
    
    .btn-add-item-modern,
    .btn-add-consumo-modern {
        padding: 16px 20px;
        font-size: 1rem;
    }
    
    .itens-modern-content {
        padding: 20px;
    }
    
    .produto-nome-modern {
        font-size: 1rem;
    }
    
    .item-valores-modern {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 12px 16px;
    }
    
    .valor-box {
        display: flex;
        justify-content: space-between;
        align-items: center;
        text-align: left;
    }
    
    .valor-label-modern {
        margin-bottom: 0;
    }
    
    .valor-total-box {
        border-left: none;
        border-top: 2px solid #56ab2f;
        padding-left: 0;
        padding-top: 8px;
        margin-top: 4px;
    }
}

@media (max-width: 576px) {
    .itens-modern-header {
        padding: 12px 16px;
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .total-info-modern {
        align-items: flex-start;
        text-align: left;
    }
    
    .cliente-nome {
        font-size: 1rem;
    }
    
    .total-valor {
        font-size: 1.3rem;
    }
    
    .add-item-modern-section {
        padding: 16px;
    }
    
    .btn-add-item-modern {
        padding: 14px 18px;
        font-size: 0.95rem;
        border-radius: 12px;
    }
    
    .itens-modern-content {
        padding: 16px;
    }
    
    .item-card-modern {
        border-radius: 12px;
    }
    
    .item-top-modern {
        padding: 10px 16px;
    }
    
    .item-produto-modern {
        padding: 12px 16px 10px 16px;
    }
    
    .produto-nome-modern {
        font-size: 0.95rem;
    }
    
    .item-profissional-modern {
        padding: 0 16px 10px 16px;
        font-size: 0.8rem;
    }
    
    .item-valores-modern {
        padding: 10px 16px;
    }
    
    .valor-numero-modern {
        font-size: 0.95rem;
    }
    
    .total-destaque {
        font-size: 1.1rem;
    }
    
    .item-obs-modern,
    .item-segunda-comissao-modern {
        padding: 10px 16px;
        font-size: 0.8rem;
    }
    
    .btn-icon-modern {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }
    
    .itens-adicionados-section {
        margin-top: 20px;
        padding-top: 20px;
    }
    
    .itens-adicionados-header {
        padding: 12px 16px;
    }
} 