@font-face {
    font-family: "IcoMoon";
    src: url("/css/fonts/icomoon.ttf");
}

html {
    margin: 0;
    padding: 0;
    min-height: 100%;
    background-image: url("/images/new.png");
    background-color: #444444;
    background-repeat: repeat-x;
    background-position: bottom;
}
body {
    background-color: rgba(0,0,0,0);
    font-family: Helvetica, Arial, sans-serif;
    font-size: 16px;
    color: #fafafa;
    margin: 0;
    padding: 0;
    overflow-x: hidden;

}

#root {
    min-height: 100%;
}

textarea {
    resize: none;
}

.ul-menu {
    display: block;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    list-style-type: none;
    padding:20px 0;
}
.li-menu-item {
    display: block;
    margin: 5px 0;
    background-color: rgba(255,255,255,0.1);
    transition: all 0.5s linear 0s;
    flex-grow: 1;
    text-align: center;
}
.li-menu-item:hover{
    background-color: rgba(255,255,255,0.95);
}

.li-menu-item a{
    display: block;
    width: 100%;
    padding: 10px;
    color: #f7f7f7;
    text-decoration: none;
    transition: all 0.5s linear 0s;
    text-transform: uppercase;
}

.li-menu-item:hover a{
    color: #121212;
}

.biglogo {
    display: flex;
    justify-content: center;
    text-align: center;
}
.biglogo:only-child {
    display: inline-block;
}

.float-right {
    float: right !important;
}
/************ WRAPPER *************/

.page-wrapper {
    display: flex;
    justify-content: center;
    min-height: 80%;
    margin: 0 5em;
    margin-bottom: 50px;
    border-radius: 20px;
    overflow: hidden;
}

.page-content {
    flex-grow: 1;
}


.sidebar {
    box-shadow: 5px 0px 10px 0px rgba(0,0,0,0.35);
    width: 250px;
    min-width: 250px;
    flex-grow: 0;
    box-sizing: border-box;
    padding: 15px;
    background-color: rgba(0,0,0,0.35);
}
.content {
    max-height: 100%;
    flex-grow: 1;
    box-sizing: border-box;
    padding:15px;
    background-color: rgba(50,50,50,0.95);
    /*font-family: 'Roboto', sans-serif;*/
    overflow: hidden;
}
.content .btn, .content .badge {
    font-family: 'Roboto', sans-serif;
}

.ellipsis{
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
/********* FORM BLOCK ***********/


.input-icon {
    position: absolute;
    color: #444;
    display: inline-block;
    right: 5px;
    top:5px;
}

.form-block {
    max-width: 60%;
    min-width: 360px;
    margin: 0 auto;
    padding-top: 5rem;
}

.form-block .form-control {
    font-family: 'Arial', sans-serif;
}

.error-block {
    width:100%;
}
.label-radio {
    padding-left: 10px;
}
/************ HEADINGS*************/

.page-header{
    display: flex;
    justify-content: center;
    align-items: center;
    transform: scaleX(1.25);
}

.page-header .page-title {
    font-size: 4rem;
    font-weight: normal;
    display: block;
    text-align: center;
}

.page-header .page-subtitle {
    display: inline-block;
    font-size: 1.4rem;
    text-align: left;
    align-self: flex-end;
    padding-bottom: 0.95rem;
    white-space: pre-wrap;
}
.page-header .page-subtitle p {
    margin: 0;
}

/*************END HEADINGS************/

/********** MENU ******************/

.logout {
    text-align: center;
    padding: 0 0 15px 0;
}

.current-user {
    /*overflow-x: hidden;*/
    overflow: hidden;
    white-space: nowrap;
    color:#FFFFFF;
    position: relative;

}

.current-user-name {
    padding-left: 10px;
}

.margin-left-10 {
    margin-left: 10px;
}

.h-250{
    height: 250px;
}
/**************** BLOCKS ****************/

.block-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    position: relative;
}

.block-container > div {
    flex-shrink: 1;
    flex-grow:1;
    margin: 5px 0.5%;
    box-sizing: border-box;
    overflow: hidden;
}

.block-container > div > a {
    text-decoration: none;
    color: #fafafa
}

.block-container .box1 {
    flex-basis: 100%;
}

.block-container > .box1 {
    display: flex;
    width: 100%;
}

.block {
    display: block !important;
}

.block-container .box2 {
    flex-basis: 49%;
}

.block-container .box3 {
    flex-basis: 32%;
}

.block-container .box4 {
    flex-basis: 24%;
}

.block-container .box5 {
    flex-basis: 19%;
}

.box-right {
    align-items: flex-end;
}
/*********CHART***********/
#osChart {
    background: #fafafa;
}
.chart-block {
    position: relative;
    height: 33vw;
    width: 100%;
    box-sizing: border-box;
}

/******OTHER DEFINITIONS*****/
.hide {
    display: none;
}

.link-white a{
    color: #fefefe;
}

.event-message {
    word-break: break-word;
}

.journal-message {
    position: relative;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100px;
}

.table-journal {

}

.date-journal {
    position:relative;
}
.date-journal:hover::after {
    content: attr(data-info);
    position: absolute;
    background-color: #333333;
    color: #FAFAFA;
    padding: 5px;
    border: 1px solid #fafafa;
    bottom:0;
    left:0;
    white-space: pre;
}

.user-data {
    position: relative;
}
.user-data:hover::after {
    content: attr(data-info);
    position: absolute;
    background-color: #333333;
    color: #FAFAFA;
    padding: 5px;
    border: 1px solid #fafafa;
    bottom:0;
    right:0;
    white-space: nowrap;
}

.event-message pre {
    color: #fafafa;
}

/* TICKETS */

.ticket-in-list:hover {
    opacity: 0.75;
    cursor: pointer;
}

.ticket-title {
    display: block;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    flex-grow: 1;
    color: #ffffff;
}

.users-found-list {
    display: block;
    position: absolute;
    z-index: 1;
    width: 100%;
    left: 0;
    top: 50px;
    border-radius: 5px;
    background: #fafafa;
    color: #333333;
    padding: 15px
}

.user-found {
    cursor: pointer;
    padding: 5px;
    white-space: nowrap;
    overflow-x: hidden;
    text-overflow: ellipsis;
    border-radius: 5px;
}
.user-found:hover {
    background: #cecece;
}

.files-container{
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-content: flex-start;
    align-items: flex-start;
}

.add-file {
    cursor: pointer;
    width: 48px;
    height: 48px;
    display: inline-block;
    background-color: aliceblue;
    border-radius: 10px;
    background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAACJElEQVRoQ+2ar08cQRTHv98ESWUFqBpU62oO0dCa/lBgMHUgICGBBNPWFeqoalrRFAGyAlMUUNNLMBgcqJpT8AdgSb7Nu+yR63J7+2ZzN7ub7Ki75M2+72e+s2/mZo4AIGkSwG8As/a9hLZNcqtIXiYAzwH8KfKAEfYpBFElABuLYIiqAQRDVBEgCKKqAG4ID8A2gPYIX1areHsAHjqe+YXk5rC4XACS3ZhRNklW8azyedpPkm+zAusAYNr3SS4PgqgLgGn/TnItDVEnANN+752oG4BB7JD80HOijgCm/RPJj/ahrgCm/QXJdgPgKeTpmMB1ICtFqQ7Y3n/OAT9ssSsPwCG8GyJp2O+U8QNIetOtFOSRV/SA6aaMvuMFkPQEwFmSvEXyogiEpPgAkiYAnAJoJaIN5BnJ21CIsgB+AFhJid0luVp5AEnrAL5mCN0g+S0EIqoDkl4BOM4R+JrkiRciGoCkR8nZ0kyOuL8AXpLseCBiAvwCMO8RBeCQ5IInNgqApB0A7zyC+mI+k3yf1ycWwD4Am0K9lrUF6D8c6JBcqgRAvwhJUwCuMoRNk7zOE516XikL2cCkRU44okwh7/6lAfh/pMa3mcuyvXGgccBZ/5op1DdQZZXRRQCPU4ZdkjxwmngXVgpAqMhh8Q1AkdpdKQfs6nPEV0whfLar7R7iDmi+lTgkW+TYBiDygN9L1zhQKQceJP9WeVq2Kmf+8+SG5uYfeZ3bQLh6ExkAAAAASUVORK5CYII=')
}

#uploadfile{
    display:none;
}

.bg-priority-0,.bg-priority-1,.bg-priority-2,.bg-priority-3,.bg-priority-4 {
    border-radius: 5px;
}

.bg-priority-0 {
    background-color: #ecf0f1;
    background: linear-gradient(90deg, rgba(236,240,241,100) 0px, rgba(236,240,241,100) 10px, rgba(102,102,102,100) 11px,rgba(102,102,102,100) 100%);
}
.bg-priority-1 {
    background-color: #95a5a6;
    background: linear-gradient(90deg, rgba(166,170,171,100) 0px, rgba(166,170,171,100) 10px, rgba(102,102,102,100) 11px,rgba(102,102,102,100) 100%);
}
.bg-priority-2 {
    background-color: #f1c40f;
    background: linear-gradient(90deg, rgba(241,196,15,100) 0px, rgba(241,196,15,100)  10px, rgba(102,102,102,100) 11px,rgba(102,102,102,100) 100%);
=
}
.bg-priority-3 {
    background-color: #e67e22;
    background: linear-gradient(90deg, rgba(230,126,34,100) 0px, rgba(230,126,34,100) 10px, rgba(102,102,102,100) 11px,rgba(102,102,102,100) 100%);
}
.bg-priority-4 {
    background-color: #e74c3c;
    background: linear-gradient(90deg, rgba(231,76,60,100) 0px, rgba(231,76,60,100) 10px, rgba(102,102,102,100) 11px,rgba(102,102,102,100) 100%);
}


/* ONLINE SUPPORT*/

.os-container {
    display: flex;
    flex-direction: row;
    position: relative;
    justify-content: stretch;
    min-height: 100%;
    max-height: 80vh;
    font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;
    gap: 10px;
}


.os-main {
    background-color: #111e25;
    flex-grow:1;
    background-image: url(../images/tgback.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    border-radius: 5px;
    display: flex;
    justify-content: stretch;
    max-width: 75%;
    overflow: hidden;
}

.os-aside {
    width: 25%;
    margin-left: auto;
    display: flex;
    flex-direction:column;
    /*min-height: 50%;*/
    overflow-y: auto;
    gap: 10px 0;
}

.os-aside > div {
    border-radius: 5px;
    gap: 10px 0;
    margin-right: 10px;
}

.os-aside-title {
    padding: 20px;
    text-transform: uppercase;
    display: flex;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
}

.os-aside-block {
    display: flex;
    flex-direction: column;
    /*overflow: hidden;*/
    /*flex: 2 2 10em;*/
}

.os-grow {
    flex: 0 1 200px;
    height: fit-content;
}

.os-myusers {
    /*overflow-y: auto;*/
}

.os-nocsusers {
    /*min-height: min-content;*/
    /*overflow-y: auto;*/
}


.os-dialog {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    border-radius: 5px;
}

.os-uinfo {
    display: flex;
    align-items: center;
    padding: 10px;
    background-color: rgba(0,0,0, 0.75);
    border-radius: 5px;
}

.os-uinfo > div {
    padding: 10px;
}

.os-uinfo > div:last-child {

}

.os-uinfo-details {
    display: flex;
    flex-direction: column;
}
.os-info-last {
    margin-left: auto;
}

.os-messages {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    overflow-y: auto;
    max-height: 80vh;
}

.os-messages > :first-child {
    margin-top: auto;
}

.os-message {
    max-width: 70%;
    /*padding: 5px 5px;*/
    color: #000000;
    background-color: #eAeAea;
    margin: 5px;
    border-radius: 10px;
    word-break: break-word;
    display: flex;
    flex-direction: column;
    position: relative;
    justify-content: space-between;
    flex-wrap: wrap;
    box-sizing: content-box;
    box-shadow: 0 3px 10px rgb(0, 0, 0);
}
.os-message-body {
    display:flex;
    flex-direction: row;
    flex-wrap: nowrap;
}
.os-message.left {
    margin-right: auto;
}
.os-message.right{
    margin-left: auto;
    background-color: #cbeba7;
}
.os-message.system{
    align-self: center;
    color: #FFFFFF;
    text-align: center;
    background-color: rgba(0,0,0,0.75)
}
.os-message.system.white{
    color: #000000;
    background-color: rgba(255,255,255,0.75)
}

.os-message-text {
    padding: 5px 10px;
    word-break: break-word;
    flex-grow: 1;
}

.os-message-time {
    white-space: nowrap;
    align-self: flex-end;
    font-size: 0.75em;
    margin-left: auto;
    border-radius: 100px;
    padding: 5px 10px;
}

.os-last-message-time {
    white-space: nowrap;
    font-size: 0.75em;
    padding: 5px 0;
}

.os-message-time.os-time-absolute{
    position: absolute;
    bottom: 10px;
    right: 10px;
    color: #FFFFFF !important;
    background-color: rgba(0,0,0,0.75);
    padding: 0px 3px;
}
.os-message.left .os-message-time {
    color: #777a72;
}
.os-message.right .os-message-time {
    color: #658c3a;
}

.os-message-image {
    /*background-position: center;
    background-size: cover;
    background-color: rgba(0,0,0,0.75)*/
}
.os-message-thumb, .os-message-thumb video {
    flex-grow: 1;
    display: flex;
    border-radius: 10px;
}

.os-message-thumb-over{
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    color: rgba(0,0,0,0.25);
    background-color: rgba(0,0,0,0);
    transition: backgroung-color 0.4s, color 0.4s;
}

.os-message-thumb-over:hover{
    color: rgba(255,255,255,0.95);
    background-color: rgba(0,0,0,0.5);
}

.os-message-attachment {
    min-width: 250px;
    display: flex;
    flex-direction: row;
    border-radius: 10px;
    background-color: rgba(0,0,0,0.1)
}

.os-message-attachment-button{
    border-radius: 10px;
    display: flex;
    min-width: 50px;
    min-height: 50px;
    font-size: 32px;
    align-items: center;
    justify-content: center;
    background-color: #666666;
    color: #AAAAAA;
    transition: 0.4s;
    margin:10px;
}
.os-message-attachment-button:hover{
    background-color: #000000;
    color: #FFFFFF;
}
.os-message-attachment-text{
    display:flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    word-break: break-word;
    padding-right: 10px;
}

.os-message-attachment-filename{
    font-weight: bold;
    font-size: 17px;
}
.os-message-attachment-size{
    font-size: 14px;
}

.os-emoji {
    font-size: 36px;
}

.os-bottom-block {
    display: flex;
    flex-direction: row;
    padding: 15px 0;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    position: relative;
}

.os-input-block {
    display: flex;
    width: 70%;
    background-color: #FFF;
    border-radius: 10px;
    align-items: center;
}

.os-input-left{
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    flex-grow: 1;
    align-items: center;
    padding: 15px;
}


.os-textarea, .os-textarea:active {
    border: none;
    outline: none;
    color: #333333;
    height: 21px;
    resize: none;
    width: 100%;
    font-size: 1.2rem;
    overflow-y: auto;
}

.os-textarea-block {
    padding:5px;
    border-radius: 10px;
    border: 2px solid #1ca1e8;
    flex-grow: 1;
}

.os-textarea.os-scroll::-webkit-scrollbar-track
{
    width: 3px;
    background-color: rgba(0,0,0,0.0);
}

.os-textarea.os-scroll::-webkit-scrollbar
{
    width: 3px;
    background-color: rgba(0,0,0,0.0);
}

.os-textarea.os-scroll::-webkit-scrollbar-thumb
{
    border-radius: 5px;
    background-color: rgba(0,0,0,0.2);;
}
.os-textarea:hover.os-scroll::-webkit-scrollbar-thumb
{
    border-radius: 5px;
    background-color: rgba(0,0,0,0.3);;
}
.os-textarea:hover.os-scroll::-webkit-scrollbar
{
    border-radius: 5px;
    background-color: rgba(0,0,0,0.1);;
}



.os-attach {
    font-family: "IcoMoon";
    font-size: 20px;
    padding: 4px;
    width: 36px;
    height: 36px;
    color: #777a72;
}
.os-attach::before {
    content:"\e9cd"
}

.os-bottom-left{
    background-color: #FFF;
    border-radius: 100px;
    width: 50px;
    height: 50px;
    color: #777a72;
    display: flex;
    align-items: center;
    justify-content:center;
    margin-right: 10px;
}

.os-bottom-left:hover {
    background-color: #4c90e6;
    color: #FFFFFF;
}

.os-edit-button::before {
    font-family: "IcoMoon";
    content:"\ea0f"
}

.os-bottom-right{
    background-color: #FFF;
    border-radius: 100px;
    width: 50px;
    height: 50px;
    color: #777a72;
    display: flex;
    align-items: center;
    justify-content:center;
    margin-left: 10px;
}

.os-bottom-right:hover {
    background-color: #4c90e6;
    color: #FFFFFF;
}

.os-send-button {
    font-family: "IcoMoon";
    font-size: 28px;
    padding: 4px;
}
.os-send-button::before {
    content:"\ea95"
}

.os-icon {
    font-family: "IcoMoon";
    font-size: 28px;
    padding: 4px;
}

.os-icon-download::before {
    content:"\e95e"
}
.os-icon-video::before {
    content:"\e913"
}
.os-icon-photo::before {
    content:"\e90d"
}
.os-icon-settings::before {
    content:"\e994"
}
.os-icon-close::before {
    content:"\ea0f"
}
.os-icon-plus::before {
    content:"\ea0a"
}
.os-icon-minus::before {
    content:"\ea0b"
}
.os-icon-file::before {
    content:"\e927"
}
.os-icon-map::before {
    content:"\e94b"
}
.os-icon-marker::before {
    content:"\e947"
}
.os-icon-qr::before {
    content:"\e938"
}
.os-icon-user::before {
    content:"\e971"
}
.os-icon-dialog::before {
    content:"\e96c"
}
.os-icon-mail::before {
    content:"\ea86"
}

.os-new-messages {
    display: inline-block;
    margin-right: 5px;
    background-color: #ed4021;
    border-radius: 10px;
    color: #ffffff;
    min-width: 15px;
    font-size: 11px;
    text-align: center;
}

.os-user {
    padding: 10px;
    background-color: rgba(255,255,255,0.1);
    border-radius: 5px;
    margin-bottom: 2px;
    position: relative;
    cursor: pointer;
    transition: background-color 0.5s, color 0.5s;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
}
.os-user:hover {
    background-color: rgba(255,255,255,0.95);
    color: #000000;
}

.os-all-dialogs {
    display: grid;
    grid-template-columns: repeat(auto-fit,calc((100%/3) - 1rem * (2/3) ));
    /*flex-direction: row;
    flex-wrap: wrap;*/
    gap: 1rem;
}
.os-all-dialogs .os-user {
    margin-bottom: 0;
}

.os-user.active {
    background-color: #4c90e6;
}

.os-user.new::after {
    display:block;
    content:"";
    position: absolute;
    left: 5px;
    top:5px;
    height: 7px;
    width: 7px;
    background-color:#ed2626;
    border-radius: 100px;
}
.os-avatar {
    background-size: cover;
    border-radius: 100px;
    display: inline-block;
    margin-right: 10px;
}
.os-dialog .os-avatar {
    min-width: 72px;
    min-height: 72px;
}
.os-user .os-avatar {
    min-width:48px;
    min-height:48px;
}
.os-user .os-username {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.os-scroll::-webkit-scrollbar-track
{
    border-radius: 10px;
}

.os-scroll::-webkit-scrollbar
{
    width: 7px;
    background-color: rgba(255,255,255,0.2);
    border-radius: 10px;
}

.os-scroll::-webkit-scrollbar-thumb
{
    border-radius: 5px;
    background-color: rgba(255,255,255,0.3);;
}

.os-scroll:hover::-webkit-scrollbar-thumb
{
    border-radius: 5px;
    background-color: rgba(255,255,255,0.8);
}
.os-scroll:hover::-webkit-scrollbar
{
    cursor: pointer;
    background-color: rgba(255,255,255,0.3);
}

/* OS MODAL*/

.os-modal{
    background-color: rgba(0,0,0,0.7);
    position:fixed;
    top:0;
    right:0;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.os-modal .os-control {
    position: absolute;
    top: 30px;
    right: 30px;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
}
.os-modal .os-modal-content {
    max-width: 80vw;
    max-height: 80vh;
    position: relative;
}

.os-modal-back {
    position: absolute;
    z-index: -1;
    top: 0;
    left: 0;
    width:100%;
    height: 100%;
    background: none;
}

.os-modal-content img, .os-modal-content video{
    max-width: 80vw;
    max-height: 80vh;
}
.os-modal-send {
    background-color: #FAFAFA;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
}

.os-modal-send-block {
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 320px;
    max-width: 500px;
    color: #000000;
}
.space-between {
    justify-content: space-between;
}

.break-word {
    word-break: break-word;
}
.os-modal-send img {
    border-radius: 10px;
}

.flex-row {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.alert-block {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 1em;
    right: 0;
}

.alert-message {
    display: flex;
    flex-direction: row;
    align-items: center;
    min-width: 250px;
    max-width: 320px;
    margin: 5px 0;
    background-color: #eb2a2a;
    color: #FFFFFF;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
    box-shadow: 1px 1px 3px rgba(0,0,0,0.5);
    padding: 10px;
    border-radius: 10px 0 0 10px;
}

.alert-message span {
    word-break: break-word;
}

.os-unicorn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
}
.os-unicorn img {
    max-width: 320px;
}
.os-unicorn > div {
    display:flex;
    align-items: center;
    justify-content: center;
}

/********************** MAILER ********************/

.mail-wrapper{
    background-color: #FFFFFF;
    color: #000000;
    border-radius: 10px;
}
.mail-editor {
    padding: 0 10px;
    height: 300px !important;
}

.rq-editor .ql-editor {
    background-color: white;
    min-height: 20em; /* или например 200px */
    color: black; /* если нужно явно задать */
}

/*....*/

.no-wrap-div {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
}

.black {
    color: #000000;
}

.listen-block {
    max-height: 800px;
    overflow-x: auto;
}

table a, table a:link, table a:visited, table a:hover {
    color:#ffffff;
}

.over-scroll {
    overflow-x: auto;
}

.debugger {

}

.debugger > .date {
    display: inline-block;
    width: 6em;
    font-weight: bold;
}

.debugger > .proc {
    display: inline-block;
    width: 8em;
    font-weight: bold;
    color: #ff0000
}

.cursor-pointer {
    cursor: pointer;
}

.debugger > .msg {
    display: inline;
    word-break: break-word;
}

#map {
    color: #333333;
}

/*Floating Windows*/
.config-elem-details {
    min-width: 300px;
    max-width: 350px;
}

.tagColor {
    display: inline-block; margin: 0 5px;
    width: 15px;
    height: 15px;
    border-radius: 10px;
}


/********FIRMWARES STYLES**********/

.prior-bg-1 {
    background-color: #ff0000;
}

.prior-bg-2 {
    background-color: #d215ff;
}

.prior-bg-3 {
    background-color: #000000;
    color: #fafafa;
}

.prior-bg-4 {
    background-color: #feff00;
    color: #000000;
}

.prior-bg-10 {
    background-color: #0073ff;
    color: #FFFFFF;
}

/************SWITCH*************/

.switch {
    display: inline-block;
    position: relative;
    padding:5px;
    width: 50px;
    height: 20px;
    background: transparent;
    transition: 0.4s;
}

.switch:before {
    content: '';
    position: absolute;
    display: block;
    box-shadow: 0 0 2px 0px #333333;
    z-index: 1;
    width: 80%;
    height: 10px;
    top: calc(50% - 5px);
    left: 10%;
    background: grey;
    border-radius: 20px;
    transition: 0.4s;
}

.switch:after {
    content: '';
    cursor: pointer;
    position: absolute;
    display: block;
    box-shadow: 0 0 3px 1px #333333;
    width:20px;
    height:20px;
    left: calc(9%);
    z-index: 1;
    top: calc(50% - 10px);
    background: grey;
    border-radius: 100%;
    transition: 0.4s;
}

.switch.true:after {
    background: #a2f300;
    left: calc(91% - 20px);
    transition: 0.4s;
}

.switch.true:before {
    background: #a2f300;
    transition: 0.4s;
}

/************LOADING**************/

.loading {
    position: absolute;
    z-index: 1000;
    width: 100%;
    height: 100%;
    min-height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(0,0,0,0.5);
    top: 0;
    left:0;
}

.loading-box {
    display: block;
    position: relative;
    width: 64px;
    height: 64px;
    margin: 0 auto
}


.loading-icon {
    display: inline-block;
    width: 0px;
    height: 0px;
    margin: 0;
    position: absolute;
}
.loading-icon:after {
    content: " ";
    display: block;
    width: 64px;
    height: 64px;
    margin: 1px;
    border-radius: 50%;
    border: 5px solid #fff;
    border-color: #fff transparent #fff transparent;
    animation: loading-ring 1.8s linear infinite;
}

.loading-icon2 {
    display: inline-block;
    width: 0px;
    height: 0px;
    margin: 7px;
    position: absolute;
}
.loading-icon2:after {
    content: " ";
    display: block;
    width: 48px;
    height: 48px;
    margin: 1px;
    border-radius: 50%;
    border: 5px solid #fff;
    border-color: #fff transparent #fff transparent;
    animation: loading-ring-back 1.2s linear infinite;
}

.loading-icon3 {
    display: inline-block;
    width: 0px;
    height: 0px;
    margin: 15px;
    position: absolute;
}
.loading-icon3:after {
    content: " ";
    display: block;
    width: 32px;
    height: 32px;
    margin: 1px;
    border-radius: 50%;
    border: 5px solid #fff;
    border-color: #fff transparent #fff transparent;
    animation: loading-ring 0.6s linear infinite;
}
@keyframes loading-ring {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes loading-ring-back {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(-360deg);
    }
}


/************ LOADING END**************/

.toasts-block {
    position: fixed;
    bottom:100px;
    left:10%;
    display: flex;
    justify-content: flex-end;
    flex-direction: column;
    box-sizing: border-box;
    width: 80%;
    margin: 0 auto;
    z-index: 1000;
}

.toast {
    width: 100%;
    margin: 10px 0;
    padding: 10px 20px;
    border-radius: 5px;
    background: rgba(0,0,0,0);
    color: rgba(0,0,0,0);
    animation-duration: 5s;
    animation-name: showtoast;
    animation-iteration-count: 1;
    text-align: center;
    word-wrap: break-word;
}

@keyframes showtoast {
    0% {
        background: rgba(0,0,0,0);
        color: rgba(0,0,0,0);
    }
    20% {
        background: rgba(0,0,0,0.85);
        color: rgba(240,240,240,1);
    }
    80% {
        background: rgba(0,0,0,0.85);
        color: rgba(240,240,240,1);
    }
    100% {
        background: rgba(0,0,0,0);
        color: rgba(0,0,0,0);
    }
}



/************ MEDIA QUERIES**********/
@media screen and (max-width: 1280px) {

    .block-container .box3 ,
    .block-container .box4 {
        flex-basis: 49%;
    }

}

@media screen and (max-width: 1166px) {
    .hidden-medium {
        display: none;
    }
    .os-container {
        flex-direction: column;
        max-height: fit-content;
    }
    .os-aside,.os-main {
        width: auto;
        margin-left: 0;
    }
    .os-main {
        min-height: 80vh;
        max-height: 90vh;
        max-width: 100%;
    }
    .os-aside-block{
        flex: 0 0 auto;
    }
    .os-uinfo {
        flex-wrap: wrap;
    }

    .os-all-dialogs {
        grid-template-columns: repeat(auto-fit,calc((100%/2) - 1rem * (1/2) ));
    }

}

@media screen and (max-width: 900px) {
    .ul-menu {
        flex-wrap: wrap;
    }
    .li-menu-item {
        flex-basis: 100%;
    }
    .biglogo img {
        width: 100%;
        height: auto;
    }
    .sidebar {
        width: auto;
    }
    .page-wrapper {
        flex-direction: column;
        margin: 0 0.5em
    }

    .chart-block{
        height: 300px;
    }

    .block-container .box1,
    .block-container .box2 ,
    .block-container .box3 ,
    .block-container .box4 {
        flex-basis: 100%;
    }

    .os-all-dialogs {
        grid-template-columns: repeat(auto-fit,calc((100%) - 1rem));
    }

}


