:root {
    --cor-medidas: #fffde7;
    --cor-cortina: #e0f7fa;
    --cor-forro: #e8f5e9;
    --cor-blackout: #fce4ec;
    --cor-valores: #f3e5f5;
    --cor-orcamento: #e8eaf6;
}
.hidden {
    display: none !important;
}
.calculator-header {
    display: flex; align-items: center; gap: 15px; margin-bottom: 20px; padding: 10px 15px; background: #fff; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.calculator-header h2 { margin: 0; flex-grow: 1; text-align: center; order: 2; }
#btn-voltar-clientes { padding: 8px 12px; background-color: #6c757d; color: white; border: none; border-radius: 5px; cursor: pointer; font-size: 14px; order: 1; }
#btn-voltar-clientes:hover { background-color: #5a6268; }
.save-status-wrapper { display: flex; align-items: center; gap: 10px; order: 3; min-width: 150px; justify-content: flex-end; }
.save-status-message { font-style: italic; font-size: 14px; color: #6c757d; text-align: right; }
.save-status-message.saving { color: #ffc107; }
.save-status-message.saved { color: #28a745; }
.save-status-message.error { color: #dc3545; }
.btn-manual-save { padding: 8px 15px; background-color: #007bff; color: white; border: none; border-radius: 5px; cursor: pointer; font-size: 14px; font-weight: bold; transition: background-color 0.2s ease; }
.btn-manual-save:hover { background-color: #0056b3; }
.btn-manual-save:disabled { background-color: #6c757d; cursor: wait; opacity: 0.7; }
.section-controls-container { padding: 10px 15px; background-color: #f0f0f0; border: 1px solid #ddd; border-radius: 8px; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center;}
.section-controls-container span { font-weight: bold; font-size: 14px; color: #333; }
.btn-add-section { padding: 8px 12px; background-color: #007bff; color: white; border: none; border-radius: 5px; cursor: pointer; font-size: 14px; font-weight: bold; }
.btn-add-section:hover { background-color: #0056b3; }
.btn-add-section:disabled { background-color: #6c757d; opacity: 0.7; cursor: not-allowed; }
.quote-section { margin-bottom: 25px; border: 1px solid #ddd; border-radius: 8px; overflow: hidden; background-color: #fff; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
.quote-section-header { display: flex; justify-content: space-between; align-items: center; padding: 10px 15px; background-color: #f7f7f7; border-bottom: 1px solid #ddd; }
.quote-section-header h3 { margin: 0; color: #931011; }
.quote-section-header .btn-add-linha { font-size: 14px; padding: 8px 12px; }
.quote-section-header > div { display: flex; align-items: center; gap: 5px; }
.btn-remover-secao { padding: 8px 12px; font-size: 14px; font-weight: bold; line-height: 1; }

.quote-section-title-group {
    display: flex;
    align-items: center;
    gap: 8px;
}
.quote-section-title-group h3 {
    margin: 0;
}
.btn-abrir-config-calculadora {
    background: none;
    border: none;
    color: #495057;
    font-size: 18px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}
.btn-abrir-config-calculadora:hover {
    color: #000;
}

.btn-mover-secao {
    padding: 4px 8px;
    font-size: 14px;
    font-weight: bold;
    line-height: 1;
    background-color: #6c757d;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}
.btn-mover-secao:hover {
    background-color: #5a6268;
}
.btn-mover-secao:disabled {
    background-color: #aaa;
    opacity: 0.7;
    cursor: not-allowed;
}
.tabela-container.calculator-container {
    width: 100%;
    overflow-x: auto;
    background-color: #fff; 
    border-radius: 0 0 8px 8px; 
    padding-bottom: 1.5%; 
}
.tabela-calculo {
    width: 100%;
    border-collapse: collapse;
    min-width: 2050px; 
}
.tabela-calculo.tabela-amorim-cortina,
.tabela-calculo.tabela-amorim-toldos {
    min-width: 1720px; 
}

.tabela-calculo th,
.tabela-calculo td {
    border: 1px solid #ddd; 
    padding: 6px 8px; 
    text-align: center;
    font-size: 13px;
    vertical-align: middle;
}
.tabela-calculo th {
    background-color: #e9ecef; 
    font-size: 12px; 
    padding: 8px 5px; 
    white-space: nowrap;
}

.tabela-calculo tbody input,
.tabela-calculo tbody select {
    width: 100%;
    max-width: 120px; 
    padding: 5px;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 13px; 
}

.tabela-calculo input.resultado,
.tabela-calculo input.resultado-preco-total,
.tabela-calculo input.resultado-preco-parcelado {
    background-color: #f4f4f4; 
    font-weight: bold;
    border: none;
    text-align: right;
}

.tabela-calculo input.resultado-preco-total,
.tabela-calculo input.resultado-preco-parcelado {
    min-width: 110px; 
}

.tabela-calculo input.input-ambiente {
    min-width: 130px; 
    text-align: left;
}

.tabela-calculo input.format-money {
    text-align: right;
}
.tabela-calculo .input-valor-manual { font-weight: bold; text-align: right; min-width: 120px; }
.tabela-calculo .input-observacao { min-width: 150px; max-width: 250px; }
.tabela-calculo .select-modelo-cortina, .tabela-calculo .select-modelo-toldo,
.tabela-calculo .select-cor-acessorios, .tabela-calculo .select-comando { max-width: none; min-width: 120px; }

.tabela-calculo .select-altura-comando-motor {
    max-width: none; 
    min-width: 100px;
}
.tabela-calculo .input-altura-comando-manual {
     min-width: 100px;
}

.tabela-calculo tbody td:has(.input-largura),
.tabela-calculo tbody td:has(.input-altura),
.tabela-calculo tbody td:has(.input-pe-direito) { min-width: 80px; width: 80px; }
.tabela-calculo tbody td:has(.select-franzCortina),
.tabela-calculo tbody td:has(.select-franzBlackout) { min-width: 90px; width: 90px; }
.tabela-calculo tbody td:has(input.resultado) { min-width: 80px; width: 80px; }
.tabela-calculo tbody td:has(.select-codTecidoCortina),
.tabela-calculo tbody td:has(.select-codTecidoForro),
.tabela-calculo tbody td:has(.select-codTecidoBlackout) { min-width: 200px; }
.tabela-calculo tbody td:has(.select-confecao),
.tabela-calculo tbody td:has(.select-trilho) { min-width: 110px; }
.tabela-calculo tbody td:has(.select-instalacao) { min-width: 100px; }
.tabela-calculo tbody td:has(.input-motor),
.tabela-calculo tbody td:has(.input-outros) { min-width: 80px; }
.tabela-calculo tbody .select-codTecidoCortina,
.tabela-calculo tbody .select-codTecidoForro,
.tabela-calculo tbody .select-codTecidoBlackout,
.tabela-calculo tbody .select-confecao,
.tabela-calculo tbody .select-trilho { max-width: none; }
.col-acoes-calc { width: 60px; text-align: center; vertical-align: middle; }
.btn-remover-linha { padding: 4px 8px; font-size: 14px; line-height: 1; font-weight: bold; }
.wrapper-markups.calculator-markups { display: flex; justify-content: center; padding: 15px 10px; background: #fff; margin-top: 20px; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); position: relative; }
.calculator-markups .grupo-markups {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-end !important;
    justify-content: center !important;
    gap: 20px !important;
    flex-wrap: wrap !important;
}
.input-wrapper-relative {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
}
.label-with-icon {
    display: flex !important;
    flex-direction: row !important; 
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    margin-bottom: 4px !important;
    width: 100%;
}

.label-with-icon label {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
}

#btn-config-taxas {
    background: none !important;
    border: none !important;
    cursor: pointer !important;
    font-size: 14px !important;
    padding: 0 !important;
    margin: 0 !important;
    color: #666 !important;
    line-height: 1 !important;
    display: flex !important;
    align-items: center !important;
}

#btn-config-taxas:hover {
    transform: rotate(90deg);
    color: #000 !important;
}
#select-parcelamento-global {
    width: 100% !important;
    min-width: 170px;
}

body.dark-mode #btn-config-taxas {
    color: #aaa;
}
body.dark-mode #btn-config-taxas:hover {
    color: #fff;
}
.calculator-markups .grupo-markups div { display: flex; flex-direction: column; }
.calculator-markups .grupo-markups label { font-size: 12px; font-weight: bold; margin-bottom: 4px; color: #555; text-align: center; }
.calculator-markups .grupo-markups input,
.calculator-markups .grupo-markups select { width: 170px; padding: 6px; font-size: 14px; border: 1px solid #ccc; border-radius: 4px; }

#btn-abrir-config-calculadora { position: relative; top: 32px; transform: translateY(-50%); background: none; border: none; color: #495057; font-size: 24px; cursor: pointer; padding: 0 10px; line-height: 1; }
#btn-abrir-config-calculadora:hover { color: #000; }

.config-calculadora-content p { font-size: 14px; color: #333; text-align: center; margin-bottom: 20px; }
.modal-content h2 { text-align: center; }
.grupo-markups-modal { display: flex; justify-content: center; gap: 20px; }
.grupo-markups-modal div { display: flex; flex-direction: column; }
.grupo-markups-modal label { font-size: 12px; font-weight: bold; margin-bottom: 4px; color: #555; text-align: center; }
.grupo-markups-modal input { width: 100px; padding: 6px; font-size: 14px; text-align: center; border: 1px solid #ccc; border-radius: 4px; }
.calculator-markups .grupo-markups input.format-money { text-align: right; }
.quote-section[data-section-type="tecido"] .tabela-calculo thead tr:nth-child(2) th:nth-child(5),
.quote-section[data-section-type="tecido"] .tabela-calculo thead tr:nth-child(2) th:nth-child(7),
.quote-section[data-section-type="tecido"] .tabela-calculo thead tr:nth-child(2) th:nth-child(10),
.quote-section[data-section-type="tecido"] .tabela-calculo tbody td:nth-child(8),
.quote-section[data-section-type="tecido"] .tabela-calculo tbody td:nth-child(10),
.quote-section[data-section-type="tecido"] .tabela-calculo tbody td:nth-child(13)
{ display: none; }
#input-valor-entrada-global,
#select-frete-global { width: 120px; }
#calc-tabs-container { 
    display: flex; 
    align-items: center; 
    gap: 2px; 
    padding: 5px 10px; 
    background-color: #e0e0e0; 
    border-radius: 8px 8px 0 0; 
    overflow-x: auto;  
    scrollbar-width: thin; 
    scrollbar-color: #999 #e0e0e0; 
}
#btn-add-aba-calc { background-color: #bababa; color: #333; border: none; border-radius: 50%; width: 28px; height: 28px; font-size: 20px; font-weight: bold; cursor: pointer; line-height: 26px; text-align: center; padding: 0; margin-right: 5px; flex-shrink: 0; }
#btn-add-aba-calc:hover { background-color: #c5c5c5; }
.calc-tab { display: flex; align-items: center; gap: 8px; padding: 8px 12px; background-color: #f0f0f0; border-radius: 6px 6px 0 0; border: 1px solid #ccc; border-bottom: none; cursor: pointer; font-size: 14px; position: relative; top: 1px; max-width: 200px; flex-shrink: 0; }
.calc-tab:hover { background-color: #f7f7f7; }
.calc-tab.active { background-color: #fff; border-bottom: 1px solid #fff; font-weight: bold; }
.calc-tab-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.calc-tab-name-input { padding: 2px 4px; font-size: 14px; border: 1px solid #007bff; outline: none; max-width: 140px; }
.btn-close-aba { background: none; border: none; color: #888; font-size: 16px; font-weight: bold; padding: 0 4px; border-radius: 50%; cursor: pointer; }
.btn-close-aba:hover { color: #333; background-color: #e0e0e0; }
.calc-tab.venda-realizada { background-color: #d4edda; border-color: #c3e6cb; }
.calc-tab.venda-realizada.active { background-color: #d4edda; border-bottom-color: #d4edda; font-weight: bold; }
.calc-tab.venda-realizada .calc-tab-name { color: #155724; }
.calc-tab.venda-realizada .btn-close-aba { color: #155724; }
.col-selecionar-calc { width: 40px; }
.tabela-calculo th.col-selecionar-calc { font-size: 1.2em; }
.tabela-calculo td.col-selecionar-calc input[type="checkbox"] { width: 18px; height: 18px; cursor: pointer; }
.tabela-calculo th.col-observacao-calc {
    min-width: 150px;
}
#calculator-summary { margin-top: 20px; padding: 15px 25px; background: #fff; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); text-align: center; }
#calculator-summary h3 { margin: 0 0 10px 0; text-align: center; border-bottom: 1px solid #eee; padding-bottom: 10px; }
.summary-totals-container { display: flex; justify-content: center; gap: 0; margin-top: 10px; border-radius: 6px; overflow: hidden; border: 1px solid #ddd; max-width: 100%; display: inline-flex; margin-left: auto; margin-right: auto; }
.summary-total-box { flex: 1 1 auto; padding: 10px; text-align: center; background-color: #e9ecef; }
.summary-total-box + .summary-total-box { border-left: 1px solid #ddd; }
.summary-total-box label { display: block; font-size: 12px; font-weight: bold; color: #555; margin-bottom: 5px; text-transform: uppercase; }
.summary-total-box span { display: block; font-size: 1.2em; font-weight: bold; color: #007bff; }
#summary-total-entrada { background-color: var(--cor-medidas); }
#summary-total-entrada label { color: #8a6d00; }
#summary-total-entrada span { color: #8a6d00; }
.summary-venda-container { text-align: center; margin-top: 15px; padding-top: 10px; border-top: 1px solid #eee; }
.summary-venda-container input[type="checkbox"] { width: 16px; height: 16px; margin-right: 8px; vertical-align: middle; cursor: pointer; }
.summary-venda-container label { font-size: 1.1em; font-weight: bold; color: #333; vertical-align: middle; cursor: pointer; }
.summary-print-container {
    text-align: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}
#btn-imprimir-orcamento {
    font-size: 16px;
    padding: 10px 20px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}
#btn-imprimir-orcamento:hover {
    background-color: #218838;
}
.tabela-calculo th.col-acoes-calc,
.tabela-calculo td.col-acoes-calc {
    width: 50px !important;
    min-width: 50px !important;
    max-width: 50px !important;
}

.tabela-calculo th.col-selecionar-calc,
.tabela-calculo td.col-selecionar-calc {
    width: 40px !important;
    min-width: 40px !important;
    max-width: 40px !important;
}

@media screen {
    body.dark-mode { background-color: #121212; color: #e0e0e0; }
    body.dark-mode .calculator-header { background: #1e1e1e; border-color: #333; box-shadow: 0 2px 8px rgba(0,0,0,0.3); }
    body.dark-mode #btn-voltar-clientes { background-color: #4a4a4a; }
    body.dark-mode #btn-voltar-clientes:hover { background-color: #5a5a5a; }
    body.dark-mode .save-status-message { color: #888; }
    body.dark-mode .save-status-message.saving { color: #ffc107; }
    body.dark-mode .save-status-message.saved { color: #28a745; }
    body.dark-mode .save-status-message.error { color: #dc3545; }
    body.dark-mode .btn-manual-save { background-color: #007bff; }
    body.dark-mode .btn-manual-save:hover { background-color: #0056b3; }
    body.dark-mode .btn-manual-save:disabled { background-color: #5a6268; }
    body.dark-mode .section-controls-container { background-color: #2a2a2a; border-color: #333; }
    body.dark-mode .section-controls-container span { color: #ccc; }
    body.dark-mode .quote-section { border-color: #333; background-color: #1e1e1e; }
    body.dark-mode .quote-section-header { background-color: #252525; border-bottom-color: #333; }
    body.dark-mode .quote-section-header h3 { color: #e06c6e; }
    body.dark-mode .btn-mover-secao { background-color: #4a4a4a; }
    body.dark-mode .btn-mover-secao:hover { background-color: #5a5a5a; }
    body.dark-mode .btn-mover-secao:disabled { background-color: #333; opacity: 0.7; }
    body.dark-mode .tabela-container.calculator-container { background: #1e1e1e; }
    body.dark-mode .tabela-calculo { background-color: #252525; }
    body.dark-mode .tabela-calculo th,
    body.dark-mode .tabela-calculo td { border-color: #444; }
    body.dark-mode .tabela-calculo th { background-color: #2a2a2a; color: #e0e0e0; }
    body.dark-mode .tabela-calculo tbody input,
    body.dark-mode .tabela-calculo tbody select { background-color: #333; color: #e0e0e0; border-color: #555; }

    body.dark-mode .tabela-calculo input.resultado,
    body.dark-mode .tabela-calculo input.resultado-preco-total,
    body.dark-mode .tabela-calculo input.resultado-preco-parcelado { background-color: #2a2a2a; color: #f0f0f0; border: none; }


    body.dark-mode .wrapper-markups.calculator-markups { background: #1e1e1e; }
    body.dark-mode .calculator-markups .grupo-markups input,
    body.dark-mode .calculator-markups .grupo-markups select { background-color: #333; color: #e0e0e0; border-color: #555; }
    body.dark-mode .calculator-markups .grupo-markups label { color: #aaa; }
    
    body.dark-mode .btn-abrir-config-calculadora { color: #888; }
    body.dark-mode .btn-abrir-config-calculadora:hover { color: #ccc; }
    
    body.dark-mode .config-calculadora-content p { color: #ccc; }
    body.dark-mode .grupo-markups-modal input { background-color: #333; color: #e0e0e0; border-color: #555; }
    body.dark-mode .grupo-markups-modal label { color: #aaa; }

    body.dark-mode #calc-tabs-container { 
    background-color: #2a2a2a; 
    scrollbar-color: #555 #2a2a2a; 
}
    body.dark-mode #btn-add-aba-calc { background-color: #555; color: #eee; }
    body.dark-mode #btn-add-aba-calc:hover { background-color: #666; }
    body.dark-mode .calc-tab { background-color: #333; border-color: #444; color: #ccc; }
    body.dark-mode .calc-tab:hover { background-color: #3a3a3a; }
    body.dark-mode .calc-tab.active { background-color: #1e1e1e; border-bottom-color: #1e1e1e; color: #fff; }
    body.dark-mode .btn-close-aba { color: #888; }
    body.dark-mode .btn-close-aba:hover { color: #eee; background-color: #555; }
    body.dark-mode .calc-tab.venda-realizada { background-color: #1a4d2e; border-color: #2a6f47; }
    body.dark-mode .calc-tab.venda-realizada.active { background-color: #1a4d2e; border-bottom-color: #1a4d2e; }
    body.dark-mode .calc-tab.venda-realizada .calc-tab-name,
    body.dark-mode .calc-tab.venda-realizada .btn-close-aba { color: #c6f6d5; }

    body.dark-mode #calculator-summary { background: #1e1e1e; border-color: #333; box-shadow: 0 2px 8px rgba(0,0,0,0.3); }
    body.dark-mode #calculator-summary h3 { border-bottom-color: #333; color: #f0f0f0; } 
    body.dark-mode .summary-totals-container { border-color: #444; }
    body.dark-mode .summary-total-box { background-color: #2a2a2a; }
    body.dark-mode .summary-total-box + .summary-total-box { border-left-color: #444; }
    body.dark-mode .summary-total-box:first-child { border-right-color: #444; }
    body.dark-mode .summary-total-box label { color: #aaa; }
    body.dark-mode .summary-total-box span { color: #4dabf7; }
    body.dark-mode #summary-total-entrada {
        background-color: #2c2b27;
    }
    body.dark-mode #summary-total-entrada label {
        color: #e6b90f; 
    }
    body.dark-mode #summary-total-entrada span {
        color: #e6b90f; 
    }

    body.dark-mode .summary-venda-container { border-top-color: #333; }
    body.dark-mode .summary-venda-container label { color: #e0e0e0; }
    body.dark-mode .summary-print-container { border-top-color: #333; }
    body.dark-mode #btn-imprimir-orcamento {
        background-color: #28a745;
        color: white;
    }
    body.dark-mode #btn-imprimir-orcamento:hover {
        background-color: #38a169;
    }
    .btn-move-secao {
        background: none;
        border: none;
        font-size: 0.9em;
        color: #6c757d;
        padding: 4px 2px;
        line-height: 1;
        vertical-align: middle;
        cursor: pointer;
    }
    .btn-move-secao:hover {
        color: #333;
    }
    body.dark-mode .btn-move-secao {
        color: #888;
    }
    body.dark-mode .btn-move-secao:hover {
        color: #ccc;
    }
} 

.btn-print-orcamento {
    background: none;
    border: none;
    color: #495057;
    font-size: 22px;
    cursor: pointer;
    padding: 0 5px;
    vertical-align: middle;
    line-height: 1;
    margin-right: 5px;
}
.btn-print-orcamento:hover {
    color: #000;
}
body.dark-mode .btn-print-orcamento {
    color: #888;
}
body.dark-mode .btn-print-orcamento:hover {
    color: #ccc;
}
.quote-section {
    position: relative; 
}

.quote-section.animating {
    transition: transform 0.3s ease-in-out;
    z-index: 10;
}

.tabela-calculo .select-lado-comando {
    min-width: 90px;
}

#summary-total-geral-box {
    background-color: #f8f9fa; 
}
#summary-total-geral-box label {
    color: #6c757d;
}
#summary-total-geral-box span {
    color: #333; 
}

body.dark-mode #summary-total-geral-box {
    background-color: #252525;
}
body.dark-mode #summary-total-geral-box label {
    color: #aaa;
}
body.dark-mode #summary-total-geral-box span {
    color: #fff;
}
#container-inputs-taxas {
    display: grid;
    grid-template-columns: repeat(auto-fit, 100px) !important; 
    justify-content: center !important; 
    gap: 10px !important; 
    padding: 10px 5px;
}
#container-inputs-taxas div {
    width: 100px !important; 
    height: 65px !important; 
    display: flex;
    flex-direction: column;
    align-items: center !important; 
    justify-content: center;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 5px;
    transition: transform 0.2s, box-shadow 0.2s;
}

#container-inputs-taxas div:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 6px rgba(0,0,0,0.05);
}

#container-inputs-taxas label {
    font-size: 11px !important;
    font-weight: bold !important;
    margin-bottom: 4px !important;
    color: #555;
    text-transform: uppercase;
    white-space: nowrap; 
}

#container-inputs-taxas input {
    width: 80% !important; 
    text-align: center;         
    padding: 2px !important;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-weight: bold;
    font-size: 13px;
    color: #333;
    height: 24px !important;
}

#container-inputs-taxas input:focus {
    border-color: #28a745;
    box-shadow: 0 0 0 2px rgba(40, 167, 69, 0.2);
    outline: none;
}

body.dark-mode #container-inputs-taxas div {
    background-color: rgba(255, 255, 255, 0.05); 
    border-color: #444;
}

body.dark-mode #container-inputs-taxas div:hover {
    background-color: rgba(255, 255, 255, 0.08);
}

body.dark-mode #container-inputs-taxas label {
    color: #e0e0e0;
}

body.dark-mode #container-inputs-taxas input {
    background-color: #252525;
    border-color: #555;
    color: #fff;
}

body.dark-mode #container-inputs-taxas input:focus {
    border-color: #28a745; 
}
.summary-obs-container {
    padding: 10px;
    background-color: #fff;
    border-bottom: 1px solid #ccc;
}

.summary-obs-container label {
    display: block;
    font-weight: bold;
    font-size: 12px;
    margin-bottom: 5px;
    color: #333;
}

.summary-obs-container textarea {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 8px;
    font-family: inherit;
    font-size: 12px;
    resize: vertical;
    box-sizing: border-box; 
}


@media (max-width: 768px) {
    .calculator-header { display: flex; align-items: center; gap: 10px; padding: 10px; flex-wrap: wrap; }
    #btn-voltar-clientes { order: 1; width: auto; flex-shrink: 0; font-size: 14px; padding: 8px 12px; margin-right: 0; }
    .calculator-header h2 { order: 2; flex-grow: 1; text-align: center; width: auto; min-width: 100px; font-size: 16px; margin: 0 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .save-status-wrapper { order: 3; flex-grow: 0; flex-shrink: 0; min-width: 0; text-align: right; }
    .save-status-message { font-size: 12px; }
    .tabela-calculo th, .tabela-calculo td { font-size: 12px; }
    .wrapper-markups.calculator-markups { flex-direction: column; align-items: center; gap: 15px; padding: 15px; }
    
    .quote-section-title-group .btn-abrir-config-calculadora { 
        font-size: 20px; 
    }

    .calculator-markups .grupo-markups { flex-wrap: wrap; justify-content: center; }
    .calculator-markups .grupo-markups input, .calculator-markups .grupo-markups select { width: 150px; }
    #select-parcelamento-global { width: 170px; }
    #input-valor-entrada-global, #select-frete-global { width: 100px; }
}
@media (max-width: 600px) {
    .print-options-grid {
        grid-template-columns: 1fr;
    }

    #modal-config-print .checkbox-wrapper-simple {
        padding: 12px; 
    }
    
    #modal-config-print label {
        font-size: 16px; 
    }
}

@media print {
    @page { 
        size: A4 landscape; 
        margin: 4mm; 
    }

    html, body {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        background: #fff !important;
        overflow: visible !important;
    }

    body > *:not(main), nav, header, 
    .calculator-header button, .section-controls-container, 
    .btn-add-linha, .btn-remover-secao, .btn-move-secao, .btn-abrir-config-calculadora,
    .col-acoes-calc, .col-selecionar-calc, .wrapper-markups button, 
    .btn-remover-linha, .btn-add-section, .save-status-wrapper,
    #calc-tabs-container, .toast, #loading-overlay, .modal-overlay,
    .quote-section-title-group button, .amorim-actions-header button,
    #btn-voltar-clientes, .btn-print-orcamento, #btn-config-taxas,
    .btn-close-aba, .btn-manual-save, .save-status-message, 
    .btn-adicionar, .btn-excluir, .checkbox-wrapper-simple {
        display: none !important;
    }

    #calculator-view {
        display: block !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        zoom: 0.60 !important;
    }

    main, #tab-clientes, .tabela-container.calculator-container {
        display: block !important;
        width: 100% !important;
        border: none !important;
        overflow: visible !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .tabela-calculo {
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        table-layout: fixed !important;
        border-collapse: collapse !important;
        margin-bottom: 10px !important;
    }

    .tabela-calculo col.print-col-acoes, 
    .tabela-calculo col.print-col-selecionar,
    .col-acoes-calc, 
    .col-selecionar-calc,
    .col-hidden, 
    td[style*="display: none"],
    th[style*="display: none"],
    .hidden-print-cell {
        display: none !important;
        width: 0 !important;
        padding: 0 !important;
        border: none !important;
    }

    .tabela-calculo th:not(.col-acoes-calc):not(.col-selecionar-calc):not(.col-hidden):not([style*="display: none"]), 
    .tabela-calculo td:not(.col-acoes-calc):not(.col-selecionar-calc):not(.col-hidden):not([style*="display: none"]) {
        display: table-cell !important;
    }
    .tabela-calculo th {
        background-color: #ddd !important;
        font-weight: bold !important;
        text-align: center !important;
        vertical-align: middle !important;
        text-transform: uppercase;
        border: 1px solid #000 !important;
        padding: 4px 2px !important;
        font-size: 10px !important;
        color: #000 !important;
    }

    .tabela-calculo td {
        text-align: left !important;
        border: 1px solid #000 !important;
        padding: 2px !important;
        font-size: 10px !important;
        vertical-align: middle !important;
    }

    .tabela-calculo input, .tabela-calculo select {
        border: none !important;
        background: transparent !important;
        padding: 0 !important;
        margin: 0 !important;
        height: auto !important;
        font-size: 10px !important;
        color: #000 !important;
        text-align: left !important;
        text-align-last: left !important;
        -webkit-appearance: none;
        appearance: none;
        text-indent: 0 !important;
        box-shadow: none !important;
        width: 100% !important;
    }

    .tabela-calculo .input-largura,
    .tabela-calculo .input-altura,
    .tabela-calculo .select-franzCortina,
    .tabela-calculo .select-franzBlackout,
    .tabela-calculo .select-trilho,
    .tabela-calculo .select-instalacao {
        text-align: center !important;
        text-align-last: center !important;
    }

    .tabela-calculo .format-money,
    .tabela-calculo .resultado-preco-total,
    .tabela-calculo .resultado-preco-parcelado {
        text-align: right !important;
        text-align-last: right !important;
    }
    .tabela-calculo input::placeholder {
        color: transparent !important;
        opacity: 0 !important;
        visibility: hidden !important;
    }
    .calculator-header { display: block !important; border-bottom: 2px solid #000; margin-bottom: 5px; text-align: center !important; }
    .calculator-header h2 { font-size: 18px !important; margin: 0; color: #000; text-align: center !important; }
    
    .quote-section { border: 2px solid #000 !important; margin-bottom: 10px !important; page-break-inside: avoid; }
    .quote-section-header { background: #ccc !important; border-bottom: 1px solid #000 !important; padding: 2px 5px; }
    .quote-section-header h3 { margin: 0; font-size: 12px !important; color: #000 !important; text-align: left !important; }

    .wrapper-markups { border: 1px solid #000 !important; margin-top: 5px; padding: 2px; display: flex; justify-content: center; gap: 20px; }
    .wrapper-markups label { font-size: 9px !important; font-weight: bold; }
    .wrapper-markups input, .wrapper-markups select { border: 1px solid #000 !important; width: 90px !important; text-align: center !important; }
    
    #calculator-summary { border: 2px solid #000 !important; margin-top: 5px; padding: 0; page-break-inside: avoid; }
    #calculator-summary h3 { background: #eee !important; margin: 0; padding: 2px; border-bottom: 1px solid #000; text-align: center !important; font-size: 12px; }
    .summary-totals-container { border: none !important; }
    .summary-total-box { border-right: 1px solid #000 !important; padding: 2px; text-align: center !important; }
    .summary-total-box span { color: #000 !important; font-weight: bold; font-size: 12px; }
    .print-hide-tecido-medidas [data-section-type="tecido"] .sessao-medidas,
    .print-hide-tecido-medidas [data-section-type="tecido"] tbody td:nth-child(4),
    .print-hide-tecido-medidas [data-section-type="tecido"] tbody td:nth-child(5) { display: none !important; }

    .print-hide-tecido-cortina [data-section-type="tecido"] .sessao-cortina,
    .print-hide-tecido-cortina [data-section-type="tecido"] tbody td:nth-child(6),
    .print-hide-tecido-cortina [data-section-type="tecido"] tbody td:nth-child(7) { display: none !important; }

    .print-hide-tecido-forro [data-section-type="tecido"] .sessao-forro,
    .print-hide-tecido-forro [data-section-type="tecido"] tbody td:nth-child(9) { display: none !important; }

    .print-hide-tecido-blackout [data-section-type="tecido"] .sessao-blackout,
    .print-hide-tecido-blackout [data-section-type="tecido"] tbody td:nth-child(11),
    .print-hide-tecido-blackout [data-section-type="tecido"] tbody td:nth-child(12) { display: none !important; }

    .print-hide-tecido-valores [data-section-type="tecido"] .sessao-valores,
    .print-hide-tecido-valores [data-section-type="tecido"] tbody td:nth-child(14),
    .print-hide-tecido-valores [data-section-type="tecido"] tbody td:nth-child(15),
    .print-hide-tecido-valores [data-section-type="tecido"] tbody td:nth-child(16),
    .print-hide-tecido-valores [data-section-type="tecido"] tbody td:nth-child(17) { display: none !important; }

    .print-hide-tecido-orcamento [data-section-type="tecido"] .sessao-orcamento,
    .print-hide-tecido-orcamento [data-section-type="tecido"] tbody td:nth-child(18),
    .print-hide-tecido-orcamento [data-section-type="tecido"] tbody td:nth-child(19),
    .print-hide-tecido-orcamento [data-section-type="tecido"] tbody td:nth-child(20) { display: none !important; }
    .print-hide-amorim-cortina-medidas [data-section-type="amorim"] .sessao-medidas,
    .print-hide-amorim-cortina-medidas [data-section-type="amorim"] tbody td:nth-child(4),
    .print-hide-amorim-cortina-medidas [data-section-type="amorim"] tbody td:nth-child(5) { display: none !important; }

    .print-hide-amorim-cortina-modelo [data-section-type="amorim"] .sessao-cortina,
    .print-hide-amorim-cortina-modelo [data-section-type="amorim"] tbody td:nth-child(6),
    .print-hide-amorim-cortina-modelo [data-section-type="amorim"] tbody td:nth-child(7),
    .print-hide-amorim-cortina-modelo [data-section-type="amorim"] tbody td:nth-child(8) { display: none !important; }

    .print-hide-amorim-cortina-detalhes [data-section-type="amorim"] .sessao-detalhes,
    .print-hide-amorim-cortina-detalhes [data-section-type="amorim"] tbody td:nth-child(9),
    .print-hide-amorim-cortina-detalhes [data-section-type="amorim"] tbody td:nth-child(10),
    .print-hide-amorim-cortina-detalhes [data-section-type="amorim"] tbody td:nth-child(11),
    .print-hide-amorim-cortina-detalhes [data-section-type="amorim"] tbody td:nth-child(12) { display: none !important; }

    .print-hide-amorim-cortina-orcamento [data-section-type="amorim"] .sessao-valores,
    .print-hide-amorim-cortina-orcamento [data-section-type="amorim"] .sessao-orcamento,
    .print-hide-amorim-cortina-orcamento [data-section-type="amorim"] tbody td:nth-child(n+13) { display: none !important; }
    .print-hide-amorim-toldo-medidas [data-section-type="toldos"] .sessao-medidas,
    .print-hide-amorim-toldo-medidas [data-section-type="toldos"] tbody td:nth-child(4),
    .print-hide-amorim-toldo-medidas [data-section-type="toldos"] tbody td:nth-child(5) { display: none !important; }

    .print-hide-amorim-toldo-modelo [data-section-type="toldos"] .sessao-cortina,
    .print-hide-amorim-toldo-modelo [data-section-type="toldos"] tbody td:nth-child(6),
    .print-hide-amorim-toldo-modelo [data-section-type="toldos"] tbody td:nth-child(7),
    .print-hide-amorim-toldo-modelo [data-section-type="toldos"] tbody td:nth-child(8) { display: none !important; }

    .print-hide-amorim-toldo-detalhes [data-section-type="toldos"] .sessao-detalhes,
    .print-hide-amorim-toldo-detalhes [data-section-type="toldos"] tbody td:nth-child(9),
    .print-hide-amorim-toldo-detalhes [data-section-type="toldos"] tbody td:nth-child(10),
    .print-hide-amorim-toldo-detalhes [data-section-type="toldos"] tbody td:nth-child(11),
    .print-hide-amorim-toldo-detalhes [data-section-type="toldos"] tbody td:nth-child(12) { display: none !important; }

    .print-hide-amorim-toldo-orcamento [data-section-type="toldos"] .sessao-valores,
    .print-hide-amorim-toldo-orcamento [data-section-type="toldos"] .sessao-orcamento,
    .print-hide-amorim-toldo-orcamento [data-section-type="toldos"] tbody td:nth-child(n+13) { display: none !important; }
}