
.no-js .function-form {
        display: none;
}

.function-form fieldset {
        border: 0;
        padding: 0;
}

.function-form legend {
        display: none;
}

.function-form hr {
        margin-bottom: 25px;
}

fieldset.function-select {
        padding: 0;
        border: 0;
        margin: 0;
        margin-bottom: 20px;
}

fieldset.function-select-margin {
        margin: 0 0 37px 0;
}

.function-form fieldset {
        position: relative;
}

.function-form legend,
.modal .title {
        color: #505767;
        display: block;
        font-family: monospace;
        font-size: 14px;
        font-weight: normal;
        line-height: 18px;
        padding: 0.5em 0 0 0;
        position: relative;
        text-align: left;
        width: 100%;
}

/* Styles for chosen multiselect placeholder. */
table.auto-layout .chosen-container-multi .chosen-choices .search-field input.default {
        color: red;
        font-style: italic;
}

form table.auto-layout {
        table-layout: auto;
}

table.auto-layout {
        width: 100%;
}

table.auto-layout-narrow {
        width: 500px;
}

table.auto-layout .table-label {
        min-width: 90px;
        width: 1px;
        white-space: nowrap;
}

table.auto-layout .table-control {
        position: relative;
}

.search-field > input[type="text"] {
        height: 26px !important; /* overriding an override to fix chosen-multiselect height */
}

.chosen-container-single .chosen-single {
        height: 28px;
        line-height: 28px;
}

select.form-control-error + .chosen-container > .chosen-choices {
        border: 2px solid #d64f4f;
        margin-top: -1px;
        margin-bottom: -1px;
}

.chosen-container-multi > .chosen-choices {
        -webkit-border-radius: 5px;
        -moz-border-radius: 5px;
        border-radius: 5px;
}

.specs {
        margin-top: 10px;
}

.function-form-obj .specs-head {
        margin-bottom: 10px;
}

.specs-body {
}

.specs h1, h2, h3 {
        margin: 0;
}

.specs .section {
        margin: 5px 0;
        padding: 5px 0 5px 5px;
}

.specs .section .title {
        cursor: pointer;
}

.specs .section .title::before {
        content: '';
        background: url('/css/icons/arrow-bottom.gif') no-repeat center center;
        width: 7px;
        height: 10px;
        display: inline-block;
        margin-right: 5px;
}

.specs .section .title.closed::before {
        background-image: url('/css/icons/arrow-right.gif');
}

.specs .section .section-content {
        margin-left: 1em;
}

.specs .methodsynopsis,
.specs .constructorsynopsis {
        background-color: #F6F7FA;
        border: 1px solid #BBCBF4;
        color: #505767;
        margin-bottom: 4px;
        padding: 0.5em;
}

table.doctable {
        border-collapse: collapse;
        border-bottom: 2px solid #BBCBF4;
        margin-top: 3px;
}

table.doctable th, table.doctable td {
        padding: 2px 4px;
}

table.doctable thead th, table.informaltable thead th {
        background-color: #C6DBFF;
        border: 1px solid #BBCBF4;
        border-bottom-width: 2px;
        color: #505767;
        font-weight: bold;
}

table.doctable tbody tr.even,
table.doctable tbody tr:nth-child(2n) {
        background-color: #F6F7FA;
}

table.doctable tbody td, table.informaltable tbody td {
        border: 1px solid #BBCBF4;
}

.specs .section-params dt {
        padding-left: 5px;
        font-weight: bold;
        text-decoration: gray;
}

.specs .section-params dd {
        margin-bottom: 10px;
        padding: 0px 5px 5px 20px;
}

.specs em {
        font-weight: bold;
        font-style: italic;
}

.specs .example {
        text-align: left;
}

.specs .example p {
        margin: 0px;
        padding: 0.2em;
}

.specs p.para {
        margin-top: 1em;
}

.specs .example-contents .phpcode,
.pfb-preview {
        background-color: #F6F7FA;
        border: 1px solid #BBCBF4;
        color: #505767;
        margin: 0 0 10px;
}

.specs .example-contents.screen,
.specs .example-contents.phpcode,
.pfb-preview {
        background-color: #F6F7FA;
        border: 1px solid #BBCBF4;
        color: #505767;
        margin: 0 0 10px;
}

.specs .example-contents p {

        font-weight: bold;
}

.specs .phpcode {
        font-family: monospace;
        padding: 0.5em;
        text-align: left;
        word-wrap: break-word;
        line-height: 1.46;
        /*font: normal 14px / 1.46 "Source Code Pro", monospace;*/
}

.phpcode.phpcode-cm.cm-no-colors,
.phpcode.phpcode-cm.cm-no-colors * {
        color: #666666;
}

.specs .phpcode .CodeMirror-wrap {
        margin: -0.5em;
        background-color: #F6F7FA;
        border: 1px solid #BBCBF4;
}

.specs .phpcode .CodeMirror-scroll {
        height: auto;
        overflow-x: auto;
        overflow-y: hidden;
        line-height: 1.46;
        /*font: normal 14px / 1.46 "Source Code Pro", monospace;*/
}

.specs pre,
.specs code,
.specs tt {
        font-family: monospace;
        word-wrap: break-word;
}

.specs blockquote {
        border: 1px solid #BBCBF4;
        background-color: #FFF;
        margin: 0.5em 0;
        padding: 0.5em 1em;
}

.specs div.warning {
        background: #FFF0EB url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAABZ0RVh0Q3JlYXRpb24gVGltZQAwMS8yMS8xMRTK2QYAAAAedEVYdFNvZnR3YXJlAEFkb2JlIEZpcmV3b3JrcyBDUzUuMasfSOsAAAPESURBVFiF7ZhBaNtWGMf/33uysBtlgWVFMAgklZdkLKy7lXWFkeNgl9xKYL3stEsYY4FCGAuELQXfQiEnj4EPSzdwGT6M9tAeBoGOXJYtDjuk8WLIotgUOZYt2amkHWqlTizZUuxkg+YPDz/0vvfez9/T9733RI7j4P8s9l8DdNIFYLe6AOxWF4Dd6tUAJCJmWVbStu1/bNvWDg8Pfy6VSiMhx/BucBynq6Lr+rRlWYbTKlvX9emg4/ixUDdbHREJlmUZtb+3hfxSAkbuKQBAeuddDM3Mgg++YQqC0O84zvMgHvRiOfUSExGr1WqPGWNCbnH+CA4A9I115Ba/Buc8WqvVHhPRqec5dUdN06ZFUbyxt5JCvaC2tBu5p9hbSUEQhA9UVf3wXAGJSJAk6W59X0Uxk/a1K2bSeF4s0ODg4A9EJJwLIBEx0zTTnPOB/FICVrXia2tVK9hNLoNzLlcqlcXTLHXoDtlsVolEIh+XnqxC31g/eh4bvgJlIQFlIYHY8JWj56XfVlF6sopoNPp5NptVzhSQiNjo6OivjlGl3eTysTb55i1IE1chTVyFfPPWsbbd5DIcoyooivJdWC+GMtY07UvOuVzI3G8JDN7X51kHgHpBRSFzH6Io3tA0bfpMAPP5vNLf3/+Nsb0F9V6qpb2+r3rWXan3UjC2tyBJ0t0wARMIkIiYLMvfM8aEk0vrytje8qw3qxEwA7quJ4MudSAjN+c9e/TwWGA0q/Ln7571Zukb63j26CFisdgnQQOmI6Cb86yKDj/vAS8Sc31fRX1fPbarnFQjYCgejz8I4sW2Bs05b28l1TbnuZO3+xPAy9wYiURGyuXyF50A2x4WNjc33xobG/urmv2Dtr6a7TRWKCkLCcTenjg6TIQ+LBARi8fjDxhjLTnPS/xSH4Zvz2P49jz4pb6O9o2A6XiY8G1YW1uLRyKRkUIm3fadcjU0M4uBa9cxcO06hmY6e7v5MAHAN+14AhIRGx8fnwMAdaU15/VKxUwajDE6ODj41o/Fj5wRURxAx8BwlV9KAA3P5ZcSgfq4Y3PO328A2oEBbdsmABAvy57nPa/JcnfmA4G5Ei/LAIDGXJ4e9H0Hi8XiLwDw5qefhZo0jNyxTdPM+Rr5XGAEAK/v7Oz8aFmW7XEh6plM0zxIpVLvARBCXZqIKArgtbm5ufGpqamPeuw8AEC5XFYnJyd/AlACUHUcp+UdbAfI8MKTYqP0+pJvN0odgAnA9mLxBDxxiWYnfnspFxIAPHeSru7F56FX49vMWeoCsFv9C+XRiBDm10+jAAAAAElFTkSuQmCC) 0 50% no-repeat;
        border: 1px solid #EDB1A2;
        color: #963E27;
        margin: 15px 0;
        padding: 10px;
        text-align: center;
        padding-left: 40px;
}

.specs div.working {
        background: #EEE url('http://cdn3.iconfinder.com/data/icons/fatcow/32x32_0240/cog.png') 10px 50% no-repeat;
        color: black;
        border: solid 1px #DDD;
        min-height: 50px;
        padding-left: 50px;
        padding-top: 10px;
        margin-top: 10px;
        margin-bottom:20px;
}

.specs div.warning p,
.specs div.caution p,
.specs div.tip p,
.specs div.information p,
.specs div.warning ul,
.specs div.caution ul,
.specs div.tip ul,
.specs div.information ul,
.specs div.warning ol,
.specs div.caution ol,
.specs div.tip ol,
.specs div.information ol {
        text-align: justify;
}

.static-page em {
        font-weight: bold;
        font-style: italic;
}

.function-builder {

}

.pfb-control {
        position: relative;
}

.pfb-control .pfb-clickable {
        background-image: url('/css/general/img/input-field-top-border.png'), url('/css/general/img/input-field-left-border.png');
        background-position: 0px -1px, -1px 0px;
        background-repeat: repeat-x, repeat-y;
        background-color: white;

        border: 1px solid #a0a0a0;
        -moz-border-radius:7px;
        border-radius:7px;

        -moz-box-sizing: border-box;
        box-sizing: border-box;

        color: #5f983e;
        display:block;
        line-height: 18px !important;
        height: 30px;
        margin:0;
        overflow: hidden;
        text-overflow: ellipsis;
        padding: 7px;
        position: relative;
        width: 100%;
        word-break: break-all;
}

.pfb-clickable {
        color: #5f983e;
        cursor: pointer;
        font-family: monospace;
        font-style: italic;
        padding: 1px;
}

.specs .pfb-clickable:hover {
        text-decoration: underline;
}

.pfb-reset {
        color: #333;
        cursor: pointer;
        font-size: 20px;
        font-weight: bold;
        height: 30px;
        line-height: 30px;
        margin-left: 5px;
        position: absolute;
        right: 15px;
        top: 0px;
        z-index: 20; /* to be above form errors */
}

.pfb-reset:hover {
        cursor: pointer;
        text-shadow: 0 0 1px #333;
}

.pfb-set {
        display: none !important;
}

.pfb-not-set {
        color: red;
        font-style: italic;
}

.specs .pfb-clickable .pfb-not-set:hover {
        text-decoration: underline;
}

.function-builder.pfb-clickable {
        word-break: break-all;
}


.function-builder input[disabled] {
        background: #efefef;
}


/* == Mixed input type == */
.function-builder .type-mixed-wrapper {
        position: relative;
}

.function-builder .type-mixed-wrapper > div:first-child {
        float: left;
        width: 80%;
}

.function-builder .type-mixed-wrapper > div:last-child {
        float: left;
        width: 20%;

}

.function-builder input.type-mixed-input {
        -webkit-border-top-right-radius: 0;
        -webkit-border-bottom-right-radius: 0;
        -moz-border-top-right-radius: 0;
        -moz-border-bottom-right-radius: 0;
        border-top-right-radius: 0;
        border-bottom-right-radius: 0;
}

.function-builder .type-mixed-wrapper .chosen-single {
        -webkit-border-top-left-radius: 0;
        -webkit-border-bottom-left-radius: 0;
        -moz-border-top-left-radius: 0;
        -moz-border-bottom-left-radius: 0;
        border-top-left-radius: 0;
        border-bottom-left-radius: 0;
        border-left: 0;
        height: 28px;
        line-height: 28px;
}
/* == /Mixed input type == */


/* == Modal window == */

.modal-backdrop {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 1040;
        background-color: #000000;
}
.modal-backdrop.fade {
        opacity: 0;
}
.modal-backdrop,
.modal-backdrop.fade.in {
        opacity: 0.6;
        filter: alpha(opacity=60);
}

.modal {
        padding: 15px;
        position: fixed;
        top: 20%;
        left: 50%;
        z-index: 1050;
        width: 520px;
        margin-left: -260px;
        background: #FFF;
        color: #333;
        -moz-opacity: 0.9;
        -khtml-opacity: 0.9;
        opacity: 0.9;
        filter: alpha(opacity=90);
        -webkit-box-shadow: 5px 5px 30px 0 #000;
        -moz-box-shadow: 5px 5px 30px 0 black;
        box-shadow: 5px 5px 30px 0 #000;
        -webkit-border-radius: 8px;
        -moz-border-radius: 8px;
        -o-border-radius: 8px;
        -khtml-border-radius: 8px;
        -ms-border-radius: 8px;
        border-radius: 8px;
        -pie-lazy-init: true;
        /* behavior: url(PIE.htc);*/
}

.modal input[type="text"],
.modal .pfb-control {
        -moz-box-sizing:    border-box;
        -webkit-box-sizing: border-box;
        box-sizing:         border-box;
        width: 100%;
        min-height: 30px;
        margin: 5px 0px;
}

.modal .title {
        width: 490px;
}

.modal hr {
        margin: 0;
}

.modal .flash {
        background-color: transparent;
        border-color: transparent;
        padding: 0 !important;
}

.modal .flash.success {
        font-weight: bold;
        color: #387f0e;
}

.modal .content {
        width: 100%;
        margin-top: 0px;
}

.modal .form {
        margin-top: 20px;
}

/* == /Modal == */

.hide {
        display: none;
}