html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

html {
  position: relative;
}

body {
    height: calc(100vh - 1px);
    max-height: calc(100vh - 1px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin-top: 0;
    margin-bottom: 0;
}
header {
    height: 75px;
    min-height: 75px;
}
.main-content {
    width: calc(100vw);
    min-height: 200px;
    height: 100%;
    overflow-y: auto;
}
footer {
    position: relative;
    width: 100%;
    white-space: nowrap;
    line-height: 40px;
}
/* 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 {
    font-family: verdana, sans-serif;
    padding-left: 10px;
    border: 1px solid black;
}
*/


.main-button {
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
}

.accounting-main-button {
    background-color: #b09e4c;
}

.maintenance-main-button {
    background-color: #4CAF50;
}

.other-main-button {
    background-color: #4c83b0;
}

.navbar-nav > li > a {
    padding-left: 30px;
}

hr {
    border-color: #e5e5e5;
}

table.projections th, table.projections td {
    width: 100px;
    text-align: center;
    border-right: 1px solid black;
    border-left: 1px solid black;
}

.section {
    margin-top: 20px;
}
.page-header, .section .section-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    padding-left: 10px;
    padding-right: 10px;
    padding-top: 10px;
    max-width: 100%;
    background-color: #EEE;
    padding: 10px;
}
    .page-header .header-title, .section .section-header .header-title {
        overflow-wrap: break-word;
        max-width: 100%;
        flex-grow: 1;
    }
    .page-header .header-actions, .section .section-header .header-actions {
        flex-grow: 0;
        flex-wrap: wrap;
        display: inline-block;
    }

/*td {
    font-size:smaller;
}
*/
table.grid {
}

    table.grid tr:nth-child(even) {
        background-color: #eee;
    }

    table.grid th {
        font-weight: bolder;
        padding: 10px;
    }

    table.grid td {
        padding: 10px;
        border-top: 1px solid black;
        border-bottom: 1px solid black;
    }

tr.link:hover {
    background-color: #ccc !important;
}

.list-title-container {
    float: left;
}

.clear {
    clear: both;
}

.hidden {
    display: none;
}

.flex-container {
    display: flex;
}

.left-column {
    width: 15%;
    margin: 10px;
}

.fill-width {
    flex: 1;
}

label.left-column,
dt.left-column {
    text-align: right;
}

dl.details dd {
    margin: 10px;
    overflow-wrap: anywhere;
}

dd.multi-line-detail {
    white-space: pre-wrap;
    background-color: #EEEEEE33;
    padding-left: 5px;
    padding-right: 5px;
}

form .form-group {
    margin-bottom: 10px;
}

form.edit input:not(.btn):not(.dx-texteditor-input),
form.edit textarea,
form.edit select {
    margin: 10px;
}

form.edit input:not(.btn):not(.dx-texteditor-input),
form.edit textarea,
form.edit select {
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

    form.edit input:focus:not(.btn):not(.dx-texteditor-input),
    form.edit textarea:focus,
    form.edit select:focus {
        border-color: #333;
    }

    /* TODO: can this style be removed ??? */
form.edit input[type=submit]:not(.btn) {
    padding: 5px 15px;
    background: #ccc;
    border: 0 none;
    cursor: pointer;
    border-radius: 5px;
}

form.edit .btn {
    margin-top: 10px;
    margin-left: 10px;
}
.action-list {
    text-align: right;
    white-space: nowrap;
}

.action-new-container {
    float: right;
    padding-top: 40px;
    padding-right: 10px;
}

.breadcrumb > li + li:before {
    color: #aaa;
    content: ">> ";
    padding: 0 5px;
}

.right-action {
    float: right;
    padding-right: 10px;
}

.action-destroy {
    cursor: pointer;
    color: red;
}

a {
    text-decoration: none;
}

a:hover, .action-destroy:hover, .action-link:hover {
    text-decoration: underline;
}

.action-link {
    cursor: pointer;
    color: var(--bs-blue);
}
.action-link:hover {
    color: #0a58ca;
}

.link {
    cursor: pointer;
}

.copy-link {
    font-weight: lighter;
    font-size: smaller;
}

.copy-link-header {
    font-weight: lighter;
    font-size: smaller;
    margin-left: 15px;
    cursor: pointer;
}

.copy-link:hover {
    cursor: pointer;
}

.general-error {
    background-color: pink;
    color: red;
    padding: 10px;
}

.general-message {
    background-color: lightgreen;
    color: green;
    padding: 10px;
}

.multi-line {
    white-space: pre-wrap;
}

.grid-action-container {
    display: flex;
    justify-content: flex-end;
}

.grid-action {
    margin-left: 10px;
}

/* tabs region */
.tabs {
    position: relative;
}

.tab [type=radio] {
    display: none;
}

.tab label {
    display: inline-block;
    float: left;
    padding: 5px 10px;
    cursor: pointer;
    color: lightgray;
}

.tab .content {
    position: absolute;
    top: 68px;
    display: none;
    color: black;
}

.tab [type=radio]:checked ~ label {
    color: black;
    cursor: default
}

    .tab [type=radio]:checked ~ label ~ .content {
        display: block;
    }
/* end tabs region */

/*collapsible section region */
.collapsible_section .header {
    background-color: #ddd;
    cursor: pointer;
    padding: 12px;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
}

.collapsible_section .content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease-out;
}

.collapsible_section.expanded_section .header, .collapsible_section .header:hover {
    background-color: #aaa;
    color: white;
}

.collapsible_section .header:after {
    content: '\002B';
    font-weight: bold;
    font-size: 15px;
    float: right;
    margin-left: 10px;
}

.collapsible_section.expanded_section .header:after {
    content: "\2212";
    color: white;
}

.collapsible_section.expanded_section .content {
    max-height: none;
}
/*end collapsible section region */

/* disabled checkbox region */
/* Insert an invisible element that covers the checkbox */
.disabled-checkbox {
    position: relative;
}

    .disabled-checkbox::after {
        content: "";
        position: absolute;
        top: 0px;
        left: 0px;
        right: 0px;
        bottom: 0px;
        opacity: 0.5
    }
/* end disabled checkbox region */


/* snackbar region */
#snackbar {
    visibility: hidden;
    min-width: 250px;
    margin-left: -125px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 2px;
    padding: 16px;
    position: fixed;
    z-index: 1;
    left: 50%;
    bottom: 30px;
    font-size: 17px;
}

    #snackbar.show {
        visibility: visible;
        -webkit-animation: fadein 0.5s, fadeout 0.5s 2.5s;
        animation: fadein 0.5s, fadeout 0.5s 2.5s;
    }

@-webkit-keyframes fadein {
    from {
        bottom: 0;
        opacity: 0;
    }

    to {
        bottom: 30px;
        opacity: 1;
    }
}

@keyframes fadein {
    from {
        bottom: 0;
        opacity: 0;
    }

    to {
        bottom: 30px;
        opacity: 1;
    }
}

@-webkit-keyframes fadeout {
    from {
        bottom: 30px;
        opacity: 1;
    }

    to {
        bottom: 0;
        opacity: 0;
    }
}

@keyframes fadeout {
    from {
        bottom: 30px;
        opacity: 1;
    }

    to {
        bottom: 0;
        opacity: 0;
    }
}
/* end snackbar region */


.dx-header-row > td[role="columnheader"] > div.dx-datagrid-text-content {
    font-size: 15px;
    /*    text-decoration: underline;*/
    /* font-weight: bold;*/
    color: black;
    font-weight: 500;
}

.dx-header-filter:not(.dx-header-filter-empty) {
    color: orange !important
}

.dx-data-row.dx-state-hover > td {
    cursor: pointer;
    background-color: #AAD5FF77 !important;
}

.flex-space-between {
    display: flex;
    justify-content: space-between;
}
.flex-end {
    display: flex;
    justify-content: flex-end;
}
.grid-wrapper-2-column {
    display: grid;
    grid-template-columns: 50% 50%;
}

/* invite page */
.finish-invite-form .password {
    display: block;
}
.finish-invite-form:has(.identity-options label #password:not(:checked)) .password {
    display: none !important;
}
.finish-invite-form .identity-options label > input[type=radio] {
    display: none;
}
.finish-invite-form .identity-options-list {
    display: flex;
    align-items: center;
}

.finish-invite-form .identity-options label {
    border-color: #ccc;
    margin-right: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.finish-invite-form .identity-options label:has(:checked) {
    border-color: #198754;
}
.finish-invite-form .identity-options label:has(:checked)::after {
    content: url("data:image/svg+xml; utf8, %3Csvg xmlns='http://www.w3.org/2000/svg' height='20px' viewBox='0 -960 960 960' width='20px' fill='%23198754'%3E%3Cpath d='m424-296 282-282-56-56-226 226-114-114-56 56 170 170Zm56 216q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Z'/%3E%3C/svg%3E");
    width: 20px;
    height: 20px;
}
.finish-invite-form input[type=submit] {
    margin-top: 10px;
}
.finish-invite-form .identity-options {
    margin-top: 25px;
    margin-bottom: 15px;
}
/* end invite page */

/* login page */
:root {
    --shadow-color: rgba(0, 0, 0, 0.1); /* Default for light mode */
}

@media (prefers-color-scheme: dark) {
    :root {
        --shadow-color: rgba(0, 0, 0, 0.1); /* For dark mode */
    }
}
.form-body {
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-container {
    background-color: #ffffff;
    box-shadow: 0 8px 16px var(--shadow-color);
    padding: 2rem;
    border-radius: 8px;
    max-width: 500px;
    width: 100%;
    justify-items: center;
}

@media (prefers-color-scheme: dark) {
    .floating-container {
        background-color: #f4f5f7;
        box-shadow: 0 8px 16px var(--shadow-color);
        padding: 2rem;
        border-radius: 8px;
        max-width: 500px;
        width: 100%;
        justify-items: center;
    }
}

form#external-account .btn-outline-dark {
    font-family: Segoe UI;
    border: 1px solid rgb(193, 199, 208) !important;
    font-weight: bold;
    vertical-align: text-top;
}

form#external-account .btn-outline-dark:hover {
    background-color: #e7f2ff;
    color: #343a40;
}

.login-form-a {
    font-size: 14px;
}

.form-p {
    justify-self: center;
}

.form-floating {
    margin-bottom: 10px;
}
form#account #login-submit {
    margin-bottom: 10px;
}

    /* end login page */

