/*Tool Styles (forms, buttons, etc)     */

body {
    position: relative;
    min-height: 100vh;
    height: fit-content;
    overflow-x: hidden;
}

.global-content {
    animation: fadeinbody 1s;
}

@keyframes fadeinbody {
    0% {
        opacity: 0;
    }

    50% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

.pull-right {
    float: right;
}

.full-width {
    width: 100%;
}

.alert-comp{
  z-index: 3000;
}

.tooltip{
  z-index: 4000;
}

.alert-comp.alert-success {
    background-color: darkgreen;
    color: #ffffff;
}

.alert-comp.alert-error {
    background-color: #a72525;
    color: #ffffff;
}

.full-form {
    box-sizing: border-box;
    width: 100%;
    min-height: 100vh;
    padding: 10px;
    background-color: #ffffff;
}

.form-label {
    display: block;
}

*+.form-label {
    margin-top: 0.5em;
}

.form-group {
    margin-top: 15px;
}

.form-group-reverse {
    margin-bottom: 15px;
}

.form-group.vcentered-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.form-group-inline {
  display: flex;
  justify-content: stretch;
  margin-top: 15px;
  align-items: center;
}

.form-group-inline>label{
  display: flex;
  justify-content: stretch;
  flex-grow: 1;
  flex-shrink: 1;
  align-items: center;
}

.form-group-inline>label>*+*{
  margin-left: 0.25em;
}

.form-group-inline input {
  flex-basis: 200px;
  flex-grow: 1;
  flex-shrink: 1;
}

.flex-group {
    display: flex;
}

.form-control {
    box-sizing: border-box;
    width: 100%;
    border-radius: 3px;
    background-color: #ffffff;
    border: 1px solid #e9e9e9;
    margin: 5px 0px;
}

input.form-control,
.form-control>input {
    padding: 5px;
    box-shadow: 0px 0px 2px 0px #d1d1d1 inset;
}

.form-control>span {
    padding: 5px;
}

.form-control:disabled,
.form-control[disabled] {
    background-color: #e9e9e9;
    border-color: #b1b1b1;
    border-style: none;
    box-shadow: 0px 0px 2px 0.5px #919191 inset;
}

.form-control:disabled:hover,
.form-control[disabled]:hover {
    cursor: not-allowed;
}

.btn {
    box-sizing: border-box;
    position: relative;
    display: block;
    padding: 5px 7px;
    border-radius: 4px;
    background-color: #ffffff;
    color: #222222;
    /* border: 0px; */
    border: 1px solid #c1c1c1;
    /* border-radius: 10px; */
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
    /* box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24), 0px 0px 0px 1px rgba(0,0,0,0.25) inset; */
    transition: all 0.3s cubic-bezier(.25, .8, .25, 1);
}

/* .btn::after{
    position: absolute;
    content: "";
    top: 0px;
    left: 0px;
    right: 0px;
    bottom: 0px;
    border-radius: 2px;
    border: 1px dashed #000000;
} */

a.btn {
    text-decoration: none;
    color: #222222;
}

.btn {
    border-radius: 5px;
    border: 0px;
    background-color: #e7e7e7;
    padding: 5px;
    /* font-family: 'Courier New', Courier, monospace; */
    font-weight: bold;
}

.btn:hover {
    background-color: #8ea1aa;
}

.btn:hover {
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
    /* box-shadow: 0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23), 0px 0px 1px 2px rgba(0,0,0,0.75) inset; */
}

.btn.btn-ghost {
    background-color: transparent;
    box-shadow: 0px 0px 0px rgba(0, 0, 0, 0);
}

.btn.btn-ghost:hover {
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16) inset, 0 -3px 6px rgba(0, 0, 0, 0.23) inset;
    background-color: transparent;
}

.btn.btn-primary {
    border-color: #e9e9e9;
}

.btn.btn-add {
    background-color: #25a75f;
    border-color: #25a75f;
    color: #f1f1f1;
}

.btn.btn-delete {
    background-color: #a72525;
    border-color: #a72525;
    color: #f1f1f1;
}

.btn.btn-confirm {
    background-color: #2528a7;
    border-color: #2528a7;
    color: #f1f1f1;
}

.btn.btn-edit {
    background-color: #424656;
    border-color: #373b4a;
    color: #f1f1f1;
}

.btn.btn-edit-pop {
    background-color: #FC6600;
    border-color: #FC6600;
    color: #ffffff;
}

/* .btn.btn-edit:hover{
    box-shadow: 0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23), 0px 0px 1px 2px rgba(255,255,255,0.75) inset;
} */

.btn-inline {
    display: inline-block;
}

.backend-card_constrained-content{
  max-height: 500px;
  overflow:auto;
}

.error {
    border-color: #ff0000;
}

.success {
    border-color: #00ff00;
}

.error-popup {
    border-color: #ff0000;
    background-color: #ff0000;
    color: #ffffff;
}

.center-text {
    text-align: center;
}

.loader {
    border: 16px solid #f3f3f3;
    /* Light grey */
    border-top: 16px solid #3498db;
    /* Blue */
    border-radius: 50%;
    width: 120px;
    height: 120px;
    animation: loader-spin 2s linear infinite;
}

@keyframes loader-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.alternate-row:nth-child(even) {
    background-color: #e2e2e2;
    border-radius: 0em 0.25em 0.25em 0em;
}

.modal {
    display: none;
    position: absolute;
    top: 0px;
    left: 0px;
    right: 0px;
    bottom: 0px;
    opacity: 0.0;
    z-index: 5;
    background-color: #000000;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
    transition: all .2s ease-in-out;
    -moz-transition: all .2s ease-in-out;
    -webkit-transition: all .2s ease-in-out;
}

.modal.open {
    opacity: 1.0;
    transform: translateZ(0);
    -moz-transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.modal-content {
    width: 100%;
    max-width: 800px;
    max-height: 95%;
    max-height: calc(100% - 50px);
    padding: 16px;
    border-radius: 5px;
    background-color: #ffffff;
    overflow-x: hidden;
    overflow-y: auto;
}

.modal-title {
    text-align: center;
    padding: 5px;
}

/*Application base styles for all pages     */

html {
    font-size: 16px;
}

h1 {
    font-size: 30px;
}

h2 {
    font-size: 23px;
}

h3 {
    font-size: 19px;
}

h1,
h2,
h3 {
    text-align: center;
}

@media screen and (min-width: 320px) {
    html {
        font-size: calc(16px + 6 * ((100vw - 320px) / 680));
    }

    h1 {
        font-size: calc(30px + 18 * ((100vw - 320px) / 680));
    }

    h2 {
        font-size: calc(23px + 9 * ((100vw - 320px) / 680));
    }

    h3 {
        font-size: calc(19px + 7 * ((100vw - 320px) / 680));
    }
}

@media screen and (min-width: 1000px) {
    html {
        font-size: 22px;
    }

    h1 {
        font-size: 48px;
    }

    h2 {
        font-size: 32;
    }

    h3 {
        font-size: 26;
    }
}

body {
    position: relative;
    min-height: 100vh;
    margin: 0px;
    padding: 0px;
    display: flex;
    flex-direction: column;
    background-color: #f1f1f1;
    font-family: 'Roboto', 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
}

header {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 52px;
    width: 100%;
    background-color: #ffffff;
    flex-grow: 0;
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
    z-index: 1;
}

header .btn-ghost {
    padding-left: 0.75em;
    padding-right: 0.75em;
}

.brand-name {
    width: fit-content;
    height: 100%;
    padding: 0px 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #a72525;
    /* font-size: 36px; */
    font-size: 1.5em;
    font-family: 'Roboto', 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    text-decoration: none;
    font-weight: bolder;
}

header .nav-bar {
    display: flex;
    height: 100%;
}

header .nav-bar>.btn-ghost {
    display: flex;
    align-items: center;
    height: 100%;
    border-radius: 0px;
}

footer {
    position: relative;
    height: 52px;
    width: 100%;
    background-color: #ffffff;
    flex-grow: 0;
    flex-shrink: 0;
    box-shadow: 0 -1px 3px rgba(0, 0, 0, 0.12), 0 -1px 2px rgba(0, 0, 0, 0.24);
    z-index: 1;
}

.global-content {
    width: 100%;
    flex-grow: 1;
}

.inset-holder {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
}

.inset-holder>* {
    flex-basis: 400px;
    flex-grow: 1;
    flex-shrink: 0;
}

.helper-menu {
  position: fixed;
  bottom: 1em;
  right: 1em;
  z-index: 500;
}

.help-menu-open {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #0032B2;
  color: #ffffff;
  border: 5px solid #ffffff;
  box-shadow: 0px 1px 9px rgba(0, 0, 0, 0.25), 0px 0px 6px rgba(0, 0, 0, 0.5);
  width: 80px;
  height: 80px;
  border-radius: 100px;
}

.help-menu-open>img {
  max-width: 65px;
  max-height: 65px;
}

.helper-menu.open .help-menu-open {
  display: none;
}

.helper-menu-panel {
  display: none;
  flex-direction: column;
  background-color: #0032B2;
  color: #ffffff;
  border: 5px solid #ffffff;
  box-shadow: 0px 1px 9px rgba(0, 0, 0, 0.25), 0px 0px 6px rgba(0, 0, 0, 0.5);
  border-radius: 15px;
  padding: 0.5em;
}

.helper-menu-panel>* {
  margin: 0.5em 0px;
  color: #ffffff;
}

.help-menu-close {
  background-color: transparent;
  border: 0px;
}

.helper-menu.open .helper-menu-panel {
  display: flex;
}