/* Custom CSS for the TBLR theme */
:root {
    --tblr-font-sans-serif: 'Kumbh Sans', sans-serif;
    --tblr-font-serif: 'Roboto Slab', serif;
    --tblr-primary: #1E9C86;
    --tblr-primary-rgb: 30, 156, 134;
    --tblr-font-size-h1: 2rem;
    --tblr-font-size-h2: 1.5rem;
    --tblr-font-size-h3: 1.25rem;
    --tblr-font-size-h4: 1rem;
    --tblr-font-size-h5: 0.875rem;
    --tblr-font-size-h6: 0.75rem;
    --tblr-link-color: #1E9C86;
    --tblr-link-color-rgb: 30, 156, 134;
        scroll-behavior: auto !important;

}

tr, .card, li {
    scroll-margin-top: 30vh !important;
}



.navbar-brand-image {
    height: 3rem;
}


/* Use serif font on titles */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--tblr-font-serif);
}

/* change body color */


.logo-lg, .logo-mini {
    color: lightgrey;
}

section.content {
    min-height: 1000px;
}


span.label-tag {
    background-color: #e4e4e4;
    border: 1px solid #aaa;
    margin-right: 5px;
    font-size: 12px;
    font-weight: 400;
    padding: 2px 3px;
    color: black;
}

.logo-lg b, .logo-mini b {
    color: white
}

.text-muted {
    color: lightgray;
}

section.content {
    margin-top: 20px;
}

section.article img {
    max-width: 100%;
}

.content-header > .breadcrumb > li > a.btn {
    color: white;
    text-decoration: none;
    display: inline-block;
}

.content-header > .breadcrumb > li > a.btn.btn-default {
    color: #00a6d9;
}

section.article {
    padding: 20px;
}

pre {
    background-color: #fafafa;
}

.content-header > .breadcrumb > li > a {
    color: #72afd2;
    /* display: inline-block; */
}

.label-default {
    color: white;
}

.info-box-icon {
    font-size: 40px;
}

p.resource-description {
    color: black;
    margin: 0;
    max-height: 40px;
    overflow-y: hidden;
}

.resource-title {
    margin: 2px 0 5px 0;
}

.resource-title img {
    width: 20px;
}

input.form-control.active {
    background-color: white !important;
}

img.img-flag {
    width: 20px;
}


.gitlab::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    border-color: transparent;
    border-style: solid;
    border-width: 1.35em;
    border-bottom-color: #FC6D26;
    border-right-color: #FC6D26;
}

.gitlab::before {
    content: "\f296";
    font-family: 'FontAwesome';
    position: absolute;
    z-index: 1000;
    bottom: 1px;
    right: 3px;
    color: white
}


.info-box {
    position: relative;
}


th.sorting {
    position: relative;
    cursor: pointer;
    color: #3f9ce8;
}

th.sorting:after {
    content: "";
    position: relative;
    left: 3px;

    bottom: -3px;
    font-weight: 900;
    font-size: 12px;
    opacity: .6;
}

th.sorting.descending:after {
    content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' class='icon icon-sm text-dark icon-thick' width='15' height='15' viewBox='0 0 24 24' stroke-width='2' stroke='currentColor' fill='none' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath stroke='none' d='M0 0h24v24H0z' fill='none'%3E%3C/path%3E%3Cpolyline points='6 15 12 9 18 15'%3E%3C/polyline%3E%3C/svg%3E");
}

th.sorting.ascending:after {
    content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' class='icon icon-tabler icon-tabler-chevron-down' width='15' height='15' viewBox='0 0 24 24' stroke-width='2' stroke='currentColor' fill='none' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath stroke='none' d='M0 0h24v24H0z' fill='none'%3E%3C/path%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

.layout-top-nav .wrapper .main-header .brand-image {
    height: 45px;
}

#logo {
    height: 80px;
}

.py-100 {
    padding: 100px 0;
}


.clickable-row {
    cursor: pointer;
}

.clickable-row td a {
    padding: 5px;
}


.badge-used {
    color: #fff;
    background-color: #ffca28;
}

.badge-available {
    color: #fff;
    background-color: #9ccc65;
}


.unitinput {
    max-width: 250px;
}

.unitinput input[type=number]::-webkit-inner-spin-button,
.unitinput input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}


#notifications {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1100;
    min-width: 200px;
    max-width: 600px;
}

span.highlight {
    background-color: #fdeccc;
}

#hijack-notification {
    position: fixed;
    text-align: center;
    bottom: 20px;
    right:20px;
    max-width: 400px;
    z-index: 4000;
    background: #ffe761;
    padding: 20px 30px;
}

.has-error input {
    border: 1px solid #d63939;
}


th.sorting:after {
    content: "";
    display: inline-flex;
    width: 1rem;
    height: 1rem;
    background: url("data:image/svg+xml,<svg xmlns= 'http://www.w3.org/2000/svg' viewBox= '0 0 16 16' width= '16' height= '16' fill= 'none' stroke= 'currentColor' stroke-linecap= 'round' stroke-linejoin= 'round' stroke-width= '1' ><path d= 'M5 7l3 -3l3 3' /><path d= 'M5 10l3 3l3 -3' /></svg>") no-repeat center;
    opacity: .3;
}


th.sorting.sorting_asc:after {
    background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' width='16' height='16'><path fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='1' d='M5 10l3 -3l3 3'/></svg>") no-repeat center;
    opacity: 1;
}


th.sorting.sorting_desc:after {
    background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' width='16' height='16'><path fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='1' d='M5 7l3 3l3 -3'/></svg>") no-repeat center;
    opacity: 1;
}

.dataTables_info {
    padding: 10px;
}

#sidebar-menu .nav-main-heading {
    color: #7186a3;
    padding: 1.375rem 1rem 0.375rem;
    font-size: .75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .0625rem;
}

.input[type=range].form-control {
    width: 100%;
}

.dataTables_filter {
    display: none;
}

.card {
    box-shadow: 0 .125rem .25rem rgba(0, 0, 0, .075) !important
}

.z-100 {
    z-index: 100;
}


.bg-pulsed {
    background: #066559; /* Old browsers */
    background: -moz-linear-gradient(top, #066559 0%, #053832 35%, #053832 65%, #066559 100%); /* FF3.6-15 */
    background: -webkit-linear-gradient(top, #066559 0%, #053832 35%, #053832 65%, #066559 100%); /* Chrome10-25,Safari5.1-6 */
    background: linear-gradient(to bottom, #066559 0%, #053832 35%, #053832 65%, #066559 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */

}




.select2-selection {
    border-color: var(--tblr-border-color) !important;
}

.select2-container--disabled .select2-selection--single, .select2-container--disabled .select2-selection--multiple{
    background-color: var(--tblr-bg-surface-secondary) !important;
    color: var(--tblr-gray-500) !important;
}

.select2-selection--single, .select2-selection--multiple {
    background-color: var(--tblr-bg-forms) !important;
    color: var(--tblr-body-color) !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: var(--tblr-body-color) !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
    background-color: var(--tblr-bg-forms) !important;
    color: var(--tblr-body-color) !important;
}

.select2-container--default .select2-results__option--selected {
    opacity: 0.5;
    background-color: rgb(0, 0, 0, 0.2) !important;
    color: var(--tblr-body-color) !important;
}

.select2-dropdown {
    background-color: var(--tblr-bg-forms) !important;
    color: var(--tblr-body-color) !important;
}

.select2-container--default .select2-selection--single {
    height: auto !important; /* Allow height to adjust */
    min-height: 34px; /* Minimum height */
    box-shadow: var(--tblr-box-shadow-input);
    border-radius: var(--tblr-border-radius);
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 34px !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 34px !important;
}

.select2-container--default .select2-selection--single .select2-selection__clear {
    height: 34px !important;
}

/* The container */
.select2-container--default .select2-selection--multiple {
    height: auto !important; /* Allow dynamic height */
    min-height: 34px; /* Minimum height */
    padding-top: 0px;
}

/* The selected items */
.select2-container--default .select2-selection--multiple .select2-selection__choice {
    height: 24px !important; /* 2px less to account for borders */
    line-height: 24px !important;
    margin-bottom: 5px !important; /* Center vertically */
    background-color: #eef3f6;
    border: 1px solid #dce1e7;
}

.select2-container--default .select2-selection--multiple {
    padding-bottom: 0px !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    border-right: 1px solid #dce1e7;
}

/* The search field */
.select2-container--default .select2-selection--multiple .select2-search--inline .select2-search__field {
    height: 30px !important;
    line-height: 30px !important;
}


.select2-container--default.select2-container--disabled .select2-selection--single {
    background-color: var(--tblr-bg-surface-secondary) !important;
    cursor: not-allowed !important;
}
.select2-container--default.select2-container--disabled .select2-selection--single .select2-selection__rendered {
    color: var(--tblr-secondary) !important;
}

.select2-container--default.select2-container--disabled .select2-selection--multiple {
    background-color: var(--tblr-bg-surface-secondary) !important;
    cursor: not-allowed !important;
}
.select2-container--default.select2-container--disabled .select2-selection--multiple .select2-selection__choice {
    color: var(--tblr-secondary) !important;
    border-color: var(--tblr-border-color) !important;
}



.alert-danger {
    background: #FAEDED !important;
    color: #d63939 !important;
}

.alert-info {
    background: #F6FAFE !important;
    color: #4299E1 !important;
}

.alert-success {
    background: #F5FCF6 !important;
    color: #5CC577 !important;
}

.alert-warning {
    background: #FEFBF2 !important;
    color: #F59F00 !important;
}

body.dark .alert-danger {
    background: #632E2E !important;
    color: #F08080 !important;
}

body.dark .alert-info {
    background: #2A4365 !important;
    color: #63B3ED !important;
}

body.dark .alert-success {
    background: #26432C !important;
    color: #9AE6B4 !important;
}

body.dark .alert-warning {
    background: #665C2B !important;
    color: #D69E2E !important;
}


#searchfields .mb-3 {
    margin-bottom: 0.2rem !important;
}

#searchfields div {
    min-width: 250px;
}

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

.z-2000 {
    z-index: 2000;
}

/** flash background color for 1 second then fade it back to white **/
.flash {
    animation: flash 1.5s;
}

@keyframes flash {
    from {
        background-color: #fdeccc;
    }
    to {
        background-color: white;
    }
}