/*! HTML5 Boilerplate v5.3.0 | MIT License | https://html5boilerplate.com/ */

/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html {
    color: #222;
    font-size: 1em;
    line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * These selection rule sets have to be separate.
 * Customize the background color to match your design.
 */

::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
    resize: vertical;
}

/* ==========================================================================
   Browser Upgrade Prompt
   ========================================================================== */

.browserupgrade {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

@font-face {
    font-family: 'epayicons';
    src:  url('fonts/epayicons.eot?kq9jpp');
    src:  url('fonts/epayicons.eot?kq9jpp#iefix') format('embedded-opentype'),
    url('fonts/epayicons.ttf?kq9jpp') format('truetype'),
    url('fonts/epayicons.woff?kq9jpp') format('woff'),
    url('fonts/epayicons.svg?kq9jpp#epayicons') format('svg');
    font-weight: normal;
    font-style: normal;
}

.icon-tick:before {
    content: "\e5ca";
}
.icon-help:before {
    content: "\e887";
}
.icon-help_outline:before {
    content: "\e8fd";
}
.icon-info:before {
    content: "\e88e";
}
.icon-info_outline:before {
    content: "\e88f";
}
.icon-refresh:before {
    content: "\e627";
}
.icon-email:before {
    content: "\e0e1";
}
.icon-menu:before {
    content: "\e5d2";
}
.icon-person:before {
    content: "\e7fd";
}
.icon-shadow:before {
    content: "\e91f";
}
.icon-signout:before {
    content: "\e901";
}
.icon-sort:before {
    content: "\e906";
}
.icon-sort_asc:before {
    content: "\e909";
}
.icon-sort_desc:before {
    content: "\e90b";
}
.icon-companydocs:before {
    content: "\e900";
}
.icon-contactus:before {
    content: "\e902";
}
.icon-home:before {
    content: "\e903";
}
.icon-messages:before {
    content: "\e904";
}
.icon-mydetails:before {
    content: "\e905";
}
.icon-mydocs:before {
    content: "\e907";
}
.icon-summary:before {
    content: "\e908";
}
.icon-usefulinfo:before {
    content: "\e90a";
}
.icon-circlearrow:before {
    content: "\ea42";
}

button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
    outline: 5px auto Highlight;
}

html {
    height: 100%;
}

body {
    height: 100%;
    margin: 0 auto;
    font-family: 'Open Sans', sans-serif !important;
}

html, body {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

*, *:before, *:after {
    -webkit-box-sizing: inherit;
    -moz-box-sizing: inherit;
    box-sizing: inherit;
}

h1 {
    font-size: 1.6em;
    margin: 0.3em 0;
}

h2 {
    font-size: 1.4em;
}

button:focus,
input:focus,
a:focus {
    outline: 5px auto Highlight;
    outline: 5px auto -webkit-focus-ring-color;
}

#skiplink a {
    padding: 0.5em 1em;
    position: absolute;
    top: 0px;
    left: -186px;
    color: white;
    border-bottom-right-radius: 0.25em;
    background: #d54123;
    -webkit-transition: left 1s ease-out;
    transition: left 1s ease-out;
    z-index: 100;
}

#skiplink a:focus {
    position: absolute;
    left: 0px;
    top: 0px;
    outline-color: transparent;
    -webkit-transition: left .1s ease-in;
    transition: left .25s ease-in;
}

#background {
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: center;
    height: 100%;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
}

#header {
    display: none;
    overflow: hidden;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background-color: white;
    min-height: 70px;
    height: 70px;
}

#header #epaylogo {
    padding-left: 20px;
    height: 70px;
    width: 90px;
}

#header #epaylogo img {
    max-height: 100%;
}

#header #customerlogo {
    float: right;
    padding-right: 20px;
    text-align: right;
    height: 70px;
    width: 300px;
    max-width: 70%;
}

#header #customerlogo img {
    max-height: 100%;
}

#banner {
    display: none;
    overflow: hidden;
    position: absolute;
    top: 90px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.7);
}

#banner #menu {
    float: left;
    color: #333;
    width: 200px;
    height: 50px;
    line-height: 40px;
    padding-left: 50px;
    font-size: 1.1em;
    background: linear-gradient(to left, rgba(255,255,255,0), rgba(255,255,255,0.7), rgba(255,255,255,0.7));
}

#banner #menu button {
    background-color: transparent;
    border: none;
    color: black;
    padding: 0;
    margin: 5px 0;
    height: 40px;
    border-radius: 0;
    font: inherit;
    cursor: pointer;
}

#banner #menu i {
    position: relative;
    top: 2px;
    padding-right: 0.15em;
    font-size: 1.2em;
}

#banner #welcome {
    display: none;
    margin: 0 auto;
    color: #333;
    line-height: 50px;
    text-align: center;
    width: 70%;
}

#banner #welcomeextra {
    display: none;
}

#banner #welcome p {
    margin: 0;
}

#banner #signout {
    width: 240px;
    height: 50px;
    line-height: 50px;
    float: right;
    background: rgba(255, 255, 255, 0.5);
    background: linear-gradient(to right, rgba(255,255,255,0), rgba(255,255,255,0.6), rgba(255,255,255,0.6));
    padding-right: 70px;
    text-align: right;
    font-size: 1.1em;
}

#banner #signout i{
    position: relative;
    top: 2px;
}

#banner #signout button {
    margin: 0;
    padding: 0;
    color: #333;
    text-decoration: none;
    background-color: transparent;
}

#banner #signout button:hover {
    color: #000;
}

.nav {
    width: 0;
}

#main {
    top: 0;
    bottom: 70px;
    left: 0;
    right: 0;
    overflow: auto;
    position: absolute;
    -webkit-overflow-scrolling: touch;

}

#mainlogin {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: absolute;
    overflow: auto;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1em;
}

#mainhelp {
    position: absolute;
    overflow: auto;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1em;
}

.swiper-container {
    width: calc(100% - 30px);
    max-width: 500px;
    height: 335px;
}

#footer {
    display: none;
    overflow: hidden;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30px;
    line-height: 30px;
    background: rgba(0, 0, 0, 0.55);
    clear: both;
    color: white;
    font-size: 0.9em;
    padding-left: 2em;
    transition: margin-left .5s;
}

#footer span {
    float: left;
    margin-right: 1em;
}

#footer a {
    color: white;
    text-decoration: none;
    margin-left: 1em;
}

#footer a:visited {
    color: white;
}

#mobilenav {
    position: absolute;
    overflow: hidden;
    height: 70px;
    background: rgba(255, 255, 255, 0.9);
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
}

#mobilenav a {
    padding: 1.3em 0.6em 0;
    text-decoration: none;
    font-size: 0.7em;
    display: inline-block;
    position: relative;
    color: #222;
    vertical-align: top;
}

#mobilenav a:hover {
    color: #000;
}

#mobilenav i {
    font-size: 2.4em;
}

#mobilenav form {
    display: inline-block;
}

#mobilenav button {
    background-color: transparent;
    font-size: 0.7em;
    color: #222;
    padding: 1.3em 0.6em 0;
}

.badge {
    background-color: #777;
}

#mobilenav .badge {
    font-size: 1em;
    position: absolute;
    top: 6px;
    right: 4px;
    padding: 0.15em 0.4em;
    border-radius: 0.4em;
}

#sidenav {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 70px;
    overflow-x: hidden;
    background-color: white;
    z-index: 2;
    transition: 0.5s;
    padding-top: 1.75em;
}

#sidenav.change {
    width: 170px;
}

#sidenav .menuitem {
    padding: 0.6em 0 0.6em 1.2em;
    text-decoration: none;
    font-size: 0.95em;
    color: #222;
    display: block;
    transition: 0.3s;
    white-space: nowrap;
}

#sidenav .menuitem:hover {
    background-color: #eee;
}

/*Signout button in form*/
#sidenav button {
    background: transparent;
    margin: 0;
    border-radius: 0;
    width: 100%;
    text-align: left;
}

#closebutton {
    position: absolute;
    top: 0px;
    right: 15px;
    font-size: 2em;
    text-decoration: none;
    color: #222;
}

#closebutton:visited {
    color: #222;
}

#refresh {
    display: none;
    position: absolute;
    bottom: 0;
    right: 0;
    padding-bottom: 5em;
    padding-right: 1.5em;
    z-index: 3;
}

#refreshicon {
    color: black;
    opacity: 0.3;
    font-size: 2em;
}

#refreshicon:hover {
    cursor: pointer;
}

.widget {
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 0.5em;
    width: calc(100% - 30px);
    height: 320px;
    display: block;
    float: left;
    padding: 1em;
    box-sizing: border-box;
    margin-top: 15px;
}

.previewpage {
    overflow: hidden;
    width: 100%;
    height: calc(100% - 75px);
    background: -webkit-linear-gradient(#424242 70%, rgba(255, 255, 255, 0));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/*Hack for MS Edge, transparency doesn't work*/
_:-ms-lang(x), _:-webkit-full-screen, .previewpage {
    -webkit-text-fill-color: unset;
}

.icon {
    /* use !important to prevent issues with browser extensions that change fonts */
    font-family: 'epayicons' !important;
    speak: none;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;

    /* Better Font Rendering =========== */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.widget i {
    float: right;
    font-size: 3em;
}

.widgettitle {
    display: inline-block;
    color: #424242;
    font-size: 1.6em;
    font-weight: bold;
    padding-top: 0.5em;
}

.widgettitle {
    text-decoration: none;
}

.widget footer i {
    font-size: 1.4em;
}

.widget h2 {
    color: #424242;
    font-weight: 700;
    margin: 0.5em 0;
}

.widget p {
    color: #424242;
}

.widget p.large {
    font-size: 1.25em;
}

.widget p.small {
    font-size: 0.8em;
}

.widget p span.small {
    font-size: 0.8em;
}

.widget a {
    color: #424242;
    text-decoration: none;
}

.widget a:hover {
    color: #212121;
}

.widget footer {
    position: absolute;
    bottom: 0.75em;
    right: 0.75em;
    color: #5c5c5c;
    font-weight: 700;
    font-size: 0.8em;
    width: auto;
    height: auto;
}

.widget footer a {
    text-decoration: underline;
    display: inline-block;
}

.widget .button {
    font-size: 0.9em;
    padding: 0.5em;
}

.swiper-pagination-bullets {
    max-width: 150px;
    margin: 0 auto;
    left: 0;
    right: 0;
}

.hoverpointer {
    cursor: pointer;
}

#summary p {
    margin: 0.5em 0;
}

#summary .summaryType2 p {
    margin: 0.75em 0;
}

#summary p:first-of-type {
    margin-top: 1em;
}

#summary .summaryType2 span {
    padding-top: 0.5em;
}

#summary hr {
    margin: 0;
}

p#summaryinfo {
    color: #d54123;
    font-size: 0.8em;
    margin: 1em 0;
}

#summary .button {
    font-size: 0.9em;
    padding: 0.5em;
    margin-right: 0;
    margin-top: 1em;
}

#summary .summaryType2 span:last-of-type {
    padding-top: 0;
}

#summary #view {
    padding: 0.5em 1em;
    margin-bottom: 1em;
    margin-top: 1em;
}

#summary .summaryType1 #view {
    margin-top: 1em;
}

#summary .summaryType2 #view {
    margin-top: 0;
}

#messages p {
    font-size: 0.9em;
    margin: 0.75em 0;
}

#messages p .badge {
    top: -1px;
}

#messages hr, #broadcasts hr {
    margin: 0;
}

#broadcasts p {
    font-size: 0.9em;
    margin: 0.75em 0;
}

#mydetails p {
    margin: 0.25em 0;
}

#mydetails p:first-of-type {
    margin-top: 0.75em;
}

#mydetails .button {
    margin-top: 1em;
}

.accountDetails {
    background: rgba(255, 255, 255, 0.7);
    border-radius: 0.5em;
    border: #999999 solid 1px;
    margin-top: 1.5em;
    padding: 1em 1em 2em 1em;
}

button.delete {
    margin: 2em 0 1em 0;
}

button.yes {
    margin-right: 1em;
}

button#download-all {
    margin-right: 1em;
    position: relative;
}

.download-all-text {
    transition: all 0.3s;
}

.button-loading .download-all-text {
    visibility: hidden;
    opacity: 0;
}

#loading-spinner {
    visibility: hidden;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    font-size: 20px;
    width: 20px;
    height: 20px;
    margin: auto;
}

.button-loading #loading-spinner {
    transition: all 0.3s;
    visibility: visible;
}

.accountDetails h2 {
    margin: 0 auto;
}

.accountDetails select {
    margin: 1em 0;
}

#receiveemails {
    margin-top: 0.75em;
}

.newlabel {
    padding-left: 1em;
}

.widget hr {
    border-color: #cbcbcb;
}

.internalAdminForm input[type=text] {
    width: 100%;
    max-width: 30em;
}

/* Standard Page */
#page {
    width: calc(100% - 30px);
    max-width: 1200px;
    min-height: 300px;
    margin: 15px auto;
    background: rgba(255, 255, 255, 0.9);
    padding: 1em;
    font-size: 0.9em;
    border-radius: 0.5em;
    box-sizing: border-box;
    -webkit-overflow-scrolling: touch;
}

#page h1 {
    text-align: center;
}

.dataTables_length {
    color: #5c5c5c;
    float: none;
    text-align: center;
}

#userstable, #newstarterstable {
    font-size: 0.8em;
}

#userstable .icon {
    font-size: 1.3em;
    position: relative;
    top: 3px;
}

#userstable #shadowuser {
    font-size: 1.2em;
    position: relative;
    top: 1px;
}

.table {
    border-collapse: collapse;
    width: 100%;
    margin-bottom: 1em;
}

.table th, .table td {
    padding: 0.4em 0.5em;

}

#messagestable .button {
    padding: 0.25em 0.5em;
    margin: 0.1em 0.5em;
    font-size: 0.9em;
}

#messagestable td.namecolumn {
    min-width: 15em;
    max-width: 0;
}

#messagestable .publish {
    position: relative;
    display: inline;
    left: 0;
}

#messagestable .secondary-color-bg {
    background-color: #6c6c6c;
}

#messagecontent {

}

#messagereplyform, #messagerestrictions {
    height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
}

#messagereplyform.visible, #messagerestrictions.visible {
    height: auto;
    opacity: 1;
}

#messagereplyform textarea {
    width: 100%;
    height: 5em;
    margin-bottom: 1em;
    background: white;
    border: 1px solid #d1d1d1;
    padding: 0.5em;
}

#closereply{
    float: right;
    margin: 0.25em 0.5em;
    font-weight: bold;
    color: #5c5c5c;
    cursor: pointer;
}

.messagereply {
    background: rgba(255, 255, 255, 0.7);
    border-radius: 0.5em;
    display: table;
    padding: 1em;
    margin-bottom: 1em;
}

.replyname {
    font-size: 0.8em;
    font-style: italic;
    font-weight: bold;
    margin-right: 0.25em;
}

.replydate {
    font-size: 0.7em;
    font-style: italic;
    font-weight: bold;
    color: #5c5c5c;
}

.replytext {
    font-size: 0.9em;
    margin-top: 0.25em;
    margin-bottom: 0.25em;
    margin-left: 0.1em;
}

#messagerestrictions table {
    text-align: center;
    width: auto;
}

#messagerestrictions table th{
    padding: 0 2em;
}

#documentstable th, #documentstable td {
    padding: 0.4em 0.25em;
    white-space: nowrap;
}

#documentstablereport th, #documentstablereport td {
    padding: 0.4em 0.5em;
    max-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.8em;
}

.dataTables_scrollHead th {
    padding: 0.25em 0.5em;
}

.table thead th.sorting,
.table thead th.sorting_asc,
.table thead th.sorting_desc {
    cursor: pointer;
}

.table thead th.sorting:after,
.table thead th.sorting_asc:after,
.table thead th.sorting_desc:after {
    padding-left: 0.2em;
    font-family: 'epayicons' !important;
}

.table thead th.sorting:after {
    content: "\e906";
    color: white;
}
.table thead th.sorting_asc:after {
    content: "\e909";
}
.table thead th.sorting_desc:after {
    content: "\e90b";
}

.paginate_button.current {
    font-weight: 700;
}

.table td.sorting_1 {
    background: rgba(0, 0, 0, 0.04);
}

#userstable th, #userstable td ,
#newstarterstable th, #newstarterstable td {
    padding: 0.4em;
}

.table tr:hover {
    background: rgba(0, 0, 0, 0.05);
}

.table th, .dataTables_scrollHead th {
    background-color: #d54123;
    color: white;
    font-weight: 100;
    white-space: nowrap;
}

.table td {
    border-bottom: 1px solid #bbb;
    color: #5c5c5c;
}

.table a {
    text-decoration: none;
    color: #5c5c5c;
}

.dataTables_wrapper {
    margin-top: 1em;
}

.dataTables_info {
    margin: 1em auto;
    text-align: center;
    color: #5c5c5c;
}

.dataTables_filter {
    display: inline-block;
}

.dataTables_paginate {
    float: right;
    min-height: 1em;
}

.dataTables_paginate .disabled {
    display: none;
}

#selecteditems {
    float: left;
}

#totalamount {
    margin-top: 1em;
    color: #5c5c5c;
}

/*Login Pages*/

#login {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 0.5em;
    padding: 0.75em 1.5em;
    text-align: center;
    min-width: 250px;
    width: calc(100% - 30px);
    max-width: 400px;
    margin: auto;
}

#login .smalltext {
    color:#5c5c5c;
    font-size:0.9em;
}

#login #welcome {
    font-size: 1.25em;
    margin: 0;
    display: none;
}

#login #loginBoxImage {
    display: none;
}

.loginlabel {
    color:#5c5c5c;
    font-size:0.9em;
    pointer-events:none;
    display: inline-block;
    text-align: left;
    width: 100%;
    margin: 0.3em 0;
}

#login #securityquestions {
    font-size: 1.1em;
    margin: 0.5em 0;
}

#login #casesensitive {
    color:#5c5c5c;
    font-size: 0.65em;
    text-align: center;
}

#login #forgot, #login #help {
    font-size: 0.9em;
    margin-bottom: 0.5em;
}

#login #copyright {
    font-size: 0.7em;
    color: #666;
    margin-top: 2em;
    margin-bottom: 0;
}

#username::placeholder {
    color: #6c6c6c;
}

/*Login Inputs*/

.fieldError {
    border: 1px solid red;
}

.alert {
    border-radius: 0.25em;
    border-width: 1px;
    border-style: solid;
    padding: 0.5em 1em;
}

.alert_success {
    background-color: #bddbc4;
    border-color: #badbcc;
    color: #155724;
}

.alert_error {
    background-color: #f8d7da;
    border-color: #f5c2c7;
    color: #721c24;
}

.alert_warning {
    background-color: #fff3cd;
    border-color: #ffecb5;;
    color: #664d03;
}

#login .alert {
    font-size: 0.8em;
}

#login input[type=text], #login input[type=password] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    font-size: 1em;
    display: block;
    width: 100%;
    margin: 0 auto;
    background-color: white;
    border-radius: 0.3em;
}

input {
    filter: none;
}

#login div.inputgroup, .inputgroup {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin-top: 0.75em;
}

.inputgroup input[type=email] {
    width: 100%;
}

button.visibility {
    background: url(../images/visibility.svg) no-repeat;
    height: 20px;
    width: 20px;
    position: absolute;
    right: 0.8em;
    bottom: 0.6em;
    padding: 0;
    margin: 0;
}

button.visibilityoff {
    background: url(../images/visibility_off.svg) no-repeat;
}

button.visibility:hover {
    color: #212121;
}

input[type=submit] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: #d54123;
    border: none;
    color: white;
    text-decoration: none;
    margin-right: 0.5em;
    padding: 0.4em 0.7em;
    cursor: pointer;
    border-radius: 0.25em;
}

input[type=submit]:hover {
    color: whitesmoke;
}

#login input[type=submit] {
    padding: 0.5em 0.8em;
    margin: 0.5em 0;
}

#login a.button {
    font-size: 0.9em;
}

#emailaddress, .emailaddress {
    width: 100%;
    max-width: 400px;
}



#currentpassword, #newpassword, #confirmpassword {
    width: 100%;
    max-width: 400px;
}

#passwordreset input[type=text]{
    width: 400px;
    max-width: 100%;
    margin-bottom: 1em;
}

#passwordreset form:first-child {
    display: flex;
    justify-content: center;
}

#passwordreset form div {
    max-width: 100%;
}

#fromDatePicker, #toDatePicker {
    width: 8em;
}

#login #cancel {
    background-color: #6c6c6c;
    border: none;
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    margin: 0 0.25em;
    cursor: pointer;
    border-radius: 0.25em;
}

#cancel:hover {
    color: whitesmoke;
}

button {
    background-color: #d54123;
    border: none;
    color: white;
    padding: 0.4em 0.7em;
    margin-bottom: 0.5em;
    border-radius: 0.25em;
    font: inherit;
    cursor: pointer;
}

button:hover, a.badge:hover {
    color: whitesmoke;
}

a.button, input[type=button] {
    background-color: #d54123;
    border: none;
    color: white;
    padding: 0.4em 0.7em;
    text-decoration: none;
    margin-right: 0.5em;
    margin-bottom: 0.25em;
    border-radius: 0.25em;
    display: inline-block;
    cursor: pointer;
}

a.badge, span.badge {
    font-size: 0.7em;
    font-weight: bold;
    color: white;
    padding: 0.25em 0.5em;
    text-decoration: none;
    margin-left: 0.25em;
    border-radius: 0.5em;
    display: inline-block;
    position: relative;
    top: -3px;
}

#mydocs .badge {
    top: -1px;
    font-size: 0.7em;
}

a.widgettitle .badge {
    font-size: 0.45em;
}

a.up {
    margin-top: 1em;
}

a.button:hover, input[type=button]:hover {
    color: whitesmoke;
}

a.paginate_button {
    margin: 0 0.5em 0.5em 0;
    padding: 0.25em 0.5em;
    cursor: pointer;
    color: #5c5c5c;
    display: inline-block;
}

.plainlink {
    color: #5c5c5c;
}

.plainlink:hover {
    color: #424242;
}

p.errortext {
    color: red;
    font-size: 0.9em;
}

input[type=text], input[type=password], input[type=email], input[type=date] {
    border: 1px solid #d54123;
    padding: 0.5em;
    margin-top: 0.5em;
    margin-right: 0.5em;
    background-color: white;
    border-radius: 0.3em;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active  {
    -webkit-transition: background-color 5000s ease-in-out 0s;
    -webkit-transition-delay: 9999s;
    -webkit-background-clip: text;
    -webkit-box-shadow: 0 0 0 100px #fff inset;
    -moz-box-shadow: 0 0 0 100px #fff inset;
    box-shadow: 0 0 0 100px #fff inset;
    filter:none;
}

input::-ms-reveal, input::-ms-clear {
    display: none;
}

.questionsandanswers {
    margin: 1.5em 0;
}

.questionsandanswers div.floatleft {
    width: 100%;
    max-width: 400px;
    margin-right: 1em;
}

.questionsandanswers div.floatleft:first-child {
    margin-bottom: 0.5em;
}

.questionsandanswers input {
    width: 100%;
}

/* Add a green text color and a checkmark when the requirements are right */
.valid {
    color: green;
}

.valid:before {
    position: relative;
    left: 0.5em;
    content: "✔";
}

/* Add a red text color and an "x" when the requirements are wrong */
.invalid {
    color: red;
}

.invalid:before {
    position: relative;
    left: 0.5em;
    content: "✖";
}

input[type=search] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border: 1px solid #d54123;
    background: white;
    padding: 0.3em;
    margin-bottom: 1em;
}

#messagetitle {
    background: white;
    width: 30em;
    max-width: 100%;
    border: 1px solid #d1d1d1;
}

.userdetails {
    padding-right: 3em;
}

#usersactions {
    text-align: left;
    margin: 0.75em 0
}

#usersactions a {
    font-size: 0.85em;
    display: inline-block;
}

#usersactions input[type=button] {
    font-size: 0.95em;
}

.modalbackground {
    display: none;
    position: fixed;
    z-index: 4;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.modalcontent {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #fefefe;
    margin: auto;
    padding: 2em;
    width: 80%;
    max-width: 500px;
    border-radius: 6px;
}

.modalcontent form {
    display: inline-block;
}

.modalcontent span {
    margin-bottom: 1.5em;
}

.modalcontent button {
    margin: 0 0.5em;
}

#timeoutModal .modalcontent{
    height: 150px;
}

button.close, .closemodal {
    background-color: #6c6c6c;
    color: #fff;
    margin-left: 10px;
}

input {
    font: inherit;
}

select {
    color: inherit;
    font: inherit;
}

#about dt {
    font-weight: bold;
}

.fileupload input {
    width: 90%;
}

/*Helpers*/
.primary-colour {
    color: #d54123;
}

.primary-colour-bg {
    background-color: #d54123;
}

.red {
    color: #d54123;
}

.floatleft {
    float: left;
}

.floatright {
    float: right;
}

.clearboth {
    clear: both;
}

.left {
    text-align: left;
}

.center {
    text-align: center;
}

.right {
    text-align: right;
}

.truncate {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 15em;
    max-width: 20em;
}

.fixed {
    table-layout: fixed;
}

.wrap {
    white-space: normal;
}

.nowrap {
    white-space: nowrap;
}

.bold {
    font-weight: bold;
}

.italic {
    font-style: italic;
}

.margintop {
    margin-top: 1em;
}

.marginbottom {
    margin-bottom: 1em;
}

/*
 * note that styling gu-mirror directly is a bad practice because it's too generic.
 * you're better off giving the draggable elements a unique class and styling that directly!
 */
.flex-container > div,
.gu-mirror {
    transition: opacity 0.4s ease-in-out;
}

.gu-mirror {
    cursor: grabbing;
    cursor: -moz-grabbing;
    cursor: -webkit-grabbing;
}

.flex-container.ex-over {
    background-color: rgba(255, 255, 255, 0.3);
}

/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden {
    display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * http://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 */

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

/*
 * Extends the .visuallyhidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
    visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

.clearfix:before,
.clearfix:after {
    content: " "; /* 1 */
    display: table; /* 2 */
}

.clearfix:after {
    clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */


@media only screen and (min-height: 410px) {

    #login #welcome {
        padding-top: 0.5em;
        display: block;
    }

}

@media only screen and (min-height: 480px) {

    #login #loginBoxImage {
        display: inline;
        margin: 0.25em 0;
        max-width: 70px;
    }

    #qrcode img {
        max-width: unset;
    }

    #login #welcome {
        padding-top: 0;
        display: block;
    }

}

@media only screen and (min-height: 520px) {

    .swiper-container {
        height: 375px;
    }

    .widget {
        height: 360px;
    }
}

@media only screen and (min-height: 640px) {

    #mainlogin, #mainhelp {
        top: 70px;
    }

    #sidenav {
        top: 70px;
    }
}


@media only screen and (min-height: 640px) {

    #header {
        display: block;
    }

    #main {
        top: 70px;
    }
}

/*Switch to desktop view*/
@media only screen and (min-width: 768px) {

    #header {
        display: block;
    }

    #main {
        top: 70px;
    }

    h1 {
        font-size: 1.8em;
    }

    h2 {
        font-size: 1.6em;
    }

    h3 {
        font-size: 1.4em;
    }

    #skiplink a {
        top: 140px;
    }

    #skiplink a:focus {
        top: 140px;
    }

    #header {
        min-height: 90px;
        height: 90px;
    }

    #header #epaylogo {
        height: 90px;
        padding-left: 50px;
    }

    #header #customerlogo {
        height: 90px;
        width: 400px;
        padding-right: 40px;
    }

    #footer {
        display: block;
    }

    #sidenav {
        top: 90px;
        bottom: 30px;
        padding-top: 50px;
    }

    #sidenav.change {
        width: 220px;
    }

    #sidenav .menuitem {
        padding: 0.9em 0 0.9em 1.8em;
        font-size: 1.05em;
    }

    #banner {
        display: block;
    }

    #banner #welcome {
        display: block;
    }

    #main {
        top: 140px;
        bottom: 30px;
    }

    #mainlogin, #mainhelp {
        top: 90px;
        bottom: 30px;
    }

    #dash {
        max-width: calc(100% - 30px);
        margin: 0 auto;
    }

    #mobilenav {
        display: none;
    }

    .swiper-container {
        width: auto;
        height: auto;
        max-height: inherit;
    }

    .swiper-wrapper {
        width: auto;
        display: flex;
        flex-flow: row wrap;
        justify-content: center;
    }

    .swiper-pagination {
        display: none;
    }

    .widget {
        height: 300px;
        width: 320px;
        margin: 20px 10px 0;
    }

    .widget:last-child {
        margin-bottom: 40px;
    }

    .widget footer {
        bottom: 0.75em;
        font-size: 1em;
    }

    #refresh {
        display: inline;
        padding-bottom: 2.5em;
    }

    #refreshicon {
        color: white;
    }

    #login #welcome {
        display: block;
        font-size: 1.5em;
    }

    #login #securityquestions {
        font-size: 1.5em;
        margin: 0.5em 0;
    }

    #login #casesensitive {
        font-size: 0.8em;
    }

    #login #forgot, #login #help {
        font-size: 1em;
    }

    #login input[type=submit] {
        border-radius: 0.4em;
        margin: 0.5em 0.25em;
        padding: 0.75em 1.5em;
    }

    .questionsandanswers div.floatleft:first-child {
        margin-bottom: 0;
    }

    #login #cancel {
        padding: 0.75em 1.5em;
        margin: 0 0.5em;
        border-radius: 0.4em;
    }

    #page {
        margin: 1.5em auto;
        padding: 1em 2em;
        font-size: 1em;
        min-height: 80%;
    }

    .dataTables_length {
        float: right;
        text-align: right;
    }

    .dataTables_info {
        margin: 0;
        text-align: left;
        float: left;
    }

    #documentstable {
        margin-bottom: 1em;
        table-layout: auto;
    }

    #documentstablereport {
        margin-bottom: 1em;
        table-layout: auto;
    }

    #documentstable th, #documentstable td {
        /*max-width: initial;*/
    }

    #documentstablereport th, #documentstablereport td {
        max-width: initial;
    }

    a.button, input[type=button] {
        font-size: 1em;
    }

    a.paginate_button {
        margin: 0 0.5em 0.5em 0;
        padding: 0.5em 0.5em;
    }

    input[type=submit] {
        font-size: 1em;
    }

    #payslip {
        font-size: 1em;
        width: calc(100% - 200px);
    }

    #livesitewarning {
        color: red;
    }
}

@media only screen and (min-width: 1100px)  {

    #dash {
        max-width: 1080px;
    }

    #banner #welcomeextra {
        display: inline;
    }

}

@media only screen and (min-width: 1300px) and (min-height: 855px) {

    #banner #welcome {
        font-size: 1.1em;
    }

    #banner #menu {
        font-size: 1.2em;
    }

    #banner #signout {
        font-size: 1.2em;
    }

}

@media print,
    (-webkit-min-device-pixel-ratio: 1.25),
    (min-resolution: 1.25dppx),
    (min-resolution: 120dpi) {
    /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   http://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
    *,
    *:before,
    *:after,
    *:first-letter,
    *:first-line {
        background: transparent !important;
        color: #000 !important; /* Black prints faster:
                                   http://www.sanbeiji.com/archives/953 */
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }

    abbr[title]:after {
        content: " (" attr(title) ")";
    }

    /*
     * Don't show links that are fragment identifiers,
     * or use the `javascript:` pseudo protocol
     */

    a[href^="#"]:after,
    a[href^="javascript:"]:after {
        content: "";
    }

    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    /*
     * Printing Tables:
     * http://css-discuss.incutio.com/wiki/Printing_Tables
     */

    thead {
        display: table-header-group;
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    img {
        max-width: 100% !important;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}
