* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cinzel', serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

/* Navegação */
.navbar {
    background: linear-gradient(135deg, #1a3d1f, #2c5530);
    padding: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.nav-logo {
    color: white;
    font-size: 1.8em;
    font-weight: 700;
    letter-spacing: 1px;
}

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

.nav-menu li {
    margin-left: 30px;
}

.nav-link {
    color: white;
    text-decoration: none;
    padding: 20px 15px;
    display: block;
    transition: background-color 0.3s ease;
    font-weight: 500;
}

.nav-link:hover,
.nav-link.active {
    background-color: rgba(255, 255, 255, 0.1);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}header {
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, #1a4a1a, #0d2818);
    color: #ffd700;
    border-radius: 15px;
    margin-bottom: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 215, 0, 0.1) 0%, transparent 50%, rgba(255, 215, 0, 0.1) 100%);
    pointer-events: none;
}

header h1 {
    font-family: 'Cinzel', serif;
    font-size: 4em;
    margin-bottom: 15px;
    font-weight: 400;
    letter-spacing: 4px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    color: #ffd700;
    position: relative;
    z-index: 1;
}

header h2 {
    font-family: 'Cinzel', serif;
    font-size: 1.6em;
    margin-bottom: 15px;
    font-weight: 400;
    opacity: 0.95;
    letter-spacing: 1px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    color: #ffd700;
    position: relative;
    z-index: 1;
}

.version {
    font-family: 'Cinzel', serif;
    font-size: 0.9em;
    opacity: 0.8;
    margin-bottom: 15px;
    color: #ffd700;
    position: relative;
    z-index: 1;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Estilos para imagens hero das páginas */
.hero-image {
    display: flex;
    justify-content: center;
    margin: 1.5rem 0;
}

.hero-image img {
    transition: transform 0.3s ease;
}

.hero-image img:hover {
    transform: scale(1.02);
}

.contador-valoracoes {
    background: rgba(255, 215, 0, 0.15);
    padding: 15px 30px;
    border-radius: 25px;
    display: inline-block;
    margin-bottom: 20px;
    border: 2px solid rgba(255, 215, 0, 0.3);
    text-align: center;
}

.contador-label {
    font-family: 'Cinzel', serif;
    color: #ffd700;
    font-weight: 400;
    font-size: 1em;
    margin-right: 10px;
}

.contador-numero {
    font-family: 'Cinzel', serif;
    color: #ffd700;
    font-weight: 700;
    font-size: 1.5em;
    background: rgba(255, 215, 0, 0.3);
    padding: 8px 15px;
    border-radius: 15px;
    display: inline-block;
    min-width: 40px;
    text-align: center;
}

.page-header {
    background: linear-gradient(135deg, #4a7c59, #6b9b6f);
}

.page-header h1 {
    font-size: 2.5em;
}

.page-header p {
    font-size: 1.1em;
    opacity: 0.9;
}

/* Slideshow apenas dos biomas */
.bioma-visual {
    margin-bottom: 30px;
}

.bioma-image-container {
    position: relative;
    width: 100%;
    height: 300px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.bioma-image-container:hover {
    transform: translateY(-5px);
}

.bioma-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.5s ease;
}

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

.input-group {
    margin-bottom: 25px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #2c5530;
}

.input-group select,
.input-group input,
.input-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.input-group select:focus,
.input-group input:focus,
.input-group textarea:focus {
    outline: none;
    border-color: #4a7c59;
    box-shadow: 0 0 0 3px rgba(74, 124, 89, 0.1);
}

.input-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Parâmetros movidos para baixo */
.parametros-container {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    border-left: 4px solid #4a7c59;
}

.parametros-container h3 {
    color: #2c5530;
    margin-bottom: 20px;
    font-size: 1.5em;
    text-align: center;
}

.parametros-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
}

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

.parametro-item label {
    font-weight: 500;
    color: #2c5530;
    margin-bottom: 5px;
    font-size: 0.9em;
}

.parametro-item input {
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.parametro-item input:focus {
    outline: none;
    border-color: #4a7c59;
    box-shadow: 0 0 0 3px rgba(74, 124, 89, 0.1);
}

.parametro-item input[readonly] {
    background-color: #f8f9fa;
    color: #6c757d;
}

.btn-calcular,
.btn-enviar,
.btn-download,
.btn-copiar,
.btn-nova-mensagem,
.btn-download-pdf {
    background: linear-gradient(135deg, #2c5530, #4a7c59);
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 6px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-calcular,
.btn-enviar {
    width: 100%;
}

.btn-calcular:hover,
.btn-enviar:hover,
.btn-download:hover,
.btn-copiar:hover,
.btn-nova-mensagem:hover,
.btn-download-pdf:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(44, 85, 48, 0.3);
}

.btn-calcular:active,
.btn-enviar:active,
.btn-download:active,
.btn-copiar:active,
.btn-nova-mensagem:active,
.btn-download-pdf:active {
    transform: translateY(0);
}

.btn-calcular:disabled,
.btn-enviar:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

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

.resultado-container h3 {
    color: #2c5530;
    margin-bottom: 25px;
    font-size: 1.8em;
    text-align: center;
    border-bottom: 2px solid #4a7c59;
    padding-bottom: 10px;
}

.resultado-secao {
    margin-bottom: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #4a7c59;
}

.resultado-secao h4 {
    color: #2c5530;
    margin-bottom: 15px;
    font-size: 1.3em;
}

.valores-container {
    display: grid;
    gap: 10px;
}

.valor-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: white;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.valor-item .label {
    font-weight: 500;
    color: #495057;
}

.valor {
    font-weight: 600;
    color: #2c5530;
    font-size: 1.1em;
}

.valor-destaque {
    font-weight: 700;
    color: #2c5530;
    font-size: 1.3em;
    text-align: center;
    display: block;
    padding: 15px;
    background: white;
    border-radius: 6px;
    border: 2px solid #4a7c59;
}

.valor-total {
    font-weight: 700;
    color: #d63384;
    font-size: 1.2em;
}

.valor-destaque-medio {
    background: #e9ecef !important;
    border: 2px solid #4a7c59 !important;
}

.totais {
    background: linear-gradient(135deg, #e8f5e8, #f0f8f0);
    border-left-color: #2c5530;
}

/* Barra de Cookies */
.cookie-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #2c5530, #4a7c59);
    color: white;
    padding: 20px;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    animation: slideUp 0.5s ease-out;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.cookie-text h4 {
    margin: 0 0 8px 0;
    font-size: 1.2em;
    font-weight: 600;
}

.cookie-text p {
    margin: 0;
    font-size: 0.95em;
    opacity: 0.9;
    line-height: 1.4;
}

.cookie-buttons {
    display: flex;
    gap: 15px;
    flex-shrink: 0;
}

.btn-cookie {
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-cookie.accept {
    background: #28a745;
    color: white;
}

.btn-cookie.accept:hover {
    background: #218838;
    transform: translateY(-2px);
}

.btn-cookie.reject {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-cookie.reject:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

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

.relatorio-container {
    margin-top: 30px;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

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

.relatorio-container h4 {
    color: #2c5530;
    font-size: 1.4em;
    margin: 0;
    flex: 1;
    min-width: 300px;
}

.relatorio-acoes {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.btn-download,
.btn-feedback {
    padding: 10px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.btn-download {
    background: #4a7c59;
    color: white;
}

.btn-download:hover {
    background: #2c5530;
    transform: translateY(-2px);
}

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

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

.texto-relatorio {
    line-height: 1.6;
    color: #333;
    font-family: 'Times New Roman', Georgia, serif;
    font-size: 1em;
    background: #fafaf5;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #d4d0c8;
    overflow-x: auto;
}

/* Páginas específicas */
.metodologia-container,
.contato-container {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.referencia-metodologia {
    text-align: center;
    padding: 40px 20px;
}

.referencia-metodologia h3 {
    color: #2c5530;
    margin-bottom: 20px;
    font-size: 1.5em;
}

.citacao-texto {
    font-size: 1.1em;
    line-height: 1.8;
    color: #495057;
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    border-left: 4px solid #4a7c59;
    font-style: italic;
}

.link-acesso {
    color: #4a7c59;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.link-acesso:hover {
    border-bottom-color: #4a7c59;
}

.contato-form {
    max-width: 600px;
    margin: 0 auto;
}

.google-forms-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.google-forms-container iframe {
    width: 100%;
    border: none;
    border-radius: 8px;
}

.mensagem-sucesso,
.mensagem-erro {
    text-align: center;
    padding: 30px;
    border-radius: 8px;
    margin-top: 20px;
}

.mensagem-sucesso {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.mensagem-erro {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.mensagem-sucesso h3,
.mensagem-erro h3 {
    margin-bottom: 10px;
}

.btn-nova-mensagem {
    margin-top: 15px;
    font-size: 16px;
    padding: 12px 25px;
}

/* Footer */
.footer {
    text-align: center;
    margin-top: 50px;
    padding: 30px 20px;
    background: linear-gradient(135deg, #1a3d1f, #2c5530);
    color: #ffd700;
    border-radius: 15px;
    border: none;
}

.footer p {
    font-family: Arial, sans-serif;
    margin: 0;
    font-size: 0.9em;
    opacity: 0.9;
    font-weight: normal;
}

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

    .nav-menu {
        margin-top: 10px;
    }

    .nav-menu li {
        margin-left: 0;
        margin-right: 20px;
    }

    .nav-link {
        padding: 10px 15px;
    }

    .container {
        padding: 10px;
    }
    
    header h1 {
        font-size: 2.2em;
    }
    
    header h2 {
        font-size: 1.2em;
    }
    
    .bioma-image-container {
        height: 200px;
    }

    .parametros-grid {
        grid-template-columns: 1fr;
    }
    
    .form-container,
    .resultado-container,
    .metodologia-container,
    .contato-container {
        padding: 20px;
    }
    
    .valor-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .relatorio-header {
        flex-direction: column;
        align-items: stretch;
    }

    .relatorio-header h4 {
        text-align: center;
    }

    .google-forms-container {
        max-width: 100%;
        margin: 0;
    }

    .google-forms-container iframe {
        height: 1000px;
    }

    /* Responsividade da barra de cookies */
    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .cookie-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }

    .btn-cookie {
        flex: 1;
        min-width: 140px;
    }
}

/* Animações */
.bioma-image-container {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.btn-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2.5px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    vertical-align: middle;
    margin-right: 6px;
}

.loading {
    opacity: 0.6;
    pointer-events: none;
}

.error {
    color: #dc3545;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    padding: 10px;
    border-radius: 6px;
    margin-top: 10px;
}



/* Estilos específicos para páginas secundárias (Metodologia e Contato) */
.page-header-light {
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    color: #1a365d;
    border-radius: 15px;
    margin-bottom: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.page-header-light h1 {
    font-family: 'Cinzel', serif;
    font-size: 4em;
    margin-bottom: 15px;
    font-weight: 400;
    letter-spacing: 4px;
    color: #1a365d;
    position: relative;
    z-index: 1;
}

.page-header-light h2 {
    font-family: 'Cinzel', serif;
    font-size: 1.6em;
    margin-bottom: 15px;
    font-weight: 400;
    opacity: 0.95;
    letter-spacing: 1px;
    color: #1a365d;
    position: relative;
    z-index: 1;
}

.page-header-light .bioma-image-container {
    position: relative;
    width: 100%;
    height: 300px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.page-header-light .bioma-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.page-header-light .bioma-image:hover {
    transform: scale(1.05);
}


/* v7: campos novos do formulário e avisos */
.ajuda-campo {
    font-size: 0.85em;
    color: #555;
    line-height: 1.5;
    margin: 6px 0 0 0;
}
.caixa-opcao {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.95em;
}
.caixa-opcao input[type="checkbox"],
.caixa-opcao input[type="radio"] {
    width: 18px;
    height: 18px;
    flex: none;
}
.titulo-secao-form {
    font-family: 'Cinzel', serif;
    color: #2c5530;
    margin-bottom: 4px;
}
.aviso-campo,
.aviso-parametro {
    display: block;
    font-size: 0.85em;
    color: #8b4513;
    background: #fef9e7;
    border-left: 3px solid #d4ac0d;
    border-radius: 3px;
    padding: 6px 10px;
    margin-top: 6px;
    line-height: 1.5;
}
.nota-parametro {
    display: block;
    font-size: 0.8em;
    color: #666;
    margin-top: 3px;
    line-height: 1.4;
}
.parametro-item select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.95em;
    background: white;
}
.painel-erro {
    background: #fdecea;
    border-left: 4px solid #c62828;
    border-radius: 6px;
    padding: 16px 20px;
    margin: 20px 0;
    line-height: 1.6;
}
.painel-erro h4 {
    color: #c62828;
    margin-bottom: 8px;
}

/* v7: lucro do ilícito ambiental */
.campos-lia {
    margin-top: 10px;
    padding: 12px 14px;
    background: #f8faf8;
    border-left: 3px solid #4a7c59;
    border-radius: 4px;
}
.campos-lia label { margin-top: 10px; }

/* v7.1.10: gradação do dano extrapatrimonial pelos critérios do STJ */
#grupoGradacao summary {
    cursor: pointer;
    font-weight: 600;
    color: #2c5530;
    padding: 6px 0;
}
.gradacao {
    margin-top: 10px;
    padding: 12px 14px;
    background: #f8faf8;
    border-left: 3px solid #4a7c59;
    border-radius: 4px;
}
.gradacao-item { margin-bottom: 16px; }
.gradacao-item:last-child { margin-bottom: 4px; }
.gradacao-cabeca {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: baseline;
    gap: 2px 12px;
    margin-bottom: 6px;
}
.gradacao-nome { font-weight: 500; color: #2c5530; }
.gradacao-efeito { font-size: 0.85em; color: #555; }
.gradacao-escala {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    border: 1px solid #c9d6c9;
    border-radius: 8px;
    overflow: hidden;
    background: linear-gradient(90deg, #d6e6f2 0%, #e9f2ea 30%, #f6f4ee 50%, #fbe6cf 72%, #f4c9bd 100%);
}
.gradacao .gradacao-opcao {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    margin: 0;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: 600;
    color: #33473a;
    border-left: 1px solid rgba(44, 85, 48, 0.15);
    user-select: none;
}
.gradacao .gradacao-opcao:first-child { border-left: 0; }
.gradacao .gradacao-opcao input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    margin: 0;
    padding: 0;
    border: 0;
}
.gradacao .gradacao-opcao span {
    padding: 4px 8px;
    border-radius: 999px;
    border: 2px solid transparent;
    white-space: nowrap;
}
.gradacao .gradacao-opcao:hover span { border-color: rgba(44, 85, 48, 0.35); }
.gradacao .gradacao-opcao input:checked + span {
    background: #2c5530;
    border-color: #2c5530;
    color: #fff;
}
.gradacao .gradacao-opcao input:focus-visible + span {
    outline: 3px solid #1a5276;
    outline-offset: 2px;
}
.gradacao-rodape {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 16px;
    margin-top: 10px;
}
.gradacao-total { margin: 0; font-weight: 600; color: #2c5530; }
.btn-gradacao-meio {
    background: none;
    border: 1px solid #4a7c59;
    color: #2c5530;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 0.9em;
    font-family: inherit;
    cursor: pointer;
}
.btn-gradacao-meio:hover { background: #eef5ee; }
@media (max-width: 420px) {
    .gradacao { padding: 10px 8px; }
    .gradacao .gradacao-opcao span { padding: 4px 3px; }
}

/* v7.1.13: várias áreas (fila do arquivo), recorte das áreas protegidas e carrinho */
.visualmente-oculto {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}
.fila-poligonos {
    margin-top: 8px;
    padding: 10px 12px;
    background: #f8faf8;
    border-left: 3px solid #4a7c59;
    border-radius: 4px;
    font-size: 0.9em;
    line-height: 1.5;
}
.fila-poligonos p { margin: 0 0 8px 0; }
.fila-acoes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.btn-fila {
    background: #4a7c59;
    color: #fff;
    border: 1px solid #4a7c59;
    border-radius: 6px;
    padding: 8px 12px;
    min-height: 40px;
    font-size: 0.95em;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
}
.btn-fila:hover { background: #2c5530; }
.btn-fila-secundario {
    background: none;
    color: #2c5530;
}
.btn-fila-secundario:hover { background: #eef5ee; }
.btn-fila:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}
#btnUsarRecorte { margin-top: 6px; }
.carrinho {
    margin-top: 30px;
    padding: 20px;
    background: #f4f8f4;
    border: 1px solid #c9d6c9;
    border-radius: 8px;
}
.carrinho h3 {
    color: #2c5530;
    margin: 0 0 6px 0;
}
.tabela-rolavel {
    overflow-x: auto;
    margin: 12px 0;
}
.tabela-carrinho {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9em;
    background: #fff;
}
.tabela-carrinho th,
.tabela-carrinho td {
    border: 1px solid #dde5dd;
    padding: 6px 8px;
    text-align: left;
    vertical-align: middle;
}
.tabela-carrinho th { background: #eef5ee; color: #2c5530; white-space: nowrap; }
.tabela-carrinho td.numero { text-align: right; white-space: nowrap; }
.tabela-carrinho td.centro { text-align: center; white-space: nowrap; }
.tabela-carrinho input[type="text"] {
    width: 100%;
    min-width: 140px;
    padding: 6px 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font: inherit;
}
.btn-remover {
    background: none;
    border: 1px solid #c62828;
    color: #c62828;
    border-radius: 6px;
    padding: 6px 10px;
    min-height: 36px;
    font: inherit;
    cursor: pointer;
}
.btn-remover:hover { background: #fdecea; }
.carrinho-acoes {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.btn-download.btn-secundario {
    background: #fff;
    color: #2c5530;
    border: 1px solid #4a7c59;
}
.btn-download.btn-secundario:hover { background: #eef5ee; }
.carrinho-adicionar { text-align: center; }
.btn-carrinho {
    background: #fff;
    color: #2c5530;
    border: 2px solid #4a7c59;
    border-radius: 6px;
    padding: 10px 18px;
    min-height: 44px;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}
.btn-carrinho:hover { background: #eef5ee; }
.btn-carrinho:disabled {
    border-color: #9db8a3;
    color: #6c8a72;
    cursor: default;
    background: #f4f8f4;
}
@media (max-width: 420px) {
    .carrinho { padding: 14px 10px; }
}

/* v7.2.0: painel "Preencher com IA" e revisão do caso */
.painel-ia summary {
    cursor: pointer;
    font-weight: 600;
    color: #2c5530;
    padding: 6px 0;
}
.painel-ia textarea {
    width: 100%;
    font-family: ui-monospace, Menlo, Consolas, monospace;
    font-size: 0.8em;
    line-height: 1.4;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 6px;
    margin: 6px 0;
    resize: vertical;
}
.painel-ia .passo-ia { margin: 12px 0 2px 0; color: #2c5530; }
.revisao-caso {
    margin-top: 12px;
    padding: 12px 14px;
    background: #f8faf8;
    border-left: 3px solid #4a7c59;
    border-radius: 4px;
}
.revisao-caso .tabela-carrinho td { vertical-align: top; }
.revisao-caso td.sem-origem { color: #8b4513; }
.revisao-caso ul { margin: 4px 0 8px 18px; font-size: 0.9em; line-height: 1.5; }
.ponto-atencao { align-items: flex-start; margin: 6px 0; font-size: 0.9em; line-height: 1.5; }
.btn-carrinho + .btn-carrinho { margin-left: 8px; }
