﻿/*Red       rgb(200,10,10);*/
/*DarkGrey  rgb(65,64,66);*/
/*Blue      rgb(10,110,178);*/

:root {
    --main-color: rgb(200,10,10);
}

body {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    background-color: rgb(237,237,237);
    font-family: Arial Arial, Helvetica, sans-serif;
    /*font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;*/
    font-size: 12px;
}

/*Please read this article on floats  https://internetingishard.com/html-and-css/floats/ */


.panelleft {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    float: left;
    width: 200px;
    height: calc(100vh - 20px);
    background-color: rgb(237,237,237);
}


.panelmain {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    display: block;
    height: calc(100vh - 20px);
}

.panelright {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    float: right;
    width: 200px;
    height: calc(100vh - 20px);
    background-color: rgb(237,237,237);
}

.panelfooter {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    width: 100%;
    height: 20px;
    background-color: var(--main-color);
}

.panelcontent {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    height: calc(100% - 40px);
    background-color: white;
    overflow: auto;
    border: 5px double lightgrey;
}



.menu {
    box-sizing: border-box;
    background-color: var(--main-color);
    margin: 0;
    height: 40px;
    padding: 0;
    overflow-x: auto;
    color: rgb(243,243,243);
}

    .menu ul {
        padding: 0;
        margin: 0;
        box-sizing: border-box;
    }

        .menu ul li {
            padding: 0;
            margin: 0;
            box-sizing: border-box;
            float: left;
            display: block;
            list-style: none;
            border-left: 1px solid #caa29d;
            border-right: 1px solid #651f17;
        }

            .menu ul li a {
                font-size: 13px;
                font-weight: bold;
                line-height: 40px;
                padding: 8px 20px;
                color: rgb(255,255,255);
                text-decoration: none;
            }

            .menu ul li:hover {
                background-color: rgb(65,64,66);
                border-right: 1px solid rgb(14,89,130);
            }


            .menu ul li .menudropdown-content {
                display: none;
                position: absolute;
                background-color: #f9f9f9;
                min-width: 160px;
                box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2);
                z-index: 1;
            }

                .menu ul li .menudropdown-content a {
                    color: black;
                    padding: 8px 20px;
                    text-decoration: none;
                    display: block;
                    text-align: left;
                }

                    .menu ul li .menudropdown-content a:hover {
                        color: white;
                        background-color: var(--main-color);
                    }

.menudropdown:hover .menudropdown-content {
    display: block;
}


.selected {
    background-color: yellow;
}



.tabmenu {
    margin: 0;
    box-sizing: border-box;
    background-color: white;
    width: 100%;
    padding: 5px 0px 0px 0px;
    text-align: left;
    overflow-x: auto;
    color: black;
    font-size: 16px;
    float: left;
    border-bottom: 1px solid #ddd;
}

    .tabmenu ul {
        padding: 0;
        margin: 0;
        box-sizing: border-box;
    }

        .tabmenu ul li {
            padding-left: 10px;
            padding-right: 10px;
            padding-top: 5px;
            padding-bottom: 5px;
            margin: 0px 1px 0px 1px;
            box-sizing: border-box;
            float: left;
            display: block;
            list-style: none;
            border-radius: 12px 12px 0 0;
            border-left: 1px solid #ddd;
            border-top: 1px solid #ddd;
            border-right: 1px solid #ddd;
        }

            .tabmenu ul li:hover {
                color: white;
                background-color: var(--main-color);
            }


            .tabmenu ul li a {
                padding: 0 5px;
                color: black;
                text-decoration: none;
            }

                .tabmenu ul li a:hover {
                    color: white;
                }





.viewmenu {
    margin: 0;
    box-sizing: border-box;
    background-color: white;
    width: 100%;
    height: 30px;
    padding: 6px 3px 6px 3px;
    text-align: left;
    overflow-x: auto;
    color: black;
    font-size: 14px;
    float: left;
    border-bottom: 1px solid #ddd;
}

    .viewmenu ul {
        padding: 0;
        margin: 0;
        box-sizing: border-box;
    }

        .viewmenu ul li {
            padding: 0;
            margin: 0;
            box-sizing: border-box;
            float: left;
            display: block;
            list-style: none;
        }

            .viewmenu ul li a {
                padding: 0 5px;
                color: black;
                text-decoration: none;
            }

                .viewmenu ul li a:hover {
                    color: white;
                    background-color: var(--main-color);
                }


            .viewmenu ul li .menudropdown-content {
                display: none;
                position: absolute;
                background-color: #f9f9f9;
                min-width: 160px;
                box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2);
                z-index: 1;
            }

                .viewmenu ul li .menudropdown-content a {
                    color: black;
                    padding: 8px 20px;
                    text-decoration: none;
                    display: block;
                    text-align: left;
                }

                    .viewmenu ul li .menudropdown-content a:hover {
                        color: white;
                        background-color: var(--main-color);
                    }







.menuheaderbtn {
    /*float: right;*/
    padding: 8px;
    font-weight: normal;
    font-size: 18px;
    margin-top: 0;
}

    .menuheaderbtn:hover {
        font-weight: bold;
        font-size: 20px;
    }




.clear {
    box-sizing: border-box;
    height: 2px;
    clear: both;
}



.popupdiv {
    position: absolute;
    z-index: 9;
    background-color: #f1f1f1;
    font-size: 14px;
    text-align: left;
    border: 2px solid #d3d3d3;
}

.popupdivheader {
    padding: 5px;
    cursor: move;
    z-index: 10;
    /*background-color: #2196F3;*/
    background-color: var(--main-color);
    color: #fff;
}




input, select, textarea {
    box-sizing: border-box;
    width: 100%;
    padding: 4px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin: 5px 0 5px 0;
    display: inline-block;
    resize: vertical;
}

    input:hover {
        color: black;
        border: 2px solid black;
        font-weight: bold;
        cursor: pointer;
    }

    input:invalid, out-of-range {
        background-color: lightcoral;
    }

    input:valid {
        background-color: none;
    }



.blockerscreen {
    margin: 0;
    box-sizing: border-box;
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 10; /* Sit on top */
    padding-top: 20px; /* Location of the box */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.1); /* Black w/ opacity */
}






.modaledit {
    margin: 0;
    box-sizing: border-box;
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 8; /* Sit on top */
    padding-top: 20px; /* Location of the box */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

.modaleditform {
    box-sizing: border-box;
    position: relative; /* for animation */
    background-color: #fefefe;
    color: black;
    margin: auto;
    padding: 30px;
    border: 1px solid #888;
    border-radius: 8px;
    width: 90%;
    height: 90%;
}


.modal_close {
    position: absolute;
    top: 3px;
    right: 3px;
    font-size: 25px;
    color: darkgray;
    margin-left: 0;
}

    .modal_close:hover, .modal_close:focus {
        color: black;
        text-decoration: none;
        cursor: pointer;
    }


.scrollselect a {
    float: none;
    font-size: 14px;
    color: black;
    margin: 5px;
    padding: 12px 16px;
    text-decoration: none;
    width: 230px;
    display: inline-block;
    text-align: left;
}

    .scrollselect a:hover {
        background-color: #ddd;
    }




.input-container {
    display: flex;
    width: 100%;
    margin-bottom: 5px;
}

.input-icon {
    padding: 10px;
    background: dodgerblue;
    color: white;
    min-width: 30px;
    text-align: center;
}


.input-field {
    font-size: 16px;
    width: 100%;
    padding: 10px;
    outline: none;
}

    .input-field:focus {
        border: 2px solid dodgerblue;
    }

    .input-field:hover {
        box-shadow: grey 0 8px 16px 0;
    }







.filters {
    height: 100%;
    width: 100%;
    background-color: white;
    overflow-x: hidden;
    /*border-left: 5px double lightgrey;*/
}


.filterrow {
    padding: 0 5px 0 10px;
}

.filterbtn {
    /*float: right;*/
    padding: 0 5px 0 10px;
    font-weight: normal;
    font-size: 14px;
    color: darkgray;
}

    .filterbtn:hover {
        font-weight: bold;
        font-size: 16px;
        color: black;
    }

/* Clear floats after the columns */
.filterrow:after {
    content: "";
    display: table;
    clear: both;
}


.col-15 {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    float: left;
    width: 15%;
    margin-top: 6px;
}

.col-20 {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    float: left;
    width: 20%;
    margin-top: 6px;
}

.col-25 {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    float: left;
    width: 25%;
    margin-top: 6px;
}

.col-30 {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    float: left;
    width: 30%;
    margin-top: 6px;
}

.col-40 {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    float: left;
    width: 40%;
    margin-top: 6px;
}


.col-50 {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    float: left;
    width: 50%;
    margin-top: 6px;
}

.col-60 {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    float: left;
    width: 60%;
    margin-top: 6px;
}


.col-75 {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    float: left;
    width: 75%;
    margin-top: 6px;
}

.col-100 {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    float: left;
    width: 100%;
    margin-top: 6px;
}



.panel {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    float: left;
    width: 100%; /*Default width, should be set on creation*/
    background-color: white;
    /*border: 1px solid #888;*/
    border-radius: 5px 5px 5px 5px;
}




.view {
    margin: 0;
    box-sizing: border-box;
    width: 50%; /*Default width, should be set on creation*/
    height: 300px; /*Default width, should be set on creation*/
    background-color: white;
    float: left;
    padding: 3px;
    border: 0 0 0 0;
}

/*.view:hover {
        box-shadow: grey 0px 8px 16px 0px;
    }*/

.viewheader {
    margin: 0;
    box-sizing: border-box;
    font-size: 14px;
    font-weight: bold;
    width: 100%;
    height: 30px;
    float: left;
    padding: 6px 3px 6px 3px;
    text-align: left;
    /*background-color: rgb(10,110,178);
    color: white;*/
    border-bottom: 1px solid #ddd;
    /*border-radius: 5px 5px 0px 0px;*/
    cursor: pointer;
}

.viewmapheader {
    margin: 0;
    box-sizing: border-box;
    position: relative;
    width: 200px;
    height: 30px;
    margin-left: auto;
    margin-right: auto;
    z-index: 3;
    font-size: 14px;
    font-weight: bold;
    padding: 6px 3px 6px 3px;
    text-align: left;
    background-color: rgb(10,110,178);
    color: white;
    border-radius: 5px;
    cursor: pointer;
}

.left {
    float: left;
    margin-right: 10px;
}

.right {
    float: right;
    margin-left: 10px;
}


.viewheaderbtn {
    /*float: right;*/
    font-weight: normal;
    font-size: 18px;
    margin-top: 0;
}

    .viewheaderbtn:hover {
        font-weight: bold;
        font-size: 20px;
    }



.chart {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    width: 100%;
    float: left;
}

.grid {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    width: 100%;
    float: left;
    overflow-y: auto;
}

.gridtable {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-size: 12px;
    border-collapse: collapse;
    width: 100%;
    float: left;
}

    .gridtable th {
        border: 1px solid #ddd;
        padding: 4px;
        position: sticky;
        top: 0;
    }

    .gridtable td {
        border: 1px solid #ddd;
        padding: 4px;
    }

    .gridtable tr:nth-child(odd) {
        background-color: white;
    }

    .gridtable tr:nth-child(even) {
        background-color: #f2f2f2;
    }

    .gridtable tr:hover {
        background-color: #ddd;
    }


    .gridtable td.alignright {
        text-align: right;
    }

    .gridtable td.selected {
        background-color: yellow;
    }


    .gridtable td.notvisible {
        display: none;
    }


    .gridtable td.allowEdit {
        background-color: lightgoldenrodyellow;
    }

        .gridtable td.allowEdit:hover {
            background-color: yellow;
        }



    .gridtable td.edited {
        background-color: deepskyblue;
    }

    .gridtable td.saved {
        background-color: greenyellow;
    }

    .gridtable td.savefailed {
        background-color: lightcoral;
    }


td.selected {
    background-color: yellow;
}

th.notvisible {
    display: none;
}

td.notvisible {
    display: none;
}


td.allowEdit {
    background-color: lightgoldenrodyellow;
}

    td.allowEdit:hover {
        background-color: yellow;
    }

td.edited {
    background-color: deepskyblue;
}

td.saved {
    background-color: greenyellow;
}

td.savefailed {
    background-color: lightcoral;
}



.gridtable th {
    padding-top: 6px;
    padding-bottom: 6px;
    text-align: left;
    background-color: var(--main-color);
    color: white;
}

.gridtable tfoot {
    background-color: lightskyblue;
}




.treeview {
    height: 100%;
    width: 100%;
    background-color: white;
    overflow-x: hidden;
    /*border-right: 5px double lightgrey;*/
}


    .treeview ul, li {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .treeview ul {
        padding-left: 1em;
    }

    .treeview li {
        padding-left: 1em;
        border: 1px dotted black;
        border-width: 0 0 1px 1px;
    }

        .treeview li.container {
            border-bottom: 0;
        }

        .treeview li.empty {
            font-style: italic;
            color: silver;
            border-color: silver;
        }

        .treeview li p {
            margin: 0;
            background: white;
            position: relative;
            top: 0.5em;
        }

            .treeview li p:hover {
                background: lightblue;
            }


        .treeview li ul {
            border-top: 1px dotted black;
            margin-left: -1em;
            padding-left: 2em;
        }

    .treeview ul li:last-child ul {
        border-left: 1px solid white;
        margin-left: -13px;
    }

    .treeview img {
        position: relative;
        top: 2px;
    }


/* Add Zoom Animation */
.animate {
    -webkit-animation: animatezoom 0.6s;
    animation: animatezoom 0.6s
}

@-webkit-keyframes animatezoom {
    from {
        -webkit-transform: scale(0)
    }

    to {
        -webkit-transform: scale(1)
    }
}

@keyframes animatezoom {
    from {
        transform: scale(0)
    }

    to {
        transform: scale(1)
    }
}

/* Flash class and keyframe animation */
.flashit {
    -webkit-animation: flash linear 2s infinite;
    animation: flash linear 2s infinite;
}

@-webkit-keyframes flash {
    0% {
        opacity: 1;
    }

    50% {
        opacity: .1;
    }

    100% {
        opacity: 1;
    }
}

@keyframes flash {
    0% {
        opacity: 1;
    }

    50% {
        opacity: .1;
    }

    100% {
        opacity: 1;
    }
}



/* Responsive layout - when the screen is less than 800px wide, make the two columns stack on top of each other instead of next to each other */
@media screen and (max-width: 800px) {
    .view {
        width: 100%;
        padding: 0;
        margin: 0;
    }
}

@media screen and (max-height: 450px) {
    .filters {
        padding-top: 15px;
    }

        .filters a {
            font-size: 18px;
        }
}


/*TACKTIX TABLE CSS*/


.divgridtableTacktix {
    position: relative;
    overflow: auto;
    max-width: 100%;
    max-height: 100%;
    height: 100%;
    box-sizing: border-box;
    display: inline-block;
    vertical-align: bottom;
}

.gridtableTacktix {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-size: 11.7px;
    border-collapse: collapse;
    /*width: 100%;*/
    float: left;
}


    /*THEAD*/
    .gridtableTacktix thead {
        text-align: left;
        font-family: Arial, Helvetica, sans-serif;
        position: sticky;
        padding: 4px;
        top: 0;
    }


    .gridtableTacktix td.notvisible {
        display: none;
    }
    .gridtableTacktix th.notvisible {
        display: none;
    }


    /*TH*/
    .gridtableTacktix th {
        border: 1px solid #ddd;
        border-width: 0 1px 1px 0;
        font-family: Arial, Helvetica, sans-serif;
        background-image: linear-gradient(to bottom,rgba(255,255,255,0.8) 0%,rgba(255,255,255,0.7) 30%,rgba(255,255,255,0.5) 60%,rgba(255,255,255,0) 100%);
        background-color: #e4e9f4;
        cursor: pointer;
        font: inherit;
        font-weight: bold;
        height: 100%;
        margin: 0;
        min-width: max-content;
        text-align: center;
        user-select: none;
    }

        .gridtableTacktix th button {
            background-color: #c80a0a;
            color: #f2f2f2;
            border: none;
            cursor: pointer;
            display: block;
            font: inherit;
            height: 100%;
            margin: 0;
            min-width: max-content;
            /*padding: 0.5rem 1rem;*/
            /*text-align: left;*/
            width: 100%;
        }

            .gridtableTacktix th::before {
                content: "\25be";
                font-size: 15px;
                visibility: hidden;
            }


            .gridtableTacktix th::after {
                content: "\25be";
                font-size: 15px;
                visibility: hidden;
            }


            .gridtableTacktix th[data-dir="desc"]::after {
                content: "\25be";
                font-size: 15px;
                visibility: visible;
            }


            .gridtableTacktix th[data-dir="asc"]::after {
                content: "\25b4";
                font-size: 15px;
                visibility: visible;
            }

    /*BODY*/
    .gridtableTacktix tbody {
        border: 1px solid lightgrey;
        overflow: auto;
    }


        .gridtableTacktix tbody td {
            border: 1px solid lightgrey;
            text-align: right;
            font-family: Arial, Helvetica, sans-serif;
            padding: 4px;
            padding-top: 2.5px;
            padding-right: 0.35em;
            padding-bottom: 2.5px;
            padding-left: 0.35em;
        }

        .gridtableTacktix tbody tr {
            border: 1px solid lightgrey;
        }

        .gridtableTacktix tbody tr td.tdEditable:nth-child(even) {
            background-color: #f4f4ba;
        }


        .gridtableTacktix tbody tr:nth-child(even) td.tdEditable:nth-child(even) {
            background-color: #f4f4ba;
        }


        .gridtableTacktix tbody tr:nth-child(odd) td.tdEditable:nth-child(odd) {
            background-color: #ffffc4;
        }


        .gridtableTacktix tbody tr:nth-child(odd) td.tdEditable:nth-child(even) {
            background-color: #ffffc4;
        }


        .gridtableTacktix tbody tr:nth-child(even) {
            background-color: #f2f2f2;
        }


        .gridtableTacktix tbody tr:nth-child(odd) {
            background-color: white;
        }  


        .gridtableTacktix tbody tr:nth-child(odd) td.tdEditable:hover {
            background-color: #d8d8a6;
        }


        .gridtableTacktix tbody tr:nth-child(even) td.tdEditable:hover {
            background-color: #d8d8a6;
        }


        /*HOVER*/
        .gridtableTacktix tbody td:hover {
            background-color: #dddd;
        }


        .gridtableTacktix tbody td input {
            box-sizing: border-box;
            width: 100%;
            padding: 4px;
            border: 1px solid #ccc;
            border-radius: 4px;
            /*display: inline-block;*/
            resize: vertical;
        }


        .gridtableTacktix tbody td select {
            box-sizing: border-box;
            width: 100%;
            padding: 4px;
            border: 1px solid #ccc;
            border-radius: 4px;
            /*display: inline-block;*/
            resize: vertical;
        }


        .gridtableTacktix tbody td textarea {
            box-sizing: border-box;
            width: 100%;
            padding: 4px;
            border: 1px solid #ccc;
            border-radius: 4px;
            margin: 5px 0 5px 0;
            resize: vertical;
        }

        .gridtableTacktix tbody td input.dtlocal {
            width: 50%;
            box-sizing: border-box;
        }


        .gridtableTacktix tbody td.tdEditable.edited {
            background-color: deepskyblue !important;
        }


        .gridtableTacktix tbody td.tdEditable.saved {
            background-color: greenyellow !important;
        }


        .gridtableTacktix tbody td.tdEditable.savefailed {
            background-color: lightcoral !important;
        }


        .gridtableTacktix tbody td.tdEditable[s="true"] {
            background-color: #FFFF00 !important;
        }


    /*FOOTER*/
    .gridtableTacktix tfoot {
        border: 1px solid lightgrey;
        background-color: white;
        font-weight: bold;
    }

        .gridtableTacktix tfoot td {
            border: 1px solid lightgrey;
            padding-top: 2px;
            padding-left: 4px;
            padding-right: 4px;
            padding-bottom: 2px;
            text-align: right;
            font-family: Arial, Helvetica, sans-serif;
            color: black;
            border-top: 3px double #ddd;
            position: relative;
        }

            .gridtableTacktix tfoot td:hover:not([tool=""])::before {
                content: attr(tool);
                position: absolute;
                top: 0px;
                left: 0px; /* Use "right" instead of "left" */
                background-color: #555;
                color: #fff;
                border-radius: 5px;
                white-space: nowrap;
                padding: 2px;
            }

/*td Editable*/
.tdEditable {
    border: 1px solid lightgrey;
    background-color: #f4f4ba;
    text-align: right;
    font-family: Arial, Helvetica, sans-serif;
    padding: 4px;
}

.container_textarea {
    border: none;
    width: 100%;
    height: 100%;
    resize: none;
}

.container_lines {
    border-right: 1px solid rgb(203 213 225);
    padding-right: 10px;
    padding-top: 9px;
    text-align: right;
    user-select: none;
    background-color: #f3f4f6;
    color: #4b5563;
    width: 40px;
    overflow: hidden;
    font-size: 12px;
    font-family: Arial, Helvetica, sans-serif;
}

.containerDiv {
    width: 40px;
    overflow: hidden;
    font-size: 12px;
    font-family: Arial, Helvetica, sans-serif;
    padding-right: 10px;
    padding-top: 10px;
    display: block;
    padding-top: 1px;
}