/*
    LEGEND
    - FONTS
    - GLOBAL SELECTORS
    - ANIMATIONS
    - CUSTOM_FORM
    - DATA TABLES
    - NAVIGATION
    - TABLE
    - REGISTER
    - INFO PAGE
    - CUSTOM INFO
    - FORM GROUP
    - NODE
    - SIP
    - DECIDE
    - VOIP EXCEPTION
    - VOIP_INFO
    - INTERNAL_VOIP_INFO
    - CONTAINER
    - PULSE_ANIMATION
    - LOGIN
    - LOGOS
    - SYSTEM_RATING
    - EXTERNAL_SHOP_API
    - MEDIA
*/

/* FONTS */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

/*GLOBAL SELECTORS*/
body {
    font-size: 14px;
}

.disableClick {
    pointer-events: none;
}

/*ANIMATIONS*/
.forAjaxLoader {
    position: relative;
    transition: all 0.5s;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.forAjaxLoader::after {
    transition: all 0.5s;
    content: "";
    position: absolute;
    background: transparent;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.forAjaxLoader::before {
    transition: all 0.5s;
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    animation: fa-spin 2s linear infinite;
    font-size: 2em;
    content: "\f2f1";
    position: absolute;
    color: transparent;
    z-index: -1;
}

.showAjaxLoader::after {
    background: rgba(0,0,0,.5);
    z-index: 10;
}

.showAjaxLoader::before {
    color: #ced4da;
    z-index: 20;
}


/* CUSTOM_FORM */
.form__label--radio .form-check,
.form__label--checkbox .form-check {
    display: grid;
    grid-template-columns: 20px auto;
    gap: 6px;
    align-items: center;
}

.form__label--radio .form-check input[type="radio"],
.form__label--radio .form-check input[type="checkbox"],
.form__label--checkbox .form-check input[type="radio"],
.form__label--checkbox .form-check input[type="checkbox"] {
    appearance: none;

    /* For iOS < 15 to remove gradient background */
    background-color: transparent;

    /* Not removed via appearance */
    margin: 0;
    font: inherit;
    width: 16px;
    height: 16px;
    display: grid;
    position: relative;
}

.form__label--radio .form-check input[type="radio"]::before,
.form__label--radio .form-check input[type="checkbox"]::before,
.form__label--checkbox .form-check input[type="radio"]::before,
.form__label--checkbox .form-check input[type="checkbox"]::before {
    font-family: "Font Awesome 5 Free", fallback, sans-serif;
    content: "\f0c8";
    width: 16px;
    height: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    position: absolute;
    top: -2px;
}

.form__label--radio .form-check input[type="radio"]:checked::before,
.form__label--radio .form-check input[type="checkbox"]:checked::before,
.form__label--checkbox .form-check input[type="radio"]:checked::before,
.form__label--checkbox .form-check input[type="checkbox"]:checked::before {
    content: "\f14a";
}


/*DATA TABLES*/
.dataTables_filter {
    display: none;
}

.dataTables_info {
}

.dataTables_paginate {
}


/*NAVIGATION*/
.nav-sidebar .nav-link p,
.nav-sidebar .nav-header {
}

.nav-link {
    /*padding: 6px 5px 4px 15px;*/
}

.nav-sidebar .nav-header:not(:first-of-type) {
    padding: 10px 5px 5px;
}


/*TABLE*/
.table th {
    padding: 5px 5px 5px 10px;
    vertical-align: middle;
}

.table td {
    padding: 4px 5px 4px 10px;
    vertical-align: middle;
}

.table:not(.full-first-col) th:nth-child(1),
.table:not(.full-first-col) td:nth-child(1) {
    width: 50px;
}

table.dataTable td {
    font-size: 12px;
}

table.dataTable thead .sorting:before, table.dataTable thead .sorting:after, table.dataTable thead .sorting_asc:before, table.dataTable thead .sorting_asc:after, table.dataTable thead .sorting_desc:before, table.dataTable thead .sorting_desc:after, table.dataTable thead .sorting_asc_disabled:before, table.dataTable thead .sorting_asc_disabled:after, table.dataTable thead .sorting_desc_disabled:before, table.dataTable thead .sorting_desc_disabled:after {
    bottom: 6px;
}


/*REGISTER*/
.register-box.owner-register-box {
    width: 500px;
}

.register-page__container .login__input {
    margin: 0;
}

.register__login-text {
    text-align: center;
    color: #6b757d;
    padding-top: 5px;
}

.register__login-link {
    color: #2ea7e0;
}

.register__box {
    margin: 15px 0 0;
}

.register__box .h3 {
    text-align: center;
    font-weight: 700;
}

/* INFO PAGE */
.info__message {
    text-align: center;
    padding-top: 5px;
}

.info__link .btn {
    width: auto;
    margin: 0 auto;
}


/*CUSTOM INFO*/
.custom-info-box {
    max-width: 700px;
}

.custom-info-box .message-wrapper {
    margin-bottom: 30px;
}

.custom-info-box .message {
    font-size: 1.1rem;
}


/*FORM GROUP*/
.form-group.form-group-inline {
    display: inline-block;
    margin-right: 5px;
}

.form-group.visibility-toggle {
    transition: max-height 0.5s, margin 0.5s;
    max-height: 5em;
    overflow: hidden;
}

.form-group.visibility-toggle.hidden {
    max-height: 0;
    margin: 0;
}


/*NODE*/
.node_connect__info {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
}

.node_connect__wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-right: 6px;
}

.node_connect__info_message {
    margin-left: 6px;
}

.node_connect__status {
    width: 10px;
    height: 10px;
    background-color: black;
    border-radius: 50%;
}

.node_connect__status--error {
    background-color: #ff0000;
}

.node_connect__status--success {
    background-color: #008000;
}


/*SIP*/
.sip_connect__info {
    display: flex;
    flex-direction: column;
}

.sip_connect__wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-right: 6px;
}

.sip_connect__info_message {
    margin-left: 6px;
}

.sip_connect__status {
    width: 10px;
    height: 10px;
    background-color: black;
    border-radius: 50%;
}

.sip_connect__status--error {
    background-color: #ff0000;
}

.sip_connect__status--success {
    background-color: #008000;
}

/* DECIDE */
.decide {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.decide__row {
    width: 50vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.decide__buttons {
    width: 100%;
    display: flex;
    justify-content: space-around;
}

.decide__button {
    width: 100%;
    margin: 0 10px;
}

.decide__button--phone:before {
    content: "\f095";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
}

.decide__button--stop:before {
    content: "\f04d";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
}

/* VOIP EXCEPTION */
.voip_exception {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.voip_exception__row {
    width: 50vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.voip_exception__buttons {
    width: 100%;
    display: flex;
    justify-content: space-around;
}

.voip_exception__button {
    width: 100%;
    margin: 0 10px;
}

/* VOIP_INFO */
.voip_info {
}

.voip_info__pickup,
.voip_info__end_call {
    margin: 0 6px;
    width: 30px;
    height: 30px;
    min-width: 30px;
    min-height: 30px;
    max-width: 30px;
    max-height: 30px;
}

.voip_info__pickup:hover,
.voip_info__end_call:hover {
    cursor: default;
}

.voip_info__incoming_call {
    margin: 0 10px;
}

/* INTERNAL VOIP_INFO */
.internal_voip__info:hover,
.internal_voip__info:active {
    cursor: default !important;
    color: #17a2b8 !important;
    background-color: transparent !important;
}

/* CONTAINER */

.container__parent {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.container--primary {
    width: 100%;
    height: 100%;
    margin: 15px;
}

/* PULSE_ANIMATION */
.pulse {
    transition: all;
    transform: scale(1);
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.4);
        opacity: 0.5;
    }
    100% {
        box-shadow: 0 0 0 6px rgba(0, 0, 0, 0);
        opacity: 1;
    }
}

/* LOGIN */
.login-page, .register-page {
    height: unset !important;
    background-color: #ffffff;
    font-family: 'Poppins', sans-serif;
}

.login-page__container,
.register-page__container {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.login-half {
    width: 100%;
    position: relative;
}

.login-background {
    display: none;
    background: linear-gradient(0deg, rgba(56, 111, 181, 0.9), rgba(56, 111, 181, 0.9)), url("../media/img/login-bg.jpg") no-repeat;
    background-size: cover;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: #ffffff;
}

.login-background--text {
    margin: 0 15px;
    position: relative;
}

.login__welcome {
    width: 100%;
    background: linear-gradient(0deg, rgba(56, 111, 181, 0.9), rgba(56, 111, 181, 0.9)), url("../media/img/login-bg.jpg") no-repeat;
    background-size: cover;
    color: #ffffff;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 10px;
    text-align: center;
}

.login-page .h1,
.register-page .h1 {
    font-weight: 600;
    font-size: 30px;
    line-height: 1.3;
}

.login-page .h2,
.register-page .h2 {
    font-weight: 400;
    font-size: 16px;
    line-height: 1.4;
}

.login__box {
    margin: 15px 0 30px;
}

.login__box .h3,
.login__box .h4 {
    text-align: center;
    font-weight: 700;
}

.login__box .h4 {
    font-size: 1.4rem;
    margin-top: 30px;
}

.login__already-logged {
    margin-bottom: 3vh;
}

.login__input {
    margin: 10px 0 5px;
}

.login__form .login__input label {
    font-weight: 400;
}

.login__input input {
    font-size: 14px;
}

.login__submit {
    margin: 20px 0 1rem;
}

.login__submit .btn {
    background-color: #2ea7e0;
    border-color: #2ea7e0;
    font-size: 14px;
    padding: 9px;
    box-shadow: 0 5px 10px 5px #cccccc;
}

.login__dropdown {
    position: relative;
    display: inline-block;
}

.login__dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    padding: 12px 0px;
    z-index: 1;
}

.login__dropdown-content-item {
    padding: 3px 10px;
}

.login__dropdown-content-item a {
    display: block;
    color: #2ea7e0;
}

.login__dropdown-content-item:hover a {
    color: #fff;
}

.login__dropdown-content-item:hover {
    background-color: #2ea7e0;
}


.login__dropdown:hover .login__dropdown-content {
    display: block;
}

.login__locale_button {
    background-color: #2ea7e0;
    border-color: #2ea7e0;
    font-size: 14px;
    padding: 9px;
    box-shadow: 0 5px 10px 5px #cccccc;
}

/* LOGOS */
.logos__top_block {
    display: flex;
    justify-content: space-between;
}

.logos__logo-footer,
.logos__logo-service-desk,
.logos__logo-eu {
    display: flex;
    align-items: center;
}

.logos__logo-footer,
.logos__logo-service-desk {
    justify-content: center;
}

.logos__logo-eu {
    justify-content: flex-end;
}

.logos__logo-service-desk {
    margin: 20px 0 10px;
}

.logos__logo-eu img {
    /*max-width: 100px;*/
    height: auto;
}

.logos__logo-service-desk img {
    max-width: 120px;
    height: auto;
}

.logos__logo-footer img {
    max-width: 100%;
    height: auto;
}



/* SYSTEM_RATING */
.system_rating__form,
.system_rating__form .form-group {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.system_rating__form {
    margin-top: 40px;
}

.system_rating__choices {
    display: flex;
    justify-content: center;
    width: 100%;
}

.system_rating__form button {
    display: none;
}

.system_rating__choices .form-check {
    padding: 0;
    margin: 0;
    grid-template-columns: 40px 0;
}

.system_rating__choices .form-check input[type="radio"] {
    width: 40px;
    height: 40px;
    cursor: pointer;
    color: #2ea7e0;
}

.system_rating__choices .form-check input[type="radio"]::before {
    width: 40px;
    height: 40px;
    font-size: 44px;
    color: #2ea7e0;
}

.system_rating__choices .form-check label {
    position: absolute;
    font-size: 26px;
    left: 13px;
    top: -4px;
    color: #2ea7e0;
    cursor: pointer;
}

.system_rating__choices .form-check input[type="radio"]:checked::before {
    z-index: 10;
    background-color: #fff;
    color: #2ea7e0;
}


/* EXTERNAL_SHOP_API */
.external_shop_response {
    width: 100%;
    display: flex;
    flex-direction: column;
    padding: .5rem;
    overflow: scroll;
}

.external_shop_response .dataTables_filter {
    display: block;
}

.external_shop_response .dataTables_wrapper {
    margin-top: 10px;
}

.external_shop_response--fullscreen {
    position: fixed;
    z-index: 10000;
    top: 0;
    left: 0;
    overflow: scroll;
    height: 100%;
}

.external_shop_response--fullscreen .external_shop_response__marker_action {
    display: none;
}

.external_shop_response__close {
    float: right;
}

.external_shop_response__fullscreen {
    float: right;
    margin-right: 6px;
}

.external_shop_response__marker_action {
    float: left;
    margin-left: 10px;
    width: 200px;
}

.external_shop_response__card_title {
    line-height: 32px;
}

.external_shop_response__info {
    text-transform: uppercase;
}

.external_shop_response__loop {
    border-top: 1px solid rgba(0,0,0,.125);
}

.external_shop_response__loop:first-child {
    margin-bottom: 50px;
}

.external_shop_response__ul {
    display: flex;
    width: 100%;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
}

.external_shop_response__li_item {
    position: relative;
    padding: 0 6px;
}

.external_shop_response__li_item p {
    margin: 0;
    padding: 0;
}

.external_shop_response__li_item::after {
    position: absolute;
    content: "|";
    right: -2px;
    color: rgba(0,0,0,.125);
}

.external_shop_response__li:last-child .external_shop_response__li_item::after {
    content: none;
}



/* MEDIA */

@media screen and (min-width: 768px) {
    .logos__logo-eu img {
        max-width: 100%;
    }

    .logos__logo-service-desk {
        margin: 50px 0 30px;
    }

    .logos__logo-service-desk img {
        max-width: 100%;
    }

    .login-page .h1,
    .register-page .h1 {
        font-size: 36px;
        padding-bottom: 5px;
    }

    .login-page .h2,
    .register-page .h2 {
        font-size: 16px;
    }

    .login__box--container {
        max-width: 650px;
        margin: 0 auto;
    }
}

@media screen and (min-width: 1200px) {
    .login-page__container {
        height: 100vh;
        flex-direction: row;
    }

    .register-page__container {
        min-height: 100vh;
        flex-direction: row;
    }

    .login-page .h1,
    .register-page .h1 {
        font-size: 44px;
        margin-bottom: 10px;
    }

    .login-page .h2,
    .register-page .h2 {
        font-size: 18px;
    }

    .login-background {
        display: flex;
    }

    .login-background--text {
        margin-top: 50%;
    }

    .login__welcome {
        display: none;
    }

    .login__box {
        margin: 15px 20px 30px;
    }

    .login__already-logged {
        margin-top: -5vh;
    }

    .login__box--container {
        margin-top: 4vh;
    }

    .login__input {
        margin: 10px 0 0;
    }

    .login__input input {
        height: 40px;
    }

    .login__footer {
        position: relative;
        bottom: 20px;
        left: 0;
    }

    .login-page .login__footer {
        position: absolute;
    }

    .register__box {
        margin: 15px 20px 0;
    }
}

#user_service_desk_crud_userAgentTypePriorities > .form-group > div {
    display: flex;
    justify-content: space-between;
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 2px 20px;
    border-radius: 6px;
}

.col-hidden {
    display: none;
}

.btn-issue-type {
    min-width: 180px;
}

.note-editor {
    font-family: Arial
}

.issue-label {
    font-weight: unset !important;
    margin-bottom: initial;
}

.issue-label:hover {
    cursor: pointer;
}

#issue_message {
    height: 150px;
    width: 100%;
    border-radius: 10px;
    padding: 5px 10px;
}

#issues-schemas {
    overflow-y: auto;
    /*height: 274px;*/
    height: 550px;
    padding-right: 10px;
}

.nav-pills .nav-link.new-ticket {
    background-color: rgba(42, 164, 2, 0.6);
    color: #fff;
}

.nav-pills .nav-link.new:not(.active):hover {
    background-color: rgba(42, 164, 2, 0.8);
    color: #fff;
}

.nav-pills .nav-link.attached-ticket {
    background-color: rgba(255, 0, 0, 0.6);
    color: #fff;
}

.nav-pills .nav-link.attached-ticket:not(.active):hover {
    background-color: rgba(255, 0, 0, 0.8);
    color: #fff;
}

.overflow-auto-horizontal {
    overflow-x: auto;
}

#profile-configurations [data-td="actions"],
#profile-configurations [data-td="actions-additional"] {
    white-space: nowrap;
}

table.table-filters th {
    padding: 2px 8px;
    font-size: 12px;
    white-space: nowrap;
}

table.table-filters th input,
table.table-filters th select {
    border: 0;
    cursor: pointer;
}

#ShopStatsTable.table tbody tr,
#AgentStatsTable.table tbody tr {
    /*background-color: #fff;*/
}

#ShopStatsTable.table tbody tr.highlight__financial-stats-config-all:not(:hover),
#AgentStatsTable.table tbody tr.highlight__financial-stats-config-all:not(:hover) {
    background-color: #ffeb3b66;
}

/*#ShopStatsTable.table tbody tr:hover,*/
/*#AgentStatsTable.table tbody tr:hover{*/
/*    background-color: rgba(0,0,0,.05)*/
/*}*/

#ShopStatsTable.table tbody td:nth-child(3),
#ShopStatsTable.table tbody td:nth-child(6) {
    white-space: nowrap;
}

.custom-file-label--insert-text {
    line-height: 1.8;
    overflow-y: hidden;
}

.custom-file-input:lang(pl) ~ .custom-file-label::after {
    content: "Przeglądaj";
}

.history-additional-message-toggleable {
    border-left: 1px solid #007bff;
    border-right: 1px solid #007bff;
}

.tabs-card-body .nav-tabs.flex-column .nav-item.show .nav-link,
.tabs-card-body.nav-tabs.flex-column .nav-link.active {
    border-color: #2489cb transparent #2489cb #2489cb
}

.tabs-card-body .nav-tabs .nav-item.show .nav-link,
.tabs-card-body .nav-tabs .nav-link.active {
    background-color: #2489cb;
    color: #fff;
}
