.modal-close-img img {
    width: 12px;
}

.modalTitle {
    font-weight: bold;
}

.modalFixedWidthInput {
    width: 160px;
}

.modalLoading {
    margin: -3px 0;
    vertical-align: middle;
}

/* Background Fade */

.rf-pp-shade {
    background-color: rgba(0, 0, 0, 0.25);
    opacity: 1;
    filter: none;
}

/* Fake Shadow */

.rf-pp-shdw {
    display: none;
}

/* Outer Container */

.rf-pp-cntr,
.rf-pp-cnt-scrlr {
    height: auto !important;
}

.rf-pp-cntr {
    margin-top: -60px;
    background: transparent;
    border-radius: 4px;
    overflow: hidden;
    border: none;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

/* Header */

.rf-pp-hdr {
    padding: 0;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
    background: #2d7e98;
}
.rf-pp-hdr-cnt {
    font-size: 1.2rem;
    font-weight: normal;
    color: #fff;
    padding: 8px 10px; /* To look like a full 10px border since text already has a space of few pixels above and below. */
}

/* Body */

.rf-pp-cnt-scrlr {
    padding: 0;
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
    background: #fff;
}

.rf-pp-cnt {
    padding: 0;
}

.str-pp-cnt-body,
.str-pp-cnt-section {
    display: flex;
    flex-direction: column;
}

.str-pp-cnt-section.horizontal {
    flex-direction: row;
}

.str-pp-cnt-body {
    padding: 10px;
}

.modalDerivation .help-link {
    right: 9px;
    top: 6px;
    position: absolute;
}

/* Section */

.str-pp-cnt-section {
    margin-bottom: 10px;
    margin-right: 0;
}

.str-pp-cnt-section:last-child {
    margin-bottom: 0;
}

.str-pp-cnt-section.spaceAbove {
    margin-top: 10px;
}

.str-pp-cnt-section.spaceRight {
    margin-right: 10px;
}

.str-pp-cnt-section.noSpace {
    margin: 0;
}

.str-table-section > td {
    padding-bottom: 10px;
    padding-right: 6px;
}

.str-table-section:last-child > td {
    padding-bottom: 0;
}

.str-table-section > td:last-child {
    padding-right: 0;
}

.str-table-section .min {
    width: 1px;
    white-space: nowrap;
}

.str-table-section .max,
.str-table-section .max > * {
    width: 100%;
}

.str-pp-cnt-section > * {
    box-sizing: border-box;
    margin-bottom: 6px;
    vertical-align: middle;
}

.str-pp-cnt-section.top > * {
    vertical-align: top;
}

.str-pp-cnt-section > span,
.str-pp-cnt-section > label {
    display: block;
}

.str-pp-cnt-section > *:last-child {
    margin-bottom: 0;
}

.str-pp-cnt-section.horizontal > * {
    margin-right: 6px;
    margin-bottom: 0;
}

.str-pp-cnt-section.horizontal > .str-pp-cnt-section {
    margin-right: 10px;
}

.str-pp-cnt-section.horizontal > *:last-child {
    margin-right: 0;
}

.str-pp-cnt-section.divider {
    display: block;
    border-top: 1px solid #eee;
}

/* Footer */

.str-pp-cnt-footer {
    background: #f6f8fc;
    border-top: 1px solid #edf2f8;
    padding: 9px 10px 10px;
    overflow: auto;
}

.str-pp-cnt-footer > .modalButtons {
    float: right;
}

.str-pp-cnt-footer > .modalButtons > * {
    margin-left: 6px;
}

/* Other */

.moveLists {
    display: table;
}

.moveLists .sideColumn,
.moveLists .midColumn {
    display: table-cell;
    vertical-align: top;
}

.moveLists.middle .sideColumn,
.moveLists.middle .midColumn {
    vertical-align: middle;
}

.moveLists .midColumn {
    width: 100%;
    text-align: center;
}

.modalTable {
    width: fit-content;
    border-spacing: 0;
}

.modalTable.input,
td {
    padding-right: 6px;
}

.modalTable.input,
td:last-child {
    padding-right: 0;
}

/* Validation Errors */

.str-message-section > * {
    margin-top: 10px;
}

.modalTooltips {
    display: block;
    position: relative;
    height: 0;
    margin: 0;
}

.modalTooltips > * {
    display: block;
    position: absolute;
    bottom: 0;
    left: -50px;
    right: -50px;
    margin-bottom: 8px;
    text-align: center;
}

.modalTooltip {
    display: inline-block;
    z-index: 999;
    min-height: 14px;
    max-width: 280px;
    text-align: center;
    color: #fff;
    border-radius: 6px;
    padding: 5px 12px;
    background: #d54848;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.modalTooltip:after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -8px;
    width: 0;
    height: 0;
    border-top: 8px solid #d54848;
    border-right: 8px solid transparent;
    border-left: 8px solid transparent;
}

/* ======== Specific modal styling ======== */

/* Populate Progress */

.progressPanel .str-pp-cnt-footer {
    padding: 7px 10px;
    text-align: center;
}

.progressPanel .str-pp-cnt-footer > .activeButton,
.progressPanel .str-pp-cnt-footer > .inactiveButton {
    float: none;
    margin: 0 3px;
}

/* Save Tables / Recodes */

.modalSave .treeContainer {
    height: 160px;
}

.modalSave .rf-pp-cnt {
    width: 400px;
}

/* Ranges */

.modalRanges sup {
    font-size: 0.82rem;
}

.modalRanges .rf-pp-cnt {
    width: 600px;
}

.modalRanges .sw2TableList.ranges {
    min-height: 122px;
    max-height: 234px;
}

.modalRanges .modalTable input {
    width: 140px;
}

.modalRanges .quantileResultsContainer,
.modalRanges .treeContainer {
    width: 260px;
    height: 160px;
    overflow: auto;
}

.modalRanges .quantileResultsContainer {
    width: 285px;
}

.modalRanges .moveButton {
    word-break: break-all;
    white-space: normal;
    margin: 6px;
}

/* Delete Range */

.modalDeleteRanges .rf-pp-cnt {
    width: 400px;
}

.modalDeleteRanges .str-pp-cnt-section.table {
    height: 100px;
    overflow: auto;
}

.modalDeleteRanges .sw2Table td,
.modalDeleteRanges .sw2Table th {
    width: 50%;
}

/* Large Table Mode */

.largeTableModePanel input[type="checkbox"] {
    margin-right: 4px;
}

/* Derivations */

.modalDerivation .str-pp-cnt-body {
    width: 630px;
    box-sizing: content-box;
}

.modalDerivation .rf-pp-cnt-scrlr {
    overflow: visible;
}

.derivationPosition,
.modalDerivation .leftSection {
    width: 260px;
}

.modalDerivation .rightSection {
    width: 360px;
}

.derivationNumberInput {
    width: 120px;
}

.derivationFormula,
.derivationFieldValues {
    overflow: auto;
    height: 150px;
    width: 100%;
    margin-bottom: 6px;
}

.derivationFormula {
    font-family: monospace;
    font-size: 1.2rem;
    padding: 6px;
}

.derivationSeparatorsMessage {
    color: #666;
}

.derivationFieldValues option {
    padding: 2px 5px;
}

.derivationFunctionsList {
    padding: 3px 2px;
}

/* Bulk Selection */

.bulkSelection .rf-pp-cnt {
    width: 400px;
}

.bulkSelection .sw2TableList {
    height: 290px;
}

.bulkSelection .sw2Pagination {
    text-align: center;
}

/* Duty of Care */

.dutyOfCare .rf-pp-cnt {
    width: 400px;
}
