:root{--green:#0d4b3b;--leaf:#1b8b5a;--petrol:#0e5260;--bg:#f3f7f5;--gold:#d99a2b;--danger:#b42318;--muted:#64748b}*{box-sizing:border-box}body{margin:0;background:var(--bg);font-family:Inter,system-ui,-apple-system,Segoe UI,Arial,sans-serif;color:#10231d}.app-shell{display:flex;min-height:100vh}.sidebar{width:276px;background:linear-gradient(180deg,#08392f,#0d4b3b);color:white;padding:22px 16px;position:fixed;top:0;left:0;bottom:0;overflow:auto}.brand{display:flex;gap:12px;align-items:center;margin-bottom:24px}.brand-mark{display:grid;place-items:center;width:46px;height:46px;border-radius:16px;background:#fff;color:var(--green);font-weight:900}.brand small{display:block;color:#cbe6dd}.sidebar nav a{display:block;color:#eaf7f2;text-decoration:none;padding:11px 13px;border-radius:12px;margin:4px 0;font-weight:650}.sidebar nav a:hover,.sidebar nav a.active{background:rgba(255,255,255,.14);color:#fff}.content{margin-left:276px;flex:1;padding:26px}.topbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:22px}.topbar h1{margin:0;color:var(--green);font-size:30px;font-weight:900}.topbar p{margin:4px 0 0;color:var(--muted)}.card-pro{background:#fff;border:1px solid #e6eee9;border-radius:22px;box-shadow:0 16px 40px rgba(16,35,29,.06);padding:22px;margin-bottom:20px}.card-pro h2,.card-pro h3{color:var(--green);font-weight:850}.grid{display:grid;gap:18px}.grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-4{grid-template-columns:repeat(4,minmax(0,1fr))}.metric{background:linear-gradient(135deg,#fff,#f7fbf9);border:1px solid #e2eee8;border-radius:18px;padding:16px}.metric b{font-size:28px;color:var(--green)}.form-label{font-weight:750;color:#24443a}.btn-primary{background:var(--green);border-color:var(--green)}.btn-primary:hover{background:#08392f;border-color:#08392f}.btn-gold{background:var(--gold);border:0;color:#231b04;font-weight:800}.table{font-size:14px}.status{display:inline-flex;border-radius:999px;padding:4px 10px;font-weight:800;font-size:12px}.status-Adequado{background:#dcfce7;color:#166534}.status-Atenção,.status-Baixo{background:#fef3c7;color:#92400e}.status-Crítico{background:#fee2e2;color:#991b1b}.chart-box{position:relative;width:100%;min-height:390px}.chart-box-sm{position:relative;width:100%;min-height:330px}.chart-box-lg{position:relative;width:100%;min-height:560px}.nutri-card{border:1px solid #e6eee9;border-radius:18px;background:#fff;padding:18px;box-shadow:0 10px 24px rgba(16,35,29,.045)}.nutri-head{display:flex;justify-content:space-between;align-items:start;gap:10px;margin-bottom:12px}.nutri-symbol{font-size:30px;font-weight:950;color:var(--green)}.mini-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.mini{background:#f8faf9;border-radius:14px;padding:10px}.mini span{display:block;color:var(--muted);font-size:12px}.mini strong{color:#10231d}.hint{color:var(--muted);font-size:13px}.relatorio-box{white-space:pre-wrap;background:#fbfdfc;border:1px solid #e2eee8;border-radius:18px;padding:18px;line-height:1.55}@media(max-width:1000px){.sidebar{position:relative;width:100%;height:auto}.app-shell{display:block}.content{margin-left:0}.grid-2,.grid-3,.grid-4,.mini-grid{grid-template-columns:1fr}.topbar{align-items:flex-start;gap:12px;flex-direction:column}}

/* ===== Interpretação avançada unificada ===== */
.report-title{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:18px;
    background:linear-gradient(135deg,#0f3f35,#176b54);
    color:#fff;
    border-radius:22px;
    padding:24px;
    margin-bottom:18px;
    box-shadow:0 14px 32px rgba(0,0,0,.10);
}
.report-title h2{margin:0 0 6px;font-weight:800;letter-spacing:-.02em;}
.report-title p{margin:0;opacity:.9;}
.report-stamp{background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.25);border-radius:18px;padding:12px 16px;font-weight:800;white-space:nowrap;}
.summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:18px;}
.summary-card{background:#fff;border:1px solid #edf2ef;border-radius:18px;padding:16px 18px;box-shadow:0 8px 24px rgba(0,0,0,.05);}
.summary-card span{display:block;font-size:.78rem;text-transform:uppercase;letter-spacing:.06em;color:#6b7d76;font-weight:700;}
.summary-card strong{display:block;margin-top:4px;color:#123c33;font-size:1.02rem;}
.chart-dashboard{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(340px,.9fr);gap:18px;margin-bottom:18px;align-items:stretch;}
.chart-dashboard.equal-charts{grid-template-columns:repeat(2,minmax(0,1fr));}
.chart-dashboard.two-cols{grid-template-columns:repeat(2,minmax(0,1fr));}
.chart-card{overflow:hidden;}
.chart-box{position:relative;width:100%;min-height:320px;}
.chart-box-lg{min-height:430px;}
.chart-box-eq{min-height:430px;}
.chart-box-md{min-height:290px;}
.chart-box-rel{min-height:390px;}
.micro-table{max-height:none;overflow:visible;border:1px solid #e9f0ed;border-radius:16px;}
.micro-table table{width:100%;border-collapse:collapse;font-size:.82rem;}
.micro-table th{background:#f4f8f6;color:#16483d;font-size:.72rem;text-transform:uppercase;letter-spacing:.04em;}
.micro-table th,.micro-table td{padding:8px 10px;border-bottom:1px solid #e9f0ed;vertical-align:top;}
.micro-table tr:last-child td{border-bottom:0;}
.nutrient-card-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;}
.nutrient-card{border:1px solid #e5eee9;border-left:6px solid #7f8c8d;background:#fff;border-radius:18px;padding:16px;box-shadow:0 8px 24px rgba(0,0,0,.04);break-inside:avoid;page-break-inside:avoid;}
.nutrient-card.status-crítico,.nutrient-card.status-critico{border-left-color:#dc3545;}
.nutrient-card.status-baixo{border-left-color:#f0ad4e;}
.nutrient-card.status-atencao,.nutrient-card.status-atenção{border-left-color:#0dcaf0;}
.nutrient-card.status-adequado{border-left-color:#198754;}
.nutrient-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px;gap:8px;}
.nutrient-head strong{font-size:1.35rem;color:#0d4b3b;}
.nutrient-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-bottom:12px;}
.nutrient-metrics div{background:#f7faf8;border:1px solid #edf2ef;border-radius:12px;padding:9px 10px;min-width:0;}
.nutrient-metrics span{display:block;font-size:.72rem;color:#687b74;font-weight:700;line-height:1.1;}
.nutrient-metrics b{display:block;margin-top:4px;color:#153f36;font-size:.92rem;word-break:break-word;}
.nutrient-note{font-size:.86rem;color:#2f403b;border-top:1px solid #eef3f1;padding-top:8px;margin-top:8px;}
.chart-img-salva{display:block;max-width:100%;height:auto;margin:auto;}
.saved-report-wrap .card-pro,.saved-report .card-pro{box-shadow:none;border:1px solid #e8efec;}
.disclaimer-print{background:#fbf8ef;border-color:#f2e2ba;}

@media (max-width: 1200px){
    .nutrient-card-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
    .chart-dashboard,.chart-dashboard.two-cols,.chart-dashboard.equal-charts{grid-template-columns:1fr;}
}
@media (max-width: 768px){
    .summary-grid{grid-template-columns:1fr 1fr;}
    .nutrient-card-grid{grid-template-columns:1fr;}
    .report-title{flex-direction:column;}
    .chart-box-lg,.chart-box-rel{min-height:340px;}
}
@media print{
    body{background:#fff!important;color:#111!important;}
    .sidebar,.topbar,.no-print,.btn,.alert{display:none!important;}
    .app-shell{display:block!important;}
    .content{margin:0!important;padding:0!important;width:100%!important;}
    .print-area,.saved-report-wrap{width:100%!important;margin:0!important;}
    .report-title{box-shadow:none!important;border-radius:0!important;background:#0f3f35!important;color:#fff!important;-webkit-print-color-adjust:exact;print-color-adjust:exact;}
    .summary-grid{grid-template-columns:repeat(4,1fr)!important;gap:8px!important;}
    .summary-card,.card-pro,.nutrient-card{box-shadow:none!important;break-inside:avoid;page-break-inside:avoid;}
    .chart-dashboard,.chart-dashboard.two-cols,.chart-dashboard.equal-charts{grid-template-columns:1fr!important;gap:10px!important;}
    .chart-box{min-height:auto!important;height:auto!important;}
    canvas{max-width:100%!important;}
    .chart-img-salva{max-width:100%!important;height:auto!important;}
    .nutrient-card-grid{grid-template-columns:repeat(2,1fr)!important;gap:10px!important;}
    .nutrient-card{padding:12px!important;font-size:11px!important;}
    .nutrient-head strong{font-size:16px!important;}
    .nutrient-metrics{grid-template-columns:repeat(2,1fr)!important;gap:6px!important;}
    .nutrient-note{font-size:11px!important;}
    h2{font-size:22px!important;} h3{font-size:16px!important;}
    @page{size:A4;margin:12mm;}
}


/* ===== Ajuste de impressão e leitura - gráficos compactos ===== */
.grupo-reserva{
    padding:20px 22px 18px;
}
.grupo-reserva-head{
    display:flex;
    justify-content:space-between;
    align-items:center;
    border:1px solid #dfeae5;
    background:linear-gradient(135deg,#f7fbf9,#ffffff);
    border-radius:16px;
    padding:12px 16px;
    margin-bottom:14px;
}
.grupo-reserva-head h3{
    margin:0;
    font-size:1.25rem;
    letter-spacing:-.01em;
}
.chart-dashboard-compact{
    gap:14px;
    margin-bottom:0;
}
.chart-subcard{
    border:1px solid #edf2ef;
    border-radius:18px;
    padding:14px 14px 10px;
    background:#fff;
    min-width:0;
}
.chart-subcard h4{
    margin:0 0 8px;
    color:#16483d;
    font-size:1.02rem;
    font-weight:850;
}
.chart-box-eq{
    min-height:300px !important;
}
.chart-box-rel{
    min-height:300px !important;
}
.chart-box-lg{
    min-height:320px !important;
}
.chart-card h3{
    font-size:1.15rem;
    margin-bottom:10px;
}
.nutrient-card-grid{
    gap:12px;
}
.nutrient-card{
    padding:13px;
}
.nutrient-metrics{
    gap:6px;
}
.nutrient-metrics div{
    padding:7px 8px;
}
.nutrient-note{
    font-size:.80rem;
    padding-top:6px;
    margin-top:6px;
}

@media (min-width: 1201px){
    .chart-dashboard.equal-charts{
        grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    }
}
@media print{
    .grupo-reserva{
        padding:12px!important;
        margin-bottom:10px!important;
    }
    .grupo-reserva-head{
        padding:8px 10px!important;
        margin-bottom:8px!important;
        border-radius:10px!important;
    }
    .grupo-reserva-head h3{
        font-size:15px!important;
    }
    .chart-dashboard-compact{
        grid-template-columns:repeat(2,1fr)!important;
        gap:8px!important;
    }
    .chart-subcard{
        padding:8px!important;
        border-radius:10px!important;
        break-inside:avoid!important;
        page-break-inside:avoid!important;
    }
    .chart-subcard h4{
        font-size:12px!important;
        margin-bottom:3px!important;
    }
    .chart-box-eq{
        height:185px!important;
        min-height:185px!important;
    }
    .chart-box-rel{
        height:220px!important;
        min-height:220px!important;
    }
    .chart-dashboard.two-cols{
        grid-template-columns:repeat(2,1fr)!important;
    }
    .card-pro{
        padding:12px!important;
        margin-bottom:10px!important;
        border-radius:12px!important;
    }
    .report-title{
        padding:16px!important;
        margin-bottom:10px!important;
    }
    .summary-grid{
        margin-bottom:10px!important;
    }
    .summary-card{
        padding:10px!important;
        border-radius:10px!important;
    }
    .nutrient-card-grid{
        grid-template-columns:repeat(2,1fr)!important;
        gap:8px!important;
    }
}


/* ===== Ajuste final: gráficos compactos e organizados no PDF ===== */
.chart-card,
.chart-subcard,
.grupo-reserva,
.card-pro{
    overflow:hidden;
}
.chart-box canvas{
    display:block !important;
    max-width:100% !important;
    max-height:100% !important;
}
.grupo-reserva{
    padding:16px 18px 14px;
}
.grupo-reserva-head{
    padding:10px 14px;
    margin-bottom:10px;
}
.grupo-reserva-head h3{
    font-size:1.12rem;
}
.chart-dashboard-compact{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:10px;
}
.chart-subcard{
    padding:10px 10px 8px;
}
.chart-subcard h4{
    font-size:.92rem;
    margin-bottom:4px;
}
.chart-box-eq{
    height:245px !important;
    min-height:245px !important;
}
.chart-box-rel{
    height:260px !important;
    min-height:260px !important;
}
.chart-dashboard.two-cols{
    gap:12px;
}
.chart-dashboard.two-cols .card-pro{
    padding:16px;
}
.chart-dashboard.two-cols h3{
    font-size:1.05rem;
    margin-bottom:6px;
}

@media print{
    html,body{
        font-size:10px!important;
        background:#fff!important;
    }
    .content{
        padding:0!important;
    }
    .print-area{
        transform:none!important;
        width:100%!important;
    }
    .report-title{
        padding:10px 12px!important;
        margin-bottom:6px!important;
        border-radius:0!important;
    }
    .report-title h2{
        font-size:16px!important;
        margin-bottom:3px!important;
    }
    .report-title p{
        font-size:9px!important;
        line-height:1.2!important;
    }
    .report-stamp{
        padding:6px 8px!important;
        border-radius:8px!important;
        font-size:10px!important;
    }
    .summary-grid{
        grid-template-columns:repeat(4,1fr)!important;
        gap:5px!important;
        margin-bottom:6px!important;
    }
    .summary-card{
        padding:6px 7px!important;
        border-radius:8px!important;
    }
    .summary-card span{
        font-size:7px!important;
        letter-spacing:.04em!important;
    }
    .summary-card strong{
        font-size:9px!important;
        margin-top:2px!important;
        line-height:1.15!important;
    }
    .card-pro{
        padding:8px!important;
        margin-bottom:6px!important;
        border-radius:9px!important;
        box-shadow:none!important;
    }
    .card-pro h3{
        font-size:11px!important;
        margin:0 0 4px!important;
        line-height:1.15!important;
    }
    .card-pro p{
        font-size:9px!important;
        line-height:1.25!important;
        margin-bottom:0!important;
    }
    .grupo-reserva{
        padding:7px!important;
        margin-bottom:6px!important;
        break-inside:avoid!important;
        page-break-inside:avoid!important;
    }
    .grupo-reserva-head{
        padding:5px 7px!important;
        margin-bottom:5px!important;
        border-radius:7px!important;
    }
    .grupo-reserva-head h3{
        font-size:11px!important;
        margin:0!important;
    }
    .chart-dashboard-compact{
        display:grid!important;
        grid-template-columns:repeat(2,1fr)!important;
        gap:5px!important;
    }
    .chart-subcard{
        padding:5px!important;
        border-radius:7px!important;
        min-height:0!important;
        break-inside:avoid!important;
        page-break-inside:avoid!important;
    }
    .chart-subcard h4{
        font-size:9px!important;
        margin:0 0 1px!important;
        line-height:1.05!important;
    }
    .chart-box,
    .chart-box-eq{
        height:118px!important;
        min-height:118px!important;
        max-height:118px!important;
        overflow:hidden!important;
        position:relative!important;
    }
    .chart-dashboard.two-cols{
        display:grid!important;
        grid-template-columns:repeat(2,1fr)!important;
        gap:5px!important;
        margin-bottom:6px!important;
        break-inside:avoid!important;
        page-break-inside:avoid!important;
    }
    .chart-dashboard.two-cols .card-pro{
        padding:7px!important;
        min-height:0!important;
    }
    .chart-dashboard.two-cols h3{
        font-size:10px!important;
        margin:0 0 2px!important;
        line-height:1.05!important;
    }
    .chart-box-rel{
        height:128px!important;
        min-height:128px!important;
        max-height:128px!important;
        overflow:hidden!important;
    }
    canvas{
        width:100%!important;
        height:100%!important;
        max-height:100%!important;
    }
    .report-block{
        break-inside:avoid!important;
        page-break-inside:avoid!important;
    }
    .nutrient-card-grid{
        grid-template-columns:repeat(3,1fr)!important;
        gap:5px!important;
    }
    .nutrient-card{
        padding:7px!important;
        border-radius:8px!important;
        border-left-width:4px!important;
        font-size:8px!important;
    }
    .nutrient-head{
        margin-bottom:4px!important;
    }
    .nutrient-head strong{
        font-size:11px!important;
    }
    .badge{
        font-size:7px!important;
        padding:2px 4px!important;
    }
    .nutrient-metrics{
        grid-template-columns:repeat(2,1fr)!important;
        gap:3px!important;
        margin-bottom:4px!important;
    }
    .nutrient-metrics div{
        padding:4px!important;
        border-radius:6px!important;
    }
    .nutrient-metrics span{
        font-size:6.8px!important;
    }
    .nutrient-metrics b{
        font-size:8px!important;
        margin-top:1px!important;
    }
    .nutrient-note{
        font-size:7px!important;
        line-height:1.15!important;
        padding-top:3px!important;
        margin-top:3px!important;
    }
    h2{font-size:15px!important;}
    @page{
        size:A4 portrait;
        margin:7mm;
    }
}

/* ===== Ajuste fino: impressão da interpretação - melhor distribuição dos gráficos na 1a página ===== */
@media print{
    /* não altera a versão web; somente impressão/PDF */
    .print-area{
        width:100% !important;
        max-width:100% !important;
    }

    .report-title{
        margin-bottom:5px !important;
        padding:10px 12px !important;
    }

    .summary-grid{
        margin-bottom:5px !important;
        gap:4px !important;
    }

    .summary-card{
        padding:6px 7px !important;
    }

    .report-block{
        margin-bottom:5px !important;
    }

    .grupo-reserva{
        padding:8px !important;
        margin-bottom:5px !important;
    }

    .grupo-reserva-head{
        margin-bottom:5px !important;
    }

    .chart-dashboard-compact{
        grid-template-columns:repeat(2,1fr) !important;
        gap:6px !important;
    }

    .chart-subcard{
        padding:6px !important;
    }

    /* Aumenta os gráficos da primeira página para ocupar o espaço útil */
    .chart-box,
    .chart-box-eq{
        height:160px !important;
        min-height:160px !important;
        max-height:160px !important;
    }

    .chart-dashboard.two-cols{
        gap:6px !important;
        margin-bottom:5px !important;
    }

    .chart-dashboard.two-cols .card-pro{
        padding:7px !important;
    }

    .chart-box-rel{
        height:150px !important;
        min-height:150px !important;
        max-height:150px !important;
    }

    .chart-subcard h4,
    .chart-dashboard.two-cols h3,
    .grupo-reserva-head h3,
    .card-pro h3{
        margin-bottom:3px !important;
    }

    .disclaimer-print{
        margin-top:4px !important;
    }

    /* Garante que a parte gráfica feche melhor a primeira página */
    .grupo-reserva,
    .chart-dashboard.two-cols,
    .chart-dashboard.two-cols .card-pro,
    .chart-subcard{
        break-inside:avoid !important;
        page-break-inside:avoid !important;
    }

    @page{
        size:A4 portrait;
        margin:6mm;
    }
}


/* ===== Ajuste exclusivo de IMPRESSÃO: ocupar melhor a primeira página ===== */
@media print{
    /*
      Não altera o layout web.
      Objetivo: usar melhor o espaço em branco inferior da página 1.
    */

    @page{
        size:A4 portrait;
        margin:5mm;
    }

    html, body{
        background:#fff !important;
    }

    .content{
        padding:0 !important;
    }

    .print-area{
        width:100% !important;
        max-width:100% !important;
        margin:0 !important;
    }

    .report-title{
        padding:10px 13px !important;
        margin-bottom:5px !important;
    }

    .report-title h2{
        font-size:16px !important;
        margin-bottom:3px !important;
    }

    .report-title p{
        font-size:9px !important;
        line-height:1.18 !important;
    }

    .report-stamp{
        font-size:9px !important;
        padding:6px 8px !important;
    }

    .summary-grid{
        grid-template-columns:repeat(4,1fr) !important;
        gap:5px !important;
        margin-bottom:6px !important;
    }

    .summary-card{
        padding:7px 8px !important;
        min-height:30px !important;
    }

    .summary-card span{
        font-size:7px !important;
    }

    .summary-card strong{
        font-size:9px !important;
        line-height:1.1 !important;
    }

    .card-pro.report-block{
        margin-bottom:6px !important;
        border-radius:9px !important;
    }

    .card-pro h3{
        font-size:11px !important;
        line-height:1.1 !important;
        margin-bottom:4px !important;
    }

    .card-pro p{
        font-size:9px !important;
        line-height:1.2 !important;
    }

    .grupo-reserva{
        padding:8px !important;
        margin-bottom:6px !important;
    }

    .grupo-reserva-head{
        padding:6px 8px !important;
        margin-bottom:5px !important;
        border-radius:8px !important;
    }

    .grupo-reserva-head h3{
        font-size:12px !important;
        margin:0 !important;
    }

    /*
      Para impressão, macro e micro ficam empilhados em largura total.
      Isso melhora a leitura e usa melhor a altura da primeira página.
    */
    .chart-dashboard-compact{
        display:grid !important;
        grid-template-columns:1fr !important;
        gap:7px !important;
        margin-bottom:0 !important;
    }

    .chart-subcard{
        padding:6px 7px !important;
        border-radius:8px !important;
        break-inside:avoid !important;
        page-break-inside:avoid !important;
    }

    .chart-subcard h4{
        font-size:9.5px !important;
        margin:0 0 2px !important;
        line-height:1.05 !important;
    }

    /*
      Altura ampliada para preencher a área em branco.
      Mantém os dois gráficos dentro da página 1 com melhor leitura.
    */
    .chart-box,
    .chart-box-eq{
        height:198px !important;
        min-height:198px !important;
        max-height:198px !important;
        overflow:hidden !important;
        position:relative !important;
    }

    .chart-dashboard.two-cols{
        display:grid !important;
        grid-template-columns:repeat(2,1fr) !important;
        gap:7px !important;
        margin-bottom:4px !important;
        break-inside:avoid !important;
        page-break-inside:avoid !important;
    }

    .chart-dashboard.two-cols .card-pro{
        padding:8px !important;
        border-radius:9px !important;
        min-height:0 !important;
    }

    .chart-dashboard.two-cols h3{
        font-size:10.5px !important;
        margin:0 0 3px !important;
        line-height:1.05 !important;
    }

    .chart-box-rel{
        height:172px !important;
        min-height:172px !important;
        max-height:172px !important;
        overflow:hidden !important;
    }

    canvas{
        width:100% !important;
        height:100% !important;
        max-height:100% !important;
        display:block !important;
    }

    .grupo-reserva,
    .chart-dashboard.two-cols,
    .chart-subcard,
    .chart-dashboard.two-cols .card-pro{
        break-inside:avoid !important;
        page-break-inside:avoid !important;
    }

    /*
      Mantém os cards dos nutrientes na página seguinte com boa leitura.
    */
    .nutrient-card-grid{
        grid-template-columns:repeat(3,1fr) !important;
        gap:6px !important;
    }
}


/* ===== Cadastro público, dashboard e correção de solos ===== */
.dashboard-welcome{
    display:inline-block;
    font-size:.92rem;
    font-weight:650;
    color:#5f716b;
    margin-left:10px;
    letter-spacing:0;
}
.dashboard-hero{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:20px;
    background:linear-gradient(135deg,#ffffff,#f2fbf6);
    border:1px solid #dcece3;
}
.dash-kicker{
    display:inline-block;
    font-size:.72rem;
    text-transform:uppercase;
    letter-spacing:.08em;
    color:#16805f;
    font-weight:800;
    margin-bottom:4px;
}
.plan-pill{
    min-width:170px;
    padding:14px 18px;
    border-radius:18px;
    background:#0f3d33;
    color:#fff;
    text-align:center;
    box-shadow:0 10px 25px rgba(15,61,51,.18);
}
.plan-pill small{
    display:block;
    opacity:.78;
    text-transform:uppercase;
    font-size:.68rem;
    letter-spacing:.08em;
}
.plan-pill strong{
    display:block;
    font-size:1.25rem;
}
.free-callout{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:18px;
    background:linear-gradient(135deg,#fff7df,#ffffff);
    border:1px solid #f4d27a;
}
.free-callout h3{
    margin-bottom:4px;
}
@media(max-width:768px){
    .dashboard-hero,.free-callout{flex-direction:column;align-items:flex-start;}
    .plan-pill{width:100%;}
    .dashboard-welcome{display:block;margin-left:0;margin-top:4px;}
}


/* ===== Ajustes: Clientes/Usuários unificados, plano no topo e Correção de Solos ===== */
.topbar-account{
    display:flex;
    align-items:center;
    gap:10px;
    flex-wrap:wrap;
    justify-content:flex-end;
}
.topbar-plan{
    display:inline-flex;
    align-items:center;
    gap:4px;
    padding:7px 11px;
    border-radius:999px;
    background:#eef8f3;
    border:1px solid #d8eadf;
    color:#16483d;
    font-size:.84rem;
    white-space:nowrap;
}
.topbar-plan strong{
    color:#0f3d33;
}
.correcao-hero{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:20px;
    background:linear-gradient(135deg,#ffffff,#f4fbf7);
    border:1px solid #dcece3;
}
.correcao-result-main{
    border-left:6px solid #16805f;
}
.correcao-bars{
    display:grid;
    gap:10px;
}
.correcao-bars div{
    position:relative;
    overflow:hidden;
    border-radius:12px;
    background:#eef4f1;
    padding:9px 10px;
    min-height:42px;
}
.correcao-bars span,
.correcao-bars b{
    position:relative;
    z-index:2;
}
.correcao-bars span{
    font-weight:800;
    color:#16483d;
}
.correcao-bars b{
    float:right;
    color:#0f3d33;
}
.correcao-bars i{
    position:absolute;
    left:0;
    top:0;
    bottom:0;
    background:linear-gradient(90deg,#bfe8d3,#dff5ea);
    z-index:1;
}
@media(max-width:768px){
    .correcao-hero{flex-direction:column;align-items:flex-start;}
    .topbar-account{justify-content:flex-start;width:100%;}
}


/* =========================================================
   NutriUva Pro — Layout premium consolidado
   ========================================================= */
:root{
    --green:#0f3d33;
    --green-2:#17634f;
    --leaf:#1b8b5a;
    --mint:#e9f6ef;
    --gold:#f0b429;
    --bg:#f4f8f6;
    --surface:#ffffff;
    --surface-2:#f8fcfa;
    --text:#18312b;
    --muted:#63736f;
    --border:#dfece5;
    --shadow:0 18px 45px rgba(15,61,51,.10);
    --shadow-soft:0 10px 28px rgba(15,61,51,.075);
    --radius:24px;
}

html{scroll-behavior:smooth}
body{
    margin:0;
    background:
        radial-gradient(circle at 12% 8%, rgba(240,180,41,.12), transparent 24%),
        radial-gradient(circle at 88% 18%, rgba(23,99,79,.10), transparent 24%),
        var(--bg);
    font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;
    color:var(--text);
}

a{text-decoration:none}

.premium-shell{
    display:flex;
    min-height:100vh;
}

.premium-sidebar{
    width:292px;
    background:
        radial-gradient(circle at 50% -10%, rgba(240,180,41,.18), transparent 30%),
        linear-gradient(180deg,#0b3028 0%,#0f3d33 55%,#092922 100%);
    color:white;
    padding:22px 16px;
    position:fixed;
    top:0;
    left:0;
    bottom:0;
    overflow:auto;
    z-index:1035;
    box-shadow:12px 0 34px rgba(15,61,51,.16);
}

.brand{
    display:flex;
    gap:12px;
    align-items:center;
    margin-bottom:24px;
    color:#fff;
    padding:8px;
    border-radius:20px;
}

.brand:hover{color:#fff;background:rgba(255,255,255,.06)}

.brand-mark{
    display:grid;
    place-items:center;
    width:48px;
    height:48px;
    border-radius:17px;
    background:rgba(255,255,255,.98);
    color:var(--green);
    font-weight:950;
    letter-spacing:-.04em;
    box-shadow:0 12px 28px rgba(0,0,0,.16);
}

.brand strong{
    display:block;
    font-size:1.05rem;
    line-height:1;
}

.brand small{
    display:block;
    color:rgba(255,255,255,.70);
    font-size:.76rem;
    margin-top:4px;
}

.sidebar nav{
    display:grid;
    gap:4px;
    padding-bottom:18px;
}

.nav-section{
    margin:18px 10px 7px;
    font-size:.68rem;
    font-weight:900;
    letter-spacing:.10em;
    text-transform:uppercase;
    color:rgba(255,255,255,.47);
}

.sidebar nav a{
    display:flex;
    align-items:center;
    gap:10px;
    color:rgba(255,255,255,.86);
    text-decoration:none;
    padding:11px 12px;
    border-radius:15px;
    font-weight:750;
    line-height:1.1;
    transition:.18s ease;
    border:1px solid transparent;
}

.sidebar nav a span{
    width:24px;
    height:24px;
    display:grid;
    place-items:center;
    border-radius:10px;
    background:rgba(255,255,255,.08);
    color:#fff;
    font-size:.78rem;
    flex:0 0 auto;
}

.sidebar nav a:hover{
    background:rgba(255,255,255,.10);
    color:#fff;
    transform:translateX(2px);
}

.sidebar nav a.active{
    background:#fff;
    color:var(--green);
    box-shadow:0 12px 28px rgba(0,0,0,.16);
}

.sidebar nav a.active span{
    background:var(--mint);
    color:var(--green);
}

.sidebar-footer{
    margin-top:22px;
    padding:14px;
    border-radius:18px;
    background:rgba(255,255,255,.08);
    border:1px solid rgba(255,255,255,.10);
}

.sidebar-footer span{
    display:block;
    color:rgba(255,255,255,.58);
    font-size:.73rem;
    text-transform:uppercase;
    font-weight:850;
    letter-spacing:.06em;
}

.sidebar-footer strong{
    display:block;
    color:#fff;
    font-size:.88rem;
    margin-top:4px;
}

.premium-content{
    margin-left:292px;
    flex:1;
    padding:28px;
    max-width:100%;
}

.mobile-topbar{
    display:none;
}

.premium-topbar{
    min-height:102px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:20px;
    padding:22px 24px;
    margin-bottom:24px;
    background:rgba(255,255,255,.86);
    border:1px solid rgba(223,236,229,.95);
    border-radius:28px;
    box-shadow:var(--shadow);
    backdrop-filter:blur(10px);
}

.page-kicker{
    display:inline-flex;
    padding:6px 10px;
    border-radius:999px;
    background:var(--mint);
    color:var(--green);
    font-size:.68rem;
    font-weight:950;
    letter-spacing:.08em;
    text-transform:uppercase;
    margin-bottom:7px;
}

.topbar h1{
    margin:0;
    color:var(--green);
    font-size:clamp(1.55rem,2.4vw,2.25rem);
    font-weight:950;
    letter-spacing:-.045em;
    line-height:1.05;
}

.topbar p{
    margin:7px 0 0;
    color:var(--muted);
    font-size:.95rem;
}

.dashboard-welcome{
    display:block;
    margin-top:7px;
    font-size:.88rem;
    font-weight:750;
    color:#60736d;
    letter-spacing:0;
}

.topbar-account{
    display:flex;
    align-items:center;
    justify-content:flex-end;
    gap:10px;
    flex-wrap:wrap;
    min-width:fit-content;
}

.account-chip{
    display:flex;
    flex-direction:column;
    gap:1px;
    padding:9px 12px;
    border-radius:16px;
    background:var(--surface-2);
    border:1px solid var(--border);
}

.account-chip span{
    color:var(--green);
    font-size:.84rem;
    font-weight:850;
    max-width:170px;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}

.account-chip strong{
    color:var(--muted);
    font-size:.72rem;
    text-transform:uppercase;
    letter-spacing:.06em;
}

.topbar-plan{
    display:inline-flex;
    align-items:center;
    gap:5px;
    padding:10px 12px;
    border-radius:999px;
    background:#eef8f3;
    border:1px solid #d8eadf;
    color:#16483d;
    font-size:.84rem;
    white-space:nowrap;
    font-weight:800;
}

.topbar-plan strong{
    color:var(--green);
}

/* Cards, grids e métricas */
.card-pro{
    background:rgba(255,255,255,.92);
    border:1px solid var(--border);
    border-radius:var(--radius);
    box-shadow:var(--shadow-soft);
    padding:24px;
    margin-bottom:22px;
}

.card-pro h2,
.card-pro h3,
.card-pro h4{
    color:var(--green);
    font-weight:900;
    letter-spacing:-.025em;
}

.card-pro h2{font-size:1.45rem}
.card-pro h3{font-size:1.16rem}

.grid{display:grid;gap:18px}
.grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.grid-4{grid-template-columns:repeat(4,minmax(0,1fr))}

.metric{
    position:relative;
    overflow:hidden;
    background:linear-gradient(135deg,#fff,#f7fbf9);
    border:1px solid #e2eee8;
    border-radius:20px;
    padding:18px;
    box-shadow:0 8px 20px rgba(15,61,51,.05);
}

.metric::after{
    content:"";
    position:absolute;
    width:92px;
    height:92px;
    right:-42px;
    bottom:-42px;
    border-radius:50%;
    background:rgba(27,139,90,.08);
}

.metric span{
    position:relative;
    z-index:2;
    display:block;
    color:var(--muted);
    font-size:.78rem;
    font-weight:850;
    text-transform:uppercase;
    letter-spacing:.045em;
}

.metric b{
    position:relative;
    z-index:2;
    display:block;
    margin-top:5px;
    font-size:clamp(1.6rem,2.7vw,2.15rem);
    color:var(--green);
    font-weight:950;
    letter-spacing:-.04em;
}

.dashboard-hero{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:20px;
    background:
        radial-gradient(circle at 90% 20%, rgba(240,180,41,.14), transparent 24%),
        linear-gradient(135deg,#ffffff,#f2fbf6);
    border:1px solid #dcece3;
}

.dash-kicker{
    display:inline-block;
    font-size:.72rem;
    text-transform:uppercase;
    letter-spacing:.08em;
    color:var(--green-2);
    font-weight:900;
    margin-bottom:4px;
}

.plan-pill{
    min-width:180px;
    padding:16px 18px;
    border-radius:20px;
    background:linear-gradient(135deg,var(--green),var(--green-2));
    color:#fff;
    text-align:center;
    box-shadow:0 14px 30px rgba(15,61,51,.20);
}

.plan-pill small{
    display:block;
    opacity:.78;
    text-transform:uppercase;
    font-size:.68rem;
    letter-spacing:.08em;
    font-weight:850;
}

.plan-pill strong{
    display:block;
    font-size:1.25rem;
    font-weight:950;
}

.free-callout{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:18px;
    background:linear-gradient(135deg,#fff7df,#ffffff);
    border:1px solid #f4d27a;
}

/* Forms */
.form-label{
    font-weight:850;
    color:#29453d;
    margin-bottom:7px;
}

.form-control,
.form-select{
    min-height:46px;
    border-radius:15px;
    border-color:#dce9e2;
    background:#fbfdfc;
    padding-left:14px;
}

textarea.form-control{min-height:96px}

.form-control:focus,
.form-select:focus{
    border-color:var(--green-2);
    box-shadow:0 0 0 .22rem rgba(23,99,79,.12);
    background:#fff;
}

.input-group-text{
    border-radius:15px;
    border-color:#dce9e2;
    background:#f3faf6;
    color:var(--green);
    font-weight:850;
}

/* Botões sempre com estética simétrica */
.btn{
    border-radius:999px;
    font-weight:850;
    padding:.65rem 1.05rem;
}

.btn-sm{
    padding:.42rem .75rem;
}

.btn-primary{
    background:var(--green);
    border-color:var(--green);
}

.btn-primary:hover{
    background:#0a2d26;
    border-color:#0a2d26;
}

.btn-success{
    background:var(--leaf);
    border-color:var(--leaf);
}

.btn-warning,
.btn-gold{
    background:var(--gold);
    border-color:var(--gold);
    color:#1f2a25;
    font-weight:900;
}

.btn-outline-primary{
    color:var(--green);
    border-color:var(--green);
}

.btn-outline-primary:hover{
    background:var(--green);
    border-color:var(--green);
}

.d-flex.gap-2,
.d-flex.flex-wrap.gap-2{
    align-items:center;
}

/* Tabelas */
.table-responsive{
    border-radius:20px;
}

.table{
    font-size:.9rem;
    margin-bottom:0;
}

.table thead th{
    background:#f4faf7;
    color:var(--green);
    font-size:.75rem;
    text-transform:uppercase;
    letter-spacing:.06em;
    border-bottom:1px solid #dfece5;
    white-space:nowrap;
}

.table tbody td{
    vertical-align:middle;
    color:#2e4640;
}

.table-hover tbody tr:hover{
    background:#f8fcfa;
}

/* Status e badges */
.badge{
    border-radius:999px;
    padding:.45rem .65rem;
    font-weight:850;
}

.status{
    display:inline-flex;
    border-radius:999px;
    padding:5px 11px;
    font-weight:900;
    font-size:12px;
}

/* Gráficos */
.chart-card{
    border-radius:var(--radius);
}

.chart-box,
.chart-box-sm,
.chart-box-lg,
.chart-box-md,
.chart-box-rel{
    background:linear-gradient(135deg,#fff,#fbfdfc);
    border:1px solid #e9f0ed;
    border-radius:20px;
    padding:10px;
}

canvas{
    max-width:100%;
}

/* Relatórios e impressão */
.report-title{
    border-radius:26px;
    background:
        radial-gradient(circle at 90% 10%, rgba(240,180,41,.18), transparent 28%),
        linear-gradient(135deg,var(--green),var(--green-2));
}

.summary-card{
    border-radius:20px;
    box-shadow:0 8px 20px rgba(15,61,51,.055);
}

.saved-report-wrap{
    background:#fff;
    border-radius:24px;
}

/* Modais */
.modal-content{
    border-radius:24px;
    border:0;
    box-shadow:0 24px 70px rgba(15,61,51,.18);
}

.modal-header{
    border-bottom:1px solid #e7f0ea;
}

.modal-footer{
    border-top:1px solid #e7f0ea;
}

/* Mobile */
.sidebar-backdrop{
    display:none;
}

@media(max-width:1100px){
    .premium-sidebar{
        transform:translateX(-105%);
        transition:.22s ease;
    }

    body.sidebar-open .premium-sidebar{
        transform:translateX(0);
    }

    .sidebar-backdrop{
        display:none;
        position:fixed;
        inset:0;
        background:rgba(5,20,16,.46);
        z-index:1030;
    }

    body.sidebar-open .sidebar-backdrop{
        display:block;
    }

    .premium-content{
        margin-left:0;
        padding:18px;
    }

    .mobile-topbar{
        display:flex;
        align-items:center;
        justify-content:space-between;
        gap:12px;
        background:#fff;
        border:1px solid var(--border);
        border-radius:22px;
        padding:12px;
        margin-bottom:14px;
        box-shadow:var(--shadow-soft);
    }

    .sidebar-toggle{
        border:0;
        width:42px;
        height:42px;
        border-radius:14px;
        background:var(--green);
        color:#fff;
        font-weight:900;
        font-size:1.2rem;
    }

    .premium-topbar{
        flex-direction:column;
        align-items:flex-start;
        padding:18px;
        border-radius:24px;
    }

    .topbar-account{
        width:100%;
        justify-content:flex-start;
    }

    .grid-4{grid-template-columns:repeat(2,minmax(0,1fr))}
    .grid-3{grid-template-columns:repeat(2,minmax(0,1fr))}
}

@media(max-width:720px){
    .premium-content{padding:12px}
    .grid-2,.grid-3,.grid-4,.mini-grid,.summary-grid,.chart-dashboard,.chart-dashboard.equal-charts,.chart-dashboard.two-cols{
        grid-template-columns:1fr !important;
    }

    .card-pro{padding:18px;border-radius:22px}
    .dashboard-hero,.free-callout{
        flex-direction:column;
        align-items:flex-start;
    }

    .plan-pill{width:100%}
    .account-chip{width:100%}
    .topbar-plan{width:100%;justify-content:center}
}

@media print{
    body{
        background:#fff !important;
        -webkit-print-color-adjust:exact !important;
        print-color-adjust:exact !important;
    }

    .premium-sidebar,
    .mobile-topbar,
    .premium-topbar,
    .sidebar-backdrop,
    .no-print,
    .btn,
    form{
        display:none !important;
    }

    .premium-content{
        margin-left:0 !important;
        padding:0 !important;
    }

    .card-pro{
        box-shadow:none !important;
        break-inside:avoid;
    }
}

.module-card{
    display:flex;
    flex-direction:column;
    min-height:220px;
}
.module-card .hint{
    margin-bottom:18px;
}
.card-button-row{
    margin-top:auto;
    display:flex;
    justify-content:flex-end;
}

/* ===== Organização Dashboard / Banco de Dados / Diagnóstico / Relatórios ===== */
.dashboard-hero{display:flex;justify-content:space-between;align-items:center;gap:18px;background:linear-gradient(135deg,#0b3f35,#145f4d);color:#fff;overflow:hidden;position:relative}.dashboard-hero h2{color:#fff;margin:4px 0 8px}.dashboard-hero .hint{color:#dcefe8}.dash-kicker,.section-head span{font-size:.78rem;text-transform:uppercase;letter-spacing:.08em;font-weight:850;color:#d99a2b}.plan-pill{background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.25);border-radius:18px;padding:13px 16px;min-width:170px}.plan-pill small{display:block;opacity:.85}.plan-pill strong{font-size:1.15rem}.dashboard-section{padding:20px}.section-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px}.section-head h3{margin:2px 0 0}.module-link{display:block;text-decoration:none;color:inherit;transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease}.module-link:hover{transform:translateY(-3px);box-shadow:0 18px 38px rgba(13,75,59,.12);border-color:rgba(27,139,90,.36);background:linear-gradient(135deg,#ffffff,#f4fbf7);color:inherit}.module-card{border:1px solid #e2eee8;border-radius:20px;padding:18px;background:#fff;min-height:130px}.module-card h3{font-size:1.05rem;margin-bottom:8px}.btn{border-radius:12px;font-weight:750;transition:transform .15s ease, box-shadow .15s ease, background-color .15s ease, border-color .15s ease}.btn:hover{transform:translateY(-1px);box-shadow:0 10px 22px rgba(13,75,59,.14)}.btn-outline-primary:hover{background:#0d4b3b;border-color:#0d4b3b;color:#fff}.btn-success:hover{filter:brightness(.92)}.btn-light:hover{background:#eef7f2;border-color:#d9e9e1}.sidebar nav a{transition:background .15s ease, transform .15s ease}.sidebar nav a:hover{transform:translateX(3px)}
@media(max-width:768px){.dashboard-hero{flex-direction:column;align-items:flex-start}.plan-pill{width:100%}.dashboard-section{padding:16px}.module-card{min-height:auto}.grid-2,.grid-3,.grid-4{grid-template-columns:1fr!important}}
@media print{.no-print,.sidebar,.topbar,.mobile-topbar,.sidebar-backdrop{display:none!important}.saved-report-wrap{margin:0!important}.saved-report .report-title,.print-area .report-title{-webkit-print-color-adjust:exact;print-color-adjust:exact}.saved-report .table,.print-area .table{font-size:10px!important}.saved-report .card-pro,.print-area .card-pro{break-inside:avoid;page-break-inside:avoid}.chart-box-md{height:230px!important;min-height:230px!important}}

/* Atualização 2026-05-12: gráficos horizontais e indicadores por fazenda */
.analysis-chart-grid{display:grid;gap:16px;align-items:stretch;margin-top:16px}.analysis-chart-grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}.analysis-chart-grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}.chart-panel{background:#fbfdfc;border:1px solid #dfeae5;border-radius:20px;padding:16px;box-shadow:0 12px 28px rgba(15,61,51,.06)}.chart-panel h4{font-size:.95rem;font-weight:900;color:#0f3d33;margin-bottom:10px}.chart-box-sm{height:260px}.indicador-filter{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;align-items:end}.admin-kpi-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px}.admin-kpi{border:1px solid #dfeae5;background:linear-gradient(180deg,#fff,#f8fbf9);border-radius:18px;padding:14px}.admin-kpi span{display:block;color:#66766e;font-weight:800;font-size:.78rem}.admin-kpi strong{display:block;color:#0f3d33;font-size:1.65rem;line-height:1.1}.btn,.module-card,.metric,.admin-kpi{transition:transform .18s ease,box-shadow .18s ease,background-color .18s ease,border-color .18s ease}.btn:hover,.module-card:hover,.metric:hover,.admin-kpi:hover{transform:translateY(-2px);box-shadow:0 16px 34px rgba(15,61,51,.13)}.btn-outline-primary:hover,.btn-outline-success:hover{color:#fff!important}@media(max-width:1180px){.analysis-chart-grid.three,.admin-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.indicador-filter{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:720px){.analysis-chart-grid.three,.analysis-chart-grid.two,.admin-kpi-grid,.indicador-filter{grid-template-columns:1fr}.chart-box-sm{height:240px}}

/* Ajuste visual 2026-05-12: hover premium dos botões e leitura dos gráficos */
:root{--hover-yellow:#f0b429;--hover-yellow-dark:#c98506;--btn-petrol:#0e5260;}
.btn-primary:hover,
.btn-success:hover,
.btn-outline-primary:hover,
.btn-outline-success:hover{
    background:var(--hover-yellow)!important;
    border-color:var(--hover-yellow)!important;
    color:#1f2a25!important;
    filter:none!important;
}
.btn-warning:hover,
.btn-gold:hover{
    background:var(--green)!important;
    border-color:var(--green)!important;
    color:#fff!important;
}
.btn-outline-secondary:hover,
.btn-secondary:hover{
    background:var(--btn-petrol)!important;
    border-color:var(--btn-petrol)!important;
    color:#fff!important;
}
.btn-light:hover,
.btn-outline-light:hover{
    background:#fff4d6!important;
    border-color:#f5d68a!important;
    color:#1f2a25!important;
}
.btn-outline-danger:hover,
.btn-danger:hover{
    background:#b42318!important;
    border-color:#b42318!important;
    color:#fff!important;
}
.chart-panel canvas{border-radius:12px;}


/* Atualização 2026-05-12: filtros, paginação e gráficos internos */
.filter-bar{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;align-items:end;background:#f8fbf9;border:1px solid #dfeae5;border-radius:18px;padding:14px;margin-top:12px}
.filter-bar .form-label{font-size:.82rem;margin-bottom:4px}.pagination-pro .page-link{color:#0d4b3b;border-color:#dfeae5;font-weight:800}.pagination-pro .page-item.active .page-link{background:#0d4b3b;border-color:#0d4b3b;color:#fff}.pagination-pro .page-link:hover{background:#f6d56f;border-color:#f6d56f;color:#0d4b3b}.selectable-table tbody tr{cursor:pointer;transition:background .15s ease, box-shadow .15s ease}.selectable-table tbody tr:hover{background:#f7fbf2}.selectable-table tbody tr.selected{background:#fff8db!important;box-shadow:inset 4px 0 0 #d99a2b}.analysis-chart-grid-wide .chart-panel{min-width:0}.analysis-chart-grid-wide .chart-box-sm{height:300px}.indicador-filter-fazenda{grid-template-columns:minmax(280px,1fr) 180px 180px}.admin-kpi-grid-compact{grid-template-columns:repeat(5,minmax(0,1fr))}.chart-panel canvas{max-width:100%}
@media(max-width:1180px){.filter-bar{grid-template-columns:repeat(2,minmax(0,1fr))}.admin-kpi-grid-compact{grid-template-columns:repeat(2,minmax(0,1fr))}.indicador-filter-fazenda{grid-template-columns:1fr 1fr}}
@media(max-width:720px){.filter-bar,.indicador-filter-fazenda{grid-template-columns:1fr}.analysis-chart-grid-wide .chart-box-sm{height:260px}}

/* Atualização indicadores/parametros técnicos */
.parametros-module-card h3{margin-bottom:18px;color:var(--green-dark,#0d4b3b)}
.parametros-group{border:1px solid rgba(13,75,59,.10);border-radius:18px;padding:16px;margin-bottom:18px;background:#fff}
.parametros-group h4{font-size:1rem;color:#0d4b3b;margin-bottom:12px;font-weight:800}
.parametros-table textarea{min-height:48px;resize:vertical}
.indicador-filter-fazenda{grid-template-columns:minmax(240px,1fr) minmax(260px,1fr) 160px 160px;align-items:end}
@media(max-width:992px){.indicador-filter-fazenda{grid-template-columns:1fr}.analysis-chart-grid.three{grid-template-columns:1fr!important}}
.chart-panel{overflow:hidden}
.chart-box-sm{min-height:260px}

/* Atualização 2026-05-12: indicadores e recomendação nutricional */
.chart-panel-wide { grid-column: span 1; }
.rec-identificacao {
    background: #f8fbf7;
    border: 1px solid rgba(13,75,59,.12);
    border-radius: 18px;
    padding: 14px 16px;
    margin: 16px 0;
    line-height: 1.7;
}
.rec-table { font-size: .86rem; }
.rec-table th { white-space: nowrap; }
.rec-table td { vertical-align: middle; }
.rec-alertas li { margin-bottom: 6px; }
@media (min-width: 1200px) { .analysis-chart-grid.three .chart-panel-wide { grid-column: span 1; } }
@media print {
    .rec-table { font-size: 10px; }
    .rec-identificacao { border: 1px solid #cbd5d1; background: #fff; }
    .report-block { box-shadow: none !important; border: 0 !important; }
}

/* ===== Recomendação Nutricional Quantitativa - relatório limpo ===== */
.rec-actions-bar{display:flex;justify-content:flex-end;gap:10px;margin-bottom:14px;align-items:center;}
.rec-report{background:#f3f7f5;border-radius:26px;}
.rec-hero{background:linear-gradient(135deg,#08392f,#0d4b3b);color:#fff;border-radius:26px;padding:26px;display:flex;align-items:flex-start;justify-content:space-between;gap:18px;box-shadow:0 18px 42px rgba(13,75,59,.16);margin-bottom:18px;}
.rec-hero span{display:inline-block;font-weight:850;letter-spacing:.08em;text-transform:uppercase;font-size:.76rem;color:#f7d48a;margin-bottom:6px;}
.rec-hero h2{margin:0 0 6px;font-size:1.75rem;font-weight:950;color:#fff;letter-spacing:-.03em;}
.rec-hero p{margin:0;color:rgba(255,255,255,.88);max-width:780px;}
.rec-hero-chip{background:rgba(255,255,255,.13);border:1px solid rgba(255,255,255,.28);border-radius:18px;padding:12px 16px;font-weight:900;white-space:nowrap;}
.rec-section{background:#fff;border:1px solid #e6eee9;border-radius:24px;box-shadow:0 16px 40px rgba(16,35,29,.06);padding:22px;margin-bottom:18px;break-inside:avoid;page-break-inside:avoid;}
.rec-section-title{display:flex;align-items:center;gap:10px;margin-bottom:14px;}
.rec-section-title span{width:34px;height:34px;border-radius:12px;display:grid;place-items:center;background:#edf7f2;color:#0d4b3b;font-weight:950;}
.rec-section-title h3{margin:0;color:#0d4b3b;font-weight:950;letter-spacing:-.02em;}
.rec-info-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;}
.rec-info{border:1px solid #e7efeb;background:linear-gradient(135deg,#fbfdfc,#f6faf8);border-radius:18px;padding:14px;min-width:0;}
.rec-info span{display:block;color:#64748b;font-size:.76rem;font-weight:850;text-transform:uppercase;letter-spacing:.05em;margin-bottom:4px;}
.rec-info strong{display:block;color:#10231d;font-size:1.02rem;word-break:break-word;}
.rec-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:10px;}
.rec-summary-card{border:1px solid #e7efeb;background:#f8fbf9;border-radius:18px;padding:14px;}
.rec-summary-card span{display:block;color:#64748b;font-size:.73rem;text-transform:uppercase;font-weight:850;letter-spacing:.05em;}
.rec-summary-card strong{display:block;color:#0d4b3b;font-size:1.65rem;font-weight:950;line-height:1.05;margin-top:4px;}
.rec-summary-card small{color:#64748b;font-weight:650;}
.rec-short-note{color:#556b63;font-size:.92rem;line-height:1.45;}
.rec-chart-section{padding-bottom:18px;}
.rec-chart-box{height:380px;position:relative;border:1px solid #edf2ef;background:#fbfdfc;border-radius:20px;padding:14px;}
.rec-table-subtitle{font-size:1rem;font-weight:900;color:#0d4b3b;margin:8px 0 8px;}
.rec-table-clean-wrap{border:1px solid #e6eee9;border-radius:18px;overflow:hidden;}
.rec-table-clean{margin:0;font-size:.92rem;}
.rec-table-clean thead th{background:#f3f8f5;color:#0d4b3b;border-bottom:1px solid #e3ece7;font-size:.78rem;text-transform:uppercase;letter-spacing:.04em;white-space:nowrap;}
.rec-table-clean tbody td{border-color:#edf2ef;vertical-align:middle;}
.rec-badge{display:inline-flex;align-items:center;justify-content:center;border-radius:999px;padding:5px 10px;font-size:.76rem;font-weight:900;white-space:nowrap;background:#eef2f7;color:#334155;}
.rec-badge-muito-baixo,.rec-badge-baixo{background:#fef3c7;color:#92400e;}
.rec-badge-médio,.rec-badge-adequado{background:#dcfce7;color:#166534;}
.rec-badge-alto{background:#e0f2fe;color:#075985;}
.rec-badge-muito-alto,.rec-badge-excessorisco{background:#fee2e2;color:#991b1b;}
.rec-alert-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}
.rec-alert-item{border:1px solid #f2e2ba;background:#fffaf0;border-radius:16px;padding:11px 12px;color:#60420b;font-size:.9rem;}
.rec-final-note p{margin:0;color:#2f403b;line-height:1.5;}
@media(max-width:900px){.rec-hero{flex-direction:column}.rec-info-grid,.rec-summary-grid,.rec-alert-grid{grid-template-columns:1fr}.rec-chart-box{height:330px}.rec-section{padding:16px;border-radius:20px}.rec-hero{padding:20px;border-radius:22px}.rec-hero h2{font-size:1.4rem}.rec-actions-bar{justify-content:stretch}.rec-actions-bar .btn,.rec-actions-bar form{width:100%;}.rec-actions-bar form .btn{width:100%;}}
@media print{.rec-actions-bar{display:none!important}.rec-report{background:#fff!important;border-radius:0!important}.rec-hero{box-shadow:none!important;border-radius:0!important;padding:12px 14px!important;margin-bottom:7px!important;-webkit-print-color-adjust:exact;print-color-adjust:exact}.rec-hero h2{font-size:16px!important;margin-bottom:2px!important}.rec-hero p{font-size:9px!important;line-height:1.2!important}.rec-hero span{font-size:7px!important;margin-bottom:2px!important}.rec-hero-chip{font-size:9px!important;padding:6px 8px!important;border-radius:8px!important}.rec-section{box-shadow:none!important;border-radius:10px!important;padding:8px!important;margin-bottom:7px!important;break-inside:avoid!important;page-break-inside:avoid!important}.rec-section-title{gap:6px!important;margin-bottom:5px!important}.rec-section-title span{width:20px!important;height:20px!important;border-radius:6px!important;font-size:9px!important}.rec-section-title h3{font-size:12px!important}.rec-info-grid{grid-template-columns:repeat(3,1fr)!important;gap:5px!important}.rec-info{padding:6px!important;border-radius:8px!important}.rec-info span{font-size:6.7px!important;margin-bottom:1px!important}.rec-info strong{font-size:8.5px!important}.rec-summary-grid{grid-template-columns:repeat(4,1fr)!important;gap:5px!important}.rec-summary-card{padding:6px!important;border-radius:8px!important}.rec-summary-card span{font-size:6.5px!important}.rec-summary-card strong{font-size:14px!important}.rec-summary-card small,.rec-short-note{font-size:8px!important;line-height:1.15!important}.rec-chart-box{height:220px!important;min-height:220px!important;padding:4px!important;border-radius:8px!important}.rec-table-subtitle{font-size:10px!important;margin:4px 0!important}.rec-table-clean{font-size:7.8px!important}.rec-table-clean thead th{font-size:6.7px!important;padding:4px!important}.rec-table-clean tbody td{padding:4px!important}.rec-badge{font-size:6.5px!important;padding:2px 4px!important}.rec-alert-grid{grid-template-columns:repeat(2,1fr)!important;gap:4px!important}.rec-alert-item{font-size:7px!important;padding:5px!important;border-radius:7px!important}.rec-final-note p{font-size:8px!important;line-height:1.2!important}@page{size:A4 portrait;margin:8mm}}

/* Ajuste pontual - Recomendação Nutricional Ajustada */
.rec-table-balanced-wrap{border-radius:20px;box-shadow:0 10px 28px rgba(16,35,29,.035);}
.rec-table-balanced{table-layout:fixed;}
.rec-table-balanced thead th{padding:13px 14px;}
.rec-table-balanced tbody td{padding:13px 14px;}
.rec-table-balanced tbody tr:hover{background:#fbf7e8;transition:background .18s ease;}
.rec-nutrient-pill{display:inline-flex;align-items:center;justify-content:center;min-width:58px;padding:7px 10px;border-radius:999px;background:#edf7f2;color:#0d4b3b;font-weight:950;letter-spacing:.02em;}
.rec-dose-value{display:inline-flex;align-items:center;justify-content:flex-end;min-width:78px;font-size:1rem;font-weight:950;color:#10231d;background:#f8faf9;border:1px solid #e6eee9;border-radius:12px;padding:7px 10px;}
.rec-unit-chip{display:inline-flex;align-items:center;justify-content:center;min-width:58px;border-radius:999px;background:#fff7da;color:#76520a;font-weight:900;padding:6px 9px;white-space:nowrap;}
.rec-obs-cell{color:#34443f;line-height:1.45;}
@media(max-width:900px){.rec-table-balanced{table-layout:auto}.rec-table-balanced thead th,.rec-table-balanced tbody td{padding:10px 9px}.rec-nutrient-pill{min-width:46px}.rec-dose-value{min-width:66px}.rec-obs-cell{min-width:300px}}
@media print{.rec-table-balanced-wrap{box-shadow:none!important;border-radius:10px!important}.rec-table-balanced thead th{padding:4px!important}.rec-table-balanced tbody td{padding:4px!important}.rec-nutrient-pill{min-width:34px!important;padding:2px 4px!important;border-radius:6px!important;font-size:7px!important}.rec-dose-value{min-width:45px!important;padding:2px 4px!important;border-radius:6px!important;font-size:7.5px!important}.rec-unit-chip{min-width:34px!important;padding:2px 4px!important;border-radius:6px!important;font-size:7px!important}.rec-obs-cell{font-size:7.8px!important;line-height:1.2!important}}

/* Ajuste de impressão: Recomendação Nutricional em 1 página A4 */
@media print {
    @page { size: A4 portrait; margin: 5mm; }

    html, body {
        width: 210mm !important;
        min-height: 297mm !important;
        background: #fff !important;
        overflow: visible !important;
    }

    body {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    body * {
        visibility: hidden;
    }

    .print-area, .print-area * {
        visibility: visible;
    }

    .print-area {
        position: absolute !important;
        left: 0 !important;
        top: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .rec-report.print-area {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 4.6mm !important;
        background: #fff !important;
        border-radius: 0 !important;
        font-size: 7.7px !important;
        line-height: 1.16 !important;
        align-content: start !important;
    }

    .rec-report .rec-hero,
    .rec-report .rec-section:first-of-type,
    .rec-report .rec-section:nth-of-type(4),
    .rec-report .rec-final-note {
        grid-column: 1 / -1 !important;
    }

    .rec-report .rec-hero {
        padding: 9px 11px !important;
        margin: 0 !important;
        border-radius: 10px !important;
        box-shadow: none !important;
        min-height: 0 !important;
    }

    .rec-report .rec-hero span {
        font-size: 6.2px !important;
        margin-bottom: 1px !important;
        line-height: 1 !important;
    }

    .rec-report .rec-hero h2 {
        font-size: 13px !important;
        line-height: 1.06 !important;
        margin: 0 0 2px !important;
    }

    .rec-report .rec-hero p {
        font-size: 7.2px !important;
        line-height: 1.14 !important;
        margin: 0 !important;
    }

    .rec-report .rec-hero-chip {
        font-size: 7.1px !important;
        padding: 5px 8px !important;
        border-radius: 7px !important;
    }

    .rec-report .rec-section {
        padding: 7px !important;
        margin: 0 !important;
        border-radius: 10px !important;
        box-shadow: none !important;
        border-color: #dfe8e3 !important;
        break-inside: avoid !important;
        page-break-inside: avoid !important;
        overflow: hidden !important;
    }

    .rec-report .rec-section-title {
        gap: 5px !important;
        margin-bottom: 5px !important;
        align-items: center !important;
    }

    .rec-report .rec-section-title span {
        width: 18px !important;
        height: 18px !important;
        min-width: 18px !important;
        font-size: 7.4px !important;
        border-radius: 6px !important;
    }

    .rec-report .rec-section-title h3 {
        font-size: 10.2px !important;
        line-height: 1.08 !important;
        margin: 0 !important;
    }

    .rec-report .rec-info-grid {
        grid-template-columns: repeat(9, 1fr) !important;
        gap: 4px !important;
    }

    .rec-report .rec-info {
        padding: 4px 5px !important;
        border-radius: 6px !important;
        min-height: 0 !important;
    }

    .rec-report .rec-info span {
        font-size: 5.2px !important;
        line-height: 1 !important;
        margin-bottom: 1px !important;
        letter-spacing: .025em !important;
    }

    .rec-report .rec-info strong {
        font-size: 6.8px !important;
        line-height: 1.08 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .rec-report .rec-chart-section .rec-short-note {
        display: none !important;
    }

    .rec-report .rec-chart-box {
        height: 92mm !important;
        min-height: 92mm !important;
        padding: 4px !important;
        border-radius: 8px !important;
    }

    .rec-report .rec-table-subtitle {
        display: inline-block !important;
        font-size: 8.4px !important;
        line-height: 1 !important;
        margin: 3px 0 3px !important;
        padding: 0 !important;
    }

    .rec-report .rec-table-subtitle.mt-3 {
        margin-top: 5px !important;
    }

    .rec-report .rec-table-balanced-wrap,
    .rec-report .rec-table-clean-wrap {
        border-radius: 6px !important;
        box-shadow: none !important;
    }

    .rec-report .rec-table-balanced,
    .rec-report .rec-table-clean {
        table-layout: fixed !important;
        width: 100% !important;
        font-size: 6.5px !important;
        line-height: 1.12 !important;
    }

    .rec-report .rec-table-balanced thead th,
    .rec-report .rec-table-clean thead th {
        padding: 3px 4px !important;
        font-size: 5.9px !important;
        line-height: 1 !important;
        letter-spacing: .025em !important;
    }

    .rec-report .rec-table-balanced tbody td,
    .rec-report .rec-table-clean tbody td {
        padding: 3px 4px !important;
        font-size: 6.5px !important;
        line-height: 1.12 !important;
    }

    .rec-report .rec-table-balanced th:nth-child(1),
    .rec-report .rec-table-balanced td:nth-child(1) { width: 9% !important; }
    .rec-report .rec-table-balanced th:nth-child(2),
    .rec-report .rec-table-balanced td:nth-child(2) { width: 13% !important; text-align: right !important; }
    .rec-report .rec-table-balanced th:nth-child(3),
    .rec-report .rec-table-balanced td:nth-child(3) { width: 9% !important; }
    .rec-report .rec-table-balanced th:nth-child(4),
    .rec-report .rec-table-balanced td:nth-child(4) { width: 69% !important; }

    .rec-report .rec-nutrient-pill {
        min-width: 26px !important;
        padding: 2px 4px !important;
        border-radius: 5px !important;
        font-size: 6.2px !important;
        line-height: 1 !important;
    }

    .rec-report .rec-dose-value {
        min-width: 38px !important;
        padding: 2px 4px !important;
        border-radius: 5px !important;
        font-size: 6.5px !important;
        line-height: 1 !important;
        justify-content: flex-end !important;
    }

    .rec-report .rec-unit-chip {
        min-width: 30px !important;
        padding: 2px 4px !important;
        border-radius: 5px !important;
        font-size: 6.2px !important;
        line-height: 1 !important;
    }

    .rec-report .rec-obs-cell {
        font-size: 6.45px !important;
        line-height: 1.14 !important;
    }

    .rec-report .rec-final-note {
        padding: 7px 8px !important;
    }

    .rec-report .rec-final-note .rec-section-title {
        margin-bottom: 2px !important;
    }

    .rec-report .rec-final-note p {
        font-size: 7.1px !important;
        line-height: 1.16 !important;
        margin: 0 !important;
    }

    .rec-report .rec-final-note {
        min-height: 20mm !important;
    }

    .rec-actions-bar,
    .no-print,
    .sidebar,
    .topbar,
    .mobile-topbar,
    .sidebar-backdrop,
    header,
    footer {
        display: none !important;
    }
}

/* ===== SOLO CORRECAO REPORT PREMIUM (2026-05-12) ===== */
.soil-report{background:#f7faf8;border-radius:28px;color:#14352d;}
.soil-hero{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;background:linear-gradient(135deg,#083f35 0%,#0b5a49 100%);color:#fff;border-radius:28px;padding:28px 32px;margin-bottom:18px;box-shadow:0 18px 40px rgba(7,50,41,.14)}
.soil-hero span{display:block;color:#f6d58d;text-transform:uppercase;letter-spacing:.08em;font-weight:900;font-size:.82rem;margin-bottom:8px}
.soil-hero h2{margin:0 0 8px;font-size:2.08rem;line-height:1.02;font-weight:900;letter-spacing:-.03em;color:#fff}
.soil-hero p{margin:0;font-size:1rem;line-height:1.45;max-width:980px;opacity:.96;color:#fff}
.soil-hero-chip{flex:0 0 auto;align-self:flex-start;background:rgba(255,255,255,.16);border:1px solid rgba(255,255,255,.24);color:#fff;border-radius:22px;padding:14px 20px;font-size:1rem;font-weight:800}
.soil-report-section{background:#fff;border:1px solid #e5eeea;border-radius:26px;padding:22px;margin-bottom:16px;box-shadow:0 12px 28px rgba(8,63,53,.06)}
.soil-section-title{display:flex;align-items:center;gap:14px;margin-bottom:14px}.soil-section-title span{width:50px;height:50px;display:inline-flex;align-items:center;justify-content:center;border-radius:16px;background:#eaf3ef;color:#0b5a49;font-weight:900;font-size:1.5rem}.soil-section-title h3{margin:0;color:#0b5a49;font-size:1.85rem;font-weight:900;letter-spacing:-.03em}
.soil-info-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.soil-info{border:1px solid #dce8e2;background:#f8fbf9;border-radius:18px;padding:18px 20px;min-height:112px;display:flex;flex-direction:column;justify-content:center}.soil-info span{display:block;color:#64748b;font-size:.78rem;text-transform:uppercase;font-weight:850;letter-spacing:.05em;margin-bottom:6px}.soil-info strong{display:block;color:#102f29;font-size:1.18rem;line-height:1.18;font-weight:900;word-break:break-word}
.soil-kpi-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px}.soil-kpi{border:1px solid #e7efeb;background:#f8fbf9;border-radius:18px;padding:14px}.soil-kpi span{display:block;color:#64748b;font-size:.73rem;text-transform:uppercase;font-weight:850;letter-spacing:.05em}.soil-kpi strong{display:block;color:#0d4b3b;font-size:1.58rem;font-weight:950;line-height:1.05;margin-top:4px}.soil-kpi small{color:#64748b;font-weight:650}
.soil-balance-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.soil-balance-item{border:1px solid #e2ebe6;background:#fbfdfc;border-radius:18px;padding:14px}.soil-balance-top{display:flex;justify-content:space-between;gap:8px;align-items:center;margin:4px 0;color:#0f3d33}.soil-balance-top strong{font-size:1.2rem}.soil-balance-top span,.soil-balance-top small{font-weight:800;color:#64748b}.soil-track{height:12px;background:#edf3f0;border-radius:999px;overflow:hidden}.soil-fill{height:100%;border-radius:999px}.soil-fill.atual{background:#2563eb!important}.soil-fill.alvo{background:#16a34a!important}.soil-short-note{margin:12px 0 0;color:#28443d;font-weight:650;line-height:1.45}.soil-table-clean{width:100%;margin-bottom:0;border-collapse:separate;border-spacing:0;overflow:hidden;border:1px solid #e3ece7;border-radius:22px}.soil-table-clean thead th{background:#eef5f1;color:#0b5a49;text-transform:uppercase;letter-spacing:.05em;font-size:.84rem;font-weight:900;padding:14px 16px;border-bottom:1px solid #e3ece7}.soil-table-clean tbody td{padding:16px;vertical-align:middle;border-top:1px solid #ebf1ee;color:#223b35;font-size:.96rem}.soil-table-clean tbody tr:first-child td{border-top:none}.soil-pill{display:inline-flex;align-items:center;justify-content:center;min-width:120px;padding:9px 14px;border-radius:999px;background:#eaf3ef;color:#0b5a49;font-weight:900;font-size:.92rem}.soil-value-chip{display:inline-flex;align-items:center;justify-content:center;padding:9px 14px;border-radius:16px;background:#f8fbf9;border:1px solid #dfeae4;color:#122f29;font-weight:900;min-width:105px}.soil-unit-chip{display:inline-flex;align-items:center;justify-content:center;padding:8px 12px;border-radius:999px;background:#fff3cf;color:#59400c;font-weight:900}.soil-final-note p{margin:0;color:#28443d;line-height:1.55}
@media(max-width:1100px){.soil-info-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.soil-kpi-grid,.soil-balance-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.soil-hero{flex-direction:column;padding:22px 20px;border-radius:22px}.soil-hero h2{font-size:1.6rem}.soil-report-section{padding:16px;border-radius:20px}.soil-section-title span{width:38px;height:38px;font-size:1.1rem;border-radius:12px}.soil-section-title h3{font-size:1.35rem}.soil-info-grid,.soil-kpi-grid,.soil-balance-grid{grid-template-columns:1fr}.soil-info{min-height:90px;padding:14px 16px}}
@media print{.soil-report{background:#fff!important;border-radius:0!important;margin:0!important}.soil-hero{box-shadow:none!important;border-radius:0!important;padding:11px 14px!important;margin-bottom:7px!important;-webkit-print-color-adjust:exact;print-color-adjust:exact}.soil-hero span{font-size:7px!important;margin-bottom:2px!important}.soil-hero h2{font-size:16px!important;margin-bottom:3px!important}.soil-hero p{font-size:8px!important;line-height:1.18!important}.soil-hero-chip{font-size:8px!important;padding:6px 8px!important;border-radius:8px!important}.soil-report-section{box-shadow:none!important;border-radius:10px!important;padding:7px!important;margin-bottom:5px!important;break-inside:avoid!important;page-break-inside:avoid!important}.soil-section-title{gap:6px!important;margin-bottom:4px!important}.soil-section-title span{width:20px!important;height:20px!important;font-size:9px!important;border-radius:6px!important}.soil-section-title h3{font-size:11.5px!important}.soil-info-grid{grid-template-columns:repeat(4,1fr)!important;gap:5px!important}.soil-info{padding:6px!important;border-radius:8px!important;min-height:39px!important}.soil-info span{font-size:6.2px!important;margin-bottom:1px!important}.soil-info strong{font-size:8px!important;line-height:1.12!important}.soil-kpi-grid{grid-template-columns:repeat(6,1fr)!important;gap:4px!important}.soil-kpi{padding:5px!important;border-radius:8px!important}.soil-kpi span{font-size:5.8px!important}.soil-kpi strong{font-size:11px!important}.soil-kpi small{font-size:6.2px!important}.soil-balance-grid{grid-template-columns:repeat(4,1fr)!important;gap:4px!important}.soil-balance-item{padding:5px!important;border-radius:8px!important}.soil-balance-top{margin:1px 0!important}.soil-balance-top strong{font-size:8px!important}.soil-balance-top span,.soil-balance-top small{font-size:6px!important}.soil-track{height:6px!important}.soil-short-note{font-size:6.6px!important;line-height:1.12!important;margin-top:3px!important}.soil-table-clean{font-size:7px!important}.soil-table-clean thead th{font-size:5.8px!important;padding:3px!important}.soil-table-clean tbody td{font-size:6.5px!important;padding:3px!important}.soil-pill{min-width:0!important;padding:2px 4px!important;font-size:6px!important}.soil-value-chip{min-width:0!important;padding:2px 4px!important;border-radius:5px!important;font-size:6px!important}.soil-unit-chip{padding:2px 4px!important;font-size:6px!important}.soil-final-note p{font-size:6.7px!important;line-height:1.12!important}.no-print,.sidebar,.topbar,.mobile-topbar,.sidebar-backdrop,header,footer{display:none!important}@page{size:A4 portrait;margin:8mm}}
