form dt {
    float: left;
    clear: left;
    text-align: left;
    width: 180px;
}
form dd {
    margin-left: 190px;
    margin-bottom: 1em;
}
form dt.label-right {
    float:none;
    clear:none;
    width:500px;
    margin:0 0 1em 27px;
}
form dd.label-right {
    float:left;
    clear:left;
    margin:0;
}

form input[type="text"],
form input[type="password"],
form select,
form textarea {
    border: 1px solid #ccc;
    padding: 2px 1px 1px;
    width: 270px;
    height: 16px;
    font-size: 12px;
    font-family: 'Arial', 'Helvetica', sans-serif;
}

form select {
    height: 22px;
}

form input.numeric { text-align:right; }

form label {
    /*font-family: 'Trebuchet MS', 'Verdana', 'Arial', 'Helvetica', sans-serif;*/
    line-height: 24px;
    color: #777;
}

form textarea {
    height: 9em;
}
form fieldset {
    border: 1px solid #ccc;
}

/*
 * data-edit-form
 */
div.data-edit-form div.status-message,
div.data-edit-form form .data-elements,
div.data-edit-form div.message,
div#rechtsgebied-ratio-sliders {
    margin-left:27px;
    margin-right:27px;
}
div.data-edit-form div.status-message {
    margin-bottom:20px;
    color:red;
}
div.form-header {
    margin-top:20px;
    margin-bottom: 10px;
    padding:4px 0 1px 8px;
    background-color:#eee;
    border: 1px solid #ccc;
}

div.rechtsgebied-ratio-edit form dl { display:none; }
div.data-edit-form div.message > ul { margin:10px 0 20px 0; }
div.data-edit-form div.message > ul > li { margin-left:15px }

div.data-edit-form form .data-elements div.add-link { margin:0; }

div.data-edit-form form .data-elements fieldset {
    padding:3px 0 0 0;
    margin:10px 0;
}
div.data-edit-form form .data-elements fieldset legend {
    padding:0 4px;
    margin-left:9px;
}
div.data-edit-form form .data-elements fieldset dl { padding:10px; }

/*
 * Login form, Newsletter form
 *
 * (/auth/login, /auth/force, /index/newsletter and as sidebar components)
 */
form#login dl.input input { width:200px; }
form#login dl { width:339px; float:left; }
form#login dt { width:130px; }
form#login dl.button { width:150px; padding-top:38px; }
form#login ul.errors { width:205px; }

/*
 * 'Small' forms
 */
form.small-form dl { float:left; }
form.small-form dl.input input,
form#login.small-form dl.input input {
    width:129px;
}
form.small-form dl,
form#login.small-form dl { width:268px; }
form.small-form dl.button,
form#login.small-form dl.button {
    width:25px;
    padding-top:3px;
}
form#login.small-form dl.button {
    padding-top:38px;
}
form.small-form dl.button dd input { margin-left:13px; }
form.small-form dl.button input {
    background:transparent url('/media/images/layout/smallsubmit.png') no-repeat scroll right top;
    width:85px;
    height:24px;
    margin-top:-2px;
}
form#login.small-form ul.errors,
form.small-form ul.errors {
    width:138px;
}

/*
 * Buttons
 */
form input[type="submit"],
div.submit-button > a,
a.submit, a.backbutton {
    width: 112px;
    height: 26px;
    background: transparent url(/media/images/layout/button.png) top right no-repeat;
    border: none;
    color: #fff;
    font-family: 'Trebuchet MS', 'Verdana', 'Arial', 'Helvetica', sans-serif;
    font-size: 12px;
    line-height: 1;
    padding: 3px 30px 3px 3px;
    font-weight: bold;
    cursor:pointer;
    text-transform: uppercase;
    text-decoration: underline;
    text-align: center;
}

a.submit, a.backbutton {
    width: 78px;
    height: 20px;
    padding: 7px 30px 8px 3px;
}

a.backbutton {
    background: transparent url(/media/images/layout/backbutton.png) top left no-repeat;
    padding: 7px 3px 8px 30px;
    display: block;
}

div.submit-button {
    float:left;
    height:24px;
    background: transparent url(/media/images/layout/submit-right.png) no-repeat;
    background-position:top right;
    padding-right:38px;
    cursor:pointer;
}
div.submit-button > a {
    display:block;
    width:auto;
    background: transparent url(/media/images/layout/submit-left.png) no-repeat;
    background-position:top left;
    padding:6px 0 0 19px;
    text-decoration:none;
}
div.submit-button a:hover { color:#fff; }

form input.button-no-text {
    width:30px;
    margin:0 0 0 4px;
}
form dd input.button-no-text {
    padding-top:0;
}
form dl.button dd {
    margin:0;
}
form dl.button dd input[type="submit"] {
    clear:right;
    float:left;
    margin-left:16px;
}

form div.buttons, div.buttons {
    margin-top:20px;
    margin-bottom:20px;
    background: none;
    height:24px
}
form div.topbuttons, div.topbuttons {
    float: right;
    margin: 0;
}

form div.buttons input[type="submit"], div.buttons input[type="submit"], div.buttons a.submit {
    float:right;
    margin-left:3px;
}

/*
 * Errors
 */
form .has-error input, form .has-error textarea, form .has-error select { border: 1px solid red; }
form .has-error ul.errors, p#error { color:red; }

/*
 * DGN Date-Picker
 */
div.datepicker {
    color: #555;
}
div.datepicker .weekday {
    background-color: #fff;
}
div.datepicker .weekend {
    background-color: #f4f4f4;
}
div.datepicker td { background-color:#fff; }
div.datepicker td.prev,
div.datepicker td.next {
    background-color: #e5e5e5;
    color: #999;
}
div.datepicker td.today {
    font-weight: bold;
    background-color: #f5cb9c;
}
div.datepicker td.hover,
div.datepicker td.active {
    background-color: #ee7c09;
    color: #fff;
}
div.datepicker .daynames {
    border: 1px solid #999;
}
div.datepicker .daynames td, div.datepicker .daynames td .hover {
    background-color: #004c99;
    color: white;
    cursor: default;
    border: none;
}
div.datepicker {
    font-family: Verdana, Arial, sans-serif;
    font-size: 12px;
    width: 190px;
}
div.datepicker p.header {
    margin: 0; padding: 0;
    text-align: center;
    line-height: 26px;
    height: 26px;
    background: #ee7c09 none;
    border: 1px solid #999;
    border-bottom: none;
    position: relative;
    color: white;
}
div.datepicker p.header span {
    position: absolute;
}
div.datepicker p.header span.button {
    position: absolute;
}
div.datepicker p.header span.monthRaquo, div.datepicker p.header span.monthLaquo, div.datepicker p.header span.monthBack,
div.datepicker p.header img.monthRaquo, div.datepicker p.header img.monthLaquo, div.datepicker p.header img.monthBack
{
    position: absolute;
    top:0;
    cursor:pointer;
}
div.datepicker p.header span.monthBack {
    font-size:1.8em;
    right:27px;
    top:0;
}
div.datepicker p.header span.monthRaquo, div.datepicker p.header img.monthRaquo {
    right:0;
    padding-right:5px;
}
div.datepicker p.header span.monthLaquo, div.datepicker p.header img.monthLaquo {
    left:0;
    padding-left:5px;
}
div.datepicker p.header img.monthRaquo, div.datepicker p.header img.monthLaquo, div.datepicker p.header img.monthBack {
    top:4px;
    vertical-align:middle;
}
div.datepicker p.header img.monthBack {
    right:23px;
}
div.datepicker p.header .month { right: 93px; top: 0px;}
div.datepicker p.header .year { right: 53px; top: 0px;}
div.datepicker p.header select {
    display: none;
    position: absolute;
    top: 2px;
    z-index: 10;
    height: auto;
    width: auto;
}
div.datepicker p.header span.hover select { display: block;}
div.datepicker p.header .month select { right: -5px; }
div.datepicker p.header .year select { left: 0px; }
div.datepicker table {
    margin: 0; padding: 0;
    border-collapse: collapse;
    margin-left: 1px;
    margin-top: 1px;
}
div.datepicker table td {
    text-align: center;
    width: 26px;
    height: 26px;
    vertical-align: middle;
    border: 1px solid #999;
    cursor: pointer;
}

/*
 * Autocomplete fields
 */
div.autocomplete {
    position:absolute;
    width:250px;
    background-color:white;
    border:1px solid #888;
    margin:0;
    padding:0;
}
div.autocomplete ul {
    list-style-type:none;
    margin:0;
    padding:0;
}
div.autocomplete ul li.selected { background-color: #ffb;}
div.autocomplete ul li {
    font-size:11px;
    list-style-type:none;
    display:block;
    margin:0;
    padding:2px;
    cursor:pointer;
}

/*
 * Sliders
 */
div.slider {
    width:256px;
    margin:10px 0;
    height:17px;
    position: relative;
    background-image:url(/media/images/slider.png);
}
div.slider div.handle {
    width:14px;
    height:20px;
    cursor:move;
    position: absolute;
    background-image:url(/media/images/slider_button.png);
}

form input#kantoorkosten {
    width:16px;
}
form span.percentage {
    float: right;
}