/*GRB*

    Gerbera - https://gerbera.io/

    gerbera.css - this file is part of Gerbera.

    Copyright (C) 2005 Gena Batyan <bgeradz@mediatomb.cc>,
                       Sergey 'Jin' Bostandzhyan <jin@mediatomb.cc>

    Copyright (C) 2006-2010 Gena Batyan <bgeradz@mediatomb.cc>,
                            Sergey 'Jin' Bostandzhyan <jin@mediatomb.cc>,
                            Leonhard Wimmer <leo@mediatomb.cc>

    Copyright (C) 2016-2021 Gerbera Contributors

    Gerbera is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License version 2
    as published by the Free Software Foundation.

    Gerbera 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 General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with Gerbera.  If not, see <http://www.gnu.org/licenses/>.

    $Id$
*/
/* lato-regular - latin-ext_latin */
@font-face {
    font-family: 'Lato';
    font-style: normal;
    font-weight: 400;
    src: local('Lato Regular'), local('Lato-Regular'),
    url('/vendor/lato/lato-v14-latin-ext_latin-regular.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
    url('/vendor/lato/lato-v14-latin-ext_latin-regular.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}

body,
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Lato","Helvetica Neue",Helvetica,Arial,sans-serif;
}

a {
    color: #ff7f00;
}

a:hover {
    color: #ff7f00;
}

.navbar {
    font-size: 1rem;
    background-color: #222;
    border-bottom: 1px solid #ff7f00;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

li.nav-item > a {
    color: #bbb;
}

@media (max-width: 1110px) and (min-width: 768px) {
    .nav-link span {
        display: none;
    }
}

.navbar-brand,
li.nav-item:hover > a {
    color: white;
}

li.nav-item.active a {
    color: white;
}

.login-field {
    background-color: #FFF;
    box-shadow:inset 0px 3px 3px -1px #888;
}

.login-field:focus {
    background-color: #FFF;
    box-shadow:inset 0px 3px 3px -1px #888;
    border: 1px solid #ff7f00;
}

.form-control:focus {
    background-color: #FFF;
    border: 1px solid #ff7f00;
    box-shadow:inset 0px 3px 3px -1px #888;
}

.modal-dialog {
}

.modal-header {
    background-color: #222;
    color: #FFF;
    border: 1px solid #FFF;
}

.modal-footer {
    background-color: #e9ecef;
    border-bottom: 1px solid #FFF;
    border-left: 1px solid #FFF;
    border-right: 1px solid #FFF;
}

.modal-body {
    background-color: #FFF;
    border: 1px solid #FFF;
}

.modal-header .close {
    opacity: 1;
    color: white;
}
.close:hover {
    color: #FFF;
}

#mediaimage {
    width: 150px;
    object-fit: contain;
}
.edit-dialog {
    height: calc( 100vh - 3.5rem );
}
.edit-content {
    height: 90vh;
}
.edit-body {
    height: calc( 100vh - 3.5rem - 70px - 72px );
    overflow-y: auto;
}
.editor-form {
    min-width: calc( 500px - 3rem );
}
.edit-table {
}
.edit-cell {
}
.edit-form {
    width: calc( 500px - 2rem );
}

.detail-table {
    width: 500px;
    margin-left: 1rem;
    margin-bottom: 10px;
}
.detail-column {
    width: 250px;
}

.details-visible {
    max-width: calc( 1000px + 1rem );
}
.detail-area {
    /*max-height: calc( 100% - 70px - 72px );*/
    display: inline-block;
}

.btn-danger {
    background-color: #ff7f00;
    border-color: #222;
}

.btn-danger:not([disabled]):not(.disabled):active,
.btn-danger:not([disabled]):not(.disabled).active,
.show > .btn-danger.dropdown-toggle,
.btn-danger:hover,
.btn-danger:active,
.btn-danger:focus {
    color: #fff;
    background-color: #C66200;
    border-color: #ff7f00;
    box-shadow: none;
}

.btn-success {
    background-color: #FF7F00;
    border-color: #222;
}

.btn-success:not([disabled]):not(.disabled):active,
.btn-success:not([disabled]):not(.disabled).active,
.show > .btn-success.dropdown-toggle,
.btn-success:hover,
.btn-success:active,
.btn-success:focus {
    color: #fff;
    background-color: #C66200;
    border-color: #ff7f00;
    box-shadow: none;
}

.btn-primary:not([disabled]):not(.disabled):active,
.btn-primary:not([disabled]):not(.disabled).active,
.show > .btn-primary.dropdown-toggle,
.btn-primary:hover,
.btn-primary:active,
.btn-primary:focus {
    color: #fff;
    background-color: #1435AD;
    border-color: #5A70C2;
    box-shadow: none;
}

.btn-primary {
    background-color: #04819E;
    border-color: #4BA2B7;
}

.btn-default {
    border: 1px solid #888;
}

.btn-default:focus {
    box-shadow: 0 0 0 0.1rem #888
}

ul.pagination {
    margin-bottom: 0px;
}

/*********************
 * Page Layout Elements
 *
 * Menu             = 5vh
 * Trail            = 7vh + ~2vh padding-top,bottom
 * Tree             = fullHeight - (menu + trail)
 * Items datagrid   = fullHeight - (menu + trail)
 * Items table head = 36px
 * Items table foot = 49px
 * Items table body = fullHeight - (menu + trail) - header - footer
 *********************/

html,
body,
#container {
    height: 100vh;
    overflow: hidden;
    color: rgb(51, 51, 51);
}

#container {
    display: flex;
    flex-direction: column;
}

#content {
    display: flex;
    flex: 1;
    overflow: auto;
}

#clients {
    height: 100%;
    overflow: auto;
}

#config {
    display: flex;
    height: calc( 100% - 115px );
    width: 100%;
}

#left {
    height: 100%;
    flex: 1;
    overflow-y: auto;
    flex-grow: 2;
    background-color: rgb(248, 248, 248);
    border-right: 1px solid #e9ecef;
}

#tree {
    padding: 0.5rem;
}

#right {
    flex: 1;
    overflow-y: hidden;
    flex-grow: 5;
}

#datagrid,
#clientgrid {
    height: 100%;
    overflow: auto;
    background-color: #fefefe;
}

#configframe {
    height: 100%;
    width: 100%;
}

#configgrid {
    height: calc( 100% - 60px );
    overflow-y: auto;
    background-color: #fefefe;
}

#datagrid table, #clientgrid table {
    width: 100%;
    display: flex;
    flex-direction: column;
    line-height: 1em;
    vertical-align: middle;
}

#clientgrid table {
    display: table;
}

#datagrid table tbody {
    flex: 1 0 auto;
    overflow-y: scroll;
    display: table;
    width: 100%;
}

#clientgrid table tbody,
#clientgrid table thead {
    overflow-y: scroll;
    width: 100%;
}

#datagrid table tfoot {
    overflow-x: auto;
    width: 100%;
    flex-shrink: 0;
    display: block;
}

#datagrid table tfoot tr,
#datagrid table tfoot td {
    width: 100%;
}

#datagrid table tbody tr:hover,
#clientgrid table tbody tr:hover {
    background-color: #e9ecef;
}

#clientgrid,
#configgrid {
    margin: 30px;
}

#configgrid {
    margin-left: 0px;
}

#configgrid .configListItem {
    margin-left: 20px;
    list-style:none;
}

#configgrid .changed {
    background-color: #ff7f0060;
}
#configgrid .changed input {
    background-color: #ff7f0030;
}

#configgrid .removed {
    background-color: #ff7ff060;
}
#configgrid .removed input {
    background-color: #ff7ff030;
}

#configgrid .added {
    background-color: lightyellow;
}
#configgrid .added input {
    background-color: lightyellow;
}

#configgrid .default {
    color: darkgray;
}
#configgrid .default input {
    color: darkgray;
}

#configgrid .reset {
    background-color: lightgreen;
}
#configgrid .reset input {
    background-color: lightgreen;
}

.page-item.active .page-link {
    background-color: #ff7f00;
    border-color: #BF5F00;
    color: white;
}

.page-item.active .page-link:hover {
    background-color: #BF5F00;
    border-color: #BF5F00;
}

.page-link {
    color: #ff7f00;
}

.page-link:focus,
.page-link:hover {
   color: #222;
}

/* Cancel top level padding */
*#tree > .list-group > .list-group-item {
    padding: 0;
}

.list-group-item {
    padding-top: 0px;
    padding-right: 0px;
    padding-bottom: 0px;
    border: 0px;
    background-color: transparent;
    color: #3c3c3c;
}

.list-group-item.has-children > span.fa {
    color: #ff7f00;
}

.list-group-item:first-child,
.list-group-item:last-child {
    border-radius: 0px;
}

.list-group {
    border: 0px;
    padding-right: 0px;
    padding-bottom: 0px;
    margin-bottom: 0px;
    box-shadow: none;

}

.folder-title {
    padding-left: 10px;
    cursor: pointer;
}

.expandable {
    cursor: copy;
}

.grb-item > td > img {
    margin-left: -0.5rem; /* Counter BS style */
    margin-top: -0.25rem;
    margin-bottom: -0.25rem;
    margin-right: .5rem;
}

.grb-item-delete,
.grb-item-edit,
.grb-item-download,
.grb-item-add {
    cursor: pointer;
    margin-left: .5em;
}

.grb-item-delete:hover,
.grb-item-edit:hover,
.grb-item-download:hover,
.grb-item-add:hover {
    color: #ff7f00;
}

.grb-item-buttons {
}

.grb-trail .breadcrumb > li + li:before {
    content: ">";
    padding: 0 5px;
    color: rgba(255, 255, 255, 0.5);
}

.grb-trail {
    background-color: #3c3c3c;
    color: #ededed;
}

.grb-trail ol.breadcrumb {
    background-color: unset;
}

.grb-trail-buttons {
    list-style: none;
    padding: 8px 15px;
    margin-bottom: 20px;
}
.grb-trail-buttons li {
    display: inline-block;
    margin: 0px 10px 0px 10px;
}
.grb-trail-buttons li a {
    color: #ededed;
}

.grb-trail-button,
.grb-trail-add,
.grb-trail-add-autoscan,
.grb-trail-edit-autoscan,
.grb-trail-edit,
.grb-trail-delete,
.grb-trail-delete-all {
    text-decoration: none;
}

.grb-trail-button:hover,
.grb-trail-add:hover,
.grb-trail-add-autoscan:hover,
.grb-trail-edit-autoscan:hover,
.grb-trail-edit:hover,
.grb-trail-delete:hover,
.grb-trail-delete-all:hover {
    cursor: pointer;
    text-decoration: underline;
}

@media (max-width: 1110px) {
    .grb-trail-button span {
        display: none;
    }
}

.overflow {
    overflow: hidden;
    -ms-text-overflow: ellipsis;
    -o-text-overflow: ellipsis;
    text-overflow: ellipsis;
    display: block;
}

.grb-toast,
.grb-task {
    bottom: 0;
    border-radius: 0;
    border: 0;
    width: 100%;
    z-index: 1000;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    position: fixed;
    margin-bottom: 0;
}

#grb-toast-wrapper {
    float: left;
    width: 80%;
}

#grb-toast-msg {
    text-overflow: ellipsis;
    overflow: hidden;
}

.autoscan {
    cursor: pointer;
    background-color: darkorange;
}

.badge {
    margin-left: 5px;
    margin-right: 5px;
}

.notransition * {
    -webkit-transition: none !important;
    -moz-transition: none !important;
    -o-transition: none !important;
    -ms-transition: none !important;
    transition: none !important;
}

#home {
    height: 100%;
    width: 100%;
}

#homeintro {
    padding-top: 6rem;
    padding-bottom: 3rem;
    background-color: rgb(248, 248, 248);
    border-bottom: rgb(231, 231, 231) 1px solid;
}

#home a {
    text-decoration: none;
}

#home a > h4 {
    margin-top: 2em;
}
