/* ==========================================================
   GROUPED DOCUMENT LISTS (multi-file rows, NEW badge)
   Works with the td-, nt- and fm- prefixes.
   Colours: #162f6a (primary)  #d2dfff (light)
========================================================== */

.dg-section-title {
    margin: 0 0 8px;
    color: #162f6a;
    font-size: 28px;
    font-weight: 700;
}

.dg-section-description {
    margin: 0;
    color: #666666;
    font-size: 15px;
    line-height: 1.7;
}

/* Wrapper around each list entry */

.dg-item {
    border-bottom: 1px solid rgba(22, 47, 106, 0.15);
}

.dg-item:last-child {
    border-bottom: 0;
}

.dg-item > [class*="-file-row"] {
    border-bottom: 0;
}

/* Multi-file title is a button */

.dg-title-btn {
    width: 100%;
    padding: 0;
    background: none;
    border: 0;
    text-align: left;
    font: inherit;
    cursor: pointer;
}

.dg-title-btn:focus-visible {
    outline: 3px solid #162f6a;
    outline-offset: 3px;
}

/* "3 files" chip */

.dg-count {
    display: inline-block;
    margin-left: 10px;
    padding: 2px 8px;
    background: #162f6a;
    border-radius: 3px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    vertical-align: middle;
}

/* NEW badge */

.dg-new {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 7px;
    background: #ffffff;
    border: 1px solid #162f6a;
    border-radius: 3px;
    color: #162f6a;
    font-size: 11px;
    font-weight: 700;
    vertical-align: middle;
}

/* Files inside a multi-file entry */

.dg-subfiles {
    padding: 0 40px 10px 38px;
    background: rgba(255, 255, 255, 0.6);
}

.dg-subfile {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 110px 130px;
    column-gap: 15px;
    align-items: center;
    min-height: 52px;
    padding: 6px 0;
    border-top: 1px dashed rgba(22, 47, 106, 0.25);
}

.dg-subfile:first-child {
    border-top: 0;
}

.dg-subfile-title {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    color: #111111;
    font-size: 16px;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.dg-subfile-title:hover {
    color: #162f6a;
    text-decoration: underline;
}

.dg-subfile-title .material-symbols-outlined {
    flex-shrink: 0;
    color: #162f6a;
    font-size: 24px;
}

.dg-subfile-size {
    color: #162f6a;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}

.dg-subfile .dg-small {
    min-width: 110px;
    min-height: 38px;
    justify-self: end;
}

@media (max-width: 991.98px) {

    .dg-subfiles {
        padding: 0 15px 10px 20px;
    }

    .dg-subfile {
        grid-template-columns: minmax(0, 1fr) auto;
        row-gap: 6px;
    }

    .dg-subfile-size {
        grid-column: 1;
        padding-left: 34px;
        font-size: 12px;
    }

    .dg-subfile .dg-small {
        grid-column: 1 / -1;
        justify-self: start;
    }
}

@media (max-width: 575.98px) {

    .dg-section-title {
        font-size: 22px;
    }

    .dg-subfiles {
        padding: 0 8px 10px 12px;
    }

    .dg-subfile-title {
        font-size: 14px;
    }
}

/* Plain list (no category headings) */

.dg-flat {
    padding-left: 20px;
    border: 1px solid #d2dfff;
    border-radius: 10px;
}

/* Plain list (no category headings) */

.dg-flat {
    padding-left: 20px;
    background: #ffffff;
    border: 1px solid #d2dfff;
    border-radius: 10px;
}
.dg-item,
.dg-subfiles {
    background-color: #ffffff;
}

/* Light blue background only for Notification lists */

.notification-list .dg-flat,
.notification-list .dg-item,
.notification-list .dg-subfiles {
    background-color: #d2dfff;
}