﻿/* Generic Defaults */

* {
    font-family: Calibri;
    font-size: 12pt;
}
h4 { font-weight:bold; margin: 2px; margin-top:5px; }
h5 { font-weight:normal; margin: 2px; }
.thidden {
	width: 0px;
    height: 0px;
	visibility: hidden;
    display: none
}
CRM.a
{
    color: #000099;
    text-decoration: none;
}
CRM.a:hover
{
    color: #009900;
}
CRM.a:visited
{
    color: #990099;
}

/* CRMForm */

.CRMForm
{
    text-align: left;
    vertical-align: top;
    overflow: hidden;
    white-space: normal;
    padding-right: 25px;
}

/* CRMView */

.CRMView
{
    text-align: left;
    vertical-align: top;
    overflow: auto;
    white-space: normal;
    padding-right: 25px;
    width: 100%;
}
.CRMViewHead
{
    background-color: #cccccc;
    font-weight: bold;
    text-align: left;
}
.CRMViewEven
{
    background-color: #aae6fa;
    font-weight: normal;
    text-align: left;
}
.CRMViewOdd
{
    background-color: #ffffcc;
    font-weight: normal;
    text-align: left;
}
.CRMViewCount
{
    background-color: #cccccc;
    font-weight: bold;
    text-align: left;
}
.CRMViewTotals
{
    background-color: #cccccc;
    font-weight: bold;
    text-align: left;
}

/* CRMHelp */

div.CRMHelp {
    color: #333333;
    background-color: #ffff87;
    font-family: inherit;
    font-size: inherit;
    font-weight: normal;
    border-color: #0082C3;
    border-radius: 5px;
    border-style: solid;
    border-width: 1px;
    padding: 5px;
    padding-left: 10px;
    padding-right:10px;
    margin: 0px;
}
div.CRMHelpCompact {
    color: #333333;
    background-color: #ffffff;
    font-family: inherit;
    font-size: inherit;
    font-weight: normal;
    border-color: #0082C3;
    border-radius: 5px;
    border-style: solid;
    border-width: 0px;
    padding: 5px;
    margin: 0px;
}
div.CRMHelpPopup {
    color: #333333;
    background-color: #ffffff;
    font-family: inherit;
    font-size: inherit;
    font-weight: normal;
    border-color: #0082C3;
    border-radius: 5px;
    border-style: solid;
    border-width: 1px;
    padding: 5px;
    padding-left: 10px;
    padding-right:10px;
    margin: 0px;
    margin-bottom: 10px;
}
div.CRMHelpTopic {
    color: #666666;
    width: 100%;
    font-weight: bold;
}
span.CRMHelpTopic {
    color: #666666;
    width: 100%;
    font-weight: bold;
}
div.CRMHelpBody {
    width: 100%;
}
span.CRMHelpToggle {
    color: #666666;
    font-weight: bold;
    font-size: larger;
    text-decoration: none;
}
a.CRMHelpToggle, a.CRMHelpToggle:visited {
    color: #666666;
    font-weight: bold;
    font-size: larger;
    text-decoration: none;
}
a.CRMHelpToggle:hover {
    color: #dddddd;
}
.CRMHelpButton, .CRMHelpButton, .CRMHelpButton:visited {
    display: inline-block;
    white-space: nowrap;
    width: auto;
    text-align: center;
    vertical-align: middle;
    text-decoration: none;
    padding-left: 10px;
    padding-right: 10px;
    padding-top: 5px;
    padding-bottom: 5px;
    margin-top: 5px;
    margin-bottom: 5px;
    margin-left: 2px;
    margin-right: 2px;
    color: #ffffff;
    background-color: #4479BA;
    border-width: 1px;
    border-style: solid;
    border-color: #20538D;
    border-radius: 5px;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.4);
    -webkit-text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.4);
    -moz-text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.4);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 1px 1px rgba(0, 0, 0, 0.2);
    -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 1px 1px rgba(0, 0, 0, 0.2);
    -moz-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 1px 1px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}
input.CRMHelpButton:hover, a.CRMHelpButton:hover {
    color: goldenrod;
}

/* CRMField */

.CRMFieldPanel 
{
    padding: 5px;
}
.CRMFieldCell 
{
    padding: 2px;
    padding-left: 5px;
    padding-right: 5px;
    border-spacing: 0px;
    text-align: left;
}
th.CRMFieldCell
{
    background-color: #cccccc;
    color: #333333;
    cursor: default;
}
th.CRMFieldCell:hover
{
    background-color: #999999;
    color: #ffffff;
    cursor: pointer;
}
.CRMField, .CRMField75, .CRMField100, .CRMField150, .CRMField250, .CRMField350, .CRMField500 {
    text-align: left;
    vertical-align: top;
    white-space: normal;
    width: 96%;
    border-width: 1px;
    border-color: silver;
    border-style: solid;
    border-radius: 5px;
    padding-left: 5px;
    padding-right: 5px;
    background-color: #ffffff;
    opacity: 100;
}
.CRMField75 {
    width: 75px;
}
.CRMField100 {
    width: 150px;
}
.CRMField150 {
    width: 150px;
}
.CRMField250 {
    width: 250px;
}
.CRMField350 {
    width: 350px;
}
.CRMField500 {
    width: 500px;
}
.CRMFieldText
{
    border-width: 0px;
    white-space: normal;
}
.CRMFieldLink
{
    border-width: 0px;
    white-space: normal;
    color: #000099;
    text-decoration:none; 
}
a:hover.CRMFieldLink
{
    color: #990000;
}
.CRMFieldDropDown
{
    white-space: nowrap;
    display: inline-block;
}
.CRMFieldCheckbox
{
    border-width: 0px;
}
.CRMFieldCheckList
{
    overflow: auto;
    white-space: nowrap;
    display: inline-block;
}
.CRMFieldRadioBool
{
    overflow: auto;
    margin: 0px;
    padding: 0px;
    border-width: 0px;
    border-radius: 0px;
    white-space: nowrap;
    display: inline-block;
}
.CRMFieldRadioList
{
    overflow: auto;
    white-space: nowrap;
    display: inline-block;
}
.CRMFieldCanvas {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    border-radius: 4px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.02) inset;
}

.CRMFieldCanvas_Frame {
    position: relative;
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    border: 1px solid #c0c0c0;
    border-radius: 4px;
    width: 500px;
    height: 120px;
}

.CRMFieldCanvas_Footer {
    color: #C3C3C3;
    text-align: center;
    font-size: 10px;
    margin-top: 2px;
    width: 500px;
}

.CRMFieldCanvas_Instruct {
    color: #C3C3C3;
    font-family: Calibri;
    font-size: 10pt;
    text-align: left;
    padding-left: 2px;
}

.CRMFieldCanvas_Buttons {
    text-align: right;
    padding-right: 2px;
}

.CRMFieldCanvas_Button {
    color: #333333;
    text-align: center;
    font-family: Calibri;
    font-size: 10pt;
    border-width: 1px;
    border-style: solid;
    border-color: #20538D;
    border-radius: 5px;
    opacity: .9;
}

    .CRMFieldCanvas_Button:hover {
        opacity: .4;
    }

.CRMFieldCanvas_Done {
    margin-left: 10px;
    background-color: lightgreen;
}
.CRMFieldDisabled
{
    background-color: silver;
    display: inline-block;
}
.CRMFieldAccent
{
    color: red;
}

/* CRMRelated */

.CRMRelatedPanel 
{
    overflow: visible;
    padding: 5px;
}
.CRMRelated
{
    text-align: left;
    vertical-align: top;
    width: 96%;
    height: 96%;
    border-width: 1px;
    border-color: silver;
    border-style: solid;
    border-radius: 5px;
    padding-left: 5px;
    padding-right: 15px;
    background-color: #ffffff;
    opacity: 100;
    overflow: auto;
}
.CRMRelatedSmall
{
    text-align: left;
    vertical-align: top;
    width: 96%;
    height: 50px;
    border-width: 1px;
    border-color: silver;
    border-style: solid;
    border-radius: 5px;
    padding-left: 5px;
    padding-right: 15px;
    background-color: #ffffff;
    opacity: 100;
    overflow: auto;
}
.CRMRelatedLarge
{
    text-align: left;
    vertical-align: top;
    width: 96%;
    height: 200px;
    border-width: 1px;
    border-color: silver;
    border-style: solid;
    border-radius: 5px;
    padding-left: 5px;
    padding-right: 15px;
    background-color: #ffffff;
    opacity: 100;
    overflow: auto;
}

/* CRMDocument */

.CRMDocumentPanel 
{
    padding: 5px;
}
.CRMDocumentList, .CRMDocumentListSingle, .CRMDocumentListSmall, .CRMDocumentListMedium, .CRMDocumentListLarge, .CRMDocumentListXLarge, .CRMDocumentListFull
{
    text-align: left;
    vertical-align: top;
    width: 96%;
    height: 100px;
    border-width: 1px;
    border-color: silver;
    border-style: solid;
    border-radius: 5px;
    padding-left: 5px;
    padding-right: 15px;
    background-color: #ffffff;
    opacity: 100;
    overflow: auto;
}
.CRMDocumentListSingle
{
    height: 30px;
}
.CRMDocumentListSmall
{
    height: 50px;
}
.CRMDocumentListMedium
{
    height: 120px;
}
.CRMDocumentListLarge
{
    height: 250px;
}
.CRMDocumentListXLarge
{
    height: 320px;
}
.CRMDocumentListFull
{
    height: 95%;
}
.CRMDocumentLink
{
    color: #000099;
    text-decoration: none;
}
.CRMDocumentLink:hover
{
    color: #009900;
}
.CRMDocumentLink:visited
{
    color: #990099;
}
.CRMDocumentDelete {
    white-space: nowrap;
    width: auto;
    text-align: center;
    vertical-align: top;
    text-decoration: none;
    margin: 0px;
    padding: 0px;
    padding-left: 5px;
    padding-right: 5px;
    color: #ffffff;
    cursor: pointer;
    background-color: #990000;
    border-width: 1px;
    border-style: solid;
    border-color: #20538D;
    border-radius: 5px;
}
a.CRMDocumentDelete, a:visited.CRMDocumentDelete
{
    white-space: nowrap;
    width: auto;
    text-align: center;
    vertical-align: top;
    text-decoration: none;
    margin: 0px;
    padding: 0px;
    padding-left: 5px;
    padding-right:5px;
    color: #ffffff;
    cursor: pointer;
    background-color: #990000;
    border-width: 1px;
    border-style: solid;
    border-color: #20538D;
    border-radius: 5px;
}
a:hover.CRMDocumentDelete
{
    color: goldenrod;
}

/* Required Label */

.CRMRequired
{
    display: inline-block;
    text-align: left;
    white-space: nowrap;
    width: 12px;
    font-weight: bold;
    color: #990000;
}

/* Field Label */

.CRMLabel
{
    text-align: left;
    white-space: normal;
    font-weight: bold;
    width: 100%;
}
.CRMLabelBold
{
    text-align: left;
    width: 100%;
    font-weight: bold;
}
.CRMLabelLeft {
    text-align: left;
    white-space: normal;
    font-weight: bold;
}
.CRMLabel100 {
    text-align: left;
    white-space: normal;
    font-weight: bold;
    width: 100px;
    display: inline-block;
}

.CRMLabel200 {
    text-align: left;
    white-space: normal;
    font-weight: bold;
    width: 200px;
    display: inline-block;
}

/* UOM Label */

.CRMUOM
{
    display: inline-block;
    text-align: left;
    white-space: nowrap;
    width: 12px;
}

/* Field Counter */

.CRMCounter
{
    text-align: left;
    width: 100%;
}

/* CRMUpload */

.CRMUploadPanel
{
    text-align: left;
    vertical-align: top;
    width: 98%;
    padding: 12px;
    border-width: 1px;
    border-color: silver;
    border-style: solid;
    border-radius: 5px;
    padding-left: 5px;
    background-color: #ffffff;
    opacity: 100;
}
.CRMUpload
{
    text-align: left;
    vertical-align: top;
    width: 500px;
    display: block;
    margin: 5px;
}
.CRMTagSelect
{
    text-align: left;
    vertical-align: top;
    width: 350px;
    display: block;
    margin: 5px;
    border-width: 1px;
    border-color: silver;
    border-style: solid;
    border-radius: 5px;
}

/* Help */

.CRMHelpPanel
{
    position: absolute;
    position: -ms-device-fixed;
    display: block;
    z-index: 100;
    height: 500px;
    width: 500px;
    top: 50px;
    right: 500px;
    padding: 5px;
    background-color: #aae6fa;
    border-width: 1px;
    border-style: solid;
    border-color: silver;
    border-radius: 5px;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 1px 1px rgba(0, 0, 0, 0.2);
    -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 1px 1px rgba(0, 0, 0, 0.2);
    -moz-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 1px 1px rgba(0, 0, 0, 0.2);
}
.CRMHelpContent {
    background-color: #fefefe;
    margin: 5px;
    margin-top: 22px;
    padding: 10px;
    border: 1px solid #888;
    width: 468px; 
    height: 450px;
    text-align: left;
    border-width: 1px;
    border-style: solid;
    border-color: silver;
    border-radius: 5px;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 1px 1px rgba(0, 0, 0, 0.2);
    -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 1px 1px rgba(0, 0, 0, 0.2);
    -moz-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 1px 1px rgba(0, 0, 0, 0.2);
}
.CRMHelpClose {
    color: #aaa;
    float: right;
    font-size: 12pt;
    font-weight: bold;
}
.CRMHelpClose:hover, .CRMHelpClose:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}
.CRMHelpButton
{
    display: inline-block;
    white-space: nowrap;
    width: auto;
    text-align: center;
    vertical-align: top;
    text-decoration: none;
    padding: 2px;
    color: #ffffff;
    cursor: pointer;
}

/* Add New */

.CRMAddNewPanel
{
    position: absolute;
    position: -ms-device-fixed;
    display: block;
    z-index: 100;
    height: 450px;
    width: 500px;
    top: 25px;
    right: 500px;
    padding: 5px;
    background-color: #aae6fa;
    border-width: 1px;
    border-style: solid;
    border-color: silver;
    border-radius: 5px;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 1px 1px rgba(0, 0, 0, 0.2);
    -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 1px 1px rgba(0, 0, 0, 0.2);
    -moz-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 1px 1px rgba(0, 0, 0, 0.2);
}
.CRMAddNewContent {
    background-color: #fefefe;
    margin: 5px;
    margin-top: 22px;
    padding: 10px;
    border: 1px solid #888;
    width: 468px; 
    height: 400px;
    text-align: left;
    border-width: 1px;
    border-style: solid;
    border-color: silver;
    border-radius: 5px;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 1px 1px rgba(0, 0, 0, 0.2);
    -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 1px 1px rgba(0, 0, 0, 0.2);
    -moz-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 1px 1px rgba(0, 0, 0, 0.2);
}
.CRMAddNewClose {
    color: #aaa;
    float: right;
    font-size: 12pt;
    font-weight: bold;
}
.CRMAddNewClose:hover, .CRMAddNewClose:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}
.CRMAddNewButton
{
    display: inline-block;
    white-space: nowrap;
    text-align: center;
    vertical-align: middle;
    text-decoration: none;
    padding-left: 0px;
    padding-right: 0px;
    padding-top: 0px;
    padding-bottom: 0px;
    margin-top: 2px;
    margin-bottom: 2px;
    margin-left: 2px;
    margin-right: 2px;
    color: #ffffff;
    background-color: #ffffff;
    border-width: 0px;
    border-style: solid;
    border-color: #20538D;
    border-radius: 5px;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.4);
    -webkit-text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.4);
    -moz-text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.4);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 1px 1px rgba(0, 0, 0, 0.2);
    -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 1px 1px rgba(0, 0, 0, 0.2);
    -moz-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 1px 1px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    background-image: url('plus.gif');
    background-position: center;
    background-repeat: no-repeat;
    height: 16px;
    width: 16px;
}

/* Buttons */

.CRMButtonPanel
{
    white-space: nowrap;
    padding-top: 10px;
}
.CRMButton, .CRMButton, .CRMButton:visited
{
    display: inline-block;
    white-space: nowrap;
    width: auto;
    text-align: center;
    vertical-align: middle;
    text-decoration: none;
    padding-left: 10px;
    padding-right: 10px;
    padding-top: 5px;
    padding-bottom: 5px;
    margin-top: 5px;
    margin-bottom: 5px;
    margin-left: 2px;
    margin-right: 2px;
    color: #ffffff;
    background-color: #4479BA;
    border-width: 1px;
    border-style: solid;
    border-color: #20538D;
    border-radius: 5px;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.4);
    -webkit-text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.4);
    -moz-text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.4);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 1px 1px rgba(0, 0, 0, 0.2);
    -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 1px 1px rgba(0, 0, 0, 0.2);
    -moz-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 1px 1px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}
input.CRMButton:hover, a.CRMButton:hover
{
    color: goldenrod;
}

/* Filter */

.CRMFilterPanel
{
    white-space: nowrap;
    padding-top: 10px;
}
.CRMSearch, .CRMSearch, .CRMSearch:visited
{
    display: inline-block;
    white-space: nowrap;
    width: auto;
    text-align: center;
    vertical-align: middle;
    text-decoration: none;
    padding-left: 0px;
    padding-right: 0px;
    padding-top: 0px;
    padding-bottom: 0px;
    margin-top: 0px;
    margin-bottom: 0px;
    margin-left: 2px;
    margin-right: 2px;
    color: #ffffff;
    background-color: #ffffff;
    border-width: 0px;
    border-style: solid;
    border-color: #20538D;
    border-radius: 5px;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.4);
    -webkit-text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.4);
    -moz-text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.4);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 1px 1px rgba(0, 0, 0, 0.2);
    -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 1px 1px rgba(0, 0, 0, 0.2);
    -moz-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 1px 1px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    background-image: url('search.gif');
    background-position: center;
    background-repeat: no-repeat;
}
input.CRMSearch:hover, a.CRMSearch:hover
{
    color: goldenrod;
}
.CRMFilterField
{
    text-align: left;
    font-weight: normal;
    vertical-align: middle;
    white-space: normal;
    border-width: 1px;
    border-color: silver;
    border-style: solid;
    border-radius: 5px;
    padding-left: 5px;
    padding-right: 5px;
    background-color: #ffffff;
    opacity: 100;
    width: 150px;
}
.CRMFilterOperator
{
    text-align: left;
    vertical-align: middle;
    white-space: normal;
    border-width: 1px;
    border-color: silver;
    border-style: solid;
    border-radius: 5px;
    padding-left: 5px;
    padding-right: 5px;
    background-color: #ffffff;
    opacity: 100;
    width: 150px;
}
.CRMFilterValue
{
    text-align: left;
    vertical-align: middle;
    white-space: normal;
    border-width: 1px;
    border-color: silver;
    border-style: solid;
    border-radius: 5px;
    padding-left: 5px;
    padding-right: 5px;
    background-color: #ffffff;
    opacity: 100;
    width: 150px;
}

/* Query */

.CRMQueryFrame {
    height: calc(100% - 1px);
    width: calc(100% - 2px);
}
.CRMQueryFrameHeader {
    color: #ffffff;
    background-color: #4479BA;
    font-family: inherit;
    font-size: larger;
    font-weight: bold;
    border-color: #0082C3;
    border-radius: 5px;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-style: solid;
    border-width: 1px;
    border-bottom: 1px solid #0082C3;
    border-bottom-left-radius: 0px;
    border-bottom-right-radius: 0px;
    padding: 2px;
    padding-left: 10px;
    margin-bottom: 10px;
}
.CRMQueryFrameTitle {
    text-align: left;
    white-space: normal;
    font-weight: bold;
    color: #ffffff;
    width: 100%;
}
.CRMQueryMenu {
    display: block;
    height: calc(100% - 40px);
    width: 150px;
}
.CRMQueryMenuHeader {
    color: #ffffff;
    background-color: #4479BA;
    font-family: inherit;
    font-size: larger;
    font-weight: bold;
    border-color: #0082C3;
    border-radius: 5px;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-style: solid;
    border-width: 1px;
    border-bottom: 1px solid #0082C3;
    border-bottom-left-radius: 0px;
    border-bottom-right-radius: 0px;
    padding: 2px;
    padding-left: 10px;
    padding-right: 10px;
    margin-bottom: 0px;
    width: 150px;
    height: 24px;
}
.CRMQueryMenuTitle {
    text-align: left;
    white-space: normal;
    font-weight: bold;
    color: #ffffff;
    width: 100%;
}
.CRMQueryMenuBody {
    display: block;
    width: 150px;
    height: calc(100% - 11px);
    border-left: 1px solid #4479BA;
    border-right: 1px solid #4479BA;
    border-bottom: 1px solid #4479BA;
    vertical-align: top;
    margin: 0px;
    margin-top: 0px;
    padding: 10px;
}
div.CRMQueryMenuItem {
    display: block;
    margin-top: 3px;
}
a.CRMQueryMenuLink, a.CRMQueryMenuLink:visited {
    font-family: Calibri;
    font-size: 12pt;
    font-weight: normal;
    color: #0000cc;
    text-decoration: none;
    cursor: pointer;
}
    a.CRMQueryMenuLink:hover {
        color: #cc0000;
    }
.CRMQueryMenuNumber {
    font-family: Calibri;
    font-size: 6pt;
    font-weight: normal;
    color: #4479BA;
    background-color: #eeeeee;
    border: 1pt solid #4479BA;
    border-radius: 10px;
    padding-top: 1px;
    padding-bottom: 1px;
    padding-left: 1px;
    padding-right: 1px;
    text-align: center;
    display: inline-block;
    margin-right: 5px;
    width: 8px;
    height: 8px;
}
span.CRMQueryMenuLabel {
    display: inline-block;
    font-size: 12pt;
    font-weight: bold;
    text-align: left;
    vertical-align: top;
}
.CRMQuerySubMenuNumber {
    font-family: Calibri;
    font-size: 6pt;
    font-weight: normal;
    color: #4479BA;
    background-color: #eeeeee;
    border: 1pt solid #4479BA;
    border-radius: 5px;
    padding-top: 1px;
    padding-bottom: 1px;
    padding-left: 1px;
    padding-right: 1px;
    text-align: center;
    display: inline-block;
    margin-left: 15px;
    margin-right: 5px;
    width: 6px;
    height: 6px;
}
span.CRMQuerySubMenuLabel {
    display: inline-block;
    font-size: 10pt;
    font-weight: bold;
    text-align: left;
    vertical-align: top;
}
.CRMQueryContent {
    display: block;
    width: calc(100%);
    height: calc(100% - 2px);
    border-left: 1px solid #4479BA;
    border-right: 1px solid #4479BA;
    border-bottom: 1px solid #4479BA;
    border-top: 1px solid #4479BA;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    overflow: auto;
}
.CRMQueryContentHeader {
    color: #ffffff;
    background-color: #4479BA;
    font-family: inherit;
    font-size: larger;
    font-weight: bold;
    border-color: #0082C3;
    border-radius: 5px;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-style: solid;
    border-width: 1px;
    border-bottom: 1px solid #0082C3;
    border-bottom-left-radius: 0px;
    border-bottom-right-radius: 0px;
    padding: 2px;
    padding-left: 10px;
    margin-bottom: 0px;
    width: calc(100% - 0px);
    height: 24px;
}

.CRMQueryContentTitle {
    text-align: left;
    white-space: normal;
    font-weight: bold;
    color: #ffffff;
    width: 100%;
}
.CRMQueryContentBody {
    display: block;
    width: calc(100% - 0px);
    height: calc(100% - 0px);
    border-left: 0px solid #4479BA;
    border-right: 0px solid #4479BA;
    border-bottom: 0px solid #4479BA;
    border-top: 0px solid #4479BA;
    vertical-align: top;
    margin: 0px;
    margin-top: 0px;
    padding: 0px;
    overflow: visible;
}
th.QueryPanel
{
    padding: 5px;
}
td.QueryPanel
{
    padding: 2px;
}
.CRMQuerySectionPanel
{
    display: inline-block;
    width: calc(100% - 0px);
    white-space: nowrap;
    text-align: left;
    vertical-align: top;
    padding: 0px;
    padding-bottom: 3px;
    border-width: 0px;
    border-style: solid;
    border-color: #20538D;
    border-radius: 0px;
}
.CRMQuerySectionHeader
{
    color: #ffffff;
    background-color: #4479BA;
    font-family: inherit;
    font-size: larger;
    font-weight: bold;
    border-color: #0082C3;
    border-radius: 5px;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-style: solid;
    border-width: 1px;
    border-bottom: 1px solid #0082C3;
    border-bottom-left-radius: 0px;
    border-bottom-right-radius: 0px;
    padding: 2px;
    padding-left: 10px;
}
.CRMQuerySectionContent {
    padding: 8px;
    word-wrap: break-word;
    text-wrap: initial;
}
.CRMQuerySectionTitle
{
    text-align: left;
    white-space: normal;
    font-weight: bold;
    color: #ffffff;
    width: 100%;
}
.CRMQuerySectionHidden { display:none; }
.CRMQuerySectionResult {
    display: block;
    width: calc(100% - 0px);
    word-wrap: break-word;
    text-wrap: initial;
    text-align: left;
    vertical-align: top;
    padding: 5px;
    border-width: 1px;
    border-style: solid;
    border-color: #c3b091;
    border-radius: 0px;
}
.CRMQueryActionPanel
{
    display: inline-block;
    width: calc(100% - 10px);
    white-space: nowrap;
    text-align: center;
    vertical-align: top;
    padding: 0px;
    padding-bottom: 3px;
    background-color: #ffffcc;
    border-width: 1px;
    border-style: solid;
    border-color: #20538D;
    border-radius: 5px;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.4);
    -webkit-text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.4);
    -moz-text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.4);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 1px 1px rgba(0, 0, 0, 0.2);
    -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 1px 1px rgba(0, 0, 0, 0.2);
    -moz-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 1px 1px rgba(0, 0, 0, 0.2);
}
.CRMQueryActionHeader
{
    color: #ffffff;
    background-color: #4479BA;
    font-family: inherit;
    font-size: larger;
    font-weight: bold;
    border-color: #0082C3;
    border-radius: 5px;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-style: solid;
    border-width: 1px;
    border-bottom: 1px solid #0082C3;
    border-bottom-left-radius: 0px;
    border-bottom-right-radius: 0px;
    padding: 2px;
    padding-left: 10px;
}
.CRMQueryActionTitle
{
    text-align: left;
    white-space: normal;
    font-weight: bold;
    color: #ffffff;
    width: 100%;
}
.CRMQueryActionButton, .CRMQueryActionButton:visited
{
    display: inline-block;
    white-space: nowrap;
    width: auto;
    text-align: center;
    vertical-align: middle;
    text-decoration: none;
    padding-left: 10px;
    padding-right: 10px;
    padding-top: 2px;
    padding-bottom: 2px;
    margin-top: 0px;
    margin-bottom: 0px;
    margin-left: 2px;
    margin-right: 2px;
    color: #ffffff;
    background-color: #4479BA;
    border-width: 1px;
    border-style: solid;
    border-color: #20538D;
    border-radius: 5px;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.4);
    -webkit-text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.4);
    -moz-text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.4);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 1px 1px rgba(0, 0, 0, 0.2);
    -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 1px 1px rgba(0, 0, 0, 0.2);
    -moz-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 1px 1px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}
input.CRMQueryActionButton:hover, a.CRMQueryActionButton:hover {
    color: goldenrod;
}
span.CRMQueryLabel
{
    display: inline-block;
    font-weight: normal;
    text-align: left;
    vertical-align: middle;
    padding-left: 5px;
    padding-right: 10px;
}
span.CRMQueryLabelBorder {
    display: inline-block;
    font-weight: normal;
    text-align: left;
    vertical-align: middle;
    padding-left: 5px;
    padding-right: 10px;
    width: 100px;
}
div.CRMQueryOptions
{
    display: block;
    font-weight: normal;
    padding-top: 8px;
    padding-bottom: 10px;
    padding-left: 5px;
    padding-right: 5px;
    opacity: 100;
}
input.CRMQueryOptions
{
    display: inline-block;
    white-space: nowrap;
    text-align: left;
    vertical-align: top;
    width: 50px;
    padding: 2px;
    margin-right: 2px;
    border-width: 1px;
    border-style: solid;
    border-color: #20538D;
    border-radius: 5px;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.4);
    -webkit-text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.4);
    -moz-text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.4);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 1px 1px rgba(0, 0, 0, 0.2);
    -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 1px 1px rgba(0, 0, 0, 0.2);
    -moz-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 1px 1px rgba(0, 0, 0, 0.2);
}
input.CRMQueryOptionsLabel 
{
    width: 400px;
}
input.CRMQueryOptionsAttribute
{
    width: 200px;
}
input.CRMQueryOptionsOrder
{
    width: 50px;
    text-align: center;
}
input.CRMQueryOptionsWidth
{
    width: 50px;
    text-align: center;
}
input.CRMQueryOptionsValue
{
    width: 150px;
}
input.CRMQueryOptionsEntity
{
    width: 200px;
    text-align: left;
}
input.CRMQueryOptionsRelation
{
    width: 200px;
}
input.CRMQueryOptionsReport {
    width: 250px;
    text-align: left;
}
input.CRMQueryOptionsFile {
    width: 500px;
    text-align: left;
}
select.CRMQueryOptions
{
    display: inline-block;
    white-space: nowrap;
    text-align: center;
    vertical-align: top;
    padding: 2px;
    margin-right: 2px;
    border-width: 1px;
    border-style: solid;
    border-color: #20538D;
    border-radius: 5px;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.4);
    -webkit-text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.4);
    -moz-text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.4);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 1px 1px rgba(0, 0, 0, 0.2);
    -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 1px 1px rgba(0, 0, 0, 0.2);
    -moz-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 1px 1px rgba(0, 0, 0, 0.2);
}
select.CRMQueryOptionsReport
{
    width: 250px;
    text-align: left;
}
select.CRMQueryOptionsTable {
    width: 250px;
    text-align: left;
}
select.CRMQueryOptionsEntity
{
    width: 200px;
    text-align: left;
}
select.CRMQueryOptionsAttribute
{
    width: 175px;
    text-align: left;
}
select.CRMQueryOptionsDirection
{
    width: 100px;
    text-align: center;
}
select.CRMQueryOptionsColor {
    width: 100px;
    text-align: left;
}
select.CRMQueryOptionsFamily {
    width: 100px;
    text-align: left;
}
select.CRMQueryOptionsType
{
    width: 100px;
    text-align: center;
}
select.CRMQueryOptionsStyle {
    width: 75px;
    text-align: left;
}
select.CRMQueryOptionsSizing {
    width: 125px;
    text-align: left;
}
select.CRMQueryOptionsQualifier
{
    width: 100px;
    text-align: left;
}
select.CRMQueryOptionsValue {
    width: 150px;
    text-align: left;
}
select.CRMQueryOptionsCondition {
    width: 60px;
    text-align: center;
}
select.CRMQueryOptionsFormat {
    width: 150px;
    text-align: left;
}
select.CRMQueryOptionsFile {
    width: 500px;
    text-align: left;
}
select.CRMQueryOptionsCopy {
    width: 253px;
    text-align: left;
}
div.CRMQueryOutput {
    display: block;
    text-align: left;
    font-weight: normal;
    vertical-align: top;
    padding-top: 8px;
    padding-bottom: 10px;
    padding-left: 5px;
    padding-right: 5px;
    background-color: #ffffff;
    opacity: 100;
}
span.CRMQueryOutput
{
    display: inline-block;
    text-align: left;
    text-wrap: normal;
    white-space: pre-wrap;
    overflow: scroll;
    vertical-align: top;
    width: calc(100% - 15px);
    height: 365px;
    padding: 2px;
    margin-right: 10px;
    border-width: 1px;
    border-style: solid;
    border-color: #20538D;
    border-radius: 5px;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.4);
    -webkit-text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.4);
    -moz-text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.4);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 1px 1px rgba(0, 0, 0, 0.2);
    -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 1px 1px rgba(0, 0, 0, 0.2);
    -moz-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 1px 1px rgba(0, 0, 0, 0.2);
}

.CRMQueryLayoutFull {
    height: calc(100% - 3px);
    overflow: hidden;
}
.CRMQueryLayoutPanel {
    width: calc(100% - 16px);
    height: calc(100% - 43px);
    overflow: hidden;
}
.CRMQueryLayoutPanelButton {
    display: inline-block;
    height: 30px;
    margin-left: 20px;
    text-align: center;
    vertical-align: top;
}
.CRMQueryLayoutPanelContent {
    width: calc(100% - 19px);
    height: calc(100% - 34px);
    word-wrap: break-word;
    text-wrap: initial;
    text-align: left;
    vertical-align: top;
    padding: 0px;
    padding-left: 8px;
    padding-right: 8px;
    margin: 0px;
    border-width: 1px;
    border-style: solid;
    border-color: #20538D;
    border-radius: 0px;
    overflow: auto;
}

/* Designer */

.CRMQueryDesignPanel {
    height: calc(100% - 155px);
    width: calc(100% - 7px);
    overflow: auto;
    border: 0px solid red;
    padding: 2px;
}
.CRMQueryDesignEditor {
    border: 1px solid #999999;
}
.CRMQueryDesignTools {
    width: calc(100% - 23px);
    height: 27px;
    overflow: hidden;
    border: 1px inset #999999;
    background-color: #cccccc;
    padding: 2px;
    padding-left: 10px;
    padding-right: 10px;
    margin-bottom: 5px;
    vertical-align: middle;
    border-radius: 5px;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.4);
    -webkit-text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.4);
    -moz-text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.4);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 1px 1px rgba(0, 0, 0, 0.2);
    -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 1px 1px rgba(0, 0, 0, 0.2);
    -moz-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 1px 1px rgba(0, 0, 0, 0.2);
}
.CRMQueryDesignToolsOption {
    font-family: Calibri;
    font-size: 10pt;
    font-weight: normal;
    color: #000099;
    text-decoration: none;
    text-align: center;
    width: 60px;
    overflow: hidden;
    cursor: grab;
    border: 1px solid #999999;
    background-color: #eeeeee;
    border-radius: 5px;
    padding: 0px;
    padding-left: 10px;
    padding-right: 10px;
    margin-right: 5px;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.4);
    -webkit-text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.4);
    -moz-text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.4);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 1px 1px rgba(0, 0, 0, 0.2);
    -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 1px 1px rgba(0, 0, 0, 0.2);
    -moz-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 1px 1px rgba(0, 0, 0, 0.2);
}
    .CRMQueryDesignToolsOption:hover {
        color: #990000;
    }
.CRMQueryDesignToolsLayout {
    font-family: Calibri;
    font-size: 10pt;
    font-weight: normal;
    color: #000099;
    text-decoration: none;
    text-align: left;
    width: 100px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid #999999;
    background-color: #eeeeee;
    border-radius: 5px;
    padding: 0px;
    padding-left: 10px;
    padding-right: 10px;
    margin-left: 5px;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.4);
    -webkit-text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.4);
    -moz-text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.4);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 1px 1px rgba(0, 0, 0, 0.2);
    -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 1px 1px rgba(0, 0, 0, 0.2);
    -moz-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 1px 1px rgba(0, 0, 0, 0.2);
}
    .CRMQueryDesignToolsLayout:hover {
        color: #990000;
    }

span .CRMQueryDesignToolsItem {
    border: 1px groove silver;
}
div.CRMQueryDesignToolsItem {
    border: 1px groove silver;
    height: .2in;
    width: 1in;
}
img.CRMQueryDesignToolsItem {
    border: 1px groove silver;
    height: .25in;
    width: .25in;
}
table.CRMQueryDesignToolsItem {
    border: 1px groove silver;
    border-spacing: 0px;
    border-collapse: collapse;
}
tr.CRMQueryDesignToolsItem {
    border: 1px groove silver;
    border-spacing: 0px;
    border-collapse: collapse;
}
td.CRMQueryDesignToolsItem {
    border: 1px groove silver;
    min-height: 0.1in;
    min-width: 0.25in;
}
td.CRMQueryDesignToolsRow {
    font-size: 1pt;
    background-color: lightgray;
    border: 1px groove silver;
    height: 0.25in;
    width: 0.1in;
    min-height: 0.1in;
    min-width: 0.1in;
}
td.CRMQueryDesignToolsCol {
    font-size: 1pt;
    background-color: lightgray;
    border: 1px groove silver;
    height: 0.1in;
    width: 1in;
    min-height: 0.1in;
    min-width: 0.25in;
}
td.CRMQueryDesignToolsBlnk {
    font-size: 1pt;
    height: 0.1in;
    width: 0.1in;
    min-height: 0.1in;
    min-width: 0.1in;
}

/* Manage */

.CRMQueryManagePanel {
    height: calc(100% - 185px);
    width: calc(100% - 7px);
    overflow: auto;
    border: 0px solid red;
    padding: 2px;
}
table.CRMQueryManageTable {
    padding: 0px;
    margin: 0px;
    border-collapse: collapse;
}
td.CRMQueryManageHead {
    border: 1px dashed lightgray;
    background-color: silver;
    font-weight: bold;
    padding: 0px;
    padding-left: 10px;
    padding-right: 10px;
    margin: 0px;
}
td.CRMQueryManageTable {
    border: 1px dashed lightgray;
    padding: 0px;
    padding-left: 10px;
    padding-right: 10px;
    margin: 0px;
}

/* Settings */

.CRMQuerySettingsPanel {
    position: absolute;
    position: -ms-device-fixed;
    display: block;
    z-index: 100;
    height: 600px;
    width: 700px;
    top: 50px;
    right: 500px;
    padding: 5px;
    background-color: #aae6fa;
    border-width: 1px;
    border-style: solid;
    border-color: silver;
    border-radius: 5px;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 1px 1px rgba(0, 0, 0, 0.2);
    -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 1px 1px rgba(0, 0, 0, 0.2);
    -moz-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 1px 1px rgba(0, 0, 0, 0.2);
}
.CRMQuerySettingsContent {
    background-color: #fefefe;
    margin: 5px;
    margin-top: 7px;
    padding: 10px;
    border: 1px solid #888;
    width: 668px;
    height: 550px;
    text-align: left;
    overflow: auto;
    border-width: 1px;
    border-style: solid;
    border-color: silver;
    border-radius: 5px;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 1px 1px rgba(0, 0, 0, 0.2);
    -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 1px 1px rgba(0, 0, 0, 0.2);
    -moz-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 1px 1px rgba(0, 0, 0, 0.2);
}
.CRMQuerySettingsTable {
    margin-top: 10px;
    width: 650px;
}
.CRMSettingsTitle {
    color: #333333;
    float: left;
    margin-left: 10px;
    margin-right: 10px;
    font-size: 12pt;
    font-weight: bold;
}
.CRMSettingsLabel {
    color: #333333;
    margin-left: 10px;
    margin-right: 10px;
    font-size: 12pt;
    font-weight: normal;
}
.CRMSettingsLabelBold {
    color: #333333;
    margin-right: 10px;
    font-size: 12pt;
    font-weight: bold;
    text-wrap: none;
}
.CRMSettingsButton {
    color: #0000cc;
    float: right;
    margin-left: 10px;
    margin-right: 10px;
    font-size: 12pt;
    font-weight: bold;
}
    .CRMSettingsButton:hover, .CRMSettingsButton:focus {
        color: #ffffff;
        text-decoration: none;
        cursor: pointer;
    }
.CRMSettingsLink {
    color: #0000cc;
    margin-left: 10px;
    margin-right: 10px;
    font-size: 12pt;
    font-weight: bold;
}
    .CRMSettingsLink:hover, .CRMSettingsLink:focus {
        color: #CC0000;
        text-decoration: none;
        cursor: pointer;
    }
.CRMQuerySettingsSharing {
    background-color: #ffffff;
    margin: 5px;
    margin-top: 7px;
    padding: 10px;
    border: 1px solid #888;
    width: 636px;
    height: 300px;
    text-align: left;
    overflow: auto;
    border-width: 1px;
    border-style: solid;
    border-color: silver;
    border-radius: 5px;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 1px 1px rgba(0, 0, 0, 0.2);
    -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 1px 1px rgba(0, 0, 0, 0.2);
    -moz-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 1px 1px rgba(0, 0, 0, 0.2);
}
.CRMQuerySettingsUser {
    font-family: Calibri;
    font-size: 10pt;
    font-weight: normal;
    color: #000099;
    text-decoration: none;
    text-align: center;
    width: 60px;
    overflow: hidden;
    border: 1px solid #999999;
    background-color: #eeeeee;
    border-radius: 5px;
    padding: 5px;
    padding-left: 10px;
    padding-right: 10px;
    margin-right: 5px;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.4);
    -webkit-text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.4);
    -moz-text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.4);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 1px 1px rgba(0, 0, 0, 0.2);
    -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 1px 1px rgba(0, 0, 0, 0.2);
    -moz-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 1px 1px rgba(0, 0, 0, 0.2);
}
.CRMQuerySettingsUserLink {
    color: #000099;
    border: 0px solid #999999;
    cursor: pointer;
}
    .CRMQuerySettingsUserLink:hover {
        color: #990000;
        border: 0px solid #999999;
    }

/* SharePoint */

table.CRMSharePointFrame {
    height: calc(100% - 5px);
    width: calc(100% - 10px);
    vertical-align: top;
    text-align: left;
    text-wrap: nowrap;
    border-collapse: collapse;
    padding: 0px;
    margin: 5px;
}
td.CRMSharePointFrameMenu {
    height: 100%;
    width: 150px;
    vertical-align: top;
    text-align: left;
    text-wrap: nowrap;
    padding-left: 2px;
    padding-right: 2px;
    margin: 0px;
}
td.CRMSharePointFrameData {
    height: 100%;
    vertical-align: top;
    text-align: left;
    padding-left: 2px;
    padding-right: 2px;
    margin: 0px;
}
table.CRMSharePointFrameTable {
    height: 100%;
    width: 100%;
    vertical-align: top;
    text-align: left;
    border-collapse: collapse;
    padding: 0px;
    margin: 0px;
}
td.CRMSharePointFrameHeader {
    height: 24px;
    width: 100%;
    vertical-align: bottom;
    text-align: left;
    padding: 0px;
    margin: 0px;
}
div.CRMSharePointFrameHeader {
    height: 100%;
    background-color: #4479BA;
    border: 1px solid #0082C3;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    padding-left: 10px;
    padding-right: 10px;
}
span.CRMSharePointFrameTitle {
    font-family: Calibri;
    font-size: 12pt;
    font-weight: bold;
    color: #ffffff;
}
td.CRMSharePointFrameBody {
    width: 100%;
    vertical-align: top;
    text-align: left;
    border: 1px solid #0082C3;
    padding: 10px;
    margin: 0px;
    overflow: auto;
}
td.CRMSharePointFrameFooter {
    height: 20px;
    width: 100%;
    vertical-align: bottom;
    text-align: right;
    padding: 0px;
    padding-right: 1px;
    margin: 0px;
    background-color: #4479BA;
    border: 1px solid #0082C3;
}
div.CRMSharePointFrameFooter {
    height: 18px;
    width: 100%;
    vertical-align: bottom;
    text-align: right;
    background-color: #4479BA;
    border: 1px solid #0082C3;
    padding: 0px;
    margin: 0px;
}
span.CRMSharePointFrameIcon {
    display: block;
    float: right;
    height: 18px;
    width: 18px;
    border: 0px solid white;
    outline: 1px dashed white;
    outline-offset: -2px;
    padding: 0px;
    margin: 0px;
    margin-right: 3px;
    cursor: pointer;
    text-align: center;
    vertical-align: bottom;
    font-family: Calibri;
    font-size: 12px;
    color: white;
}
td.CRMSharePointFrameBlank {
    height: 100%;
    width: 22px;
    vertical-align: bottom;
    text-align: right;
    padding: 0px;
    padding-right: 1px;
    margin: 0px;
    background-color: #4479BA;
    border: 1px solid #0082C3;
}

a.CRMSharePointMenuLink, a.CRMSharePointMenuLink:visited {
    font-family: Calibri;
    font-size: 12pt;
    font-weight: normal;
    color: #0000cc;
    text-decoration: none;
    cursor: pointer;
    display: block;
}
    a.CRMSharePointMenuLink:hover {
        color: #cc0000;
    }
div.CRMSharePointMenuNumber {
    font-family: Calibri;
    font-size: 6pt;
    font-weight: normal;
    color: #4479BA;
    background-color: #eeeeee;
    border: 1pt solid #4479BA;
    border-radius: 10px;
    padding-top: 1px;
    padding-bottom: 1px;
    padding-left: 1px;
    padding-right: 1px;
    text-align: center;
    display: inline-block;
    margin-right: 5px;
    width: 8px;
    height: 8px;
}
span.CRMSharePointMenuLabel {
    display: inline-block;
    font-size: 12pt;
    font-weight: bold;
    text-align: left;
    vertical-align: top;
}
div.CRMSharePointMenuNumberSub {
    font-family: Calibri;
    font-size: 6pt;
    font-weight: normal;
    color: #4479BA;
    background-color: #eeeeee;
    border: 1pt solid #4479BA;
    border-radius: 5px;
    padding-top: 1px;
    padding-bottom: 1px;
    padding-left: 1px;
    padding-right: 1px;
    text-align: center;
    display: inline-block;
    margin-left: 15px;
    margin-right: 5px;
    width: 6px;
    height: 6px;
}
span.CRMSharePointMenuLabelSub {
    display: inline-block;
    font-size: 10pt;
    font-weight: bold;
    text-align: left;
    vertical-align: top;
}

table.CRMSharePointDataTable {
    height: 100%;
    width: 100%;
    vertical-align: top;
    text-align: left;
    border-collapse: collapse;
    padding: 0px;
    margin: 0px;
}
td.CRMSharePointDataTable {
    vertical-align: top;
    text-align: left;
    padding: 0px;
    margin: 0px;
    width: 100%;
}
td.CRMSharePointDataTableFull {
    vertical-align: top;
    text-align: left;
    padding: 0px;
    margin: 0px;
    height: 100%;
    width: 100%;
    overflow: auto;
}
div.CRMSharePointDataTableFull {
    display: flex;
    vertical-align: top;
    text-align: left;
    padding: 0px;
    margin: 0px;
    height: calc(100% - 2px);
    width: calc(100% - 2px);
    overflow: auto;
}
td.CRMSharePointDataTableNav {
    vertical-align: middle;
    text-align: left;
    padding: 2px;
    margin: 0px;
    width: 100%;
    height: 28px;
    border-top: 1px solid darkgray;
    border-bottom: 1px solid darkgray;
    background-color: lightgray;
}
td.CRMSharePointDataTableContent {
    vertical-align: top;
    text-align: left;
    padding: 0px;
    margin: 0px;
}

table.CRMSharePointOptions {
    height: fit-content;
    width: 100%;
    vertical-align: top;
    text-align: left;
    border-collapse: collapse;
    padding: 0px;
    margin: 0px;
    border: 1px solid silver;
}
input.CRMSharePointOptions {
    display: inline-block;
    white-space: nowrap;
    text-align: left;
    vertical-align: top;
    width: 50px;
    padding: 2px;
    margin-right: 2px;
    border-width: 1px;
    border-style: solid;
    border-color: #20538D;
    border-radius: 5px;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.4);
    -webkit-text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.4);
    -moz-text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.4);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 1px 1px rgba(0, 0, 0, 0.2);
    -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 1px 1px rgba(0, 0, 0, 0.2);
    -moz-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 1px 1px rgba(0, 0, 0, 0.2);
}
input.CRMSharePointOptionsSearch {
    width: 200px;
}
select.CRMSharePointOptions {
    display: inline-block;
    white-space: nowrap;
    text-align: center;
    vertical-align: top;
    padding: 2px;
    margin-right: 2px;
    border-width: 1px;
    border-style: solid;
    border-color: #20538D;
    border-radius: 5px;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.4);
    -webkit-text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.4);
    -moz-text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.4);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 1px 1px rgba(0, 0, 0, 0.2);
    -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 1px 1px rgba(0, 0, 0, 0.2);
    -moz-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 1px 1px rgba(0, 0, 0, 0.2);
}
select.CRMSharePointOptionsTable {
    width: 250px;
    text-align: left;
}

tr.CRMSharePointOptionsData:nth-child(even) {
    background-color: lightblue;
}
tr.CRMSharePointOptionsData:nth-child(odd) {
    background-color: white;
}
td.CRMSharePointOptionsHead {
    border: 1px dashed lightgray;
    background-color: silver;
    font-weight: bold;
    padding: 0px;
    padding-left: 10px;
    padding-right: 10px;
    margin: 0px;
}
td.CRMSharePointOptionsData {
    font-family: Calibri;
    font-size: 12pt;
    border: 1px dashed lightgray;
    padding: 0px;
    padding-left: 10px;
    padding-right: 10px;
    margin: 0px;
}
td.CRMSharePointOptionsDate {
    width: 100px;
    color: #606060;
}
td.CRMSharePointOptionsCheck {
    width: 50px;
}
td.CRMSharePointOptionsName {
    width: 100%;
    text-wrap: wrap;
}
td.CRMSharePointOptionsAction {
    border: 0px dashed lightgray;
    padding: 0px;
    padding-left: 10px;
    padding-right: 10px;
    margin: 0px;
}

span.CRMSharePointInstruct {
    font-weight: normal;
    text-align: left;
    vertical-align: top;
    padding: 0px;
    margin: 0px;
    text-wrap: wrap;
}
p.CRMSharePointInstruct {
    font-weight: normal;
    text-align: left;
    vertical-align: top;
    padding: 0px;
    margin-top: 0px;
    margin-bottom: 8px;
    text-wrap: wrap;
}
p.CRMSharePointInstructNext {
    font-weight: normal;
    text-align: left;
    vertical-align: top;
    padding: 0px;
    margin-top: 8px;
    margin-bottom: 8px;
    text-wrap: wrap;
}
span.CRMSharePointLabel {
    display: inline-block;
    font-weight: normal;
    text-align: left;
    vertical-align: middle;
    padding-left: 5px;
    padding-right: 10px;
}
span.CRMSharePointLabelBold {
    font-weight: bold;
}
span.CRMSharePointLabelHidden {
    display: none;
}
span.CRMSharePointLabelCount {
    display: inline-block;
    font-weight: normal;
    text-align: left;
    vertical-align: middle;
    padding: 0px;
    padding-left: 5px;
}

table.CRMSharePointDataTableAction {
    height: 100%;
    width: calc(100% - 2px);
    vertical-align: top;
    text-align: left;
    border-collapse: collapse;
    border: 1px solid silver;
    padding: 0px;
    margin: 0px;
}
td.CRMSharePointDataTableAction {
    vertical-align: top;
    text-align: left;
    padding: 0px;
    margin: 0px;
    text-wrap: nowrap;
    width: 220px;
    height: 100%;
    display: block;
}
div.CRMSharePointDataTableAction {
    display: flex;
    vertical-align: top;
    text-align: left;
    padding: 0px;
    margin: 0px;
    height: calc(100% - 2px);
    width: calc(100% - 2px);
    overflow: auto;
}
td.CRMSharePointActionHead {
    height: 20px;
    vertical-align: middle;
    border: 1px dashed lightgray;
    background-color: #4479BA;
    font-weight: bold;
    color: white;
    padding: 0px;
    padding-left: 10px;
    padding-right: 1px;
    margin: 0px;
}
.CRMSharePointActionButton, .CRMSharePointActionButton:visited {
    display: inline-block;
    white-space: nowrap;
    width: auto;
    text-align: center;
    vertical-align: middle;
    text-decoration: none;
    padding-left: 10px;
    padding-right: 10px;
    padding-top: 2px;
    padding-bottom: 2px;
    margin-top: 0px;
    margin-bottom: 0px;
    margin-left: 2px;
    margin-right: 2px;
    color: #ffffff;
    background-color: #4479BA;
    border-width: 1px;
    border-style: solid;
    border-color: #20538D;
    border-radius: 5px;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.4);
    -webkit-text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.4);
    -moz-text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.4);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 1px 1px rgba(0, 0, 0, 0.2);
    -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 1px 1px rgba(0, 0, 0, 0.2);
    -moz-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 1px 1px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}
input.CRMSharePointActionButton:hover, a.CRMSharePointActionButton:hover {
    color: goldenrod;
}
.CRMSharePointActionLink {
    color: #0000cc;
    margin-left: 2px;
    margin-right: 2px;
    font-size: 12pt;
    font-weight: normal;
}
    .CRMSharePointActionLink:hover, .CRMSharePointActionLink:focus {
        color: #CC0000;
        text-decoration: none;
        cursor: pointer;
    }

.CRMSharePointNav {
    color: #606060;
    margin-left: 2px;
    margin-right: 2px;
    font-family: Calibri;
    font-size: 12pt;
    font-weight: normal;
}
.CRMSharePointNavLink {
    color: #0000cc;
}
    .CRMSharePointNavLink:hover, .CRMSharePointNavLink:focus {
        color: #CC0000;
        text-decoration: none;
        cursor: pointer;
    }

.CRMSharePointUpload {
    text-align: left;
    vertical-align: top;
    width: 200px;
    display: block;
    margin: 0px;
}
div.CRMSharePointDrop {
    position: relative;
    font-weight: normal;
    font-size: 12px;
    color: darkgray;
    text-align: center;
    vertical-align: middle;
    width: calc(100% - 2px);
    height: 95px;
    display: block;
    margin: 0px;
    padding: 0px;
}
    div.CRMSharePointDrop input {
        background-color: lightyellow;
        border: 1px dotted silver;
        outline: 1px dashed silver;
        outline-offset: -5px;
        padding-top: 20px;
        padding-bottom: 50px;
        padding-left: 13px;
        padding-right: 7px;
        text-align: center;
        width: calc(100% - 20px);
    }
    div.CRMSharePointDrop input:hover { background-color: #ffffcc; }
    div.CRMSharePointDrop:before {
        position: absolute;
        bottom: 13px;
        left: 50px;
        content: " or drop file(s) here";
    }
span.CRMSharePointDropLabel{ position:relative; top:-35px; }
select.CRMSharePointFileTag {
    width: 100%;
    white-space: nowrap;
    text-align: left;
    vertical-align: top;
    padding: 2px;
    border-width: 1px;
    border-style: solid;
    border-color: #20538D;
    border-radius: 5px;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.4);
    -webkit-text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.4);
    -moz-text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.4);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 1px 1px rgba(0, 0, 0, 0.2);
    -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 1px 1px rgba(0, 0, 0, 0.2);
    -moz-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 1px 1px rgba(0, 0, 0, 0.2);
}

span.CRMSharePointResult {
    font-weight: normal;
    font-style: italic;
    color: red;
    text-align: center;
    vertical-align: top;
    padding: 0px;
    margin: 0px;
    margin-left: 10px;
    text-wrap: wrap;
}

/* Success */

.CRMSuccessPanel {
    font-family: Calibri;
    font-size: 10pt;
    display: block;
    overflow: auto;
    width: calc(100% - 20px);
    margin: 5px;
    padding: 5px;
    color: #666666;
    background-color: lightgreen;
    border-width: 1px;
    border-style: solid;
    border-color: silver;
    border-radius: 5px;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 1px 1px rgba(0, 0, 0, 0.2);
    -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 1px 1px rgba(0, 0, 0, 0.2);
    -moz-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 1px 1px rgba(0, 0, 0, 0.2);
}

/* Errors */

.CRMErrorPanel {
    font-family: Calibri;
    font-size: 10pt;
    display: block;
    height: 100px;
    overflow: auto;
    width: 100%;
    margin: 5px;
    background-color: lightcoral;
    border-width: 1px;
    border-style: solid;
    border-color: silver;
    border-radius: 5px;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 1px 1px rgba(0, 0, 0, 0.2);
    -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 1px 1px rgba(0, 0, 0, 0.2);
    -moz-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 1px 1px rgba(0, 0, 0, 0.2);
}

/* Modal */

.CRMModal {
    display: none;
    position: fixed;
    z-index: 200;
    left: 0;
    top: 0;
    width: 99%;
    height: 99%;
    overflow: auto;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0,0.4);
}
.CRMModalContent {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 10px;
    border: 1px solid #888;
    width: 50%; 
    height:auto;
}
.CRMModalClose {
    color: #aaa;
    float: right;
    font-size: 12pt;
    font-weight: bold;
}
.CRMModalClose:hover, .CRMModalClose:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

