/* WMS Analytics Plugin Styles */

.wms-analytics-container {
    margin: 20px 0;
    padding: 20px;
    background: white;
    border: 2px solid #ccc;
    border-radius: 8px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #333;
}

.wms-refresh-btn {
    float: right;
    padding: 8px 16px;
    background: #0073aa;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    margin-bottom: 15px;
}

.wms-refresh-btn:hover {
    background: #005a87;
}

.wms-loading {
    text-align: center;
    padding: 40px;
    color: #666;
    font-style: italic;
    background: white;
}

.wms-loading:before {
    content: "⏳ ";
}

.wms-error {
    background: #ffeaea;
    border: 1px solid #d63638;
    border-radius: 4px;
    padding: 15px;
    margin: 10px 0;
    color: #333;
}

.wms-error-message {
    color: #d63638;
    font-weight: bold;
}

/* Summary Grid Layout */
.wms-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.wms-warehouse-card {
    background: white;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease;
    cursor: pointer;
}

.wms-warehouse-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.wms-warehouse-card h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 18px;
    font-weight: 600;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 8px;
    font-family: inherit;
}

.wms-metrics {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wms-metric {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.wms-metric:last-child {
    border-bottom: none;
}

.wms-metric .label {
    font-weight: bold;
    color: #555;
}

.wms-metric .value {
    font-size: 16px;
    font-weight: bold;
    color: #0073aa;
}

.wms-metric .value.alert {
    color: #d63638;
}

.wms-metric .value.critical {
    color: #d63638;
    background: #ffeaea;
    padding: 4px 8px;
    border-radius: 4px;
}

/* Table Styles */
.wms-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.wms-table th {
    background: #0073aa;
    color: white;
    padding: 12px;
    text-align: left;
    font-weight: bold;
    cursor: pointer;
    user-select: none;
}

.wms-table th:hover {
    background: #005a87;
}

.wms-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #f0f0f0;
}

.wms-table tr:nth-child(even) {
    background: #f9f9f9;
}

.wms-table tr:hover {
    background: #f0f8ff;
}

/* Urgency Indicators */
.urgency {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.urgency.critical {
    background: #d63638;
    color: white;
}

.urgency.high {
    background: #ff8c00;
    color: white;
}

.urgency.medium {
    background: #ffb900;
    color: #333;
}

.urgency.low {
    background: #46b450;
    color: white;
}

/* Warehouse Grid */
.wms-warehouse-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.wms-warehouse-summary {
    background: white;
    padding: 15px;
    border: 1px solid #e1e1e1;
    border-radius: 6px;
    text-align: center;
}

.wms-warehouse-summary h4 {
    margin: 0 0 10px 0;
    color: #0073aa;
    font-size: 16px;
}

.wms-warehouse-summary p {
    margin: 5px 0;
    color: #666;
}

/* Timestamp */
.wms-timestamp {
    text-align: right;
    font-size: 12px;
    color: #999;
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .wms-summary-grid {
        grid-template-columns: 1fr;
    }
    
    .wms-warehouse-grid {
        grid-template-columns: 1fr;
    }
    
    .wms-table {
        font-size: 14px;
    }
    
    .wms-table th,
    .wms-table td {
        padding: 8px;
    }
    
    .wms-metric {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}

/* Remove dark mode styles entirely */