/* Syngenta - Resultados Nidera : front-end */

.nid-res {
    --nid-accent: #1e552a;
    --nid-badge: #fdd301;
    --nid-green-dark: #1e552a;
    --nid-text: #212121;
    --nid-cell: #5a5a5a;
    --nid-muted: #787878;
    --nid-placeholder: #828282;
    --nid-border: #d9d9d9;
    --nid-row-border: #f0f0f0;
    font-family: 'Stag Sans', Helvetica, Arial, sans-serif;
    color: var(--nid-text);
    width: 100%;
}
.nid-res *,
.nid-res *::before,
.nid-res *::after {
    box-sizing: border-box;
}
.nid-res :where(p) {
    margin: 0;
}
.nid-res button {
    font-family: inherit;
    background: none;
    cursor: pointer;
}
.nid-res .nid-res__tab,
.nid-res .nid-res__page,
.nid-res .nid-res__modal-close {
    border: 0;
}
/* The theme's reset.css paints [type=button]:hover/:focus pink (#c36);
   every interactive state below overrides it explicitly. */
.nid-res button:hover,
.nid-res button:focus {
    background: transparent;
    color: inherit;
    outline: none;
}
.nid-res .nid-res__tab:hover,
.nid-res .nid-res__tab:focus {
    background: #C3C3C3;
    color: var(--nid-text);
}
.nid-res .nid-res__tab.is-active:hover,
.nid-res .nid-res__tab.is-active:focus {
    background: var(--nid-accent);
    color: #fff;
}
.nid-res .nid-res__tabs--cultura .nid-res__tab.is-active:hover,
.nid-res .nid-res__tabs--cultura .nid-res__tab.is-active:focus {
    background: var(--nid-green-dark);
    color: #fff;
}
.nid-res .nid-res__select-btn:hover,
.nid-res .nid-res__select-btn:focus {
    background: #fff;
    color: inherit;
    border-color: var(--nid-border);
}
.nid-res .nid-res__page:hover,
.nid-res .nid-res__page:focus {
    background: #f0f0f0;
    color: #1e1e1e;
}
.nid-res .nid-res__page.is-active:hover,
.nid-res .nid-res__page.is-active:focus {
    background: var(--nid-accent);
    color: #fff;
}
.nid-res .nid-res__page--next:hover,
.nid-res .nid-res__page--next:focus {
    background: #f0f0f0;
}
.nid-res .nid-res__btn--share:hover,
.nid-res .nid-res__btn--share:focus {
    background: #eec701;
    color: #212121;
}
.nid-res .nid-res__btn--download:hover,
.nid-res .nid-res__btn--download:focus {
    background: #f5f5f5;
    color: #212121;
}
.nid-res .nid-res__modal-close:hover,
.nid-res .nid-res__modal-close:focus {
    background: transparent;
}

/* ---------- Cultura tabs (Soja | Milho) ---------- */
/* Lives inline inside .nid-res__filters, same row as the categoria tabs and
   dropdowns, wrapping naturally - matches the Figma single-row filter bar. */
.nid-res__tabs--cultura .nid-res__tab.is-active {
    background: var(--nid-green-dark);
}

/* ---------- Layout (table column + banner column) ---------- */
.nid-res__layout {
    display: grid;
    grid-template-columns: 1fr 332px;
    gap: 40px;
    align-items: start;
    width: 100%;
}
.nid-res__main {
    /* min-width lets the column shrink; max-width caps it when a nested
       scroll container (the results tbody) reports a larger intrinsic
       width - without it, narrow phones (<400px) get sideways overflow. */
    min-width: 0;
    max-width: 100%;
}
.nid-res__table,
.nid-res__banner {
    max-width: 100%;
}

/* ---------- Promo banner (Figma node 40008308:51920/51766) ---------- */
.nid-res__banner {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 332px;
    padding: 24px;
    overflow: hidden;
    background-color: var(--nid-green-dark);
    background-image: linear-gradient(to bottom, #1e552a, #22482a);
    border-radius: 16px;
}
.nid-res__banner::before {
    content: "";
    position: absolute;
    top: -38px;
    left: -79px;
    width: 328px;
    height: 311px;
    background: url(../img/banner-vector.svg) center / contain no-repeat;
    pointer-events: none;
}
.nid-res__banner-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
}
/* The site kit's @font-face maps Stag Sans files to nonstandard weights:
   SemiBold.woff => font-weight 300, Medium.woff => 200 (Regular=400,
   Bold=700). Requesting 600/500 would fall back to Bold/Regular, so the
   weights below are chosen to load the intended FILES, not the nominal
   CSS weight names. If the agency ever fixes the kit mapping, update these. */
.nid-res__banner-title {
    font-size: 32px;
    font-weight: 300; /* Stag Sans SemiBold file */
    line-height: 1.2;
    color: #fdd301;
}
.nid-res__banner-title span {
    display: block;
}
.nid-res__banner-title span + span {
    color: #fff;
}
.nid-res__banner-img {
    display: block;
    width: 100%;
    max-width: 208px;
    max-height: 220px;
    height: auto;
    object-fit: contain;
}
.nid-res__banner-img[hidden] {
    display: none;
}
/* Doubled class selector outguns the kit's global `.elementor-kit-11 a`
   color rules (0,1,1) - without it the CTA text renders in the site's
   green link color instead of black. */
.nid-res .nid-res__banner-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 40px;
    padding: 0 16px;
    background: var(--nid-badge);
    border-radius: 8px;
    font-family: 'Stag Sans', Helvetica, Arial, sans-serif;
    font-size: 16px;
    font-weight: 200; /* Stag Sans Medium file - see kit-mapping note above */
    letter-spacing: -0.15px;
    line-height: 1;
    color: var(--nid-text);
    text-align: center;
    text-decoration: none;
}
.nid-res .nid-res__banner-cta:hover,
.nid-res .nid-res__banner-cta:focus {
    background: #eec701;
    color: var(--nid-text);
}
.nid-res__banner-cta.is-disabled {
    pointer-events: none;
}

/* ---------- Filters ---------- */
.nid-res__filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    width: 100%;
}
.nid-res__tabs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 40px;
    padding: 0 4px;
    background: #fff;
    border: 1px solid var(--nid-border);
    border-radius: 8px;
}
.nid-res__tabs[hidden] {
    display: none;
}
.nid-res__tab {
    width: 80px;
    padding: 8px 0;
    border-radius: 8px;
    font-size: 16px;
    line-height: 1;
    color: var(--nid-placeholder);
    text-align: center;
    transition: background 0.15s, color 0.15s;
}
.nid-res__tab.is-active {
    background: var(--nid-accent);
    color: #fff;
}

.nid-res__select {
    position: relative;
    width: 196px;
}
.nid-res__select[data-filter="estado"],
.nid-res__select[data-filter="safra"] {
    width: 160px;
}
.nid-res__select-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    height: 40px;
    padding: 0 12px;
    background: #fff;
    border: 1px solid var(--nid-border);
    border-radius: 8px;
    text-align: left;
}
.nid-res__select-label {
    flex: 1;
    overflow: hidden;
    font-size: 14px;
    line-height: 1.45;
    color: var(--nid-placeholder);
    text-overflow: ellipsis;
    white-space: nowrap;
}
.nid-res__select.has-value .nid-res__select-label {
    color: var(--nid-text);
}
.nid-res__select-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    background: center / contain no-repeat;
}
.nid-res__select-icon--produto {
    background-image: url(../img/icon-sacaria.png);
    background-size: contain;
    background-position: center;
}
.nid-res__select-icon--estado {
    background-image: url(../img/icon-pin-estado.svg);
    background-size: contain;
}
.nid-res__select-icon--safra {
    background-image: url(../img/icon-calendar.svg);
    background-size: contain;
}
.nid-res__select-chevron {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    background-color: #A4A4A4;
    mask: url(../img/icon-chevron.svg) center / contain no-repeat;
    -webkit-mask: url(../img/icon-chevron.svg) center / contain no-repeat;
    transition: transform 0.15s, background-color 0.15s;
}
.nid-res__select.is-open .nid-res__select-chevron {
    transform: rotate(180deg);
}
.nid-res__select.is-open .nid-res__select-btn {
    border-color: var(--nid-accent);
}
.nid-res__select.is-open .nid-res__select-label {
    color: #212121;
}
.nid-res__select.is-open .nid-res__select-chevron {
    background-color: #212121;
}
/* Higher-specificity safety net: opening the dropdown focuses the button,
   so the :hover/:focus shield above must never be able to win this fight. */
.nid-res__select.is-open .nid-res__select-btn:hover,
.nid-res__select.is-open .nid-res__select-btn:focus {
    border-color: var(--nid-accent);
    background: #fff;
}
.nid-res__select-list {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    z-index: 30;
    min-width: 100%;
    width: max-content;
    max-width: 320px;
    max-height: 320px;
    margin: 0;
    padding: 0;
    overflow-y: auto;
    list-style: none;
    background: #fff;
    border: 1px solid var(--nid-border);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}
.nid-res__select-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px;
    font-size: 16px;
    color: #171717;
    cursor: pointer;
}
.nid-res__select-list li::after {
    content: "";
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border: 2px solid #b6bcc3;
    border-radius: 50%;
    background: #fff;
    box-sizing: border-box;
}
.nid-res__select-list li:hover {
    background: #f7f7f7;
}
.nid-res__select-list li.is-selected {
    background: #f5f5f5;
}
.nid-res__select-list li.is-selected::after {
    border-color: var(--nid-accent);
    background: radial-gradient(circle, var(--nid-accent) 0 5px, #fff 5.5px);
}
/* Radio indicator is a mobile-only affordance (Figma's desktop dropdown
   has no circle); the ::after itself stays defined above so mobile keeps it. */
@media (min-width: 768px) {
    .nid-res__select-list li::after {
        display: none;
    }
}

.nid-res__check {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
}
.nid-res__check input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.nid-res__check-box {
    width: 16px;
    height: 16px;
    background: #f2f2f2;
    border: 1px solid var(--nid-border);
    border-radius: 4px;
    transition: background 0.15s, border-color 0.15s;
}
.nid-res__check input:checked + .nid-res__check-box {
    background: var(--nid-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M3.5 8.5l3 3 6-6'/%3E%3C/svg%3E") center / 12px no-repeat;
    border-color: var(--nid-accent);
}
.nid-res__check-label {
    font-size: 14px;
    line-height: 1.2;
    color: var(--nid-text);
}

/* ---------- Meta / divider ---------- */
.nid-res__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-top: 24px;
    font-size: 14px;
    color: var(--nid-muted);
}
.nid-res__count strong {
    font-weight: 400;
    color: var(--nid-text);
}
.nid-res__divider {
    width: 100%;
    height: 1px;
    margin: 24px 0;
    background: var(--nid-row-border);
}

/* ---------- Table (desktop) ---------- */
.nid-res__table {
    position: relative;
    width: 100%;
    overflow-x: auto;
}
/* JS-driven scrollbar for the mobile scrollbox (iOS never shows a persistent
   native one); hidden by the `hidden` attribute outside mobile. */
.nid-res__scrollbar {
    position: absolute;
    top: 4px;
    right: 0;
    bottom: 4px;
    width: 4px;
    background: var(--nid-row-border);
    border-radius: 4px;
}
.nid-res__scrollbar[hidden] {
    display: none;
}
.nid-res__scrollbar-thumb {
    width: 100%;
    background: #aeb6bd;
    border-radius: 4px;
    will-change: transform;
}
.nid-res__thead,
.nid-res__tbody {
    min-width: 832px;
}
.nid-res__thead,
.nid-res__row {
    display: grid;
    grid-template-columns: 128px 180px 120px 72px 128px 104px minmax(120px, 1fr);
    width: 100%;
}
.nid-res__th {
    padding: 12px 8px;
    border-bottom: 1px solid var(--nid-row-border);
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    color: var(--nid-muted);
}
.nid-res__th.nid-res__col--resultado {
    text-align: right;
}
.nid-res__row {
    min-height: 60px;
    cursor: pointer;
    transition: background 0.12s;
}
.nid-res__row:hover {
    background: #f7fafc;
}
.nid-res__cell {
    display: flex;
    flex-direction: column;
    gap: 6px;
    justify-content: center;
    align-items: flex-start;
    min-width: 0;
    padding: 8px;
    border-bottom: 1px solid var(--nid-row-border);
    font-size: 14px;
    line-height: 1;
    color: var(--nid-cell);
}
.nid-res__cell > span {
    max-width: 100%;
    overflow: hidden;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.nid-res__cell--resultado {
    flex-direction: row;
    gap: 4px;
    align-items: baseline;
    justify-content: flex-end;
    font-size: 14px;
    font-weight: 700;
    color: var(--nid-accent);
}
/* Units differ per row (sc/ha, ton/ha), so they are printed next to each
   value instead of once in the column header. */
.nid-res__cell--resultado .nid-res__unidade {
    flex-shrink: 0;
    font-size: 12px;
    font-weight: 400;
    color: var(--nid-muted, #6b6b6b);
}
.nid-res__badge {
    display: inline-block;
    padding: 2px 4px;
    border-radius: 8px;
    background: var(--nid-badge);
    box-shadow: 0 0 5px rgba(16, 16, 16, 0.1);
    font-size: 12px;
    font-weight: 400;
    line-height: normal;
    color: #fff;
}
.nid-res__empty {
    padding: 32px 8px;
    font-size: 14px;
    color: var(--nid-muted);
    text-align: center;
}

/* Mobile-only bits inside a row */
.nid-res__cell--mobile,
.nid-res__row-chevron {
    display: none;
}

/* ---------- Showing / pagination ---------- */
.nid-res__showing {
    margin-top: 16px;
    font-size: 14px;
    line-height: 1;
    color: var(--nid-muted);
}
.nid-res__showing strong {
    font-weight: 400;
    color: var(--nid-text);
}
.nid-res__pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 24px;
}
.nid-res__page {
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 16px;
    line-height: 1;
    color: #1e1e1e;
}
.nid-res__page.is-active {
    background: var(--nid-accent);
    color: #fff;
}
.nid-res__page--gap {
    padding: 8px 16px;
    font-weight: 700;
    cursor: default;
}
.nid-res__page--next {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 32px;
}
.nid-res__page--next::after {
    content: "";
    width: 16px;
    height: 16px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%231e1e1e' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' d='M3 8h10M9 4l4 4-4 4'/%3E%3C/svg%3E") center / contain no-repeat;
}
.nid-res__page--next:disabled {
    opacity: 0.35;
    cursor: default;
}

/* ---------- Modal ---------- */
.nid-res__overlay[hidden] {
    display: none;
}
.nid-res__overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(13, 27, 42, 0.55);
}
.nid-res__modal {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 498px;
    max-width: 100%;
    max-height: calc(100vh - 32px);
    padding: 16px 24px;
    overflow-y: auto;
    background: #fff;
    border-radius: 30px;
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.1);
}
.nid-res__modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 2;
    width: 24px;
    height: 24px;
    padding: 0;
}
.nid-res__modal-close span {
    display: block;
    width: 100%;
    height: 100%;
    background: url(../img/icon-x.svg) center / contain no-repeat;
}
.nid-res__card {
    background: #fff;
}
.nid-res__card-header {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    padding: 12px 0;
}
.nid-res__card-left {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}
.nid-res__card-logo {
    align-self: flex-start;
    max-width: 170px;
    max-height: 48px;
    object-fit: contain;
}
.nid-res__card-produto-nome {
    margin: 0;
    font-family: 'Stag Sans', Helvetica, Arial, sans-serif;
    font-size: 28px;
    font-weight: bold;
    color: var(--nid-accent);
}
.nid-res__card-label {
    margin: 0;
    font-size: 14px;
    line-height: 1;
    color: #888;
}
.nid-res__card-numero {
    margin: 4px 0 -4px;
    font-family: 'Bebas Neue', 'Stag Sans', Helvetica, Arial, sans-serif;
    font-size: 80px;
    font-weight: bold;
    line-height: 0.95;
    color: var(--nid-accent);
    white-space: nowrap;
}
.nid-res__card-unidade {
    margin: 0;
    font-size: 16px;
    line-height: 1;
    color: #888;
}
.nid-res__card-mapa {
    flex-shrink: 0;
    width: 218.64px;
    height: 220px;
}
.nid-res__card-mapa img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.nid-res__card-mapa.is-empty {
    display: none;
}
.nid-res__card-body {
    padding-bottom: 24px;
}
.nid-res__card-produtor {
    margin: 0;
    font-family: 'Bebas Neue', 'Stag Sans', Helvetica, Arial, sans-serif;
    font-size: 24px;
    font-weight: 400;
    line-height: 1;
    color: #171717;
}
.nid-res__card-local {
    margin-top: 8px;
    padding-bottom: 8px;
    overflow: hidden;
    font-size: 14px;
    line-height: 1;
    color: #171717;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.nid-res__card-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
}
.nid-res__card-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px;
    border-bottom: 1px solid var(--nid-row-border);
    font-size: 16px;
    line-height: 1;
}
.nid-res__card-line span:first-child {
    color: #888;
}
.nid-res__card-line span:last-child {
    color: #171717;
}
.nid-res__card-actions {
    display: flex;
    gap: 8px;
}
.nid-res .nid-res__btn {
    appearance: none;
    -webkit-appearance: none;
    border: 1px solid transparent;
    box-sizing: border-box;
    min-height: 56px;
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 56px;
    padding: 0 20px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 200; /* Stag Sans Medium file - see kit-mapping note above */
    letter-spacing: -0.15px;
    line-height: 1;
    white-space: nowrap;
}
.nid-res .nid-res__btn--share {
    background: var(--nid-badge);
    color: #212121;
}
.nid-res .nid-res__btn--download {
    border: 1px solid #212121;
    color: #212121;
}
.nid-res .nid-res__btn-icon {
    width: 16px;
    height: 16px;
    background: center / contain no-repeat;
}
.nid-res .nid-res__btn-icon--share {
    background-image: url(../img/icon-share.svg);
}
.nid-res .nid-res__btn-icon--download {
    background-image: url(../img/icon-download.svg);
}
.nid-res .nid-res__btn.is-busy {
    opacity: 0.6;
    pointer-events: none;
}

/* ---------- Tablet (stack banner below, keep desktop table) ---------- */
@media (min-width: 768px) and (max-width: 1024px) {
    .nid-res__layout {
        display: flex;
        flex-direction: column;
        gap: 32px;
    }
    .nid-res__main {
        order: 1;
        width: 100%;
    }
    .nid-res__banner {
        order: 2;
        margin: 0 auto;
    }
    /* Slightly tighter columns so the table fits without a side scroll on
       most tablets; when it still overflows, show a clear thin scrollbar. */
    .nid-res__thead,
    .nid-res__tbody {
        min-width: 700px;
    }
    .nid-res__thead,
    .nid-res__row {
        grid-template-columns: 100px 150px 104px 60px 104px 80px minmax(102px, 1fr);
    }
    .nid-res__table {
        padding-bottom: 4px;
        scrollbar-width: thin;
        scrollbar-color: #aeb6bd transparent;
    }
    .nid-res__table::-webkit-scrollbar {
        height: 6px;
    }
    .nid-res__table::-webkit-scrollbar-thumb {
        background: #aeb6bd;
        border-radius: 6px;
    }
    .nid-res__table::-webkit-scrollbar-track {
        background: transparent;
    }
}

/* ---------- Mobile ---------- */
@media (max-width: 767px) {
    .nid-res__tabs {
        width: 100%;
    }
    .nid-res__tab {
        flex: 1;
        width: auto;
    }
    .nid-res__layout {
        display: flex;
        flex-direction: column;
        gap: 24px;
    }
    /* Figma mobile banner (node 40008308:53600) is the compact variant:
       no product image, smaller title and CTA, tighter padding. */
    .nid-res__banner {
        width: 100%;
        order: 2;
        padding: 24px 16px;
    }
    .nid-res__banner-content {
        gap: 16px;
    }
    .nid-res__banner-title {
        font-size: 24px;
    }
    .nid-res__banner-img {
        display: none;
    }
    .nid-res .nid-res__banner-cta {
        height: 32px;
        padding: 0 12px;
        font-size: 14px;
    }
    .nid-res__main {
        order: 1;
    }
    .nid-res__select,
    .nid-res__select[data-filter="estado"],
    .nid-res__select[data-filter="safra"] {
        width: calc(50% - 8px);
    }
    .nid-res__meta {
        margin-top: 16px;
    }
    .nid-res__divider {
        margin: 16px 0;
    }

    .nid-res__thead {
        display: none;
    }
    .nid-res__tbody {
        display: flex;
        flex-direction: column;
        gap: 16px;
        max-height: 780px;
        overflow-y: auto;
        padding: 4px 14px 4px 4px;
        scrollbar-width: thin;
        scrollbar-color: #aeb6bd transparent;
    }
    .nid-res__tbody::-webkit-scrollbar {
        width: 8px;
    }
    .nid-res__tbody::-webkit-scrollbar-thumb {
        background: #aeb6bd;
        border-radius: 8px;
    }
    .nid-res__tbody::-webkit-scrollbar-track {
        background: transparent;
    }
    .nid-res__cell--produto .nid-res__badge {
        display: none;
    }
    .nid-res__showing,
    .nid-res__pagination {
        display: none;
    }
    .nid-res__row {
        position: relative;
        display: flex;
        flex-shrink: 0;
        flex-wrap: wrap;
        align-items: center;
        gap: 4px 8px;
        min-height: 0;
        padding: 16px 40px 16px 16px;
        background: #fff;
        border-radius: 16px;
        box-shadow: 0 2px 10px rgba(16, 16, 16, 0.08);
    }
    .nid-res__row:hover {
        background: #fff;
    }
    .nid-res__cell {
        display: none;
        padding: 0;
        border-bottom: 0;
    }
    .nid-res__cell--produto {
        display: flex;
        order: 4;
        width: 100%;
        margin-top: 8px;
    }
    .nid-res__cell--produto .nid-res__produto-nome {
        display: inline-block;
        padding: 6px 10px;
        border: 1px solid var(--nid-border);
        border-radius: 8px;
        font-size: 12px;
        font-weight: 700;
        color: var(--nid-text);
    }
    .nid-res__cell--mobile {
        display: flex;
        flex: 1;
        flex-direction: column;
        gap: 6px;
        order: 1;
        min-width: 0;
    }
    .nid-res__mobile-nome {
        overflow: hidden;
        font-size: 16px;
        font-weight: 700;
        line-height: 1.2;
        color: #171717;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .nid-res__mobile-local {
        overflow: hidden;
        font-size: 12px;
        line-height: 1.2;
        color: var(--nid-muted);
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .nid-res__thead,
    .nid-res__tbody {
        min-width: 0;
    }
    .nid-res__cell--resultado {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        gap: 2px;
        order: 2;
        font-family: 'Stag Sans', Helvetica, Arial, sans-serif;
        font-size: 32px;
        font-weight: bold;
        line-height: 1.15;
        color: var(--nid-accent);
    }
    .nid-res__cell--resultado .nid-res__unidade {
        font-family: 'Stag Sans', Helvetica, Arial, sans-serif;
        font-size: 13px;
        font-weight: 400;
        line-height: 1;
        color: var(--nid-accent);
    }
    .nid-res__select-list {
        position: fixed;
        top: 50%;
        left: 16px;
        right: 16px;
        width: auto;
        min-width: 0;
        max-width: none;
        max-height: 76vh;
        transform: translateY(-50%);
        z-index: 100000;
        border-radius: 16px;
        box-shadow: 0 0 0 100vmax rgba(13, 27, 42, 0.45);
    }
    .nid-res__row-chevron {
        content: "";
        position: absolute;
        top: 50%;
        right: 14px;
        display: block;
        width: 16px;
        height: 16px;
        background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23787878' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' d='M5 3l5 5-5 5'/%3E%3C/svg%3E") center / contain no-repeat;
        transform: translateY(-50%);
    }

    /* Bottom sheet */
    .nid-res__overlay {
        align-items: flex-end;
        padding: 0;
    }
    .nid-res__modal {
        width: 100%;
        max-height: 88vh;
        padding: 24px 16px 16px;
        border-radius: 30px 30px 0 0;
        transition: transform 0.25s ease;
    }
    .nid-res__modal-handle {
        position: absolute;
        top: 16px;
        left: 50%;
        z-index: 2;
        width: 42px;
        height: 3px;
        background: var(--nid-border);
        border-radius: 3px;
        transform: translateX(-50%);
        touch-action: none;
    }
    .nid-res__modal-handle::before {
        /* Enlarge the touch target well past the visible 3px bar without
           affecting layout. */
        content: "";
        position: absolute;
        inset: -16px -24px;
    }
    .nid-res__modal.is-dragging {
        transition: none;
    }
    .nid-res__card-header {
        flex-wrap: wrap;
    }
    .nid-res__card-mapa {
        width: 150px;
        height: 152px;
        margin-left: auto;
    }
    .nid-res__card-numero {
        font-size: 64px;
    }
    .nid-res__card-actions {
        flex-direction: column;
    }
}

/* The site's global "CSS Adicional" forces every h1-h6 to the Branding
   font with !important; nothing short of !important here can win against
   that, regardless of selector specificity. Scoped to our own stable class
   (not Elementor's random per-render element id) so it survives page
   regeneration and never leaks onto any other heading on the site. */
.nid-res-promo-title .elementor-heading-title,
.nid-res-promo-title.elementor-heading-title {
    font-family: 'Stag Sans', Helvetica, Arial, sans-serif !important;
    font-weight: bold !important;
}
