:root {
    --bs-primary: #2f8f55;
    --bs-primary-rgb: 47, 143, 85;
    --bs-link-color: #246b40;
    --bs-link-hover-color: #1b5432;
    --zr-primary: #2f8f55;
    --zr-primary-hover: #267445;
    --zr-primary-active: #1f6139;
    --zr-primary-soft: rgba(47, 143, 85, 0.14);
    --zr-primary-ring: rgba(47, 143, 85, 0.28);
}

a {
    color: var(--bs-link-color);
}

a:hover {
    color: var(--bs-link-hover-color);
}

.btn-primary {
    background-color: var(--zr-primary);
    border-color: var(--zr-primary);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-check:focus + .btn-primary {
    background-color: var(--zr-primary-hover);
    border-color: var(--zr-primary-hover);
}

.btn-primary:active,
.btn-primary.active,
.show > .btn-primary.dropdown-toggle {
    background-color: var(--zr-primary-active);
    border-color: var(--zr-primary-active);
}

.btn-outline-primary {
    color: var(--zr-primary);
    border-color: var(--zr-primary);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active,
.btn-outline-primary.active {
    color: #fff;
    background-color: var(--zr-primary);
    border-color: var(--zr-primary);
}

.bg-primary.bg-soft {
    background-color: var(--zr-primary-soft) !important;
}

.alert-primary {
    color: #1f6139;
    background-color: #e7f4ec;
    border-color: #cfe6d8;
}

.alert-primary .alert-link {
    color: #184c2d;
}

.progress-bar,
.nav-pills .nav-link.active,
.nav-pills .show > .nav-link,
.page-item.active .page-link,
.list-group-item.active {
    background-color: var(--zr-primary);
    border-color: var(--zr-primary);
}

.page-link:hover,
.page-link:focus {
    color: var(--zr-primary-hover);
    box-shadow: 0 0 0 0.15rem var(--zr-primary-ring);
}

.form-check-primary .form-check-input:checked,
.form-radio-primary .form-check-input:checked,
.form-radio-primary .form-check-input:checked:after {
    background-color: var(--zr-primary);
    border-color: var(--zr-primary);
}

.mm-active,
.mm-active > a,
.mm-active > a i,
.mm-active .active,
.mm-active .active i,
.mm-active > i {
    color: var(--zr-primary) !important;
}

.navbar-brand-box {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.navbar-brand-box .logo {
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.navbar-brand-box .logo-lg img {
    max-height: 62px !important;
    width: auto;
}

.navbar-brand-box .logo-sm img {
    height: 40px;
    width: auto;
}

.login-logo-wrap {
    background: transparent;
}

.login-logo {
    display: inline-block;
    max-width: 100%;
    max-height: 120px;
    width: auto;
    height: auto;
    background: transparent;
    object-fit: contain;
}

.navbar-brand-box .logo img {
    background: transparent;
    object-fit: contain;
}

.picture-preview {
    height: 12rem;
    padding: 1rem;
    border: 2px dashed #ced4da;
    border-radius: 6px;
    text-align: center;
    position: relative;
}

.picture-preview i.picture-preview-placeholder {
    margin-top: 1.75rem;
}

.picture-preview input[type="file"] {
    opacity: 0;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.picture-preview img {
    height: auto;
    width: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    padding: 1rem;
}

.picture-preview img[src=""] {
    display: none;
}

.picture-preview img[src*=":"] ~ .picture-preview-placeholder,
.picture-preview img[src*="."] ~ .picture-preview-placeholder {
    display: none;
}

.top-20 {
    top: 20px !important;
}

.border-dashed-round {
    border: 1px dashed #cbcbcb;
    border-radius: .25rem;
}

.custom-file-button input[type="file"] {
    margin-left: -2px !important;
}
.custom-file-button input[type="file"]::-webkit-file-upload-button {
    display: none;
}
.custom-file-button input[type="file"]::file-selector-button {
    display: none;
}
.custom-file-button:hover label {
    background-color: #dde0e3;
    cursor: pointer;
}

dl.table {
    display: table;
    border-collapse: collapse;
    margin-bottom: 0;
}

dl.table > div {
    display: table-row;
}

dl.table dt,
dl.table dd {
    display: table-cell;
    padding: .25em 1em;
}

dl.table dt {
    width: 8em;
}

.btn .fa,.btn .fas, .btn .far{
    pointer-events:none;
}

.actions ul li {
    padding-bottom: 20px;
}

#referralRA-form-p-2 legend {
    font-size: 13px;
    font-weight: 500;
}

.dropdown-insert-container {
    height: 30px;
    padding-top: 5px;
}
.dropdown-insert-button {
    cursor: pointer;
    margin-left: auto;
    margin-bottom: 5px;
    padding: 6px;
    height: 20px;
    display: block;
    width: 10rem;
    margin-right: auto;
}
    .dropdown-insert-button:hover {
        background-color: rgba(85, 110, 230, .80);
        color: white;
    }
