﻿html {
    font-family: sans-serif;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    text-size-adjust: 100%;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    font-family: Segoe UI,SegoeUI,"Helvetica Neue",Helvetica,Arial,sans-serif;
}
* {
    outline: none;
    font-family: Segoe UI,SegoeUI,"Helvetica Neue",Helvetica,Arial,sans-serif;
    /*font-size: 15px;*/
}

.hidden {
    display: none !important;
    overflow: hidden !important;
}

/*Legend*/
.planner-legend {
    position: absolute;
    top: 5px;
    width: 500px;
    bottom: 5px;
    right: 0;
    display: block;
    z-index: 10;
    border: solid 1px rgb(29,29,29);
    background-color: rgb(255,255,255);
    overflow-y: auto;
}
.right-panel .planner-legend {
    z-index: 9999;
}
    .planner-legend.how-to-legend {
        width: 710px;
        padding: 10px;
        overflow-y: auto;
    }

p.how-to-header {
    font-weight: bold;
    font-size: 1.5rem;
}

.planner-legend ul, ul.instructions {
    list-style-type: square;
    line-height: 1.8rem;
    font-size: 1.05rem;
}

    .planner-legend ul.child-list, ul.instructions ul.child-list {
        list-style-type: square;
        margin-bottom: 5px;
    }
/*Tables*/
.header {
    padding-left: 5px;
    padding-top: 5px;
    display: grid;
    gap: 1px 3px;
    grid-template-rows: 40px;
    width: 100%;
    height: 45px;
    border-bottom: solid 2px var(--theme-colour);
}
    .header.double {
        grid-template-rows: 40px 40px;
        height: 90px;
    }
    .header .header-column {
        font-weight: bold;
        font-size: 1.05rem;
        padding: 5px 10px;
        padding-left: 0;
    }
    .header .header-column.text-centre {
        text-align: center;
    }
.body {
    display: grid;
    gap: 1px 3px;
    width: 100%;
    height: calc(100% - 47px);
    border-bottom: solid 2px var(--theme-colour);
    overflow-y: auto;
    grid-auto-rows: minmax(45px, max-content);
    padding-left: 5px;
    z-index: 1;
}
    .body.narrow {
        grid-auto-rows: minmax(30px, max-content);
    }
    .body.narrow .label-wrapper {
        line-height: 1.5rem;
        min-height:auto;
    }
.body.virtualize {
    display: block;
}
.body.virtualize .row-item, .main-grid.virtualize .row-item {
    position: relative;
    display: grid;
    gap: 1px 3px;
    width: 100%;
    height: auto;
    overflow: visible;
    grid-auto-rows: minmax(45px, max-content);
    z-index: 1;
}
    .body.virtualize .row-item:hover {
        z-index: 2;
    }
    .body.virtualize .row-item:nth-child(odd) {
        background-color: rgba(97,37,116, 0.10);
    }
    .body.double-header {
        height: calc(100% - 92px);
    }
    .body.no-header {
        height: unset;
    }

main.print .body {
    height: auto;
}

main.print .body.emar .label-wrapper, main.print .header.emar .label-wrapper {
    padding: 5px;
    min-height: 50px;
    page-break-inside:avoid;
}
main.print .header.emar {
    grid-template-rows: unset;
    grid-auto-rows: 50px;
    grid-row-gap: 3px;
}
.row-underline {
    position: relative;
    height: 100%;
    border-bottom: 1px solid var(--theme-colour);
    z-index: 0;
}
    .row-underline.thick {
        border-bottom-width: 3px;
    }
main.print .body.emar .row-underline {
    border-bottom-width: 3px;
}

.stripe {
    position: relative;
    height: 100%;
    background-color: rgba(97,37,116, 0.10);
    z-index: 0;
}
    .stripe.highlight {
        background-color: rgba(97,37,116, 0.3);
    }
    .stripe.faded {
        background-color: rgba(97,37,116, 0.5);
    }
.sub-row {
    padding-left: 5px;
    display: grid;
    gap: 1px 3px;
    grid-template-rows: 40px;
    width: 100%;
    height: 45px;
}
.body .grid-cell {
    padding: 0;
    margin: 0;
    display: block;
}

.print-iframe {
    height: calc(100% - 10px);
    width: calc(100% - 10px);
    margin: 5px;
    margin-bottom: 0;
    border: none;
}
.page-dim {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0,0,0,0.5);
    z-index: -1;
    display: none;
    min-width: 1440px;
}

    .page-dim.show {
        z-index: 111;
        display: block;
    }

        .page-dim.show button.hide-popup {
            position: absolute;
            z-index: 1;
            left: 30px;
            top: 30px;
            height: 50px;
            width: 50px;
            background-color: rgb(255,255,255);
            border-radius: 50%;
            border: 3px solid var(--theme-colour);
        }

            .page-dim.show button.hide-popup::before {
                color: var(--theme-colour);
                content: "X";
                font-weight: bold;
                font-size: 2rem;
            }

/*--App Registration--*/
.app-reg-grid {
    display: grid;
    grid-template-columns: minmax(1040px, 1fr) 350px;
    gap: 5px 5px;
    grid-template-rows: 45px 45px 1fr;
    height: 100%;
}

.app-reg-list {
    grid-row: 1/4;
    grid-column: 2;
    display: grid;
    grid-template-columns: 140px 45px 125px;
    grid-auto-rows: max-content;
    overflow-y: auto;
    height: 100%;
}

.tool-tip {
    position: absolute;
    top: -5px;
    height: auto;
    min-height: 80px;
    padding: 10px;
    left: -110px;
    right: -10px;
    border: 1px solid rgb(128,128,128);
    background: rgb(255,255,255);
    z-index: 999999;
    display: none;
}

    .tool-tip span {
        white-space: pre-wrap;
        line-height: 1rem;
        font-size: 0.9rem;
        display: block;
        margin-bottom: 7px;
    }

.label-wrapper.show-scopes:hover, .input-wrapper.show-scopes:hover {
    z-index: 999999;
}

    .label-wrapper.show-scopes:hover .tool-tip, .input-wrapper.show-scopes:hover .tool-tip {
        display: block;
    }
input:disabled, button:disabled {
    cursor: not-allowed !important;
}
.strike-through {
    border: 1px solid red;
    width: 100%;
    height: 1px;
    z-index: 0;
    margin-top: 23px
}
/*Daily Message*/
pre.data-message {
    width: 100%;
    font-size: 1rem;
    line-height: 1.3rem;
    white-space: pre-wrap;
    overflow-y: visible;
    font-family: Segoe UI,SegoeUI,"Helvetica Neue",Helvetica,Arial,sans-serif;
    padding: 5px;
    margin: 0;
    height: auto;
}

@media print {
    aside.side-menu {
        display: none;
    }
    header { display: none; }
    body {display: block; }
}
