
.dark-red-text {
    color: darkred;
}

.dark-red-text--bold {
    color: darkred;
    font-weight: bold;
}

.form-alert.alert-danger, .form-alert.alert-warning {
    padding: 1em;
    text-align: center;
    font-weight: bold;
    margin-bottom: 1em;
    -webkit-border-radius:5px;
    -moz-border-radius:5px;
    border-radius:5px;
    font-size: 1.5em;
}

.form-alert.alert-danger {
    border: 2px solid darkred;
}

.form-alert.alert-warning {
    border: 2px solid darkgoldenrod;
}

.outlined-form {
    padding: 1rem !important;
    border: 1px solid silver;
    border-radius: 5px;
}

.outlined-form-area {
    padding: 0 1rem !important;
    border: 1px solid silver;
    border-radius: 5px;
}

.outlined-form-area-heading {
    margin-top: 1rem;
    font-weight: bold;
}
/*
.jdi-date,
.jdi-datetime {
    background: #fff;
    padding: 0.5rem;
    border: 1px solid silver;
    border-radius: 5px;
}

.jdi-date + .gj-icon,
.jdi-datetime + .gj-icon {
    top: 6px;
    right: 5px;
}

.has-errors.jdi-date,
.has-errors.jdi-datetime,
.is-invalid .jdi-select {
    border-color: darkred;
}

.gj-datepicker {
    margin-right: 0.5rem;
}
*/
textarea.form-control {
    height: 200px;
}

.form-alert.alert-danger .col-auto {
    align-self: center;
}

.form-alert.alert-danger .glyphicons,
.form-alert.alert-warning .glyphicons {
    font-size: 1.5em;
    margin-right: 0.5rem;
}

.form-styles-auto,
.form-styles-auto + .select2,
.input-group .form-styles-auto {
    width: auto;
}

.form-styles-small,
.form-styles-small + .select2,
.input-group .form-styles-small {
    width: 80px;
}

.form-styles-medium,
.form-styles-medium + .select2,
.input-group .form-styles-medium {
    width: 200px;
}

.form-styles-large,
.form-styles-large + .select2,
.input-group .form-styles-large {
    width: 450px;
}

.form-styles-large-max,
.form-styles-large-max + .select2,
.input-group .form-styles-max {
    max-width: 450px;
}

.form-styles-huge,
.form-styles-huge + .select2,
.input-group .form-styles-huge {
    width: 650px;
}

.form-styles-wide,
.form-styles-wide + .select2,
.input-group .form-styles-wide {
    width: 100%;
}

.input-group .form-styles-small,
.input-group .form-styles-medium,
.input-group .form-styles-large,
.input-group .form-styles-wide,
.input-group .form-styles-huge{
    flex: 0 1 auto;
}

.form-styles-small + .select2-container,
.form-styles-medium + .select2-container,
.form-styles-large + .select2-container,
.form-styles-wide + .select2-container,
.form-styles-huge + .select2-container {
    display: block !important;
}

/*
 * Custom Radio controls
*/

.custom-radio {
    font-weight:normal;
}

[type="radio"]:not(.jdi-radio):checked,
[type="radio"]:not(.jdi-radio):not(:checked) {
    position: absolute;
    left: -9999px;
}

[type="radio"]:not(.jdi-radio):checked + .custom-radio-button
{
    color: #fff;
    background-color: #0062cc;
    border-color: #005cbf;
}

.custom-radio-button {
    font-weight:normal;
    font-size: 2rem;
    border-radius: 10px;
    cursor: pointer;
}

.person-statistic__row {
    margin-bottom: 1rem;
}

.person-statistic__row h2 {
    font-weight: bold;
    font-size: 1.6rem;
}

.person-statistic__row h3 {
    font-size: 1.4rem;
}

.person-statistic__row__numbers--green {
    color: darkgreen;
}

.person-statistic__row__numbers--blue {
    color: darkblue;
}

.person-statistic__row__numbers--thicc {
    font-weight: bold;
}

.person-statistic__row__text--red {
    font-weight: bold;
    color: darkred;
}

.person-organisation-layout-left {
    margin-right: 1rem;
}

.person-organisation-layout-right {
    margin-bottom: 0.7rem;
}

.progress-wrapper {
    padding-bottom: 1rem;
    border-bottom: 1px solid silver;
    margin-bottom: 1rem;
}

.progress-wrapper .progress {
    height: auto;
}

.progress-text {
    margin-bottom: 1rem;
}

.custom-form-outline {
    border: 1px solid silver;
    border-radius: 5px;
    padding: 1rem !important;
    background: white;
}

.custom-form-finalise #form_submit,
#btn_finalise {
    font-size: 3rem;
}

.btn-link {
    border: 0;
    background: transparent;
}

a.btn-link:hover,
a.btn-link:focus {
    border: 0;
    background: transparent;
    font-weight: normal;
}

.custom-form__page-tabs {
    margin-bottom: 1rem;
    list-style: none;
    padding: 0;
    display: none;
}

.custom-form__page-tabs li {
    color: #444;
}

.custom-form__page-tabs li .active {
    font-weight: bold;
    color: black !important;
}

#custom-form__page-control {
    color: #444;
    cursor: pointer;
}

.noselect {
    -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
    -khtml-user-select: none; /* Konqueror HTML */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* Internet Explorer/Edge */
    user-select: none; /* Non-prefixed version, currently supported by Chrome and Opera */
}

.address-search {
    display: none;
}

.address-search .select2-selection {
    border: 1px solid #ced4da !important;
    height: calc(1.5em + 0.75rem + 2px) !important;
    padding: 0.375rem 0.75rem !important;
    font-size: 1rem;
}

/* Ensure empty options are as tall as other options */
.select2-container--bootstrap-5 .select2-dropdown .select2-results__options .select2-results__option:empty {
    height: 2.25em;
}

.address-search .select2-selection__placeholder {
    color: #666 !important;
}

.redactable-text .redacted-text input,
.redactable-text .redacted-text textarea {
    border: 1px dashed black;
}

.custom-form-help-icon {
    width: 32px;
    height: 32px;
    margin-right: 0.25rem;
    cursor: pointer;
}

.custom-form-help-text {
    margin-top: -0.8rem;
    margin-bottom: 1rem;
}

.element-name-display {
    font-size: 0.9rem;
    color: gray;
    margin-top: 0.5rem;
}

.oc2-options .form-group {
    margin-bottom: 0;
}

.smiley-label {
    display: inline-block !important;
}

.smiley-label img {
    line-height: 1;
    text-transform: none;
    letter-spacing: normal;
    word-wrap: normal;
    white-space: nowrap;
    width: 48px;
    filter: invert(47%) sepia(62%) saturate(8%) hue-rotate(351deg) brightness(100%) contrast(101%);
}

.smiley-option {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.smiley-option + img {
    cursor: pointer;
}

.smiley-option:checked + img {
    filter: invert(0%) sepia(0%) saturate(0%) hue-rotate(316deg) brightness(99%) contrast(100%);
}

.closed-document-preview-message p {
    color: darkred;
    font-weight: bold;
}

/* Removed as this field is now at the bottom of the form*/
/*.person-search-any-organisation {
    text-align: right;
    margin-bottom: 3.4rem;
}*/
.specialist-report label {
    font-weight: bold;
}

.required-help-asterisk {
    color: darkred;
    content: ' *';
    font-weight: bold;
    font-size: 1.2rem;
}

.required-help {
    font-size: 13px;
    padding: 0.5em 0;
}

.error.help-block {
    color: darkred;
}

.custom-object-support,
.custom-comment {
    display: none;
}

.server-error {
    display: block;
    margin-bottom: 0.5rem;
}

.form-control.is-invalid {
    border: 1px solid #8E92A9;
    background-image: none;
}

.form-control.resizable-field {
    resize: both;
}

img.aria-icon {
    width: 21px;
    height: 21px;
    filter: var(--jdi-svg-white);
}
