/* Copyright � 2000 to 2017 Trading Science Ltd. All Rights Reserved */

/*
  CSS code for I-Plan Anywhere
  by Anton Maslo
  Created: Feb 2013
*/


/*
@reference "bootstrap/css/bootstrap.min.css"
*/

/* ----------------------------------------------- V5UI styles START --------------------------------------------- */
body {
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}



/* Toolbar */
#ip-toolbar {
    padding: 0.5rem 0;
}

#ip-toolbar > div {
    padding-left: 5px;
}

#ip-toolbar .ip-page-title-buttons {
    margin-left: .25rem;
}

#ip-toolbar .ip-page-title-buttons button {
    margin-top: -.5rem;
}
.ip-top-sidebar #ip-toolbar .ip-page-title-buttons button {
    margin-top: -.25rem;
}

#ip-toolbar button {
    white-space: nowrap;
}

#ip-toolbar button i {
    margin-right: 3px;
}

#ip-toolbar .form-inline {
    display: inline-flex;
}

#ip-toolbar [data_is_dev_mode="1"] {
    background-image: linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);
    background-size: 1rem 1rem;
}

#ip-toolbar #ip-page-actions .running-process {
    padding: 4px;
}

.ip-progress-dialog .progress {
    margin-top: 6px;
    margin-bottom: 10px
}

.ip-progress-dialog .labeltimeinfo {
    text-align: right;
    padding-right: 10px;
}

i.ip-icon-no-text {
    margin-right: 0 !important;
}

/* Brand (in toolbar, or top sidebar) */
.ip-brand-section {
    margin-right: 1rem;
    white-space: nowrap;
}

.ip-brand-section .navbar-brand {
    margin-right: 0.5rem;
    padding: 0;
}

.ip-brand-section .ip-brand-logo {
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-bottom: -3px;
    background: transparent url(/iplan/cassette.axd/file/Scripts/images/iplan_logo_20x20-b520cbe8a6217516c1b8caaaaa0981f4f69cd28d.png) 0 0 / 18px 18px no-repeat;
}

.ip-brand-section .ip-brand-text {
    padding-left: 0.5rem;
}

.ip-brand-section .ip-brand-divider {
    opacity: 0.4;
    margin-right: 0.5rem;
}

#ip-toggle-sidebar {
    margin-left: -0.75rem;
    opacity: 0.5;
}

.ip-btn-help {
    padding: 4px 2px 4px 0;
}

#ip-btn-main-apply + .ip-btn-help { /* No page params btn */
    padding-left: 8px;
}

#ip-btn-main-apply.btn-success i {
	display: none;
}
#ip-btn-main-apply.btn-warning i {
	display: unset;
	color: #c00;
}

#ip-btn-toggle-header,
.ip-btn-help {
    opacity: 0.5;
}

#ip-btn-toggle-sidebar:hover,
#ip-btn-toggle-header:hover,
.ip-btn-help:hover {
    opacity: 1;
}

#ip-btn-toggle-sidebar:focus,
#ip-btn-toggle-header:focus,
.ip-btn-help:focus {
    outline: none;
    box-shadow: none;
}



/* Sidebar */
#ip-sidebar {
    padding: 0;
    max-width: 13rem;
    transition: max-width 200ms ease-in;
}

#ip-sidebar .ip-brand-section {
    display: none;
}

#ip-sidebar hr {
    opacity: 0.4;
}

#ip-sidebar.ip-minimised {
    max-width: 3.25rem;
}

#ip-sidebar #ip-main-menu .nav-link > .ip-nav-item-text,
#ip-sidebar #ip-main-menu .nav-link::after {
    transition: opacity 200ms;
}

#ip-sidebar.ip-minimised #ip-main-menu .nav-link > .ip-nav-item-text,
#ip-sidebar.ip-minimised #ip-main-menu .nav-link::after {
    opacity: 0;
}

#ip-sidebar .ip-copyright i {
    margin-right: 0.25rem;
}

#ip-sidebar.ip-minimised .ip-copyright i {
    margin-left: 0.5rem;
}

.ip-user-name.dropdown-toggle {
    padding: 0 0.75rem 0.1rem;
}

.ip-user-name.dropdown-toggle::after {
    vertical-align: middle;
    border-top: .3em solid;
    border-right: .3em solid transparent;
    border-bottom: 0;
    border-left: .3em solid transparent;
}

.ip-user-name span {
    display: inline-block;
    vertical-align: middle;
    max-width: 130px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#ip-sidebar .ip-user-menu,
#ip-sidebar .ip-copyright {
    white-space: nowrap;
}

#ip-sidebar.ip-minimised .ip-user-name,
#ip-sidebar.ip-minimised .ip-copyright > span {
    display: none;
}

/* Fixed date styles */
#ip-sidebar .ip-fixed-date {
    padding: .25rem 0 0;
}
#ip-sidebar .ip-fixed-date:empty {
    padding: 0 !important;
}
#ip-sidebar .ip-fixed-date > div {
    width: 0 !important; /* Override datepicker width */
}

#ip-sidebar.ip-minimised .ip-fixed-date {
    margin-left: .5rem;
}

#ip-sidebar .ip-fixed-date-icon,
#ip-sidebar.ip-minimised .ip-fixed-date-text {
    display: none;
}

#ip-sidebar.ip-minimised .ip-fixed-date-icon,
#ip-sidebar .ip-fixed-date-text {
    display: initial;
}



/* Main menu (in sidebar) */
#ip-main-menu {
    margin: 0;
}

#ip-main-menu .navbar-nav {
    padding: 0;
}

#ip-main-menu .dropdown-header {
    padding: 1rem .75rem .25rem;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    opacity: 0.6;
}
#ip-main-menu .arrow + .dropdown-header {
    padding-top: .25rem;
}
.ip-minimised #ip-main-menu .dropdown-header {
    padding-right: 1rem;
    padding-left: 1rem;
}

#ip-main-menu .nav-link {
    position: relative;
}

#ip-main-menu .nav-link > i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
}

#ip-main-menu .nav-link > .ip-nav-item-text {
    display: inline-block;
    vertical-align: bottom;
    margin-left: 2.75rem;
    max-width: calc(100% - 2.5rem);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#ip-main-menu .nav-link.dropdown-toggle::after {
    margin-left: .3em;
    vertical-align: .125em;
}

#ip-main-menu .dropdown-item {
    padding: .2rem .75rem;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ip-minimised #ip-main-menu .dropdown-item {
    padding-right: 1rem;
    padding-left: 1rem;
}

#ip-main-menu .dropdown-menu {
    max-height: 50vh;
    overflow: auto;
}

#ip-sidebar:not(.ip-minimised) #ip-main-menu .dropdown-menu {
    border-radius: 0;
    max-height: 40vh;
}

#ip-sidebar.ip-minimised .navbar-nav .dropdown-menu {
    position: absolute;
    top: -5px;
    left: 51px;
    overflow: visible;
    max-height: initial !important;
    box-shadow: 0 5px 10px rgba(0,0,0,.15);
}

#ip-sidebar .navbar-nav .dropdown-menu > .arrow {
    display: none;
    position: absolute;
    top: 8px;
    left: calc(-.5rem - 1px);
    width: .5rem;
    height: 1rem;
    margin: .3rem 0;
}
#ip-sidebar.ip-minimised .navbar-nav .dropdown-menu > .arrow {
    display: block;
}
#ip-sidebar .navbar-nav .dropdown-menu > .arrow::after,
#ip-sidebar .navbar-nav .dropdown-menu > .arrow::before {
    position: absolute;
    display: block;
    content: "";
    border-color: transparent;
    border-style: solid;
}
#ip-sidebar .navbar-nav .dropdown-menu > .arrow::before {
    left: 0;
    border-width: .5rem .5rem .5rem 0;
    border-right-color: rgba(0,0,0,.25);
}
#ip-sidebar .navbar-nav .dropdown-menu > .arrow::after {
    left: 1px;
    border-width: .5rem .5rem .5rem 0;
    border-right-color: #fff;
}

#ip-sidebar .ip-user-menu .dropdown-menu {
    box-shadow: 0 5px 10px rgba(0,0,0,.15);
}

#ip-sidebar .ip-user-menu .dropdown-item {
    position: relative;
    padding-left: 2.75rem;
}

#ip-sidebar .ip-user-menu .dropdown-item > i {
    position: absolute;
    top: 50%;
    left: 1rem;
    transform: translateY(-50%);
}

.ip-version-text {
    display: block;
    padding: 0 0 0.25rem;
}

#ip-user-menu-toggle {
    display: none;
}

#ip-sidebar.ip-minimised #ip-user-menu-toggle {
    margin-left: -1px;
}

#ip-sidebar.ip-minimised .ip-version-text {
    margin-left: -1px;
    max-width: 40px;
    overflow: hidden;
    text-overflow: ellipsis;
}

#ip-sidebar.ip-minimised #ip-user-menu-toggle {
    display: block;
}

#ip-sidebar-footer {
    padding: .5rem 1rem;
    border-top: solid 1px rgba(255,255,255,0.4);
}

#ip-sidebar-footer > .col {
    transition: padding-left 200ms ease-in;
}

#ip-sidebar.ip-minimised #ip-sidebar-footer > .col {
    padding-left: .5rem;
}



/* Page header */
#ip-page-header {
    padding: 0;
}

#ip-page-header.collapse:not(.show) {
    display: none !important;
}

#ip-page-header .ip-header-content {
    position: relative;
    flex-wrap: wrap;
    padding: 0.75rem 1rem 0.25rem;
    margin: 0;
}

#ip-page-header .ip-header-content > *:not(.iplan-tabs-main):not(.hide) {
    display: inline-flex;
    margin: 0 0.5rem 0.25rem 0;
}

#ip-page-header .ip-header-content > .iplan-filter:not(.hide),
#ip-page-header .ip-header-content > .iplan-daterangepicker:not(.hide) {
    display: inline-block;
}

#ip-page-header .ip-header-content > select,
#ip-page-header .units > select {
    width: auto;
    padding: .25rem;
}

.ip-header-content::after {
    position: absolute;
    content: '';
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-height: 60px;
    background: #f8f9fa url(/iplan/cassette.axd/file/Scripts/images/wait-snake-dark-on-grey-7c840d7f03316888333e58a777ce6d1b99f7ed23.gif) center center no-repeat;
    opacity: 0;
    transition: opacity 500ms; /* If changing duration, make sure to update in IPlan.configLoaded setTimeout's value */
    z-index: 5; /* 10 is .iplan-tabs, make sure it is below */
}

.ip-header-content:not(.config-loaded-transition)::after {
    opacity: 1;
}

.ip-header-content.config-loaded::after {
    display: none;
}

.ip-header-content .disable-panel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    margin: 0 !important;
    background: rgba(255,255,255,0.8);
    z-index: 1; /* To cover filter/summary controls */
}



/* Main layout */
main > .col {
    padding: 0.75rem 1rem;
    overflow: hidden;
}

main > .col > .tab-content {
    margin: 0 -1rem -0.25rem 0;
}

#grid_container,
.gridContainer {
    position: absolute;
    top: 0.75rem;
    left: 1rem;
    width: calc(100% - 2rem) !important;
    height: calc(100% - 1.5rem) !important;
}

main .tab-content,
main .tab-pane,
main .gridContainer,
#grid_container {
    height: 100%;
}

.modal-body .help-inline:not(.hide) {
    display: block;
}

.modal-body .col-form-label {
    text-align: right;
}
.modal-body i.fa-caret-right[data-is-additional-filter], .modal-body i.fa-caret-down[data-is-additional-filter] {
    color: #2f96b4;
    opacity: 0.5;
    font-size: 18px;
}

.modal-body i.fa-caret-right[data-is-additional-filter]:hover, .modal-body i.fa-caret-down[data-is-additional-filter]:hover {
    opacity: 1;
}

/*div.gridbox_mt table.hdr td,
div.gridbox_mt .xhdr {
    background-color: #f5f5f5;
    background-repeat: repeat-x;
    background-image: none;
    background: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgdmlld0JveD0iMCAwIDEgMSIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSI+CiAgPGxpbmVhckdyYWRpZW50IGlkPSJncmFkLXVjZ2ctZ2VuZXJhdGVkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjAlIiB5MT0iMCUiIHgyPSIwJSIgeTI9IjEwMCUiPgogICAgPHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iI2ZmZmZmZiIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjEwMCUiIHN0b3AtY29sb3I9IiNlNmU2ZTYiIHN0b3Atb3BhY2l0eT0iMSIvPgogIDwvbGluZWFyR3JhZGllbnQ+CiAgPHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9IjEiIGhlaWdodD0iMSIgZmlsbD0idXJsKCNncmFkLXVjZ2ctZ2VuZXJhdGVkKSIgLz4KPC9zdmc+);
    background: -moz-linear-gradient(top, #ffffff 0%, #e6e6e6 100%);*/ /* FF3.6+ */
    /*background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#ffffff), color-stop(100%,#e6e6e6));*/ /* Chrome,Safari4+ */
    /*background: -webkit-linear-gradient(top, #ffffff 0%,#e6e6e6 100%);*/ /* Chrome10+,Safari5.1+ */
    /*background: -o-linear-gradient(top, #ffffff 0%,#e6e6e6 100%);*/ /* Opera 11.10+ */
    /*background: -ms-linear-gradient(top, #ffffff 0%,#e6e6e6 100%);*/ /* IE10+ */
    /*background: linear-gradient(to bottom, #ffffff 0%,#e6e6e6 100%);*/ /* W3C */
/*}

div.gridbox_mt table.hdr td:last-child {
    border-right: 1px solid lightgrey;
}

div.gridbox_mt table.hdr td.filter {
    padding-top: 6px;
}

div.gridbox_mt td.filter input,
div.gridbox_mt td.filter select {
    margin-bottom: 7px;
    font-size: 14px !important;
}

div.gridbox_mt table.hdr td div.hdrcell {
    height: auto;
    white-space: normal;
    line-height: 20px;
}

div.gridbox_mt table.row20px tr td {
    padding: 1px 5px;
}

div.gridbox_mt table.obj tr.rowselected td {
    background-color: #eaeaea;
}

div.gridbox_mt table.obj tr.rowselected td.cellselected,
div.gridbox_mt table.obj td.cellselected {
    background-color: #6c757d;
    color: #fff;
}*/

#ip-page-parameters .popover-header .close-popup {
    display: none;
}

/* Small / mobile screen */
@media only screen and (max-width: 767px) {
    #ip-toolbar > div > * {
        margin-bottom: 0.5rem;
    }

    #ip-sidebar.ip-minimised .navbar-nav .dropdown-menu {
        position: fixed;
        top: 0;
        left: 0;
        max-height: 100vh;
        width: 100vw;
        border-radius: 0;
    }
}


/* Sidebar (main menu) at the top, non-mobile only */
@media only screen and (min-width: 768px) {
    .ip-top-sidebar #ip-btn-toggle-sidebar,
    .ip-top-sidebar #ip-toolbar .ip-brand-section .navbar-brand,
    .ip-top-sidebar #ip-toolbar .ip-brand-section .ip-brand-divider {
        display: none;
    }

    .ip-top-sidebar #ip-sidebar {
        position: absolute;
        top: 0;
        left: 0;
        flex-direction: row !important;
        max-width: 100%;
        height: initial !important;
        border-top: none !important;
        border-bottom: solid 1px;
    }

    .ip-top-sidebar #ip-sidebar .ip-brand-section {
        display: block;
        margin: -2px 10px 0 15px;
    }

    .ip-top-sidebar #ip-toolbar {
        margin-top: 41px;
        z-index: 100;
    }

    .ip-top-sidebar #ip-main-menu {
        width: initial !important;
    }

    .ip-top-sidebar #ip-sidebar-footer {
        border-top: none;
        margin-top: 0 !important;
        padding: .5rem 15px 0;
    }

    .ip-top-sidebar #ip-sidebar-footer > div {
        display: flex;
    }

    .ip-top-sidebar .ip-user-menu {
        margin: -1px 10px 0 0;
    }

    .ip-top-sidebar .ip-user-menu .dropdown-menu.show {
        top: 100%;
        bottom: auto;
    }

    .ip-top-sidebar #ip-sidebar .ip-version-text,
    .ip-top-sidebar #ip-sidebar .ip-fixed-date {
        padding: .15rem 0 0;
    }
    .ip-top-sidebar #ip-sidebar .ip-fixed-date {
        padding: 0 .5rem .25rem 0;
    }

    .ip-top-sidebar #ip-sidebar .ip-copyright {
        padding: 0 0 0 .25rem;
    }

    .ip-top-sidebar #ip-sidebar .ip-copyright > span {
        display: none;
    }

    .ip-top-sidebar #ip-main-menu > .navbar-nav {
        flex-direction: row !important;
        height: initial !important;
    }

    .ip-top-sidebar #ip-main-menu > .navbar-nav .dropdown-menu {
        position: absolute;
        max-height: initial !important;
        border-radius: .25rem !important;
    }

    .ip-top-sidebar #ip-main-menu > .navbar-nav i.fas {
        display: none;
    }

    .ip-top-sidebar #ip-main-menu .nav-link {
        padding: .5rem 0.5rem;
    }

    .ip-top-sidebar #ip-main-menu .nav-link > .ip-nav-item-text {
        margin-left: 0;
        max-width: initial;
        overflow: visible;
        text-overflow: initial;
    }

    .ip-top-sidebar .ip-page-name {
        margin-left: 10px;
    }
}
/* ----------------------------------------------- V5UI styles END ----------------------------------------------- */




/* Override FA style */
.fa.hide {
    display: none;
}

/* Auxiliary pages styling */

.aux-page {
    padding-top: 80px;
    background-image: url(/iplan/cassette.axd/file/Scripts/images/i-plan_gradient_bg-d744fe1bb2eeb7449d2c438215289a8ef73c7c04.jpg);
    background-size: cover;
}

.ip-well {
    position: relative;
    margin-bottom: 20px;
    background-color: #f5f5f5;
    border: 1px solid #e3e3e3;
    border-radius: .25rem;
}

.aux-page h1 img {
    margin: -10px 10px 0 0;
}

.aux-page p.credit {
    margin: -.75rem 1rem 0 0;
    text-align: right;
    font-size: 15px;
    font-weight: normal;
}

.aux-page .aux-page-container {
    padding: 40px;
    border-color: #becdd8;
    border-top-color: #fff;
    border-left-color: #fff;
    box-shadow: rgba(40,88,125,0.1) 2px 2px 7px 0;
}

.login-page .aux-page-container {
    padding: 64px 20px 44px;
}

.mfa-token-page .aux-page-container {
    padding: 19px;
}

.aux-page .control-group {
    margin-bottom: 10px;
}

.login-page .control-group {
    margin-bottom: 20px;
}

.login-page .alert:first-child {
    margin-top: -49px;
}

header #page-title .tooltip {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.tooltip .text-error {
    color: #f66;
}

/* Comment by MP for allow scroll page-body */
.page-grid {
    height: 100% !important;
}

.page-content
{
  overflow-y: auto !important;
  overflow-x: hidden;
}

.page-layout {
    position: relative;
    top: 0px;
    left: 0px;
    height: 100%;
}

.scrollable {
    height: 100%;
    overflow: auto;
}

#page-title {
    margin-left: 0px;
    margin-right: 20px;
}

/* Needed for mobile screens */
#top-page-title,            /* Title in top toolbar */
#btn-page-config,           /* Toggle page header / toolbar */
#btn-full-screen {
    display: none;
}

footer {
	text-align: right;
	background-color: #eff2ec;
	border-top: solid 1px #c0d9a5;
	position: fixed;
	bottom: 0px;
	width: 100%;
}

p.credit {
  margin: 8px 0;
}



/* Toolbar */

#toolbar, .toolbar {
    position: relative;
    padding: 6px 10px 5px 0;
    background-color: #c0d9a5;
    border-bottom: solid 1px #90aa75;
    min-height: 27px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.modal-body .toolbar {
    padding: 6px 10px 5px;
}


/* Navigation */
#main-menu .brand {
  color: #eb8d28;
	white-space: nowrap;
}

.brand .logo-image {
    display: inline-block;
    width: 18px;
    height: 18px;
    margin-top: -2px;
    padding-right: 3px;
    background: transparent url('/iplan/cassette.axd/file/Scripts/images/iplan_logo_20x20-b520cbe8a6217516c1b8caaaaa0981f4f69cd28d.png') 0 0 / 18px 18px no-repeat;
}

#user-menu {
    margin-top: -5px;
}

#user-menu i.fa-user {
    vertical-align: middle;
}

#user-menu .user-name {
    margin-left: 6px;
}

#user-menu li i {
    margin-right: 8px;
}

#user-menu .dropdown-menu:before {
    position: absolute;
    top: -7px;
    left: 9px;
    display: inline-block;
    border-right: 7px solid transparent;
    border-bottom: 7px solid #ccc;
    border-left: 7px solid transparent;
    border-bottom-color: rgba(0, 0, 0, 0.2);
    content: '';
}

#user-menu .dropdown-menu:after {
    position: absolute;
    top: -6px;
    left: 10px;
    display: inline-block;
    border-right: 6px solid transparent;
    border-bottom: 6px solid #ffffff;
    border-left: 6px solid transparent;
    content: '';
}

#user-menu .dropdown-menu.pull-right:before {
    right: 5px;
    left: auto;
}

#user-menu .dropdown-menu.pull-right:after {
    right: 7px;
    left: auto;
}

#main-menu .nav li {
    white-space: nowrap;
}

#main-menu .nav > .active > a {
  color: #555555;
  text-decoration: none;
  background-color: #fff;
  -webkit-box-shadow: none;
  -moz-box-shadow: none;
  box-shadow: none;
  /*background-color: #e5e5e5;
  -webkit-box-shadow: inset 0 3px 8px rgba(0, 0, 0, 0.125);
  -moz-box-shadow: inset 0 3px 8px rgba(0, 0, 0, 0.125);
  box-shadow: inset 0 3px 8px rgba(0, 0, 0, 0.125);*/
  text-shadow: 0 1px 0 #ffffff;
}

#main-menu .nav > .active .caret {
  border-top-color: #555555;
  border-bottom-color: #555555;
}

#main-menu .dropdown-menu .active > a,
#main-menu .dropdown-menu a:hover,
#main-menu .dropdown-menu a:focus,
.dropdown-menu > li > a:hover,
.dropdown-menu > li > a:focus {
  background-color: #eb8d28;
  background-image: none;
}

.ip-user-name.has-notifications > span {
    position: relative;
}
.ip-user-name.has-notifications > span:after {
    content: '';
    position: absolute;
    background-color: red;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    z-index: 100;
    pointer-events: none;
    animation-duration: 3s;
    animation-name: pulsingCircle;
    animation-iteration-count: infinite;
    animation-direction: alternate;
}
@keyframes pulsingCircle {
    from {
        width: 8px;
        height: 8px;
        top: -5px;
        right: -35px;
    }

    96% {
        width: 8px;
        height: 8px;
        top: -5px;
        right: -35px;
    }

    to {
        width: 12px;
        height: 12px;
        top: -7px;
        right: -37px;
    }
}

/* ---------------------
   Responsive styles
   --------------------- */

.navbar .btn-navbar {
  float: left;
}


/* Modals */
.modal .modal-header.ui-draggable-handle {
	cursor: move;
}

.modal.show.ui-draggable-dragging {
    z-index: 1050; /* Above .modal-backdrop */
}

.modal-footer button i {
    margin-right: 5px;
}

.modal-footer .alert {
    padding: 5px 12px;
}

.modal-footer .alert .close {
    margin: -3px -7px 0 6px;
}

.hide {
    display: none;
}
.hide.d-flex {
    display: none !important;
}

.column2 {
	padding-left: 2.5em;
}

label > span.required {
   color: #e25856;
   margin-left: 0.2em;
}

form .section-header {
    border-bottom: solid 1px #e6e6e6;
    padding-bottom: 4px;
}

.field-validation-error {
    color: #F11212;
    font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 12px;
    font-weight: 600;
}

.form-horizontal input + .help-block {
    margin-top: 0px;
}

.datepicker-cancel {
    display: none !important;
}

/* Small datepicker */
.datepicker-mini {
    margin-bottom: 0;
}

.datepicker-mini > input {
    font-size: 10.5px;
    padding: 0 6px;
}

.datepicker-mini > .add-on {
    font-size: 10.5px;
    padding: 0 3px 0 2px;
    line-height: 17px;
}

/* Color picker */
.minicolors-input {
    height: inherit !important;
}
.minicolors-swatch {
    top: 6px !important;
}

#dev-errors > i {
    color: #d14;
    margin-top: 10px;
}

#dev-errors-content .modal-header h5 {
    color: red;
}

.popover .popover-content {
    max-width: 80%;
    height: 90%;
    overflow-y:scroll;
}


/* Button dropdown */

.btn-dropdown-group .dropdown-menu
{
    min-width: 90px;
    font-size: 11.9px;
    padding: 1px 0;
}

.btn-dropdown-group .dropdown-menu > li > a
{
    padding: 2px 10px;
}

img {
	cursor: default;
}


/* Bootstrap accordion */
.accordion .card-header { 
    padding: 0;
}

.accordion .card-header > button:focus {
    box-shadow: none;
}

.accordion .card-body {
    padding: 0;
}

/* Bootstrap old classes (but used) */
.open .dropdown-menu {
    display: block;
}
input.form-control.form-control-sm[type="number"] {
    width: 6em;
}

/* TODO: (IPLAN-61308) Overriding missing icon, get full version of FontAwesome instead? */
.far.fa-square {
    margin-top: 4px !important;
    width: 13px;
    height: 14px;
    border: solid 2px #000;
}
.far.fa-square::before {
    display: none;
}

/* Other Bootstrap overrides */
form .form-group.row .col-form-label {
    padding-top: 0;
}

.dropdown-menu .dropdown-submenu > .dropdown-menu.hide {
    display: none;
}

.dropdown-submenu:not(.hide) {
    display: block;
    position: relative;
}

.dropdown-submenu a::after {
    transform: rotate(-90deg);
    position: absolute;
    right: 6px;
    top: .8em;
}

.dropdown-submenu .dropdown-menu {
    top: 0;
    left: 100%;
    margin: -.5rem 0 0;
}

.no-transition {
    transition: none !important;
}


/* amCharts styling */
a[href='http://www.amcharts.com/javascript-charts/'] {
    display: none !important;
}

.amcharts-export-menu {
    opacity: 0.1;
}

.amcharts-export-menu img {
    cursor: pointer;
}

.amcharts-export-menu li img {
    height: 12px;
}

.amcharts-export-menu-top-right {
    top: -4px;
    right: -3px;
}

.amcharts-export-menu-top-right li:hover > ul {
    top: 5px;
}

.amcharts-export-menu-top-right > ul > li > ul:after {
    top: 1px;
}

.amcharts-export-menu-top-right > ul > li > ul > li:first-child > a:after {
    top: 0;
}

.amcharts-export-menu .iplan-export-main > a > span {
    display: none;
}

.amcharts-export-menu li.iplan-export-main > a {
    padding: 0 0 5px 5px;
}

.amcharts-export-menu .iplan-export-main li > a {
    padding: 3px 7px;
}

.amcharts-export-menu li.iplan-export-main:hover > a {
    background-color: transparent;
}

.no-data::after {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    font-size: 18px;
    margin-top: -9px;
    opacity: 0.4;
    text-shadow: 1px 1px 1px #fff;
    text-align: center;
}

/* Map popups override */
.ampopup-content {
    background-color: #000 !important;
    color: #fff !important;
}
.ampopup-header {
    background-color: #777 !important;
    color: #000 !important;
}

/* EntityTypes */
[class*="entity-type-"] {
    color: #fff !important;
}

.entity-type-Location { background-color: #FF6600 !important; }
.entity-type-Product { background-color: #33A02C !important; }
.entity-type-EndUseProperty { background-color: #990000 !important; }
.entity-type-FilterField { background-color: #0D8ECF !important; }
.entity-type-Run { background-color: #FCD202 !important; color: #444 !important; }
.entity-type-Site { background-color: #B0DE09 !important; color: #444 !important; }
.entity-type-Custom { background-color: #6a3d9a !important; }
.entity-type-Other { background-color: #999999 !important; }
.entity-type-SkuProperty { background-color: #2A0CD0 !important; }
.entity-type-Dates { background-color: #333333 !important; }
.entity-type-Values { background-color: #948b3e !important; }
.entity-type-Calculation { background-color: #b15928 !important; }
.entity-type-DerivedCharacteristic { background-color: #af14dc !important; }

/* Page Parameters */
#ip-page-parameters {
    right: 77px;
    left: initial;
    top: 27px;
    width: 66vw;
    max-width: 66vw;
    max-height: 75vh;
    box-shadow: 0 5px 10px rgba(0,0,0,.15);
}
#ip-page-parameters.page-parameters-untabbed {
    width: 50vw;
    max-width: 50vw;
}

#ip-page-parameters > .arrow {
    right: 0;
}

#ip-page-parameters .popover-body .tab-content, #ip-page-parameters .popover-body .categories {
    height: 100%;
    max-height: calc(75vh - 62px);
    overflow-y: auto;
}

#ip-page-parameters .popover-body .categories {
    display: block;
}

#ip-page-parameters .popover-body.notabs {
    height: 100%;
    max-height: calc(75vh - 62px);
    overflow-y: auto;
    overflow-x: hidden;
}

#ip-page-parameters .popover-body .tab-pane {
    height: calc(100% - 2rem);
}

#ip-page-parameters .popover-body .tab-pane > form {
    margin-top: 1rem;
    padding-right: 20px;
}

#ip-page-parameters .popover-header .action-ShowGridPageParameters {
    margin-left: 7px;
}

#ip-page-parameters .separator {
    border-top: 1px solid #ddd;
    width: 100%;
    height: 1px;
    margin: .5rem 1rem;
}

#ip-page-parameters select.alert.form-control-sm {
    padding: .25rem .5rem;
}

/* For ChartLine colours / patterns */
#ip-page-parameters .form-group.type-Color {
    margin: -38px 0 1rem calc(50% + 1.5rem);
}
#ip-page-parameters .form-group.type-Pattern {
    margin: -47px 0 1rem calc(50% + 130px);
}
#ip-page-parameters .form-group.type-Color label,
#ip-page-parameters .form-group.type-Pattern label {
    display: none;
}
#ip-page-parameters .form-group.type-Pattern .col-md-6 {
    flex: 0 0 100%;
    max-width: 100%;
}

/* Animate logo on AJAX */
body.ajax-loading .ip-brand-section .ip-brand-logo {
    background: transparent url('/iplan/cassette.axd/file/Scripts/images/i-plan-logo-loader_32x32-c2777d25fcb89923a8e80bf472e3f29b329962ce.gif') 0 0 / 18px 18px no-repeat;
}

/* Universal loading indicator */
.loading {
    background: transparent url(/iplan/cassette.axd/file/Scripts/images/wait-grey-on-white-118b79eb2fb12c948097f478e154a6be47ad948c.gif) center center no-repeat;
}

.loading.full-screen { /* Relative to container */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3000;
    background-color: #fff;
}

.modal-body .loading {
    min-height: 150px;
    z-index: 1000;
}

body > .loading.full-screen {
    z-index: 3000;
}

.loading h4 {
    position: absolute;
    top: 50%;
    width: 100%;
    margin-top: 32px;
    text-align: center;
    opacity: 0.4;
}

/* For DHX Layout cells */
.cell-loading {
    position: relative;
}
.cell-loading::after {
    position: absolute;
    content: '';
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff url(/iplan/cassette.axd/file/Scripts/images/wait-grey-on-white-118b79eb2fb12c948097f478e154a6be47ad948c.gif) center center no-repeat;
    z-index: 900;
}

/* Context Menu styling (Gantt, Sourcing Network) */
.contextmenu-hide .dropdown-menu > li > a {
    cursor: pointer;
}

.contextmenu-hide .dropdown-submenu.disabled:hover > .dropdown-menu {
    display: none;
}

.contextmenu-hide .dropdown-menu * {
	white-space: nowrap;
}

.mobile-grid-edit #main-menu,
.mobile-grid-edit header,
.mobile-grid-edit .alert,
.mobile-grid-edit #toolbar,
.mobile-grid-edit footer,
.mobile-grid-edit .xhdr {
    display: none;
}

#disable-toolbar {
    position: fixed;
    z-index: 1040;
    opacity: 0.7;
    filter: alpha(opacity=70);
    background: #eff2ec;
    width: 100%;
    height: 38px;
    top: 0;
}

div.month-container.col-xs-2 {
    float: left;
    margin-right: 20px;
    margin-top: 33px;
}

div.calendar-header {
    margin-bottom: -33px !important;
}

select.dhx_combo_select[size] {
    overflow-y: auto; /* IPLAN-58143: Grid's value selection menu to have vertical scroll in Chrome */
}


/* -----------------------------------------------------------------------------------------------
   ----------------------------- Small / mobile screen overrides below --------------------------- 
   ----------------------------------------------------------------------------------------------- */
/* IPad landscape width */
@media (max-width: 1024px) {
    #user-menu-screen-preview, #user-menu-calendar-preview {
        display: none;
    }
	div.objbox {
		overflow-x: scroll !important;
	}
}




/* Tablet-sized screens and smaller */
@media (max-width: 979px) {
    .navbar-fixed-top {
        position: fixed;
        margin-bottom: 0;
    }

    .navbar-fixed-top .navbar-inner {
        padding: 0;
    }

    .nav-collapse.collapse.in { /* For nav to stay open */
        height: auto;
    }

    .navbar-inverse .nav-collapse .nav > li > a:hover,
    .navbar-inverse .nav-collapse .dropdown-menu a:hover {
        color: #fff;
    }

    /* Auxiliary pages mobile restyling */
    .aux-page {
        padding-top: 0;
        text-align: center;
    }

    .aux-page h1 {
        text-align: center;
        margin: 5px 0 0;
        font-size: 24px;
    }

    .aux-page h1 img {
        width: 20px;
        height: 20px;
        margin: -7px 6px 0 0;
    }

    .aux-page .aux-page-container {
        text-align: left;
        border: none;
        background-color: transparent;
        box-shadow: none;
        padding: 10px 0;
        margin: 0 auto;
    }

    .logout-page .aux-page-container,
    .not-licensed-page .aux-page-container {
        text-align: center;
        padding-top: 40px;
    }

    .aux-page .alert {
        text-align: center;
    }

    .login-page .alert:first-child {
        margin-top: 0;
    }

    .login-page .control-group {
        margin-bottom: 10px;
    }

    .aux-page p.credit {
        position: fixed;
        bottom: 15px;
        left: 0;
        width: 100%;
        text-align: center;
    }
}

/* Non-mobile screens */
@media (min-width: 768px) {
    /* Needed to show filter/summary popups */
    header.collapse.in {
        overflow: visible;
    }
}

/* Mobile-sized screens */
@media only screen and (max-width: 767px) {
    body {
        padding-right: 0;
        padding-left: 0;
    }

    #ip-toolbar #ip-page-actions {
        float: right;
        margin-bottom: 0;
    }

    #ip-btn-toggle-header {
        position: absolute;
        top: 0;
        right: 4px;
    }

    .navbar .btn-navbar {
        margin-left: 10px;
    }

    .nav-collapse .nav {
        float: none;
        margin: 0 0 10px 20px;
    }

    .ip-user-name.has-notifications > span:after {
        display: block;
    }

    #ip-page-header {
        margin: 0 -10px;
    }
    #ip-page-header .ip-header-content {
        padding: .25rem;
    }

    #ip-btn-toggle-sidebar {
        padding: 0 4px 0 9px;
    }

    #ip-btn-toggle-sidebar,
    .ip-brand-text,
    .ip-page-name {
        font-size: 18px;
    }

    .ip-brand-section .navbar-brand,
    .ip-brand-section .ip-brand-divider {
        margin-right: 0;
    }

    .ip-brand-section .ip-brand-logo,
    body.ajax-loading .ip-brand-section .ip-brand-logo {
        width: 18px;
        height: 18px;
        background-size: 18px 18px;
    }

    #top-page-title {
        font-size: 16px;
    }

    #ip-main-actions {
        margin-left: .5rem;
    }

    #btn-full-screen {
        display: block;
        float: right;
    }
    #btn-full-screen {
        margin-right: 3px;
    }

    /* Hide some ForecastCollaboration actions */
    .page-ForecastCollaboration #action-detail,
    .page-ForecastCollaboration .list-detail-history-action,
    .page-ForecastCollaboration #action-detail-history,
    .page-ForecastCollaboration #action-Modify,
    .page-ForecastCollaboration #action-populate,
    .page-ForecastCollaboration #dropdown-populate,
    .page-ForecastCollaboration #action-populateBudget,
    .page-ForecastCollaboration #action-convertAll,
    .page-ForecastCollaboration #action-releaseall,
    .page-ForecastCollaboration #action-reset,
    .page-ForecastCollaboration #dropdown-reset,
    .page-ForecastCollaboration #action-comparison,
    .page-ForecastCollaboration #action-statistics,
    .page-ForecastCollaboration #action-originalHistory,
    .page-ForecastCollaboration #action-generatedHistory {
        display: none;
    }

    /* Modals */
    .modal,
    .modal.modal-overflow {
        top: 0;
        right: 0;
        left: 0;
        width: 100% !important;
        max-width: 100%;
        -webkit-border-radius: 0;
        -moz-border-radius: 0;
        border-radius: 0;
    }

    .modal-body {
        -webkit-box-sizing: border-box;
        -moz-box-sizing: border-box;
        box-sizing: border-box;
    }

    .bootbox-body {
        padding: 10px;
    }

    /* Page Config area */
    .cont-config-button {
        padding: 0;
    }

    .navbar-fixed-top, .navbar-fixed-bottom, .navbar-static-top {
        margin-right: 0;
    }

    /* Full-screen modal for mobile (panel replacement) */
    .modal.modal-full-screen.show .modal-dialog {
        margin: 0;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        width: 100vw !important;
        height: 100vh !important;
        max-height: 100vh;
        box-sizing: border-box;
        border-radius: 0;
    }

    .modal.modal-full-screen.show .modal-content {
        max-height: 100vh;
    }

    .modal.modal-full-screen .modal-header {
        position: fixed;
        top: 0;
        width: 100vw;
        padding: 5px 10px;
        box-sizing: border-box;
        z-index: 100;
    }

    /* Modal used to show panel contents on mobile screens */
    .modal-full-screen #panel-modal-body {
        position: relative;
        padding: 47px 0 0;
        height: calc(100vh - 47px) !important;
        width: calc(100vw - 10px) !important;
        box-sizing: border-box;
    }

    .modal-backdrop, .modal-backdrop.fade.in {
        background: #000;
    }

    /* Page parameters */
    #ip-page-parameters {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        max-width: 100vw;
        max-height: 100vh;
        margin: 0;
        padding: 0;
        box-sizing: border-box;
        border-radius: 0;
        border: none;
    }

    #ip-page-parameters:before,
    #ip-page-parameters:after {
        display: none;
    }

    #ip-page-parameters .popover-header .action-ShowGridPageParameters {
        display: none;
    }

    #ip-page-parameters .popover-header .close-popup {
        display: inline-block;
        margin-right: 10px;
        font-weight: bold;
        color: #000;
        text-shadow: 0 1px 0 #fff;
        opacity: 0.2;
    }

    #ip-page-parameters .popover-body .nav-pills,
    #ip-page-parameters .popover-body .tab-content {
        max-height: calc(100vh - 49px);
    }
    #ip-page-parameters .popover-body .nav-pills {
        overflow-y: auto;
        flex-wrap: nowrap;
    }

    #ip-page-parameters.page-parameters-untabbed .popover-body {
        max-height: calc(100vh - 41px);
        overflow-y: auto;
    }

    #ip-page-parameters .col-form-label {
        text-align: left !important;
    }

    /* ChartLine colours / patterns */
    #ip-page-parameters .form-group.type-Color {
        margin: initial;
    }

    #ip-page-parameters .form-group.type-Pattern {
        margin: initial;
    }

    #ip-page-parameters .form-group.type-Color label,
    #ip-page-parameters .form-group.type-Pattern label {
        display: initial;
    }

    #ip-page-parameters .form-group.type-Pattern .col-md-6 {
        flex: initial;
        max-width: initial;
    }

    /* Make grids tighter */
    div.gridbox_mt table.hdr tr {
        height: 24px;
    }

    div.gridbox_mt table.hdr td, div.gridbox_mt .xhdr {
        line-height: 16px;
        padding: 2px !important;
    }

    .datepicker-cancel {
        display: block !important;
        position: absolute;
        bottom: 20px;
        right: 10px;
        font-size: 34px;
        opacity: 0.6;
    }

    .iplan-daterangepicker .datepicker-cancel {
        display: none !important; /* override above datepicker rule */
    }

    .modal-body .col-form-label {
        text-align: initial;
    }
}



/* Mobile-sized screens - Portrait view */
@media (max-width: 480px) {
    .aux-page h1 h1 {
        margin: 20px 0 10px;
    }

    .aux-page .aux-page-container {
        width: 260px;
    }

    .aux-page .alert {
        margin: -15px -56px 10px;
    }

    .aux-page p.credit {
        margin-top: 130px;
    }
}

.ajax-responseMessage {
	background-color: white;
	border: none;
	font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
	font-size: 14px;
	padding: 0;
}

button[data-is-dev-mode="1"],
#ip-main-menu a[data-is-dev-mode="1"],
#main-menu #navigation-menu li[data-is-dev-mode="1"] a,
#ip-page-parameters .control-label[data-is-dev-mode="1"],
form label[data-is-dev-mode="1"] {
    color: #ced4da !important;
}

.ip-modal-error .ip-error-details {
    min-height: 150px;
    padding: 9.5px;
    background-color: #f5f5f5;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 4px;
}
.ip-modal-error .ajax-params {
	border: none;
	font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
	font-size: 14px;
	padding: 0;
	margin: 0;
    white-space: normal;
}

div.pageMessage {
    position: fixed;
    bottom: 15px;
    z-index: 1050;
    right: 15px;
    font-weight: bold;
    color: #fff;
    background-color: #212529;
    border-color: #c6c8ca;
    padding: 8px 14px 8px 14px;
    min-width: 300px;
    width: 20%;
    border-radius: 5px;
}
div.pageMessage .header i {
    float: right;
    cursor: pointer;
}
div.pageMessage .header i:hover {
    color: orange;
}
div.pageMessage .header .warning {
    color: orange;
    display: inline-block;
    animation: blinker 1s linear infinite;
}
@keyframes blinker {
    50% {
        opacity: 0;
    }
}

#pageUpdated {
    position: fixed;
    padding: 1rem 1rem .5rem;
    top: 0;
    z-index: 9999;
    text-align: center;
    border-top: none !important;
    border-bottom-right-radius: .25rem;
    border-bottom-left-radius: .25rem;
    left: 32%;
    width: 36%;
    box-shadow: 0 5px 10px rgba(0, 0, 0, .15);
}

#pageUpdated a {
    margin: 10px;
    cursor: pointer;
}

.ip-engine-storage-modal .bootbox-body {
    min-height: 12rem; /* For loading */
}

.ip-engine-storage-modal #ip-file-contents,
.ip-engine-storage-modal #ip-html-preview {
    position: absolute;
    margin-top: 1rem;
    width: calc(100% - 2rem);
    height: calc(100% - 5.5rem);
}

.ip-engine-storage-modal #ip-html-preview {
    overflow: auto;
}

.ip-engine-storage-modal.ip-html-mode #ip-file-contents {
    display: none;
}
.ip-engine-storage-modal:not(.ip-html-mode) #ip-html-preview {
    display: none;
}

/*IPLAN-66230 Remove empty space in alert windows*/
div.bootbox.bootbox-confirm .modal-header,
div.bootbox.bootbox-alert .modal-header {
    z-index: 10;
}

div.bootbox.bootbox-confirm .modal-body,
div.bootbox.bootbox-alert .modal-body {
    margin-top: -3.5rem;
}

div.bootbox.bootbox-confirm .modal-body .bootbox-body,
div.bootbox.bootbox-alert .modal-body .bootbox-body{
    margin-right: 1.3rem;
}

.ip-modal-error.size-xxl .modal-dialog {
	max-width: 90%;
	height: 90%;
}
