.hnb-atrasados {
    --hnb-primary: #1f6f43;
    --hnb-accent: #f4b942;
    --hnb-surface: #ffffff;
    --hnb-text: #1f2933;
    --hnb-border: #d8e2dc;
    --hnb-header-bg: #ffffff;
    --hnb-header-text: #1f2933;
    --hnb-head-bg: #f6fbf8;
    --hnb-head-text: #1f6f43;
    --hnb-row-alt: #fbfdfc;
    --hnb-row-hover: #fff8e6;
    --hnb-button-text: #ffffff;
    --hnb-mobile-position: #1f6f43;
    --hnb-share-bg: #f4b942;
    --hnb-share-text: #1f2933;
    --hnb-more-bg: #1f6f43;
    --hnb-more-text: #ffffff;
    --hnb-image-share-bg: #1f6f43;
    --hnb-image-share-text: #ffffff;
    --hnb-image-download-bg: #ffffff;
    --hnb-image-download-text: #1f6f43;
    --hnb-disclaimer-text: #64748b;
    --hnb-mobile-position-width: 50px;
    --hnb-mobile-row-height: 26px;
    --hnb-mobile-icon-size: 26px;
    --hnb-mobile-card-gap: 5px;
    color: var(--hnb-text);
    font-family: "Poppins", Arial, sans-serif !important;
    display: block;
    line-height: 1.4;
    margin: 10px 0 !important;
    max-width: 100%;
    overflow: visible;
    white-space: normal !important;
    width: 100%;
}

.hnb-atrasados *,
.hnb-atrasados *::before,
.hnb-atrasados *::after {
    box-sizing: border-box;
    white-space: normal;
}

.hnb-atrasados a,
.hnb-atrasados button,
.hnb-atrasados select,
.hnb-atrasados table,
.hnb-atrasados th,
.hnb-atrasados td {
    font-family: inherit;
}

.hnb-atrasados button,
.hnb-atrasados select {
    box-shadow: none;
    text-transform: none;
}

pre .hnb-atrasados,
.wp-block-code .hnb-atrasados,
.wp-block-preformatted .hnb-atrasados {
    font-family: "Poppins", Arial, sans-serif !important;
    margin: 0 !important;
    white-space: normal !important;
}

.hnb-atrasados__header {
    align-items: flex-end;
    background: var(--hnb-header-bg);
    border: 1px solid var(--hnb-border);
    border-bottom: 3px solid var(--hnb-primary);
    border-radius: 8px;
    color: var(--hnb-header-text);
    display: flex;
    gap: 16px;
    justify-content: space-between;
    margin-bottom: 10px !important;
    padding: 10px 12px;
}

.hnb-atrasados__eyebrow {
    color: var(--hnb-primary);
    display: block;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.hnb-atrasados h2,
.hnb-atrasados h3,
.hnb-atrasados p {
    margin: 0;
}

.hnb-atrasados h2 {
    color: var(--hnb-header-text);
    font-size: 28px;
    line-height: 1.15;
}

.hnb-atrasados__header p {
    color: var(--hnb-header-text);
    font-size: 14px;
    opacity: .78;
    white-space: nowrap;
}

.hnb-atrasados .hnb-atrasados__tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 10px !important;
}

.hnb-atrasados .hnb-atrasados__select-label,
.hnb-atrasados .hnb-atrasados__select {
    display: none;
}

.hnb-atrasados .hnb-atrasados__select {
    appearance: none;
    background: #ffffff;
    border: 1px solid var(--hnb-border);
    border-radius: 8px;
    color: var(--hnb-text);
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    min-height: 40px;
    padding: 8px 40px 8px 12px;
    width: 100%;
}

.hnb-atrasados .hnb-atrasados__tab {
    background: #f7faf8;
    border: 1px solid var(--hnb-border);
    border-radius: 8px;
    color: var(--hnb-text);
    cursor: pointer;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    min-height: 38px;
    padding: 7px 11px;
}

.hnb-atrasados .hnb-atrasados__tab.is-active,
.hnb-atrasados .hnb-atrasados__tab:hover,
.hnb-atrasados .hnb-atrasados__tab:focus {
    background: var(--hnb-primary);
    border-color: var(--hnb-primary);
    color: var(--hnb-button-text);
    outline: none;
}

.hnb-atrasados .hnb-atrasados__panel {
    display: none;
    margin: 0;
    padding: 0;
}

.hnb-atrasados .hnb-atrasados__panel.is-active {
    display: block;
}

.hnb-atrasados__panel-head {
    align-items: center;
    background: var(--hnb-surface);
    border: 1px solid var(--hnb-border);
    border-bottom: 0;
    border-radius: 8px 8px 0 0;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    margin-top: 0 !important;
    padding: 10px 12px;
}

.hnb-atrasados__panel-head h3 {
    font-size: 20px;
    line-height: 1.2;
}

.hnb-atrasados__panel-head p {
    color: #64748b;
    font-size: 14px;
    margin-top: 4px;
}

.hnb-atrasados__actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.hnb-atrasados .hnb-atrasados__table-wrap {
    border: 1px solid var(--hnb-border);
    border-radius: 0 0 8px 8px;
    margin: 0 !important;
    overflow-x: auto;
}

.hnb-atrasados table.hnb-atrasados__table {
    background: var(--hnb-surface);
    border-collapse: collapse;
    border-spacing: 0;
    margin: 0;
    min-width: 720px;
    table-layout: auto;
    width: 100%;
}

.hnb-atrasados table.hnb-atrasados__table th,
.hnb-atrasados table.hnb-atrasados__table td {
    border-bottom: 1px solid var(--hnb-border);
    color: var(--hnb-text);
    font-size: 14px;
    line-height: 1.25;
    padding: 12px 14px;
    text-align: left;
    vertical-align: middle;
}

.hnb-atrasados table.hnb-atrasados__table th {
    background: var(--hnb-head-bg);
    color: var(--hnb-head-text);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.hnb-atrasados table.hnb-atrasados__table tbody tr:nth-child(even) {
    background: var(--hnb-row-alt);
}

.hnb-atrasados table.hnb-atrasados__table tbody tr:hover {
    background: var(--hnb-row-hover);
}

.hnb-atrasados__animal {
    align-items: center;
    display: flex;
    gap: 10px;
    min-width: 150px;
}

.hnb-atrasados__animal img,
.hnb-atrasados__animal-icon {
    align-items: center;
    background: #f0f8f2;
    border-radius: 50%;
    border: 1px solid var(--hnb-border);
    display: inline-flex;
    flex: 0 0 38px;
    font-size: 22px;
    font-weight: 800;
    height: 34px;
    justify-content: center;
    object-fit: cover;
    width: 34px;
}

.hnb-atrasados__animal-icon--fallback {
    background: var(--hnb-primary);
    color: var(--hnb-button-text);
    font-size: 13px;
}

.hnb-atrasados__animal strong {
    display: block;
}

.hnb-atrasados__animal small {
    color: #64748b;
    display: block;
    font-size: 12px;
}

.hnb-atrasados__share {
    align-items: center;
    background: var(--hnb-primary);
    border-radius: 8px;
    color: var(--hnb-button-text);
    display: inline-flex;
    font-size: 13px;
    font-weight: 800;
    gap: 7px;
    justify-content: center;
    min-width: 76px;
    padding: 8px 10px;
    text-decoration: none;
}

.hnb-atrasados__share-icon {
    flex: 0 0 18px;
    height: 18px;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
    width: 18px;
}

.hnb-atrasados__share-icon rect,
.hnb-atrasados__share-icon path {
    fill: none;
}

.hnb-atrasados__share:hover,
.hnb-atrasados__share:focus {
    background: #155c36;
    color: var(--hnb-button-text);
}

.hnb-atrasados__share--state {
    background: var(--hnb-share-bg);
    color: var(--hnb-share-text);
    min-width: 190px;
}

.hnb-atrasados__share--state:hover,
.hnb-atrasados__share--state:focus {
    background: var(--hnb-share-bg);
    color: var(--hnb-share-text);
    filter: brightness(.92);
}

.hnb-atrasados__image-btn {
    background: var(--hnb-image-share-bg);
    border: 1px solid var(--hnb-image-share-bg);
    border-radius: 8px;
    color: var(--hnb-image-share-text);
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    justify-content: center;
    line-height: 1.2;
    min-height: 36px;
    padding: 8px 10px;
}

.hnb-atrasados__image-btn--ghost {
    background: var(--hnb-image-download-bg);
    border-color: var(--hnb-image-download-text);
    color: var(--hnb-image-download-text);
}

.hnb-atrasados__image-btn:hover,
.hnb-atrasados__image-btn:focus {
    filter: brightness(.92);
    outline: none;
}

.hnb-atrasados__panel:not(.is-expanded) .hnb-atrasados__row--extra {
    display: none;
}

.hnb-atrasados__more-wrap {
    background: var(--hnb-surface);
    border: 1px solid var(--hnb-border);
    border-top: 0;
    border-radius: 0 0 8px 8px;
    padding: 12px 16px;
    text-align: center;
}

.hnb-atrasados__more {
    background: var(--hnb-more-bg);
    border: 1px solid var(--hnb-more-bg);
    border-radius: 8px;
    color: var(--hnb-more-text);
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    min-height: 38px;
    padding: 8px 16px;
}

.hnb-atrasados__more:hover,
.hnb-atrasados__more:focus {
    background: var(--hnb-more-bg);
    color: var(--hnb-more-text);
    filter: brightness(.92);
    outline: none;
}

.hnb-atrasados__disclaimer {
    border: 1px solid var(--hnb-border);
    border-radius: 8px;
    color: var(--hnb-disclaimer-text);
    font-size: 13px;
    margin-top: 14px;
    overflow: hidden;
}

.hnb-atrasados__disclaimer summary {
    align-items: center;
    background: var(--hnb-surface);
    cursor: pointer;
    display: flex;
    font-weight: 800;
    justify-content: space-between;
    list-style: none;
    min-height: 42px;
    padding: 10px 14px;
}

.hnb-atrasados__disclaimer summary::-webkit-details-marker {
    display: none;
}

.hnb-atrasados__disclaimer summary::after {
    content: "+";
    font-size: 18px;
    line-height: 1;
}

.hnb-atrasados__disclaimer[open] summary {
    border-bottom: 1px solid var(--hnb-border);
}

.hnb-atrasados__disclaimer[open] summary::after {
    content: "-";
}

.hnb-atrasados__disclaimer-content {
    background: var(--hnb-surface);
    padding: 14px;
}

.hnb-atrasados__disclaimer-content h3 {
    color: var(--hnb-disclaimer-text);
    font-size: 16px;
    line-height: 1.25;
    margin: 0 0 8px;
}

.hnb-atrasados__disclaimer-content p {
    color: var(--hnb-disclaimer-text);
    margin: 0 0 8px;
}

.hnb-atrasados__disclaimer-content p:last-child {
    margin-bottom: 0;
}

.hnb-atrasados-empty {
    border: 1px solid var(--hnb-border);
    border-radius: 8px;
    padding: 16px;
}

.hnb-admin-grid {
    align-items: flex-start;
    display: grid;
    gap: 20px;
    grid-template-columns: minmax(0, 1fr) 320px;
}

.hnb-admin-card {
    background: #ffffff;
    border: 1px solid #dcdcde;
    border-radius: 8px;
    padding: 18px;
}

.hnb-admin-error {
    color: #b32d2e;
}

.hnb-admin-test {
    border-left: 4px solid #dba617;
    margin: 14px 0;
    padding: 10px 12px;
}

.hnb-admin-test h3 {
    margin: 0 0 8px;
}

.hnb-admin-test p {
    margin: 6px 0;
}

.hnb-admin-test.is-ok {
    background: #f0f8f2;
    border-left-color: #1f6f43;
}

.hnb-admin-test.is-error {
    background: #fcf0f1;
    border-left-color: #b32d2e;
}

@media (max-width: 760px) {
    .hnb-atrasados {
        margin: 8px 0 !important;
    }

    .hnb-atrasados__header,
    .hnb-atrasados__panel-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px !important;
        margin-bottom: 8px !important;
        min-height: 0 !important;
        padding: 10px 12px !important;
    }

    .hnb-atrasados__eyebrow {
        font-size: 11px !important;
        margin-bottom: 2px !important;
    }

    .hnb-atrasados__header p {
        font-size: 12px !important;
        line-height: 1.25 !important;
        white-space: normal;
    }

    .hnb-atrasados h2 {
        font-size: 22px !important;
        line-height: 1.12 !important;
    }

    .hnb-atrasados .hnb-atrasados__select-label {
        color: var(--hnb-primary);
        display: block;
        font-size: 12px;
        font-weight: 800;
        margin: 0 0 5px !important;
        text-transform: uppercase;
    }

    .hnb-atrasados .hnb-atrasados__select {
        background-image: linear-gradient(45deg, transparent 50%, var(--hnb-primary) 50%), linear-gradient(135deg, var(--hnb-primary) 50%, transparent 50%);
        background-position: calc(100% - 18px) 18px, calc(100% - 12px) 18px;
        background-repeat: no-repeat;
        background-size: 6px 6px, 6px 6px;
        display: block;
        margin: 0 0 8px !important;
        min-height: 40px !important;
        padding: 7px 38px 7px 10px !important;
    }

    .hnb-atrasados .hnb-atrasados__tabs {
        display: none;
    }

    .hnb-atrasados .hnb-atrasados__panel {
        margin: 0 !important;
        padding: 0 !important;
    }

    .hnb-atrasados__panel-head {
        border-bottom: 1px solid var(--hnb-border);
        border-radius: 8px 8px 0 0;
    }

    .hnb-atrasados__panel-head h3 {
        font-size: 18px !important;
        line-height: 1.15 !important;
    }

    .hnb-atrasados__panel-head p {
        font-size: 12px !important;
        line-height: 1.25 !important;
        margin-top: 0 !important;
    }

    .hnb-atrasados__share {
        min-height: 38px !important;
        width: 100%;
    }

    .hnb-atrasados__actions {
        width: 100%;
    }

    .hnb-atrasados__image-btn {
        min-height: 36px !important;
        width: 100%;
    }

    .hnb-atrasados__more-wrap {
        padding: 6px !important;
    }

    .hnb-atrasados__more {
        min-height: 38px;
        width: 100%;
    }

    .hnb-atrasados .hnb-atrasados__table-wrap {
        background: var(--hnb-row-alt);
        overflow: visible;
        padding: 4px !important;
    }

    .hnb-atrasados table.hnb-atrasados__table {
        background: transparent;
        border-collapse: separate;
        border-spacing: 0;
        margin: 0;
        min-width: 0;
        width: 100%;
    }

    .hnb-atrasados table.hnb-atrasados__table thead {
        display: none;
    }

    .hnb-atrasados table.hnb-atrasados__table,
    .hnb-atrasados table.hnb-atrasados__table tbody,
    .hnb-atrasados table.hnb-atrasados__table tr {
        display: block;
        width: 100%;
    }

    .hnb-atrasados table.hnb-atrasados__table tr {
        background: var(--hnb-surface);
        border: 1px solid var(--hnb-border);
        border-radius: 8px;
        border-bottom: 1px solid var(--hnb-border);
        display: grid;
        gap: 0;
        grid-template-columns: var(--hnb-mobile-position-width) 1fr;
        margin-bottom: min(var(--hnb-mobile-card-gap), 4px) !important;
        overflow: hidden;
        padding: 0;
    }

    .hnb-atrasados table.hnb-atrasados__table td {
        align-items: center;
        border: 0;
        display: flex;
        justify-content: space-between;
        font-size: 14px;
        line-height: 1.2;
        min-height: var(--hnb-mobile-row-height);
        padding: 3px 8px !important;
        text-align: right;
        width: 100%;
    }

    .hnb-atrasados table.hnb-atrasados__table td::before {
        color: #64748b;
        content: attr(data-label);
        font-size: 11px;
        font-weight: 800;
        margin-right: 10px;
        text-align: left;
        text-transform: uppercase;
    }

    .hnb-atrasados table.hnb-atrasados__table td:first-child {
        align-items: center;
        background: var(--hnb-mobile-position);
        color: var(--hnb-button-text);
        font-size: 16px;
        font-weight: 800;
        grid-row: 1 / span 5;
        justify-content: center;
        min-height: 100%;
        text-align: center;
    }

    .hnb-atrasados[data-hnb-show-thousand="0"] table.hnb-atrasados__table td:first-child {
        grid-row: 1 / span 4;
    }

    .hnb-atrasados table.hnb-atrasados__table td:first-child::before {
        content: none;
    }

    .hnb-atrasados table.hnb-atrasados__table td:nth-child(2) {
        background: #ffffff;
        border-bottom: 1px solid var(--hnb-border);
        min-height: calc(var(--hnb-mobile-row-height) + 6px) !important;
    }

    .hnb-atrasados__animal {
        gap: 7px;
        justify-content: flex-end;
        min-width: 0;
        text-align: right;
    }

    .hnb-atrasados__animal img,
    .hnb-atrasados__animal-icon {
        flex-basis: var(--hnb-mobile-icon-size);
        font-size: 18px;
        height: var(--hnb-mobile-icon-size);
        width: var(--hnb-mobile-icon-size);
    }

    .hnb-atrasados__animal strong {
        font-size: 14px;
        line-height: 1.15;
    }

    .hnb-atrasados__animal small {
        font-size: 11px;
    }

    .hnb-admin-grid {
        grid-template-columns: 1fr;
    }
}
