.customer-dashboard-panel {
    display: grid;
    gap: 26px;
}

.customer-dashboard-welcome {
    padding: 4px 0;
}

.customer-dashboard-welcome h2 {
    margin: 6px 0;
    font-size: 1.8rem;
}

.customer-dashboard-welcome p {
    margin: 0;
    color: #94a3b8;
}

.customer-dashboard-cards {
    display: grid;
    grid-template-columns:
        repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.customer-dashboard-card {
    display: flex;
    align-items: center;
    gap: 15px;

    padding: 20px;

    background: #0f1b2d;
    border: 1px solid #26364d;
    border-radius: 16px;
}

.customer-dashboard-icon {
    display: grid;
    place-items: center;

    width: 46px;
    height: 46px;

    flex: 0 0 46px;

    background: #172a42;
    border-radius: 12px;

    font-size: 1.3rem;
}

.customer-dashboard-card div {
    display: grid;
    gap: 4px;
}

.customer-dashboard-card small {
    color: #94a3b8;
}

.customer-dashboard-card strong {
    color: #f8fafc;
    font-size: 1.05rem;
}

.customer-dashboard-section {
    padding: 24px;

    background: #0f1b2d;
    border: 1px solid #26364d;
    border-radius: 18px;
}

.customer-dashboard-section h2 {
    margin: 5px 0 18px;
}

.customer-dashboard-actions {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.customer-dashboard-action {
    display: flex;
    align-items: center;
    gap: 14px;

    width: 100%;
    padding: 16px;

    border: 1px solid #2b3b52;
    border-radius: 12px;

    background: #111f32;
    color: #f8fafc;

    text-align: left;
    cursor: pointer;
}

.customer-dashboard-action:hover {
    background: #172a42;
    border-color: #3b82f6;
}

.customer-dashboard-action > span {
    font-size: 1.4rem;
}

.customer-dashboard-action div {
    display: grid;
    gap: 3px;
}

.customer-dashboard-action small {
    color: #94a3b8;
}


/*
 * Kundläge:
 * dölj admin/systemdashboarden.
 */
#dashboardView.customer-dashboard-mode
.dashboard-grid,

#dashboardView.customer-dashboard-mode
.dashboard-columns,

#dashboardView.customer-dashboard-mode
.recent-activity-section {
    display: none;
}


@media (max-width: 1050px) {
    .customer-dashboard-cards {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }
}


@media (max-width: 650px) {
    .customer-dashboard-cards,
    .customer-dashboard-actions {
        grid-template-columns: 1fr;
    }
}


/* =========================================================
   HFSSVERIGE PLATFORM THEME
   ========================================================= */

body.hfs-platform-theme {
    background:
        radial-gradient(
            circle at 15% 15%,
            rgba(14, 116, 144, 0.20),
            transparent 32%
        ),
        radial-gradient(
            circle at 85% 20%,
            rgba(37, 99, 235, 0.16),
            transparent 35%
        ),
        linear-gradient(
            135deg,
            #06111f 0%,
            #091827 45%,
            #07131f 100%
        );
    background-attachment: fixed;
}

body.hfs-platform-theme .app-layout {
    background: transparent;
}

body.hfs-platform-theme .app-content {
    background: transparent;
}

body.hfs-platform-theme .page-shell {
    background: transparent;
}

body.hfs-platform-theme .sidebar {
    background:
        linear-gradient(
            180deg,
            rgba(7, 21, 36, 0.97),
            rgba(8, 28, 43, 0.96)
        );

    border-right:
        1px solid rgba(
            56,
            189,
            248,
            0.16
        );
}

body.hfs-platform-theme .topbar {
    background:
        rgba(
            8,
            23,
            39,
            0.72
        );

    backdrop-filter:
        blur(14px);

    border-bottom:
        1px solid rgba(
            56,
            189,
            248,
            0.10
        );
}

body.hfs-platform-theme
.customer-dashboard-card,

body.hfs-platform-theme
.customer-dashboard-section,

body.hfs-platform-theme
.customer-mail-card {
    background:
        linear-gradient(
            145deg,
            rgba(15, 35, 54, 0.95),
            rgba(10, 27, 43, 0.95)
        );

    border-color:
        rgba(
            56,
            189,
            248,
            0.16
        );

    box-shadow:
        0 18px 45px
        rgba(
            0,
            0,
            0,
            0.22
        );
}

body.hfs-platform-theme
.sidebar-link.active {
    background:
        linear-gradient(
            90deg,
            rgba(14, 116, 144, 0.30),
            rgba(37, 99, 235, 0.20)
        );

    border-color:
        rgba(
            56,
            189,
            248,
            0.38
        );
}

body.hfs-platform-theme
.customer-dashboard-action:hover,
body.hfs-platform-theme
.customer-inbox-item:hover {
    border-color:
        rgba(
            56,
            189,
            248,
            0.65
        );

    transform:
        translateY(-1px);
}

body.hfs-platform-theme
.customer-dashboard-action,
body.hfs-platform-theme
.customer-inbox-item {
    transition:
        transform 0.18s ease,
        border-color 0.18s ease,
        background 0.18s ease;
}
