.widget {
    .font-default(13px, 18px);
    background: @theme-color-widget-background;
    border-radius: 8px;
    position: relative;
    border: 1px solid @theme-color-background-lowContrast !important;

    h2 {
        font-weight: normal;
        border-bottom: none;
        margin: 0;
        padding: 12px 10px 7px;
    }
    h3:where(:not(.reportHeader__title)) {
        font-weight: normal;
        font-size: 15px;
        margin: 0;
        color: @theme-color-text;
        text-shadow: none;
        padding: 22px 15px 16px 12px !important;
    }
    p {
        margin-left: 10px;
    }

    &.default {
        margin-left: 0;
        margin-right: 0;
        .widgetTop {
            cursor: default !important;
        }
    }

    .widgetTop {
        cursor: move;
        font-size: 10pt;
        font-weight: normal;
        border-radius: 8px;
        background: @theme-color-widget-title-background;

        h3:where(:not(.reportHeader__title)) {
            .font-default(20px, 24px);
            color: @theme-color-widget-title-text;
            padding: 20px !important;
        }
    }

    .widgetText {
        padding: 10px;
    }

    .pk-emptyDataTable {
        .font-default(13px, 16px);
        text-transform: none;
    }

    .widgetContent {
        .widgetBody {
            padding: 5px 12px 0;
        }

        /** We do not want to show a material-card in a widget which is already a card */
        .card {
            box-shadow: 0 0;
            padding: 0 10px;
            border: none;
            .card-content {
                padding: 0;
            }
        }
        .jqplot-graph {
            margin-top: 6px;
        }
        .sparkline {
            padding: 0 10px;
        }
    }

    .widgetContent.hidden {
        position: absolute;
        top: -5000px;
        height: 1000px;
        overflow: hidden;
    }
    .widgetContent.loading {
        opacity: 0.5;
        background: url(plugins/Morpheus/images/loading-blue.gif) no-repeat top right;
    }

    .widgetLoading {
        cursor: wait;
        text-align: center;
    }

    .widgetNameOffScreen {
        overflow: hidden;
        width:1px;
        height:1px;
    }

    .card {
        margin: 0;
        border-radius: 8px;
    }

    .datatableHeaderMessage, .datatableFooterMessage {
        padding-left: 12px;
    }
}

.widget table.dataTable tr td {
  background-color: @theme-color-widget-background;
}

.dataTable table.dataTable tr td {
  background-color: @theme-color-widget-background;
}

.bar-graph-colors[data-name=grid-background] {
    color: @theme-color-widget-background !important;
}

.widgetoverlay {
  .widget, .ui-dialog-content {
      position: static;
  }
}
