/* =====================================================
   PHEP NAM VIEW
===================================================== */

.phep-nam-view {
    width: 100%;
}


/* =====================================================
   HEADER
===================================================== */

.phep-nam-header {
    margin-bottom: 24px;
}

.phep-nam-header .view-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.phep-nam-title-group {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.phep-nam-title-group .view-title {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.phep-nam-year {
    font-size: 14px;
    color: #666;
}


/* =====================================================
   DESKTOP TABLE
===================================================== */

.phep-nam-table-wrapper {
    width: 100%;
    overflow-x: auto;
}

.phep-nam-table {
    width: 100%;
    min-width: 1000px;

    border-collapse: collapse;

    font-size: 13.5px;
}

.phep-nam-table th,
.phep-nam-table td {
    padding: 11px 12px;

    border-bottom: 1px solid #e5e7eb;

    text-align: left;
    vertical-align: middle;

    white-space: nowrap;
}

.phep-nam-table th {
    font-weight: 600;
    background: #f8f9fa;
}

.phep-nam-table td {
    color: #333;
}


/* -----------------------------------------------------
   CĂN SỐ
----------------------------------------------------- */

.phep-nam-table th:not(:first-child),
.phep-nam-table td:not(:first-child) {
    text-align: center;
}


/* -----------------------------------------------------
   NHÂN VIÊN
----------------------------------------------------- */

.phep-nam-table th:first-child,
.phep-nam-table td:first-child {
    min-width: 180px;
    text-align: left;
}


/* -----------------------------------------------------
   PHÉP CÒN LẠI
----------------------------------------------------- */

.phep-nam-table td.phep-nam-remaining {
    font-weight: 600;
}


/* =====================================================
   MOBILE
===================================================== */

.phep-nam-mobile-list {
    display: none;
}


/* =====================================================
   MOBILE CARD
===================================================== */

.phep-nam-card {
    display: flex;
    align-items: center;
    justify-content: space-between;

    width: 100%;

    padding: 14px 16px;

    margin-bottom: 10px;

    background: #fff;

    border: 1px solid #e5e7eb;
    border-radius: 10px;

    box-sizing: border-box;
}

.phep-nam-card-employee {
    min-width: 0;

    font-size: 14px;
    font-weight: 500;

    color: #333;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.phep-nam-card-remaining {
    flex-shrink: 0;

    margin-left: 16px;

    font-size: 14px;
    font-weight: 600;

    white-space: nowrap;
}

.phep-nam-card-remaining-label {
    font-weight: 400;
    color: #666;
}


/* =====================================================
   EMPTY
===================================================== */

.phep-nam-empty {
    padding: 32px 16px;

    text-align: center;

    color: #777;

    font-size: 14px;
}


/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 767px) {

    .phep-nam-header {
        margin-bottom: 16px;
    }

    .phep-nam-title-group {
        gap: 8px;
    }

    .phep-nam-title-group .view-title {
        font-size: 18px;
    }

    .phep-nam-year {
        font-size: 13px;
    }


    /* Ẩn bảng desktop */
    .phep-nam-table-wrapper {
        display: none;
    }


    /* Hiện card mobile */
    .phep-nam-mobile-list {
        display: block;
    }


    .phep-nam-card {
        padding: 13px 14px;
    }

}