html {
    font-family: sans-serif;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

a {
    text-decoration: none;
    color: #1D745A;
}

a:hover {
    color: firebrick;
}

.small{
    font-size: 0.8em;
}

.displayTable,
#userResult{
    width:80%;
    max-width: 600px;
    border-collapse:collapse;
    border: solid 1px black;
    margin-top: 20px;
}

.displayHeaderCell{
    border: solid 1px black;
}

.displayHeaderCell,
#userSearchHeader, #userSearchHeader div{
    padding: 5px 5px 5px 2px;
    border-bottom: solid 1px black;
    background-color: #cc3333;
    color: white;
    font-weight: bold;
}

.displayCell,
#userResult div, #userResult a{
    border-left: solid 1px black;
    padding: 0 5px 0 5px;
}

.userResults {
    cursor: pointer;
}

.displayRow:nth-of-type(2n+1),
.userResults:nth-of-type(2n+1){
    background-color: lightgrey;
}

.hover:hover,
.userResults:hover div{
    background-color: #9999ff;
    cursor: pointer;
}


.formField {
    height: 25px;
    max-width: 300px;   /* Pour PC, pour ne pas être trop grand non-plus */
    width: 80%;         /* Pour mobile, histoire de laisser la place pour le vu à droite */
}


.redButton,
.redButton:link,
.redButton:visited,
.ui-button.currentButton, 
.ui-button.currentButton:link, 
.ui-button.currentButton:visited,
input[type="submit"].ui-button{
    border: 1px solid #cccccc;
    background-color: firebrick;
    font-weight: bold !important;
    color: white !important;
}
 
.ui-button.currentButton:hover,
.redButton:hover,
.redButton:active,
input[type="submit"].ui-button:hover{
    background-color: darkred;
}

.ui-button.currentButton:disabled,
.redButton:disabled,
input[type="submit"].ui-button:disabled{
    background-color: lightgray;
    color: #5C5C5C;
    border: 1px solid darkgray;
}

.ui-button.currentButton:disabled:hover,
.redButton:disabled:hover,
input[type="submit"].ui-button:disabled:hover{
    border: 1px solid darkgray;
    background-color: lightgray;
    cursor: auto;
}

.formError{
    color: red;
    background-image: url(images/error.png);
    background-repeat: no-repeat;
    background-position: 0px;
}

.formValid{
    color: green;
    background-image: url(images/valid.png);
    background-repeat: no-repeat;
    background-position: 0px;
}

.error{
    color: #cc3333;
}

.info{
    font-weight: bold;
    color: #00ad00;
}

.long{
    width: 280px;
}

.long input[type="text"], .long input[type="password"]{
    width: 98%;
}

.login{
    background-color: #cc3333;    
    padding: 10px;
    color: white;
    margin: auto;
}

.login input[type=submit] {
    width: auto;
}

.login ul{
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.login a{
    color: white;
}

.login a:hover{
   color: lightgrey;
   text-decoration: none;
}

.login .label{
    padding: 5px 0;
}

.login .input{
    padding: 5px 0;
}

.login ul input[type=text], .login ul input[type=password]{
    width: 190px;
    height: 20px;
}

.login #userLoginFormPasswordLost, .login #userLoginFormPasswordLost a{
    color: white;
    text-align: right;
}

.login #userLoginFormPasswordLost a:hover{
    color: lightgray;
    text-decoration: none;
}

.login #userLoginFormSubmit{
    text-align: right;
}

.login .button{
    background-color: white;
    color: #cc3333;
}

.login #userLoginFormSubmit .button:hover{
    background-color: lightgrey;
    color: #cc3333;
}

.login #userLoginSignup{
    display: none;
}

.login .error{
    color: white;
}


.userForm div{
    padding-bottom: 10px;
}

.userForm>div input[type=text],
.userForm>div input[type=email], 
.userForm>div input[type=password]{
    width: 190px;
}

.userForm #zip {
    width: 50px;
}


.userFormSubmit{
    padding-left: 80px;
    padding-bottom: 25px !important;
}

.userFormAddress br:nth-child(4){
    display: block;
    margin: 5px;
}

#userPasswordLostFormNickname input, #userPasswordLostFormEmail input{
    width: 98%;
}


#salaryPage {
    width: 200mm;
    height: 287mm;
}

#salaryHeader{
    line-height: 25px;
}

#salaryAddress{
    line-height: 25px;
    text-align: right;
    padding-right: 30px;
    padding-bottom: 20px;
}

#salaryTitle{
    width: calc(100% - 2px);
    height: 50px;
    background-color: #808080;
    font-size: 16pt;
    font-weight: bold;
    color: white;
    border: 1px solid black;
    border-bottom: 0;
}

#salaryTitleText{ 
    width: 60%;
    padding-top: 12px;
    padding-left: 5px;
    float: left;
}

#salaryTitleMonth{ 
    padding-top: 12px;
    padding-right: 5px;
    text-align:right;
}

#salaryTable {
    width: 100%;
    border: thin solid black;
}

#salaryTable tr th {
    text-align: left;
    font-size: 14pt;
    font-weight: bold;
    padding: 5px;
}

#salaryTable tr td {
    padding: 5px;
    
}

#salaryTable tr th:nth-child(n+2),
#salaryTable tr td:nth-child(n+2) {
    text-align: right;
}




#manageHourTypes #name {
    width: 400px;
}

#manageHourTypes input[type="text"] {
    width: 100%;
}

#manageHourTypes td, #manageHourTypes th{
    border: thin solid black;
    white-space: nowrap;
}

#manageHourTypes th {
    background-color: firebrick;
    color: white;
    font-weight: bold;
    padding: 10px 20px;
    text-align: center;
}

#manageHourTypes td {
    padding: 5px 10px;
}


#manageUsersTable{
    max-width: 700px;
    width: 700px;
}

#manageUsersTable #nickname,
#manageUsersTable #firstName,
#manageUsersTable #lastName{
    width: 150px;
}








@media only screen and (min-width: 768px) {     
    .login {
        margin-left: 35%;
        margin-right: 35%;
    }
    
    .button {
        font-size: medium;
    }
} 