:root {
    --header-height: 0px;
    --footer-height: 0px;
    --dialogue-input-field-height: 0px;

    --lex-color-red: #BE1B3E;
    --lex-color-light: #FCFAF7;
    --lex-color-white: #FFFFFF;
    --lex-color-dark: #1E2127;
    --lex-color-dark-rgb: 30, 33, 39;
    --lex-color-gray: #93969E;

    --lex-color-secondary-light: #F0F0F0;
    --lex-color-secondary-dark: #E5E5E5;
    --lex-color-secondary-gray: #F2F4F8;
}

body {
    background-color: var(--lex-color-light);
    color: var(--lex-color-dark);
    font-size: 0.875rem;
}

header {
    height: auto;
    position: fixed;
    top: 0;
    width: 100%;
    background-color: var(--lex-color-light);
}

footer {
    height: auto;
    position: fixed;
    bottom: 0;
    width: 100%;
    background-color: var(--lex-color-white);
}

main {
    padding-top: var(--header-height);
    padding-bottom: var(--footer-height);
    overflow: auto;
    height: calc(100vh - var(--header-height) - var(--footer-height));
}

.lex-bg-red {
    background-color: var(--lex-color-red);
}
.lex-bg-white {
    background-color: var(--lex-color-white);
}
.lex-bg-light {
    background-color: var(--lex-color-light);
}
.lex-bg-dark {
    background-color: var(--lex-color-dark);
}
.lex-bg-gray {
    background-color: var(--lex-color-gray) !important;
}
.lex-bg-secondary-light {
    background-color: var(--lex-color-secondary-light);
}
.lex-bg-secondary-dark {
    background-color: var(--lex-color-secondary-dark);
}
.lex-bg-secondary-gray {
    background-color: var(--lex-color-secondary-gray);
}
.lex-bg-transparent {
    background-color: transparent;
}

.lex-btn-primary {
    background-color: var(--lex-color-red) !important;
    color: var(--lex-color-white) !important;
    border-color: var(--lex-color-red) !important;
}
.lex-btn-secondary {
    background-color: var(--lex-color-gray) !important;
    color: var(--lex-color-white) !important;
    border-color: var(--lex-color-gray) !important;
}
.lex-btn-light {
    background-color: var(--lex-color-light) !important;
    color: var(--lex-color-red) !important;
    border-color: var(--lex-color-red) !important;
}
.lex-btn-secondary-light {
    background-color: var(--lex-color-secondary-light) !important;
    color: var(--lex-color-dark) !important;
    border-color: var(--lex-color-secondary-light) !important;
}

.lex-text-muted {
    color: var(--lex-color-gray) !important;
}
.lex-text-danger {
    color: var(--lex-color-red) !important;
}
.lex-text-white {
    color: var(--lex-color-white);
}
.lex-link-dark,
.lex-text-black {
    color: var(--lex-color-dark) !important;
}

.card-label {
    background-color: var(--lex-color-secondary-dark);
}
.card, .card-body, .card-header, .card-footer, .card-title, .card-text {
    color: var(--lex-color-dark);
}
ul, li {
    list-style: none;
}

ul > li.rounded-circle {
    width: 40px;
    height: 40px;
}

hr.line {
    border: none;
    height: 2px;
    border-radius: 1px;
    background-color: var(--lex-color-dark);
    width: 20px;
}

.stages__item {
    cursor: pointer;
}
.type-links__link.active {
    background-color: var(--lex-color-red) !important;
    color: var(--lex-color-white) !important;
}
.type-links__link.active .icon,
.stages__item.active .icon {
    fill: var(--lex-color-white);
    stroke: var(--lex-color-white);
}
.stage {
    scroll-margin-top: var(--header-height);
}

footer a.active {
    color: var(--lex-color-red) !important;
    border-top: var(--lex-color-red) 2px solid;
}
footer a.active .icon {
    fill: var(--lex-color-red);
    stroke: var(--lex-color-red);
}

.select.active .select__dropdown,
.select.active .selectModel__dropdown {
    display: block;
    z-index: 1000;
}
.select__dropdown,
.selectModel__dropdown {
    display: none;
    padding: 0;
    margin: 0;
    margin-top: 0.25rem;
    background-color: var(--lex-color-secondary-light);
    border-radius: 0.5rem;
    width: 100%;
}
.selectModel__dropdown {
    background-color: var(--lex-color-light);
}
.select__dropdown-item {
    padding: 0.5rem 1rem;
    cursor: pointer;
}
.select__dropdown-item:hover,
.select__label:hover {
    cursor: pointer;
}
.select__dropdown-item:not(:last-child) {
    border-bottom: 1px solid var(--lex-color-secondary-dark);
}
.select__label {
    width: 100%;
    height: 100%;
}
.select__label input {
    display: none;
}
.select__btn-icon {
    cursor: pointer;
}
.select .select__btn .select__btn-icon {
    transform: rotate(0deg);
    transition: transform 0.3s ease;
}
.select.active .select__btn .select__btn-icon {
    transform: rotate(180deg);
}

.stages__item.active {
    background-color: var(--lex-color-red);
    color: var(--lex-color-white);
}

.accordion-body p:not(:last-child) {
    margin-bottom: 0.5rem;
}
.accordion-body p:last-child {
    margin-bottom: 0;
}
.accordion-button, .accordion-button:not(.collapsed){
    background-color: var(--lex-color-secondary-light);
    color: var(--lex-color-dark);
    box-shadow: none;
}

.icon {
    fill: var(--lex-color-dark);
    stroke: var(--lex-color-dark);
    width: 1.5rem;
    height: 1.5rem;
}

.fill-white {
    fill: var(--lex-color-white);
    stroke: var(--lex-color-white);
}
.fill-gray {
    fill: var(--lex-color-gray);
    stroke: var(--lex-color-gray);
}
.fill-red {
    fill: var(--lex-color-red);
    stroke: var(--lex-color-red);
}

.icon-badge-square {
    width: 2rem;
    height: 2rem;
}
.card-img-sizes {
    width: 100%;
    min-height: 4.5rem;
    aspect-ratio: 16 / 9;
}
.card-img-sizes:only-child {
    height: 100%;
}

.nested-nodes {
    padding-right: 0;
    padding-left: 2rem;
}

.custom-switch {
    position: relative;
    display: inline-block;
    width: 3.5rem;
    margin: 0.125rem 0;
    height: calc(1.5rem + 4px);
    background-color: var(--lex-color-secondary-light);
    border-radius: calc(0.75rem + 2px);
    transition: all 0.3s;
}
.custom-switch::after {
    content: '';
    position: absolute;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background-color: var(--lex-color-white);
    top: 2px;
    left: 2px;
    box-shadow: 0px 4px 4px 0px #6A686629;
    transition: all 0.3s;
}

.custom-checkbox:checked + .custom-switch::after {
    left : calc(3.5rem - 1.5rem - 2px);
}
.custom-checkbox:checked + .custom-switch {
    background-color: var(--lex-color-gray);
}
.custom-checkbox {
    display : none;
}

.nav-pills .nav-link.active {
    background-color: var(--lex-color-gray) !important;
    color: var(--lex-color-white) !important;
}
.nav-pills .nav-link.active .icon {
    stroke: var(--lex-color-white);
    fill: var(--lex-color-white);
}

.field-icon input {
    padding-right: 2.5rem;
}
.input-icon {
    position: absolute;
    display: flex;
    align-items: center;
    top: 0;
    bottom: 0;
    right: 0.5rem;
}

textarea.custom-control {
    resize: none;
}
.custom-control,
.custom-control-model,
.custom-control:focus {
    background-color: var(--lex-color-secondary-light);
    border: none;
    box-shadow: none;
}
.custom-control-model {
    position: relative;
    outline: 0;
    outline-offset: 0;
    width: 100%;
    padding: 0.5rem;
}
.custom-control:focus {
    border: var(--lex-color-dark) 1px solid;
}

.form-floating>.custom-control {
    padding-right: 2rem;
}
.form-floating>.custom-control:focus~label,
.form-floating>.custom-control:not(:placeholder-shown)~label {
    transform: scale(0.8) translateY(-0.5rem) translateX(0.5rem);
}

.form-floating>.custom-control:focus~label::after,
.form-floating>.custom-control:not(:placeholder-shown)~label::after,
.form-floating>.custom-control~label::after {
    background-color: inherit;
}

.authorisation {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    height: 100%;
}
.authorisation img {
    margin-bottom: 2rem;
}
.authorisation-form {
    width: 100%;
    max-width: 400px;
    padding: 0 1rem;
}
.authorisation-form__field {
    padding-bottom: 3px;
}
.authorisation-input,
.authorisation-input__code-number {
    height: 3rem;
    border: none;
    border-radius: 0.5rem;
    background-color: var(--lex-color-secondary-light);
}

.authorisation-input__code-number {
    width: 4.5rem;
    text-align: center;
    appearance: none;
    -moz-appearance: textfield;
}
.authorisation-input:focus,
.authorisation-input__code-number:focus {
    background-color: var(--lex-color-secondary-light);
    border: var(--lex-color-dark) 1px solid;
    box-shadow: none;
}

.authorisation-input__code-number::-webkit-outer-spin-button,
.authorisation-input__code-number::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.authorisation-form__field__code {
    display: flex;
    justify-content: space-between;
    gap: 0.625rem;
}

.authorisation-form__field span {
    height: 2.5rem;
    display: block;
    visibility: hidden;
}
.authorisation-form__field span:not(.hidden) {
    visibility: visible;
}

.border-danger {
    border: var(--lex-color-red) 1px solid;
}

video {
    position: absolute;
    width: 100vw;
    height: 100vh;
    height: fit-content;
}
.drawingBuffer {
    width: 100vw;
    height: 100vh;
}

.camera {
    width: 100vw;
    height: 100vh;
    position: relative;
    background-color: rgba(0, 0, 0, 0.5);
}

.barcode-reader-area {
    box-shadow: 0 0 100rem 100rem rgba(0, 0, 0, 0.5);
}
.centered {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
}
.barcode-reader-area {
    position: absolute;
    z-index: 2;
    border: 2px solid var(--lex-color-red);
    border-radius: 1rem;
    width: 95%;
    height: 10.5rem;
}
.barcode-reader-hint {
    position: absolute;
    z-index: 2;
    color: var(--lex-color-white);
    text-align: center;
    margin-top: 1rem;
}
@media screen and (orientation: landscape) {
    .barcode-reader-area {
        top: translateY(50%);
    }
    .barcode-reader-hint {
        top: calc(50% + 10.5rem / 2);
    }
}
@media screen and (orientation: portrait) {
    .barcode-reader-area {
        top: 40%;
    }
    .barcode-reader-hint {
        top: calc(40% + 10.5rem);
    }
}

.dialogue {
    margin-bottom: 15px;
}
.image-container {
    max-width: 200px;
}
.dialogue-container {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: calc(110vh - var(--header-height) - var(--footer-height));
    gap: 1.5rem;
    padding: 0.625rem 1rem;
}
.scrollable-dialogue {
    display: flex;
    flex-direction: column-reverse;
    overflow-y: auto;
}

.message {
    display: flex;
    flex-direction: column;

    max-width: 100%;
    width: fit-content;

    border-radius: 1rem;
    overflow: hidden;
}
.date-message {
    font-size: 0.75rem;
    color: var(--lex-color-gray);
    margin: 1.875rem auto;
}
.message.client {
    margin-left: auto;
}
.message.support {
    margin-right: auto;
}
.image-container {
    display: flex;
    justify-content: center;
    position: relative;
    padding: 0;
    overflow: hidden;
}
.client-message,
.support-message {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
    padding: 0.75rem 1rem;
}
.client-message,
.client .image-container {
    background-color: #DFE1E7;
}
.support-message-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.message.client + .message.client,
.support-message-group + .support-message-group {
    margin-top: 0.5rem;
}
.message.client + .support-message-group,
.support-message-group + .message.client {
    margin-top: 1.125rem;
}
.support-message,
.support .image-container {
    background-color: var(--lex-color-secondary-light);
}
.message-time-text {
    font-size: 0.625rem;
}
.support-manager {
    max-width: 80%;
    color: var(--lex-color-gray);
    font-size: 0.75rem;
    margin-bottom: 0.25rem;
}
.chat-image {
    width: 100%;
    height: 100%;
    max-height: 100%;
    max-width: 100%;
    object-fit: cover;
    cursor: pointer;
}
.chat-image + .message-time-text {
    position: absolute;
    bottom: 0.5rem;
    right: 0.5rem;
    padding: 0.125rem 0.375rem;
    color: var(--lex-color-white);
    background-color: rgba(var(--lex-color-dark-rgb), 0.62);
    border-radius: 0.5rem;
}

.input-group {
    padding: 12px 8px;
    background-color: var(--lex-color-secondary-light);
    border-radius: 8px;
}
.input-group .input-group-text {
    border: none;
    background-color: inherit;
    padding: 0;
}
.input-group input {
    padding: 2px 8px;
    background-color: inherit;
    border: none;
}
.input-group input::placeholder {
    color: var(--lex-color-gray);
    font-size: 0.875rem;
}
.form-control:focus {
    background-color: inherit;
    border: none;
    box-shadow: none;
}

input[type="date"]::-webkit-calendar-picker-indicator {
    display: none;
}

input[type="time"]::-webkit-calendar-picker-indicator {
    display: none;
}

input[type="date"] {
    -moz-appearance: textfield;
}

.input-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
}
