/* =========================================================
   HALAMAN ARSIP SURAT PERJANJIAN DENGAN PIHAK KETIGA (MOU)
   ========================================================= */
.mou-archive-layout {
    grid-template-columns: minmax(0, 1fr) 310px;
}

.mou-archive-card {
    padding: 28px 30px;
}

.mou-meta-bar {
    margin-bottom: 20px;
}

/* Bilah Filter Tahun & Pencarian */
.mou-filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 18px;
}

.mou-year-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.mou-year-btn {
    border: 1px solid var(--brand-100);
    background: var(--white);
    color: var(--gray-600);
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 9999px;
    cursor: pointer;
    transition: background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.mou-year-btn:hover {
    background: var(--brand-50);
    color: var(--brand-dark);
}

.mou-year-btn.is-active {
    background: linear-gradient(135deg, var(--brand-mid), var(--brand));
    border-color: var(--brand);
    color: var(--white);
    box-shadow: 0 4px 10px rgba(6, 120, 86, 0.22);
}

.mou-search-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--paper);
    border: 1px solid var(--brand-100);
    border-radius: 9999px;
    padding: 6px 14px;
    color: var(--brand);
    min-width: 230px;
    flex: 0 1 280px;
}

.mou-search-box:focus-within {
    background: var(--white);
    border-color: var(--brand);
    box-shadow: 0 0 0 2px rgba(6, 120, 86, 0.14);
}

.mou-search-box input {
    width: 100%;
    border: none;
    background: transparent;
    font-family: inherit;
    font-size: 13px;
    color: var(--ink);
    outline: none;
}

/* Judul Resmi di Atas Tabel */
.mou-table-banner {
    text-align: center;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.03em;
    color: var(--brand-dark);
    padding: 12px 16px;
    margin-bottom: 14px;
    border-radius: 12px;
    background: var(--brand-50);
    border: 1px solid var(--brand-100);
}

/* Tabel Arsip MoU */
.mou-table-responsive {
    width: 100%;
    overflow-x: auto;
    border-radius: 14px;
    border: 1px solid var(--brand-100);
    box-shadow: 0 2px 10px rgba(4, 57, 42, 0.05);
}

.mou-archive-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
    background: var(--white);
}

.mou-archive-table thead tr {
    background: linear-gradient(135deg, var(--brand-dark) 0%, var(--brand) 100%);
}

.mou-archive-table thead th {
    background: transparent;
    color: var(--white) !important;
    font-weight: 700;
    padding: 13px 14px;
    text-align: center;
    border-bottom: 3px solid var(--gold);
    white-space: nowrap;
}

.mou-archive-table .col-no {
    width: 54px;
    text-align: center;
    font-weight: 700;
}

.mou-archive-table td.col-no {
    color: var(--brand-dark);
}

.mou-archive-table .col-waktu {
    width: 170px;
    text-align: center;
}

.mou-archive-table td.col-waktu {
    color: var(--gray-600);
    font-size: 13px;
}

.mou-archive-table .col-file {
    width: 225px;
    text-align: center;
}

/* Baris Pembatas Tahun (TAHUN 2026, TAHUN 2025) */
.mou-year-row th {
    background: linear-gradient(90deg, #e9f6f1 0%, #f1f8f5 50%, #e9f6f1 100%);
    color: var(--brand-dark);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-align: center;
    padding: 10px 14px;
    border-top: 1px solid var(--brand-100);
    border-bottom: 1px solid var(--brand-100);
}

.mou-data-row td {
    padding: 13px 14px;
    border-bottom: 1px solid var(--gray-100);
    border-right: 1px solid var(--gray-100);
    vertical-align: middle;
}

.mou-data-row td:last-child {
    border-right: none;
}

.mou-data-row:nth-child(odd) {
    background: #fcfefd;
}

.mou-data-row:hover {
    background: #f2faf6;
}

.mou-cell-title-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mou-table-logo {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    padding: 4px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.mou-table-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.mou-cell-title {
    font-weight: 700;
    color: var(--ink);
    line-height: 1.45;
}

.mou-cell-partner {
    font-size: 11.5px;
    font-weight: 600;
    color: var(--brand);
    margin-top: 2px;
}

.mou-muted {
    color: var(--gray-400);
    font-size: 12px;
}

/* Grup Tombol Download (1 atau 2 File) */
.mou-btn-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
}

.mou-dl-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.25;
    white-space: nowrap;
    transition: transform 0.16s ease, filter 0.16s ease, box-shadow 0.16s ease;
}

.mou-dl-btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
}

.mou-dl-btn.btn-primary-doc {
    background: linear-gradient(135deg, var(--brand-mid), var(--brand));
    color: var(--white);
    box-shadow: 0 3px 10px rgba(6, 120, 86, 0.22);
}

.mou-dl-btn.btn-secondary-doc {
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    color: var(--brand-dark);
    box-shadow: 0 3px 10px rgba(245, 180, 10, 0.25);
}

@media (max-width: 1040px) {
    .mou-archive-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .mou-archive-card {
        padding: 18px 16px;
    }
    .mou-search-box {
        width: 100%;
        flex: 1 1 100%;
    }
    .mou-archive-table thead {
        display: none;
    }
    .mou-archive-table,
    .mou-archive-table tbody,
    .mou-archive-table tr,
    .mou-archive-table td {
        display: block;
        width: 100%;
    }
    .mou-year-row th {
        display: block;
        width: 100%;
    }
    .mou-data-row {
        padding: 10px 12px;
        border-bottom: 2px solid var(--brand-100);
    }
    .mou-data-row td {
        border: none;
        padding: 5px 0;
        text-align: left !important;
    }
    .mou-data-row .col-no {
        display: none;
    }
    .mou-data-row .col-waktu::before {
        content: "Jangka Waktu: ";
        font-weight: 700;
        color: var(--brand-dark);
    }
    .mou-btn-group {
        justify-content: flex-start;
        margin-top: 4px;
    }
}