/******************************************************************/
/***************** STYLE ADDITIONS ONTOP OF THEME *****************/
/******************************************************************/

.vmb-logo, .header-vmb-logo {
    display: none
}

#header > nav > a#skip-nav {
    display: none;
}

img {
    max-width: 100%;
}

.btn.btn-primary {
    background-color: #5300c5;
    border-color: #5300c5;
}

.color-line {
    background: #5300c5;
    height: 6px;
}

#logo {
    padding: 0 !important;
}

#logo img {
    margin: 10px 25px auto;
    height: 35px;
}

#header-logo img {
    display: none;
    position: absolute;
    top: 15px;
    left: calc(50% - 35px);
    bottom: 0;
    height: 35px;
}

.bottom-spacer {
    margin-bottom: 6px !important;
}

.left-spacer {
    margin-left: 6px !important;
}

/* apply maximums to prevent abuse of user controlled elements*/
.restrict-height {
    max-height: 200px;
}

.restrict-width {
    max-width: 100%;
}

.no-top-margin {
    margin-top: 0;
}

/* fix an issue with bootstrap breaking file inputs on firefox */
input[type='file'].form-control {
    height: auto;
}

/*prevent select2 multiselects being interfered with by bootstrap*/
.select2-container.form-control {
    height: auto;
}

/* stop divided lists looking ugly */
dd, dt {
    margin-bottom: 5px;
}

/** force datatables to gracefully degrade on devices */
.dataTables_wrapper .col-sm-12 {
    overflow-x: auto;
}

.error {
    color: red;
}

.selectCustomersContainer {
    padding-top: 14px;
}

.mobile-navbar .selectCustomersContainer {
    padding: 0 15px;
}

.supportedFileTypes li {
    font-style: italic;
    display: inline;
    margin-left: 3px;
}

@media (max-width: 768px) {

    #content > .content{
        padding-bottom: 8em
    }

    .navbar-form-custom, .navbar-right, #logo {
        display: none;
    }

    #header-logo img:first-child {
        display: block;
    }

    .vmb-logo, .header-vmb-logo {
        display: none;
    }

    /* overrule bootstraps visibility handling for certain edge cases */
    .force-inline-xs {
        display: inline !important;
    }
}

@media (min-width: 768px) {
    /*fix some odd text alignment */
    .dl-horizontal dt {
        text-align: left;
    }

    /* overrule bootstraps visibility handling for certain edge cases */
    .force-inline-xs {
        display: none !important;
    }

    .table-responsive {
        overflow-x: visible;
    }
}

/*helper for sizing icons*/
.fa-size-large {
    font-size: 24px;
}

p i.fa-size-large {
    margin-left: 4em;
}

.form-control.disable-plain[disabled], .form-control.disable-plain[readonly], fieldset[disabled] .form-control.disable-plain {
    background-color: white;
    border: 1px;
    font-size: 1em;
}

.faq-answer {
    white-space: pre-wrap;
    word-break: break-word;
}

textarea {
    max-width: 100%
}

/******************************************************************/
/************************* HELPER CLASSES *************************/
/******************************************************************/

.display-flex {
    display: flex
}

.align-left {
    text-align: left;
}

.align-right {
    text-align: right;
}

.align-center {
    text-align: center;
}

.inline-block {
    display: inline-block
}

.selectCustomers{
    display:none
}
.select2-container.selectCustomers{
    display: inline-block;
}
.pointer {
    cursor: pointer;
}
.font-size-xs {
    font-size: .3em;
}
.font-size-sm {
    font-size: .5em;
}
.font-size-md {
    font-size: 1.1em;
}
.font-size-lg {
    font-size: 1.3em;
}

.normalise-white-space {
    white-space: normal;
}

.truncate {
    max-width: 23rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.width-auto {
    width: auto;
}

.btn-round {
    border-radius: 100px;
    padding: 2px 7px;
}
.btn-round-small {
    border-radius: 50px;
    font-size: 12px;
    width: 20px;
    height: 20px;
    padding: 0;
    vertical-align: text-bottom;
}

.margin-l-auto  {
    margin-left: auto;
}

/******************************************************************/
/*********** Custom styling for Server Groups Page ****************/
/******************************************************************/
li.serverNamesInGroup {
    border-right: 0;
    border-left: 0;
}

/******************************************************************/
/*********** Custom styling for Traffic Shaping Page **************/
/******************************************************************/

#applications .stored-applications-list td, #applications-list td{
    text-align: left;
}
#applications .stored-applications-list,
#url-category .stored-url-category-list,
#application-categories .stored-app-category-list{
    max-height:15rem;
    overflow: auto;
}

/******************************************************************/
/*********** Custom styling for Web Filtering Page ****************/
/******************************************************************/

#policies .web-filter, #policies .dlp-sensor, #new-filter, #category-filter, .edit-filter, .remove-filter, .category, .group{
    cursor: pointer;
}

#urlfilter-table{
    margin-top:1.5em
}
.panel-collapse hr{
    margin-top: 10px;
    margin-bottom: 10px;
}

.web-filter:hover, .dlp-sensor:hover{
    color: #5300c5;
}

/******************************************************************/
/*************** Custom styling for Dashboard Page ****************/
/******************************************************************/

#service-status table > tbody > tr:first-child td {
    border-top: none !important;
}

/******************************************************************/
/************** Custom styling for Touch Cloud Page ***************/
/******************************************************************/

#console-container {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 999
}

#wmks-container {
    width: 100%;
    height: 100%
}

#console-actions {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.8);
    padding: 10px;
    text-align: right;
    z-index: 9999;
    border-top: 6px solid #5300c5;
}

#disconnect-console, #ctrl-alt-del, #full-screen {
    margin-left: 0.3em;
    padding: 1px;
}

#ctrl-alt-del {
    right: 9em
}

#full-screen {
    right: 21em
}

.power-state {
    position: absolute;
    right: 1em;
    top: 1em;
}

#login-check, #delete-authorisation {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, .6);
    z-index: 9;
}

#login-check form, #delete-authorisation form {
    position: absolute;
    width: 400px;
    left: calc(50% - 170px);
    top: calc(50% - 250px);
    color: #555;
    border: 1px solid #ddd;
    padding: 2em;
    border-radius: .4em;
    background: white;
}

#authorisation-code {
    font-size: 30px;
    height: 2em;
    text-align: center;
}

#cpu-percent-chart-container,
#cpu-mhz-chart-container,
#memory-mbps-chart-container,
#network-mbps-chart-container,
#memory-swap-in-container {
    margin-bottom: 1em
}

.forgot-password {
    margin-top: 10px;
    display: inline-block;
}

.form-group .twitter-typeahead {
    width: 100%;
}

.tt-query {
    -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
    -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
}

.tt-hint {
    color: #999
}

.tt-menu {    /* used to be tt-dropdown-menu in older versions */
    width: 422px;
    margin-top: 4px;
    padding: 4px 0;
    background-color: #fff;
    border: 1px solid #ccc;
    border: 1px solid rgba(0, 0, 0, 0.2);
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px;
    -webkit-box-shadow: 0 5px 10px rgba(0,0,0,.2);
    -moz-box-shadow: 0 5px 10px rgba(0,0,0,.2);
    box-shadow: 0 5px 10px rgba(0,0,0,.2);
}

.tt-suggestion {
    padding: 3px 20px;
    line-height: 24px;
}

.tt-suggestion.tt-cursor,.tt-suggestion:hover {
    color: #fff;
    background-color: #0097cf;

}

.tt-suggestion p {
    margin: 0;
}

.table-fit td,.table-fit th {
    width: 1px;
    word-break: break-all;

}

.hscroll {
    overflow-x: auto;
}

.alert-static {
    position: fixed;
    bottom: 5px;
    width: calc(100% - 180px);
    margin: 0 auto;
    z-index: 99;
    transition: width .4s ease 0;
}

body.hide-sidebar .alert-static {
    width: 100%;
}

body.page-small.show-sidebar .alert-static {
    width: calc(100% - 180px);
}

.alert-static p {
    width: 78%;
}

.tui-editor-defaultUI .fa.fa-upload {
    color: #000;
}

/****************************************************/
/*****   Custom styling for progress bars *****/
/*****************************************************/

.progress-bar-warning2 {
    background-color: #e67e22;
    border-right: 4px solid #d26f18;
}
.progress-bar-danger2 {
    background-color: #c0392b;
    border-right: 4px solid #a73225;
}

/*************************************************/
/*****   Custom styling for /customer/edit   *****/
/*************************************************/

div#tfa-confirm-panel > div.panel-body > h2 {
    margin-top: 0;
}

/********************************************************/
/***** Custom styling for /security/tfa/user-detail *****/
/********************************************************/

div#actions-template {
    display: none;
}
label.required:after {
    content: '*';
    color: red;
    margin-left: 5px;
}

.last-updated {
    margin-right: 4px;
    font-weight: normal;
    font-size: 12px;
}

/********************************************************/
/*****       Custom styling for /order/mobile       *****/
/********************************************************/

#order-templates {
    display: none;
}

.order-line input[name="orderline|new|keep_my_number[]"] {
    height: 18px;
}

/********************************************************/
/** Custom styling for /caf/assessments/:id/dashboard  **/
/********************************************************/

.caf-principle > span.h4 {
    display: inline-block;
    width: calc(100% - 70px);
    font-weight: 600;
    color: #708090;
}

.caf-objective {
    border-bottom: 1px solid #ddd;
    padding: 6px 0;
    display: grid;
    grid-template-columns: auto 100px;
    align-items: center;
}

.caf-objective > span.h4 {
    cursor: pointer;
    font-size: 14px;
}

.caf-objective > .caf-objective-status {
    width: 100px;
    padding: 10px;
    border-radius: 10px;
    text-align: center;
    justify-self: right;
}

.caf-objective-status {
    color: white;
    font-size: 12px;
}

.caf-objective-status.alert-success {
    background-color: #62cb31;
}

.caf-objective-status.alert-warning {
    background-color: #ffb606;
}

.caf-objective-status.alert-danger {
    background-color: #c0392b;
}

#dashboard-modal-form .caf-indicator {
    border-bottom: 1px solid #ddd;
}

.row.principle-list > div {
    display: table-cell;
}

.row.principle-list {
    display: flex;
    flex-wrap: wrap;
}
.row.principle-list > [class*='col-'] {
    display: flex;
    flex-direction: column;
}

#ncsc-disclaimer {
    font-size: 14px;
}

.move-indicator {
    cursor: move;
}

.reorder-item {
    user-select: none;
    border: 1px solid #aaa;
    padding: 4px;
    margin-top: 8px;
    cursor: move;
}

.reorder-item span {
    font-size: 14px;
}

.reorder-principle {
    background-color: #ddd;
}

.reorder-objective { 
    background-color: white;
}

.caf-principle span.principle-info {
    font-size: 18px;
    margin: 7px 0;
    cursor: pointer;
}

.caf-principle .caf-principle-score span.h4 {
    display: inline-block;
    font-weight: bold;
}

.caf-principle .caf-principle-score {
    margin-right: 10px;
}

.caf-indicator {
    width: 100%;
    display: table;
}

.caf-indicator > div {
    display: table-cell;
    float: none;
}

.caf-indicator > div.indicator-brag {
    width: 25px;
    min-width: 25px;
    vertical-align: middle;
    padding-bottom: 10px;
}

.caf-indicator > div.indicator-description {
    min-width: calc(100% - 320px);
    padding-right: 8px;
}

.caf-indicator > div.indicator-value {
    width: 75px;
    min-width: 75px;
    vertical-align: middle;
    padding-bottom: 10px;
}

.caf-indicator > div.indicator-status {
    width: 220px;
    min-width: 220px;
    font-size: 12px;
    vertical-align: middle;
    padding-bottom: 10px;
}

#dashboard-modal-form .indicator-title {
    font-weight: bold;
    padding-left: 4px;
    height: 35px;
    border-bottom: 3px solid #000;
}

#dashboard-modal-form .indicator-subtitle {
    font-weight: bold;
    padding: 20px 4px;
    border-bottom: 3px solid #000;
}

#achieved-indicator-container .indicator-title {
    background-color: #DFF0D8;
}

#partial-indicator-container .indicator-title {
    background-color: #FCF8E3;
}

#unachieved-indicator-container .indicator-title {
    background-color: #FFDEDE;
}

.indicators {
    margin-top: 6px;
}

/********************************************************/
/**          Custom styling for /caf/metrics           **/
/********************************************************/

.caf-metrics .panel-body {
    padding: 12px;
    background: none;
}

.caf-metrics .text-center > span, #ppcA-current-score, #ppcA-target-score, #ppcA-no-score {
    display: block;
}

.caf-metrics span.metric-score, #ppcA-current-score {
    font-size: 56px;
}

#metrics-settings ~ h1 {
    width: calc(100% - 32px);
}

#settings-modal-form input {
    width: calc(100% - 16px);
    display: inline;
}

.objectives-title {
    color: rgba(39, 65, 255, 1);
    font-weight: bold;
}

#caf-metrics-container {
    display: flex;
    flex-wrap: wrap;
}

#sca-container div.panel-body {
    min-height: 190px;
    max-height: 230px;
    height: 100%;
}

#mss-container div.panel-body {
    min-height: 210px;
    max-height: 250px;
    height: 100%;
}

.metric-gauge {
    max-width: 300px;
    width: 100%;
    margin: auto;
}

span#sca-no-results, span#mss-no-results, #ppcA-no-score, #ppcL-no-scores {
    display: block;
    padding-top: 8px;
}

.metric-value {
    font-size: 54px;
    position: absolute;
    left: 0;
    bottom: 40px;
    width: 100%;
    text-align: center;
}

.caf-metrics div.panel-body, #ppcA-container div.panel-body {
    height: 190px;
    min-height: 190px;
}

#ppcL-container div.panel-body {
    min-height: 190px;
}

#ppcA-target-score {
    color: rgba(39, 65, 255, 1);
}

#ppcL-graph svg {
    max-height: 300px;
    height: 100%;
}

#ppcL-legend {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding-top: 8px;
}

#ppcL-legend > span {
    font-size: 11px;
}

#ppcL-legend > span::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    line-height: 11px;
    margin-bottom: 1px;
    margin-right: 4px;
}

span#ppcL-legend-1x::before {
    background-color: #ffb606;
}

span#ppcL-legend-2x::before {
    background-color: #e67e22;
}

span#ppcL-legend-3x::before {
    background-color: #c0392b;
}

#ppcL-no-clickers > i {
    display: block;
    font-size: 72px;
    color: #62cb31;
    padding-bottom: 8px;
}

/**************************************/
/****Custom CSS for the roles page*****/
/**************************************/

.role-email-addresses {
    display: inline-block;
    vertical-align: top;
}

.role-email-addresses > textarea {
    resize: vertical;
}

/**************************************************/
/* Custom CSS for the caf/admin/template/new page */
/**************************************************/

div.copy_template_group {
    display: none;
}

input#copy_template {
    margin-top: 0;
}