
/* ============================
   NOTIFICATION PAGE
============================ */

:root {
    --notification-teal: #d2dfff;
    --notification-light: #d2dfff;
    --notification-border: #d2dfff;
    --notification-dark: #162f6a;
    --notification-text: #111111;
}

.maincontent {
    background: #ffffff;
    padding-bottom: 25px;
    color: var(--notification-text);
    font-family: "Noto Sans", sans-serif;
}

.notifications-container {
    max-width: 100%;
    padding-left: 4.45%;
    padding-right: 5.3%;
    margin-top: 40px;
}

/* Toolbar */

.nt-toolbar {
    display: grid;
    grid-template-columns:
        minmax(250px, 1.45fr)
        minmax(200px, 1.05fr)
        minmax(220px, 1.05fr)
        minmax(170px, 0.7fr);
    gap: 6px;
    align-items: center;
    margin-bottom: 30px !important;
}

.nt-toolbar .input-group {
    height: 50px;
    min-width: 0;
    border: 1px solid #162f6a;
    border-radius: 5px;
    overflow: hidden;
    background: #ffffff;
}

.nt-toolbar .input-group-text {
    display: flex;
    align-items: center;
    border: 0;
    background: #ffffff;
    color: #162f6a;
    padding: 0 14px;
}

.nt-toolbar .material-symbols-outlined {
    font-size: 23px;
}

.nt-toolbar .form-control,
.nt-toolbar .form-select {
    height: 48px;
    min-width: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background-color: #ffffff;
    color: #111111;
    font-family: inherit;
    font-size: 16px;
}

.nt-toolbar .form-control {
    padding-left: 4px;
}

.nt-toolbar .form-control::placeholder {
    color: #666666;
    opacity: 1;
}

.nt-toolbar .form-select {
    padding-left: 8px;
    padding-right: 30px;
    cursor: pointer;
}

.nt-toolbar .input-group:focus-within {
    outline: 2px solid rgba(22, 141, 150, 0.18);
    outline-offset: 1px;
}

/* Column Header */

.nt-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 14% 16% 140px;
    align-items: center;
    column-gap: 15px;
}

.nt-grid.tableheader {
    min-height: 50px;
    padding: 0 20px 0 3.5%;
    background: var(--notification-teal);
    border-radius: 5px;
    margin-bottom: 19px;
}

.nt-grid.tableheader h5 {
    color: #07535a;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* Category Card */

.nt-category-group {
    margin-bottom: 8px;
}

.nt-category-heading {
    min-height: 67px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 15px;
    padding: 10px 40px;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    background: #ffffff;
}

.nt-category-title {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    min-width: 0;
    color: #111111;
    font-size: 19px;
    font-weight: 400;
    line-height: 1.5;
}

.nt-category-title .material-symbols-outlined {
    flex-shrink: 0;
    color: #18354a;
    font-size: 27px;
}

.nt-category-count {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-width: 28px;
    height: 28px;
    padding: 0 7px;
    border-radius: 3px;
    background: var(--notification-teal);
    color: #162f6a;
    font-size: 13px;
    font-weight: 700;
}

/* Buttons */

.nt-action-btn {
    min-width: 127px;
    min-height: 45px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 9px;
    padding: 9px 14px;
    border: 0;
    border-radius: 5px;
    background: var(--notification-teal);
    color: #162f6a;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.2px;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.2s ease;
}

.nt-action-btn:hover,
.nt-action-btn:focus-visible {
    background: #d2dfff;
    color: #162f6a;
}

.nt-action-btn .material-symbols-outlined {
    font-size: 23px;
}

/* Expanded Notifications */

.nt-category-files {
    padding: 0 0 0 4.2%;
    border-radius: 0 0 10px 10px;
    background: var(--notification-light);
}

.nt-file-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 14% 16% 140px;
    align-items: center;
    column-gap: 15px;
    min-height: 61px;
    padding: 7px 40px 7px 0;
    border-bottom: 1px solid var(--notification-border);
}

.nt-file-row:last-child {
    border-bottom: 0;
}

.nt-file-title {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    color: #111111;
    font-size: 17px;
    font-weight: 400;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.nt-file-title:hover {
    color: var(--notification-dark);
    text-decoration: underline;
}

.nt-file-title .material-symbols-outlined {
    flex-shrink: 0;
    color: #162f6a;
    font-size: 27px;
}

.nt-file-year {
    color: #162f6a;
    font-size: 14px;
    font-weight: 700;
}

.nt-file-size {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #162f6a;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}

.nt-pdf-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #18354a;
}

.nt-pdf-icon .material-symbols-outlined {
    font-size: 28px;
    line-height: 26px;
}

.nt-pdf-icon small {
    font-size: 9px;
    font-weight: 500;
    line-height: 12px;
}

.nt-file-action {
    display: flex;
    justify-content: flex-end;
}

/* Pagination */

.nt-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 25px;
}

.nt-footer .pagination {
    gap: 5px;
}

.nt-footer .page-link {
    border: 1px solid var(--notification-border);
    border-radius: 4px;
    color: #07535a;
}

.nt-footer .page-item.active .page-link {
    background: var(--notification-teal);
    border-color: var(--notification-teal);
    color: #162f6a;
}

.nt-footer .page-link:focus {
    box-shadow: 0 0 0 0.2rem rgba(22, 141, 150, 0.2);
}

/* Tablet */

@media (max-width: 991.98px) {

    .notifications-container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .nt-toolbar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        margin-bottom: 22px !important;
    }

    .nt-category-heading {
        padding: 12px 20px;
    }

    .nt-category-title {
        font-size: 16px;
    }

    .nt-category-files {
        padding-left: 20px;
    }

    .nt-file-row {
        grid-template-columns: minmax(0, 1fr) 75px 100px;
        gap: 10px;
        padding-right: 15px;
    }

    .nt-file-year {
        text-align: right;
    }

    .nt-file-action {
        grid-column: 1 / -1;
        padding-bottom: 5px;
    }
}

/* Mobile */

@media (max-width: 575.98px) {

    .notifications-container {
        padding-left: 15px;
        padding-right: 15px;
        margin-top: 25px;
    }

    .nt-toolbar {
        grid-template-columns: 1fr;
    }

    .nt-category-heading {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
        padding: 14px;
    }

    .nt-category-heading > .nt-action-btn {
        justify-self: start;
    }

    .nt-category-title {
        font-size: 15px;
    }

    .nt-category-files {
        padding: 0 12px;
    }

    .nt-file-row {
        grid-template-columns: minmax(0, 1fr) auto;
        padding: 12px 0;
        gap: 8px;
    }

    .nt-file-title {
        font-size: 15px;
    }

    .nt-file-year {
        grid-column: 1;
        text-align: left;
        padding-left: 37px;
        font-size: 12px;
    }

    .nt-file-size {
        grid-column: 2;
        grid-row: 2;
        font-size: 12px;
    }

    .nt-file-action {
        grid-column: 1 / -1;
        justify-content: flex-start;
    }

    .nt-action-btn {
        min-width: 110px;
        min-height: 40px;
    }

    .nt-footer {
        align-items: flex-start;
        flex-direction: column;
    }
}