/* ------------------------------------------------------------------------------
  GENERAL 
---------------------------------------------------------------------------------*/

html {
    position: relative;
    min-height: 100%;
}
body {
    margin-bottom: 63px; /* Margin bottom by footer height */
}         

.bg-dark {
    background-color: rgb(46, 46, 46)!important;
}

.h-99 {
    height: 99%!important;
} 

.mt-15 {
    margin-top: .4rem!important; 
}

.mainContainer {
    height:calc(100vh - 63px);
    overflow:auto;
} 

.footer {
    box-shadow: inset 0 1px 0 rgba(0, 0, 0, .1);
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 63px; 
    line-height: 63px; 
}       
   
.footer button {
    min-width: 150px;
}

.nav-link:hover:not(.active) {
    background-color: #6c757d !important;
    color: #fff;
}

.nav-link:hover svg {
    stroke: #fff;
}    

.nav-link.active {
    background-color: #38A9FF!important;
    color: #fff;                
}

.nav-link.active svg {
    stroke: #fff;
}

.collapsing {
    -webkit-transition: none;
    transition: none;
    display: none;
}

.card {
    border-radius: 0;
}

/* width */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

/* Track */
::-webkit-scrollbar-track {
    background: #f1f1f1; 
}

/* Handle */
::-webkit-scrollbar-thumb {
    background: #ccc; 
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
    background: #aaa; 
}

/* ------------------------------------------------------------------------------
  CODE MIRROR 
---------------------------------------------------------------------------------*/

.CodeMirror {
    border: 1px solid #eee;
    height: auto;
}    

.CodeMirror-scrollbar-filler {
    background-color:#aaa;
}

/* ------------------------------------------------------------------------------
  SIDEBAR 
---------------------------------------------------------------------------------*/

.sidebar .icon {
    width: 32px;
    height: 32px;
    margin-right: .5rem!important;
}

.sidebar {
    /*position: fixed;*/
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 100; /* Behind the navbar */
    box-shadow: inset -1px 0 0 rgba(0, 0, 0, .1);
}

.sidebar-sticky {
    position: relative;
    top: 0;
    height: calc(100vh - 63px);
    padding-top: .5rem;
    overflow-x: hidden;
    overflow-y: auto; /* Scrollable contents if viewport is shorter than content. */
}

@supports ((position: -webkit-sticky) or (position: sticky)) {
    .sidebar-sticky {
        position: -webkit-sticky;
        position: sticky;
    }
}

.sidebar .nav-link {
    font-weight: 500;
    color: #333;
}

.sidebar .nav-link.active {
    color: #fff;                
}

.sidebar-heading {
    font-size: .75rem;
    text-transform: uppercase;
}    

.sidebar-menu-item {
    display: inline-block;
    vertical-align: middle;
}

/* ------------------------------------------------------------------------------
  TOP NAV
---------------------------------------------------------------------------------*/

/*
.navbar .form-control {
    padding: .75rem 1rem;
    border-width: 0;
    border-radius: 0;
}            
.form-control-dark {
    color: #fff;
    background-color: rgba(255, 255, 255, .7);
    border-color: rgba(255, 255, 255, .1);
}

.form-control-dark:focus {
    border-color: transparent;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, .25);
}
*/


/* ------------------------------------------------------------------------------
  TABS
---------------------------------------------------------------------------------*/

.nav-tabs .nav-link.active {
   background-color: #545b62!important;
   color: #fff;       
   font-weight: bold;         
}

.nav-tabs .nav-item {
   background-color: #eeeeee;
   border-right: 1px solid #ffffff;
   border-bottom: 2px solid #ffffff;
}

.nav-tabs .nav-link {
   border-radius: 0;
   white-space: nowrap;
   color: #333;
}

.nav-tabs .nav-link.active {
   border-color: #545b62;
}  

[class*="nav-tabs"] 
{
    position: fixed;
    z-index: 9;
    background-color: #fff;
    /*margin-top: -44px; */
    box-shadow: 0px -9px 1px #fff;
}

/*
[class*="tab-content"] 
{
    margin-top: 44px; 
} 
*/     
  
/* ------------------------------------------------------------------------------
  ALERTS
---------------------------------------------------------------------------------*/

.footer .alert-container {
    max-width: 50%;
}

.alert-footer {
    height: 63px;
    padding: 0 30px 0 5px; 
    border-radius: 0;
    line-height: 1.2em;
    max-height: 63px;
    overflow-x: hidden;
    overflow-y: auto;
    margin-bottom: 0;
}    

.alert-footer svg.close {
    padding: 0;
    right: -5px;
}

.alert-footer div.alert-body {
    max-height: 63px;
}


/* ------------------------------------------------------------------------------
  BUTTONS
---------------------------------------------------------------------------------*/

.btn {
    border-radius: 0;
    transition: none!important;
}   

.btn-primary {
    background-color: #38A9FF;
    border-color: #38A9FF;
}

.btn-primary:hover {
    color: #ffffff;
    background-color: rgb(0, 145, 255);
    border-color: rgb(0, 145, 255);
}

.btn-outline-primary {
    color: #38A9FF;
    border-color: #38A9FF;
}

.btn-outline-primary:hover {
    color: #ffffff;
    background-color: #38A9FF;
    border-color: #38A9FF;
}

.form-control {
    border-radius: 0;
}

/* ------------------------------------------------------------------------------
  ACTION LIST
---------------------------------------------------------------------------------*/

.actionListAccordion .card-header {
    cursor: pointer;
    padding: .75rem .5rem;
    border-radius: 0;
    background-color: #f0f0f0;
    border-right: 4px solid transparent;
}

.actionListAccordion .card-header:hover {
    border-right: 4px solid #6c757d;
}

.actionListAccordion .card-body {
    padding: 2px 8px 0px 4px;
    margin-bottom: 1px;
}

.actionListAccordion .card-body::after {
    content: "";
    display: block;
    border-bottom: 1px solid #f0f0f0;
}

.actionListAccordion .card-body:not(.active) {
    border-right: 4px solid transparent;
}

.actionListAccordion .card-body:hover:not(.active) {
    border-right: 4px solid #6c757d;
}

.actionListAccordion .card-body.active {
    background-color: #f0f0f0;
    border-right: 4px solid #38A9FF;
}

.actionListAccordion {
    width: 300px;
    min-width: 75px;
    max-width: 30vw;
    overflow-x: auto;
    overflow-y: scroll;
    resize: horizontal;
}

.actionListAccordion .card {
    border: 0;
}

.actionlistitem {
    cursor: pointer;
}

canvas {
    background-color: #fff;
}

.actionListAccordion .media-body small {
    color: #6c757d;
}

.actionEditor {
    overflow-x: hidden;
    overflow-y: auto;
    margin-right:-8px;
}

.actionEditorCategory {
    min-width: 250px;
}

.actionEditorName {
    min-width: 250px;    
}

.ToggleScriptEditorParent {
    background-color: rgba(0,0,0,0.05);
}

.actionEditorDetails {
    margin-left:0px;
}

.bluebgfade {
    animation: bluebgfade 1s forwards;
}

.graybgfade {
    animation: graybgfade 2s forwards;
}

@keyframes bluebgfade {
    from {background-color:rgba(56, 169, 255, 0.8);}
    to {background-color:rgba(56, 169, 255, 0);}
}

@keyframes graybgfade {
    from {background-color:rgba(128, 128, 128, 0.8);}
    to {background-color:rgba(128, 128, 128, 0);}
}

.custom-control {
    cursor: pointer;
}

.custom-control-input {
    cursor: inherit;
}

.custom-control-label {
    cursor: inherit;
}

.form-check-input {
    transform: scale(1.1) translateY(1px);
    cursor: inherit;
    /*width: 25px; 
    height: 25px;*/
}

.control-label {
    cursor: inherit;
    font-weight: bold;
}

.form-check {
    cursor: pointer;
    display:inline-block;
}

.form-check-label {
    cursor: inherit;
}

input[type="radio"] {
    transform: scale(1.1) translateY(1px);
    cursor: inherit;
}

.large-radio {
    cursor: pointer;
}

::-webkit-resizer {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' class='icon icon-tabler icon-tabler-switch-horizontal' width='10px' height='10px' viewBox='0 0 24 24' stroke-width='1.5' stroke='%239e9e9e' fill='none' stroke-linecap='round' stroke-linejoin='round'>  <path stroke='none' d='M0 0h24v24H0z' fill='none'/>  <polyline points='16 3 20 7 16 11' />  <line x1='10' y1='7' x2='20' y2='7' />  <polyline points='8 13 4 17 8 21' />  <line x1='4' y1='17' x2='13' y2='17' /></svg>");
}

.cursor-pointer{
    cursor: pointer;
}

.modal-dialog-xxl {
    position: relative;
    display: table;
    overflow: auto;
    width: 95%;
    min-width: 300px;
    max-width: 1800px;
  }

/* ------------------------------------------------------------------------------
  TOOLBAR
---------------------------------------------------------------------------------*/
.actionListToolbar {
    position: fixed;
    z-index: 10;
    background-color: #f0f0f0;
    width: inherit;
    height: 32px;
    border-bottom: 1px solid rgba(0,0,0,.125);
    min-width: 75px;
    max-width: 30vw;
}

.actionListToolbar .icon {
    padding-left: 2px;
    cursor: pointer;
}

.actionListCardContainer {
    margin-top:32px;
}

/* ------------------------------------------------------------------------------
  MENU
---------------------------------------------------------------------------------*/

.custom-menu {
    display: none;
    z-index: 1000;
    position: absolute;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, .1);
    white-space: nowrap;
    color: #333;
    border-radius: 0;
    padding: 0;
}

.custom-menu li {
    padding: 8px 12px;
    cursor: pointer;
    list-style-type: none;
    user-select: none;
}

.custom-menu li:hover {
    background-color: #38A9FF;
    color: #ffffff;
}

/* ------------------------------------------------------------------------------
  MODALS
---------------------------------------------------------------------------------*/

.modal-footer .btn {
    min-width: 100px;
}



