﻿/* Root section*/
.page {
    background-color: var(--page-background-color);
    color: var(--page-font-color);
}

.logo-container {
    background-image: url('/images/logoes/mch.png');
    width: 100%;
    height: 150px;
    background-size: auto 50%;
    background-repeat: no-repeat;
    background-position: center center;
}

.logo-container-empty {
    width: 100%;
    height: 150px;
    background-size: auto 50%;
    background-repeat: no-repeat;
    background-position: center center;
}

/* Content section */
#content {
    background-color: var(--content-background-color);
    color: var(--content-font-color);
}

    #content::-webkit-scrollbar {
        display: none;
    }


#header {
    box-shadow: 0 3px 5px 0 rgba(0,0,0,0.6);
    z-index: 10;
}


.text-bold {
    font-weight: bold;
}

/* Questionaire */
.overlay-button-panel {
    position: absolute;
    top: 45px;
    right: 10px;
    z-index: 100;
}

button.no-style {
    border: none;
    background-color: transparent;
    color:var(--content-font-color);
}

.icon-button {
    position: relative;
    width: 40px;
    height: 40px;
    line-height: 40px;
    border-radius: 50%;
    font-size: 20px;
    border: none;
    box-shadow: 3px 3px 5px 0 rgba(0,0,0,0.6);
}

    .icon-button i {
        width: 100%;
        height: 100%;
        position: absolute;
        top: 0;
        left: 0;
        line-height: 40px;
        text-align: center;
    }

        .icon-button i.fa-trash-alt,
        .icon-button i.fa-xmark {
            font-size: 20px;
        }

.icon-button-sm {
    width: 25px;
    height: 25px;
    line-height: 25px;
}

    .icon-button-sm i {
        font-size: 15px;
        line-height: 25px;
    }

.icon-button-success,
.icon-button-success:hover {
    background: var(--success-background-color);
    color: var(--success-font-color);
}

.icon-button-danger,
.icon-button-danger:hover {
    background: var(--danger-background-color);
    color: var(--danger-font-color);
    font-size: 1.7em;
}

.icon-button-warning,
.icon-button-warning:hover {
    background: var(--warning-background-color);
    color: var(--warning-font-color);
}

.icon-button-default,
.icon-button-default:hover{
    background-color: var(--default-background-color);
    color: var(--default-font-color);
}

.icon-button-primary,
.icon-button-primary:hover {
    background-color: var(--navigation-background-color);
    color: var(--navigation-font-color);
}


.icon-label {
    line-height: 40px;
}

/* List */
.list-item {
    border-radius: 20px;
    padding: 2px;
    background-color: var(--default-background-color);
    color: var(--default-font-color);
    cursor: pointer;
}

.list-item {
    box-shadow: 3px 3px 5px 0 rgba(0,0,0,0.6);
}

    .list-item .text {
        line-height: 15px;
        font-size: 15px;
        padding-top: 3px;
        overflow: hidden;
        white-space: nowrap;
    }

/* Misc */
.text-box {
    background-color: #fff;
    color: #000;
    padding: 10px;
    box-shadow: 3px 3px 5px 0 rgba(0,0,0,0.6);
}

/* Navigation menu */
#navigation {
    background-color: var(--navigation-background-color);
    box-shadow: 0 -3px 5px 0 rgba(0,0,0,0.6);
    z-index: 10;
    position: relative;
}

.nav-button,
.nav-button:hover {
    display: block;
    padding-top: 5px;
    color: var(--navigation-font-color);
    text-decoration: none;
    height: 100%;
}

    .nav-button.disabled {
        opacity: 0.5;
    }

.nav-text {
    line-height: 100%;
    display: block;
}

/* Hover selector */
.hover-select-container {
    padding: 6px 5px 3px 6px;
    border-radius: 0.25rem;
    display: inline-block;
    background-color: var(--input-background-color);
    height: 38px;
    border-radius: 10px;
    box-shadow: 3px 3px 5px 0 rgba(0,0,0,0.6);
}

    .hover-select-container .selector-flag {
        height: 26px;
        width: 30px;
    }

    .hover-select-container .hover-select-list {
        background-color: var(--input-background-color);
        width: 100%;
        border-radius: 10px;
        box-shadow: 3px 3px 5px 0 rgba(0,0,0,0.6);
    }

        .hover-select-container .hover-select-list a {
            padding: 6px;
            border-radius: 0.25rem;
            height: 38px;
            display: block;
        }

/* Buttons */
.text-button {
    width: 100%;
    border: none;
    border-radius: 10px;
    height: 38px;
    box-shadow: 3px 3px 5px 0 rgba(0,0,0,0.6);
    line-height: 38px;
}

    .text-button.text-button-success {
        background-color: var(--success-background-color);
        color: var(--success-font-color);
    }

    .text-button.text-button-danger {
        background-color: var(--danger-background-color);
        color: var(--danger-font-color);
    }

    .text-button.text-button-default {
        background-color: var(--default-background-color);
        color: var(--default-font-color);
    }

    .text-button.text-button-warning {
        background-color: var(--warning-background-color);
        color: var(--warning-font-color);
    }

    .text-button.text-button-primary {
        background-color: var(--navigation-background-color);
        color: var(--navigation-font-color);
    }

/* Form controls */
.form-group {
    margin-bottom: 10px;
}

    .form-group input,
    .form-group select,
    .form-group .checkbox-container {
        margin-bottom: 10px;
    }


    .form-group h3 {
        margin-top: 15px;
        margin-bottom: 0;
    }

.alert,
input.form-control,
select.form-control,
textarea.form-control {
    border-radius: 10px;
    box-shadow: 3px 3px 5px 0 rgba(0,0,0,0.6);
}

textarea.input-missing,
select.input-missing,
input.input-missing {
    box-shadow: 0 0 5px 2px rgba(255,0,0,0.9);
}

textarea.form-control {
    height: 100px;
}

input:focus-visible {
    outline: none;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #444;
}

.icon-input {
    position: relative;
}

    .icon-input input {
        padding-left: 30px;
    }

    .icon-input i {
        position: absolute;
        top: 8px;
        left: 20px;
        color: #444;
    }

.image-thumbnail-container {
    background-color: #fff;
    position: relative;
    text-align: center;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 3px 3px 5px 0 rgba(0,0,0,0.6);
}

    .image-thumbnail-container .icon-button {
        position: absolute;
        top: 10px;
        right: 10px;
    }

    .image-thumbnail-container .image-thumbnail {
        max-width: 100%;
        max-height: 250px;
    }

/* Checkbox */
/* Customize the label (the container) */
.checkbox-container {
    display: inline-block;
    position: relative;
/*    padding-left: 35px;*/
    cursor: pointer;
    font-size: 22px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    height: 25px;
}

    /* Hide the browser's default checkbox */
    .checkbox-container input {
        position: absolute;
        opacity: 0;
        cursor: pointer;
        height: 0;
        width: 0;
    }

/* Create a custom checkbox */
.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 25px;
    width: 25px;
    background-color: #fff;
    box-shadow: 3px 3px 5px 0 rgba(0,0,0,0.6);
    border-radius: 10px;
}

/* On mouse-over, add a grey background color */
.checkbox-container:hover input ~ .checkmark {
    background-color: #fff;
}

/* When the checkbox is checked, add a blue background */
.checkbox-container input:checked ~ .checkmark {
    background-color: var(--navigation-background-color);
}

/* Create the checkmark/indicator (hidden when not checked) */
.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

/* Show the checkmark when checked */
.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

/* Style the checkmark/indicator */
.checkbox-container .checkmark:after {
    left: 8px;
    top: 3px;
    width: 10px;
    height: 15px;
    border: solid white;
    border-width: 0 3px 3px 0;
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
}


/* Barcode scanner */
.zxing-result-container {
    display: none;
}

.zxing-video-container {
    text-align: center;
    background-color: #000;
    max-height:50vh;
    overflow:hidden;
    position:relative;
}

    .zxing-video-container video {
        width: 100%;
        height:100%;
    }

.zxing-title {
    display: none;
}

.zxing-container .alert-danger {
    display:none;
}

/* Confirm dialog */
.pop-container {
    z-index: 1000;
    width: 100vw;
    height: 100vh;
    position: fixed;
    top: 0px;
    left: 0px;
    background-color: rgba(0, 0, 0, 0.65);
}

.pop-confirm {
    color: var(--content-font-color);
    background-color: var(--content-background-color);
    padding: 10px;
    border-radius: 10px;
    min-width: 250px;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 3px 3px 5px 0 rgba(0,0,0,0.6);
}

.pop-spinner {
    color: var(--content-font-color);
    background-color: var(--content-background-color);
    padding: 10px;
    border-radius: 10px;
    width: 80px;
    height: 80px;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 3px 3px 5px 0 rgba(0,0,0,0.6);
}

/* Toggle */
/* The switch - the box around the slider */
.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
    border-radius: 20px;
    box-shadow: 3px 3px 5px 0 rgba(0,0,0,0.6);
}

    /* 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: #444;
    -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:checked + .slider {
    background-color: var(--success-background-color);
}

input:focus + .slider {
    box-shadow: 0 0 1px #2196F3;
}

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%;
    }

/* Spinner */
.lds-ring {
    display: inline-block;
    position: relative;
    width: 60px;
    height: 60px;
}

    .lds-ring div {
        box-sizing: border-box;
        display: block;
        position: absolute;
        width: 40px;
        height: 40px;
        margin: 10px;
        border: 8px solid #000;
        border-radius: 50%;
        animation: lds-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
        border-color: #000 transparent transparent transparent;
    }

        .lds-ring div:nth-child(1) {
            animation-delay: -0.45s;
        }

        .lds-ring div:nth-child(2) {
            animation-delay: -0.3s;
        }

        .lds-ring div:nth-child(3) {
            animation-delay: -0.15s;
        }

@keyframes lds-ring {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.no-shadow {
    box-shadow: none !important;
}

/* Variables */
:root {
    --page-background-color: #444;
    --page-font-color: #fff;
    --content-background-color: #ccc;
    --content-font-color: #444;
    --input-background-color: #fff;
    --navigation-background-color: #444;
    --navigation-background-active-color: #222;
    --navigation-font-color: #ddd;
    --danger-background-color: #bf0e0e;
    --danger-font-color: #fff;
    --success-background-color: #00631b;
    --success-font-color: #fff;
    --warning-background-color: #e15a00;
    --warning-font-color: #fff;
    --default-background-color: #fff;
    --default-font-color: #000;
}
