﻿
/*Form*/
input[type="text"],
input[type="password"],
input[type="file"],
textarea,
select {
    margin: 0px;
    padding: 4px;
    width: 240px;
    border: solid 1px #dedede;
    outline: none;
    font-size: 11px;
    color: #515151;
}

textarea {
 resize: none; 
}

select {
    width: 250px;
    height: 26px;
    line-height: 20px;
    -webkit-appearance: menulist-button;
}

input[type="file"] {
    padding: 3px 0px;
    border: none;
}

body:not(:-moz-handler-blocked) input[type="file"] {
        width: 100%!important;
}

.lt-ie10 input[type="file"] {
    line-height: 25px;
    height: 25px;
}

input[type="text"],
input[type="password"] {
    height: 16px;
}

    input[type="text"]:focus,
    input[type="password"]:focus input[type="file"]:focus,
    textarea:focus,
    select:focus,
    input[type="text"]:active,
    input[type="password"]:active,
    input[type="file"]:active,
    textarea:active,
    select:active {
        border: solid 1px #ccc;
    }

input[type="text"].aspNetDisabled {
    color:#f0f0f0;
    background-color:#f0f0f0;
}

.edit-form input[type="radio"] + label,
.edit-form input[type="checkbox"] + label {
    color: #515151;
}

.edit-form .label input[type="radio"] + label,
.edit-form .label input[type="checkbox"] + label {
    color: #000;
}

input[type="radio"],
input[type="checkbox"] {
    line-height:20px;
    vertical-align: middle;
}

    input[type="checkbox"] + label {
        margin-left: 3px;
        margin-right: 10px;
        line-height:20px;
        vertical-align: middle;
        font-size: 11px;
    }

    input[type="radio"] + label {
        margin-left: 3px;
        margin-right: 10px;
        position:relative;
        top:2px;
        line-height:20px;
        vertical-align: middle;
        font-size: 11px;
    }



.btn-component + input[type="text"] {
    padding-left: 30px;
    width: 214px;
}

input[type="text"].width-auto,
input[type="password"].width-auto,
input[type="file"].width-auto,
textarea.width-auto,
select.width-auto,
input[type="text"][data-type="Date"].width-auto,
input[type="text"][data-type="Datetime"].width-auto,
input[type="text"][data-type="Time"].width-auto  {
        box-sizing: border-box;
    *behavior: url(/css/boxsizing.htc);
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    min-height:26px;
    width: 100%;
}

.lt-ie8 .table-listing input.width-auto[type="text"] {
    width:96%;
    min-height:16px;
}

/*Switch*/

.label [data-type="Switch"] {
    float: left;
    position: relative;
    top: -3px;
        margin-right: 0px;
}

[data-type="Switch"] {
    display: inline-block;
    min-width: 20px;
    overflow: hidden;
    margin-right: 4px;
}

.lt-ie8 [data-type="Switch"] {
    zoom: 1;
    display: inline;
}

[data-type="Switch"] + input[type="text"] {
    width: 216px;
}

/*Fileupload*/

.fileupload-holder {
    position: relative;
    width: 250px;
}

.fileupload-loading {
    position: absolute;
    top: 50%;
    left: 10px;
    margin-top: -8px;
}

/*Format*/

input[type="text"][data-type="Entier"],
input[type="text"][data-type="Nombre"] {
    text-align: right;
}

input[type="text"][data-type="Date"],
input[type="text"][data-type="Datetime"],
input[type="text"][data-type="Time"] {
    background-image: url('../images/icones/calendrier_16.png');
    background-repeat: no-repeat;
    background-position: 5px center;
    padding-left: 30px;
    width: 214px;
}

input[type="text"][data-type="Time"] {
    background-image: url('../images/icones/heure_16.png');
}

input[data-casse="Upper"],
textarea[data-casse="Upper"] {
    text-transform: uppercase;
}

input[data-casse="Lower"],
textarea[data-casse="Lower"] {
    text-transform: lowercase;
}

input[type="text"].readonly,
textarea.readonly{
    border: solid 1px transparent;
    background:none;
}
