html,
body {
    font-family: sans-serif;
    margin: 0px;
    padding: 0px;
}

/* ------------------------------------------------
   Signaling development server
   ------------------------------------------------ */

div.logo {
    position: relative;
}

div.logo.devsign:after {
    content: "DEVelopment";
    position: absolute;
    color: #f00;
    font-weight: 1000;
    font-size: 40px;
    top: 6px;
    left: 18px;
    background-color: #f88;
    opacity: 0.9;
    padding: 10px;
}

@media (max-width: 992px) {
    div.logo.devsign:after {
        font-size: 14px;
        top: 3px;
        left: 10px;
        padding: 5px;
    }
}

/* ------------------------------------------------
   Top bars layout
   ------------------------------------------------ */

.logo-image {
    height: 95px;
    padding-bottom: 20px;
    padding-right: 40px;
}

@media (max-width: 992px) {
    .logo-image {
        height: 36px;
        padding-bottom: 0px;
    }
}

div#over-top-bar {
    min-height: 10px;
    width: 100%;
    background-color: #fd7a10;
    box-shadow: 0px 1px 10px gray;
    margin-bottom: 10px;
    color: #fff;
}

div#top-bar {
    background-color: #fff;
    padding-left: 40px;
    padding-top: 20px;
    display: flex;
    align-items: center;
}

div#menu-bar {
    background-color: #00679e;
    color: #fff;
    height: 40px;
    min-height: 40px;
    padding-left: 40px;
    display: flex;
    align-items: center;
}

div#menu-bar a {
    display: inline-block;
    padding-right: 20px;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}

div.title h2 {
    width: auto;
    padding-top: 0px;
    padding-bottom: 6px;
}

div.title a {
    text-decoration: none;
    color: unset;
}

/* ------------------------------------------------
   Content area
   ------------------------------------------------ */

main {
    margin: 40px;
    overflow: auto;
    height: calc(80vh - 80px);
}

/* ------------------------------------------------
   Forms -- see forms.css
   ------------------------------------------------ */

/* ------------------------------------------------
   Flash message
   ------------------------------------------------ */

div.flashcontainer {
    display: flex;
    flex-wrap: wrap;
}

div.flashcontainer div.break {
    flex-basis: 100%;
    height: 0;
}

div.flash {
    margin-left: auto;
    padding: 10px;
    background-color: #40a7de;
    color: #fff;
    border-radius: 5px;
    width: fit-content;
    margin-bottom: 20px;
}

/* ------------------------------------------------
   Modal message box
   ------------------------------------------------ */

#modal-backdrop {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100vw;
    min-height: 100%;
    background-color: #aaa;
    opacity: 0.8;
    display: none;
}

#modal-container {
    display: none;
}

.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #ffffff;
    box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.3);
    min-width: 300px;
    width: 50%;
    padding: 20px;
    border-radius: 5px;
}

#modal-content {
    opacity: 1;
}

#modal-header {
    font-weight: bold;
}

#modal-text {
    margin-bottom: 20px;
    margin-top: 20px;
}

/* ------------------------------------------------
   Admin panel
   ------------------------------------------------ */

div.adminactioncontainer {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
}

div.adminaction {
    border: 1px solid #aaa;
    border-radius: 5px;
    padding: 20px;
    width: 40%;
    min-width: 320px;
    background-color: #eee;
    cursor: pointer;
    margin-bottom: 20px;
    margin-right: 20px;
}

div.adminaction.inactive {
    cursor: default;
    /* don't display inactive adminations: */
    /* display: none; */
}

div.adminaction.inactive button {
    background-color: #888;
    color: #ddd;
    cursor: default;
}

div.adminaction p {
    visibility: hidden;
    padding: 0px;
    padding-right: 10px;
    margin: 0px;
    overflow: hidden;
    height: 0px;
    transition: height 1s;
}

div.adminaction:hover p {
    visibility: visible;
    overflow: auto;
    padding-top: 20px;
    height: 220px;
}

div.adminaction.inactive:hover p {
    visibility: hidden;
    overflow: hidden;
    padding-top: 0px;
    height: 0px;
}

/* ------------------------------------------------
   Admin panel: Changes
   ------------------------------------------------ */

table.changestable {
    width: 100%;
    table-layout: fixed;
    margin-bottom: 10px;
}

table.changestable tr th {
    background-color: #eee;
}

table.changestable th.membernumber {
    text-align: left;
    font-weight: bold;
}

table.changestable td,
table.changestable th {
    padding: 5px;
}

table.changestable th.changearrow {
    text-align: left;
    font-weight: normal;
}

table.changestable td.namecol {
    width: 16em;
}

table.changestable td.valuecol {
    width: calc(50% - 8em);
}

table.changestable td.valuecol.oldvalue {
    background-color: #eee;
}

/* ------------------------------------------------
   Footer
   ------------------------------------------------ */

footer {
    position: fixed;
    width: 100%;
    bottom: 0px;
    padding: 10px;
    padding-left: 40px;
    border-top: 4px solid #00679e;
}
