/*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-2022 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;
}

.nav-link {
    cursor: pointer;
}

@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;
    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;
    border-top: 1px solid #dee2e6;
}

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

.datagrid-row: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;
    cursor: pointer;
}

.page-select > option {
    padding: .5rem .75rem;
    line-height: 1.25em;
}

.page-select {
    color: #ff7f00;
    cursor: pointer;
    border: 1px solid #dee2e6;
    border-top-left-radius: .25rem;
    border-top-right-radius: .25rem;
    border-bottom-left-radius: .25rem;
    border-bottom-right-radius: .25rem;
}

.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;
    display: inline-block;
    white-space: nowrap;
}

.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-url {
    display: inline-block;
}

.grb-item > td {
    vertical-align: middle;
    line-height: 36px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.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-item-icon {
    width: 1em;
    height: 1em;
}
.grb-thumbnail {
    margin-right: 10px;
    object-fit: contain;
    background: #eee;
    border: 1px solid #ddd;
    height: 36px;
    width: 48px;
}

.grb-item-grid {
    display: grid;
    align-content: center;
    padding: 8px;
    border: 1px solid #e9ecef;
}
.grb-item-grid .grb-item-icon {
    font-size: x-large;
}

.grb-item-grid-normal .grb-thumbnail {
    margin-right: 0;
    height: 90px;
    width: 120px;
}
.grb-item-grid-normal > div > a {
    font-size: x-small;
    width: 120px;
}

.grb-item-grid-large .grb-thumbnail {
    margin-right: 0;
    height: 120px;
    width: 160px;
}
.grb-item-grid-large > div > a {
    font-size: x-small;
    width: 160px;
}

.grb-item-grid:hover {
    background-color: #e9ecef;
}

.grb-item-grid > div {
    display: grid;
}

.grb-item-grid .grb-item-download {
    margin: 0;
}

.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;
}

.autoscan-child {
    background-color: #e9ecef;
}
.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, #home h4 {
    margin-top: 2em;
}

#status-total, #status-audio, #status-video, #status-image {
    text-align: end;
}
