/* "Loading" Splash Screen */
/*
 * Splash screen
 */
#noc-loading-mask {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 20000;
    background-color: #c0c0c0;
}

#noc-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    margin-top: -10px;
    margin-left: -150px;
    width: 300px;
    height: 100px;
    color: #ffffff;
    z-index: 20001;
    font-size: 20px;
    font-family: sans-serif !important;
    text-align: center;
}

#nav .x-panel-header-default {
    line-height: 16px;
}

.x-action-col-cell img {
    height: 16px;
    width: 15px;
}

/* Syntax highlight */
/* Override default */
pre.sh_sourceCode {
    background-color: #e7e7e7;
}

.sh_address {
    color: darkgreen;
}

/**/
.noc-tp {
    padding: 4px;
}

.noc-tp table {
    border: 1px solid black;
    padding: 4px;
    font-family: tahoma, arial, verdana, sans-serif;
    font-size: 8pt;
}

.noc-tp table th,
.noc-tp table td {
    padding: 4px;
    border: 1px solid black;
}

.noc-tp table th {
    font-weight: bold;
    background-color: #e0e0e0;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

.noc-console {
    background-color: #303030;
    color: #ffffff !important;
}

.noc-console .banner {
    font-style: italic;
}

.noc-console .cmd {
    font-weight: bold;
    clear: both;
    border-bottom: 1px dotted white;
}

.noc-console .result {}

.noc-inactive {
    background-color: #808080;
}

.noc-fail {
    background-color: #c05050;
}

.noc-numbers {
    float: left;
    text-align: right;
    background-color: #c0c0c0;
    border-right: 1px solid white;
    width: 30pt;
    padding-right: 2pt;
}

.noc-int-command {}

.noc-int-login {
    color: #4471ed;
}

.noc-int-logout {
    color: #edc044;
}

.noc-int-reboot {
    color: #ed446e;
}

.noc-int-started {
    color: #44ed7f;
}

.noc-int-config {
    color: #edcb44;
}

.x-boundlist-item .item-description {
    color: #404040 !important;
    font-style: italic !important;
    padding-left: 10px !important;
}

.noc-alert {
    border-radius: 4px;
    border: 1px solid;
    padding: 4px;
    margin: 4px;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.2);
    -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25),
        0 1px 2px rgba(0, 0, 0, 0.05);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 1px 2px rgba(0, 0, 0, 0.05);
}

.noc-alert-success {
    background-image: -webkit-linear-gradient(top, #dff0d8 0%, #c8e5bc 100%);
    background-image: -o-linear-gradient(top, #dff0d8 0%, #c8e5bc 100%);
    background-image: -webkit-gradient(linear,
            left top,
            left bottom,
            from(#dff0d8),
            to(#c8e5bc));
    background-image: linear-gradient(to bottom, #dff0d8 0%, #c8e5bc 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffdff0d8', endColorstr='#ffc8e5bc', GradientType=0);
    background-repeat: repeat-x;
    border-color: #b2dba1;
}

.noc-alert-info {
    background-image: -webkit-linear-gradient(top, #d9edf7 0%, #b9def0 100%);
    background-image: -o-linear-gradient(top, #d9edf7 0%, #b9def0 100%);
    background-image: -webkit-gradient(linear,
            left top,
            left bottom,
            from(#d9edf7),
            to(#b9def0));
    background-image: linear-gradient(to bottom, #d9edf7 0%, #b9def0 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffd9edf7', endColorstr='#ffb9def0', GradientType=0);
    background-repeat: repeat-x;
    border-color: #9acfea;
}

.noc-alert-warning {
    background-image: -webkit-linear-gradient(top, #fcf8e3 0%, #f8efc0 100%);
    background-image: -o-linear-gradient(top, #fcf8e3 0%, #f8efc0 100%);
    background-image: -webkit-gradient(linear,
            left top,
            left bottom,
            from(#fcf8e3),
            to(#f8efc0));
    background-image: linear-gradient(to bottom, #fcf8e3 0%, #f8efc0 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fffcf8e3', endColorstr='#fff8efc0', GradientType=0);
    background-repeat: repeat-x;
    border-color: #f5e79e;
}

.noc-alert-danger {
    background-image: -webkit-linear-gradient(top, #f2dede 0%, #e7c3c3 100%);
    background-image: -o-linear-gradient(top, #f2dede 0%, #e7c3c3 100%);
    background-image: -webkit-gradient(linear,
            left top,
            left bottom,
            from(#f2dede),
            to(#e7c3c3));
    background-image: linear-gradient(to bottom, #f2dede 0%, #e7c3c3 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff2dede', endColorstr='#ffe7c3c3', GradientType=0);
    background-repeat: repeat-x;
    border-color: #dca7a7;
}

.x-form-focus {
    filter: brightness(0.95);
    -webkit-filter: brightness(0.95);
}

.noc-offset-0 {}

.noc-offset-1 {
    padding-left: 4px;
}

.noc-offset-2 {
    padding-left: 8px;
}

.noc-bold {
    font-weight: bold;
}

/*
 * Network Map styles
 */
.stp-root tspan {
    font-weight: bold;
}

.stp-root tspan:before {
    content: "*";
}

/*
 * Fix ExtJS 6 toolbar buttons' text overflow
 */
.x-btn-inner-default-toolbar-small {
    text-overflow: clip !important;
}

/*
 * Search styles
 */
.noc-search-title {
    font-weight: bold;
}

.noc-search-card {
    padding-left: 20px;
}

/*
 * Welcome page style
 */
.noc-welcome-title {
    font-size: 24px;
    font-weight: bold;
    padding: 4px 4px 4px 8px;
}

.noc-welcome-body {
    padding: 4px 4px 4px 8px;
}

.noc-welcome-body a:visited,
.noc-welcome-body a {
    color: black;
    text-decoration: none;
}

.noc-welcome-body a:hover {
    color: #808080;
    text-decoration: underline;
}

#noc-welcome-logo {
    border: none;
    float: left;
    margin: 4px;
}

.noc-welcome-body h2 {
    font-size: 20px;
}

/*
 * Statuses
 */
.noc-status-waiting>td {
    background-color: #7f8c8d !important;
}

.noc-status-running>td {
    background-color: #f0c330 !important;
}

.noc-status-success>td {
    background-color: #39ca74 !important;
}

.noc-status-failed>td {
    background-color: #be3a31 !important;
}

.noc-mrt-section {
    font-weight: bold;
    text-decoration: underline;
}

.noc-mrt-result {
    padding-left: 8px;
    font-family: "Courier New", Courier, monospace;
    white-space: pre;
}

.noc-alarm-subject {
    font-weight: bold;
    border-bottom: 1px solid #808080;
}

.noc-alarm-timestamp {
    float: right;
}

.noc-alarm-label {
    font-weight: bold;
    padding-right: 10px;
}

.noc-alarm-label:after {
    content: ": ";
}

/*
 * Badge
 */
.noc-badge {
    height: 15px;
    width: 30px;
    -moz-border-radius: 7px;
    -webkit-border-radius: 7px;
    display: inline-block;
    color: #ffffff;
    font-weight: bold;
}

.noc-badge-waiting {
    background-color: #7f8c8d;
}

.noc-badge-running {
    background-color: #f0c330;
}

.noc-badge-success {
    background-color: #39ca74;
}

.noc-badge-failed {
    background-color: #be3a31;
}

.noc-mrt-section {
    font-weight: bold;
    text-decoration: underline;
}

.x-treelist-expander-first .x-treelist-item-text {
    margin-left: 20px;
    margin-right: 0;
}

.fm-blur-1 {
    opacity: 0.3;
}

.fm-blur-2 {
    opacity: 0.5;
}

.fm-blur-3 {
    opacity: 0.7;
}

.fm-blur-4 {
    opacity: 1;
}

.x-form-trigger.fa {
    display: table-cell;
    background: 0 0 transparent url(images/form/trigger-tpl.gif) no-repeat;
    padding-top: 4px;
    border: 1px solid #b5b8c8;
}

.noc-wc-state-base-body {
    min-width: 150px;
    max-width: 300px;
}

.noc-wc-state {
    position: relative;
    display: inline-block;
    width: 401px;
}

.noc-wc-state+.noc-wc-cloud {
    background: #ecf0f1;
    border: 1px solid #b5b8c8;
    border-radius: 5px;
    position: fixed;
    padding: 10px 0;
    margin-top: 3px;
    margin-left: -5px;
    z-index: 5;
}

.noc-wc-state+.noc-wc-cloud:before,
.noc-wc-state+.noc-wc-cloud:after {
    content: "";
    position: absolute;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    bottom: 100%;
    left: 50%;
    margin-left: -200px;
}

.noc-wc-state+.noc-wc-cloud:before {
    border-bottom: 10px solid #b5b8c8;
}

.noc-wc-state+.noc-wc-cloud:after {
    border-bottom: 10px solid #ecf0f1;
    margin-bottom: -2px;
    z-index: 1;
}

.x-component,
.x-container {
    position: initial;
}

.x-panel-body {
    overflow: unset;
}

/*
 * Safari 11 fieldset title issue
 */
.x-fieldset-header-default>.x-fieldset-header-text {
    position: static;
}

.x-fieldset {
    overflow: visible;
    background: unset;
}

.fas {
    position: relative;
}

.fas:before {
    left: calc(50% - 0.5em);
    top: calc(50% - 0.5em);
}

.x-fa {
    display: inline-block;
    font: normal normal normal 14px/1 FontAwesome;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.fas.fa-icon {
    width: 60px;
    height: 60px;
    color: #f8f8f8;
    background-color: black;
}

.x-panel.x-layer {
    position: fixed !important;
}

.x-grid-row-editor-wrap {
    z-index: 20;
}

.geo-loose {
    font-style: italic;
}

/* Tooltip background for Alarms */
.noc-alarm-tooltip th {
    text-align: left;
}

.noc-alarm-tooltip td {
    border-bottom: 1px black solid;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

.noc-alarm-tooltip-flat,
.noc-alarm-tooltip table {
    font-size: 1em;
    color: black;
}

.noc-alarm-tooltip {
    background: #fff;
}

.x-form-edit-trigger,
.x-form-clean-trigger,
.x-form-plus-trigger,
.x-form-clipboard-trigger {
    font-size: 12px;
    font-family: FontAwesome;
    /* vertical-align: middle; FF problem */
    padding-top: 10px;
    padding-right: 1px;
    background: 0 0 transparent url(images/form/trigger-tpl.gif) no-repeat;
    color: black;
}

.x-form-edit-trigger:before {
    content: "\f044";
}

.x-form-clean-trigger:before {
    content: "\f00d";
}

.x-form-plus-trigger:before {
    content: "\f067";
}

.x-form-clipboard-trigger:before {
    content: "\f0ea";
}

.x-item-disabled {
    opacity: 0.6 !important;
}

.x-item-disabled,
.x-item-disabled * {
    pointer-events: unset !important;
}

.pointer-cursor {
    cursor: pointer;
}

.ipam {
    width: 100%;
    font-size: 12px;
}

.ipam th {
    text-align: left;
    border-bottom: 1px solid #7d7d7d;
}

.ipam td {
    border-bottom: 1px solid #ddd;
}

.ipam tr:hover {
    background-color: #f5f5f5;
}

.ipam-nav {
    padding-right: 10px;
    text-decoration: underline;
    cursor: pointer;
}

.ipam-range {
    width: 16px;
    height: 16px;
    border-radius: 50%;
}

.x-form-text-default .x-tagfield-item {
    font-size: 11px;
    padding: 2px 18px 0 5px;
    line-height: 11px;
    height: 17px;
}

.x-tagfield-item-text {
    text-overflow: ellipsis;
    max-width: 255px;
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
}

.noc-label-field-start {
    border-radius: 5px 0 0 5px;
    padding: 0 3px 0 3px;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

.noc-label-field-end {
    border-radius: 0 5px 5px 0;
    padding-right: 3px;
}

.noc-label-wrapper {
    max-width: 220px;
    white-space: nowrap;
    overflow: hidden;
    display: inline-block;
    text-overflow: ellipsis;
}

.noc-object-oper-state {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-top: 2.75px;
}

/* state filed */
.noc-state-container {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
}

.noc-state-field {
    padding: 2px 5px 3px 5px;
    border: 1px solid #a1a1a1;
    margin: -1px 0 0 -1px;
}

.noc-state-blocked {
    background: #d8d8d8;
}

.noc-state-failed {
    background: goldenrod;
}

.noc-state-enabled {
    background: lightgreen;
}

.noc-metric-container {
    position: relative;
    z-index: 5;
    display: flex;
    align-items: center;
}

.noc-metric-value {
    position: relative;
    width: 1px;
    height: 7px;
    margin-top: 6px;
    background: black;
}

.noc-metric-value::before {
    display: block;
    content: attr(data-value);
    transform: translate(120%, -70%);
}

.noc-metric-range {
    height: 3px;
    position: absolute;
}

.noc-metric-green-range {
    width: 100%;
    background: green;
}

.noc-metric-tick {
    background: gray;
    height: 8px;
    width: 5px;
    border: 1px solid black;
    position: absolute;
}

.noc-home-summary-select:hover {
    background-color: #f1c40f;
}

.noc-inv-nav-cell-inner::before {
    border: none !important;
}

.selectable:hover path {
    stroke: #f1c40f;
}

.noc-remove-menu-item .x-menu-item-text {
    color: #c0392b;
}

.noc-remove-menu-item .x-menu-item-icon {
    color: #c0392b;
}

.x-menu-item.noc-remove-menu-item.x-menu-item-active {
    background-color: #c0392b !important;
}

.x-menu-item.noc-remove-menu-item.x-menu-item-active .x-menu-item-text,
.x-menu-item.noc-remove-menu-item.x-menu-item-active .x-menu-item-icon {
    color: #FFFFFF !important;
}

.noc-pconf-value {
    position: relative;
    left: calc(50% - 22px);
}

.noc-pconf-value-tick {
    width: 8px;
    height: 8px;
    clip-path: polygon(4px 0px, 0px 8px, 8px 8px);
    position: relative;
    z-index: 5;
}

@keyframes strokeWidthAnimation {
    from {
        stroke-width: 1px;
    }
    to {
        stroke-width: 3px;
    }
}

.job-selectable:hover polygon,
.job-selectable:hover path {
    animation: strokeWidthAnimation 0.3s forwards;
    stroke: #f1c40f;
}

.job-selectable:hover text {
    fill: black !important;
}

.job-selectable:hover:not(:has(.job-selectable:hover)) > path,
.job-selectable:hover:not(:has(.job-selectable:hover)) > polygon{
    fill: rgb(220, 211, 211);
}

.active-job polygon,
.active-job path {
    fill: rgb(220, 211, 211);
    stroke-width: 2px !important;
}

.active-job text {
    fill: black !important;
}

.job-selectable.no-hover:hover polygon,
.job-selectable.no-hover:hover path {
    stroke: black !important;
}

.noc-home-widget-header > .x-box-inner {
    height: 20px;
}

.noc-home-widget {
    grid-column: span 2;
    background-color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.noc-home-widget-header {
    border-radius: 8px 8px 0 0;
}

.noc-home-widget-content {
    padding: 12px;
    overflow-y: auto;
    flex: 1;
    background-color: #ecf0f1;
    border-color: #ecf0f1;
}

.noc-home-container > div > div > div{
        display: grid;
        grid-auto-rows: minmax(200px, auto);
        min-height: calc(100vh - 150px); /* 88px is the height of the header and container padding 2x40px */
        height: calc(100vh - 150px); /* 88px is the height of the header and container padding 2x40px */
    }

@media only screen and (max-width: 767px) {
    .noc-home-container > div > div > div{
        grid-template-columns: repeat(6, 1fr);
        gap: 10px;
        min-height: calc(100vh - 110px); /* 88px is the height of the header and container padding 2x40px */
        height: calc(100vh - 110px); /* 88px is the height of the header and container padding 2x40px */
    }
 
    .noc-home-container > div > div > div{
        grid-template-columns: 1fr;
    }

    .noc-home-container {
        padding: 10px;
    }

    .noc-home-widget {
        grid-column: span 1;
    }
}

@media only screen and (min-width: 768px) and (max-width: 1023px) {
    .noc-home-container > div > div > div{
        grid-template-columns: repeat(6, 1fr);
        gap: 20px;
        min-height: calc(100vh - 140px); /* 88px is the height of the header and container padding 2x40px */
        height: calc(100vh - 140px); /* 88px is the height of the header and container padding 2x40px */
    }

    .noc-home-container > div > div > div{
        grid-template-columns: repeat(4, 1fr);
    }

    .noc-home-container {
        padding: 20px;
    }

    .noc-home-widget:nth-child(odd):is(:nth-last-child(1)) {
        grid-column: 2 / span 2;
    }
}

@media screen and (min-width: 1024px) {
    .noc-home-container > div > div > div{
        grid-template-columns: repeat(6, 1fr);
        gap: 30px;
    }

    .noc-home-widget:nth-child(3n+1):is(:nth-last-child(2)) {
        grid-column: 2 / span 2;
    }

    .noc-home-container {
        padding: 30px;
    }

    .noc-home-widget:nth-child(3n+1):is(:nth-last-child(1)) {
        grid-column: 3 / span 2;
    }
}

.noc-inv-nav-label {
    font: normal 16px 'PT Root UI VF';
    line-height: 25px;
    text-decoration: underline;
    padding: 2px 8px 2px 8px;
    cursor: pointer;
}

.noc-inv-nav-label:hover {
    color: #fff;
    background: #34495e;
    border-color: #34495e;
    padding: 2px 8px 2px 8px;
}

.noc-inv-nav-empty {
    padding: 8px;
    color: #999;
    font-style: italic;
    text-align: center;
}

.x-hmenu-sort-cancel {
    font: 16px/24px FontAwesome;
    top: 4.5px;
}

.x-hmenu-sort-cancel:before {
    content: "\f05e";
}

.noc-white-space {
    word-break: break-word;
}
