/* Abundance Cloud Specific Styles */

/* Quick Actions Grid */
.abundance-quick-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.abundance-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 32px 24px;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    font-weight: 600;
}

.abundance-action-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.abundance-action-btn.shipping {
    border-color: #f97316;
}

.abundance-action-btn.shipping:hover {
    border-color: #f97316;
    background: rgba(249, 115, 22, 0.1);
}

.abundance-action-btn.shipping .action-icon {
    background: rgba(249, 115, 22, 0.15);
    color: #f97316;
}

.abundance-action-btn.pickup {
    border-color: #10b981;
}

.abundance-action-btn.pickup:hover {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.1);
}

.abundance-action-btn.pickup .action-icon {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

.abundance-action-btn.delivered {
    border-color: #3b82f6;
}

.abundance-action-btn.delivered:hover {
    border-color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
}

.abundance-action-btn.delivered .action-icon {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
}

.abundance-action-btn.shopify {
    border-color: #71717a;
}

.abundance-action-btn.shopify:hover {
    border-color: #95bf47;
    background: rgba(149, 191, 71, 0.1);
}

.abundance-action-btn.shopify .action-icon {
    background: rgba(149, 191, 71, 0.15);
    color: #95bf47;
}

.action-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

/* Filter Tabs */
.abundance-filter-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
    justify-content: center;
}

.filter-tab {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    color: var(--text-secondary);
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-tab:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.filter-tab.active {
    background: var(--accent-gradient);
    border-color: transparent;
    color: white;
}

.filter-tab i {
    font-size: 16px;
}

/* Abundance Table */
.abundance-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.abundance-table thead tr th {
    background: var(--bg-secondary);
    padding: 16px 20px;
    text-align: left;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 10;
}

.abundance-table tbody tr {
    transition: all 0.2s;
}

.abundance-table tbody tr:hover {
    background: var(--bg-hover);
}

.abundance-table tbody tr td {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    font-size: 13px;
}

.abundance-table tbody tr:last-child td {
    border-bottom: none;
}

/* Order Status Badges */
.order-status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.order-status-badge.pending {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning);
}

.order-status-badge.prepared {
    background: rgba(59, 130, 246, 0.15);
    color: var(--info);
}

.order-status-badge.ready {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
}

.order-status-badge.delivered {
    background: rgba(99, 102, 241, 0.15);
    color: var(--accent-primary);
}

.order-status-badge.paid {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
}

.order-status-badge.unpaid {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning);
}

/* Order Type Badges */
.order-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 8px;
}

.order-type-badge.shipping {
    background: rgba(249, 115, 22, 0.1);
    border: 1px solid #f97316;
    color: #f97316;
}

.order-type-badge.pickup {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid #3b82f6;
    color: #3b82f6;
}

.order-type-badge.manual {
    background: rgba(113, 113, 122, 0.1);
    border: 1px solid var(--text-muted);
    color: var(--text-muted);
}

/* Line Items */
.line-items-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.line-item {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
}

/* Order Actions */
.order-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.order-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.order-action-btn:hover {
    background: var(--bg-hover);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.order-action-btn.print:hover {
    border-color: #3b82f6;
    color: #3b82f6;
}

.order-action-btn.view:hover {
    border-color: #10b981;
    color: #10b981;
}

/* Loading State */
.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    gap: 16px;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--border-color);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-state span {
    font-size: 14px;
    color: var(--text-muted);
}

/* Empty State */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    gap: 12px;
}

.empty-state i {
    font-size: 64px;
    color: var(--text-muted);
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.empty-state p {
    font-size: 14px;
    color: var(--text-muted);
}

/* Alert Messages */
.alert {
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    margin: 16px 0;
}

.alert.success {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
    border: 1px solid var(--success);
}

.alert.error {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger);
    border: 1px solid var(--danger);
}

.alert.info {
    background: rgba(59, 130, 246, 0.15);
    color: var(--info);
    border: 1px solid var(--info);
}

/* Order Details */
.order-detail-section {
    margin-bottom: 24px;
}

.order-detail-section h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.order-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.order-detail-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.order-detail-label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

.order-detail-value {
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 600;
}

/* Barcode Scanner */
#barcodeVideo {
    max-width: 100%;
    border: 2px solid var(--border-color);
}

/* Checkbox Styling */
.abundance-table input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent-primary);
    cursor: pointer;
}

/* Responsive */
@media (max-width: 1400px) {
    .abundance-quick-actions {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .abundance-quick-actions {
        grid-template-columns: 1fr;
    }

    .abundance-filter-tabs {
        flex-wrap: wrap;
    }

    /* Orders table to cards on mobile */
    .abundance-table {
        display: block;
        width: 100%;
    }

    .abundance-table thead {
        display: none;
    }

    .abundance-table tbody {
        display: block;
        width: 100%;
    }

    .abundance-table tbody tr {
        display: flex;
        flex-wrap: wrap;
        gap: 6px 12px;
        background: var(--bg-card);
        border: 1px solid var(--border-color);
        border-radius: 10px;
        margin-bottom: 10px;
        padding: 12px;
        align-items: flex-start;
    }

    .abundance-table tbody tr td {
        border: none !important;
        padding: 0 !important;
        font-size: 11px;
    }

    /* Hide checkbox column on mobile */
    .abundance-table tbody tr td:first-child {
        display: none;
    }

    /* Order number - full width at top */
    .abundance-table tbody tr td:nth-child(2) {
        width: 100%;
        order: 1;
        padding-bottom: 8px !important;
        border-bottom: 1px solid var(--border-color) !important;
        margin-bottom: 6px;
    }

    .abundance-table tbody tr td:nth-child(2) .order-link {
        font-size: 14px;
        font-weight: 700;
    }

    .abundance-table tbody tr td:nth-child(2) .order-date,
    .abundance-table tbody tr td:nth-child(2) .order-id-small {
        display: inline;
        font-size: 10px;
    }

    /* Customer name */
    .abundance-table tbody tr td:nth-child(3) {
        order: 2;
        width: 100%;
    }

    .abundance-table tbody tr td:nth-child(3) .customer-name {
        font-weight: 600;
        font-size: 13px;
    }

    /* Line items - full width */
    .abundance-table tbody tr td:nth-child(4) {
        order: 3;
        width: 100%;
        padding: 8px 0 !important;
        border-top: 1px solid var(--border-color) !important;
        margin-top: 6px;
    }

    .abundance-table tbody tr td:nth-child(4) .line-item {
        font-size: 11px;
        padding: 3px 0;
    }

    /* Status */
    .abundance-table tbody tr td:nth-child(5) {
        order: 4;
    }

    .abundance-table tbody tr td:nth-child(5) > div {
        flex-direction: row !important;
        gap: 4px !important;
    }

    .abundance-table tbody tr td:nth-child(5) .order-status-badge {
        padding: 3px 8px;
        font-size: 9px;
    }

    /* Pickup/Shipping */
    .abundance-table tbody tr td:nth-child(6) {
        order: 5;
    }

    .abundance-table tbody tr td:nth-child(6) .order-type-badge {
        font-size: 10px;
        padding: 4px 8px;
    }

    .abundance-table tbody tr td:nth-child(6) .shipping-address {
        font-size: 10px;
    }

    /* Hide taxes on mobile */
    .abundance-table tbody tr td:nth-child(7) {
        display: none;
    }

    /* Total */
    .abundance-table tbody tr td:nth-child(8) {
        order: 6;
    }

    .abundance-table tbody tr td:nth-child(8) .order-total-main {
        font-size: 14px;
    }

    .abundance-table tbody tr td:nth-child(8) .order-total-detail {
        font-size: 9px;
    }

    /* Actions - full width at bottom */
    .abundance-table tbody tr td:nth-child(9) {
        order: 7;
        width: 100%;
        padding-top: 8px !important;
        border-top: 1px solid var(--border-color) !important;
        margin-top: 6px;
    }

    .abundance-table tbody tr td:nth-child(9) .order-actions {
        display: flex;
        gap: 8px;
        width: 100%;
    }

    .abundance-table tbody tr td:nth-child(9) .order-action-btn {
        flex: 1;
        justify-content: center;
        padding: 8px;
        font-size: 11px;
    }
}

/* Tax Information */
.tax-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.tax-line {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-muted);
}

.tax-line .tax-title {
    font-weight: 500;
}

.tax-line .tax-amount {
    font-weight: 600;
}

/* Total Amount Styling */
.order-total {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.order-total-main {
    font-size: 16px;
    font-weight: 700;
    font-family: 'Space Mono', monospace;
}

.order-total-detail {
    font-size: 10px;
    color: var(--text-muted);
}

/* Order Link */
.order-link {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.order-link:hover {
    color: var(--accent-secondary);
    text-decoration: underline;
}

.order-date {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}

.order-id-small {
    font-size: 10px;
    color: var(--text-muted);
    font-family: 'Space Mono', monospace;
}

/* Customer Name */
.customer-name {
    font-weight: 600;
    text-transform: uppercase;
}

/* Shipping Address */
.shipping-address {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 8px;
}

.shipping-address svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.address-text {
    font-size: 11px;
    line-height: 1.4;
}

/* Metafields Display */
.order-metafields {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 12px;
}

.metafield-item {
    font-size: 10px;
}

.metafield-key {
    font-weight: 700;
    text-transform: uppercase;
}

.metafield-value {
    color: var(--text-secondary);
}

/* Thief Report Modal Styles */
.photo-upload-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
    border: 2px dashed var(--border-color);
    border-radius: 16px;
    background: var(--bg-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.photo-upload-area:hover {
    border-color: var(--accent-primary);
    background: rgba(99, 102, 241, 0.05);
}

.photo-upload-area:hover i {
    color: var(--accent-primary) !important;
    transform: scale(1.1);
}

.photo-upload-area i {
    transition: all 0.3s ease;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-size: 14px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: var(--bg-card);
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    transition: all 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-input::placeholder {
    color: var(--text-muted);
}

select.form-input {
    cursor: pointer;
}

textarea.form-input {
    font-family: 'Outfit', sans-serif;
    line-height: 1.6;
}

/* ===========================================
   TRANSFERS MODULE STYLES
   =========================================== */

/* Transfers Quick Actions */
.transfers-quick-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.transfers-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 32px 24px;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    font-weight: 600;
}

.transfers-action-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.transfers-action-btn.new-transfer {
    border-color: var(--accent-primary);
}

.transfers-action-btn.new-transfer:hover {
    background: rgba(99, 102, 241, 0.1);
}

.transfers-action-btn.new-transfer .action-icon {
    background: rgba(99, 102, 241, 0.15);
    color: var(--accent-primary);
}

.transfers-action-btn.pending {
    border-color: #f59e0b;
}

.transfers-action-btn.pending:hover {
    background: rgba(245, 158, 11, 0.1);
}

.transfers-action-btn.pending .action-icon {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}

.transfers-action-btn.completed {
    border-color: #10b981;
}

.transfers-action-btn.completed:hover {
    background: rgba(16, 185, 129, 0.1);
}

.transfers-action-btn.completed .action-icon {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

/* Transfers Filter Tabs */
.transfers-filter-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
    justify-content: center;
}

/* Transfers Table */
.transfers-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.transfers-table thead tr th {
    background: var(--bg-secondary);
    padding: 16px 20px;
    text-align: left;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 10;
}

.transfers-table tbody tr {
    transition: all 0.2s;
}

.transfers-table tbody tr:hover {
    background: var(--bg-hover);
}

.transfers-table tbody tr td {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    font-size: 13px;
}

.transfers-table tbody tr:last-child td {
    border-bottom: none;
}

/* Transfer Status Badges */
.transfer-status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.transfer-status-badge.pending {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}

.transfer-status-badge.in-transit {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
}

.transfer-status-badge.received {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

/* Transfer Folio */
.transfer-folio {
    font-family: 'Space Mono', monospace;
    font-weight: 700;
    color: var(--accent-primary);
    font-size: 14px;
}

/* Transfer Route Display */
.transfer-route {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
}

.transfer-route .store-name {
    font-weight: 600;
    color: var(--text-primary);
}

.transfer-route .route-arrow {
    color: var(--accent-primary);
    font-size: 16px;
}

/* Product Search Container */
.product-search-container {
    position: relative;
}

.product-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 100;
    margin-top: 4px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.product-search-item {
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.2s;
    border-bottom: 1px solid var(--border-color);
}

.product-search-item:last-child {
    border-bottom: none;
}

.product-search-item:hover {
    background: var(--bg-hover);
}

.product-search-item .product-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 13px;
    margin-bottom: 4px;
}

.product-search-item .product-details {
    font-size: 11px;
    color: var(--text-muted);
    display: flex;
    gap: 12px;
}

.product-search-item .product-sku {
    font-family: 'Space Mono', monospace;
}

/* Selected Product Display */
.selected-product-display {
    background: var(--bg-secondary);
    border: 1px solid var(--accent-primary);
    border-radius: 10px;
    padding: 12px 16px;
    margin-top: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.selected-product-display .product-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.selected-product-display .product-info .product-name {
    font-weight: 600;
    color: var(--text-primary);
}

.selected-product-display .product-info .product-meta {
    font-size: 12px;
    color: var(--text-muted);
}

.selected-product-display .remove-product {
    background: none;
    border: none;
    color: var(--danger);
    cursor: pointer;
    font-size: 16px;
    padding: 4px 8px;
    border-radius: 6px;
    transition: background 0.2s;
}

.selected-product-display .remove-product:hover {
    background: rgba(239, 68, 68, 0.1);
}

/* Confirm Receive Button */
.confirm-receive-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: var(--success);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.confirm-receive-btn:hover {
    background: #059669;
    transform: scale(1.02);
}

.confirm-receive-btn:disabled {
    background: var(--text-muted);
    cursor: not-allowed;
    transform: none;
}

/* Transfer Stats Cards */
.transfer-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.transfer-stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.transfer-stat-card .stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.transfer-stat-card .stat-icon.total {
    background: rgba(99, 102, 241, 0.15);
    color: var(--accent-primary);
}

.transfer-stat-card .stat-icon.pending {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}

.transfer-stat-card .stat-icon.transit {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
}

.transfer-stat-card .stat-icon.received {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

.transfer-stat-card .stat-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.transfer-stat-card .stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    font-family: 'Space Mono', monospace;
}

.transfer-stat-card .stat-label {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

/* Loading Spinner for Products */
.product-search-loading {
    padding: 20px;
    text-align: center;
    color: var(--text-muted);
}

.product-search-loading i {
    animation: spin 1s linear infinite;
    margin-right: 8px;
}

/* No Results Message */
.product-search-no-results {
    padding: 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
}

/* Responsive Transfers */
@media (max-width: 1200px) {
    .transfers-quick-actions {
        grid-template-columns: repeat(2, 1fr);
    }

    .transfer-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .transfers-quick-actions {
        grid-template-columns: 1fr;
    }

    .transfer-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .transfer-stat-card {
        padding: 12px;
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }

    .transfer-stat-card .stat-icon {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .transfer-stat-card .stat-value {
        font-size: 20px;
    }

    .transfer-stat-card .stat-label {
        font-size: 10px;
    }

    .transfers-filter-tabs {
        flex-wrap: wrap;
        gap: 6px;
    }

    .transfers-filter-tabs .filter-tab {
        padding: 8px 12px;
        font-size: 12px;
    }

    /* Transfers Page Header - Mobile */
    .page-header {
        flex-direction: column;
        gap: 16px;
        align-items: stretch !important;
    }

    .page-header .page-header-left {
        text-align: center;
    }

    .page-header .page-header-left .section-title {
        font-size: 20px;
    }

    .page-header .page-header-left .section-subtitle {
        font-size: 12px;
    }

    /* Header Buttons - Mobile Grid */
    .page-header > div:last-child {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 8px !important;
    }

    .page-header > div:last-child button {
        padding: 10px 12px !important;
        font-size: 12px !important;
        justify-content: center;
    }

    .page-header > div:last-child button i {
        font-size: 14px;
    }

    /* Hide button text on very small screens */
    .page-header > div:last-child button span {
        display: none;
    }

    /* Mobile table card view */
    .transfers-table {
        display: block;
        width: 100%;
    }

    .transfers-table thead {
        display: none;
    }

    .transfers-table tbody {
        display: flex;
        flex-direction: column;
        gap: 12px;
        padding: 12px;
    }

    .transfers-table tbody tr {
        display: flex;
        flex-direction: column;
        gap: 12px;
        background: var(--bg-card);
        border: 1px solid var(--border-color);
        border-radius: 14px;
        padding: 16px;
    }

    .transfers-table tbody tr td {
        border: none !important;
        padding: 0 !important;
        font-size: 13px;
    }

    /* Folio - Full width header */
    .transfers-table tbody tr td:nth-child(1) {
        order: 1;
    }

    .transfers-table tbody tr td:nth-child(1) .transfer-folio {
        font-size: 16px;
    }

    /* Route - Full width */
    .transfers-table tbody tr td:nth-child(2) {
        order: 2;
        background: var(--bg-secondary);
        padding: 12px !important;
        border-radius: 10px;
        margin: 4px 0;
    }

    .transfers-table tbody tr td:nth-child(2) .transfer-route {
        justify-content: center;
    }

    /* Product info */
    .transfers-table tbody tr td:nth-child(3) {
        order: 3;
    }

    /* Quantity */
    .transfers-table tbody tr td:nth-child(4) {
        order: 4;
        display: inline-flex;
        align-items: center;
        gap: 4px;
    }

    .transfers-table tbody tr td:nth-child(4)::before {
        content: 'Qty: ';
        color: var(--text-muted);
        font-size: 11px;
    }

    /* Date */
    .transfers-table tbody tr td:nth-child(5) {
        order: 5;
        color: var(--text-muted);
        font-size: 11px;
    }

    /* Sent by - hide on mobile */
    .transfers-table tbody tr td:nth-child(6) {
        display: none;
    }

    /* Status */
    .transfers-table tbody tr td:nth-child(7) {
        order: 6;
        position: absolute;
        top: 16px;
        right: 16px;
    }

    .transfers-table tbody tr {
        position: relative;
    }

    /* Actions */
    .transfers-table tbody tr td:nth-child(8) {
        order: 7;
        width: 100%;
        border-top: 1px solid var(--border-color) !important;
        padding-top: 12px !important;
        margin-top: 4px;
    }

    .transfers-table tbody tr td:nth-child(8) .order-actions {
        display: flex;
        gap: 8px;
        width: 100%;
    }

    .transfers-table tbody tr td:nth-child(8) .order-actions button {
        flex: 1;
        justify-content: center;
        padding: 10px !important;
    }

    /* Grid View Mobile */
    .transfers-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
        padding: 0 4px;
    }

    .transfer-card {
        padding: 16px !important;
    }

    /* View Toggle Mobile */
    .transfers-view-toggle {
        padding: 3px !important;
    }

    .transfers-view-toggle button {
        padding: 6px 10px !important;
    }

    /* Modal Mobile Improvements */
    #transferModal .modal-content,
    #aiTransferModal .modal-content,
    #deleteTransferModal .modal-content {
        margin: 10px;
        max-height: calc(100vh - 20px);
        overflow-y: auto;
        border-radius: 16px !important;
    }

    /* AI Transfer Modal Mobile */
    #aiTransferModal .modal-content {
        max-width: calc(100vw - 20px) !important;
    }

    /* Transfer Form Mobile */
    #transferForm input,
    #transferForm select,
    #transferForm textarea {
        font-size: 16px !important; /* Prevents zoom on iOS */
    }

    /* Receive Modal Mobile */
    #receiveTransferModal .modal-content {
        margin: 10px;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .transfer-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .transfer-stat-card {
        padding: 10px 8px;
    }

    .transfer-stat-card .stat-icon {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }

    .transfer-stat-card .stat-value {
        font-size: 18px;
    }

    .transfer-stat-card .stat-label {
        font-size: 9px;
    }

    .page-header > div:last-child {
        grid-template-columns: 1fr 1fr;
    }

    .page-header > div:last-child button {
        padding: 8px 10px !important;
        font-size: 11px !important;
    }

    .transfers-filter-tabs .filter-tab {
        padding: 6px 10px;
        font-size: 11px;
    }

    .transfers-filter-tabs .filter-tab span {
        display: none;
    }
}

/* ========================================
   THE CHAMPS - RESPONSIVE STYLES
   ======================================== */

/* The Champs Product Card */
.champs-product-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 24px;
    border-radius: 16px;
    transition: all 0.2s;
}

@media (max-width: 768px) {
    /* The Champs Container */
    .champs-container {
        padding: 16px !important;
    }

    /* The Champs Header */
    .champs-header h2 {
        font-size: 20px !important;
    }

    .champs-header h2 i {
        font-size: 22px !important;
    }

    /* The Champs Controls - Stack vertically on mobile */
    .champs-controls {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px !important;
    }

    .champs-controls > div:first-child {
        width: 100%;
    }

    .champs-controls select {
        flex: 1;
        min-width: unset !important;
    }

    .champs-controls button {
        flex: 1;
    }

    /* The Champs Summary Card */
    .champs-summary {
        width: 100%;
        text-align: center;
        padding: 10px 16px !important;
    }

    .champs-summary span:last-child {
        font-size: 16px !important;
    }

    /* The Champs Product Cards - Mobile Layout */
    .champs-product-card {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 12px !important;
        padding: 16px !important;
    }

    .champs-product-rank {
        width: 40px !important;
        height: 40px !important;
        font-size: 18px !important;
        flex-shrink: 0;
    }

    .champs-product-info {
        width: 100% !important;
        min-width: unset !important;
    }

    .champs-product-name {
        font-size: 14px !important;
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: clip !important;
        line-height: 1.4;
    }

    .champs-product-meta {
        flex-wrap: wrap;
        gap: 8px !important;
    }

    .champs-product-revenue {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding-top: 12px;
        margin-top: 4px;
        border-top: 1px solid var(--border-color);
    }

    .champs-product-revenue > div:first-child {
        font-size: 20px !important;
    }

    .champs-product-revenue > div:last-child {
        font-size: 12px !important;
    }

    /* Loading and Error States */
    .champs-loading,
    .champs-error {
        padding: 60px 20px !important;
    }

    .champs-loading i,
    .champs-error i {
        font-size: 32px !important;
    }
}

@media (max-width: 480px) {
    .champs-container {
        padding: 12px !important;
    }

    .champs-product-card {
        padding: 14px !important;
    }

    .champs-header h2 {
        font-size: 18px !important;
    }

    .champs-controls select,
    .champs-controls button {
        padding: 10px 12px !important;
        font-size: 13px !important;
    }
}

/* ========================================
   ACTIVITY LOG - RESPONSIVE STYLES
   ======================================== */

@media (max-width: 1024px) {
    /* Activity Log Stats Grid */
    .activity-stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 768px) {
    /* Activity Log Header */
    .activity-log-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 16px !important;
    }

    .activity-log-header .page-header-left {
        width: 100%;
    }

    .activity-log-header > div:last-child {
        width: 100%;
        display: flex;
        gap: 8px;
    }

    .activity-log-header > div:last-child button {
        flex: 1;
    }

    /* Activity Log Filters - Stack vertically */
    .activity-filters {
        flex-direction: column !important;
        gap: 10px !important;
    }

    .activity-filters .search-filter {
        width: 100% !important;
        min-width: unset !important;
    }

    .activity-filters select,
    .activity-filters input[type="date"] {
        width: 100% !important;
    }

    /* Activity Stats Grid */
    .activity-stats-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 12px !important;
    }

    .activity-stat-card {
        padding: 16px !important;
    }

    .activity-stat-card .stat-icon {
        width: 44px !important;
        height: 44px !important;
        font-size: 18px !important;
    }

    .activity-stat-card .stat-value {
        font-size: 22px !important;
    }

    .activity-stat-card .stat-label {
        font-size: 11px !important;
    }

    /* Activity Table - Convert to Cards on Mobile */
    .activity-log-table {
        display: block !important;
    }

    .activity-log-table thead {
        display: none !important;
    }

    .activity-log-table tbody {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .activity-log-table tbody tr {
        display: flex;
        flex-direction: column;
        background: var(--bg-card);
        border: 1px solid var(--border-color);
        border-radius: 12px;
        padding: 14px;
        gap: 10px;
    }

    .activity-log-table tbody tr td {
        padding: 0 !important;
        border: none !important;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    /* Time cell */
    .activity-log-table tbody tr td:nth-child(1) {
        order: 1;
        font-size: 11px !important;
        color: var(--text-muted);
    }

    /* User cell */
    .activity-log-table tbody tr td:nth-child(2) {
        order: 0;
        padding-bottom: 10px !important;
        border-bottom: 1px solid var(--border-color) !important;
    }

    .activity-log-table tbody tr td:nth-child(2) > div {
        gap: 10px !important;
    }

    .activity-log-table tbody tr td:nth-child(2) .user-avatar {
        width: 36px !important;
        height: 36px !important;
    }

    /* Action cell */
    .activity-log-table tbody tr td:nth-child(3) {
        order: 2;
    }

    /* Details cell */
    .activity-log-table tbody tr td:nth-child(4) {
        order: 3;
        max-width: 100% !important;
        font-size: 12px !important;
        color: var(--text-secondary);
        flex-wrap: wrap;
    }

    /* Store cell */
    .activity-log-table tbody tr td:nth-child(5) {
        order: 4;
        font-size: 11px;
        color: var(--text-muted);
    }

    /* Hide store column on very small screens */
    .activity-log-table tbody tr td:nth-child(5)::before {
        content: 'Store: ';
        font-weight: 500;
    }
}

@media (max-width: 480px) {
    /* Even smaller screens */
    .activity-stats-grid {
        grid-template-columns: 1fr !important;
    }

    .activity-stat-card {
        flex-direction: row;
        gap: 12px;
    }

    .activity-log-table tbody tr {
        padding: 12px;
    }

    .activity-log-table tbody tr td:nth-child(2) > div > div:last-child > div:last-child {
        display: none; /* Hide role on very small screens */
    }
}
