﻿:root {
    --select-arrow: url("data:image/svg+xml,<svg height='10px' width='10px' viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'><path d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/></svg>") no-repeat;
}
body {
    padding-top: 0px;
    padding-bottom: 0px;
}

/* Set padding to keep content from hitting the edges */
.body-content {
    padding-left: 15px;
    padding-right: 15px;
}

/* Override the default bootstrap behavior where horizontal description lists 
   will truncate terms that are too long to fit in the left column 
*/
.dl-horizontal dt {
    white-space: normal;
}

/* Set width on the form input elements since they're 100% wide by default */
input,
select,
textarea {
    max-width: 280px;
}

.table-gray {
    color: #212529;
    background-color: rgba(0,0,0,.033);
}

.table td.no-border-right {
    border-right-color: transparent;
}

.table td.no-border-bottom {
    border-bottom-color: transparent;
}

.table th.vertical {
    height: 220px;
    white-space: nowrap;
}

    .table th.vertical > div {
        transform: rotate(-90deg);
        width: 25px;
    }

.table-vertical-center tr th, .table-vertical-center tr td {
    vertical-align: middle;
}

.formatted-text {
    white-space: pre-wrap;
}

.table td.truncate {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* TYPEAHEAD */

.typeahead__container {
    display: block;
    max-width: 280px;
    min-height: calc(.5rem* 2 + 1.25rem + 2px);
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 2px 0 0 2px;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}
.typeahead__container.container_type__container {
    max-width: 300px;
}
.typeahead__container.site__container {
    max-width: 240px;
}

:is(.container_type__container, .site__container) .typeahead__query {
    display: flex;
    flex-direction: column;
}

:is(.container_type__container, .site__container) .typeahead__label-container {
    position: relative;
    order: 2;
    max-height: 32px;
    max-width: 100%;
    padding: 0 .375rem !important;
    overflow-y: scroll;
    overflow-x: hidden;
    transition: max-height 400ms ease;
}

:is(.container_type__container, .site__container) .typeahead__label-container:hover {
    max-height: 68px;
}

:is(.container_type__container, .site__container) .js-typeahead-input {
    padding: .375rem .75rem !important;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    height: calc(1.5em + .75rem + 2px);
    overflow-y: auto;
    resize: none;
    border: none;
    background-color: transparent;
}

.container_type__container .typeahead__filter-button {
    border-width: 0 1px;
    height: 100%;
}

:is(.container_type__container, .site__container) .typeahead__list {
    max-height: 500px;
    overflow-y: auto;
}

.typeahead__list>.typeahead__group:first-child {
    border-top: solid 1px #bfdef6;
    border-bottom: solid 1px #bfdef6;
}

.typeahead__list>li {
    position: relative;
    border-top: none;
}

/* /TYPEAHEAD */

.btn-sm.form-control {
    height: fit-content;
}
.btn, .btn-small, .btn-md, .btn-lg {
    white-space: nowrap;
}

select.form-control {
    background: var(--select-arrow), #fff;
    background-position: calc(100% - 0.8rem) center;
    -moz-appearance:none;
    -webkit-appearance: none;
    appearance: none;
    padding-right: 2rem;
}
.field-required {
    display: inline-block;
    position: relative;
    padding: 0 0.125rem;
    margin-left: 0.2rem;
    color: transparent;
}
.field-required::after {
    display: block;
    position: absolute;
    top: -0.1em;
    left: 0.065em;
    color: var(--red);
    content:"*";
    font-size: 1.25em;
}

@media screen and (width >= 600px) {
    .auto-fit-grid-2 {
        display: grid;
        gap: 0 1rem;
        grid-template-columns: repeat(2, minmax(calc(50% - 1rem), 1fr));
    }
}

.no-right-border-right-on-last-element:last-child {
    border-right: 0 !important;
}