
.satiro-agrofit-app,
.satiro-agrofit-admin-wrap {
    --agrofit-green: #1f7a3f;
    --agrofit-green-dark: #14572c;
    --agrofit-border: #dfe7e2;
    --agrofit-bg: #f7faf8;
    --agrofit-text: #1f2933;
    --agrofit-muted: #5d6b63;
}

.satiro-agrofit-app {
    width: 100%;
    max-width: none;
    margin: 24px 0;
    color: var(--agrofit-text);
    font-family: inherit;
}

.satiro-agrofit-header {
    padding: 24px;
    border: 1px solid var(--agrofit-border);
    border-radius: 14px 14px 0 0;
    background: #fff;
}

.satiro-agrofit-header h2 {
    margin: 0 0 6px;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.satiro-agrofit-header p {
    margin: 0;
    color: var(--agrofit-muted);
}

.satiro-agrofit-form {
    padding: 24px;
    border: 1px solid var(--agrofit-border);
    border-top: 0;
    background: var(--agrofit-bg);
}

.satiro-agrofit-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.satiro-field label {
    display: block;
    margin-bottom: 6px;
    font-weight: 700;
}

.satiro-field input[type="text"] {
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid #cbd7cf;
    border-radius: 8px;
    background: #fff;
    box-sizing: border-box;
    font-size: 16px;
}

.satiro-field input:focus {
    outline: 2px solid rgba(31, 122, 63, .18);
    border-color: var(--agrofit-green);
}

.satiro-checks {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin: 20px 0;
}

.satiro-checks label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

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

.satiro-agrofit-button,
.satiro-agrofit-clear {
    min-height: 44px;
    padding: 10px 18px;
    border-radius: 8px;
    border: 1px solid transparent;
    cursor: pointer;
    font-weight: 700;
    font-size: 16px;
}

.satiro-agrofit-button {
    background: var(--agrofit-green);
    color: #fff;
}

.satiro-agrofit-button:hover,
.satiro-agrofit-button:focus {
    background: var(--agrofit-green-dark);
}

.satiro-agrofit-clear {
    background: #fff;
    color: var(--agrofit-text);
    border-color: #cbd7cf;
}

.satiro-agrofit-status {
    margin: 18px 0;
    min-height: 1px;
    font-weight: 600;
}

.satiro-agrofit-status.is-error {
    color: #9f241d;
}

.satiro-agrofit-results {
    display: grid;
    gap: 12px;
}

.satiro-agrofit-card {
    padding: 16px 18px;
    border: 1px solid var(--agrofit-border);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 3px 16px rgba(20, 60, 35, .06);
}

.satiro-agrofit-card h3 {
    margin: 0 0 8px;
    font-size: 1.35rem;
}

.satiro-agrofit-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 10px 0 14px;
}

.satiro-agrofit-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 9px;
    border-radius: 999px;
    background: #eaf6ee;
    color: var(--agrofit-green-dark);
    font-size: .88rem;
    font-weight: 700;
}

.satiro-agrofit-card dl {
    display: grid;
    grid-template-columns: minmax(155px, 210px) 1fr;
    margin: 0;
    gap: 7px 14px;
}

.satiro-agrofit-card dt {
    font-weight: 700;
}

.satiro-agrofit-card dd {
    margin: 0;
}

.satiro-agrofit-uses {
    margin-top: 15px;
    padding-top: 14px;
    border-top: 1px solid var(--agrofit-border);
}

.satiro-agrofit-uses summary {
    cursor: pointer;
    font-weight: 700;
}

.satiro-agrofit-uses ul {
    margin: 12px 0 0 20px;
}

.satiro-agrofit-link {
    display: inline-block;
    margin-top: 14px;
    font-weight: 700;
}

.satiro-agrofit-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 22px 0;
}

.satiro-agrofit-pagination button {
    min-height: 40px;
    padding: 8px 14px;
    border: 1px solid #cbd7cf;
    border-radius: 7px;
    background: #fff;
    cursor: pointer;
    font-weight: 700;
}

.satiro-agrofit-pagination button:disabled {
    opacity: .45;
    cursor: not-allowed;
}

.satiro-agrofit-notice {
    margin-top: 24px;
    padding: 16px 18px;
    border-left: 4px solid var(--agrofit-green);
    background: #f4f8f5;
    font-size: .95rem;
    line-height: 1.55;
}

.satiro-agrofit-admin-card {
    max-width: 900px;
    margin: 18px 0;
    padding: 22px;
    background: #fff;
    border: 1px solid #dcdcde;
    border-radius: 8px;
}

#satiro-agrofit-test-result {
    display: inline-block;
    margin-left: 10px;
    font-weight: 600;
}

#satiro-agrofit-test-result.ok {
    color: #137333;
}

#satiro-agrofit-test-result.error {
    color: #b3261e;
}

@media (max-width: 700px) {
    .satiro-agrofit-grid {
        grid-template-columns: 1fr;
    }

    .satiro-agrofit-header,
    .satiro-agrofit-form {
        padding: 18px;
    }

    .satiro-agrofit-card dl {
        grid-template-columns: 1fr;
        gap: 2px;
    }

    .satiro-agrofit-card dd {
        margin-bottom: 8px;
    }
}


.satiro-agrofit-usage-button {
    margin-top: 12px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--agrofit-green-dark);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    text-align: left;
}

.satiro-agrofit-usage-button:hover,
.satiro-agrofit-usage-button:focus {
    text-decoration: underline;
}

.satiro-agrofit-usage-content {
    margin-top: 10px;
}

.satiro-agrofit-usage-content ul {
    margin: 8px 0 0 20px;
}


/* Página da consulta em largura total */
body.no-sidebar .site-content,
body.no-sidebar .content-area,
body.no-sidebar main.site-main {
    width: 100%;
}

.satiro-agrofit-app,
.satiro-agrofit-app * {
    box-sizing: border-box;
}


.satiro-autocomplete-hint {
    margin: 10px 0 0;
    color: var(--agrofit-muted);
    font-size: .92rem;
}

.satiro-agrofit-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 10px;
}

.satiro-agrofit-card-top h3 {
    margin-bottom: 0;
}

.satiro-agrofit-card dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 28px;
}

.satiro-agrofit-data-row {
    display: grid;
    grid-template-columns: minmax(145px, 190px) 1fr;
    gap: 10px;
    padding: 5px 0;
    border-bottom: 1px dashed #edf1ee;
}

.satiro-agrofit-data-row:nth-last-child(-n+2) {
    border-bottom-color: transparent;
}

.satiro-agrofit-data-row dt,
.satiro-agrofit-data-row dd {
    margin: 0;
}

.satiro-agrofit-card-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 18px;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid var(--agrofit-border);
}

.satiro-agrofit-card-footer .satiro-agrofit-uses,
.satiro-agrofit-card-footer .satiro-agrofit-link {
    margin-top: 0;
}

.satiro-agrofit-refine {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    margin: 12px 0 16px;
    padding: 12px 14px;
    border: 1px solid var(--agrofit-border);
    border-radius: 9px;
    background: #fff;
}

.satiro-agrofit-refine[hidden] {
    display: none !important;
}

.satiro-agrofit-refine label {
    font-weight: 700;
}

.satiro-agrofit-refine select {
    min-height: 40px;
    max-width: 360px;
    padding: 6px 34px 6px 10px;
    border: 1px solid #cbd7cf;
    border-radius: 7px;
    background: #fff;
}

#satiro-agrofit-refine-count {
    color: var(--agrofit-muted);
    font-size: .92rem;
}

.satiro-agrofit-pagination {
    padding: 14px 10px;
    border-top: 1px solid var(--agrofit-border);
    border-bottom: 1px solid var(--agrofit-border);
}

.satiro-agrofit-pagination button.is-current {
    background: var(--agrofit-green);
    border-color: var(--agrofit-green);
    color: #fff;
    opacity: 1;
}

.satiro-agrofit-page-info {
    width: 100%;
    text-align: center;
    color: var(--agrofit-muted);
    font-weight: 700;
}

@media (max-width: 900px) {
    .satiro-agrofit-card dl {
        grid-template-columns: 1fr;
    }

    .satiro-agrofit-data-row:nth-last-child(-n+2) {
        border-bottom-color: #edf1ee;
    }

    .satiro-agrofit-card-top {
        display: block;
    }
}

@media (max-width: 700px) {
    .satiro-agrofit-data-row {
        grid-template-columns: 1fr;
        gap: 2px;
    }

    .satiro-agrofit-card-footer {
        display: block;
    }

    .satiro-agrofit-card-footer .satiro-agrofit-link {
        margin-top: 10px;
    }

    .satiro-agrofit-refine {
        display: block;
    }

    .satiro-agrofit-refine label,
    .satiro-agrofit-refine select,
    #satiro-agrofit-refine-count {
        display: block;
        width: 100%;
        max-width: none;
        margin-bottom: 8px;
    }

    .satiro-agrofit-pagination button {
        padding: 7px 10px;
    }
}


.satiro-agrofit-export {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    margin: 0 0 16px;
    padding: 11px 14px;
    border: 1px solid var(--agrofit-border);
    border-radius: 9px;
    background: #f7faf8;
}

.satiro-agrofit-export[hidden] {
    display: none !important;
}

.satiro-agrofit-export-label {
    margin-right: 3px;
    font-weight: 700;
}

.satiro-agrofit-export-button {
    min-height: 38px;
    padding: 7px 13px;
    border: 1px solid var(--agrofit-green);
    border-radius: 7px;
    background: #fff;
    color: var(--agrofit-green-dark);
    cursor: pointer;
    font: inherit;
    font-weight: 700;
}

.satiro-agrofit-export-button:hover,
.satiro-agrofit-export-button:focus {
    background: var(--agrofit-green);
    color: #fff;
}

@media (max-width: 700px) {
    .satiro-agrofit-export {
        display: block;
    }

    .satiro-agrofit-export-label {
        display: block;
        margin-bottom: 8px;
    }

    .satiro-agrofit-export-button {
        margin: 0 5px 5px 0;
    }
}
