/* Mobile-first stability layer for the legacy Mabrex/Bootstrap 3 shell. */

*,
*:before,
*:after {
    box-sizing: border-box;
}

html,
body {
    min-width: 0;
    max-width: 100%;
    overflow-x: hidden;
}

img,
canvas,
svg,
video,
object,
embed {
    max-width: 100%;
}

body div.main {
    min-height: 100vh;
}

#mabrexPageContent,
#page-content {
    min-width: 0;
    max-width: 100%;
}

#mabrexPageContentHolder {
    margin-left: 0;
    margin-right: 0;
}

#mabrexPageContent {
    padding-bottom: 18px;
}

.container-fluid {
    max-width: 100%;
}

.panel,
.well,
.tab-content {
    max-width: 100%;
}

#mabrexPageContent > [ng-controller="formController"],
#mabrexPageContent > .btn-group {
    margin: 0 0 10px;
}

#mabrexPageContent > [ng-controller="formController"] .btn,
#mabrexPageContent > .btn-group .btn {
    min-height: 36px;
    padding: 8px 14px;
    border-radius: 4px;
    border: 0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .08);
    font-weight: 600;
}

#mabrexPageContent .panel.panel-default {
    overflow: visible;
    border: 1px solid #dfe6e8;
    border-radius: 4px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(12, 36, 44, .06);
}

#mabrexPageContent .panel.panel-default > .panel-heading {
    min-height: 42px;
    padding: 12px 16px;
    border-bottom: 1px solid #dfe6e8;
    background: linear-gradient(180deg, #fbfcfd 0%, #f2f5f6 100%);
}

#mabrexPageContent .panel.panel-default > .panel-heading .panel-title,
#mabrexPageContent .panel.panel-default > .panel-heading h4 {
    margin: 0;
    color: #183c43;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.25;
}

#mabrexPageContent .panel.panel-default > .panel-body {
    padding: 0;
    background: #fff;
}

.btn,
.form-control,
.input-sm,
.btn-sm {
    min-height: 34px;
}

.form-control,
select,
textarea,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="search"],
input[type="date"],
input[type="time"] {
    max-width: 100%;
}

.table-responsive {
    width: 100%;
    max-width: 100%;
    border: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table {
    max-width: 100%;
}

#data-view {
    padding: 0 16px 12px;
}

#data-view .table,
#mabrexPageContent .panel-body > .table,
#mabrexPageContent .panel-body > .table-responsive .table {
    margin-bottom: 0;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 15px;
}

#data-view .table > thead > tr > th,
#mabrexPageContent .table > thead > tr > th {
    padding: 8px 10px !important;
    border-top: 1px solid #d8e1e4;
    border-bottom: 1px solid #d8e1e4;
    background: #edf2f3;
    color: #237f89;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.2;
}

#data-view .table > tbody > tr > td,
#mabrexPageContent .table > tbody > tr > td {
    height: 40px;
    padding: 6px 10px !important;
    border-top: 0;
    border-bottom: 1px solid #e2e6e8;
    color: #52666e;
    font-size: 13px;
    line-height: 1.2;
    vertical-align: middle !important;
    white-space: nowrap;
}

#data-view .table-striped > tbody > tr:nth-of-type(odd),
#mabrexPageContent .table-striped > tbody > tr:nth-of-type(odd) {
    background-color: #fff;
}

#data-view .table-striped > tbody > tr:nth-of-type(even),
#mabrexPageContent .table-striped > tbody > tr:nth-of-type(even) {
    background-color: #fbfcfc;
}

#data-view .table-hover > tbody > tr:hover,
#mabrexPageContent .table-hover > tbody > tr:hover {
    background-color: #f3f8f6;
}

#data-view .table .label,
#data-view .table .mx-label-pill,
#mabrexPageContent .table .label,
#mabrexPageContent .table .mx-label-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 18px;
    max-height: 18px;
    min-width: 56px;
    padding: 0 7px !important;
    border-radius: 3px;
    font-size: 11px;
    line-height: 18px !important;
    vertical-align: middle;
}

#data-view .table > thead > tr > th.mx-label-column,
#data-view .table > tbody > tr > td.mx-label-cell,
#mabrexPageContent .table > thead > tr > th.mx-label-column,
#mabrexPageContent .table > tbody > tr > td.mx-label-cell,
.table th.mx-label-column,
.table td.mx-label-cell {
    width: 104px !important;
    min-width: 104px;
    max-width: 104px;
    text-align: center !important;
    white-space: nowrap;
}

.table th.mx-label-column,
#data-view .table > thead > tr > th.mx-label-column,
#mabrexPageContent .table > thead > tr > th.mx-label-column {
    text-align: center !important;
    padding-left: 8px !important;
    padding-right: 8px !important;
}

.table td.mx-label-cell {
    padding-left: 8px !important;
    padding-right: 8px !important;
}

.table td.mx-label-cell .label,
.table td.mx-label-cell .mx-label-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: max-content;
    min-width: 56px;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center;
    white-space: nowrap;
}

.table th,
.table td {
    vertical-align: middle !important;
}

.table td .btn,
.table td a {
    white-space: nowrap;
}

.table th.mx-actions-column,
.table td.mx-actions-column,
.table th:last-child.text-center,
.table td.mabrex-clickable-exclude {
    width: 1%;
    min-width: 74px;
    max-width: 130px;
    text-align: center !important;
    white-space: nowrap;
}

.table td.mabrex-clickable-exclude {
    padding-left: 8px !important;
    padding-right: 8px !important;
}

.table td.mabrex-clickable-exclude .mx-action-btn,
.table td.mabrex-clickable-exclude > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    min-width: 18px;
    height: 18px;
    min-height: 18px;
    max-height: 18px;
    margin: 0 2px !important;
    padding: 0 !important;
    font-size: 14px;
    line-height: 18px !important;
    vertical-align: middle;
}

.table td.mabrex-clickable-exclude > a.btn {
    border: 0;
    background: transparent;
    box-shadow: none;
}

.table td.mabrex-clickable-exclude i {
    line-height: 18px !important;
    vertical-align: middle;
}

.dataTables_wrapper,
.mx-filter-bar {
    max-width: 100%;
}

.mx-filter-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    padding: 16px !important;
    border-bottom: 1px solid #dfe6e8 !important;
    background: #f8fafb;
}

.mx-filter-bar:before,
.mx-filter-bar:after {
    display: none;
}

.mx-filter-bar > [class*="col-"] {
    float: none;
    width: auto;
    padding-left: 0;
    padding-right: 0;
}

.mx-filter-bar > .col-md-4:first-child {
    flex: 1 1 auto;
    min-width: 420px;
}

.mx-filter-bar > .col-md-4:nth-child(2) {
    flex: 0 1 auto;
}

.mx-filter-bar > .col-md-4:last-child {
    flex: 0 1 520px;
    margin-left: auto;
}

.mx-filter-bar .btn-toolbar {
    align-items: center;
    justify-content: flex-start;
    margin: 0;
}

.mx-filter-bar .btn-link.disabled,
.mx-filter-bar .btn-link[disabled] {
    color: #5794b0;
    opacity: 1;
    text-decoration: none;
}

.mx-filter-bar .btn-default {
    border-color: #d6e0e4;
    background: #fff;
    color: #34525a;
    box-shadow: none;
}

.mx-filter-bar .btn,
.mx-filter-bar .form-control,
.mx-filter-bar .input-group-btn .btn,
.mx-filter-bar .dropdown-menu > li > a {
    font-size: 14px;
    line-height: 1.35;
}

.mx-filter-bar .btn,
.mx-filter-bar .form-control {
    min-height: 36px;
}

.mx-filter-bar .btn-default:hover,
.mx-filter-bar .btn-default:focus {
    border-color: #8fb5bd;
    background: #f2f7f8;
}

.mx-filter-bar .btn-group {
    vertical-align: middle;
}

.mx-filter-bar .dropdown-menu {
    max-height: 280px;
    min-width: 160px;
    overflow-y: auto;
    border-color: #cfd9dd;
    border-radius: 4px;
    box-shadow: 0 10px 24px rgba(15, 42, 50, .16);
    z-index: 1050;
}

.mx-filter-bar .dropdown-menu > li > a {
    padding: 7px 14px;
    color: #24424a;
    white-space: nowrap;
}

.mx-filter-bar .dropdown-menu > li > a:hover,
.mx-filter-bar .dropdown-menu > li > a:focus {
    background: #edf5f6;
    color: #17363d;
}

.mx-filter-bar form {
    margin: 0;
}

.mx-filter-bar form .input-group {
    width: 100%;
}

.mx-filter-bar form .form-control {
    border-color: #cfd9dd;
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, .025);
}

.mx-filter-bar form .form-control:focus {
    border-color: #6daab3;
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, .025), 0 0 0 2px rgba(35, 127, 137, .08);
}

.mx-pager {
    display: flex;
    align-items: center;
    margin: 0 !important;
    padding: 12px 16px !important;
    border-top: 1px solid #dfe6e8 !important;
    background: #fbfcfd;
}

.mx-pager:before,
.mx-pager:after {
    display: none;
}

.mx-pager > [class*="col-"] {
    float: none;
    width: auto;
    padding-left: 0;
    padding-right: 0;
}

.mx-pager > [class*="col-"]:first-child {
    flex: 1 1 auto;
}

.mx-pager > [class*="col-"]:last-child {
    flex: 0 0 auto;
}

.mx-pager p {
    margin: 0;
    color: #75868d;
}

.mx-pager .pagination {
    margin: 0 !important;
}

.mx-pager .pagination > li > a,
.mx-pager .pagination > li > span {
    border-color: #d6e0e4;
    color: #2f6f85;
}

.mx-pager .pagination > .active > a,
.mx-pager .pagination > .active > span {
    border-color: #337ab7;
    background: #337ab7;
    color: #fff;
}

.btn-group-responsive {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.btn-group-responsive > .btn {
    float: none;
    margin-left: 0 !important;
    border-radius: 3px !important;
}

.nav-tabs {
    display: flex;
    flex-wrap: nowrap;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}

.nav-tabs > li {
    float: none;
    flex: 0 0 auto;
}

.btn-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-end;
}

.btn-toolbar .btn {
    margin: 0 !important;
}

.associated_section,
.profile_section {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.modal-header .close {
    min-width: 40px;
    min-height: 40px;
    line-height: 1;
}

@media (max-width: 991px) {
    body div.main {
        padding: 46px 8px 68px 8px !important;
    }

    #mabrexTopNavBar {
        left: 0;
        right: 0;
        margin-left: 0 !important;
        min-height: 44px;
        height: 44px;
        z-index: 1030;
    }

    #mabrexTopNavBar .nav,
    #mabrexTopNavBar .navbar-right {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        float: right !important;
        height: 44px;
        margin: 0;
        margin-right: 0;
    }

    #mabrexTopNavBar .navbar-right > li {
        float: none;
        height: 44px;
    }

    #mabrexTopNavBar .navbar-right > li > a {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 44px;
        padding: 7px 12px !important;
        margin-right: 0 !important;
    }

    #mabrexTopNavBar .dropdown-menu {
        position: fixed;
        top: 44px;
        right: 8px;
        left: auto;
        min-width: 185px;
        max-width: calc(100vw - 16px);
        margin-top: 0;
    }

    #mabrexTopNavBar .dropdown-menu > li > a {
        display: flex;
        align-items: center;
        gap: 6px;
        min-height: 38px;
        white-space: nowrap;
    }

    #mabrexLogoPlaceholderMobile {
        display: none !important;
    }

    #mabrexSideNavBarSmall {
        position: fixed !important;
        top: auto !important;
        right: 0;
        bottom: 0;
        left: 0;
        width: 100% !important;
        height: 58px !important;
        padding: 0 !important;
        z-index: 1040 !important;
        overflow: visible;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, .2);
    }

    #mabrexSideNavBarSmall .list-group {
        display: flex;
        height: 58px;
        margin: 0;
        overflow-x: auto;
        overflow-y: visible;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x proximity;
        scrollbar-width: thin;
    }

    #mabrexSideNavBarSmall .list-group-item {
        flex: 0 0 clamp(58px, 18vw, 72px);
        height: 58px;
        padding: 7px 0 4px 0 !important;
        border-radius: 0 !important;
        scroll-snap-align: start;
    }

    #mabrexSideNavBarSmall .list-group-item > a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 100%;
    }

    #mabrexSideNavBarSmall .mabrex-submenuSmall {
        position: fixed;
        left: 8px;
        right: 8px;
        bottom: 58px;
        max-height: min(48vh, 360px);
        padding: 8px 0;
        margin: 0;
        overflow-y: auto;
        background: #1f2427;
        border-radius: 6px 6px 0 0;
        box-shadow: 0 -8px 18px rgba(0, 0, 0, .25);
        -webkit-overflow-scrolling: touch;
    }

    #mabrexSideNavBarSmall .mabrex-submenuSmall li {
        display: block;
        list-style: none;
    }

    #mabrexSideNavBarSmall .mabrex-submenuSmall a {
        display: block;
        padding: 11px 14px;
        color: #fff;
        border-bottom: 1px solid rgba(255, 255, 255, .16);
        white-space: normal;
    }

    #mabrexSideNavBarSmall .mabrex-submenuSmall li.mx-current-submenu {
        background-color: rgba(196, 31, 43, .18);
    }

    .container-fluid {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .row {
        margin-left: -6px;
        margin-right: -6px;
    }

    [class*="col-xs-"],
    [class*="col-sm-"],
    [class*="col-md-"],
    [class*="col-lg-"] {
        padding-left: 6px;
        padding-right: 6px;
    }

    .panel {
        margin-bottom: 10px;
    }

    .panel-heading,
    .panel-body {
        padding-left: 10px;
        padding-right: 10px;
    }

    #mabrexPageContent .panel.panel-default > .panel-heading {
        padding: 11px 12px;
    }

    #mabrexPageContent .panel.panel-default > .panel-body {
        padding: 0;
    }

    #data-view {
        padding: 0 8px 10px;
    }

    .form-horizontal .control-label {
        padding-top: 0;
        margin-bottom: 4px;
        text-align: left;
    }

    .mx-filter-bar {
        display: block;
        padding: 10px !important;
    }

    .mx-filter-bar > [class*="col-"],
    .mx-filter-bar > .col-md-4:first-child,
    .mx-filter-bar > .col-md-4:nth-child(2),
    .mx-filter-bar > .col-md-4:last-child {
        width: 100%;
        min-width: 0;
        margin-left: 0;
        margin-bottom: 8px;
    }

    .dataTables_filter,
    .dataTables_length,
    .dataTables_info,
    .dataTables_paginate {
        float: none !important;
        margin: 8px 0 !important;
        text-align: left !important;
    }

    .dataTables_filter input,
    .mx-filter-bar input,
    .mx-filter-bar select {
        width: 100% !important;
        min-width: 0 !important;
        margin: 6px 0 0 0 !important;
    }

    .pagination,
    .dataTables_paginate {
        white-space: normal;
    }

    .pagination > li > a,
    .pagination > li > span,
    .dataTables_paginate a {
        min-width: 36px;
        min-height: 34px;
        text-align: center;
    }

    .mx-filter-bar .btn,
    .mx-filter-bar button {
        width: auto;
        margin-top: 6px;
    }

    .table-responsive .table {
        margin-bottom: 0;
    }

    .mx-pager {
        display: block;
        padding: 10px !important;
    }

    .mx-pager > [class*="col-"] {
        width: 100%;
        margin-bottom: 8px;
    }

    .mx-pager > [class*="col-"]:last-child {
        margin-bottom: 0;
    }

    .mx-pager .pagination {
        float: none !important;
    }

    .modal {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .modal-dialog,
    .mx-modal-form > .modal-dialog,
    .mx-modal-profile > .modal-dialog,
    .mx-modal-profile-form > .modal-dialog,
    .modal-fullscreen .modal-dialog {
        width: calc(100vw - 12px) !important;
        max-width: calc(100vw - 12px) !important;
        margin: 6px auto !important;
    }

    .modal-content {
        max-height: calc(100vh - 12px);
        display: flex;
        flex-direction: column;
    }

    .modal-header,
    .modal-footer {
        flex: 0 0 auto;
    }

    .modal-body {
        flex: 1 1 auto;
        max-height: calc(100vh - 132px);
        overflow: auto;
        -webkit-overflow-scrolling: touch;
    }
}

@media (max-width: 767px) {
    h1, .h1 { font-size: 24px; }
    h2, .h2 { font-size: 21px; }
    h3, .h3 { font-size: 18px; }
    h4, .h4 { font-size: 16px; }

    .btn {
        white-space: normal;
    }

    .panel-title {
        font-size: 15px;
        line-height: 1.35;
    }

    .modal-header {
        padding: 10px 12px;
    }

    .modal-title {
        padding-right: 38px;
        font-size: 16px;
        line-height: 1.35;
    }

    .modal-body {
        padding: 12px;
        max-height: calc(100vh - 120px);
    }

    .modal-footer {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        padding: 10px 12px;
        justify-content: stretch;
    }

    .modal-footer .btn {
        flex: 1 1 120px;
    }

    .table {
        font-size: 14px;
    }

    .table th,
    .table td {
        padding: 8px 8px !important;
    }

#data-view .table > thead > tr > th,
#mabrexPageContent .table > thead > tr > th {
        padding: 8px 8px !important;
        font-size: 13px;
    }

#data-view .table > tbody > tr > td,
#mabrexPageContent .table > tbody > tr > td {
        height: 38px;
        padding: 6px 8px !important;
        font-size: 13px;
        line-height: 1.2;
    }

.table td .label,
.table td .mx-label-pill {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin: 0;
    }

    .dataTables_info {
        font-size: 13px;
    }

    .dataTables_paginate {
        display: flex;
        flex-wrap: wrap;
        gap: 4px;
    }

    .mx-filter-bar {
        padding: 12px !important;
    }

    #mabrexPageContent > [ng-controller="formController"],
    #mabrexPageContent > .btn-group {
        margin-bottom: 8px;
    }

    #mabrexPageContent > [ng-controller="formController"] .btn,
    #mabrexPageContent > .btn-group .btn {
        width: 100%;
        min-height: 34px;
        padding: 7px 10px;
    }

    .mx-filter-bar .btn-toolbar {
        justify-content: flex-start;
        gap: 8px;
    }

    .mx-filter-bar .btn-toolbar > .btn-group:first-child {
        flex: 1 0 100%;
    }

    .mx-filter-bar .btn-toolbar > .btn-group:first-child .btn {
        padding-left: 0;
    }

    .mx-filter-bar .btn-group {
        margin-bottom: 0;
    }

    .mx-filter-bar .btn-group > .btn {
        min-height: 34px;
    }

    .mx-filter-bar form .input-group {
        display: flex;
        width: 100%;
    }

    .mx-filter-bar form .input-group .form-control {
        flex: 1 1 auto;
        width: 1%;
        height: 36px;
    }

    .mx-filter-bar form .input-group-btn {
        display: flex;
        width: auto;
    }

    .mx-filter-bar form .input-group-btn .btn {
        height: 36px;
        margin-top: 0;
        white-space: nowrap;
    }
}

@media (max-width: 420px) {
    .mx-filter-bar form .input-group-btn .btn[title="Search records"] {
        width: 42px;
        padding-left: 0;
        padding-right: 0;
        font-size: 0;
    }

    .mx-filter-bar form .input-group-btn .btn[title="Search records"] .fa {
        font-size: 14px;
    }
}

/* Global table alignment rules: label columns stay compact and centered on every viewport. */
#data-view .table > thead > tr > th.mx-label-column,
#data-view .table > tbody > tr > td.mx-label-cell,
#data-view .table > thead > tr > th.mx-label-column-header,
#data-view .table > tbody > tr > td.mx-label-column-cell,
#mabrexPageContent .table > thead > tr > th.mx-label-column,
#mabrexPageContent .table > tbody > tr > td.mx-label-cell,
#mabrexPageContent .table > thead > tr > th.mx-label-column-header,
#mabrexPageContent .table > tbody > tr > td.mx-label-column-cell,
.table > thead > tr > th.mx-label-column,
.table > tbody > tr > td.mx-label-cell,
.table > thead > tr > th.mx-label-column-header,
.table > tbody > tr > td.mx-label-column-cell {
    width: 1% !important;
    min-width: 0 !important;
    max-width: none !important;
    text-align: center !important;
    white-space: nowrap !important;
    word-break: keep-all !important;
    overflow-wrap: normal !important;
    padding-left: 8px !important;
    padding-right: 8px !important;
}

#data-view .table > thead > tr > th.mx-label-column .mx-label-heading,
#data-view .table > thead > tr > th.mx-label-column-header .mx-label-heading,
#mabrexPageContent .table > thead > tr > th.mx-label-column .mx-label-heading,
#mabrexPageContent .table > thead > tr > th.mx-label-column-header .mx-label-heading,
.table > thead > tr > th.mx-label-column .mx-label-heading {
    display: inline-block;
    width: max-content;
    min-width: 0;
    max-width: none;
    font-size: 14px !important;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
    word-break: keep-all;
    overflow-wrap: normal;
}

#data-view .table > thead > tr > th.mx-label-column,
#data-view .table > thead > tr > th.mx-label-column-header,
#mabrexPageContent .table > thead > tr > th.mx-label-column,
#mabrexPageContent .table > thead > tr > th.mx-label-column-header,
.table > thead > tr > th.mx-label-column,
.table > thead > tr > th.mx-label-column-header {
    font-size: 13px !important;
    line-height: 1.2 !important;
}

#data-view .table > tbody > tr > td.mx-label-cell .label,
#data-view .table > tbody > tr > td.mx-label-cell .mx-label-pill,
#data-view .table > tbody > tr > td.mx-label-column-cell .label,
#data-view .table > tbody > tr > td.mx-label-column-cell .mx-label-pill,
#mabrexPageContent .table > tbody > tr > td.mx-label-cell .label,
#mabrexPageContent .table > tbody > tr > td.mx-label-cell .mx-label-pill,
#mabrexPageContent .table > tbody > tr > td.mx-label-column-cell .label,
#mabrexPageContent .table > tbody > tr > td.mx-label-column-cell .mx-label-pill,
.table > tbody > tr > td.mx-label-cell .label,
.table > tbody > tr > td.mx-label-cell .mx-label-pill,
.table > tbody > tr > td.mx-label-column-cell .label,
.table > tbody > tr > td.mx-label-column-cell .mx-label-pill {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    height: 18px;
    max-height: 18px;
    width: max-content;
    min-width: 56px;
    padding: 0 7px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
    line-height: 18px !important;
    white-space: nowrap !important;
}

/* Request review content: responsive body only; shared modal chrome remains unchanged. */
.mx-request-review__body {
    padding: 14px !important;
    background: #ffffff;
}

.mx-request-review__content {
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
}

.mx-request-review__section {
    margin: 0;
}

.mx-request-review__section-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 4px;
    padding-bottom: 10px;
    border-bottom: 1px solid #dfe4e6;
}

.mx-request-review__section-heading h5 {
    margin: 0;
    color: #2f3437;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0;
}

.mx-request-review__labels {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
    min-width: 0;
}

.mx-request-review__status,
.mx-request-review__changed,
.mx-request-review__empty-value {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    width: max-content;
    max-width: 100%;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0;
}

.mx-request-review__status {
    padding: 5px 8px;
    background: #6c757d;
    color: #ffffff;
}

.mx-request-review__changed {
    margin-left: 6px;
    padding: 3px 6px;
    background: #fff0d8;
    color: #81570d;
}

.mx-request-review__empty-value {
    padding: 3px 7px;
    background: #eef0f2;
    color: #70777d;
}

.mx-request-review__facts {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    margin: 0;
}

.mx-request-review__fact {
    min-width: 0;
    padding: 10px 0;
    border-bottom: 1px solid #edf0f1;
}

.mx-request-review__fact dt,
.mx-request-review__fact dd {
    margin: 0;
    padding: 0;
}

.mx-request-review__fact dt {
    margin-bottom: 3px;
    color: #70777d;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: 0;
}

.mx-request-review__fact dd {
    color: #2f3437;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.mx-request-review__secondary-value {
    display: block;
    margin-top: 2px;
    color: #70777d;
    font-size: 12px;
    font-weight: 500;
}

.mx-request-review__notice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 14px 0 18px;
    padding: 12px;
    border-left: 3px solid #c41f2b;
    background: #faf3f4;
    color: #4d3134;
}

.mx-request-review__notice > .fa {
    flex: 0 0 auto;
    margin-top: 2px;
    color: #c41f2b;
    font-size: 16px;
}

.mx-request-review__notice strong {
    display: block;
    margin-bottom: 3px;
    color: #5e2027;
    font-size: 13px;
    font-weight: 700;
}

.mx-request-review__notice p {
    margin: 0;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.45;
}

.mx-request-review__decision {
    padding-top: 2px;
}

.mx-request-review__field {
    margin-top: 12px;
}

.mx-request-review__field > label,
.mx-request-review__field-label {
    display: block;
    margin-bottom: 6px;
    color: #3f474b;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
}

.mx-request-review__field .required {
    color: #c41f2b;
}

.mx-request-decision-options {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
}

.mx-request-decision-option {
    position: relative;
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    min-height: 44px;
    margin: 0;
    padding: 10px 12px;
    border: 1px solid #cbd2d5;
    border-radius: 4px;
    background: #ffffff;
    color: #3f474b;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: 0;
    transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}

.mx-request-decision-option:hover {
    border-color: #8d969b;
    background: #f7f8f9;
}

.mx-request-decision-option:focus-within {
    outline: 2px solid rgba(196, 31, 43, .2);
    outline-offset: 1px;
}

.mx-request-decision-option input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.mx-request-decision-option__icon {
    display: inline-flex;
    flex: 0 0 26px;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 3px;
    background: #eef0f2;
    color: #60686d;
}

.mx-request-decision-option--approve.is-selected {
    border-color: #347552;
    background: #347552;
    color: #ffffff;
}

.mx-request-decision-option--approve.is-selected .mx-request-decision-option__icon {
    background: rgba(255, 255, 255, .18);
    color: #ffffff;
}

.mx-request-decision-option--reject.is-selected {
    border-color: #c41f2b;
    background: #c41f2b;
    color: #ffffff;
}

.mx-request-decision-option--reject.is-selected .mx-request-decision-option__icon {
    background: rgba(255, 255, 255, .18);
    color: #ffffff;
}

.mx-request-review__field .form-control {
    width: 100%;
    min-height: 42px;
    border: 1px solid #cbd2d5;
    border-radius: 4px;
    color: #2f3437;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0;
    box-shadow: none;
}

.mx-request-review__field .form-control:focus {
    border-color: #981923;
    outline: 0;
    box-shadow: 0 0 0 2px rgba(196, 31, 43, .10);
}

.mx-request-review__field.has-error .form-control {
    border-color: #c41f2b;
}

.mx-request-review__field textarea.form-control {
    min-height: 104px;
    padding: 10px 12px;
    resize: vertical;
}

.mx-request-review__field-help {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-top: 6px;
    color: #70777d;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.35;
}

.mx-request-review__field.has-error .mx-request-review__field-help {
    color: #981923;
}

.mx-request-review__character-count {
    flex: 0 0 auto;
    white-space: nowrap;
}

@media (min-width: 600px) {
    .mx-request-review__body {
        padding: 20px !important;
    }

    .mx-request-review__facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 28px;
    }

    .mx-request-review__fact--wide {
        grid-column: 1 / -1;
    }

    .mx-request-decision-options {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 992px) {
    .mx-request-review__body {
        padding: 22px 24px !important;
    }
}
/* Request profile content only; shared modal chrome remains unchanged. */
.mx-request-profile__actions .profile-buttons-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
}

.mx-request-profile__actions .profile-buttons-group .btn {
    min-height: 36px;
    margin: 0 !important;
    padding: 8px 14px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
}

.mx-request-profile {
    width: 100%;
    overflow: hidden;
    border: 1px solid #dfe4e6;
    border-radius: 4px;
    background: #ffffff;
    color: #30373a;
}

.mx-request-profile__summary {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
    border-bottom: 1px solid #dfe4e6;
    background: #f7f8f9;
}

.mx-request-profile__summary-copy {
    min-width: 0;
}

.mx-request-profile__eyebrow {
    display: block;
    margin-bottom: 4px;
    color: #70777d;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: 0;
    text-transform: uppercase;
}

.mx-request-profile__summary h3 {
    margin: 0;
    color: #2f3437;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.mx-request-profile__summary p {
    margin: 5px 0 0;
    color: #60686d;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.35;
}

.mx-request-profile__labels {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-width: 0;
}

.mx-request-profile__status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 26px;
    padding: 5px 9px;
    border-radius: 3px;
    background: #6c757d;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
}


.mx-request-profile__group {
    padding: 14px;
}

.mx-request-profile__group + .mx-request-profile__group {
    border-top: 1px solid #dfe4e6;
}

.mx-request-profile__group > h4 {
    margin: 0 0 8px;
    color: #2f3437;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0;
}

.mx-request-profile__facts {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    margin: 0;
}

.mx-request-profile__fact {
    min-width: 0;
    padding: 10px 0;
    border-bottom: 1px solid #edf0f1;
}

.mx-request-profile__fact dt,
.mx-request-profile__fact dd {
    margin: 0;
}

.mx-request-profile__fact dt {
    margin-bottom: 3px;
    color: #70777d;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.3;
}

.mx-request-profile__fact dd {
    color: #30373a;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

@media (min-width: 600px) {
    .mx-request-profile__summary {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 16px 18px;
    }

    .mx-request-profile__group {
        padding: 16px 18px;
    }

    .mx-request-profile__facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 28px;
    }

    .mx-request-profile__fact--wide {
        grid-column: 1 / -1;
    }
}

/* Shared profile tabs: the active tab opens into the content area without a bottom rule. */
[ng-controller=profileController] > .modal-body > div:first-child {
    margin-bottom: 0 !important;
    border-bottom: 0 !important;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}

[ng-controller=profileController] > .modal-body > div:first-child > .nav-tabs {
    align-items: flex-end;
    margin: 0;
    overflow: visible !important;
    border-bottom: 1px solid #dddddd !important;
    background: #ffffff !important;
}

[ng-controller=profileController] > .modal-body > div:first-child > .nav-tabs > li {
    margin-bottom: -1px;
}

[ng-controller=profileController] > .modal-body > div:first-child > .nav-tabs > li > a {
    margin-right: 2px;
    padding: 10px 15px !important;
    border: 1px solid transparent !important;
    border-radius: 4px 4px 0 0;
    background: transparent !important;
    color: #555555 !important;
    line-height: 20px;
}

[ng-controller=profileController] > .modal-body > div:first-child > .nav-tabs > li:not(.active) > a:hover,
[ng-controller=profileController] > .modal-body > div:first-child > .nav-tabs > li:not(.active) > a:focus {
    border-color: #eeeeee #eeeeee #dddddd !important;
    background: #eeeeee !important;
    color: #333333 !important;
}

[ng-controller=profileController] > .modal-body > div:first-child > .nav-tabs > li.active > a,
[ng-controller=profileController] > .modal-body > div:first-child > .nav-tabs > li.active > a:hover,
[ng-controller=profileController] > .modal-body > div:first-child > .nav-tabs > li.active > a:focus {
    position: relative;
    z-index: 1;
    border: 1px solid #dddddd !important;
    border-bottom-color: #ffffff !important;
    background: #ffffff !important;
    color: #555555 !important;
    cursor: default;
}
