/*
 * Base structure
 */

body {
    padding-top: 50px;
}

html {
    overflow-y: scroll
}

/*
 * Typography
 */

h1, h5 {
    margin-top: 15px;
    margin-bottom: 15px;
    padding-bottom: 9px;
    border-bottom: 1px solid #eee;
}

h1:first-child, h5:first-child {
    margin-top: 0;
}

/*
 * Sidebar
 */

.sidebar {
    position: fixed;
    top: 41px;
    bottom: 0;
    left: 0;
    z-index: 1000;
    padding: 0 20px;
    overflow-x: hidden;
    overflow-y: auto; /* Scrollable contents if viewport is shorter than content. */
    border-right: 1px solid #eee;
    background: red;
}

/* Sidebar navigation */
.sidebar {
    padding-left: 0;
    padding-right: 0;
}

.sidebar .nav {
    margin-bottom: 20px
}

.sidebar .nav-item {
    width: 100%
}

.sidebar .nav-item + .nav-item {
    margin-left: 0;
}

.sidebar .nav-link {
    border-radius: 0;
    font-size: 0.8rem;
    padding-left: 0.5rem;
}

a.nav-link.active,
a.nav-link.active,
a.nav-link.active:hover,
a.nav-link.active:focus {
    color: #fff;
    background-color: #ff7f3f;
    text-decoration: none;
}

/*
 * Header
 */

#logo {
    display: inline-block;
    margin: -5px 20px 0 0;
    width: 62px;
    height: 20px;
    vertical-align: middle;
}

/*
 * Login
 */

.login-form {
    width: 340px;
    margin: 50px auto;
}

.login-form form {
    margin-bottom: 15px;
    background: #f7f7f7;
    box-shadow: 0 2px 2px rgba(0, 0, 0, 0.3);
    padding: 30px;
}

.login-form h4 {
    margin: 0 0 15px;
}

.form-control, .btn {
    min-height: 38px;
    border-radius: 2px;
}

.btn {
    font-size: 15px;
    font-weight: bold;
}
/*
 * Structure
 */

#form {
    padding-top: 15px
}

#result {
    margin-top: 15px;
}

#result table {
    width: auto;
    max-width: 100%;
    border: 1px #eeeeee solid;
    font-size: 12px;
    font-family: monospace
}

#result table.w100 {
    width: 100%;
    border: 0;
}

#platform {
    width: 50%;
    float: left;
    overflow: auto
}

#qapla {
    width: 50%;
    float: right;
    background: ivory;
    overflow: auto;
    padding: 0 10px 10px
}

/*
 * Helpers
 */

#ajaxLoad {
    width: 100%;
    margin-top: 10vh;
    text-align: center;
}

#ajaxLoad img {
    width: 150px;
    height: 150px;
}

#toTop {
    background: #c0c0c0 url('https://cdn.qapla.it/img/toTop.png') no-repeat 50% 50%;
    bottom: 10px;
    right: 10px;
    display: none;
    height: 40px;
    position: fixed;
    width: 40px;
    z-index: 9999;
    cursor: pointer
}

#toTop:hover {
    background-color: #404853
}

#window {
    position: absolute;
    z-index: 1001;
    width: 1100px;
    height: 600px;
    background: #fff;
    display: none;
    right: 30px;
    top: 70px;
    text-align: left;
    box-shadow: 0 4px 5px -2px rgba(0, 0, 0, 0.29);
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    border-left: 1px rgba(0, 0, 0, 0.04) solid;
    border-top: 1px rgba(0, 0, 0, 0.04) solid;
}

.draggable {
    background: #101010;;
    font-size: 14px;
    color: #fff;
    font-weight: normal;
    padding: 0 5px 0 10px;
    height: 36px;
    line-height: 36px;
}

#windowClose {
    float: right;
    width: 11px;
    height: 10px;
    cursor: pointer;
    background: url('https://cdn.qapla.it/cp/img/icons-new.png') no-repeat -0px -414px;
    margin-right: 10px;
    margin-top: 12px
}

#windowClose:hover {
    background-position: -11px -404px
}

.testo {
    padding: 20px;
    overflow-y: auto
}

div.login {
    position: relative;
}

div.login input {
    padding-right: 2.4em;
}

div.login input::-ms-reveal {
    display: none;
}

div.login span {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    cursor: pointer;
}

div.login span svg {
    display: block;
    padding: .2em;
    width: 26px;
    height: 26px;
}