﻿#documents-page h1 {
    margin-bottom: 0.6em;
    text-align: center;
}

#documents-page .documents-tables {
    margin-top: 30px;
}

#documents-page .documents-table {
    width: 100%;
    margin-bottom: 50px;
    border-collapse: separate;
    border-spacing: 0 12px;
}

#documents-page .documents-table th {
    padding: 12px 20px;
    font-size: 18px;
    color: #fff;
    text-align: start;
    background: #199CDB;
}

#documents-page .documents-table th:first-child {
    border-top-left-radius: 20px;
    border-bottom-left-radius: 20px;
}

#documents-page .documents-table th:last-child {
    border-top-right-radius: 20px;
    border-bottom-right-radius: 20px;
}

#documents-page .documents-table tbody {
    display: table-row-group;
}

#documents-page .documents-table tbody tr:nth-child(odd) {
    background: #F1F4F7;
}

#documents-page .documents-table td {
    padding: 16px 20px;
    font-size: 20px;
    vertical-align: middle;
}

#documents-page .documents-table td:nth-child(1) {
    width: 60%;
    border-top-left-radius: 20px;
    border-bottom-left-radius: 20px;
}

#documents-page .doc-name-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

#documents-page .doc-format-tag {
    display: inline-block;
    padding: 6px 8px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    text-transform: lowercase;
}

#documents-page .documents-table tbody tr:nth-child(odd) .doc-format-tag {
    color: rgba(35, 34, 34, 0.5);
    background: rgba(255, 255, 255, 1);
}

#documents-page .documents-table tbody tr:nth-child(even) .doc-format-tag {
    color: rgba(35, 34, 34, 0.5);
    background: rgba(241, 244, 246, 1);
}

#documents-page .doc-title {
    font-weight: 500;
}

#documents-page .documents-table td:nth-child(2) {
    width: 20%;
    white-space: nowrap;
    color: rgba(35, 34, 34, 0.5);
}

#documents-page .documents-table td:nth-child(3) {
    width: 20%;
    text-align: left;
    border-top-right-radius: 20px;
    border-bottom-right-radius: 20px;
}

#documents-page .doc-action-btn {
    display: inline-block;
    padding: 10px 18px;
    font-size: 17px;
    font-weight: 500;
    color: #fff;
    background: #199CDB;
    border-radius: 50px;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

#documents-page .doc-action-btn:hover,
#documents-page .doc-action-btn:focus-visible {
    background: #1587bd;
}

#documents-page .doc-action-btn:active {
    background: #1274a3;
}

#documents-page .documents-empty {
    margin-top: 30px;
    padding: 40px 20px;
    text-align: center;
    background: #F1F4F7;
}

#documents-page .documents-empty p {
    margin: 0;
}

@media (max-width: 991px) {


    #documents-page .documents-table td {
        font-size: 18px;
    }
}

@media (max-width: 767px) {
    #documents-page .documents-table {
        border-spacing: 0 10px;
    }

    #documents-page .documents-table thead {
        display: table-header-group;
    }

    #documents-page .documents-table thead th:nth-child(2),
    #documents-page .documents-table thead th:nth-child(3) {
        display: none;
    }

    #documents-page .documents-table thead th:first-child {
        display: block;
        width: 100%;
        border-radius: 18px;
    }

    #documents-page .documents-table tbody tr {
        display: flex;
        flex-direction: column;
        padding: 12px 14px;
        border-radius: 16px;
        background: transparent;
    }

    #documents-page .documents-table tbody tr:nth-child(odd) {
        background: #F1F4F7;
    }

    #documents-page .documents-table tbody tr:nth-child(even) {
        background: #fff;
    }

    #documents-page .documents-table td:nth-child(1),
    #documents-page .documents-table td:nth-child(2),
    #documents-page .documents-table td:nth-child(3) {
        width: 100%;
        border-radius: 0;
        text-align: left;
        padding: 6px 0;
        font-size: 16px;
        display: block;
        gap: 0;
    }

    #documents-page .documents-table td::before {
        display: none;
    }

    #documents-page .doc-name-cell {
        display: flex;
        flex-direction: column-reverse;
        align-items: flex-start;
        gap: 8px;
    }

    #documents-page .documents-table td:nth-child(2),
    #documents-page .documents-table td:nth-child(3) {
        padding-top: 0;
    }

    #documents-page .documents-table td:last-child {
        padding-bottom: 0;
    }

    #documents-page .documents-table td:last-child .doc-action-btn {
        margin-left: 0;
    }

    #documents-page .doc-action-btn {
        display: none;
        /* align-items: center;
        justify-content: center;
        padding: 8px 14px;
        font-size: 14px; */
    }
}
