:root {
    --white: white;
    --gray: gray;
    --level-1-color: white;
    --brand-color-second: #42485b;
    --brand-color: #F58D1D;
    --active-color: rgb(255, 128, 0);
    --active-background: rgb(243, 146, 0, 0.7);
    --background: #F6FAFA;
    --border: 1px solid lightgray;

    --warning: hsl(60, 64%, 95%);
    --warning-color: hsl(from var(--warning) calc(h - 40) calc(s + 4) calc(l - 50));
    --warning-border-color: hsl(from var(--warning) h s calc(l - 20));

    --gap-m: 5px;
    --gap-l: 10px;
    --gap-xl: 15px;

    --color-green-100: hsl(120, 36%, 72%);
    --color-blue-100: hsl(202deg 54.56% 91.8%);
    --color-blue-500: hsl(202, 60%, 72%);
    --color-blue-900: hsl(202, 75%, 34%);
}

body {
    font-size: .875rem;
    line-height: 1.2;
}

html {
    height: 100%;
}

hr {
    height: 1px;
    margin-top: unset;
    margin-bottom: unset;
    border-top: 1px solid var(--active-background);
    width: 100%;
    opacity: 0.5;
}


/* Set shorter line heights on headings and interactive elements */
h1,
h2,
h3,
h4,
button,
input,
label {
    line-height: 1.1;
}

/* Balance text wrapping on headings */
h1,
h2,
h3,
h4 {
    text-wrap: balance;
}

h1 {
    font-size: 1.5rem !important;
}

h2 {
    font-size: 1.3rem !important;
}

h3 {
    font-size: 1.25rem !important;
}

h4 {
    font-size: 1.1rem !important;
}

.option.active {
    color: var(--active-background);
    text-decoration: underline;
    background-color: white;
}

.btn.active {
    background-color: var(--active-background);
}

.ol-zoom .map {
    top: 0.5em;
    left: auto;
    right: .5em;
}

.navbar {
    padding: 0.5rem;
}

.navbar .title {
    font-size: 1.5rem;
}

.navbar a:hover {
    text-decoration: underline;
    color: var(--active-color);
}


.navbar #logo {
    height: 50px;
}

.table td {
    vertical-align: middle;
}

/* @media screen and (max-width: 1200px) {
    .main-content {
        padding-top: 75px;
    }
} */

.main-content {
    overflow-y: hidden;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.main-content>nav {
    padding: 0.5rem;
}

.page-content {
    display: flex;
    padding: 0.4em;
    gap: 0.2rem;
    overflow: auto;
}

.sub-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}


body {
    height: 100%;
    margin: 0;
    font-family: 'Lato', sans-serif;
    -webkit-font-smoothing: antialiased;
    background: var(--background);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.btn {
    /* color: oldlace; */
}

.header {
    color: oldlace;
    background: #42485b;
}

.header.system-admin {
    background-color: #4b2500;
}

.header .btn {
    color: oldlace;
    padding-top: 0px;
    padding-bottom: 0px;
}

.header.side {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    font-size: 1.2rem;
}

.center-card {
    margin: 0px auto;
    max-width: 400px;
}

.stage-selection-item.breadcrumb-item+.breadcrumb-item::before {
    display: inline-block;
    padding-right: .5rem;
    color: #6c757d;
    content: ">";
}

#template-preview-area {
    border-width: 0px;
}

.report-preview {
    border-width: 1px;
    border-color: lightgray;
    max-width: 100ch;
    flex-grow: 1;
    border: none;
    overflow: scroll;
}

.report-preview-frame {
    display: flex;
    flex-direction: row;
    flex-grow: 1;
    justify-content: center;
}


.section {
    background-color: var(--brand-color-second);
    padding-left: 10px;
    padding-bottom: 10px;
    padding-left: 8px;
    padding-right: 8px;
    padding-top: 8px;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    margin-top: 10px;
}

.section[data-subsection="True"] {
    margin-top: unset;
    border-top-left-radius: unset;
    border-top-right-radius: unset;
}

.section:last-child {
    padding-bottom: 10px;
}

.section-header {
    color: white;
    padding-left: 5px;
    padding-bottom: 5px;
    font-size: 1.1rem;
    font-weight: 800;
}

.section-header.section-sub-header > div:first-of-type {
    font-size: 1rem;
    font-weight: 600;
}

.section-header > .subtitle {
    font-size: 0.9rem;
    font-weight: unset;
    color: white;
}

.subtitle {
    font-size: 0.9rem;
}

.section-header.section-sub-header > div:first-of-type::before {
    /* content: "↳";
    color: white; */
}

.progress-marker {
    background-color: transparent;
    padding: 0px;
    margin-bottom: unset;
}

.breadcrumb-item.active {
    font-weight: bold;
    color: rgb(255, 128, 0);
}

#project-details-form {
    display: flex;
    flex-direction: column;
    /* height: 100%; */
    overflow-y: auto;
    padding: .2rem;
    flex: 1;
}

.question-number {
    font-weight: bold;
    margin-right: 5px;
}

.question-block {
    margin-top: 5px;
}

.card.question-blockp{
    padding: 20px;
}


.answer-freetext {
    margin-top: 5px;
}

.lookup-value {
    font-weight: bold;
}

.lookup-value-level1,
.lookup-value-yes {
    color: black !important;
}

.lookup-value-level2 {
    color: black !important;
}

.lookup-value-level3,
.lookup-value-no {
    color: black !important;
}

.lookup-value.selected {
    font-weight: bold;
}

.btn-group {
    display: flex;
    flex-direction: row;
    gap: 5px;
}

.question-btn {
    border: var(--border);
    background-color: var(--white);
}

.question-btn.active {
    color: white;
    background-color: var(--brand-color-second);
}

/* .question-btn[data-value='level1'].active {
    border-color: green !important;
}

.question-btn[data-value='level2'].active {
    border-color: orange !important;
}

.question-btn[data-value='level3'].active {
    border-color: red !important;
}

.question-btn[data-value='yes'].active {
    border-color: green !important;
}

.question-btn[data-value='no'].active {
    border-color: red !important;
} */

.main-question-btn {
    display: flex;
    flex-direction: column;
    padding: 8px;
    gap: var(--gap-m);
}

.main-question-btn > details {
    margin-left: 8px;
}

#notify-alert.alert {
    position: absolute;
    width: 25%;
    top: 10px;
    right: 10px;
    z-index: 6000;
}

.button-row {
    padding-top: 0.4em;
    padding-bottom: 0.4em;
    display: flex;
    gap: 0.3em;
    align-items: center;
}

.button-row>.actions {
    gap: 0.4em;
    display: flex;
    flex-direction: row;
}

.button-row.next-stage-buttons {
    justify-content: space-between;
}

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

.report.complete {
    font-weight: bold;
    color: green;
}

.report.error {
    font-weight: bold;
    color: red;
}

.report.draft {
    font-weight: bold;
    color: blue;
}

.report.running {
    font-weight: bold;
    color: purple;
}

.report-questions-container {
    gap: var(--gap-l);
}

.report-questions {
    width: 100%;
    display: flex;
    flex-direction: column;
    overflow: auto;
    margin-top: var(--gap-l);
}

.report-column {
    display: flex;
    flex-direction: column;
    /* flex-basis: 50%;
    flex-grow: 1; */
    overflow: hidden;

}

.left-report-column {}

.right-report-column {
    border: solid 1px var(--brand-color-second);
}

.alert.beta-header {
    padding: 1px;
}

#chartis-logo {
    width: 100px;
}

#chartis-logo-large {
    width: 300px;
}

.question-options {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.spatial-rule-link {
    margin-top: .5rem;
    text-align: left;
}

.icon-lock::before {
    content: "🔒";
    color: red;
}

nav {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    padding: 0.4em;
}

nav.round {
    border-radius: 5px;
}

.header>a {
    color: white;
}

.flex-row {
    display: flex;
    flex-direction: row;
}

.card {
    gap: 0.4em;
    padding: 0.2em;
    border-radius: 0.3em;
    padding-left: 0.5em;
    padding-right: 0.5em;
    box-shadow: rgba(50, 50, 93, 0.25) 0px 2px 5px -1px, rgba(0, 0, 0, 0.3) 0px 1px 3px -1px;
    /* box-shadow: rgba(0, 0, 0, 0.15) 1.95px 1.95px 2.6px; */
}

.card .card-title {
    font-size: 1.3rem !important;
    border-bottom: 1px solid var(--active-background);
    padding-bottom: 0.2rem;
    padding-top: 0.2rem;
}

.card-title.small {
    font-size: 1rem !important;
}


[data-enabled="False"] {
    color: red;
    text-decoration: line-through;
}

.field {
    display: flex;
    flex-direction: column;
}

.field>label {
    font-weight: bold;
    line-height: 1;
}

.field-help {
    font-size: 0.8em;
    color: var(--gray)
}


.field div:first-child {
    / / width: 30 %
}

.pending-rules {
    display: flex;
    flex-direction: column;
}

.nav-link.active {
    text-decoration: underline;
    color: var(--active-color);
    font-weight: bold;
}

#reports-view {
    flex: 1;
    display: grid;
    grid-template-columns: minmax(15%, auto) 1fr;
    overflow: hidden;
}

#system-admin-page {
    display: grid;
    grid-template-columns: 15% 1fr;
    flex: 1;
    overflow: hidden;
}

.page-header {
    display: flex;
    flex-direction: column;
    margin-bottom: 0.5em;
    border-bottom: 1px solid var(--active-background);
}

.dash {
    display: flex;
    flex-direction: row;
    gap: 10px;
}

.dash>div {
    display: flex;
    flex-direction: column;
    gap: 5px;
    border-radius: 10px;
    background-color: var(--level-1-color);
    border: var(--border);
    padding: 10px;
}

.hidden {
    display: none;
}

#imgLogo {
    width: 100%;
}

nav>a {
    padding: 0.2em;
}

a[data-active="true"] {
    border-left: solid 2px var(--active-color);
    #border-radius: 0.4em;
    #background: var(--active-background);
}

nav.top a[data-active="true"] {
    border-left: unset;
    border-bottom: solid 2px var(--active-color);
}


.page-content.sub {
    padding-left: 2%;
    padding-right: 2%;
    padding-top: 1%;
}

input {
    padding: 0.3em;
    border: solid;
    border: solid 2px rgb(66 72 91);
    border-radius: 0.3em;
}

.table td,
.table th {
    padding: 0.2em;
}

.tag {
    border: 1px var(--brand-color) solid;
    background: var(--active-background);
    font-weight: bold;
    border-radius: 1em;
    padding: 0.2em;
    padding-left: 0.4em;
    padding-right: 0.4em;
}

.error {
    color: red;
}

form .card {
    margin-top: 0.5em;
}

.field-row {
    display: flex;
    flex-direction: row;
    gap: 0.5em;
    align-items: flex-end;
}

.field-row.checkbox {
    align-items: center;
}

.report-page-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 5px;
}

#report-title {
    font-weight: 600;
    font-size: 1.2rem;
}

.badge-row {
    display: flex;
    flex-direction: row;
    gap: 3px;
    align-items: center;
}

.badge {
    /* font-weight: unset; */
    line-height: unset;
}

.badge-info {
    background-color: var(--color-blue-100);
    color: var(--color-blue-900);
}

.badge-warning {
    color: #8e4c03;
    background-color: #ffe595;
}

.scroll {
    overflow: auto;
}

li+li {
    margin-top: 0.5em;
}

.outcome-group label {
    line-height: unset;
}

label {
    display: inline !important;
    margin-bottom: .5rem;
}

.sign-off-selection:hover {
    color: var(--brand-color-second);
    font-weight: bold;
    cursor: pointer;
}

.sign-off-selection>*:hover {
    color: var(--brand-color-second);
    font-weight: bold;
    cursor: pointer;
}

.list {
    display: flex;
    flex-direction: column;
    gap: 0.2em;
}

.sig_image {
    width: 200px;
    height: 100px;
    object-fit: contain;
}

.page-title {
    color: var(--brand-color-second);
}

.side-panel {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background-color: rgba(27, 26, 26, 0.219);
}

.side-panel .side-container {
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
    width: 50%;
    height: 100%;
    background-color: var(--background);
}

.question-block .comment-section {
    /* margin-left: 1em; */
    margin-top: 3px;
    margin-bottom: 3px;
}

.question-container {
    padding: 10px;
}

.question-section {
    display: flex;
    flex-direction: column;
    gap: var(--gap-m);
}

.question-block .question-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.comment-section {
    display: flex;
    flex-direction: column;
    /* gap: var(--gap-l); */
    background-color: var(--warning);
    border-color: var(--warning-border-color);
    border-width: 1px;
    border-style: solid;
    padding: var(--gap-l);
    border-radius: 12px;
}


.comments {
    display: flex;
    flex-direction: column;
    gap: 0.2em;
}

.comment-list {
    display: flex;
    flex-direction: column;
    gap: var(--gap-l);
}

.comment {
    display: flex;
    background-color: var(--warning);
    flex-direction: column;
    border-bottom: 1px solid var(--warning-border-color);
    color: var(--warning-color)
}

.comment .details {
    flex-direction: row;
    display: flex;
    justify-content: flex-end;
    gap: 0.6em;
    font-size: 0.9em;
    align-items: center;
}

.comment-box {}

.comment-box textarea {
    /* background: none; */
    border: none;
}

.action {
    cursor: pointer;
}

.action:hover {
    cursor: pointer;
    font-weight: bold;
}


.basemaps {
    display: flex;
    flex-direction: row;
    gap: 0.5em;
}

.base-image {
    border: solid 2px var(--gray);
    width: 35%;
    border-radius: 5px;
}

.base-image.active {
    border: solid 2px var(--active-color);
    /*filter: brightness(1);*/
}

.base-image:not(.active) {
    /*filter: brightness(0.9);*/
    filter: saturate(0.6);
}

.base-image:hover {
    border: solid 2px var(--active-color);
    filter: saturate(0.9);
}


#search div:first-child {
    display: flex;
    flex-direction: row;
    gap: 0.5em;
}


#search-input, .search-input {
    background: unset;
    color: white;
    flex: 1;
}

#search input::placeholder {
    color: white;
    opacity: 0.6;
}

#search > input:hover {
    border: 1px var(--active-color) solid;
    background: unset;
    color: white;
}

.report-view {
    display: grid;
    grid-template-columns: 1fr 0.8fr;
    overflow: hidden;
    column-gap: 1em;
    flex: 1;
}

summary:hover {
    color: var(--brand-color);
    border-radius: 2px;
}

[data-status="RUNNING"] {
    color: blue;
}

[data-status="DRAFT"] {
    color: gray;
}

[data-status="PENDING"] {
    color: blue;
}

[data-status="COMPLETE"] {
    color: green;
}

[data-status="ERROR"] {
    color: red;
}

.cards {
    display: flex;
    gap: 20px;
}

.cards .card {
    border-width: 2px;
    border-color: var(--brand-color-second);
}

.alert {
    border-radius: 10px;
    border-width: 1px;
    margin: unset;
}

.alert-warning {
    background-color: var(--warning);
    color: var(--warning-color);
    border-color: var(--warning-border-color);
}

.warning {
    color: var(--warning-color)
}

.alert-dark {
    background-color: #d6d8d942
}

.report-footer {
    background-color: var(--white);
    border-top: var(--border);
    border-top-width: 1.5px;
}

.report-header {
    margin-bottom: var(--gap-l);
}

.card.report-header {
    padding: 10px;
}

.report-next-stage {
    margin-left: auto;
}

.progress-bar {
    width: 100%;
    height: 1rem;
    background-color: hsl(from var(--gray) h s l / 0.5);
}

.progress-bar .progress {
    background-color: var(--brand-color);
    width: 0%;
}

.progress-bar .progress[data-value="100"] {
    background-color: var(--color-green-100);
}

/* .EasyMDEContainer {
    flex: 1;
} */

.md-tabs {
    display: none;
}

.md-editor-content-area {
    height: 300px;
}

.md-editable-area {
    padding: 5px;
}


.md-editable-area ul,
.md-editable-area ol {
    display: block;
    list-style-type: disc;
    margin-top: 1em;
    margin-bottom: 1em;
    margin-left: 0;
    margin-right: 0;
    padding-left: 40px;
}

.tags {
    display: flex;
    flex-direction: row;
    gap: 5px;
}

.scroll {
    overflow-y: auto;
}