#login-bg {
	background-image: url('../img/bg-self-service.jpg');
}


/* ==========================================================
   OCO SELF SERVICE - USER DASHBOARD V1
   ========================================================== */

.ss-dashboard {
    box-sizing: border-box;
    width: 100%;
    min-height: 100%;
    padding: 28px;
    background:
        linear-gradient(
            180deg,
            rgba(245,248,253,.96) 0%,
            rgba(248,250,253,1) 100%
        );
}

.ss-dashboard * {
    box-sizing: border-box;
}

.ss-hero {
    max-width: 1200px;
    margin: 0 auto 22px auto;
    padding: 28px 30px;
    border: 1px solid rgba(120,130,150,.14);
    border-radius: 24px;
    background: rgba(255,255,255,.96);
    box-shadow: 0 10px 35px rgba(45,55,75,.07);
}

.ss-hero-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.ss-avatar {
    width: 70px;
    height: 70px;
    min-width: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 22px;
    background: #f1f5fb;
}

.ss-avatar img {
    width: 36px;
    height: 36px;
}

.ss-eyebrow,
.ss-section-title span {
    display: block;
    margin-bottom: 5px;
    font-size: 11px;
    line-height: 1.3;
    letter-spacing: .1em;
    font-weight: 700;
    opacity: .55;
}

.ss-hello h1 {
    margin: 0;
    font-size: 27px;
    line-height: 1.25;
    font-weight: 650;
}

.ss-hello p {
    margin: 8px 0 0 0;
    max-width: 680px;
    font-size: 15px;
    line-height: 1.55;
    opacity: .7;
}

.ss-account {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 13px;
    padding: 7px 11px;
    border-radius: 999px;
    background: #f4f6fa;
    font-size: 12px;
}

.ss-account img {
    width: 15px;
    height: 15px;
}


.ss-summary {
    max-width: 1200px;
    margin: 0 auto 22px auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.ss-stat-card {
    min-height: 105px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none !important;
    border: 1px solid rgba(120,130,150,.14);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 8px 28px rgba(45,55,75,.05);
    transition: .15s ease;
}

.ss-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 34px rgba(45,55,75,.09);
}

.ss-stat-icon,
.ss-shortcut-icon,
.ss-device-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    background: #f2f5fa;
}

.ss-stat-icon img,
.ss-shortcut-icon img,
.ss-device-icon img {
    width: 25px;
    height: 25px;
}

.ss-stat-value {
    display: block;
    font-size: 26px;
    line-height: 1.1;
    font-weight: 700;
}

.ss-stat-label {
    display: block;
    margin-top: 4px;
    font-size: 13px;
    opacity: .62;
}

.ss-arrow {
    width: 16px;
    height: 16px;
    margin-left: auto;
    opacity: .32;
}


.ss-empty,
.ss-section,
.ss-shortcuts {
    max-width: 1200px;
    margin: 0 auto 22px auto;
    padding: 26px;
    border: 1px solid rgba(120,130,150,.14);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 8px 30px rgba(45,55,75,.05);
}

.ss-empty {
    display: flex;
    align-items: center;
    gap: 22px;
}

.ss-empty-icon {
    width: 90px;
    height: 90px;
    min-width: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 26px;
    background: #f4f7fb;
}

.ss-empty-icon img {
    width: 46px;
    height: 46px;
    opacity: .7;
}

.ss-empty h2 {
    margin: 0 0 7px 0;
    font-size: 20px;
}

.ss-empty p {
    margin: 0 0 6px 0;
    line-height: 1.5;
    opacity: .7;
}

.ss-empty-note {
    font-size: 12px;
}

.ss-empty button {
    margin-top: 13px;
}


.ss-section-title {
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.ss-section-title h2 {
    margin: 0;
    font-size: 20px;
}


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

.ss-device-card {
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 13px;
    text-decoration: none !important;
    border: 1px solid rgba(120,130,150,.14);
    border-radius: 17px;
}

.ss-device-info {
    min-width: 0;
}

.ss-device-info strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ss-device-info span {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    opacity: .6;
}


.ss-shortcut-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.ss-shortcut {
    min-height: 110px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 13px;
    text-align: left;
    border: 1px solid rgba(120,130,150,.14);
    border-radius: 18px;
    background: #fafbfd;
}

.ss-shortcut > span:last-child {
    min-width: 0;
}

.ss-shortcut strong {
    display: block;
    font-size: 14px;
}

.ss-shortcut small {
    display: block;
    margin-top: 5px;
    line-height: 1.35;
    opacity: .58;
}


.ss-footer {
    max-width: 1200px;
    margin: 15px auto 0 auto;
    padding: 10px;
    text-align: center;
    font-size: 12px;
    opacity: .55;
}


/* MOBILE */
@media (max-width: 760px) {

    .ss-dashboard {
        padding: 14px;
    }

    .ss-hero {
        padding: 20px;
        border-radius: 20px;
    }

    .ss-hero-left {
        align-items: flex-start;
    }

    .ss-avatar {
        width: 52px;
        height: 52px;
        min-width: 52px;
        border-radius: 16px;
    }

    .ss-avatar img {
        width: 27px;
        height: 27px;
    }

    .ss-hello h1 {
        font-size: 21px;
    }

    .ss-hello p {
        font-size: 13px;
    }

    .ss-summary {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .ss-stat-card {
        min-height: 82px;
        padding: 15px;
        border-radius: 17px;
    }

    .ss-stat-icon {
        width: 43px;
        height: 43px;
        min-width: 43px;
    }

    .ss-stat-value {
        font-size: 22px;
    }

    .ss-empty,
    .ss-section,
    .ss-shortcuts {
        padding: 18px;
        border-radius: 20px;
    }

    .ss-empty {
        display: block;
        text-align: center;
    }

    .ss-empty-icon {
        margin: 0 auto 15px auto;
    }

    .ss-device-grid {
        grid-template-columns: 1fr;
    }

    .ss-shortcut-grid {
        grid-template-columns: 1fr 1fr;
    }

    .ss-shortcut {
        min-height: 118px;
        display: block;
    }

    .ss-shortcut-icon {
        margin-bottom: 10px;
    }

    /*
       Header mobile:
       tránh tiêu đề bị cắt như màn hình hiện tại
    */
    #header {
        min-height: 62px !important;
    }

    #header .left,
    #header .right {
        min-height: 62px;
        align-items: center;
    }

    #header .title {
        max-width: calc(100vw - 270px);
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    #header .right button span {
        display: none;
    }

}


@media (max-width: 430px) {

    .ss-shortcut-grid {
        grid-template-columns: 1fr;
    }

    .ss-shortcut {
        min-height: 78px;
        display: flex;
    }

    .ss-shortcut-icon {
        margin-bottom: 0;
    }

    #header .title {
        display: none;
    }

}
