:root { 
    --bg-color-menu-selected:  #346fa8; /* Slightly pastel blue */  
    --bg-color-menu-hover:     #0f0f6f; /* Dark blue purple, came out quite elegant */
    --bg-color-noteditable:    #f1f1f1; /* Very light gray */
    --bg-color-title-verylightgray: #efefef; /* Very light gray */

    --listrow-selected-bkg: LightSeaGreen;
    --listrow-selected-color: white;
    --listrow-hover: #a4f3f0; /* Light green */
    
    --rounded-border-color-standard:  #3f88d0; /* Darker than above blue */ 
    --border-color-matchselect:  #A9A9A9; /* Matches the select element border */ 
}
body {
    font-family: var(--font-sans-serif);
    /* letter-spacing: .25px; */
    background-color: white;
    margin: 0; 
    padding: 0;
    /* font-size: 14px; /* Need to explore using default here and em elswehere. */
    background: url(PageBackground.jpg) top center repeat;
    box-sizing: border-box;
}
/* Can't style ul li easily because that used in app menubar. Style ul li later. ===== 
   Better yet, redo menubar to not use ul li. Use divs instead.  
*/
p, ol li, .trs-pages ul li, blockquote {
    font-family: var(--font-serif);
    font-size: 16px;
    line-height: 1.5em;
}
ol li {
    margin: 18px 0;
    /* line-height: 24px; */
}
input {
    padding-left: 2px;
}
/* First implemented for the Factuals page to get proper label vertical alignment. */
label input[type=checkbox]{
    position: relative;
    vertical-align: middle;
    bottom: 1px;
}
label input[type=radio]{
    position: relative;
    vertical-align: middle;
    bottom: 3px;
}
/* ----- Buttons ----- */
button:hover:not([disabled]), .trs-cbutton-small:hover:not([disabled]) {
    background: lightblue;
}
.trs-cbutton, .trs-cbutton-small {
    display: inline-block;
    font-family: var(--font-sans-serif);
    font-size: 13px;
    letter-spacing: .5px;
    color: black;
    user-select: none;

    margin: 6px 10px;
    padding: 5px 10px;
    /* min-height: 29px; */
    border: 1px solid #75b8ce;
    border-radius: 6px;
    cursor: default;

    /* Light blue gradient to match standard blue border. */
    /* Permalink to edit this gradient: http://colorzilla.com/gradient-editor/#e7f3fd+0,b2cae0+100 */
    background: #e7f3fd; /* Old browsers */
    background: -moz-linear-gradient(top, #e7f3fd 0%, #b2cae0 100%); /* FF3.6-15 */
    background: -webkit-linear-gradient(top, #e7f3fd 0%,#b2cae0 100%); /* Chrome10-25,Safari5.1-6 */
    background: linear-gradient(to bottom, #e7f3fd 0%,#b2cae0 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#e7f3fd', endColorstr='#b2cae0',GradientType=0 ); /* IE6-9 */
}
.trs-cbutton:focus, .trs-cbutton-small:focus {
    outline-offset: -2px;
    outline: -webkit-focus-ring-color auto 5px;
}
.trs-cbutton:active {
    margin: 5px 9px;
    padding: 6px 11px;
}
.trs-cbutton-small {
    font-size: 12px;
    margin: 4px 8px;
    padding: 3px 6px;
}
.trs-cbutton-small:active {
    margin: 3px 7px;
    padding: 4px 7px;
}
.trs-button, .trs-button-small, .trs-button-arrow, .trs-button-row {
    margin: 6px 10px;
    padding: 3px 10px;
    font-size: 13px;
    letter-spacing: .5px;
    border: 1px solid #75b8ce;
    border-radius: 6px;
    overflow: hidden;

    /* Light blue gradient to match standard blue border. */
    /* Permalink to edit this gradient: http://colorzilla.com/gradient-editor/#e7f3fd+0,b2cae0+100 */
    background: #e7f3fd; /* Old browsers */
    background: -moz-linear-gradient(top, #e7f3fd 0%, #b2cae0 100%); /* FF3.6-15 */
    background: -webkit-linear-gradient(top, #e7f3fd 0%,#b2cae0 100%); /* Chrome10-25,Safari5.1-6 */
    background: linear-gradient(to bottom, #e7f3fd 0%,#b2cae0 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#e7f3fd', endColorstr='#b2cae0',GradientType=0 ); /* IE6-9 */
}
.trs-button:disabled, .trs-button-small:disabled, .trs-button-arrow:disabled, 
.trs-button-row:disabled {
    opacity: .8;
}
.trs-button:active {
    margin: 5px 9px;
    padding: 4px 11px;
}
.trs-button-small, .trs-button-row { 
    min-height: 0;
    font-size: 12px;
}
.trs-button-small        { margin: 6px 5px; padding: 3px 6px; }
.trs-button-small:active { margin: 5px 4px; padding: 4px 7px; }

.trs-button-row          { margin: 3px 0px; padding: 3px 2px; border-radius: 4px; font-size: 11px; }
.trs-button-row:active   { margin: 2px 0px; padding: 4px 2px; }

.trs-button-arrow {
    min-height: 0;
    font-size: 30px;
    line-height: 15px;
    margin: 6px 2px;
    padding: 0px 4px 6px 4px;
}
.trs-button-arrow:active {
    margin: 5px 1px;
    padding: 1px 5px 7px 5px;
}
.trs-button-primary {
    font-weight: bold;
    /* background: lightskyblue; */
    /* Permalink - use to edit and share this gradient: http://colorzilla.com/gradient-editor/#d1e5f7+0,8dbfeb+100 */
    background: #d1e5f7; /* Old browsers */
    background: -moz-linear-gradient(top, #d1e5f7 0%, #8dbfeb 100%); /* FF3.6-15 */
    background: -webkit-linear-gradient(top, #d1e5f7 0%,#8dbfeb 100%); /* Chrome10-25,Safari5.1-6 */
    background: linear-gradient(to bottom, #d1e5f7 0%,#8dbfeb 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#d1e5f7', endColorstr='#8dbfeb',GradientType=0 ); /* IE6-9 */}

    /* ---------- Shell Layout ---------- */
body       { height: 100vh; }
#app       { height: 100vh; display: flex; flex-direction: column; }
.trs-pages { flex: 1; position: relative; }
.trs-page    { 
    position: absolute; 
    top: 0; right: 0; bottom: 0; left: 0; 
    overflow-x: auto;
}
.trs-page:focus {
    outline: none;
}
/* ----- Page menu dropdown. This is on the menubar at the far right. ----- */
.trs-page-menu {
    position: relative;
    padding: 1px 14px 10px 14px;
    margin-right: 10px;
    font-weight: bold;
    letter-spacing: 1px;
    float: right;
    cursor: default;
}
.trs-page-menu:hover {
    background-color: var(--bg-color-menu-selected);
    color: white;
}
.trs-page-menu:active {
    background-color: #20476d; /* Slightly darker than selected. */
    color: white;
}
.trs-page-menu-selected {
    background-color: var(--bg-color-menu-selected);
    color: white;
}
/* ----- Page menu dropdowns ----- */
.trs-page-menu ul {
    position: absolute;
    top: 25px;
    right: 0;
    width: 290px;
    display: none;

    opacity: .9;
    padding: 0;
    background-color: var(--bg-color-menu-selected); /* To match selected tab color, but too bright. */
    text-align: left;
    z-index: 100;
    box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);
}
.trs-page-menu ul, .trs-page-menu ul li:last-child {
    border-bottom-left-radius: 14px;
    border-bottom-right-radius: 14px;
}
.trs-page-menu ul li:last-child { 
    padding-bottom: 8px;
}
.trs-page-menu ul li, .trs-page-menu-item-key {
    font-weight: normal;
    letter-spacing: 0;
}
.trs-page-menu ul li {
    padding: 4px 15px 4px 13px;
    list-style-type: none;
    /* border-top: 1px solid #6d8abd; */
    color: white;
}
.trs-page-menu-separator { 
    border-top: 1px solid #adc0e2; /* Light blue to match background */
}
.trs-page-menu ul li:hover {
    background-color: var(--bg-color-menu-hover);
}
.trs-page-menu ul li.trs-page-menu-item-dim, .trs-page-menu-item-key {
    color: LightGray;
}
.trs-page-menu-item-key {
    float: right;
    padding: 4px 7px 4px 0;
}
/* ---------- Menu bar ---------- */
.trs-menu {
    top: 0; right: 0; left: 0;
    padding-left: 10px;
    margin: 0;
    background-color: #b9cde1;  /* Lighter shade of select color */

    /* Gradient, gray, dark to light from bottom. */
    /* Permalink - use to edit and share this gradient: http://colorzilla.com/gradient-editor/#cedce7+0,728691+100 */
    background: rgb(206,220,231); /* Old browsers */
    background: -moz-linear-gradient(top, rgba(206,220,231,1) 0%, rgba(114,134,145,1) 100%); /* FF3.6-15 */
    background: -webkit-linear-gradient(top, rgba(206,220,231,1) 0%,rgba(114,134,145,1) 100%); /* Chrome10-25,Safari5.1-6 */
    background: linear-gradient(to bottom, rgba(206,220,231,1) 0%,rgba(114,134,145,1) 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#cedce7', endColorstr='#728691',GradientType=0 ); /* IE6-9 */

    white-space: nowrap;
    font-size: 12px;
    user-select: none;
    /* border-bottom: 1px solid var(--bg-color-menu-selected); */
}
.trs-menu > li {
    position: relative;
    display: inline-block;
    padding: 3px 14px 5px 14px;
    text-decoration: none;
    font-family: var(--font-sans-serif);
    font-size: 14px;
    letter-spacing: .4px; 
    text-align: center;
}
.trs-menu li:hover {
    background-color: var(--bg-color-menu-hover);
    color: white;
    cursor: pointer;
}

li.trs-menu-current {
    background-color: var(--bg-color-menu-selected);
    color: white;
}
li.trs-menu-logon {
    float: right;
}
.trs-is-development-database {
    color: yellow;
    font-weight: bold;
}
/* ---------- Various elements ---------- */
.trs-input {
    padding-left: .5em;
}
.trs-image-center {
    display: block;
    margin: 20px auto;
    max-width: 100%;
}
.trs-image-right {
    float: right;
    margin: 0 5px 5px 5px;
    /* max-width: 100%; */
}
/* ---------- Documentation pages ---------- */
.trs-doc-container {
    display: flex;
    margin: 0 auto;
    max-width: 1050px;
    height: 100%;
    background-color: white;
    border-left:  2px solid lightblue;
    border-right: 2px solid lightblue;
}
.trs-doc-left-panel-container {
    display: flex;
    flex-direction: column;
    width: 420px;
    font-family: var(--font-sans-serif);
    background-color: ghostwhite;
    border-right: 1px solid gray;
}
.trs-doc-left-panel-itemlist {
    flex: 1; 
    min-height: 0;
    overflow-y: scroll;
}
.trs-doc-left-panel-itemlist:focus {
    outline: none;
}
.trs-doc-right-panel-container {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.trs-doc-right-panel-title {
    text-align: center; 
    font-size: 19px; 
    font-weight: bold; 
    border-bottom: 1px solid #c4c4c4; /* Slightly darker than light gray */
    background-color: var(--bg-color-title-verylightgray);
    padding: 5px;
}
.trs-doc-right-panel-text {
    height: 100%;
    padding: 10px 20px;
    overflow-y: scroll;
}
.trs-doc-right-panel-text *:first-child {
    margin-top: 5px;
}
.trs-doc-right-panel-button-bar {
    text-align: center;
    border-top: 1px solid lightgray;
    font-size: 0px; /* To eliminate whitespace between buttons. */
}
.trs-doc-tree-row {
    padding-top:    1px;
    padding-bottom: 3px;
    font-size: 15px;
    cursor: pointer;
    border-left: 2px solid ghostwhite;
}
/* The bkg and hover colors match the standard of green and light green. */
.trs-doc-tree-row:not(.trs-doc-tree-row-selected):hover {
    background-color: var(--listrow-hover);
    border-left: 2px solid #75cfec;
}
.trs-doc-tree-row-folder {
    margin-top: 5px;
    padding-top: 2px;
    padding-bottom: 3px;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: .5px;
    color: #0000d0; 
}
.trs-doc-tree-row-selected {
    background-color: var(--listrow-selected-bkg);
    color:            var(--listrow-selected-color);
    border-left: 2px solid blue;
}
/* ---------- Info pages ---------- */
.trs-info-container {
    display: flex;
    max-width: 1050px;
    margin: 0 auto;
    height: 100%;
    box-shadow: 0px 1px 2px 0px rgba(60, 64, 67, 0.3), 0px 2px 6px 2px rgba(60, 64, 67, 0.15);
}
.trs-info-sidebar {
    width: 400px;
    border-right: 1px solid LightGray;
    border-left: 1px solid LightGray;
    background-color: aliceblue;
    overflow-x: auto;
}
.trs-info-sidebar-item {
    margin: 0 10px;
    padding: 3px;
    border: 1px solid steelblue;
    /* border-radius: 25px; */
    border-top-left-radius:    25px; 
    border-bottom-left-radius: 25px; 
    
    /* Next 2 lines attempt to correct Chrome bug. Zooming causes item width to be smaller than it should be. 
    The fix doesn't make a difference. */
    width: calc(100% - 20px);
    box-sizing: border-box;
    
    background-color: steelblue;
    overflow: hidden;
    font-size: 15px;
    color: white;
}
.trs-info-sidebar-item:first-child {
    margin-top: 30px;
}
.trs-info-sidebar-item-spacer {
    margin: 0 auto;
    /* border-left: 1px solid #80868B;
    border-right: 1px solid #80868B; */
    width: 15px;
    height: 30px;
    /* background-color: LightBlue; */
    background: url(/images/app/InfoSidebarItemSpacer.png) top center;
}
.trs-info-sidebar-item-spacer:last-child {
    /* display: none; */
    height: 0;
    margin-bottom: 30px;
}
.trs-info-sidebar-item:hover {
    background-color: LightBlue;
    border: 1px solid Gray;
    color: black;
}
.trs-info-sidebar-item:active {
    background-color: rgb(142, 182, 196);
}
.trs-info-sidebar-item, .trs-info-sidebar-item-number, .trs-info-sidebar-item-text {
    cursor: default;
}
/* Designed to support 1 or 2 digits for the number. */
.trs-info-sidebar-item-number {
    display: inline-block;
    /* padding: 6px 7px 6px 5px; */
    padding: 6px 6px 6px 6px;
    border: 2px solid white;
    border-radius: 50%;
    height: 18px;
    line-height: 18px;
    width: 19px;
    text-align: center;
}
.trs-info-sidebar-item-text{
    display: inline-block;
    padding-left: 8px;
    user-select: none;
}
.trs-info-content {
    flex: 1;
    padding: 10px;
    font-size: 18px;
    /* line-height: 22px; */
    border-right: 1px solid LightGray;
    background-color: White;
    overflow-x: auto;
}
.trs-info-content h2 {
    margin-top: 40px;
    padding-top: 10px; /* So scroll into view element has padding on top.  */
}
.trs-info-content-title {
    font-size: 1.8em;
    margin-top: 20px;
    text-align: center;
    color: darkblue;
}
.trs-info-image-right {
    float: right;
    margin: 5px 0 5px 5px;
}
.trs-info-separator {
    height: 2px;
    margin: 30px 0;
    background-color: LightGray;
}
/* ---------- Documentation editor ---------- */
.trs-documentation-editor-container {
    display: flex;
    flex-direction: column;
    max-width: 800px;
    margin: 0 auto;
    height: 100%;
    box-shadow: 0px 1px 2px 0px rgba(60, 64, 67, 0.3), 
                0px 2px 6px 2px rgba(60, 64, 67, 0.15);
    background-color: GhostWhite;
}
/* ---------- Home Page ---------- */
.trs-content {
    max-width: 630px; /* To match the help page. */
    margin: 25px auto;
    padding: 5px 30px;
    background-color: white;
    border-radius: 25px;
    box-shadow: #acacac 0px 3px 10px 3px;
}
.trs-content-pretitle {
    margin: 25px 0 -10px 0;
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    color: darkblue;
}
.trs-content-title {
    margin: 25px 0;
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    color: darkblue;
}
.trs-content-quote {
    width: 400px;
    margin: 20px auto;
    text-align: center;
}
.trs-content-callout-right {
    width: 220px;
    float: right;
    margin: 8px 0 5px 10px;
    padding: 8px 5px 8px 10px;
    font-family: var(--font-sans-serif);
    border: 3px solid DarkBlue;
    border-radius: 12px;
    box-shadow: #acacac 2px 3px 9px -1px;
    background: rgb(236, 244, 255); /* Started with LightSteelBlue. */
    font-size: .9em;
    line-height: 1.5em;
}
/* ---------- Logon Page ---------- */
.csf-logon-box {
    width: 550px;
    margin: 100px auto 0 auto; /* Unable to easily center vertically. */
    border: solid 4px var(--rounded-border-color-standard);
    border-radius: 30px;
    background-color: GhostWhite;
    box-shadow: #acacac 2px 3px 10px; /* h-offset, v-offset, blur, no spread */
}
.csf-logon-box-title {
    font-family: var(--font-sans-serif);
    font-size: 20px;
    font-weight: bold;
    text-align: center;
}
.csf-logon-box-title, .csf-logon-userid, .csf-logon-password {
    margin: 20px auto 20px auto;
}
.csf-logon-userid, .csf-logon-password {
    display: block;
    width: 300px;
    font-size: 15px;
}
.csf-logon-button-box {
    text-align: center;
}
.csf-logon-button {
    margin: 20px 10px;
    font-size: 15px;
}
.csf-logon-name {
    display: inline-block;
    font-family: var(--font-sans-serif);
    font-size: 14px;
}
.csf-logon-note {
    margin: 10px 20px 20px 20px;
    padding: 10px;
    font-family: var(--font-sans-serif);
    font-size: 14px;
    border: 1px solid gray;
    background-color: lavender;
}
/* ---------- Ratings Page ---------- */
.trs-ratings-dummy-image {
    margin: 10px auto 30px auto;
    width: 100%;
    max-width: 1000px;
    height: auto;
    display: block;
}
/* --------------- Disable/Enable ---------- */
.trs-disable-element {
    pointer-events: none;
    user-select: none;
}
.trs-disable-element-dim {
    pointer-events: none;
    user-select: none;
    opacity: 0.5;
}
/* --------------- Modal dialog ----------- */
.trs-modal {
    /* Center box on screen vertically and horizontally with flex. */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    position: fixed; /* Stay in place */
    z-index: 500; /* Sit on top. Tingle is 1000. */
    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); /* Transparent black */
}
.trs-modal, .trs-modal-box-fields, .trs-modal-box-image-container {
    opacity: 0;
    transition: opacity 0.5s;
}
.trs-modal-box-fields {
    padding: 10px 20px;
    width: 500px;
    border: solid 4px var(--rounded-border-color-standard);
    border-radius: 30px;
    background-color: GhostWhite;
}
.trs-modal-box-fields-title {
    font-family: var(--font-sans-serif);
    font-size: 24px;
    font-weight: bold;
    text-align: center;
}
.trs-modal-box-image-container {
    /* max-width is set dynamically. */
    display: flex;
    /* display: flex;
    max-height: calc(100vh - 60px);
    padding: 10px;
    border: solid 4px var(--rounded-border-color-standard);
    border-radius: 30px;
    background-color: white; */
}
#trsModalDialogImage {
    /* Image max-height is set dynamically. */
    height: calc(100vh - 100px);
    border: solid 4px var(--rounded-border-color-standard);
    border-radius: 30px;
    padding: 10px;
    background: white;
    /* object-fit: contain; */
    /* flex: 1; */
    /* height: calc(100vh - 100px); */
}
/* --------------- Tab set Generation 1 ---------- */
.trs-tab-selectors-container {
    /* Next two lines allow tab bottom border to hide top border of content container. */
    margin-bottom: -1px; 
    z-index: 10;
}
.trs-tab-content-container {
    display: flex;
    flex-direction: column;
    min-height: 0;
    flex: 1;
    border-top: 1px solid gray;
}
.trs-tab-selector-bkgcolor-white  {background-color: white; }
.trs-tab-selector-bkgcolor-pink   {background-color: #ffdada; }
.trs-tab-selector-bkgcolor-blue   {background-color: #c1e8ff; }
.trs-tab-selector-bkgcolor-yellow {background-color: #fbfbec; }
.trs-tab-selector-bkgcolor-green  {background-color: #c9e9de; }
.trs-tab-selector-bkgcolor-ghostwhite {background-color: ghostwhite; } /* #f8f8ff */

.trs-tab-selector {
    margin-left: 8px;
    padding: 2px 7px;
    border: 1px solid gray;
    border-top-left-radius:  9px;
    border-top-right-radius: 9px;
    font-size: 11px;
    display: inline-block;
    cursor: pointer;
}
.trs-tab-selector:hover {
    color: white;
    background: #5a9fe2; /* Medium pastel blue */
}
.trs-tab-content {
    flex: 1;
    height: 100%;
    padding: 0px 4px 0px 5px;
    overflow-y: scroll;
    display: flex;
    flex-direction: column;
    outline: none;
}
.trs-tab-content p, .trs-tab-content ol li, .trs-tab-content ul li {
    line-height: 1.4;
    margin: 5px 0 5px 0;
}
.trs-tab-content p {
    margin: 15px 0;
}
.trs-tab-content ol, .trs-tab-content ul {
    margin: 0;
}
/* --------------- Tab row Generation 2 ---------- */
.trs-tabRow-container {
    z-index: 10;
}
.trs-tabrow-tab, .trs-tabrow-text {
    margin-left: 8px;
    padding: 2px 7px;
    font-size: 12px;
    display: inline-block;
    cursor: pointer;
    border-bottom: 1px solid gray;
}
.trs-tabrow-tab {
    border: 1px solid gray;
    border-top-left-radius: 9px;
    border-top-right-radius: 9px;    
}
.trs-tabrow-tab:hover {
    color: white;
    background: #5a9fe2;
}
.trs-tabrow-text {
    margin-left: 0;
    padding-left: 0;
}
.trs-tabRow-tab-selected {
    font-weight: bold;
    border-bottom: 1px solid white;
    background: lightgreen;
}
/* --------------- General ---------- */
.trs-center-element {
    display: flex; 
    justify-content: center;
}
.trs-file-input, .trs-file-input:hover { /* Hide 'No files chosen'. */
    background-color: white;
}
#trs-progress-dialog-container {
    height: 200px;
    overflow-y: auto;
    margin: 10px auto;
    border: solid 1px gray;
    background-color: white;
}
#trs-progress-dialog-container p {
    margin: 2px 5px;
    font-size: 13px;
    font-family: var(--font-sans-serif);
}