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

:root {
    /* Simply Brand Colors */
    --color-chocolate: #3D2314;
    --color-chocolate-light: #5a3a28;
    --color-cream: #F5F0E8;
    --color-cream-dark: #EDE5D8;

    /* Primary colors - using Simply chocolate tones */
    --primary-color: #3D2314;
    --primary-hover: #5a3a28;
    --secondary-color: #5a3a28;
    --success-color: #22c55e;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --background: #FDFCFA;
    --surface: #ffffff;
    --text-primary: #3D2314;
    --text-secondary: #5a3a28;
    --border-color: #EDE5D8;
    --sidebar-width: 250px;

    /* Typography */
    --font-heading: 'Roboto Condensed', sans-serif;
    --font-body: 'Source Sans 3', sans-serif;
}

/* Utility classes */
.text-muted {
    color: var(--text-secondary);
    font-style: italic;
}

.form-help {
    display: block;
    margin-top: 4px;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* Shopify linked icon in leads list */
.shopify-linked-icon {
    display: inline-flex;
    align-items: center;
    margin-left: 6px;
    vertical-align: middle;
}

.shopify-linked-icon svg {
    display: inline-block;
    vertical-align: middle;
}

/* Hide mobile elements on desktop */
.mobile-leads-list {
    display: none;
}

.mobile-fab {
    display: none;
}

body {
    font-family: var(--font-body), -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: var(--background);
    color: var(--text-primary);
    line-height: 1.5;
}

h1, h2, h3, h4, h5, h6,
.modal-header h2,
.section-title {
    font-family: var(--font-heading);
}

.app {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background: var(--color-chocolate);
    color: white;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    overflow: hidden;
}

.sidebar-scroll {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.logo {
    margin-bottom: 1rem;
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.logo-img {
    max-width: 100%;
    height: auto;
    max-height: 50px;
}

/* Connection Status Indicator */
.connection-status {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.connection-status .status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.connection-status.online .status-dot {
    background-color: #22c55e;
    box-shadow: 0 0 6px #22c55e;
}

.connection-status.offline .status-dot {
    background-color: #ef4444;
    box-shadow: 0 0 6px #ef4444;
}

/* Loading Spinner */
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--color-cream-dark);
    border-top-color: var(--color-chocolate);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

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

.nav-menu {
    list-style: none;
    margin-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.nav-item {
    padding: 0.5rem 0.75rem;
    margin-bottom: 0.125rem;
    border-radius: 0.375rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    transition: all 0.15s ease;
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
}

.nav-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: white;
}

.nav-item.active {
    background: var(--color-chocolate-light);
    color: white;
}

/* Navigation Groups */
.nav-group {
    margin-bottom: 0.75rem;
}

.nav-group-title {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.4);
    padding: 0.25rem 0.75rem;
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.nav-group .nav-item {
    margin-bottom: 0;
}

.sidebar-footer {
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

/* Sidebar Bottom - User Section */
.sidebar-bottom {
    flex-shrink: 0;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: auto;
}

.current-user-section {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
}

.current-user-display {
    flex: 1;
    min-width: 0;
}

.current-user-display .user-name {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.current-user-display .user-role {
    display: block;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn-logout {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    border: none;
    padding: 0.4rem 0.75rem;
    font-size: 0.75rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s ease;
    flex-shrink: 0;
}

.btn-logout:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: 1.5rem 2rem;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.search-bar {
    flex: 1;
    max-width: 400px;
}

.search-bar input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 0.875rem;
    outline: none;
    transition: border-color 0.2s;
}

.search-bar input:focus {
    border-color: var(--primary-color);
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary {
    background: var(--color-chocolate);
    color: var(--color-cream);
    border: 2px solid var(--color-chocolate);
}

.btn-primary:hover {
    background: var(--color-chocolate-light);
    border-color: var(--color-chocolate-light);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--surface);
    color: var(--color-chocolate);
    border: 2px solid var(--color-cream-dark);
}

.btn-secondary:hover {
    background: var(--color-cream);
    border-color: var(--color-chocolate);
}

.btn-danger {
    background: var(--danger-color);
    color: white;
    border: 2px solid var(--danger-color);
}

.btn-danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.btn-sm {
    padding: 0.5rem 0.875rem;
    font-size: 0.8rem;
}

/* Views */
.view {
    display: none;
}

.view.active {
    display: block;
}

/* Dashboard Layout */
.dashboard-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 1.5rem;
}

.dashboard-main {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.dashboard-section {
    background: var(--surface);
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.dashboard-section h2 {
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--primary-color);
}

/* Widget header with fullscreen button */
.widget-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.widget-header h2 {
    margin-bottom: 0;
    padding-bottom: 0.5rem;
    flex: 1;
}

.widget-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.fullscreen-btn {
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 0.375rem;
    padding: 0.4rem;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fullscreen-btn:hover {
    background: var(--background);
    color: var(--text-primary);
    border-color: var(--text-secondary);
}

.fullscreen-btn svg {
    width: 16px;
    height: 16px;
}

/* Fullscreen widget mode */
.dashboard-section.fullscreen {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 1001 !important;
    background: white !important;
    margin: 0 !important;
    border-radius: 0 !important;
    padding: 2rem 3rem !important;
    overflow: auto !important;
    display: flex !important;
    flex-direction: column !important;
    box-shadow: none !important;
}

.dashboard-section.fullscreen .widget-header h2 {
    font-size: 1.5rem;
}

.dashboard-section.fullscreen .table-container {
    flex: 1;
    overflow: auto;
}

.dashboard-section.fullscreen table {
    font-size: 1rem;
}

.dashboard-section.fullscreen th,
.dashboard-section.fullscreen td {
    padding: 1rem;
}

.dashboard-section.fullscreen .probability-grid {
    gap: 1.5rem;
}

.dashboard-section.fullscreen .probability-card {
    padding: 1.5rem;
}

.dashboard-section.fullscreen .fullscreen-btn svg {
    transform: rotate(180deg);
}

/* Fullscreen overlay background */
.fullscreen-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

/* Body class when widget is fullscreen - helps Chrome Mac */
body.widget-fullscreen-active {
    overflow: hidden !important;
}

body.widget-fullscreen-active .sidebar,
body.widget-fullscreen-active .main-content {
    pointer-events: none;
}

body.widget-fullscreen-active .dashboard-section.fullscreen {
    pointer-events: auto;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.section-header h2 {
    margin-bottom: 0;
    padding-bottom: 0.5rem;
}

/* Editable table */
.editable-table .editable-cell {
    cursor: pointer;
    position: relative;
}

.editable-table .editable-cell:hover {
    background: var(--background);
}

.editable-table .editable-cell::after {
    content: '✎';
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.editable-table .editable-cell:hover::after {
    opacity: 1;
}

.editable-table input.cell-input {
    width: 100%;
    padding: 0.5rem;
    border: 2px solid var(--primary-color);
    border-radius: 0.25rem;
    font-size: 0.875rem;
    text-align: right;
    background: white;
}

.editable-table input.cell-input-name {
    text-align: left;
}

.editable-table .actions-col {
    width: 40px;
}

.delete-row-btn {
    background: none;
    border: none;
    color: var(--danger-color);
    cursor: pointer;
    font-size: 1rem;
    padding: 0.25rem;
    opacity: 0.5;
    transition: opacity 0.2s;
}

.delete-row-btn:hover {
    opacity: 1;
}

.dashboard-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.dashboard-table th {
    text-align: left;
    padding: 0.75rem;
    background: var(--background);
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.75rem;
    text-transform: uppercase;
}

.dashboard-table td {
    padding: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

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

.dashboard-table tfoot td {
    font-weight: 700;
    background: var(--background);
    border-top: 2px solid var(--border-color);
}

/* Dashboard Sidebar */
.dashboard-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.overview-card {
    background: var(--surface);
    border-radius: 0.75rem;
    padding: 1.25rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.overview-card h3 {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.overview-stats {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.overview-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
}

.overview-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.overview-value {
    font-weight: 600;
    font-size: 0.875rem;
}

.overview-stat.highlight {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: white;
    padding: 0.75rem;
    border-radius: 0.5rem;
    margin: 0 -0.5rem;
}

.overview-stat.highlight .overview-label {
    color: rgba(255, 255, 255, 0.8);
}

.overview-stat.highlight .overview-value {
    color: white;
}

.overview-stat.large .overview-value {
    font-size: 1.5rem;
}

/* Progress Bar in Pipeline Table */
.progress-cell {
    width: 120px;
}

.progress-bar {
    height: 8px;
    background: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

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

.progress-fill.good {
    background: var(--success-color);
}

.progress-fill.warning {
    background: var(--warning-color);
}

.progress-fill.danger {
    background: var(--danger-color);
}

.progress-text {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

/* Executive Reclamation Stats Widget */
.executive-reclamation-stats {
    margin-top: 1rem;
}

.executive-reclamation-stats h4 {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin: 1rem 0 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.reclamation-stat-row {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.reclamation-stat-box {
    flex: 1;
    background: var(--background);
    border-radius: 0.5rem;
    padding: 0.75rem 0.5rem;
    text-align: center;
    border-left: 3px solid var(--primary-color);
}

.reclamation-stat-box.open {
    border-left-color: var(--warning-color);
}

.reclamation-stat-box.closed {
    border-left-color: var(--success-color);
}

.reclamation-stat-box .stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.reclamation-stat-box .stat-label {
    display: block;
    font-size: 0.7rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.reclamation-avg-time {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 0.5rem;
}

.reclamation-avg-time .time-icon {
    width: 32px;
    height: 32px;
    color: var(--primary-color);
    flex-shrink: 0;
}

.avg-time-info {
    display: flex;
    flex-direction: column;
}

.avg-time-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.avg-time-label {
    font-size: 0.7rem;
    color: var(--text-secondary);
}

.reclamation-trends {
    background: var(--background);
    border-radius: 0.5rem;
    padding: 0.75rem;
    margin-top: 1rem;
}

.reclamation-trends h4 {
    margin-top: 0;
}

.trend-row {
    display: flex;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.trend-row:last-child {
    border-bottom: none;
}

.trend-label {
    flex: 1;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.trend-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-right: 0.75rem;
}

.trend-change {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.2rem 0.5rem;
    border-radius: 1rem;
    background: var(--success-color);
    color: white;
}

.trend-change.negative {
    background: var(--danger-color);
}

.trend-change.neutral {
    background: var(--text-secondary);
}

.reclamation-top-issues {
    margin-top: 1rem;
}

.top-list {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.top-list-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.5rem;
    background: var(--background);
    border-radius: 0.35rem;
    font-size: 0.8rem;
}

.top-list-item .rank {
    width: 18px;
    height: 18px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 600;
    flex-shrink: 0;
}

.top-list-item .name {
    flex: 1;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.top-list-item .count {
    font-weight: 600;
    color: var(--text-secondary);
}

/* Marketing Leads Stats */
.marketing-leads-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.marketing-leads-stats .stat-card {
    background: var(--background);
    border-radius: 0.5rem;
    padding: 1.25rem;
    text-align: center;
    border-left: 4px solid #8b5cf6;
}

.marketing-leads-stats .stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.marketing-leads-stats .stat-label span {
    font-weight: 600;
    color: var(--primary-color);
}

.marketing-leads-stats .stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
}

@media (max-width: 768px) {
    .marketing-leads-stats {
        grid-template-columns: 1fr;
    }
}

/* Probability Grid */
.probability-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 0.75rem;
}

.probability-card {
    background: var(--background);
    border-radius: 0.5rem;
    padding: 1rem;
    text-align: center;
    border-left: 4px solid var(--primary-color);
}

.probability-card.stage-0 { border-left-color: #ef4444; }
.probability-card.stage-10 { border-left-color: #f97316; }
.probability-card.stage-20 { border-left-color: #f59e0b; }
.probability-card.stage-40 { border-left-color: #eab308; }
.probability-card.stage-60 { border-left-color: #84cc16; }
.probability-card.stage-75 { border-left-color: #22c55e; }
.probability-card.stage-90 { border-left-color: #10b981; }
.probability-card.stage-100 { border-left-color: #059669; }

.probability-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.probability-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* Negative values in red */
.negative {
    color: var(--danger-color);
}

.positive {
    color: var(--success-color);
}

/* Charts */
.charts-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.chart-card {
    background: var(--surface);
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.chart-card h3 {
    margin-bottom: 1rem;
    font-size: 1rem;
    color: var(--text-secondary);
}

.chart-container {
    min-height: 200px;
}

.chart-bar {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
}

.chart-bar-label {
    width: 120px;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.chart-bar-track {
    flex: 1;
    height: 24px;
    background: var(--background);
    border-radius: 4px;
    overflow: hidden;
    margin-right: 0.75rem;
}

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

.chart-bar-value {
    width: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    text-align: right;
}

/* Recent Activity */
.recent-activity {
    background: var(--surface);
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.recent-activity h3 {
    margin-bottom: 1rem;
    font-size: 1rem;
    color: var(--text-secondary);
}

.recent-leads-list {
    max-height: 300px;
    overflow-y: auto;
}

.recent-lead-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.recent-lead-item:last-child {
    border-bottom: none;
}

.recent-lead-name {
    font-weight: 500;
}

.recent-lead-date {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* Leads Table View */
.view-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.filters {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.filters select {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 0.875rem;
    outline: none;
    background: var(--surface);
}

.table-container {
    background: var(--surface);
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

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

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

th {
    background: var(--background);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-secondary);
    cursor: pointer;
    user-select: none;
}

th:hover {
    background: var(--border-color);
}

td {
    font-size: 0.875rem;
}

tr:hover {
    background: var(--background);
}

/* Clickable lead rows */
#leadsTableBody tr {
    cursor: pointer;
}

#leadsTableBody tr:hover {
    background: #f1f5f9;
}

/* Status Badges */
.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.status-kontaktet {
    background: #dbeafe;
    color: #1d4ed8;
}

.status-booket {
    background: #dcfce7;
    color: #16a34a;
}

.status-afvist {
    background: #fee2e2;
    color: #dc2626;
}

/* Priority Badges */
.priority-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

.priority-high {
    background: #fee2e2;
    color: #dc2626;
}

.priority-medium {
    background: #fef3c7;
    color: #d97706;
}

.priority-low {
    background: #e2e8f0;
    color: #64748b;
}

/* Actions */
.actions {
    display: flex;
    gap: 0.5rem;
}

.action-btn {
    padding: 0.375rem 0.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.875rem;
    transition: background-color 0.2s;
}

.action-btn.edit {
    background: #dbeafe;
    color: #1d4ed8;
}

.action-btn.edit:hover {
    background: #bfdbfe;
}

.action-btn.delete {
    background: #fee2e2;
    color: #dc2626;
}

.action-btn.delete:hover {
    background: #fecaca;
}

.action-btn.email {
    background: #f0fdf4;
    color: #16a34a;
    font-size: 1rem;
    padding: 0.25rem 0.5rem;
}

.action-btn.email:hover {
    background: #dcfce7;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding: 1.5rem;
}

.pagination button {
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border-color);
    background: var(--surface);
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.875rem;
}

.pagination button:hover {
    background: var(--background);
}

.pagination button.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Pipeline View */
.pipeline-board {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 1rem;
}

.pipeline-column {
    min-width: 250px;
    background: var(--background);
    border-radius: 0.75rem;
    padding: 1rem;
}

.pipeline-column h3 {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
}

.pipeline-cards {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: 500px;
    overflow-y: auto;
}

.pipeline-card {
    background: var(--surface);
    padding: 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    cursor: grab;
    transition: all 0.2s;
    border: 2px solid transparent;
}

.pipeline-card:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.pipeline-card.dragging {
    opacity: 0.5;
    cursor: grabbing;
    transform: rotate(3deg);
}

.pipeline-column.drag-over {
    background: #e0e7ff;
    border: 2px dashed var(--primary-color);
}

.column-revenue {
    font-size: 0.75rem;
    color: var(--success-color);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.column-count {
    font-weight: normal;
    opacity: 0.7;
}

/* Toast notification */
.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--text-primary);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 2000;
    opacity: 0;
    transition: all 0.3s ease;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Drag state on body */
body.is-dragging .pipeline-card:not(.dragging) {
    opacity: 0.6;
}

body.is-dragging .pipeline-column:not(.drag-over) {
    opacity: 0.8;
}

.pipeline-card-name {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.pipeline-card-seller {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.pipeline-card-revenue {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--success-color);
}

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

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--surface);
    border-radius: 12px;
    width: 90%;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: 0 25px 50px -12px rgba(61, 35, 20, 0.25);
    scrollbar-width: thin;
    scrollbar-color: transparent transparent;
}

.modal-content:hover {
    scrollbar-color: rgba(61, 35, 20, 0.3) transparent;
}

/* Webkit scrollbar for modals - thin and subtle */
.modal-content::-webkit-scrollbar {
    width: 6px;
}

.modal-content::-webkit-scrollbar-track {
    background: transparent;
}

.modal-content::-webkit-scrollbar-thumb {
    background: transparent;
    border-radius: 3px;
}

.modal-content:hover::-webkit-scrollbar-thumb {
    background: rgba(61, 35, 20, 0.3);
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: rgba(61, 35, 20, 0.5);
}

.modal-small {
    max-width: 400px;
    padding: 1.5rem;
    text-align: center;
}

.modal-small h3 {
    margin-bottom: 1rem;
}

.modal-small p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: var(--color-chocolate);
    color: white;
    border-bottom: none;
    border-radius: 12px 12px 0 0;
}

.modal-header h2 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 600;
    color: white;
    letter-spacing: 0.3px;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.2s ease;
}

.close-btn:hover {
    color: white;
}

/* Form */
#leadForm {
    padding: 1.5rem 2rem;
}

/* Lead Modal specific improvements */
#leadModal .modal-content {
    max-width: 750px;
}

#leadModal .shopify-section {
    margin: 0 -2rem 1.5rem -2rem;
    padding: 1rem 2rem;
    border-radius: 0;
}

#leadModal .tasks-section {
    background: var(--background);
    margin: 0 -2rem 1.5rem -2rem;
    padding: 1rem 2rem;
    border-bottom: 1px solid var(--border-color);
}

#leadModal .tasks-section h3 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.form-group {
    margin-bottom: 0;
}

.form-group.full-width {
    grid-column: span 2;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.65rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(61, 35, 20, 0.1);
}

.form-group input::placeholder {
    color: #aaa;
}

.form-group select {
    cursor: pointer;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

/* Current User Section in Sidebar */
.current-user-section {
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: auto;
}

.current-user-section label {
    display: block;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.5rem;
}

.current-user-section select {
    width: 100%;
    padding: 0.5rem;
    border-radius: 0.375rem;
    border: none;
    font-size: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

/* Authenticated User Display */
.current-user-section .user-info {
    display: flex;
    flex-direction: column;
    margin-bottom: 0.75rem;
}

.current-user-section .user-name {
    font-weight: 600;
    color: white;
    font-size: 0.9rem;
}

.current-user-section .user-role {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.current-user-section .btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
}

/* Filter Input */
.filter-input {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 0.875rem;
    outline: none;
    background: var(--surface);
    width: 120px;
}

/* Tasks Section in Modal (at top) */
.tasks-section {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

/* Revenue by Category Section */
.revenue-section {
    margin: 1.5rem 0;
    padding: 1.25rem;
    background: var(--background);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.revenue-section h3 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.revenue-category {
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: var(--surface);
    border-radius: 0.375rem;
    border-left: 3px solid var(--primary-color);
}

.revenue-category:last-child {
    margin-bottom: 0;
}

.revenue-category h4 {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.revenue-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
}

.revenue-grid-2col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.revenue-grid .form-group,
.revenue-grid-2col .form-group {
    margin-bottom: 0;
}

.revenue-grid .form-group label,
.revenue-grid-2col .form-group label {
    font-size: 0.75rem;
}

.revenue-grid .form-group input,
.revenue-grid-2col .form-group input {
    padding: 0.5rem;
    font-size: 0.8rem;
}

/* Color coding for realized vs potential */
.revenue-category:nth-child(1) { border-left-color: #f59e0b; } /* Easter - orange */
.revenue-category:nth-child(2) { border-left-color: #ef4444; } /* Christmas - red */
.revenue-category:nth-child(3) { border-left-color: #8b5cf6; } /* Custom - purple */

/* Checkbox styling */
.checkbox-group {
    display: flex;
    align-items: center;
    padding-top: 1.5rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-primary);
    padding: 0.5rem 0;
}

.checkbox-label input[type="checkbox"] {
    width: 1.25rem;
    height: 1.25rem;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.tasks-section h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.add-task-row {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.add-task-row input[type="text"] {
    flex: 1;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.85rem;
    background: white;
}

.add-task-row input[type="text"]:focus,
.add-task-row input[type="date"]:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(61, 35, 20, 0.1);
}

.add-task-row input[type="date"] {
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.85rem;
    background: white;
}

.task-assigned-select {
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.85rem;
    background: white;
    min-width: 120px;
}

.task-assigned-select:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(61, 35, 20, 0.1);
}

.add-task-form {
    margin-bottom: 0.75rem;
}

.add-task-description {
    margin-top: 0.5rem;
}

.add-task-description textarea {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.85rem;
    font-family: inherit;
    resize: vertical;
    min-height: 60px;
}

.add-task-description textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(61, 35, 20, 0.1);
}

.add-task-actions {
    margin-top: 0.5rem;
    display: flex;
    justify-content: flex-end;
}

.lead-tasks-list {
    max-height: 180px;
    overflow-y: auto;
}

.task-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.75rem;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    margin-bottom: 0.5rem;
}

.task-item.completed {
    opacity: 0.6;
}

.task-item.completed .task-text {
    text-decoration: line-through;
}

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

.task-text {
    flex: 1;
    font-size: 0.875rem;
}

.task-due {
    font-size: 0.75rem;
    color: var(--text-secondary);
    padding: 0.25rem 0.5rem;
    background: var(--surface);
    border-radius: 0.25rem;
}

.task-due.overdue {
    color: var(--danger-color);
    background: #fee2e2;
}

.task-assigned {
    font-size: 0.7rem;
    font-weight: 600;
    color: white;
    padding: 0.2rem 0.5rem;
    background: var(--primary-color);
    border-radius: 1rem;
    white-space: nowrap;
}

.task-delete {
    background: none;
    border: none;
    color: var(--danger-color);
    cursor: pointer;
    font-size: 1rem;
    padding: 0.25rem;
}

/* My Tasks View */
.my-tasks-container {
    background: var(--surface);
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
}

.my-tasks-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.my-task-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--background);
    border-radius: 0.5rem;
    border-left: 4px solid var(--primary-color);
}

.my-task-item.completed {
    opacity: 0.6;
    border-left-color: var(--success-color);
}

.my-task-item.completed .my-task-text {
    text-decoration: line-through;
}

.my-task-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.my-task-content {
    flex: 1;
}

.my-task-text {
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.my-task-lead {
    font-size: 0.75rem;
    color: var(--primary-color);
    cursor: pointer;
}

.my-task-lead:hover {
    text-decoration: underline;
}

.my-task-due {
    font-size: 0.75rem;
    color: var(--text-secondary);
    padding: 0.25rem 0.75rem;
    background: var(--surface);
    border-radius: 0.25rem;
}

.my-task-due.overdue {
    color: var(--danger-color);
    background: #fee2e2;
}

/* Task Sections */
.task-section {
    margin-bottom: 1.5rem;
}

.task-section:last-child {
    margin-bottom: 0;
}

.task-section-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.task-section-icon {
    font-size: 1rem;
}

.task-count-badge {
    background: var(--danger-color);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.15rem 0.5rem;
    border-radius: 1rem;
    margin-left: auto;
}

/* Admin Task Overview - Specialist Workload */
.admin-workload-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #eee;
}

.workload-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 0.75rem;
}

.workload-card {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    border-left: 4px solid #ccc;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.workload-card.low {
    border-left-color: #28a745;
    background: #f8fff9;
}

.workload-card.medium {
    border-left-color: #ffc107;
    background: #fffef5;
}

.workload-card.high {
    border-left-color: #dc3545;
    background: #fff8f8;
}

.workload-name {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.workload-stats {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.workload-stats .stat {
    font-size: 0.8rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-weight: 500;
}

.workload-stats .stat.pending {
    background: #e3f2fd;
    color: #1565c0;
}

.workload-stats .stat.completed {
    background: #e8f5e9;
    color: #2e7d32;
}

.workload-stats .stat.overdue {
    background: #ffebee;
    color: #c62828;
}

.my-task-item.assigned-to-me {
    border-left-color: #666;
    background: #fff;
}

.my-task-item.assigned-by-me {
    border-left-color: #999;
    background: #fafafa;
}

.my-task-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.task-from {
    font-size: 0.7rem;
    color: var(--text-secondary);
    font-style: italic;
}

.task-assigned-badge {
    font-size: 0.7rem;
    font-weight: 600;
    color: #555;
    background: #e9ecef;
    padding: 0.15rem 0.5rem;
    border-radius: 3px;
    border: 1px solid #ced4da;
}

.task-status-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-family: monospace;
    color: #666;
}

/* Task description and customer info - klassisk/konservativt design */
.task-description-box {
    margin-top: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    font-size: 0.8rem;
    color: #333;
    line-height: 1.5;
    white-space: pre-wrap;
}

.task-customer-details {
    margin-top: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    font-size: 0.8rem;
    color: #333;
}

.task-detail-row {
    margin-bottom: 0.25rem;
}

.task-detail-row:last-child {
    margin-bottom: 0;
}

.task-label {
    font-weight: 600;
    color: #555;
}

.task-customer-details a {
    color: #0066cc;
    text-decoration: none;
}

.task-customer-details a:hover {
    text-decoration: underline;
}

/* Navigation Badge - iPhone style */
.nav-badge {
    background: #ff3b30;
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    animation: badge-pulse 2s ease-in-out infinite;
}

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

.task-filters {
    display: flex;
    gap: 0.5rem;
}

.task-filter-btn {
    background: var(--surface);
    border: 1px solid var(--border-color);
}

.task-filter-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Task count badge in table */
.task-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 0.5rem;
    background: var(--primary-color);
    color: white;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.task-count.empty {
    background: var(--border-color);
    color: var(--text-secondary);
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
}

.empty-state-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Responsive */
@media (max-width: 1200px) {
    .dashboard-layout {
        grid-template-columns: 1fr;
    }

    .dashboard-sidebar {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .sidebar {
        width: 60px;
        padding: 1rem 0.5rem;
    }

    .logo h1 {
        font-size: 1rem;
        text-align: center;
    }

    .nav-item {
        justify-content: center;
        padding: 0.75rem;
    }

    .nav-item span:not(.icon) {
        display: none;
    }

    .main-content {
        margin-left: 60px;
        padding: 1rem;
    }

    .header {
        flex-direction: column;
        gap: 1rem;
    }

    .search-bar {
        max-width: 100%;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-group.full-width {
        grid-column: span 1;
    }

    .charts-row {
        grid-template-columns: 1fr;
    }

    .dashboard-sidebar {
        grid-template-columns: 1fr;
    }

    .probability-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .pipeline-board {
        flex-direction: column;
    }

    .pipeline-column {
        min-width: 100%;
    }
}

/* ===========================================
   MOBILE PHONE STYLES - Super Easy to Use
   =========================================== */
@media (max-width: 768px) {
    /* Hide sidebar completely on mobile */
    .sidebar {
        display: none !important;
    }

    /* Full width main content */
    .main-content {
        margin-left: 0 !important;
        padding: 0 !important;
        width: 100% !important;
    }

    /* Hide non-leads views on mobile - only show leads */
    #dashboard-view,
    #pipeline-view,
    #mytasks-view {
        display: none !important;
    }

    /* Force leads view to always be active on mobile */
    #leads-view {
        display: block !important;
    }

    /* Simplified header */
    .header {
        padding: 1rem;
        gap: 0.75rem;
        background: #1a1a2e;
        position: sticky;
        top: 0;
        z-index: 100;
    }

    .header .search-bar {
        width: 100%;
        max-width: 100%;
    }

    .header .search-bar input {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 0.875rem 1rem;
        border-radius: 8px;
        background: white;
    }

    /* Hide desktop add button, we'll use FAB */
    #addLeadBtn {
        display: none !important;
    }

    /* View header simplified */
    .view-header {
        padding: 1rem;
        flex-direction: column;
        gap: 0.75rem;
    }

    .view-header h2 {
        font-size: 1.25rem;
        margin: 0;
    }

    /* Filters - horizontal scroll */
    .filters {
        display: flex;
        gap: 0.5rem;
        overflow-x: auto;
        padding-bottom: 0.5rem;
        -webkit-overflow-scrolling: touch;
    }

    .filters select,
    .filters input {
        font-size: 14px;
        padding: 0.5rem 0.75rem;
        min-width: 120px;
        flex-shrink: 0;
        border-radius: 6px;
    }

    /* Hide table on mobile, show mobile cards */
    #leadsTable {
        display: none !important;
    }

    /* Mobile Lead Cards */
    .mobile-leads-list {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        padding: 0 1rem 6rem 1rem;
    }

    .mobile-lead-card {
        background: white;
        border-radius: 12px;
        padding: 1rem;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        cursor: pointer;
        transition: transform 0.15s ease, box-shadow 0.15s ease;
        -webkit-tap-highlight-color: transparent;
    }

    .mobile-lead-card:active {
        transform: scale(0.98);
        box-shadow: 0 1px 4px rgba(0,0,0,0.1);
    }

    .mobile-lead-header {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .mobile-lead-name {
        font-weight: 600;
        font-size: 1rem;
        color: #1a1a2e;
        flex: 1;
        line-height: 1.3;
    }

    .mobile-lead-status {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
        border-radius: 12px;
        font-weight: 500;
        flex-shrink: 0;
    }

    .mobile-lead-status.booket {
        background: #d4edda;
        color: #155724;
    }

    .mobile-lead-status.afvist {
        background: #f8d7da;
        color: #721c24;
    }

    .mobile-lead-status.kontaktet {
        background: #cce5ff;
        color: #004085;
    }

    .mobile-lead-status.ny {
        background: #e2e3e5;
        color: #383d41;
    }

    .mobile-lead-info {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem 1rem;
        font-size: 0.875rem;
        color: #666;
    }

    .mobile-lead-info span {
        display: flex;
        align-items: center;
        gap: 0.25rem;
    }

    .mobile-lead-revenue {
        font-weight: 600;
        color: #28a745;
    }

    .mobile-lead-seller {
        background: #f0f0f0;
        padding: 0.125rem 0.5rem;
        border-radius: 4px;
        font-size: 0.75rem;
    }

    .mobile-lead-actions {
        display: flex;
        gap: 0.5rem;
        padding-top: 0.5rem;
        border-top: 1px solid #eee;
    }

    .mobile-lead-actions button {
        flex: 1;
        padding: 0.625rem;
        border-radius: 8px;
        font-size: 0.875rem;
        font-weight: 500;
        border: none;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.375rem;
    }

    .mobile-lead-actions .btn-call {
        background: #28a745;
        color: white;
    }

    .mobile-lead-actions .btn-email {
        background: #007bff;
        color: white;
    }

    .mobile-lead-actions .btn-edit {
        background: #6c757d;
        color: white;
    }

    /* Floating Action Button */
    .mobile-fab {
        position: fixed;
        bottom: 1.5rem;
        right: 1.5rem;
        width: 60px;
        height: 60px;
        border-radius: 50%;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        border: none;
        font-size: 2rem;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 4px 16px rgba(102, 126, 234, 0.4);
        cursor: pointer;
        z-index: 1000;
        -webkit-tap-highlight-color: transparent;
    }

    .mobile-fab:active {
        transform: scale(0.95);
    }

    /* Mobile Modal Optimizations */
    .modal-content {
        width: 100% !important;
        max-width: 100% !important;
        height: 100vh !important;
        max-height: 100vh !important;
        border-radius: 0 !important;
        margin: 0 !important;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .modal-header {
        position: sticky;
        top: 0;
        background: white;
        z-index: 10;
        padding: 1rem;
        border-bottom: 1px solid #eee;
    }

    .modal-header h2 {
        font-size: 1.25rem;
    }

    .close-btn {
        width: 44px;
        height: 44px;
        font-size: 1.5rem;
    }

    #leadForm {
        padding: 1rem;
        padding-bottom: 6rem;
    }

    #leadForm input,
    #leadForm select,
    #leadForm textarea {
        font-size: 16px !important; /* Prevents zoom on iOS */
        padding: 0.875rem !important;
        border-radius: 8px !important;
    }

    #leadForm label {
        font-size: 0.875rem;
        margin-bottom: 0.375rem;
    }

    .form-actions {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        padding: 1rem;
        background: white;
        border-top: 1px solid #eee;
        display: flex;
        gap: 0.75rem;
        z-index: 100;
    }

    .form-actions button {
        flex: 1;
        padding: 1rem;
        font-size: 1rem;
        border-radius: 8px;
    }

    /* Tasks section in modal */
    .tasks-section {
        margin-bottom: 1.5rem;
    }

    .add-task-row {
        flex-direction: column;
        gap: 0.5rem;
    }

    .add-task-row input,
    .add-task-row button {
        width: 100%;
    }

    /* Revenue sections */
    .revenue-section h3 {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .revenue-category h4 {
        font-size: 0.875rem;
    }

    .revenue-grid-2col {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }

    /* Hide pagination on mobile - infinite scroll would be better */
    .pagination {
        padding: 1rem;
        justify-content: center;
    }

    .pagination button {
        padding: 0.75rem 1rem;
    }

    /* Toast on mobile */
    .toast {
        bottom: 5rem;
        left: 1rem;
        right: 1rem;
        max-width: none;
        text-align: center;
    }
}

/* ============ MY ORDERS VIEW ============ */

#orders-view .view-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.orders-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.order-search-input {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    width: 200px;
    font-size: 0.875rem;
}

#orderStatusFilter,
#orderFulfillmentFilter {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: white;
    font-size: 0.875rem;
}

/* Orders Summary Panel - Compact */
.orders-summary-panel {
    background: white;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.orders-summary-panel .summary-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.orders-summary-panel .summary-error {
    text-align: center;
    padding: 0.5rem;
    color: var(--danger-color);
    font-size: 0.875rem;
}

.orders-summary-panel .summary-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.orders-summary-panel .summary-bars {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
    max-width: 400px;
}

.orders-summary-panel .summary-bar-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.orders-summary-panel .bar-label {
    min-width: 36px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.orders-summary-panel .bar-container {
    flex: 1;
    height: 16px;
    background: #f1f5f9;
    border-radius: 4px;
    overflow: hidden;
}

.orders-summary-panel .bar {
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s ease-out;
}

.orders-summary-panel .bar-current {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.orders-summary-panel .bar-last {
    background: #cbd5e1;
}

.orders-summary-panel .bar-value {
    min-width: 80px;
    text-align: right;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
}

.orders-summary-panel .summary-growth {
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    white-space: nowrap;
}

.orders-summary-panel .summary-growth.positive {
    color: #16a34a;
}

.orders-summary-panel .summary-growth.negative {
    color: #dc2626;
}

.orders-summary-panel .summary-growth .growth-label {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    .orders-summary-panel .summary-content {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }

    .orders-summary-panel .summary-bars {
        max-width: 100%;
    }
}

.orders-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.orders-table-container {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

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

.orders-table th {
    background: var(--color-chocolate);
    color: white;
    padding: 0.75rem 1rem;
    text-align: left;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.orders-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.875rem;
}

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

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

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

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

.order-status,
.order-fulfillment {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

.order-status.status-paid {
    background: #dcfce7;
    color: #166534;
}

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

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

.order-status.status-refunded {
    background: #fee2e2;
    color: #dc2626;
}

.order-fulfillment.fulfillment-fulfilled {
    background: #dcfce7;
    color: #166534;
}

.order-fulfillment.fulfillment-unfulfilled {
    background: #fef3c7;
    color: #92400e;
}

.order-fulfillment.fulfillment-partial {
    background: #dbeafe;
    color: #1e40af;
}

.orders-loading,
.orders-empty,
.orders-error {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-secondary);
}

.orders-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.orders-error .error-icon {
    width: 48px;
    height: 48px;
    background: #fee2e2;
    color: #dc2626;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

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

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

/* ============ SHOPIFY INTEGRATION STYLES ============ */

/* Products View */
#products-view .view-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.products-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.product-search-input {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    width: 250px;
    font-size: 0.875rem;
}

#productStockFilter {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: white;
    font-size: 0.875rem;
}

.view-toggle {
    display: flex;
    background: var(--border-color);
    border-radius: 6px;
    padding: 2px;
}

.view-toggle-btn {
    padding: 0.5rem;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.view-toggle-btn svg {
    width: 18px;
    height: 18px;
    stroke: var(--text-secondary);
}

.view-toggle-btn.active {
    background: white;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.view-toggle-btn.active svg {
    stroke: var(--primary-color);
}

.products-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Products Pagination */
.products-pagination {
    display: flex;
    justify-content: center;
    padding: 2rem 0;
}

.products-pagination .load-more-btn {
    min-width: 200px;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.product-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: box-shadow 0.2s, transform 0.2s;
}

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

.product-image {
    aspect-ratio: 1;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-image .no-image {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.product-info {
    padding: 1rem;
}

.product-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-sku {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.product-price {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.product-stock {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stock-badge {
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-weight: 500;
}

.stock-badge.stock-in_stock {
    background: #dcfce7;
    color: #166534;
}

.stock-badge.stock-low_stock {
    background: #fef3c7;
    color: #92400e;
}

.stock-badge.stock-out_of_stock {
    background: #fee2e2;
    color: #991b1b;
}

.stock-qty {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.product-variants {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

/* Products Table */
.products-table-container {
    overflow-x: auto;
}

.products-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.products-table th {
    background: #f8fafc;
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.875rem;
    border-bottom: 1px solid var(--border-color);
}

.products-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

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

.products-table tr:hover {
    background: #f8fafc;
}

.product-thumb {
    width: 60px;
}

.product-thumb img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
}

.no-image-small {
    width: 50px;
    height: 50px;
    background: #f1f5f9;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
}

/* Products Loading/Error States */
.products-loading,
.products-error,
.products-empty {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-secondary);
}

.products-error .error-icon {
    width: 60px;
    height: 60px;
    background: #fee2e2;
    color: #991b1b;
    font-size: 2rem;
    font-weight: bold;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.products-error p {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.products-error small {
    display: block;
    margin-bottom: 1rem;
}

.products-error .btn {
    margin-top: 0.5rem;
}

/* Shopify Panel in Lead Modal */
.shopify-section {
    background: linear-gradient(135deg, #96bf48 0%, #5b9a3f 100%);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    color: white;
}

.shopify-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.shopify-panel-header h4 {
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.shopify-panel-header h4::before {
    content: '';
    display: inline-block;
    width: 18px;
    height: 18px;
    background: white;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M6 2L3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4z'/%3E%3Cline x1='3' y1='6' x2='21' y2='6'/%3E%3Cpath d='M16 10a4 4 0 0 1-8 0'/%3E%3C/svg%3E") no-repeat center;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M6 2L3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4z'/%3E%3Cline x1='3' y1='6' x2='21' y2='6'/%3E%3Cpath d='M16 10a4 4 0 0 1-8 0'/%3E%3C/svg%3E") no-repeat center;
}

.shopify-status {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-weight: 500;
}

.shopify-status.linked {
    background: rgba(255,255,255,0.3);
}

.shopify-status.not-linked {
    background: rgba(0,0,0,0.2);
}

.shopify-panel-content {
    font-size: 0.875rem;
    text-shadow: 0 1px 2px rgba(0,0,0,0.15);
}

.shopify-panel-content p {
    margin-bottom: 0.75rem;
    opacity: 1;
}

.shopify-panel-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.75rem;
}

.shopify-panel-actions .btn {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.3);
    color: white;
}

.shopify-panel-actions .btn:hover {
    background: rgba(255,255,255,0.3);
}

.shopify-panel-actions .btn-primary {
    background: white;
    color: #5b9a3f;
    border-color: white;
}

.shopify-panel-actions .btn-primary:hover {
    background: #f0f0f0;
}

.shopify-loading {
    opacity: 0.8;
    font-style: italic;
}

/* Shopify Customer Info */
.shopify-customer-info {
    background: rgba(0,0,0,0.15);
    border-radius: 6px;
    padding: 0.75rem;
    margin-bottom: 0.75rem;
}

.shopify-stat-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.shopify-stat-row:last-child {
    margin-bottom: 0;
}

.shopify-stat {
    flex: 1;
}

.shopify-stat .stat-label {
    font-size: 0.7rem;
    opacity: 1;
    display: block;
    color: rgba(255,255,255,0.95);
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.shopify-stat .stat-value {
    font-weight: 600;
}

.shopify-yearly-totals {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255,255,255,0.2);
}

.shopify-yearly-totals h5 {
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
    opacity: 1;
    font-weight: 600;
}

.yearly-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
}

.yearly-growth {
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 0.25rem;
}

.yearly-growth.positive {
    color: #bbf7d0;
}

.yearly-growth.negative {
    color: #fecaca;
}

/* Shopify Orders */
.shopify-orders {
    margin-top: 0.75rem;
}

.shopify-orders h5 {
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
    opacity: 1;
    font-weight: 600;
}

.orders-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.order-item {
    background: rgba(0,0,0,0.15);
    border-radius: 4px;
    padding: 0.5rem;
}

.order-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    margin-bottom: 0.25rem;
}

.order-number {
    font-weight: 600;
}

.order-date {
    opacity: 1;
}

.order-details {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
}

.order-status {
    font-size: 0.7rem;
    padding: 0.1rem 0.4rem;
    border-radius: 3px;
    background: rgba(255,255,255,0.9);
    color: #3D2314;
    font-weight: 500;
}

.order-status.status-paid {
    background: rgba(22, 163, 74, 0.95);
    color: white;
}

.order-status.status-pending {
    background: rgba(180, 83, 9, 0.9);
    color: white;
    font-weight: 600;
}

.no-orders {
    font-size: 0.85rem;
    opacity: 1;
    font-style: italic;
}

/* Category Breakdown Section */
.category-breakdown {
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.category-header h5 {
    font-size: 0.8rem;
    margin: 0;
    font-weight: 600;
}

.category-header .btn-icon {
    background: transparent;
    border: none;
    color: inherit;
    cursor: pointer;
    padding: 0.25rem;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.category-header .btn-icon:hover {
    opacity: 1;
}

.category-header .refresh-icon {
    font-size: 1rem;
}

.category-content {
    font-size: 0.85rem;
}

.category-loading {
    opacity: 0.7;
    font-style: italic;
}

.category-summary {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.75rem;
    opacity: 0.9;
}

.category-summary .total-revenue {
    font-weight: 600;
}

.category-list {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.category-item {
    background: rgba(0,0,0,0.1);
    border-radius: 4px;
    padding: 0.4rem 0.5rem;
}

.category-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.25rem;
    font-size: 0.75rem;
}

.category-name {
    font-weight: 500;
}

.category-stats {
    opacity: 0.9;
}

.category-bar-container {
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
    height: 6px;
    overflow: hidden;
}

.category-bar {
    height: 100%;
    border-radius: 2px;
    transition: width 0.3s ease;
}

.cache-note {
    display: block;
    margin-top: 0.5rem;
    opacity: 0.6;
    font-size: 0.7rem;
}

/* Order Fulfillment & Tracking */
.order-fulfillment {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    margin-top: 0.35rem;
    padding-top: 0.35rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.75rem;
}

.fulfillment-status {
    padding: 0.15rem 0.5rem;
    border-radius: 3px;
    font-weight: 500;
}

.fulfillment-fulfilled {
    background: rgba(22, 163, 74, 0.95);
    color: white;
}

.fulfillment-unfulfilled {
    background: rgba(220, 38, 38, 0.95);
    color: white;
}

.fulfillment-partially_fulfilled {
    background: rgba(180, 83, 9, 0.95);
    color: white;
}

.fulfillment-in_progress,
.fulfillment-pending_fulfillment {
    background: rgba(37, 99, 235, 0.95);
    color: white;
}

.fulfillment-delivered {
    background: rgba(22, 163, 74, 0.95);
    color: white;
}

.tracking-info {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.tracking-company {
    opacity: 0.8;
}

.tracking-link {
    color: #93c5fd;
    text-decoration: underline;
}

.tracking-link:hover {
    color: #bfdbfe;
}

.tracking-number {
    font-family: monospace;
    opacity: 0.9;
}

.delivered-date,
.estimated-date {
    opacity: 0.8;
    font-size: 0.7rem;
}

.delivered-date {
    color: #4ade80;
}

.estimated-date {
    color: #fbbf24;
}

/* Shopify Search Modal */
#shopifySearchModal .modal-content {
    max-width: 500px;
}

.modal-medium {
    max-width: 700px !important;
}

.shopify-search-container {
    padding: 1rem 0;
}

.search-input-group {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.search-input-group input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.95rem;
}

.shopify-search-results {
    max-height: 300px;
    overflow-y: auto;
}

.search-hint,
.no-results {
    text-align: center;
    color: var(--text-secondary);
    padding: 2rem;
}

.search-loading {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
}

.shopify-search-result {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
}

.shopify-search-result:hover {
    background: #f8fafc;
    border-color: var(--primary-color);
}

.result-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.25rem;
}

.result-email {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.result-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Customer state colors */
.customer-state-enabled {
    color: var(--success-color);
}

.customer-state-disabled {
    color: var(--danger-color);
}

/* Shopify Onboarding Modal */
#shopifyOnboardingModal .modal-content {
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 0;
}

#shopifyOnboardingModal .modal-header {
    background: linear-gradient(135deg, #96bf48 0%, #5b9a3f 100%);
    color: white;
    padding: 1.25rem 1.5rem;
    margin: 0;
    border-radius: 0.75rem 0.75rem 0 0;
}

#shopifyOnboardingModal .modal-header h2 {
    color: white;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#shopifyOnboardingModal .modal-header h2::before {
    content: '';
    display: inline-block;
    width: 24px;
    height: 24px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M15.337 23.979l7.216-1.561s-2.604-17.613-2.625-17.758c-.022-.145-.157-.252-.303-.27-.145-.017-3.054-.267-3.054-.267s-2.027-1.97-2.247-2.19c-.22-.22-.648-.153-.815-.106-.023.007-.399.124-.99.306C11.835.903 10.944.122 9.676.03c-.127-.01-.272.015-.432.072C8.47-.618 7.553.034 6.787.759c-1.102 1.044-1.6 2.651-1.4 4.531.047.44.125.88.236 1.315-.474.146-.815.25-.854.263-.562.175-.655.22-.74.726-.064.38-1.69 13.05-1.69 13.05l12.997 3.34V.01c-.048.001-.085-.004-.085-.004zM10.78 5.53c-.68.21-1.434.443-2.222.687.222-1.15.705-2.306 1.535-2.909.33-.24.714-.393 1.122-.459.253.842.249 1.79-.435 2.681zm1.457-3.22c.27 0 .497.05.695.14-.47.172-.943.535-1.36 1.074-.54.7-.879 1.654-1.005 2.625-.682.21-1.358.42-2.003.619.354-2.257 1.776-4.458 3.673-4.458zm.605 9.907s-.784-.417-1.745-.417c-1.41 0-1.483.886-1.483 1.108 0 1.217 3.174 1.684 3.174 4.537 0 2.246-1.422 3.693-3.343 3.693-2.303 0-3.48-1.433-3.48-1.433l.617-2.042s1.214 1.044 2.24 1.044c.668 0 .942-.526.942-.911 0-1.591-2.604-1.662-2.604-4.27 0-2.195 1.577-4.322 4.766-4.322 1.225 0 1.831.351 1.831.351l-.915 2.662z'/%3E%3C/svg%3E") no-repeat center center;
    background-size: contain;
}

#shopifyOnboardingModal .modal-header .close-btn {
    color: white;
    opacity: 0.8;
}

#shopifyOnboardingModal .modal-header .close-btn:hover {
    opacity: 1;
    background: rgba(255,255,255,0.2);
}

.onboarding-section {
    background: #f8fafc;
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1.25rem;
    border: 1px solid #e2e8f0;
}

.onboarding-section h3 {
    font-size: 0.85rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.onboarding-section h3::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 16px;
    background: linear-gradient(135deg, #96bf48 0%, #5b9a3f 100%);
    border-radius: 2px;
}

#shopifyOnboardingModal .form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

#shopifyOnboardingModal .form-group {
    margin-bottom: 0;
}

#shopifyOnboardingModal .form-group.full-width {
    grid-column: 1 / -1;
    margin-top: 0.5rem;
}

#shopifyOnboardingModal .form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    color: #64748b;
    margin-bottom: 0.4rem;
}

#shopifyOnboardingModal .form-group input,
#shopifyOnboardingModal .form-group select,
#shopifyOnboardingModal .form-group textarea {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.9rem;
    background: white;
    transition: all 0.2s ease;
}

#shopifyOnboardingModal .form-group input:hover,
#shopifyOnboardingModal .form-group select:hover,
#shopifyOnboardingModal .form-group textarea:hover {
    border-color: #cbd5e1;
}

#shopifyOnboardingModal .form-group input:focus,
#shopifyOnboardingModal .form-group select:focus,
#shopifyOnboardingModal .form-group textarea:focus {
    outline: none;
    border-color: #96bf48;
    box-shadow: 0 0 0 3px rgba(150, 191, 72, 0.15);
}

#shopifyOnboardingModal .form-group input::placeholder,
#shopifyOnboardingModal .form-group textarea::placeholder {
    color: #94a3b8;
}

#shopifyOnboardingModal .error-message {
    background: #fef2f2;
    color: #dc2626;
    padding: 0.85rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    border: 1px solid #fecaca;
}

#shopifyOnboardingModal .success-message {
    background: #f0fdf4;
    color: #16a34a;
    padding: 0.85rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    border: 1px solid #bbf7d0;
}

#shopifyOnboardingModal .form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid #e2e8f0;
}

#submitOnboardingBtn {
    min-width: 160px;
    background: linear-gradient(135deg, #96bf48 0%, #5b9a3f 100%);
    border-color: #5b9a3f;
    font-weight: 500;
    padding: 0.7rem 1.25rem;
}

#submitOnboardingBtn:hover {
    background: linear-gradient(135deg, #5b9a3f 0%, #4a8832 100%);
    border-color: #4a8832;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(91, 154, 63, 0.3);
}

#submitOnboardingBtn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

#shopifyOnboardingModal .btn-secondary {
    background: white;
    color: #64748b;
    border-color: #e2e8f0;
}

#shopifyOnboardingModal .btn-secondary:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

#shopifyOnboardingForm {
    padding: 1.5rem;
}

/* B2B settings grid - 3 columns */
.form-grid-3col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

/* Welcome email option styling */
.welcome-email-option {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0,0,0,0.08);
}

.welcome-email-option .checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-primary);
}

.welcome-email-option .checkbox-label input[type="checkbox"] {
    width: 1.25rem;
    height: 1.25rem;
    accent-color: #5b9a3f;
}

/* Mobile responsive for Shopify */
@media (max-width: 768px) {
    .products-controls {
        width: 100%;
    }

    .product-search-input {
        width: 100%;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .product-info {
        padding: 0.75rem;
    }

    .product-title {
        font-size: 0.85rem;
    }

    .shopify-stat-row {
        flex-direction: column;
        gap: 0.5rem;
    }

    .shopify-panel-actions {
        flex-direction: column;
    }

    .shopify-panel-actions .btn {
        width: 100%;
        text-align: center;
    }

    .form-grid-3col {
        grid-template-columns: 1fr;
    }
}

/* Price List Modal Styling - Simply Brand Inspired */
#priceListModal .modal-content {
    max-width: 750px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(61, 35, 20, 0.25);
}

#priceListModal .modal-header {
    background: var(--color-chocolate);
    color: white;
    padding: 1.5rem 2rem;
    margin: 0;
    border-radius: 0;
}

#priceListModal .modal-header h2 {
    color: white;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.5rem;
    letter-spacing: 0.5px;
}

#priceListModal .modal-header .close-btn {
    color: white;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

#priceListModal .modal-header .close-btn:hover {
    opacity: 1;
}

.price-list-catalog-row {
    display: flex;
    gap: 1rem;
    align-items: flex-end;
}

.price-list-catalog-row select {
    flex: 1;
    border-radius: 8px;
    border: 2px solid var(--color-cream-dark);
    padding: 0.75rem 1rem;
    font-family: var(--font-body);
    transition: border-color 0.2s ease;
}

.price-list-catalog-row select:focus {
    border-color: var(--color-chocolate);
    outline: none;
}

.price-list-products-section {
    background: var(--color-cream);
    border-radius: 12px;
    padding: 1.25rem;
    margin: 1.25rem 0;
    border: none;
}

.price-list-products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--color-cream-dark);
}

.price-list-products-header label {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--color-chocolate);
    margin: 0;
}

.price-list-btn-group {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.price-list-btn-group .btn-secondary {
    background: white;
    color: var(--color-chocolate);
    border: 2px solid var(--color-cream-dark);
    border-radius: 8px;
    font-family: var(--font-body);
    font-weight: 500;
    transition: all 0.2s ease;
}

.price-list-btn-group .btn-secondary:hover {
    background: var(--color-chocolate);
    color: white;
    border-color: var(--color-chocolate);
}

.price-list-selected-count {
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-chocolate);
    background: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 2px solid var(--color-cream-dark);
}

.price-list-products-container {
    max-height: 350px;
    overflow-y: auto;
    background: white;
    border-radius: 12px;
    border: none;
    box-shadow: 0 2px 8px rgba(61, 35, 20, 0.08);
}

.price-list-products-container::-webkit-scrollbar {
    width: 8px;
}

.price-list-products-container::-webkit-scrollbar-track {
    background: var(--color-cream);
    border-radius: 4px;
}

.price-list-products-container::-webkit-scrollbar-thumb {
    background: var(--color-chocolate-light);
    border-radius: 4px;
}

.price-list-category {
    border-bottom: none;
}

.price-list-category-header {
    background: var(--color-cream);
    padding: 0.875rem 1.25rem;
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--color-chocolate);
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: sticky;
    top: 0;
    z-index: 1;
    border-bottom: 1px solid var(--color-cream-dark);
}

.price-list-category-header::before {
    content: '';
    width: 4px;
    height: 18px;
    background: var(--color-chocolate);
    border-radius: 2px;
}

.price-list-product-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem 1.25rem;
    border-bottom: 1px solid var(--color-cream);
    transition: background-color 0.2s ease;
    cursor: pointer;
}

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

.price-list-product-item:hover {
    background: var(--color-cream);
}

.price-list-product-item input[type="checkbox"] {
    width: 1.25rem;
    height: 1.25rem;
    accent-color: var(--color-chocolate);
    cursor: pointer;
}

.price-list-product-item label {
    flex: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0;
}

.price-list-product-name {
    font-family: var(--font-body);
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 400;
}

.price-list-variant-count {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--color-chocolate-light);
    background: var(--color-cream);
    padding: 0.25rem 0.625rem;
    border-radius: 12px;
}

.price-list-options-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 1.25rem 0;
    padding: 1.25rem;
    background: var(--color-cream);
    border-radius: 12px;
    border: none;
}

.price-list-option {
    display: flex;
    align-items: center;
    gap: 0.875rem;
}

.price-list-option input[type="checkbox"] {
    width: 1.25rem;
    height: 1.25rem;
    accent-color: var(--color-chocolate);
}

.price-list-option span {
    font-family: var(--font-body);
    color: var(--text-primary);
    font-size: 0.95rem;
}

#priceListModal .btn-primary {
    background: var(--color-chocolate);
    border-color: var(--color-chocolate);
    font-family: var(--font-body);
    font-weight: 600;
    padding: 0.875rem 2rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

#priceListModal .btn-primary:hover {
    background: var(--color-chocolate-light);
    border-color: var(--color-chocolate-light);
    transform: translateY(-1px);
}

.btn-sm {
    padding: 0.4rem 0.875rem;
    font-size: 0.8rem;
    border-radius: 6px;
}

/* ============ ADMIN PANEL ============ */

.admin-content {
    padding: 1.5rem;
}

.admin-section {
    background: var(--surface);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.admin-section h3 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.admin-section + .admin-section {
    margin-top: 2rem;
}

.admin-section .section-description {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.onboarding-codes-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1rem;
}

.inactive-row {
    opacity: 0.6;
}

.users-table-container {
    overflow-x: auto;
}

/* Role Badges */
.role-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.role-admin {
    background: #7C3AED;
    color: white;
}

.role-sales {
    background: #3B82F6;
    color: white;
}

.role-specialist {
    background: #10B981;
    color: white;
}

/* Status Badges */
.status-active {
    background: #DEF7EC;
    color: #03543F;
}

.status-inactive {
    background: #FDE8E8;
    color: #9B1C1C;
}

/* Large Modal (for Reclamations etc.) */
.modal-content.modal-large {
    max-width: 800px;
    width: 95%;
}

.modal-content.modal-large .form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    padding: 1.5rem;
}

.modal-content.modal-large .form-group {
    margin-bottom: 0;
}

.modal-content.modal-large .form-group.full-width {
    grid-column: 1 / -1;
}

.modal-content.modal-large .form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modal-content.modal-large .form-group input,
.modal-content.modal-large .form-group select,
.modal-content.modal-large .form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.9rem;
    background: white;
}

.modal-content.modal-large .form-group input:focus,
.modal-content.modal-large .form-group select:focus,
.modal-content.modal-large .form-group textarea:focus {
    outline: none;
    border-color: var(--color-chocolate);
    box-shadow: 0 0 0 3px rgba(61, 35, 20, 0.1);
}

.modal-content.modal-large .form-section-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0.5rem 1.5rem;
    padding: 1rem 0 0.5rem 0;
    border-top: 1px solid var(--border-color);
}

.modal-content.modal-large .form-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    padding: 0 1.5rem 1rem 1.5rem;
}

.modal-content.modal-large .form-grid-4 .form-group {
    margin-bottom: 0;
}

.modal-content.modal-large .form-grid-4 .form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modal-content.modal-large .form-grid-4 .form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.9rem;
    background: white;
}

.modal-content.modal-large .form-grid-4 .form-group select:focus {
    outline: none;
    border-color: var(--color-chocolate);
    box-shadow: 0 0 0 3px rgba(61, 35, 20, 0.1);
}

.modal-content.modal-large > form > .form-group {
    padding: 0 1.5rem 1rem 1.5rem;
}

.modal-content.modal-large > form > .form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modal-content.modal-large > form > .form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.9rem;
    background: white;
    resize: vertical;
}

.modal-content.modal-large > form > .form-group textarea:focus {
    outline: none;
    border-color: var(--color-chocolate);
    box-shadow: 0 0 0 3px rgba(61, 35, 20, 0.1);
}

/* Order Status Banner in Reclamation Modal */
.order-status-banner {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem 1.5rem;
    margin: 0 1.5rem 1rem 1.5rem;
}

.order-status-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.order-status-label {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.order-payment-badge,
.order-fulfillment-badge {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
}

.order-payment-badge.paid {
    background: #d1fae5;
    color: #065f46;
}

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

.order-payment-badge.refunded {
    background: #fee2e2;
    color: #991b1b;
}

.order-payment-badge.partially-refunded {
    background: #fce7f3;
    color: #9d174d;
}

.order-payment-badge.voided {
    background: #f3f4f6;
    color: #4b5563;
}

.order-fulfillment-badge.fulfilled {
    background: #d1fae5;
    color: #065f46;
}

.order-fulfillment-badge.unfulfilled {
    background: #fef3c7;
    color: #92400e;
}

.order-fulfillment-badge.partial {
    background: #e0e7ff;
    color: #3730a3;
}

.order-amount-display {
    margin-left: auto;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.modal-content.modal-large .form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-color);
    background: var(--color-cream);
    border-radius: 0 0 12px 12px;
}

.modal-content.modal-large .input-with-button {
    display: flex;
    gap: 0.5rem;
}

.modal-content.modal-large .input-with-button input {
    flex: 1;
}

@media (max-width: 768px) {
    .modal-content.modal-large .form-grid {
        grid-template-columns: 1fr;
    }

    .modal-content.modal-large .form-grid-4 {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .modal-content.modal-large .form-grid-4 {
        grid-template-columns: 1fr;
    }
}

/* Small Modal */
.modal-content.modal-sm {
    max-width: 500px;
}

.modal-content.modal-sm .form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    padding: 1.5rem;
}

.modal-content.modal-sm .form-group {
    margin-bottom: 0;
}

.modal-content.modal-sm .form-group.full-width {
    grid-column: 1 / -1;
}

.modal-content.modal-sm .form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.modal-content.modal-sm .form-group input,
.modal-content.modal-sm .form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.9rem;
    background: white;
}

.modal-content.modal-sm .form-group input:focus,
.modal-content.modal-sm .form-group select:focus {
    outline: none;
    border-color: var(--color-chocolate);
    box-shadow: 0 0 0 3px rgba(61, 35, 20, 0.1);
}

.modal-content.modal-sm .form-group input:disabled {
    background: var(--color-cream);
    color: var(--text-secondary);
}

.modal-content.modal-sm .form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-color);
    background: var(--color-cream);
    border-radius: 0 0 12px 12px;
}

/* Action buttons in table */
.action-buttons {
    display: flex;
    gap: 0.5rem;
}

.action-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    color: var(--text-secondary);
    transition: all 0.2s;
}

.action-btn:hover {
    background: var(--color-cream);
    color: var(--text-primary);
}

.action-btn.edit:hover {
    color: #3B82F6;
}

.action-btn.delete:hover {
    color: #EF4444;
}

.action-btn svg {
    width: 18px;
    height: 18px;
}

/* Searchable Select Dropdown */
.searchable-select {
    position: relative;
    width: 100%;
}

.searchable-select input[type="text"] {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.9rem;
    background: white;
}

.searchable-select input[type="text"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(61, 35, 20, 0.1);
}

.searchable-select-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 300px;
    overflow-y: auto;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    display: none;
}

.searchable-select-dropdown.visible {
    display: block;
}

.searchable-select-item {
    padding: 8px 12px;
    cursor: pointer;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border-color);
}

.searchable-select-item:last-child {
    border-bottom: none;
}

.searchable-select-item:hover {
    background: var(--color-cream);
}

.searchable-select-item.selected {
    background: var(--primary-color);
    color: white;
}

.searchable-select-item.category {
    font-weight: 600;
    background: var(--color-cream-dark);
    color: var(--text-primary);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.searchable-select-item.category:hover {
    background: var(--color-cream);
}

.searchable-select-item.subcategory {
    padding-left: 20px;
}

.searchable-select-clear {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 1.2rem;
    line-height: 1;
    padding: 4px;
}

.searchable-select-clear:hover {
    color: var(--danger-color);
}

/* Filter searchable select - smaller size */
.filter-searchable-select {
    min-width: 180px;
    display: inline-block;
}

.filter-searchable-select input[type="text"] {
    padding: 6px 10px;
    font-size: 0.85rem;
}

/* ============================================
   RECLAMATIONS VIEW
   ============================================ */

.reclamation-stats {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.reclamation-stats .stat-card {
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 120px;
}

.reclamation-stats .stat-card.stat-warning {
    border-left: 4px solid #f59e0b;
}

.reclamation-stats .stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
}

.reclamation-stats .stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.reclamation-filters {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.reclamation-filters select,
.reclamation-filters input {
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.875rem;
    min-width: 150px;
}

.reclamation-filters .search-input {
    flex: 1;
    min-width: 200px;
}

.reclamation-table-container {
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    overflow-x: auto;
}

.reclamation-table {
    font-size: 0.85rem;
}

.reclamation-table th {
    white-space: nowrap;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.reclamation-table td {
    vertical-align: middle;
}

.reclamation-table tr {
    cursor: pointer;
    transition: background 0.15s ease;
}

.reclamation-table tbody tr:hover {
    background: var(--row-hover);
}

/* Reclamation Type Badges */
.rec-type-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
}

.rec-type-forkert_emballage { background: #fef3c7; color: #92400e; }
.rec-type-odelagte_produkter { background: #fee2e2; color: #991b1b; }
.rec-type-ikke_modtaget { background: #fecaca; color: #b91c1c; }
.rec-type-delvis_leveret { background: #fed7aa; color: #c2410c; }
.rec-type-forkert_produkt { background: #e0e7ff; color: #3730a3; }
.rec-type-mangler_produkt { background: #fce7f3; color: #9d174d; }
.rec-type-kvalitetsproblem { background: #dbeafe; color: #1e40af; }
.rec-type-andet { background: #f3f4f6; color: #374151; }

/* Reclamation Status Badges */
.rec-status-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
}

.rec-status-ny { background: #dbeafe; color: #1e40af; }
.rec-status-under_review { background: #fef3c7; color: #92400e; }
.rec-status-tpl_kontaktet { background: #c7d2fe; color: #3730a3; }
.rec-status-afventer_svar { background: #fed7aa; color: #c2410c; }
.rec-status-case_faerdig { background: #d1fae5; color: #065f46; }
.rec-status-behover_ingen_handling { background: #e5e7eb; color: #374151; }

/* Handling Badges */
.rec-handling-badge {
    display: inline-block;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-size: 0.7rem;
    font-weight: 500;
    white-space: nowrap;
}

/* Case handling */
.rec-case-behover_ikke_case { background: #e5e7eb; color: #6b7280; }
.rec-case-case_skal_oprettes { background: #fecaca; color: #b91c1c; }
.rec-case-case_er_oprettet { background: #fef3c7; color: #92400e; }
.rec-case-case_afsluttet { background: #d1fae5; color: #065f46; }

/* Product handling */
.rec-product-behover_ingen_handling { background: #e5e7eb; color: #6b7280; }
.rec-product-ny_pakke_sendt { background: #d1fae5; color: #065f46; }
.rec-product-mangler_haandtering { background: #fecaca; color: #b91c1c; }
.rec-product-afventer { background: #fef3c7; color: #92400e; }
.rec-product-refunderet { background: #dbeafe; color: #1e40af; }

/* Return handling */
.rec-return-behover_ingen_handling { background: #e5e7eb; color: #6b7280; }
.rec-return-retur_modtaget { background: #d1fae5; color: #065f46; }
.rec-return-afventer_retur { background: #fef3c7; color: #92400e; }
.rec-return-ingen_retur_kraevet { background: #e5e7eb; color: #6b7280; }

/* Carrier badges */
.rec-carrier-badge {
    display: inline-block;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-size: 0.7rem;
    font-weight: 500;
    background: #f3f4f6;
    color: #374151;
}

/* Source badges */
.rec-source-badge {
    display: inline-block;
    padding: 0.15rem 0.35rem;
    border-radius: 3px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
}

.rec-source-b2b { background: #dbeafe; color: #1e40af; }
.rec-source-b2c { background: #fce7f3; color: #9d174d; }

/* Reclamation order number with source */
.rec-order-cell {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.rec-order-number {
    font-weight: 600;
    font-family: 'Roboto Condensed', sans-serif;
}

/* Notes truncated */
.rec-notes-cell {
    max-width: 150px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-secondary);
    font-size: 0.8rem;
}

/* Form enhancements */
.form-section-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 1.5rem 0 0.75rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.form-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.input-with-button {
    display: flex;
    gap: 0.5rem;
}

.input-with-button input {
    flex: 1;
}

/* Assigned user display */
.rec-assigned {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.rec-assigned-initials {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    font-size: 0.65rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rec-assigned-name {
    font-size: 0.8rem;
    color: var(--text-primary);
}

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

@media (max-width: 768px) {
    .reclamation-stats {
        flex-wrap: wrap;
    }

    .reclamation-filters {
        flex-direction: column;
    }

    .reclamation-filters select,
    .reclamation-filters input {
        width: 100%;
    }

    .form-grid-4 {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   ALL ORDERS VIEW (Specialist)
   ============================================ */

.order-stats {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.order-stats .stat-card {
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 120px;
}

.order-stats .stat-card.stat-b2b {
    border-left: 4px solid #1e40af;
}

.order-stats .stat-card.stat-b2c {
    border-left: 4px solid #9d174d;
}

.order-stats .stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
}

.order-stats .stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.order-filters {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.order-filters select,
.order-filters input {
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.875rem;
    min-width: 150px;
}

.order-filters .search-input {
    flex: 1;
    min-width: 200px;
}

.allorders-table-container {
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    overflow-x: auto;
}

.allorders-table {
    font-size: 0.85rem;
}

.allorders-table th {
    white-space: nowrap;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.allorders-table td {
    vertical-align: middle;
}

.allorders-table tr {
    cursor: pointer;
    transition: background 0.15s ease;
}

.allorders-table tbody tr:hover {
    background: var(--row-hover);
}

/* Source badges for orders */
.order-source-badge {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

.order-source-b2b { background: #dbeafe; color: #1e40af; }
.order-source-b2c { background: #fce7f3; color: #9d174d; }

/* Order status badges */
.order-status-badge {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
}

.order-status-paid { background: #d1fae5; color: #065f46; }
.order-status-pending { background: #fef3c7; color: #92400e; }
.order-status-refunded { background: #fee2e2; color: #991b1b; }

.order-fulfillment-badge {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
}

.fulfillment-fulfilled { background: #d1fae5; color: #065f46; }
.fulfillment-unfulfilled { background: #fef3c7; color: #92400e; }
.fulfillment-partial { background: #e0e7ff; color: #3730a3; }

.order-amount {
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 600;
}

.order-customer {
    font-weight: 500;
}

.order-email {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.order-date {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 768px) {
    .order-stats {
        flex-wrap: wrap;
    }

    .order-filters {
        flex-direction: column;
    }

    .order-filters select,
    .order-filters input {
        width: 100%;
    }
}

/* ===========================================
   Reclamation Order Status Badges
   =========================================== */

.order-status-cell {
    text-align: center;
    min-width: 100px;
}

.shopify-status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.shopify-status-badge.status-paid {
    background: #dcfce7;
    color: #166534;
}

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

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

.shopify-status-badge.status-partially-refunded {
    background: #ffedd5;
    color: #9a3412;
}

.shopify-status-badge.status-voided {
    background: #f3f4f6;
    color: #4b5563;
}

.shopify-status-badge.status-authorized {
    background: #dbeafe;
    color: #1e40af;
}

.order-status-loading {
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-style: italic;
}

.order-status-na {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.order-status-error {
    color: var(--danger-color);
    font-size: 0.75rem;
}

/* ===========================================
   Completed Cases Section
   =========================================== */

.section-subtitle {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 1.5rem 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
}

.completed-cases-section {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.completed-subtitle {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    user-select: none;
    color: var(--text-secondary);
    transition: color 0.2s;
}

.completed-subtitle:hover {
    color: var(--text-primary);
}

.toggle-icon {
    font-size: 0.8rem;
    transition: transform 0.2s;
}

.completed-cases-table {
    opacity: 0.85;
}

.completed-cases-table tbody tr {
    background: #fafafa;
}

.completed-cases-table tbody tr:hover {
    background: #f5f5f5;
}

/* ===========================================
   Product Source Badges
   =========================================== */

.product-source-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 1;
}

.product-source-badge.source-b2b {
    background: #3D2314;
    color: white;
}

.product-source-badge.source-b2c {
    background: #2563eb;
    color: white;
}

.product-source-badge-table {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

.product-source-badge-table.source-b2b {
    background: #3D2314;
    color: white;
}

.product-source-badge-table.source-b2c {
    background: #2563eb;
    color: white;
}

/* Product Status Badges */
.stock-badge.product-status-draft {
    background: #f59e0b;
    color: white;
}

.stock-badge.product-status-archived {
    background: #6b7280;
    color: white;
}

/* Product Edit Modal - Two Column Layout */
.product-edit-body {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 2rem;
    max-height: 70vh;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.product-edit-left,
.product-edit-right {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.product-edit-section {
    background: var(--background);
    border-radius: 12px;
    padding: 1.25rem;
    border: 1px solid var(--border-color);
}

.product-edit-section h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 1rem 0;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.product-edit-header {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border-color);
}

.product-edit-image {
    width: 120px;
    height: 120px;
    border-radius: 12px;
    background: var(--background);
    border: 1px solid var(--border-color);
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-edit-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-edit-image .no-image {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-align: center;
    padding: 1rem;
}

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

.product-edit-info h3 {
    font-size: 1.25rem;
    margin: 0 0 0.25rem 0;
    color: var(--text-primary);
    line-height: 1.3;
}

.product-edit-sku {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-family: 'SF Mono', Monaco, monospace;
    margin: 0.5rem 0 0 0;
}

.product-edit-handle {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin: 0.25rem 0 0 0;
    opacity: 0.7;
}

.product-edit-info .product-source-badge {
    display: inline-block;
    margin-bottom: 0.5rem;
}

/* Status help cards */
.status-help-cards {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}

.status-help-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.75rem;
    border-radius: 8px;
    background: var(--surface);
    border: 1px solid var(--border-color);
    transition: all 0.15s ease;
}

.status-help-card .status-icon {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.status-help-card.status-active .status-icon {
    background: var(--success-color);
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15);
}

.status-help-card.status-draft .status-icon {
    background: var(--warning-color);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

.status-help-card.status-archived .status-icon {
    background: #6b7280;
    box-shadow: 0 0 0 3px rgba(107, 114, 128, 0.15);
}

.status-help-card strong {
    font-size: 0.8rem;
    color: var(--text-primary);
    display: block;
}

.status-help-card p {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin: 0.15rem 0 0 0;
}

/* SEO Preview */
.seo-preview {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.seo-preview-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    display: block;
    margin-bottom: 0.75rem;
}

.seo-preview-content {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid var(--border-color);
}

.seo-preview-title {
    font-size: 1.1rem;
    color: #1a0dab;
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.seo-preview-url {
    font-size: 0.8rem;
    color: #006621;
    margin-bottom: 0.35rem;
}

.seo-preview-desc {
    font-size: 0.85rem;
    color: #545454;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.seo-counter {
    float: right;
    margin-top: 0.35rem;
}

/* Metadata section */
.product-meta-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.meta-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.meta-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.meta-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.meta-value {
    font-size: 0.85rem;
    color: var(--text-primary);
    font-weight: 500;
}

.meta-value.meta-mono {
    font-family: 'SF Mono', Monaco, monospace;
    font-size: 0.8rem;
    font-weight: 400;
}

/* Field help text */
.field-help {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.field-help strong {
    color: var(--text-primary);
}

/* Variants list in modal */
.product-edit-variants {
    background: var(--background);
    border-radius: 12px;
    padding: 1.25rem;
    border: 1px solid var(--border-color);
}

.product-edit-variants h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 1rem 0;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.variants-list {
    background: var(--surface);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.variant-item {
    display: grid;
    grid-template-columns: 1fr auto auto auto;
    gap: 1rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
    align-items: center;
}

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

.variant-title {
    font-weight: 500;
    color: var(--text-primary);
}

.variant-sku {
    color: var(--text-secondary);
    font-family: 'SF Mono', Monaco, monospace;
    font-size: 0.8rem;
}

.variant-price {
    font-weight: 600;
    color: var(--text-primary);
}

.variant-stock {
    color: var(--text-secondary);
}

.variant-stock.out-of-stock {
    color: var(--danger);
    font-weight: 500;
}

/* Enhanced variant item with two rows */
.variant-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
}

.variant-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.variant-details {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.variant-compare-price {
    color: var(--text-secondary);
    text-decoration: line-through;
    font-size: 0.85rem;
}

.variant-barcode {
    font-family: 'SF Mono', Monaco, monospace;
    font-size: 0.75rem;
    color: var(--text-secondary);
    background: var(--surface-elevated);
    padding: 0.15rem 0.4rem;
    border-radius: 3px;
}

/* Category display */
.product-category-display {
    padding: 0.5rem 0.75rem;
    background: var(--surface-elevated);
    border-radius: 6px;
    font-size: 0.9rem;
}

.category-path {
    color: var(--text-primary);
}

.no-category {
    color: var(--text-secondary);
    font-style: italic;
}

/* Collections display */
.product-collections-display {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.collection-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.6rem;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.no-collections {
    color: var(--text-secondary);
    font-style: italic;
    font-size: 0.9rem;
}

/* Pricing section */
.product-pricing-section .pricing-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.pricing-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.5rem;
    background: var(--surface-elevated);
    border-radius: 6px;
}

.pricing-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pricing-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.pricing-value.pricing-compare {
    text-decoration: line-through;
    color: var(--text-secondary);
    font-weight: 400;
}

.pricing-value.pricing-barcode {
    font-family: 'SF Mono', Monaco, monospace;
    font-size: 0.85rem;
    font-weight: 400;
}

/* Publishing status */
.product-publishing-section .publishing-status {
    padding: 0.75rem;
    background: var(--surface-elevated);
    border-radius: 6px;
}

.publishing-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.publishing-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.publishing-indicator.publishing-active {
    background-color: var(--success);
    box-shadow: 0 0 6px var(--success);
}

.publishing-indicator.publishing-inactive {
    background-color: var(--text-secondary);
}

.publishing-indicator.publishing-unknown {
    background-color: var(--warning);
}

/* Enhanced metadata grid */
.product-meta-grid .meta-item.full-width {
    grid-column: 1 / -1;
}

.meta-value.meta-link a {
    color: var(--primary);
    text-decoration: none;
}

.meta-value.meta-link a:hover {
    text-decoration: underline;
}

/* Small button style */
.btn.btn-small {
    padding: 0.35rem 0.6rem;
    font-size: 0.8rem;
}

.btn.btn-small svg {
    vertical-align: middle;
}

.product-card .product-image {
    position: relative;
}

/* Responsive adjustments for product edit modal */
@media (max-width: 900px) {
    .product-edit-body {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   SPECIALIST DASHBOARD - PROFESSIONAL REDESIGN
   ============================================ */

/* Dashboard Header */
#specialist-dashboard-view .view-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#specialist-dashboard-view .dashboard-date {
    font-size: 0.95rem;
    color: var(--text-secondary);
    text-transform: capitalize;
}

/* Main Grid Layout */
.specialist-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: auto auto auto;
    gap: 1.25rem;
    padding: 1.5rem;
}

/* Dashboard Cards Base */
.dashboard-card {
    background: var(--card-bg);
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.05);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.card-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 2rem;
    color: var(--text-secondary);
    min-height: 120px;
}

.card-error {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    color: #dc2626;
    background: rgba(220, 38, 38, 0.05);
}

.card-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
}

.card-header h3 {
    margin: 0;
    font-family: var(--font-headings);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-content {
    padding: 1.25rem;
}

/* Hero Sales Card */
.sales-hero-card {
    grid-column: span 2;
    grid-row: span 2;
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a5f4a 100%);
    color: white;
}

.sales-hero-card .hero-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 220px;
}

.hero-label {
    font-size: 0.85rem;
    font-weight: 500;
    opacity: 0.85;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.75rem;
}

.hero-amount {
    font-family: var(--font-headings);
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 0.5rem;
}

.hero-amount .currency {
    font-size: 1.5rem;
    font-weight: 500;
    opacity: 0.8;
    margin-left: 0.25rem;
}

.hero-amount.negative {
    color: #fca5a5;
}

.hero-orders {
    font-size: 1rem;
    opacity: 0.8;
    margin-bottom: auto;
}

.hero-trend {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255,255,255,0.15);
    border-radius: 24px;
    font-size: 0.9rem;
    font-weight: 500;
    align-self: flex-start;
    margin-top: 1rem;
}

.hero-trend.positive {
    background: rgba(16, 185, 129, 0.25);
}

.hero-trend.negative {
    background: rgba(239, 68, 68, 0.25);
}

.trend-icon {
    font-size: 1.1rem;
}

.trend-value {
    font-weight: 700;
}

.trend-label {
    opacity: 0.8;
    font-size: 0.8rem;
}

/* Channel Cards (B2B/B2C) */
.channel-card {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
}

.channel-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.channel-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: white;
}

.channel-icon.b2b-icon {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a5f4a 100%);
}

.channel-icon.b2c-icon {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}

.channel-name {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.channel-amount {
    font-family: var(--font-headings);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.channel-amount.negative {
    color: #ef4444;
}

.channel-comparison {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.comp-label {
    opacity: 0.7;
}

.channel-change {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    border-radius: 16px;
    font-size: 0.8rem;
    font-weight: 600;
    align-self: flex-start;
}

.channel-change.positive {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}

.channel-change.negative {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

.channel-change.neutral {
    background: var(--bg-secondary);
    color: var(--text-secondary);
}

/* Year Comparison Card */
.comparison-card {
    grid-column: span 2;
    padding: 1.25rem;
}

.comparison-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.comparison-header h4 {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.comparison-badge {
    padding: 0.35rem 0.75rem;
    border-radius: 16px;
    font-size: 0.8rem;
    font-weight: 600;
}

.comparison-badge.positive {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}

.comparison-badge.negative {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

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

.comparison-bars {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
}

.bar-row {
    display: grid;
    grid-template-columns: 80px 1fr 100px;
    align-items: center;
    gap: 1rem;
}

.bar-row .bar-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.bar-track {
    height: 28px;
    background: var(--bg-secondary);
    border-radius: 6px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    border-radius: 6px;
    transition: width 0.6s ease;
}

.bar-fill.current {
    background: linear-gradient(90deg, var(--primary-color), #2d8b6f);
}

.bar-fill.previous {
    background: linear-gradient(90deg, #9ca3af, #6b7280);
}

.bar-row .bar-value {
    font-family: var(--font-headings);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: right;
}

.comparison-diff {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: var(--bg-secondary);
    border-radius: 8px;
}

.diff-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.diff-value {
    font-family: var(--font-headings);
    font-weight: 600;
}

.comparison-diff.positive .diff-value {
    color: #059669;
}

.comparison-diff.negative .diff-value {
    color: #dc2626;
}

/* Reclamation Stats Card */
.reclamation-card {
    grid-column: span 2;
}

.reclamation-card .card-content {
    padding: 1rem;
}

/* Reclamation Stats Grid */
.reclamation-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
}

.reclamation-stats-grid .stat-card {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    transition: transform 0.15s ease;
}

.reclamation-stats-grid .stat-card:hover {
    transform: scale(1.02);
}

.reclamation-stats-grid .stat-card.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    grid-column: span 4;
}

.reclamation-stats-grid .stat-card.error {
    background: rgba(220, 38, 38, 0.1);
    color: #dc2626;
    grid-column: span 4;
}

.reclamation-stats-grid .stat-value {
    display: block;
    font-family: var(--font-headings);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.reclamation-stats-grid .stat-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.reclamation-stats-grid .stat-card.stat-warning {
    border-bottom: 3px solid #f59e0b;
}

.reclamation-stats-grid .stat-card.stat-success {
    border-bottom: 3px solid #10b981;
}

.reclamation-stats-grid .stat-card.stat-info {
    border-bottom: 3px solid #3b82f6;
}

.reclamation-stats-grid .stat-card.stat-primary {
    border-bottom: 3px solid var(--primary-color);
}

/* Activity Card */
.activity-card {
    grid-column: span 2;
    max-height: 400px;
    display: flex;
    flex-direction: column;
}

.activity-card .card-content {
    overflow-y: auto;
    flex: 1;
}

/* Recent Reclamations List */
.recent-reclamations-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.recent-reclamations-list .loading-text,
.recent-reclamations-list .error-text,
.recent-reclamations-list .empty-text {
    color: var(--text-secondary);
    text-align: center;
    padding: 2rem;
}

.recent-reclamation-item {
    display: grid;
    grid-template-columns: 1fr 2fr auto;
    gap: 1rem;
    align-items: center;
    padding: 0.875rem 1rem;
    background: var(--bg-secondary);
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.recent-reclamation-item:hover {
    background: var(--bg-hover);
    transform: translateX(4px);
}

.reclamation-order {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.reclamation-order .order-number {
    font-family: var(--font-headings);
    font-weight: 600;
    color: var(--text-primary);
}

.reclamation-order .source-badge {
    font-size: 0.65rem;
    font-weight: 600;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    text-transform: uppercase;
}

.reclamation-order .source-badge.b2b {
    background: var(--primary-color);
    color: white;
}

.reclamation-order .source-badge.b2c {
    background: #2563eb;
    color: white;
}

.reclamation-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.reclamation-info .reclamation-type {
    font-size: 0.9rem;
    color: var(--text-primary);
}

.reclamation-info .reclamation-date {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.reclamation-status .status-badge {
    font-size: 0.75rem;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-weight: 500;
    white-space: nowrap;
}

.reclamation-status .status-badge.status-ny {
    background: #dbeafe;
    color: #1d4ed8;
}

.reclamation-status .status-badge.status-under_review {
    background: #fef3c7;
    color: #b45309;
}

.reclamation-status .status-badge.status-tpl_kontaktet {
    background: #e0e7ff;
    color: #4338ca;
}

.reclamation-status .status-badge.status-afventer_svar {
    background: #fce7f3;
    color: #be185d;
}

.reclamation-status .status-badge.status-case_faerdig {
    background: #d1fae5;
    color: #047857;
}

.reclamation-status .status-badge.status-behover_ingen_handling {
    background: #f3f4f6;
    color: #4b5563;
}

/* Responsive - Tablet */
@media (max-width: 1024px) {
    .specialist-dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .sales-hero-card {
        grid-column: span 2;
        grid-row: span 1;
    }

    .sales-hero-card .hero-content {
        min-height: auto;
    }

    .hero-amount {
        font-size: 2.5rem;
    }

    .comparison-card {
        grid-column: span 2;
    }

    .reclamation-card,
    .activity-card {
        grid-column: span 2;
    }
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .specialist-dashboard-grid {
        grid-template-columns: 1fr;
        padding: 1rem;
        gap: 1rem;
    }

    .sales-hero-card,
    .channel-card,
    .comparison-card,
    .reclamation-card,
    .activity-card {
        grid-column: span 1;
    }

    .hero-amount {
        font-size: 2rem;
    }

    .hero-amount .currency {
        font-size: 1rem;
    }

    .bar-row {
        grid-template-columns: 60px 1fr 80px;
        gap: 0.5rem;
    }

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

    .reclamation-stats-grid .stat-card.loading,
    .reclamation-stats-grid .stat-card.error {
        grid-column: span 2;
    }

    .recent-reclamation-item {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .activity-card {
        max-height: 300px;
    }
}

/* ============================================
   ORDER DETAIL MODAL
   ============================================ */

.order-detail-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, var(--color-cream) 0%, #fff 100%);
    border-bottom: 1px solid var(--border-color);
}

.order-detail-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.order-detail-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-chocolate);
}

/* Order Detail Tabs */
.order-detail-tabs {
    display: flex;
    border-bottom: 2px solid var(--border-color);
    padding: 0 1.5rem;
    background: #fafafa;
}

.order-tab-btn {
    padding: 0.875rem 1.25rem;
    background: none;
    border: none;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s ease;
}

.order-tab-btn:hover {
    color: var(--text-primary);
    background: rgba(0,0,0,0.02);
}

.order-tab-btn.active {
    color: var(--color-chocolate);
    border-bottom-color: var(--color-chocolate);
    background: #fff;
}

/* Order Tab Content */
.order-tab-content {
    display: none;
    padding: 1.5rem;
}

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

/* Order Items Table */
.order-items-container {
    overflow-x: auto;
}

.order-items-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.order-items-table th,
.order-items-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.order-items-table th {
    background: var(--color-cream);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--text-secondary);
}

.order-items-table td {
    vertical-align: middle;
}

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

.order-items-table tr:hover td {
    background: rgba(0,0,0,0.01);
}

/* Fulfillment Cards */
.fulfillment-card {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    background: #fff;
}

.fulfillment-card:last-child {
    margin-bottom: 0;
}

.fulfillment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.fulfillment-status {
    font-weight: 600;
    font-size: 0.95rem;
}

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

.fulfillment-status.unfulfilled {
    color: var(--color-warning);
}

.fulfillment-date {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.fulfillment-tracking {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px dashed var(--border-color);
}

.fulfillment-tracking-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.fulfillment-tracking-number {
    display: block;
    margin-top: 0.25rem;
    color: var(--color-chocolate);
    text-decoration: none;
    font-weight: 500;
}

.fulfillment-tracking-number:hover {
    text-decoration: underline;
}

.fulfillment-carrier {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

/* Order Source Badges */
.order-source-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.order-source-badge.b2b {
    background: #e3f2fd;
    color: #1565c0;
}

.order-source-badge.b2c {
    background: #fce4ec;
    color: #c2185b;
}

/* Order Status Badges (updated for detail modal) */
.order-payment-badge,
.order-fulfillment-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.order-payment-badge.paid {
    background: #e8f5e9;
    color: #2e7d32;
}

.order-payment-badge.pending {
    background: #fff3e0;
    color: #ef6c00;
}

.order-payment-badge.refunded {
    background: #ffebee;
    color: #c62828;
}

.order-payment-badge.partially-refunded {
    background: #fff8e1;
    color: #f57f17;
}

.order-fulfillment-badge.fulfilled {
    background: #e8f5e9;
    color: #2e7d32;
}

.order-fulfillment-badge.unfulfilled {
    background: #fff3e0;
    color: #ef6c00;
}

.order-fulfillment-badge.partially-fulfilled {
    background: #e3f2fd;
    color: #1565c0;
}

/* Empty state for tabs */
.order-tab-content .empty-state {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
    font-style: italic;
}

/* Responsive */
@media (max-width: 768px) {
    .order-detail-banner {
        flex-direction: column;
        gap: 0.75rem;
        align-items: flex-start;
    }

    .order-detail-tabs {
        overflow-x: auto;
        padding: 0 1rem;
    }

    .order-tab-btn {
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
        white-space: nowrap;
    }

    .order-tab-content {
        padding: 1rem;
    }

    .order-items-table th,
    .order-items-table td {
        padding: 0.5rem;
        font-size: 0.85rem;
    }
}

/* ============================================
   CHANGELOG VIEW
   ============================================ */

.changelog-subtitle {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-left: 1rem;
}

.changelog-content {
    padding: 2rem;
    max-width: 900px;
}

.changelog-timeline {
    position: relative;
    padding-left: 2rem;
}

.changelog-timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
}

/* Changelog Entry */
.changelog-entry {
    position: relative;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.changelog-entry:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.changelog-entry::before {
    content: '';
    position: absolute;
    left: -2rem;
    top: 6px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--color-chocolate);
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px var(--color-chocolate);
}

.changelog-entry.minor::before {
    background: var(--text-secondary);
    box-shadow: 0 0 0 2px var(--text-secondary);
}

.changelog-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.changelog-version {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-chocolate);
}

.changelog-date {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.changelog-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.changelog-tag {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.changelog-tag.feature {
    background: #e8f5e9;
    color: #2e7d32;
}

.changelog-tag.fix {
    background: #fff3e0;
    color: #ef6c00;
}

.changelog-tag.improvement {
    background: #e3f2fd;
    color: #1565c0;
}

.changelog-tag.security {
    background: #fce4ec;
    color: #c2185b;
}

.changelog-tag.breaking {
    background: #ffebee;
    color: #c62828;
}

.changelog-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.changelog-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

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

.changelog-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    line-height: 1.5;
}

.changelog-list li::before {
    content: '•';
    position: absolute;
    left: 0.5rem;
    color: var(--color-chocolate);
    font-weight: bold;
}

.changelog-list li.added::before {
    content: '+';
    color: #2e7d32;
}

.changelog-list li.fixed::before {
    content: '✓';
    color: #ef6c00;
}

.changelog-list li.changed::before {
    content: '~';
    color: #1565c0;
}

.changelog-list li.removed::before {
    content: '-';
    color: #c62828;
}

/* Empty changelog state */
.changelog-empty {
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
}

.changelog-empty svg {
    width: 64px;
    height: 64px;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Responsive */
@media (max-width: 768px) {
    .changelog-content {
        padding: 1rem;
    }

    .changelog-timeline {
        padding-left: 1.5rem;
    }

    .changelog-entry::before {
        left: -1.5rem;
        width: 10px;
        height: 10px;
    }

    .changelog-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .changelog-version {
        font-size: 1.1rem;
    }
}

/* ================================
   Audience Management Styles
   ================================ */

.audiences-content {
    padding: 1.5rem;
}

.audiences-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0;
}

.audiences-tabs .tab-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    background: none;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s ease;
}

.audiences-tabs .tab-btn:hover {
    color: var(--text-primary);
}

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

.tab-content {
    display: none;
}

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

/* Segments List */
.segments-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.segment-card {
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.25rem;
    transition: box-shadow 0.2s ease;
}

.segment-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.segment-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.segment-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.segment-status {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-weight: 500;
}

.segment-status.active {
    background: rgba(34, 197, 94, 0.1);
    color: var(--success-color);
}

.segment-status.inactive {
    background: rgba(156, 163, 175, 0.1);
    color: #9ca3af;
}

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

.segment-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.segment-stats {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: var(--cream);
    border-radius: 6px;
}

.segment-stat {
    display: flex;
    flex-direction: column;
}

.segment-stat-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.segment-stat-value {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.segment-platforms {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.platform-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.65rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.platform-badge.klaviyo {
    background: rgba(0, 0, 0, 0.05);
    color: #000;
}

.platform-badge.linkedin {
    background: rgba(0, 119, 181, 0.1);
    color: #0077b5;
}

.platform-badge.google {
    background: rgba(66, 133, 244, 0.1);
    color: #4285f4;
}

.platform-badge.meta {
    background: rgba(24, 119, 242, 0.1);
    color: #1877f2;
}

.platform-badge .sync-status {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.platform-badge .sync-status.success {
    background: var(--success-color);
}

.platform-badge .sync-status.error {
    background: var(--danger-color);
}

.platform-badge .sync-status.pending {
    background: var(--warning-color);
}

.platform-badge .sync-status.syncing {
    background: #3b82f6;
    animation: pulse 1s infinite;
}

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

/* Platforms Grid */
.platforms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

.platform-card {
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.25rem;
    position: relative;
}

.platform-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.platform-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.platform-icon.klaviyo {
    background: rgba(0, 0, 0, 0.05);
}

.platform-icon.linkedin {
    background: rgba(0, 119, 181, 0.1);
}

.platform-icon.google {
    background: rgba(66, 133, 244, 0.1);
}

.platform-icon.meta {
    background: rgba(24, 119, 242, 0.1);
}

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

.platform-card-title h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.platform-card-title span {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.platform-connection-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.platform-connection-status .status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.platform-connection-status.connected .status-dot {
    background: var(--success-color);
}

.platform-connection-status.disconnected .status-dot {
    background: var(--danger-color);
}

.platform-connection-status.not-configured .status-dot {
    background: #9ca3af;
}

.platform-card-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.add-platform-card {
    border: 2px dashed var(--border-color);
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.add-platform-card:hover {
    border-color: var(--primary-color);
    background: var(--cream);
}

.add-platform-card span {
    font-size: 2rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.add-platform-card p {
    color: var(--text-secondary);
}

/* Sync Log Table */
.sync-log-container {
    overflow-x: auto;
}

.sync-log-container .data-table {
    min-width: 800px;
}

/* Segment Modal */
.segment-rules-section {
    margin: 1.5rem 0;
    padding: 1rem;
    background: var(--cream);
    border-radius: 8px;
}

.segment-rules-section h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
}

.rules-operator {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.rules-operator select {
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

#rulesContainer {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.rule-row {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    padding: 0.75rem;
    background: var(--surface);
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.rule-row select,
.rule-row input {
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 0.9rem;
}

.rule-row select.rule-field {
    min-width: 140px;
}

.rule-row select.rule-operator {
    min-width: 120px;
}

.rule-row input.rule-value {
    flex: 1;
    min-width: 150px;
}

.rule-row .btn-remove-rule {
    padding: 0.35rem 0.5rem;
    background: none;
    border: none;
    color: var(--danger-color);
    cursor: pointer;
    font-size: 1.1rem;
}

.rule-row .btn-remove-rule:hover {
    background: rgba(239, 68, 68, 0.1);
    border-radius: 4px;
}

/* Segment Preview */
.segment-preview-section {
    margin: 1.5rem 0;
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.preview-header h3 {
    font-size: 1rem;
}

.segment-preview {
    max-height: 200px;
    overflow-y: auto;
    padding: 1rem;
    background: var(--cream);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.preview-placeholder {
    color: var(--text-secondary);
    font-style: italic;
    text-align: center;
}

.preview-count {
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.preview-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.preview-item {
    padding: 0.35rem 0.65rem;
    background: var(--surface);
    border-radius: 4px;
    font-size: 0.85rem;
    border: 1px solid var(--border-color);
}

/* Segment Platforms Section */
.segment-platforms-section {
    margin: 1.5rem 0;
}

.segment-platforms-section h3 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

#segmentPlatformsContainer {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.platform-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--cream);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.platform-checkbox:hover {
    background: var(--cream-dark);
}

.platform-checkbox input {
    width: 18px;
    height: 18px;
}

.platform-checkbox label {
    cursor: pointer;
}

/* Platform Fields in Modal */
.platform-fields {
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
    margin-top: 1rem;
}

.platform-fields small {
    display: block;
    margin-top: 0.35rem;
    color: var(--text-secondary);
    font-size: 0.8rem;
}

/* Platform Hint */
.platform-hint {
    display: block;
    margin-top: 0.35rem;
    color: var(--text-secondary);
    font-size: 0.8rem;
}

/* OAuth Styles */
.btn-linkedin {
    background-color: #0a66c2;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 500;
    transition: background-color 0.2s;
    width: 100%;
}

.btn-linkedin:hover {
    background-color: #004182;
}

.oauth-info {
    margin-bottom: 1rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.oauth-hint {
    display: block;
    margin-top: 0.75rem;
    color: var(--text-muted);
    font-size: 0.8rem;
    text-align: center;
}

.oauth-connected {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--success-light, #d4edda);
    border-radius: 6px;
    margin-bottom: 1rem;
}

.status-badge.status-connected {
    background: var(--success);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.btn-sm {
    padding: 0.35rem 0.75rem;
    font-size: 0.85rem;
}

/* View Header Actions */
.view-header-actions {
    display: flex;
    gap: 0.5rem;
}

/* Empty state for segments/platforms */
.empty-state-card {
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
}

.empty-state-card svg {
    width: 64px;
    height: 64px;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state-card h3 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

/* Modal sizes */
.modal-lg {
    max-width: 800px;
}

.modal-md {
    max-width: 550px;
}

/* Platform Modal Styles */
#platformModal .modal-content {
    max-width: 500px;
}

#platformModal form {
    padding: 0 1.5rem 1.5rem;
}

#platformModal .form-group {
    margin-bottom: 1.25rem;
}

#platformModal .form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

#platformModal .form-group input,
#platformModal .form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.95rem;
    background: var(--color-white);
    transition: border-color 0.2s, box-shadow 0.2s;
}

#platformModal .form-group input:focus,
#platformModal .form-group select:focus {
    outline: none;
    border-color: var(--color-chocolate);
    box-shadow: 0 0 0 3px rgba(61, 35, 20, 0.1);
}

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

#platformModal .form-group small {
    display: block;
    margin-top: 0.4rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

#platformModal .form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    margin-top: 1rem;
}

#platformModal .platform-fields {
    background: var(--color-cream);
    padding: 1.25rem;
    border-radius: 8px;
    margin-top: 1rem;
    border: 1px solid var(--border-color);
}

#platformModal .platform-fields .form-group {
    margin-bottom: 0;
}

#platformModal #linkedinOAuthSection {
    text-align: center;
    padding: 0.5rem 0;
}

#platformModal #linkedinOAuthSection .oauth-info {
    margin-bottom: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

#platformModal .btn-linkedin {
    margin: 0 auto;
    max-width: 280px;
}

/* New Customers View */
#newcustomers-view .view-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

#newcustomers-view .view-header h2 {
    margin: 0;
}

#newcustomers-view .view-description {
    flex: 1;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

#newcustomers-view .new-customers-stats {
    margin-bottom: 1.5rem;
}

#newcustomers-view .stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

#newcustomers-view .stat-card {
    background: var(--surface);
    border-radius: 8px;
    padding: 1.25rem;
    text-align: center;
    border: 1px solid var(--border-color);
}

#newcustomers-view .stat-card.warning {
    border-color: var(--warning);
    background: rgba(255, 193, 7, 0.05);
}

#newcustomers-view .stat-card.danger {
    border-color: var(--danger);
    background: rgba(220, 53, 69, 0.05);
}

#newcustomers-view .stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
}

#newcustomers-view .stat-card.warning .stat-value {
    color: var(--warning);
}

#newcustomers-view .stat-card.danger .stat-value {
    color: var(--danger);
}

#newcustomers-view .stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

#newcustomers-view .new-customers-table-container {
    background: var(--surface);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

#newcustomers-view .loading-cell,
#newcustomers-view .empty-cell,
#newcustomers-view .error-cell {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-secondary);
}

#newcustomers-view .error-cell {
    color: var(--danger);
}

.badge-warning {
    background: var(--warning);
    color: #000;
}

.badge-success {
    background: var(--success);
    color: #fff;
}

/* Code input for Nye Kunder view (admin only) */
.code-input {
    width: 120px;
    padding: 4px 8px;
    font-size: 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: var(--bg-primary);
    color: var(--text-primary);
}

.code-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.code-input::placeholder {
    color: var(--text-muted);
    font-style: italic;
}

/* Sync info styling */
.sync-info {
    display: flex;
    gap: 1rem;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    background: var(--surface);
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.sync-info .sync-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sync-info .sync-status::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
    animation: pulse 2s infinite;
}

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

.sync-info .next-sync {
    color: var(--text-tertiary);
}


/* ============ SHOPIFY IMPORT VIEW (ADMIN) ============ */

#shopifyimport-view .view-header {
    margin-bottom: 1.5rem;
}

#shopifyimport-view .view-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0.5rem 0;
}

#shopifyimport-view .shopify-import-stats {
    margin-bottom: 1.5rem;
}

#shopifyimport-view .stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

#shopifyimport-view .stat-card {
    background: var(--surface);
    border-radius: 8px;
    padding: 1.25rem;
    text-align: center;
    border: 1px solid var(--border-color);
}

#shopifyimport-view .stat-card.highlight {
    border-color: var(--primary);
    background: rgba(59, 130, 246, 0.05);
}

#shopifyimport-view .stat-card.highlight .stat-value {
    color: var(--primary);
}

#shopifyimport-view .stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
}

#shopifyimport-view .stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

#shopifyimport-view .shopify-import-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

#shopifyimport-view .shopify-import-actions .btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#shopifyimport-view .shopify-import-container {
    background: var(--surface);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

#shopifyimport-view .loading-cell,
#shopifyimport-view .empty-cell,
#shopifyimport-view .error-cell {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-secondary);
}

#shopifyimport-view .error-cell {
    color: var(--danger);
}

#shopifyimport-view .code-badge {
    display: inline-block;
    padding: 2px 8px;
    font-size: 0.8rem;
    font-family: monospace;
    background: var(--bg-tertiary);
    border-radius: 4px;
    color: var(--text-secondary);
}

#shopifyimport-view .code-badge.catalog {
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary);
}

#shopifyimport-view .import-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

#shopifyimport-view th:first-child,
#shopifyimport-view td:first-child {
    width: 40px;
    text-align: center;
}



/* Status badges for Shopify Import */
#shopifyimport-view .status-badge {
    display: inline-block;
    padding: 4px 8px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 4px;
    text-transform: uppercase;
}

#shopifyimport-view .status-badge.ready {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

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

#shopifyimport-view .status-badge.missing {
    background: rgba(107, 114, 128, 0.15);
    color: #6b7280;
}

#shopifyimport-view .code-badge.missing {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    font-style: italic;
}

#shopifyimport-view tr.import-ready {
    background: rgba(34, 197, 94, 0.03);
}

#shopifyimport-view tr.import-warning {
    background: rgba(245, 158, 11, 0.03);
}

#shopifyimport-view tr.import-missing {
    background: rgba(107, 114, 128, 0.03);
}

#shopifyimport-view .stat-card.warning {
    border-color: var(--warning);
    background: rgba(245, 158, 11, 0.05);
}

#shopifyimport-view .stat-card.warning .stat-value {
    color: var(--warning);
}

