/* DASHBOARD */
/*************/

#dashboard-main {
   margin-right:316px;

   .two_fa_notidication {
        width: calc(100% - 95px);
        max-width: 900px;
        margin: 16px 0;
   }
}

#dashboard-side {
    float: right;
    width:286px;
    vertical-align:top;
}

.sortable *{
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

ul.sortable {
    list-style: none;
}

.sortable li {
    display:inline-block;
    vertical-align:top;
    float:left;
    position:relative;
}

.handle {
    position: absolute;
    top: 9px;
    right: 4px;
    z-index: 3;
    padding: 2px 5px 10px 9px;
    background: #fff;
    height: 35px;
    opacity: 0;
    i {
        color: #4F5665;
        padding: 3px 5px;
        border-radius: 2px;
    }
    .bi-x {
        font-size: 21px;
        padding: 2px;
        cursor: pointer;
    }

    .bi-clipboard-data {
        font-size: 17px;
    }

    i:hover {
        background: #EEEFF0;
    }

    i.bi-arrows-move {
        cursor: move;
    }

}

.sortable li:hover .handle {
    opacity: 1;
}

.widget-placeholder {
    background: #f7f7f7;
    height:264px;
    width: 218px;
    margin:0 26px 26px 0;
    border-radius: 10px;
}

.widget, .widget-panel {
    border: 1px solid #E6E9F3;
    border-radius:10px;
    position:relative;
    cursor:pointer;
    overflow:hidden;
    box-sizing:content-box;
    .transition(0.2s ease-out all);
    margin: 0 26px 26px 0;
    background: @contentBackground;
    width: 214px;
}

.widget-medium {
    width:458px;
}

.hc-wrapper {
    height: 214px;
    width: 458px
}

.widget.empty {
    height: 264px;
    border: 2px dashed #E3E8ED;
    box-sizing:border-box;
    display:inline-block;
    float:left;
    p {
        position: relative;
        top: 45%;
        margin: auto;
        text-align: center;
        font-size: 20px;
    }
    .btn-transparent {
        font-weight: 500;
        font-size: 16px;
        color: @CFE_blue;
    }
    &:hover {
        background: @Gray50;
    }
}


.widget-overlay {
    z-index:2;
    opacity:0;
    position:absolute;
    top:47x;
    bottom:0;
    left:0px;
    right:0;
    padding:20px 30px;
    background-color:rgb(255,255,255,0.2);
    .transition(0.2s ease-out all);

    p {
        opacity:0;
        padding-bottom: 4px;
        .transition(0);
    }
}
.singleAlert {
    position: relative;
    text-align: center;
    &-summary {
        max-width: 170px;
        font-weight: 500;
        font-size: 16px;
        line-height: 140%;
        color: @Gray600;
        span {
            font-weight: 700;
            font-size: 14px;
            line-height: 16px;
        }
    }
    &.high {
        .singleAlert-summary {
            color: @Red600;
        }
    }

    &.ok {
        .singleAlert-summary {
            color: #45B26B;
        }
    }
    .widget-overlay {
        height: 100%;
        width: 100%;
        display: none;
        text-align: center;
        opacity: 0.97 !important;
        > div {
            position: absolute;
            top:50%;
            left: 50%;
            transform: translate(-50%, -50%);
            font-style: normal;
            font-weight: 500;
            font-size: 16px;
            line-height: 140%;
            color: @CFE_light_blue;
        }
    }
    &:hover {
        .widget-overlay {
            display: block;
        }
    }
}

i.icon-circle.severity {
    font-size:12px;
    margin-right:12px;
    &.low {
        color:#FFD934;
    }
    &.medium {
        color:#FF903C;
    }
    &.high {
        color:#E53116;
    }
}


.widget:hover,
.widget.hover {
    -webkit-box-shadow: 0 0 15px 0 #ececec;
    -moz-box-shadow: 0 0 15px 0 #ececec;
    -o-box-shadow: 0 0 15px 0 #ececec;
    box-shadow: 0 0 15px 0 #ececec;

    .transition(0.1s ease-out all);

    -webkit-transform: scale(1.03);
    -moz-transform: scale(1.03);
    -o-transform: scale(1.03);
    transform: scale(1.03);

    .blur {
        opacity:0.4;
        -webkit-filter:blur(4px);
        -moz-filter:blur(4px);
        -o-filter:blur(4px);
        -ms-filter:blur(4px);
        filter:blur(4px);
    }

    .widget-overlay {
        opacity: 0.9;
        p {
           opacity:1;
        }
    }
}

.widget div.small-alert-text {
    width:50%;
    display:inline-block;

    .alert-text {
        font-weight:bold;
        font-size:20px;
    }

    span {
        color: #777;
        font-size:14px;
        font-weight:normal;
        text-align:center;
    }
}

.widget .header {
    border-bottom:1px solid #e3e3e3;
    border-top:none;
    padding-left: 16px;
    padding-right: 13px;
    position:relative;
    height:46px;
    overflow: hidden;
    display: flex;
    align-items: center;

     h4 {
        margin:8px 0;
        white-space:nowrap;
        padding:2px;
        width:100%;
        overflow:hidden;
        text-overflow:ellipsis;
        vertical-align:text-top;
        color: @textColor;
        font-weight: 500;
        font-size: 16px;
    }

    h4.editable {
        cursor: text;
    }

    &:hover h4.editable {
        background-color: #f7f7f7;
        .transition(0.2s ease-out all);
    }

    input[type="text"] {
        width: 172px;
        padding: 0 8px;
        height: 32px;
        border: 1px solid #E5E5E5;
        margin-bottom: 0;
        border-radius: 4px;
        -moz-box-sizing:content-box;
        box-sizing:content-box;
        cursor: pointer;
        &:hover {
            border-color: #274BA7;
        }
    }
}

.chosen-container.chosen-container-single .chosen-single {
    div {
        b {
            background-image: none !important;
            &:before {
                display: inline-block;
                font-family: bootstrap-icons;
                content: "\f282"; // chevron-down
                margin-top: 8px;
                margin-left: -5px;
            }
        }
    }
}
div.chosen-container-active.chosen-with-drop .chosen-single {
    background: white;
    background-image: none;
    box-shadow: none;
    div {
        b {
            background-image: none !important;
            &:before {
                content: "\f286"; // chevron-up
            }
        }
    }
}

.chosen-container .chosen-drop {
    border: 1px solid #E5E5E5 !important;
    color: @textColor !important;
}

.chosen-results {
    li {
        display: block;
        width: 100%;
    }
    .highlighted {
        background: #F5F6FA !important;
        color: @textColor !important;
    }
}

span.percentage {
    font-size: 34px;
    padding-top:16px;
    font-weight:700;
    display: block;
    line-height:1.1em;
}

span.hosts {
    font-size:14px;
}

.no-fails {
    margin-top:16px;
    i {
        font-size: 50px;
        color: #45B26B;
        font-size: 26px;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }
}

.donut-text span {
    -webkit-animation: fadein 2s; /* Safari and Chrome */
       -moz-animation: fadein 2s; /* Firefox */
        -ms-animation: fadein 2s; /* Internet Explorer */
         -o-animation: fadein 2s; /* Opera */
            animation: fadein 2s;
}

.changes-container {
    .dash-loading {
        top: 132px;
        left: 203px;
    }
}

.donut-container {
    height:214px;
    width:214px;
    position:relative;

    .donut-low {
        border-radius:50%;
        position:absolute;
        height:194px;
        width:194px;
        top:10px;
        left:10px;
        border:7px solid #fff;
    }

    .donut-medium {

        border-radius:50%;
        position:absolute;
        height:162px;
        width:162px;
        top:26px;
        left:26px;
        border:7px solid #fff;
    }

    .donut-high {
        height:130px;
        width:130px;
        top:42px;
        left:42px;
        border-radius:50%;
        position:absolute;
        border:7px solid #fff;
    }

    .donut-background {
        background-color:#F7F7F7;
    }

    .donut-text {
        background-color:#fff;
        border-radius:50%;
        position:absolute;
        height:98px;
        width:98px;
        top:58px;
        left:58px;
        border:7px solid #fff;
        text-align:center;
    }
}

.donut-inner, .donut-fill, .clipper {
    position:absolute;
    width:100%;
    height:100%;
    top:0;
    left:0;
    border-radius:50%;

    .low {
        background-color: #FFD934;
        .transition(0.8s linear);
    }
    .medium {
        background-color: #FF903C;
        .transition(0.6s linear);
    }
    .high {
        background-color: #E53116;
        .transition(0.4s linear);
    }
}

.gt50 {
    clip:rect(auto, auto, auto, auto) !important;
}

.donut-low .clipper {
    clip: rect(0px 196px 196px 91px);
}

.donut-medium .clipper {
    clip: rect(0px 196px 196px 75px);
}
.donut-high .clipper {
    clip: rect(0px 196px 196px 60px);
}


// create widget

.widget-panel {
    cursor: pointer;
    padding: 20px;
    width: auto;
    height:180px;
    margin: 0;
    transition: none;

    &:hover {
        border: 2px solid @Blue500;
        padding: 19px;
    }

    img {
        margin-top: 30px;
    }

    &-img{
        background-repeat: no-repeat;
        height: 205px;
        margin-top: 30px;
        background-size: contain;
        &-alert {
            background-image: url(/images/widgets/alerts_widget.png);
        }
        &-single-alert {
            background-image: url(/images/widgets/single_alert_widget.png);
        }
        &-pie {
            background-image: url(/images/widgets/pie_widget.png);
        }
        &-table {
            background-image: url(/images/widgets/table_widget.png);
        }
        &-bar {
            background-image: url(/images/widgets/bar_widget.png);
        }
        &-gauge {
            background-image: url(/images/widgets/gauge_widget.png);
        }
        &-changes {
            background-image: url(/images/widgets/changes_widget.png);
        }
        &-new {
            background-image: url(/images/widgets/newly_bootstrapped_widget.png);
        }
        &-decommissioned {
            background-image: url(/images/widgets/decommissioned_widget.png);
        }
        &-files-changes {
            background-image: url(/images/widgets/files_changes_widget.png);
        }
        &-not-kept {
            background-image: url(/images/widgets/not_kept_widget.png);
        }
        &-compliance {
            background-image: url(/images/widgets/compliance_widget.png);
        }
    }
}

#alertWidgetForm {
    margin: 0 20px;
}

.widget-compliance {
    &-table {
        z-index: 10;
        position: absolute;
        top: 10px;
        right: 9px;

        a {
            font-style: italic;
            font-weight: 500;
            font-size: 14px;
            line-height: 16px;
            text-decoration: underline;
            color: @textColor;
            text-align: center;
            display: block;
            margin-top: 8px;
        }
        &.no-failures {
            top: 50%;
            transform: translateY(-100%);
            right: 70px;
        }
        .bi-exclamation-triangle-fill {
            color: #D74936;
        }
        .bi-exclamation-circle-fill {
            color: #FCC335
        }
    }
    table {
        border: none;
        line-height: 28px;
        font-size: 16px;
        tr, th {
            padding: 0 !important;
        }
        th {
            font-weight: bold;
            color: @textColor;
        }
        tbody {
            tr {
                &:nth-child(even) {
                    td {
                        background: @tableBorder;
                        &:first-child {
                            background: none;
                        }
                    }
                }
            }
        }
        td {
            &:last-child {
                text-align: right;
                padding-right: 8px;
            }
            &:nth-child(2) {
                max-width: 148px;
                white-space: nowrap;
                overflow: hidden;
                text-overflow: ellipsis;
            }
        }
    }
    &-all {
        font-style: italic;
        font-weight: 500;
        font-size: 16px;
        line-height: 24px;
        i {
            color: #45B26B;
            margin-right: 8px;
            display: inline-block;
        }
        margin-bottom: 8px;
    }
}

// Sidebar
#notifications {
    p {
        text-align:left;
        margin-top:2px;
    }

    i {
        vertical-align:middle;
        margin-left:8px;
        font-size:10px;
    }

    .dash-loading {
        position: relative;
        width:25px;
        height:25px;
        top:10px;
        left:83px;
        background-size: contain;
    }
}

#notifications h2 {
    margin:0 0 18px 0;
    padding:0;
    font-weight: bold;
    font-size: 21px;
    a {
        color:@textColor;
    }
    a:hover {
        text-decoration:none;
    }
}

.dashboard-list-item .dashname {
    margin-right: 55px;
    i.icon-globe {
        color: #a5a5a5;
    }
    span {
        white-space: nowrap;
    }
}

.dashboard-dropdown {
    &.dropdown-menu >li>a, td.dash-name > a {
        padding: 8px 12px;
        font-weight: 500;
        font-size: 13px;
        line-height: 16px;
    }
    .dashname {
        flex-grow: 1;
    }
}

.dashboard-list-item .dash-icons {
    float: right;
    margin-left: -50px;
    visibility: hidden;
    display: flex;
    align-items: center;
    margin-left: 3px;
    i {
        padding:1px;
        color: black;
        &:hover {
            color: black;
        }
        &.bi-x {
            font-size: 26px;
        }
    }
}

.shared-dashboards {
    width: 100%;
    .dash-icons {
        visibility: hidden;
        padding-right: 10px;
    }
    tr:hover .dash-icons {
        visibility: visible;
    }
    .dash-name {
        min-width: 160px;
    }
}

.dashboard-list-item:hover .dash-icons {
    visibility: visible;
}


// animations
@keyframes fadein {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Firefox */
@-moz-keyframes fadein {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Safari and Chrome */
@-webkit-keyframes fadein {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Internet Explorer */
@-ms-keyframes fadein {
    from { opacity: 0; }
    to   { opacity: 1; }
}


.hostTrend.widget, .decommissionedHostTrend.widget {
    .header {
        overflow: visible;
        h4 {overflow: inherit; width: auto; margin: 0px;}
        >input[type="text"] {
            height: 27px;
            float: left;
        }
        select, label > input {
            width: 77px;
            margin: 0px 10px 10px 0px;
            display: block;
            height: 20px;
        }
        select{
            height: 33px;
        }
        label > input {
            width: 180px;
        }
        label { margin-top: 5px;}

        .data-picker-label { margin-right: 26px; }
        .filter-wrapper {
            align-items: center;
            label, input, select {
                font-weight: 500;
                font-size: 14px;
                line-height: 16px;
                color: @textColor;
            }
            label {
                margin-right: 10px;
                margin-left: 5px;
            }
        }
    }
    .header {height:  100px;}

    .host-count-group {
        margin-right: 5px;
        .chosen-container{
          display: block;

        }
        .chosen-results li{
            width: 100%;
        }
    }
}

.addWidgetModal{
    .span6 {margin: 5px 5px 0px 0px; }
    &.modal-body {
        overflow: scroll;
        height: max-content !important;
        max-height: 70vh;
    }
    .tabs {
        border-bottom: 1px solid #EEEFF0;
        padding-bottom: 5px;
        a {
            color: @Gray500;
            font-weight: 500;
            font-size: 14px;
            line-height: 16px;
            text-decoration: none;
            padding: 5px 13px;
            &.selected {
                color: @Blue600;
                border-bottom: 2px solid @Blue600;
            }
        }
        &-content {
            > div {
                display: flex;
                justify-content: space-between;
                flex-wrap: wrap;
                > div {
                    width: 250px;
                    margin-bottom: 25px;
                }
            }
            h3 {
                color: @Gray900;
                font-weight: 500;
                font-size: 14px;
                line-height: 20px;
            }
            .disabled {
                h3 {
                    color: @Gray500;
                }
                img {
                    opacity: 0.5;
                }
            }
        }
    }
}

.inventory-widget-pie .highcharts-legend-item > span {
    width: 200px;
}

.widget-holder {
    min-height: 290px;
}

.app-badge {
    position: absolute;
    top: 2px;
    left: 8px;
    margin: 0px;
    height: 19px;
    border-radius: 4px;
    line-height: 19px;
    padding: 0 5px;
    transform: translateX(5%);
}
.form-horizontal .solidgauge {
    .control-label { width: 107px;}
    .controls {
        margin-left: 120px;
    }
}

.table-widget-wrapper {
    height: 214px;
    overflow-y: scroll;
}

.full-screen-widget {
  width: 100%;
  height: 100%;
  margin: 0px;
  padding: 0px;

  .table-widget-wrapper {
    min-height: 100vh;
  }

  &:hover {
    transform: scale(1);
  }

  .header {
    height: 75px !important;
  }
  .widget-overlay {
    top: 300px;
  }
}

.daterangepicker .drp-calendar {
    max-width: 330px !important;
}

.created-by {
    font-weight: 500;
    width: 72px
}
