#plant-inventory-container {
    margin: 20px 0;
}

.loading-spinner {
    text-align: center;
    padding: 40px;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #0073aa;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

#plant-inventory-table {
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

#plant-table {
    width: 100%;
}

#plant-inventory-table.fade-in {
    opacity: 1 !important;
}

.truncate-text {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
    word-wrap: break-word;
    white-space: normal;
}

/* Inventory tooltip styles */
.inventory-tooltip {
    position: relative;
    cursor: help;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.2;
}

.inventory-qty {
    padding-bottom: 0;
}

.inventory-price {
    border-top: 1px solid #d3d3d3;
    padding-top: 2px;
    margin-top: 2px;
}

.inventory-tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 13px;
    line-height: 1.4;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.inventory-tooltip:hover::after {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 768px) {
    .inventory-tooltip::after {
        font-size: 12px;
        padding: 6px 10px;
    }
}

.dataTable a,
.inventory-qty {
    font-weight: bold;
}

/* FixedHeader: prevent bottom border of sticky header row from being clipped */
.dtfh-floatingparent {
    overflow: visible !important;
}
