* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Dark mode colors as DEFAULT - Professional dark palette */
    --bg-gradient-start: #0f172a;
    --bg-gradient-end: #1e293b;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --bg-white: #1e293b;
    --bg-light: #0f172a;
    --bg-hover: #334155;
    --border-color: #334155;
    --border-light: #1e293b;
    --shadow: rgba(0, 0, 0, 0.3);
    --shadow-md: rgba(0, 0, 0, 0.25);
    --shadow-lg: rgba(0, 0, 0, 0.35);
    --accent-primary: #3b82f6;
    --accent-secondary: #2563eb;
    --accent-hover: #60a5fa;
    --accent-light: #1e3a8a;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    
    /* Semantic color backgrounds for dark mode */
    --success-bg: #064e3b;
    --success-text: #6ee7b7;
    --success-border: #10b981;
    --warning-bg: #78350f;
    --warning-text: #fcd34d;
    --warning-border: #f59e0b;
    --danger-bg: #7f1d1d;
    --danger-text: #fca5a5;
    --danger-border: #ef4444;
    --info-bg: #1e3a8a;
    --info-text: #93c5fd;
    --info-border: #3b82f6;
    --neutral-bg: #374151;
    --neutral-text: #d1d5db;
    --neutral-border: #6b7280;
    
    /* Button colors */
    --btn-secondary-bg: #475569;
    --btn-secondary-hover: #64748b;
    
    /* Purple/Violet for special actions */
    --purple: #a78bfa;
    --purple-dark: #7c3aed;
    --purple-darker: #6d28d9;
}

/* Light mode override - only if explicitly requested */
body.light-mode {
    /* Light mode colors - Professional business palette */
    --bg-gradient-start: #f5f7fa;
    --bg-gradient-end: #e8eef5;
    --text-primary: #1a202c;
    --text-secondary: #4a5568;
    --text-muted: #718096;
    --bg-white: #ffffff;
    --bg-light: #f7fafc;
    --bg-hover: #edf2f7;
    --border-color: #e2e8f0;
    --border-light: #f0f4f8;
    --shadow: rgba(0, 0, 0, 0.05);
    --shadow-md: rgba(0, 0, 0, 0.08);
    --shadow-lg: rgba(0, 0, 0, 0.12);
    --accent-primary: #2563eb;
    --accent-secondary: #1e40af;
    --accent-hover: #1d4ed8;
    --accent-light: #dbeafe;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    
    /* Semantic color backgrounds for light mode */
    --success-bg: #d1fae5;
    --success-text: #065f46;
    --success-border: #10b981;
    --warning-bg: #fef3c7;
    --warning-text: #b45309;
    --warning-border: #f59e0b;
    --danger-bg: #fee2e2;
    --danger-text: #991b1b;
    --danger-border: #ef4444;
    --info-bg: #dbeafe;
    --info-text: #1e40af;
    --info-border: #2563eb;
    --neutral-bg: #f3f4f6;
    --neutral-text: #374151;
    --neutral-border: #9ca3af;
    
    /* Button colors */
    --btn-secondary-bg: #e0e0e0;
    --btn-secondary-hover: #d0d0d0;
}

/* Keep dark-mode class for backwards compatibility */
body.dark-mode {
    /* Dark mode colors - Professional dark palette */
    --bg-gradient-start: #0f172a;
    --bg-gradient-end: #1e293b;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --bg-white: #1e293b;
    --bg-light: #0f172a;
    --bg-hover: #334155;
    --border-color: #334155;
    --border-light: #1e293b;
    --shadow: rgba(0, 0, 0, 0.3);
    --shadow-md: rgba(0, 0, 0, 0.25);
    --shadow-lg: rgba(0, 0, 0, 0.35);
    --accent-primary: #3b82f6;
    --accent-secondary: #2563eb;
    --accent-hover: #60a5fa;
    --accent-light: #1e3a8a;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    
    /* Semantic color backgrounds for dark mode */
    --success-bg: #064e3b;
    --success-text: #6ee7b7;
    --success-border: #10b981;
    --warning-bg: #78350f;
    --warning-text: #fcd34d;
    --warning-border: #f59e0b;
    --danger-bg: #7f1d1d;
    --danger-text: #fca5a5;
    --danger-border: #ef4444;
    --info-bg: #1e3a8a;
    --info-text: #93c5fd;
    --info-border: #3b82f6;
    --neutral-bg: #374151;
    --neutral-text: #d1d5db;
    --neutral-border: #6b7280;
    
    /* Button colors */
    --btn-secondary-bg: #475569;
    --btn-secondary-hover: #64748b;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
    min-height: 100vh;
    padding: 20px;
    color: var(--text-primary);
    transition: background 0.3s ease, color 0.3s ease;
    line-height: 1.6;
    letter-spacing: -0.01em;
}

/* Global input and textarea styling for dark mode support */
input[type="text"],
input[type="number"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="tel"],
input[type="url"],
input[type="date"],
input[type="datetime-local"],
input[type="time"],
textarea,
select {
    background-color: var(--bg-white);
    color: var(--text-primary);
    border-color: var(--border-color);
}


/* Sidebar Navigation */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 70px;
    height: 100vh;
    background: var(--bg-white);
    box-shadow: 1px 0 3px var(--shadow);
    transition: width 0.3s ease;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-right: 1px solid var(--border-color);
}

.sidebar.expanded {
    width: 240px;
}

/* Sidebar Logo */
.sidebar-header {
    padding: 12px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 52px;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-primary);
    gap: 10px;
    overflow: hidden;
}

.sidebar-logo-img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    flex-shrink: 0;
}

.sidebar-logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
    opacity: 0;
    width: 0;
    transition: opacity 0.3s ease, width 0.3s ease;
}

.sidebar.expanded .sidebar-logo-text {
    opacity: 1;
    width: auto;
}

.sidebar-toggle {
    padding: 22px;
    cursor: pointer;
    text-align: center;
    font-size: 20px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
    transition: all 0.2s;
}

.sidebar-toggle:hover {
    background: var(--bg-hover);
    color: var(--accent-primary);
}

.sidebar-nav {
    flex: 1;
    padding: 16px 0;
    display: flex;
    flex-direction: column;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-menu-item {
    margin-bottom: 4px;
}

.sidebar-menu-link {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    margin: 0 8px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s;
    white-space: nowrap;
    border-radius: 6px;
    font-weight: 500;
    font-size: 14px;
}

.sidebar-menu-link:hover {
    background: var(--bg-hover);
    color: var(--accent-primary);
}

.sidebar-menu-link.active {
    background: var(--accent-primary);
    color: white;
    box-shadow: 0 2px 4px var(--shadow-md);
}

.sidebar-menu-icon {
    font-size: 20px;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}

.sidebar-menu-text {
    margin-left: 12px;
    opacity: 0;
    transition: opacity 0.3s;
    font-weight: 500;
}

.sidebar.expanded .sidebar-menu-text {
    opacity: 1;
}

.sidebar-settings {
    margin-top: auto;
    border-top: 1px solid var(--border-color);
    padding: 10px 0;
}

.dark-mode-toggle {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    margin: 0 8px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    border-radius: 6px;
    font-weight: 500;
    font-size: 14px;
}

.dark-mode-toggle:hover {
    background: var(--bg-hover);
    color: var(--accent-primary);
}

body.has-sidebar {
    padding-left: 90px;
}

body.has-sidebar.sidebar-expanded {
    padding-left: 270px;
}

.container {
    max-width: 1600px;
    margin: 0 auto;
}

header {
    background: var(--bg-white);
    padding: 32px 40px;
    border-radius: 8px;
    box-shadow: 0 1px 3px var(--shadow);
    margin-bottom: 24px;
    text-align: center;
    border: 1px solid var(--border-color);
}

header h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.subtitle {
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 400;
}

.header-nav {
    text-align: left;
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
    align-items: center;
}

.back-btn,
.settings-btn {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: var(--bg-white);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    transition: all 0.2s;
    font-weight: 500;
    font-size: 14px;
}

.back-btn:hover,
.settings-btn:hover {
    background: var(--bg-hover);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    box-shadow: 0 2px 4px var(--shadow);
}

/* Table Layout */
/* -------------------- Table Component -------------------- */
.table-container {
    background: var(--bg-white);
    border-radius: 8px;
    padding: 0;
    box-shadow: 0 1px 3px var(--shadow);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

/* Unified Table Base */
.table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px var(--shadow);
    border: 1px solid var(--border-color);
}

.table thead {
    background: var(--bg-light);
    color: var(--text-primary);
    border-bottom: 2px solid var(--border-color);
}

.table th {
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    white-space: nowrap;
    position: relative;
}

.table td {
    padding: 14px 16px;
    vertical-align: middle;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-primary);
}

.table tbody tr {
    transition: background 0.15s;
}

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

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

/* Table Variants */
.table-compact th,
.table-compact td { 
    padding: 10px 12px; 
}

.table-striped tbody tr:nth-child(even) { 
    background: var(--bg-hover); 
}

/* Legacy Table Aliases (for backward compatibility) */
.orders-table,
.connectors-table,
.positions-table,
.schedule-table,
.orders-table-mini {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px var(--shadow);
    border: 1px solid var(--border-color);
}

.orders-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.orders-table thead {
    background: var(--bg-light);
    color: var(--text-primary);
    border-bottom: 2px solid var(--border-color);
}

.orders-table th {
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    white-space: nowrap;
    position: relative;
}

.orders-table th.sortable {
    cursor: pointer;
    user-select: none;
    transition: background-color 0.15s;
}

.orders-table th.sortable:hover {
    background: var(--bg-hover);
}

.sort-icon {
    font-size: 0.8em;
    margin-left: 5px;
    opacity: 0.6;
}

.orders-table th.sort-asc .sort-icon::before {
    content: '↑';
    opacity: 1;
}

.orders-table th.sort-desc .sort-icon::before {
    content: '↓';
    opacity: 1;
}

.orders-table th.sort-asc .sort-icon,
.orders-table th.sort-desc .sort-icon {
    opacity: 1;
    font-weight: bold;
}

.orders-table tbody tr {
    transition: background 0.15s;
}

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

.orders-table td {
    padding: 14px 16px;
    vertical-align: middle;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-primary);
}

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

/* Column widths */
.orders-table th:nth-child(2),
.orders-table td:nth-child(2) {
    width: 150px;
    min-width: 150px;
}

.orders-table th:nth-child(7),
.orders-table td:nth-child(7) {
    width: 120px;
    min-width: 120px;
}

.orders-table th:nth-child(8),
.orders-table td:nth-child(8) {
    width: 200px;
    min-width: 200px;
    white-space: nowrap;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    background: var(--accent-light);
    color: var(--accent-primary);
    border: 1px solid var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* Paid status - Amber to indicate action needed */
.status-badge.status-paid {
    background: var(--warning-bg);
    color: var(--warning-text);
    border-color: var(--warning-border);
}

/* Shipped status - Green */
.status-badge.status-shipped {
    background: var(--success-bg);
    color: var(--success-text);
    border-color: var(--success-border);
}

/* Ordered/Confirmed - Blue */
.status-badge.status-ordered,
.status-badge.status-confirmed {
    background: var(--info-bg);
    color: var(--info-text);
    border-color: var(--info-border);
}

/* Cancelled/Deleted - Red */
.status-badge.status-cancelled,
.status-badge.status-deleted {
    background: var(--danger-bg);
    color: var(--danger-text);
    border-color: var(--danger-border);
}

/* Closed/Archived - Gray */
.status-badge.status-closed,
.status-badge.status-archived {
    background: var(--neutral-bg);
    color: var(--neutral-text);
    border-color: var(--neutral-border);
}

.email-cell {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.total-cell {
    font-weight: 600;
    color: var(--accent-primary);
}

/* view-btn-small moved to components.css */

/* ================================================
   UNIFIED COMPONENT SYSTEM - Priority 1
   ================================================ */

/* -------------------- Card Component -------------------- */
.card {
    background: var(--bg-white);
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 1px 3px var(--shadow);
    border: 1px solid var(--border-color);
}

/* Card Variants */
.card-compact { padding: 16px; }
.card-spacious { padding: 32px; }
.card-highlight { border-left: 4px solid var(--accent-primary); }

/* Card Header */
.card h2,
.card h3 {
    color: var(--text-primary);
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.card h4 {
    color: var(--text-secondary);
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Legacy Card Aliases (for backward compatibility) */
.details-section,
.position-card,
.column-card,
.import-card,
.settings-section,
.auth-card,
.details-card {
    background: var(--bg-white);
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 1px 3px var(--shadow);
    border: 1px solid var(--border-color);
}

.import-card {
    border-left: 4px solid var(--accent-primary);
}

/* Stat Card (Dashboard Statistics) */
.stat-card {
    background: var(--bg-white);
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 1px 3px var(--shadow);
    border: 1px solid var(--border-color);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.stat-card.stat-primary { border-left: 4px solid var(--accent-primary); }
.stat-card.stat-success { border-left: 4px solid var(--success); }
.stat-card.stat-warning { border-left: 4px solid var(--warning); }
.stat-card.stat-danger { border-left: 4px solid var(--danger); }
.stat-card.stat-info { border-left: 4px solid var(--accent-primary); }

.stat-number {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-label {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Order Details Page */

.details-section {
    background: var(--bg-white);
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 1px 3px var(--shadow);
    border: 1px solid var(--border-color);
}

.details-section h2 {
    color: var(--text-primary);
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.details-section h4 {
    color: var(--text-secondary);
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

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

.detail-label {
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

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

/* -------------------- Badge Component -------------------- */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid;
}

/* Contextual Badge Variants */
.badge-primary { 
    background: var(--accent-light); 
    color: var(--accent-primary); 
    border-color: var(--accent-primary); 
}

.badge-success { 
    background: var(--success-bg); 
    color: var(--success-text); 
    border-color: var(--success-border); 
}

.badge-warning { 
    background: var(--warning-bg); 
    color: var(--warning-text); 
    border-color: var(--warning-border); 
}

.badge-danger { 
    background: var(--danger-bg); 
    color: var(--danger-text); 
    border-color: var(--danger-border); 
}

.badge-info { 
    background: var(--info-bg); 
    color: var(--info-text); 
    border-color: var(--info-border); 
}

.badge-neutral { 
    background: var(--neutral-bg); 
    color: var(--neutral-text); 
    border-color: var(--neutral-border); 
}

/* Size Variants */
.badge-sm { padding: 2px 6px; font-size: 11px; }
.badge-lg { padding: 6px 14px; font-size: 13px; }

/* Attribute Badge - Unified Template */
.attribute-badge {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    background: var(--bg-light);
    padding: 4px 8px;
    border-radius: 4px;
    margin: 2px 0;
    font-size: 13px;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    width: 100%;
    max-width: 250px;
    gap: 8px;
}

.attribute-badge .attribute-name {
    font-weight: 400;
    color: var(--accent-primary);
    font-size: 13px;
    flex-shrink: 0;
    min-width: 80px;
}

.attribute-badge .attribute-name + * {
    font-weight: 700;
    text-align: right;
    flex: 1;
    word-break: break-word;
}

/* Attribute List Container */
.attribute-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: 4px 0;
}

/* Legacy Status Badge Aliases (for backward compatibility) */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    background: var(--accent-light);
    color: var(--accent-primary);
    border: 1px solid var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.attribute-badge,
.priority-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

/* Position Cards */
.position-card {
    background: var(--bg-white);
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 16px;
    border: 1px solid var(--border-color);
    box-shadow: 0 1px 3px var(--shadow);
}

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

.position-header h3 {
    color: var(--accent-primary);
    font-size: 18px;
    font-weight: 700;
}

.position-actions {
    display: flex;
    gap: 0.5rem;
}

/* btn-sm, btn-reserve, btn-outline moved to components.css */

.product-link {
    color: var(--accent-primary);
    text-decoration: none;
}

.product-link:hover {
    text-decoration: underline;
}

.position-main {
    margin-bottom: 20px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.product-image {
    flex-shrink: 0;
}

.product-image img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.product-info {
    flex: 1;
    margin-bottom: 15px;
}

.product-details-list {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.product-detail-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.detail-name {
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 600;
    min-width: 120px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.detail-val {
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 600;
}

.product-title {
    font-size: 1.3em;
    font-weight: bold;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.product-meta {
    display: flex;
    gap: 20px;
    color: var(--text-secondary);
    font-size: 0.95em;
}

.position-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

/* Attributes */
.attributes-section {
    background: var(--bg-white);
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
}

.attributes-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    list-style: none;
    padding: 0;
    margin: 5px 0;
}

/* Compact list view for tables */
.attribute-list.compact {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.attribute-item {
    background: var(--bg-light);
    padding: 12px;
    border-radius: 6px;
    border-left: 3px solid var(--accent-primary);
    margin: 10px 0;
}

.attr-name,
.attribute-name {
    color: var(--text-muted);
    font-weight: 600;
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.attr-value,
.attribute-value {
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
}

/* Position Cards */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg-white);
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

.modal-content.modal-small {
    max-width: 450px;
}

.modal-footer {
    padding: 20px 25px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px;
    border-bottom: 2px solid var(--border-color);
}

.modal-header h2 {
    color: var(--text-primary);
    margin: 0;
    font-size: 1.5em;
}

.modal-close {
    background: none;
    border: none;
    font-size: 2em;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.3s ease;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: var(--accent-primary);
}

.modal-body {
    padding: 25px;
}

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

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

.form-group input[type="number"],
.form-group input[type="text"],
.form-group input[type="password"],
.form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1em;
    transition: border-color 0.3s ease;
    background-color: var(--bg-white);
    color: var(--text-primary);
}

.form-group input[type="number"]:focus,
.form-group input[type="text"]:focus,
.form-group input[type="password"]:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
    padding-right: 40px;
}

/* -------------------- Dropdown/Select Styling -------------------- */
select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
    padding-right: 40px;
    cursor: pointer;
}

/* Standard dropdown styling */
select {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background-color: var(--bg-white);
    color: var(--text-primary);
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s ease;
    cursor: pointer;
}

/* Dropdown hover state */
select:hover {
    border-color: var(--accent-primary);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* Dropdown focus state */
select:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Dropdown disabled state */
select:disabled {
    background-color: var(--bg-light);
    color: var(--text-muted);
    cursor: not-allowed;
    opacity: 0.6;
}

/* Dropdown option styling */
select option {
    padding: 10px;
    margin: 5px 0;
    background: var(--bg-white);
    color: var(--text-primary);
}

select option:checked {
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    color: white;
}

/* Dark mode dropdown styling */
body.dark-mode select {
    background-color: var(--bg-white);
    color: var(--text-primary);
    border-color: var(--border-color);
}

body.dark-mode select:focus {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.form-group input[type="checkbox"] {
    margin-right: 8px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: var(--text-secondary);
    font-size: 0.85em;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 25px;
}

/* .btn-primary and .btn-secondary are now in components.css */

.modal-status {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    min-height: 20px;
}

.modal-status .loading {
    color: var(--accent-primary);
    font-weight: 600;
    text-align: center;
}

.modal-status .success {
    background: var(--success-bg);
    color: var(--success-text);
    padding: 15px;
    border-radius: 8px;
    font-weight: 600;
}

.modal-status .error {
    background: var(--danger-bg);
    color: var(--danger-text);
    padding: 15px;
    border-radius: 8px;
    font-weight: 600;
}

/* Settings Page */
.settings-container {
    background: var(--bg-white);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.settings-section {
    margin-bottom: 24px;
    padding: 24px;
    background: var(--bg-white);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: 0 1px 3px var(--shadow);
}

.settings-section h2 {
    color: var(--text-primary);
    margin-bottom: 8px;
    font-size: 18px;
    font-weight: 700;
}

.section-description {
    color: var(--text-muted);
    margin-bottom: 20px;
    font-size: 14px;
}

.settings-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.settings-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

.settings-status {
    margin-top: 25px;
    text-align: center;
    min-height: 30px;
}

.settings-status .loading {
    color: var(--accent-primary);
    font-weight: 600;
}

.settings-status .success {
    background: var(--success-bg);
    color: var(--success-text);
    padding: 15px;
    border-radius: 8px;
    font-weight: 600;
}

.settings-status .error {
    background: var(--danger-bg);
    color: var(--danger-text);
    padding: 15px;
    border-radius: 8px;
    font-weight: 600;
}

/* ================================================
   UNIFIED COMPONENTS - Extracted from templates
   ================================================ */

/* -------------------- Badges -------------------- */
.required {
    color: var(--danger);
}

/* -------------------- Alerts -------------------- */
.alert {
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 500;
    animation: slideDown 0.3s ease;
}

.alert-success {
    background: var(--success-bg);
    color: var(--success-text);
    border: 1px solid var(--success-border);
}

.alert-error {
    background: var(--danger-bg);
    color: var(--danger-text);
    border: 1px solid var(--danger-border);
    border-left: 4px solid var(--danger);
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.alert-error::before {
    content: "⚠";
    font-size: 18px;
    line-height: 1.2;
    flex-shrink: 0;
}

.alert-info {
    background: var(--info-bg);
    color: var(--info-text);
    border: 1px solid var(--info-border);
}

.alert-loading {
    background: var(--bg-light);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.alert-warning {
    background: var(--warning-bg);
    color: var(--warning-text);
    border: 1px solid var(--warning-border);
}

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

/* Buttons are now defined in components.css - Design System */

/* -------------------- Tables -------------------- */
.connectors-table {
    background: var(--bg-white);
    border-collapse: collapse;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px var(--shadow);
    border: 1px solid var(--border-color);
}

.connectors-table th {
    background: var(--bg-light);
    color: var(--text-primary);
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 2px solid var(--border-color);
}

.connectors-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-primary);
}

.connectors-table tr:hover {
    background: var(--bg-light);
}

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

/* -------------------- Tabs -------------------- */
.tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 24px;
    border-bottom: 2px solid var(--border-color);
}

.tab-btn {
    padding: 12px 20px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
    margin-bottom: -2px;
}

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

.tab-btn.active {
    color: var(--accent-primary);
    border-bottom-color: var(--accent-primary);
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

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

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

/* -------------------- Info Grid -------------------- */
.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.info-item {
    padding: 12px 16px;
    background: var(--bg-light);
    border-radius: 6px;
    border-left: 3px solid var(--accent-primary);
}

.info-item.full-width {
    grid-column: 1 / -1;
}

.info-item strong {
    display: block;
    color: var(--text-muted);
    font-size: 11px;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.info-item span {
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
}

/* -------------------- Forms -------------------- */
.form-section {
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    margin-top: 20px;
}

.form-section h3 {
    color: var(--text-primary);
    font-size: 14px;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.form-row {
    display: flex;
    gap: 16px;
}

.form-row .form-group {
    flex: 1;
}

/* -------------------- Empty States -------------------- */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.empty-state p {
    margin-bottom: 20px;
    font-size: 16px;
}

.empty-state-icon {
    font-size: 4em;
    margin-bottom: 20px;
}

.empty-state-text {
    font-size: 1.2em;
}

/* -------------------- Page Headers -------------------- */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding: 24px;
    background: var(--bg-white);
    border-radius: 8px;
    box-shadow: 0 1px 3px var(--shadow);
    border: 1px solid var(--border-color);
}

.header h1 {
    font-size: 24px;
    color: var(--text-primary);
    font-weight: 700;
    margin: 0;
}

/* -------------------- Production / Manufacturing View -------------------- */
.expand-btn {
    cursor: pointer;
    background: var(--accent-primary);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s;
}

.expand-btn:hover {
    background: var(--accent-hover);
    box-shadow: 0 2px 4px var(--shadow);
}

.positions-row {
    display: table-row;
    background: var(--bg-light);
}

.positions-container {
    padding: 12px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.position-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    background: var(--bg-white);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.position-image-wrapper {
    flex-shrink: 0;
}

.position-no-image {
    width: 60px;
    height: 60px;
    background: var(--bg-hover);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75em;
    color: var(--text-muted);
}

.position-info {
    flex: 1;
    min-width: 0;
}

.position-sku {
    flex-shrink: 0;
    font-size: 0.85em;
    color: var(--text-muted);
    min-width: 120px;
}

.position-attributes {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    min-width: 150px;
    align-items: flex-start;
}

.position-qty {
    flex-shrink: 0;
    text-align: center;
    min-width: 70px;
}

.position-label {
    font-weight: 600;
    color: var(--accent-primary);
}

.positions-table {
    width: 100%;
    margin: 0;
    background: var(--bg-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px var(--shadow);
    border: 1px solid var(--border-color);
}

.positions-table th {
    background: var(--accent-primary);
    color: white;
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.positions-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-light);
}

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

.position-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

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

.position-link {
    display: inline-block;
    margin-top: 5px;
    color: var(--accent-primary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
}

.position-link:hover {
    text-decoration: underline;
}


    font-size: 16px;
    font-weight: 700;
    color: var(--accent-primary);
}

.order-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--accent-primary);
}

/* -------------------- Loading States -------------------- */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-spinner {
    background: var(--bg-white);
    padding: 40px 60px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

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

.spinner-small {
    width: 16px;
    height: 16px;
    border-width: 2px;
    margin: 0;
    display: inline-block;
    vertical-align: middle;
    margin-right: 8px;
}

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

.loading-text {
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 600;
}

/* -------------------- Backlog Page -------------------- */
.backlog-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 24px;
    align-items: stretch;
}

.stat-card {
    flex: 1;
    background: var(--bg-white);
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 1px 3px var(--shadow);
    border: 1px solid var(--border-color);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.stat-number {
    font-size: 2.5em;
    font-weight: 700;
    color: var(--accent-primary);
}

.stat-label {
    color: var(--text-muted);
    margin-top: 8px;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.backlog-table {
    background: var(--bg-white);
    border-radius: 8px;
    box-shadow: 0 1px 3px var(--shadow);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.order-link {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 600;
}

.order-link:hover {
    text-decoration: underline;
}

.fulfill-btn {
    background: var(--success);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}

.fulfill-btn:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.timestamp {
    font-size: 13px;
    color: var(--text-muted);
}

.backlog-product-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 0 1px 3px var(--shadow);
    cursor: pointer;
    transition: transform 0.2s;
    border: 1px solid var(--border-color);
}

.backlog-product-image:hover {
    transform: scale(1.05);
}

/* -------------------- Import Page -------------------- */
.import-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 24px;
    padding: 20px 0;
}

.import-card {
    background: var(--bg-white);
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 1px 3px var(--shadow);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--accent-primary);
}

.connector-selection-card {
    background: var(--bg-white);
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px var(--shadow);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--success-color);
}

.connector-selection-card h3 {
    color: var(--text-primary);
    margin-bottom: 8px;
    font-size: 18px;
    font-weight: 700;
}

.connector-selection-card p {
    color: var(--text-muted);
    margin-bottom: 16px;
    font-size: 14px;
}

.connector-selection-card .form-group {
    margin-bottom: 0;
}

.connector-selection-card select {
    max-width: 400px;
}

.import-card h3 {
    color: var(--text-primary);
    margin-bottom: 8px;
    font-size: 18px;
    font-weight: 700;
}

.import-card p {
    color: var(--text-muted);
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.6;
}

.import-stats {
    background: var(--bg-light);
    padding: 12px 16px;
    border-radius: 6px;
    margin-top: 16px;
    font-size: 14px;
    color: var(--text-secondary);
}

.import-stats strong {
    color: var(--text-primary);
}

.info-text {
    background: var(--accent-light);
    border-left: 4px solid var(--accent-primary);
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 16px;
    font-size: 14px;
    color: var(--accent-secondary);
}

.date-note {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 6px;
    font-style: italic;
}

/* -------------------- Fulfill Page -------------------- */
.fulfill-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 20px;
}

.fulfill-three-columns {
    display: grid;
    grid-template-columns: 280px 1fr 280px;
    gap: 24px;
    align-items: stretch;
}

.fulfill-column {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.fulfill-column-middle {
    min-height: 500px;
    display: flex;
    flex-direction: column;
}

.fulfill-column-middle .position-display {
    flex: 1;
}

.fulfill-column-left,
.fulfill-column-right {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.fulfill-column-left .column-card:last-child,
.fulfill-column-right .column-card:last-child {
    flex: 1;
}

.column-card {
    background: var(--bg-white);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 1px 3px var(--shadow);
    border: 1px solid var(--border-color);
}

.column-card h3 {
    margin: 0 0 16px 0;
    color: var(--accent-primary);
    font-size: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.column-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

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

.info-label {
    font-weight: 600;
    color: var(--text-muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
}

a.info-value.customer-name-link {
    color: var(--accent-primary);
    text-decoration: none;
    cursor: pointer;
}

a.info-value.customer-name-link:hover {
    text-decoration: underline;
}

/* Legacy header styles (keep for compatibility) */
.fulfill-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
    padding: 24px;
    background: var(--bg-white);
    border-radius: 8px;
    box-shadow: 0 1px 3px var(--shadow);
    border: 1px solid var(--border-color);
}

.header-section h3 {
    margin: 0 0 16px 0;
    color: var(--accent-primary);
    font-size: 16px;
    font-weight: 700;
}

.header-info {
    display: grid;
    gap: 8px;
}

.header-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
}

.header-label {
    font-weight: 600;
    color: var(--text-muted);
    font-size: 13px;
}

.header-value {
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
}

.country-highlight {
    font-size: 1.5em;
    font-weight: 700;
    color: var(--accent-primary);
}

.position-display {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 2px 8px var(--shadow-md);
    border: 1px solid var(--border-color);
    text-align: center;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    overflow: hidden;
}

.position-number {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 20px;
    font-weight: 500;
}

.position-nav-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    width: 100%;
    margin-bottom: 10px;
}

.position-nav-row .position-number {
    margin-bottom: 0;
}

.image-and-attributes {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    justify-content: center;
    max-width: 100%;
    margin: 20px 0;
    overflow: hidden;
}

.image-and-attributes .position-image {
    flex-shrink: 0;
    width: 250px;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    border-radius: 8px;
    border: 2px solid var(--border-color);
    overflow: hidden;
}

.image-and-attributes .position-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    cursor: pointer;
}

.position-title {
    font-size: 1.5em;
    font-weight: 700;
    color: var(--text-primary);
    margin: 20px 0;
}

.title-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 20px;
    margin: 20px 0;
}

.nav-button {
    background: var(--accent-primary);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.nav-button:hover:not(:disabled) {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.nav-button:disabled {
    background: var(--text-muted);
    cursor: not-allowed;
    transform: none;
}

.position-details {
    font-size: 1.5em;
    color: var(--text-muted);
    margin: 10px 0;
}

.position-quantity {
    font-size: 2.5em;
    font-weight: 700;
    color: var(--accent-primary);
    margin: 20px 0;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--border-color);
    border-radius: 4px;
    margin: 20px 0;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    transition: width 0.3s ease;
}

.instruction {
    font-size: 1.5em;
    color: var(--accent-primary);
    margin-top: 30px;
    animation: pulse 2s infinite;
    font-weight: 600;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Responsive 3-column layout */
@media (max-width: 1200px) {
    .fulfill-three-columns {
        grid-template-columns: 240px 1fr 240px;
        gap: 16px;
    }
}

@media (max-width: 992px) {
    .fulfill-three-columns {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .fulfill-column-left,
    .fulfill-column-right {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
    
    .fulfill-column-middle {
        order: -1;
    }
}

@media (max-width: 576px) {
    .fulfill-column-left,
    .fulfill-column-right {
        grid-template-columns: 1fr;
    }
}

.processing-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.processing-message {
    background: var(--bg-white);
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    font-size: 1.5em;
    color: var(--text-primary);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.order-counter {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-white);
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: 0 2px 8px var(--shadow-md);
    border: 1px solid var(--border-color);
    z-index: 1000;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    min-width: 150px;
    display: flex;
    align-items: center;
    gap: 16px;
}

/* -------------------- Image Modals -------------------- */
.image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.image-modal.active {
    display: flex;
}

.modal-image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
}

.image-clickable {
    cursor: pointer;
    transition: transform 0.2s;
}

.image-clickable:hover {
    transform: scale(1.02);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    background: none;
    border: none;
    padding: 0;
    width: auto;
    height: auto;
}

.modal-close:hover {
    color: var(--accent-primary);
}

/* -------------------- PDF Modal -------------------- */
.pdf-modal {
    position: fixed;
    z-index: 10001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
}

.pdf-modal-content {
    background: var(--bg-white);
    width: 90%;
    height: 90%;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.pdf-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    background: var(--accent-primary);
}

.pdf-modal-header h3 {
    margin: 0;
    color: white;
    font-size: 18px;
    font-weight: 700;
}

.pdf-modal-actions {
    display: flex;
    gap: 12px;
}

.pdf-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.pdf-btn-print {
    background: var(--success);
    color: white;
}

.pdf-btn-print:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.pdf-btn-close {
    background: white;
    color: var(--accent-primary);
    border: 2px solid white;
}

.pdf-btn-close:hover {
    background: var(--bg-light);
    transform: translateY(-2px);
}

.pdf-frame {
    flex: 1;
    border: none;
    width: 100%;
    background: white;
}

/* -------------------- Missing Material Button -------------------- */
.missing-material-btn {
    background: var(--danger);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin: 16px auto;
    display: block;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.missing-material-btn:hover {
    background: #dc2626;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(239, 68, 68, 0.4);
}

.missing-material-btn.active {
    background: var(--success);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.missing-material-btn.active:hover {
    background: #059669;
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
}

/* -------------------- Bulk Actions Bar -------------------- */
.bulk-actions-bar {
    background: var(--bg-white);
    padding: 16px 24px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px var(--shadow);
    border: 2px solid var(--accent-primary);
    display: none;
}

.bulk-actions-bar.active {
    display: flex;
    align-items: center;
}

.bulk-actions-inner {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: nowrap;
    width: 100%;
}

.bulk-actions-bar .selected-count {
    color: var(--text-primary);
    font-weight: 600;
    white-space: nowrap;
    min-width: auto;
}

.bulk-status-select {
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background: var(--bg-white);
    color: var(--text-primary);
    font-size: 13px;
    cursor: pointer;
    min-width: 140px;
}

.bulk-actions-bar .btn {
    margin: 0;
    padding: 8px 16px;
    font-size: 14px;
    white-space: nowrap;
}

/* Responsive: Stack on mobile if needed */
@media (max-width: 992px) {
    .bulk-actions-inner {
        gap: 12px;
    }
    
    .bulk-status-select {
        min-width: 150px;
    }
}

@media (max-width: 768px) {
    .bulk-actions-inner {
        gap: 8px;
        flex-wrap: wrap;
    }
    
    .bulk-actions-bar .selected-count {
        width: 100%;
        margin-bottom: 8px;
        order: -1;
    }
}

/* -------------------- Filter Bar -------------------- */
.filter-bar {
    background: var(--bg-white);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 15px var(--shadow-md);
    margin-bottom: 25px;
}

.filter-bar-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.search-box-wrapper {
    flex: 1;
    min-width: 300px;
}

.search-input {
    width: 100%;
    padding: 10px 16px;
    font-size: 1em;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    outline: none;
    transition: all 0.3s;
    background: var(--bg-white);
    color: var(--text-primary);
}

.search-input:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.filters-group {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-label {
    color: var(--accent-primary);
    font-weight: 600;
    font-size: 0.9em;
    white-space: nowrap;
}

.filter-select {
    padding: 8px 12px;
    border-radius: 8px;
    border: 2px solid var(--border-color);
    font-size: 0.95em;
    cursor: pointer;
    outline: none;
    transition: border-color 0.3s;
    background: var(--bg-white);
    color: var(--text-primary);
}

.filter-select:focus {
    border-color: var(--accent-primary);
}

.filter-bar .filters-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.filter-bar .search-wrapper {
    flex: 1;
    min-width: 300px;
}

.filter-bar .filters-group {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.filter-bar .filter-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-bar label {
    color: var(--accent-primary);
    font-weight: 600;
    font-size: 13px;
    white-space: nowrap;
}

.filter-bar select,
.filter-bar input[type="text"] {
    padding: 10px 14px;
    border-radius: 6px;
    border: 2px solid var(--border-color);
    font-size: 14px;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: var(--bg-white);
    color: var(--text-primary);
}

.filter-bar select:focus,
.filter-bar input[type="text"]:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.order-counter-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.order-counter-badge .counter-number {
    font-size: 1.1em;
    font-weight: bold;
    color: white;
}

.order-counter-badge .counter-label {
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.9);
}

.order-counter-badge .count {
    font-size: 16px;
    font-weight: 700;
    color: white;
}

.order-counter-badge .label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
}

/* -------------------- Responsive Adjustments -------------------- */
@media (max-width: 768px) {
    .fulfill-header {
        grid-template-columns: 1fr;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .import-container {
        grid-template-columns: 1fr;
    }
    
    .backlog-stats {
        flex-direction: column;
    }
    
    .filter-bar .filters-wrapper {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-bar .search-wrapper {
        min-width: 100%;
    }
    
    .filter-bar .filters-group {
        justify-content: space-between;
    }
}

/* -------------------- Order Details Page -------------------- */
.order-details-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.header-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.save-cancel-buttons {
    display: none;
    gap: 10px;
}

.hidden {
    display: none !important;
}

.status-select {
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background: var(--bg-white);
    color: var(--text-primary);
    font-size: 14px;
    cursor: pointer;
}

/* Shipping Section */
.shipment-section {
    margin-bottom: 20px;
}

.shipment-title {
    font-size: 1.1em;
    color: var(--success-text);
    margin-bottom: 12px;
}

.shipment-card {
    background: var(--success-bg);
    border: 2px solid var(--success);
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
}

.shipment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-bottom: 12px;
}

.shipment-info-label {
    font-size: 0.85em;
    color: var(--success-text);
    font-weight: 600;
    margin-bottom: 4px;
    opacity: 0.8;
}

.shipment-info-value {
    font-size: 1em;
    font-weight: 600;
    color: var(--success-text);
}

.shipment-info-sub {
    font-size: 0.9em;
    color: var(--success-text);
    opacity: 0.8;
}

.tracking-section {
    border-top: 1px solid var(--success);
    padding-top: 12px;
    margin-top: 10px;
}

.tracking-title {
    font-size: 0.85em;
    color: var(--success-text);
    font-weight: 600;
    margin-bottom: 8px;
    opacity: 0.8;
}

.tracking-item {
    background: var(--bg-white);
    padding: 10px 12px;
    border-radius: 6px;
    margin-bottom: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    border-left: 3px solid var(--accent-primary);
}

.tracking-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.tracking-info {
    flex: 1;
}

.tracking-id-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.tracking-id {
    font-family: monospace;
    font-size: 1em;
    font-weight: 600;
    color: var(--text-primary);
}

.tracking-date-badge {
    font-size: 0.75em;
    color: var(--text-muted);
    background: var(--bg-hover);
    padding: 2px 6px;
    border-radius: 3px;
}

.tracking-shipper {
    font-size: 0.8em;
    color: var(--text-muted);
}

.tracking-actions {
    display: flex;
    gap: 6px;
}

.btn-copy {
    background: var(--neutral-border);
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    border: none;
    font-size: 0.85em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-copy:hover {
    background: var(--text-muted);
}

.btn-track {
    background: var(--accent-primary);
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.85em;
    font-weight: 600;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-track:hover {
    background: var(--accent-hover);
}

.shipping-warning {
    margin-bottom: 20px;
    padding: 12px;
    background: var(--warning-bg);
    border-left: 4px solid var(--warning);
    border-radius: 6px;
    color: var(--warning-text);
    font-style: italic;
}

.create-label-title {
    font-size: 1.1em;
    color: var(--accent-primary);
    margin-bottom: 12px;
}

/* Missing Indicator */
.missing-indicator {
    display: none;
    background: var(--danger);
    color: white;
    padding: 4px 12px;
    border-radius: 5px;
    font-size: 0.9em;
    font-weight: 600;
}

/* Manufacturing View Styles */
.expand-btn {
    cursor: pointer;
    background: var(--accent-primary);
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.9em;
    transition: background 0.3s;
}

.expand-btn:hover {
    background: var(--accent-hover);
}

.positions-row {
    display: table-row;
    background: var(--bg-light);
}

.positions-container {
    padding: 20px;
}

.positions-table {
    width: 100%;
    margin: 0;
    background: var(--bg-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px var(--shadow);
}

.positions-table th {
    background: var(--accent-primary);
    color: white;
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    font-size: 0.9em;
}

.positions-table td {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
}

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

.position-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    border: 2px solid var(--border-color);
}

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

.position-link {
    display: inline-block;
    margin-top: 5px;
    color: var(--accent-primary);
    text-decoration: none;
    font-size: 0.85em;
}

.position-link:hover {
    text-decoration: underline;
}

.quantity-badge {
    font-size: 1.1em;
    font-weight: 700;
    color: var(--accent-primary);
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-spinner {
    background: var(--bg-white);
    padding: 40px 60px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

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

/* -------------------- Detail Pages Action Buttons -------------------- */
.action-buttons {
    display: flex;
    gap: 12px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.action-buttons .btn {
    padding: 6px 14px;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    box-shadow: 0 1px 3px var(--shadow);
    white-space: nowrap;
}

.action-buttons .btn:hover {
    box-shadow: 0 4px 8px var(--shadow-md);
}

/* Button variants now in components.css */

/* =====================================================
   PAGE-SPECIFIC STYLES
   ===================================================== */

/* ===========================================
   ABOUT PAGE STYLES
   =========================================== */
.about-container {
    background: var(--bg-white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 15px var(--shadow-md);
    margin-bottom: 25px;
}

.about-section {
    margin-bottom: 40px;
}

.about-section h2 {
    color: var(--accent-primary);
    margin-bottom: 16px;
    font-size: 24px;
    font-weight: 700;
}

.about-section p {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 15px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.feature-card {
    background: var(--bg-light);
    padding: 20px;
    border-radius: 10px;
    border-left: 3px solid var(--accent-primary);
}

.feature-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.feature-card-header span.feature-icon {
    font-size: 28px;
}

.feature-card-header h3 {
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.feature-card ul {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 14px;
    padding-left: 20px;
    margin: 0;
}

.tech-stack-grid {
    background: var(--bg-light);
    padding: 24px;
    border-radius: 10px;
}

.tech-stack-inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.tech-stack-inner h4 {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 15px;
}

.tech-stack-inner p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.8;
    margin: 0;
}

.pages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.page-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.page-item span.page-icon {
    font-size: 20px;
}

.page-item span.page-name {
    color: var(--text-primary);
    font-weight: 500;
}

.about-footer {
    border-top: 1px solid var(--border-color);
    padding-top: 24px;
    margin-top: 24px;
}

.about-footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.about-footer p {
    color: var(--text-muted);
    font-size: 14px;
    margin: 0;
}

.about-footer p + p {
    margin-top: 4px;
}

.about-footer strong {
    color: var(--text-primary);
}

.status-operational {
    background: var(--success);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

/* ===========================================
   CUSTOMERS PAGE STYLES
   =========================================== */
.customers-toolbar {
    background: var(--bg-white);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 15px var(--shadow-md);
    margin-bottom: 25px;
}

.customers-toolbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.customers-search-wrapper {
    flex: 1;
    min-width: 300px;
}

.customers-search-input {
    width: 100%;
    padding: 10px 16px;
    font-size: 1em;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    outline: none;
    transition: all 0.3s;
    background: var(--bg-white);
    color: var(--text-primary);
}

.customers-search-input:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.customers-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Modal edit mode styles */
.modal-input {
    width: 100%;
    padding: 8px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    display: none;
    background: var(--bg-light);
    color: var(--text-primary);
    font-size: 14px;
}

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

.modal-input.visible {
    display: block !important;
}

.modal-span.hidden {
    display: none !important;
}

/* Edit field visibility */
.edit-field.visible {
    display: block !important;
}

/* ===========================================
   PRODUCTION PAGE STYLES
   =========================================== */
.production-toolbar {
    background: var(--bg-white);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 15px var(--shadow-md);
    margin-bottom: 25px;
}

.production-toolbar-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.production-search-wrapper {
    flex: 1;
    min-width: 300px;
}

.production-search-input {
    width: 100%;
    padding: 10px 16px;
    font-size: 1em;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    outline: none;
    transition: all 0.3s;
    background: var(--bg-white);
    color: var(--text-primary);
}

.production-search-input:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.production-filters {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.production-filter-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.production-filter-item label {
    color: var(--accent-primary);
    font-weight: 600;
    font-size: 0.9em;
    white-space: nowrap;
}

.production-filter-item select {
    padding: 8px 12px;
    border-radius: 8px;
    border: 2px solid var(--border-color);
    font-size: 0.95em;
    cursor: pointer;
    background: var(--bg-white);
    color: var(--text-primary);
}

.production-bulk-bar {
    display: none;
    background: var(--bg-white);
    padding: 16px 24px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px var(--shadow-md);
    border: 2px solid var(--accent-primary);
}

.production-bulk-bar.active {
    display: block;
}

.production-bulk-inner {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.production-bulk-inner span {
    color: var(--text-primary);
    font-weight: 600;
}

.production-bulk-inner select {
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background: var(--bg-white);
    color: var(--text-primary);
    font-size: 14px;
}

/* Sortable columns for production */
.sortable {
    cursor: pointer;
    user-select: none;
    position: relative;
}

.sortable:hover {
    background-color: var(--bg-light);
}

/* ===========================================
   ORDER DETAILS PAGE STYLES
   =========================================== */
.order-details-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.header-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.save-cancel-buttons {
    display: none;
    gap: 10px;
}

body.order-edit-mode .save-cancel-buttons {
    display: flex !important;
}

body.order-edit-mode .btn-edit {
    display: none !important;
}

.details-section {
    background: var(--bg-white);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px var(--shadow-md);
    border: 1px solid var(--border-color);
}

.details-section h2 {
    margin-top: 0;
    color: var(--accent-primary);
    font-size: 18px;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.detail-item {
    display: flex;
    flex-direction: column;
}

.detail-label {
    color: var(--text-muted);
    font-size: 12px;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.detail-value {
    color: var(--text-primary);
    font-size: 15px;
}

.status-select {
    padding: 8px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: var(--bg-white);
}

.position-card {
    background: var(--bg-secondary);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    border-left: 4px solid var(--accent-primary);
}

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

.position-header h3 {
    margin: 0;
    font-size: 16px;
}

.missing-indicator {
    color: var(--warning);
    font-size: 14px;
    display: none;
}

.position-main {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.product-image {
    flex-shrink: 0;
}

.product-image img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 6px;
}

.product-info {
    flex: 1;
    min-width: 200px;
}

.product-title {
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.product-details-list {
    font-size: 14px;
}

.product-detail-row {
    display: flex;
    margin-bottom: 4px;
}

.detail-name {
    color: var(--text-muted);
    width: 100px;
    flex-shrink: 0;
}

.detail-val {
    color: var(--text-primary);
}

.shipment-card {
    background: var(--bg-secondary);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

.shipment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.shipment-info-label {
    color: var(--text-muted);
    font-size: 12px;
    margin-bottom: 4px;
}

.shipment-info-value {
    font-weight: 600;
    font-size: 16px;
}

.shipment-info-sub {
    font-size: 12px;
    color: var(--text-muted);
}

.tracking-section {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.tracking-title {
    font-weight: 600;
    margin-bottom: 10px;
}

.tracking-item {
    background: var(--bg-primary);
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 8px;
}

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

.tracking-id {
    font-family: monospace;
    font-size: 14px;
}

.tracking-date-badge {
    font-size: 12px;
    color: var(--text-muted);
    margin-left: 10px;
}

.tracking-shipper {
    font-size: 13px;
    color: var(--text-muted);
}

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

/* .btn-copy and .btn-track consolidated in components.css */

.shipping-warning {
    background: var(--warning-bg, #fff3cd);
    color: var(--warning-text, #856404);
    padding: 15px;
    border-radius: 8px;
}

.shipping-label-container {
    margin-top: 15px;
}

.print-label-btn {
    background: var(--accent-primary);
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
}

.print-label-btn:hover {
    opacity: 0.9;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h2 {
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-secondary);
}

.modal-body {
    padding: 20px;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.modal-status {
    margin-top: 15px;
}

.modal-status .loading {
    color: var(--accent-primary);
}

.modal-status .success {
    color: var(--success);
}

.modal-status .error {
    color: var(--danger);
}

.loading-spinner {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
}

.error-message {
    background: var(--danger-bg);
    color: var(--danger-text);
    padding: 20px;
    border-radius: 8px;
    text-align: left;
    border: 1px solid var(--danger-border);
    border-left: 4px solid var(--danger);
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.error-message::before {
    content: "⚠";
    font-size: 20px;
    line-height: 1.2;
    flex-shrink: 0;
}

/* ===========================================
   PRODUCTS PAGE STYLES
   =========================================== */
.products-badge {
    display: inline-block;
    padding: 4px 8px;
    background: var(--accent-primary);
    color: white;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 500;
}

/* Bulk Edit Styles */
.bulk-edit-bar {
    display: none;
    background: var(--accent-primary);
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.bulk-edit-bar.active {
    display: flex;
}

.bulk-edit-bar .selected-count {
    font-weight: 600;
}

.bulk-edit-bar .bulk-actions {
    display: flex;
    gap: 10px;
}

.bulk-edit-bar button {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
}

.bulk-edit-bar .edit-selected-btn {
    background: white;
    color: var(--accent-primary);
}

.bulk-edit-bar .clear-selection-btn {
    background: rgba(255,255,255,0.2);
    color: white;
}

/* Products table specifics */
#productsTable {
    width: 100%;
    border-collapse: collapse;
}

#productsTable th:nth-child(1) {
    width: 120px;
}

#productsTable th:nth-child(2) {
    flex: 1;
}

#productsTable th:nth-child(3),
#productsTable th:nth-child(4) {
    width: 100px;
}

#productsTable td:nth-child(1) {
    width: 120px;
    flex-shrink: 0;
}

#productsTable td:nth-child(2) {
    word-break: break-word;
}

#productsTable td:nth-child(3),
#productsTable td:nth-child(4) {
    width: 100px;
    flex-shrink: 0;
}

/* ===========================================
   CUSTOMER DETAILS PAGE STYLES
   =========================================== */
.customer-header {
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    color: white;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 4px 6px var(--shadow-lg);
}

.customer-header h1 {
    margin: 0 0 10px 0;
    font-size: 28px;
}

.customer-header p {
    margin: 0;
    opacity: 0.9;
    font-size: 16px;
}

.details-card {
    background: var(--bg-white);
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 4px var(--shadow-md);
    border: 1px solid var(--border-color);
}

.details-card h2 {
    margin: 0 0 20px 0;
    color: var(--text-primary);
    font-size: 18px;
    border-bottom: 2px solid var(--accent-primary);
    padding-bottom: 10px;
}

.info-item {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
}

.info-item strong {
    color: var(--text-muted);
    font-size: 12px;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.info-item span {
    color: var(--text-primary);
    font-size: 15px;
}

.badge-source {
    background: var(--accent-light);
    color: var(--accent-primary);
}

.empty-value {
    color: var(--text-muted);
    font-style: italic;
}

.full-width {
    grid-column: 1 / -1;
}

.orders-section {
    background: var(--bg-white);
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 4px var(--shadow-md);
    border: 1px solid var(--border-color);
}

.orders-section h2 {
    margin: 0 0 20px 0;
    color: var(--text-primary);
    font-size: 18px;
    border-bottom: 2px solid var(--accent-primary);
    padding-bottom: 10px;
}

.orders-section p {
    color: var(--text-muted);
}

#customer-content.edit-mode .info-item span {
    display: none !important;
}

#customer-content.edit-mode .info-item input,
#customer-content.edit-mode .info-item textarea {
    display: block !important;
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: var(--bg-light);
    color: var(--text-primary);
    font-size: 15px;
    transition: border-color 0.2s;
}

#customer-content.edit-mode .info-item input:focus,
#customer-content.edit-mode .info-item textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

#customer-content.edit-mode .details-card {
    border-left: 3px solid var(--accent-primary);
}

.info-item input,
.info-item textarea {
    display: none;
}

body.customer-edit-active .save-cancel-buttons {
    display: flex !important;
}

body.customer-edit-active .btn-edit {
    display: none !important;
}

.btn-save {
    background: var(--success);
    color: white;
}

/* Loading state */
.loading-spinner::after {
    content: '';
    width: 40px;
    height: 40px;
    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); }
}

.error-state {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
}

.error-state h2 {
    color: var(--danger);
}

/* Orders table mini styles */
.orders-table-mini {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.orders-table-mini th,
.orders-table-mini td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.orders-table-mini th {
    background: var(--bg-light);
    font-weight: 600;
    color: var(--text-muted);
    font-size: 12px;
    text-transform: uppercase;
}

.orders-table-mini tr:hover {
    background: var(--bg-light);
}

.orders-loading {
    text-align: center;
    padding: 30px;
    color: var(--text-muted);
}

.orders-empty {
    text-align: center;
    padding: 30px;
    color: var(--text-muted);
    font-style: italic;
}

.orders-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.orders-counter {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    border-radius: 6px;
    color: white;
    font-size: 0.9em;
}

.orders-counter strong {
    font-size: 1.1em;
}

/* ===========================================
   PRODUCT DETAILS PAGE STYLES
   =========================================== */
.product-header {
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    color: white;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 4px 6px var(--shadow-lg);
}

.product-header h1 {
    margin: 0 0 10px 0;
    font-size: 28px;
}

.product-header p {
    margin: 0;
    opacity: 0.9;
    font-size: 16px;
}

.tabs {
    display: flex;
    gap: 5px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
    flex-wrap: wrap;
}

/* .tab-btn moved to components.css */

.tab-content {
    display: none;
    animation: fadeIn 0.3s;
}

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

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.info-item.full-width {
    grid-column: 1 / -1;
}

.edit-input {
    display: none;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 14px;
    background: var(--bg-white);
    color: var(--text-primary);
}

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

textarea.edit-input {
    min-height: 100px;
    resize: vertical;
}

.image-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.image-item {
    background: var(--bg-secondary);
    border-radius: 8px;
    padding: 15px;
}

.image-preview img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}

.source-item {
    background: var(--bg-secondary);
    border-left: 3px solid var(--accent-primary);
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 0 8px 8px 0;
}

.tag-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin: 2px;
}

.tag-remove {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0 4px;
}

body.product-edit-active .save-cancel-buttons {
    display: flex !important;
}

body.product-edit-active .btn-edit {
    display: none !important;
}

.view-only {
    display: block;
}

body.product-edit-active .view-only {
    display: none !important;
}

body.product-edit-active .edit-input {
    display: block !important;
}

/* ===========================================
   BACKLOG PAGE STYLES
   =========================================== */
.backlog-counter-wrapper {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 15px;
}

/* ===========================================
   SETTINGS PAGE STYLES
   =========================================== */
.settings-theme-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
}

.settings-theme-status {
    color: var(--text-muted);
    font-size: 14px;
}

/* ===========================================
   ADDITIONAL PAGE STYLES
   =========================================== */

/* Text center utility */
.text-center {
    text-align: center;
}

/* Loading cell styles */
.loading-cell {
    padding: 40px !important;
}

/* Button variants with classes */
.btn-success {
    background: var(--success) !important;
}

.btn-primary {
    background: var(--accent-primary) !important;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

/* Bulk edit additional styles */
.bulk-edit-bar button:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.product-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.bulk-field-group {
    margin-bottom: 20px;
    padding: 15px;
    background: var(--bg-light);
    border-radius: 8px;
    border-left: 4px solid var(--accent-primary);
}

.bulk-field-group .field-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.bulk-field-group .field-header label {
    margin: 0;
    font-weight: 600;
    color: var(--text-primary);
}

.bulk-field-group .field-header input[type="checkbox"] {
    width: 18px;
    height: 18px;
}

.bulk-field-group input[type="text"],
.bulk-field-group input[type="number"],
.bulk-field-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 14px;
    background: var(--bg-white);
    color: var(--text-primary);
}

.bulk-field-group input:disabled,
.bulk-field-group select:disabled {
    background: var(--bg-light);
    cursor: not-allowed;
}

.selected-products-preview {
    max-height: 150px;
    overflow-y: auto;
    margin-bottom: 20px;
    padding: 10px;
    background: var(--bg-light);
    border-radius: 4px;
    font-size: 13px;
}

.selected-products-preview .product-item {
    padding: 4px 0;
    border-bottom: 1px solid var(--border-color);
}

.selected-products-preview .product-item:last-child {
    border-bottom: none;
}

/* Price and inventory items */
.price-item,
.inventory-item {
    display: inline-block;
    padding: 8px 12px;
    background: var(--bg-light);
    border-radius: 4px;
    margin-right: 10px;
    margin-bottom: 10px;
}

/* Attributes section */
.attributes-section {
    margin-top: 20px;
    padding: 15px;
    background: var(--bg-light);
    border-radius: 4px;
    border-left: 3px solid var(--accent-primary);
}

.attributes-section strong {
    display: block;
    color: var(--text-primary);
    margin-bottom: 10px;
    font-size: 14px;
}

.attribute-item {
    padding: 8px;
    background: var(--bg-white);
    border-radius: 3px;
    margin-bottom: 8px;
    word-break: break-word;
}

.attribute-item strong {
    color: var(--text-muted);
    font-size: 12px;
    text-transform: uppercase;
    display: inline;
    margin-right: 5px;
}

.attribute-item span {
    color: var(--text-primary);
    font-size: 14px;
}

/* Products toolbar */
.products-toolbar {
    background: var(--bg-white);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 15px var(--shadow-md);
    margin-bottom: 25px;
}

.products-toolbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.products-search-wrapper {
    flex: 1;
    min-width: 300px;
}

.products-search-input {
    width: 100%;
    padding: 10px 16px;
    font-size: 1em;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    outline: none;
    transition: all 0.3s;
    background: var(--bg-white);
    color: var(--text-primary);
}

.products-search-input:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.products-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Hidden utility */
.hidden {
    display: none !important;
}

/* Checkbox column */
.checkbox-col {
    width: 40px;
}

/* Button muted variant */
.btn-muted {
    background: var(--text-muted) !important;
}

/* Sort icon styles */
.sort-icon {
    opacity: 0.4;
    font-size: 0.85em;
    margin-left: 4px;
}

.sortable.sort-asc .sort-icon,
.sortable.sort-desc .sort-icon {
    opacity: 1;
    color: var(--accent-primary);
}

.sortable.sort-asc .sort-icon::after {
    content: '↑';
}

.sortable.sort-desc .sort-icon::after {
    content: '↓';
}

.sortable.sort-asc .sort-icon,
.sortable.sort-desc .sort-icon {
    font-size: 0;
}

.sortable.sort-asc .sort-icon::after,
.sortable.sort-desc .sort-icon::after {
    font-size: 0.95rem;
}

/* Active tab display */
.tab-content.active-tab {
    display: block;
}

/* Action buttons group */
.action-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

/* Image list */
.image-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.image-item {
    background: var(--bg-secondary);
    border-radius: 8px;
    padding: 15px;
}

.image-preview img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}

/* Details grid for customer/product pages */
.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

/* Status specific colors */
.status-paid { background: var(--success-bg); color: var(--success-text); }
.status-shipped { background: var(--info-bg); color: var(--info-text); }
.status-closed { background: var(--neutral-bg); color: var(--neutral-text); }
.status-fulfilling { background: var(--warning-bg); color: var(--warning-text); }
.status-packed { background: var(--info-bg); color: var(--info-text); }

/* Settings page additional styles */
.ignored-list {
    margin-bottom: 15px;
}

.btn-add-item {
    margin-top: 10px;
}

.ignored-positions-group {
    margin-top: 30px;
}

.description-small {
    margin: 5px 0 15px 0;
    font-size: 0.9em;
}

/* Loading content */
.loading-content {
    padding: 30px;
}

/* Loading page (centered) */
.loading-page {
    padding: 50px;
}

/* Fulfill page styles */
.fulfill-status-select {
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background: var(--bg-white);
    color: var(--text-primary);
    font-size: 13px;
    cursor: pointer;
}

.customer-view-link {
    font-size: 12px;
    font-weight: normal;
    margin-left: 8px;
}

/* ===========================================
   MODAL ADDITIONAL STYLES
   =========================================== */
.modal-content-narrow {
    max-width: 800px;
}

.bulk-edit-description {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 14px;
}

/* ===========================================
   TAB CONTENT DISPLAY
   =========================================== */
.tab-content-active {
    display: block;
}

/* ===========================================
   PRODUCT MEDIA STYLES
   =========================================== */
.media-section-label {
    display: block;
    color: var(--text-secondary);
    font-size: 12px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.primary-image-container {
    margin-bottom: 20px;
}

.no-image-text {
    color: var(--text-secondary);
}

/* ===========================================
   SETTINGS PAGE DYNAMIC STYLES
   =========================================== */
.ignored-item-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    align-items: center;
    padding: 10px;
    background: var(--bg-hover);
    border-radius: 8px;
}

.ignored-item-input {
    flex: 1;
    padding: 8px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--bg-white);
    color: var(--text-primary);
}

.btn-remove-item {
    padding: 8px 12px;
    background: var(--danger);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.btn-remove-item:hover {
    background: var(--danger-border);
}

.empty-list-message {
    color: var(--text-muted);
    font-style: italic;
}

.no-tags-message,
.no-images-message,
.no-sources-message {
    color: var(--text-muted);
}

.no-variations-message {
    color: var(--text-muted);
    font-style: italic;
}

/* Variation option display styles */
.variation-option-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.variation-option-name {
    font-weight: 500;
}

.variation-option-price {
    color: var(--text-muted);
}

.variation-option-meta {
    margin-top: 5px;
    font-size: 0.9em;
    color: var(--text-muted);
}

/* ===========================================
   VARIATION EDIT FORM STYLES
   =========================================== */
.variation-edit-group {
    margin-bottom: 20px;
    padding: 15px;
    background: var(--bg-secondary);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.variation-edit-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 15px;
}

.variation-name-field {
    flex: 1;
}

.variation-name-label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.variation-name-input {
    width: 100%;
    padding: 8px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: var(--bg-primary);
    color: var(--text-primary);
}

.btn-remove-variation {
    margin-left: 10px;
    padding: 6px 12px;
}

.variation-toggles {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 15px;
}

.variation-toggle-label {
    display: flex;
    align-items: center;
    gap: 5px;
}

.options-container {
    margin-top: 15px;
    padding: 10px;
    background: var(--bg-primary);
    border-radius: 6px;
}

.options-container h4 {
    margin-top: 0;
    margin-bottom: 10px;
}

.btn-add-option {
    margin-top: 10px;
    padding: 6px 12px;
}

/* Option edit item styles */
.option-edit-item {
    display: grid;
    grid-template-columns: 2fr 1fr auto auto;
    gap: 10px;
    align-items: center;
    margin-bottom: 8px;
    padding: 8px;
    background: var(--bg-secondary);
    border-radius: 4px;
}

.option-input {
    padding: 6px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: var(--bg-primary);
    color: var(--text-primary);
}

.option-default-label {
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.btn-remove-option {
    padding: 4px 8px;
    font-size: 12px;
}

/* ===========================================
   FORM EDIT INPUT STYLES (for modals)
   =========================================== */
.edit-field {
    display: none;
    width: 100%;
    padding: 8px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: var(--bg-primary);
    color: var(--text-primary);
}

.edit-textarea {
    min-height: 80px;
}

/* Additional addresses container */
.additional-addresses {
    margin-top: 20px;
}

/* Product table styles */
.product-thumbnail {
    max-height: 100px;
    max-width: 100px;
    object-fit: contain;
    cursor: pointer;
}

.product-no-image {
    width: 100px;
    height: 100px;
    background: var(--bg-hover);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: var(--text-muted);
}

.product-cell {
    text-align: center;
    padding: 8px;
}

.product-title-cell {
    padding: 8px;
    word-wrap: break-word;
}

.stock-badge-positive {
    background: var(--success);
}

.stock-badge-zero {
    background: var(--danger);
}

.view-btn-small {
    background: var(--accent-primary);
    text-decoration: none;
    display: inline-block;
}

/* Media section labels */
.all-images-label {
    display: block;
    color: var(--text-secondary);
    font-size: 12px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.image-item-wrapper {
    margin-bottom: 15px;
}

.image-filename {
    margin: 5px 0;
    color: var(--text-secondary);
    font-size: 12px;
}

.no-sources-text {
    color: var(--text-muted);
}

.attributes-label {
    display: block;
    margin-bottom: 15px;
    color: var(--text-primary);
    font-size: 14px;
}

.all-attributes-mapped {
    color: var(--text-muted);
    padding: 15px;
    background: var(--bg-hover);
    border-radius: 4px;
}

/* New image item preview */
.new-image-preview {
    width: 200px;
    height: 200px;
    background: var(--bg-secondary);
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.new-image-url-input {
    display: block;
    margin-top: 5px;
    width: 100%;
}

.btn-remove-image {
    margin-top: 5px;
}

/* Textarea sizing */
.textarea-description {
    min-height: 80px;
}

.textarea-sm {
    min-height: 60px;
}

/* Empty state and loading messages */
.empty-table-cell {
    text-align: center;
    padding: 40px;
}

.error-message {
    color: var(--danger-text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.error-message::before {
    content: "⚠";
}

/* view-btn-small variants moved to components.css */

/* Address cards */
.addresses-section-title {
    margin-top: 20px;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.address-card {
    border: 1px solid var(--border-color);
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 10px;
    background: var(--bg-hover);
}

.address-card-title {
    margin: 0 0 10px 0;
    color: var(--text-primary);
}

.badge-default {
    background: var(--success);
}

/* Customer link styles */
.customer-link-inline {
    font-size: 14px;
    font-weight: normal;
    margin-left: 10px;
}

/* External attributes label */
.external-attributes-label {
    font-weight: bold;
    color: var(--accent-primary);
    margin-top: 8px;
    margin-bottom: 8px;
}

.attribute-label-bold {
    font-weight: bold;
    color: var(--accent-primary);
    background: transparent;
    border: none;
    padding: 8px 0;
    margin: 8px 0;
}

/* Tracking shipping number */
.tracking-shipper {
    margin-top: 4px;
}

/* Processing overlay error */
.error-text {
    color: var(--danger-text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.error-text::before {
    content: "⚠";
}

.back-link-white {
    color: white;
    text-decoration: underline;
    margin-top: 10px;
    display: inline-block;
}



/* Top bar styling */
.top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 30px;
    background-color: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 4px var(--shadow);
    margin-bottom: 20px;
}

/* User menu styling */
.user-menu {
    position: relative;
}

.user-menu-trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.user-menu-trigger:hover {
    background-color: var(--bg-hover);
}

.user-info-inline {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.user-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
}

.user-email {
    color: var(--text-muted);
    font-size: 12px;
}

.dropdown-arrow {
    font-size: 10px;
    color: var(--text-muted);
    transition: transform 0.2s ease;
}

.user-menu-trigger:hover .dropdown-arrow {
    color: var(--text-primary);
}

.user-menu-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 4px 12px var(--shadow-lg);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1000;
}

.user-menu-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: var(--text-primary);
    text-decoration: none;
    transition: background-color 0.2s ease;
    font-size: 14px;
    border-radius: 6px;
    margin: 4px;
}

.user-menu-item:hover {
    background-color: var(--bg-hover);
    color: var(--accent-primary);
}

/* Organization selector styling */
.organization-selector {
    display: flex;
    align-items: center;
    gap: 10px;
}

.organization-selector label {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 14px;
}

.organization-selector select {
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-white);
    color: var(--text-primary);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.organization-selector select:hover {
    border-color: var(--accent-primary);
}

.organization-selector select:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Language selector styling */
.language-selector {
    display: flex;
    align-items: center;
    margin-left: 15px;
}

.language-selector select {
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-white);
    color: var(--text-primary);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.language-selector select:hover {
    border-color: var(--accent-primary);
}

.language-selector select:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* ============================================
   Auth Pages Styles
   ============================================ */

/* Hide navigation for auth pages */
body.auth-page .sidebar,
body.auth-page .header,
body.auth-page .organization-selector,
body.auth-page .language-selector {
    display: none !important;
}

/* Center auth container on page */
body.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

body.auth-page > div {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
    margin: 0;
    max-width: none;
}

.auth-container {
    width: 100%;
    max-width: 450px;
}

.auth-card {
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: 0 10px 40px var(--shadow-lg);
    padding: 40px;
    border: 1px solid var(--border-color);
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h1 {
    margin: 0 0 10px;
    color: var(--text-primary);
    font-size: 28px;
    font-weight: 700;
}

.auth-header p {
    margin: 0;
    color: var(--text-secondary);
}

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

.auth-form label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: var(--text-primary);
}

.auth-form .form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
    background-color: var(--bg-white);
    color: var(--text-primary);
}

.auth-form .form-control:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

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

.auth-form .form-text {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 6px;
}

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

.auth-form .form-control[readonly],
.auth-form .form-control:disabled {
    background-color: var(--bg-hover);
    color: var(--text-muted);
    cursor: not-allowed;
}

.btn-block {
    width: 100%;
    display: block;
}

.auth-divider {
    text-align: center;
    margin: 20px 0;
    position: relative;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    border-top: 1px solid var(--border-color);
}

.auth-divider span {
    background: var(--bg-white);
    padding: 0 15px;
    color: var(--text-muted);
    position: relative;
}

.auth-footer {
    text-align: center;
    margin-top: 24px;
    color: var(--text-secondary);
}

.auth-footer a {
    color: var(--accent-primary);
    text-decoration: none;
}

.auth-footer a:hover {
    text-decoration: underline;
    color: var(--accent-hover);
}

.auth-footer p {
    margin: 8px 0;
}

/* Auth page alerts */
.auth-card .alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.auth-card .alert-danger,
.auth-card .alert-error {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-left: 4px solid var(--danger);
}

.auth-card .alert-danger::before,
.auth-card .alert-error::before {
    content: "⚠";
    font-size: 16px;
    flex-shrink: 0;
}

.auth-card .alert-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-left: 4px solid var(--success);
}

.auth-card .alert-success::before {
    content: "✓";
    font-size: 16px;
    flex-shrink: 0;
}

.auth-card .alert-warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-left: 4px solid var(--warning);
}

.auth-card .alert-warning::before {
    content: "⚠";
    font-size: 16px;
    flex-shrink: 0;
}

/* Fix password input font to match other inputs */
input[type="password"] {
    font-family: inherit;
    letter-spacing: normal;
}

/* ============================================
   Error Page Styles
   ============================================ */

.error-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    padding: 2rem;
}

.error-container {
    text-align: center;
    max-width: 600px;
}

.error-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.error-code {
    font-size: 6rem;
    font-weight: 700;
    color: var(--danger);
    margin: 0;
    line-height: 1;
}

.error-title {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin: 0.5rem 0 1rem;
}

.error-message {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.error-details {
    text-align: left;
    background: var(--bg-light);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
}

.error-details summary {
    cursor: pointer;
    font-weight: 500;
    color: var(--text-muted);
}

.error-details pre {
    margin: 0.5rem 0 0;
    padding: 0.5rem;
    background: var(--bg-white);
    border-radius: 4px;
    overflow-x: auto;
    font-size: 0.85rem;
    white-space: pre-wrap;
    word-break: break-word;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.error-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.error-actions .btn {
    padding: 0.75rem 1.5rem;
}

/* ============================================
   Production Schedule View
   ============================================ */

.schedule-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.schedule-stats .stat-card {
    background: var(--bg-white);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    border: 1px solid var(--border-color);
    box-shadow: 0 1px 3px var(--shadow);
}

.schedule-stats .stat-card.stat-primary {
    border-left: 4px solid var(--accent-primary);
}

.schedule-stats .stat-card.stat-warning {
    border-left: 4px solid var(--warning);
}

.schedule-stats .stat-card.stat-danger {
    border-left: 4px solid var(--danger);
}

.schedule-stats .stat-card.stat-success {
    border-left: 4px solid var(--success);
}

.schedule-stats .stat-number {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
}

.schedule-stats .stat-label {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Schedule Tabs */
.schedule-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.schedule-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.2s;
}

.schedule-tab:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.schedule-tab.active {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
}

.tab-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 11px;
    font-size: 12px;
    font-weight: 600;
}

.schedule-tab.active .tab-badge {
    background: rgba(255, 255, 255, 0.2);
}

/* Schedule Filters */
.schedule-filters {
    background: var(--bg-white);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
    border: 1px solid var(--border-color);
}

.schedule-filters .filter-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.schedule-filters .filter-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.schedule-filters .filter-item label {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
}

.schedule-filters .filter-item input,
.schedule-filters .filter-item select {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
    min-width: 150px;
}

.schedule-filters .filter-item input:focus,
.schedule-filters .filter-item select:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px var(--accent-light);
}

/* Schedule Table */
.schedule-table-wrapper {
    background: var(--bg-white);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    overflow-x: auto;
}

.schedule-table {
    width: 100%;
    border-collapse: collapse;
}

.schedule-table th,
.schedule-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.schedule-table th {
    background: var(--bg-light);
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    color: var(--text-muted);
    white-space: nowrap;
}

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

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

/* Priority Rows */
.schedule-row.priority-high {
    background: rgba(239, 68, 68, 0.05);
}

.schedule-row.priority-high:hover {
    background: rgba(239, 68, 68, 0.1);
}

/* Priority Badges */
.priority-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.priority-badge.priority-high {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger-text);
}

.priority-badge.priority-normal {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning-text);
}

.priority-badge.priority-low {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success-text);
}

/* Status Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.status-badge.status-scheduled {
    background: var(--accent-light);
    color: var(--accent-primary);
}

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

.status-badge.status-rescheduled {
    background: rgba(139, 92, 246, 0.15);
    color: var(--purple);
}

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

/* Produced row styling */
.schedule-row.type-produced {
    background: rgba(16, 185, 129, 0.03);
}

.schedule-row.type-produced:hover {
    background: rgba(16, 185, 129, 0.08);
}

/* Schedule Table Columns */
.schedule-table .col-checkbox { width: 40px; text-align: center; }
.schedule-table .col-priority { width: 100px; }
.schedule-table .col-status { width: 120px; }
.schedule-table .col-order { width: 140px; }
.schedule-table .col-image { width: 60px; }
.schedule-table .col-product { min-width: 200px; }
.schedule-table .col-sku { width: 120px; }
.schedule-table .col-attributes { 
    min-width: 180px; 
    max-width: 400px;
    vertical-align: middle;
}
.schedule-table .col-attributes .attribute-list {
    margin: 0;
}
.schedule-table .col-qty { width: 60px; text-align: center; }
.schedule-table .col-date { width: 100px; }
.schedule-table .col-actions { width: 120px; }

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

/* Bulk Actions Bar */
.schedule-bulk-bar {
    background: var(--accent-primary);
    color: white;
    border-radius: 8px;
    margin-bottom: 16px;
    padding: 12px 16px;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

.schedule-bulk-bar.hidden {
    display: none;
}

.schedule-bulk-inner {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.schedule-bulk-bar #selectedCount {
    font-weight: 500;
    flex: 1;
}

.schedule-bulk-bar .btn {
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 13px;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.schedule-bulk-bar .btn-success {
    background: rgba(255, 255, 255, 0.9);
    color: var(--success);
}

.schedule-bulk-bar .btn-success:hover {
    background: white;
}

.schedule-bulk-bar .btn-small {
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

.schedule-bulk-bar .btn-small:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* Order links styling for grouped orders */
.order-links {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 8px;
}

.order-links .order-link {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 500;
}

.order-links .order-link:hover {
    text-decoration: underline;
}

.order-links .order-link.external-link {
    color: var(--success);
}

.order-links .order-link.external-link:hover {
    color: var(--success-text);
}

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

.schedule-product-image {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    border: 1px solid var(--border-color);
}

.schedule-product-image:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 8px var(--shadow-md);
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 4px;
}

.btn-action {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: var(--bg-white);
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

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

.btn-action.btn-fulfill:hover {
    background: rgba(16, 185, 129, 0.1);
    border-color: var(--success);
}

.btn-action.btn-reschedule:hover {
    background: rgba(139, 92, 246, 0.1);
    border-color: #7c3aed;
}

.btn-action.btn-complete:hover {
    background: rgba(16, 185, 129, 0.1);
    border-color: var(--success);
}

.btn-action.btn-mark-produced {
    background: rgba(16, 185, 129, 0.05);
}

.btn-action.btn-mark-produced:hover {
    background: rgba(16, 185, 129, 0.15);
    border-color: var(--success);
}

.btn-action.btn-unmark-produced:hover {
    background: rgba(245, 158, 11, 0.1);
    border-color: var(--warning);
}

/* Production Schedule - Modal Warning Button */
.btn-warning {
    background: var(--purple-dark);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
}

.btn-warning:hover {
    background: var(--purple-darker);
}

.btn-secondary {
    background: var(--bg-light);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
}

.btn-secondary:hover {
    background: var(--bg-hover);
}