/**
 * MultiWare Engine - Admin Styles
 *
 * @package    MultiWareEngine
 * @subpackage Assets
 * @since      1.0.0
 */

/* ==========================================================================
   General Admin Styles
   ========================================================================== */

.multiware-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    line-height: 1.4;
}

.multiware-badge-success {
    background: #d5f4e6;
    color: #00a32a;
    border: 1px solid #00a32a;
}

.multiware-badge-warning {
    background: #fcf3cf;
    color: #f0b849;
    border: 1px solid #f0b849;
}

.multiware-badge-danger {
    background: #fef2f2;
    color: #d63638;
    border: 1px solid #d63638;
}

.multiware-badge-info {
    background: #d5f4e6;
    color: #2271b1;
    border: 1px solid #2271b1;
}

.multiware-badge-inactive {
    background: #f0f0f1;
    color: #646970;
    border: 1px solid #8c8f94;
}

/* ==========================================================================
   Cards and Containers
   ========================================================================== */

.multiware-card {
    background: #fff;
    border: 1px solid #ccd0d4;
    box-shadow: 0 1px 1px rgba(0,0,0,.04);
    padding: 20px;
    margin-bottom: 20px;
}

.multiware-card h2 {
    margin-top: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd;
}

.multiware-card-full {
    grid-column: 1 / -1;
}

/* ==========================================================================
   Empty States
   ========================================================================== */

.multiware-empty-state {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border: 1px solid #ccd0d4;
    margin-top: 20px;
}

.multiware-empty-state p {
    font-size: 16px;
    color: #646970;
    margin-bottom: 20px;
}

/* ==========================================================================
   Filters
   ========================================================================== */

.multiware-filters {
    background: #fff;
    padding: 15px;
    border: 1px solid #ccd0d4;
    margin: 20px 0;
}

.multiware-filters form {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.multiware-filters select {
    min-width: 180px;
}

.multiware-filters input[type="date"],
.multiware-filters input[type="text"],
.multiware-filters input[type="number"] {
    height: 30px;
}

/* ==========================================================================
   Tables
   ========================================================================== */

.multiware-table-actions {
    display: flex;
    gap: 5px;
}

/* ==========================================================================
   Forms
   ========================================================================== */

.multiware-form .required {
    color: #d63638;
}

.multiware-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.multiware-form-section {
    background: #fff;
    border: 1px solid #ccd0d4;
    padding: 20px;
}

.multiware-form-section h2 {
    margin-top: 0;
    font-size: 18px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd;
}

/* ==========================================================================
   Quick Actions
   ========================================================================== */

.multiware-quick-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.multiware-quick-actions .button {
    width: 100%;
    justify-content: center;
}

/* ==========================================================================
   Status Indicators
   ========================================================================== */

.multiware-status-badge {
    padding: 8px 12px;
    border-radius: 3px;
    font-weight: bold;
    display: inline-block;
}

.multiware-status-badge .dashicons {
    vertical-align: middle;
    margin-right: 5px;
}

.multiware-status-reduced {
    background: #d5f4e6;
    color: #00a32a;
    border: 1px solid #00a32a;
}

.multiware-status-pending {
    background: #fcf3cf;
    color: #f0b849;
    border: 1px solid #f0b849;
}

/* ==========================================================================
   Stock Colors
   ========================================================================== */

.multiware-zero {
    color: #d63638;
    font-weight: bold;
}

.multiware-positive {
    color: #00a32a;
    font-weight: bold;
}

.multiware-reserved {
    color: #f0b849;
    font-style: italic;
}

.multiware-low-stock {
    color: #d63638;
    font-weight: bold;
}

/* ==========================================================================
   Loading States
   ========================================================================== */

.multiware-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.6;
}

.multiware-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #2271b1;
    border-radius: 50%;
    border-top-color: transparent;
    animation: multiware-spin 0.6s linear infinite;
}

@keyframes multiware-spin {
    to { transform: rotate(360deg); }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 782px) {
    .multiware-form-grid {
        grid-template-columns: 1fr;
    }

    .multiware-filters form {
        flex-direction: column;
        align-items: stretch;
    }

    .multiware-filters select,
    .multiware-filters input {
        width: 100%;
    }

    .multiware-table-actions {
        flex-direction: column;
    }
}

/* ==========================================================================
   Variations Receiving Table
   ========================================================================== */

.mw-variations-receiving {
    background: #f8f9fa;
    border: 1px solid #e2e4e7;
    border-radius: 6px;
    padding: 20px;
    margin-top: 20px;
}

.mw-variations-receiving .mw-card-header {
    border-bottom: 1px solid #e2e4e7;
    padding-bottom: 15px;
}

.mw-variations-receiving .mw-card-title {
    display: flex;
    align-items: center;
    font-size: 16px;
    color: #1e1e1e;
}

.mw-variations-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.mw-variations-table thead th {
    background: #f0f0f1;
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    color: #1e1e1e;
    border-bottom: 2px solid #c3c4c7;
}

.mw-variations-table tbody tr {
    border-bottom: 1px solid #e2e4e7;
}

.mw-variations-table tbody tr:last-child {
    border-bottom: none;
}

.mw-variations-table tbody tr:hover {
    background: #f9f9f9;
}

.mw-variations-table tbody td {
    padding: 12px 15px;
    vertical-align: middle;
}

.mw-variations-table .mw-variation-qty {
    max-width: 120px;
    padding: 8px 12px;
    border: 1px solid #8c8f94;
    border-radius: 4px;
    font-size: 14px;
}

.mw-variations-table .mw-variation-qty:focus {
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
    outline: none;
}

.mw-variations-table code {
    background: #f0f0f1;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 12px;
    color: #50575e;
}

#variations_loading {
    color: #646970;
}

#variations_loading .spinner {
    margin-right: 10px;
}

@media (max-width: 600px) {
    .mw-variations-table thead {
        display: none;
    }
    
    .mw-variations-table tbody tr {
        display: block;
        padding: 15px;
        margin-bottom: 10px;
        background: #fff;
        border: 1px solid #e2e4e7;
        border-radius: 4px;
    }
    
    .mw-variations-table tbody td {
        display: block;
        padding: 5px 0;
        border: none;
    }
    
    .mw-variations-table tbody td:before {
        content: attr(data-label);
        font-weight: 600;
        display: block;
        margin-bottom: 5px;
        color: #646970;
        font-size: 12px;
    }
    
    .mw-variations-table .mw-variation-qty {
        max-width: 100%;
        width: 100%;
    }
}

.mw-variation-data {
    font-size: 12px;
    color: #646970;
    margin-top: 4px;
}

/* Extracted from includes\admin\views\warehouses-lite-list.php */

/* Lite version specific styles */
.mw-lite-badge {
    display: inline-block;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    color: #0284c7;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    margin-left: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    vertical-align: middle;
}

/* Capacity Card */
.mw-lite-capacity-card {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
}

.mw-capacity-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
}

.mw-capacity-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mw-capacity-icon .dashicons {
    color: #fff;
    font-size: 24px;
    width: 24px;
    height: 24px;
}

.mw-capacity-info h3 {
    margin: 0 0 6px;
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
}

.mw-capacity-info p {
    margin: 0;
    color: #64748b;
    font-size: 14px;
}

.mw-capacity-meter {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mw-capacity-bar {
    height: 12px;
    background: #e2e8f0;
    border-radius: 6px;
    overflow: hidden;
}

.mw-capacity-fill {
    height: 100%;
    background: linear-gradient(90deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
    border-radius: 6px;
    transition: width 0.6s ease;
}

.mw-capacity-labels {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mw-capacity-current {
    color: #475569;
    font-size: 13px;
    font-weight: 500;
}

.mw-capacity-full,
.mw-capacity-available {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
}

.mw-capacity-full {
    color: #059669;
}

.mw-capacity-full .dashicons {
    color: #10b981;
}

.mw-capacity-available {
    color: #6366f1;
}

.mw-capacity-available .dashicons {
    color: #6366f1;
}

/* Warehouse Grid Lite */
.mw-warehouse-grid-lite {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    max-width: 800px;
}

/* Warehouse Type Badges */
.mw-warehouse-badges {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
}

.mw-warehouse-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mw-warehouse-type-badge.primary {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
}

.mw-warehouse-type-badge.secondary {
    background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%);
    color: #5b21b6;
}

.mw-warehouse-type-badge .dashicons {
    font-size: 12px;
    width: 12px;
    height: 12px;
}

/* Primary Warehouse Card Highlight */
.mw-warehouse-card.mw-primary-warehouse {
    border: 2px solid #fbbf24;
    box-shadow: 0 4px 20px rgba(251, 191, 36, 0.15);
}

.mw-warehouse-card.mw-primary-warehouse::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #f59e0b 0%, #fbbf24 100%);
    border-radius: 14px 14px 0 0;
}

/* Secondary Warehouse Card */
.mw-warehouse-card.mw-secondary-warehouse {
    border: 2px solid #a78bfa;
    box-shadow: 0 4px 20px rgba(167, 139, 250, 0.15);
}

.mw-warehouse-card.mw-secondary-warehouse::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #8b5cf6 0%, #a78bfa 100%);
    border-radius: 14px 14px 0 0;
}

/* Add Warehouse Card */
.mw-add-warehouse-card {
    border: 2px dashed #cbd5e1;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.mw-add-warehouse-card:hover {
    border-color: #6366f1;
    background: linear-gradient(135deg, #f0f0ff 0%, #e8e8ff 100%);
    transform: translateY(-2px);
}

.mw-add-warehouse-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    padding: 30px;
    width: 100%;
}

.mw-add-warehouse-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    transition: transform 0.3s ease;
}

.mw-add-warehouse-card:hover .mw-add-warehouse-icon {
    transform: scale(1.1);
}

.mw-add-warehouse-icon .dashicons {
    color: #fff;
    font-size: 32px;
    width: 32px;
    height: 32px;
}

.mw-add-warehouse-link h3 {
    margin: 0 0 8px;
    color: #1e293b;
    font-size: 16px;
    font-weight: 600;
}

.mw-add-warehouse-link p {
    margin: 0;
    color: #64748b;
    font-size: 14px;
    max-width: 200px;
}

/* Upgrade Box */
.mw-upgrade-box {
    margin-top: 30px;
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
    border: none;
    border-radius: 16px;
    padding: 0;
    overflow: hidden;
}

.mw-upgrade-content {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px 28px;
}

.mw-upgrade-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 28px;
    color: #78350f;
}

.mw-upgrade-text {
    flex: 1;
}

.mw-upgrade-text h4 {
    margin: 0 0 6px;
    color: #fff;
    font-size: 17px;
    font-weight: 600;
}

.mw-upgrade-text p {
    margin: 0;
    color: #c7d2fe;
    font-size: 14px;
    line-height: 1.5;
}

.mw-btn-premium {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #78350f !important;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 10px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.mw-btn-premium:hover {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.4);
    color: #78350f !important;
}

@media (max-width: 768px) {
    .mw-upgrade-content {
        flex-direction: column;
        text-align: center;
    }
    
    .mw-warehouse-grid-lite {
        grid-template-columns: 1fr;
    }
}

/* Extracted from includes\admin\views\warehouse-lite-form.php */

/* Lite badge in form header */
.mw-lite-badge {
    display: inline-block;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    color: #0284c7;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    margin-left: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    vertical-align: middle;
}

/* Extracted from includes\admin\views\settings-lite.php */

/* Lite version specific styles */
.mw-lite-badge {
    display: inline-block;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    color: #0284c7;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    margin-left: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    vertical-align: middle;
}

/* Upgrade Sidebar Card */
.mw-upgrade-sidebar-card {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%) !important;
    border: none !important;
    text-align: center;
    padding: 20px !important;
}

.mw-upgrade-sidebar-icon {
    display: inline-flex;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    border-radius: 12px;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #78350f;
    margin-bottom: 12px;
}

.mw-upgrade-sidebar-card h4 {
    color: #fff !important;
    margin: 0 0 8px !important;
    font-size: 15px !important;
}

.mw-upgrade-sidebar-card p {
    color: #c7d2fe !important;
    font-size: 13px !important;
    margin: 0 0 16px !important;
    line-height: 1.5;
}

.mw-btn-premium-sm {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #78350f !important;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    transition: all 0.3s ease;
}

.mw-btn-premium-sm:hover {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    transform: translateY(-1px);
    color: #78350f !important;
}

/* Pro Features Preview */
.mw-pro-features-preview {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    padding: 24px;
    margin-top: 24px;
    text-align: center;
}

.mw-pro-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.mw-pro-header .dashicons {
    color: #6366f1;
    font-size: 20px;
}

.mw-pro-header h4 {
    margin: 0;
    color: #1e293b;
    font-size: 16px;
    font-weight: 600;
}

.mw-pro-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.mw-pro-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.mw-pro-feature .dashicons {
    color: #6366f1;
    font-size: 18px;
}

.mw-pro-feature span:last-child {
    color: #475569;
    font-size: 13px;
    font-weight: 500;
}

/* Premium button */
.mw-btn-premium {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #78350f !important;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 10px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.mw-btn-premium:hover {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.4);
    color: #78350f !important;
}

/* Upgrade Banner */
.mw-upgrade-banner {
    margin-top: 30px;
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
    border-radius: 16px;
    overflow: hidden;
}

.mw-upgrade-banner-content {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 28px 32px;
}

.mw-upgrade-banner-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mw-upgrade-banner-icon .dashicons {
    font-size: 32px;
    color: #78350f;
}

.mw-upgrade-banner-text {
    flex: 1;
}

.mw-upgrade-banner-text h3 {
    margin: 0 0 8px;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
}

.mw-upgrade-banner-text p {
    margin: 0;
    color: #c7d2fe;
    font-size: 14px;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .mw-upgrade-banner-content {
        flex-direction: column;
        text-align: center;
    }
    
    .mw-pro-features-grid {
        grid-template-columns: 1fr;
    }
}

/* Extracted from includes\admin\views\reports-variance.php */

/* Additional styles for variance page */
.mw-charts-row {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 24px;
    margin-bottom: 24px;
    margin: 0 40px 24px;
}

.mw-charts-equal {
    grid-template-columns: repeat(3, 1fr);
}

.mw-chart-flex {
    display: flex;
    flex-direction: column;
}

.mw-chart-flex .mw-chart-body {
    flex: 1;
    min-height: 220px;
}

.mw-product-variance-list,
.mw-supplier-accuracy-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mw-product-variance-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    background: var(--mw-bg-secondary, #f8fafc);
    border-radius: 8px;
}

.mw-pv-rank {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
}

.mw-pv-info {
    flex: 1;
    min-width: 0;
}

.mw-pv-name {
    display: block;
    font-weight: 500;
    font-size: 13px;
    color: var(--mw-text-primary, #1e293b);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mw-pv-meta {
    font-size: 11px;
    color: var(--mw-text-muted, #64748b);
}

.mw-pv-values {
    display: flex;
    gap: 8px;
}

.mw-pv-negative {
    color: #ef4444;
    font-weight: 600;
    font-size: 12px;
}

.mw-pv-positive {
    color: #10b981;
    font-weight: 600;
    font-size: 12px;
}

.mw-supplier-accuracy-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px;
    background: var(--mw-bg-secondary, #f8fafc);
    border-radius: 8px;
}

.mw-sa-info {
    flex: 1;
    min-width: 0;
}

.mw-sa-name {
    display: block;
    font-weight: 500;
    font-size: 13px;
    color: var(--mw-text-primary, #1e293b);
}

.mw-sa-meta {
    font-size: 11px;
    color: var(--mw-text-muted, #64748b);
}

.mw-sa-accuracy {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 120px;
}

.mw-accuracy-bar {
    flex: 1;
    height: 6px;
    background: var(--mw-bg-tertiary, #e2e8f0);
    border-radius: 3px;
    overflow: hidden;
}

.mw-accuracy-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.5s ease;
}

.mw-accuracy-fill.success { background: #10b981; }
.mw-accuracy-fill.warning { background: #f59e0b; }
.mw-accuracy-fill.danger { background: #ef4444; }

.mw-accuracy-value {
    font-weight: 600;
    font-size: 12px;
    min-width: 40px;
    text-align: right;
}

.mw-accuracy-value.success { color: #10b981; }
.mw-accuracy-value.warning { color: #f59e0b; }
.mw-accuracy-value.danger { color: #ef4444; }

.mw-no-data-small {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    text-align: center;
    color: var(--mw-text-muted, #64748b);
}

.mw-no-data-small .dashicons {
    font-size: 32px;
    width: 32px;
    height: 32px;
    margin-bottom: 10px;
    opacity: 0.5;
}

.mw-chart-stats-vertical {
    flex-direction: column;
    gap: 16px;
}

.mw-type-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.mw-type-badge.receiving {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.mw-type-badge.transfer {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.mw-enterprise-badge {
    display: inline-block;
    padding: 2px 8px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    font-size: 10px;
    font-weight: 600;
    border-radius: 4px;
    margin-left: 8px;
    vertical-align: middle;
    text-transform: uppercase;
}

@media (max-width: 1200px) {
    .mw-charts-row {
        grid-template-columns: 1fr;
    }
    
    .mw-charts-equal {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .mw-charts-equal {
        grid-template-columns: 1fr;
    }
}

/* Extracted from includes\admin\views\reports-supplier-performance.php */

.mw-enterprise-badge {
    display: inline-block;
    padding: 2px 8px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    font-size: 10px;
    font-weight: 600;
    border-radius: 4px;
    margin-left: 8px;
    vertical-align: middle;
    text-transform: uppercase;
}

/* Extracted from includes\admin\views\partials\modal-stock-adjustment.php */

.multiware-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100000;
}

.multiware-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
}

.multiware-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow: auto;
}

.multiware-modal-header {
    padding: 20px;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.multiware-modal-header h2 {
    margin: 0;
}

.multiware-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
}

.multiware-modal-body {
    padding: 20px;
}

.multiware-modal-footer {
    padding: 20px;
    border-top: 1px solid #ddd;
    text-align: right;
}

.multiware-modal-footer .button {
    margin-left: 10px;
}

/* Extracted from includes\admin\views\import-export.php */

    .mw-sync-card .mw-card-body { padding: 20px; }
    .mw-sync-description { margin-bottom: 20px; }
    .mw-sync-description p { margin: 0 0 10px; color: #50575e; }
    .mw-sync-form .mw-form-row { margin-bottom: 16px; }
    .mw-sync-form label { display: block; font-weight: 600; margin-bottom: 6px; }
    .mw-sync-form .mw-checkbox-label { display: flex; align-items: center; gap: 8px; font-weight: normal; cursor: pointer; }
    .mw-sync-form .mw-checkbox-label input { margin: 0; }
    .mw-sync-form .mw-form-hint { display: block; color: #8c8f94; font-size: 12px; margin-top: 4px; }
    .mw-sync-form .mw-select { width: 100%; max-width: 400px; padding: 8px 12px; border: 1px solid #8c8f94; border-radius: 4px; }
    .mw-form-actions { margin-top: 24px; }
    .mw-sync-results { margin-top: 20px; padding: 15px; background: #f6f7f7; border-radius: 4px; }
    .mw-sync-progress { display: flex; align-items: center; gap: 10px; }
    .mw-sync-progress .spinner { float: none; margin: 0; }
    .mw-sync-results ul { margin: 10px 0 0 20px; }
    
/* Extracted from includes\admin\views\get-pro.php */

/* â”€â”€â”€ Reset / Base â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.mwp-upgrade-wrap *,
.mwp-upgrade-wrap *::before,
.mwp-upgrade-wrap *::after { box-sizing: border-box; }

.mwp-upgrade-wrap {
	max-width: 1100px;
	margin: 30px auto 60px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* â”€â”€â”€ HERO â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.mwp-hero {
	position: relative;
	background: linear-gradient(145deg, #0f172a 0%, #1e1b4b 50%, #0f172a 100%);
	border-radius: 24px;
	padding: 70px 50px 60px;
	text-align: center;
	color: #fff;
	margin-bottom: 50px;
	overflow: hidden;
	box-shadow: 0 25px 60px -10px rgba(0,0,0,0.4);
}

.mwp-hero::before {
	content: '';
	position: absolute; top: 0; left: 0; right: 0; height: 3px;
	background: linear-gradient(90deg, #3b82f6, #8b5cf6, #ec4899, #f59e0b);
}

.mwp-hero-glow {
	position: absolute;
	border-radius: 50%;
	filter: blur(80px);
	opacity: 0.18;
	pointer-events: none;
}
.mwp-hero-glow--blue  { width: 400px; height: 400px; background: #3b82f6; top: -100px; left: -100px; }
.mwp-hero-glow--purple { width: 350px; height: 350px; background: #8b5cf6; bottom: -80px; right: -60px; }

.mwp-hero-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: rgba(99,102,241,0.2);
	border: 1px solid rgba(99,102,241,0.4);
	color: #a5b4fc;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	padding: 6px 16px;
	border-radius: 100px;
	margin-bottom: 28px;
}
.mwp-badge-dot {
	width: 7px; height: 7px;
	background: #6366f1;
	border-radius: 50%;
	box-shadow: 0 0 0 3px rgba(99,102,241,0.35);
	animation: mwp-pulse 2s infinite;
}
@keyframes mwp-pulse {
	0%, 100% { box-shadow: 0 0 0 3px rgba(99,102,241,0.35); }
	50%       { box-shadow: 0 0 0 6px rgba(99,102,241,0.15); }
}

.mwp-hero-title {
	font-size: 3rem;
	font-weight: 800;
	letter-spacing: -0.035em;
	line-height: 1.1;
	margin: 0 0 20px;
	color: #fff !important;
}
.mwp-gradient-text {
	background: linear-gradient(135deg, #60a5fa, #a78bfa, #f472b6);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.mwp-hero-subtitle {
	font-size: 1.1rem;
	color: #94a3b8;
	max-width: 640px;
	margin: 0 auto 36px;
	line-height: 1.7;
}

.mwp-hero-actions {
	display: flex;
	gap: 16px;
	justify-content: center;
	flex-wrap: wrap;
	margin-bottom: 48px;
}

/* â”€â”€â”€ BUTTONS â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.mwp-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 14px 28px;
	border-radius: 10px;
	font-weight: 700;
	font-size: 15px;
	text-decoration: none !important;
	cursor: pointer;
	transition: all 0.25s ease;
	border: none;
	white-space: nowrap;
}
.mwp-btn .dashicons { font-size: 18px; width: 18px; height: 18px; line-height: 1; }

.mwp-btn--primary {
	background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
	color: #fff !important;
	box-shadow: 0 4px 18px rgba(99,102,241,0.5);
}
.mwp-btn--primary:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(99,102,241,0.6); color: #fff !important; }

.mwp-btn--ghost {
	background: rgba(255,255,255,0.08);
	color: #e2e8f0 !important;
	border: 1px solid rgba(255,255,255,0.18);
}
.mwp-btn--ghost:hover { background: rgba(255,255,255,0.14); color: #fff !important; }

.mwp-btn--cta {
	background: #fff;
	color: #0f172a !important;
	font-size: 17px;
	padding: 16px 40px;
	box-shadow: 0 8px 30px rgba(0,0,0,0.18);
}
.mwp-btn--cta:hover { transform: translateY(-3px); box-shadow: 0 14px 40px rgba(0,0,0,0.22); color: #0f172a !important; }

/* â”€â”€â”€ HERO STATS â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.mwp-hero-stats {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 0;
	background: rgba(255,255,255,0.06);
	border: 1px solid rgba(255,255,255,0.1);
	border-radius: 16px;
	padding: 20px 40px;
	max-width: 560px;
	margin: 0 auto;
}
.mwp-hero-stat { text-align: center; flex: 1; }
.mwp-stat-num { display: block; font-size: 1.9rem; font-weight: 800; color: #fff; line-height: 1; }
.mwp-stat-lbl { display: block; font-size: 11px; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.05em; margin-top: 5px; }
.mwp-hero-stat-divider { width: 1px; height: 44px; background: rgba(255,255,255,0.12); }

/* â”€â”€â”€ SECTION INTRO â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.mwp-section-intro {
	text-align: center;
	margin-bottom: 36px;
}
.mwp-section-intro h2 {
	font-size: 1.9rem; font-weight: 800; color: #0f172a; margin: 0 0 10px; letter-spacing: -0.02em;
}
.mwp-section-intro p { color: #64748b; font-size: 1rem; margin: 0; }

/* â”€â”€â”€ FEATURES GRID â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.mwp-features-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	margin-bottom: 56px;
}

.mwp-feature-card {
	background: #fff;
	border-radius: 16px;
	padding: 28px;
	border: 1px solid #e2e8f0;
	transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
	box-shadow: 0 2px 8px rgba(0,0,0,0.05);
	position: relative;
	overflow: hidden;
}
.mwp-feature-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 16px 40px rgba(0,0,0,0.1);
	border-color: #c7d2fe;
}
.mwp-feature-card--accent-blue  { border-top: 3px solid #3b82f6; background: linear-gradient(160deg, #eff6ff 0%, #fff 50%); }
.mwp-feature-card--accent-purple { border-top: 3px solid #8b5cf6; background: linear-gradient(160deg, #f5f3ff 0%, #fff 50%); }
.mwp-feature-card--accent-green  { border-top: 3px solid #10b981; background: linear-gradient(160deg, #ecfdf5 0%, #fff 50%); }
.mwp-feature-card--highlight { border: 1px solid #fbbf24; background: linear-gradient(160deg, #fffbeb 0%, #fff 60%); }

.mwp-feature-card__label {
	position: absolute;
	top: 18px; right: 18px;
	background: linear-gradient(135deg, #4f46e5, #7c3aed);
	color: #fff;
	font-size: 9px;
	font-weight: 800;
	letter-spacing: 0.1em;
	padding: 3px 8px;
	border-radius: 100px;
}

.mwp-feature-card__icon {
	width: 52px; height: 52px;
	border-radius: 14px;
	display: flex; align-items: center; justify-content: center;
	margin-bottom: 18px;
}
.mwp-feature-card__icon .dashicons { font-size: 26px; width: 26px; height: 26px; }

.mwp-icon--blue   { background: #eff6ff; color: #3b82f6; }
.mwp-icon--purple { background: #f5f3ff; color: #8b5cf6; }
.mwp-icon--green  { background: #ecfdf5; color: #10b981; }
.mwp-icon--orange { background: #fff7ed; color: #f97316; }
.mwp-icon--teal   { background: #f0fdfa; color: #0d9488; }
.mwp-icon--red    { background: #fef2f2; color: #ef4444; }
.mwp-icon--indigo { background: #eef2ff; color: #6366f1; }
.mwp-icon--pink   { background: #fdf2f8; color: #ec4899; }
.mwp-icon--gold   { background: #fffbeb; color: #d97706; }

.mwp-feature-card h3 {
	font-size: 1.05rem; font-weight: 700;
	color: #0f172a; margin: 0 0 10px; line-height: 1.3;
}
.mwp-feature-card p {
	color: #64748b; font-size: 0.88rem; line-height: 1.65; margin: 0 0 14px;
}
.mwp-feature-card p:last-child { margin-bottom: 0; }

.mwp-feature-checklist {
	list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px;
}
.mwp-feature-checklist li {
	font-size: 0.82rem; color: #475569; display: flex; align-items: center; gap: 7px;
}
.mwp-feature-checklist li::before {
	content: 'âœ“';
	display: inline-flex; align-items: center; justify-content: center;
	width: 16px; height: 16px;
	background: #dcfce7; color: #16a34a;
	border-radius: 50%; font-size: 9px; font-weight: 800; flex-shrink: 0;
}

/* â”€â”€â”€ COMPARISON TABLE â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.mwp-compare-section { margin-bottom: 56px; }
.mwp-compare-header {
	text-align: center; margin-bottom: 24px;
}
.mwp-compare-header h2 {
	font-size: 1.7rem; font-weight: 800; color: #0f172a; margin: 0; letter-spacing: -0.02em;
}

.mwp-compare-table-wrap {
	border-radius: 16px; overflow: hidden;
	box-shadow: 0 4px 20px rgba(0,0,0,0.08);
	border: 1px solid #e2e8f0;
}
.mwp-compare-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.mwp-compare-table thead tr {
	background: linear-gradient(135deg, #0f172a, #1e1b4b);
}
.mwp-compare-table thead th {
	padding: 16px 24px; color: #e2e8f0; font-weight: 700;
	text-align: left; font-size: 13px; letter-spacing: 0.03em;
}
.mwp-compare-table thead th.mwp-col-pro {
	background: rgba(99,102,241,0.25);
	color: #c7d2fe;
	display: table-cell;
}
.mwp-compare-table thead th.mwp-col-pro .dashicons {
	font-size: 14px; width: 14px; height: 14px; vertical-align: middle; margin-right: 5px; color: #fbbf24;
}

.mwp-compare-table tbody tr { background: #fff; }
.mwp-compare-table tbody tr:nth-child(even) { background: #f8fafc; }
.mwp-compare-table tbody tr:hover { background: #f1f5f9; }
.mwp-compare-table tbody td {
	padding: 13px 24px; color: #374151;
	border-bottom: 1px solid #f1f5f9;
}
.mwp-compare-table tbody tr:last-child td { border-bottom: none; }

.mwp-col-lite { text-align: center !important; width: 160px; }
.mwp-col-pro  { text-align: center !important; width: 160px; background: rgba(238,242,255,0.5); }
.mwp-col-center { text-align: center; }

.mwp-check { display: inline-flex; align-items: center; justify-content: center; }
.mwp-check--yes  .dashicons { color: #16a34a; font-size: 20px; width: 20px; height: 20px; }
.mwp-check--no   .dashicons { color: #cbd5e1; font-size: 20px; width: 20px; height: 20px; }
.mwp-check--partial { font-size: 12px; font-weight: 600; color: #f59e0b; }

/* â”€â”€â”€ CTA FOOTER â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.mwp-cta-footer {
	position: relative;
	background: linear-gradient(145deg, #0f172a 0%, #1e1b4b 50%, #0f172a 100%);
	border-radius: 24px;
	padding: 60px 50px;
	text-align: center;
	color: #fff;
	overflow: hidden;
	box-shadow: 0 25px 60px -10px rgba(0,0,0,0.4);
}
.mwp-cta-footer::before {
	content: '';
	position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
	background: linear-gradient(90deg, #ec4899, #8b5cf6, #3b82f6, #10b981);
}
.mwp-cta-glow {
	position: absolute;
	width: 500px; height: 500px;
	background: radial-gradient(circle, rgba(139,92,246,0.2) 0%, transparent 70%);
	top: 50%; left: 50%; transform: translate(-50%, -50%);
	pointer-events: none;
}
.mwp-cta-inner { position: relative; z-index: 1; }
.mwp-cta-icon {
	width: 64px; height: 64px;
	background: rgba(99,102,241,0.2);
	border: 1px solid rgba(99,102,241,0.4);
	border-radius: 18px;
	display: flex; align-items: center; justify-content: center;
	margin: 0 auto 24px;
}
.mwp-cta-icon .dashicons { font-size: 30px; width: 30px; height: 30px; color: #a5b4fc; }

.mwp-cta-footer h2 {
	font-size: 2.2rem; font-weight: 800; color: #fff !important;
	margin: 0 0 16px; letter-spacing: -0.025em;
}
.mwp-cta-footer p {
	color: #94a3b8; font-size: 1rem; max-width: 520px;
	margin: 0 auto 32px; line-height: 1.6;
}
.mwp-cta-note {
	margin-top: 20px !important; font-size: 13px !important; color: #64748b !important;
	letter-spacing: 0.02em;
}

/* â”€â”€â”€ RESPONSIVE â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
@media (max-width: 1024px) {
	.mwp-features-grid { grid-template-columns: repeat(2, 1fr); }
	.mwp-hero-title { font-size: 2.2rem; }
}
@media (max-width: 680px) {
	.mwp-features-grid { grid-template-columns: 1fr; }
	.mwp-hero { padding: 50px 24px 40px; }
	.mwp-hero-title { font-size: 1.8rem; }
	.mwp-hero-stats { flex-direction: column; gap: 16px; }
	.mwp-hero-stat-divider { width: 60px; height: 1px; }
	.mwp-cta-footer { padding: 40px 24px; }
}

/* Extracted from includes\admin\class-product-metabox.php */

            .multiware-stock-summary .multiware-total-qty {
                font-size: 18px;
                color: #2271b1;
                font-weight: bold;
            }
            .multiware-zero {
                color: #d63638;
            }
            .multiware-positive {
                color: #00a32a;
            }
            .multiware-reserved {
                color: #f0b849;
                font-style: italic;
            }
        
/* Extracted from includes\admin\class-order-metabox.php */

            .multiware-status-badge {
                padding: 8px 12px;
                border-radius: 3px;
                font-weight: bold;
                margin: 0 0 15px 0;
            }
            .multiware-status-badge .dashicons {
                vertical-align: middle;
                margin-right: 5px;
            }
            .multiware-status-reduced {
                background: #d5f4e6;
                color: #00a32a;
                border: 1px solid #00a32a;
            }
            .multiware-status-pending {
                background: #fcf3cf;
                color: #f0b849;
                border: 1px solid #f0b849;
            }
            .multiware-reservation-active {
                color: #2271b1;
                font-weight: bold;
            }
            .multiware-reservation-fulfilled {
                color: #00a32a;
            }
            .multiware-reservation-released {
                color: #999;
            }
        

/* ==========================================================================
   Utility Classes
   ========================================================================== */

.mw-mt-12 { margin-top: 12px; }
.mw-mb-12 { margin-bottom: 12px; }
.mw-m-12 { margin: 12px; }
.mw-p-12 { padding: 12px; }
.mw-w-100 { width: 100px !important; }
.mw-mb-1em { margin-bottom: 1em; }
.mw-inline-table { margin: 12px; border-collapse: collapse; }
