.dash-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 10px;
}

.dash-header h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a2b4a;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dash-header h2 i {
    color: #0d6efd;
}

.dash-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.dash-header-actions select.dash-city-select {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
    appearance: none !important;
    -webkit-appearance: none !important;
}

.dash-header-actions .custom-select {
    width: auto !important;
    min-width: 110px;
    max-width: 150px;
}

.dash-header-actions .custom-select-display {
    border-radius: 50px;
    min-height: 36px;
    height: 36px;
    padding: 4px 14px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #475569;
    background-color: #fff;
    border: 1.5px solid #e2e8f0;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.dash-header-actions .custom-select.menu-open .custom-select-display {
    border-color: #0d6efd;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.08);
}

.dash-header-actions .custom-select.disabled .custom-select-display {
    background: #f1f5f9;
    color: #94a3b8;
    cursor: not-allowed;
    border-color: #e2e8f0;
}

.dash-header-actions .custom-select-arrow {
    color: #94a3b8;
}

.dash-customize-btn {
    background: #fff;
    border: 1.5px solid #e2e8f0;
    color: #475569;
    border-radius: 50px;
    padding: 6px 16px;
    font-size: 0.82rem;
    font-weight: 600;
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.15s;
}

.dash-customize-btn:hover {
    border-color: #0d6efd;
    color: #0d6efd;
    background: #f0f6ff;
}

.dash-customize-btn i {
    font-size: 0.95rem;
}

.dash-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 14px;
}

.dash-widget {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.06);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.15s;
    min-width: 0;
}

.dash-widget:hover {
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.09);
}

.dash-widget-head {
    padding: 12px 16px 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid #f0f4fa;
}

.dash-widget-head .dash-widget-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.92rem;
    flex-shrink: 0;
}

.dash-widget-title {
    font-size: 0.86rem;
    font-weight: 600;
    color: #334155;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dash-widget-sub {
    font-size: 0.7rem;
    color: #94a3b8;
    font-weight: 400;
}

.dash-widget-body {
    padding: 14px 16px 16px;
    flex: 1;
    min-height: 0;
}

.dash-big-number {
    font-size: 2.1rem;
    font-weight: 800;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.dash-big-number .unit {
    font-size: 0.85rem;
    font-weight: 500;
    color: #94a3b8;
}

.dash-number-hint {
    font-size: 0.74rem;
    color: #94a3b8;
    margin-top: 6px;
}

.dash-widget-km .dash-widget-icon { background: #e7f1ff; color: #0d6efd; }
.dash-widget-km .dash-big-number { color: #0d6efd; }

.dash-widget-fuel .dash-widget-icon { background: #d1fae5; color: #059669; }
.dash-widget-fuel .dash-big-number { color: #059669; }

.dash-widget-expense-total .dash-widget-icon { background: #fee2e2; color: #dc2626; }
.dash-widget-expense-total .dash-big-number { color: #dc2626; }

.dash-widget-expense-trend .dash-widget-icon { background: #ede9fe; color: #7c3aed; }
.dash-widget-attendance-trend .dash-widget-icon { background: #cffafe; color: #0891b2; }
.dash-widget-cable-stock .dash-widget-icon { background: #e0f2fe; color: #0369a1; }
.dash-widget-cable-stock .dash-big-number { color: #0369a1; }
.dash-widget-today-trips .dash-widget-icon { background: #fef3c7; color: #d97706; }
.dash-widget-inspection .dash-widget-icon { background: #fef3c7; color: #d97706; }
.dash-widget-insurance .dash-widget-icon { background: #e0e7ff; color: #4f46e5; }
.dash-widget-maintenance .dash-widget-icon { background: #ffe4e6; color: #e11d48; }
.dash-widget-quick-actions .dash-widget-icon { background: #e2e8f0; color: #475569; }

.dash-city-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}

.dash-city-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.82rem;
}

.dash-city-name {
    color: #475569;
    font-weight: 500;
    min-width: 56px;
    flex-shrink: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dash-city-bar {
    flex: 1;
    height: 6px;
    background: #f1f5f9;
    border-radius: 3px;
    overflow: hidden;
    min-width: 0;
}

.dash-city-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981 0%, #059669 100%);
    border-radius: 3px;
    transition: width 0.4s ease;
}

.dash-city-amount {
    color: #334155;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    font-size: 0.82rem;
    min-width: 72px;
    text-align: right;
    flex-shrink: 0;
}

.dash-chart-wrap {
    position: relative;
    height: 180px;
    width: 100%;
}

.dash-trip-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 220px;
    overflow-y: auto;
}

.dash-trip-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    background: #fafbfc;
    border-radius: 8px;
    font-size: 0.82rem;
}

.dash-trip-plate {
    font-weight: 700;
    color: #1a2b4a;
    font-size: 0.86rem;
    flex-shrink: 0;
}

.dash-trip-purpose {
    flex: 1;
    min-width: 0;
    color: #64748b;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dash-trip-time {
    color: #94a3b8;
    font-size: 0.74rem;
    flex-shrink: 0;
    font-variant-numeric: tabular-nums;
}

.dash-empty {
    text-align: center;
    padding: 24px 8px;
    color: #94a3b8;
    font-size: 0.82rem;
}

.dash-empty i {
    font-size: 1.8rem;
    display: block;
    margin-bottom: 6px;
    color: #cbd5e1;
}

.dash-reminder-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 200px;
    overflow-y: auto;
}

.dash-reminder-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 10px;
    background: #fafbfc;
    border-radius: 8px;
    font-size: 0.82rem;
}

.dash-reminder-plate {
    font-weight: 600;
    color: #334155;
}

.dash-reminder-days {
    font-size: 0.74rem;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 20px;
    font-variant-numeric: tabular-nums;
}

.dash-days-ok { background: #d1fae5; color: #059669; }
.dash-days-warn { background: #fef3c7; color: #d97706; }
.dash-days-danger { background: #fee2e2; color: #dc2626; }

.dash-quick-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.dash-quick-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 12px 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    color: #475569;
    font-size: 0.78rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
    min-height: unset;
}

.dash-quick-btn:hover {
    background: #f0f6ff;
    border-color: #cfe2ff;
    color: #0d6efd;
}

.dash-quick-btn i {
    font-size: 1.2rem;
    color: #0d6efd;
}

.dash-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-items: start;
}

.dash-split-left {
    min-width: 0;
}

.dash-split-right {
    min-width: 0;
}

.dash-recent-title {
    font-size: 0.72rem;
    color: #94a3b8;
    margin: 12px 0 6px;
    padding-top: 10px;
    border-top: 1px dashed #eef1f5;
    font-weight: 600;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.dash-recent-title-flat {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
    margin-bottom: 8px;
}

.dash-type-list {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.dash-type-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.76rem;
}

.dash-type-name {
    color: #475569;
    min-width: 60px;
    max-width: 60px;
    flex-shrink: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 500;
}

.dash-type-bar {
    flex: 1;
    height: 6px;
    background: #f1f5f9;
    border-radius: 3px;
    overflow: hidden;
    min-width: 0;
}

.dash-type-bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.4s ease;
}

.dash-type-amount {
    color: #334155;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    font-size: 0.74rem;
    min-width: 58px;
    text-align: right;
    flex-shrink: 0;
}

.dash-fuel-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
    max-height: 180px;
    overflow-y: auto;
    padding-right: 2px;
}

.dash-fuel-list::-webkit-scrollbar {
    width: 4px;
}

.dash-fuel-list::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 2px;
}

.dash-fuel-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    background: #fafbfc;
    border-radius: 8px;
    font-size: 0.78rem;
}

.dash-fuel-time {
    color: #64748b;
    font-variant-numeric: tabular-nums;
    font-size: 0.72rem;
    flex-shrink: 0;
    min-width: 76px;
}

.dash-fuel-plate {
    color: #334155;
    font-weight: 600;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dash-fuel-amount {
    color: #dc2626;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
    font-size: 0.8rem;
}

.dash-cable-loc-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
    margin-bottom: 4px;
}

.dash-cable-loc-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    background: #f0f9ff;
    color: #0369a1;
    border: 1px solid #bae6fd;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 500;
    white-space: nowrap;
}

.dash-cable-loc-item b {
    color: #0c4a6e;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.dash-cable-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    max-height: 240px;
    overflow-y: auto;
    padding-right: 2px;
}

.dash-cable-grid::-webkit-scrollbar {
    width: 4px;
}

.dash-cable-grid::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 2px;
}

.dash-cable-card {
    padding: 8px 10px;
    background: #fafbfc;
    border: 1px solid #eef1f5;
    border-radius: 10px;
    transition: all 0.15s;
    min-width: 0;
}

.dash-cable-card:hover {
    background: #f0f9ff;
    border-color: #bae6fd;
}

.dash-cable-card.is-empty {
    opacity: 0.55;
    background: #f8fafc;
}

.dash-cable-card-name {
    font-size: 0.68rem;
    color: #64748b;
    font-weight: 600;
    margin-bottom: 3px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dash-cable-card-value {
    font-size: 0.98rem;
    font-weight: 800;
    color: #0369a1;
    line-height: 1.15;
    font-variant-numeric: tabular-nums;
    display: flex;
    align-items: baseline;
    gap: 3px;
}

.dash-cable-card.is-empty .dash-cable-card-value {
    color: #94a3b8;
}

.dash-cable-card-value .unit {
    font-size: 0.62rem;
    font-weight: 500;
    color: #94a3b8;
}

.widget-sort-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 50vh;
    overflow-y: auto;
    padding-right: 4px;
}

.widget-sort-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: #fafbfc;
    border: 1px solid #eef1f5;
    border-radius: 10px;
    transition: background 0.15s;
}

.widget-sort-item:hover {
    background: #f0f6ff;
    border-color: #cfe2ff;
}

.widget-sort-item.is-off {
    opacity: 0.55;
}

.widget-sort-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.92rem;
    flex-shrink: 0;
    background: #e7f1ff;
    color: #0d6efd;
}

.widget-sort-name {
    flex: 1;
    font-size: 0.88rem;
    color: #212529;
    font-weight: 500;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.widget-sort-actions {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}

.widget-sort-btn {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    border: 1px solid #e1e6ee;
    background: #fff;
    color: #6b7280;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: unset;
    padding: 0;
    transition: all 0.15s;
}

.widget-sort-btn:hover:not(:disabled) {
    background: #0d6efd;
    color: #fff;
    border-color: #0d6efd;
}

.widget-sort-btn.danger:hover:not(:disabled) {
    background: #dc3545;
    color: #fff;
    border-color: #dc3545;
}

.widget-sort-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.widget-sort-switch {
    position: relative;
    width: 42px;
    height: 24px;
    border-radius: 12px;
    background: #cbd5e1;
    cursor: pointer;
    transition: background 0.2s;
    flex-shrink: 0;
    border: none;
    padding: 0;
    min-height: unset;
}

.widget-sort-switch::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s;
}

.widget-sort-switch.on {
    background: #10b981;
}

.widget-sort-switch.on::after {
    transform: translateX(18px);
}

@media (max-width: 576px) {
    .dash-header h2 {
        font-size: 1.1rem;
    }
    .dash-header-actions {
        gap: 6px;
    }
    .dash-header-actions .custom-select {
        min-width: 88px;
        max-width: 110px;
    }
    .dash-header-actions .custom-select-display {
        font-size: 0.76rem;
        height: 32px;
        min-height: 32px;
        padding: 3px 10px;
    }
    .dash-customize-btn {
        font-size: 0.76rem;
        padding: 5px 12px;
        min-height: 32px;
    }
    .dash-grid {
        gap: 10px;
    }
    .dash-widget {
        border-radius: 12px;
    }
    .dash-widget-head {
        padding: 10px 12px 8px;
    }
    .dash-widget-body {
        padding: 10px 12px 12px;
    }
    .dash-big-number {
        font-size: 1.5rem;
    }
    .dash-big-number .unit {
        font-size: 0.72rem;
    }
    .dash-chart-wrap {
        height: 150px;
    }
    .dash-city-amount {
        min-width: 60px;
        font-size: 0.76rem;
    }
    .dash-city-name {
        font-size: 0.76rem;
    }
    .dash-trip-item {
        padding: 7px 8px;
        font-size: 0.76rem;
    }
    .dash-split {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .dash-type-name {
        min-width: 56px;
        max-width: 56px;
        font-size: 0.72rem;
    }
    .dash-type-amount {
        min-width: 52px;
        font-size: 0.7rem;
    }
    .dash-fuel-time {
        min-width: 66px;
        font-size: 0.68rem;
    }
    .dash-fuel-row {
        padding: 5px 8px;
        font-size: 0.74rem;
    }
    .dash-fuel-list {
        max-height: 150px;
    }
    .dash-cable-loc-item {
        font-size: 0.66rem;
        padding: 2px 8px;
    }
    .dash-cable-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 5px;
        max-height: 180px;
    }
    .dash-cable-card {
        padding: 6px 8px;
        border-radius: 8px;
    }
    .dash-cable-card-name {
        font-size: 0.62rem;
        margin-bottom: 2px;
    }
    .dash-cable-card-value {
        font-size: 0.88rem;
    }
    .dash-cable-card-value .unit {
        font-size: 0.56rem;
    }
}