html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

body {
    margin-bottom: 60px;
    font-family: "open sans", Helvetica, Arial, sans-serif;
    font-size: 1.5em;
}

input, textarea, .form-line select {
    border: solid #ABADB3 1px;
    border-radius: 10px;
    padding: 5px;
}

.navbar-brand {
    background: url(../images/logo.png) no-repeat;
    background-size: contain;
    padding-left: 2.5em;
    margin-left: 0.5em;
    cursor: pointer;
}

.navbar-after {
    float: right;
    margin-right: 0.5em;
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    width: 1.5em;
    text-decoration: none;
    cursor: pointer;
}

.nav-container {
    width: 100%;
}

.navbar-signout {
    background-image: url('../images/signout.png');
}

.navbar-project {
    background-image: url('../images/switch.png');
}

.home-btn-container .btn.btn--action {
    width: 100%;
    padding: 0.5em;
    font-size: 2em;
    margin-top: 0.2em;
    margin-left: 0;
}

.page-footer{
    margin-top: 2em;
    text-align: center;
}

.page-footer a {
    text-transform: lowercase;
}

.template-root {
    max-width: 600px;
    margin: 0 auto;
}

.form {
    max-width: 600px;
    margin: 0 auto;
    background-color: #F5F5DC; /*rgba(232,246,255,0.40);*/
    padding: 20px;
    border-radius: 20px;
}

.form__info-line {
    color: gray;
    min-height: 2em;
    margin: 0;
}

.form__info-line-btn {
    width: 1.8em;
    height: 1.8em;
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    background-color: white;
    border: solid 1px #ABADB3;
    border-radius: 8px;
    margin-left: 8px;
    float: right;
}

.form__info-line-btn.form__info-line-btn--open {
    background-image: url('../images/search.png');
}

.form__info-line-btn.form__info-line-btn--unlock {
    background-image: url('../images/unlock.png');
}

.form__info-line-btn.form__info-line-btn--open-sub-obj {
    background-image: url('../images/search-subobj.png');
}

.form__info-line-btn.form__info-line-btn--parent-obj {
    background-image: url('../images/parentobjarrow.png');
}

.form__info-line-btn.form__info-line-btn--fillform {
    background-image: url('../images/fillform.png');
}

.form__info-line-btn.form__info-line-btn--addphoto {
    background-image: url('../images/addphoto.png');
}

.form__info-line-btn.form__info-line-btn--photos {
    background-image: url('../images/viewphotos.png');
}

.form__info-line-btn.form__info-line-btn--delete {
    background-image: url('../images/delete.png');
}

.form-line {
    margin-bottom: 0.4em;
    min-height: 2em;
    clear: both;
}

.form-input, .form-textbox, .form-select {
    max-width: 50%;
    float: right;
}

.form-select {
    line-height: 36px;
    font-size: 1em;
}

.form-input.form-input--file {
    background-color: rgba(232,246,255,0.40);
    cursor: pointer;
    text-align: center;
}

.form-line.form-line--checkbox .form-input {
    height: 1em;
    width: 50%;
    margin-top: 0.25em;
}

.form-line.form-line--textbox {
    display: flex;
    justify-content: space-between;
}

.form-line--invalid input, .form-line--invalid:active input {
    border-color: red !important;
}

.form-line.form-line--photo img {
    width: 100%;
}

.form-line.form-line--photo button {
    display: inline-block;
    float: right;
    margin-top: 8px;
}

.form-line__errormessage {
    color: red;
    font-size: 0.7em;
    clear: both;
}

.form-label {
    vertical-align: top;
    width: 40%;
    margin-bottom: 0;
    margin-top: 0.25em;
}

.form-input-autocomplete-list-container {
    position: relative;
    z-index: 200;
}

.form-input-autocomplete-list {
    padding: 0;
    margin: 0;
    border: 1px solid #ABADB3;
    height: auto;
    min-height: 1em;
    max-height: 6em;
    min-width: 50%;
    overflow: auto;
    border-radius: 12px;
    position: absolute;
    left: 50%;
}

.form-input-autocomplete-list li {
    list-style: none;
    background-color: white;
    padding: 4px 8px;
    cursor: pointer;
}

.form-input-autocomplete-list li:hover {
    background-color: #ABADB3;
    color: white;
}

.form-line-value-image-container {
    clear: both;
    text-align: center;
    padding-top: 0.25em;
}

.form-fieldset {
    background-color: #E0E0D8;
    border: 1px solid #ABADB3; /*#559fd1*/
    border-radius: 10px;
    padding: 0.4em;
    margin: 0.2em 0;
}

.form-fieldset__label {
    color: gray;
}

.form.form--login {
    max-width: 600px;
    margin: 0 auto;
}

.form.form--login table {
    margin: 0 auto;
}

.form.form--login table h1 {
    margin: 0.5em 0;
    text-align: center;
}

.form.form--login table td {
    padding: 4px 16px 4px 0;
}

.form.form--login table tr {
    padding-top: 0.2em;
}

.form-lookup-btn {
    background-image: url('../images/pulldownarrow.png');
    width: 1.5em;
    height: 1.5em;
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    cursor: pointer;
    margin-top: 0.25em;
    margin-left: -1.8em;
    margin-right: 0.1em;
    z-index: 1;
    float: right;
    position: relative;
}

.form-helptext-btn {
    background-image: url('../images/info.png');
    display: inline-block;
    width: 1.5em;
    height: 1.5em;
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    cursor: pointer;
    margin-top: 0.25em;
}

.form-helptext{
    color: gray;
    clear: both;
}

.form-saving-message {
    text-align: right;
    font-weight: bold;
    color: gray;
    padding: 0.4em;
    margin: 0.2em 0;
}

.form__btn-container {
    padding-top: 0.5em;
    text-align: right;
    clear: both;
}

.btn {
    margin-left: 8px;
    padding: 8px 8px;
}

.btn.btn--action {
    background-color: #ABADB3;
    color: white;
    border-radius: 8px;
    font-weight: bold;
}

.childobj-selector {
    margin-top: 1em;
    padding: 20px;
}

.childobj-selector__controls {
    display: flex;
}

.childobj-selector__label {
    color: gray;
}

.childobj-selector__select {
    align-self: stretch;
    flex-grow: 1;
    border: solid #ABADB3 1px;
    border-radius: 10px;
    padding: 5px;
}

.childobj-selector__btn {
    background-image: url('../images/open.png');
    width: 1.8em;
    height: 1.8em;
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    background-color: white;
    border: solid 1px #ABADB3;
    border-radius: 8px;
    margin-left: 8px;
    float: right;
}


.query-result {
    width: 100%;
    background-color: white;
    border: solid 1px #ABADB3;
    padding: 4px;
    border-radius: 8px;
    overflow-x: auto;
}

.query-result table {
    width: 100%;
}

.query-result table thead tr {
    position: sticky;
    top: 0;
    font-weight: bold;
    background-color: white;
}

.query-result table thead th {
    border-bottom: solid 1px #ABADB3;
}

.query-result table tr td {
    padding: 0 4px;
    vertical-align: top;
}

.query-result table tbody tr:nth-child(even) {
    background-color: rgba(232,246,255,0.40);
}

@media only screen and (max-width: 600px) {
    .form-label {
        width: auto;
        max-width: 100%;
        display: block;
    }

    .form-input, .form-textbox, .form-select {
        width: 100%;
        max-width: 100%;
        float: none;
    }

    .form-input-autocomplete-list {
        width: 100%;
        left: 0;
    }

    .form-helptext-btn {
        float: right;
        margin-top: -1.5em;
    }

    .form-line.form-line--textbox {
        display: block;
        margin-bottom: 0;
    }
}
