* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

html {
    height: 100%;
    width: 100%;
    overflow-y: scroll;
}

body {
    background-color: #f0f0f0;
    min-height: 100%;
    position: relative;
    margin-right: 0 !important;
    padding-right: 0 !important;
}

.container {
    width: 100%;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    margin-right: 0;
    padding-right: 0;
}

.main-content {
    display: flex;
    gap: 20px;
    padding: 15px;
    flex: 1;
    width: 100%;
    margin-right: 0;
    padding-right: 12px; /* Mesma largura da barra de rolagem */
}

.left-panel {
    flex: 1.2;
    background-color: white;
    padding: 15px;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.right-panel {
    flex: 1.3;
    background-color: white;
    padding: 15px;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-right: 0;
}

/* Estilização da barra de rolagem */
::-webkit-scrollbar {
    width: 12px;
    position: fixed;
    right: 0;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 0;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 0;
    border: 2px solid #f1f1f1;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Garantir que o botão adicionar fique sempre visível */
.btn-adicionar {
    position: sticky;
    bottom: 15px;
    z-index: 100;
}

.header {
    position: relative;
    padding: 8px 15px;
    background: #3498db;
    border-bottom: 2px solid #ffd700;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 40px;
    -webkit-app-region: drag;
    flex: 0 0 auto;
}

.header h1 {
    margin: 0;
    padding: 0;
    color: white;
    font-size: 18px;
    text-align: center;
    text-shadow: none;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 0;
    width: auto;
}

.window-controls {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    align-items: center;
    gap: 0;
    height: 100%;
    -webkit-app-region: no-drag;
}






.left-header-controls {
    position: relative;
    left: 0;
    top: 0;
    display: flex;
    gap: 10px;
    align-items: center;
    height: 100%;
    z-index: 1;
    -webkit-app-region: no-drag;
}

.header-btn {
    background: linear-gradient(135deg, #ffd700 0%, #ffcc00 100%);
    color: #000000;
    border: none;
    padding: 4px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    font-size: 12px;
}

.header-btn:hover {
    background: linear-gradient(135deg, #ffcc00 0%, #ffd700 100%);
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Estilos específicos para o botão de atualizações */
.update-btn {
    display: flex !important;
    align-items: center;
    padding: 6px 12px;
    margin-left: 10px;
    font-weight: bold;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
    animation: pulse 2s infinite;
    position: relative;
    z-index: 1000;
}

.update-btn:hover {
    background: #27ae60 !important;
}

.update-btn i {
    margin-right: 5px;
}

.section-title {
    color: #666;
    font-size: 12px;
    margin-bottom: 10px;
}

.model-selector select {
    width: 100%;
    padding: 6px;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 12px;
}

.window-details {
    background-color: white;
    padding: 15px;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-top: 20px;
    padding-bottom: 20px;
    overflow: visible !important;
}

.linha-section {
    margin-bottom: 15px;
}

.linha-label {
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
    display: block;
}

.linha-select {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 12px;
    background-color: white;
}

.preview-tipo-container {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: nowrap;
}

.window-preview-container {
    position: relative;
    display: inline-block;
}

.window-preview {
    width: 200px !important;
    height: 200px !important;
    min-width: 200px !important;
    max-width: 200px !important;
    border: 1px solid #ccc;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: white;
    padding: 10px;
    flex-shrink: 0;
    box-sizing: border-box;
}

.image-upload-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s;
    cursor: pointer;
    text-align: center;
    border-radius: 4px;
}

.window-preview-container:hover .image-upload-overlay {
    opacity: 1;
}

.upload-icon {
    font-size: 24px;
    display: block;
    margin-bottom: 5px;
    color: white;
}

.upload-text {
    color: white;
    font-size: 12px;
    display: block;
}

.preview-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.right-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.tipo-section {
    margin-bottom: 10px;
}

.tipo-label {
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
    display: block;
}

.esquadria-select {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 12px;
    background-color: white;
}

.measurements {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.measure-group {
    display: flex;
    align-items: center;
}

.measure-group label {
    font-size: 12px;
    color: #666;
    width: 70px;
    text-align: right;
    margin-right: 10px;
}

.input-container {
    position: relative;
    display: flex;
    align-items: center;
}

/* Aplica o estilo de unidade apenas para inputs de dimensão */
.dimension-input {
    width: 100px;
    padding: 6px 8px;
    padding-right: 30px; /* Espaço para a unidade */
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 12px;
    text-align: right;
}

/* Estilo específico para o input de quantidade (sem unidade) */
.quantity-input {
    width: 100px;
    padding: 6px 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 12px;
    text-align: right;
}

/* Esconder a unidade para elementos com a classe no-unit */
.no-unit::after {
    content: none !important;
    display: none !important;
}

.no-unit .unit {
    display: none !important;
}

.unit {
    position: absolute;
    right: 8px;
    color: #666;
    font-size: 12px;
    pointer-events: none;
}

.options-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 15px 0;
}

.option-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.option-group label {
    font-size: 12px;
    color: #666;
}

.option-group select {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 12px;
    background-color: white;
}

.option-group input[type="checkbox"] {
    margin-left: 5px;
    width: 16px;
    height: 16px;
}

.action-buttons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.btn-blue {
    flex: 1;
    padding: 8px 15px;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    color: white;
    cursor: pointer;
    transition: background-color 0.2s;
    text-align: center;
}

.btn-adicionar {
    background-color: #2f92e2 !important;
}

.btn-adicionar:hover {
    background-color: #2f92e2 !important;
}

.btn-limpar {
    background-color: #2f92e2 !important;
}

.btn-limpar:hover {
    background-color: #2f92e2 !important;
}

.btn-calcular {
    background-color: #2f92e2 !important;
}

.btn-calcular:hover {
    background-color: #2f92e2 !important;
}

.glass-options {
    display: flex;
    align-items: center;
    gap: 8px;
}

.glass-options input[type="checkbox"] {
    margin: 0;
    width: 16px;
    height: 16px;
}

.glass-options select {
    flex: 1;
    padding: 6px 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 12px;
    background-color: white;
}

#alturaBandeiraGroup {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

#alturaBandeiraGroup input {
    width: 100%;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

#alturaTravessaGroup {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

#alturaTravessaGroup input {
    width: 100%;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

#larguraFixoGroup {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

#larguraFixoGroup input {
    width: 100%;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.input-container::after {
    content: 'mm';
    position: absolute;
    right: 8px;
    color: #666;
    font-size: 12px;
    pointer-events: none;
}



.quantity-input:focus,
.dimension-input:focus {
    border-color: #2980b9;
    outline: none;
    box-shadow: 0 0 0 2px rgba(41, 128, 185, 0.1);
}

.quantity-input::-webkit-inner-spin-button,
.quantity-input::-webkit-outer-spin-button,
.dimension-input::-webkit-inner-spin-button,
.dimension-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.quantity-input[type="number"],
.dimension-input[type="number"] {
    --moz-appearance: textfield;
}

/* Ajustes nos inputs de dimensões */
.dimension-input {
    text-align: right;
    padding-right: 35px !important;
    width: 120px !important;
    position: relative;
}

.quantity-input {
    text-align: right;
    padding-right: 10px !important;
    width: 80px !important;
}

.options-section {
    margin-top: 15px;
    padding: 10px;
    background-color: white;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.options-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    align-items: start;
}

.option-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.option-group label {
    font-size: 11px;
    color: #555;
    font-weight: 500;
}

.option-group select {
    padding: 6px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 12px;
    background-color: #f9f9f9;
    transition: all 0.2s ease;
}

.option-group select:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.1);
    background-color: white;
}

.glass-options {
    display: flex;
    align-items: center;
    gap: 8px;
}

.glass-options input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.glass-options select {
    flex: 1;
    padding: 6px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 12px;
    background-color: #f9f9f9;
    transition: all 0.2s ease;
}

.glass-options select:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.1);
    background-color: white;
}

#aberturaPortaoGroup {
    margin-top: 15px;
    margin-bottom: 15px;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 4px;
}

.more-options {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.more-options label {
    font-size: 12px;
    color: #666;
}

.action-buttons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    justify-content: space-between;
}

.btn-blue {
    flex: 1;
    background-color: #3498db;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: background-color 0.2s;
    text-align: center;
    min-width: 80px;
}

.btn-blue:hover {
    background-color: #2980b9;
}

.btn-adicionar {
    background-color: #27ae60;
}

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

.btn-limpar {
    background-color: #e74c3c;
}

.btn-limpar:hover {
    background-color: #c0392b;
}

.btn-calcular {
    background-color: #f39c12;
}

.btn-calcular:hover {
    background-color: #d68910;
}

.input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.input-container::after {
    content: 'mm';
    position: absolute;
    right: 8px;
    color: #666;
    font-size: 12px;
    pointer-events: none;
}

.glass-options {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}

.glass-options select {
    flex: 1;
}

.glass-options input[type="checkbox"] {
    margin: 0;
    width: 16px;
    height: 16px;
}

.btn-large {
    padding: 8px 30px;
}

.btn-small {
    padding: 5px 10px;
    font-size: 11px;
}

.btn-remove {
    background-color: #e74c3c;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 11px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-remove:hover {
    background-color: #c0392b;
}

.items-list {
    margin-bottom: 15px;
    border: 1px solid #3498db;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.items-list table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.items-list th {
    background-color: #3498db;
    color: white;
    font-weight: 600;
    padding: 8px 10px;
    text-align: left;
    border-bottom: 2px solid #2980b9;
}

.items-list td {
    padding: 8px 10px;
    border-bottom: 1px solid #e0e0e0;
    color: #444;
}

.items-list tr:hover {
    background-color: #f0f8ff;
}

.items-list tr:last-child td {
    border-bottom: none;
}

.progress-section,
.progress-section label,
.progress-bar {
    display: none;
}

.budget-section {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.budget-section label {
    font-size: 12px;
    color: #666;
}

.budget-section select {
    flex: 1;
    padding: 6px;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 12px;
}

.action-buttons-right {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
    padding: 10px;
    background-color: white;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.action-buttons-right button {
    flex: 1;
    min-width: 120px;
    padding: 8px 12px;
    font-size: 12px;
}

.action-buttons-right .btn-large {
    flex: 2;
    min-width: 200px;
}

#btnSalvarOrcamento {
    background-color: #2ecc71;
}

#btnSalvarOrcamento:hover {
    background-color: #27ae60;
}

.edit-options {
    margin-bottom: 15px;
}

.radio-group {
    display: flex;
    gap: 15px;
    align-items: center;
}

.radio-group label {
    font-size: 12px;
    color: #666;
    margin-left: 5px;
}

.results-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.cost-section,
.weight-section {
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 4px;
    border: 1px solid #ccc;
}

.cost-chart,
.materials-chart {
    margin-bottom: 20px;
}

.cost-values,
.material-values,
.weight-values {
    margin-bottom: 10px;
}

.cost-item,
.material-item,
.weight-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-size: 12px;
}

.cost-item label,
.material-item label,
.weight-item label {
    color: #666;
}

canvas {
    width: 100%;
    height: 150px;
    margin-bottom: 10px;
}

.abertura-options {
    margin: 15px 0;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 4px;
}

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

.radio-options {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    gap: 20px;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.radio-option label {
    font-size: 14px;
    color: #666;
    cursor: pointer;
}

.radio-option:hover label {
    color: #333;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    overflow-y: auto;
}

.modal-content {
    background-color: #fefefe;
    margin: 2% auto;
    padding: 0;
    border: 1px solid #888;
    width: 90%;
    max-width: 1200px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.modal-header {
    padding: 15px 20px;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border-radius: 8px 8px 0 0;
}

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

.modal-body {
    padding: 20px;
    max-height: 600px;
    overflow-y: auto;
}

.close {
    color: white;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    margin-left: 15px;
}

.close:hover {
    color: #f1f1f1;
    text-decoration: none;
}

/* Ajustes específicos para o modal do plano de corte */
#planoCorteModal .modal-content {
    width: 95%;
    max-width: 1600px;
}

@media screen and (min-width: 1920px) {
    #planoCorteModal .modal-content {
        width: 90%;
        max-width: 1800px;
    }
}

@media screen and (max-width: 1366px) {
    #planoCorteModal .modal-content {
        width: 98%;
        margin: 1% auto;
    }
}

/* Estilos específicos para o modal de itens adicionais */
#modalItensAdicionais .modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 0;
    border: 1px solid #888;
    width: 800px;
    min-height: 600px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

#modalItensAdicionais .modal-body {
    flex: 1;
    padding: 20px;
    max-height: 70vh;
    overflow-y: auto;
}

#modalItensAdicionais .modal-header {
    padding: 15px 20px;
    border-bottom: 1px solid #ddd;
    background-color: #f8f9fa;
}

#modalItensAdicionais .modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #ddd;
    background-color: #f8f9fa;
}

.item-adicional {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background-color: #f8f9fa;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.item-adicional:hover {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.btn-delete-item {
    background-color: transparent;
    border: none;
    color: #dc3545;
    padding: 4px 8px;
    cursor: pointer;
    font-size: 16px;
    opacity: 0.7;
    transition: all 0.2s ease;
    margin-left: 10px;
}

.btn-delete-item:hover {
    opacity: 1;
    transform: scale(1.1);
}

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

/* Estilos específicos para o modal de gerenciamento de valores */
.valores-modal {
    max-width: 100% !important;
    width: 100% !important;
    height: 100vh !important;
    max-height: 100vh !important;
    margin: 0 !important;
    border-radius: 0 !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
}

.detalhamento-container {
    padding: 20px;
}

.item-detalhamento {
    margin-bottom: 30px;
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 5px;
}

.detalhamento-table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0;
}

.detalhamento-table th,
.detalhamento-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

.detalhamento-table th {
    background-color: #f5f5f5;
}
/* Seção removida - estilos movidos para Easy_Calc/src/components/orcamento/orcamento.css */

.header-info {
    flex: 1;
}

.header-info h1 {
    color: #333;
    margin: 0 0 15px 0;
    font-size: 28px;
}

.company-info {
    font-size: 14px;
    line-height: 1.5;
}

.client-info {
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 5px;
}

.client-info p {
    margin: 10px 0;
    font-size: 14px;
}

.items-container {
    margin: 20px 0;
}

.product-item {
    border: 1px solid #ddd;
    margin-bottom: 15px;
    padding: 15px;
    border-radius: 5px;
    background: #fff;
}

.product-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.item-number {
    font-weight: bold;
    color: #333;
    font-size: 16px;
}

.dimensions {
    display: flex;
    gap: 20px;
    color: #666;
}

.quantity-price {
    margin-top: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.quantity-price div {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    border-bottom: 1px solid #eee;
}

.quantity-price div:last-child {
    border-bottom: none;
    font-weight: bold;
    color: #2c3e50;
}

.total-info {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    margin-left: 20px;
}

.total-info p {
    margin: 10px 0;
    font-size: 16px;
}

.total-info .final-value {
    font-size: 20px;
    color: #2c3e50;
    font-weight: bold;
    border-top: 2px solid #dee2e6;
    padding-top: 10px;
    margin-top: 15px;
}

.payment-total {
    margin: 30px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 5px;
    display: flex;
    justify-content: space-between;
}

.payment-info, .total-info {
    flex: 1;
}

.payment-info p, .total-info p {
    margin: 10px 0;
}

.final-value {
    font-size: 18px;
    color: #2c3e50;
}

.signatures {
    display: flex;
    justify-content: space-between;
    margin-top: 50px;
    gap: 50px;
}

.signature-line {
    flex: 1;
    text-align: center;
}

.signature-line hr {
    border: none;
    border-top: 1px solid #333;
    margin-bottom: 5px;
}

.signature-line p {
    margin: 5px 0;
    font-size: 14px;
    color: #666;
}

/* Seção removida - estilos movidos para Easy_Calc/src/components/orcamento/orcamento.css */

/* Estilos para o modal de perfis */
.perfis-container {
    max-height: 80vh;
    overflow-y: auto;
    padding: 20px;
}

.perfil-item {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 10px;
    align-items: center;
    margin-bottom: 15px;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 5px;
}

.perfil-item label {
    font-weight: 500;
    color: #2c3e50;
}

.perfil-item input[type="number"] {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 100%;
    text-align: right;
    font-size: 14px;
}

.perfil-item input[type="number"]:focus {
    border-color: #2980b9;
    outline: none;
    box-shadow: 0 0 0 2px rgba(41, 128, 185, 0.1);
}

/* Estilos específicos para os campos de vidro */
.perfil-item input[id^="valor"] {
    text-align: right;
    padding-right: 10px;
    position: relative;
    background-color: white;
}

.perfil-item input[id^="valor"]::-webkit-inner-spin-button,
.perfil-item input[id^="valor"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.perfil-item input[id^="valor"]::placeholder {
    color: #999;
    font-size: 12px;
}

.perfil-item .valor-metro {
    color: #666;
    font-size: 0.9em;
}

.perfis-container h3 {
    color: #2c3e50;
    margin-top: 20px;
    margin-bottom: 15px;
    padding-bottom: 5px;
    border-bottom: 2px solid #e9ecef;
}

.vidros-container {
    max-height: 500px;
    overflow-y: auto;
    padding: 20px;
}

.vidro-item {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 10px;
    align-items: center;
    margin-bottom: 15px;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 5px;
}

.vidro-item label {
    font-weight: 500;
    color: #2c3e50;
}

.vidro-item input[type="number"] {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 100%;
}

.vidro-item .valor-metro {
    color: #2c3e50;
    font-size: 0.9em;
}

.margin-input {
    display: flex;
    align-items: center;
    gap: 5px;
}

.margin-input input {
    width: 80px;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 12px;
    text-align: right;
}

.margin-input span {
    color: #666;
    font-size: 12px;
}

.margin-section {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.margin-item {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 10px;
    align-items: center;
}

.margin-item label {
    font-weight: 500;
    color: #2c3e50;
}

/* Estilos do Plano de Corte */
.plano-corte-container {
    padding: 20px;
    background: rgb(255, 255, 255);
    max-width: 1200px;
    margin: 0 auto;
}

.plano-corte-container h2 {
    color: #333;
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #333;
    text-align: center;
}

.perfil-section {
    margin-bottom: 30px;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
}

.perfil-section h3 {
    color: #2c3e50;
    margin: 0 0 15px 0;
    font-size: 18px;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 10px;
}

.barras-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.barra {
    background: white;
    border-radius: 5px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.barra-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 14px;
    color: #666;
}

.barra-visual {
    height: 50px;
    background: #e9ecef;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    position: relative;
    margin: 25px 30px 15px 30px;
}

.peca {
    position: absolute;
    height: 100%;
    background: #4CAF50;
    border-right: 1px solid #388E3C;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    overflow: hidden;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.peca:hover {
    background: #388E3C;
    z-index: 2;
}

.peca span {
    padding: 0 5px;
    font-weight: bold;
}

.sobra {
    position: absolute;
    height: 100%;
    background: #f8d7da;
    border-left: 1px solid #dc3545;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #721c24;
    font-size: 12px;
    overflow: hidden;
    white-space: nowrap;
}

.sobra span {
    padding: 0 5px;
    font-weight: bold;
}

.barra-visual::before {
    content: '0';
    position: absolute;
    left: -25px;
    bottom: -20px;
    font-size: 12px;
    color: #666;
}

.barra-visual::after {
    content: '6000mm';
    position: absolute;
    right: -35px;
    bottom: -20px;
    font-size: 12px;
    color: #666;
}

/* Régua de medidas */
.barra-visual::before,
.barra-visual::after {
    font-family: monospace;
}

.barra-visual::before {
    content: '0';
    left: -25px;
}

.barra-visual::after {
    content: '6000';
    right: -35px;
}

/* Modal do Plano de Corte */
#planoCorteModal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    overflow: hidden;
}

#planoCorteModal .modal-content {
    background-color: #ffffff;
    margin: 0 auto;
    width: 95%;
    max-width: 1600px;
    height: 95vh;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    position: relative;
    top: 2.5vh;
    animation: fadeIn 0.3s ease;
}

#planoCorteModal .modal-header {
    background: linear-gradient(135deg, #3498db, #2980b9);
    padding: 15px 20px;
    color: white;
    border-bottom: 1px solid #e9ecef;
    position: relative;
    border-radius: 8px 8px 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

#planoCorteModal .modal-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

#planoCorteModal .modal-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background-color: #f8f9fa;
    max-height: calc(95vh - 70px);
}

#closePlanoCorteModal {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    padding: 0;
    line-height: 1;
}

#closePlanoCorteModal:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Ajustes responsivos */
@media screen and (min-width: 1920px) {
    #planoCorteModal .modal-content {
        width: 90%;
        max-width: 1800px;
        height: 90vh;
        top: 5vh;
    }
    
    #planoCorteModal .modal-body {
        max-height: calc(90vh - 70px);
    }
}

@media screen and (max-width: 1366px) {
    #planoCorteModal .modal-content {
        width: 98%;
        height: 98vh;
        top: 1vh;
    }
    
    #planoCorteModal .modal-body {
        max-height: calc(98vh - 70px);
    }
}

/* Ajustes para impressão */
@media print {
    #planoCorteModal {
        position: absolute;
        height: auto;
    }

    #planoCorteModal .modal-content {
        margin: 0;
        padding: 0;
        width: 100%;
        box-shadow: none;
        border: none;
    }

    #closePlanoCorteModal {
        display: none;
    }

    .plano-item {
        break-inside: avoid;
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }

    .secao-perfis {
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .plano-corte-actions, .lista-compras-actions, .btn-reset-barras, .btn-reset-acessorios {
        display: none;
    }

    .print-only-header {
        display: block;
        text-align: center;
        margin-bottom: 20px;
        padding: 20px 0;
        border-bottom: 1px solid #ddd;
    }

    .print-only-header h1 {
        font-size: 24px;
        margin: 0 0 10px 0;
    }

    .print-only-header p {
        font-size: 14px;
        color: #666;
        margin: 0;
    }
    
    /* Otimizações para PDFs com muitos itens */
    .plano-corte-container {
        display: block;
        max-height: none !important;
        overflow: visible !important;
    }
    
    /* Espaçamento entre itens para melhor legibilidade */
    .plano-item {
        margin-bottom: 20px;
        page-break-after: auto;
    }
    
    /* Forçar quebra de página depois de um número específico de itens */
    .plano-item:nth-child(5n) {
        page-break-after: always;
    }
    
    /* Ajustes para tabelas */
    .tabela-perfis {
        width: 100%;
        page-break-inside: avoid;
    }
    
    /* Evitar que imagens fiquem muito grandes */
    img {
        max-width: 100% !important;
        max-height: 300px !important;
    }
    
    /* Garantir que elementos grandes não fiquem cortados */
    * {
        overflow: visible !important;
    }
}

/* Estilos para os itens do plano de corte */
.plano-item {
    background: white;
    border-radius: 8px;
    margin-bottom: 30px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.2s;
}

.plano-item:hover {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.plano-item h3 {
    color: #2c3e50;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 2px solid #3498db;
    font-size: 18px;
}

.plano-item p {
    color: #7f8c8d;
    margin-bottom: 20px;
    font-size: 14px;
}

/* Estilos para a tabela de perfis */
.secao-perfis {
    margin-bottom: 25px;
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
}

.secao-perfis h4 {
    background: #ecf0f1;
    color: #34495e;
    margin: 0;
    padding: 12px 15px;
    font-size: 16px;
    border-left: 4px solid;
    font-weight: 600;
}

.secao-perfis h4:before {
    content: '■ ';
    font-size: 14px;
    margin-right: 5px;
}

/* Cores distintas para cada tipo de seção */
.secao-perfis:nth-of-type(1) h4 { border-color: #3498db; }
.secao-perfis:nth-of-type(2) h4 { border-color: #2ecc71; }
.secao-perfis:nth-of-type(3) h4 { border-color: #f39c12; }
.secao-perfis:nth-of-type(4) h4 { border-color: #9b59b6; }
.secao-perfis:nth-of-type(5) h4 { border-color: #e74c3c; }
.secao-perfis:nth-of-type(6) h4 { border-color: #1abc9c; }

.tabela-perfis {
    width: 100%;
    border-collapse: collapse;
}

.tabela-perfis th {
    background-color: #f5f5f5;
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    color: #34495e;
    border-bottom: 2px solid #ddd;
}

.tabela-perfis td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    font-size: 14px;
    color: #555;
    vertical-align: middle;
}

.tabela-perfis tr:last-child td {
    border-bottom: none;
}

.tabela-perfis tr:hover td {
    background-color: #f9f9f9;
}

.perfil-preview {
    width: 60px;
    height: 40px;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 2px;
    background: white;
    object-fit: contain;
    display: block;
}

.perfil-preview:hover {
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    z-index: 5;
    position: relative;
}

/* Estilos para a mensagem de não implementado */
.plano-nao-implementado {
    background-color: #fff3cd;
    color: #856404;
    padding: 20px;
    border-radius: 8px;
    border-left: 5px solid #ffc107;
    margin: 15px 0;
    font-weight: 500;
    text-align: center;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.plano-nao-implementado:before {
    content: '⚠️';
    font-size: 20px;
    margin-right: 10px;
}

/* Botão de impressão para o plano */
.btn-print-plano {
    display: block;
    margin: 20px auto 0;
    padding: 10px 20px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-print-plano:hover {
    background: #2980b9;
}

/* Estilo para impressão */
@media print {
    body * {
        visibility: hidden;
    }
    
    #planoCorteModal,
    #planoCorteModal * {
        visibility: visible;
    }
    
    #planoCorteModal {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        height: auto;
        margin: 0;
        padding: 0;
        background: white;
    }
    
    #planoCorteModal .modal-content {
        margin: 0;
        padding: 0;
        width: 100%;
        box-shadow: none;
        border: none;
    }
    
    #closePlanoCorteModal, .btn-print-plano {
        display: none;
    }
    
    .plano-item {
        break-inside: avoid;
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }

    .secao-perfis {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}


/* Estilos para a tabela de valores detalhados */
.table-valores {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    font-size: 14px;
}

.table-valores thead th {
    background-color: #f5f5f5;
    font-weight: bold;
    text-align: left;
    padding: 10px;
    border-bottom: 2px solid #ddd;
}

.table-valores tbody td {
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

.table-valores tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

.table-valores tbody tr:hover {
    background-color: #f1f1f1;
}

.table-valores .total-row {
    background-color: #eaeaea;
    font-weight: bold;
}

.table-valores .total-row td {
    border-top: 2px solid #ddd;
    border-bottom: none;
}

.table-responsive {
    overflow-x: auto;
    max-width: 100%;
}

.valores-detalhados {
    padding: 10px;
}

/* Estilos para a tabela de custos e lucros */
.custo-lucro-tabela {
    margin-top: 30px;
    padding: 15px;
    background-color: #f5f5f5;
    border-radius: 5px;
    border: 1px solid #ddd;
}

.custo-lucro-tabela h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
    text-align: center;
}

.custo-lucro-tabela table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 0;
}

.custo-lucro-tabela th,
.custo-lucro-tabela td {
    padding: 8px;
    text-align: center;
    border: 1px solid #ddd;
}

.custo-lucro-tabela th {
    background-color: #e9e9e9;
    font-weight: bold;
}

.custo-lucro-tabela tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

.custo-lucro-tabela tfoot {
    font-weight: bold;
    background-color: #e9e9e9;
}

/* Garantir que elementos com a classe no-print não sejam exibidos apenas na impressão */
@media print {
    .no-print {
        display: none !important;
    }
}

/* Estilos para impressão */
@media print {
    .no-print {
        display: none !important;
    }
    
    body, html {
        background-color: white !important;
        color: black !important;
    }
    
    table, th, td {
        border-color: #000 !important;
    }
    
    /* Seção removida - estilos movidos para Easy_Calc/src/components/orcamento/orcamento.css */
    
    /* Garantir que não haja quebras ruins de página */
    .product-item {
        page-break-inside: avoid;
    }
    
    /* Forçar background branco para todos os elementos */
    * {
        background-color: transparent !important;
        box-shadow: none !important;
    }
}

/* Estilos específicos para exportação */
.export-background {
    background-color: white !important;
}

/* Estilos para a tabela de custo e lucro */

/* Menu Lateral */
.menu-lateral {
    position: fixed;
    left: -250px;
    top: 40px;
    width: 250px;
    height: calc(100% - 40px);
    background-color: #333;
    color: white;
    transition: left 0.3s ease;
    z-index: 1000;
    overflow-y: auto;
}

.menu-lateral.active {
    left: 0;
}

.menu-header {
    padding: 20px;
    background-color: #3498db;
    color: white;
}

.menu-header h2 {
    margin: 0;
    font-size: 18px;
}

.menu-items {
    padding: 20px;
}

.menu-item {
    display: block;
    padding: 10px;
    color: white !important;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.2s;
    border-bottom: 1px solid #444;
}

.menu-item:hover {
    background-color: #3498db;
}

/* Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
}

.overlay.active {
    display: block;
}

/* Estilos para a seção de dados do cliente */
.client-data-section {
    background-color: white;
    padding: 12px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: 12px;
    border: 1px solid #e0e0e0;
}

.client-fields {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.input-group label {
    font-size: 11px;
    color: #555;
    font-weight: 500;
}

.client-input {
    padding: 6px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 12px;
    width: 100%;
    background-color: #f9f9f9;
    transition: all 0.2s ease;
}

.client-input:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.1);
    background-color: white;
}

.client-name-container {
    display: flex;
    gap: 8px;
    align-items: center;
}

.client-name-container .client-input {
    flex: 1;
}

.btn-select-client {
    background: #667eea;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
}

.btn-select-client:hover {
    background: #5a67d8;
    transform: translateY(-1px);
}

.btn-select-client i {
    font-size: 14px;
}

/* Modal de Seleção de Cliente */
#selecaoClienteModal .modal-content {
    max-width: 600px;
    width: 90%;
}

.lista-clientes-selecao {
    max-height: 400px;
    overflow-y: auto;
    margin-top: 15px;
}

.cliente-selecao-item {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cliente-selecao-item:hover {
    border-color: #667eea;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.cliente-selecao-item:last-child {
    margin-bottom: 0;
}

.cliente-selecao-nome {
    font-weight: 600;
    color: #495057;
    font-size: 16px;
    margin-bottom: 5px;
}

.cliente-selecao-info {
    font-size: 14px;
    color: #6c757d;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.cliente-selecao-info span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Estilos para a tabela de itens */
.items-list {
    margin-bottom: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.items-list table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.items-list th {
    background-color: #f5f5f5;
    color: #333;
    font-weight: 600;
    padding: 8px 10px;
    text-align: left;
    border-bottom: 2px solid #e0e0e0;
}

.items-list td {
    padding: 8px 10px;
    border-bottom: 1px solid #e0e0e0;
    color: #444;
}

.items-list tr:hover {
    background-color: #f9f9f9;
}

.items-list tr:last-child td {
    border-bottom: none;
}

.esquadria-types-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 300px;
    overflow-y: auto;
}

.esquadria-types-list li {
    padding: 8px 12px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background-color 0.2s;
}

.esquadria-types-list li:last-child {
    border-bottom: none;
}

.esquadria-types-list li:hover {
    background-color: #f5f5f5;
}

#esquadriaTypeModal .modal-content {
    max-width: 400px;
    margin: 15% auto;
}

#esquadriaTypeModal .modal-header {
    background-color: #f8f9fa;
    padding: 15px;
    border-bottom: 1px solid #dee2e6;
    border-radius: 8px 8px 0 0;
}

#esquadriaTypeModal .modal-body {
    padding: 0;
    max-height: 300px;
    overflow-y: auto;
}

.preview-container {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 15px 0;
}

.window-preview {
    flex: 1;
    display: flex;
    justify-content: center;
}

.preview-image {
    max-width: 100%;
    height: auto;
}

/* Garantir que todas as referências ao "mm" não afetem o campo de quantidade */
.input-container.no-unit::after {
    content: none !important;
    display: none !important;
}

.input-container.no-unit .unit {
    display: none !important;
}

/* Aumento a prioridade do estilo com !important */
.quantity-input {
    width: 100px !important;
    padding: 6px 8px !important;
    padding-right: 8px !important; /* Sem espaço para a unidade */
    border: 1px solid #ccc !important;
    border-radius: 4px !important;
    font-size: 12px !important;
    text-align: right !important;
}

/* Estilos para campo de altura quando Box Blindex padrão está selecionado */
.dimension-input[readonly] {
    background-color: #f0f0f0 !important;
    cursor: not-allowed !important;
    color: #666 !important;
    border-color: #ddd !important;
}

.dimension-input[readonly]:focus {
    box-shadow: none !important;
    border-color: #ddd !important;
}

/* Notification styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 20px;
    border-radius: 4px;
    color: white;
    font-size: 14px;
    z-index: 10000;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    max-width: 300px;
    text-align: center;
}

.notification.show {
    opacity: 1;
    transform: translateY(0);
}

.notification.success {
    background-color: #2ecc71;
}

.notification.error {
    background-color: #e74c3c;
}

.notification.warning {
    background-color: #f39c12;
}

.notification.info {
    background-color: #3498db;
}

/* Estilos para o Modal de Orçamentos */
/* Seção removida - estilos movidos para Easy_Calc/src/components/orcamento/orcamento.css */

/* Mensagem de dados vazios */
.no-data {
    text-align: center;
    padding: 40px 20px;
    color: #7f8c8d;
    font-style: italic;
}

/* Detalhes do orçamento */
/* Estilos de #detalhesOrcamento movidos para:
   src/components/orcamento/orcamentos-modal.css */

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

/* Seção removida - estilos movidos para Easy_Calc/src/components/orcamento/orcamento.css */

/* Estilos das tabelas de itens e botões de ação movidos para:
   src/components/orcamento/orcamentos-modal.css */

/* Estilos para o Modal de Gerenciamento de Valores */
/* Layout principal do modal */
.valores-modal {
    max-width: 100%;
    width: 100%;
    height: 100vh;
    max-height: 100vh;
    margin: 0;
    border-radius: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal {
    padding: 0 !important;
}

.valores-modal .modal-header {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    padding: 15px 20px;
    border-radius: 5px 5px 0 0;
}

.valores-modal .modal-header .header-icon {
    font-size: 24px;
    margin-right: 15px;
}

.valores-modal .modal-header h2 {
    flex: 1;
    margin: 0;
    font-size: 20px;
}

.valores-modal .modal-header .close-modal {
    font-size: 24px;
    cursor: pointer;
    transition: color 0.2s;
}

.valores-modal .modal-header .close-modal:hover {
    color: #f1c40f;
}

/* Barra de pesquisa */
.valores-search-bar {
    padding: 15px 20px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.valores-search-bar .search-container {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
}

.valores-search-bar input {
    width: 100%;
    padding: 10px 15px 10px 40px;
    border: 1px solid #ced4da;
    border-radius: 25px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.valores-search-bar input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.valores-search-bar .search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    font-size: 16px;
}

/* Conteúdo principal */
.valores-content {
    flex: 1;
    display: flex;
    overflow: hidden;
}

/* Sistema de abas */
.tabs-container {
    flex: 7;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-right: 1px solid #e9ecef;
}

.tabs {
    display: flex;
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.tab-btn {
    padding: 12px 20px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    font-size: 14px;
    font-weight: 500;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tab-btn i {
    font-size: 16px;
}

.tab-btn:hover {
    color: #3498db;
    background-color: rgba(52, 152, 219, 0.05);
}

.tab-btn.active {
    color: #3498db;
    border-bottom-color: #3498db;
    background-color: rgba(52, 152, 219, 0.05);
}

.tab-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.3s ease;
}

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

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

/* Seções colapsáveis */
.section-header {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background-color: #f8f9fa;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-bottom: 15px;
}

.section-header:hover {
    background-color: #e9ecef;
}

.section-header h3 {
    margin: 0;
    font-size: 16px;
    color: #2c3e50;
}

.section-header i {
    margin-right: 10px;
    transition: transform 0.3s ease;
}

.section-header.active i {
    transform: rotate(-180deg);
}

.section-content {
    padding: 0 15px 15px;
    animation: slideDown 0.3s ease;
    max-height: 1000px;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.section-content.collapsed {
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    overflow: hidden;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Configurações Gerais */
.config-section {
    background-color: white;
    padding: 0;
    margin-bottom: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.form-group {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.form-group label {
    flex: 0 0 250px;
    color: #2c3e50;
    font-weight: 500;
}

.config-input {
    width: 80px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: right;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.config-input:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
    outline: none;
}

/* Visualização de range */
.input-range-visual {
    flex: 1;
    margin-left: 15px;
    padding: 0 10px;
}

.range-track {
    height: 8px;
    background-color: #e9ecef;
    border-radius: 4px;
    position: relative;
}

.range-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    border-radius: 4px;
    background: linear-gradient(to right, #3498db, #2ecc71);
    transition: width 0.3s ease;
}

/* Seções de Perfis, Acessórios e Vidros */
.perfis-section, .acessorios-section, .vidros-section {
    margin-bottom: 25px;
}

.perfis-grid, .acessorios-grid, .vidros-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 20px;
    margin-bottom: 15px;
}

.perfil-item, .vidro-item {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 5px;
    transition: background-color 0.2s, transform 0.2s;
}

.perfil-item:hover, .vidro-item:hover {
    background-color: #f8f9fa;
    transform: translateY(-2px);
}

.perfil-item label, .vidro-item label {
    color: #2c3e50;
}

.perfil-item input[type="number"], .vidro-item input[type="number"] {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: right;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.perfil-item input[type="number"]:focus, .vidro-item input[type="number"]:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
    outline: none;
}

.valor-metro, .valor-atual {
    color: #7f8c8d;
    font-size: 14px;
    transition: color 0.2s;
}

.perfil-item.changed .valor-metro, 
.vidro-item.changed .valor-atual,
.perfil-item.changed label,
.vidro-item.changed label {
    color: #3498db;
    font-weight: 500;
}

.perfil-item.highlight, .vidro-item.highlight {
    background-color: rgba(52, 152, 219, 0.1);
    border-left: 3px solid #3498db;
    animation: pulse 1s;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(52, 152, 219, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(52, 152, 219, 0); }
    100% { box-shadow: 0 0 0 0 rgba(52, 152, 219, 0); }
}

/* Painel de resumo */
.valores-summary {
    flex: 3;
    background-color: #f8f9fa;
    padding: 20px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.summary-header {
    margin-bottom: 20px;
}

.summary-header h3 {
    color: #2c3e50;
    font-size: 18px;
    margin: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #e9ecef;
}

.summary-content {
    margin-bottom: 30px;
}

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

.summary-item.total {
    font-weight: bold;
    margin-top: 10px;
    border-top: 2px solid #e9ecef;
    border-bottom: none;
}

.summary-label {
    color: #7f8c8d;
}

.summary-value {
    color: #2c3e50;
    font-weight: 500;
}

/* Seção de Previsualização */
.preview-section {
    background-color: white;
    border-radius: 5px;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    margin-top: auto;
}

.preview-section h4 {
    color: #2c3e50;
    margin: 0 0 15px 0;
    font-size: 16px;
    text-align: center;
}

.preview-window {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #e9ecef;
    padding-top: 15px;
}

.preview-details p {
    margin: 5px 0;
    color: #7f8c8d;
    font-size: 14px;
}

.preview-cost {
    text-align: right;
}

.cost-item {
    margin-bottom: 5px;
    font-size: 14px;
    color: #7f8c8d;
}

.cost-item:last-child {
    font-weight: bold;
    color: #2c3e50;
    font-size: 16px;
}

/* Rodapé do Modal */
.modal-footer {
    border-top: 1px solid #e9ecef;
    padding: 15px 20px;
    text-align: right;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.modal-footer button {
    padding: 10px 20px;
    border-radius: 4px;
    border: none;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.btn-secondary {
    background-color: #95a5a6;
    color: white;
}

.btn-secondary:hover {
    background-color: #7f8c8d;
}

/* Animações e estados */
.highlight-input {
    animation: highlightBorder 1s;
}

@keyframes highlightBorder {
    0% { border-color: #3498db; box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.4); }
    100% { border-color: #ddd; box-shadow: none; }
}

/* Estilos para itens filtrados */
.perfil-item.hidden, .vidro-item.hidden {
    display: none;
}

.no-results {
    padding: 20px;
    text-align: center;
    color: #7f8c8d;
    font-style: italic;
}

/* Notificações flutuantes */
.notification-float {
    position: fixed;
    top: 20px;
    right: 20px;
    max-width: 350px;
    min-width: 250px;
    background: white;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    overflow: hidden;
    transform: translateY(-20px);
    opacity: 0;
    transition: all 0.3s ease;
}

.notification-float.show {
    transform: translateY(0);
    opacity: 1;
}

.notification-float.hide {
    transform: translateY(-20px);
    opacity: 0;
}

.notification-content {
    display: flex;
    padding: 14px 16px;
    align-items: center;
}

.notification-icon {
    margin-right: 12px;
    display: flex;
    align-items: center;
}

.notification-message {
    flex: 1;
    font-size: 14px;
    color: #333;
}

.notification-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent;
    border: none;
    color: #999;
    font-size: 18px;
    cursor: pointer;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 50%;
}

.notification-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #666;
}

/* Estilos de cores para os tipos de notificação */
.notification-float.success {
    border-left: 4px solid #52c41a;
}
.notification-float.success .notification-icon {
    color: #52c41a;
}

.notification-float.error {
    border-left: 4px solid #f5222d;
}
.notification-float.error .notification-icon {
    color: #f5222d;
}

.notification-float.warning {
    border-left: 4px solid #faad14;
}

/* Estilos para área de demonstração de notificações */
.notification-demo {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 9000;
    max-width: 400px;
}

.notification-demo h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 16px;
    color: #333;
    text-align: center;
}

.demo-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.btn-demo {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    border: none;
    border-radius: 4px;
    color: white;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

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

.btn-demo i {
    margin-right: 6px;
}

.btn-demo:nth-child(1) {
    background-color: #52c41a;
}
.btn-demo:nth-child(1):hover {
    background-color: #389e0d;
}

.btn-demo:nth-child(2) {
    background-color: #f5222d;
}
.btn-demo:nth-child(2):hover {
    background-color: #cf1322;
}

.btn-demo:nth-child(3) {
    background-color: #faad14;
}
.btn-demo:nth-child(3):hover {
    background-color: #d48806;
}

.btn-demo:nth-child(4) {
    background-color: #1890ff;
}
.btn-demo:nth-child(4):hover {
    background-color: #096dd9;
}

/* Notification Styles */
.notificacao-flutuante {
    position: fixed;
    top: 20px;
    right: 20px;
    min-width: 280px;
    max-width: 350px;
    padding: 16px;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    z-index: 9999;
    animation: slide-in 0.3s ease-out forwards;
    font-size: 14px;
    font-weight: 500;
}

.notificacao-flutuante.hiding {
    animation: slide-out 0.3s ease-out forwards;
}

.notificacao-flutuante .icone {
    margin-right: 12px;
    font-size: 18px;
}

.notificacao-flutuante .fechar {
    margin-left: auto;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s;
    font-size: 16px;
}

.notificacao-flutuante .fechar:hover {
    opacity: 1;
}

.notificacao-flutuante.info {
    background-color: #e6f7ff;
    border-left: 4px solid #1890ff;
    color: #0050b3;
}

.notificacao-flutuante.success {
    background-color: #f6ffed;
    border-left: 4px solid #52c41a;
    color: #135200;
}

.notificacao-flutuante.error {
    background-color: #fff1f0;
    border-left: 4px solid #f5222d;
    color: #a8071a;
}

.notificacao-flutuante.warning {
    background-color: #fffbe6;
    border-left: 4px solid #faad14;
    color: #613400;
}

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

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

/* Estilo para o botão de atualização no gerenciador de valores */
.btn-atualizar {
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    width: 36px;
    height: 36px;
    margin-left: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-atualizar:hover {
    background-color: #2980b9;
    transform: rotate(180deg);
}

.btn-atualizar i {
    font-size: 16px;
}

.valores-search-bar {
    display: flex;
    padding: 10px 15px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #ddd;
    align-items: center;
}

.btn-atualizar.updating {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Corrigir a exibição do grid de perfis */
.section-content {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 10px;
    margin-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.section-content.collapsed {
    max-height: 0;
    overflow: hidden;
    padding: 0;
    margin-bottom: 0;
    border-bottom: none;
}

.perfis-grid, .acessorios-grid, .vidros-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 20px;
    margin-bottom: 15px;
}

@media (max-width: 768px) {
    .perfis-grid, .acessorios-grid, .vidros-grid {
        grid-template-columns: 1fr;
    }
}

/* Destacar seções colapsáveis ao passar o mouse */
.section-header:hover {
    background-color: rgba(52, 152, 219, 0.05);
}

/* Adicionar uma indicação visual de que há conteúdo para rolar */
.section-content::-webkit-scrollbar {
    width: 8px;
}

.section-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.section-content::-webkit-scrollbar-thumb {
    background: #bbb;
    border-radius: 4px;
}

.section-content::-webkit-scrollbar-thumb:hover {
    background: #3498db;
}

/* Adicionar estilo para tornar evidente que há mais conteúdo */
.section-content::after {
    content: '';
    display: block;
    height: 2px;
    background: linear-gradient(90deg, transparent, #3498db, transparent);
    margin-top: 10px;
    opacity: 0.5;
}

.section-content.collapsed::after {
    display: none;
}

/* Animação para destacar seção expandida temporária */
@keyframes highlight-section {
    0% { background-color: #f8f9fa; }
    50% { background-color: rgba(52, 152, 219, 0.1); }
    100% { background-color: #f8f9fa; }
}

.highlight-section {
    animation: highlight-section 1.5s ease;
}

/* Melhorar a diferenciação visual entre perfis e seções */
.perfil-item {
    padding: 12px;
    margin-bottom: 6px;
    background-color: white;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    border-left: 3px solid transparent;
    transition: all 0.2s ease-in-out;
}

.perfil-item:hover {
    border-left-color: #3498db;
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.perfil-item input[type="number"] {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
}

.section-header {
    position: sticky;
    top: 0;
    background-color: white;
    z-index: 10;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: all 0.2s ease;
}

/* Indicador visual para scroll */
.section-content.has-more::after {
    content: '';
    display: block;
    height: 3px;
    background: linear-gradient(to right, transparent, #3498db, transparent);
    margin-top: 10px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 0.2; }
    50% { opacity: 0.6; }
    100% { opacity: 0.2; }
}

/* Instruções de rolagem para seções com muitos itens */
.scroll-instruction {
    background-color: rgba(52, 152, 219, 0.1);
    border-left: 3px solid #3498db;
    padding: 8px 12px;
    margin-bottom: 15px;
    border-radius: 4px;
    font-size: 13px;
    color: #2980b9;
    display: flex;
    align-items: center;
    animation: pulse-light 2s infinite;
}

.scroll-instruction i {
    margin-right: 10px;
    font-size: 16px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

@keyframes pulse-light {
    0%, 100% { background-color: rgba(52, 152, 219, 0.05); }
    50% { background-color: rgba(52, 152, 219, 0.15); }
}

/* Adaptar a altura da seção de conteúdo com base no tamanho da tela */
@media screen and (min-height: 900px) {
    .section-content {
        max-height: 600px;
    }
}

@media screen and (max-height: 700px) {
    .section-content {
        max-height: 300px;
    }
}

/* Mensagens informativas */
.empty-message, .error-message, .info-message {
    padding: 10px;
    margin: 10px 0;
    border-radius: 5px;
    text-align: center;
}

.empty-message {
    color: #7f8c8d;
    background-color: #f8f9fa;
    border-left: 3px solid #bdc3c7;
}

.error-message {
    color: #c0392b;
    background-color: #fadbd8;
    border-left: 3px solid #e74c3c;
}

.info-message {
    color: #2980b9;
    background-color: #eaf2f8;
    border-left: 3px solid #3498db;
}

/* Destacar itens alterados */
.perfil-item.changed, .vidro-item.changed {
    border-left-color: #2ecc71;
}

.perfil-item.highlight, .vidro-item.highlight {
    animation: highlight-item 1s ease;
}

@keyframes highlight-item {
    0% { background-color: white; }
    50% { background-color: rgba(46, 204, 113, 0.1); }
    100% { background-color: white; }
}

/* Estilos específicos para categorias de vidros */
.vidros-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.vidro-item {
    display: grid;
    grid-template-columns: 2fr 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 12px;
    border-radius: 5px;
    background-color: #f8f9fa;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.vidro-item:hover {
    background-color: #e9ecef;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.vidro-item label {
    font-weight: 500;
    color: #2c3e50;
}

.vidro-item input[type="number"] {
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: right;
    font-size: 14px;
    transition: all 0.3s ease;
}

.vidro-item input[type="number"]:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
    outline: none;
}

.vidro-item .valor-info {
    font-size: 13px;
    color: #7f8c8d;
    text-align: right;
}

.vidro-item.changed {
    border-left-color: #3498db;
    background-color: rgba(52, 152, 219, 0.05);
}

/* Estilos para as categorias de vidros */
#vidrosList .section-header {
    margin-bottom: 5px;
    cursor: pointer;
    padding: 10px 15px;
    border-radius: 5px;
    background-color: #f1f3f5;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

#vidrosList .section-header h3 {
    margin: 0;
    font-size: 16px;
    display: flex;
    align-items: center;
}

#vidrosList .section-header h3 i {
    margin-right: 10px;
    transition: transform 0.3s ease;
}

#vidrosList .section-header.active h3 i {
    transform: rotate(180deg);
}

#vidrosList .section-content {
    padding: 10px 5px;
    max-height: 500px;
    overflow-y: auto;
    transition: all 0.3s ease;
}

#vidrosList .section-content.collapsed {
    max-height: 0;
    padding: 0;
    overflow: hidden;
}

/* Estilos para o Modal de Itens Adicionais */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 0 !important;
}

/* Estilos específicos para o modal de itens adicionais */
#itensAdicionaisModal .modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 0;
    border: 1px solid #888;
    width: 800px;
    min-height: 600px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

#itensAdicionaisModal .modal-body {
    flex: 1;
    padding: 20px;
    max-height: 500px;
    overflow-y: auto;
}

.item-adicional {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background-color: #f8f9fa;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.item-adicional:hover {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.btn-delete-item {
    background-color: transparent;
    border: none;
    color: #dc3545;
    padding: 4px 8px;
    cursor: pointer;
    font-size: 16px;
    opacity: 0.7;
    transition: all 0.2s ease;
    margin-left: 10px;
}

.btn-delete-item:hover {
    opacity: 1;
    transform: scale(1.1);
}

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

/* Estilos específicos para o modal de gerenciamento de valores */
.valores-modal {
    max-width: 100% !important;
    width: 100% !important;
    height: 100vh !important;
    max-height: 100vh !important;
    margin: 0 !important;
    border-radius: 0 !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
}

/* Seção removida - estilos movidos para Easy_Calc/src/components/orcamento/orcamento.css */

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 0;
    border: 1px solid #888;
    width: 400px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.modal-header {
    padding: 15px 20px;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f8f9fa;
    border-radius: 8px 8px 0 0;
}

.modal-header h2 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.modal-body {
    padding: 20px;
    max-height: 600px;
    overflow-y: auto;
}

.modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #ddd;
    text-align: right;
    background-color: #f8f9fa;
    border-radius: 0 0 8px 8px;
}

.close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #333;
}

/* Estilos para a lista de itens adicionais */
.itens-adicionais-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.item-adicional-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 15px;
}

.btn-add-item {
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-add-item:hover {
    background-color: #45a049;
}

.item-adicional {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background-color: #f8f9fa;
}

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

.item-info input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.item-info label {
    font-size: 14px;
    color: #333;
    cursor: pointer;
}

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

.item-valor input[type="number"] {
    width: 100px;
    padding: 6px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.item-valor input[type="number"]:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0,123,255,0.25);
}

/* Estilos para os botões */
.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

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

.btn-primary:hover {
    background-color: #0056b3;
}

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

.btn-secondary:hover {
    background-color: #545b62;
}

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

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

.action-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    justify-content: flex-end;
}

.item-info label[contenteditable="true"] {
    padding: 2px 5px;
    border: 1px solid transparent;
    border-radius: 4px;
    min-width: 100px;
    cursor: text;
    transition: all 0.3s ease;
}

.item-info label[contenteditable="true"]:hover {
    background-color: #f8f9fa;
    border-color: #ddd;
}

.item-info label[contenteditable="true"]:focus {
    outline: none;
    background-color: #fff;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0,123,255,0.25);
}

/* Estilos para a seção de Gerenciamento de Usuários */
.usuarios-list-container {
    width: 100%;
    max-height: 400px;
    overflow-y: auto;
    margin-top: 20px;
}

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

.data-table th,
.data-table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.data-table th {
    background-color: #f5f5f5;
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 1;
}

.data-table tr:hover {
    background-color: rgba(52, 152, 219, 0.1);
}

.actions-cell {
    display: flex;
    gap: 5px;
    justify-content: flex-start;
}

.btn-icon {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    border: none;
    background-color: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.btn-edit {
    color: #3498db;
}

.btn-delete {
    color: #e74c3c;
}

.btn-block-temp {
    color: #f39c12;
}

.btn-block {
    color: #e74c3c;
}

.btn-unblock {
    color: #2ecc71;
}

.btn-icon:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

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

.status-active {
    background-color: rgba(46, 204, 113, 0.2);
    color: #27ae60;
}

.status-blocked {
    background-color: rgba(231, 76, 60, 0.2);
    color: #c0392b;
}

.status-temp-blocked {
    background-color: rgba(243, 156, 18, 0.2);
    color: #d35400;
}

.text-success {
    color: #2ecc71;
}

.text-danger {
    color: #e74c3c;
}

.text-warning {
    color: #f39c12;
}

.modal-small {
    max-width: 500px;
}

.modal-large {
    max-width: 800px;
    width: 80%;
}

/* =================== MODAL CADASTRO CLIENTES FULL SCREEN =================== */
#cadastroClientesModal {
    max-width: 100% !important;
    width: 100% !important;
    height: 100vh !important;
    max-height: 100vh !important;
    margin: 0 !important;
    border-radius: 0 !important;
    overflow: hidden !important;
}

#cadastroClientesModal .modal-content {
    height: 100vh;
    border-radius: 0;
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    background-color: #f8f9fa;
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
}

#cadastroClientesModal .modal-header {
    color: white;
    padding: 15px 25px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    border-radius: 0 !important;
}

#cadastroClientesModal .modal-header .header-icon {
    font-size: 24px;
    margin-right: 15px;
    color: #f1c40f;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

#cadastroClientesModal .modal-header h2 {
    flex: 1;
    margin: 0;
    font-size: 22px;
    color: white;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

#cadastroClientesModal .modal-header .close-modal {
    font-size: 24px;
    cursor: pointer;
    color: white;
    opacity: 0.8;
    transition: all 0.2s;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255,255,255,0.1);
    border-radius: 50%;
}

#cadastroClientesModal .modal-header .close-modal:hover {
    opacity: 1;
    color: #f1c40f;
    background-color: rgba(255,255,255,0.2);
    transform: rotate(90deg);
}

#cadastroClientesModal .modal-body {
    padding: 0;
    overflow-y: auto;
    background-color: #f8f9fa;
    height: calc(100vh - 70px);
}

/* Garantir que o SweetAlert apareça dentro do modal de cadastro de clientes */
#cadastroClientesModal .swal2-container {
    position: absolute !important;
    z-index: 1001 !important;
}

#cadastroClientesModal .swal2-popup {
    position: relative !important;
    z-index: 1002 !important;
}

/* Garantir que o backdrop do SweetAlert apareça dentro do modal de cadastro */
#cadastroClientesModal .swal2-backdrop-show {
    background-color: rgba(0, 0, 0, 0.4) !important;
}

.password-input-group {
    position: relative;
    display: flex;
    width: 100%;
}

.password-input-group input {
    flex: 1;
    width: 100%;
    padding-right: 40px;
}

.password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #777;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.password-toggle:hover {
    color: #333;
}



@media screen and (min-width: 1920px) {
    .main-content {
        max-width: 100%;
        margin: 0 auto;
    }
}

@media screen and (max-width: 1366px) {
    .main-content {
        padding: 10px;
        gap: 10px;
    }
    
    .left-panel, .right-panel {
        padding: 10px;
    }
}

/* Configurações do modal de detalhamento do orçamento movidas para:
   src/components/orcamento/orcamentos-modal.css */

/* Remover overflow de outros elementos */
.container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.main-content {
    display: flex;
    gap: 20px;
    padding: 15px;
    flex: 1;
    overflow: hidden;
}

.left-panel, .right-panel {
    background-color: white;
    padding: 15px;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    overflow-y: auto;
}

/* Estilos específicos para o modal de login */
#loginModal {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 99999; /* Prioridade máxima */
    justify-content: center;
    align-items: center;
}

#loginModal .modal-content {
    background: white;
    padding: 20px;
    border-radius: 8px;
    width: 300px;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

#loginModal .modal-header {
    text-align: center;
    margin-bottom: 20px;
}

#loginModal .modal-header img {
    max-width: 150px;
    height: auto;
}

#loginModal .form-group {
    margin-bottom: 15px;
}

#loginModal input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

#loginModal button {
    width: 100%;
    padding: 10px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    margin-top: 10px;
}

#loginModal button:hover {
    background: #2980b9;
}

#loginModal .close {
    position: absolute;
    right: 10px;
    top: 10px;
    font-size: 20px;
    cursor: pointer;
    color: #666;
}

/* Garantir que o modal de login fique por cima de tudo */
body.login-active {
    overflow: hidden;
}

body.login-active .container {
    filter: blur(5px);
    pointer-events: none;
}

/* Indicador de rolagem */
#scrollIndicator {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px 15px;
    border-radius: 20px;
    font-size: 14px;
    z-index: 1000;
    display: none;
    animation: pulse 1.5s infinite;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

#scrollIndicator i {
    margin-right: 5px;
}

@keyframes pulse {
    0% { transform: translateY(0); }
    50% { transform: translateY(5px); }
    100% { transform: translateY(0); }
}

/* Estilos para barra de rolagem personalizada */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 8px;
    border: 1px solid #ddd;
}

::-webkit-scrollbar-thumb {
    background: #3498db;
    border-radius: 8px;
    border: 2px solid #f1f1f1;
}

::-webkit-scrollbar-thumb:hover {
    background: #2980b9;
}

/* Destacar o indicador de rolagem */
#scrollIndicator {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #3498db;
    color: white;
    padding: 12px 18px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: bold;
    z-index: 1000;
    display: none;
    animation: pulse 1.5s infinite;
    box-shadow: 0 0 15px rgba(52, 152, 219, 0.5);
    cursor: pointer;
}
/* Estilos importantes para o botão de atualização */
#btnCheckUpdates {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 9999 !important;
    animation: pulse-update 2s infinite !important;
}

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

/* Garantir que o contêiner também seja visível */
.left-header-controls {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Regras de alta especificidade para ocultar o botão de atualização */
#btnCheckUpdates {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  position: absolute !important;
  z-index: -1 !important;
  overflow: hidden !important;
  height: 0 !important;
  width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

/* Classe para mostrar o botão apenas quando necessário */
#btnCheckUpdates.update-available {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: relative !important;
  z-index: 9999 !important;
  overflow: visible !important;
  height: auto !important;
  width: auto !important;
  margin-left: 10px !important;
  padding: 6px 12px !important;
  border: 2px solid #e67e22 !important;
  min-width: 180px !important;
  animation: pulse-update 2s infinite !important;
}

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

/* Modal da Lista de Compras */
#listaComprasModal {
    display: none;
    position: fixed;
    z-index: 1100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    overflow: hidden;
}

#listaComprasModal .modal-content {
    background-color: #ffffff;
    margin: 0 auto;
    width: 90%;
    max-width: 1200px;
    height: 90vh;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    position: relative;
    top: 5vh;
    animation: fadeIn 0.3s ease;
}

#listaComprasModal .modal-header {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    padding: 15px 20px;
    color: white;
    border-bottom: 1px solid #e9ecef;
    position: relative;
    border-radius: 8px 8px 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

#listaComprasModal .modal-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

#listaComprasModal .modal-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background-color: #f8f9fa;
    max-height: calc(90vh - 70px);
}

#closeListaComprasModal {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    padding: 0;
    line-height: 1;
}

#closeListaComprasModal:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Ajustes responsivos */
@media screen and (min-width: 1920px) {
    #planoCorteModal .modal-content {
        width: 90%;
        max-width: 1800px;
        height: 90vh;
        top: 5vh;
    }
    
    #planoCorteModal .modal-body {
        max-height: calc(90vh - 70px);
    }
}

@media screen and (max-width: 1366px) {
    #planoCorteModal .modal-content {
        width: 98%;
        height: 98vh;
        top: 1vh;
    }
    
    #planoCorteModal .modal-body {
        max-height: calc(98vh - 70px);
    }
}

/* Botões de ação do plano de corte */
.plano-corte-actions, .lista-compras-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
    padding: 10px 0;
    border-top: 1px solid #e9ecef;
}

.btn-imprimir, .btn-lista-compras, .btn-salvar-pdf {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.2s;
}

.btn-imprimir:hover {
    background-color: #2980b9;
}

.btn-lista-compras {
    background-color: #27ae60;
}

.btn-lista-compras:hover {
    background-color: #219653;
}

.btn-salvar-pdf {
    background-color: #e74c3c;
}

.btn-salvar-pdf:hover {
    background-color: #c0392b;
}

.lista-compras-container {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.lista-compras-container .section-title {
    color: #2c3e50;
    font-size: 18px;
    font-weight: 500;
    margin: 25px 0 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #eaeaea;
    position: relative;
}

.lista-compras-container .section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background-color: #3498db;
}

.lista-info {
    margin-bottom: 20px;
    color: #555;
    font-size: 14px;
    background-color: #f8f9fa;
    padding: 10px;
    border-left: 4px solid #27ae60;
    border-radius: 0 4px 4px 0;
}

.tabela-lista-compras {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.tabela-lista-compras th {
    background-color: #f8f9fa;
    color: #5a6268;
    text-align: left;
    padding: 12px;
    font-weight: 500;
    border-bottom: 2px solid #dee2e6;
}

.tabela-lista-compras tr:nth-child(even) {
    background-color: #f8f9fa;
}

.tabela-lista-compras td {
    padding: 12px;
    border-bottom: 1px solid #eaeaea;
    vertical-align: middle;
}

.input-barras, .input-acessorios {
    width: 70px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
    font-size: 14px;
}

.input-barras:focus, .input-acessorios:focus {
    border-color: #27ae60;
    outline: none;
    box-shadow: 0 0 0 2px rgba(39, 174, 96, 0.2);
}

.btn-reset-barras, .btn-reset-acessorios {
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-reset-barras:hover, .btn-reset-acessorios:hover {
    background-color: #e9ecef;
    border-color: #ced4da;
}

.lista-compras-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.no-data {
    text-align: center;
    padding: 30px;
    color: #6c757d;
    font-style: italic;
}

/* Ajustes para impressão */
@media print {
    #planoCorteModal {
        position: absolute;
        height: auto;
    }

    #planoCorteModal .modal-content {
        margin: 0;
        padding: 0;
        width: 100%;
        box-shadow: none;
        border: none;
    }

    #listaComprasModal {
        position: absolute;
        height: auto;
    }

    #listaComprasModal .modal-content {
        margin: 0;
        padding: 0;
        width: 100%;
        box-shadow: none;
        border: none;
    }

    #closePlanoCorteModal, #closeListaComprasModal {
        display: none;
    }

    .plano-item {
        break-inside: avoid;
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }

    .secao-perfis, .lista-compras-container {
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .plano-corte-actions, .lista-compras-actions, .btn-reset-barras, .btn-reset-acessorios {
        display: none;
    }

    .print-only-header {
        display: block;
        text-align: center;
        margin-bottom: 20px;
        padding: 20px 0;
        border-bottom: 1px solid #ddd;
    }

    .print-only-header h1 {
        font-size: 24px;
        margin: 0 0 10px 0;
    }

    .print-only-header p {
        font-size: 14px;
        color: #666;
        margin: 0;
    }
    
    /* Otimizações para PDFs com muitos itens */
    .plano-corte-container {
        display: block;
        max-height: none !important;
        overflow: visible !important;
    }
    
    /* Espaçamento entre itens para melhor legibilidade */
    .plano-item {
        margin-bottom: 20px;
        page-break-after: auto;
    }
    
    /* Forçar quebra de página depois de um número específico de itens */
    .plano-item:nth-child(5n) {
        page-break-after: always;
    }
    
    /* Ajustes para tabelas */
    .tabela-perfis {
        width: 100%;
        page-break-inside: avoid;
    }
    
    /* Evitar que imagens fiquem muito grandes */
    img {
        max-width: 100% !important;
        max-height: 300px !important;
    }
    
    /* Garantir que elementos grandes não fiquem cortados */
    * {
        overflow: visible !important;
    }
}

/* Estilos para impressão e PDF da lista de compras */
@media print {
    body * {
        visibility: hidden;
    }
    
    .print-container, .print-container * {
        visibility: visible;
    }
    
    .print-container {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
    }
    
    .btn-reset-barras, .btn-reset-acessorios, .acoes {
        display: none !important;
    }
    
    .tabela-lista-compras {
        width: 100%;
        border-collapse: collapse;
        margin-bottom: 20px;
    }
    
    .tabela-lista-compras th {
        background-color: #f8f9fa !important;
        color: #333 !important;
        border-bottom: 2px solid #dee2e6;
        padding: 10px;
        text-align: left;
    }
    
    .tabela-lista-compras td {
        padding: 8px;
        border-bottom: 1px solid #eaeaea;
    }
    
    /* Colorir as colunas específicas em vermelho na impressão */
    .tabela-lista-compras th:nth-child(1), .tabela-lista-compras td:nth-child(1) {
        color: #e74c3c !important;
        font-weight: bold !important;
    }
    
    .tabela-lista-compras th:nth-child(5), .tabela-lista-compras td:nth-child(5) {
        color: #e74c3c !important;
        font-weight: bold !important;
    }
    
    .section-title {
        color: #3498db !important;
        font-size: 18px;
        margin-top: 20px;
        margin-bottom: 10px;
        border-bottom: 1px solid #eaeaea;
        padding-bottom: 5px;
    }
    
    .lista-info {
        background-color: #f8f9fa !important;
        border-left: 4px solid #27ae60;
        padding: 10px;
        margin-bottom: 20px;
        color: #333 !important;
    }
    
    input.input-barras, input.input-acessorios {
        border: none;
        background: transparent;
        font-weight: bold;
        color: #333 !important;
    }
}



/* ========================================
   ESTILOS PARA MODAL DE ASSINATURA
======================================== */

/* =================== MODAL ASSINATURA FULL SCREEN =================== */
#gerenciarAssinaturaModal {
    max-width: 100% !important;
    width: 100% !important;
    height: 100vh !important;
    max-height: 100vh !important;
    margin: 0 !important;
    border-radius: 0 !important;
    overflow: hidden !important;
}

#gerenciarAssinaturaModal .modal-content {
    height: 100vh;
    border-radius: 0;
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    background-color: #f8f9fa;
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    display: flex;
    flex-direction: column;
}

.assinatura-modal .modal-header {
    background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
    color: white;
    padding: 15px 25px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    border-radius: 0 !important;
    flex-shrink: 0;
}

.assinatura-modal .modal-header .header-icon {
    font-size: 24px;
    margin-right: 15px;
    color: #f1c40f;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.assinatura-modal .modal-header h2 {
    flex: 1;
    margin: 0;
    font-size: 22px;
    color: white;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.assinatura-modal .modal-header .close-modal {
    font-size: 24px;
    cursor: pointer;
    color: white;
    opacity: 0.8;
    transition: all 0.2s;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255,255,255,0.1);
    border-radius: 50%;
}

.assinatura-modal .modal-header .close-modal:hover {
    opacity: 1;
    color: #f1c40f;
    background-color: rgba(255,255,255,0.2);
    transform: rotate(90deg);
}

.assinatura-modal .modal-body {
    padding: 0;
    overflow-y: auto;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    flex: 1;
    min-height: 0;
}

.assinatura-container {
    padding: 40px 30px;
    min-height: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.planos-section .section-title {
    text-align: center;
    margin-bottom: 40px;
    flex-shrink: 0;
}

.planos-section .section-title i {
    font-size: 32px;
    color: #667eea;
    margin-right: 15px;
}

.planos-section .section-title h3 {
    font-size: 32px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
    display: inline-flex;
    align-items: center;
}

.planos-grid {
    margin-bottom: 50px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.plano-categoria {
    margin-bottom: 50px;
}

.categoria-title {
    font-size: 24px;
    font-weight: 600;
    color: #34495e;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.categoria-title i {
    margin-right: 12px;
    color: #667eea;
}

.desconto-badge {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-left: 15px;
    animation: pulse 2s infinite;
}

.planos-lista {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.plano-card {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    border: 2px solid transparent;
    overflow: hidden;
}

.plano-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.plano-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: #667eea;
}

.plano-popular::before {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
}

.plano-recomendado::before {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
}

.plano-badge {
    position: absolute;
    top: -2px;
    right: 20px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 8px 20px;
    border-radius: 0 0 12px 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.plano-recomendado .plano-badge {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
}

.plano-header {
    text-align: center;
    margin-bottom: 25px;
}

.plano-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    color: white;
    font-size: 24px;
}

.plano-popular .plano-icon {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
}

.plano-recomendado .plano-icon {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
}

.plano-header h5 {
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
}

.plano-preco {
    text-align: center;
    margin-bottom: 20px;
}

.valor-original {
    display: block;
    font-size: 16px;
    color: #95a5a6;
    text-decoration: line-through;
    margin-bottom: 5px;
}

.valor {
    font-size: 36px;
    font-weight: 700;
    color: #2c3e50;
    display: inline-block;
}

.periodo {
    font-size: 16px;
    color: #7f8c8d;
    font-weight: 500;
}

.economia {
    text-align: center;
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 25px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.economia i {
    margin-right: 8px;
}

.plano-features {
    margin-bottom: 30px;
}

.plano-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.plano-features li {
    padding: 10px 0;
    display: flex;
    align-items: center;
    font-size: 15px;
    color: #34495e;
}

.plano-features li i {
    color: #2ecc71;
    margin-right: 12px;
    font-size: 16px;
}

.btn-selecionar-plano {
    width: 100%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 15px 25px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.btn-selecionar-plano i {
    margin-right: 10px;
}

.plano-popular .btn-selecionar-plano {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
}

.plano-popular .btn-selecionar-plano:hover {
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
}

.plano-recomendado .btn-selecionar-plano {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
}

.plano-recomendado .btn-selecionar-plano:hover {
    box-shadow: 0 8px 25px rgba(46, 204, 113, 0.4);
}

.info-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
    flex-shrink: 0;
}

.info-card {
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: flex-start;
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.info-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    margin-right: 20px;
    flex-shrink: 0;
}

.info-content h4 {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 10px 0;
}

.info-content p {
    font-size: 14px;
    color: #7f8c8d;
    line-height: 1.6;
    margin: 0;
}

/* Responsividade */
@media (max-width: 768px) {
    .assinatura-modal {
        width: 98% !important;
        margin: 1% auto !important;
    }
    
    .assinatura-container {
        padding: 20px 15px;
    }
    
    .planos-lista {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .plano-card {
        padding: 20px;
    }
    
    .info-section {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .info-card {
        padding: 20px;
    }
    
    .planos-section .section-title h3 {
        font-size: 24px;
    }
    
    .categoria-title {
        font-size: 20px;
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .assinatura-modal .modal-header {
        padding: 15px 20px;
    }
    
    .assinatura-modal .modal-header h2 {
        font-size: 22px;
    }
    
    .valor {
        font-size: 28px;
    }
    
    .plano-card {
        padding: 15px;
    }
}

/* Animações */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@media screen and (min-width: 1920px) {
    #planoCorteModal .modal-content {
        width: 90%;
        max-width: 1800px;
        height: 90vh;
        top: 5vh;
    }
    
    #planoCorteModal .modal-body {
        max-height: calc(90vh - 70px);
    }
}



/* Efeito de hover nos cards de planos */
@keyframes cardHover {
    0% {
        transform: translateY(0);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }
    100% {
        transform: translateY(-8px);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    }
}

/* Efeito de clique nos botões */
@keyframes buttonClick {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(0.95);
    }
    100% {
        transform: scale(1);
    }
}

.btn-selecionar-plano:active {
    animation: buttonClick 0.2s ease;
}

/* Efeito de destaque para planos populares */
@keyframes glow {
    0% {
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }
    50% {
        box-shadow: 0 10px 30px rgba(255, 107, 107, 0.3);
    }
    100% {
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }
}

.plano-popular {
    animation: glow 3s ease-in-out infinite;
}

/* Efeito de destaque para planos recomendados */
@keyframes glowGreen {
    0% {
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }
    50% {
        box-shadow: 0 10px 30px rgba(46, 204, 113, 0.3);
    }
    100% {
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }
}

.plano-recomendado {
    animation: glowGreen 3s ease-in-out infinite;
}

/* Media queries para telas maiores - garantir uso completo da altura */
@media (min-width: 1400px) {
    .assinatura-container {
        padding: 60px 40px;
    }
    
    .planos-grid {
        justify-content: space-evenly;
        align-items: stretch;
    }
    
    .plano-categoria {
        margin-bottom: 80px;
    }
    
    .info-section {
        margin-top: 80px;
        margin-bottom: 40px;
    }
}

/* Melhorias na responsividade */
@media (max-width: 1200px) {
    .planos-lista {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (max-width: 900px) {
    .planos-lista {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    
    .assinatura-modal .modal-header h2 {
        font-size: 24px;
    }
    
    .planos-section .section-title h3 {
        font-size: 28px;
    }
}

@media (max-width: 600px) {
    .assinatura-modal {
        width: 100% !important;
        height: 100vh !important;
        margin: 0 !important;
        border-radius: 0 !important;
    }
    
    .assinatura-modal .modal-content {
        border-radius: 0 !important;
        height: 100vh;
        overflow-y: auto;
    }
    
    .assinatura-modal .modal-header {
        border-radius: 0 !important;
    }
    
    .assinatura-modal .modal-body {
        border-radius: 0 !important;
    }
}

/* Efeitos de loading para botões */
.btn-selecionar-plano.loading {
    position: relative;
    color: transparent;
}

.btn-selecionar-plano.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@media screen and (min-width: 1920px) {
    #planoCorteModal .modal-content {
        width: 90%;
        max-width: 1800px;
        height: 90vh;
        top: 5vh;
    }
    
    #planoCorteModal .modal-body {
        max-height: calc(90vh - 70px);
    }
}

/* Estilos para o Modal de Catálogos */
.catalogos-modal {
    width: 90%;
    max-width: 1200px;
    max-height: 90vh;
    margin: 5vh auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

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

.catalogos-modal .modal-header .header-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.catalogos-modal .modal-header .header-icon i {
    font-size: 24px;
    color: white;
}

.catalogos-modal .modal-header h2 {
    margin: 0;
    font-size: 28px;
    font-weight: 600;
    flex: 1;
}

.catalogos-modal .modal-body {
    padding: 30px;
    max-height: calc(90vh - 120px);
    overflow-y: auto;
}

.catalogos-container {
    width: 100%;
}

.catalogos-section .section-title {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.catalogos-section .section-title i {
    font-size: 24px;
    color: #667eea;
    margin-right: 12px;
}

.catalogos-section .section-title h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: #333;
}

.catalogos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.catalogo-card {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.catalogo-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

.catalogo-card:hover::before {
    left: 100%;
}

.catalogo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border-color: #667eea;
}

.catalogo-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    transition: transform 0.3s ease;
}

.catalogo-card:hover .catalogo-icon {
    transform: scale(1.1);
}

.catalogo-icon i {
    font-size: 36px;
    color: white;
}

.catalogo-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 15px 0 8px;
    word-break: break-word;
}

.catalogo-size {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.btn-visualizar-catalogo {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-visualizar-catalogo:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.btn-visualizar-catalogo i {
    font-size: 16px;
}

.no-catalogos {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.no-catalogos-icon {
    width: 100px;
    height: 100px;
    background: #f8f9fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.no-catalogos-icon i {
    font-size: 48px;
    color: #dee2e6;
}

.no-catalogos h4 {
    font-size: 24px;
    font-weight: 600;
    color: #495057;
    margin: 20px 0 10px;
}

.no-catalogos p {
    font-size: 16px;
    color: #6c757d;
    margin: 0;
}

/* Responsividade para o modal de catálogos */
@media (max-width: 768px) {
    .catalogos-modal {
        width: 95%;
        margin: 2.5vh auto;
        max-height: 95vh;
    }
    
    .catalogos-modal .modal-header {
        padding: 15px 20px;
    }
    
    .catalogos-modal .modal-header h2 {
        font-size: 22px;
    }
    
    .catalogos-modal .modal-body {
        padding: 20px;
    }
    
    .catalogos-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 15px;
    }
    
    .catalogo-card {
        padding: 15px;
    }
    
    .catalogo-icon {
        width: 60px;
        height: 60px;
    }
    
    .catalogo-icon i {
        font-size: 28px;
    }
    
    .catalogo-title {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .catalogos-modal {
        width: 100%;
        height: 100vh;
        margin: 0;
        border-radius: 0;
    }
    
    .catalogos-modal .modal-header {
        border-radius: 0;
    }
    
    .catalogos-modal .modal-body {
        border-radius: 0;
        max-height: calc(100vh - 80px);
    }
    
    .catalogos-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

/* Estilos para o Modal de Cadastro de Clientes */
.clientes-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-height: 75vh;
    overflow-y: auto;
}

.cadastro-manual-section,
.importacao-section,
.clientes-cadastrados-section {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 18px;
    border: 1px solid #e9ecef;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e9ecef;
}

.cadastro-manual-section .section-header {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.section-header h3 {
    color: #495057;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-header h3 i {
    color: #667eea;
    font-size: 20px;
}

/* Botão de Toggle para Cadastro Manual */
.btn-toggle-cadastro {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    justify-content: space-between;
}

.btn-toggle-cadastro:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.btn-toggle-cadastro .toggle-icon {
    transition: transform 0.3s ease;
    font-size: 14px;
}

.btn-toggle-cadastro.active .toggle-icon {
    transform: rotate(180deg);
}

.form-cadastro-container {
    overflow: hidden;
    transition: all 0.3s ease;
    margin-top: 15px;
}

.form-cadastro-container.show {
    display: block !important;
    animation: slideDown 0.3s ease forwards;
}

.form-cadastro-container.hide {
    animation: slideUp 0.3s ease forwards;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        max-height: 500px;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 1;
        max-height: 500px;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        max-height: 0;
        transform: translateY(-10px);
    }
}

.cliente-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.form-group {
    display: flex;
    gap: 6px;
}

.form-group label {
    font-weight: 600;
    color: #495057;
    font-size: 14px;
}

.form-group input {
    padding: 10px 12px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: white;
    height: 40px;
    box-sizing: border-box;
}

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

.form-group input:required {
    border-left: 4px solid #667eea;
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-start;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.btn-secondary {
    background: #6c757d;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-1px);
}

.clientes-orcamentos-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
    margin-top: 15px;
    max-height: 300px;
    overflow-y: auto;
}

.cliente-orcamento-card {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.cliente-orcamento-card:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.cliente-orcamento-card.selected {
    border-color: #28a745;
    background: #f8fff9;
}

.cliente-nome {
    font-weight: 600;
    color: #495057;
    margin-bottom: 5px;
}

.cliente-info {
    font-size: 12px;
    color: #6c757d;
    margin-bottom: 10px;
}

.cliente-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-importar-cliente {
    background: #28a745;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-importar-cliente:hover {
    background: #218838;
}

.btn-importar-cliente:disabled {
    background: #6c757d;
    cursor: not-allowed;
}

.clientes-summary {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.lista-clientes {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    background: white;
}

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

.clientes-table th {
    background: #f8f9fa;
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    color: #495057;
    border-bottom: 2px solid #e9ecef;
    position: sticky;
    top: 0;
    z-index: 10;
}

.clientes-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #e9ecef;
    color: #495057;
}

.clientes-table tr:hover {
    background: #f8f9fa;
}

.cliente-actions-table {
    display: flex;
    gap: 8px;
}

.btn-edit-cliente,
.btn-delete-cliente {
    padding: 6px 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
}

.btn-edit-cliente {
    background: #ffc107;
    color: #212529;
}

.btn-edit-cliente:hover {
    background: #e0a800;
}

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

.btn-delete-cliente:hover {
    background: #c82333;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
}

.empty-state i {
    font-size: 48px;
    color: #dee2e6;
    margin-bottom: 15px;
}

.empty-state h4 {
    margin: 15px 0 10px;
    color: #495057;
}

.empty-state p {
    margin: 0;
    font-size: 14px;
}

.badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

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

/* Responsividade */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .clientes-orcamentos-list {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .clientes-summary {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .clientes-container {
        gap: 20px;
    }
    
    .cadastro-manual-section,
    .importacao-section,
    .clientes-cadastrados-section {
        padding: 15px;
    }
    
    .section-header h3 {
        font-size: 16px;
    }
    
    .clientes-table {
        font-size: 12px;
    }
    
    .clientes-table th,
    .clientes-table td {
        padding: 8px 10px;
    }
}

/* =================== MODAL FINANCEIRO FULL SCREEN =================== */
#financeiroModal {
    max-width: 100% !important;
    width: 100% !important;
    height: 100vh !important;
    max-height: 100vh !important;
    margin: 0 !important;
    border-radius: 0 !important;
    overflow: hidden !important;
}

#financeiroModal .modal-content {
    height: 100vh;
    border-radius: 0;
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    background-color: #f8f9fa;
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
}

.financeiro-modal .modal-header {
    background: linear-gradient(135deg, #2c3e50, #3498db);
    color: white;
    padding: 15px 25px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    border-radius: 0 !important;
}

.financeiro-modal .modal-header .header-icon {
    font-size: 24px;
    margin-right: 15px;
    color: #f1c40f;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.financeiro-modal .modal-header .header-icon i {
    font-size: 24px;
    color: #f1c40f;
}

.financeiro-modal .modal-header h2 {
    flex: 1;
    margin: 0;
    font-size: 22px;
    color: white;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.financeiro-modal .modal-header .close-modal {
    font-size: 24px;
    cursor: pointer;
    color: white;
    opacity: 0.8;
    transition: all 0.2s;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255,255,255,0.1);
    border-radius: 50%;
}

.financeiro-modal .modal-header .close-modal:hover {
    opacity: 1;
    color: #f1c40f;
    background-color: rgba(255,255,255,0.2);
    transform: rotate(90deg);
}

.financeiro-modal .modal-body {
    padding: 0;
    overflow-y: auto;
    background-color: #f8f9fa;
    height: calc(100vh - 70px);
}

.financeiro-container {
    height: 100%;
}

/* Abas de navegação */
.financeiro-tabs {
    display: flex;
    background: #f8f9fa;
    border-bottom: 2px solid #e9ecef;
    padding: 0 20px;
}

.tab-button {
    background: none;
    border: none;
    padding: 15px 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #6c757d;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tab-button:hover {
    color: #3498db;
    background: rgba(52, 152, 219, 0.1);
}

.tab-button.active {
    color: #3498db;
    border-bottom-color: #3498db;
    background: white;
}

.tab-button i {
    font-size: 16px;
}

/* Conteúdo das abas */
.tab-content {
    height: calc(100% - 60px);
}

.tab-pane {
    display: none;
    height: 100%;
    overflow-y: auto;
    padding: 20px;
}

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

/* Header das seções */
.financeiro-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e9ecef;
}

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

.search-container {
    position: relative;
    width: 300px;
}

.search-input {
    width: 100%;
    padding: 10px 40px 10px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
}

.search-input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.search-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
}

.filtros-container {
    display: flex;
    gap: 15px;
    align-items: center;
}

.filtro-select,
.filtro-mes {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

/* Tabelas de contas */
.contas-lista {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.contas-table-container {
    overflow-x: auto;
}

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

.contas-table th {
    background: #f8f9fa;
    padding: 15px 12px;
    text-align: left;
    font-weight: 600;
    color: #495057;
    border-bottom: 2px solid #e9ecef;
    white-space: nowrap;
}

.contas-table td {
    padding: 12px;
    border-bottom: 1px solid #e9ecef;
    color: #495057;
}

.contas-table tr:hover {
    background: #f8f9fa;
}

.contas-table .status-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-pendente {
    background: #fff3cd;
    color: #856404;
}

.status-paga,
.status-recebida {
    background: #d4edda;
    color: #155724;
}

.status-vencida {
    background: #f8d7da;
    color: #721c24;
}

.contas-table .btn-action {
    padding: 6px 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    margin: 0 2px;
    transition: all 0.3s ease;
}

.btn-edit {
    background: #ffc107;
    color: #212529;
}

.btn-edit:hover {
    background: #e0a800;
}

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

.btn-delete:hover {
    background: #c82333;
}

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

.btn-pay:hover {
    background: #218838;
}

/* Estado vazio */
.no-contas {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

.no-contas-icon {
    font-size: 64px;
    color: #dee2e6;
    margin-bottom: 20px;
}

.no-contas h4 {
    margin: 20px 0 10px;
    color: #495057;
    font-size: 18px;
}

.no-contas p {
    margin: 0;
    font-size: 14px;
}

/* Aba Resumo */
.resumo-container {
    height: 100%;
}

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

.resumo-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: transform 0.3s ease;
}

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

.resumo-card.pagar {
    border-left: 4px solid #dc3545;
}

.resumo-card.receber {
    border-left: 4px solid #28a745;
}

.resumo-card.saldo {
    border-left: 4px solid #3498db;
}

.resumo-card .card-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
}

.resumo-card.pagar .card-icon {
    background: #dc3545;
}

.resumo-card.receber .card-icon {
    background: #28a745;
}

.resumo-card.saldo .card-icon {
    background: #3498db;
}

.resumo-card .card-content h4 {
    margin: 0 0 8px 0;
    font-size: 14px;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.resumo-card .card-content .valor {
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
    display: block;
    margin-bottom: 4px;
}

.resumo-card .card-content small {
    color: #6c757d;
    font-size: 12px;
}

/* Gráficos */
.resumo-charts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
}

.chart-container {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.chart-container h4 {
    margin: 0 0 20px 0;
    color: #2c3e50;
    font-size: 16px;
    font-weight: 600;
}

/* Modal de Conta */
.conta-modal {
    max-width: 600px;
    width: 90%;
}

.conta-form {
    padding: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #2c3e50;
}

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

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

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

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

/* Botões */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: #3498db;
    color: white;
}

.btn-primary:hover {
    background: #2980b9;
}

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

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

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

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

/* Responsividade */
@media (max-width: 768px) {
    .financeiro-modal {
        width: 98%;
        max-height: 95vh;
    }
    
    .financeiro-tabs {
        padding: 0 10px;
        overflow-x: auto;
    }
    
    .tab-button {
        padding: 12px 15px;
        font-size: 12px;
        white-space: nowrap;
    }
    
    .header-actions {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .search-container {
        width: 100%;
    }
    
    .filtros-container {
        flex-wrap: wrap;
    }
    
    .resumo-cards {
        grid-template-columns: 1fr;
    }
    
    .resumo-charts {
        grid-template-columns: 1fr;
    }
    
    .chart-container {
        min-width: auto;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .contas-table-container {
        font-size: 12px;
    }
    
    .contas-table th,
    .contas-table td {
        padding: 8px 6px;
    }
}

@media (max-width: 480px) {
    .financeiro-modal .modal-header {
        padding: 15px 20px;
    }
    
    .financeiro-modal .modal-header h2 {
        font-size: 18px;
    }
    
    .tab-pane {
        padding: 15px;
    }
    
    .resumo-card {
        padding: 20px;
        flex-direction: column;
        text-align: center;
    }
    
    .resumo-card .card-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .chart-container {
        padding: 20px;
    }
}

/* ===== SWEETALERT2 CUSTOM STYLES ===== */
/* Estilos personalizados para SweetAlert2 */
.swal-popup-custom {
    border-radius: 12px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2) !important;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
}

.swal-title-custom {
    color: #2c3e50 !important;
    font-weight: 600 !important;
    font-size: 20px !important;
    margin-bottom: 15px !important;
}

.swal-content-custom {
    color: #34495e !important;
    font-size: 16px !important;
    line-height: 1.5 !important;
    padding: 0 20px !important;
}

.swal-confirm-button-custom {
    background: #3498db !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 12px 24px !important;
    font-weight: 500 !important;
    font-size: 14px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3) !important;
}

.swal-confirm-button-custom:hover {
    background: #2980b9 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.4) !important;
}

.swal-cancel-button-custom {
    background: #95a5a6 !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 12px 24px !important;
    font-weight: 500 !important;
    font-size: 14px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 8px rgba(149, 165, 166, 0.3) !important;
}

.swal-cancel-button-custom:hover {
    background: #7f8c8d !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(149, 165, 166, 0.4) !important;
}

/* Estilos específicos para diferentes tipos de alerta */
.swal2-popup.swal2-show {
    animation: swalSlideIn 0.3s ease-out !important;
}

.swal2-popup.swal2-hide {
    animation: swalSlideOut 0.2s ease-in !important;
}

@keyframes swalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes swalSlideOut {
    from {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
    to {
        opacity: 0;
        transform: scale(0.8) translateY(-20px);
    }
}

/* Ícones personalizados */
.swal2-icon.swal2-success {
    border-color: #27ae60 !important;
    color: #27ae60 !important;
}

.swal2-icon.swal2-error {
    border-color: #e74c3c !important;
    color: #e74c3c !important;
}

.swal2-icon.swal2-warning {
    border-color: #f39c12 !important;
    color: #f39c12 !important;
}

.swal2-icon.swal2-info {
    border-color: #3498db !important;
    color: #3498db !important;
}

.swal2-icon.swal2-question {
    border-color: #9b59b6 !important;
    color: #9b59b6 !important;
}

/* Overlay personalizado */
.swal2-backdrop-show {
    background: rgba(0, 0, 0, 0.6) !important;
    backdrop-filter: blur(2px) !important;
}

/* Responsividade para SweetAlert2 */
@media (max-width: 768px) {
    .swal-popup-custom {
        width: 90% !important;
        margin: 0 auto !important;
    }
    
    .swal-title-custom {
        font-size: 18px !important;
    }
    
    .swal-content-custom {
        font-size: 14px !important;
        padding: 0 15px !important;
    }
    
    .swal-confirm-button-custom,
    .swal-cancel-button-custom {
        padding: 10px 20px !important;
        font-size: 13px !important;
    }
}

@media (max-width: 480px) {
    .swal-popup-custom {
        width: 95% !important;
    }
    
    .swal-title-custom {
        font-size: 16px !important;
        margin-bottom: 10px !important;
    }
    
    .swal-content-custom {
        font-size: 13px !important;
        padding: 0 10px !important;
    }
}

/* Estilos específicos para SweetAlert aninhado dentro do modal de orçamentos 
   movidos para: src/components/orcamento/orcamentos-modal.css */

/* =================== CORREÇÃO BARRA DE ROLAGEM PAINEL DIREITO =================== */
/* Forçar barra de rolagem no painel direito quando orçamento é carregado para edição */
.right-panel.force-scrollbar {
    overflow-y: auto !important;
    overflow-x: hidden !important;
    max-height: calc(100vh - 120px) !important;
}

/* Garantir que a barra de rolagem seja sempre visível quando necessário */
.right-panel.force-scrollbar::-webkit-scrollbar {
    width: 12px !important;
    display: block !important;
}

.right-panel.force-scrollbar::-webkit-scrollbar-track {
    background: #f1f1f1 !important;
    border-radius: 8px !important;
    border: 1px solid #ddd !important;
}

.right-panel.force-scrollbar::-webkit-scrollbar-thumb {
    background: #3498db !important;
    border-radius: 8px !important;
    border: 2px solid #f1f1f1 !important;
}

.right-panel.force-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #2980b9 !important;
}

/* =================== MODAIS FULL SCREEN CUSTOMIZADOS =================== */

/* =================== MODAL ADICIONAR ITEM MANUAL FULL SCREEN =================== */
#modalItemManual[style*="display: flex"],
#modalItemManual[style*="display: block"] {
    max-width: 100% !important;
    width: 100% !important;
    height: 100vh !important;
    max-height: 100vh !important;
    margin: 0 !important;
    border-radius: 0 !important;
    overflow: hidden !important;
}

#modalItemManual[style*="display: flex"] .modal-content,
#modalItemManual[style*="display: block"] .modal-content {
    height: 100vh;
    border-radius: 0;
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    background-color: #f8f9fa;
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    display: flex;
    flex-direction: column;
}

#modalItemManual[style*="display: flex"] .modal-header,
#modalItemManual[style*="display: block"] .modal-header {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    padding: 15px 25px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 0 !important;
    flex-shrink: 0;
}

#modalItemManual[style*="display: flex"] .modal-header h2,
#modalItemManual[style*="display: block"] .modal-header h2 {
    margin: 0;
    font-size: 22px;
    color: white;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

#modalItemManual[style*="display: flex"] .modal-header .close,
#modalItemManual[style*="display: block"] .modal-header .close {
    font-size: 24px;
    cursor: pointer;
    color: white;
    opacity: 0.8;
    transition: all 0.2s;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255,255,255,0.1);
    border-radius: 50%;
    margin: 0;
    padding: 0;
    line-height: 1;
}

#modalItemManual[style*="display: flex"] .modal-header .close:hover,
#modalItemManual[style*="display: block"] .modal-header .close:hover {
    opacity: 1;
    color: #f1c40f;
    background-color: rgba(255,255,255,0.2);
    transform: rotate(90deg);
}

#modalItemManual[style*="display: flex"] .modal-body,
#modalItemManual[style*="display: block"] .modal-body {
    padding: 30px;
    overflow-y: auto;
    background-color: #f8f9fa;
    flex: 1;
}

#modalItemManual[style*="display: flex"] .modal-footer,
#modalItemManual[style*="display: block"] .modal-footer {
    padding: 20px 30px;
    border-top: 1px solid #e9ecef;
    background-color: white;
    flex-shrink: 0;
}

/* =================== MODAL PLANO DE CORTE FULL SCREEN =================== */
#planoCorteModal[style*="display: flex"],
#planoCorteModal[style*="display: block"] {
    max-width: 100% !important;
    width: 100% !important;
    height: 100vh !important;
    max-height: 100vh !important;
    margin: 0 !important;
    border-radius: 0 !important;
    overflow: hidden !important;
}

#planoCorteModal[style*="display: flex"] .modal-content,
#planoCorteModal[style*="display: block"] .modal-content {
    height: 100vh !important;
    border-radius: 0 !important;
    border: none !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2) !important;
    background-color: #f8f9fa !important;
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
}

#planoCorteModal[style*="display: flex"] .modal-header,
#planoCorteModal[style*="display: block"] .modal-header {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%) !important;
    color: white !important;
    padding: 15px 25px !important;
    border-bottom: 1px solid rgba(255,255,255,0.1) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    border-radius: 0 !important;
    flex-shrink: 0 !important;
}

#planoCorteModal[style*="display: flex"] .modal-header h2,
#planoCorteModal[style*="display: block"] .modal-header h2 {
    margin: 0 !important;
    font-size: 22px !important;
    color: white !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2) !important;
}

#planoCorteModal[style*="display: flex"] #closePlanoCorteModal,
#planoCorteModal[style*="display: block"] #closePlanoCorteModal {
    font-size: 24px !important;
    cursor: pointer !important;
    color: white !important;
    opacity: 0.8 !important;
    transition: all 0.2s !important;
    width: 36px !important;
    height: 36px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background-color: rgba(255,255,255,0.1) !important;
    border-radius: 50% !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
    border: none !important;
}

#planoCorteModal[style*="display: flex"] #closePlanoCorteModal:hover,
#planoCorteModal[style*="display: block"] #closePlanoCorteModal:hover {
    opacity: 1 !important;
    color: #f1c40f !important;
    background-color: rgba(255,255,255,0.2) !important;
    transform: rotate(90deg) !important;
}

#planoCorteModal[style*="display: flex"] .modal-body,
#planoCorteModal[style*="display: block"] .modal-body {
    padding: 30px !important;
    overflow-y: auto !important;
    background-color: #f8f9fa !important;
    flex: 1 !important;
}

/* =================== MODAL DETALHAMENTO ORÇAMENTO FULL SCREEN =================== */
#detalhamentoOrcamentoModal[style*="display: flex"],
#detalhamentoOrcamentoModal[style*="display: block"] {
    max-width: 100% !important;
    width: 100% !important;
    height: 100vh !important;
    max-height: 100vh !important;
    margin: 0 !important;
    border-radius: 0 !important;
    overflow: hidden !important;
}

#detalhamentoOrcamentoModal[style*="display: flex"] .modal-content,
#detalhamentoOrcamentoModal[style*="display: block"] .modal-content {
    height: 100vh;
    border-radius: 0;
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    background-color: #f8f9fa;
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    display: flex;
    flex-direction: column;
}

#detalhamentoOrcamentoModal[style*="display: flex"] .modal-header,
#detalhamentoOrcamentoModal[style*="display: block"] .modal-header {
    background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
    color: white;
    padding: 15px 25px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 0 !important;
    flex-shrink: 0;
}

#detalhamentoOrcamentoModal[style*="display: flex"] .modal-header h2,
#detalhamentoOrcamentoModal[style*="display: block"] .modal-header h2 {
    margin: 0;
    font-size: 22px;
    color: white;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

#detalhamentoOrcamentoModal[style*="display: flex"] .modal-header .close,
#detalhamentoOrcamentoModal[style*="display: block"] .modal-header .close {
    font-size: 24px;
    cursor: pointer;
    color: white;
    opacity: 0.8;
    transition: all 0.2s;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255,255,255,0.1);
    border-radius: 50%;
    margin: 0;
    padding: 0;
    line-height: 1;
}

#detalhamentoOrcamentoModal[style*="display: flex"] .modal-header .close:hover,
#detalhamentoOrcamentoModal[style*="display: block"] .modal-header .close:hover {
    opacity: 1;
    color: #f1c40f;
    background-color: rgba(255,255,255,0.2);
    transform: rotate(90deg);
}

#detalhamentoOrcamentoModal[style*="display: flex"] .modal-body,
#detalhamentoOrcamentoModal[style*="display: block"] .modal-body {
    padding: 30px;
    overflow-y: auto;
    background-color: #f8f9fa;
    flex: 1;
}

#detalhamentoOrcamentoModal[style*="display: flex"] .modal-footer,
#detalhamentoOrcamentoModal[style*="display: block"] .modal-footer {
    padding: 20px 30px;
    border-top: 1px solid #e9ecef;
    background-color: white;
    flex-shrink: 0;
}

/* =================== MODAL PROPOSTA FULL SCREEN =================== */


#propostaModal[style*="display: flex"] .proposta-modal-content,
#propostaModal[style*="display: block"] .proposta-modal-content {
    height: 100vh;
    border-radius: 0;
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    background-color: #f8f9fa;
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    display: flex;
    flex-direction: column;
}

#propostaModal[style*="display: flex"] .proposta-modal-header,
#propostaModal[style*="display: block"] .proposta-modal-header {
    background: #3498db;
    color: white;
    padding: 15px 25px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 0 !important;
    flex-shrink: 0;
}

#propostaModal[style*="display: flex"] .proposta-modal-title,
#propostaModal[style*="display: block"] .proposta-modal-title {
    margin: 0;
    font-size: 22px;
    color: white;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

#propostaModal[style*="display: flex"] .proposta-modal-controls,
#propostaModal[style*="display: block"] .proposta-modal-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

#propostaModal[style*="display: flex"] .proposta-modal-control,
#propostaModal[style*="display: block"] .proposta-modal-control {
    font-size: 16px;
    cursor: pointer;
    color: white;
    opacity: 0.8;
    transition: all 0.2s;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255,255,255,0.1);
    border-radius: 50%;
    border: none;
    padding: 0;
    line-height: 1;
}

#propostaModal[style*="display: flex"] .proposta-modal-control:hover,
#propostaModal[style*="display: block"] .proposta-modal-control:hover {
    opacity: 1;
    color: #f1c40f;
    background-color: rgba(255,255,255,0.2);
    transform: scale(1.1);
}

#propostaModal[style*="display: flex"] .proposta-close:hover,
#propostaModal[style*="display: block"] .proposta-close:hover {
    transform: rotate(90deg) scale(1.1);
}



/* =================== RESPONSIVE PARA MODAIS FULL SCREEN =================== */
@media (max-width: 768px) {
    #modalItemManual[style*="display: flex"] .modal-body,
    #modalItemManual[style*="display: block"] .modal-body,
    #planoCorteModal[style*="display: flex"] .modal-body,
    #planoCorteModal[style*="display: block"] .modal-body,
    #detalhamentoOrcamentoModal[style*="display: flex"] .modal-body,
    #detalhamentoOrcamentoModal[style*="display: block"] .modal-body,
    #propostaModal[style*="display: flex"] .proposta-content,
    #propostaModal[style*="display: block"] .proposta-content {
        padding: 20px !important;
    }
    
    #modalItemManual[style*="display: flex"] .modal-header,
    #modalItemManual[style*="display: block"] .modal-header,
    #planoCorteModal[style*="display: flex"] .modal-header,
    #planoCorteModal[style*="display: block"] .modal-header,
    #detalhamentoOrcamentoModal[style*="display: flex"] .modal-header,
    #detalhamentoOrcamentoModal[style*="display: block"] .modal-header,
    #propostaModal[style*="display: flex"] .proposta-modal-header,
    #propostaModal[style*="display: block"] .proposta-modal-header {
        padding: 12px 20px !important;
    }
    
    #modalItemManual[style*="display: flex"] .modal-header h2,
    #modalItemManual[style*="display: block"] .modal-header h2,
    #planoCorteModal[style*="display: flex"] .modal-header h2,
    #planoCorteModal[style*="display: block"] .modal-header h2,
    #detalhamentoOrcamentoModal[style*="display: flex"] .modal-header h2,
    #detalhamentoOrcamentoModal[style*="display: block"] .modal-header h2,
    #propostaModal[style*="display: flex"] .proposta-modal-title,
    #propostaModal[style*="display: block"] .proposta-modal-title {
        font-size: 18px !important;
    }
}

.aviso-plano-corte {
    background-color: #fff3f3;
    border: 1px solid #ff0000;
    color: #ff0000;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    font-weight: 500;
    text-align: center;
}

/* =================== MODAL SOBRE =================== */
#sobreModal {
    z-index: 10000;
}

#sobreModal .modal-content.sobre-modal {
    max-width: 800px;
    width: 90%;
    max-height: 85vh;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    border: none;
    background: #ffffff;
    display: flex;
    flex-direction: column;
}

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

#sobreModal .modal-header .header-icon {
    background: rgba(255, 255, 255, 0.2);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

#sobreModal .modal-header .header-icon i {
    font-size: 24px;
    color: white;
}

#sobreModal .modal-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

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

#sobreModal .modal-header .close-modal:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

#sobreModal .modal-body {
    overflow-y: auto;
    flex: 1;
    padding: 0;
}

.sobre-container {
    padding: 0;
}

.sobre-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 30px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #e9ecef;
}

.sobre-logo {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 25px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.sobre-logo i {
    font-size: 36px;
    color: white;
}

.sobre-title h3 {
    margin: 0 0 8px 0;
    font-size: 32px;
    font-weight: 700;
    color: #2c3e50;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sobre-title p {
    margin: 0 0 15px 0;
    font-size: 16px;
    color: #6c757d;
    font-weight: 500;
}

.versao-badge {
    display: inline-block;
}

.versao-badge span {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.sobre-section {
    padding: 30px;
    border-bottom: 1px solid #e9ecef;
}

.sobre-section:last-child {
    border-bottom: none;
}

.sobre-section .section-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.sobre-section .section-header i {
    font-size: 24px;
    color: #667eea;
    margin-right: 15px;
    background: rgba(102, 126, 234, 0.1);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sobre-section .section-header h4 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.info-item {
    background: #f8f9fa;
    padding: 15px 20px;
    border-radius: 8px;
    border-left: 4px solid #667eea;
    transition: all 0.3s ease;
}

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

.info-label {
    font-size: 14px;
    color: #6c757d;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 5px;
}

.info-value {
    font-size: 16px;
    color: #2c3e50;
    font-weight: 500;
    line-height: 1.4;
}

.contact-link {
    color: #667eea;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.contact-link:hover {
    color: #5a67d8;
    text-decoration: underline;
}

.contact-link i {
    font-size: 16px;
}

.license-content {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    border-left: 4px solid #28a745;
}

.license-content p {
    margin: 0 0 15px 0;
    font-size: 15px;
    color: #495057;
    line-height: 1.6;
}

.license-content .copyright {
    font-size: 18px;
    font-weight: 600;
    color: #28a745;
    margin-bottom: 20px;
}

.terms-content {
    background: #fff3cd;
    padding: 25px;
    border-radius: 8px;
    border-left: 4px solid #ffc107;
}

.terms-subsection {
    margin-bottom: 25px;
}

.terms-subsection:last-child {
    margin-bottom: 0;
}

.terms-subsection h5 {
    margin: 0 0 15px 0;
    font-size: 16px;
    font-weight: 600;
    color: #856404;
    display: flex;
    align-items: center;
    gap: 10px;
}

.terms-subsection h5 i {
    font-size: 18px;
    color: #ffc107;
}

.terms-subsection ul {
    margin: 0;
    padding-left: 20px;
}

.terms-subsection li {
    margin-bottom: 8px;
    font-size: 14px;
    color: #495057;
    line-height: 1.5;
}

.terms-subsection p {
    margin: 0;
    font-size: 14px;
    color: #495057;
    line-height: 1.6;
}

.credits-content {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 25px;
    border-radius: 8px;
    border-left: 4px solid #6f42c1;
}

.credits-content p {
    margin: 0 0 15px 0;
    font-size: 16px;
    color: #495057;
    line-height: 1.6;
}

.credits-content strong {
    color: #6f42c1;
}

.legal-notice {
    background: rgba(111, 66, 193, 0.1);
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
    border: 1px solid rgba(111, 66, 193, 0.2);
}

.legal-notice p {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: #495057;
    line-height: 1.5;
}

.legal-notice p:last-child {
    margin-bottom: 0;
}

.legal-notice i {
    color: #6f42c1;
    margin-right: 8px;
}

/* Estilos para a seção de personalizações */
.personalizacao-content {
    background: linear-gradient(135deg, #e8f5e8 0%, #f0f8f0 100%);
    padding: 25px;
    border-radius: 8px;
    border-left: 4px solid #28a745;
}

.personalizacao-content p {
    margin: 0 0 15px 0;
    font-size: 15px;
    color: #495057;
    line-height: 1.6;
}

.servicos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.servico-item {
    background: white;
    border: 2px solid #28a745;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
}

.servico-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.2);
}

.servico-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e9ecef;
}

.servico-header i {
    font-size: 20px;
    color: #28a745;
    margin-right: 12px;
    background: rgba(40, 167, 69, 0.1);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.servico-header h5 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
}

.servico-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.servico-preco {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.preco-label {
    font-size: 14px;
    color: #6c757d;
    font-weight: 500;
}

.preco-valor {
    font-size: 16px;
    font-weight: 700;
    color: #28a745;
    background: rgba(40, 167, 69, 0.1);
    padding: 4px 12px;
    border-radius: 20px;
}

.personalizacao-info {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    border: 1px solid #28a745;
}

.info-row {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    gap: 12px;
}

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

.info-row i {
    font-size: 16px;
    color: #28a745;
    margin-top: 2px;
    flex-shrink: 0;
}

.info-row span {
    font-size: 14px;
    color: #495057;
    line-height: 1.5;
}

.personalizacao-destaque {
    background: rgba(40, 167, 69, 0.1);
    border: 1px solid #28a745;
    border-radius: 8px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
}

.personalizacao-destaque i {
    font-size: 18px;
    color: #ffc107;
}

.personalizacao-destaque span {
    font-size: 15px;
    color: #155724;
    font-weight: 500;
}

/* Responsividade para personalizações */
@media (max-width: 768px) {
    .servicos-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .servico-item {
        padding: 15px;
    }
    
    .servico-preco {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .personalizacao-info {
        padding: 15px;
    }
    
    .info-row {
        flex-direction: column;
        gap: 8px;
    }
    
    .info-row i {
        margin-top: 0;
    }
    
    .personalizacao-destaque {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
}

/* Responsividade */
@media (max-width: 768px) {
    #sobreModal .modal-content.sobre-modal {
        width: 95%;
        max-height: 90vh;
    }
    
    #sobreModal .modal-header {
        padding: 15px 20px;
    }
    
    #sobreModal .modal-header h2 {
        font-size: 20px;
    }
    
    .sobre-header {
        padding: 20px;
        flex-direction: column;
        text-align: center;
    }
    
    .sobre-logo {
        margin-right: 0;
        margin-bottom: 20px;
        width: 70px;
        height: 70px;
    }
    
    .sobre-logo i {
        font-size: 30px;
    }
    
    .sobre-title h3 {
        font-size: 26px;
    }
    
    .sobre-section {
        padding: 20px;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .sobre-section .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .sobre-section .section-header i {
        margin-right: 0;
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    #sobreModal .modal-content.sobre-modal {
        width: 98%;
        max-height: 95vh;
        margin: 10px auto;
    }
    
    .sobre-header {
        padding: 15px;
    }
    
    .sobre-title h3 {
        font-size: 22px;
    }
    
    .sobre-section {
        padding: 15px;
    }
    
    .info-item {
        padding: 12px 15px;
    }
    
    .license-content,
    .terms-content,
    .credits-content {
        padding: 20px;
    }
}

/* User Info Container - Web Version */
.user-info-container {
    display: flex !important;
    align-items: center;
    margin-right: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 5px 12px;
    backdrop-filter: blur(5px);
    z-index: 1;
    position: relative;
}

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

.user-email {
    color: #fff;
    font-size: 14px;
    font-weight: 500;
}

.logout-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.logout-btn i {
    font-size: 14px;
}

/* Responsividade para user info */
@media (max-width: 768px) {
    .user-info-container {
        display: none !important;
    }
}

/* ========================================
   USER INFO CONTAINER - WEB VERSION
======================================== */
.user-info-container {
    display: flex !important;
    align-items: center;
    margin-right: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 5px 12px;
    backdrop-filter: blur(5px);
}

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

.user-email {
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.logout-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    backdrop-filter: blur(5px);
}

.logout-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.05);
}

.logout-btn:active {
    transform: scale(0.95);
}

.logout-btn i {
    font-size: 12px;
}

/* Definição do header removida para evitar conflitos - estilos principais estão no início do arquivo */

/* Responsividade para user info */
@media (max-width: 768px) {
    .user-info-container {
        display: none !important;
    }
    
    .user-email {
        font-size: 12px;
        max-width: 120px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

@media (max-width: 480px) {
    .user-info-container {
        padding: 3px 8px;
    }
    
    .logout-btn {
        width: 24px;
        height: 24px;
    }
    
    .logout-btn i {
        font-size: 10px;
    }
}

