html {
    -webkit-text-size-adjust: none;
}

/* Base container */
#wholepage {
    width: 100% !important;
}

/* Header */
.header {
    padding: 10px 10px 5px 10px !important;
    margin: 0 !important;
    width: auto !important;
}
.header .inner {
}

/* Search bar */
#searchformcontainer {
    padding: 5px 10px !important;
    margin: 0 !important;
    width: auto !important;
}
#searchformcontainer .actionButtons {
    clear: both;
    display: block;
    width: 100%;
    text-align: center;
}
#searchformcontainer .buttons {
    clear: both;
    float: none;
}
#searchformcontainer .buttons .rssbutton {
    margin-top: 4px !important;
}
#searchformcontainer .buttons .button {
    float: none;
    padding: 5px 0 0 0;
    margin: 0 0 0 10px;
    text-align: center;
}
#searchformcontainer #searchform {
    width: 100%;
}
#searchformcontainer #searchform .searchElement {
    width: 140px;
    height: 40px;
}
#searchformcontainer #searchform .searchElement input ,
#searchformcontainer #searchform .searchElement select {
    margin: 2px 0 4px 0;
    width: 130px;
}
#searchformcontainer #searchform .searchElement input {
    margin: 3px 0 5px 0;
    padding: 2px 0 1px 0;
    text-indent: 5px;
}

/* List */
#list {
    padding: 0;
    width: 100%;
}
#list .actionButtons {
    text-align: center;
}

/* Messages */
.error,
.success,
.warning {
    width: auto !important;
}

/* Login, Position and Apply Forms */
/* Apply Form */
#applyForm, 
#applyQuestionnaire,
#position {
    padding: 5px 10px !important;
    margin: 0 !important;
    width: auto !important;
    border-width: 1px 0;
}
#applyForm form div.field .textbox,
#applyForm form div.field select , 
#applyQuestionnaire form div.field .textbox,
#applyQuestionnaire form div.field select { 
    width: 99%;
    text-indent: 4px;
    padding: 1px 0;
}
#applyForm .status tr {
    background-position: top center !important;
}
#position h2,
#applyForm h2 {
    padding-top: 5px;
}
#applyForm .buttons,
#fullform .buttons,
#fullform .submiters,
#loginform .buttons {
    padding-top: 15px;
}
#applyForm .buttons {
    text-align: center !important;
}
#fullform .buttons .sharetitle,
#position .buttons .sharetitle {
    text-align: left !important;
}
#fullform .buttons .share,
#position .buttons .share {
    float: none !important;
    text-align: left;
    display: block;
}
#applyForm .buttons .submiters,
#fullform .buttons .submiters,
#position .buttons .submiters {
    float: none !important;
    text-align: center;
    display: block;
    clear: both;
}
#applyForm .buttons .submiters,
#fullform .buttons .submiters,
#position .buttons .submiters {
    float: none !important;
    text-align: center;
    display: block;
    clear: both;
}
#applyQuestionnaire .questionnairebuttons {
    text-align: center !important;
}
#loginform .buttons .submitLink {
    margin: 0 5px;
}
#applyForm .buttons .textColour,
#loginform .buttons .textColour {
    padding: 0;
}
#loginform em.submitLink {
    display: none;
}
#applyForm .buttons .textColour,
#applyForm .buttons .paddLeftSpecial {
    margin-left: 0 !important;
    padding-left: 0 !important;
}
#position .LongDescription {
    margin: 15px 0;
}
#position #nonmaplistlocationSelector label {
    margin-top: 5px;
}
#applyForm .inputFieldDescription {
    display: block;
}
#applyForm .fieldDetails {
    margin: 5px 0;
    padding: 0 5px;
}
#applyForm .upload {
    width: 100% !important;
}


/* Language */
#language {
    display: block;
    padding: 5px 10px !important;
    margin: 0 !important;
    width: auto !important;
    float: none;
}

/* Footer */
#footer {
    padding: 5px 10px !important;
    margin: 0 5px 0 0 !important; /* logo should be on anchor... */
    width: auto !important;
    float: none;
}
#footer a {
    padding-right: 10px;
}

/* Email Templates */
#sendtofriend {
    padding: 5px 10px !important;
    margin: 0 !important;
    width: auto !important;
}

/* Google Map and locations */
#locationSelector .sidecell {
    overflow: auto !important;
    height: auto !important;
    float: none !important;
    width: 100% !important;
    padding: 0 !important;
}
#locationSelector .sidecell .mapelement {
    margin-bottom: 5px !important;
    padding-bottom: 5px !important;
}
#locationSelector .sidecell .mapelement:last-child {
    background-image: none;
}
#locationSelector .overlay {
    position: relative;
}
#locationSelector .overlay .mapcellOverlay {
    width: 100% !important;
    height: 325px;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
}
#locationSelector .mapcell {
    width: 100% !important;
    height: 325px;
}
#locationSelector .mapcell #map {
    width: auto !important;
}

/* Hacks */
.w700 {
    padding: 0;
    margin: 0;
    width: 100%; /* workaround */
}
.clearboth {
    margin: 0 !important;
}

/* For DOB field */
.field table {
    width: 100%;
}
.field table #dateOfBirth-d {
    width: 55px !important;
}
.field table #dateOfBirth-m {
    width: 125px !important;
}
.field table #dateOfBirth-y {
    width: 75px !important;
}

/* DOB message */
.dobMessage {
    margin: 6px 3px;
}