.af-livestock-tabs {
    border: 1px solid #d5d9dd;
    border-radius: 8px;
    background: #ffffff;
    margin: 1.5rem 0;
    overflow: hidden;
}

.af-livestock-title {
    margin: 0;
    padding: 1rem 1rem 0.75rem;
    font-size: 1.4rem;
}

.af-livestock-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    align-items: start;
}

.af-livestock-tabs--horizontal .af-livestock-layout {
    display: block;
}

.af-livestock-tablist-wrap {
    border-right: 1px solid #e2e6ea;
    background: #f8fafc;
}

.af-livestock-tabs--horizontal .af-livestock-tablist-wrap {
    border-right: 0;
    border-bottom: 1px solid #e2e6ea;
    background: #ffffff;
}

.af-livestock-tablist {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0.5rem;
}

.af-livestock-tabs--horizontal .af-livestock-tablist {
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 0.25rem;
    padding: 0.5rem 0.5rem 0;
}

.af-livestock-tab {
    border: 1px solid #c8ced5;
    background: #f2f5f8;
    color: #20262d;
    padding: 0.6rem 0.75rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.95rem;
    line-height: 1.2;
    text-align: left;
    margin: 0;
}

.af-livestock-tabs--horizontal .af-livestock-tab {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    white-space: nowrap;
}

.af-livestock-tab[aria-selected="true"] {
    background: #ffffff;
    border-color: #9ca8b5;
    color: #111417;
    font-weight: 600;
}

.af-livestock-tab:focus {
    outline: 2px solid #2f6fbb;
    outline-offset: 2px;
}

.af-livestock-panels {
    min-width: 0;
}

.af-livestock-panel {
    padding: 1rem;
}

.af-livestock-panel-title {
    margin: 0 0 0.75rem;
    font-size: 1.1rem;
}

.af-livestock-data-list {
    margin: 0;
}

.af-livestock-data-row {
    display: grid;
    grid-template-columns: minmax(160px, 240px) 1fr;
    gap: 0.75rem;
    padding: 0.5rem 0;
    border-top: 1px solid #eceff2;
}

.af-livestock-data-row:first-child {
    border-top: 0;
}

.af-livestock-data-row dt {
    margin: 0;
    font-weight: 600;
}

.af-livestock-data-row dd {
    margin: 0;
}

.af-livestock-common-names-wrap {
    overflow-x: auto;
}

.af-livestock-common-names-table {
    width: 100%;
    border-collapse: collapse;
}

.af-livestock-common-names-table th,
.af-livestock-common-names-table td {
    border: 1px solid #dde2e7;
    padding: 0.55rem;
    text-align: left;
    vertical-align: top;
}

.af-livestock-common-names-table th {
    background: #f7f9fb;
}

.af-bool-symbol {
    font-size: 1.15rem;
    line-height: 1;
    font-weight: 700;
    display: inline-block;
}

.af-bool-yes {
    color: #117a37;
}

.af-bool-no {
    color: #8b1e26;
}

.af-bool-caution {
    color: #a86a00;
}

@media (max-width: 960px) {
    .af-livestock-layout {
        display: block;
    }

    .af-livestock-tablist-wrap {
        border-right: 0;
        border-bottom: 1px solid #e2e6ea;
    }

    .af-livestock-tablist {
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 0.25rem;
        padding: 0.5rem 0.5rem 0;
    }

    .af-livestock-tab {
        white-space: nowrap;
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
    }
}

@media (max-width: 782px) {
    .af-livestock-data-row {
        grid-template-columns: 1fr;
        gap: 0.35rem;
    }
}
