:root {
    --main-bg-color: #FFFFFF;
    --main-font-color: #73879C;
    --main-box-shadow: 1px 1px 8px rgba(0, 0, 0, 0.1);
    --aux-bg-color: #EEEEEE;
    --aux-font-color: #888888;
    --pop-box-border: 1px solid rgba(90, 115, 142, 0.2);
    --pop-box-hover: rgba(90, 115, 142, 0.2);
    --table-bg-color: #F9F9FB;
    --title-font-size: 22px;
    --title-font-weight: 500;
    --title-letter-spacing: 1.2px;
    --subtitle-font-size: 14px;
    --subtitle-font-weight: 400;
    --subtitle-border: 1px solid #DDDDDD;
    --header-action-font-color: #5A738E;
    --header-action-font-size: 12px;
    --header-action-font-weight: 300;
    --kpi-big-font-size: 32px;
    --kpi-big-font-weight: 400;
    --kpi-big-letter-spacing: 0.8px;
    --kpi-small-font-size: 10px;
    --kpi-small-font-weight: 100;
    --kpi-small-letter-spacing: 0.1px;
}


.opcm-about-logo {
    width: 128px;
    float: right;
    margin: -20px 8px 8px 20px;
    transition: opacity 1.4s ease-in;
}

.markdown ul{
    list-style: disc;
    margin-left: 20px;
}

.markdown h3 {
    margin: 40px 0 0 0;
}

.markdown blockquote {
    border-left: 4px solid rgba(0,0,0,.07);
    padding-left: 10px;
    margin-left: 20px;
}

.markdown blockquote p,
.markdown blockquote code {
    font-size: smaller !important;
}

.markdown pre code {
    display: block;
    padding: 14px;
    border-radius: 4px;
    padding-left: 36px;
}

.markdown code.language-console {
    background-color: #23282d;
    color:#AAAAAA;
}

.markdown code.language-bash {
    background-color: #23282d;
    color:#AAAAAA;
    padding-left: 36px;
}

@media (min-width: 783px) {
    .widefat.fixed.scripts .column-hit{
        width: 10%;
    }

    .widefat.fixed.scripts .column-memory{
        width: 15%;
    }

    .widefat.fixed.scripts .column-timestamp,
    .widefat.fixed.scripts .column-used{
        width: 20%;
    }

    .widefat.fixed.scripts .column-script{
        width: 50%;
    }
}

.opcm-row {
    margin-bottom: 10px;
    width: 100%;
}

.last-row {
    margin-top: -8px;
}

.opcm-box-full-line {
    display: inline-block;
    padding: 8px;
    background-color: var(--main-bg-color);
    border-radius: 2px;
    box-shadow: var(--main-box-shadow);
}

.opcm-box-40-60-line {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: stretch;
    padding: 8px;
    margin-bottom: -8px;
}

.opcm-40-module {
    flex-grow: 2;
    flex-shrink: 2;
    background-color: var(--main-bg-color);
    border-radius: 2px;
    box-shadow: var(--main-box-shadow);
    margin-left: -8px;
    margin-top: -8px;
    margin-right: 10px;
    padding: 8px;
    height:290px;
    width: 38%;
}

.opcm-60-module {
    flex-grow: 3;
    flex-shrink: 3;
    background-color: var(--main-bg-color);
    border-radius: 2px;
    box-shadow: var(--main-box-shadow);
    margin-right: -8px;
    margin-top: -8px;
    padding: 8px;
    width: 58%;
}

.opcm-box-33-33-33-line {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: stretch;
    padding: 8px;
}

.opcm-33-module {
    background-color: var(--main-bg-color);
    border-radius: 2px;
    box-shadow: var(--main-box-shadow);
    margin-top: -8px;
    padding: 8px;
}

.opcm-33-left-module {
    flex-grow: 1;
    margin-left: -8px;
    margin-right: 10px;
}

.opcm-33-center-module {
    flex-grow: 1;
    margin-left: 0px;
    margin-right: 0px;
}

.opcm-multichart-handler {
    display: block;
    height: 300px;
}

.opcm-multichart-item {
    position: absolute;
    height: 200px;
    visibility:hidden;
    opacity:0;
    width: 94%;
    left: 2.4%;
}

.opcm-multichart-item svg {
    overflow: visible;
}

.opcm-multichart-item.active {
    visibility:visible;
    opacity:1;
    transition:visibility 0.6s linear,opacity 0.6s linear;
}

.opcm-33-right-module {
    flex-grow: 1;
    margin-left: 10px;
    margin-right: -8px;
}

.opcm-module-title-bar {
    border-bottom: var(--subtitle-border);
    margin-left: 6px;
    margin-right: 6px;
    padding-bottom: 6px;
}

.opcm-module-title {
    margin-left: 2px;
    font-size: var(--subtitle-font-size);
    font-weight: var(--subtitle-font-weight);
    color: var(--main-font-color);
}

.opcm-module-more {
    margin-right: 2px;
    float: right;
}

.opcm-module-more a:focus{
    color: transparent;
    box-shadow: none;
    outline: none;
}

.opcm-chart-button {
    cursor: pointer;
}

.opcm-chart-button.not-ready {
    filter: opacity(30%);
    pointer-events: none;
}

.opcm-chart-button img {
    padding: 3px;
    background-color: transparent;
    top: -2px;
    border-radius: 2px;
}

.opcm-chart-button.active {
    cursor: default;

}

.opcm-chart-button.active img{
    background-color: #CCCCCC;
    filter: opacity(50%) grayscale(100%);
    transition: all 0.6s linear ;
}

.opcm-module-content {
    padding: 8px;
}

.opcm-kpi-bar {
    width: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
}

.opcm-home {
    vertical-align: text-bottom;
}

.opcm-title {
    font-size: var(--title-font-size);
    font-weight: var(--title-font-weight);
    letter-spacing: var(--title-letter-spacing);
    color: var(--main-font-color);
    padding: 2px 8px;
    vertical-align: text-bottom;
}

.opcm-subtitle {
    font-size: var(--subtitle-font-size);
    font-weight: var(--subtitle-font-weight);
    color: var(--aux-font-color);
    vertical-align: middle;
}

.opcm-site {
    font-size: var(--subtitle-font-size);
    font-weight: var(--subtitle-font-weight);
    vertical-align: baseline;
}

.opcm-site-text {
    background-color: var(--main-font-color);
    color: var(--main-bg-color);
    border-radius: 2px;
    padding: 3px 14px;
}

.opcm-site-button {
    background-color: var(--main-font-color);
    color: var(--main-bg-color);
    border-radius: 2px;
    padding: 3px 4px 3px 14px;
}

.opcm-site-button img {
    display: inline-block;
    width: 12px;
    vertical-align: text-top;
    margin-left: 6px;
}

.opcm-datepicker {
    margin-right: 8px;
    float: right;
    cursor: pointer;
    vertical-align: text-bottom;
    color: var(--header-action-font-color);
    font-size: var(--header-action-font-size);
}

.opcm-datepicker-value {
    vertical-align: text-top;
}

.opcm-switch {
    margin-right: 16px;
    float: right;
    cursor: pointer;
    vertical-align: text-bottom;
    color: var(--header-action-font-color);
    font-size: var(--header-action-font-size);
}

.opcm-switch span {
    vertical-align: middle;
}

.opcm-text-inbound-switch,
.opcm-text-outbound-switch {
    cursor: default;
}

.opcm-kpi-bar {
    width: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
}

.opcm-kpi-large {
    flex-grow: 1;
    position: relative;
    text-align: center;
}

.opcm-kpi-large:before {
    content: "";
    position: absolute;
    left: -1px;
    top: 15%;
    height: 70%;
    vertical-align: middle;
    border-left: 2px solid var(--main-font-color);
    box-sizing: border-box;
}

.opcm-kpi-large-top-text {
    font-size: 12px;
    vertical-align: bottom;
    color: var(--main-font-color);
}

.opcm-kpi-large-bottom-text {
    font-size: 10px;
    vertical-align: bottom;
    color: var(--main-font-color);
}

.opcm-kpi-large-top {
    padding: 4px;
}

.opcm-kpi-large-middle {
    display: inline-flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    padding: 4px;
    margin-top: 8px;
}

.opcm-kpi-large-bottom {
    padding: 4px;
}

.opcm-kpi-large-middle-left {
    color: var(--main-font-color);
    font-size: var(--kpi-big-font-size);
    font-weight: var(--kpi-big-font-weight);
    letter-spacing: var(--kpi-big-letter-spacing);
}

.opcm-kpi-large-middle-right {
    color: var(--main-font-color);
    font-size: var(--kpi-small-font-size);
    font-weight: var(--kpi-small-font-weight);
    letter-spacing: var(--kpi-small-letter-spacing);
    padding-left: 4px;
    top: -5px;
    position: relative;
}

.opcm-top-line {
    margin-bottom: -8px;
}

.opcm-top-line-title {
    color: var(--aux-font-color);
}

.opcm-top-line-content {
    margin-bottom: 16px;
    margin-top: -2px;
}

.opcm-top-line-title-text {
    vertical-align: baseline;
}

.opcm-top-line-title-text a {
    text-decoration: none;
    color: var(--aux-font-color);
}

.opcm-bar-graph {
    display: inline-block;
    width: 87%;
    height: 6px;
    border-radius: 2px;
    background-color: var(--aux-bg-color);
}

.opcm-bar-graph-value {
    height: 6px;
    border-radius: 2px;
    background-color: var(--main-font-color);
}

.opcm-bar-detail {
    float: right;
    display: inline-block;
    color: var(--main-font-color);
    font-size: var(--subtitle-font-size);
    font-weight: var(--subtitle-font-weight);
    margin-top: -8px;
}

.opcm-multichart-item,
.opcm-multichart-xlarge-item,
.opcm-multichart-large-item,
.opcm-multichart-medium-item,
.opcm-multichart-small-item,
.opcm-multichart-xsmall-item,
.opcm-multichart-xxsmall-item{
    position: absolute;
    height: 200px;
    visibility:hidden;
    opacity:0;
    width: 94%;
    left: 2.4%;
}

.opcm-multichart-item svg,
.opcm-multichart-xlarge-item svg,
.opcm-multichart-large-item svg,
.opcm-multichart-medium-item svg,
.opcm-multichart-small-item svg,
.opcm-multichart-xsmall-item svg,
.opcm-multichart-xxsmall-item svg{
    overflow: visible;
}

.opcm-multichart-item.active,
.opcm-multichart-xlarge-item.active,
.opcm-multichart-large-item.active,
.opcm-multichart-medium-item.active,
.opcm-multichart-small-item.active,
.opcm-multichart-xsmall-item.active,
.opcm-multichart-xxsmall-item.active{
    visibility:visible;
    opacity:1;
    transition:visibility 0.6s linear,opacity 0.6s linear;
}

.opcm-multichart-xlarge-item .ct-bar {stroke-width: 6% !important;stroke-opacity: 0.8 !important;}
.opcm-multichart-large-item .ct-bar {stroke-width: 3% !important;stroke-opacity: 0.8 !important;}
.opcm-multichart-medium-item .ct-bar {stroke-width: 1.5% !important;stroke-opacity: 0.8 !important;}
.opcm-multichart-small-item .ct-bar {stroke-width: 0.75% !important;stroke-opacity: 0.8 !important;}
.opcm-multichart-xsmall-item .ct-bar {stroke-width: 0.4% !important;stroke-opacity: 0.8 !important;}
.opcm-multichart-xxsmall-item .ct-bar {stroke-width: 0.2% !important;stroke-opacity: 0.8 !important;}

.ct-labels foreignObject:first-child {
    display: none;
}

.ct-labels .ct-horizontal {
    transform: translateX(-7px);
}

.ct-labels .ct-vertical {
    transform: translateX(-6px) translateY(6px);
}

.opcm-minor-data {
    opacity: 0.4;
}

.opcm-table {
    width:100%;
    border-spacing: 0px;
}

.opcm-table th {
    display: none;
    font-size: var(--header-action-font-size);
    color: var(--aux-font-color);
    font-weight: var(--header-action-font-weight);
    text-align: left;
}
.opcm-table td {
    color: var(--main-font-color);
}

.opcm-table tr:nth-child(even) {
    background: var(--table-bg-color);
}

.opcm-table-text a {
    text-decoration: none;
    color: var(--aux-font-color);
}

.opcm-table small {
    font-size: xx-small;
}

.opcm-pie-box {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-evenly;
    align-items: center;
}

.opcm-pie-graph {
    flex-grow: 1;
    margin-right: 10%;
}

.opcm-pie-legend {
    flex-grow: 1;
    float: left;
    margin-left: 10%;
}

.opcm-pie-graph-handler {
    width: 120px;
    height: 120px;
    float:right;
}

.opcm-pie-legend-item {
    display: flex;
    color: var(--aux-font-color);
}

.opcm-map-handler {
    vertical-align: middle;
    text-align: center;
    height: 244px;
    width: 100%;
    display: inline-block;
}

button.btn {
    color: var(--main-bg-color);
    background-color: var(--header-action-font-color);
    border: none;
    border-radius: 2px;
}

@media only screen and (max-width: 300px) {
    .opcm-bar-graph {
        width: 75%;
    }
}

@media only screen and (min-width: 501px) {
    .opcm-table th {
        display: table-cell;
        padding: .25em 1em;
    }

    .opcm-table td {
        display: table-cell;
        padding: .25em .5em;
    }
}

@media only screen and (max-width: 500px) {
    .opcm-table td {
        display: block;
        padding: .25em .5em;
    }
    .opcm-about-logo {
        width: 92px;
        margin: -16px 6px 6px 16px;
    }
    .opcm-title,
    .opcm-subtitle,
    .opcm-switch {
        float: unset;
        display: block;
        padding: 2px 8px;
    }
    .opcm-switch,
    .opcm-datepicker {
        padding: 2px 8px;
    }
    .opcm-site {
        float: right;
        margin-top: 3px;
    }
}

@media only screen and (min-width: 1101px) {
    .opcm-kpi-large {
        width: 16.666%;
    }
    .opcm-kpi-large:first-child:before {
        border: none;
    }
}

@media only screen and (min-width: 501px) and (max-width: 1100px) {
    .opcm-kpi-large {
        width: 33.333%;
        margin-bottom: 14px;
    }
    .opcm-kpi-large:nth-child(3n+1):before {
        border: none;
    }
}

@media only screen and (max-width: 500px) {
    .opcm-kpi-large {
        width: 50%;
        margin-bottom: 14px;
    }
    .opcm-kpi-large:nth-child(2n+1):before {
        border: none;
    }
    .opcm-bar-graph {
        width: 80%;
    }
}

@media only screen and (max-width: 300px) {
    .opcm-kpi-large {
        min-width: 100%;
        margin-bottom: 14px;
    }

    .opcm-kpi-large:before {
        border: none;
    }

    .opcm-kpi-large-middle {
        margin-top: 0px;
    }
    .opcm-bar-graph {
        width: 70%;
    }
}

@media only screen and (max-width: 1100px) {
    .opcm-40-module {
        margin-right: -8px;
        margin-bottom: 10px;
        width: 100%;
        height: auto;
    }
    .opcm-33-module {
        margin-right: -8px;
        margin-bottom: 18px;
        margin-top: -8px;
        width: 100%;
    }
    .opcm-33-center-module,
    .opcm-33-right-module {
        margin-left: -8px;
    }
    .opcm-60-module {
        margin-left: -8px;
        margin-top: 0px;
        width: 100%;
        height: auto;
    }
    .last-row {
        margin-top: -26px;
    }
}

@media only screen and (min-width: 1801px) {
    .opcm-box {
        width: 99.5%;
    }
}

@media only screen and (max-width: 1800px) {
    .opcm-box {
        width: 99%;
    }
}

@media only screen and (max-width: 1400px) {
    .opcm-box {
        width: 98.5%;
    }
}

@media only screen and (max-width: 1000px) {
    .opcm-box {
        width: 98%;
    }
}

@media only screen and (max-width: 600px) {
    .opcm-box {
        width: 97.5%;
    }
}

@media only screen and (max-width: 450px) {
    .opcm-box {
        width: 97%;
    }
}

@media only screen and (max-width: 375px) {
    .opcm-box {
        width: 96%;
    }
}

@media only screen and (max-width: 300px) {
    .opcm-box {
        width: 95.5%;
    }
}

.opcm-select-wrapper {
    position: relative;
    display: inline-block;
    user-select: none;
}
.opcm-select-wrapper select {
    display: none;
}
.opcm-select {
    position: relative;
    display: inline-block;
}
.opcm-select-trigger {
    position: relative;
    display: block;
    cursor: pointer;
}
.opcm-options {
    z-index: 3001;
    position: absolute;
    display: block;
    width: max-content;
    margin-top: 7px;
    border: var(--pop-box-border);
    border-radius: 4px;
    box-sizing: border-box;
    background: var(--main-bg-color);
    font-size: var(--header-action-font-size);
    font-weight: var(--subtitle-font-weight);
    letter-spacing: 0px;
    color: #5A738E;
    box-shadow: var(--main-box-shadow);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.opcm-select.opened .opcm-options {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}
.opcm-options:before {
    position: absolute;
    display: block;
    content: '';
    bottom: 100%;
    left: 10px;
    width: 7px;
    height: 7px;
    margin-bottom: -3px;
    border-top: var(--pop-box-border);
    border-left: var(--pop-box-border);
    background: var(--main-bg-color);
    transform: rotate(45deg);
}
.option-hover:before {
    background: #f9f9f9;
}
.opcm-option {
    position: relative;
    display: block;
    padding: 8px 12px;
    cursor: pointer;
    margin: 8px 0px;
}

.opcm-option-subtext {
    color: var(--aux-font-color);
    margin-top: -2px;
}

.opcm-option:hover {
    background-color: var(--pop-box-hover);
}

.opcm-option.selection {
    background-color: var(--header-action-font-color);
    color: var(--main-bg-color);
}
