﻿/* 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;
    margin-bottom: 10px;
}
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;
}
input.CRMHelpButton, input.CRMHelpButton:visited, a.CRMHelpButton, a.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;
}
a.CRMHelpLink
{
    color: #000099;
    text-decoration: none;
}
a.CRMHelpLink:hover
{
    color: #009900;
}
a.CRMHelpLink:visited
{
    color: #990099;
}

/* 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, .CRMField150, .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;
}
.CRMField150 {
    width: 150px;
}
.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;
}
.CRMDocumentList3
{
    height: 120px;
}
.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;
    padding: 2px;
    color: #ffffff;
    cursor: pointer;
}
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;
}

/* 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;
}
.CRMHelpIcon
{
    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 */

th.QueryPanel
{
    padding: 5px;
}
td.QueryPanel
{
    padding: 2px;
}
.CRMQuerySectionPanel
{
    display: inline-block;
    width: calc(100% - 10px);
    white-space: nowrap;
    text-align: left;
    vertical-align: top;
    padding: 0px;
    padding-bottom: 3px;
    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);
}
.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;
}
.CRMQuerySectionTitle
{
    text-align: left;
    white-space: normal;
    font-weight: bold;
    color: #ffffff;
    width: 100%;
}
.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;
}
span.CRMQueryLabel
{
    display: inline-block;
    font-weight: normal;
    text-align: left;
    vertical-align: middle;
    padding-left: 5px;
    padding-right: 10px;
}
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: 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);
}
input.CRMQueryOptionsAttribute
{
    width: 250px;
}
input.CRMQueryOptionsOrder
{
    width: 50px;
    text-align: center;
}
input.CRMQueryOptionsWidth
{
    width: 50px;
    text-align: center;
}
input.CRMQueryOptionsValue
{
    width: 250px;
}
input.CRMQueryOptionsEntity
{
    width: 250px;
}
input.CRMQueryOptionsRelation
{
    width: 250px;
}
select.CRMQueryOptions
{
    display: inline-block;
    white-space: nowrap;
    text-align: center;
    vertical-align: top;
    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);
}
select.CRMQueryOptionsEntity
{
    width: 250px;
}
select.CRMQueryOptionsAttribute
{
    width: 250px;
}
select.CRMQueryOptionsDirection
{
    width: 100px;
    text-align: center;
}
select.CRMQueryOptionsType
{
    width: 100px;
    text-align: center;
}
select.CRMQueryOptionsQualifier
{
    width: 100px;
    text-align: center;
}
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);
}

/* 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;
}

