/**
 * Bulk Manager Styles
 * Mobil-optimiert und responsive
 */

/* ThickBox komplett verstecken - Fix für Popup-Problem */
#TB_overlay,
#TB_window,
.TB_overlayBG,
.thickbox-loading {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Container with Sidebar Layout */
.appizza-bulk-wrapper {
    display: flex;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    position: relative;
    z-index: 1;
    min-height: 100vh;
}

/* Sidebar */
.bulk-sidebar {
    width: 240px;
    background: white;
    border-right: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    flex-shrink: 0;
}

.sidebar-header {
    padding: 20px 16px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.sidebar-logo {
    width: 120px;
    height: auto;
    display: block;
}

.sidebar-header h3 {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: #111827;
    white-space: nowrap;
    text-align: center;
}

.sidebar-version {
    font-size: 10px;
    color: #9ca3af;
    font-weight: 400;
    margin-top: 4px;
    display: block;
    text-align: center;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    padding: 12px 8px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 8px;
    color: #6b7280;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.15s;
    margin-bottom: 4px;
}

.sidebar-link:hover {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    color: #065f46;
}

/* Sidebar disabled state - während des Ladens */
.bulk-sidebar.loading .sidebar-link {
    opacity: 0.5;
    pointer-events: none;
    cursor: not-allowed;
    position: relative;
}

.bulk-sidebar.loading .sidebar-link::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    z-index: 1;
}

.bulk-sidebar.loading {
    position: relative;
}

.bulk-sidebar.loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.3);
    z-index: 10;
    pointer-events: none;
}

.sidebar-link:hover .sidebar-icon,
.sidebar-link:hover .sidebar-icon i {
    color: #065f46;
}

.sidebar-link.active {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2);
}

.sidebar-link.active .sidebar-icon,
.sidebar-link.active .sidebar-icon i {
    color: #065f46 !important;
}

.sidebar-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.sidebar-text {
    flex: 1;
}

.sidebar-badge {
    margin-left: auto !important;
    background: #ef4444 !important;
    color: white !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    padding: 2px 6px !important;
    border-radius: 10px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    min-width: 28px !important;
    text-align: center !important;
    display: none !important;
}

/* Main Content Area */
.bulk-main-content {
    flex: 1;
    padding: 12px;
    overflow-y: auto;
    max-width: 100%;
}

/* Header Section */
.bulk-header {
    margin-bottom: 20px;
    position: relative;
}

.bulk-header h1 {
    margin: 0 0 6px 0;
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
}

.bulk-header .header-subtitle {
    margin: 0 0 16px 0;
    font-size: 14px;
    color: #6b7280;
    font-weight: 400;
}

/* Shop Control Panel */
.shop-control {
    position: absolute;
    top: 0;
    right: 0;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

/* Shop Status Colors */
.shop-control.shop-open {
    background: #10b981;
}

.shop-control.shop-closed {
    background: #ef4444;
}

.shop-status-label {
    font-size: 13px;
    font-weight: 500;
    color: white;
    white-space: nowrap;
}

.shop-status-text {
    font-weight: 600;
    color: white;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255,255,255,0.3);
    transition: 0.2s;
    border-radius: 26px;
    border: 1px solid rgba(255,255,255,0.4);
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.2s;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

input:checked + .toggle-slider {
    background-color: rgba(255,255,255,0.4);
}

input:checked + .toggle-slider:before {
    transform: translateX(22px);
}

/* Kategorie Chips - Desktop */
.category-chips-container {
    background: white;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 12px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
    border: 1px solid #e5e7eb;
}

.category-chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.category-chip {
    padding: 6px 12px !important;
    border: 2px solid #bfdbfe !important;
    border-radius: 6px !important;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%) !important;
    color: #1e3a8a !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    white-space: nowrap !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
}

.category-chip:hover:not(.active) {
    border-color: #a7f3d0 !important;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%) !important;
    color: #065f46 !important;
    transform: translateY(-1px) !important;
}

.category-chip.active {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%) !important;
    color: #065f46 !important;
    border: 2px solid #86efac !important;
    font-weight: 700 !important;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2) !important;
    transform: scale(1.02);
}

.category-chip.active:hover {
    background: linear-gradient(135deg, #a7f3d0 0%, #6ee7b7 100%) !important;
    border-color: #6ee7b7 !important;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3) !important;
}

.category-chip .count {
    display: inline-block;
    background: rgba(30, 58, 138, 0.15) !important;
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 11px;
    margin-left: 6px;
    font-weight: 600;
    color: #1e3a8a !important;
}

.category-chip.active .count {
    background: rgba(6, 95, 70, 0.15) !important;
    color: #065f46 !important;
    font-weight: 700 !important;
}

/* Mobile Category Modal Trigger */
.mobile-category-trigger {
    display: none;
}

@media (max-width: 768px) {
    /* Desktop Chips verstecken */
    .category-chips-container {
        display: none;
    }
    
    /* Mobile Trigger anzeigen */
    .mobile-category-trigger {
        display: block;
        background: white;
        padding: 12px;
        border-radius: 6px;
        margin-bottom: 12px;
        box-shadow: 0 1px 2px rgba(0,0,0,0.04);
        border: 1px solid #e5e7eb;
    }
    
    #mobile-category-button {
        width: 100%;
        padding: 10px 12px;
        background: #10b981;
        color: white;
        border: none;
        border-radius: 4px;
        font-size: 14px;
        font-weight: 500;
        cursor: pointer;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    #mobile-category-button:active {
        transform: scale(0.98);
    }
}

/* Category Modal */
.category-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 10000;
    animation: fadeIn 0.3s;
}

.category-modal.active {
    display: flex;
    align-items: flex-end;
}

.category-modal-content {
    background: white;
    width: 100%;
    max-height: 70vh;
    border-radius: 12px 12px 0 0;
    overflow-y: auto;
    animation: slideUp 0.2s;
    padding-bottom: 16px;
}

.category-modal-header {
    padding: 14px 16px;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    background: white;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.category-modal-title {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
}

.category-modal-close {
    background: #f3f4f6;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
}

.category-modal-list {
    padding: 8px;
}

.category-modal-item {
    padding: 12px 16px;
    border-bottom: 1px solid #f3f4f6;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.15s;
}

.category-modal-item:active {
    background: #f9fafb;
}

.category-modal-item.active {
    background: #d1fae5;
    border-left: 3px solid #10b981;
}

.category-modal-item-name {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
}

.category-modal-item.active .category-modal-item-name {
    color: #065f46;
    font-weight: 600;
}

.category-modal-item-count {
    background: #f3f4f6;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
}

.category-modal-item.active .category-modal-item-count {
    background: #10b981;
    color: white;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

/* Search & Filter */
.bulk-controls {
    background: white;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 12px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
    border: 1px solid #e5e7eb;
}

.search-box {
    flex: 1;
    min-width: 200px;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.15s;
}

.search-box:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

/* Products Table */
.products-container {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    border: none;
}

.products-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.products-table thead {
    background: #fafafa;
    border-bottom: none;
}

.products-table th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    color: #6b7280;
    letter-spacing: 0.5px;
}

.products-table tbody tr {
    border-bottom: none;
    transition: background-color 0.15s ease;
}

.products-table tbody tr:hover {
    background-color: #fafbfc;
}

.products-table tbody tr.inactive {
    opacity: 0.5;
}

.products-table td {
    padding: 12px 16px;
    font-size: 14px;
    vertical-align: middle;
}

/* Product Title */
.product-title {
    font-weight: 500;
    color: #111827;
    font-size: 14px;
    line-height: 1.4;
}

.product-category-badge {
    display: inline-block;
    background: #f3f4f6;
    color: #6b7280;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    margin-top: 4px;
    font-weight: 500;
}

.product-category {
    font-size: 12px;
    color: #9ca3af;
    display: block;
    margin-top: 2px;
}

/* Price Input */
.price-input {
    width: 80px;
    padding: 6px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 14px;
    text-align: left;
    transition: all 0.15s ease;
    font-weight: 500;
    background: white;
    color: #111827;
}

.price-input:hover {
    border-color: #9ca3af;
}

.price-input:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.price-input.updating {
    background: #fef3c7;
    border-color: #fbbf24;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

/* Status Toggle Switch (Smaller) */
.status-toggle {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.status-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.status-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #dc3545;
    transition: 0.2s;
    border-radius: 24px;
}

.status-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.2s;
    border-radius: 50%;
}

input:checked + .status-slider {
    background-color: #10b981;
}

input:checked + .status-slider:before {
    transform: translateX(20px);
}

/* Loading State */
.bulk-loading {
    text-align: center;
    padding: 32px;
    color: #6b7280;
    font-size: 14px;
}

.bulk-loading::after {
    content: "";
    display: block;
    width: 32px;
    height: 32px;
    margin: 16px auto 0;
    border: 3px solid #f3f4f6;
    border-top: 3px solid #10b981;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Empty State */
.bulk-empty {
    text-align: center;
    padding: 48px 20px;
    color: #6b7280;
    font-size: 14px;
}

.bulk-empty svg {
    width: 64px;
    height: 64px;
    margin-bottom: 16px;
    opacity: 0.3;
}

/* Notification Toast */
.bulk-toast {
    position: fixed;
    bottom: 16px;
    right: 16px;
    background: #111827;
    color: white;
    padding: 12px 16px;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 9999;
    animation: slideInUp 0.2s ease;
    max-width: 280px;
    font-size: 14px;
}

.bulk-toast.success {
    background: #10b981;
}

.bulk-toast.error {
    background: #ef4444;
}

@keyframes slideInUp {
    from {
        transform: translateY(60px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Stats Row */
.bulk-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.stat-card {
    background: white;
    padding: 20px 16px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    border: 1px solid #e5e7eb;
    text-align: center;
}

.stat-label {
    font-size: 11px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    margin-bottom: 8px;
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    color: #111827;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
}

.stat-badge-grey {
    background: #f3f4f6;
    color: #6b7280;
}

.stat-badge-green {
    background: #d1fae5;
    color: #065f46;
}

.stat-badge-red {
    background: #fee2e2;
    color: #991b1b;
}

/* Products Header */
.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding: 0 4px;
}

.products-header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.products-title {
    font-size: 16px;
    font-weight: 700;
    color: #6b7280;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.products-count {
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
}

.products-count span {
    color: #111827;
    font-weight: 700;
}

/* Mobile Card Layout */
@media (max-width: 768px) {
    .appizza-bulk-wrapper {
        flex-direction: column;
        padding: 0;
    }
    
    /* Mobile Sidebar */
    .bulk-sidebar {
        width: 100%;
        height: auto;
        position: relative;
        border-right: none;
        border-bottom: 1px solid #e5e7eb;
    }
    
    .sidebar-header {
        padding: 14px;
    }
    
    .sidebar-header h3 {
        font-size: 15px;
    }
    
    .sidebar-nav {
        flex-direction: row;
        padding: 8px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .sidebar-link {
        flex-direction: column;
        gap: 6px;
        padding: 10px 14px;
        white-space: nowrap;
        flex-shrink: 0;
        min-width: 90px;
        text-align: center;
    }
    
    .sidebar-icon {
        font-size: 20px;
    }
    
    .sidebar-text {
        font-size: 12px;
    }
    
    .bulk-main-content {
        padding: 12px;
    }
    
    .bulk-header {
        margin-bottom: 16px;
    }
    
    .bulk-header h1 {
        font-size: 20px;
        margin-bottom: 4px;
    }
    
    .bulk-header .header-subtitle {
        font-size: 13px;
        margin-bottom: 12px;
    }
    
    .shop-control {
        position: relative;
        top: auto;
        right: auto;
        width: 100%;
        justify-content: space-between;
        margin-bottom: 16px;
    }
    
    /* Tabelle auf Mobile verstecken */
    .products-table {
        display: none;
    }
    
    /* Card Layout für Mobile */
    .products-container {
        background: transparent;
        box-shadow: none;
        border: none;
    }
    
    #products-list {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    
    .product-card {
        background: white;
        padding: 16px;
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.06);
        border: 1px solid #e2e8f0;
        transition: all 0.2s ease;
    }
    
    .product-card:hover {
        box-shadow: 0 4px 16px rgba(0,0,0,0.1);
        border-color: #cbd5e1;
    }
    
    .product-card.inactive {
        opacity: 0.6;
    }
    
    .product-card-header {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        margin-bottom: 12px;
    }
    
    .product-card-header-main {
        flex: 1;
    }
    
    .product-card-title {
        font-size: 15px;
        font-weight: 600;
        color: #111827;
        margin-bottom: 6px;
    }
    
    .product-card-meta {
        font-size: 12px;
        color: #9ca3af;
        font-weight: 400;
    }
    
    .product-card-prices {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    
    .product-card-price-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 10px 12px;
        background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
        border-radius: 8px;
        border: 1px solid #e2e8f0;
        transition: all 0.2s ease;
    }
    
    .product-card-price-row:hover {
        background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
        border-color: #a7f3d0;
        box-shadow: 0 2px 8px rgba(16, 185, 129, 0.15);
    }
    
    .product-card-size-label {
        font-size: 13px;
        font-weight: 600;
        color: #78716c;
        text-transform: capitalize;
    }
    
    .product-card-price-value {
        font-size: 15px;
        font-weight: 700;
        color: #111827;
    }
    
    .price-input {
        width: 90px !important;
        font-size: 15px !important;
        padding: 8px !important;
        text-align: left;
        font-weight: 600;
        border: 2px solid #e2e8f0 !important;
        border-radius: 8px !important;
        background: white !important;
        transition: all 0.2s ease !important;
        color: #1e293b !important;
    }
    
    .price-input:hover {
        border-color: #cbd5e1 !important;
        background: #f8fafc !important;
    }
    
    .price-input:focus {
        border-color: #10b981 !important;
        box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15) !important;
        background: white !important;
        outline: none !important;
    }
    
    .bulk-toast {
        right: 10px;
        bottom: 10px;
        left: 10px;
        max-width: none;
    }
}

@media (max-width: 480px) {
    .bulk-header h1 {
        font-size: 18px;
    }
    
    /* Stats yan yana kalsin */
    .bulk-stats {
        gap: 8px;
    }
    
    .stat-card {
        padding: 14px 10px;
    }
    
    .stat-label {
        font-size: 10px;
    }
    
    .stat-value {
        font-size: 26px;
    }
    
    .stat-badge {
        font-size: 10px;
        padding: 3px 8px;
    }
    
    .product-card {
        padding: 12px;
    }
    
    .product-card-title {
        font-size: 14px;
    }
    
    .product-card-meta {
        font-size: 11px;
    }
    
    .product-card-price-row {
        padding: 8px 10px;
    }
    
    .product-card-size-label {
        font-size: 12px;
    }
    
    .product-card-price-value {
        font-size: 14px;
    }
}

/* Size Labels in table - Soft Colors */
.size-label {
    display: inline-block;
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1e3a8a;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    min-width: 60px;
    max-width: 90px;
    overflow: auto;
    text-align: center;
    white-space: nowrap;
    border: 1px solid #93c5fd;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Price Cell */
.price-cell {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
    margin-bottom: 6px;
}

.price-cell:last-child {
    margin-bottom: 0;
}

/* Status Badge */
.status-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
}

.status-badge.active {
    background: #d1fae5;
    color: #065f46;
}

.status-badge.inactive {
    background: #fee2e2;
    color: #991b1b;
}

/* ========================================
   ORDERS VIEW
   ======================================== */
.orders-container {
    margin-top: 20px;
}

.orders-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
}

.order-card {
    background: white;
    padding: 16px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    border: 1px solid #e5e7eb;
    transition: all 0.15s;
}

.order-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f3f4f6;
}

.order-id {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
}

.order-status {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.order-status-pending {
    background: #fef3c7;
    color: #92400e;
}

.order-status-processing {
    background: #dbeafe;
    color: #1e40af;
}

.order-status-completed {
    background: #d1fae5;
    color: #065f46;
}

.order-status-cancelled {
    background: #fee2e2;
    color: #991b1b;
}

.order-details p {
    margin: 8px 0;
    font-size: 14px;
    color: #6b7280;
}

.order-details strong {
    color: #374151;
    font-weight: 600;
}

/* =============================================
   SAVE CHANGES BUTTONS
   ============================================= */

/* Header Save Button */
.bulk-save-changes-btn {
    display: none;
    padding: 10px 20px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.2);
    white-space: nowrap;
}

.bulk-save-changes-btn:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    box-shadow: 0 4px 8px rgba(16, 185, 129, 0.3);
    transform: translateY(-1px);
}

.bulk-save-changes-btn:active {
    transform: translateY(0);
}

.bulk-save-changes-btn i {
    margin-right: 6px;
}

.bulk-save-changes-btn.show {
    display: inline-flex;
    align-items: center;
    animation: fadeInDown 0.3s ease;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Changed price input highlight */
.price-input.changed {
    border-color: #f59e0b !important;
    background: linear-gradient(135deg, #fde68a, #fbbf24) !important;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.35) !important;
    font-weight: 700 !important;
    color: #78350f !important;
}

/* Changed price cell highlight */
.price-cell:has(.price-input.changed) {
    background: linear-gradient(135deg, #fef3c7, #fde68a) !important;
    border-color: #f59e0b !important;
    box-shadow: 0 3px 12px rgba(245, 158, 11, 0.3) !important;
    transform: translateY(-1px);
}

/* Products Footer */
.products-footer {
    margin-top: 20px;
    padding: 16px 0;
    display: flex;
    justify-content: center;
}

.products-footer .bulk-save-changes-btn {
    min-width: 200px;
}

