* =========================================================
   REPOSITORI DOKUMEN
   Institutional / Government Portal
========================================================= */

.repository-page {
    background: #f4f6f8;
}

/* =========================================================
   PAGE HEADING
========================================================= */

.repository-heading {
    padding: 30px 0 26px;
    border-bottom: 1px solid #dce2e8;
    background: #ffffff;
}

.repository-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    color: #7a8491;
    font-size: 12px;
}

.repository-breadcrumb a {
    color: #4c5a6b;
    text-decoration: none;
}

.repository-breadcrumb a:hover {
    color: #0b3568;
    text-decoration: underline;
}

.repository-title-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
}

.repository-kicker {
    margin: 0 0 5px;
    color: #9d0b2a;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.repository-title-row h1 {
    margin: 0 0 7px;
    color: #0b3568;
    font-size: 34px;
    font-weight: 800;
    line-height: 1.2;
}

.repository-intro {
    max-width: 850px;
    margin: 0;
    color: #4d5968;
    font-size: 14px;
    line-height: 1.65;
}

.repository-total {
    min-width: 145px;
    padding-left: 20px;
    border-left: 3px solid #9d0b2a;
    text-align: right;
}

.repository-total span {
    display: block;
    margin-bottom: 3px;
    color: #6d7784;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.repository-total strong {
    display: block;
    color: #0b3568;
    font-size: 30px;
    font-weight: 800;
}

/* =========================================================
   CONTENT
========================================================= */

.repository-content {
    padding: 26px 0 55px;
}

.repository-content .container {
    max-width: 1280px;
}

/* =========================================================
   CATEGORY NAVIGATION
========================================================= */

.repository-category-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin-bottom: 18px;
    border: 1px solid #cfd7df;
    background: #ffffff;
}

.repository-category-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 15px;
    border-right: 1px solid #d8dee5;
    color: #27384c;
    background: #ffffff;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.repository-category-link:hover {
    color: #0b3568;
    background: #f3f6f9;
}

.repository-category-link.active {
    color: #ffffff;
    background: #0b3568;
}

.repository-category-link span {
    min-width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    border-radius: 3px;
    color: #445267;
    background: #edf1f5;
    font-size: 10px;
    font-weight: 800;
}

.repository-category-link.active span {
    color: #0b3568;
    background: #ffffff;
}

/* =========================================================
   PANEL
========================================================= */

.repository-panel {
    border: 1px solid #cfd7df;
    background: #ffffff;
}

.repository-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px 14px;
    border-bottom: 1px solid #dce2e8;
}

.repository-panel-header h2 {
    margin: 0 0 3px;
    color: #0b3568;
    font-size: 20px;
    font-weight: 800;
}

.repository-panel-header p {
    margin: 0;
    color: #707b88;
    font-size: 12px;
}

/* =========================================================
   FILTER
========================================================= */

.repository-filter-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 190px auto auto;
    gap: 8px;
    padding: 14px 20px;
    border-bottom: 1px solid #dce2e8;
    background: #f8f9fb;
}

.repository-search-field {
    position: relative;
}

.repository-search-field i {
    position: absolute;
    top: 50%;
    left: 13px;
    color: #7b8591;
    transform: translateY(-50%);
}

.repository-search-field input,
.repository-filter-form select {
    width: 100%;
    height: 40px;
    border: 1px solid #bac4cf;
    border-radius: 4px;
    background: #ffffff;
    color: #27384c;
    font-size: 12px;
    outline: none;
}

.repository-search-field input {
    padding: 8px 12px 8px 37px;
}

.repository-filter-form select {
    padding: 7px 10px;
}

.repository-search-field input:focus,
.repository-filter-form select:focus {
    border-color: #0b3568;
    box-shadow: 0 0 0 2px rgba(11,53,104,.08);
}

.repository-filter-form button,
.repository-reset {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border: 1px solid #0b3568;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

.repository-filter-form button {
    color: #ffffff;
    background: #0b3568;
}

.repository-filter-form button:hover {
    background: #082a54;
}

.repository-reset {
    color: #0b3568;
    background: #ffffff;
}

/* =========================================================
   TABLE
========================================================= */

.repository-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.repository-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 12px;
}

.repository-table th {
    padding: 11px 12px;
    border-right: 1px solid #294f7c;
    border-bottom: 1px solid #183e6a;
    color: #ffffff;
    background: #0b3568;
    font-size: 10.5px;
    font-weight: 800;
    text-align: left;
    text-transform: uppercase;
}

.repository-table th:last-child {
    border-right: 0;
}

.repository-table td {
    padding: 13px 12px;
    border-right: 1px solid #d9e0e6;
    border-bottom: 1px solid #d9e0e6;
    vertical-align: top;
    color: #2f3b49;
    background: #ffffff;
}

.repository-table tr:nth-child(even) td {
    background: #fafbfc;
}

.repository-table tbody tr:hover td {
    background: #f1f5f8;
}

.repository-table td:last-child {
    border-right: 0;
}

.col-no {
    width: 60px;
}

.col-category {
    width: 180px;
}

.col-type {
    width: 135px;
}

.col-date {
    width: 115px;
}

.col-action {
    width: 145px;
}

.repository-number {
    text-align: center;
    font-weight: 700;
}

/* =========================================================
   DOCUMENT INFO
========================================================= */

.repository-document-title {
    margin-bottom: 4px;
    color: #0b3568;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.45;
}

.repository-description {
    margin-bottom: 7px;
    color: #5c6774;
    font-size: 11.5px;
    line-height: 1.55;
}

.repository-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 15px;
    color: #7a8491;
    font-size: 10.5px;
}

.repository-meta strong {
    color: #4a5665;
}

/* =========================================================
   TYPE LABEL
========================================================= */

.repository-type {
    display: inline-block;
    padding: 4px 8px;
    border: 1px solid #c6d2df;
    border-radius: 3px;
    background: #f4f7fa;
    color: #30445d;
    font-size: 9.5px;
    font-weight: 800;
    text-transform: uppercase;
}

.repository-type-borang {
    border-color: #9eb6d0;
    background: #eef4fa;
    color: #164a7a;
}

.repository-type-format {
    border-color: #b8c7a7;
    background: #f4f7ef;
    color: #4b632e;
}

.repository-type-panduan {
    border-color: #d3c59d;
    background: #faf7ed;
    color: #735d1f;
}

.repository-type-semak {
    border-color: #b8b0d5;
    background: #f5f3fa;
    color: #53427c;
}

.repository-type-pekeliling {
    border-color: #a9bed4;
    background: #eef4f9;
    color: #254f78;
}

.repository-type-hebahan {
    border-color: #d4aeb7;
    background: #fbf1f3;
    color: #8a2940;
}

/* =========================================================
   ACTION
========================================================= */

.repository-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 34px;
    padding: 7px 10px;
    border: 1px solid #0b3568;
    border-radius: 4px;
    color: #0b3568;
    background: #ffffff;
    font-size: 10.5px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.repository-action:hover {
    color: #ffffff;
    background: #0b3568;
}

.repository-action.disabled {
    border-color: #d5dbe1;
    color: #9aa3ad;
    background: #f6f7f8;
}

/* =========================================================
   EMPTY
========================================================= */

.repository-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 45px 20px;
    color: #707b88;
    text-align: center;
}

.repository-empty i {
    margin-bottom: 10px;
    color: #8f99a5;
    font-size: 30px;
}

.repository-empty strong {
    margin-bottom: 4px;
    color: #27384c;
    font-size: 14px;
}

.repository-empty span {
    font-size: 12px;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 992px) {

    .repository-title-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .repository-total {
        padding-left: 14px;
        text-align: left;
    }

    .repository-filter-form {
        grid-template-columns: minmax(0,1fr) 170px;
    }

    .repository-category-bar {
        overflow-x: auto;
        flex-wrap: nowrap;
    }

    .repository-category-link {
        flex: 0 0 auto;
        white-space: nowrap;
    }
}

@media (max-width: 700px) {

    .repository-heading {
        padding: 22px 0 20px;
    }

    .repository-title-row h1 {
        font-size: 28px;
    }

    .repository-filter-form {
        grid-template-columns: 1fr;
    }

    .repository-table {
        table-layout: auto;
    }

    .repository-table thead {
        display: none;
    }

    .repository-table,
    .repository-table tbody,
    .repository-table tr,
    .repository-table td {
        display: block;
        width: 100%;
    }

    .repository-table tr {
        border-bottom: 1px solid #cfd7df;
    }

    .repository-table td {
        padding: 9px 12px;
        border-right: 0;
        border-bottom: 1px solid #edf0f2;
    }

    .repository-table td::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 4px;
        color: #77818e;
        font-size: 9px;
        font-weight: 800;
        text-transform: uppercase;
    }

    .repository-number {
        display: none !important;
    }

    .repository-action {
        width: 100%;
    }
}
/* =========================================================
   REPOSITORI GROUP / CHILD ITEMS
========================================================= */

.repository-groups {
    display: flex;
    flex-direction: column;
}

.repository-group {
    border-bottom: 1px solid #cfd7df;
    background: #ffffff;
}

.repository-group:last-child {
    border-bottom: 0;
}

.repository-group-head {
    display: grid;
    grid-template-columns: 44px minmax(0,1fr) 70px;
    gap: 14px;
    align-items: start;
    padding: 18px 20px 15px;
    background: #ffffff;
}

.repository-group:nth-child(even) .repository-group-head {
    background: #fafbfc;
}

.repository-group-number {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #c9d3dd;
    border-radius: 4px;
    color: #0b3568;
    background: #f4f7fa;
    font-size: 12px;
    font-weight: 800;
}

.repository-group-main {
    min-width: 0;
}

.repository-group-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px 10px;
    align-items: center;
    margin-bottom: 6px;
    color: #707b88;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.repository-group-main h3 {
    margin: 0 0 6px;
    color: #0b3568;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.45;
}

.repository-group-main p {
    max-width: 900px;
    margin: 0 0 7px;
    color: #596573;
    font-size: 11.5px;
    line-height: 1.55;
}

.repository-group-ref {
    color: #7a8491;
    font-size: 10.5px;
}

.repository-group-ref strong {
    color: #4a5665;
}

.repository-group-count {
    padding-left: 12px;
    border-left: 2px solid #d9e0e7;
    text-align: right;
}

.repository-group-count strong {
    display: block;
    color: #0b3568;
    font-size: 20px;
    line-height: 1;
}

.repository-group-count span {
    display: block;
    margin-top: 4px;
    color: #7a8491;
    font-size: 9px;
    font-weight: 800;
}

/* =========================================================
   CHILD ITEMS
========================================================= */

.repository-items {
    border-top: 1px solid #e1e6eb;
    background: #f7f9fb;
}

.repository-item-row {
    display: grid;
    grid-template-columns: 42px minmax(0,1fr) 150px;
    gap: 12px;
    align-items: center;
    padding: 11px 20px;
    border-bottom: 1px solid #dde3e9;
}

.repository-item-row:last-child {
    border-bottom: 0;
}

.repository-item-row:hover {
    background: #f0f4f8;
}

.repository-item-index {
    color: #6f7b88;
    font-size: 11px;
    font-weight: 800;
    text-align: center;
}

.repository-item-title {
    min-width: 0;
}

.repository-item-title strong {
    display: block;
    color: #2c3a4b;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.4;
}

.repository-item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
    color: #7a8491;
    font-size: 10px;
}

.repository-item-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.repository-item-action {
    text-align: right;
}

.repository-no-items {
    padding: 14px 20px 14px 76px;
    color: #8a939e;
    font-size: 11px;
    font-style: italic;
}

/* =========================================================
   TYPE: SLIDE / NOTA KURSUS
========================================================= */

.repository-type-slide {
    border-color: #b7c8a6;
    background: #f2f7ed;
    color: #4c672f;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 760px) {

    .repository-group-head {
        grid-template-columns: 36px minmax(0,1fr);
    }

    .repository-group-count {
        grid-column: 2;
        padding-left: 0;
        border-left: 0;
        text-align: left;
    }

    .repository-group-count strong,
    .repository-group-count span {
        display: inline;
    }

    .repository-item-row {
        grid-template-columns: 34px minmax(0,1fr);
    }

    .repository-item-action {
        grid-column: 2;
        text-align: left;
    }

    .repository-item-action .repository-action {
        width: 100%;
    }

    .repository-no-items {
        padding-left: 20px;
    }
}