.honey-controls-inline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

#honeyHivesSection {
    margin-top: 14px;
}

#honeyHivesSection .calc-section-header {
    z-index: 0;
}

.honey-table-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 16px;
    overflow: visible;
}

.honey-table-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
    z-index: 0;
    overflow: visible;
}

.honey-table-block:hover {
    z-index: 1002;
}

.honey-table-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    position: relative;
}

.honey-table-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text);
    padding-left: 2px;
}

.honey-properties-bar {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.honey-property-pill {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 10px;
    background: rgba(214, 203, 184, 0.12);
    border: 1px solid rgba(214, 203, 184, 0.45);
    border-radius: 8px;
    position: relative;
}

.honey-property-pill .stat-tooltip-wrapper {
    position: relative;
}

.honey-property-pill .stat-tooltip {
    left: 0;
    right: auto;
    min-width: 200px;
    max-width: min(280px, calc(100vw - 32px));
    width: max-content;
}

.honey-property-pill .stat-tooltip::after {
    left: 10px;
    right: auto;
}

.honey-property-pill:nth-child(2) .stat-tooltip {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
}

.honey-property-pill:nth-child(2) .stat-tooltip::after {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
}

.honey-property-pill:last-child .stat-tooltip {
    left: auto;
    right: 0;
}

.honey-property-pill:last-child .stat-tooltip::after {
    left: auto;
    right: 10px;
    transform: none;
}

.honey-property-label {
    font-size: 0.72rem;
    color: var(--muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.honey-crop-price {
    font-family: monospace;
    color: var(--info);
    font-weight: 600;
}

.honey-crop-picker-anchor {
    position: relative;
    display: inline-flex;
}

.honey-crop-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 8px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text);
    font-size: 0.72rem;
    cursor: pointer;
}

.honey-crop-button:hover {
    border-color: var(--info);
}

.honey-crop-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
    image-rendering: pixelated;
}

.honey-crop-picker {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    z-index: 1000;
    min-width: 220px;
}

.honey-crop-picker.open-up {
    top: auto;
    bottom: calc(100% + 6px);
}

.honey-table-block .stat-tooltip-wrapper {
    position: relative;
    z-index: 5;
}

.honey-table-block .stat-tooltip-wrapper:hover {
    z-index: 1003;
}

.honey-table-block .stat-tooltip {
    z-index: 1004;
}

.honey-stat-tooltip {
    white-space: normal;
    min-width: 220px;
    max-width: 300px;
}

.honey-tooltip-line {
    font-size: 0.72rem;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.84);
    padding: 2px 0;
}

.honey-table-wrapper {
    overflow: visible;
    position: relative;
    z-index: 0;
}

.honey-table {
    min-width: 0;
    width: 100%;
}

.honey-table-compact {
    min-width: 0;
}

.honey-table tbody tr:nth-child(even) {
    background: rgba(214, 203, 184, 0.1);
}

.honey-table tbody tr:hover {
    background: rgba(214, 203, 184, 0.15);
}

.honey-table tbody tr.honey-row-swarm-total {
    background: rgba(214, 203, 184, 0.16);
}

.honey-category-cell {
    text-transform: capitalize;
    color: var(--brown);
    font-weight: 600;
}

.honey-metric-cell {
    font-weight: 600;
    color: var(--text);
}

.honey-table .crop-total-header {
    color: var(--info) !important;
}

.honey-table .crop-stat-value {
    display: inline-flex;
    align-items: baseline;
    justify-content: flex-end;
    gap: 6px;
}

.honey-inline-flower-icon {
    width: 12px;
    height: 12px;
    object-fit: contain;
    image-rendering: pixelated;
    margin: 0 2px;
    vertical-align: middle;
}

@media (max-width: 960px) {
    .honey-properties-bar {
        grid-template-columns: 1fr;
    }

    .honey-property-pill .stat-tooltip,
    .honey-property-pill:nth-child(2) .stat-tooltip,
    .honey-property-pill:last-child .stat-tooltip {
        left: 0;
        right: auto;
        transform: none;
        max-width: min(280px, calc(100vw - 32px));
    }

    .honey-property-pill .stat-tooltip::after,
    .honey-property-pill:nth-child(2) .stat-tooltip::after,
    .honey-property-pill:last-child .stat-tooltip::after {
        left: 10px;
        right: auto;
        transform: none;
    }
}
