/*
 * Copyright (C) 2023 Xibo Signage Ltd
 *
 * Xibo - Digital Signage - https://xibosignage.com
 *
 * This file is part of Xibo.
 *
 * Xibo is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * any later version.
 *
 * Xibo is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with Xibo.  If not, see <http://www.gnu.org/licenses/>.
 */
html {
    /* TODO To be changed to 16px in v4 */
    font-size: 14px; /* Root default font size */
}

.hidden {
    display: none !important; /* bootstrap 3 fix */
}

.xibo-logo {
    height: 40px;
    margin-left: 15px;
}

.form-signin {
    max-width: 300px;
    padding: 19px 29px 29px;
    margin: 0 auto 20px;
    background-color: #fff;
    border: 1px solid #e5e5e5;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
    -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
    -moz-box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
    box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
}

.form-signin .form-signin-heading,
.form-signin .checkbox {
    margin-bottom: 10px;
}

.form-signin input[type="text"],
.form-signin input[type="password"] {
    font-size: 1.15rem;
    height: auto;
    margin-bottom: 15px;
    padding: 7px 9px;
}

/* Full width iframe (for inside the help windows) */
.full-iframe {
    width: 100%;
    border: none;
}

/* Some small tweaks for the validation plugin to work nicely with bootstrap */
span.error {
    font-weight: bold;
    color: red;
}

/* Layout Jump List */
#LayoutJumpList {
    z-index: 1;
    position: absolute;
    min-width: 150px;
    right: 5px;
    bottom: 5px;
    border: 1px solid #e0e0e0;
    background-color: #f9f9f9;
}

#LayoutJumpList:hover {
    border-color: #a0a0a0;
}

#LayoutJumpList .XiboGrid {
    overflow-y: auto;
    overflow-x: hidden;
    margin: 0;
    padding: 8px;
}

#JumpListHeader {
    text-align: left;
    border-bottom: 1px solid #a0a0a0;
    padding: 3px 8px;
}

#JumpListOpenClose {
    float: right;
    font-weight: bold;
}

.regionTransparency {
    position: absolute;
    background-color: #FFF;
    opacity: .80;
    filter: alpha(opacity=80);
}

.regionDisabled {
    opacity: .65;
    filter: alpha(opacity=65);
}

.regionInfo {
    z-index: 200;
}

.preview {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.previewNav {
    position: absolute;
    left: 2px;
    bottom: -20px;
    z-index: 91;
}

.previewNav .prevSeq, .previewNav .nextSeq {
    cursor: pointer;
    font-size: 1.1rem;
}

.preview-media-information {
    display: block;
    margin-top: 2px;
}

.wide_textarea {
    width: 100%;
}

.connectedlist .ui-sortable {
    width: 150px;
    background-color: #EEEEEE;
    padding: 5px;
}

.connectedlist .li-sortable {
    padding: 5px;
    margin: 5px;
    border: 1px solid #8080ff;
    background-color: #E5F0FF;
    width: 130px;
    cursor: pointer;
    list-style: none;
}

#TickerDataSetColumns li {
    float: left;
    list-style: none;
    margin-left: 5px;
    cursor: pointer;
    user-select: none;
    -moz-user-select: none;
    -webkit-user-select: none;
}

#dashbuttons {
    text-align: center;
}

.dashicons {
    height: 125px;
    display: block;
    float: left;
    margin: 5px 5px;
    padding: 35px;
}

.dash_button {
    display: block;
    text-align: center;
}

.dash_text {
    display: block;
}

.dashicons a:hover {
    color: #808080;
}

span.layout_assign_list_select {
    cursor: pointer;
}

ul#LayoutAssignSortable {
    display: inline-block;
    font-size: 0;
    margin: 0;
    padding: 0;
    width: 100%;
}

ul#LayoutAssignSortable > li {
    padding: 4px 6px;
    margin: 2px;
    border: 1px solid #8080ff;
    background-color: #E5F0FF;
    width: calc(20% - 4px);
}

ul#LayoutAssignSortable > li.ui-state-disabled {
    background-color: #d4d4d4;
}

ul#LayoutAssignSortable > li > .layout-order {
    width: 24px;
    font-weight: bold;
    color: #30426a;
}

ul#LayoutAssignSortable > li > .layout-name {
    width: calc(100% - 34px);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    text-align: left;
}

ul#LayoutAssignSortable > li > .layout-icon {
    width: 10px;
}

#LayoutAssign {
    background-color: #a6b3cd;
}

.layoutAssignFilterOptions {
    padding: 10px;
}

#xibo-loading-gif {
    display: none;
    position: absolute;
}

.regionicons {
    float: left;
    padding: 10px;
}

ul#FileAssociationsSortable {
    display: inline-block;
}

#FileAssociationsSortable .li-sortable {
    padding: 5px;
    margin: 5px;
    border: 1px solid #8080ff;
    background-color: #E5F0FF;
    cursor: pointer;
    float: left;
    list-style: none;
}

.form-error {
    margin-top: 10px;
}

.tab-pane {
    padding-top: 15px;
}

.bold-counter {
    font-weight: 100;
    line-height: 70px;
    font-size: 5rem;
    text-shadow: 1px 1px 5px #000;
    filter: dropshadow(color=#000, offx=1, offy=1);
}

.FormDisplayList .DisplayList {
    list-style: none;
}

div.dropdown-menu-form {
    padding: 5px 10px 0;
    max-height: 300px;
    overflow-y: scroll;
}

.page-header {
    color: #627cb7;
    margin: 0;
}

@media (max-width: 768px) {
    #page-wrapper .page-content {
        margin-top: 1rem !important;
    }
}

.display-screenshot-container {
    text-align: center;
    display: block;
    background-color: #333;
    width: 120px;
}

.display-screenshot {
    max-width: 120px;
    max-height: 80px;
}

#page-wrapper {
    padding-left: 0
}

.navbar-toggler {
    color: #f9f9f9;
    border-color: #ddd;
    font-size: 1.75rem;
    padding: 4px 8px;
}
.navbar-toggler-side {
    margin-top: 13px;
    margin-right: 10px;
}
.navbar-toggler:focus, .navbar-toggler:hover {
    background-color: #c4c4c4;
}

@media (min-width: 768px) {
    .navbar-collapse-side {
        display: block!important;
        height: auto!important;
        padding-bottom: 0;
        overflow: visible!important;
    }

    .navbar-toggler-side {
        display: none;
    }
}

@media (max-width: 768px) {
    ul.sidebar li a {
        float: none;
        width: auto;
    }

    ul.sidebar {
        width: 100%;
        position: static
    }

    #sidebar-wrapper {
        position: static;
        width: 100%;
        left: 0;
        margin-left: 0;
    }

    .sidebar-footer {
        position: static
    }

    .row.header {
        position: fixed;
        top: 0;
        width: 100%;
        z-index: 5;
    }

    .navbar-collapse {
        position: relative
    }

    #page-wrapper.active {
        padding-top: 45px;
        padding-left: 0
    }

}

table.arrayViewer {
    display: none;
}

table.dataTable tbody tr.selected > td {
    background-color: #a6b3cd;
}

.popover-content-container th, .popover-content-container td {
    border: 1px solid #ddd;
    padding: 10px;
}

.scrollable-popover-table {
    display: block;
    width: auto;
    height: 300px;
    overflow-y: scroll;
}

.scrollable-popover-table table thead {
    background: #fafafa;
}

div.dt-buttons {
    float: none;
    text-align: right;
}

.ui-state-disabled {
    opacity: 1;
}

.notification-drawer {
    min-width: 400px;
}

.notification-read {
    color: black;
    font-weight: 200;
}

.notification-unread, .notification-date {
    color: lightgrey;
}

.fa-stack > .fa-nudge-left {
    left: auto;
    right: 12%;
}

.fa-stack > .fa-right {
    position: absolute;
    line-height: inherit;
    right: 0;
    font-size: 1.5em
}

.fa-stack > .fa-badge {
    position: absolute;
    right: -10%;
    bottom: -5%;
    font-size: 100%;
    height: 60%;
    width: 60%;
    line-height: 120%;
    text-align: center;
}

.upload-modal .modal-dialog {
    max-width: 80% !important;
}

/* Bootstrap 4 fix for libraries that use fade+in ( fixes blueimp uploader ) */
.upload-modal .fade.in {
    opacity: 1
}

.template-upload span.preview {
    position: relative;
}

.template-upload div.input-group input {
    width: 100%;
}

.template-upload p.size {
    min-width: 100px;
}

/* WIZARD ASSISTANT  */

.board {
    width: 100%;
    /*margin: 60px auto;*(
    background: #fff;
    /*box-shadow: 10px 10px #ccc,-10px 20px #ddd;*/
}

.board .nav-tabs {
    position: relative;
    /* border-bottom: 0; */
    /* width: 80%; */

    margin: 40px auto;
    margin-bottom: 0;
    box-sizing: border-box;
}

p.narrow {
    width: 60%;
    margin: 10px auto;
}

.liner {
    height: 2px;
    background: #ddd;
    position: absolute;
    width: 80%;
    margin: 0 auto;
    left: 0;
    right: 0;
    top: 50%;
    z-index: 1;
}

.layout-toolbox .nav-tabs > li.active > a,
.layout-toolbox .nav-tabs > li.active > a:hover,
.layout-toolbox .nav-tabs > li.active > a:focus {
    color: #fff;
    cursor: default;
    background-color: #428bca;
    border: 0;
    border-bottom-color: transparent;
}

span.round-tabs {
    width: 70px;
    height: 70px;
    line-height: 70px;
    display: inline-block;
    border-radius: 100px;
    background: white;
    z-index: 2;
    position: absolute;
    left: 0;
    text-align: center;
    font-size: 1.8rem;
}

span.round-tabs.one {
    color: #283858;
    border: 2px solid #283858;
}

li.active span.round-tabs.one {
    background: #fff !important;
    border: 2px solid #283858;
    color: #283858;
}

span.round-tabs.two {
    color: #394e78;
    border: 2px solid #394e78;
}

li.active span.round-tabs.two {
    background: #fff !important;
    border: 2px solid #394e78;
    color: #394e78;
}

span.round-tabs.three {
    color: #486295;
    border: 2px solid #486295;
}

li.active span.round-tabs.three {
    background: #fff !important;
    border: 2px solid #486295;
    color: #486295;
}

span.round-tabs.four {
    color: #3b8393;
    border: 2px solid #3b8393;
}

li.active span.round-tabs.four {
    background: #fff !important;
    border: 2px solid #3b8393;
    color: #3b8393;
}

span.round-tabs.five {
    color: #109250;
    border: 2px solid #109250;
}

li.active span.round-tabs.five {
    background: #fff !important;
    border: 2px solid #109250;
    color: #109250;
}

span.round-tabs.six {
    color: #0cb818;
    border: 2px solid #0cb818;
}

li.active span.round-tabs.six {
    background: #fff !important;
    border: 2px solid #0cb818;
    color: #0cb818;
}

span.round-tabs.seven {
    color: #77d903;
    border: 2px solid #77d903;
}

li.active span.round-tabs.seven {
    background: #fff !important;
    border: 2px solid #77d903;
    color: #77d903;
}

.nav-tabs > li.active > a span.round-tabs {
    background: #fafafa;
}

.nav-tabs > li {
    /*width: 14%;*/
}

i.fa.fa-ban.fa-stack-2x {
    margin-top: 8px;
}

/* Fault Page */
.board li a {
    position: relative;
}

.board li a:after {
    content: " ";
    position: absolute;
    left: 50%;
    margin: 0 auto;
    bottom: -5px;
    border: 0px solid transparent;
    border-bottom-color: #ddd;
    transform: translateX(-50%);
    transition: 0.2s ease-in-out;
}

.board li a.active:after {
    border-width: 10px;
    bottom: -15px;
}

.board .nav-tabs > li a {
    width: 70px;
    height: 70px;
    margin: 20px auto;
    border-radius: 100%;
    padding: 0;
}

.board .nav-tabs > li a:hover {
    background: transparent;
}

.board .fault.nav-tabs > li a {
    z-index: 2;
}

.board .fault.nav-tabs > li a:hover .round-tabs {
    background: #fafafa;
}

.board .tab-pane {
    position: relative;
    /*padding-top: 50px;*/
}

.board .tab-content .head {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 1.8rem;
    text-transform: uppercase;
    padding-bottom: 10px;
    margin-top: 30px;
}

.board .btn-outline-rounded {
    padding: 10px 40px;
    margin: 20px 0;
    border: 2px solid transparent;
    border-radius: 25px;
}

.board .btn.green {
    background-color: #5cb85c;
    color: #ffffff;
}

@media ( max-width: 585px) {
    .board {
        width: 90%;
        height: auto !important;
    }

    .board span.round-tabs {
        font-size: 1.15rem;
        width: 50px;
        height: 50px;
        line-height: 50px;
    }

    .board .tab-content .head {
        font-size: 1.4rem;
    }

    .board .nav-tabs > li a {
        width: 50px;
        height: 50px;
        line-height: 50px;
    }

    .board li.active:after {
        content: " ";
        position: absolute;
        left: 35%;
    }

    .btn-outline-rounded {
        padding: 12px 20px;
    }
}

/* TABS FOR LAYOUT DESIGN */

.locks {
    font-size: 75% !important;
}

.panel.with-nav-tabs .panel-heading {
    padding: 5px 5px 0 5px;
}

.panel.with-nav-tabs .nav-tabs {
    border-bottom: none;
}

.panel.with-nav-tabs .nav-justified {
    margin-bottom: -1px;
}

.with-nav-tabs.panel-primary .nav-tabs > li > a,
.with-nav-tabs.panel-primary .nav-tabs > li > a:hover,
.with-nav-tabs.panel-primary .nav-tabs > li > a:focus {
    color: #fff;
}

.with-nav-tabs.panel-primary .nav-tabs > .open > a,
.with-nav-tabs.panel-primary .nav-tabs > .open > a:hover,
.with-nav-tabs.panel-primary .nav-tabs > .open > a:focus,
.with-nav-tabs.panel-primary .nav-tabs > li > a:hover,
.with-nav-tabs.panel-primary .nav-tabs > li > a:focus {
    color: #fff;
    background-color: #3071a9;
    border-color: transparent;
}

.with-nav-tabs.panel-primary .nav-tabs > li.active > a,
.with-nav-tabs.panel-primary .nav-tabs > li.active > a:hover,
.with-nav-tabs.panel-primary .nav-tabs > li.active > a:focus {
    color: #428bca;
    background-color: #fff;
    border-color: #428bca;
    border-bottom-color: transparent;
}

.layout-toolbox .nav-tabs > li {
    margin-bottom: -5px !important;
}

.col-md-2 ul.list-group {
    box-shadow: none !important;
}

.col-md-2 ul.list-group li.list-group-item {
    padding: 3px 15px;
}

.col-md-2 ul.list-group li.list-group-item p {
    margin-bottom: 0px;
}

.designer-control-panel-checkbox {
    padding-top: 0px !important;
}

.panel.bttm-fix {
    margin-bottom: 0px !important;
}

.tab-pane.no-pad {
    padding-top: 0px !important;
}

.alert.no-pad {
    padding: 4px !important;
}

ul li.tab-design:hover a {
    color: #ccc !important;
}

li.active.tab-design {
    background: white;
    border-radius: 3px;
}

ul li.active.tab-design:hover a {
    color: #666 !important;
}

.big-duration {
    font-size: 1rem;
}

.fault.nav-tabs > li {
    width: 14%;
}

/*** CHECKBOX **/

.funkyradio div {
    clear: both;
    overflow: hidden;
}

.funkyradio label {
    width: 100%;
    border-radius: 3px;
    border: 1px solid #D1D3D4;
    font-weight: normal;
}

.funkyradio input[type="checkbox"]:empty {
    display: none;
}

.funkyradio input[type="checkbox"]:empty ~ label {
    position: relative;
    line-height: 2.5em;
    text-indent: 3.25em;
    /* margin-top: 2em;*/
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.funkyradio input[type="checkbox"]:empty ~ label:before {
    position: absolute;
    display: block;
    font-size: 1.25em;
    top: 0;
    bottom: 0;
    left: 0;
    content: '';
    width: 2em;
    background: #D1D3D4;
    border-radius: 3px 0 0 3px;
}

.funkyradio input[type="checkbox"]:hover:not(:checked) ~ label {
    color: #888;
}

.funkyradio input[type="checkbox"]:hover:not(:checked) ~ label:before {
    content: '\2713';
    text-indent: .6em;
    color: #C2C2C2;
}

.funkyradio input[type="checkbox"]:checked ~ label {
    color: #777;
}

.funkyradio input[type="checkbox"]:checked ~ label:before {
    content: '\2713';
    text-indent: .6em;
    color: #333;
    background-color: #ccc;
}

.funkyradio input[type="checkbox"]:focus ~ label:before {
    box-shadow: 0 0 0 3px #999;
}

.funkyradio-default input[type="checkbox"]:checked ~ label:before {
    color: #333;
    background-color: #ccc;
}

.funkyradio-primary input[type="checkbox"]:checked ~ label:before {
    color: #fff;
    background-color: #337ab7;
}

.funkyradio-success input[type="checkbox"]:checked ~ label:before {
    color: #fff;
    background-color: #5cb85c;
}

.funkyradio-danger input[type="checkbox"]:checked ~ label:before {
    color: #fff;
    background-color: #d9534f;
}

.funkyradio-warning input[type="checkbox"]:checked ~ label:before {
    color: #fff;
    background-color: #f0ad4e;
}

.funkyradio-info input[type="checkbox"]:checked ~ label:before {
    color: #fff;
    background-color: #5bc0de;
}

.btn-click {
    margin-top: -27px;
    font-size: 1.85rem;
    cursor: pointer;
}

.btn-click > .fa.fa-chevron-circle-up {
    color: rgba(249, 249, 249, .5);
}

.btn-white {
    color: #5e5e5e;
    background-color: #fff;
    border: 1px solid #e5e9ec;
}

.hide-table {
    display: none;
}

.bootstrap-tagsinput {
    min-width: 196px;
    min-height: calc(1.5em + 0.75rem + 2px);
    padding: 0.375rem 0.75rem;
    line-height: 1.5;
}

.tags-input-wide .bootstrap-tagsinput {
    overflow: auto;
    width: 100%;
    max-height: 400px;
}

.tags-input-addons-wide .bootstrap-tagsinput {
    overflow: auto;
    width: 80%;
    max-height: 400px;
}

.tags-input-addons-wide .bootstrap-tagsinput .tag,
.tags-input-wide .bootstrap-tagsinput .tag {
    line-height: 1.4rem;
    vertical-align: top;
}

.tags-input-addons-wide .bootstrap-tagsinput pre[aria-hidden="true"],
.tags-input-wide .bootstrap-tagsinput pre[aria-hidden="true"] {
    display: none;
}

.tags-input-addons-wide .bootstrap-tagsinput div[role="listbox"],
.tags-input-wide .bootstrap-tagsinput div[role="listbox"] {
    position: relative !important;
}

@media (min-width: 768px) {
    .form-horizontal .control-label {
        padding-top: 7px;
        margin-bottom: 0;
        text-align: right;
    }
}

.XiboFilter .form-inline {
    overflow: auto;
}

.XiboFilter .form-inline .form-group, .XiboFilterCustom .form-inline .form-group {
    flex-direction: column;
    align-items: flex-start;
}

.XiboFilter .form-inline .input-group-tags-exact .bootstrap-tagsinput, .XiboFilterCustom .form-inline .input-group-tags-exact .bootstrap-tagsinput {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.XiboFilter .form-inline .tab-pane.active, .XiboFilterCustom .form-inline .tab-pane.active {
    display: flex;
    flex-wrap: wrap;
}

.XiboFilter .form-inline .control-label, .XiboFilterCustom .form-inline .control-label {
    font-weight: 700;
}

.XiboFilter .form-inline .bootstrap-switch, .XiboFilter .form-inline .xibo-inline-btn, .XiboFilterCustom .form-inline .bootstrap-switch, .XiboFilterCustom .form-inline .xibo-inline-btn {
    margin-top: 18px;
}

.XiboFilter .form-inline select, .XiboFilterCustom .form-inline select {
    min-width: 100px;
}

.XiboSchedule .xibo-calendar-header-container,
.XiboSchedule #grid-view .row > div,
.XiboSchedule #calendar-view .row > div {
    padding: 0;
}

.XiboSchedule #calendar-view #cal-slide-content {
    background-color: #273759;
    background-image: unset;
    -webkit-box-shadow: none;
    box-shadow: none;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.XiboSchedule #calendar-view #cal-slide-content .cal-agenda-button {
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
}

.XiboSchedule #calendar-view #cal-slide-content .cal-agenda-button.is-visible {
    opacity: 1;
}

.XiboSchedule #calendar-view #cal-day-tick {
    display: none !important;
}

.XiboFilter .controls-date-range .controls-date-inputs {
    display: inline-flex;
    gap: 0.25rem;
}

.XiboFilter .controls-date-range .datePickerHelper {
    display: none;
}

.bootstrap-tagsinput + [data-role="tagsInputInline"] + .input-group-addon {
    position: relative;
}

.btn-tag {
    background-color: #5bc0de;
    border-color: #46b8da;
    color:white;
    margin:2px;
    font-weight: 700;
    border-radius: 10px;
}

.btn-tag:hover {
    background-color: lightblue;
}

.bootstrap-tagsinput .tag {
    margin-right: 0;
    color: white;
    background-color: #5bc0de;
    border-color: #46b8da;
    font-weight: 700;
    border-radius: 8px;
    display: inline;
    padding: .2em .6em .3em;
    font-size: 0.8em;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
}

/*
 * Tag auto-complete
 */
 .tt-menu {
    padding: 4px 6px;
    border: 1px solid #afafaf;
    border-radius: 8px;
    background-color: #f9f9f9;
    background-color: #f9f9f9d6;
}

.tt-menu .tt-selectable {
    cursor: pointer;
    color: #555;
}

.tt-menu .tt-selectable:hover {
    color: #000;
}

/*
 * This resets a form-control so that it isn't displayed block within a column. Used for the datetimepicker where
 * there are 2 input fields in one column.
 */
.form-control-inline {
    display: inline;
    width: auto;
    padding-right: 0;
}

.spacing-warning-icon {
    position: absolute;
    right: 30px;
    top: 10px;
    color: red;
}

.spacing-whitespace-pre {
    white-space: pre-wrap;
}

.permissionsDiv {
    width: 200px;
    overflow-x: auto;
    max-width: 250px;
}

.permissionsDiv .badge {
    margin: 2px;
}

.template-override-controls .card.bg-light {
    min-height: 100px;
}

.module-selector-well {
    margin-bottom: 0;
}

.module-selector-well .nav>li>a {
    padding-bottom: 5px;
}

.layout-designer-right-pane .select2-container--bootstrap {
    display: inline-block;
}

/*
 * Prrof of play report dropdown
 */
.proof-of-play-report-div {
    padding-right: 2px;
}

.proof-of-play-report-btn {
    height: 43px;
}


/*
 * Display settings
 */
.override-input {
    padding: 6px !important;
    position: relative !important;
}

.override-input button.button-close-override {
    position: absolute;
    right: -18px;
    height: 33.5px;
    top: 6px;
    padding: 6px 4px;
}


.override-input.timerOverride .multiSelectInputs {
    width: 50%;
    display: inline-block;
    padding: 3px;
}

.override-input .text-muted {
    font-size: 0.9rem;
    text-align: justify;
    line-height: 16px;
    padding: 6px;
}

.override-input .form-check-input {
    position: relative;
    width: 100%;
    margin: 0;
}

/* 
 * Date time picker 
 */
input.datePicker[readonly], input.dateTimePicker[readonly], input.dateMonthPicker[readonly], input.timePicker[readonly], input.pwt-datepicker-input-element[readonly] {
    cursor: pointer;
    background-color: #fff;
}

/* 
 * Commands
 */
.XiboCommand .command-preview {
    display: none;
}

.XiboCommand .show-command-preview {
    height: 20px;
}

.XiboCommand .show-command-preview-label {
    margin: 4px;
}

.XiboCommand .command-type {
    width: 140px;
}

.XiboCommand .command-inputs {
    padding: 6px;
    font-size: 1rem;
    margin: 4px 0;
    background-color: #e5e9ec;
}

.XiboCommand .command-inputs button {
    margin: 2px 0px;
    width: 35px;
}

.XiboCommand .free-text {
    width: 100%;
}

.XiboCommand .form-control-inline {
    padding: 6px 4px;
}

/* Android intent */
.XiboCommand .intent-extra-container {
    margin-top: 10px;
    font-size: 0;
}

.XiboCommand .intent-extra-element .form-control-inline {
    width: 25%;
}

.XiboCommand .intent-extra-element .extra-value {
    width: calc(50% - 40px);
}

.XiboCommand .invalid .validated-element, .XiboCommand .invalid.validated-element, .XiboCommand .command-preview.invalid {
    background-color: #fbe5e5 !important;
}

.XiboCommand .command-preview.invalid code {
    color: #960000 !important;
}

.XiboCommand label.intent-extra-container-label {
    position: relative;
    top: 10px;
}

/* RS232 */
.XiboCommand .command-inputs .form-group-rs232 {
    text-align: center;
    font-size: 0;
}

.XiboCommand .command-inputs .form-group-rs232 div {
    padding: 0 4px;
    text-align: left;
    margin: 4px 0;
}

.XiboCommand .command-inputs .form-group-rs232 div label {
    width: 30%;
    font-size: 1rem;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    float: left;
    margin-top: 6px;
}

.XiboCommand .command-inputs .form-group-rs232 .rs232-text-input {
    width: 32%;
    margin: 0 0.5%;
}

.XiboCommand .command-inputs .form-group-rs232 select {
    width: 70%;
}

.XiboCommand .command-inputs .form-group-rs232.command-group {
    width: 99%;
    margin: 0 0.5%;
}

.player-compatibility {
    list-style: none;
    padding-left: 5px;
}

.vakata-context {
    z-index: 1051;
}

.jstree-anchor {
    /*enable wrapping*/
    white-space: normal !important;
    /*ensure lower nodes move down*/
    height: auto !important;
    /*offset icon width*/
    padding-right: 24px;
}

td.feature-group-header-cell {
    cursor: pointer;
}

.XiboForm .form-group .form-text, .form-group small.form-text.text-muted {
    font-size: 0.9rem;
}

.XiboForm .form-group .control-label {
    font-weight: 700;
}

/* Layout Mini Preview */
.mini-layout-preview {
    position: fixed;
    padding: 0 5px;
    z-index: 1060;
    height: 240px;
    width: 460px;
    bottom: -240px;
    right: 10px;
    text-align: center;
    transition: bottom 300ms ease-out, width 250ms ease-out, height 250ms ease-out, background-color 250ms ease-out;
}

.mini-layout-preview:hover:before {
    background-color: #222;
    content: "";
    display: block;
    width: 100%;
    height: 30px;
    position: absolute;
    opacity: 0.5;
    left: 0;
}

.mini-layout-preview #content, .mini-layout-preview .preview-button {
    transition: opacity 200ms ease-out;
    opacity: 0;
}

.mini-layout-preview .preview-button {
    position: absolute;
    color: #cecece;
    cursor: pointer;
    font-size: 1.4rem;
}

.mini-layout-preview .preview-button:hover {
    color: #fff;
    text-shadow: 0 0 5px white;
}

.mini-layout-preview #playBtn {
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: 2.2rem;
}

.mini-layout-preview #closeBtn {
    right: 6px;
    top: 6px;
}

.mini-layout-preview #newTabBtn {
    top: 6px;
    left: 26px;
}

.mini-layout-preview #sizeBtn {
    left: 6px;
    top: 6px;
}

.mini-layout-preview.show {
    bottom: 10px;
    background: #222;
}

.mini-layout-preview.show:hover #closeBtn, .mini-layout-preview.show:hover #sizeBtn, .mini-layout-preview.show:hover #newTabBtn {
    opacity: 1;
}

.mini-layout-preview.show.large {
    width: 780px;
    height: 420px;
    background: #222;
}

.mini-layout-preview.show #content, .mini-layout-preview.show #playBtn {
    opacity: 1;
}

div.dataTables_wrapper div.dataTables_info {
    white-space: nowrap;
    padding-top: 0;
}

.inner-modal {
    z-index: 1051;
}

.nav-tabs .nav-link:hover {
    background-color: #eee;
}

.nav-tabs .nav-link.has-error {
    background-color: #ff000005;
    color: red;
}

/* Colour picker */
.colorpicker-input .input-group-prepend > i{
    cursor: pointer;
    padding-left: 20px;
}

/* Datatable Cards */
.dt-cards tbody tr {
    float: left;
    width: 20rem;
    margin: 0.5rem;
    border: 0.0625rem solid rgba(0, 0, 0, .125);
    border-radius: .25rem;
    box-shadow: 0.25rem 0.25rem 0.5rem rgba(0, 0, 0, 0.25);
}

.dt-cards tbody td {
    display: block;
}

.dt-cards tbody label {
    display: inline;
    position: relative;
    font-size: 85%;
    top: -0.5rem;
    float: left;
    color: #808080;
    min-width: 4rem;
    margin-left: 0;
    margin-right: 1rem;
    text-align: left;
}

.dt-cards .fa {
    font-size: 7.5rem;
}

.dt-cards tr.selected label {
    color: #404040;
}

/* Step Wizard */
/* Onboarding Step Wizard */
.stepwizard-step p {
    margin-top: 0px;
    color:#666;
}
.stepwizard-row {
    display: table-row;
}
.stepwizard {
    display: table;
    width: 100%;
    position: relative;
}
.stepwizard-step button[disabled] {
    /*opacity: 1 !important;
    filter: alpha(opacity=100) !important;*/
}
.stepwizard .btn.disabled, .stepwizard .btn[disabled], .stepwizard fieldset[disabled] .btn {
    opacity:1 !important;
    color:white;
    background: #ccc;
    border: 1px solid #ccc;
    box-shadow: unset;
    cursor: default;
}
.stepwizard-row:before {
    top: 14px;
    bottom: 0;
    position: absolute;
    content:" ";
    width: 100%;
    height: 1px;
    background-color: #ccc;
    z-index: 0;
}
.stepwizard .stepwizard-step {
    display: table-cell;
    text-align: center;
    position: relative;
}
.stepwizard .btn-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    font-size: 12px;
    border-radius: 15px;
    padding: 0;
}
.stepwizard .btn-default {
    background: white;
    color: #28a745;
    border: 2px solid #28a745;
}
.stepwizard .btn-success {
    background: #28a745;
    border: 1px solid #28a745;
    color: white;
}
.stepwizard-form .checkbox+.checkbox, .stepwizard-form .radio+.radio {
    margin-top: 8px;
}
.stepwizard-form .has-error {
    color: red;
}
.stepwizard-form .jstree-checkbox-disabled {
    display: none !important;
}

#layoutAddForm card {
    cursor: pointer;
}

.img-replace {
    text-align: center;
    display: block;
    background-color: #333;
    width: 120px;
}

.img-replace img {
    max-width: 120px;
    max-height: 80px;
}

.text-xibo-primary {
    color: #0E70F6;
}

.grid-with-folders-container {
    display: flex;
    gap: 12px;
    flex-wrap: nowrap;
}

.grid-with-folders-container #datatable-container {
    flex: 1;
    min-width: 0;
}

.grid-folder-tree-container {
    border: 1px solid #00000020;
    border-radius: 0.25rem;
    width: 300px;
}

.grid-folder-tree-container #jstree-search {
    margin-bottom: 0.5rem;
}

.grid-folder-tree-container a.jstree-anchor {
    white-space: nowrap !important;
    overflow: hidden;
    text-overflow: ellipsis;
    width: calc(100% - 20px);
}

/* Select2 4.1.0-rc.0 fix */
.select2-container--bootstrap .select2-selection--multiple .select2-search--inline .select2-search__field {
    margin-left: 0;
    line-height: 32px !important;
}
.select2-container--bootstrap .select2-selection--multiple .select2-selection__clear {
    padding: 0;
}
.select2-container--bootstrap .select2-selection--multiple .select2-selection__choice__remove {
    background-color: transparent;
    border: none;
    font-size: 1em;
    padding: 0;
}
.select2-container--bootstrap .select2-selection--multiple .select2-selection__rendered {
    float: left;
    width: auto;
}

/* CKEditor */
.ck-editor__editable_inline {
    min-height: 100px;

    p {
        margin: 0 0 16px !important;
    }

    figure {
        margin-top: 0.9em !important;
        width: auto;
    }
}

.ck-fontsize-option span {
    font-size: 1rem !important;
}

.ck.ck-dropdown__panel {
    max-height: 300px;
    overflow-y: auto;
}

/* User onboard form */
#userOnboardingForm .setup-content .panel-body {
    position: relative;
}

#userOnboardingForm .setup-content .folder-tree-buttons {
    display: flex;
    gap: 6px;
    justify-content: flex-end;
    position: absolute;
    z-index: 2;
    right: 18px;
    padding-top: 18px;
}

#userOnboardingForm .setup-content .folder-tree-buttons button {
    box-shadow: none;
    height: 24px;
    line-height: 1;
    border-radius: 2px;
}

/* Schedule form footer */
.modal-footer .schedule-modal-footer {
    gap: 0.5rem;
    display: inline-flex;
}

/* Reminder Events and Schedule Criteria */
.reminder-event-row, .schedule-criteria-row {
    display: inline-flex !important;
    width: 100%;
    gap: 12px;
    padding: 0 15px;
    margin-bottom: 8px;
}

.reminder-event-cell label, .schedule-criteria-cell label {
    width: 100%;
}

.reminder-event-btn, .schedule-criteria-btn {
    flex-grow: 1;
    text-align: right;
}

.schedule-criteria-type, .schedule-criteria-condition, .schedule-criteria-metric {
    flex-basis: 165px;
}

.schedule-criteria-value {
    flex-basis: 130px;
}

.reminder-event-value {
    flex-basis: 100px;
}

.reminder-event-type {
    flex-basis: 120px;
}

.reminder-event-option {
    flex-basis: 200px;
}

.reminder-event-email {
    flex-basis: 180px;
}

@media screen and (max-width: 992px) {
    .reminder-event-row, .schedule-criteria-row {
        gap: 8px;
        padding: 0;
    }

    .schedule-criteria-type, .schedule-criteria-condition, .schedule-criteria-metric {
        flex-basis: 95px;
    }
    
    .schedule-criteria-value {
        flex-basis: 85px;
    }

    .reminder-event-value {
        flex-basis: 60px;
    }
    
    .reminder-event-type {
        flex-basis: 85px;
    }
    
    .reminder-event-option {
        flex-basis: 140px;
    }
    
    .reminder-event-email {
        flex-basis: 80px;
        line-height: 1.2rem;
    }
}

/* WELCOME PAGE VARS */
:root {
    --welcome-color-gray: #484848;
    --welcome-color-white: #ffffff;
    --welcome-color-primary: #0e70f6;
    --welcome-color-primary-hover: #5DA2FF;
    --welcome-color-primary-alt: #1775f6;
    --welcome-color-primary-dark: #0b5ac5;
    --welcome-color-secondary: #eb7857;
    --welcome-color-secondary-dark: #bc6046;
}
