.dct-preview-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    padding: 3px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), color-mix(in srgb, var(--dct-accent, #40B0FF) 12%, #f4f8ff));
    border: 1px solid color-mix(in srgb, var(--dct-accent, #40B0FF) 28%, #e3eaf3);
    box-shadow: 0 2px 6px rgba(16, 24, 40, 0.06);
}

.dct-preview-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.dct-menu-item-row {
    min-width: 220px;
}

.sc-chart-menu-item--active {
    background: color-mix(in srgb, var(--mud-palette-primary) 10%, transparent);
}

.nd-chart-widget {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 12px 14px;
    gap: 8px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(244, 248, 255, 0.92));
    border-radius: 16px;
    overflow: hidden;
}

.nd-chart-widget__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-shrink: 0;
}

.nd-chart-widget__title {
    font-weight: 700;
    font-size: 0.9rem;
}

.nd-chart-widget__kpi {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
}

.nd-chart-widget__body {
    flex: 1;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.nd-chart-widget__body svg {
    width: 100%;
    height: 100%;
    max-height: 100%;
    overflow: visible;
}

.nd-chart-anim-key {
    animation-duration: 1.1s;
    animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
    animation-fill-mode: both;
}

@keyframes nd-bar-rise {
    from { transform: scaleY(0); opacity: 0.2; }
    to { transform: scaleY(1); opacity: 1; }
}

@keyframes nd-line-draw {
    from { stroke-dashoffset: 1000; opacity: 0.3; }
    to { stroke-dashoffset: 0; opacity: 1; }
}

@keyframes nd-area-fade {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes nd-radar-pop {
    from { transform: scale(0.55); opacity: 0.15; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes nd-donut-spin {
    from { stroke-dashoffset: 400; opacity: 0.4; }
    to { stroke-dashoffset: var(--nd-target-offset, 0); opacity: 1; }
}

@keyframes nd-gauge-sweep {
    from { stroke-dashoffset: 220; }
    to { stroke-dashoffset: var(--nd-gauge-offset, 80); }
}

@keyframes nd-hbar-grow {
    from { width: 0; opacity: 0.25; }
    to { width: var(--nd-hbar-width, 50%); opacity: 1; }
}

@keyframes nd-pulse-dot {
    0%, 100% { transform: scale(1); opacity: 0.85; }
    50% { transform: scale(1.25); opacity: 1; }
}

.nd-bar-col {
    transform-origin: bottom center;
    animation: nd-bar-rise 1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.nd-line-path {
    stroke-dasharray: 1000;
    animation: nd-line-draw 1.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.nd-area-fill {
    animation: nd-area-fade 1.2s ease both;
}

.nd-radar-poly {
    transform-origin: center;
    animation: nd-radar-pop 1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.nd-donut-seg {
    animation: nd-donut-spin 1.3s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.nd-gauge-arc {
    stroke-dasharray: 220;
    animation: nd-gauge-sweep 1.2s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.nd-radial-ring {
    stroke-dasharray: 500;
    animation: nd-donut-spin 1.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.nd-hbar-track {
    animation: nd-hbar-grow 1.1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.nd-live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #2ed4a5;
    box-shadow: 0 0 0 0 rgba(46, 212, 165, 0.5);
    animation: nd-pulse-dot 2s ease infinite;
}

.nd-chart-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
    font-size: 0.7rem;
    justify-content: center;
}

.nd-chart-legend__item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.nd-chart-legend__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.nd-gauge-wrap {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nd-gauge-wrap svg {
    width: 100%;
    height: auto;
    max-height: 100%;
}

.nd-gauge-center {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    padding-top: 18%;
}

.nd-donut-center {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.nd-chart-widget--live {
    box-shadow: 0 0 0 1px rgba(46, 212, 165, 0.25), 0 8px 24px rgba(16, 24, 40, 0.08);
}

@keyframes nd-live-breathe {
    0%, 100% { opacity: 0.92; filter: saturate(1); }
    50% { opacity: 1; filter: saturate(1.15); }
}

.nd-live-morph {
    animation: nd-live-breathe 2.8s ease-in-out infinite;
}

.nd-thermo-row {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 18px;
    width: 100%;
    height: 100%;
    padding: 8px 0;
}

.nd-thermo-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.nd-thermo-tube {
    width: 28px;
    height: 100px;
    border-radius: 999px;
    background: #eef2f8;
    border: 2px solid #dce4ef;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
}

.nd-thermo-liquid {
    width: 100%;
    border-radius: 999px;
    transition: height 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.nd-thermo-val {
    font-size: 0.7rem;
    font-weight: 700;
    color: #37474f;
}

.nd-spark-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    width: 100%;
}

.nd-spark-card {
    background: #f8fafc;
    border-radius: 10px;
    padding: 6px 8px;
    border: 1px solid #edf1f7;
}

.nd-spark-title {
    font-size: 0.68rem;
    color: #607d8b;
    margin-bottom: 4px;
}

.nd-spark-bars {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 36px;
}

.nd-spark-bar {
    flex: 1;
    border-radius: 4px 4px 0 0;
    animation: nd-bar-rise 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
    transition: height 0.6s ease;
}

.nd-spark-delta {
    font-size: 0.65rem;
    font-weight: 700;
}

.nd-bubble {
    transition: r 0.7s ease, cx 0.7s ease, cy 0.7s ease;
}

.nd-slant-bar {
    transform-origin: bottom center;
    animation: nd-bar-rise 1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.nd-burst-line {
    transform-origin: center;
    animation: nd-radar-pop 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
    transition: x2 0.6s ease, y2 0.6s ease;
}

.nd-map-callout {
    animation: nd-radar-pop 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* --- چیدمان داشبورد: جابه‌جایی و تغییر اندازه --- */
.nd-dashboard-canvas {
    position: relative;
    min-height: 1400px;
    background: #f4f6fb;
    border-radius: 16px;
    padding: 8px;
    touch-action: none;
    user-select: none;
}

.nd-dashboard-canvas.editing-active {
    border: 2px dashed #b0bec5;
    background: rgba(244, 246, 251, 0.95);
}

.nd-widget-box {
    position: absolute;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(16, 24, 40, 0.08);
    border: 1px solid #edf1f7;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: box-shadow 0.15s;
}

.nd-dashboard-canvas.editing-active .nd-widget-box {
    border: 1px dashed var(--mud-palette-primary);
    cursor: default;
    transition: left 0.22s cubic-bezier(0.22, 1, 0.36, 1), top 0.22s cubic-bezier(0.22, 1, 0.36, 1),
                width 0.22s cubic-bezier(0.22, 1, 0.36, 1), height 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

.nd-widget-box--active {
    box-shadow: 0 12px 32px rgba(25, 118, 210, 0.22);
    z-index: 9999 !important;
    transition: none !important;
}

.nd-widget-drag-handle {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 28px;
    background: linear-gradient(90deg, rgba(25, 118, 210, 0.12), rgba(46, 212, 165, 0.1));
    border-bottom: 1px solid #e3eaf3;
    cursor: grab;
    flex-shrink: 0;
    z-index: 60;
    touch-action: none;
}

.nd-dashboard-canvas.editing-active .nd-widget-drag-handle {
    display: flex;
}

.nd-widget-drag-handle:active {
    cursor: grabbing;
}

.nd-widget-content {
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.nd-dashboard-canvas.editing-active .nd-widget-content {
    pointer-events: none;
}

.nd-dashboard-canvas.editing-active .nd-widget-content .nd-chart-widget__header,
.nd-dashboard-canvas.editing-active .dwp-pack-layout-preview .nd-chart-widget__header,
.nd-dashboard-canvas.editing-active .nd-widget-content .sc-chart-settings,
.nd-dashboard-canvas.editing-active .dwp-pack-layout-preview .sc-chart-settings {
    pointer-events: auto;
}

.nd-widget-box--pack .nd-widget-content {
    pointer-events: auto;
    overflow: hidden;
}

.nd-widget-pack-host {
    flex: 1;
    min-height: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.dwp-pack-fill {
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.dwp-pack-grid {
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.dwp-pack-grid-item {
    min-height: 0;
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 10px;
    border: 1px solid #e4e7ec;
    box-shadow: 0 1px 3px rgba(16, 24, 40, 0.06), 0 4px 12px rgba(16, 24, 40, 0.04);
}

.dwp-pack-grid-item .nd-chart-widget.sc-analytics-chart {
    border-radius: 10px;
    border: none;
    box-shadow: none;
}

.sc-analytics-pack-host {
    background: #f4f6f9;
    border-radius: 10px;
    border: 1px solid #e4e7ec;
    overflow: hidden;
}

.sc-analytics-pack-host .dwp-pack-canvas {
    border-radius: 10px;
}

.sc-analytics-preview-shell {
    background: #eef1f6;
    border-radius: 12px;
    padding: 12px;
    min-height: 420px;
}

.dwp-pack-tabs {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.dwp-pack-tab-panel {
    height: 100%;
    min-height: 0;
    overflow: hidden;
}

.dwp-pack-tab-item {
    height: 100%;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.nd-resize-handle {
    position: absolute;
    z-index: 90;
    opacity: 0;
    transition: opacity 0.15s;
    touch-action: none;
    pointer-events: auto;
}

.nd-dashboard-canvas.editing-active .nd-resize-handle {
    opacity: 1;
}

.dwp-color-swatch {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid #d0d5dd;
    flex-shrink: 0;
}

.dwp-color-preset-btn {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    border-radius: 50% !important;
    border: 2px solid #fff !important;
    box-shadow: 0 1px 4px rgba(16, 24, 40, 0.18) !important;
}

.nd-resize-e {
    top: 28px;
    bottom: 8px;
    right: -5px;
    width: 10px;
    cursor: ew-resize;
    background: linear-gradient(90deg, transparent, rgba(25, 118, 210, 0.35));
    border-radius: 4px;
}

.nd-resize-s {
    left: 8px;
    right: 8px;
    bottom: -5px;
    height: 10px;
    cursor: ns-resize;
    background: linear-gradient(180deg, transparent, rgba(25, 118, 210, 0.35));
    border-radius: 4px;
}

.nd-resize-se {
    right: -6px;
    bottom: -6px;
    width: 18px;
    height: 18px;
    cursor: nwse-resize;
    background: var(--mud-palette-primary);
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.nd-widget-actions {
    position: absolute;
    top: 30px;
    inset-inline-start: 6px;
    z-index: 80;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.nd-settings-btn,
.nd-delete-btn {
    position: static;
}

.nd-widget-box--selected {
    box-shadow: 0 0 0 2px var(--mud-palette-primary), 0 10px 28px rgba(25, 118, 210, 0.18);
}

.nd-dashboard-canvas--dragging .nd-widget-box:not(.nd-widget-box--active) {
    transition: none;
}

.nd-grid-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.nd-grid-overlay--editable .nd-grid-slot {
    pointer-events: auto;
    cursor: pointer;
}

.nd-grid-slot--checked {
    border: 2px solid rgba(156, 39, 176, 0.55) !important;
    background: rgba(156, 39, 176, 0.1) !important;
}

.nd-grid-slot--primary {
    border: 2px solid var(--mud-palette-secondary) !important;
    background: rgba(156, 39, 176, 0.16) !important;
    box-shadow: inset 0 0 0 1px rgba(156, 39, 176, 0.22), 0 0 0 2px rgba(156, 39, 176, 0.12);
}

.nd-grid-slot__check {
    position: absolute;
    top: 4px;
    inset-inline-end: 4px;
    z-index: 11;
    pointer-events: auto;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 6px;
    padding: 0 2px;
    box-shadow: 0 1px 4px rgba(16, 24, 40, 0.12);
}

.nd-grid-gap-slider {
    width: 120px;
    max-width: 36vw;
}

.nd-grid-gap-control {
    min-width: 200px;
}

.nd-grid-slot-resize {
    position: absolute;
    z-index: 12;
    opacity: 0.85;
    pointer-events: auto;
    touch-action: none;
}

.nd-grid-slot-resize-e {
    top: 8px;
    bottom: 8px;
    inset-inline-end: -5px;
    width: 10px;
    cursor: ew-resize;
    background: linear-gradient(90deg, transparent, rgba(156, 39, 176, 0.45));
    border-radius: 4px;
}

.nd-grid-slot-resize-s {
    inset-inline-start: 8px;
    inset-inline-end: 8px;
    bottom: -5px;
    height: 10px;
    cursor: ns-resize;
    background: linear-gradient(180deg, transparent, rgba(156, 39, 176, 0.45));
    border-radius: 4px;
}

.nd-grid-slot-resize-se {
    inset-inline-end: -6px;
    bottom: -6px;
    width: 16px;
    height: 16px;
    cursor: nwse-resize;
    background: var(--mud-palette-secondary);
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.nd-dashboard-canvas--slot-resizing .nd-grid-slot {
    transition: none;
}

.nd-grid-slot__select-badge {
    position: absolute;
    top: 4px;
    inset-inline-end: 4px;
    color: var(--mud-palette-secondary);
    opacity: 0.9;
    pointer-events: none;
}

.nd-grid-toolbar {
    position: relative;
    z-index: 5;
}

.nd-grid-overlay--dragging {
    background: rgba(25, 118, 210, 0.03);
}

.nd-grid-slot {
    position: absolute;
    border: 1px dashed #b0bec5;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.25);
    box-sizing: border-box;
    transition: background 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease, opacity 0.12s ease;
}

.nd-grid-overlay--dragging .nd-grid-slot {
    background: rgba(144, 202, 249, 0.12);
    border-color: #90caf9;
}

.nd-grid-slot--lit {
    background: rgba(25, 118, 210, calc(0.1 + var(--cell-proximity, 0) * 0.28));
    border-color: rgba(25, 118, 210, calc(0.35 + var(--cell-proximity, 0) * 0.5));
    box-shadow: inset 0 0 0 1px rgba(25, 118, 210, calc(var(--cell-proximity, 0) * 0.15));
}

.nd-grid-slot--target {
    border: 2px solid var(--mud-palette-primary);
    background: rgba(25, 118, 210, 0.32);
    box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.18), inset 0 0 0 1px rgba(25, 118, 210, 0.25);
}

.nd-grid-slot__drop-hint {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--mud-palette-primary);
    opacity: 0.85;
    pointer-events: none;
}

.nd-snap-ghost {
    position: absolute;
    z-index: 2;
    border: 2px dashed var(--mud-palette-primary);
    border-radius: 14px;
    background: rgba(25, 118, 210, 0.1);
    box-shadow: 0 0 0 4px rgba(25, 118, 210, 0.08);
    pointer-events: none;
    transition: left 0.1s ease, top 0.1s ease, width 0.15s ease, height 0.15s ease;
}

.nd-canvas-toolbar {
    position: relative;
    z-index: 4;
}

.nd-widget-drag-handle,
.nd-widget-actions,
.nd-resize-handle {
    z-index: 60;
}

.nd-widget-box--active,
.nd-widget-box--selected {
    z-index: 50 !important;
}

.dwp-editor-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 12px;
    align-items: start;
    min-height: 420px;
}

.dwp-editor-canvas-zone {
    min-width: 0;
}

.dwp-editor-settings-rail {
    position: sticky;
    top: 0;
    max-height: min(72vh, 680px);
    overflow-y: auto;
}

.dwp-settings-empty {
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nd-home-editor-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 12px;
    align-items: start;
}

.nd-home-editor-main {
    min-width: 0;
}

.nd-home-editor-rail {
    position: sticky;
    top: 12px;
    max-height: calc(100vh - 180px);
    overflow-y: auto;
}

@media (max-width: 1100px) {
    .dwp-editor-workspace,
    .nd-home-editor-layout {
        grid-template-columns: 1fr;
    }

    .dwp-editor-settings-rail,
    .nd-home-editor-rail {
        position: static;
        max-height: none;
        order: 2;
    }
}

/* --- SafetyCulture-inspired Analytics shell --- */
.sc-analytics-page {
    background: #eef1f6;
    border-radius: 12px;
    padding: 0;
    min-height: 100%;
}

.sc-analytics-toolbar {
    background: #fff;
    border: 1px solid #e4e7ec;
    border-radius: 12px 12px 0 0;
    padding: 14px 18px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.sc-analytics-toolbar__icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, #e8f1ff, #f0f7ff);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sc-analytics-toolbar__title {
    font-weight: 600 !important;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.sc-analytics-body {
    background: #eef1f6;
    border: 1px solid #e4e7ec;
    border-top: none;
    border-radius: 0 0 12px 12px;
    padding: 16px;
}

.sc-analytics-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-items: start;
}

@media (max-width: 1200px) {
    .sc-analytics-split {
        grid-template-columns: 1fr;
    }
}

.sc-analytics-panel {
    background: #fff;
    border: 1px solid #e4e7ec;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(16, 24, 40, 0.06);
    min-height: 480px;
    display: flex;
    flex-direction: column;
}

.sc-analytics-panel__head {
    padding: 12px 16px;
    border-bottom: 1px solid #eef1f6;
    background: #fafbfc;
}

.sc-analytics-panel__body {
    flex: 1;
    min-height: 0;
    padding: 8px;
    background: #f4f6f9;
}

.sc-layout-toggle .mud-toggle-item {
    font-size: 0.78rem;
}

.nd-dashboard-canvas.sc-analytics-canvas {
    background: #f4f6f9;
    border: 1px solid #e4e7ec;
    border-radius: 10px;
    padding: 12px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.nd-dashboard-canvas.sc-analytics-canvas.editing-active {
    border: 2px dashed #94b8f7;
    background: #f8fafc;
}

.nd-widget-box.sc-analytics-card {
    background: #fff;
    border-radius: 10px;
    border: 1px solid #e4e7ec;
    box-shadow: 0 1px 3px rgba(16, 24, 40, 0.06), 0 4px 12px rgba(16, 24, 40, 0.04);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.nd-widget-box.sc-analytics-card:hover {
    box-shadow: 0 2px 8px rgba(16, 24, 40, 0.08), 0 8px 20px rgba(16, 24, 40, 0.06);
}

.nd-dashboard-canvas.editing-active .nd-widget-box.sc-analytics-card {
    border: 1px solid #b8d4f8;
}

.sc-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 12px 8px;
    border-bottom: 1px solid #eef1f6;
    background: #fff;
    flex-shrink: 0;
}

.sc-card-header__title {
    font-weight: 600 !important;
    font-size: 0.82rem !important;
    color: #1a2233;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sc-card-header__actions .mud-icon-button {
    opacity: 0.55;
    transition: opacity 0.15s;
}

.sc-card-header__actions .mud-icon-button:hover {
    opacity: 1;
}

.sc-card-settings {
    color: #6b7280 !important;
}

.nd-chart-widget.sc-analytics-chart {
    background: #fff;
    border-radius: 0 0 10px 10px;
    padding: 8px 12px 12px;
    gap: 6px;
    height: 100%;
}

.nd-chart-widget.sc-analytics-chart .nd-chart-widget__header {
    padding-bottom: 4px;
    border-bottom: none;
}

.nd-chart-widget.sc-analytics-chart .nd-chart-widget__title {
    font-size: 0.82rem;
    font-weight: 600;
    color: #374151;
}

.sc-chart-settings {
    opacity: 0.5;
}

.sc-chart-settings:hover {
    opacity: 1;
}

.sc-chart-menu-item--active {
    background: #eef4ff !important;
}

.dwp-pack-layout-preview {
    height: 100%;
    min-height: 0;
    overflow: hidden;
}

.dwp-pack-layout-preview .nd-chart-widget {
    height: 100%;
}

.ex-dashboard--dark .sc-analytics-page {
    background: #1a1f2e;
}

.ex-dashboard--dark .sc-analytics-toolbar,
.ex-dashboard--dark .sc-analytics-card,
.ex-dashboard--dark .sc-analytics-panel {
    background: #232a3b !important;
    border-color: #3a4558 !important;
    color: #e8edf5;
}

.ex-dashboard--dark .sc-analytics-body {
    background: #151a24;
    border-color: #3a4558;
}

.sc-page-chips {
    margin-bottom: 12px;
}

.sc-page-chips .mud-chip {
    border-radius: 20px;
}

/* --- گیج سه‌بعدی فلزی --- */
.nd-gauge-3d {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nd-gauge-3d svg {
    width: 100%;
    max-height: 100%;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.18));
}

.nd-gauge-arc {
    transition: stroke-dashoffset 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

/* --- میله سه‌بعدی --- */
.nd-bar-3d-wrap,
.nd-donut-3d-wrap,
.nd-line-3d-wrap,
.nd-radar-3d-wrap,
.nd-radial-3d-wrap,
.nd-bubble-3d-wrap,
.nd-map-3d-wrap,
.nd-burst-3d-wrap,
.nd-dualarc-3d-wrap {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.nd-column-3d-svg {
    width: 100%;
    max-height: 100%;
    filter: drop-shadow(0 6px 14px rgba(16, 24, 40, 0.1));
}

.nd-line-3d-path {
    filter: drop-shadow(0 2px 4px rgba(64, 176, 255, 0.35));
}

.nd-thermo-3d-row {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 12px;
    width: 100%;
    height: 100%;
    padding: 8px;
}

.nd-thermo-3d-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.nd-thermo-3d-glass {
    width: 28px;
    height: 88px;
    border-radius: 14px 14px 6px 6px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.9), rgba(207, 216, 220, 0.5));
    border: 2px solid #B0BEC5;
    box-shadow: inset -3px 0 8px rgba(0, 0, 0, 0.08), 4px 6px 12px rgba(0, 0, 0, 0.12);
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.nd-thermo-3d-liquid {
    width: 100%;
    border-radius: 0 0 4px 4px;
    transition: height 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.nd-thermo-3d-base {
    width: 36px;
    height: 14px;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.nd-spark-3d-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 8px;
    width: 100%;
    height: 100%;
    padding: 6px;
}

.nd-spark-3d-card {
    background: #fff;
    border-radius: 10px;
    padding: 6px;
    box-shadow: 0 4px 12px rgba(16, 24, 40, 0.08);
    display: flex;
    flex-direction: column;
    gap: 4px;
    transform: perspective(400px) rotateX(4deg);
}

.nd-spark-3d-chart {
    height: 52px;
}

.nd-fleet-widget--3d {
    transform: perspective(900px) rotateX(2deg);
    filter: drop-shadow(0 10px 20px rgba(16, 24, 40, 0.12));
}

.nd-infographic-arrows--3d .nd-infographic-arrows__shadow {
    position: absolute;
    bottom: -4px;
    left: 12%;
    right: 12%;
    height: 8px;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 50%;
    filter: blur(3px);
}

.nd-infographic-arrows--3d .nd-infographic-arrows__item {
    transform: perspective(500px) rotateX(6deg);
}

.nd-bar-col {
    transform-origin: bottom center;
    animation: nd-bar-rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.nd-donut-seg {
    animation: nd-donut-spin 1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.nd-donut-center {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    font-size: 0.75rem;
    color: #37474f;
}

.nd-donut-center strong {
    font-size: 1.1rem;
    color: #1a2233;
}

/* --- ویجت ناوگان (نقشه + زمان‌بندی) --- */
.nd-fleet-widget {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 0;
    overflow: hidden;
}

.nd-fleet-widget__map {
    flex: 0 0 42%;
    min-height: 120px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(16, 24, 40, 0.08);
}

.nd-fleet-map-svg {
    width: 100%;
    height: 100%;
    display: block;
}

.nd-fleet-widget__schedule {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e8edf3;
    overflow: hidden;
}

.nd-fleet-widget__schedule-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: linear-gradient(180deg, #f8fafc, #fff);
    border-bottom: 1px solid #eef1f6;
    font-size: 0.78rem;
    font-weight: 700;
    color: #374151;
}

.nd-fleet-widget__schedule-meta {
    font-weight: 500;
    color: #6b7280;
    font-size: 0.72rem;
}

.nd-fleet-widget__timeline {
    flex: 1;
    min-height: 0;
    overflow: auto;
    position: relative;
    padding: 4px 0 8px;
}

.nd-fleet-widget__hours {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    padding: 4px 8px 4px 108px;
    font-size: 0.65rem;
    color: #9ca3af;
    border-bottom: 1px solid #f0f2f5;
}

.nd-fleet-widget__now-line {
    position: absolute;
    top: 28px;
    bottom: 4px;
    width: 2px;
    background: #e53935;
    z-index: 2;
    pointer-events: none;
    box-shadow: 0 0 6px rgba(229, 57, 53, 0.45);
}

.nd-fleet-widget__row {
    display: flex;
    align-items: stretch;
    min-height: 52px;
    border-bottom: 1px solid #f3f4f6;
}

.nd-fleet-widget__tech {
    flex: 0 0 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 6px 4px;
    border-inline-end: 1px solid #f0f2f5;
}

.nd-fleet-widget__avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--tech-color, #1e88e5);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nd-fleet-widget__name {
    font-size: 0.62rem;
    color: #4b5563;
    text-align: center;
    line-height: 1.2;
    max-width: 92px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nd-fleet-widget__track {
    flex: 1;
    position: relative;
    min-height: 48px;
    margin: 6px 8px;
}

.nd-fleet-widget__block {
    position: absolute;
    top: 4px;
    bottom: 4px;
    border-radius: 6px;
    padding: 2px 6px;
    color: #fff;
    font-size: 0.6rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
    transition: transform 0.15s;
}

.nd-fleet-widget__block:hover {
    transform: translateY(-1px);
    z-index: 1;
}

.nd-fleet-widget__block-num {
    font-weight: 700;
    font-size: 0.68rem;
}

.nd-fleet-widget__block-time {
    opacity: 0.9;
}

.nd-fleet-widget__block-label {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    opacity: 0.85;
}

/* --- فلش‌های اینفوگرافیک KPI --- */
.nd-infographic-arrows {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: clamp(4px, 1.5vw, 12px);
    padding: 8px 4px 4px;
    overflow-x: auto;
}

.nd-infographic-arrows__item {
    flex: 1 1 0;
    min-width: 72px;
    max-width: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
}

.nd-infographic-arrows__shaft {
    width: 72%;
    height: calc(var(--arrow-h, 70%) * 0.55);
    min-height: 24px;
    background: linear-gradient(135deg, var(--arrow-color) 0%, color-mix(in srgb, var(--arrow-color) 70%, #000) 100%);
    clip-path: polygon(0 100%, 0 12%, 100% 0, 100% 100%);
    box-shadow: inset -6px 0 12px rgba(0, 0, 0, 0.15);
    margin-bottom: -2px;
}

.nd-infographic-arrows__head {
    width: 0;
    height: 0;
    border-left: 14px solid transparent;
    border-right: 14px solid transparent;
    border-bottom: 18px solid var(--arrow-color);
    filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.15));
    margin-bottom: 6px;
}

.nd-infographic-arrows__bar {
    width: 56%;
    height: calc(var(--arrow-h, 70%) * 0.5);
    min-height: 20px;
    background: var(--arrow-color);
    border-radius: 4px 4px 0 0;
    margin-bottom: 8px;
}

.nd-infographic-arrows__icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 3px 10px rgba(16, 24, 40, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: #78909c;
    margin-bottom: 6px;
}

.nd-infographic-arrows__title {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--arrow-color);
    line-height: 1.2;
    margin-bottom: 4px;
}

.nd-infographic-arrows__desc {
    font-size: 0.62rem;
    color: color-mix(in srgb, var(--arrow-color) 65%, #607d8b);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nd-chart-widget__body .nd-fleet-widget,
.nd-chart-widget__body .nd-infographic-arrows,
.nd-chart-widget__body .nd-gauge-3d,
.nd-chart-widget__body .nd-bar-3d-wrap {
    width: 100%;
    height: 100%;
}

@media (max-width: 600px) {
    .nd-infographic-arrows__item {
        min-width: 56px;
    }

    .nd-fleet-widget__tech {
        flex: 0 0 72px;
    }

    .nd-fleet-widget__hours {
        padding-inline-start: 80px;
    }
}

/* --- صفحه پیشخوان (Home) — ظاهر مدرن + حفظ افکت‌های نمودار --- */
.widget-loading-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(6px);
    z-index: 10;
    padding: 20px;
    text-align: center;
}

.home-dashboard-root {
    position: relative;
}

.home-dashboard-page {
    position: relative;
    overflow: visible;
    border-radius: 16px;
    background: linear-gradient(165deg, #eef3fb 0%, #e8edf6 42%, #f4f7fc 100%);
    box-shadow: 0 12px 40px rgba(16, 24, 40, 0.06);
}

.home-dashboard-page__bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.home-dashboard-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(42px);
    opacity: 0.45;
    animation: home-orb-float 14s ease-in-out infinite;
}

.home-dashboard-orb--1 {
    width: 280px;
    height: 280px;
    top: -80px;
    inset-inline-end: -40px;
    background: radial-gradient(circle, rgba(25, 118, 210, 0.35), transparent 70%);
}

.home-dashboard-orb--2 {
    width: 220px;
    height: 220px;
    bottom: 12%;
    inset-inline-start: -60px;
    background: radial-gradient(circle, rgba(46, 212, 165, 0.28), transparent 70%);
    animation-delay: -4s;
}

.home-dashboard-orb--3 {
    width: 180px;
    height: 180px;
    top: 38%;
    inset-inline-start: 42%;
    background: radial-gradient(circle, rgba(126, 87, 194, 0.22), transparent 70%);
    animation-delay: -8s;
}

@keyframes home-orb-float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(12px, -10px) scale(1.04); }
    66% { transform: translate(-8px, 8px) scale(0.96); }
}

.home-dashboard-toolbar,
.home-dashboard-body,
.home-dashboard-toolbar__inner {
    position: relative;
    z-index: 1;
}

.home-dashboard-toolbar {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(248, 251, 255, 0.92));
    border: 1px solid rgba(148, 184, 247, 0.28);
    border-radius: 16px 16px 0 0;
    box-shadow: 0 4px 18px rgba(25, 118, 210, 0.06);
    backdrop-filter: blur(8px);
}

.home-dashboard-toolbar__icon {
    background: linear-gradient(135deg, #dbeafe, #eff6ff);
    box-shadow: 0 4px 14px rgba(25, 118, 210, 0.15);
    animation: home-icon-pulse 3.5s ease-in-out infinite;
}

@keyframes home-icon-pulse {
    0%, 100% { box-shadow: 0 4px 14px rgba(25, 118, 210, 0.15); }
    50% { box-shadow: 0 6px 20px rgba(25, 118, 210, 0.28); }
}

.home-dashboard-toolbar__title {
    background: linear-gradient(90deg, #1a237e, #1565c0);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent !important;
}

.home-dashboard-toolbar__subtitle {
    line-height: 1.55;
}

.home-dashboard-toolbar__chips .mud-chip {
    border-radius: 999px;
}

.home-dashboard-toolbar__stack {
    width: 100%;
}

.home-dashboard-toolbar__main {
    width: 100%;
    gap: 12px;
}

.home-dashboard-toolbar__brand,
.home-dashboard-toolbar__actions,
.home-dashboard-toolbar__widget-settings,
.home-toolbar-slot-fields {
    text-align: inherit;
}

.home-dashboard-toolbar__edit-strip,
.home-dashboard-toolbar__widget-strip,
.home-dashboard-toolbar__slot-strip {
    width: 100%;
    padding: 10px 12px;
    border-radius: 12px;
}

.home-dashboard-toolbar__edit-strip {
    background: linear-gradient(135deg, rgba(237, 244, 255, 0.72), rgba(248, 251, 255, 0.9));
    border: 1px dashed rgba(25, 118, 210, 0.28);
}

.home-dashboard-toolbar__widget-strip {
    background: linear-gradient(135deg, rgba(232, 245, 233, 0.55), rgba(248, 251, 255, 0.95));
    border: 1px solid rgba(46, 125, 50, 0.28);
}

.home-dashboard-toolbar__slot-strip {
    background: linear-gradient(135deg, rgba(243, 229, 245, 0.45), rgba(248, 251, 255, 0.92));
    border: 1px dashed rgba(156, 39, 176, 0.24);
}

.home-widget-settings-panel {
    width: 100%;
    background: transparent;
    border: none;
}

.home-widget-settings-panel__inner {
    width: 100%;
}

.home-widget-settings-panel__title {
    min-width: 180px;
    max-width: 280px;
}

.home-widget-settings-panel__chart-kind {
    min-width: 220px;
    max-width: 320px;
}

.home-widget-settings-panel__kpi-value {
    min-width: 160px;
    max-width: 220px;
}

.home-widget-settings-panel__pack-hint {
    max-width: 420px;
}

.home-dashboard-toolbar__divider {
    align-self: stretch;
    min-height: 36px;
}

.home-dashboard-toolbar__title-field {
    min-width: 180px;
    max-width: 260px;
}

.home-toolbar-slot-field {
    min-width: 140px;
    max-width: 180px;
}

.home-toolbar-slot-hint {
    max-width: 320px;
    line-height: 1.6;
}

.home-dashboard-page[dir="rtl"] .home-dashboard-toolbar__text,
.home-dashboard-page[dir="rtl"] .home-dashboard-toolbar__subtitle,
.home-dashboard-page[dir="rtl"] .home-dashboard-toolbar__edit-strip,
.home-dashboard-page[dir="rtl"] .home-toolbar-slot-hint,
.home-dashboard-page[dir="rtl"] .mud-alert-message,
.home-dashboard-page[dir="rtl"] .mud-chip-content {
    text-align: right;
}

.home-dashboard-page[dir="rtl"] .home-dashboard-toolbar__main,
.home-dashboard-page[dir="rtl"] .home-dashboard-toolbar__edit-strip .mud-stack-root {
    direction: rtl;
}

.home-dashboard-page[dir="ltr"] .home-dashboard-toolbar__text,
.home-dashboard-page[dir="ltr"] .home-dashboard-toolbar__subtitle,
.home-dashboard-page[dir="ltr"] .home-toolbar-slot-hint {
    text-align: left;
}

.home-dashboard-body {
    background: linear-gradient(180deg, rgba(238, 243, 251, 0.65), rgba(244, 247, 252, 0.9));
}

.home-dashboard-body--editing {
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
}

.home-widget-card--slot-snap:not(.nd-widget-box--active) {
    transition: left 0.42s cubic-bezier(0.22, 1, 0.36, 1),
                top 0.42s cubic-bezier(0.22, 1, 0.36, 1),
                width 0.42s cubic-bezier(0.22, 1, 0.36, 1),
                height 0.42s cubic-bezier(0.22, 1, 0.36, 1) !important;
}

.home-dashboard-canvas {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(248, 250, 253, 0.85)),
        radial-gradient(circle at 20% 10%, rgba(25, 118, 210, 0.04), transparent 45%),
        radial-gradient(circle at 80% 90%, rgba(46, 212, 165, 0.05), transparent 40%);
    border: 1px solid rgba(228, 231, 236, 0.9);
    border-radius: 14px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.home-dashboard-canvas.editing-active {
    border: 2px dashed #7eb6ff;
    background: rgba(248, 251, 255, 0.92);
}

.home-widget-card:not(.nd-widget-box--active) {
    animation: home-widget-enter 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-delay: var(--home-widget-delay, 0ms);
}

@keyframes home-widget-enter {
    from {
        opacity: 0;
        transform: translateY(14px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.home-widget-card.sc-analytics-card:hover:not(.nd-widget-box--active) {
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(16, 24, 40, 0.1), 0 14px 32px rgba(25, 118, 210, 0.08);
}

.home-widget-card--kpi {
    border-top: 3px solid #1976d2;
}

.home-widget-card--chart {
    border-top: 3px solid #7c4dff;
}

.home-widget-card--tasks {
    border-top: 3px solid #2e7d32;
}

.home-widget-card--hangfire {
    border-top: 3px solid #ed6c02;
}

.home-widget-card--pack {
    border-top: 3px solid #00838f;
}

.home-kpi-shell {
    position: relative;
    height: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-kpi-shell__accent {
    position: absolute;
    inset: -20%;
    background: radial-gradient(circle at 30% 20%, rgba(25, 118, 210, 0.12), transparent 55%),
                radial-gradient(circle at 70% 80%, rgba(46, 212, 165, 0.1), transparent 50%);
    animation: home-kpi-glow 5s ease-in-out infinite;
}

@keyframes home-kpi-glow {
    0%, 100% { opacity: 0.75; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.03); }
}

.home-kpi-shell__content {
    position: relative;
    z-index: 1;
    padding: 1rem;
}

.home-kpi-shell__avatar {
    box-shadow: 0 8px 20px rgba(25, 118, 210, 0.25);
}

.home-kpi-shell__value {
    font-weight: 800 !important;
    letter-spacing: 0.02em;
    color: #1a237e !important;
}

.home-kpi-shell__title {
    color: #546e7a;
    font-weight: 600;
}

.home-tasks-shell {
    height: 100%;
    background: linear-gradient(145deg, rgba(232, 245, 233, 0.55), rgba(255, 255, 255, 0.95));
}

.home-tasks-shell__btn {
    align-self: flex-start;
}

.home-loading-overlay {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(237, 244, 255, 0.82));
}

.home-loading-overlay::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.55) 50%, transparent 60%);
    animation: home-shimmer 1.8s ease-in-out infinite;
    pointer-events: none;
}

.home-loading-overlay--error {
    background: linear-gradient(135deg, rgba(255, 245, 245, 0.92), rgba(255, 255, 255, 0.88));
}

@keyframes home-shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.ex-dashboard--dark .home-dashboard-page {
    background: linear-gradient(165deg, #151a24, #1a2233);
}

.ex-dashboard--dark .home-dashboard-toolbar {
    background: linear-gradient(135deg, rgba(35, 42, 59, 0.96), rgba(26, 31, 46, 0.92));
    border-color: #3a4558;
}

.ex-dashboard--dark .home-dashboard-toolbar__edit-strip {
    background: linear-gradient(135deg, rgba(30, 38, 54, 0.85), rgba(24, 30, 44, 0.92));
    border-color: rgba(100, 181, 246, 0.22);
}

.ex-dashboard--dark .home-dashboard-toolbar__widget-strip {
    background: linear-gradient(135deg, rgba(27, 46, 34, 0.55), rgba(24, 30, 44, 0.92));
    border-color: rgba(102, 187, 106, 0.28);
}

.ex-dashboard--dark .home-dashboard-toolbar__slot-strip {
    background: linear-gradient(135deg, rgba(40, 30, 50, 0.5), rgba(24, 30, 44, 0.92));
    border-color: rgba(186, 104, 200, 0.24);
}

.ex-dashboard--dark .home-dashboard-toolbar__title {
    background: linear-gradient(90deg, #90caf9, #b39ddb);
    -webkit-background-clip: text;
    background-clip: text;
}

.ex-dashboard--dark .home-dashboard-canvas {
    background: linear-gradient(180deg, rgba(26, 31, 46, 0.85), rgba(21, 26, 36, 0.95));
    border-color: #3a4558;
}

.ex-dashboard--dark .widget-loading-overlay,
.ex-dashboard--dark .home-loading-overlay {
    background: rgba(26, 31, 46, 0.88);
    color: #e8edf5;
}

@media (prefers-reduced-motion: reduce) {
    .home-dashboard-orb,
    .home-dashboard-toolbar__icon,
    .home-widget-card,
    .home-kpi-shell__accent,
    .home-loading-overlay::before {
        animation: none !important;
    }

    .home-widget-card:hover {
        transform: none;
    }
}
