/* Vendor Dashboard SaaS Layout Styles matching User Requirements */
.veeru-saas-dashboard-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    padding: 0;
    box-sizing: border-box;
    color: #1e293b;
}

/* Tier 1: Top Section Grid (Counters Grid + Donut Overview Card) */
.veeru-top-row-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

@media (max-width: 1024px) {
    .veeru-top-row-grid { grid-template-columns: 1fr; }
}

.metrics-grid-2x2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 640px) {
    .metrics-grid-2x2 {
        grid-template-columns: 1fr;
    }
}

.metric-card {
    border-radius: 14px;
    padding: 20px;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 120px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.metric-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.metric-card.bg-orange { background: linear-gradient(135deg, #ff6b4a 0%, #ff4500 100%); }
.metric-card.bg-dark   { background: #232b3e; }

.card-top-row { display: flex; justify-content: space-between; align-items: center; }
.circle-icon {
    width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, 0.2);
    display: flex; align-items: center; justify-content: center;
}
.circle-icon.icon-white-contrast { background: rgba(255, 255, 255, 0.25); }
.circle-icon.icon-products-contrast { background: rgba(2, 132, 199, 0.35); }
.circle-icon.icon-withdrawals-contrast { background: rgba(16, 185, 129, 0.35); }
.circle-icon svg { width: 20px; height: 20px; stroke: #ffffff !important; }

.trend-percentage { font-size: 11px; font-weight: 700; opacity: 0.9; color: #ffffff; }
.trend-percentage.trend-green { color: #4ade80 !important; }

.card-bottom-row h2 { font-size: 24px; font-weight: 800; margin: 0; color: #ffffff; }
.card-bottom-row p  { font-size: 11px; margin: 4px 0 0 0; opacity: 0.85; text-transform: uppercase; font-weight: 700; letter-spacing: 0.5px; }

/* 2-Column SaaS Grid Layouts for Tier 2 and Tier 3 */
.veeru-saas-2col-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

@media (max-width: 1024px) {
    .veeru-saas-2col-grid { grid-template-columns: 1fr; }
}

.veeru-saas-card {
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-saas-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
.card-saas-header h3 { font-size: 15px; font-weight: 700; color: #0f172a; margin: 0; }
.view-all-link { font-size: 12px; color: #7c3aed; font-weight: 600; text-decoration: none; }
.view-all-link:hover { text-decoration: underline; }

.saas-list-feed { display: flex; flex-direction: column; gap: 14px; }
.saas-feed-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 10px;
    border-bottom: 1px solid #f8fafc;
}
.saas-feed-row:last-child { border-bottom: none; padding-bottom: 0; }

.feed-icon-box {
    width: 36px; height: 36px; border-radius: 8px; background: #f8fafc;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.saas-prod-thumb-badge { background: #f1f5f9; border-radius: 8px; color: #475569; }

/* Circle Wallet Badges */
.circle-badge-purple-user { background: #f3e8ff; color: #7c3aed; border-radius: 50%; }
.circle-badge-pink-user   { background: #fce7f3; color: #ec4899; border-radius: 50%; }
.circle-badge-red-undo    { background: #fee2e2; color: #ef4444; border-radius: 50%; }
.circle-badge-green-user  { background: #dcfce7; color: #16a34a; border-radius: 50%; }
.circle-badge-blue-user   { background: #dbeafe; color: #2563eb; border-radius: 50%; }

/* Store Avatar Verification Badges */
.store-avatar-store-blue   { background: #dbeafe; color: #2563eb; border-radius: 8px; }
.store-avatar-store-purple { background: #f3e8ff; color: #7c3aed; border-radius: 8px; }
.store-avatar-store-pink   { background: #fce7f3; color: #ec4899; border-radius: 8px; }

.feed-main-info { flex: 1; margin: 0 16px; }
.feed-primary-title { font-size: 13px; color: #0f172a; display: block; font-weight: 600; }
.feed-secondary-sub { font-size: 11px; color: #94a3b8; display: block; }

.feed-date-info { font-size: 11px; color: #94a3b8; text-align: right; margin-right: 16px; }
.feed-date-info .d-date { display: block; }
.feed-date-info .d-time { display: block; color: #cbd5e1; }

.feed-price-col { font-size: 13px; margin-right: 12px; }
.feed-price-col.align-right { text-align: right; }
.price-green { color: #16a34a; font-weight: 700; }
.price-red { color: #dc2626; font-weight: 700; }

.saas-badge {
    padding: 3px 10px; border-radius: 12px; font-size: 11px; font-weight: 600; display: inline-block;
}
.badge-completed { background: #dcfce7; color: #15803d; }
.badge-processing { background: #dbeafe; color: #1d4ed8; }
.badge-pending { background: #fef3c7; color: #b45309; }

/* Mini Table Styling */
.saas-mini-table { width: 100%; border-collapse: collapse; text-align: left; }
.saas-mini-table th { font-size: 11px; color: #94a3b8; text-transform: uppercase; padding: 10px 0; border-bottom: 1px solid #f1f5f9; font-weight: 600; }
.saas-mini-table td { font-size: 13px; color: #334155; padding: 12px 0; border-bottom: 1px solid #f8fafc; }
.col-prod { display: flex; align-items: center; gap: 12px; }
.prod-thumb-mini { width: 36px; height: 36px; border-radius: 6px; object-fit: cover; }
.prod-thumb-placeholder { width: 36px; height: 36px; border-radius: 6px; background: #f1f5f9; display: flex; align-items: center; justify-content: center; }
.tp-name { font-weight: 600; color: #0f172a; font-size: 13px; }
.trend-green-text { color: #16a34a; font-weight: 600; font-size: 12px; }

/* Doughnut Chart Layout */
.donut-chart-layout { display: flex; align-items: center; gap: 16px; margin: 10px 0 16px 0; }
.donut-canvas-wrapper { width: 130px; height: 130px; position: relative; flex-shrink: 0; }
.donut-center-text {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); text-align: center; width: 100%;
}
.donut-center-text .c-label { font-size: 10px; color: #64748b; display: block; }
.donut-center-text .c-value { font-size: 12px; color: #0f172a; font-weight: 800; display: block; }

.donut-legend-list { display: flex; flex-direction: column; gap: 10px; flex: 1; }
.legend-item { display: flex; align-items: center; justify-content: space-between; font-size: 12px; }
.legend-left { display: flex; align-items: center; }
.legend-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 8px; }
.legend-dot.purple { background: #7c3aed; }
.legend-dot.blue   { background: #2563eb; }
.legend-dot.orange { background: #f59e0b; }
.legend-label { color: #64748b; }
.legend-val { color: #0f172a; font-weight: 700; font-size: 12px; }

/* System Status Banner */
.system-status-banner {
    background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 10px; padding: 12px 14px;
    display: flex; align-items: center; gap: 12px; margin-top: 10px;
}
.sys-check-circle {
    width: 24px; height: 24px; border-radius: 50%; background: #dcfce7;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.system-status-banner strong { font-size: 13px; color: #16a34a; display: block; font-weight: 700; }
.system-status-banner p { font-size: 11px; color: #15803d; margin: 0; }

.veeru-saas-footer {
    display: flex; justify-content: space-between; padding-top: 16px; border-top: 1px solid #e2e8f0;
    font-size: 12px; color: #94a3b8; margin-top: 10px;
}