﻿* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #f3f6fa;
    color: #183047;
    font: 15px/1.6 "Segoe UI",Arial,sans-serif;
}

a {
    color: #0a658d;
    text-decoration: none;
}

h1, h2, p {
    margin-top: 0;
}

h1 {
    font-size: 32px;
    line-height: 1.25;
    margin-bottom: 16px;
}

h2 {
    font-size: 23px;
    line-height: 1.35;
}

p {
    color: #52677b;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 6%;
    background: #073b59;
    color: white;
    gap: 20px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    color: white;
    font-size: 20px;
    font-weight: 700;
}

    .brand small {
        display: block;
        font-size: 10px;
        letter-spacing: 1.8px;
        font-weight: 400;
        color: #bdd9e8;
    }

.logo {
    display: inline-flex;
    border: 2px solid #ff923b;
    border-radius: 8px;
    padding: 4px 8px;
    color: white;
    font-size: 23px;
}

.user {
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: 14px;
}

.navigation {
    display: flex;
    gap: 30px;
    padding: 15px 6%;
    background: white;
    border-bottom: 1px solid #dde7ef;
}

    .navigation a {
        font-weight: 600;
        font-size: 14px;
    }

.container {
    width: min(1180px,90%);
    margin: 40px auto 60px;
}

.card {
    background: white;
    border: 1px solid #dce6ee;
    border-radius: 14px;
    padding: 30px;
    box-shadow: 0 8px 30px rgba(10,45,70,.035);
}

.login-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
    gap: 70px;
    min-height: 500px;
}

.intro h1 {
    font-size: 46px;
    color: #083d5b;
    margin-top: 20px;
}

.intro p {
    font-size: 18px;
    max-width: 430px;
}

.stripe {
    width: 75px;
    height: 6px;
    background: #f78b32;
    border-radius: 4px;
    margin-top: 30px;
}

.eyebrow {
    display: inline-block;
    color: #14799f;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.8px;
    margin-bottom: 12px;
}

.muted, .help {
    color: #657b8d;
}

.help {
    font-size: 13px;
    margin-top: 18px;
    margin-bottom: 0;
}

label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    margin: 18px 0 7px;
}

input[type=text], input[type=password], textarea {
    display: block;
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #c9d6e0;
    border-radius: 7px;
    font: inherit;
    background: #fcfdff;
    color: #183047;
}

    input:focus, textarea:focus {
        outline: 2px solid #a9d8ed;
        border-color: #1786ab;
    }

.button {
    display: inline-block;
    border: 0;
    border-radius: 7px;
    padding: 11px 20px;
    font: 600 14px "Segoe UI",Arial,sans-serif;
    cursor: pointer;
    text-align: center;
}

.primary {
    background: #0876a0;
    color: white;
}

    .primary:hover {
        background: #075f82;
    }

.ghost {
    background: rgba(255,255,255,.12);
    color: white;
    border: 1px solid rgba(255,255,255,.3);
}

.wide {
    width: 100%;
    margin-top: 10px;
}

.message {
    display: block;
    margin: 14px 0;
    font-size: 14px;
}

    .message:empty {
        display: none;
    }

.error {
    color: #a9302b;
}

.success {
    color: #087651;
}

.narrow {
    max-width: 540px;
    margin: 30px auto;
}

.welcome {
    background: #e5f0f7;
    padding: 32px;
    border-radius: 14px;
    margin-bottom: 26px;
    border-left: 5px solid #f78b32;
}

    .welcome h1 {
        font-size: 29px;
    }

.cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.card-tag {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #0876a0;
}

.orange {
    color: #bb601a;
}

.card-tag + h2 {
    margin-top: 14px;
}

.badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 30px;
    background: #fff0df;
    color: #9c5619;
    font-size: 13px;
}

.profile-layout {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 25px;
}

dl {
    margin: 0;
}

dt {
    font-size: 12px;
    color: #6b8192;
    margin-top: 18px;
}

dd {
    margin: 4px 0;
    font-weight: 600;
}

.table-scroll {
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

    .table th {
        background: #eaf2f7;
        text-align: left;
        padding: 12px;
    }

    .table td {
        border-bottom: 1px solid #e3ebf0;
        padding: 12px;
    }

    .table input[type=button], .table input[type=submit] {
        border: 1px solid #bfd2e0;
        padding: 7px 10px;
        border-radius: 5px;
        cursor: pointer;
        background: #edf5fa;
        color: #164c69;
    }

footer {
    text-align: center;
    color: #7d909e;
    font-size: 12px;
    padding: 25px;
}

@media (max-width:760px) {
    .topbar {
        padding: 16px 5%;
        align-items: flex-start;
    }

    .user {
        flex-direction: column;
        gap: 7px;
        align-items: flex-end;
    }

    .brand {
        font-size: 16px;
    }

        .brand small {
            font-size: 8px;
        }

    .navigation {
        flex-wrap: wrap;
        gap: 12px 22px;
        padding: 12px 5%;
    }

    .container {
        margin-top: 25px;
    }

    .login-layout, .cards, .profile-layout {
        grid-template-columns: 1fr;
        gap: 22px;
        min-height: 0;
    }

    .intro h1 {
        font-size: 31px;
    }

    .intro p {
        font-size: 15px;
    }

    .intro {
        padding: 10px 0;
    }

    .card {
        padding: 23px;
    }

    .welcome {
        padding: 24px;
    }

    .narrow {
        margin: 10px auto;
    }

    h1 {
        font-size: 27px;
    }

    .leader-result {
        margin-top: 24px;
        border-left: 5px solid #39B54A;
    }

    .kpi-result-period {
        margin-bottom: 10px;
        font-weight: 600;
        color: #0066B2;
    }

    .kpi-result-reviewers {
        margin-bottom: 18px;
        line-height: 1.8;
        color: #425466;
    }

    .kpi-result-summary {
        display: flex;
        flex-wrap: wrap;
        gap: 16px;
        margin-bottom: 20px;
    }

    .kpi-result-summary-item {
        flex: 1 1 240px;
        padding: 18px;
        background: #edf9ef;
        border: 1px solid #ccebd1;
        border-radius: 10px;
    }

    .kpi-result-caption {
        margin-bottom: 8px;
        font-weight: 600;
        color: #354a3a;
    }

    .kpi-result-score {
        margin-bottom: 8px;
        font-size: 28px;
        font-weight: 700;
        color: #237a31;
    }

    .kpi-result-table-wrap {
        overflow-x: auto;
    }

    .kpi-result-table {
        width: 100%;
        border-collapse: collapse;
    }

        .kpi-result-table th {
            padding: 12px;
            background: #0066B2;
            color: #fff;
            text-align: center;
            white-space: nowrap;
        }

        .kpi-result-table td {
            padding: 12px;
            border-bottom: 1px solid #e3e9ef;
            text-align: center;
        }

            .kpi-result-table td:nth-child(2) {
                min-width: 220px;
                text-align: left;
            }

        .kpi-result-table tr:nth-child(even) td {
            background: #f7fafc;
        }

    .kpi-result-note {
        margin-top: 14px;
        color: #64748b;
        font-size: 13px;
        line-height: 1.6;
    }


    /* Chiều rộng chung của trang */
    .topbar,
    .navigation,
    .container {
        width: 90%;
        max-width: 1180px;
        margin-left: auto;
        margin-right: auto;
        box-sizing: border-box;
    }

    /* Thanh đầu trang */
    .topbar {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 24px;
        min-height: 96px;
        margin-top: 24px;
        padding: 20px 28px;
        background: #fff;
        color: #183047;
        border: 1px solid #dce6ee;
        border-radius: 14px 14px 0 0;
        box-shadow: 0 6px 24px rgba(0, 102, 178, 0.04);
    }

        /* Logo và tên cổng thông tin */
        .topbar .brand {
            display: flex;
            align-items: center;
            gap: 18px;
            min-width: 0;
            color: #0066B2;
            font-size: 22px;
            font-weight: 700;
            line-height: 1.3;
            text-decoration: none;
        }

        .topbar .hhp-company-logo {
            display: block;
            width: 110px;
            height: 64px;
            object-fit: contain;
            flex-shrink: 0;
            padding: 0;
            background: transparent;
            border: 0;
            border-radius: 0;
        }

        .topbar .brand small {
            display: block;
            margin-top: 6px;
            color: #52677b;
            font-size: 11px;
            font-weight: 500;
            letter-spacing: 1.5px;
        }

        /* Tên người dùng và nút đăng xuất */
        .topbar .user {
            display: flex;
            align-items: center;
            gap: 18px;
            color: #183047;
            font-size: 14px;
        }

        .topbar .button.ghost {
            padding: 10px 18px;
            background: #f0f7fc;
            color: #0066B2;
            border: 1px solid #c9dfef;
            border-radius: 8px;
            font-weight: 600;
            white-space: nowrap;
        }

            .topbar .button.ghost:hover {
                background: #0066B2;
                color: #fff;
                border-color: #0066B2;
            }

    /* Menu bên dưới thanh đầu trang */
    .navigation {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 12px 26px;
        padding: 16px 28px;
        background: #fff;
        border: 1px solid #dce6ee;
        border-top: 0;
        border-radius: 0 0 14px 14px;
    }

        .navigation a {
            color: #0066B2;
            font-size: 14px;
            font-weight: 600;
            text-decoration: none;
        }

            .navigation a:hover {
                color: #237a31;
            }

    /* Khoảng cách từ menu xuống nội dung */
    .container {
        margin-top: 30px;
    }

    /* Giao diện điện thoại */
    @media (max-width: 760px) {
        .topbar {
            flex-wrap: wrap;
            gap: 18px;
            margin-top: 14px;
            padding: 18px;
        }

            .topbar .brand {
                gap: 12px;
                font-size: 18px;
            }

            .topbar .hhp-company-logo {
                width: 85px;
                height: 52px;
            }

            .topbar .brand small {
                font-size: 9px;
                letter-spacing: 1px;
            }

            .topbar .user {
                width: 100%;
                flex-direction: row;
                justify-content: space-between;
                align-items: center;
            }

        .navigation {
            gap: 12px 20px;
            padding: 16px 18px;
        }
    }
}
/* Công việc cần thực hiện trên trang cá nhân */
.home-tasks {
    margin-bottom: 26px;
}

    .home-tasks > h2 {
        margin-bottom: 14px;
        font-size: 21px;
    }

.home-notice {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 14px;
    padding: 20px 22px;
    border: 1px solid;
    border-left-width: 4px;
    border-radius: 12px;
}

.home-notice-content {
    flex: 1;
    min-width: 0;
}

.home-notice h3 {
    margin: 0 0 8px;
    font-size: 17px;
    line-height: 1.5;
}

.home-notice p {
    margin: 0 0 6px;
    color: #334155;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

    .home-notice p:last-child {
        margin-bottom: 0;
    }

.home-notice .home-notice-help {
    color: #52677b;
    font-size: 13px;
}

.home-notice-profile {
    background: #fff8f1;
    border-color: #f1d7bd;
    border-left-color: #F56E3C;
}

    .home-notice-profile h3 {
        color: #9a431f;
    }

.home-notice-kpi {
    background: #eff7fd;
    border-color: #cbdfee;
    border-left-color: #0066B2;
}

    .home-notice-kpi h3 {
        color: #0066B2;
    }

.home-notice-deadline {
    color: #9a3412;
}

.home-notice-button {
    flex: 0 0 auto;
    min-height: 44px;
    text-decoration: none;
}

.profile-notice-button {
    background: #fff;
    color: #9a431f;
    border: 1px solid #dba67e;
}

    .profile-notice-button:hover {
        background: #ffeddd;
    }

.kpi-notice-button {
    background: #0066B2;
    color: #fff;
    border: 1px solid #0066B2;
}

    .kpi-notice-button:hover {
        background: #005391;
    }

.home-notice-button:focus-visible {
    outline: 3px solid #00A1D0;
    outline-offset: 3px;
}
