/**
 * CSS for Bluenil Inventory Locations Plugin
 * Inline display - no modal
 */

.bluenil-inventory-locations-wrapper {
    margin: 15px 0;
    display: inline-block;
    pointer-events: auto !important;
    z-index: 9999 !important;
    clear: both;
    width: 100%;
}

/* Ensure wrapper is visible when it should be - can be overridden by JavaScript when needed */
.bluenil-inventory-locations-wrapper:not([style*="display: none"]) {
    display: block !important;
}

.bluenil-inventory-btn {
    background-color: #0073aa !important;
    color: #fff !important;
    border: none !important;
    padding: 10px 20px !important;
    font-size: 14px !important;
    cursor: pointer !important;
    border-radius: 4px !important;
    transition: background-color 0.3s ease !important;
    font-family: inherit !important;
    pointer-events: auto !important;
    z-index: 10000 !important;
    position: relative !important;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    touch-action: manipulation !important;
    -webkit-tap-highlight-color: rgba(0, 115, 170, 0.3) !important;
}

.bluenil-inventory-btn:hover {
    background-color: #005a87;
}

.bluenil-inventory-btn:active {
    background-color: #004a6f;
}

/* Inline Results Container */
.bluenil-inventory-results-wrapper {
    display: none;
    margin-top: 15px;
    margin-bottom: 15px;
    padding: 15px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
    direction: rtl;
    clear: both;
}

.bluenil-inventory-results-content {
    width: 100%;
}

.bluenil-inventory-loading {
    text-align: center;
    padding: 20px;
    color: #666;
}

/* Table Styles */
.bluenil-inventory-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0;
    background-color: #fff;
}

.bluenil-inventory-table thead {
    background-color: #0073aa;
    color: #fff;
}

.bluenil-inventory-table th,
.bluenil-inventory-table td {
    padding: 12px;
    text-align: right;
    border: 1px solid #ddd;
}

.bluenil-inventory-table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

.bluenil-inventory-table tbody tr:hover {
    background-color: #f5f5f5;
}

/* Error and Empty States */
.bluenil-inventory-error {
    color: #d32f2f;
    padding: 15px;
    background-color: #ffebee;
    border-radius: 4px;
    border-right: 4px solid #d32f2f;
    text-align: center;
}

.bluenil-inventory-empty {
    color: #666;
    padding: 15px;
    text-align: center;
    font-style: italic;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .bluenil-inventory-locations-wrapper {
        width: 100%;
    }

    .bluenil-inventory-btn {
        width: 100%;
        padding: 12px 20px;
        font-size: 16px;
    }

    .bluenil-inventory-results-wrapper {
        padding: 10px;
        margin-top: 10px;
    }

    .bluenil-inventory-table {
        font-size: 14px;
    }

    .bluenil-inventory-table th,
    .bluenil-inventory-table td {
        padding: 8px;
    }
}
