a {
    color: var(--primary-color);
    border-radius: .2rem;
}

a:hover {
    color: var(--primary-hover-color);
}

a, a:visited, a:focus, a:active, a:hover{
    outline:0 none !important;
}

.mw-navbar-dropdown {
    max-width: 300px;
}

#main-messages {
    position: fixed;
    right: 20px;
    top: 20px;
    z-index: 1009;
    font-size: 1rem;
    max-width: 500px;
    width: calc(100% - 40px);
}

#main-messages .alert {
    box-shadow: 0 0 10px #aaa;
}

.success-border-bottom {
    border-bottom: 7px solid #c3e6cb;
}
.success-border-danger {
    border-bottom: 7px solid #f5c6cb;
}

.message-text {
    padding-right: 1rem;
}

.alert-dismissible .close {
    position: absolute;
    padding: 0;
    margin-left: 1rem;
    top: 0.25rem;
    right: 0.5rem;
    font-size: 1.25rem;
}

button {
    cursor: pointer;
}

.worker-photo {
    width: 160px;
    border: 1px solid #dee2e6;
    padding: 10px;
    background-color: #fff;
    object-fit: cover;
    height: 160px;
}

#main-messages ul.errorlist {
    padding-left: 0;
    list-style: none;
    margin-bottom: 0;
}

.form-check {
    margin-bottom: 1rem;
}

/** Search */
[v-cloak] {
    display: none;
}

.search-results {
    z-index: 9999;
    margin-top: 2.4rem;
    width: 100%;
    position: absolute;
    background-color: #ffffff;
    border: 1px solid #dee2e6;
    border-top: 0;
    padding: 1rem;
    border-radius: 0 0 0.35rem 0.35rem;
}

.category {
    margin-bottom: 1rem;
}

.attendance-graph svg {
    display: block;
    margin: auto;
}

#notifications {
    position: fixed;
    left: 0;
    top: 0;
    margin: 1rem;
    max-height: 100%;
    overflow-y: auto;
    z-index: 99;
    max-width: 400px;
}

#notifications img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 0.2rem;
}

/** DataTables **/
.dt-buttons {
    float: right !important;
}
.paginate_button.page-item a {
    border-radius: initial;
  
}

.page-item.active .page-link {
    background-color: var(--primary-btn-color);
    border-color: var(--primary-btn-color);
}

.page-item .page-link {
   color: var(--primary-btn-color);
}

.dt-buttons .dt-button.buttons-excel {
    border-radius: 4px;
    margin-top: 2px;
    margin-left: 10px;
}

.datepicker-container {
    z-index: 1000;
}

.fa-spin {
    color: var(--primary-color);
    font-size: 1rem;
    font-weight: normal;
}

#bs-company-tree {
    height: 800px !important;
    overflow: hidden;
}

.chosen-container {
    width: 100% !important;
}

.bootstrap-select {
    display: inline-block !important;
    padding-right: 20px !important;
    line-height: 1.5 !important;
    color: #495057 !important;
    vertical-align: middle !important;
    background: #fff url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'%3E%3Cpath fill='%23343a40' d='M2 0L0 2h4zm0 5L0 3h4z'/%3E%3C/svg%3E") no-repeat right .75rem center !important;
    background-size: 8px 10px !important;
    border: 1px solid #ced4da !important;
    border-radius: .25rem !important;
}

.bootstrap-select button.btn-light,
.bootstrap-select button.btn-light:hover {
    background: none !important;
    border: none;
    color: #495057 !important;
}

.bootstrap-select .dropdown-menu {
    margin: 0.25rem 0 0;
}

table thead tr th {
    background: #f8f9fa;
    border-bottom: 0 !important;
}

.table-action-column {
    white-space: nowrap;
    text-align: center;
}
#main-messages .alert:first-child {
    margin-top: 15px;
}

.btn-primary {
    background-color: var(--primary-btn-color) !important;
    border-color: var(--primary-btn-color) !important;
}
.btn-primary:hover{
    background-color: var(--primary-btn-hover-color) !important;
    border-color: var(--primary-btn-hover-color) !important;
}
.btn-outline-primary {
    border-color: var(--primary-btn-color);
    color: var(--primary-btn-color);
}
.btn-outline-primary:hover {
    border-color: var(--primary-btn-color);
    background-color: var(--primary-btn-color);
}
.btn-outline-primary:active {
    border-color: var(--primary-btn-color) !important;
    background-color: var(--primary-btn-color) !important;
}
.file-upload {
    position: relative;
    overflow: hidden;
    display: inline-block;
}

.file-upload .input-file-upload {
    min-height: 100%;
    min-width: 100%;
    position: absolute;
    top: 0;
    right: 0;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}

.card card-body .h4 {
    margin-bottom: 15px;
}

ul#id_entrypoints {
    list-style-type: none;
    padding-left: 15px;
}

.modal-dialog {
    overflow-y: initial !important
}
.modal-body{
    max-height: 600px;
    overflow-y: auto;
}

.zg-no-overflow {
    overflow-y: unset !important;
    max-height: unset;
}

.tooltip-inner {
    max-width: 350px;
    width: 350px; 
}

.table {
    width:100% !important;
}

.table-clickable tr {
    cursor: pointer;
}

.unclickable {
    cursor: default !important;
}

.hide-actions {
    display: none;
}

.hide-last-col tr td:last-child,
.hide-last-col tr th:last-child { 
    display: none;
}

.custom-file-input ~ .custom-file-label:lang(de)::after {
    content: "Durchsuchen";
}

.custom-file-input ~ .custom-file-label:lang(en)::after {
    content: "Browse";
}

.custom-select-sm,
.custom-file-label {
    font-size: .875rem;
}

.card-header .fa {
    transition: .3s transform ease-in-out;
}
.card-header .collapsed .fa {
    transform: rotate(180deg);
}

.fa-stack[data-count]:after{
    position:absolute;
    right:0%;
    top:1%;
    content: attr(data-count);
    font-size:30%;
    padding:.6em;
    border-radius:999px;
    line-height:.75em;
    color: white;
    background:rgba(255,0,0,.85);
    text-align:center;
    min-width:2em;
    font-weight:bold;
}

a.custom-card,
a.custom-card:hover {
    color: inherit;
    text-decoration: none;
}

a.custom-card:hover .card-header {
    background-color: rgba(0,0,0,.01);
}

a.building-site-card:hover {
    background-color: #fff;
}

.nav-tabs .nav-link {
    border: 0;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}
.nav-tabs .nav-item {
    margin-bottom: 0;
}
.nav-tabs .nav-item a {
    margin-bottom: 0;
    padding-top: .75rem;
    padding-bottom: .50rem;
}
.nav-tabs .nav-link.active {
    border-bottom: .25rem solid var(--primary-color) !important;
    border-radius: 0 !important;
}
.nav.nav-tabs  {
    padding-left: 1rem;
}

#nav-tab {
    font-size: 14px;
}
.company-index-tabs #nav-tab {
    font-size: 16px;
}
#nav-tab.nav.nav-tabs  {
    padding-left: 0rem;
}
#nav-tab.nav-tabs .nav-item.show .nav-link, #nav-tab.nav-tabs .nav-link.active {
    border-bottom: .1rem solid var(--primary-color);
    border-radius: 0;
}

.dropdown-item.active, .dropdown-item:active {
    background: #f8f9fa;
    color: #000;
}

.spinner-border {
    display: block;
}

.dashboard-success {
    border-bottom: .5rem solid #c3e6cb;
}

.dashboard-danger {
    border-bottom: .5rem solid #f5c6cb;
}

.bs-base-data form {
    column-count: 2;
    column-gap: 30px;
}

.cursor-normal {
    cursor: unset !important;
}

.bs-map {
    min-height: 300px;
}


@media screen and (max-width: 1200px) {
    body {
        font-size: 15px;
    }
    .nav-tabs {
        font-size: 15px;
    }
    .h5 {
        font-size: 20px !important;
    }
}

@media screen and (max-width: 700px) {
    body {
        font-size: 14px;
    }
    .nav-tabs {
        font-size: 14px;
    }
    .nav-tabs .a{
        font-size: 13px;
    }
    .dropdown-menu {
        font-size: 15px;
    }
    .h4 {
        font-size: 17px !important;
    }
    .h5 {
        font-size: 19px !important;
    }
}

@media screen and (max-width: 500px) {
    body {
        font-size: 13px;
    }
    .nav-tabs {
        font-size: 13px;
    }
    .nav-tabs .a{
        font-size: 13px;
    }
    .dropdown-menu {
        font-size: 14px;
    }
    .h5 {
        font-size: 18px !important;
    }
    .h4 {
        font-size: 16px !important;
    }
}

@media screen and (max-width: 400px) {
    body {
        font-size: 12px;
    }

    .nav-tabs {
        font-size: 12px !important;
    }
    .nav-tabs .a{
        font-size: 12px;
    }
    .h5 {
        font-size: 17px !important;
    }
    .h4 {
        font-size: 15px !important;
    }
    .dropdown-menu {
        font-size: 13px;
    }

}

.scanner-card .btn {
    height: 80px;
}

.slim-td {
    padding: 0.3rem !important;
}