/* (c) 2014-2018 Business Collaborator Ltd */
/* @@ALLOW_LONG_LINES@@ */

/* Long lines allowed to make comparison with bc.css easier */

/* New "Rich-form" style CSS additions from bc4.css v6.2.4
   Some bits are commented out so that bootstrap can take over */

/* Rich Form Vertical table styles*/
/* More Info*/
TABLE.rich-form-table{
    padding: 0;
    margin: 1em 0 1em 0;
    border-collapse:collapse;
    border:hidden;
    float:left;
    }
.rich-form-table caption {
    padding: 10px 0 5px 0;
    text-align: center;
    color: #808080;
}

.rich-form-th-2 { /*blue fade top to bottom*/
     background-color: #ffffff;
/*
    background-image: -moz-linear-gradient(top, #ffffff, #ffffff, #edf2f6);
    background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#ffffff), to(#fffff\f),
        to(#edf2f6));
    background-image: -webkit-linear-gradient(top, #ffffff, #ffffff,#edf2f6);
    background-image: -o-linear-gradient(top, #ffffff, #ffffff,#edf2f6);
    background-image: linear-gradient(to bottom, #ffffff, #ffffff,#edf2f6);
    background-repeat: repeat-x;
*/
    border-right:2px solid #d4dce6;
    font-weight:bold;
    font-size:14px;
    vertical-align:bottom;
}

.rich-form-table-heading{
/*
    background-color:#ffffff!important;
*/
    background-color: #f5f5f5!important;
}
.respond-to-issue-heading-empty{
    background-color:#ffffff!important;
}
.rich-form-table-heading h2{
/*
    border-bottom:1px solid grey!important;
*/
    margin: 0;
    font-size: 1.3em;
    clear:both;
}

.rich-form-table-heading p{
    display:none;  /* GPW addition */
}


.rich-form-th-empty{
    width:0;
}
.rich-form-table tr td {
    padding: 5px 10px 5px 10px;
    border: 1px solid #d4dce6;
    background-color: #ffffff!important;
    }

.rich-form-table .fieldvalue{
    padding-left:0px;
}
.rich-form-th { /*blue fade left to right*/
    padding: 5px 10px 5px 9px;
    background-color: #f5f5f5;
/*
    background-color: #ffffff;
    background-image: -moz-linear-gradient(left, #ffffff, #ffffff, #edf2f6);
    background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#ffffff), to(#ffffff),
        to(#edf2f6));
    background-image: -webkit-linear-gradient(left, #ffffff, #ffffff,#edf2f6);
    background-image: -o-linear-gradient(left, #ffffff, #ffffff,#edf2f6);
    background-image: linear-gradient(to right, #ffffff, #ffffff,#edf2f6);
    background-repeat: repeat-x;
*/
    text-align: left;
    vertical-align:middle;
    color: inherit;
    font-weight:bold;
    width:150px;
}
.rich-form-table td.issue .md-form-element-heading{padding-left:0;}
.rich-form-table-presentational{
    display:block-inline;
    vertical-align:middle;
    border-bottom:hidden!important;
    border-top:hidden!important;
}
.rich-form-table-presentational span{
    padding-left:0!important;
}
.md-edit-table-section-heading{
    border-bottom:solid 1px grey;
}
.generic .md-form-element-heading{
    font-size:14px;
}


.md-multi-edit-heading{
/*
    color: #ffffff;
*/
    background-color: #f5f5f5;
/*
     background-image: -moz-linear-gradient(bottom, #ffffff, #e6e6e6);
    background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#e6e6e6), to(#fffff));
    background-image: -webkit-linear-gradient(bottom, #ffffff, #e6e6e6);
    background-image: -o-linear-gradient(bottom, #ffffff, #e6e6e6);
    background-image: linear-gradient(to top, #ffffff, #e6e6e6);
    background-repeat: repeat-x;
*/
    border: 1px solid #cccccc;
    *border: 0;
    border-color: #e6e6e6 #e6e6e6 #bfbfbf;
    border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
    border-bottom-color: #b3b3b3;
}

/* rich-form Form */
/*================*/
.rich-form-container{
/*
    overflow:hidden;
    border:solid 1px lightgrey;
    -moz-box-shadow: 3px 3px 4px lightgrey;
    -webkit-box-shadow: 3px 3px 4px lightgrey;
    box-shadow: 3px 3px 4px lightgrey;
    margin-top:1em;
    width:95%;
    .width:94%;
    padding:12px;
*/
    margin-top:1em;
    padding:0;
}

.rich-form {
    list-style-type:none;
    padding-left:0;
}

/* rich-form Headings*/

.rich-form-title{
/*
    color: #ffffff;
    text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
     margin: 0;
    color: white;
    position: relative;
    font-size: 1.5em;
    padding: .4em;
    clear:both;
    font-weight:bold;
    color: #333333;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.75);
    background-color: #f5f5f5;
    *background-color: #e6e6e6;
     background-image: -moz-linear-gradient(bottom, #ffffff, #e6e6e6);
    background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#e6e6e6), to(#fffff));
    background-image: -webkit-linear-gradient(bottom, #ffffff, #e6e6e6);
    background-image: -o-linear-gradient(bottom, #ffffff, #e6e6e6);
    background-image: linear-gradient(to top, #ffffff, #e6e6e6);
    background-repeat: repeat-x;
    border: 1px solid #cccccc;
    *border: 0;
    border-color: #e6e6e6 #e6e6e6 #bfbfbf;
    border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
    border-bottom-color: #b3b3b3;
*/
    font-size: 1.5em;
    padding: .4em;
    background-color: #f5f5f5;
}
.rich-form-title h1{
    margin: 0;
    font-size: 1.3em;
    clear:both;
}

.rich-form .md-form-element-heading{
    margin-bottom:.5em;
}
.md-form-element-heading-1, .level-1-head{
    /*font-size: 16px;*/
    /*border-bottom: solid 1px  #85A6C1; */
    /* - blue/grey(same as table labels) */
    *border: 0;
    /*text-shadow: 0 0 1px #d0d0ce;*/
    color: inherit;
    /*width:98%;*/
    line-height: 1.5em;
    display: block;
    /*font-weight:bold;*/
    /*padding-left:7px;*/
}

.level-2-head, .md-form-element-heading-2, .md-form-element-heading-3, .level-3-head{
    font-size: 16px;
    font-weight: bold!important;
    clear: both;
    line-height: 1.4em;
    padding: 0.2em 0 0.2em 7px;
    margin-left:0;
    text-decoration:underline;
}
.level-3-head, .md-form-element-heading-3{
    font-style:italic;
}
table .rich-form-label{
    width:90%;
}
.rich-form-label{
    text-align: left;
    margin-right: 1em;
    float:left;
    padding:0;
    padding-left:7px;
    display:table;
    font-weight:bold;
    width:150px;
    .line-height:200%; /*for ie7*/
    .padding-right:2em;
}

div.main-form-container div.rich-form-label label {
    font-weight:bold;
}

.rich-form-data{
    text-align: left;
    float:left;
    margin-bottom:.6em;
    position:relative;
    width:100%;
    display:table;
}

/* === List Styles === */
UL.rich-form > li {
    float: left;
    width: 100%;
    position: relative;
    padding: 0;
    .margin-bottom:.5em;
}

.rich-form-p{
    font-weight:normal;
    padding-left:7px;
}

.rich-form-data p{
    padding-left:0;
    margin-left:0;
}
.rich-form-instr{
    color: grey;
    padding:0;
    padding-bottom:.1em;
    margin:0;
    margin-left:2px;
    text-align:left;
    clear:both;

}
/* single edit metadata Quartz mod */
.rich-form-suggested-indicator{
    position:absolute;
    display:inline;
    left: -10px;
    top: 6px;
}
/* multi edit metadata Quartz mod */
.multiMetadataEdit .rich-form-suggested-indicator{
    position:relative;
    left: 0px;
    top: 8px;
    margin-right: 2px;
    float: left;
}
/* mobile version is reformatted */
@media (max-width:767px) {
    .multiMetadataEdit .rich-form-suggested-indicator {
        left: -10px;
        float: left;
        margin-right: -10px;
    }
}

.md-required-indicator{
    color:red;
    padding-left: 0.5em;
    position: absolute;
}

.rich-form-presentational{
    height:.3em;
    display:block;
}

p.rich-form-notification {
    clear:both;
    display:block;
    margin-bottom:0;
    padding-bottom:0;
}

/* === Rich Form Elements === */
html>/**/body .rich-form label{
    padding-top:.3em;
}


.rich-form button{
    margin-top:0;
}
.rich-form input[type="text"], .rich-form select {
    float:left;
    margin: 0;
    text-align:left;
    padding: 8px 4px 8px 8px;
    display:table-cell;
    /*border-radius: 2px;*/
}
.rich-form input[type="checkbox"]{
    border: none;
}
.rich-form textarea {
    padding:8px;
    padding-right:4px!important;
    font-family: inherit;
}

/* form element visual styles */

/* HTML5 - remove coloured hover borders */
.rich-form input[type="text"],
.rich-form textarea {
    /*border:1px solid #aaa;*/
    /*border-radius:2px;*/
    padding: 2px 4px 2px 8px;

}
.rich-form input:hover,
.rich-form textarea:hover,
.rich-form select:hover,
.rich-form .md-tax-wrapper:hover {
    /*border:1px solid #97f029;*/
    /*border-radius:2px;*/
}
.datatype-border input:hover,
.datatype-border textarea:hover {
    border:none;
}
.datatype-border:hover{
    /*border:1px solid #97f029;*/
    /*border-radius:2px;*/
}
.rich-form input:focus,
.rich-form textarea:focus {
    background: #fff;
    /*border:1px solid #97f029;*/
}
/*
.rich-form INPUT[type="text"],
.rich-form INPUT[type="password"] {
    padding: 0px;
}
*/
::-webkit-validation-bubble-message {
    padding: 1em;
}


/* === Form hints === */

.rich-form-hint {
    display: none;
}

/* tipsy - colours as per bootstrap 'info' style */
.tipsy { padding: 5px; position: absolute; font-size: 12px; z-index: 100000; }
  .tipsy-inner { padding: 5px 8px 0px 8px; background-color: #d9edf7; color: #31708f; max-width: 200px; text-align: left; border: 1px solid #bce8f1; }
  .tipsy-inner { border-radius: 3px; -moz-border-radius:3px; -webkit-border-radius:3px; }
  .tipsy-arrow { position: absolute; background: url('../../../../bscw_icons/xml/next/images/tipsy.gif') no-repeat top left; width: 9px; height: 5px; }
  .tipsy-n .tipsy-arrow { top: 0; left: 50%; margin-left: -4px; }
    .tipsy-nw .tipsy-arrow { top: 0; left: 10px; }
    .tipsy-ne .tipsy-arrow { top: 0; right: 10px; }
  .tipsy-s .tipsy-arrow { bottom: 0; left: 50%; margin-left: -4px; background-position: bottom left; }
    .tipsy-sw .tipsy-arrow { bottom: 0; left: 10px; background-position: bottom left; }
    .tipsy-se .tipsy-arrow { bottom: 0; right: 10px; background-position: bottom left; }
  .tipsy-e .tipsy-arrow { top: 50%; margin-top: -4px; right: 0; width: 5px; height: 9px; background-position: top right; }
  .tipsy-w .tipsy-arrow { top: 50%; margin-top: -4px; left: 0; width: 5px; height: 9px; }

/* === Button Style === */
.select-btn{
    left: -.35em;
}
.rich-form-edit-btn{
    border-top: 1px solid #96d1f8;
background: #65a9d7;
/*
background: -webkit-gradient(linear, left top, left bottom, from(#3e779d),
    to(#65a9d7));
background: -webkit-linear-gradient(top, #3e779d, #65a9d7);
background: -moz-linear-gradient(top, #3e779d, #65a9d7);
background: -ms-linear-gradient(top, #3e779d, #65a9d7);
background: -o-linear-gradient(top, #3e779d, #65a9d7);
*/
padding: 3px 6px;
-webkit-border-radius: 2px;
-moz-border-radius: 2px;
border-radius: 2px;
-webkit-box-shadow: rgba(0,0,0,1) 0 1px 0;
-moz-box-shadow: rgba(0,0,0,1) 0 1px 0;
box-shadow: rgba(0,0,0,1) 0 1px 0;
text-shadow: rgba(0,0,0,.4) 0 1px 0;
color: white;
font-size: 9px;
text-decoration: none;
vertical-align: middle;
}
.rich-form-edit-btn:hover {
    border-top-color: #28597a;
    background: #28597a;
    color: #ccc;
    }
.rich-form-edit-btn:active {
    border-top-color: #1b435e;
    background: #1b435e;
    }

/*
.rich-form-submit, .rich-form-submit-issue {
    border-radius: 3px;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    -ms-border-radius: 3px;
    -o-border-radius: 3px;

    font-weight: bold;
    padding: 6px 13px;
    text-align: center;
    font-size: 1.2em;
    margin-top: 1em;
    display:block;
    margin-right: 1em;
    display:inline;
    bottom:5px;
    margin-bottom:.5em;
    cursor: pointer;

}
.rich-form-submit {
    background-color: #68b12f;
    background: -webkit-gradient(linear, left top, left bottom,
        from(#68b12f), to(#50911e));
    background: -webkit-linear-gradient(top, #68b12f, #50911e);
    background: -moz-linear-gradient(top, #68b12f, #50911e);
    background: -ms-linear-gradient(top, #68b12f, #50911e);
    background: -o-linear-gradient(top, #68b12f, #50911e);
    background: linear-gradient(top, #68b12f, #50911e);
    border: 1px solid #509111;
    border-bottom: 1px solid #5b992b;
    box-shadow: inset 0 1px 0 0 #9fd574;
    -webkit-box-shadow: 0 1px 0 0 #9fd574 inset;
    -moz-box-shadow: 0 1px 0 0 #9fd574 inset;
    -ms-box-shadow: 0 1px 0 0 #9fd574 inset;
    -o-box-shadow: 0 1px 0 0 #9fd574 inset;
    color: white;
    text-shadow: 0 -1px 0 #396715;
}

.rich-form-submit-issue{
  color: #333333;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.75);
  background-color: #f5f5f5;
  *background-color: #e6e6e6;
  background-image: -moz-linear-gradient(top, #ffffff, #e6e6e6);
  background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#ffffff), to(#e6e6e6));
  background-image: -webkit-linear-gradient(top, #ffffff, #e6e6e6);
  background-image: -o-linear-gradient(top, #ffffff, #e6e6e6);
  background-image: linear-gradient(to bottom, #ffffff, #e6e6e6);
  background-repeat: repeat-x;
  border: 1px solid #cccccc;
  *border: 0;
  border-color: #e6e6e6 #e6e6e6 #bfbfbf;
  border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
  border-bottom-color: #b3b3b3;

  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff', endColorstr='#ffe6e6e6', GradientType=0);
  filter: progid:DXImageTransform.Microsoft.gradient(enabled=false);
  *zoom: 1;
  -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
     -moz-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
          box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
}

.rich-form-submit-issue:hover,
.rich-form-submit-issue:focus,
.rich-form-submit-issue:active,
.rich-form-submit-issue.active,
.rich-form-submit-issue.disabled,
.rich-form-submit-issue[disabled] {
  color: #333333;
  background-color: #e6e6e6;
  *background-color: #d9d9d9;
}

.rich-form-submit-issue:active
{
  background-color: #cccccc \9;
   background-image: none;
  outline: 0;
  -webkit-box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.05);
     -moz-box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.05);
          box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.05);

}


.rich-form-submit-issue:hover,
.rich-form-submit-issue:focus {
  color: #333333;
  text-decoration: none;
  background-position: 0 -15px;
  -webkit-transition: background-position 0.1s linear;
     -moz-transition: background-position 0.1s linear;
       -o-transition: background-position 0.1s linear;
          transition: background-position 0.1s linear;
}

.rich-form-submit-issue:focus {
  outline: thin dotted #333;
  outline: 5px auto -webkit-focus-ring-color;
  outline-offset: -2px;
}


.rich-form-submit:hover {
    opacity:.85;
    cursor: pointer;
}
.rich-form-submit:active {
    border: 1px solid #20911e;
    box-shadow: 0 0 10px 5px #356b0b inset;
    -webkit-box-shadow:0 0 10px 5px #356b0b inset ;
    -moz-box-shadow: 0 0 10px 5px #356b0b inset;
    -ms-box-shadow: 0 0 10px 5px #356b0b inset;
    -o-box-shadow: 0 0 10px 5px #356b0b inset;
}
*/

.rich-form-data SELECT[name*="Version"]{
    float: none;
    display: inline-block;
    width: auto;
    min-width: 50px;
}

/*
.rich-form select {
    padding: 0px;
    min-width: 314px;
}
*/

.rich-form .datatype-border {
    border: 1px solid #ccc;
    border-radius: 4px;
    display: inline-block;
    width: 100%;
    padding: 8px 4px 8px 8px;
}


/* edit metadata form */

.md-form-element-heading-1, .level-1-head{
    font-size: 18px;
    font-style:italic;
    background-color: #f5f5f5;
    font-weight:normal;
    padding-left:7px;
    width: 98%;
}
html>/**/body .rich-form-data span.md-form-element-heading-1, .level-1-head{
   width:141.6%;
}

.level-2-head, .md-form-element-heading-2, .md-form-element-heading-3, .level-3-head{
    font-size: 18px;
    font-weight: normal;
    font-style:italic;
    clear: both;
    line-height: 1.4em;
    padding: 0.2em 0 0.2em 7px;
    margin-left:0;
    text-decoration:underline;
}
.level-3-head, .md-form-element-heading-3{
    font-style:italic;
}
