/**
 * Project style sheet.
 *
 * @package    vanilla
 * @subpackage css
 * @author     Loops <evrard at h2a dot lu>
 * @version    SVN: $Id: styles.css 38 2014-08-22 15:38:29Z loops $
 */


/*** MESSAGES ------------------ ***/

.msgerror { color: #f4001c; }
.msgsuccess { color: #008913; }



/*** ELEMENTS ------------------ ***/

/* default */
select, textarea, input { border-radius: 18px; font-size: 13px; color: #8791a6; background-color: #f3f4f6; border: 2px #f3f4f6 solid; box-sizing: border-box; -moz-box-sizing: border-box; -webkit-box-sizing: border-box; }
/* hover */
select:hover, textarea:hover, input:hover { background-color: #fff; }
/* focus, active */
select:focus, textarea:focus, input:focus,
select:active, textarea:active, input:active { background-color: #fff; color: #3a5179; }
/* error (by default #f4001c) */
.\:error select, .\:error textarea, .\:error input { border-color: #f4001c; color: #f4001c; }
/* invalid/required - for now, only on mozilla */
select:-moz-ui-invalid, textarea:-moz-ui-invalid, input:-moz-ui-invalid { border-color: #f4001c; color: #f4001c; }

/** padding **/
/* try to harmonize with select */
textarea, input { padding: 8px 20px 8px; }
select { padding: 7px 16px 7px; -webkit-appearance: none; -moz-appearance: none; appearance: none; }
  option { padding: 0 20px; }
  optgroup { padding: 0 20px; }
    optgroup > option { padding: 0 0 0 1em; margin: 0 -20px; }
    
/** custom select **/
/* select { -webkit-appearence: none; -moz-appearence: none; appearence: none; } */



/** stupid webkit shit, put your own colors **/
/** / input:-webkit-autofill { -webkit-box-shadow: 0 0 0 1000px #xxxxxx inset; color: #xxxxxx !important; } /**/
/** / input:-webkit-autofill:hover { -webkit-box-shadow: 0 0 0 1000px #xxxxxx inset; color: #xxxxxx !important; } /**/
/** / input:-webkit-autofill:focus, input:-webkit-autofill:active { -webkit-box-shadow: 0 0 0 1000px #xxxxxx inset; color: #xxxxxx !important; } /**/
/** / .\:error input:-webkit-autofill { -webkit-box-shadow: 0 0 0 1000px #xxxxxx inset; color: #xxxxxx !important; } /**/



/*** PLACEHOLDER --------------- ***/
/* each variation needs to be separated */

/* normal */
::placeholder {}
::-webkit-input-placeholder {}
:-moz-placeholder {}
::-moz-placeholder { opacity: 1; } /* FF 19+ had an opacity to the placeholder */
:-ms-input-placeholder {}
.\:placeholder {} /* @see jquery.placeholder.js */
/* hover */
:hover::placeholder {}
:hover::-webkit-input-placeholder {}
:hover:-moz-placeholder {}
:hover::-moz-placeholder {}
:hover:-ms-input-placeholder {}
.\:placeholder:hover {} /* @see jquery.placeholder.js */
/* focus, active */
:focus::placeholder, :active::placeholder {}
:focus::-webkit-input-placeholder, :active::-webkit-input-placeholder {}
:focus:-moz-placeholder, :active:-moz-placeholder {}
:focus::-moz-placeholder, :active::-moz-placeholder {}
:focus:-ms-input-placeholder, :active:-ms-input-placeholder {}
.\:placeholder:focus, .\:placeholder:active {} /* @see jquery.placeholder.js */
/* error (by default #f4001c) */
.\:error ::placeholder { color: #f4001c; }
.\:error ::-webkit-input-placeholder { color: #f4001c; }
.\:error :-moz-placeholder { color: #f4001c; }
.\:error ::-moz-placeholder { color: #f4001c; }
.\:error :-ms-input-placeholder { color: #f4001c; }
.\:error .\:placeholder { color: #f4001c; } /* @see jquery.placeholder.js */
/* invalid/required - for now, only on mozilla */
:-moz-ui-invalid::placeholder, :-moz-ui-invalid::placeholder { color: #f4001c; }
:-moz-ui-invalid:-moz-placeholder, :-moz-ui-invalid:-moz-placeholder { color: #f4001c; }
:-moz-ui-invalid::-moz-placeholder, :-moz-ui-invalid::-moz-placeholder { color: #f4001c; }



/*** LABELS -------------------- ***/

label {}
/* on error */
.\:error label { color: #f4001c; }
/* for checkboxes */
input[type="checkbox"] + label, input[type="radio"] + label {}
/* hover */
input[type="checkbox"]:hover + label, input[type="radio"]:hover + label,
input[type="checkbox"] + label:hover, input[type="radio"] + label:hover {}
/* focus, active */
input[type="checkbox"]:focus + label, input[type="radio"]:focus + label, 
input[type="checkbox"]:active + label, input[type="radio"]:active + label,
input[type="checkbox"] + label:focus, input[type="radio"] + label:focus, 
input[type="checkbox"] + label:active, input[type="radio"] + label:active {}
/* error */
.\:error input[type="checkbox"] + label, .\:error input[type="radio"] + label { color: #f4001c; }
/* invalid/required */
/* for now, only on mozilla */
input[type="checkbox"]:-moz-ui-invalid + label, input[type="radio"]:-moz-ui-invalid + label { color: #f4001c; }



/*** RADIO/CHECKBOX ------------ ***/

/*** default display ***/
input[type="checkbox"], input[type="radio"] { padding: 0 !important; border: 0 !important; width: 16px !important; vertical-align: -2px; }

/*** iconized sample ***/
/* this sample assume three status (inactive, active, error) - for checked and unchecked state - and icon of 13px x 13px */
/* do not hesitate to adapt it if necessary */
/* for IE8, do not forgot to activate jquery.checked.js in view.yml file */

/* hide it behind the label, but keep it at correct place and visible (for focus) */
input[type="checkbox"], input[type="radio"] { position: absolute; z-index: -1; margin-top: 2px; margin-left: 2px; opacity: 0; }
input[type="checkbox"] + label, input[type="radio"] + label { font-size: 13px; color: #727a8c; position: relative; z-index: 1; display: inline-block; padding-left: 35px; min-height: 20px; padding-top: 5px; }
/* background display */
input[type="checkbox"] + label:before, input[type="radio"] + label:before,
input[type="checkbox"] + label:after, input[type="radio"] + label:after { 
  display: inline-block; width: 25px; height: 25px; border: 2px #f3f4f6 solid; box-sizing: border-box; 
  padding: 7px; position: absolute; top: 1px; z-index: 1; background-color: #f3f4f6; 
}

input[type="checkbox"] + label:before, input[type="checkbox"] + label:after { border-radius: 5px; }
input[type="radio"] + label:before, input[type="radio"] + label:after { border-radius: 13px; }
/* by default, only before */
input[type="checkbox"] + label:before, input[type="radio"] + label:before { content: ""; left: 0; }
/* with this class, on after */
/* adjust label */
input.\:after[type="checkbox"] + label, input.\:after[type="radio"] + label { padding-left: 0; padding-right: 35px; }
/* hide before */
input.\:after[type="checkbox"] + label:before, input.\:after[type="radio"] + label:before { display: none; }
/* display after */
input.\:after[type="checkbox"] + label:after, input.\:after[type="radio"] + label:after { content: ""; right: 0; }

/** unchecked **/
/* normal */
input[type="checkbox"] + label:before, input[type="radio"] + label:before,
input[type="checkbox"] + label:after, input[type="radio"] + label:after { background-color: #f3f4f6; }
/* hover (note that the input cannot be hover) */
input[type="checkbox"] + label:hover:before, input[type="radio"] + label:hover:before, 
input[type="checkbox"] + label:hover:after, input[type="radio"] + label:hover:after,
/* focus, active */
input[type="checkbox"]:focus + label:before, input[type="radio"]:focus + label:before, 
input[type="checkbox"]:active + label:before, input[type="radio"]:active + label:before,
input[type="checkbox"] + label:focus:before, input[type="radio"] + label:focus:before, 
input[type="checkbox"] + label:active:before, input[type="radio"] + label:active:before, 
input[type="checkbox"]:focus + label:after, input[type="radio"]:focus + label:after, 
input[type="checkbox"]:active + label:after, input[type="radio"]:active + label:after,
input[type="checkbox"] + label:focus:after, input[type="radio"] + label:focus:after, 
input[type="checkbox"] + label:active:after, input[type="radio"] + label:active:after { background-color: #fff; }
/* invalid/required */
/* for now, only on mozilla */
input[type="checkbox"]:-moz-ui-invalid + label:before, input[type="radio"]:-moz-ui-invalid + label:before,
input[type="checkbox"]:-moz-ui-invalid + label:after, input[type="radio"]:-moz-ui-invalid + label:after { border-color: #f4001c; }
/* error */
.\:error input[type="checkbox"] + label:before, .\:error input[type="radio"] + label:before,
.\:error input[type="checkbox"] + label:after, .\:error input[type="radio"] + label:after { border-color: #f4001c; }

/** checked **/
/* normal */
input[type="checkbox"]:checked + label:before, input[type="radio"]:checked + label:before, 
input[type="checkbox"]:checked + label:after, input[type="radio"]:checked + label:after { background-color: #3a5179; border-width: 9px; padding: 0; }
/* hover (not that the input cannot be hover) */
input[type="checkbox"]:checked + label:hover:before, input[type="radio"]:checked + label:hover:before,
input[type="checkbox"]:checked + label:hover:after, input[type="radio"]:checked + label:hover:after,
/* focus, active */
input[type="checkbox"]:checked:focus + label:before, input[type="radio"]:checked:focus + label:before, 
input[type="checkbox"]:checked:active + label:before, input[type="radio"]:checked:active + label:before,
input[type="checkbox"]:checked + label:focus:before, input[type="radio"]:checked + label:focus:before, 
input[type="checkbox"]:checked + label:active:before, input[type="radio"]:checked + label:active:before,
input[type="checkbox"]:checked:focus + label:after, input[type="radio"]:checked:focus + label:after, 
input[type="checkbox"]:checked:active + label:after, input[type="radio"]:checked:active + label:after,
input[type="checkbox"]:checked + label:focus:after, input[type="radio"]:checked + label:focus:after, 
input[type="checkbox"]:checked + label:active:after, input[type="radio"]:checked + label:active:after { background-clip: content-box; border-width: 2px; padding: 7px; }
/* invalid/required */
/* for now, only on mozilla */
input[type="checkbox"]:checked:-moz-ui-invalid + label:before, input[type="radio"]:checked:-moz-ui-invalid + label:before,
input[type="checkbox"]:checked:-moz-ui-invalid + label:after, input[type="radio"]:checked:-moz-ui-invalid + label:after { border-color: #f3f4f6; background-color: #f4001c; }
/* error */
.\:error input[type="checkbox"]:checked + label:before, .\:error input[type="radio"]:checked + label:before,
.\:error input[type="checkbox"]:checked + label:after, .\:error input[type="radio"]:checked + label:after { border-color: #f3f4f6; background-color: #f4001c; }

/** :checked, same rules (must be separate for IE8) **/
/* normal */
input[type="checkbox"].\:checked + label:before, input[type="radio"].\:checked + label:before,
input[type="checkbox"].\:checked + label:after, input[type="radio"].\:checked + label:after { background-position: 0 0; }
/* hover (not that the input cannot be hover) */
input[type="checkbox"].\:checked + label:hover:before, input[type="radio"].\:checked + label:hover:before, 
input[type="checkbox"].\:checked + label:hover:after, input[type="radio"].\:checked + label:hover:after,
/* focus, active */
input[type="checkbox"].\:checked:focus + label:before, input[type="radio"].\:checked:focus + label:before, 
input[type="checkbox"].\:checked:active + label:before, input[type="radio"].\:checked:active + label:before,
input[type="checkbox"].\:checked + label:focus:before, input[type="radio"].\:checked + label:focus:before, 
input[type="checkbox"].\:checked + label:active:before, input[type="radio"].\:checked + label:active:before,
input[type="checkbox"].\:checked:focus + label:after, input[type="radio"].\:checked:focus + label:after, 
input[type="checkbox"].\:checked:active + label:after, input[type="radio"].\:checked:active + label:after,
input[type="checkbox"].\:checked + label:focus:after, input[type="radio"].\:checked + label:focus:after, 
input[type="checkbox"].\:checked + label:active:after, input[type="radio"].\:checked + label:active:after { background-position: -13px 0; }
/* invalid/required */
/* error */
.\:error input[type="checkbox"].\:checked + label:before, .\:error input[type="radio"].\:checked + label:before,
.\:error input[type="checkbox"].\:checked + label:after, .\:error input[type="radio"].\:checked + label:after { background-position: -26px 0; }



/*** DISPLAY ------------------- ***/

/** fieldset **/
.formfieldset {}
  .formfieldset_title {}
  
/** row **/
.formrow { margin-bottom: 20px; }
.formrow + .formrow {}
   /* label */
  .formrow > label { font-size: 13px; color: #727a8c; }
  /* help */
  .formhelp {}
  /* errors */
  .formerror { font-size: 13px; color: #f4001c; padding: 5px 22px 0; }

/** submit **/
.formrow_submit {}
  .form_submit {}