/* =====================================================
   CHECK EMPLOYEE
===================================================== */

.check-employee-view {

    width: 100%;
    min-height: 100%;

    display: flex;
    align-items: flex-start;
    justify-content: center;

    padding: 24px;

    box-sizing: border-box;

    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Arial,
        sans-serif;

}


/* =====================================================
   CARD
===================================================== */

.check-employee-card {

    width: min(
        680px,
        100%
    );

    background: #ffffff;

    border-radius: 18px;

    box-shadow:
        0 20px 50px rgba(
            15,
            23,
            42,
            0.14
        );

    overflow: hidden;

    border:
        1px solid #e5e7eb;

}


/* =====================================================
   HEADER
===================================================== */

.check-employee-header {

    display: flex;

    align-items: center;

    gap: 14px;

    padding:
        20px
        22px;

    border-bottom:
        1px solid #eef0f3;

    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #fafbfc 100%
        );

}


.check-employee-header-icon {

    width: 42px;
    height: 42px;

    flex: 0 0 42px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 12px;

    background: #eaf3ff;

    color: #1976d2;

}


.check-employee-header-icon svg {

    width: 21px;
    height: 21px;

}


.check-employee-header-text {

    min-width: 0;

    flex: 1;

}


.check-employee-header-text h2 {

    margin: 0;

    font-size: 18px;

    line-height: 1.35;

    font-weight: 700;

    color: #172033;

}


.check-employee-header-text p {

    margin:
        4px
        0
        0;

    font-size: 12.5px;

    line-height: 1.5;

    color: #6b7280;

}


.check-employee-close {

    width: 34px;
    height: 34px;

    flex: 0 0 34px;

    border: none;

    background: transparent;

    border-radius: 9px;

    color: #64748b;

    font-size: 25px;

    line-height: 1;

    cursor: pointer;

    display: flex;

    align-items: center;
    justify-content: center;

    transition:
        background .18s ease,
        color .18s ease;

}


.check-employee-close:hover {

    background: #f1f5f9;

    color: #1e293b;

}


/* =====================================================
   BODY
===================================================== */

.check-employee-body {

    padding: 22px;

}


/* =====================================================
   FORM
===================================================== */

.check-employee-form label {

    display: block;

    margin-bottom: 7px;

    font-size: 12.5px;

    font-weight: 600;

    color: #334155;

}


/* =====================================================
   INPUT + BUTTON ROW
===================================================== */

.check-employee-input-row {

    display: flex;

    align-items: stretch;

    gap: 10px;

    width: 100%;

}


/* =====================================================
   INPUT
===================================================== */

.check-employee-input {

    flex: 1 1 auto;

    min-width: 0;

    width: 100%;

    height: 44px;

    box-sizing: border-box;

    margin: 0;

    padding:
        0
        13px;

    border:
        1px solid #d7dce3;

    border-radius: 10px;

    outline: none;

    background: #ffffff;

    color: #172033;

    font-size: 14px;

    line-height: 44px;

    transition:
        border-color .18s ease,
        box-shadow .18s ease;

}


/* =====================================================
   BUTTON
===================================================== */

.check-employee-btn {

    flex:
        0 0 112px;

    width: 112px;

    height: 44px;

    box-sizing: border-box;

    margin: 0;

    padding:
        0
        17px;

    border: none;

    border-radius: 10px;

    background: #1976d2;

    color: #ffffff;

    font-size: 13px;

    font-weight: 600;

    line-height: 44px;

    cursor: pointer;

    display: flex;

    align-items: center;

    justify-content: center;

    white-space: nowrap;

    transition:
        background .18s ease,
        transform .12s ease,
        box-shadow .18s ease;

    box-shadow:
        0 4px 10px
        rgba(
            25,
            118,
            210,
            0.18
        );

}


.check-employee-input::placeholder {

    color: #a0a8b5;

}


.check-employee-input:hover {

    border-color: #b8c0cc;

}


.check-employee-input:focus {

    border-color: #1976d2;

    box-shadow:
        0 0 0 3px
        rgba(
            25,
            118,
            210,
            0.10
        );

}


.check-employee-input:disabled {

    background: #f8fafc;

    cursor: not-allowed;

}


/* =====================================================
   CHECK BUTTON
   Scoped riêng để tránh xung đột CSS global
===================================================== */

.check-employee-input-row > .check-employee-btn {

    display: flex;

    width: 112px;
    min-width: 112px;
    max-width: 112px;

    height: 44px;
    min-height: 44px;
    max-height: 44px;

    flex: 0 0 112px;

    box-sizing: border-box;

    margin: 0;
    padding: 0 17px;

    border: 0;
    border-radius: 10px;

    background: #1976d2;
    color: #ffffff;

    font-family: inherit;
    font-size: 13px;
    font-weight: 600;

    line-height: 1;

    align-items: center;
    justify-content: center;

    white-space: nowrap;

    cursor: pointer;

    appearance: none;
    -webkit-appearance: none;

    box-shadow:
        0 4px 10px
        rgba(
            25,
            118,
            210,
            0.18
        );

    transition:
        background .18s ease,
        transform .12s ease,
        box-shadow .18s ease;
}


.check-employee-input-row > .check-employee-btn:hover {

    background: #1565c0;

    box-shadow:
        0 6px 14px
        rgba(
            25,
            118,
            210,
            0.22
        );
}


.check-employee-input-row > .check-employee-btn:active {

    transform:
        translateY(1px);
}


.check-employee-input-row > .check-employee-btn:disabled {

    opacity: .65;

    cursor: wait;

    transform: none;
}

/* =====================================================
   ERROR
===================================================== */

.check-employee-error {

    margin-top: 8px;

    padding:
        8px
        10px;

    border-radius: 8px;

    background: #fff5f5;

    color: #dc2626;

    font-size: 12px;

    line-height: 1.45;

}


/* =====================================================
   RESULT
===================================================== */

.check-employee-result {

    margin-top: 22px;

    padding-top: 20px;

    border-top:
        1px solid #eef0f3;

    opacity: 0;

    transform:
        translateY(5px);

    transition:
        opacity .22s ease,
        transform .22s ease;

}


.check-employee-result.is-visible {

    opacity: 1;

    transform:
        translateY(0);

}


.check-employee-result-title {

    display: flex;

    align-items: center;

    justify-content: space-between;

    margin-bottom: 13px;

}


.result-title-main {

    font-size: 13px;

    font-weight: 700;

    color: #334155;

}


.result-title-code {

    margin-left: 5px;

    font-size: 12px;

    font-weight: 500;

    color: #94a3b8;

}


/* =====================================================
   RESULT GRID
===================================================== */

.check-employee-grid {

    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );

    gap: 11px;

}


.check-result-item {

    min-width: 0;

    display: flex;

    align-items: center;

    gap: 12px;

    padding:
        14px;

    border:
        1px solid #e8ebef;

    border-radius: 13px;

    background: #ffffff;

    transition:
        border-color .18s ease,
        box-shadow .18s ease,
        transform .18s ease;

}


.check-result-item:hover {

    border-color: #d8dee7;

    box-shadow:
        0 5px 16px
        rgba(
            15,
            23,
            42,
            0.06
        );

    transform:
        translateY(-1px);

}


/* =====================================================
   RESULT ICON
===================================================== */

.check-result-icon {

    width: 40px;
    height: 40px;

    flex: 0 0 40px;

    border-radius: 11px;

    display: flex;

    align-items: center;
    justify-content: center;

}


.check-result-icon svg {

    width: 19px;
    height: 19px;

}


.asset-icon {

    background: #edf6ff;

    color: #1976d2;

}


.advance-icon {

    background: #fff7e8;

    color: #d97706;

}


.payment-icon {

    background: #f3efff;

    color: #7c3aed;

}


.project-icon {

    background: #ecfdf5;

    color: #059669;

}


/* =====================================================
   RESULT CONTENT
===================================================== */

.check-result-content {

    min-width: 0;

}


.check-result-label {

    font-size: 11.5px;

    line-height: 1.4;

    color: #64748b;

}


.check-result-value {

    margin-top: 3px;

    font-size: 21px;

    line-height: 1.2;

    font-weight: 700;

    color: #172033;

}


@media (max-width: 560px) {

    .check-employee-view {
        padding: 10px;
    }

    .check-employee-card {
        border-radius: 15px;
    }

    .check-employee-header {
        padding: 17px;
    }

    .check-employee-body {
        padding: 17px;
    }


    /* =============================================
       INPUT + BUTTON
       Xuống dòng trên mobile
    ============================================= */

    .check-employee-input-row {
        flex-direction: column;
        align-items: stretch;
    }


    .check-employee-input-row > .check-employee-input {
        width: 100%;
        height: 44px;
        min-height: 44px;
        max-height: 44px;
        flex: 0 0 44px;
    }


    .check-employee-input-row > .check-employee-btn {
        width: 100%;
        min-width: 100%;
        max-width: 100%;

        height: 44px;
        min-height: 44px;
        max-height: 44px;

        flex: 0 0 44px;

        line-height: 1;
    }


    .check-employee-grid {
        grid-template-columns: 1fr;
    }

}

/* =====================================================
   VERY SMALL MOBILE
===================================================== */

@media (
    max-width: 360px
) {

    .check-employee-header-text h2 {

        font-size: 16px;

    }


    .check-employee-header-text p {

        font-size: 11.5px;

    }


    .check-result-item {

        padding:
            12px;

    }

}