﻿

.screenreader-text {
    position: absolute;
    left: -999px;
    width: 1px;
    height: 1px;
    top: auto;
    margin-top: -10px;
}

    .screenreader-text:focus {
        color: black;
        display: block;
        height: auto;
        width: auto;
        left: 20px;
        top: auto;
        padding: 5px;
        background-color: white;
        margin: auto;
        box-shadow: 0 0 3px 3px rgba(0,0,0,0.2);
    }

.linkskipper-target {
    display: block;
    width: 0px;
    height: 0px;
}



/* data entry form styles */

.dataentry-form {
    margin-top: 1rem;
}

.dataentryfields-border {
    min-width: 50%;
}

.dataentrybuttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

.dataentrybuttons-bigspace {
    width: 2rem;
}

.dataentrybuttons-smallspace {
    width: 1rem;
}


button, input[type=button], input[type=submit] {
    display: inline-block;
    outline: none;
    cursor: pointer;
    padding: 0 0.5rem;
    background-color: #fff;
    border-radius: 0.25rem;
    border: 1px solid #333;
    color: #333;
    font-size: 0.8rem;
    line-height: 20px;
    font-weight: 400;
    text-align: center;
    margin-left: 0.5rem;
    margin-right: 0.5rem;
}


input[type=submit] {
    border-width: 2px;
}


    button:hover, input[type=button]:hover, input[type=submit]:hover,
    button:active, input[type=button]:active, input[type=submit]:active {
        background-color: #f0f4f8;
    }

    button:focus, input[type=button]:focus, input[type=submit]:focus {
        outline-style: solid;
        outline-color: transparent;
        box-shadow: 0 0 4px 4px #e0e0e0;
    }


/* styles for touch lists */

.list-row {
    display: block;
    text-decoration: none;
    padding: 10px 10px 5px 10px;
    border-bottom: 1px solid #a0a0a0;
    position: relative;
    /* font size set by deploy */
}

.list-row:link, .list-row:visited {
    /* color set by deploy */
}

.list-expand-icon {
    display: block;
    top: 20px;
    right: 20px;
    position: absolute;
}

.list-row:hover {
    background-color: #e8e8e8;
}

.list-heading-line {
    display: flex;
    padding-right: 50px;
    font-weight: bold;
    padding-bottom: 7px;
    white-space: nowrap;
    overflow: hidden;
    /* font size set by deploy */
}

/*
font-weight: bold;
white-space: nowrap;
overflow: hidden;
*/

.list-heading-text {
    display: table-cell;
    vertical-align: middle;
    XXpadding-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.list-heading-icon {
    display: table-cell;
    vertical-align: middle;
    width: 20px;
    padding-right: 10px;
}


.list-extra-lines {
    margin-left: 30px;
    display: none;
}

.list-lines {
    margin-left: 30px;
}

.list-line {
    white-space: nowrap;
    padding-bottom: 5px;
}


.list-field-label {
    display: inline-block;
    /* color set by deploy */
}

.list-field-value {
    display: inline-block;
}


/* styles for popup menus */


.popup-menu-container {
    display: inline-block;
    position: relative;
    /* font size set by deploy */
}


.popup-menu-title {
    position: relative;
    padding: 3px 8px;
    border: 1px solid transparent;
    border-radius: 3px;
    /* background color set by deploy to be same as page background */
    z-index: 101;
    display: flex;
    align-items: center;
}

    .popup-menu-title:link, .popup-menu-title:visited {
        text-decoration: none;
    }

    .popup-menu-title:hover {
        border: 1px solid #808080;
        /* background color set by deploy */
    }

    .popup-menu-title img {
        padding-left: 5px;
    }


.popup-menu-contents {
    display: none;
    position: absolute;
    border: 1px solid #808080;
    border-radius: 3px 3px 3px 3px;
    box-shadow: 5px 5px 8px #ddd;
    /* background color set by deploy */
    padding: 8px 0px 5px 10px;
    z-index: 100;
    outline: none;
    overflow-y: auto;
    width: max-content;
}


.popup-menu-item {
    margin: 1px 0px;
}

.popup-menu-item-icon {
    padding-right: 5px;
    vertical-align: middle;
}

.popup-menu-item-icon-text {
    display: table-cell;
    vertical-align: middle;
    padding-right: 5px;
}

.popup-menu-misc {
    padding-left: 10px;
    padding-top: 3px;
    padding-bottom: 3px;
    padding-right: 10px;
    XXwhite-space: nowrap;
}

.popup-menu-item a {
    display: block;
    padding-left: 10px;
    padding-top: 3px;
    padding-bottom: 3px;
    padding-right: 10px;
    XXwhite-space: nowrap;
    cursor: pointer;
}

    .popup-menu-item a:hover {
        background-color: #c8c8c8;
    }

.popup-menu-item a:link, .popup-menu-item a:visited {
    color: #202020;
    text-decoration: none;
}

.popup-menu-item-line1 {
    color: #202020;
    font-weight: bold;
}


.popup-menu-item-line2 {
    color: #505050;
    font-style: italic;
    padding-top: 2px;
}

.popup-menu-separator {
    margin: 5px 10px 5px 10px;
    border-bottom: 1px solid #a0a0a0;
    height: 2px;
}


.tile {
    border-radius: 6px;
}


.tileMoreLink {
    border-radius: 4px;
}

.touchListContainer {
    margin: 0 auto;
    margin-bottom: 50px;
    visibility: hidden;
}

.touchListOptions {
    margin: 10px 0px 20px 0px;
}

.touchListLeftOptions {
    float: left;
}

.touchListRightOptions {
    float: right;
}

.touchListClearOptions {
    clear: both;
    height: 10px;
}


.touchListList {
    border-top: 1px solid #a0a0a0;
}

.touchListMsg {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 100px;
}

.touchlist-links {
    margin-top: 15px;
    margin-left: -9px;
    margin-bottom: 5px;
    display: flex;
    justify-content: space-between;
}

.touchlist-link {
    display: inline-flex;
    align-items: center;
    margin-right: 20px;
    padding: 3px 8px;
    border: 1px solid transparent;
    border-radius: 3px;
}

    .touchlist-link:link, .touchlist-link:visited {
        text-decoration: none;
    }

    .touchlist-link:hover {
        border: 1px solid #808080;
        background-color: white;
    }

.touchlist-link-text {
    display: table-cell;
    vertical-align: middle;
}

.touchlist-link-icon {
    display: table-cell;
    vertical-align: middle;
    padding-right: 5px;
}


.hoverlink {
    margin: 10px 20px 5px 0px;
    padding: 3px 8px;
    border: 1px solid #808080;
    border-radius: 3px;
    background-color: transparent;
    white-space: nowrap;
}

.hoverlink:link, .hoverlink:visited {
    text-decoration: none;
}

.hoverlink:hover {
    border: 1px solid #000000;
    background-color: lightgray;
}


.infolink {
    font-size: 110%;
    font-weight: 600;
}


.launchlink {
    padding: 2px 6px;
    border: 1px solid transparent;
}

.launchlink:link {
    xtext-decoration: underline;
}

.launchlink:hover {
    background-color: #f8f8f8;
    border: 1px solid #c0c0c0;
}


.launchlink-disabled {
    padding: 2px 6px;
    border: 1px solid transparent;
    color: #b8b8b8;
    cursor: default;
    text-decoration: none;
}


.new-cando-link {
    display: inline-block;
    padding: 2px 6px;
    border: 1px solid transparent;
    border-radius: 3px;
}

.new-cando-link:link {
    text-decoration: none;
}

.new-cando-link:hover {
    background-color: #f8f8f8;
    border: 1px solid #c0c0c0;
}



.content-heading-line {
    display: inline-block;
    padding-bottom: 0px;
}

.launch-links {
    display: block;
    margin-top: 3px;
    padding-top: 7px;
    padding-bottom: 5px;
    margin-left: -8px;
    border-top: solid 1px #e0e0e0;
    width: 100%;
}


.content-cell {
    display: inline-table;
    border: solid 1px #c0c0c0;
    border-radius: 3px;
    padding: 2px 5px;
    background-color: #f4f4f4;
}

.content-cell-main {
    display: inline-table;
    border: solid 1px #c0c0c0;
    border-radius: 3px;
    padding: 2px 5px;
    background-color: #fff9e0;
}

.content-descrip {
    padding: 5px 0px;
}


.content-progress {
    box-shadow: 0 0 3px 2px white;
    border: solid 2px #b0b0b0;
    border-radius: 5px;
    padding: 10px;
    margin: 0px;
    background-color: white;
    position: absolute;
}


    .content-progress:after, .content-progress:before {
        right: 100%;
        top: 50%;
        border: solid transparent;
        content: " ";
        height: 0;
        width: 0;
        position: absolute;
        pointer-events: none;
    }

.content-progress:after {
    border-color: rgba(255, 255, 255, 0);
    border-right-color: #ffffff;
    border-width: 10px;
    margin-top: -10px;
}

.content-progress:before {
    border-color: rgba(176, 176, 176, 0);
    border-right-color: #b0b0b0;
    border-width: 13px;
    margin-top: -13px;
}



.progress-title {
    padding-bottom: 3px;
    XXborder-bottom: solid 1px #c0c0c0;
    margin-bottom: 10px;
    font-weight: normal;
    width: 100%;
}


.listSelectLink {
    display: inline-block;
    padding: 4px 10px 4px 10px;
    border: solid 1px transparent;
    border-radius: 4px;
    vertical-align: top;
    margin-right: 5px;
    background-image: url(../media/select.svg);
    background-position: center;
    background-repeat: no-repeat;
    width: 10px;
    height: 10px;
    transition: background-color 0.4s, border-color 0.4s, background-image 0.4s;
}


tr:hover .listSelectLink {
    border: solid 1px #e0e0e0;
    background-color: #e8e8e8;
    background-image: url(../media/select_hover.svg);
}


.currSessionMarker {
    display: none;
    padding: 0px 5px 0px 0px;
    vertical-align: top;
    background-image: url(../media/forward_green.svg);
    background-position: left;
    background-repeat: no-repeat;
    background-size: 20px 20px;
    width: 20px;
    height: 20px;
}




/* Styles for tabs */

#_tabContainer {
    display: flex;
    width: fit-content;
    max-width: 100vw;
    overflow-x: auto;
    scrollbar-width: none; /* Hide scrollbar - Firefox */
    -ms-overflow-style: none;  /* Hide scrollbar - Internet Explorer 10+ */
    scroll-behavior: smooth;
}

/* Hide scrollbar - webkit */
#_tabContainer::-webkit-scrollbar {
    width: 0;
    height: 0;
}

.tabset-tab {
    display: block;
    margin: 0px;
    margin-right: 2rem; /*distance between tabs*/
    cursor: default;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    position: relative;
    padding: 5px 16px;
    white-space: nowrap;
    vertical-align: top;
    border: none;
    font-size: 1.1rem;
    border-bottom: solid 3px transparent;
    XXborder-radius: 2px;
    transition: border-bottom 0.4s;
}

    .tabset-tab:hover {
        font-weight: 700;
        cursor: pointer;
    }

    .tabset-tab::before {
        display: block;
        content: attr(title);
        font-weight: 700;
        height: 0;
        overflow: hidden;
        visibility: hidden;
    }

.tabset-tab-selected {
    font-weight: 700;
    border-bottom: solid 3px;
    cursor: default;
    transition: border-bottom 0.4s;
    color: steelblue;
}

.tabset-content-container {
    position: relative;
    border: 1px solid #404040;
    top: -1px;
    padding: 10px 5px 5px 5px;
    background-color: #FAFAFA;
    border-radius: 3px 3px 3px 3px;
    box-shadow: 5px 5px 8px #ddd;
}

.tabset-tab-contents {
    xposition: absolute;
    xtop: 10px;
    xleft: 5px;
    visibility: hidden;
    background-color: #FAFAFA;
}


/* Works on Firefox */
.tabset-tab-contents {
    scrollbar-width: thin;
    scrollbar-color: #b0b0b0 #f8f8f8;
}

    /* Works on Chrome, Edge, and Safari */
    .tabset-tab-contents::-webkit-scrollbar {
        width: 0.5rem;
    }

    .tabset-tab-contents::-webkit-scrollbar-track {
        background: transparent;
    }

    .tabset-tab-contents::-webkit-scrollbar-thumb {
        background-color: #d0d0d0;
        border-radius: 20px;
        border: 3px solid transparent;
    }

#_tabContents.tabset-content-container,
#_tabContents .tabset-tab-contents {
    background-color: transparent;
    border-color: transparent;
    XXborder-top: solid 1px #c0c0c0;
}




/* Styles for the simple modal dialog */

/* The Modal (background) */
#modal-container {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    padding-top: 150px; /* 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.7); /* Black w/ opacity */
}



.modal-dlg {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    z-index: 1000;
    /* 
    These are set by STCSettings on deploy, and are overridden in mobile.css when no frames are shown
    width: 100%;
    height: 100%;
    */
   
}


.modal-dlg-inner {
    display: flex;
    flex-direction: column;
    border-radius: 0.5rem;
    padding: 0.5rem;
    margin: auto;
    /* 
    These are set by STCSettings on deploy, and are overridden in mobile.css when no frames are shown
    max-width: 90vw;
    max-height: 95vh; 
    */
}

.modal-dlg-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    border-bottom: 2px solid gray;
}


.modal-dlg-title {
    padding: 0 3rem 0.5rem 0;
    margin: 0;
}

.modal-dlg-close {
    border: solid 1px transparent;
    border-radius: 12px;
    outline: none;
    background-color: transparent;
    padding: 0;
    margin: 0;
}

.modal-dlg-close svg {
    fill: #555;
    vertical-align: top;
}

.modal-dlg-close:hover {
    background-color: #eee;
    border: solid 1px #ddd;
}

.modal-dlg-close:hover svg {
    XXfill: #999;
}

.modal-dlg-close:active {
    XXbackground-color: transparent;
    border: solid 1px #999;
    XXbox-shadow: none;
}


.modal-dlg-content {
    XXmargin-top: 1rem;
    width: 100%;
    flex-grow: 1;
}


.modal-dlg-overlay {
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 0;
    background-color: black;
    opacity: 0.5;
}



#DESCRIPTION {
    display: flex;
    justify-content: space-between;
}


#PAGE-DESC {

}


#CANDO-LINKS {
    display:flex;
    flex-direction: column;
    align-items: flex-end;
}


#CANDO-LINKS-MENU {
    display: none;
}


.cando-links {
}




.primary-link, .primary-link-disabled {
    padding: 3px 10px;
    margin-top: 3px;
    margin-bottom: 3px;
    margin-left: 12px;
    border: solid 1px;
    border-radius: 3px;
    text-decoration: none;
    white-space: nowrap;
    display: inline-block;
}


.primary-link a {
    color: #000;
}

.primary-link-disabled a {
    color: #909090;
}


    .primary-link a, .primary-link-disabled a {
        text-decoration: none;
    }


.primary-link {
    background-color: #d1ffbd;
    color: #333;
    font-weight: bold;
    border-color: #68805d;
}

.primary-link-disabled {
    background-color: #e8e8e8;
    color: #909090;
    border-color: #d0d0d0;
    cursor: default;
}

.primary-link:hover {
    background-color: #97d67c;
}


#INFO-LINKS {
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    padding-bottom: 1rem;
}


#INFO-CAPTION {
    font-size: 1.1rem;
}

#INFO-TEXT {
    font-size: 1rem;
    padding-bottom: 1rem;
}


/* For Content Object and Sessions */

.content-table {
    max-width: 95vw;
}


.content-table-flex {
    display: flex;
    margin-bottom: 10px;
}


.co-grid-parent {
    display: -ms-grid;
    display: grid;
    -ms-grid-columns: 30px 1fr;
    grid-template-columns: 30px 1fr;
    -ms-grid-rows: auto auto auto 1fr;
    grid-template-rows: auto auto auto 1fr;
    grid-column-gap: 0px;
    grid-row-gap: 0px;
    width: 100%;
    max-width: 700px;
    }
    
    
    .coicon { 
        grid-column-start: 1;
        grid-column-end: 2;
        grid-row-start: 1;
        grid-row-end: 2;
        -ms-grid-column: 1;
        -ms-grid-row: 1;
    }

    .coname { 
        display: flex;
        justify-content: space-between;
        grid-column-start: 2;
        grid-column-end: 3;
        grid-row-start: 1;
        grid-row-end: 2;
        -ms-grid-column: 2;
        -ms-grid-row: 1;
    }

    .costatus { 
        grid-column-start: 2;
        grid-column-end: 3;
        grid-row-start: 2;
        grid-row-end: 3;
        -ms-grid-column: 2;
        -ms-grid-row: 2;
    }

    .codescrip { 
        grid-column-start: 2;
        grid-column-end: 3;
        grid-row-start: 3;
        grid-row-end: 4;
        -ms-grid-column: 2;
        -ms-grid-row: 3;
    }

    .cobuttons { 
        grid-column-start: 2;
        grid-column-end: 3;
        grid-row-start: 4;
        grid-row-end: 5;
        -ms-grid-column: 2;
        -ms-grid-row: 4;
    }


/* For forms */



.form-fieldandlabel {
        align-items: baseline;
        display: grid;

        -ms-grid-columns: 12rem 1fr;
        grid-template-columns: 12rem 1fr;
        -ms-grid-rows: auto auto;
        grid-template-rows: auto auto;
    
        XXgrid-template-columns: 12rem 1fr;
        XXgrid-template-areas:
            "label input"
            "label subText";
        margin: 0 0 .5rem;
        text-align: left;
    }


.form-fieldandlabel > label, 
.form-fieldandlabel > legend {

    grid-column-start: 1;
    grid-column-end: 2;
    grid-row-start: 1;
    grid-row-end: 3;
    -ms-grid-column: 1;
    -ms-grid-row: 1;

    XXgrid-area: label;
    margin-right: 1rem;
}

.form-fieldandlabel > div {
    grid-column-start: 2;
    grid-column-end: 3;
    grid-row-start: 1;
    grid-row-end: 2;
    -ms-grid-column: 2;
    -ms-grid-row: 1;

    XXgrid-area: input;
    width: 100%;
}

.form-fieldandlabel > div > div {
    display: flex;
    align-items: center;
}


fieldset.form-fieldandlabel {
    border: none;
    outline: none;
}



/*
    .form-fieldandlabel {
        clear: both;
        overflow: hidden;
        padding: 1px;
        margin: 0 0 10px 0;
        text-align: left;
    }


    .form-fieldandlabel > label, 
    .form-fieldandlabel > legend {
        width: 30%;
        float: left;
        padding-right: 10px;
        box-sizing: border-box;
        white-space: nowrap;
    }

    .form-fieldandlabel > div {
        width: 69%;
        float: left;
        box-sizing: border-box;
    }

    .form-fieldandlabel > div > div {
        display: flex;
        align-items: center;
    }


    fieldset.form-fieldandlabel {
        border: none;
        outline: none;
    }
*/


    .form-search-field-container {
        display: flex;
        align-items: stretch;
    }

    .form-search-field {
        padding: 5px;
        XXfont-size: 1rem;
        border: 1px solid grey;
        border-radius: 0;
        XXfloat: left;
        XXwidth: 80%;
        flex-grow: 1;
        background: #f1f1f1;
    }

    .form-search-button {

        XXfloat: left;
        XXwidth: 20%;
        padding: 5px;
        background: steelblue;
        color: white;
        XXfont-size: 1rem;
        border: 1px solid grey;
        border-left: none; /* Prevent double borders */
        border-radius: 3px;
        cursor: pointer;        
        vertical-align: middle;
        text-align: center;
    }

    .form-search-button:hover {
        background: rgb(108, 160, 202);
    }

    .form-search-button svg {
        fill: white;
    }

    /* For search-form */

    #recentmenu {
        clear: both;
        padding: 5px 0px;
        position: static;
    }

    #recentmenu li a {
        text-align: left;
    }


    #idSearchForm {
        max-width: 600px;
    }

    .searchcategory {
        min-width: 15rem;
        margin-top: .5rem;
        margin-bottom: .5rem;
    }
    
    .searchcat-dropdown {
        width: 100%;
    }


    input[type=radio], input[type=checkbox] {
        margin-right: 10px;
    }



    .dataTable thead tr td {
        font-weight: 700;
    }


    .dataTable tbody tr {
        height: 1.5rem;
    }

    .table-selectable {
        cursor: pointer;    
    }

    .table-selectable tr {
        XXborder: solid 1px transparent;
        border-radius: 4px;
        transition: background-color 0.3s;
    }

    .table-selectable tr:hover {
        XXborder-color: #e0e0e0;
        background-color: #e8e8e8;
    }

    .table-selectable tr:active {
        XXborder-color: #a0a0a0;
        transition: background-color 0.1s;
        background-color: #d0d0d0;
    }
    
    .grid {
        border-collapse: collapse;
    }

    .griddata {
        background-color: transparent;
        vertical-align: top;
    }

    .gridheader {
        vertical-align: bottom;
    }

    .mainmenu-popup-container .tabset-tab-selected {
        XXcolor: unset;
    }

    #footer-back-button {
        display: none;
    }

    .footer-buttons {
        display: flex;
        align-items: center;
    }

    #FOOTER-IMAGES {
        flex-grow: 1;
    }