/* =========================================
   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;
}


/* =========================================
   PAGE
========================================= */

.pc-page {
    width: 100%;
    min-height: 100vh;

    padding: 2px 22px 40px;
}


/* =========================================
   HEADER
========================================= */

.pc-header {
    width: 100%;

    border-radius: 18px;

    background:
        linear-gradient(
            135deg,
            #2d4f68,
            #22688f
        );

    box-shadow:
        0 8px 22px
        rgba(31, 65, 88, 0.12);
}


.pc-header-content {
    min-height: 104px;

    padding: 22px 34px;

    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 30px;
}


.pc-header-info h1 {
    margin: 0 0 9px;

    color: #ffffff;

    font-size: 29px;
    font-weight: 800;

    line-height: 1.25;

    letter-spacing: 0.3px;
}


.pc-header-info p {
    margin: 0;

    color:
        rgba(255, 255, 255, 0.86);

    font-size: 13px;

    line-height: 1.5;
}


/* =========================================
   NÚT QUAY LẠI
========================================= */

.btn-back {
    min-width: 180px;
    height: 46px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 7px;

    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
========================================= */

.pc-container {
    width: 100%;

    margin-top: 16px;
}


/* =========================================
   CARD
========================================= */

.pc-card {
    width: 100%;

    padding: 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
========================================= */

.pc-card-header {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 30px;

    padding: 4px 14px 16px;
}


.pc-card-title {
    min-width: 0;
}


.pc-card-title h2 {
    margin: 0 0 7px;

    color: #40576a;

    font-size: 19px;

    font-weight: 700;

    line-height: 1.3;

    letter-spacing: 0.2px;
}


.pc-card-title p {
    margin: 0;

    color: #70808d;

    font-size: 12px;

    font-weight: 400;

    line-height: 1.5;
}


.pc-card-title p strong {
    color: #405565;

    font-weight: 700;
}


/* =========================================
   Ô TỔNG SỐ
========================================= */

.pc-total {
    width: 110px;
    height: 70px;

    display: flex;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 14px;

    background: #edf3f6;

    border: 1px solid #cbd7de;
}


.pc-total strong {
    display: block;

    color: #40586b;

    font-size: 24px;

    font-weight: 700;

    line-height: 1;
}


.pc-total span {
    margin-top: 6px;

    color: #70808d;

    font-size: 11px;
}


/* =========================================
   TABLE
========================================= */

.table-wrapper {
    width: 100%;

    overflow-x: auto;
}


.pc-table {
    width: 100%;

    border-collapse: collapse;

    table-layout: fixed;
}


/* =========================================
   TABLE HEADER
========================================= */

.pc-table thead {
    background: #526b7e;
}


.pc-table thead th {
    height: 48px;

    padding: 0 16px;

    color: #ffffff;

    font-size: 12px;

    font-weight: 700;

    text-align: left;

    vertical-align: middle;

    white-space: nowrap;
}


.pc-table thead th:first-child {
    text-align: center;
}


.pc-table thead th:last-child {
    text-align: center;
}


/* =========================================
   TABLE BODY
========================================= */

.pc-table tbody tr {
    border-bottom:
        1px solid #cfd9e0;

    transition: 0.2s ease;
}


.pc-table tbody tr:hover {
    background:
        rgba(241, 246, 250, 0.8);
}


.pc-table tbody td {
    padding: 12px 16px;

    color: #405565;

    font-size: 13px;

    line-height: 1.45;

    vertical-align: middle;
}


/* =========================================
   ĐỘ RỘNG KHI XEM 1 CƠ SỞ
========================================= */

.pc-table:not(.has-facility) .col-stt,
.pc-table:not(.has-facility) .cell-stt {
    width: 7%;
}


.pc-table:not(.has-facility) .col-quyet-dinh,
.pc-table:not(.has-facility) .cell-quyet-dinh {
    width: 42%;
}


.pc-table:not(.has-facility) .col-ngay,
.pc-table:not(.has-facility) .cell-ngay {
    width: 17%;
}


.pc-table:not(.has-facility) .col-ghi-chu,
.pc-table:not(.has-facility) .cell-ghi-chu {
    width: 21%;
}


.pc-table:not(.has-facility) .col-thao-tac,
.pc-table:not(.has-facility) .cell-thao-tac {
    width: 13%;
}


/* =========================================
   ĐỘ RỘNG KHI XEM TOÀN BỘ
========================================= */

.pc-table.has-facility .col-stt,
.pc-table.has-facility .cell-stt {
    width: 5%;
}


.pc-table.has-facility .col-co-so,
.pc-table.has-facility .cell-co-so {
    width: 27%;
}


.pc-table.has-facility .col-quyet-dinh,
.pc-table.has-facility .cell-quyet-dinh {
    width: 27%;
}


.pc-table.has-facility .col-ngay,
.pc-table.has-facility .cell-ngay {
    width: 14%;
}


.pc-table.has-facility .col-ghi-chu,
.pc-table.has-facility .cell-ghi-chu {
    width: 16%;
}


.pc-table.has-facility .col-thao-tac,
.pc-table.has-facility .cell-thao-tac {
    width: 11%;
}


/* =========================================
   STT
========================================= */

.cell-stt {
    text-align: center;

    color: #536777;
}


/* =========================================
   TÊN CƠ SỞ
========================================= */

.co-so-content {
    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 {
    color: #405565;

    font-size: 13px;

    font-weight: 500;

    line-height: 1.45;
}


/* =========================================
   TÊN QUYẾT ĐỊNH
========================================= */

.decision-name {
    display: flex;

    align-items: center;

    gap: 10px;

    min-width: 0;

    color: #405565;

    font-size: 13px;

    font-weight: 500;

    line-height: 1.45;
}


.decision-name i {
    width: 36px;
    height: 36px;

    display: flex;

    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 10px;

    background: #e8f0ed;

    color: #39705e;

    font-size: 13px;
}


.decision-name span {
    min-width: 0;
}


/* =========================================
   NGÀY
========================================= */

.cell-ngay {
    text-align: center;

    color: #5d7180;

    font-size: 12px;

    white-space: nowrap;
}


/* =========================================
   GHI CHÚ
========================================= */

.note-text {
    font-size: 12px;

    line-height: 1.45;
}


.no-note {
    color: #8b98a2;

    font-size: 12px;

    font-style: italic;
}


/* =========================================
   THAO TÁC
========================================= */

.cell-thao-tac {
    text-align: center;

    white-space: nowrap;
}


.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-size: 13px;

    font-weight: 600;

    box-shadow:
        0 4px 10px
        rgba(45, 80, 130, 0.15);

    transition: 0.2s ease;
}


.btn-view:hover {
    transform: translateY(-1px);

    background:
        linear-gradient(
            135deg,
            #315f9d,
            #244d84
        );

    box-shadow:
        0 6px 14px
        rgba(45, 80, 130, 0.22);
}


.no-file {
    color: #9aa5ad;

    font-size: 12px;

    font-style: italic;
}


/* =========================================
   EMPTY STATE
========================================= */

.empty-row {
    padding: 0 !important;

    text-align: center !important;
}


.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) {

    .pc-page {
        padding: 10px;
    }


    .pc-header-content {
        padding: 22px;

        flex-direction: column;

        align-items: flex-start;
    }


    .btn-back {
        width: 100%;
    }


    .pc-header-info h1 {
        font-size: 23px;
    }


    .pc-table {
        min-width: 900px;
    }

}