﻿@charset "UTF-8";

/*------------------------------------------------------------------ 
[Formhandler Stylesheet for VD.ch]

Project:        VD09
Version:        0.1 
Last change:    2012.03.09
Assigned to:
Primary use:    formhandler
Comments:       Based on cmxform ul ol li technique

- Add dl dt dd technique for label -> value
-

-------------------------------------------------------------------*/

/*------------------------------------------------------------------
FORM GENERAL
-------------------------------------------------------------------*/


form p, form blockquote {
	margin: 0;
	padding: 0;
}

/* Lists
------------------------------*/

form ul, form  ol, form  dl, form  li, form  dt, form  dd {
	margin: 0;
	padding: 0;
}

/* Forms
------------------------------*/

form, fieldset {
	margin: 0;
	padding: 0;
}

fieldset {
	border: 1px solid #000;
}

legend {
	padding: 0;

	color: #000;
}

input, textarea, select {
	font-family: inherit;
}

select {
	padding: 0;
}

form p {
	margin: 5px 0;
}





/*------------------------------------------------------------------
FORM form.cmxform
-------------------------------------------------------------------*/

form.cmxform, .cmxform.fieldset {
	margin-top: 5px;
	padding: 0;
}


/*------------------------------------------------------------------
FORM form.cmxform focus
-------------------------------------------------------------------*/

form.cmxform input:focus,
form.cmxform textarea:focus,
form.cmxform select:focus
{
	/* background is overridde */

	/* add border */
	border-style:solid;
	border-width:thin;
	border-color: #006400;
}



/*------------------------------------------------------------------
FORM width
-------------------------------------------------------------------*/


/* structure size */

/* Width of labels */

form.cmxform fieldset {
	margin-bottom: 10px;
}

form.cmxform legend {
	padding: 4px 2px 4px 0px;
}

form.cmxform label {
	display: inline-block;
	line-height: 1.8;
	vertical-align: top;
	width: 250px;
}

form.cmxform input {
	width: 250px;
}

form.cmxform textarea {
	margin-top: 2px;
	/*vertical-align: middle;*/
	padding: 2px;
	font-size: 1em;
}

form.cmxform select {
	line-height: normal;
	margin-top: 2px;
	/* vertical-align: middle; */
	padding: 2px;
}

form.cmxform select option {
}


form.cmxform label.hiddenLabel{

	position:absolute;
	left:0px;top:0px;
	width:0px; height:0px;
	visibility:hidden;
}


/* ul ol li dl dt dd */
form.cmxform fieldset ul,
form.cmxform fieldset ul li,
form.cmxform fieldset ol {
	list-style-type: none;
	list-style-image:none;
}









/* color font */
form.cmxform {
	font-size: 1.0em;
	color: #333;

}

form.cmxform fieldset {
	border: none;
	/* border-top: 1px solid #C00; */
	/* background-image: url('cmxform-fieldset.gif'); */
	background-repeat: repeat-x;
	background-position: left bottom;

}
form.cmxform legend {
	font-size: 1.0em;
	font-weight: bold;
	color: #333;
}

form.cmxform label {
	color: #333;
}

form.cmxform input {
	background-image: url('cmxform-input-bckgrnd.gif');
	background-position: top;
	background-repeat: repeat-x;
	border: solid 1px #BCBCBC;
	background-color: #FFF;
}

form.cmxform textarea {
	border: solid 1px #BCBCBC;
	background-color: #FFFFFF;
	background-image: url('cmxform-input-bckgrnd.gif');
	background-repeat: repeat-x;
}

form.cmxform select {
	line-height: normal;
	text-decoration: none;
	border: solid 1px #BCBCBC;
}

form.cmxform select option {
	background-color: #F7F7F7;
}


form.cmxform em, form.cmxform strong {
	font-weight: bold;
	font-style: normal;
	color: #F00;
}

form.cmxform .error{
	color: #B10B0B;
}

/*------------------------------------------------------------------
FORM form.cmxform fieldset first level
-------------------------------------------------------------------*/

/* ul ol li dl dt dd*/


form.cmxform fieldset li,
form.cmxform fieldset dt,
form.cmxform fieldset dd
{
	margin: 0px;
	padding: 0px 5px 5px 0px;

	list-style: none;
	list-style-type: none;
	background: url('cmxform-divider-musees.gif') left bottom repeat-x;
}


/*------------------------------------------------------------------
FORM form.cmxform fieldset fieldset second level
-------------------------------------------------------------------*/

form.cmxform fieldset fieldset {
	margin-top: 5px;

	border: none;
	border-top: none;
	background-image: none;
	margin-bottom: 1px;
}

form.cmxform fieldset fieldset legend {
	margin-top: 5px;
	margin-left: 0px;
	padding-top: 5px;
	padding-bottom: 0px;
	padding-left: 0px;

	font-size: 1.0em;
	font-weight: bold;
}

/* same as parent the tree of fieldset is not used */
form.cmxform fieldset fieldset label {
}
form.cmxform fieldset fieldset input {
}

form.cmxform fieldset fieldset em {
	color: #333;
	font-style: normal;
	font-weight: bold;
}
form.cmxform fieldset fieldset ul {
	margin-top: 2px;
	padding-top: 2px;
}

/*------------------------------------------------------------------
FORM form.cmxform fieldset fieldset fieldset third level
-------------------------------------------------------------------*/


form.cmxform fieldset fieldset fieldset legend {

}



/*------------------------------------------------------------------
FORM form.cmxform li second level
-------------------------------------------------------------------*/

/* second level */

form.cmxform li.display-level2 {
	/* add bottom line removed in li */
	padding-bottom: 5px;

	margin-left: 20px;
}

form.cmxform li.display-level2,
form.cmxform li.display-level2 fieldset,
form.cmxform li.display-level2 ul
{
	/* remove bottom line*/
	background-image: none;
}






/*------------------------------------------------------------------
FORM special, type of element and display
-------------------------------------------------------------------*/


/*input type */
form.cmxform .type-check input {
	vertical-align: middle;
	width: auto;
}
form.cmxform .type-button input {
	width: auto;
	padding: 2px 4px 2px 4px;
	margin-left: 205px;
}

form.cmxform .type-radio input {
	width: auto;
	padding: 2px 4px 2px 4px;

	margin-top: 4px;
}


/* ul as one row, li as columns */
form.cmxform ul.display-column {
	/* add bottom line removed in li */
	padding-bottom: 5px;
	/* background: url('cmxform-divider-musees.gif') left bottom repeat-x; */

}

form.cmxform li.display-groups {
	background:url('');
}

form.cmxform .display-column li,
form.cmxform li.display-column
{
	display: inline;
	/* remove bottom line*/
	background-image: none;
}

/* ul as many rows */

form.cmxform .display-row li,
form.cmxform li.display-row
{
	/* remove bottom line*/
	background-image: none;
}

form.cmxform .display-row label
{
	display: block;
	width:auto;
}

form.cmxform .display-row input,
form.cmxform .display-row select,
form.cmxform .display-row textarea
{
	display: block;
	margin-left: 0px;

}
form.cmxform .display-row input,
form.cmxform .display-row textarea
{
	width:96%;
}

/* FICHIERS */
form.cmxform .button,
form.cmxform .display-row .button{

	width: auto;
	padding: 2px 4px 2px 4px;

}


form.cmxform .submit,
form.cmxform .display-row .submit
{
	margin-top: 6px;
	margin-left: 205px;

}

form.cmxform .fileupload-info .label{
	font-weight: bold;
}
form.cmxform ul.fileupload-list{
	margin-left: 12px;
}
form.cmxform ul.fileupload-list a{
	margin-left: 6px;
}


/*------------------------------------------------------------------
FORM special, type of objects sr_freecap, datepicker
-------------------------------------------------------------------*/

/* sr freecap */
div.sr_freecap-input{
	margin-left: 40%;
	width: 25%;
}

/* datepicker */
form.cmxform .datepicker-field{
	text-align: right;
	width: 128px;

}
form.cmxform .datepicker-cal{
	position:absolute;
	z-index: 1000;
	margin-left: 279px;
}
form.cmxform .datepicker-button{
	width: 16px;
	height: 16px;
	background-color: #87cefa;
	background-image: url("../img/calendar.gif");
	background-repeat: no-repeat;
	/* add value for WAI but hide the value  */
	color: #ffffff;

	overflow: hidden;
}

/* radio chackbox group in column */


/* display like a label */
form.cmxform fieldset.radios-group legend {

	/* display inline ne marche pas*/
	float: left;
	font-weight: normal;
	width:200px;
	white-space: normal;
}

/* display like input position */
form.cmxform .radios-group ul
{
}

form.cmxform .radios-group li
{
	display: inline;
	/* remove bottom line*/
	background-image: none;
}

/* labels are short */
form.cmxform .radios-group label
{
	width: auto;
	margin-right: 10px;
}

/* filedset as one row, li as columns */
form.cmxform fieldset.radios-group{

}
form.cmxform fieldset.radios-group ul {
	/* remove bottom line*/
	background-image: none;
}

form.cmxform fieldset.radios-group div.error {
	/* */
}



/*------------------------------------------------------------------
NOT FOR form but submitok
-------------------------------------------------------------------*/