/**
 * Forum page layout — desktop alignment with other module pages (HVP, resource, etc.)
 * Scoped to forum view / discuss only. Not loaded for responsive-only overrides.
 */

body#page-mod-forum-view #page.drawers,
body#page-mod-forum-discuss #page.drawers {
    margin-top: 0 !important;
    padding-top: 0 !important;
    background-color: #fff !important;
}

body#page-mod-forum-view #page.drawers .ds-details-main,
body#page-mod-forum-discuss #page.drawers .ds-details-main {
    background-color: #fff;
    padding: 0 !important;
}

body#page-mod-forum-view .ds-details-main > .container-fluid > .ds-body,
body#page-mod-forum-discuss .ds-details-main > .container-fluid > .ds-body {
    padding: 0;
    border-radius: 0;
    background-color: #fff;
}

/* One grey content panel (outer .mod-forum-view); flatten nested discussion_list wrapper */
body#page-mod-forum-view .mod-forum-view .ds-details-body,
body#page-mod-forum-discuss .mod-forum-view .ds-details-body {
    background: transparent;
    padding: 0;
}

body#page-mod-forum-view .d-forum-table,
body#page-mod-forum-discuss .d-forum-table {
    padding: 20px;
    margin-bottom: 0;
    overflow-x: visible;
}

body#page-mod-forum-view .d-forum-table table.discussion-list tbody tr:last-child td,
body#page-mod-forum-discuss .d-forum-table table.discussion-list tbody tr:last-child td {
    border-bottom: none;
    padding-bottom: 0;
}

body#page-mod-forum-view .d-forums-wrp,
body#page-mod-forum-discuss .d-forums-wrp {
    padding-bottom: 0;
}

body#page-mod-forum-view .d-forum-table table.discussion-list,
body#page-mod-forum-discuss .d-forum-table table.discussion-list {
    margin-bottom: 0;
}
