/* =========================================
   RESET
========================================= */

* {
    box-sizing: border-box;
}


html,
body {
    margin: 0;
    padding: 0;

    min-height: 100%;
}


body {
    font-family:
        "Be Vietnam Pro",
        Arial,
        sans-serif;

    background:
        linear-gradient(
            180deg,
            #e8edf2 0%,
            #d7e0e8 100%
        );

    color: #405565;

    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}


/* =========================================
   PAGE
========================================= */

.tl-page {
    width: 100%;
    min-height: 100vh;

    padding: 2px 22px 40px;
}


/* =========================================
   HEADER
========================================= */

.tl-header {
    width: 100%;

    border-radius: 18px;

    background:
        linear-gradient(
            135deg,
            #2d4f68,
            #22688f
        );

    box-shadow:
        0 8px 22px
        rgba(31, 65, 88, 0.12);
}


.tl-header-content {
    min-height: 104px;

    padding: 22px 34px;

    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 30px;
}


.tl-header-info h1 {
    margin: 0 0 9px;

    color: #ffffff;

    font-size: 29px;

    font-weight: 800;

    line-height: 1.25;

    letter-spacing: 0.3px;
}


.tl-header-info p {
    margin: 0;

    color:
        rgba(255, 255, 255, 0.86);

    font-size: 13px;

    font-weight: 400;

    line-height: 1.5;
}


/* =========================================
   BUTTON QUAY LẠI
========================================= */

.btn-back {
    min-width: 180px;
    height: 46px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    padding: 0 28px;

    border-radius: 10px;

    background: #f4f6f8;

    color: #3b5366;

    text-decoration: none;

    font-size: 13px;

    font-weight: 600;

    transition: 0.2s ease;
}


.btn-back:hover {
    background: #ffffff;

    transform: translateY(-1px);
}


/* =========================================
   MAIN
========================================= */

.tl-container {
    width: 100%;

    margin-top: 16px;
}


/* =========================================
   CARD
========================================= */

.tl-card {
    width: 100%;

    padding: 26px 20px 20px;

    border-radius: 18px;

    background:
        rgba(255, 255, 255, 0.68);

    border:
        1px solid
        rgba(255, 255, 255, 0.8);

    box-shadow:
        0 8px 22px
        rgba(60, 80, 100, 0.06);
}


/* =========================================
   CARD HEADER
========================================= */

.tl-card-header {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 30px;

    padding: 0 12px 16px;
}


.tl-card-title h2 {
    margin: 0 0 7px;

    color: #304d63;

    font-size: 19px;

    font-weight: 700;

    line-height: 1.3;

    letter-spacing: 0.2px;
}


.tl-card-title p {
    margin: 0;

    color: #70808d;

    font-size: 12px;

    font-weight: 400;

    line-height: 1.5;
}


/* =========================================
   TỔNG SỐ TÀI LIỆU
========================================= */

.tl-total {
    width: 102px;
    height: 68px;

    display: flex;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 12px;

    background: #edf3f6;

    border: 1px solid #cfdae1;
}


.tl-total strong {
    display: block;

    color: #31546c;

    font-size: 24px;

    font-weight: 700;

    line-height: 1;
}


.tl-total span {
    margin-top: 5px;

    color: #70808d;

    font-size: 11px;

    font-weight: 400;
}


/* =========================================
   TABLE WRAPPER
========================================= */

.table-wrapper {
    width: 100%;

    overflow-x: auto;
}


/* =========================================
   TABLE
========================================= */

.tl-table {
    width: 100%;

    border-collapse: collapse;

    table-layout: fixed;
}


/* =========================================
   TABLE HEADER
========================================= */

.tl-table thead th {
    height: 48px;

    padding: 0 16px;

    background: #315f7b;

    color: #ffffff;

    font-size: 12px;

    font-weight: 700;

    line-height: 1;

    text-align: left;

    vertical-align: middle;

    white-space: nowrap;
}


/* =========================================
   TABLE ROW
========================================= */

.tl-table tbody tr {
    min-height: 64px;

    border-bottom:
        1px solid #d5dee5;

    transition: 0.2s ease;
}


.tl-table tbody tr:hover {
    background:
        rgba(241, 246, 250, 0.85);
}


/* =========================================
   TABLE CELL
========================================= */

.tl-table tbody td {
    min-height: 64px;

    padding: 12px 16px;

    color: #405565;

    font-size: 13px;

    font-weight: 400;

    line-height: 1.45;

    vertical-align: middle;
}


/* =========================================
   COLUMN WIDTH
========================================= */

.col-stt,
.cell-stt {
    width: 70px;

    text-align: center !important;
}


.col-co-so,
.cell-co-so {
    width: 27%;
}


.col-tai-lieu,
.cell-tai-lieu {
    width: 26%;
}


.col-ngay,
.cell-ngay {
    width: 14%;

    text-align: center !important;
}


.col-ghi-chu,
.cell-ghi-chu {
    width: 19%;
}


.col-thao-tac,
.cell-thao-tac {
    width: 130px;

    text-align: center !important;
}


/* =========================================
   STT
========================================= */

.cell-stt {
    color: #536777;
}


/* =========================================
   TÊN CƠ SỞ
========================================= */

.co-so-content {
    min-height: 40px;

    display: flex;

    align-items: center;

    gap: 10px;
}


.co-so-icon {
    width: 36px;
    height: 36px;

    display: flex;

    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 10px;

    background: #e5edf2;

    color: #37647d;

    font-size: 14px;
}


.co-so-text {
    font-size: 13px;

    font-weight: 500;

    line-height: 1.45;

    color: #405565;
}


/* =========================================
   TÊN TÀI LIỆU
========================================= */

.cell-tai-lieu {
    vertical-align: middle !important;
}


.document-name {
    display: flex;

    align-items: center;

    gap: 9px;

    color: #39705e;

    font-size: 12px;

    font-weight: 500;

    line-height: 1.45;
}


.document-name i {
    width: 34px;
    height: 34px;

    display: flex;

    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 9px;

    background: #e8f0ed;

    color: #39705e;

    font-size: 13px;
}


/* =========================================
   NGÀY BAN HÀNH
========================================= */

.cell-ngay {
    color: #5d7180;

    font-size: 12px;

    font-weight: 400;

    line-height: 1;
}


/* =========================================
   GHI CHÚ
========================================= */

.cell-ghi-chu {
    vertical-align: middle !important;
}


.note-text {
    display: inline-block;

    font-size: 12px;

    font-weight: 400;

    line-height: 1.45;
}


.no-note {
    display: inline-block;

    color: #8b98a2;

    font-size: 12px;

    font-weight: 400;

    font-style: italic;

    line-height: 1;
}


/* =========================================
   BUTTON XEM
========================================= */

.cell-thao-tac {
    vertical-align: middle !important;
}


.btn-view {
    min-width: 110px;
    height: 40px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 7px;

    padding: 0 20px;

    border-radius: 8px;

    background:
        linear-gradient(
            135deg,
            #416cab,
            #315a96
        );

    color: #ffffff;

    text-decoration: none;

    font-family: inherit;

    font-size: 13px;

    font-weight: 600;

    line-height: 1;

    box-shadow:
        0 4px 10px
        rgba(45, 80, 130, 0.15);

    transition: 0.2s ease;
}


.btn-view:hover {
    background:
        linear-gradient(
            135deg,
            #315f9d,
            #244d84
        );

    transform: translateY(-1px);

    box-shadow:
        0 6px 14px
        rgba(45, 80, 130, 0.22);
}


.btn-view i {
    font-size: 12px;

    line-height: 1;
}


/* =========================================
   CHƯA CÓ FILE
========================================= */

.no-file {
    display: inline-block;

    color: #9aa5ad;

    font-size: 12px;

    font-style: italic;
}


/* =========================================
   EMPTY
========================================= */

.empty-row {
    padding: 0 !important;

    text-align: center;
}


.empty-state {
    min-height: 220px;

    display: flex;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    gap: 10px;
}


.empty-state i {
    font-size: 40px;

    color: #8ba1b0;
}


.empty-state strong {
    color: #405666;

    font-size: 16px;

    font-weight: 600;
}


.empty-state span {
    color: #7d8d99;

    font-size: 13px;
}


/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 900px) {

    .tl-page {
        padding: 10px;
    }


    .tl-header-content {
        padding: 22px;

        flex-direction: column;

        align-items: flex-start;
    }


    .btn-back {
        width: 100%;
    }


    .tl-header-info h1 {
        font-size: 23px;
    }


    .tl-table {
        min-width: 1050px;
    }

}