/* FORM ROWS */

.form-row {
    overflow: hidden;
    padding: 8px 12px;
    font-size: 11px;
    border-bottom: 1px solid #eee;
}

.form-row img, .form-row input {
    vertical-align: middle;
}

form .form-row p {
    padding-left: 0;
    font-size: 11px;
}

.hidden {
    display: none;
}

/* FORM LABELS */

form h4 {
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}

label {
    font-weight: normal !important;
    color: #666;
    font-size: 12px;
}

/* RADIO BUTTONS */

form ul.radiolist li {
    list-style-type: none;
}

form ul.radiolist label {
    float: none;
    display: inline;
}

form ul.inline {
    margin-left: 0;
    padding: 0;
}

form ul.inline li {
    float: left;
    padding-right: 7px;
}

/* ALIGNED FIELDSETS */

.aligned label {
    display: block;
    padding: 3px 10px 0 0;
    float: left;
    width: 8em;
    word-wrap: break-word;
}

.aligned ul label {
    display: inline;
    float: none;
    width: auto;
}

.colMS .aligned .vLargeTextField, .colMS .aligned .vXMLLargeTextField {
    width: 350px;
}

form .aligned p, form .aligned ul {
    margin-left: 7em;
    padding-left: 30px;
}

form .aligned table p {
    margin-left: 0;
    padding-left: 0;
}

form .aligned p.help {
    clear: left;
    padding-left: 38px;
}

.aligned .vCheckboxLabel {
    float: none !important;
    display: inline;
    padding-left: 4px;
}

.colM .aligned .vLargeTextField, .colM .aligned .vXMLLargeTextField {
    width: 610px;
}

.checkbox-row p.help {
    margin-left: 0;
    padding-left: 0 !important;
}

fieldset .field-box {
    float: left;
    margin-right: 20px;
}

/* WIDE FIELDSETS */

.wide label {
    width: 15em !important;
}

form .wide p {
    margin-left: 15em;
}

form .wide p.help {
    padding-left: 38px;
}

.colM fieldset.wide .vLargeTextField, .colM fieldset.wide .vXMLLargeTextField {
    width: 450px;
}

/* COLLAPSED FIELDSETS */

fieldset.collapsed * {
    display: none;
}

fieldset.collapsed h2, fieldset.collapsed {
    display: block !important;
}

fieldset.collapsed h2 {
    background-image: url(../img/nav-bg.gif);
    background-position: bottom left;
    color: #999;
}

fieldset.collapsed .collapse-toggle {
    background: transparent;
    display: inline !important;
}

/* MONOSPACE TEXTAREAS */

fieldset.monospace textarea {
    font-family: "Bitstream Vera Sans Mono",Monaco,"Courier New",Courier,monospace;
}

/* SUBMIT ROW */

.submit-row {
    padding: 5px 7px;
    text-align: right;
    background: white url(../img/nav-bg.gif) 0 100% repeat-x;
    border: 1px solid #ccc;
    margin: 5px 0;
    overflow: hidden;
}

body.popup .submit-row {
    overflow: auto;
}

.submit-row input {
    margin: 0 0 0 5px;
}

.submit-row p {
    margin: 0.3em;
}

.submit-row p.deletelink-box {
    float: left;
}

.submit-row .deletelink {
    background: url(../img/icon_deletelink.gif) 0 50% no-repeat;
    padding-left: 14px;
}

/* CUSTOM FORM FIELDS */

.vSelectMultipleField {
    vertical-align: top !important;
}

.vCheckboxField {
    border: none;
}

.vDateField, .vTimeField {
    margin-right: 2px;
}

.vDateField {
    min-width: 6.85em;
}

.vTimeField {
    min-width: 4.7em;
}

.vURLField {
    width: 30em;
}

.vLargeTextField, .vXMLLargeTextField {
    width: 48em;
}

.flatpages-flatpage #id_content {
    height: 40.2em;
}

.module table .vPositiveSmallIntegerField {
    width: 2.2em;
}

.vTextField {
    width: 20em;
}

.vIntegerField {
    width: 5em;
}

.vBigIntegerField {
    width: 10em;
}

.vForeignKeyRawIdAdminField {
    width: 5em;
}

/* INLINES */

.inline-group {
    padding: 0;
    border: 1px solid #ccc;
    margin: 10px 0;
}

.inline-group .aligned label {
    width: 8em;
}

.inline-related {
    position: relative;
}

.inline-related h3 {
    margin: 0;
    color: #666;
    padding: 3px 5px;
    font-size: 11px;
    background: #e1e1e1 url(../img/nav-bg.gif) top left repeat-x;
    border-bottom: 1px solid #ddd;
}

.inline-related h3 span.delete {
    float: right;
}

.inline-related h3 span.delete label {
    margin-left: 2px;
    font-size: 11px;
}

.inline-related fieldset {
    margin: 0;
    background: #fff;
    border: none;
    width: 100%;
}

.inline-related fieldset.module h3 {
    margin: 0;
    padding: 2px 5px 3px 5px;
    font-size: 11px;
    text-align: left;
    font-weight: bold;
    background: #bcd;
    color: #fff;
}

.inline-group .tabular fieldset.module {
    border: none;
    border-bottom: 1px solid #ddd;
}

.inline-related.tabular fieldset.module table {
    width: 100%;
}

.last-related fieldset {
    border: none;
}

.inline-group .tabular tr.has_original td {
    padding-top: 2em;
}

.inline-group .tabular tr td.original {
    padding: 2px 0 0 0;
    width: 0;
    _position: relative;
}

.inline-group .tabular th.original {
    width: 0px;
    padding: 0;
}

.inline-group .tabular td.original p {
    position: absolute;
    left: 0;
    height: 1.1em;
    padding: 2px 7px;
    overflow: hidden;
    font-size: 9px;
    font-weight: bold;
    color: #666;
    _width: 700px;
}

.inline-group ul.tools {
    padding: 0;
    margin: 0;
    list-style: none;
}

.inline-group ul.tools li {
    display: inline;
    padding: 0 5px;
}

.inline-group div.add-row,
.inline-group .tabular tr.add-row td {
    color: #666;
    padding: 3px 5px;
    border-bottom: 1px solid #ddd;
    background: #e1e1e1 url(../img/nav-bg.gif) top left repeat-x;
}

.inline-group .tabular tr.add-row td {
    padding: 4px 5px 3px;
    border-bottom: none;
}

.inline-group ul.tools a.add,
.inline-group div.add-row a,
.inline-group .tabular tr.add-row td a {
    background: url(../img/icon_addlink.gif) 0 50% no-repeat;
    padding-left: 14px;
    font-size: 11px;
    outline: 0; /* Remove dotted border around link */
}

.empty-form {
    display: none;
}

/* RELATED FIELD ADD ONE / LOOKUP */

.add-another, .related-lookup {
    margin-left: 5px;
    display: inline-block;
}

.add-another {
    width: 10px;
    height: 10px;
    background-image: url(../img/icon_addlink.gif);
}

.related-lookup {
    width: 16px;
    height: 16px;
    background-image: url(../img/selector-search.gif);
}

/* Pexip overrides */

.aligned label {
    display: block;
    padding: 0px;
    margin-top: 2px;
    float: left;
    width: 15em;
    word-wrap: break-word;
    font-size: 13px;
    font-weight: lighter !important;
    color: #4a4a4a;
}

form .aligned p, form .aligned ul {
    margin-left: 7em;
    padding-left: 120px;
}

form .aligned p.help {
    display: none;
    padding-left: 120px;
    font-size: 10px !important;
    font-weight: 400;
    color: #9b9b9b;
}

form .aligned p.url {
    padding-left: 0px;
    margin-left: 0px;
}

.checkbox-row p.help {
    margin-left: 7em;
    padding-left: 120px !important;
}

.module h2 {
    padding-left: 16px;
    line-height: 30px;
    font-size: 13px;
    font-weight: 400;
    background-image: none;
    background-color: #f2f2f2;
    color: #000000;
}

fieldset.module {
    border: solid 1px #bfbec0;
}

fieldset.collapsed h2 {
    background-image: none;
    background-color: #f2f2f2;
    color: #000000;
}

.selector .selector-available h2, .selector .selector-available h2 {
    background-image: none;
    background-color: #f2f2f2;
    color: #4a4a4a;
}

.inline-group .aligned label {
    width: 15em;
}

.submit-row input {
    margin: 0 5px 0 5px;
    float: right;
}

.submit-row {
    width: 100%;
    padding: 5px 0px;
}

/* Pexip extensions */

.submit-row {
    background: none;
    border: 0;
}

input[type=range] {
    width: 150px;
    display: inline;
}

.button, input[type=submit], input[type=button], .submit-row input, a.button {
    background: none;
    font-size: 13px;
    font-weight: 500;
    color: #4a90e2;
    padding: 6px 27px;
    border-radius: 3px;
    border: solid 1px #4a90e2;
}

.button.delete, input[type=submit].delete, .submit-row input.delete {
    background: none;
    font-size: 13px;
    font-weight: 500;
    color: #ec4348;
    padding: 6px 27px;
    border-radius: 3px;
    border: solid 1px #ec4348;
}

.button.default, input[type=submit].default, .submit-row input.default {
    background: none;
    font-size: 13px;
    font-weight: 500;
    color: #ffffff;
    border-radius: 3px;
    background-color: #4a90e2;
    border: solid 1px #4a90e2;
}

.submit-row input.saveanother {
    margin: 0 21px 0 0;
}

.submit-row input {
    margin: 0 0 0 21px;
}

.submit-row input.default {
    margin: 0 21px 0 0;
    float: left;
}

.required_field {
    margin-left: 2px;
    font-weight: bold !important;
    color: #CC3434;
    font-size: 12px;
    vertical-align: middle;
    cursor: default;
}

.aligned .vCheckboxLabel {
    float: left !important;
    padding-left: 0;
}

.inline-group {
    padding: 0;
    margin: 10px 0;
    border: none;
}

.inline-group h2 {
    padding: 0;
    font-size: 18px;
    margin: 20px 0 8px 17px;
    font-weight: normal;
    color: #4a4a4a;
    background: none;
}

.inline-related h3 {
    background: none;
    background-color: #f2f2f2;
    padding-left: 16px;
    line-height: 30px;
    font-size: 13px;
    font-weight: lighter;
    border: solid 1px #bfbec0;
    border-bottom: none;
    margin-top: 6px;
    color: #4a4a4a;
}

.inline-related span.inline_label {
    font-weight: 500;
}

.inline-related .delete label {
    margin-bottom: 0;
}

.inline-related .delete input[type=checkbox] {
    margin: 0;
}

.inline-group div.add-row {
    background: none;
    border: solid 1px #bfbec0;
    background-color: #f2f2f2;
    margin-top: 6px;
    line-height: 30px;
}

.inline-group div.add-row a {
    background: none;
    font-size: 13px;
    font-weight: 400;
}

.vTextField {
    width: 30em;
}
