/*
 * Controlbright theme
 * (c) 2018 Controlbright
 *
 */

.cb-page-wrapper {
    margin: 0 30px;
    padding: 0 15px;
}

.cb-page-wrapper .tab-container>.nav.nav-tabs {
    display: block;
}

.cb-page-wrapper .tab-content {
    padding: 30px 5px 20px 5px;
}

.cb-page-title {
    margin-top: 15px;
    margin-bottom: 20px;
    color: #343a40;
    padding-left: 10px;
    border-left: 4px solid #4662D4;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 18px;
    line-height: 18px;
    letter-spacing: 0.5px;
}


/*============================
=            Card            =
============================*/

.cb-card {
    margin-top: 20px;
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    word-wrap: break-word;
    background-color: #fff;
    background-clip: border-box;
    border: 1px solid #ced4da;
    border-radius: 3px;
}

.cb-card-body {
    flex: 1 1 auto;
    padding: 20px;
}


/*=====  End of Card  ======*/


/*============================
=            Form            =
============================*/

.cb-page-wrapper .form-control {
    border-radius: 4px;
    display: block;
    width: 100%;
    padding: 6px 40px 6px 12px;
    line-height: 1.5;
    color: #323a48;
    height: 36px;
    background-color: #fff;
    border: 2px solid #ced4da;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

.cb-page-wrapper .form-control:focus {
    border-color: #1b84e7;
}

.cb-page-wrapper .form-control:disabled {
    background-color: #e9ecef;
    opacity: 1;
}

.cb-page-wrapper .btn {
    display: inline-block;
    font-weight: 400;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    user-select: none;
    border: 1px solid transparent;
    min-width: 130px;
    padding: 12px 20px;
    box-shadow: none;
    line-height: 1.5;
    border-radius: 3px;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.cb-page-wrapper .btn.btn-primary {
    color: #fff;
    background-color: #57889c;
    border-color: #57889c;
}

.cb-page-wrapper .btn.btn-primary:focus,
.cb-page-wrapper .btn.btn-primary.focus {
    box-shadow: 0 0 0 0.2rem rgba(27, 132, 231, 0.5);
}

.cb-form .col-md-6:nth-child(odd) {
    clear: left;
}

.cb-form .error {
    position: relative;
    font-size: 13px;
    line-height: 1.91667;
    font-weight: 400;
    color: #e82110;
    display: inline-block;
    margin-top: 10px;
    border: 1px solid #e82110;
    padding: 2px 7px;
    border-radius: 4px;
    padding-left: 25px;
}

.cb-form .error:before {
    content: "\e107";
    font-family: 'Glyphicons Halflings';
    font-style: normal;
    position: absolute;
    font-weight: normal;
    left: 8px;
    top: 2px;
}

.cb-form .glyphicon-ok {
    color: #739e73;
}

.search-wrapper {
    display: inline-block;
    position: relative;
}

.search-input {
    display: inline-block;
    position: relative;
    padding: 10px 8px 10px 30px;
    border: none;
    min-width: 300px;
    border-radius: 5px;
    border: 2px solid #ccc;
}

.search-wrapper::before {
    position: absolute;
    left: 10px;
    top: 10px;
    font-size: 16px;
    z-index: 99;
    color: #a5a5a5;
    font-family: fontAwesome;
    content: "\f002";
}


/*=====  End of Form  ======*/


/*==================================
=            Breadcrumb            =
==================================*/

.breadcrumb.breadcrumb-custom {
    padding: 0 0;
    background: #fff;
    border-radius: 4px;
    border: 1px solid #dbe3e6;
}

.breadcrumb.breadcrumb-custom .breadcrumb-item {
    background: #dbe3e6;
    padding: 10px;
    color: #000;
    display: inline-block;
    vertical-align: top;
}

.breadcrumb.breadcrumb-custom .breadcrumb-item:before {
    content: "";
}

.breadcrumb.breadcrumb-custom .breadcrumb-item a {
    position: relative;
    color: inherit;
    border: 1px solid #dbe3e6;
    display: inline-block;
    vertical-align: top;
}

.breadcrumb.breadcrumb-custom .breadcrumb-item a:before,
.breadcrumb.breadcrumb-custom .breadcrumb-item a:after {
    position: absolute;
    top: -9px;
    width: 0;
    height: 0;
    content: "";
    border-top: 21px solid transparent;
    border-bottom: 21px solid transparent;
}

.breadcrumb.breadcrumb-custom .breadcrumb-item a:before {
    right: -22px;
    top: -12px;
    z-index: 3;
    border-left-color: #dbe3e6;
    border-left-style: solid;
    border-left-width: 12px;
}

.breadcrumb.breadcrumb-custom .breadcrumb-item a:after {
    border-top: 21px solid transparent;
    border-bottom: 22px solid transparent;
    border-left: 12px solid #ffffff;
    top: -12px;
    right: -24px;
}

.breadcrumb.breadcrumb-custom .breadcrumb-item:last-child {
    display: inline-block;
    vertical-align: top;
}


/*=====  End of Breadcrumb  ======*/


/*=================================
=            Datatable            =
=================================*/

.cb-page-wrapper .cb-table-header {
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
}

.cb-page-wrapper .ngx-datatable.fixed-header .datatable-header .datatable-header-inner .datatable-header-cell {
    line-height: 50px;
    padding: 0 10px;
    color: #818489;
    font-weight: bold;
    text-transform: uppercase;
}

.cb-page-wrapper .datatable-body-cell-label {
    padding: 10px;
}

.cb-page-wrapper .datatable-header {
    background: #f8f9fb;
    line-height: 50px;
}

.cb-page-wrapper .ngx-datatable .datatable-body .datatable-body-row {
    color: #8e9196;
    outline: none;
    border-bottom: 2px solid #f0f3f8;
}

.cb-page-wrapper .ngx-datatable .empty-row {
    padding: 20px;
    text-align: center;
    color: #8e9196;
    border-bottom: 2px solid #f0f3f8;
}

.cb-page-wrapper .ngx-datatable .datatable-row-group {
    display: flex;
    align-items: center;
}

.cb-page-wrapper .ngx-datatable .brand-name {
    color: #373737;
    font-weight: bold;
}

.cb-page-wrapper .cb-org-logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 1px solid rgba(16, 101, 254, 0.2);
}

.cb-page-wrapper .cb-org-logo.lg {
    width: 100px;
    height: 100px;
}

.cb-page-wrapper .ngx-datatable .action-menu {
    text-align: center;
    cursor: pointer;
}

.cb-page-wrapper .ngx-datatable .action-menu .menu-icon {
    font-weight: normal;
    font-size: 20px;
}


/*=====  End of Datatable  ======*/


/*================================
=            Dropdown            =
================================*/

.cb-dropdown,
.ngx-datatable .datatable-body-cell.cb-dropdown {
    overflow-x: visible;
    position: relative;
}

.cb-dropdown .cb-dropdown-wrapper {
    position: relative;
    width: 40px;
    float: right;
}

.cb-dropdown ul {
    position: absolute;
    right: 2px;
    top: -2px;
    z-index: 99;
    padding: 0;
    transition: all 0.3s ease;
    transform: scale(0);
    transform-origin: right top;
    background: #fff;
    text-align: left;
    box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.16), 0 2px 8px 0 rgba(0, 0, 0, 0.12);
}

.cb-dropdown ul li {
    display: block;
    width: 100%;
}

.cb-dropdown ul li a {
    width: 100%;
    padding: 5px 20px;
    color: #555555;
    display: inline-block;
    white-space: pre;
    box-sizing: border-box;
}

.cb-dropdown .dropdown-icon {
    margin-right: 10px;
}

.cb-dropdown ul li a:hover {
    background: #ebebeb;
}

.cb-dropdown:focus ul {
    transform: scale(1);
}


/*=====  End of Dropdown  ======*/

.permission-item {
    margin-bottom: 40px;
}

.cb-card-body .details-panel {
    display: flex;
    align-items: center;
    background: #3a3633;
    color: #fff;
    margin: -20px;
    margin-bottom: -39px;
    padding: 25px 22px;
    padding-bottom: 70px;
}

.cb-card-body .details-panel.fixed {
    margin-bottom: 20px;
}

.cb-card-body .details-panel div {
    margin-right: 15px;
}

.cb-card-body .details-panel .back {
    font-size: 25px;
    cursor: pointer;
}

.cb-card-body .details-panel .logo img {
    display: inline-block;
}

.cb-card-body .details-panel .info h2 {
    margin: 0;
}

.cb-card-body .details-panel .info span {
    color: #999
}

.cb-card-body .details-panel .info span.label {
    color: #fff;
    margin-left: 20px;
    font-size: 12px;
    vertical-align: middle;
}

.nav-tabs .nav-item a.nav-link {
    color: #c0bbb7;
    background: transparent;
    border: 2px solid transparent;
    box-shadow: none;
    padding-bottom: 8px;
}

.nav-tabs .nav-item.active a.nav-link,
.nav-tabs>li.active>a.nav-link:hover,
.nav-tabs>li.active>a.nav-link:focus {
    background: transparent;
    box-shadow: none;
    color: #fff;
    font-weight: bold;
    border: none;
    border-bottom: 2px solid #fff;
}

@media (max-width: 600px) {
    .cb-page-wrapper.device .nav-tabs .nav-item {
        padding: 12px 5px!important;
    }
    .cb-page-wrapper.device .nav-tabs .nav-item .nav-link {
        padding: 10px!important;
    }
}

.brand:nth-child(3)::after {
    content: '';
    clear: both;
}

.table th {
    padding: 5px 10px !important;
}

#header #logo-wrapper {
    width: 190px;
    padding: 2px 0;
    height: 35px;
    margin-top: 5px;
    margin-left: 10px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

#login-intro #logo-wrapper {
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    height: 165px;
    margin-bottom: 20px;
}

#main.layout-full-width {
    margin-left: 0;
}

.layout-full-width #hide-menu {
    display: none;
}

.cb-dropdown .dropdown-menu>li>a:focus,
.cb-dropdown .dropdown-menu>li>a:hover {
    text-decoration: none;
    color: #555555;
}

.cb-dropdown ul li a.btn-delete {
    border-top: 1px solid #eee;
    color: #e62020;
}

.cb-dropdown button {
    border: none;
    background: transparent;
}

@media (max-width:768px) {
    .cb-page-wrapper {
        margin: 0;
    }
}

.btn-wide .fa {
    margin-right: 4px;
    font-size: 15px;
}

.switch-account {
    color: #fff;
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    background: #ea2838;
}

.switch-account span {
    display: inline-block;
    color: #fff;
    margin-right: 15px;
}

.switch-account button {
    text-transform: capitalize;
    height: 40px;
    margin-top: 4px;
    margin-right: 20px;
    background: transparent;
    border: 2px solid #fff;
    padding: 5px 15px;
    color: #fff;
    font-weight: bold;
    border-radius: 4px;
}

.secondary-container .card-header.device {
    display: none;
}

.cb-page-wrapper.device .nav-tabs {
    background: #1976d2;
    margin-top: 10px;
    display: flex;
    justify-content: space-evenly;
}

.cb-page-wrapper.device .nav-tabs .nav-item {
    padding: 12px 20px;
}

.cb-page-wrapper.device .nav-tabs .nav-item a.nav-link {
    border-bottom: 0;
}

.cb-page-wrapper.device .nav-tabs .nav-item .nav-link {
    padding: 9px 25px;
    font-size: 14px;
}

.cb-page-wrapper.device .nav-tabs .nav-item.active a.nav-link,
.nav-tabs>li.active>a.nav-link:hover,
.nav-tabs>li.active>a.nav-link:focus {
    border: none;
    background: rgba(255, 255, 255, .15);
    border-radius: 4px;
}

.cb-page-wrapper.device .tab-content {
    padding: 20px 5px 20px 5px;
    background: #fff;
    -webkit-box-shadow: 0px 1px 3px 1px rgba(60, 64, 67, .15);
    box-shadow: 0px 1px 3px 1px rgba(60, 64, 67, .15);
}

.cb-page-wrapper.device .tab-panel-action {
    text-align: right;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(0, 0, 0, .12);
}

.cb-page-wrapper.device .tab-panel-action button {
    color: #6200f8;
    text-transform: uppercase;
    font-weight: bold;
    background: #ebe0ff;
    border-radius: 4px;
    margin-right: 5px;
    padding: 8px 12px;
    border: none;
}

.cb-page-wrapper.device .tab-content {
    padding: 12px 5px 20px 5px;
}

.cb-page-wrapper.device .card-list {
    list-style: none;
    padding: 0px 15px;
}

.cb-page-wrapper.device .card-list li {
    padding: 15px 10px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, .12);
    transition: 0.5s all cubic-bezier(0.22, 0.61, 0.36, 1);
}

.cb-page-wrapper.device .card-list li .content {
    flex: 8;
    font-weight: bold;
    font-size: 14px;
}

.cb-page-wrapper.device .card-list li .sidebar {
    flex: 4;
    text-align: right;
}

.cb-page-wrapper.device .card-list li .sidebar.action-bar i {
    padding: 15px 8px;
    font-size: 15px;
}

.cb-page-wrapper.device .card-list li .sidebar.action-bar i.delete {
    color: #dc3545;
}

.cb-page-wrapper.device .card-list li.scene .sidebar {
    display: none;
}

.cb-page-wrapper.device .card-list li.scene.playing {
    background: #5dcb3d;
    color: #fff;
    border-color: #fff;
}

.cb-page-wrapper.device .card-list li.scene.playing i {
    font-size: 21px;
    padding: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .2);
}

.cb-page-wrapper.device .card-list li.scene.playing .sidebar {
    display: block;
}

.cb-page-wrapper.device .card-list li.scene.playing small {
    font-size: 10px;
    display: block;
    font-weight: normal;
}

.bottom-sheet.device {
    position: fixed;
    top: 100%;
    z-index: 9999;
    bottom: 0;
    background: #fff;
    left: 0;
    right: 0;
    animation: close-sheet 350ms cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes close-sheet {
    from {
        top: 0
    }
    to {
        top: 100%;
    }
}

.bottom-sheet.device.active {
    top: 0;
    animation: open-sheet 350ms cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes open-sheet {
    from {
        top: 100%;
    }
    to {
        top: 0;
    }
}

.bottom-sheet.device .sheet-header {
    height: 52px;
    background: #474544;
    color: #fff;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, .5);
}

.bottom-sheet.device .sheet-header .nav-icon {
    flex: 1;
    padding: 10px;
    text-align: center;
    font-size: 20px;
}

.bottom-sheet.device .sheet-header .nav-title {
    flex: 10;
    font-weight: bold;
    font-size: 14px;
}

.bottom-sheet.device .sheet-body,
.bottom-sheet .sheet-footer {
    padding: 24px 20px 0;
}

.bottom-sheet.device .sheet-footer {
    text-align: center;
}

button.md {
    padding: 8px 16px;
    font-size: 14px;
    min-width: 150px;
    box-sizing: border-box;
    min-height: 36px;
    transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms, box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms, border 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
    font-weight: normal;
    line-height: 1.5;
    border-radius: 4px;
    text-transform: uppercase;
    box-shadow: 0px 1px 5px 0px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 3px 1px -2px rgba(0, 0, 0, 0.12);
    background-color: #3276b1;
    outline: none;
    border: none;
    color: #fff;
}

.section-color-input {
    margin-top: 30px;
}

.input-group-addon {
    font-weight: bold;
}

.nav-tabs .nav-item a.nav-link {
    color: #fff;
}

.bottom-sheet.device input.form-control.preset-label {
    width: 80%;
    vertical-align: middle;
    display: inline-block;
}

.preview {
    display: inline-block;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1px solid #eee1e1;
    background: #000;
    margin-right: 8px;
}

.preview.lg {
    width: 25px;
    height: 25px;
    vertical-align: middle;
}

.preset-label h6 {
    margin-left: 5px;
}

.cb-page-wrapper {
    padding: 0;
}

.cb-page-wrapper .tab-container>.nav.nav-tabs {
    margin-top: 0;
}
