/* ============================================================
   Ballour Admin v2 — Dashboard v3 (modern layout)
   ------------------------------------------------------------
   New widgets used by views_v2/admin/dashboard/index.blade.php:
     • bl-dash-greet              ─ greeting + filter chips
     • bl-dash-kpis               ─ 5 hero KPI tiles with trend
     • bl-dash-row                ─ responsive multi-card grid
     • bl-dash-card               ─ generic card (replaces .card)
     • bl-dash-donut              ─ chart + legend block
     • bl-dash-alerts             ─ priority alerts list
     • bl-dash-tops               ─ top selling products
     • bl-dash-citylist           ─ ranked cities under flot
     • bl-dash-recent             ─ recent orders list rows
     • bl-dash-promo              ─ growth promo card
     • bl-dash-quick              ─ icon shortcuts grid
   ============================================================ */


/* ============================================================
   0. SAFETY NETS
   ------------------------------------------------------------
   Hide the preloader cleanly when JS hasn't shown it yet.
   The actual full-screen blocking behaviour is enforced in
   shell.css (position: fixed + pointer-events: auto + z-index).
   ============================================================ */
body.theme-v2 .Custom_preloader:not([style*="display: block"]):not([style*="display:block"]):not([style*="display: flex"]):not([style*="display:flex"]) {
    display: none !important;
}

/* Morris donut text sits on top of segments — hide it cleanly */
body.theme-v2 #morris-donut-chart text { display: none !important; }


/* ============================================================
   1. GREETING ROW
   ============================================================ */
body.theme-v2 .bl-dash-greet {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin: 4px 0 22px;
}
body.theme-v2 .bl-dash-greet__main { min-width: 280px; flex: 1; }
body.theme-v2 .bl-dash-greet__title {
    font-size: 22px;
    font-weight: 800;
    color: var(--bl-heading);
    margin: 0;
    line-height: 1.25;
    letter-spacing: -.01em;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
body.theme-v2 .bl-dash-greet__sub {
    font-size: 13px;
    color: var(--bl-text-muted);
    margin: 4px 0 0;
}
body.theme-v2 .bl-dash-greet__actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

body.theme-v2 .bl-dash-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 38px;
    padding: 0 14px;
    border-radius: var(--bl-radius);
    background: var(--bl-brand);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(37, 99, 235, .18);
    transition: all .15s ease;
    cursor: pointer;
}
body.theme-v2 .bl-dash-chip:hover {
    background: var(--bl-brand-600);
    transform: translateY(-1px);
}
body.theme-v2 .bl-dash-chip i { font-size: 15px; }
body.theme-v2 .bl-dash-chip--soft {
    background: var(--bl-surface);
    border: 1px solid var(--bl-border);
    color: var(--bl-text);
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}
body.theme-v2 .bl-dash-chip--soft:hover {
    background: var(--bl-surface-2);
    color: var(--bl-heading);
    transform: translateY(-1px);
}


/* ============================================================
   2. HERO KPIs — 5 trend cards
   ============================================================ */
body.theme-v2 .bl-dash-kpis {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
    margin-bottom: 22px;
}
@media (max-width: 1399.98px) {
    body.theme-v2 .bl-dash-kpis { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 767.98px) {
    body.theme-v2 .bl-dash-kpis { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 479.98px) {
    body.theme-v2 .bl-dash-kpis { grid-template-columns: 1fr; }
}

body.theme-v2 .bl-dash-kpi {
    display: grid !important;
    grid-template-columns: 44px 1fr;
    grid-template-rows: auto auto auto;
    grid-template-areas:
        "icon  label"
        "value value"
        "foot  foot";
    column-gap: 12px;
    row-gap: 6px;
    padding: 18px 18px 16px;
    background: var(--bl-surface, #ffffff);
    border: 1px solid var(--bl-border, #e5e7eb);
    border-radius: var(--bl-radius, 14px);
    box-shadow: 0 1px 2px rgba(15, 23, 42, .03);
    text-decoration: none !important;
    color: inherit !important;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
    position: relative;
    overflow: hidden;
    min-height: 130px;
}
body.theme-v2 .bl-dash-kpi:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(15, 23, 42, .08);
    border-color: var(--bl-brand, #2563eb);
    color: inherit !important;
    text-decoration: none !important;
}

body.theme-v2 .bl-dash-kpi__icon {
    grid-area: icon;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    align-self: start;
}
body.theme-v2 .bl-dash-kpi__icon i { line-height: 1; }
body.theme-v2 .bl-dash-kpi__label {
    grid-area: label;
    font-size: 13px;
    color: var(--bl-text-muted, #64748b);
    font-weight: 600;
    line-height: 1.35;
    align-self: center;
}
body.theme-v2 .bl-dash-kpi__value {
    grid-area: value;
    font-size: 24px;
    font-weight: 800;
    color: var(--bl-heading, #0f172a);
    line-height: 1.15;
    letter-spacing: -.01em;
    margin-top: 2px;
    word-break: break-word;
}
body.theme-v2 .bl-dash-kpi__foot {
    grid-area: foot;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 2px;
}
body.theme-v2 .bl-dash-kpi__delta {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    height: 22px;
    padding: 0 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}
body.theme-v2 .bl-dash-kpi__delta i { font-size: 13px; line-height: 1; }
body.theme-v2 .bl-dash-kpi__delta.is-up   { background: var(--bl-tint-green-bg, #d1fae5);  color: var(--bl-tint-green-fg, #065f46); }
body.theme-v2 .bl-dash-kpi__delta.is-down { background: var(--bl-tint-red-bg, #fee2e2);    color: var(--bl-tint-red-fg, #991b1b); }
body.theme-v2 .bl-dash-kpi__compare {
    font-size: 11px;
    color: var(--bl-text-muted, #64748b);
    line-height: 1.4;
}

/* tint variants for KPI icon */
body.theme-v2 .bl-dash-kpi[data-tint="green"]  .bl-dash-kpi__icon { background: var(--bl-tint-green-bg);  color: var(--bl-tint-green-fg); }
body.theme-v2 .bl-dash-kpi[data-tint="blue"]   .bl-dash-kpi__icon { background: var(--bl-tint-blue-bg);   color: var(--bl-tint-blue-fg); }
body.theme-v2 .bl-dash-kpi[data-tint="orange"] .bl-dash-kpi__icon { background: var(--bl-tint-orange-bg); color: var(--bl-tint-orange-fg); }
body.theme-v2 .bl-dash-kpi[data-tint="purple"] .bl-dash-kpi__icon { background: var(--bl-tint-purple-bg, #ede9fe); color: var(--bl-tint-purple-fg, #7c3aed); }
body.theme-v2 .bl-dash-kpi[data-tint="cyan"]   .bl-dash-kpi__icon { background: var(--bl-tint-cyan-bg, #cffafe);   color: var(--bl-tint-cyan-fg, #0891b2); }
body.theme-v2 .bl-dash-kpi[data-tint="red"]    .bl-dash-kpi__icon { background: var(--bl-tint-red-bg);    color: var(--bl-tint-red-fg); }
body.theme-v2 .bl-dash-kpi[data-tint="pink"]   .bl-dash-kpi__icon { background: var(--bl-tint-pink-bg, #fce7f3);   color: var(--bl-tint-pink-fg, #db2777); }
body.theme-v2 .bl-dash-kpi[data-tint="yellow"] .bl-dash-kpi__icon { background: var(--bl-tint-yellow-bg, #fef9c3); color: var(--bl-tint-yellow-fg, #ca8a04); }


/* ============================================================
   3. RESPONSIVE ROWS
   ============================================================ */
body.theme-v2 .bl-dash-row {
    display: grid;
    gap: 16px;
    margin-bottom: 22px;
}

/* 2-card row where the first card is roughly twice as wide as the second */
body.theme-v2 .bl-dash-row--2-1 {
    grid-template-columns: 2fr 1fr;
}

/* 3-card row used for alerts + top products + cities */
body.theme-v2 .bl-dash-row--3 {
    grid-template-columns: repeat(3, 1fr);
}

/* 2-card row used for recent orders + promo (recent twice as wide) */
body.theme-v2 .bl-dash-row--3-2-1 {
    grid-template-columns: 2fr 1fr;
}
body.theme-v2 .bl-dash-row--3-2-1 .bl-dash-card--span2 { grid-column: span 1; }

@media (max-width: 1199.98px) {
    body.theme-v2 .bl-dash-row--2-1 { grid-template-columns: 1fr; }
    body.theme-v2 .bl-dash-row--3   { grid-template-columns: 1fr 1fr; }
    body.theme-v2 .bl-dash-row--3 > .bl-dash-card:first-child { grid-column: 1 / -1; }
}
@media (max-width: 767.98px) {
    body.theme-v2 .bl-dash-row--2-1,
    body.theme-v2 .bl-dash-row--3,
    body.theme-v2 .bl-dash-row--3-2-1 { grid-template-columns: 1fr !important; }
    body.theme-v2 .bl-dash-row > .bl-dash-card { grid-column: 1 / -1 !important; }
}


/* ============================================================
   4. CARD
   ============================================================ */
body.theme-v2 .bl-dash-card.card {
    background: var(--bl-surface);
    border: 1px solid var(--bl-border);
    border-radius: var(--bl-radius);
    box-shadow: 0 1px 2px rgba(15, 23, 42, .03);
    margin: 0;
    height: 100%;
    overflow: hidden;
}
body.theme-v2 .bl-dash-card .card-body {
    padding: 18px 20px !important;
}
body.theme-v2 .bl-dash-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
body.theme-v2 .bl-dash-card__head h4.head_text {
    margin: 0;
    font-size: 15px !important;
    font-weight: 700 !important;
    color: var(--bl-heading) !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
body.theme-v2 .bl-dash-card__sub {
    font-size: 12px;
    color: var(--bl-text-muted);
    margin: 4px 0 0;
}
body.theme-v2 .bl-dash-card__head-meta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
body.theme-v2 .bl-chip.bl-chip--ghost {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    background: var(--bl-tint-blue-bg);
    color: var(--bl-tint-blue-fg);
}

body.theme-v2 .bl-dash-link {
    font-size: 12px;
    font-weight: 600;
    color: var(--bl-brand);
    text-decoration: none !important;
    transition: color .15s ease;
}
body.theme-v2 .bl-dash-link:hover { color: var(--bl-brand-600); }


/* ============================================================
   5. DONUT BLOCK
   ============================================================ */
body.theme-v2 .bl-dash-donut {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}
body.theme-v2 .bl-dash-donut__chart {
    position: relative;
    width: 200px;
    height: 200px;
    flex-shrink: 0;
}
body.theme-v2 .bl-dash-donut__chart #morris-donut-chart {
    width: 200px !important;
    height: 200px !important;
    position: relative;
}
body.theme-v2 .bl-dash-donut__chart #morris-donut-chart svg {
    width: 200px !important;
    height: 200px !important;
}
/* Hide Morris built-in label that draws the value text inside the
   donut centre (we render our own clean overlay). */
body.theme-v2 .bl-dash-donut__chart #morris-donut-chart text {
    display: none !important;
}
body.theme-v2 .bl-dash-donut__center {
    position: absolute;
    inset: 0;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    pointer-events: none;
    text-align: center;
    z-index: 2;
}
body.theme-v2 .bl-dash-donut__num {
    font-size: 26px;
    font-weight: 800;
    color: var(--bl-heading, #0f172a);
    letter-spacing: -.02em;
    line-height: 1;
}
body.theme-v2 .bl-dash-donut__label {
    font-size: 11px;
    color: var(--bl-text-muted, #64748b);
    font-weight: 600;
    margin-top: 2px;
}

body.theme-v2 .bl-dash-donut__legend {
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 12px;
}
@media (max-width: 575.98px) {
    body.theme-v2 .bl-dash-donut__legend { grid-template-columns: 1fr; }
}
body.theme-v2 .bl-dash-donut__legend li {
    display: grid;
    grid-template-columns: 12px 1fr auto;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    border-radius: var(--bl-radius-sm);
    transition: background .15s ease;
}
body.theme-v2 .bl-dash-donut__legend li:hover { background: var(--bl-surface-2); }
body.theme-v2 .bl-dash-donut__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}
body.theme-v2 .bl-dash-donut__name {
    font-size: 12px;
    color: var(--bl-text);
}
body.theme-v2 .bl-dash-donut__count {
    font-size: 12px;
    font-weight: 700;
    color: var(--bl-heading);
}


/* ============================================================
   6. ALERTS LIST
   ============================================================ */
body.theme-v2 .bl-dash-alerts {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
body.theme-v2 .bl-dash-alert {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: var(--bl-radius-sm);
    background: var(--bl-surface-2);
    border: 1px solid transparent;
    text-decoration: none !important;
    color: inherit;
    transition: all .15s ease;
}
body.theme-v2 .bl-dash-alert:hover {
    background: var(--bl-surface);
    border-color: var(--bl-border);
    box-shadow: 0 4px 12px rgba(15, 23, 42, .05);
    transform: translateX(-2px);
    color: inherit;
}
html[dir="ltr"] body.theme-v2 .bl-dash-alert:hover { transform: translateX(2px); }

body.theme-v2 .bl-dash-alert__icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}
body.theme-v2 .bl-dash-alert[data-tint="blue"]   .bl-dash-alert__icon { background: var(--bl-tint-blue-bg);   color: var(--bl-tint-blue-fg); }
body.theme-v2 .bl-dash-alert[data-tint="orange"] .bl-dash-alert__icon { background: var(--bl-tint-orange-bg); color: var(--bl-tint-orange-fg); }
body.theme-v2 .bl-dash-alert[data-tint="red"]    .bl-dash-alert__icon { background: var(--bl-tint-red-bg);    color: var(--bl-tint-red-fg); }
body.theme-v2 .bl-dash-alert[data-tint="green"]  .bl-dash-alert__icon { background: var(--bl-tint-green-bg);  color: var(--bl-tint-green-fg); }

body.theme-v2 .bl-dash-alert__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
body.theme-v2 .bl-dash-alert__title {
    font-size: 13px;
    font-weight: 700;
    color: var(--bl-heading);
    line-height: 1.3;
}
body.theme-v2 .bl-dash-alert__sub {
    font-size: 11px;
    color: var(--bl-text-muted);
}
body.theme-v2 .bl-dash-alert__arrow {
    font-size: 11px;
    color: var(--bl-text-muted);
    flex-shrink: 0;
}
html[dir="ltr"] body.theme-v2 .bl-dash-alert__arrow { transform: rotate(180deg); }


/* ============================================================
   7. TOP PRODUCTS LIST
   ============================================================ */
body.theme-v2 .bl-dash-tops {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
body.theme-v2 .bl-dash-tops__item {
    display: grid;
    grid-template-columns: 24px 40px 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border-radius: var(--bl-radius-sm);
    transition: background .15s ease;
}
body.theme-v2 .bl-dash-tops__item:hover { background: var(--bl-surface-2); }
body.theme-v2 .bl-dash-tops__rank {
    font-size: 13px;
    font-weight: 800;
    color: var(--bl-text-muted);
    text-align: center;
}
body.theme-v2 .bl-dash-tops__thumb {
    width: 40px;
    height: 40px;
    border-radius: var(--bl-radius-sm);
    background: var(--bl-surface-2);
    border: 1px solid var(--bl-border);
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--bl-text-muted);
    font-size: 18px;
}
body.theme-v2 .bl-dash-tops__thumb img {
    width: 100%; height: 100%; object-fit: cover; display: block;
}
body.theme-v2 .bl-dash-tops__info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
body.theme-v2 .bl-dash-tops__name {
    font-size: 13px;
    font-weight: 600;
    color: var(--bl-heading);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
body.theme-v2 .bl-dash-tops__sub {
    font-size: 11px;
    color: var(--bl-text-muted);
}
body.theme-v2 .bl-dash-tops__price {
    font-size: 13px;
    font-weight: 700;
    color: var(--bl-brand);
    white-space: nowrap;
}


/* ============================================================
   8. CITIES RANKED LIST
   ============================================================ */
body.theme-v2 .bl-dash-citylist {
    list-style: none;
    margin: 12px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
body.theme-v2 .bl-dash-citylist li {
    display: grid;
    grid-template-columns: 90px 1fr auto;
    align-items: center;
    gap: 10px;
    font-size: 12px;
}
body.theme-v2 .bl-dash-citylist__name {
    color: var(--bl-text);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
body.theme-v2 .bl-dash-citylist__bar {
    height: 6px;
    background: var(--bl-surface-2);
    border-radius: 999px;
    overflow: hidden;
    display: block;
}
body.theme-v2 .bl-dash-citylist__bar > span {
    display: block;
    height: 100%;
    border-radius: 999px;
    transition: width .4s ease;
}
body.theme-v2 .bl-dash-citylist__count {
    font-weight: 700;
    color: var(--bl-heading);
    min-width: 24px;
    text-align: end;
}


/* ============================================================
   9. RECENT ORDERS
   ============================================================ */
body.theme-v2 .bl-dash-recent {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
body.theme-v2 .bl-dash-recent__row {
    display: grid;
    grid-template-columns: 70px 1fr auto auto auto;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: var(--bl-radius-sm);
    text-decoration: none !important;
    color: inherit;
    transition: background .15s ease;
}
body.theme-v2 .bl-dash-recent__row:hover {
    background: var(--bl-surface-2);
    color: inherit;
}
body.theme-v2 .bl-dash-recent__id {
    font-size: 12px;
    font-weight: 700;
    color: var(--bl-text-muted);
    direction: ltr;
    text-align: start;
}
body.theme-v2 .bl-dash-recent__customer {
    font-size: 13px;
    font-weight: 600;
    color: var(--bl-heading);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}
body.theme-v2 .bl-dash-recent__total {
    font-size: 13px;
    font-weight: 700;
    color: var(--bl-text);
    white-space: nowrap;
}
body.theme-v2 .bl-dash-recent__status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
}
body.theme-v2 .bl-dash-recent__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}
body.theme-v2 .bl-dash-recent__status[data-tint="blue"]   { background: var(--bl-tint-blue-bg);   color: var(--bl-tint-blue-fg); }
body.theme-v2 .bl-dash-recent__status[data-tint="orange"] { background: var(--bl-tint-orange-bg); color: var(--bl-tint-orange-fg); }
body.theme-v2 .bl-dash-recent__status[data-tint="cyan"]   { background: var(--bl-tint-cyan-bg, #cffafe); color: var(--bl-tint-cyan-fg, #0891b2); }
body.theme-v2 .bl-dash-recent__status[data-tint="green"]  { background: var(--bl-tint-green-bg);  color: var(--bl-tint-green-fg); }
body.theme-v2 .bl-dash-recent__status[data-tint="red"]    { background: var(--bl-tint-red-bg);    color: var(--bl-tint-red-fg); }
body.theme-v2 .bl-dash-recent__time {
    font-size: 11px;
    color: var(--bl-text-muted);
    white-space: nowrap;
}

@media (max-width: 767.98px) {
    body.theme-v2 .bl-dash-recent__row {
        grid-template-columns: 60px 1fr auto;
        row-gap: 4px;
    }
    body.theme-v2 .bl-dash-recent__total,
    body.theme-v2 .bl-dash-recent__status,
    body.theme-v2 .bl-dash-recent__time {
        grid-column: 2 / -1;
    }
}


/* ============================================================
   10. PROMO / GROWTH CARD
   ============================================================ */
body.theme-v2 .bl-dash-card--promo .card-body {
    background: linear-gradient(135deg, #6366f1 0%, #2563eb 100%);
    color: #fff;
    padding: 22px !important;
}
body.theme-v2 .bl-dash-card--promo {
    border: none !important;
    box-shadow: 0 8px 24px rgba(37, 99, 235, .25) !important;
    overflow: hidden;
    position: relative;
}
body.theme-v2 .bl-dash-card--promo::before {
    content: "";
    position: absolute;
    inset-inline-end: -40px;
    bottom: -40px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    pointer-events: none;
}
body.theme-v2 .bl-dash-promo {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
body.theme-v2 .bl-dash-promo__icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .15);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    margin-bottom: 4px;
}
body.theme-v2 .bl-dash-promo__title {
    font-size: 18px;
    font-weight: 800;
    margin: 0;
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
body.theme-v2 .bl-dash-promo__text {
    font-size: 13px;
    color: rgba(255, 255, 255, .85);
    margin: 0 0 8px;
    line-height: 1.55;
}
body.theme-v2 .bl-dash-promo__cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    align-self: flex-start;
    height: 36px;
    padding: 0 16px;
    border-radius: var(--bl-radius-sm);
    background: rgba(255, 255, 255, .15);
    color: #fff !important;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none !important;
    transition: all .15s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
body.theme-v2 .bl-dash-promo__cta:hover {
    background: rgba(255, 255, 255, .25);
    transform: translateY(-1px);
}
html[dir="ltr"] body.theme-v2 .bl-dash-promo__cta i { transform: rotate(180deg); }


/* ============================================================
   11. QUICK ACTIONS
   ============================================================ */
body.theme-v2 .bl-section-head {
    margin: 24px 0 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}
body.theme-v2 .bl-section-head h4.head_text {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: var(--bl-heading);
}

body.theme-v2 .bl-dash-quick {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}
@media (max-width: 767.98px) {
    body.theme-v2 .bl-dash-quick { grid-template-columns: repeat(2, 1fr); }
}
body.theme-v2 .bl-dash-quick__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 18px 14px;
    background: var(--bl-surface);
    border: 1px solid var(--bl-border);
    border-radius: var(--bl-radius);
    text-decoration: none !important;
    color: inherit;
    transition: all .2s ease;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .03);
    text-align: center;
}
body.theme-v2 .bl-dash-quick__item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(15, 23, 42, .08);
    color: inherit;
    border-color: transparent;
}
body.theme-v2 .bl-dash-quick__icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    transition: all .2s ease;
}
body.theme-v2 .bl-dash-quick__item:hover .bl-dash-quick__icon {
    transform: scale(1.05);
}
body.theme-v2 .bl-dash-quick__item[data-tint="blue"]   .bl-dash-quick__icon { background: var(--bl-tint-blue-bg);   color: var(--bl-tint-blue-fg); }
body.theme-v2 .bl-dash-quick__item[data-tint="green"]  .bl-dash-quick__icon { background: var(--bl-tint-green-bg);  color: var(--bl-tint-green-fg); }
body.theme-v2 .bl-dash-quick__item[data-tint="orange"] .bl-dash-quick__icon { background: var(--bl-tint-orange-bg); color: var(--bl-tint-orange-fg); }
body.theme-v2 .bl-dash-quick__item[data-tint="purple"] .bl-dash-quick__icon { background: var(--bl-tint-purple-bg, #ede9fe); color: var(--bl-tint-purple-fg, #7c3aed); }
body.theme-v2 .bl-dash-quick__name {
    font-size: 13px;
    font-weight: 700;
    color: var(--bl-heading);
}


/* ============================================================
   12. EMPTY STATES
   ============================================================ */
body.theme-v2 .bl-dash-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 32px 16px;
    color: var(--bl-text-muted);
    text-align: center;
}
body.theme-v2 .bl-dash-empty i {
    font-size: 36px;
    color: var(--bl-border);
}
body.theme-v2 .bl-dash-empty span {
    font-size: 13px;
    color: var(--bl-text-muted);
    font-weight: 600;
}

/* Empty placeholder for the 7-day sales chart when totalSum == 0 */
body.theme-v2 .bl-chart-empty {
    height: 100%;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 16px;
    text-align: center;
}
body.theme-v2 .bl-chart-empty i {
    font-size: 38px;
    color: var(--bl-border, #e5e7eb);
}
body.theme-v2 .bl-chart-empty span {
    font-size: 13px;
    font-weight: 700;
    color: var(--bl-text, #334155);
}
body.theme-v2 .bl-chart-empty small {
    font-size: 11px;
    color: var(--bl-text-muted, #64748b);
    max-width: 320px;
    line-height: 1.5;
}

/* Empty placeholder for the cities ranked list */
body.theme-v2 .bl-dash-citylist__placeholder {
    display: flex !important;
    grid-template-columns: none !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 28px 12px !important;
    color: var(--bl-text-muted, #64748b);
    text-align: center;
}
body.theme-v2 .bl-dash-citylist__placeholder i {
    font-size: 32px;
    color: var(--bl-border, #e5e7eb);
}
body.theme-v2 .bl-dash-citylist__placeholder span {
    font-size: 12px;
    font-weight: 600;
}


/* ============================================================
   13. NEUTRALISE LEGACY DASHBOARD STYLES THAT BLEED IN
   ------------------------------------------------------------
   Earlier dashboard.css / dashboard-v2.css apply heavy padding
   and shadows to .card. Inside our v3 layout we already control
   spacing, so override the legacy bits.
   ============================================================ */
body.theme-v2 .bl-dash-row .card.bl-dash-card,
body.theme-v2 .bl-dash-card { margin-bottom: 0 !important; }


/* ============================================================
   14. RTL caret handling for arrows used in the cards
   ============================================================ */
html[dir="ltr"] body.theme-v2 .bl-dash-promo__cta i.fa-chevron-left,
html[dir="ltr"] body.theme-v2 .bl-dash-alert__arrow.fa-chevron-left {
    transform: rotate(180deg);
}
