:root {
    --color-off-white: #dbdbdb; /* rgb(209 213 219); */
    --color-light-grey: #b0b0b0; /* #2c3e50 #111827 #2c3e50 */
    --color-mid-grey: #101010; /* #2c3e50 #111827 #2c3e50 */
    --color-dark-grey: #000000; /* #2c3e50 #111827 #2c3e50 */
    --color-light-blue: #2d353c; /* #44596e */
    --color-mid-blue: #24272d; /* #34495e */
    --color-dark-blue: #14171d; /* #14293e */
    --color-very-dark-blue: #04070d; /* #14293e */

    --color-focus-light: #1AA3DD; /* #44c5fc */
    --color-focus-dark: #1AA3DD50;

    --color-header: var(--color-very-dark);
    --color-nav: #2d353c;

    --color-button-light: #1aa3dd;
    --color-button-mid: #2f83b2;
    --color-button-dark: #1f5161;

    --color-error: red;
    --color-warning: orange;
    --color-notice: green;
    --color-status: var(--color-focus-light);
    --color-text-highlight: yellow;
    --color-text-important: lightcoral;

    --border-color-light: #e0e0e0;
    --border-color-dark: #303030;

    --height-for-top-header: 50px;  /* FIXME: change to rem */
    --width-for-blank-logo: 500px;
    --width-for-login-logo: 300px;
    --width-for-lhs-menubar: 8rem;
}

body {
    font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;
    font-size: 0.9rem;     /* browser default font-sizing is "medium" but it is typically too big */
    line-height: 1.25rem;  /* same applies for the default line-height */
    /* display: flex;      /* FIXME: this might be nice, but doesn't quite do what we want */
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 500;
}

h1 {
    font-size: 1.8rem;
    line-height: 1.8rem;
    margin-bottom: 0.5rem;
}

p {
    margin-bottom: 0.5rem;
}

a { text-decoration: none; }
a.url { text-decoration: underline; }
a.block { display: block }

ol.alpha-list { list-style: lower-alpha; margin-left: 1.0rem; }
ol.numeric-list { list-style:decimal; margin-left: 0.95rem; }
ol.roman-list { list-style: lower-roman; margin-left: 1.3rem; }

ul.menu-list { list-style: none; }

ul.arrow-list { list-style: disclosure-closed; margin-left: 1.2rem; }
ul.bullet-list { list-style: disc; margin-left: 0.95rem; }
ul.circle-list { list-style: circle; margin-left: 0.95rem; }

/* li:empty ... a bit too agressive */
li.empty { list-style-type: none; margin-top: 0.5rem; }
li.hide { display: none; }

.break-all { overflow-wrap: break-work; hyphens: auto; word-break: break-all };
.break-word { overflow-wrap: break-word; hyphens: auto; }
.hypens { hyphens: auto }
.no-hypens { hyphens: none; }
.no-wrap { white-space: nowrap; text-wrap-mode: nowrap; }
.wrap { white-space: normal; text-wrap-mode: wrap; }
.wrap-pretty { white-space: break-spaces; text-wrap-style: pretty; }
.preserve-line-breaks { white-space-collapse: preserve-breaks; }
.z-index-reset { isolation: isolate; }

.display-block-to-measure { display: block !important; }
.display-block { display: block; }
.display-grid { display: grid; }
.display-none { display: none; }
.position-out-of-flow { position:absolute }

.height-screen { height: 100dvh; }
.height-full { height: 100%; }
.width-full { width: 100%; }
.width-fill { margin: 0 auto; }

.fill-space { width: stretch; }

.bold { font-weight: bold; }
.underline { text-decoration: underline; }
.strikeout { text-decoration: line-through; }
.ellipsis { text-overflow: ellipsis; }
.text-shadow { text-shadow: 0rem 0.03rem; }
.box-shadow { box-shadow: 0 0.5rem 1rem 0 rgba(0, 0, 0, 0.5); }

.no-border-radius { border-radius: 0; }

.clickable { cursor: pointer; }
.hoverable { cursor: pointer; }

.active { }
.inactive { }
.selected { }
.focus {}

.align-left { text-align: left; }
.align-center { text-align: center; }
.align-right { text-align: right; }
.valign-top { vertical-align: top; }
.valign-middle { vertical-align: middle; }
.valign-bottom { vertical-align: bottom; }


.date { white-space: nowrap; text-wrap-mode: nowrap; }
.time { white-space: nowrap; text-wrap-mode: nowrap; }
.datetime { white-space: break-spaces; text-wrap-style: pretty; overflow-wrap: break-word }
.boolean { text-align: center; }


.dropdown {
    display: inline-block;
    /* isolation: isolate; */
}
.dropdown-container {
    position: absolute;
    display: none;
    user-select: none;
    box-shadow: 0 0.5rem 1rem 0 rgba(0, 0, 0, 0.5);
    z-index: 100;
    background-clip:content-box;
    /* display: grid; */
}


.dropdown-container-div {
}
.dropdown-container-anchors {
    margin-top: 2.6rem;
    margin-left: 2.6rem;
    overflow-y: scroll;
    max-height: 20rem;
}

/*.dropdown:hover > .dropdown-container, */
.dropdown.hover > .dropdown-container {
    display: grid;
}



.dropdown-container {
    background-color: var(--color-very-light);
    border: 1px solid var(--color-dark);
    color: var(--color-very-dark);
}
.dropdown-content {
    padding: 0.25rem;
    min-width: calc(100%);
    display: grid;
    /*
    margin-top: calc(0.5rem - 1px);
    margin-bottom: calc(0.5rem - 1px - 1px);
    */
}
.dropdown-content:focus,
.dropdown-content:focus-visible,
.dropdown-content.hover,
.dropdown-content:hover {
    background-color: var(--color-light);
    color: var(--color-dark);
    border: 0 solid var(--color-light);
    cursor: pointer;
}

/* FIXME: is this used ? */
.dropdown-button {
    padding: 0.25rem;
    border: 0 solid var(--color-light);
    cursor: pointer;
}

.dropdown-content a {
    padding: 0.25rem;
    display: flex;
}

.dropdown-content a:focus,
.dropdown-content a.focus,
.dropdown-content a:focus-visible {
    border: 1px solid var(--color-dark);  /* FIXME: should this be "outline" */
    border-radius: 0.25rem;
}



.editing input + .dropdown-container {
    margin-top: calc(2rem + 1px + 0.25rem); /* needs to account for border */
    margin-left: calc(2rem + 1px);
    max-height: 15rem;
    overflow-y: scroll;
    /* min-width: 10rem; */
}
.editing a + .dropdown-container,
.editing span + .dropdown-container,
.editing div + .dropdown-container {
    max-height: 15rem;
    overflow-y: scroll;
}
.editing textarea {
    height: 2.41rem;
}
.editing .dropdown-container > a {
    padding: 0.25rem;
    display: flex;
}
.editing .dropdown-container > a:focus {
    border: 1px solid var(--color-dark);
    border-radius: 0.25rem;
}