/* Regular */
@font-face {
    font-family: 'Poppins';
    src: url('/fonts/poppins/Poppins-Regular.ttf');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* Regular Italic */
@font-face {
    font-family: 'Poppins';
    src: url('/fonts/poppins/Poppins-Italic.ttf');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

/* Medium */
@font-face {
    font-family: 'Poppins';
    src: url('/fonts/poppins/Poppins-Medium.ttf');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

/* Medium Italic */
@font-face {
    font-family: 'Poppins';
    src: url('/fonts/poppins/Poppins-MediumItalic.ttf');
    font-weight: 500;
    font-style: italic;
    font-display: swap;
}

/* SemiBold */
@font-face {
    font-family: 'Poppins';
    src: url('/fonts/poppins/Poppins-SemiBold.ttf');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

/* SemiBold Italic */
@font-face {
    font-family: 'Poppins';
    src: url('/fonts/poppins/Poppins-SemiBoldItalic.ttf');
    font-weight: 600;
    font-style: italic;
    font-display: swap;
}

/* Bold */
@font-face {
    font-family: 'Poppins';
    src: url('/fonts/poppins/Poppins-Bold.ttf');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* Bold Italic */
@font-face {
    font-family: 'Poppins';
    src: url('/fonts/poppins/Poppins-BoldItalic.ttf');
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}

/* Regular */
@font-face {
    font-family: 'Raleway';
    src: url('/fonts/raleway/Raleway-Regular.ttf');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* Regular Italic */
@font-face {
    font-family: 'Raleway';
    src: url('/fonts/raleway/Raleway-Italic.ttf');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

/* Medium */
@font-face {
    font-family: 'Raleway';
    src: url('/fonts/raleway/Raleway-Medium.ttf');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

/* Medium Italic */
@font-face {
    font-family: 'Raleway';
    src: url('/fonts/raleway/Raleway-MediumItalic.ttf');
    font-weight: 500;
    font-style: italic;
    font-display: swap;
}

/* SemiBold */
@font-face {
    font-family: 'Raleway';
    src: url('/fonts/raleway/Raleway-SemiBold.ttf');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

/* SemiBold Italic */
@font-face {
    font-family: 'Raleway';
    src: url('/fonts/raleway/Raleway-SemiBoldItalic.ttf');
    font-weight: 600;
    font-style: italic;
    font-display: swap;
}

/* Bold */
@font-face {
    font-family: 'Raleway';
    src: url('/fonts/raleway/Raleway-Bold.ttf');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* Bold Italic */
@font-face {
    font-family: 'Raleway';
    src: url('/fonts/raleway/Raleway-BoldItalic.ttf');
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}


/* The switch - the box around the slider */
.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

/* Hide default HTML checkbox */
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

/* The slider */
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
}

input:disabled + .slider:before {
    background-color: #ddd;
}

input:checked + .slider {
    background-color: #BF1E2E;
}

input:focus + .slider {
    box-shadow: 0 0 1px #BF1E2E;
}

input:checked + .slider:before {
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
}

/* Rounded sliders */
.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

main > .container {
    padding: 0 5px 20px;
}

.footer {
    background-color: #f5f5f5;
    font-size: .9em;
    height: 60px;
}

.footer > .container {
    padding-right: 15px;
    padding-left: 15px;
}

.not-set {
    color: #c55;
    font-style: italic;
}

/* add sorting icons to gridview sort links */
a.asc:after, a.desc:after {
    content: '';
    left: 3px;
    display: inline-block;
    width: 0;
    height: 0;
    border: solid 5px transparent;
    margin: 4px 4px 2px 4px;
    background: transparent;
}

a.asc:after {
    border-bottom: solid 7px #212529;
    border-top-width: 0;
}

a.desc:after {
    border-top: solid 7px #212529;
    border-bottom-width: 0;
}

.grid-view th {
    white-space: nowrap;
}

.hint-block {
    display: block;
    margin-top: 5px;
    color: #999;
}

.error-summary {
    color: #a94442;
    background: #fdf7f7;
    border-left: 3px solid #eed3d7;
    padding: 10px 20px;
    margin: 0 0 15px 0;
}

@media(max-width:767px) {
    .nav li > form > button.logout {
        display:block;
        text-align: left;
        width: 100%;
        padding: 10px 0;
    }
}

a.nav-link.active {
    /*border-bottom: 1px solid #999;*/
}

.nav > li > form > button.logout:focus {
    outline: none;
}

.form-group {
    margin-bottom: 1rem;
}

.hidden {
    display: none !important;
}

.form-check-input:checked {
    background-color: #BF1E2E;
    border-color: #a20000;
}

.form-check-input:focus {
    box-shadow: 0 0 0 0.25rem rgba(121, 13, 253, 0.25);
}

.form-control:focus {
    border-color: #ff3232;
    box-shadow: 0 0 0 0.25rem rgba(253, 13, 13, 0.25);
}

.btn {
    background-color: #ffffff !important;
    border-color: #b00000 !important;
    color: #BF1E2E;
}

.btn:hover, .btn:active, .btn:focus-visible {
    background-color: #BF1E2E !important;
    border-color: #b90000 !important;
    color: #ffffff;
}

.btn:disabled {
    border-color: #8f0000;
    background-color: #cccccc !important;
    color: #BF1E2E;
}

.bg-dark {
    background-color: #a6a6a6 !important;
}

.mv-900 {
    max-width: 900px;
}

.site-login {
    font-family: Raleway, Arial, Helvetica, sans-serif;
    font-size: 1.25em;
}

.navbar-expand-lg .navbar-collapse {
    justify-content: flex-end;
}

.nav .btn {
    border-radius: 0;
}

.navbar .btn {
    background-color: transparent !important;
    text-decoration: none;
}

.navbar .nav-link {
    padding: 3px 10px;
    margin: 4px 0;
}

.navbar .nav-link:hover {
    color: rgb(191 30 46)
}

.navbar-toggler:focus {
    box-shadow: 0 0 7px -3px !important;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28191, 30, 46, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e")
}

.navbar {
    font-family: Raleway, Arial, Helvetica, sans-serif;
    font-size:1em;
    box-shadow: 0 8px 9px -10px;
}

.navbar-brand {
    font-size: 1.5em;
    padding: 0;
    height: 45px;
    display: flex;
    align-items: center;
}

.navbar-brand .brand-logo {
    height: 45px;
}

.navbar-brand .brand-page {
    color: rgb(191 30 46);
}

.navbar-brand .brand-wrapper {
    vertical-align: middle;
    display:inline-block;
    padding-left: 20px;
    padding-top: 6px;
}

#request_loader {
    position: absolute;
    bottom: 0;
    height: 3px;
    width: 100%;
    background: linear-gradient(135deg,
    hsl(250, 100%, 40%) var(--wave),
    hsl(210, 100%, 50%) var(--wave-2),
    hsl(250, 100%, 40%) var(--wave-3));
    animation: waves 2s infinite;
    animation-timing-function: linear;
    display: none;
}

#main {
    padding-top: 40px;
}

@media (max-width: 991px) {
    .navbar-brand .brand-wrapper {
        display: flex;
        align-content: flex-start;
        align-items: flex-start;
        flex-wrap: nowrap;
        justify-content: center;
        flex-direction: column;
        height: 100%;
    }

    .navbar-brand span {
        height: 30px;
    }

    .navbar-brand span.brand-spacer {
        display: none;
    }

    .navbar-brand span.brand-page {
        font-size: 16px;
        padding-left: 0;
    }

    .navbar .navbar-nav {
        margin-top: 10px;
        border-top: 1px solid #e5e5e5;
    }
}

@media (min-width: 992px) {
    .navbar-brand span.brand-page, .navbar-brand span.brand-spacer {
        font-size: 20px;
        padding-left: 10px;
    }
}

.site-login {
    padding: 0 20px;
}

.site-login .login-text-wrapper {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.site-login .login-text-wrapper p {
    margin-bottom: 0;
}

.site-login .mts_logo_login {
    height: 100px;
    margin-right: 30px;
}

.site-login .mts_logo_login img {
    height: 100%;
}

.navbar .menu-spacer {
    border-right: 1px solid #a8a8a8;
    border-bottom: 1px solid #a8a8a8;
    margin:8px;
}

.login-buttons {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.field-loginform-rememberme {
    margin-left: 20px;
}

.site-settings {
    padding: 0 20px;
}

.site-settings .form-group {
    display: flex;
    align-items: center;
    font-family: Raleway, Arial, Helvetica, sans-serif;
    justify-content: space-between;
    font-size: 20px;
}

/* -------------------------------------------------------------------------------------- */

#templates {
    display: none;
}

.modal-window-wrapper {
    background-color: rgba(0, 0, 0, 0.2);
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 1031;
    display:flex;
    align-items: center;
    justify-content: center;
}

.modal-wrapper {
    background-color: #f7f7f7;
    max-width: 600px;
    max-height: 80%;
    width: 80%;
    box-shadow: 0 0 10px 0;
    border-radius: 10px;
    padding: 10px;
}

.modal-title-wrapper {
    font-family: Raleway, Arial, Helvetica, sans-serif;
    height:30px;
    display:flex;
    font-size: 24px;
    margin-bottom: 5px;
    position: relative;
    align-items: center;
}

.modal-title-wrapper .title-action {
    font-family: Raleway, Arial, Helvetica, sans-serif;
    font-weight: bold;
    font-size: 16px;
}

.modal-close {
    width: 20px;
    height: 20px;
    position: absolute;
    right: 5px;
    background-image: url(/images/close_modal.png);
    background-size: 20px 20px;
    background-repeat: no-repeat;
    filter: drop-shadow(0px 0px 1px rgba(0, 0, 0, 0.3));
    cursor:pointer;
}

.modal-title-spacer {
    background: linear-gradient(135deg,
    hsl(46, 100%, 40%) var(--wave),
    hsl(52, 100%, 50%) var(--wave-2),
    hsl(46, 100%, 40%) var(--wave-3));
    height: 3px;
    animation: waves 2s infinite;
    animation-timing-function: linear;
    box-shadow: inset 0px -1px 2px 0px rgba(0, 0, 0, 0.5), inset 0px 1px 2px 0px rgba(255, 255, 255, 0.5);
}

.modal-icon {
    height:100%;
    margin-right: 10px;
}

.modal-icon img {
    height:100%;
    vertical-align: top;
}

.modal-inner-content {
    margin: 10px 4px;
    font-family: LatoRegular, sans-serif;
    font-weight: bold;
    padding:0 10px;
}

.modal-inner-content .form-group {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-inner-content .form-group .form-control {
    /*margin-left: 20px;*/
}

.modal-buttons {
    margin-top: 9px;
    display:flex;
    justify-content: center;
}

.modal-button {
    display: inline-flex;
    align-content: center;
    align-items: center;
    height: 36px;
    box-sizing: border-box;
    border-radius: 35px;
    padding-left: 16px;
    box-shadow: 0 0 4px 0;
    cursor: pointer;
}

.modal-button.accept {
    color: #329500;
}

.modal-button-text {
    font-family: 'LatoRegular', sans-serif;
    font-weight: bold;
}

#main-wrapper {
    max-width: 600px;
}

#main-wrapper > .view-spacer {
    height: 2px;
    background-color: #bf8400;
}

#main-wrapper > .task-section-wrapper {
    margin: 30px 0;
}

#main-wrapper.container {
    max-width: 600px;
}

@keyframes glow {
    0% {
        background-position: 0 0;
    }

    50% {
        background-position: 100% 0;
    }

    100% {
        background-position: 0 0;
    }
}

@property --wave {
    initial-value: 50%;
    inherits: false;
    syntax: '<percentage>';
}
@property --wave-2 {
    initial-value: 50%;
    inherits: false;
    syntax: '<percentage>';
}

@property --wave-3 {
    initial-value: 50%;
    inherits: false;
    syntax: '<percentage>';
}

@keyframes waves {
    100% {
        --wave: 0%;
        --wave-2: 0%;
        --wave-3: 0%;
    }
    30% {
        --wave: 0%;
        --wave-2: 50%;
        --wave-3: 100%;
    }
    0% {
        --wave: 100%;
        --wave-2: 100%;
        --wave-3: 100%;
    }
}

@keyframes check-mark {
    0% {
        width: 0;
        height: 0;
    }

    80% {
        width: 70px;
        height: 70px;
    }

    100% {
        width: 51px;
        height: 51px;
    }
}

@keyframes uncheck-mark {
    0% {
        width: 51px;
        height: 51px;
    }

    20% {
        width: 70px;
        height: 70px;
    }

    100% {
        width: 0;
        height: 0;
    }
}
