/* Основные настройки */
[data-code="xthuwmuji9qfp82gmoigfctwmuyfqnc14ci5odfv"] > .card-widgets__widget__body  *{
    /* margin: 0;
    padding: 0; */
    box-sizing: border-box;
    /* border: 0;
    outline: none; */
}

.page{
    width: 100%;
}

.hide{
    display: none;
}

.btn{
    background: #0DB2B2;
    cursor: pointer;
    color: #FFFFFF;
    font-family: "Open Sans", sans-serif;
    font-weight: 600;
    font-size: 12px;
    border-radius: 4px;
    box-shadow: 0px 4px 4px 0px #00000040;
    padding: 5.5px 0;
    display: flex;
    justify-content: center;
    height: 28px;
}

.btn:hover{
    background: var(--accent, #0a9191);
}

.widget-block-header{
    padding: 0 10px;
    display: flex;
    margin-bottom: 12px;
    font-family: "Open Sans", sans-serif;
    font-weight: 700;
    font-size: 14px;
    justify-content: space-between;
    cursor: pointer;
}

.custom-tooltip{
    position: absolute;
    background-color: #333;
    color: #fff;
    font-family: "Open Sans", sans-serif;
    font-weight: 400;
    font-size: 10px;
    padding: 6px 8px;
    max-width: 100px;
    white-space: normal;
    z-index: 1000;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
    background: #595959;
    border-radius: 2px;
}

.custom-tooltip::after{
    content: "";
    position: absolute;
    top: 50%;
    right: -4px;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 4px solid #595959;
}

.loader, .loader:before, .loader:after {
    border-radius: 50%;
    width: 17px;
    height: 17px;
    animation-fill-mode: both;
    animation: bblFadInOut 1.8s infinite ease-in-out;
}
.loader {
    color: #FFF;
    font-size: 7px;
    position: relative;
    text-indent: -9999em;
    transform: translateZ(0);
    animation-delay: -0.16s;
    top: -17px;
}
.loader:before,
.loader:after {
    content: '';
    position: absolute;
    top: 0;
}
.loader:before {
    left: -3.5em;
    animation-delay: -0.32s;
}
.loader:after {
    left: 3.5em;
}

@keyframes bblFadInOut {
    0%, 80%, 100% { box-shadow: 0 2.5em 0 -1.3em }
    40% { box-shadow: 0 2.5em 0 0 }
}

.module-loader{
    width: 100%;
    text-align: center;
    padding: 10px;
    font-family: "Open Sans", sans-serif;
    font-weight: 600;
    font-size: 15px;
}

.widget-estimates, .widget-events, .widget-objects{
    position: relative;
}

.widget-block-body-in{
    
}

.btn-shake{
  animation: shake 0.6s infinite;
}

@keyframes shake{
  0% { transform: translateX(0); }
  20% { transform: translateX(-5px); }
  40% { transform: translateX(5px); }
  60% { transform: translateX(-5px); }
  80% { transform: translateX(5px); }
  100% { transform: translateX(0); }
}
    

/* Всплывающие эвенты */
.widget-black-bg{
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10;
}

.widget-black-bg-popup{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 195px;
    height: 85px;
    background: #FFFFFF;
    border-radius: 4px;
    padding: 16px 8px;
}

.widget-black-bg-popup-header{
    display: flex;
    font-family: "Open Sans", sans-serif;
    font-weight: 700;
    font-size: 12px;
    margin-bottom: 16px;
}

.widget-black-bg-popup-header > img{
    margin-right: 8px;
}

.widget-black-bg-popup-body{
    margin: auto;
    display: flex;
    width: fit-content;
}

.widget-black-bg-popup-body-btn{
    padding: 4px 8px;
    border-radius: 4px;
    font-family: "Open Sans", sans-serif;
    font-weight: 600;
    font-size: 12px;
    color: #FFFFFF;
    background: #0DB2B2;
    cursor: pointer;
}

.widget-black-bg-popup-body-btn-white{
    padding-left: 0;
    background: #FFFFFF;
    color: #0DB2B2;
}



/* Объекты */
.widget-block-header > img{
    transform: rotate(180deg);
}

.widget-block-header-open-layer{
    transform: rotate(0deg) !important;
}

.widget-header{
    display: flex;
    font-family: "Open Sans", sans-serif;
    font-weight: 700;
    font-size: 16px;
    padding: 15px 10px 12px;
    border-bottom: 1px solid #EAEAEF;
    cursor: pointer;
}

.widget-header > div{
    padding: 1px 6px;
}

.widget-objects{
    padding: 12px 0 0;
    border-bottom: 1px solid #EAEAEF;
}

.update-btn{
    margin: 0 12px 12px;
}

.widget-objects-object-header{
    padding: 4px 20px 4px 10px;
    display: flex;
    justify-content: space-between;
    font-family: "Open Sans", sans-serif;
    font-weight: 700;
    font-size: 12px;
    margin-bottom: 10px;
}

.widget-objects-object-header:hover{
    background: #D7EBEC;
}

.widget-objects-object-header > div{
    display: flex;
    cursor: pointer;
}

.widget-objects-object-header > div:hover{
    color: #0DB2B2;
}

.widget-objects-object-header > div > font{
    width: 6px;
    height: 6px;
    border-radius: 6px;
    margin-top: 6px;
    margin-left: 4px;
}

.widget-objects-object-header > img{
    cursor: pointer;
}

.widget-objects-object-body{
    padding: 0 10px;
    margin-bottom: 20px;
}

.widget-objects-object-body-block{
    display: flex;
}

.widget-objects-object-body-block > div{
    font-family: "Open Sans", sans-serif;
    font-weight: 400;
    font-size: 12px;
}

.widget-objects-object-body-block > div:first-child{
    color: #9BA6B2;
    flex-basis: 53px;
}

.widget-objects-object-body-block > div:last-child{
    color: #3E3E3E;
    flex-basis: calc(100% - 53px);
}

.new-object-btn{
    margin: 0 12px 12px;
}

/* Мероприятия */
.widget-events{
    border-bottom: 1px solid #EAEAEF;
}

.widget-events > .widget-block > .widget-block-header{
    padding: 12px 10px;
    margin-bottom: 0;
}

.widget-block-body-in-events{
    height: 315px;
    overflow-y: auto;
    margin-bottom: 12px;
}

.widget-events-event{
    margin-bottom: 14px;
}

.widget-events-event-header{
    padding: 4px 20px 4px 11px;
    display: flex;
    justify-content: space-between;
    font-family: "Open Sans", sans-serif;
    font-weight: 700;
    font-size: 12px;
    margin-bottom: 2px;
}

.widget-events-event-header:hover{
    background: #D7EBEC;
}

.widget-events-event-header-name{
    cursor: pointer;
}

.widget-events-event-header-name:hover{
    text-decoration: underline;
}

.widget-events-event-header-name > a{
    color: black;
    text-decoration: none;
}

.widget-events-event-header > div > img{
    cursor: pointer;
    margin-top: 3px;
}

.widget-events-event-header > div > img:first-child{
    margin-right: 12px;
}

.widget-events-event-body{
    padding: 0 10px;
}

.widget-events-event-body-block{
    display: flex;
}

.widget-events-event-body-block > div{
    font-family: "Open Sans", sans-serif;
    font-weight: 400;
    font-size: 12px;
}

.widget-events-event-body-block > div:first-child{
    color: #9BA6B2;
    flex-basis: 105px;
}

.widget-events-event-body-block > div:last-child{
    color: #3E3E3E;
    flex-basis: calc(100% - 105px);
    display: flex;
}

.widget-events-event-body-block > div:last-child > font{
    width: 6px;
    height: 6px;
    border-radius: 6px;
    margin-top: 6px;
    margin-right: 4px;
    display: block;
}

.widget-events-event-body-block-div-font-success{
    background: #52C41A;
}

.widget-events-event-body-block-div-font-error{
    background: #FF0000;
}

.widget-events-event-body-block-div-font-wait{
    background: #FF9700;   
}

.new-event-btn{
    margin: 0 10px 12px;
}

/* Сметы */
.widget-estimates > .widget-block > .widget-block-header {
    padding: 12px 10px;
    margin-bottom: 0;
}

.widget-block-body-in-estimates{
    height: 130px;
    overflow-y: auto;
    margin-bottom: 12px;
}

.widget-estimates-estimate{
    padding: 3px 17px 3px 10px;
    display: flex;
    justify-content: space-between;
    font-family: "Open Sans", sans-serif;
    font-weight: 400;
    font-size: 12px;
    margin-bottom: 4px;
}

.widget-estimates-estimate:hover{
    background: #D7EBEC;
}

.estimate-version{
    width: 22px;
}

.widget-estimates-estimate > div:nth-child(2){
    display: flex;
    width: 90px;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden; 
    text-overflow: ellipsis; 
}

.widget-estimates-estimate > div:nth-child(2) > a{
    color: black;
    text-decoration: none;
}

.widget-estimates-estimate > div:nth-child(2):hover{
    text-decoration: underline;
}

.widget-estimates-estimate > div:nth-child(2) > font{
    width: 6px;
    height: 6px;
    border-radius: 6px;
    margin-top: 6px;
    margin-right: 4px;
    display: block;
}

.widget-estimates-estimate-div-font-success{
    background: #52C41A;
}

.widget-estimates-estimate-div-font-error{
    background: #FF0000;
}

.widget-estimates-estimate-div-font-wait{
    background: #FF9700;
}

.widget-estimates-estimate > div:nth-child(3){
    display: flex;
    width: 92px;
}

.widget-estimates-estimate > div:nth-child(3) > img{
    margin-right: 10px;
    cursor: pointer;
}

.widget-estimates-estimate > div:nth-child(3) > img:last-child{
    margin-right: 0;
}

.new-estimate-btn{
    margin: 0 10px 12px;
}

.loader-test {
    width: 12px;
    height: 12px;
    border: 5px dotted #0DB2B2;
    border-radius: 50%;
    display: inline-block;
    position: relative;
    box-sizing: border-box;
    animation: rotation 2s linear infinite;
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
} 

.widget-events-event-p{
    padding: 4px 15px 4px 11px;
    font-family: "Open Sans", sans-serif;
    font-weight: 700;
    font-size: 12px;
    margin-bottom: 2px;
}