/* open-sans-regular - latin */
@font-face {
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 400;
    src: url('../_fonts/open-sans-v29-latin-regular.eot'); /* IE9 Compat Modes */
    src: local(''),
         url('../_fonts/open-sans-v29-latin-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
         url('../_fonts/open-sans-v29-latin-regular.woff2') format('woff2'), /* Super Modern Browsers */
         url('../_fonts/open-sans-v29-latin-regular.woff') format('woff'), /* Modern Browsers */
         url('../_fonts/open-sans-v29-latin-regular.ttf') format('truetype'), /* Safari, Android, iOS */
         url('../_fonts/open-sans-v29-latin-regular.svg#OpenSans') format('svg'); /* Legacy iOS */
  }

/* Generic */
:root {
    --bs-font-sans-serif: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
    /*--bs-font-sans-serif: -apple-system,system-ui,BlinkMacSystemFont,'Segoe UI',Roboto,Oxygen-Sans,Ubuntu,Cantarell,'Helvetica Neue',sans-serif,'Apple Color Emoji','Segoe UI Emoji','Segoe UI Symbol',sans-serif;*/
}
.label {
    line-height: 2;
}

.btn-group-xs>.btn,
.btn-xs {
    padding: .4rem;
    font-size: .8rem;
    line-height: .5;
    border-radius: .2rem;
}

.drag-handle {
    cursor: move;
}

/* Selectize overrides */
.selectize-control {
    padding: 0;
}
.selectize-input {
    border: none;
}

/* Layout */
.app-app > .navbar {
    background-image: linear-gradient(rgba(255, 255, 255, 0.14902), rgba(0, 0, 0, 0.14902));
    min-height: 70px;
}

.app-app > .navbar .app-logo {
    max-height: 100px;
}

.app-app > .navbar .navbar-nav>.active>a {
    background-color: transparent !important;
}

.breadcrumb {
    padding: 0.5rem;
    background-color: #f5f5f5;
}

/* Spinning wheel */
.glyphicon.spinning,
.fa-spinner {
    animation: spin 2s infinite linear;
    -webkit-animation: spin2 2s infinite linear;
}

@keyframes spin {
    from {
        transform: scale(1) rotate(0deg);
    }

    to {
        transform: scale(1) rotate(360deg);
    }
}

@-webkit-keyframes spin2 {
    from {
        -webkit-transform: rotate(0deg);
    }

    to {
        -webkit-transform: rotate(360deg);
    }
}

/* Modals */
#app-popup-modal .modal-dialog {
    /* This rule is a workaround for modal-lg not being applied when viewport is smaller than 992px,
       thus making the modal too narrow. */
    --bs-modal-width: 800px;
}

#app-popup-modal-title .breadcrumb {
    margin-bottom: 0px;
    margin-right: 0.5rem;
    display: flex;
    align-items: center;
}

.note-modal { z-index: 1090; }  /* Make it higher than view modals */

/* Views */
.app-view {
    margin-bottom: 2rem;
    break-inside: avoid;
}

.app-view-menu .nav {
    margin-bottom: 20px;
}

.app-view img {
    max-width: 100%;
}
.bb-menu-cards {
    display: flex;
    flex-wrap: wrap;
}
.bb-menu-card {
    border-radius: 0.4rem;
    min-width: 180px;
    display: inline-block;
    font-size: 18px;
    padding: 0.8rem;
    margin-right: 5px;
    margin-top: 5px;
    position: relative;
    overflow: hidden;
    line-height: 1.6rem;
    background-image: linear-gradient(145deg, rgba(255, 255, 255, 0.14902), rgba(0, 0, 0, 0.14902));
    text-align: center;
    max-width: 200px;
}
.bb-menu-card:hover {
    background-image: linear-gradient(145deg, rgba(50, 50, 50, 0.14902), rgba(0, 0, 0, 0.14902));
}
.bb-menu-card-container {
    display: flex;
    flex-direction: column;
    height: 100%;
}
.bb-menu-card a {
    color: white !important;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.bb-menu-card-label {
    margin: 0.6em;
    flex-grow: 1;
}
.bb-menu-card-icon {
    font-size: 1.6em;
    padding: 0.2em;
    margin-top: 0.4em;
}
.bb-menu-card-description {
    font-size: 0.75em;
    line-height: 1.4em;
    margin: 0.8em 0.1em;
}

/* Table */
.table-responsive {
    clear: both;
    /*max-width: 100%;*/
    /*table-layout: auto;*/
    /*word-wrap: break-word;*/
    overflow: auto;
}
.bb-table-col-narrow {
    width: 1%;
    white-space: nowrap;
}
.app-view-table .bb-sort-col {
    visibility: hidden;
    float: right;
}
.app-view-table .bb-sort-current {
    visibility: visible;
}
.app-view-table .bb-sortable-column:hover .bb-sort-col {
    visibility: visible;
    cursor: pointer;
}

/* Search */
.app-search {
    display: inline-block;
}

/* Importdata */
.striked {
    text-decoration: line-through;
}

/* Table filters */
.app-filters-container,
.app-filters {
    display: inline-block;
}

.app-filter-template {
    display: none;
}

.app-filter {
    padding: 3px 5px;
    margin-right: 3px;
}

.app-filter .close {
    margin: auto 0 auto 7px;
    line-height: 18px;
    float: none;
}

.app-filter .app-filter-field,
.app-filter .app-filter-value {
    font-weight: bold;
}

.app-filter-editor-container {
    display: none;
}

.app-table-filter .popover {
    width: auto;
    max-width: 100%;
}
.app-search button {
    display: none;
}

/* Login */
.form-signin {
    max-width: 330px;
    padding: 15px;
    margin: 0 auto;
}

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

.form-signin .form-control {
    position: relative;
    box-sizing: border-box;
    height: auto;
    padding: 10px;
    font-size: 16px;
}

.form-signin .form-control:focus {
    z-index: 2;
}

.bb-login-fields input:not(:last-of-type) {
    margin-bottom: -1px;
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
}

.bb-login-fields input:not(:first-of-type) {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.bb-login-fields input:last-of-type {
    margin-bottom: 10px;
}

/* Form */
.required .form-label:after {
    content: " *";
    color: red;
}

.app-view-form textarea {
    height: 120px;
}

.app-view-form textarea.bb-textarea-lg {
    height: 400px;
}

.form-control-inline {
    display: inline-block;
    width: auto;
}

/* fix rateYo with Bootstrap */
.jq-ry-container {
    -webkit-box-sizing: content-box;
    -moz-box-sizing: content-box;
    box-sizing: content-box;
}

@media print {
    .container {
        padding-top: 2em;
    }
    a[href]:after {
        content: none;
    }
    .bb-no-print, .navbar-expand-md .navbar-collapse {
        display: none !important;
    }
}