/* =========================================================
   Organization Portal - Member Documents
   ========================================================= */

.op-documents-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 30px 0 50px;
    box-sizing: border-box;
}

/* =========================================================
   Documents Header
   ========================================================= */

.op-documents-header {
    background: #ffffff;
    border-radius: 18px;
    padding: 30px 34px;
    margin-bottom: 28px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
}

.op-documents-header h2 {
    margin: 0 0 10px;
    color: #4d2d7d;
    font-size: 32px;
    line-height: 1.2;
    font-weight: 700;
}

.op-documents-header p {
    margin: 0 0 22px;
    color: #333333;
    font-size: 15px;
}

/* =========================================================
   Filters
   ========================================================= */

.op-documents-filters {
    display: grid;
    grid-template-columns: minmax(280px, 1.7fr) 1fr 1fr auto auto;
    gap: 12px;
    align-items: center;
    margin: 0;
}

.op-documents-filters input,
.op-documents-filters select {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    border: 1px solid #d8d8d8;
    border-radius: 10px;
    background: #ffffff;
    color: #222222;
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
}

.op-documents-filters input:focus,
.op-documents-filters select:focus {
    border-color: #4d2d7d;
    box-shadow: 0 0 0 2px rgba(77, 45, 125, 0.08);
}

.op-documents-filters button {
    height: 46px;
    padding: 0 25px;
    border: 1px solid #ef476f;
    border-radius: 8px;
    background: #ffffff;
    color: #ef476f;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.op-documents-filters button:hover {
    background: #ef476f;
    color: #ffffff;
}

.op-doc-reset {
    height: 46px;
    padding: 0 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d8d8d8;
    border-radius: 8px;
    background: #f7f7f7;
    color: #333333;
    text-decoration: none;
    font-size: 14px;
    box-sizing: border-box;
}

.op-doc-reset:hover {
    background: #eeeeee;
    color: #333333;
}

/* =========================================================
   Documents Grid
   ========================================================= */

.op-documents-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

/* =========================================================
   Document Card
   ========================================================= */

.op-document-card {
    position: relative;
    min-height: 245px;
    background: #ffffff;
    border: 1px solid #eeeeee;
    border-radius: 18px;
    padding: 26px 28px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.op-document-title {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 22px;
}

.op-document-icon {
    font-size: 23px;
    line-height: 1;
    flex-shrink: 0;
}

.op-document-title h3 {
    margin: 0;
    color: #171717;
    font-size: 20px;
    line-height: 1.35;
    font-weight: 700;
}

/* =========================================================
   Document Meta
   ========================================================= */

.op-document-meta {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.op-document-meta-row {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 14px;
    color: #333333;
}

.op-document-meta-row strong {
    color: #222222;
    font-weight: 700;
}

.op-document-meta-row span {
    color: #4d2d7d;
}

/* =========================================================
   Document Actions
   ========================================================= */

.op-document-actions {
    margin-top: auto;
    padding-top: 28px;
    display: flex;
    align-items: center;
    gap: 18px;
}

.op-document-actions a {
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.op-document-view {
    color: #4d2d7d;
}

.op-document-download {
    color: #4d2d7d;
}

.op-document-view:hover,
.op-document-download:hover {
    text-decoration: underline;
}

.op-no-file {
    color: #888888;
    font-size: 14px;
}

/* =========================================================
   No Documents
   ========================================================= */

.op-no-documents {
    background: #ffffff;
    border-radius: 18px;
    padding: 55px 30px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
}

.op-no-documents-icon {
    font-size: 32px;
    margin-bottom: 10px;
}

.op-no-documents h3 {
    margin: 0 0 8px;
    color: #222222;
    font-size: 24px;
}

.op-no-documents p {
    margin: 0;
    color: #777777;
    font-size: 14px;
}

/* =========================================================
   Pagination
   ========================================================= */

.op-documents-pagination {
    margin-top: 30px;
    text-align: center;
}

.op-documents-pagination ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: inline-flex;
    gap: 6px;
}

.op-documents-pagination li {
    margin: 0;
}

.op-documents-pagination a,
.op-documents-pagination span {
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    text-decoration: none;
    box-sizing: border-box;
}

.op-documents-pagination a {
    border: 1px solid #dddddd;
    color: #4d2d7d;
    background: #ffffff;
}

.op-documents-pagination span.current {
    background: #4d2d7d;
    color: #ffffff;
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 900px) {

    .op-documents-page {
        padding-left: 20px;
        padding-right: 20px;
    }

    .op-documents-filters {
        grid-template-columns: 1fr 1fr;
    }

    .op-documents-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {

    .op-documents-header {
        padding: 24px 20px;
    }

    .op-documents-header h2 {
        font-size: 26px;
    }

    .op-documents-filters {
        grid-template-columns: 1fr;
    }

    .op-documents-filters input,
    .op-documents-filters select,
    .op-documents-filters button,
    .op-reset {
        width: 100%;
    }

    .op-document-card {
        min-height: 220px;
        padding: 22px;
    }
}