/* ============================
   MODULE-SPECIFIC STYLES
   ============================ */

/* DASHBOARD */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin-bottom: 12px;
}

@media (max-width: 1200px) {
    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

.dashboard-main {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

@media (max-width: 1024px) {
    .dashboard-main {
        grid-template-columns: 1fr;
    }
}

.dashboard-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
}

@media (max-width: 1024px) {
    .dashboard-row {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .dashboard-row {
        grid-template-columns: 1fr;
    }
}

/* Mini chart */
.mini-chart {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 48px;
    padding-top: 8px;
}

.mini-bar {
    flex: 1;
    border-radius: 3px 3px 0 0;
    background: var(--accent);
    opacity: 0.7;
    transition: all var(--transition);
    min-height: 4px;
}

.mini-bar:hover {
    opacity: 1;
}

/* Chart canvas */
.chart-wrapper {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.chart-placeholder {
    padding: 20px 0;
}

.chart-bars {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 160px;
    padding: 0 8px;
}

.chart-bar-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 0;
}

.chart-bar {
    width: 100%;
    max-width: 40px;
    border-radius: 4px 4px 0 0;
    background: linear-gradient(180deg, var(--accent), var(--purple));
    opacity: 0.85;
    transition: opacity var(--transition);
    min-height: 4px;
}

.chart-bar:hover {
    opacity: 1;
}

.chart-bar-label {
    font-size: 9px;
    color: var(--text-muted);
    font-family: var(--font-mono);
    text-align: center;
    white-space: nowrap;
}

.chart-y-axis {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
    height: 160px;
    padding: 4px 0;
    margin-right: 8px;
    flex-shrink: 0;
}

.chart-y-label {
    font-size: 9px;
    color: var(--text-muted);
    font-family: var(--font-mono);
    white-space: nowrap;
}

/* Activity feed */
.activity-feed {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

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

.activity-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-top: 5px;
    flex-shrink: 0;
}

.activity-dot.sale {
    background: var(--emerald);
}

.activity-dot.purchase {
    background: var(--accent);
}

.activity-dot.alert {
    background: var(--amber);
}

.activity-text {
    font-size: 13px;
    color: var(--text-secondary);
    flex: 1;
    line-height: 1.4;
}

.activity-time {
    font-size: 11px;
    color: var(--text-muted);
    font-family: var(--font-mono);
    white-space: nowrap;
}

/* Top products list */
.top-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.top-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.top-rank {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
}

.rank-1 {
    background: rgba(245, 158, 11, 0.2);
    color: var(--amber-light);
}

.rank-2 {
    background: rgba(148, 163, 184, 0.2);
    color: #94a3b8;
}

.rank-3 {
    background: rgba(180, 120, 76, 0.2);
    color: #cd7f32;
}

.rank-other {
    background: var(--bg-tertiary);
    color: var(--text-muted);
}

.top-name {
    font-size: 13px;
    color: var(--text-primary);
    font-weight: 500;
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.top-value {
    font-size: 13px;
    font-family: var(--font-mono);
    font-weight: 600;
    color: var(--emerald-light);
    white-space: nowrap;
}

/* Alerts panel */
.alerts-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* CALCULATOR */
.calc-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
}

@media (max-width: 1024px) {
    .calc-container {
        grid-template-columns: 1fr;
    }
}

.calc-result-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 16px;
}

.calc-result-item {
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 12px;
}

.calc-result-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.calc-result-usd {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-primary);
    font-family: var(--font-mono);
    line-height: 1;
}

.calc-result-ves {
    font-size: 13px;
    color: var(--amber-light);
    font-family: var(--font-mono);
    margin-top: 2px;
}

.calc-highlight {
    border-color: var(--accent);
    background: var(--accent-glow);
}

.calc-highlight .calc-result-usd {
    color: var(--accent-light);
}

/* CALCULATOR — Breakdown layout (Redesigned) */
.resultado-calculo {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Hero Section */
.hero-cost {
    text-align: center;
    padding: 32px 24px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--purple) 100%);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.3);
}

.hero-cost .text-5xl {
    font-size: 48px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 4px;
    font-family: var(--font-mono);
}

/* Desglose Grid */
.desglose-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.desglose-card {
    padding: 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
}

.main-value {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    font-family: var(--font-mono);
}

.secondary-value {
    font-size: 14px;
    color: var(--amber-light);
    margin-bottom: 8px;
    font-family: var(--font-mono);
}

.details {
    font-size: 11px;
    color: var(--text-secondary);
    padding-top: 8px;
    border-top: 1px solid var(--border);
}

/* Precio de Venta */
.precio-venta-card, .ganancia-card {
    padding: 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.card-header .badge {
    margin-left: auto;
    font-size: 10px;
    padding: 2px 6px;
    background: var(--bg-secondary);
    border-radius: 4px;
    color: var(--text-secondary);
}

.line-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 13px;
}

.line-item:last-child {
    margin-bottom: 0;
}

.line-item .label {
    color: var(--text-muted);
}

.line-item .value {
    font-weight: 600;
    color: var(--text-primary);
    font-family: var(--font-mono);
}

.line-item .value.profit {
    color: var(--emerald-light);
}

.line-item .secondary {
    font-size: 12px;
    font-weight: 400;
    color: var(--text-muted);
    margin-left: 6px;
}

/* Barra de Ganancia */
.profit-bar-chart {
    margin: 16px 0;
}

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

.bar-label {
    width: 80px;
    font-size: 12px;
    color: var(--text-muted);
}

.bar-container {
    flex: 1;
    height: 16px;
    background: var(--bg-input);
    border-radius: 8px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    transition: width 0.5s ease;
}

.bar-fill.gray {
    background: var(--text-muted);
}

.bar-fill.green {
    background: linear-gradient(90deg, var(--emerald), var(--emerald-light));
}

.bar-value {
    width: 120px;
    text-align: right;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    font-family: var(--font-mono);
}

.footer-info {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed var(--border);
    font-size: 11px;
    color: var(--text-muted);
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    .desglose-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-cost .text-5xl {
        font-size: 36px;
    }
}

/* INVENTORY */
.inventory-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.stock-indicator {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.stock-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.stock-ok {
    background: var(--emerald);
}

.stock-mid {
    background: var(--amber);
}

.stock-low {
    background: var(--rose);
}

.stock-critical {
    background: var(--rose);
}

.stock-zero {
    background: var(--text-muted);
}

/* SALES */
.sale-product-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: 6px;
}

.sale-product-info {
    flex: 1;
}

.sale-product-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.sale-product-price {
    font-size: 11px;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.sale-product-qty {
    width: 62px;
    padding: 4px 6px !important;
    height: 30px !important;
    font-size: 13px !important;
}

.sale-product-total {
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 700;
    color: var(--emerald-light);
    min-width: 70px;
    text-align: right;
}

/* AFFILIATES */
.affiliate-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(99, 102, 241, 0.1));
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: var(--radius-lg);
    margin-bottom: 20px;
}

.affiliate-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--purple));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
}

.affiliate-stats-mini {
    display: flex;
    gap: 16px;
    margin-left: auto;
    flex-wrap: wrap;
}

.affiliate-stat-mini {
    text-align: center;
}

.affiliate-stat-mini-val {
    font-family: var(--font-mono);
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.affiliate-stat-mini-lbl {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* REPORTS */
.report-tabs {
    overflow-x: auto;
    padding-bottom: 4px;
}

.report-filters {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

/* SETTINGS */
.settings-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
    align-items: start;
}

@media (max-width: 900px) {
    .settings-grid {
        grid-template-columns: 1fr;
    }
}

.settings-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.settings-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition);
}

.settings-nav-item:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.settings-nav-item.active {
    background: var(--accent-glow);
    color: var(--accent-light);
}

.settings-nav-item svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.settings-panel {
    display: none;
}

.settings-panel.active {
    display: block;
}

.settings-section-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

/* PURCHASE SUMMARY */
.purchase-summary {
    padding: 20px;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.06), rgba(99, 102, 241, 0.06));
    border: 1px solid rgba(14, 165, 233, 0.2);
    border-radius: var(--radius-lg);
}

/* INVOICE PREVIEW */
.invoice-preview {
    background: #fff;
    color: #0f172a;
    border-radius: var(--radius-lg);
    padding: 32px;
    font-family: var(--font);
}

.invoice-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 32px;
}

.invoice-title {
    font-size: 32px;
    font-weight: 800;
    color: #6366f1;
}

.invoice-info {
    text-align: right;
    font-size: 13px;
    color: #64748b;
}

.invoice-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 24px;
    font-size: 13px;
}

.invoice-table th {
    background: #f1f5f9;
    padding: 10px 12px;
    text-align: left;
    font-weight: 700;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.invoice-table td {
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    color: #0f172a;
}

.invoice-total-row {
    display: flex;
    justify-content: flex-end;
}

.invoice-total-box {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px 24px;
    min-width: 240px;
}

/* BACKUP AREA */
.backup-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.backup-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

/* ============================
   IMPORT MODULE
   ============================ */
.import-hero {
    text-align: center;
    padding: 32px 20px 24px;
}

.import-hero-icon {
    font-size: 52px;
    margin-bottom: 12px;
}

.import-hero-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0 0 8px;
}

.import-hero-sub {
    font-size: 14px;
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 auto;
}

.import-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}

@media (max-width: 900px) {
    .import-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .import-cards-grid {
        grid-template-columns: 1fr;
    }
}

.import-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px 20px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.import-card:hover {
    border-color: var(--accent);
    background: var(--accent-glow);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.15);
}

.import-card-icon {
    font-size: 36px;
}

.import-card-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
}

.import-card-desc {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.4;
}

.import-card-btn {
    margin-top: 8px;
    pointer-events: none;
}

.import-card:hover .import-card-btn {
    background: var(--accent);
    color: #fff;
}

.import-history-section {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.import-history-header {
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
}

.import-history-empty {
    padding: 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
}

.import-history-list {
    display: flex;
    flex-direction: column;
}

.import-history-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    border-bottom: 1px solid var(--border);
    transition: background 0.15s;
}

.import-history-item:last-child {
    border-bottom: none;
}

.import-history-item:hover {
    background: var(--bg-hover);
}

.import-history-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 20px;
    flex-shrink: 0;
}

.import-badge-inventory {
    background: rgba(99, 102, 241, 0.15);
    color: var(--accent-light);
}

.import-badge-customers {
    background: rgba(16, 185, 129, 0.15);
    color: var(--emerald-light);
}

.import-badge-suppliers {
    background: rgba(245, 158, 11, 0.15);
    color: var(--amber-light);
}

.import-badge-purchases {
    background: rgba(14, 165, 233, 0.15);
    color: #38bdf8;
}

.import-badge-sales {
    background: rgba(139, 92, 246, 0.15);
    color: #c084fc;
}

.import-badge-all {
    background: rgba(244, 63, 94, 0.15);
    color: var(--rose-light);
}

/* Flow */
.import-flow {
    max-width: 860px;
    margin: 0 auto;
}

.import-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.import-bc-item {
    font-size: 12px;
    color: var(--text-muted);
    cursor: default;
}

.import-bc-item.active {
    font-weight: 700;
    color: var(--accent-light);
}

.import-bc-sep {
    color: var(--text-muted);
    font-size: 12px;
}

.import-section-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 20px;
}

/* Schema info */
.import-schema-info {
    background: var(--bg-secondary);
}

/* Dropzone */
.import-dropzone {
    border: 2px dashed var(--border);
    border-radius: var(--radius-lg);
    padding: 48px 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background: var(--bg-secondary);
}

.import-dropzone:hover,
.import-dropzone.drag-over {
    border-color: var(--accent);
    background: var(--accent-glow);
}

.import-dropzone-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.import-dropzone-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.import-dropzone-sub {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.import-dropzone-formats {
    font-size: 12px;
    color: var(--text-muted);
    background: var(--bg-tertiary);
    padding: 4px 12px;
    border-radius: 20px;
    display: inline-block;
}

.import-file-info {
    padding: 14px 18px;
    margin-top: 12px;
    background: var(--bg-secondary);
}

.import-status-parsing,
.import-status-ok,
.import-status-error {
    padding: 10px 14px;
    border-radius: var(--radius-md);
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.import-status-parsing {
    background: rgba(99, 102, 241, 0.1);
    color: var(--accent-light);
}

.import-status-ok {
    background: rgba(16, 185, 129, 0.1);
    color: var(--emerald-light);
}

.import-status-error {
    background: rgba(244, 63, 94, 0.1);
    color: var(--rose-light);
}

.spinner-sm {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(99, 102, 241, 0.3);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    flex-shrink: 0;
}

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

/* Validation */
.import-summary-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

@media (max-width: 640px) {
    .import-summary-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

.import-sum-card {
    border-radius: var(--radius-lg);
    padding: 16px;
    text-align: center;
    border: 1px solid;
}

.import-sum-card.ok {
    background: rgba(16, 185, 129, 0.08);
    border-color: rgba(16, 185, 129, 0.25);
}

.import-sum-card.warning {
    background: rgba(245, 158, 11, 0.08);
    border-color: rgba(245, 158, 11, 0.25);
}

.import-sum-card.error {
    background: rgba(244, 63, 94, 0.08);
    border-color: rgba(244, 63, 94, 0.25);
}

.import-sum-card.total {
    background: var(--bg-secondary);
    border-color: var(--border);
}

.import-sum-icon {
    font-size: 22px;
    margin-bottom: 6px;
}

.import-sum-num {
    font-size: 28px;
    font-weight: 800;
    font-family: var(--font-mono);
    color: var(--text-primary);
}

.import-sum-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.import-row-error td {
    background: rgba(244, 63, 94, 0.05) !important;
}

.import-row-warning td {
    background: rgba(245, 158, 11, 0.05) !important;
}

.import-all-ok {
    text-align: center;
    padding: 20px;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: var(--radius-lg);
    font-size: 15px;
    font-weight: 700;
    color: var(--emerald-light);
    margin-bottom: 16px;
}

.import-all-ok span {
    font-size: 24px;
    margin-right: 8px;
}

.import-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 10px;
}

.import-check-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
}

.import-check-label input {
    width: 15px;
    height: 15px;
    cursor: pointer;
    accent-color: var(--accent);
}

.import-check-label:hover {
    color: var(--text-primary);
}

/* Progress */
.import-progress-box {
    padding: 28px 24px;
    text-align: center;
}

.import-prog-info {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.import-progress-bar-wrap {
    height: 10px;
    background: var(--bg-tertiary);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 14px;
}

.import-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--purple));
    border-radius: 10px;
    transition: width 0.3s ease;
}

.import-prog-current {
    font-size: 12px;
    color: var(--text-muted);
}

/* Result */
.import-result-hero {
    border-radius: var(--radius-lg);
    padding: 28px;
    text-align: center;
    margin-bottom: 20px;
}

.import-result-hero.success {
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.import-result-hero.cancelled {
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.import-result-icon {
    font-size: 48px;
    margin-bottom: 8px;
}

.import-result-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-primary);
}

.import-result-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

@media (max-width: 640px) {
    .import-result-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.import-result-stat {
    border-radius: var(--radius-md);
    padding: 14px;
    text-align: center;
    border: 1px solid;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.import-result-stat span {
    font-size: 26px;
    font-weight: 800;
    font-family: var(--font-mono);
}

.import-result-stat {
    font-size: 11px;
    color: var(--text-muted);
}

.import-result-stat.ok {
    background: rgba(16, 185, 129, 0.08);
    border-color: rgba(16, 185, 129, 0.2);
}

.import-result-stat.ok span {
    color: var(--emerald-light);
}

.import-result-stat.updated {
    background: rgba(99, 102, 241, 0.08);
    border-color: rgba(99, 102, 241, 0.2);
}

.import-result-stat.updated span {
    color: var(--accent-light);
}

.import-result-stat.skipped {
    background: rgba(245, 158, 11, 0.08);
    border-color: rgba(245, 158, 11, 0.2);
}

.import-result-stat.skipped span {
    color: var(--amber-light);
}

.import-result-stat.supplier {
    background: rgba(14, 165, 233, 0.08);
    border-color: rgba(14, 165, 233, 0.2);
}

.import-result-stat.supplier span {
    color: #38bdf8;
}

/* ============================
   CUSTOMERS MODULE
   ============================ */
.cust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.cust-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: all var(--transition);
}

.cust-card:hover {
    border-color: var(--border-focus);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.cust-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.cust-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.cust-avatar-lg {
    width: 80px;
    height: 80px;
    font-size: 28px;
}

.cust-card-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    padding: 12px;
}

.cust-info-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-primary);
}

.cust-info-icon {
    width: 14px;
    height: 14px;
    color: var(--text-muted);
    flex-shrink: 0;
}

.cust-card-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
}

.cust-card-actions .btn {
    flex: 1;
}

.cust-card-actions .btn-icon {
    flex: none;
    width: 32px;
}

.cust-profile-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 24px;
}

@media (max-width: 1024px) {
    .cust-profile-grid {
        grid-template-columns: 1fr;
    }
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: var(--bg-card);
    border: 1px dashed var(--border);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    color: var(--text-muted);
    margin-top: 20px;
}

.empty-state svg {
    width: 64px;
    height: 64px;
    color: var(--text-secondary);
    opacity: 0.5;
}

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

.empty-state p {
    font-size: 14px;
    margin: 0;
    max-width: 400px;
}