/* Inventory dashboard styles — extracted from views/inventory/dashboard.php (v1.35.0) */

/* Base Container */
body .inventory-container {
    width: 95vw !important;
    max-width: none !important;
    margin: 0 auto;
    background: #fff;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

body .hr-dashboard {
    max-width: none !important;
    width: 100% !important;
}

body .site-content,
body .content-area,
body .container,
body .wrap {
    max-width: none !important;
    width: 100% !important;
}

/* Header */
.inventory-header {
    text-align: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e5e7eb;
}

.inventory-header h3 {
    color: #1f2937;
    font-size: 22px;
    font-weight: 600;
    margin: 0 0 6px 0;
}

.inventory-header p {
    color: #6b7280;
    font-size: 14px;
    margin: 0;
}

/* Controls Wrapper */
.controls-wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.controls-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.controls-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.controls-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Search Box */
.search-box {
    position: relative;
    width: 220px;
}

.search-box input {
    width: 100%;
    padding: 8px 12px 8px 36px;
    font-size: 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #f9fafb;
    transition: all 0.2s;
}

.search-box input:focus {
    outline: none;
    border-color: #3b82f6;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.search-box .search-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    opacity: 0.5;
}

/* Filter Buttons */
.filter-group {
    display: flex;
    gap: 4px;
    background: #f3f4f6;
    padding: 4px;
    border-radius: 8px;
}

.filter-btn {
    padding: 6px 14px;
    border: none;
    background: transparent;
    color: #4b5563;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.15s;
}

.filter-btn:hover {
    background: #e5e7eb;
}

.filter-btn.active {
    background: #fff;
    color: #1f2937;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

/* Dropdown Group */
.dropdown-group {
    display: flex;
    gap: 8px;
}

.styled-select {
    padding: 8px 32px 8px 12px;
    font-size: 13px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M3 4.5L6 7.5L9 4.5'/%3E%3C/svg%3E") no-repeat right 10px center;
    appearance: none;
    cursor: pointer;
    color: #374151;
    min-width: 100px;
}

.styled-select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Primary Button */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    color: #fff;
    background: #3b82f6;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s;
}

.btn-primary:hover {
    background: #2563eb;
}

.btn-primary:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

.btn-icon {
    font-size: 14px;
}

/* Secondary Actions */
.secondary-actions {
    display: flex;
    gap: 4px;
    padding-left: 8px;
    border-left: 1px solid #e5e7eb;
}

.btn-icon-only {
    min-width: 50px;
    height: 36px;
    padding: 0 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 500;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s;
    color: #374151;
}

.btn-icon-only:hover {
    background: #e5e7eb;
    color: #1f2937;
}

.btn-debug {
    opacity: 0.6;
}

.btn-debug:hover {
    opacity: 1;
}

/* Bulk Actions Bar */
.bulk-actions-bar {
    display: none;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
}

.bulk-actions-bar.show {
    display: flex;
}

.selected-count {
    font-size: 13px;
    color: #1e40af;
    font-weight: 500;
}

.btn-bulk {
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 500;
    color: #1e40af;
    background: #fff;
    border: 1px solid #93c5fd;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s;
}

.btn-bulk:hover {
    background: #dbeafe;
}

/* Timestamp Bar */
.timestamp-bar {
    display: flex;
    gap: 16px;
    font-size: 11px;
    color: #9ca3af;
}

/* Stats Cards */
.inventory-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

.stat-card {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 16px;
    text-align: center;
    transition: all 0.15s;
}

.stat-card:hover {
    border-color: #d1d5db;
}

.stat-card.critical {
    background: #fef2f2;
    border-color: #fecaca;
}

.stat-card.warning {
    background: #fffbeb;
    border-color: #fde68a;
}

.stat-card.dead-stock {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.stat-number {
    font-size: 28px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 4px;
}

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

/* Mobile Controls - Hidden on Desktop */
.mobile-controls {
    display: none;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    body .inventory-container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px;
        border-radius: 0;
        left: 0;
        transform: none;
        overflow-x: hidden;
        box-sizing: border-box;
    }

    .controls-wrapper {
        display: none;
    }

    .mobile-controls {
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin-bottom: 16px;
    }

    .mobile-controls .search-box {
        width: 100%;
    }

    .mobile-filters {
        display: flex;
        gap: 4px;
        background: #f3f4f6;
        padding: 4px;
        border-radius: 8px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .mobile-filters .filter-btn {
        padding: 6px 10px;
        font-size: 12px;
        white-space: nowrap;
    }

    .mobile-dropdowns {
        display: flex;
        gap: 8px;
    }

    .mobile-dropdowns .styled-select {
        flex: 1;
        min-width: 0;
    }

    .mobile-actions {
        display: flex;
        gap: 8px;
    }

    .mobile-actions .btn-primary {
        flex: 1;
    }

    .inventory-header {
        padding-bottom: 12px;
        margin-bottom: 16px;
    }

    .inventory-header h3 {
        font-size: 18px;
    }

    .inventory-header p {
        font-size: 12px;
    }

    .inventory-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .stat-card {
        padding: 12px;
    }

    .stat-number {
        font-size: 22px;
    }

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

    /* Hide checkbox column on mobile */
    .col-select {
        display: none !important;
    }

    #bulk-actions-mobile {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: #fff;
        padding: 12px;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
        z-index: 1000;
        border-top: 1px solid #e5e7eb;
    }

    /* Mobile table improvements */
    .inventory-table {
        font-size: 12px;
        min-width: 100%;
    }

    .inventory-table th,
    .inventory-table td {
        padding: 8px 4px;
        font-size: 11px;
    }
}

/* Table Styles */
.inventory-table {
    width: 100%;
    min-width: 1170px;
    border-collapse: collapse;
    margin-top: 16px;
    table-layout: fixed;
    font-size: 13px;
}

.inventory-table th,
.inventory-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.inventory-table th {
    background: #f9fafb;
    font-weight: 600;
    color: #374151;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.inventory-table tbody tr {
    transition: background 0.1s;
}

.inventory-table tbody tr:hover {
    background: #f9fafb;
}

/* Sortable column styles */
.inventory-table th.sortable {
    cursor: pointer;
    user-select: none;
    position: relative;
    padding-right: 20px;
}

.inventory-table th.sortable:hover {
    background: #f3f4f6;
}

.inventory-table th.sortable .sort-indicator {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 10px;
    color: #9ca3af;
}

.inventory-table th.sortable.sort-asc .sort-indicator,
.inventory-table th.sortable.sort-desc .sort-indicator {
    color: #3b82f6;
}

.inventory-table th.sortable.sort-asc .sort-indicator::after {
    content: '▲';
}

.inventory-table th.sortable.sort-desc .sort-indicator::after {
    content: '▼';
}

.inventory-table th.sortable:not(.sort-asc):not(.sort-desc) .sort-indicator::after {
    content: '⇅';
}

/* Stock Status Badges */
.stock-status {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.stock-status.out-of-stock {
    background: #fef2f2;
    color: #dc2626;
}

.stock-status.low-stock {
    background: #fffbeb;
    color: #d97706;
}

.stock-status.in-stock {
    background: #f0fdf4;
    color: #16a34a;
}

/* Location Badges */
.location-stock {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.location-badge {
    background: #f3f4f6;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 11px;
    color: #374151;
}

.location-badge.location-low {
    background: #fef3c7;
    color: #92400e;
}

.location-badge.location-zero {
    background: #fee2e2;
    color: #991b1b;
}

/* Loading & Error States */
.loading-spinner {
    text-align: center;
    padding: 60px 20px;
    color: #6b7280;
}

.loading-spinner::after {
    content: '';
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 2px solid #e5e7eb;
    border-top: 2px solid #3b82f6;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-left: 12px;
}

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

.error-message {
    text-align: center;
    padding: 16px 20px;
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
    border-radius: 8px;
    margin: 20px 0;
}

.last-updated {
    text-align: center;
    color: #9ca3af;
    font-size: 11px;
    margin-top: 16px;
}

/* Section Divider */
.section-divider {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.section-header h3 {
    color: #6b7280;
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

/* Threshold Input */
.threshold-input {
    width: 55px;
    padding: 4px 6px;
    font-size: 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    text-align: center;
    transition: all 0.15s;
}

.threshold-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

/* Checkbox Styling */
.item-checkbox {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #3b82f6;
}

.column-toggle-menu {
    position: absolute;
    top: 45px;
    right: 0;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 1000;
    display: none;
    min-width: 150px;
}

.column-toggle-menu label {
    display: block;
    margin-bottom: 5px;
    font-size: 13px;
    cursor: pointer;
}

.column-toggle-menu input[type="checkbox"] {
    margin-right: 8px;
}

/* Column Widths */
.col-select { width: 40px; text-align: center; }
.col-item { width: 180px; }
.col-variation { width: 80px; }
.col-status { width: 90px; }
.col-total { width: 80px; text-align: center; }
.col-threshold { width: 90px; text-align: center; }
.col-locations { width: 180px; }
.col-sales {
    width: 100px;
    text-align: center;
}

.col-sales strong {
    color: #3b82f6;
    font-weight: 600;
}

.col-sales.has-sales {
    background-color: #f0fdf4 !important;
}

/* Forecast column styles */
.col-forecast {
    width: 100px;
    text-align: center;
}

.forecast-status {
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    display: inline-block;
}

.forecast-status.critical {
    background: #fef2f2;
    color: #dc2626;
}

.forecast-status.warning {
    background: #fffbeb;
    color: #d97706;
}

.forecast-status.ok {
    background: #f0fdf4;
    color: #16a34a;
}

.forecast-status.no-sales {
    background: #f3f4f6;
    color: #6b7280;
}

.col-price {
    width: 70px;
    text-align: right;
    font-weight: 600;
    color: #059669;
}

.col-order-config {
    width: 120px;
    text-align: center;
}

.col-actions {
    width: 120px;
    text-align: center;
}

/* Actions Dropdown */
.actions-dropdown {
    position: relative;
    display: inline-block;
}

.actions-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 500;
    color: #374151;
    background: #f9fafb;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
}

.actions-dropdown-toggle:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
}

.actions-dropdown-toggle .caret {
    font-size: 8px;
    opacity: 0.6;
    transition: transform 0.2s;
}

.actions-dropdown.open .actions-dropdown-toggle {
    background: #fff;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.actions-dropdown.open .caret {
    transform: rotate(180deg);
}

.actions-dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 4px);
    min-width: 180px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    z-index: 1000;
    padding: 6px;
}

.actions-dropdown.open .actions-dropdown-menu {
    display: block;
}

.actions-dropdown-item {
    display: flex !important;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 8px 12px !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    color: #374151 !important;
    background: none !important;
    border: none !important;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.1s;
    text-align: left;
    white-space: nowrap;
    margin: 0 !important;
    box-shadow: none !important;
}

.actions-dropdown-item:hover {
    background: #f3f4f6 !important;
    color: #1f2937 !important;
}

.actions-dropdown-item .action-icon {
    font-size: 14px;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.actions-dropdown-item.action-order {
    color: #7c3aed !important;
}

.actions-dropdown-item.action-order:hover {
    background: #f5f3ff !important;
}

.actions-dropdown-divider {
    height: 1px;
    background: #e5e7eb;
    margin: 4px 0;
}

/* Legacy button styles (for mobile cards only) */
.action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 10px;
    font-size: 11px;
    font-weight: 500;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s;
    margin: 0 2px;
}

.mobile-item-actions .edit-btn {
    background: #eff6ff;
    color: #2563eb;
    border: none;
    padding: 5px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 500;
}

.mobile-item-actions .edit-btn:hover {
    background: #dbeafe;
}

.order-config-btn {
    background: #fef3c7;
    color: #92400e;
    border: none;
    padding: 5px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 500;
}

.order-config-btn:hover {
    background: #fde68a;
}

.order-config-btn.has-config {
    background: #d1fae5;
    color: #065f46;
}

.mobile-item-actions .new-inventory-btn {
    background: #f0fdf4;
    color: #16a34a;
    border: none;
    padding: 5px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 500;
    margin-left: 4px;
}

.mobile-item-actions .new-inventory-btn:hover {
    background: #dcfce7;
}

.mobile-item-actions .transfer-btn {
    background: #f0f9ff;
    color: #0284c7;
    border: none;
    padding: 5px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 500;
    margin-left: 4px;
}

.mobile-item-actions .transfer-btn:hover {
    background: #e0f2fe;
}

.mobile-item-actions .move-item-btn {
    background: #f3f4f6;
    color: #4b5563;
    border: none;
    padding: 5px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 500;
    margin-left: 4px;
}

.mobile-item-actions .move-item-btn:hover {
    background: #e5e7eb;
}

/* Transfer Modal */
.transfer-direction {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin: 16px 0;
    padding: 16px;
    background: #f9fafb;
    border-radius: 10px;
}

.transfer-location {
    text-align: center;
    flex: 1;
}

.transfer-location-name {
    font-weight: 600;
    color: #374151;
    margin-bottom: 4px;
    font-size: 13px;
}

.transfer-location-qty {
    font-size: 28px;
    font-weight: 700;
    color: #3b82f6;
}

.transfer-arrow {
    font-size: 24px;
    color: #10b981;
}

.transfer-error {
    background: #fef2f2;
    color: #991b1b;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #fecaca;
    margin-top: 12px;
    display: none;
    font-size: 13px;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(2px);
    display: none;
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 12px;
    padding: 24px;
    width: 90%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    position: relative;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e5e7eb;
}

.modal-header h3 {
    margin: 0;
    color: #1f2937;
    font-size: 18px;
    font-weight: 600;
}

.modal-close {
    background: #f3f4f6;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #6b7280;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.15s;
}

.modal-close:hover {
    background: #e5e7eb;
    color: #374151;
}

.modal-body {
    margin-bottom: 20px;
}

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

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #374151;
    font-size: 13px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 10px 36px 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    box-sizing: border-box;
    transition: all 0.15s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-group input[readonly] {
    background: #f9fafb;
    color: #6b7280;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}

.modal-btn {
    padding: 10px 18px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.15s;
}

.modal-btn.cancel {
    background: #f3f4f6;
    color: #4b5563;
}

.modal-btn.cancel:hover {
    background: #e5e7eb;
}

.modal-btn.save {
    background: #3b82f6;
    color: white;
}

.modal-btn.save:hover {
    background: #2563eb;
}

.modal-btn:disabled {
    background: #e5e7eb !important;
    color: #9ca3af !important;
    cursor: not-allowed;
}

.form-group select {
    width: 100%;
    padding: 12px 36px 12px 12px;
    border: 2px solid #dee2e6;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
    background: white;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M3 4.5L6 7.5L9 4.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    cursor: pointer;
}

.form-group select:focus {
    outline: none;
    border-color: #007cba;
}

.form-group select option {
    padding: 8px 12px;
}

/* Add Stock modal: ensure location dropdown is tall enough for selected text */
#new-inventory-modal #location-select {
    min-height: 40px;
    line-height: 1.4;
}

.form-group input[readonly] {
    background: #f8f9fa;
    color: #6c757d;
}

/* Mobile Table Styles */
@media (max-width: 768px) {
    .inventory-table {
        display: none; /* Hide table on mobile */
    }
    
    .mobile-inventory-list {
        display: block;
    }
    
    .mobile-item-card {
        background: #fff;
        border: 1px solid #dee2e6;
        border-radius: 8px;
        margin-bottom: 15px;
        padding: 15px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }
    
    .mobile-item-header {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        margin-bottom: 10px;
    }
    
    .mobile-item-name {
        font-weight: bold;
        font-size: 16px;
        color: #333;
        flex: 1;
        margin-right: 10px;
    }
    
    .mobile-item-status {
        font-size: 12px;
    }
    
    .mobile-item-details {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        margin-bottom: 15px;
        font-size: 14px;
    }
    
    .mobile-detail-item {
        display: flex;
        flex-direction: column;
    }
    
    .mobile-detail-label {
        font-size: 11px;
        color: #666;
        text-transform: uppercase;
        margin-bottom: 2px;
    }
    
    .mobile-detail-value {
        font-weight: 500;
        color: #333;
    }
    
    .mobile-item-actions {
        display: flex;
        gap: 8px;
        flex-wrap: wrap;
    }
    
    .mobile-item-actions button {
        flex: 1;
        min-width: 80px;
        padding: 8px 12px;
        font-size: 12px;
        border-radius: 4px;
        border: none;
        cursor: pointer;
    }
    
    .mobile-checkbox {
        position: absolute;
        top: 15px;
        right: 15px;
    }
    
    .refresh-btn {
        padding: 12px 8px;
        font-size: 11px;
        margin: 3px 1px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        min-width: 0;
        flex: 1;
    }
    
    /* Mobile button container */
    .inventory-controls > div:last-child {
        flex-direction: column;
        gap: 8px;
    }
    
    /* Group buttons in rows on mobile */
    .mobile-button-row {
        display: flex;
        gap: 5px;
        width: 100%;
    }
    
    /* Timestamp area cleanup */
    #inventory-timestamp,
    #sales-timestamp {
        font-size: 10px;
        text-align: center;
        margin: 2px 0;
        word-break: break-word;
    }
    
    #bulk-actions {
        position: fixed;
        bottom: 20px;
        left: 10px;
        right: 10px;
        background: #fff;
        padding: 15px;
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
        z-index: 1000;
        border: 2px solid #007cba;
    }
    
    .bulk-btn {
        width: 100%;
        margin-bottom: 10px;
        padding: 12px;
        font-size: 14px;
    }
}

@media (min-width: 769px) {
    .mobile-inventory-list {
        display: none; /* Hide mobile cards on desktop */
    }
}

/* ============================================
   Vendor Ordering Dashboard Styles
   Requirements: 5.1, 5.2, 5.3, 5.4, 5.5, 5.6, 6.1, 6.2, 6.3, 6.4, 6.5, 6.7
   ============================================ */

/* Tab Navigation */
.inventory-tabs {
    display: flex;
    gap: 4px;
    background: #f3f4f6;
    padding: 4px;
    border-radius: 10px;
    margin-bottom: 20px;
    width: fit-content;
}

.inventory-tab {
    padding: 10px 20px;
    border: none;
    background: transparent;
    color: #4b5563;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.15s;
}

.inventory-tab:hover {
    background: #e5e7eb;
}

.inventory-tab.active {
    background: #fff;
    color: #1f2937;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Check Type Toggle (Products/Supplies) */
.check-type-btn {
    padding: 8px 16px;
    border: none;
    background: transparent;
    color: #4b5563;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.15s;
}

.check-type-btn:hover {
    background: #e5e7eb;
}

.check-type-btn.active {
    background: #fff;
    color: #1f2937;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Vendor Orders Header */
.vendor-orders-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e5e7eb;
}

.vendor-orders-title h4 {
    margin: 0 0 4px 0;
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
}

.vendor-orders-title p {
    margin: 0;
    font-size: 13px;
    color: #6b7280;
}

/* Vendor Orders Stats */
.vendor-orders-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

/* Vendor Orders Empty State */
.vendor-orders-empty {
    text-align: center;
    padding: 60px 20px;
    background: #f9fafb;
    border-radius: 12px;
    border: 2px dashed #e5e7eb;
}

.vendor-orders-empty .empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.vendor-orders-empty h4 {
    margin: 0 0 8px 0;
    color: #374151;
    font-size: 18px;
}

.vendor-orders-empty p {
    margin: 0;
    color: #6b7280;
    font-size: 14px;
}

/* Vendor Summary Cards */
.vendor-summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
}

.vendor-summary-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.2s;
}

.vendor-summary-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
    transform: translateY(-2px);
}

.vendor-summary-card.ready-to-order {
    border-color: #10b981;
    background: linear-gradient(135deg, #f0fdf4 0%, #fff 100%);
}

.vendor-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.vendor-card-title {
    flex: 1;
}

.vendor-card-title h4 {
    margin: 0 0 4px 0;
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
}

.vendor-card-title .vendor-name {
    font-size: 12px;
    color: #6b7280;
}

.vendor-card-badges {
    display: flex;
    gap: 6px;
}

.vendor-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.vendor-badge.ready {
    background: #d1fae5;
    color: #065f46;
}

.vendor-badge.no-minimum {
    background: #e5e7eb;
    color: #4b5563;
}

.vendor-badge.pending {
    background: #fef3c7;
    color: #92400e;
}

.vendor-card-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

.vendor-stat {
    text-align: center;
    padding: 10px;
    background: #f9fafb;
    border-radius: 8px;
}

.vendor-stat-value {
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
}

.vendor-stat-value.currency {
    color: #059669;
}

.vendor-stat-label {
    font-size: 11px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Progress Bar */
.vendor-progress-container {
    margin-bottom: 12px;
}

.vendor-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.vendor-progress-label {
    font-size: 12px;
    color: #6b7280;
}

.vendor-progress-value {
    font-size: 12px;
    font-weight: 600;
    color: #374151;
}

.vendor-progress-bar {
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}

.vendor-progress-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.vendor-progress-fill.low {
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
}

.vendor-progress-fill.medium {
    background: linear-gradient(90deg, #60a5fa, #3b82f6);
}

.vendor-progress-fill.high {
    background: linear-gradient(90deg, #34d399, #10b981);
}

.vendor-progress-fill.complete {
    background: linear-gradient(90deg, #10b981, #059669);
}

.vendor-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid #e5e7eb;
}

.vendor-card-footer .item-count {
    font-size: 12px;
    color: #6b7280;
}

.vendor-card-footer .view-details {
    font-size: 12px;
    color: #3b82f6;
    font-weight: 500;
}

/* Vendor Detail Modal */
.vendor-detail-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    padding: 16px;
    background: #f9fafb;
    border-radius: 8px;
    margin-bottom: 20px;
}

.vendor-info-item {
    display: flex;
    flex-direction: column;
}

.vendor-info-label {
    font-size: 11px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 4px;
}

.vendor-info-value {
    font-size: 14px;
    color: #1f2937;
    font-weight: 500;
}

.vendor-info-value a {
    color: #3b82f6;
    text-decoration: none;
}

.vendor-info-value a:hover {
    text-decoration: underline;
}

/* Vendor Order Table */
.vendor-detail-items h4 {
    margin: 0 0 12px 0;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}

.vendor-order-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.vendor-order-table th,
.vendor-order-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.vendor-order-table th {
    background: #f9fafb;
    font-weight: 600;
    color: #374151;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.vendor-order-table tbody tr:hover {
    background: #f9fafb;
}

.order-qty-input {
    width: 70px;
    padding: 6px 8px;
    font-size: 13px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    text-align: center;
}

.order-qty-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

.order-qty-input.invalid {
    border-color: #dc2626;
    background: #fef2f2;
}

.order-multiple-hint {
    font-size: 10px;
    color: #9ca3af;
    display: block;
    margin-top: 2px;
}

/* Coverage cell color coding */
.coverage-cell {
    font-weight: 500;
    text-align: center;
}

.coverage-cell.coverage-good {
    color: #059669;
    background: #f0fdf4;
}

.coverage-cell.coverage-warning {
    color: #d97706;
    background: #fffbeb;
}

.coverage-cell.coverage-critical {
    color: #dc2626;
    background: #fef2f2;
}

.order-total-row {
    background: #f0fdf4;
}

/* Vendor Detail Progress */
.vendor-detail-progress {
    margin: 20px 0;
    padding: 16px;
    background: #f9fafb;
    border-radius: 8px;
}

.vendor-detail-progress .progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.vendor-detail-progress .progress-text {
    font-size: 13px;
    color: #374151;
}

.vendor-detail-progress .progress-amount {
    font-size: 14px;
    font-weight: 600;
}

.vendor-detail-progress .amount-remaining {
    color: #dc2626;
}

.vendor-detail-progress .amount-met {
    color: #059669;
}

/* Vendor Notes */
.vendor-detail-notes {
    margin-top: 16px;
    padding: 16px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 8px;
}

.vendor-detail-notes h4 {
    margin: 0 0 8px 0;
    font-size: 14px;
    font-weight: 600;
    color: #92400e;
}

.vendor-detail-notes p {
    margin: 0;
    font-size: 13px;
    color: #78350f;
    white-space: pre-wrap;
}

/* Copy Success Toast */
.copy-toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #1f2937;
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    z-index: 10001;
    animation: toastFadeInOut 2s ease-in-out;
}

@keyframes toastFadeInOut {
    0% { opacity: 0; transform: translateX(-50%) translateY(20px); }
    15% { opacity: 1; transform: translateX(-50%) translateY(0); }
    85% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(-20px); }
}

/* Mobile Responsive for Vendor Orders */
@media (max-width: 768px) {
    .inventory-tabs {
        width: 100%;
        flex-wrap: wrap;
    }
    
    .inventory-tab {
        flex: 1 1 auto;
        text-align: center;
        padding: 10px 12px;
        font-size: 13px;
        min-width: 45%;
    }
    
    .vendor-orders-header {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
    
    .vendor-orders-actions {
        width: 100%;
    }
    
    .vendor-orders-actions .btn-primary {
        width: 100%;
    }
    
    .vendor-summary-cards {
        grid-template-columns: 1fr;
    }
    
    .vendor-detail-info {
        grid-template-columns: 1fr;
    }
    
    /* Vendor order table - mobile card layout */
    .vendor-order-table {
        font-size: 12px;
        display: block;
        overflow-x: hidden;
    }

    .vendor-order-table thead {
        display: none;
    }

    .vendor-order-table tbody {
        display: block;
    }

    .vendor-order-table tr {
        display: block;
        margin-bottom: 16px;
        background: #f9fafb;
        border-radius: 8px;
        padding: 12px;
        border: 1px solid #e5e7eb;
    }

    .vendor-order-table td {
        display: flex;
        justify-content: space-between;
        padding: 6px 0;
        border-bottom: 1px solid #e5e7eb;
    }

    .vendor-order-table td:last-child {
        border-bottom: none;
    }

    .vendor-order-table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: #374151;
        flex-shrink: 0;
        margin-right: 12px;
    }

    .order-qty-input {
        width: 60px;
        padding: 4px 8px;
        font-size: 14px;
    }
}

/* ============================================
   Inventory Check Styles (Monthly & Spot Check)
   ============================================ */

.check-header {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e5e7eb;
}

.check-title h4 {
    margin: 0 0 4px 0;
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
}

.check-title p {
    margin: 0;
    font-size: 13px;
    color: #6b7280;
}

.check-controls {
    display: flex;
    gap: 16px;
    align-items: flex-end;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.check-controls .form-group {
    margin-bottom: 0;
    min-width: 250px;
}

.check-controls .form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #374151;
    font-size: 13px;
}

.check-controls .form-group select {
    width: 100%;
    padding: 10px 36px 10px 12px;
    font-size: 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M3 4.5L6 7.5L9 4.5'/%3E%3C/svg%3E") no-repeat right 12px center;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    color: #374151;
}

.check-status {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 20px;
}

.check-progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.check-month, .check-week {
    font-weight: 600;
    color: #374151;
    font-size: 14px;
}

.check-progress-text {
    font-size: 13px;
    color: #6b7280;
}

.check-progress-bar {
    height: 10px;
    background: #e5e7eb;
    border-radius: 5px;
    overflow: hidden;
}

.check-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #2563eb);
    border-radius: 5px;
    transition: width 0.3s ease;
}

.check-completed-message {
    text-align: center;
    padding: 40px 20px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 12px;
    margin-bottom: 24px;
}

.check-completed-message .completed-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.check-completed-message h4 {
    margin: 0 0 8px 0;
    color: #166534;
    font-size: 18px;
}

.check-completed-message p {
    margin: 0 0 12px 0;
    color: #15803d;
    font-size: 14px;
}

.check-completed-message .completed-details {
    font-size: 13px;
    color: #166534;
}

.check-table-wrapper {
    overflow-x: auto;
    margin-bottom: 20px;
}

.check-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.check-table th,
.check-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.check-table th {
    background: #f9fafb;
    font-weight: 600;
    color: #374151;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.check-table tbody tr {
    transition: background 0.1s;
}

.check-table tbody tr:hover {
    background: #f9fafb;
}

.check-table tbody tr.checked {
    background: #f0fdf4;
}

.check-table tbody tr.has-discrepancy {
    background: #fef2f2;
}

.col-check-status {
    width: 40px;
    text-align: center;
}

.col-expected, .col-actual, .col-discrepancy {
    width: 100px;
    text-align: center;
}

.col-notes {
    width: 150px;
}

.check-status-icon {
    font-size: 16px;
}

.check-status-icon.pending {
    color: #9ca3af;
}

.check-status-icon.done {
    color: #10b981;
}

.actual-input {
    width: 70px;
    padding: 6px 8px;
    font-size: 13px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    text-align: center;
}

.actual-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

.actual-input.has-value {
    border-color: #10b981;
    background: #f0fdf4;
}

.notes-input {
    width: 100%;
    padding: 6px 8px;
    font-size: 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
}

.notes-input:focus {
    outline: none;
    border-color: #3b82f6;
}

.discrepancy-value {
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
    min-width: 40px;
}

.discrepancy-value.positive {
    background: #dbeafe;
    color: #1d4ed8;
}

.discrepancy-value.negative {
    background: #fee2e2;
    color: #dc2626;
}

.discrepancy-value.zero {
    background: #f0fdf4;
    color: #16a34a;
}

.check-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}

.check-actions .complete-btn {
    background: #10b981;
}

.check-actions .complete-btn:hover:not(:disabled) {
    background: #059669;
}

.check-actions .complete-btn:disabled {
    background: #9ca3af;
}

.check-history-section {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
}

.check-history-section h4 {
    margin: 0 0 16px 0;
    font-size: 16px;
    font-weight: 600;
    color: #374151;
}

.check-history-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
}

.check-history-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 16px;
    transition: all 0.15s;
}

.check-history-card:hover {
    border-color: #d1d5db;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.check-history-card.completed {
    border-left: 4px solid #10b981;
}

.check-history-card.in-progress {
    border-left: 4px solid #f59e0b;
}

.history-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.history-card-location {
    font-weight: 600;
    color: #1f2937;
    font-size: 14px;
}

.history-card-status {
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

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

.history-card-status.in-progress {
    background: #fef3c7;
    color: #92400e;
}

.history-card-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 12px;
}

.history-stat {
    text-align: center;
    padding: 8px;
    background: #f9fafb;
    border-radius: 6px;
}

.history-stat-value {
    font-size: 16px;
    font-weight: 700;
    color: #1f2937;
}

.history-stat-value.discrepancy {
    color: #dc2626;
}

.history-stat-label {
    font-size: 10px;
    color: #6b7280;
    text-transform: uppercase;
}

.history-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #6b7280;
}

.history-card-user {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Mobile Responsive for Inventory Checks */
@media (max-width: 768px) {
    .check-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .check-controls .form-group {
        width: 100%;
    }
    
    .check-controls .btn-primary {
        width: 100%;
    }
    
    .check-table {
        font-size: 12px;
    }
    
    .check-table th,
    .check-table td {
        padding: 8px 6px;
    }
    
    .actual-input {
        width: 60px;
        padding: 4px 6px;
    }
    
    .notes-input {
        width: 80px;
        font-size: 11px;
    }
    
    .check-actions {
        flex-direction: column;
    }
    
    .check-actions button {
        width: 100%;
    }
    
    .check-history-list {
        grid-template-columns: 1fr;
    }
}

/* --- Vendor order / brand config modal styles --- */
/* Brand Configuration Styles */
.brand-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 8px;
    background: #fff;
    transition: all 0.15s;
}

.brand-list-item:hover {
    border-color: #3b82f6;
    background: #f8fafc;
}

.brand-list-item-info {
    flex: 1;
}

.brand-list-item-name {
    font-weight: 600;
    color: #1f2937;
    font-size: 14px;
}

.brand-list-item-vendor {
    font-size: 12px;
    color: #6b7280;
    margin-top: 2px;
}

.brand-list-item-min {
    font-size: 11px;
    color: #059669;
    margin-top: 4px;
}

.brand-list-item-min.no-min {
    color: #9ca3af;
}

.brand-list-item-actions {
    display: flex;
    gap: 6px;
}

.brand-list-item-actions button {
    padding: 6px 12px;
    font-size: 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s;
}

.brand-edit-btn {
    background: #eff6ff;
    color: #2563eb;
}

.brand-edit-btn:hover {
    background: #dbeafe;
}

.brand-delete-btn {
    background: #fef2f2;
    color: #dc2626;
}

.brand-delete-btn:hover {
    background: #fee2e2;
}

/* Brand config button next to dropdown */
.brand-config-btn {
    min-width: 50px;
    height: 36px;
    padding: 0 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 500;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s;
    color: #374151;
}

.brand-config-btn:hover {
    background: #e5e7eb;
    border-color: #3b82f6;
    color: #1f2937;
}

.brand-config-btn.has-config {
    background: #eff6ff;
    border-color: #3b82f6;
    color: #2563eb;
}

/* --- Product order config modal styles --- */
/* Product Order Config Modal Styles */
#product-order-config-modal .form-group input[type="number"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    box-sizing: border-box;
}

#product-order-config-modal .form-group input[type="number"]:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.calculated-price-info {
    display: flex;
    align-items: center;
    gap: 6px;
}

.calculated-price-info .price-badge {
    background: #f0fdf4;
    color: #16a34a;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.calculated-price-info .price-badge.override {
    background: #eff6ff;
    color: #2563eb;
}

.calculated-price-info .price-badge.pending {
    background: #fef3c7;
    color: #92400e;
}
