/* General */
* {
    -webkit-appearance: none;
    -webkit-tap-highlight-color: transparent;
}

body {
    color: #1A243E;
    margin: 0;
    font-family: Arial,sans-serif;
    font-size: 15px;
    position: relative;
}

body.noscoll, body.noscoll2 {
    height: 100%;
    overflow: hidden;
}

.main-wrapper {
    min-width: 1100px;
    max-width: 2100px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

input[type=text], input[type=password], input[type=search], textarea {
    display: block;
    width: 100%;
    max-width: 400px;
    padding: 5px 8px;
    line-height: 20px;
    color: #495057;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: 3px;
    transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out;
    margin-bottom: 9px;
}

textarea {
    height: 75px;
    font-family: Arial,sans-serif;
    font-size: 13px;
}

input[type=checkbox] {
    display: inline-block;
    width: 15px;
    height: 15px;
    line-height: 20px;
    color: #495057;
    background-color: #fff;
    border: 1px solid #ced4da;
    border-radius: 3px;
    -webkit-appearance: auto;
    margin: 10px 5px 0 0;
}

input[type=text]:focus, input[type=password]:focus, textarea:focus, .selectize-input.input-active {
    border-color: #1A243E;
    outline: 0;
    box-shadow: 0 0 2px 0 #1A243E;
}

input[type=text].error, input[type=password].error, textarea.error, .selectize-input.error {
    border-color: #E34850;
    box-shadow: 0 0 2px 0 #E34850;
}

input[type=text]:focus + .placeholder, input[type=password]:focus + .placeholder, textarea:focus + .placeholder,
input[type=text]:not(:placeholder-shown) + .placeholder, input[type=password]:not(:placeholder-shown) + .placeholder, textarea:not(:placeholder-shown) + .placeholder {
    transform: translateY(-16px) translateX(5px) scale(0.75);
    transform-origin: 0 0;
    font-size: 14px;
}

.select-wrapper {
    position: relative;
    width: 300px;
}

.am-client-id-wrapper {
    display: none;
    float: right;
    margin: 10px 20px 0 30px;
    padding-bottom: 3px;
}

.am-client-id-wrapper .selectize-control .selectize-input.disabled {
    opacity: 0.6;
}

.am-client-id-wrapper .selectize-input {
    background: #1A243E !important;
    color: #fff;
    border: 1px solid #fff;
    padding: 5px 35px 5px 8px !important;
}

.am-client-id-wrapper .selectize-control.single::before {
    background-color: #1A243E;
}

.am-client-id-wrapper .selectize-control.single .selectize-input .item {
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    white-space: nowrap;
    vertical-align: top;
}

.am-client-id-wrapper .selectize-control.single .selectize-input input {
    color: #fff;
}

.am-client-id-wrapper .selectize-control.loading::before {
    opacity: 1 !important;
}

.am-client-id-wrapper .selectize-control.single .selectize-input input::-webkit-input-placeholder {
    color: #fff;
    opacity: 0.8 !important;
 }
 
.am-client-id-wrapper .selectize-control.single .selectize-input input:-moz-placeholder {
    color: #fff;  
    opacity: 0.8 !important;
 }
 
.am-client-id-wrapper .selectize-control.single .selectize-input input::-moz-placeholder {
    color: #fff;  
    opacity: 0.8 !important;
}
 
.am-client-id-wrapper .selectize-control.single .selectize-input input:-ms-input-placeholder {  
    color: #fff;  
    opacity: 0.8 !important;
}

.am-client-id-wrapper .selectize-control.single .selectize-input::after {
    border-top-color: #fff;
}

.am-client-id-wrapper .placeholder {
    z-index: 2;
    margin-top: -7px;
    background: #1A243E;
    color: #fff;
}

.am-client-id-wrapper .selectize-dropdown {
    position: fixed;
    top: auto !important;
    left: auto !important;
    margin-top: -5px;
}

.account-manager .am-client-id-wrapper {
    display: block;
}

.placeholder {
    position: absolute;
    background: #fff;
    color: #9fa3a7;
    display: inline-block;
    white-space: nowrap;
    margin-top: -32px;
    margin-left: 3px;
    pointer-events: none;
    transition: transform 200ms;
    padding: 0 6px;
    border-radius: 10px;
    font-size: 13px;
}

textarea + .placeholder {
    margin-top: -87px;
}

input[type=button], input[type=submit] {
    padding: 6px 15px;
    border: none;
    background: #1A243E;
    color: #FFF;
    border-radius: 3px;
    cursor: pointer;
}

input[type=button].small, input[type=submit].small {
    padding: 2px 6px;
    font-size: 11px;
}

.hover input[type=button]:hover, .hover input[type=submit]:hover, .hover a:hover {
    opacity: 0.6;
}

.touch input[type=button].touched, .touch input[type=submit].touched, .touch a.touched {
    animation: blink 0.6s;
}

@keyframes blink {
    0% { opacity: 0.6; }
    50% { opacity: 0.6; }
    100% { opacity: 1; }
}

a, a:visited {
    text-decoration: none;
    color: #1A243E;
}

*:not(input, textarea), .noselect {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Dialoge */
#dialog, #dialog2, #loader {
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 60;
    display: none;
}

#dialog .inner, 
#dialog2 .inner {
    display: block;
    position: relative;
    top: 50%;
    transform: translateY(-50%);
    margin: 0 auto;
    background: #FFF;
    min-height: 50px;
    min-width: 100px;
    width: max-content;
    max-width: min(calc(100% - 50px), 900px);
    border-radius: 3px;
    border: 1px solid #1A243E;
    padding: 10px;
}

#dialog .inner .message, #dialog .inner .buttons,
#dialog2 .inner .message, #dialog2 .inner .buttons {
    padding: 20px 10px;
    text-align: center;
}

#dialog .inner .buttons, 
#dialog2 .inner .buttons {
    padding: 10px;
}

#dialog .inner .buttons input[type=button],
#dialog2 .inner .buttons input[type=button] {
    margin: 0 10px;
}

#dialog .inner .buttons .button1,
#dialog2 .inner .buttons .button1 {
    order: 1;
}

#dialog .inner .buttons .button2,
#dialog2 .inner .buttons .button2 {
    order: 2;
}

#dialog .inner .buttons .button3,
#dialog2 .inner .buttons .button3 {
    order: 3;
}

/* Selectize */
.selectize-control::before {
    -moz-transition: opacity 0.2s;
    -webkit-transition: opacity 0.2s;
    transition: opacity 0.2s;
    content: " ";
    z-index: 2;
    position: absolute;
    display: block;
    top: 45%;
    right: 12px;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 0;
    background: url(/img/spinner.gif);
    background-size: 16px 16px;
    background-color: #fff;
    opacity: 0;
    pointer-events: none;
}

.selectize-control.loading::before {
    opacity: 0.6;
}

.selectize-input.focus {
    box-shadow: inset 0 1px 1px rgba(0,0,0,.1) !important;
}

.selectize-input {
    padding: 8px 35px 8px 8px !important;
}

/* Tabulator */
.touch .tabulator-row.tabulator-selectable:hover {
    background: #fff;
}

/* Top */
.top-bar {
    background: #1A243E;
    color: #FFF;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
    float: left;
    width: 100%;
}

.top-bar .title {
    float: left;
    text-align: center;
    font-weight: bold;
    padding: 6px 15px;
    cursor: pointer;
}

.top-bar .submenu {
    display: none;
    position: absolute;
    background: #1A243E;
    padding-bottom: 6px;
    border-radius: 3px;
    z-index: 5;
}

.top-bar .submenu.active {
    display: block;
}

.top-bar .menu-bullet {
    float: left;
    margin: 15px 0 0 30px;
    padding-bottom: 3px;
    cursor: pointer;
}

.top-bar .submenu .menu-bullet {
    clear: both;
    margin: 15px 10px 0 10px;
}

.top-bar .menu-bullet.active {
    border-bottom: 1px solid #fff;
    margin-bottom: -1px;
}

.hover .top-bar .menu-bullet:hover {
    opacity: 0.6;
}

.touch .top-bar .menu-bullet.touched {
    animation: blink 0.6s;
}

.top-bar .right {
    float: right;
    padding-right: 20px;
}

.account-manager .top-bar .right {
    margin-left: -20px;
}

/* Pages */
.data-wrapper {
    width: 100%;
    min-height: calc(100vh - 130px);
}

.data-page {
    padding: 0 15px;
    display: none;
}

.header-wrapper {
    clear: both;
    overflow: auto;
    margin-bottom: 15px;
}

.footer-wrapper {
    border-top: 1px solid #1A243E;
    margin-top: 20px;
    padding: 10px 15px;
    font-size: 11px;
}

/* Mobile button */
.menu-button {
    height: 50px;
    width: 50px;
    position: relative;
    border-radius: 100%;
    -moz-transition: 0.3s;
    -o-transition: 0.3s;
    -webkit-transition: 0.3s;
    transition: 0.3s;
    cursor: pointer;
    float: right;
    display: none;
    transform: scale(0.8);
}
  
.menu-button .bar {
    height: 2px;
    width: 30px;
    display: block;
    margin: 8px auto;
    position: relative;
    background-color: #fff;
    border-radius: 10px;
    -moz-transition: 0.4s;
    -o-transition: 0.4s;
    -webkit-transition: 0.4s;
    transition: 0.4s;
    position: absolute;
}

.menu-button .bar:nth-of-type(1) {
    top: 5px;
    -moz-transition: top 0.3s ease 0.3s, -moz-transform 0.3s ease-out 0.1s;
    -o-transition: top 0.3s ease 0.3s, -o-transform 0.3s ease-out 0.1s;
    -webkit-transition: top 0.3s ease, -webkit-transform 0.3s ease-out;
    -webkit-transition-delay: 0.3s, 0.1s;
    transition: top 0.3s ease 0.3s, transform 0.3s ease-out 0.1s;
    -moz-animation: mrotr 2s cubic-bezier(0.5, 0.2, 0.2, 1.01);
    -webkit-animation: mrotr 2s cubic-bezier(0.5, 0.2, 0.2, 1.01);
    animation: mrotr 2s cubic-bezier(0.5, 0.2, 0.2, 1.01);
}

.menu-button .bar:nth-of-type(2) {
    top: 15px;
    -moz-animation: fade 2s cubic-bezier(0.5, 0.2, 0.2, 1.01);
    -webkit-animation: fade 2s cubic-bezier(0.5, 0.2, 0.2, 1.01);
    animation: fade 2s cubic-bezier(0.5, 0.2, 0.2, 1.01);
}

.menu-button .bar:nth-of-type(3) {
    top: 25px;
    -moz-transition: top 0.3s ease 0.3s, -moz-transform 0.3s ease-out 0.1s;
    -o-transition: top 0.3s ease 0.3s, -o-transform 0.3s ease-out 0.1s;
    -webkit-transition: top 0.3s ease, -webkit-transform 0.3s ease-out;
    -webkit-transition-delay: 0.3s, 0.1s;
    transition: top 0.3s ease 0.3s, transform 0.3s ease-out 0.1s;
    -moz-animation: mrotl 2s cubic-bezier(0.5, 0.2, 0.2, 1.01);
    -webkit-animation: mrotl 2s cubic-bezier(0.5, 0.2, 0.2, 1.01);
    animation: mrotl 2s cubic-bezier(0.5, 0.2, 0.2, 1.01);
}

.menu-button.open .bar:nth-of-type(1) {
    top: 15px;
    -moz-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
    -moz-transition: top 0.3s ease 0.1s, -moz-transform 0.3s ease-out 0.5s;
    -o-transition: top 0.3s ease 0.1s, -o-transform 0.3s ease-out 0.5s;
    -webkit-transition: top 0.3s ease, -webkit-transform 0.3s ease-out;
    -webkit-transition-delay: 0.1s, 0.5s;
    transition: top 0.3s ease 0.1s, transform 0.3s ease-out 0.5s;
}

.menu-button.open .bar:nth-of-type(2) {
    opacity: 0;
}

.menu-button.open .bar:nth-of-type(3) {
    top: 15px;
    -moz-transform: rotate(-45deg);
    -ms-transform: rotate(-45deg);
    -webkit-transform: rotate(-45deg);
    transform: rotate(-45deg);
    -moz-transition: top 0.3s ease 0.1s, -moz-transform 0.3s ease-out 0.5s;
    -o-transition: top 0.3s ease 0.1s, -o-transform 0.3s ease-out 0.5s;
    -webkit-transition: top 0.3s ease, -webkit-transform 0.3s ease-out;
    -webkit-transition-delay: 0.1s, 0.5s;
    transition: top 0.3s ease 0.1s, transform 0.3s ease-out 0.5s;
}

/**** mobile ****/
@media only screen and (max-width: 950px) {
    .top-bar .mobile-menu {
        position: fixed;
        right: 0;
        top: 50px;
        background: #1A243E;
        padding: 0 16px 8px 16px;
        display: none;
    }

    .top-bar .menu-bullet {
        float: none;
        margin: 8px 0 !important;
        padding: 0;
        padding: 3px;
        font-size: 18px;
    }

    .top-bar .menu-bullet.active {
        border-bottom: none;
    }

    .top-bar .submenu-button {
        display: none;
    }

    .top-bar .submenu {
        display: block;
        position: relative;
        padding-bottom: 0;
        top: auto !important;
        left: auto !important;
    }

    .top-bar .right {
        float: none;
        padding: 0;
    }

    .account-manager .top-bar .right {
        margin-left: 0;
    }

    .am-client-id-wrapper {
        position: fixed;
        right: 70px;
        top: 0;
        max-width: calc(100vw - 200px);
        margin-right: 0;
    }

    .am-client-id-wrapper .selectize-control.single .selectize-input {
        white-space: nowrap;
    }

    .main-wrapper {
        width: 100%;
        max-width: none;
        min-width: auto;
        margin: 0;
    }

    input[type=text], input[type=password], textarea {
        max-width: calc(100% - 20px);
    }

    .tabulator-cell input[type=text] {
        max-width: none;
    }

    input[type=button], input[type=submit] {
        width: 100%;
        height: 40px;
    }

    .header-wrapper {
        top: 0;
        position: -webkit-sticky;
        position: sticky;
        z-index: 49;
    }

    #dialog .inner .buttons input[type=button],
    #dialog2 .inner .buttons input[type=button] {
        margin: 10px 0;
    }

    #dialog .inner .buttons > div,
    #dialog2 .inner .buttons > div {
        display: flex;
        flex-direction: column;
    }
    
    .menu-button {
        display: block;
    }    
}
@media only screen and (min-width: 951px) {
    .top-bar .mobile-menu {
        display: block !important;
    }
}