﻿@import url('https://fonts.googleapis.com/css?family=Roboto:400,700');
@import url('https://fonts.googleapis.com/css?family=Lato:400,700');
@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,700');

html, body {
    background-color: var(--colours-page-bg);
    color: var(--colours-page-fg);
    font-size: var(--colours-page-fontsize);
    font-family: Lato;
    padding: 0;
    margin: 0;
    height: 100%;
}

@media print {
    .noprint {
        display: none;
    }
}

* {
    box-sizing: border-box;
}

h1, h2 {
    margin: 0.2em;
}

.r {
    text-align: right;
}

select, input, textarea {
    font-size: inherit;
    font-family: inherit;
}

th {
    font-weight: 700;
}
a {
    text-decoration: none;
    color: var(--colours-linkcolour);
}

    a:hover {
        text-decoration: underline;
    }

.tabouter a {
    outline: none;
    padding: 5px 10px;
    border: 0;
    background: linear-gradient(to bottom, rgba(76,76,76,1) 0%,rgba(89,89,89,1) 12%,rgba(102,102,102,1) 25%,rgba(71,71,71,1) 39%,rgba(44,44,44,1) 50%,rgba(0,0,0,1) 51%,rgba(17,17,17,1) 60%,rgba(43,43,43,1) 76%,rgba(28,28,28,1) 91%,rgba(19,19,19,1) 100%);
    color: White;
    margin: 0;
    cursor: pointer;
    display: inline-block;
    text-align: center;
    border-radius: 0;
    text-decoration: none;
}

    .tabouter a:first-child {
        border-top-left-radius: 6px;
        /* border-bottom-left-radius: 10px; */
    }

    .tabouter a:nth-last-child(2) {
        border-top-right-radius: 6px;
        /* border-bottom-right-radius: 10px; */
        /* border-right: solid 1px black; */
    }
.tabouter  span { 
    float: right;
}

.tabouter a.TabSelected {
    background: linear-gradient(to bottom, rgba(76,76,255,1) 0%,rgba(89,89,255,1) 12%,rgba(102,102,255,1) 25%,rgba(71,71,255,1) 39%,rgba(44,44,255,1) 50%,rgba(0,0,255,1) 51%,rgba(17,17,255,1) 60%,rgba(43,43,255,1) 76%,rgba(28,28,255,1) 91%,rgba(19,19,255,1) 100%);
}
.TabContainer {
    overflow: auto;
    border: 1px solid black;
    padding: 5px;
    box-sizing: border-box;
    width: 100%;
}
.tableform { /* Revised  12/2020  */
    border-collapse: separate;
    vertical-align: top;
    width: 100%;
}

    .tableform td {
        padding: 3px;
        background-color: var(--colours-tableform-col2-bg);
        color: var(--colours-tableform-col2-fg);
    }

        .tableform td:first-child {
            background-color: var(--colours-tableform-col1-bg);
            color: var(--colours-tableform-col1-fg);
        }

    .tableform tr:hover td, .tableform tr:hover th {
        background-color: var(--colours-tableform-hover-bg);
        color: var(--colours-tableform-hover-fg);
    }

    .tableform th, .tablelist th {
        text-align: left;
        padding: 5px;
        background-color: var(--colours-tableform-heading-bg);
        color: var(--colours-tableform-heading-fg);
    }

        .tableform th img, .tablelist th img {
            float: right;
            border: 0px;
        }

    .tableform .left-cell {
        vertical-align: top;
    }

@media all and (min-width: 850px) {
    .tableform .left-cell {
        width: 300px;
    }
}

.tableform .right-cell {
    vertical-align: top;
}

.tableform a {
    text-decoration: none;
    color: var(--colours-linkcolour);
}

    .tableform a:hover {
        text-decoration: underline;
    }

    .tableform a:hover {
        text-decoration: underline;
    }


#IFContainer {
    position: relative;
    margin-bottom: 5px;
}

    #IFContainer * {
        box-sizing: border-box;
    }

    #IFContainer #IFContainerToolBox {
        font-size: 11px;
        width: 200px;
        margin-left: auto;
        cursor: pointer;
    }

    #IFContainer #IFContainerToolBoxHeader {
        padding: 2px 6px;
        display: inline;
        text-align: left;
        position: relative;
    }

        #IFContainer #IFContainerToolBoxHeader > span {
            background-color: var(--colours-infofrag-button-bg);
            color: var(--colours-infofrag-button-fg);
            padding: 0 5px;
        }

    #IFContainer #IFContainerToolBoxDropDown {
        position: absolute;
        width: 200px;
        clear: both;
        background-color: #ECECEC;
        border: solid 1px #999;
        z-index: 800;
        box-shadow: rgba(0,0,0,0.3) 10px 10px 10px;
    }

        #IFContainer #IFContainerToolBoxDropDown a {
            display: block;
            text-decoration: none;
            padding: 6px 16px 6px 8px;
            color: black;
            border-top: solid 1px #CCC;
        }

            #IFContainer #IFContainerToolBoxDropDown a img {
                vertical-align: middle;
                margin-right: 8px;
            }

            #IFContainer #IFContainerToolBoxDropDown a:hover {
                background-color: #CCC;
                color: var(--colours-linkcolour);
            }

    #IFContainer .IFLine {
        border-bottom: dotted 1px #999;
        padding: 3px 0;
        display: flex;
        background-color: #ECECEC;
    }

        #IFContainer .IFLine:hover {
            border-bottom: dotted 1px #999;
        }

    #IFContainer .IFName {
        padding: 2px 20px 2px 5px;
        min-width: 200px;
        display: inline-block;
        font-weight: 700;
    }

        #IFContainer .IFName img {
            vertical-align: bottom;
            padding-right: 5px;
        }

    #IFContainer .IFData {
        padding: 2px 0 2px 5px;
        display: inline-block;
        flex-grow: 4;
    }

    #IFContainer #IFEditForm {
        position: fixed;
        background-color: rgba(0,0,0,0.4);
        left: 0;
        top: 0;
        bottom: 0;
        right: 0;
        z-index: 900;
    }

    #IFContainer #IFEditFormInner {
        position: relative;
        border: solid 1px #333;
        background-color: #EEE;
        padding: 10px;
        width: 300px;
        z-index: 1;
        margin-left: auto;
        margin-right: auto;
        margin-top: 200px;
        box-shadow: rgba(0,0,0,0.2) 10px 10px 10px;
    }

        #IFContainer #IFEditFormInner input[type='text'] {
            width: 100%;
            margin-bottom: 5px;
            padding: 5px;
            border: solid 1px #999;
        }

        #IFContainer #IFEditFormInner textarea {
            width: 100%;
            margin-bottom: 5px;
            padding: 5px;
            border: solid 1px #999;
        }

        #IFContainer #IFEditFormInner select {
            width: 100%;
            margin-bottom: 5px;
            padding: 5px;
            border: solid 1px #999;
        }

        #IFContainer #IFEditFormInner .buttonholder {
            text-align: right;
        }

.IFEditSym {
    cursor: pointer;
}

#IFContextMenu {
    position: fixed;
    border: solid 1px #999;
    border-top: solid 1px #EEE;
    border-left: solid 1px #EEE;
    background-color: white;
    box-sizing: border-box;
    min-width: 150px;
    background-color: #ccc;
    z-index: 999;
    font-weight: 700;
    box-shadow: rgba(0,0,0,0.4) 10px 10px 10px;
}

    #IFContextMenu .spacer {
        line-height: 0px;
        border-bottom: solid 1px #DDD;
        border-top: solid 1px #999;
        display: block;
    }

    #IFContextMenu a.IFMenuItem {
        cursor: pointer;
        padding: 4px;
        padding-left: 14px;
        display: block;
        color: #000;
    }

    #IFContextMenu .IFMenuItem:hover {
        color: var(--colours-linkcolour);
        background-color: #ddd;
    }

#IFContextMenuOverlay {
    background-color: rgba(0,0,0,0.5);
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    right: 0;
    z-index: 998;
}
.IFLine a {
    text-decoration: none;
    color: var(--colours-linkcolour);
}

    .IFLine a:hover {
        text-decoration: underline;
    }



#menuDiv {
    position: fixed;
    width: 300px;
    left: 0;
    bottom: 0;
    top: 0;
    display: flex;
    flex-direction: column;
    background-color: var(--colours-sidebar-bg);
    color: var(--colours-sidebar-fg);
    font-size: var(--colours-sidebar-fontsize);
}
    #menuDiv a.selectedmenuitem, #menuDiv a.selectedmenuitem:hover {
        background-color: var(--colours-sidebar-selecteditem-bg);
        color: var(--colours-sidebar-selecteditem-fg);
    }
        #menuDiv a {
            display: block;
            padding: 2px 15px;
            text-decoration: none;
            color: var(--colours-sidebar-fg);
            padding-right: 15px;
            padding-bottom: 4px;
        }

        #menuDiv details summary:hover, #menuDiv a:hover {
            background-color: #333;
            color: white;
        }

    #menuDiv details > div {
        margin-left: 15px;
    }

    #menuDiv .InnerMenu {
        overflow-y: auto;
    }

@media only screen and (max-width:540px) {
    #menuDiv {
        font-size: 14pt;
        color: hotpink;
    }
}
div.breadcrumbs {
    background-color: var(--colours-breadcrumbs-bg);
    color: var(--colours-breadcrumbs-fg);
    padding: 6px;
    position: sticky;
    top: 0;
}
nav.breadcrumbs a {
    color: var(--colours-breadcrumbs-fg);
    font-size:80%;
}
#titlebar {
    display: flex;
    align-items: center;
    position: relative;
    background-color: var(--colours-titlebar-bg);
    color: var(--colours-titlebar-fg);
}

    #titlebar svg {
        fill: var(--colours-titlebar-fg);
    }


.sidebar {
    padding: 10px;
    width: 200px;
    position: fixed;
}

    .sidebar input, .sidebar select {
        width: 100%;
    }

@media print {

    #menuDiv {
        display: none;
    }

    body {
        margin-left: 0px !important;
    }
    .sidebar, .breadcrumbs, header {
        display: none;
    }
    .mainarea {
         margin-left: 0 !important;
    }
}
    .r input[type=number] {
        text-align: right;
    }

.mainarea {
    /* max-width: 1200px; */
    padding: 10px;
}

    .mainmenu {
        width: 100%;
        max-width: 500px;
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    .xm-button {
        padding: 8px 25px;
        background-color: #0b77fb;
        color: white !important;
        text-decoration: none;
        text-align: center;
        border-radius: 4px;
        border-width: 0px;
        box-shadow: 3px 3px 3px rgba(0,0,0,0.2);
        display: inline-block;
        box-sizing: border-box;
        cursor: pointer;
        font-family: inherit;
        font-size: inherit;
    }

        .xm-button:hover {
            background-color: #58a1fa;
            box-shadow: 3px 3px 3px rgba(0,0,0,0.4);
        }

    .xm-button-row {
        margin-bottom: 5px;
    }

    .xm-narrowouter {
        border: 5px solid red;
    }

    .tablelist {
        width: 100%;
        border-collapse: collapse;
        margin: auto;
        margin-bottom: 0.5em;
    }

        .tablelist tr {
            background-color: var(--colours-tablelist-row1-bg);
            color: var(--colours-tablelist-row1-fg);
        }

            .tablelist tr:nth-child(even) {
                background-color: var(--colours-tablelist-row2-bg);
                color: var(--colours-tablelist-row2-fg);
            }

        .tablelist td {
        }

        .tablelist a {
            text-decoration: none;
            padding: 3px;
            color: var(--colours-linkcolour);
            display: block;
            width: 100%;
            border-bottom: 1px solid transparent;
        }

        .tablelist input[type=number] {
            width: 50px;
        }

        .tablelist .smallfooter {
            font-size: xx-small;
        }

        .tablelist tr:hover {
            background-color: var(--colours-tablelist-hover-bg);
            color: var(--colours-tablelist-hover-fg);
        }
        .tablelist tr:hover  a {
            text-decoration:underline;
        }

    table.itemproperties {
        border-top: solid 1px #333;
        border-bottom: solid 1px #333;
        width: 100%;
        background-color: rgba(224, 224, 224, 0.9);
        margin-bottom: 1em;
    }

        table.itemproperties td {
            padding: 5px;
        }

        table.itemproperties tr:nth-child(even) {
            background-color: rgba(204, 204, 204, 0.9);
        }

        table.itemproperties tr:hover {
            background-color: rgba(255, 255, 204, 0.9);
        }

        table.itemproperties input, table.itemproperties select, table.itemproperties textarea {
            width: 100%;
            padding: 5px;
            font-family: inherit;
            font-size: inherit;
        }

            table.itemproperties input:focus, table.itemproperties select:focus, table.itemproperties textarea:focus {
                outline: 3px solid hotpink;
                border: 1px solid blue;
            }

    table.addnewitem {
        border: solid 1px black;
        width: 100%;
        padding: 5px;
        background-color: rgba(224, 224, 224, 0.9);
        margin-bottom: 1em;
    }

        table.addnewitem input, table.addnewitem select {
            width: 100%;
            padding: 5px;
            font-family: inherit;
            font-size: inherit;
        }

    .breadcrumbs a {
        color: white;
        text-decoration: none;
        font-size: 14px;
    }

    .pageheading {
        background-color: #0b77fb;
        color: white;
        padding: 5px;
        width: 100%;
        margin: auto;
    }

        .pageheading > div {
            font-weight: bold;
            font-size: large;
            max-width: 1200px;
            margin: auto;
        }

    .innerbox {
        flex-grow: 1;
        background-color: white;
        color: black;
        display: flex;
        flex-direction: row;
    }

    .menu1 {
        background-color: #FCFCFC;
        color: black;
        width: 200px;
    }

    .menu1 {
        background-color: #FCFCFC;
        color: black;
        width: 200px;
        border-right: solid 1px #CCC;
    }

        .menu1 a {
            display: block;
            color: #333;
            text-decoration: none;
            padding: 5px;
            border-bottom: solid 1px #CCC;
        }

            .menu1 a.selected {
                font-weight: bold;
            }

            .menu1 a:hover {
                border-bottom: solid 1px #333;
                background-color: #EEE;
            }

            .menu1 a img {
                float: right;
            }

    .menu2 {
        background-color: pink;
        width: 200px;
    }

    .content {
        background-color: white;
        color: black;
        flex-grow: 1;
    }

    .tableitem {
        width: 100%;
        border-collapse: collapse;
        margin: auto;
        margin-bottom: 0.5em;
        background-color: #FCFCFC;
    }

        .tableitem td {
            padding: 5px;
            border-bottom: solid 1px #AAA;
        }

        .tableitem tr td:first-child {
            background-color: #EEE;
            width: 300px;
        }

    #userDiv {
        right: 0;
        position: relative;
        background-color: white;
        border: solid 1px #AAA;
        padding: 0;
        font-size: 12pt;
        border-radius: 4px;
        box-shadow: rgba(0, 0, 0, 0.133) 0px 3.2px 7.2px 0px, rgba(0, 0, 0, 0.11) 0px 0.6px 1.8px 0px;
        min-width: 200px;
    }

        #userDiv section:first-child {
            margin-top: 10px;
        }

        #userDiv .username {
            font-weight: bold;
        }

        #userDiv .useremail {
            font-size: x-small;
        }

        #userDiv > section {
            padding-bottom: 6px;
            border-bottom: solid 1px #CCC;
            margin-bottom: 6px;
        }

        #userDiv section:last-child {
            border-bottom: 0 !important;
            padding-bottom: 0 !important;
        }

        #userDiv > section > * {
            display: block;
            padding: 10px;
            color: black;
            padding: 3px 12px;
        }

        #userDiv a {
            display: block;
            padding: 10px;
            color: black;
            padding: 6px 12px;
            border: solid 1px #CCC;
            background-color: #FAFAFA;
            border-radius: 3px;
            margin: 3px;
            text-decoration: none;
        }

        #userDiv > section > a:hover {
            background-color: #DDD;
        }

    #menuDiv details {
    }

        #menuDiv details summary {
            padding: 4px;
            cursor: pointer;
        }

#menuDiv .topmenu {
    display: flex;
    background-color: var(--colours-sidebar-inactivetabs-bg);
    color: var(--colours-sidebar-inactivetabs-fg);
    font-size: 80%;
}

    #menuDiv .topmenu .Tab {
        flex-grow: 1;
        padding: 3px 6px;
        text-align: center;
        border-bottom: solid 1px var(--colours-sidebartaboutline);
    }

    #menuDiv .topmenu .selected {
        background-color: var(--colours-sidebar-activetab-bg);
        color: var(--colours-sidebar-activetab-fg);
        border-bottom-color: var(--colours-sidebar-activetab-bg);
        border-top: solid 1px var(--colours-sidebartaboutline);
        border-left: solid 1px var(--colours-sidebartaboutline);
        border-right: solid 1px var(--colours-sidebartaboutline);
        border-top-right-radius: 4px;
        border-top-left-radius: 4px;
    }

    #menuDiv .InnerMenu {
        border-right: solid 1px #888;
        flex-grow: 1;
    }

    .registerbutton {
        padding: 5px 20px;
        background-color: cornflowerblue;
        color: white;
        border: 0;
        font-family: inherit;
        font-size: inherit;
        margin: 3px;
    }

    .BigMenuBtn {
        padding: 12px;
        border: solid 1px cornflowerblue;
        margin-bottom: 6px;
        border-radius: 6px 6px;
    }

        .BigMenuBtn a {
            text-decoration: none;
        }

    .FullWidthInput {
        display: block;
        padding: 6px;
        font-family: inherit;
        font-size: inherit;
        width: 100%;
        box-sizing: border-box;
    }

    .footer {
        background-color: cornflowerblue;
        display: flex;
        color: white;
        margin-bottom: 10px;
    }

        .footer a {
            flex: 1 1 0px;
            display: inline-block;
            text-align: center;
            padding: 6px;
            text-decoration: none;
            color: inherit;
        }

            .footer a:not(:last-child) {
                border-right: solid 1px white;
            }
div.footerbuttons {
    display: flex;
    margin-bottom: 0.5em;
    margin-top: 0.5em;
    flex-wrap: wrap;
}

        div.footerbuttons > * {
            flex-grow: 1;
            display: inline-block;
            padding: 12px 6px;
            background-color: #6e0086;
            color: white;
            text-align: center;
            text-decoration: none;
            font-size: inherit;
            font-family: inherit;
            border: 0;
            cursor: pointer;
            box-shadow: rgb(0 0 0 / 40%) 5px 5px 5px;
        }

        div.footerbuttons a:hover, div.footerbuttons input:hover {
            background-color: #9d01bf;
        }

        div.footerbuttons > *:not(:last-child) {
            margin-right: 3px;
        }

    .nicedetails {
        border: 1px solid #aaa;
        border-radius: 4px;
        padding: .5em .5em 0;
        margin-bottom: .5em;
    }

        .nicedetails summary {
            font-weight: bold;
            margin: -.5em -.5em 0;
            padding: .5em;
        }

        .nicedetails details[open] {
            padding: .5em;
        }

            .nicedetails details[open] summary {
                border-bottom: 1px solid #aaa;
                margin-bottom: .5em;
            }

    .mytable {
        width: 100%;
        box-sizing: border-box;
        font-family: inherit;
        font-size: inherit;
    }

        .mytable td {
            padding: 6px;
            background-color: #F5F5F5;
        }

        .mytable tr:hover {
            background-color: #FFC;
        }

    .fillme {
        display: flex;
    }

        .fillme > input, .fillme > select {
            flex-grow: 1;
        }
#SearchPanel {
    display: flex;
    background-color: #444;
    color: #EEE;
}

#search2Div > input {
    flex-grow: 1;
    font-size: inherit;
    padding: 3px;
    font-family: inherit;
    border: solid 1px #CCC;
    margin: 3px;
}



#searchResultBubble {
    position: relative;
    background: #ffff99;
    border: 0px solid #333;
    transition: top 0.5s;
    position: fixed;
    z-index: 1;
    width: 280px;
    right: 265px;
    color: black;
    padding: 10px;
    min-height: 40px;
    box-shadow: rgba(0,0,0,0.3) 10px 10px 10px;
    border-radius: 5px;
    font-size: 11px;
    font-family: 'Open Sans';
}

        #searchResultBubble:after, #searchResultBubble:before {
            transition: top 1s;
            left: 280px;
            top: 3px;
            border: solid transparent;
            content: " ";
            height: 0;
            width: 0;
            position: absolute;
            pointer-events: none;
        }

        #searchResultBubble:after {
            /* border-color: rgba(255, 255, 255, 0); */
            border-left-color: #ffff99;
            border-width: 12px;
            margin-top: -20px;
        }

#SearchPanelResults a {
    text-decoration: none;
    display: block;
    padding: 4px;
    border-bottom: solid 1px #555;
    color: white;
    font-size: 11px;
    font-family: 'Open Sans';
}

        #SearchPanelResults a:hover {
            background-color: #444;
        }

.searchDataType {
    color: #999;
    float: right;
    font-size: 8pt;
}

span.required::after {
    content: ' *';
    color: orangered;
}
.pagecontainer {
    padding: 10px;
}

#TableListConfigDiv, .ConfigDiv {
    position: fixed;
    width: 250px;
    right: 12px;
    top: 104px;
    height: 260px;
    border: solid 1px black;
    background-color: #f5f5f5;
    z-index: 500;
}

#CompositeReportDiv {
    position: fixed;
    width: 250px;
    right: 10px;
    top: 100px;
    height: 270px;
    border: solid 1px black;
    background-color: #f5f5f5;
    z-index: 1;
}

#CoverPageDiv {
    position: absolute;
    width: 600px;
    left: 100px;
    top: 100px;
    height: 270px;
    border: solid 1px black;
    background-color: #f5f5f5;
    z-index: 2;
}

#CoverPage_Status {
    font-weight: 700;
    color: #FFFFFF;
    padding-right: 10px;
}

.ReportDiv_Inner table {
    border-collapse: separate;
    width: 99%;
}

.ReportDiv_Inner td {
    color: #444;
    vertical-align: top;
}

    .ReportDiv_Inner td input, .ReportDiv_Inner td textarea {
        width: 99%;
    }

        .ReportDiv_Inner td input[type="checkbox"] {
            width: auto;
        }

.ReportDiv_Inner #ReportCommentsTxt {
    height: 135px;
}

#CompositeReportDiv .removelink {
    background-image: url(../images/crosses.png);
    background-position: -36px 3px;
    background-repeat: no-repeat;
    /*	background-attachment: scroll; */
    display: inline-block;
    width: 11px;
    height: 13px;
    text-decoration: none;
    margin-left: 5px;
    cursor: pointer;
}

#CompositeReportDiv td .removelink:hover {
    background-color: #3b5998;
    background-position: -24px 3px;
}

.ReportDiv_Inner {
    overflow: auto;
    height: 200px;
}

.ReportWindowHeader {
    background-color: #8b9dc3;
    vertical-align: middle;
    line-height: 25px; /* vertical-align */
    padding: 0 10px;
    color: White;
    font-weight: 700;
}

    .ReportWindowHeader input {
        display: inline;
        background-color: #43609c;
        border: 1px solid black;
        border-top: 1px solid white;
        border-left: 1px solid white;
        color: White;
    }

.ReportWindowFooter {
    line-height: 35px; /* vertical-align */
    background-color: #8b9dc3;
    text-align: right;
    padding: 0 5px;
}

    .ReportWindowFooter input {
        display: inline;
        background-color: #43609c;
        border: 1px solid black;
        border-top: 1px solid white;
        border-left: 1px solid white;
        color: White;
    }
#modal_overlay {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: rgba(0,0,0,0.6);
    z-index: 2;
}

#modal_container {
    width: 600px;
    /* height: 400px; */
    position: fixed;
    top: 20px;
    left: 20px;
    background-color: white;
    border: solid 1px #333;
    padding: 5px;
    box-shadow: 5px 5px 5px #444;
    z-index: 3;
}

    #modal_container h1 {
        margin-top: 0;
        border-bottom: solid 2px #FF9900;
        font-size: larger;
    }

    #modal_container .EditFormContent {
        position: absolute;
        width: 595px;
        /* height: 300px; */
        margin-top: 25px;
        top: 10px;
        left: 5px;
        overflow: auto;
    }

    #modal_container .ButtonBox {
        position: absolute;
        top: 340px;
        right: 5px;
        height: 60px;
        width: 180px;
        text-align: right;
    }

    #modal_container .message {
        position: absolute;
        height: 60px;
        width: 450px;
        top: 340px;
        left: 5px;
        overflow: auto;
        font-size: smaller;
    }

    /* Edit 2014 */
    #modal_container #ButtonBox {
        float: right; /*border: dashed 2px red; */
    }

    #modal_container #Footer {
        position: absolute;
        bottom: 5px;
        left: 5px;
        right: 5px; /*border: dashed 2px blue;*/
    }

    #modal_container #EditFormContent { /* border: dashed 2px green; */
    }

.edittable {
    width: 100%;
}

    .edittable * {
        box-sizing: border-box;
    }

div.multicol {
    vertical-align: top;
    display: inline-block;
    box-sizing: border-box;
    vertical-align: top;
}

div.cols2 {
    width: calc(100% / 2);
}

div.cols3 {
    width: calc(100% / 3);
}

div.cols4 {
    width: calc(100% / 4);
}

.edittable > tbody > tr {
    background-color: #ccc;
    vertical-align: top;
    padding: 3px;
}

    .edittable > tbody > tr > td:first-child {
        width: 33%;
    }

.edittable td input {
    width: 100%;
    box-sizing: border-box;
    padding: 3px;
}

    .edittable td input[type=checkbox] {
        width: auto;
    }

.edittable td select {
    width: 100%;
    box-sizing: border-box;
    padding: 3px;
}

.edittable td textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 3px;
    resize: none;
}

.Good {
    border: 5px solid green;
    background-color: #ccffcc !important;
}

    .Good:hover {
        background-color: #00ff00 !important;
    }

.Bad {
    border: 5px solid red;
    background-color: #ffcccc !important;
}

    .Bad:hover {
        background-color: #ff0000 !important;
    }

.tablelist-navigation ul {
    padding: 0;
    margin: 0;
    list-style-type: none;
    font-size: x-small;
}

    .tablelist-navigation ul li {
        display: inline;
    }

.tablelist-navigation li img {
    border: 0;
    padding: 0;
    margin: 0;
    top: 4px;
    position: relative;
}

.tablelist-sortedcol-desc {
    background: #76879d url(../images/tablelist-down.png) no-repeat scroll center right !important;
    cursor: pointer;
}

.tablelist-sortedcol-asc {
    background: #76879d url(../images/tablelist-up.png) no-repeat scroll center right !important;
    cursor: pointer;
}

.tablelist-sortable:hover {
    background-color: #76879d;
}
.narrowpage {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    background: #FAFAFA; /* Experimental */
}
.widepage {
    padding: 0 1rem;
}
#search1Div input {
    background-color: var(--colours-searchbox-bg);
    color: var(--colours-searchbox-fg);
    border: solid 1px var(--colours-searchbox-border);
}
    #search1Div input::placeholder {
        color: var(--colours-searchbox-placeholder);
    }

.statstable tr {
    background-color: var(--colours-tablelist-row1-bg);
    color: var(--colours-tablelist-row1-fg);
}

    .statstable tr:nth-child(even) {
        background-color: var(--colours-tablelist-row2-bg);
        color: var(--colours-tablelist-row2-fg);
    }

.statstable td { padding: 5px;
}

.statstable a {
    text-decoration: none;
    padding: 3px;
    color: var(--colours-linkcolour);
    display: block;
    width: 100%;
    border-bottom: 1px solid transparent;
}

.statstable a {
    text-decoration: none;
}

.tablelist input[type=number] {
    width: 50px;
}

.statstable .smallfooter {
    font-size: xx-small;
}

.statstable tr:hover {
    background-color: var(--colours-tablelist-hover-bg);
    color: var(--colours-tablelist-hover-fg);
}

    .statstable tr:hover a {
        text-decoration: underline;
    }
#CustomInfoDiv {
}

    #CustomInfoDiv dl {
        padding: 0;
        margin: 0;
    }

    #CustomInfoDiv dt {
        font-weight: 700;
        margin-top: 5px;
        border-top: solid 1px #AAA;
    }

    #CustomInfoDiv dd {
        margin: 0;
    }
#WallItemList {
    font-size: 80%;
    column-width: 40ch;
    column-rule: solid 1px #AAA;
}

div.wallitem {
    display: flex;
    margin-bottom: 0.5ch;
    break-inside: avoid;
    break-after: auto;
    padding: 1ch;
    background-color: var(--colours-wallitem-bg);
    color: var(--colours-wallitem-fg);
}

    div.wallitem img {
    }

    div.wallitem p {
        margin: 0;
        margin-left: 1ch;
    }
    div.wallitem p a {
        color: blue;
    }

#CustomInfoDiv {
}

    #CustomInfoDiv dl {
        padding: 0;
        margin: 0;
    }

    #CustomInfoDiv dt {
        font-weight: 700;
        margin-top: 5px;
        border-top: solid 1px #AAA;
    }

    #CustomInfoDiv dd {
        margin: 0;
    }

.CustomButtonBox {
    float: right;
    width: 90px;
    text-align: right;
    vertical-align: top;
}

dialog {
    box-shadow: rgb(0 0 0 / 40%) 5px 5px 5px;
    border: solid 1px black;
    max-width: 90%;
    min-width: 33%;
}

    dialog textarea {
        padding: 5px;
    }

    dialog::backdrop {
        background: repeating-linear-gradient( 45deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2) 1px, rgba(0, 0, 0, 0.3) 1px, rgba(0, 0, 0, 0.3) 20px );
        backdrop-filter: blur(3px);
    }

.mainmenuheading summary {
    color: #9CDCFE;
    font-weight: bold;
}

#searchDiv {
    flex-direction: column;
}

/* Wide Screen */
@media all and (min-width: 850px) {
    #search1Div
{
    display: flex;
}
#search2Div {
    display: none;
}
#searchicon {
    display: none;
}
}

/* Not Wide Screen */
@media all and (max-width: 849px) {
    #menuDiv
{
    display: none;
    position: fixed;
    top: 48px;
    left: 0;
    bottom: 0;
}

body {
    margin-left: 0 !important;
}


#search1Div {
    display: none;
}


#search2Div {
    display: flex;
}


#searchicon {
    display: block;
}


}

#userDiv {
    right: 0;
    position: relative;
    background-color: white;
    border: solid 1px #AAA;
    padding: 0;
    font-size: 12px;
    border-radius: 4px;
    box-shadow: rgba(0, 0, 0, 0.133) 0px 3.2px 7.2px 0px, rgba(0, 0, 0, 0.11) 0px 0.6px 1.8px 0px;
    min-width: 200px;
}
#userDiv section:first-child {
    margin-top: 10px;
}
#userDiv .username {
    font-weight: bold;
}
#userDiv .useremail {
    font-size: x-small;
}
#userDiv > section {
    padding-bottom: 6px;
    border-bottom: solid 1px #CCC;
    margin-bottom: 6px;
}
#userDiv section:last-child {
    border-bottom: 0 !important;
    padding-bottom: 0 !important;
}
#userDiv > * {
    display: block;
    padding: 10px;
    color: black;
    padding: 3px 12px;
}
#userDiv a {
    display: block;
    padding: 10px;
    color: black;
    padding: 6px 12px;
    border: solid 1px #CCC;
    background-color: #FAFAFA;
    border-radius: 3px;
    margin: 3px;
    text-decoration: none;
}
#search1Div {
    flex-grow: 1;
}

    #search1Div > input {
        flex-grow: 1;
        border-radius: 5px;
        font-size: 14px;
        padding: 6px;
        font-family: inherit;
    }