* {
    margin: 0;
    padding: 0;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
    overflow: hidden;
    height: 100%;
    font-size: 100%;
    font-family: Arial, Helvetica, sans-serif;
    background-color: #ffffff;
    color: #000000;
    overflow-x: hidden;
}

body, form, table, tr, th, td, img, ol, ul, li, div, span, a, p {
    border-width: 0px;
    vertical-align: middle;
}

input, textarea, button {
    font-family: Arial, Helvetica, sans-serif;
    border-width: 1px;
    border-radius: 4px;
    padding: 2px;
}

button, input[type="submit"] {
    min-width: 80px;
    color: #000000;
    font-weight: normal;
    border: 1px #000000 solid;
    background-color: #f0f0f0;
    border-radius: 4px;
    margin-right: 10px;
    font-size: 1em;
}

button:active:hover, input[type="submit"]:active:hover {
    background-color: #f0f0f0;
}

button:hover, input[type="submit"]:hover {
    background-color: #d0d0d0;
}

ol {
    margin-left: 12px;
    list-style-type: none;
    display: none;
}

br {
    display: none;
}

#testDiv {
    height: 100vh;
    width: 100vw;
}

.header {
    padding-top: 3px;
    padding-bottom: 1px;
    font-size: .9em;
    background-color: #0000ff;
    border-bottom: 1px solid #000000;
    position: fixed;
    left: 0px;
    top: 0px;
    height: 26px;
    width: 100vw;
    white-space: nowrap;
    overflow: hidden;

    a {
        color: #ffffff;
        margin: 0px 8px 0px 8px;
        padding: 0px 4px 0px 4px;
    }

    img {
        vertical-align: middle;
    }

}

#viewSelector {
    display: none;
}

a {
    color: #000000;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
    cursor: pointer;
}

a.a, a.cxxx { /* file link, a.c? */
    color: #0000ff;
    text-decoration: underline;
}

a.lb, a.mb, a.kb, a.vlb, a.vmb { /* blank list name, blank map name, blank key name, blank list value name, blank map value name */
    color: #c0c0c0;
    font-style: italic;
}

a.vl, a.vm { /* list value, map value */
    color: #408040;
}

li div label { /* checkbox and associated text */
    color: #0000a0;
    cursor: pointer;
}

#leftNav {

    font-size: .9em;
    position: absolute;
    width: 400px;
    top: 32px;
    left: 0px;
    margin: 0;
    overflow: auto;
    visibility: hidden;

    ol.ed, ol.ro { /* editable, read only */
        margin-left: 10px;
        display: block;
        padding-bottom: 150px;
    }

    li div {
        position: relative;
        padding: 4px 0px 4px 0px;
        width: 100%;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    li img { /* default padding for all images in a list item */
        padding: 2px 2px 2px 2px;
        cursor: pointer;
        vertical-align: middle;
    }

    li div label img { /* checkbox */
        padding: 2px 8px 2px 8px;
    }

    li > div > img + img, li.k > div > img, li.v > div > img { /* images through which a context menu can be displayed */
        cursor: url(/images/menucursor.cur), auto;
        margin-right: 6px;
    }

    li.v, li.e { /* value, empty */
        margin-left: 20px;
    }

    li.vx { /* hidden value */
        display: none;
    }

    li.e div { /* div containing empty image and text */
        color: #c0c0c0;
        font-style: italic;
    }
    
    li.e img { /* empty image */
        margin-right: 6px;
        cursor: default;
        pointer-events: none;
    }

    li div:has(> img[alt="Key"]) { /* list item div containing a key value pair */
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        padding-top: 0px;
    }

    li div > img[alt="Key"] { /* list item div image */
        order: 1;
    }

    li div > a.k, li div > a.kb { /* list item div key name, list item div blank key name */
        order: 2;
        font-size: smaller;
        flex-wrap: nowrap;
    }

    li div > a.vm, div > a.vmb { /* list item div map value, list item div blank map value */
        order: 3;
        display: block;
        margin-left: 26px;
        overflow: hidden;
        text-overflow: ellipsis;
        flex-basis: 90%;
    }

    a.lixxx, a.mi { /* a.li?, SEL for name with action (e.g., tasks, files) */
        color: #c0c0c0;
        background-color: #f8f8f8;
        margin-right: 5px;
        font-size: smaller;
        padding: 3px;
    }

    a.lixxx:hover, a.mi:hover { /* a.li?, SEL for name with action (e.g., tasks, files) */
        color: #0000ff;
    }

    #copyDiv, #cutDiv, #deleteDiv {
        z-index: 50;
        padding: 0;
        position: absolute;
        border: #000000 dotted 1px;
        opacity: .40;
        display: none;
    }

    #copyDiv {
        background-color: #a0ffa0;
    }

    #cutDiv {
        background-color: #ffffa0;
    }

    #deleteDiv {
        background-color: #ff0000;
    }

    #focusDiv {
        z-index: 40;
        padding: 0;
        position: absolute;
        background-color: #000000;
        opacity: .25;
        display: none;
    }

}

#widthDiv {
    padding: 0;
    position: absolute;
    visibility: hidden;
}

#resizeClone, #resizeHandle {
    position: absolute;
    width: 8px;
    top: 3px;
    left: 400px;
    margin-top: 20px;
    border-color: #000000;
    border-width: 0px 1px 0px 1px;
    width: 3px;
    cursor: e-resize;
}

#resizeClone {
    border-style: dotted;
    background-color: #ffffff;
    display: none;
    z-index: 20000;
}

#resizeHandle {
    border-style: solid;
    background-color: #0000ff;
    visibility: hidden;
}

#rightTabs {
    position: absolute;
    top: 0px;
    left: 400px;
    margin: 32px 0px 0px 20px;
    white-space: nowrap;
    border-bottom: 1px solid #0000ff;
    visibility: hidden;
}

#rightTabs button {
    font-size: .9em;
}

#rightWork {
    font-size: .9em;
    position: absolute;
    top: 0px;
    left: 400px;
    margin: 62px 0px 0px 20px;
    overflow: auto;
    visibility: hidden;
}

#viewDetails {

    padding-top: 10px;
    display: none;

    div.vdHeader > img {
        pointer-events: none;
    }

    .vdHeader a.io img, #vdList a.io img {
        padding: 2px;
        opacity: 1;
    }

    .vdHeader a.hi img, #vdList a.hi img {
        padding: 2px;
        opacity: 1;
    }

    a.io:hover img {
        opacity: 1;
    }

    a.io + img {
        cursor: url(/images/menucursor.cur), auto;
    }

    .vdHeader {

        padding: 0px 0px 10px 0px;
        font-weight: bold;
        display: flex;
        align-items: center;
        /*
        a + img + a, a + img + span, label {
            max-width: 50%;
        }

        a + img + a, a + img + span, label > img + span {
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        */
        a.menuItem {
            margin: 0px 0px 0px 16px;
            font-weight: normal;
        }

        img {
            padding: 2px 8px 2px 2px;
            cursor: pointer;
        }

        label {
            color: #0000a0;
            cursor: pointer;
            display: flex;
            align-items: center;
        }

        label img {
            margin: 0px 0px 0px 0px;
        }

    }

    #vdList {

        margin-left: 0px;
        padding-bottom: 150px;
        display: block;

        br {
            float: none; clear: left; display: block; margin: 0px; padding: 0px;
        }

        li {
            padding: 4px 0px;
            display: flex;
            align-items: center;
            border-bottom: 1px solid #ddddff;
        }

        li:has(div.vm), li:has(div.vmb) {
            flex-wrap: wrap;
        }

        li:has(+ li a.img) {
            border-bottom-width: 0px;
        }

        li * {
            float: left;
            padding: 0px 0px 0px 0px;
        }

        li.vx {
            display: none;
        }

        li.v, li.vo {
            margin-left: 0px;
        }

        li div, li a.a {
            position: relative;
            padding: 0px 0px 0px 0px;
            overflow-wrap: break-word;
            word-break: break-word;
        }

        img {
            padding: 2px 8px 2px 2px;
        }

        label {
            float: none;
            white-space: nowrap;
            display: flex;
            align-items: center;
        }

        label span {
            float: none;
            white-space: normal;
        }

        a.img {
            float: none;
            clear: left;
            display: block;
            margin: 0px 0px 0px 24px;
            padding: 0px 0px 6px 0px;
            width: 1%;
        }

        a.img img {
            float: none;
            border: 1px solid #000000;
            margin: 0px;
            padding: 0px;
        }

        a.img img.contentImage200 {
            margin-top: 4px;
        }

        a.c img {
            margin: -2px 10px 0px 17px;
        }

        div, a {
            white-space: normal;
        }

        div.lb, div.mb, div.kb, div.vlb, div.vmb, span.b {
            color: #c0c0c0;
            font-style: italic;
        }

        div.vl, div.vm {
            color: #408040;
        }

        div.k, div.kb {
            flex-basis: 50%;
            font-size: smaller;
        }

        div.vm, div.vmb {
            flex-basis: 90%;
            margin-left: 47px;
        }

        li > div.vm:nth-child(2), li > div.vmb:nth-child(2) {
            flex-basis: 99%;
            margin-left: 0px;
        }

    }

}


/* Menu related */

#menu {
    z-index: 60;
    font-size: .9em;
    display: none;
    position: absolute;
    padding: 20px;
}

#menuItems {
    padding-top: 2px;
    padding-bottom: 4px;
}

#menuInner {
    border: 2px outset #0000ff;
    background-color: #ffffff;
}

#menuHead {
    border-bottom: 1px solid #000000;
    color: #000000;
    background-color: #f0f0f0;
    padding: 2px 5px 2px 5px;
}

.miDivider {
    padding-top: 4px;
    margin-top: 4px;
    border-top: 1px solid #000000;
}

.miNoDivider {
    margin: 2px 0px 2px 0px;
}

.menuItem {
    color: #0000ff;
    margin: 0px 16px 0px 20px;
}

.menuEmpty {
    color: #c0c0c0;
    font-style: italic;
    margin: 0px 16px 0px 20px;
}


/* ? */

button.activeTab, button.tab {
    position: relative;
    top: 1px;
    cursor: pointer;
    border: 1px #0000ff solid;
    border-left-width: 0px;
    width: 80px;
    max-width: 80px;
    margin-right: 0px;
    padding-top: 1px;
    border-radius: 4px 4px 0px 0px;
}

.activeTab {
    background-color: white;
    border-bottom-color: #ffffff;
    font-weight: bold;
}

/* ? */

#inputKeyName, #textareaKeyName {
    padding: 3px;
    background-color: orange;
    font-size: .7em;
    border-top: 1px solid #0000ff;
    border-left: 1px solid #0000ff;
    border-right: 1px solid #0000ff;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
    display: none;
}

#textSize {
    padding: 3px;
    background-color: #d0d0d0;
    font-size: .7em;
    text-align: right;
    margin-left: auto;
}

#toolbar {
    align-items: center;
    flex-wrap: nowrap;
    padding: 2px;
    background-color: #d0d0d0;
    display: none;
    text-wrap: nowrap;
    position: absolute;
    z-index: 150;
    border-bottom: 1px solid #0000ff;
    border-left: 1px solid #0000ff;
    border-right: 1px solid #0000ff;
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
}

.toolbarLink {
    font-size: .8em;
    padding: 10px 5px;
    color: #0000ff;
}

.toolbarLinkDisabled {
    font-size: .8em;
    padding: 10px 5px;
    pointer-events: none;
    cursor: default;
    color: #808080;
}

#input, #textarea {
    border: 1px solid #0000ff;
    font-size: .9em;
}

#input:focus, #textarea:focus {
    outline: none;
}

#inputDiv, #textareaDiv {
    overflow: visible;
    position: absolute;
    display: none;
    z-index: 200;
}

#selectDiv {
    border: 1px solid #0000ff;
    border-top: 0px;
    position: absolute;
    display: none;
    z-index: 200;
    padding: 2px;
    background-color: #f0f0f0;
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
}

#selectDiv a {
    display: block;
    text-decoration: none;
    cursor: pointer;
    margin-right: auto;
}

#selectDiv a:hover {
    background-color: #d0d0d0;
}

#selectIcon {
    margin-top: 1px;
    margin-left: -16px;
    position: absolute;
    display: none;
    z-index: 200;
    cursor: pointer;
    height: 21px;
    width: 15px;
    text-align: center;
    border-top-right-radius: 4px;
}

#selectIcon:hover {
    background-color: #d0d0d0;
}

/* ? */

ol.dd {
    margin-left: 0px;
    display: block;
    padding-bottom: 5px;
}

ol.dd a {
    color: #0000ff;
    font-size: .9em;
}

ol.dd a.b {
    font-style: italic;
}

ol li {
    white-space: nowrap;
}

/* ? */

#dpCtrl {
    padding: 2px;
    font-weight: bold;
    background-color: #e0e0e0;
    border: 1px solid #d0d0d0;
}

#dpCtrl a {
    padding: 2px;
    margin: 0px;
}

#dpCtrl select {
    font-size: .9em;
    color: #404040;
}

#dpItem {
    padding: 4px;
}

.datePicker {
    border: 0px;
    font-size: .9em;
}

.datePicker tr.dpExtra {
    visibility: hidden;
}

.datePicker th {
    text-align: center;
    width: 18px;
    font-weight: normal;
    padding-bottom: 3px;
}

.datePicker td {
    text-align: right;
    padding: 1px;
    width: 18px;
    border: 1px solid #d0d0d0;
    color: #404040;
    background-color: #e0e0e0;
}

.datePicker td.dpCur {
    background-color: #ffffff;
}

.datePicker td.dpSel {
    color: #ff0000;
}

.datePicker td a {
    margin: 0px;
    font-size: 1em;
}

/* ? */

.timePicker {
    border: 0px;
    font-size: 1em;
}

.timePicker td {
    text-align: right;
    padding: 1px;
    width: 18px;
}

.timePicker td a {
    margin: 0px;
    font-size: 1em;
}

#viewClip {
    padding-top: 10px;
    display: none;
    height: 100%;
}

#viewUpload, #viewLog, #viewXML, #viewJson, #viewShare {
    padding-top: 10px;
    display: none;
    height: 100%;
}

#viewLogText, #viewXMLText, #viewJsonText {
    font-size: .9em;
}

#upload {
    height: 600px;
    width: 500px;
}

#uploadMsg {
    display: block;
}

#uploadMsg br {
    display: block;
}

#uploadMsg input {
    font-size: 1em;
}

#clipTable {
    margin-top: 10px;
    border: 1px solid #000000;
}

#clipTable tr.even {
    background-color: #e0e0e0;
}

#clipTable th {
    color: #ffffff;
    background-color: #0000ff;
    text-align: left;
    padding: 2px 16px 2px 4px;
    border-bottom: 1px solid #000000;
}

#clipTable td {
    color: #000000;
    text-align: left;
    padding: 2px 16px 2px 4px;
    white-space: nowrap;
}

#clipTable td a.a {
    margin-left: 0px;
}

div.share {
    padding: 8px;
    margin: 4px 20px 4px 0px;
    background-color: #ffff80;
    border: 1px solid #008000;
}

label.share {
    display: block;
    font-weight: bold;
    margin-bottom: 4px;
}

input.share {
    width: 50%;
    padding-right: 10px;
    color: #606060;
}

#fileWarning {
    padding: 2px;
    margin-left: 10px;
    font-weight: bold;
    color: #ffff00;
    background-color: #000000;
    display: none;
}
#testDiv { border-width: 0px; width: 100%; height: 100%; top: 0px; left: 0px; position: absolute; visibility: hidden; }
#clearModalDiv { background-color: #000000; border-width: 0px; width: 100%; height: 100%; top: 0px; left: 0px; position: absolute; display: none; z-index: 50; opacity: 0.5; }
#alertModalDiv { background-color: #000000; border-width: 0px; width: 100%; height: 100%; top: 0px; left: 0px; position: absolute; display: none; z-index: 350; opacity: 0.25; }
#popupModalDiv { background-color: #000000; border-width: 0px; width: 100%; height: 100%; top: 0px; left: 0px; position: absolute; display: none; z-index: 150; opacity: 0.25; }

#alertDiv { font-size: .75em; background-color: #ffffff; font-family: Arial, Helvetica, sans-serif; border-style: outset; border-width: 2px; border-color: #ff8000; position: absolute; display: none; z-index: 400; }
#alertHead { background-color: #ff8000; border-bottom: 1px solid #000000; color: #ffffff; padding: 3px; }
#alertBody { position: relative; overflow: auto; margin: 6px 20px 10px 10px; }
#alertMessage { margin: 10px 0px 20px 0px; }
#alertButton { margin-top: 10px; }

#popupDiv { font-size: .75em; background-color: #f0f0f0; font-family: Arial, Helvetica, sans-serif; border-style: outset; border-width: 2px; border-color: blue; position: absolute; display: none; z-index: 200; }
#popupHead { background-color: #0000ff; border-bottom: 1px solid #000000; color: #ffffff; padding: 3px; }
#popupHead A { color: #c0c0c0; text-decoration: none; margin: 0px; padding: 0px; margin-left: 20px; }
#popupHead A:hover { color: #ffffff; text-decoration: underline; }
#popupBody { overflow-x: hidden; overflow-y: scroll; position: relative; background-color: #ffffff; margin-bottom: 20px; }
#popupError { color: #ff0000; margin-left: 12px; visibility: hidden; }
#popupSave { margin: 8px; padding: 2px 20px 2px 20px; }
.popupNew { position: absolute; height: 19px; width: 170px; border-bottom: 1px #c0c0c0 solid; }
.popupNew IMG { vertical-align: top; }

.popupTable { margin: 0px; width: 100%; }
.popupMenu { background-color: #e0e0e0; }
.popupMenu TD { border-bottom: 1px solid #c0c0c0; padding: 3px 0px 3px 6px; }
.popupMenu A { color: #0000ff; cursor: pointer; margin: 0px; padding: 0px; margin-right: 12px; text-decoration: none; }
.popupMenu A:hover { text-decoration: underline; }
.popupGroup TD { border-bottom: 1px solid #000000; padding: 10px 0px 3px 6px; }
.popupForm TD { border-width: 0px; padding: 10px 0px 3px 12px; }
.popupForm BR { display: block; }
.popupLine TD { border-bottom: 1px solid #c0c0c0; padding: 3px 0px 3px 12px; }
.popupLine A { color: #0000ff; cursor: pointer; margin: 0px; padding: 0px; text-decoration: none; }
.popupLine A:hover { text-decoration: underline; }
.popupLine TD { border-bottom: 1px solid #c0c0c0; padding: 3px 12px 3px 12px; }
.popupLine TD { border-bottom: 1px solid #c0c0c0; padding: 3px 12px 3px 12px; }
.popupLine TD.popupActions { width: 1px; padding-right: 20px; }
.popupLine TD.popupActions A { border-width: 0px; margin: 0px; padding: 0px; margin-right: 12px; }

#authModalDiv {
    background-color: #000000;
    border-width: 0px;
    width: 100%;
    height: 100%;
    top: 0px;
    left: 0px;
    position: absolute;
    display: none;
    z-index: 250;
    opacity: 0.25;
}

#authDiv {
    font-size: .8em;
    background-color: #ffffff;
    font-family: Arial, Helvetica, sans-serif;
    border-style: outset;
    border-width: 2px;
    border-color: #ffff00;
    position: absolute;
    display: none;
    z-index: 300;
}

#authHead {
    background-color: #ffff00;
    border-bottom: 1px solid #000000;
    color: #000000;
    padding: 3px;
}

#authHead A {
    color: #808080;
    text-decoration: none;
    margin: 0px;
    padding: 0px;
    margin-left: 20px;
}

#authHead A:hover {
    color: #000000;
    text-decoration: underline;
}

#authBody {
    position: relative;
    margin: 6px 20px 10px 10px;
}

#authMessage {
    margin: 10px 0px 20px 0px;
    display: none;
}

#authGroup {
    margin: 10px 0px 0px 10px;
    display: none;
}

#authGroup SELECT {
    margin-right: 8px;
    min-width: 180px;
}

#authGroupError {
    color: #ff0000;
    visibility: hidden;
}

#authRole {
    margin: 10px 0px 20px 12px;
    display: none;
}

#authRole LABEL {
    margin-right: 8px;
}

#authRoleError {
    color: #ff0000;
    visibility: hidden;
}

#authSignIn {
    margin-bottom: 20px;
    display: none;
}

#authSignInMessage {
    margin-top: 10px;
}

#authPassword {
    font-size: 1em;
    margin: 0px 6px 0px 6px;
}

#authFailed {
    color: #ff0000;
    visibility: hidden;
}

#authButton {
    margin-top: 10px;
}

#uploadModalDiv {
    background-color: #000000;
    border-width: 0px;
    width: 100%;
    height: 100%;
    top: 0px;
    left: 0px;
    position: absolute;
    display: none;
    z-index: 50;
    opacity: 0.25;
}

#uploadDiv {
    font-size: .8em;
    background-color: #ffffff;
    border-style: outset;
    border-width: 2px;
    border-color: #ff8000;
    border-radius: 4px;
    position: absolute;
    display: none;
    z-index: 400;
}

#uploadHead {
    background-color: #ff8000;
    border-bottom: 1px solid #000000;
    color: #ffffff;
    padding: 3px;
}

#uploadHead A {
    color: #c0c0c0;
    text-decoration: none;
    margin: 0px;
    padding: 0px;
    margin-left: 20px;
}

#uploadHead A:hover {
    color: #ffffff;
    text-decoration: underline;
}

#uploadBody {
    padding: 10px 20px 10px 10px;
}

#uploadFileInput {
    display: none;
}

#uploadFileList {
    font-size: smaller;
    margin: 10px 0px;
}

#uploadFileInputLabel {
    border: 1px #000000 solid;
    background-color: #f0f0f0;
    border-radius: 4px;
    margin-right: 10px;
    padding: 2px;
    font-size: 1em;
}

#uploadFileInputLabel:active:hover {
    background-color: #f0f0f0;
}

#uploadFileInputLabel:hover {
    background-color: #d0d0d0;
}

#uploadButton {
    border: 1px #000000 solid;
    background-color: #f0f0f0;
    border-radius: 4px;
    margin-right: 10px;
    padding: 2px;
    font-size: 1em;
    display: none;
}

#uploadButton:active:hover {
    background-color: #f0f0f0;
}

#uploadButton:hover {
    background-color: #d0d0d0;
}
