﻿/*-------------------------------------------------------------------------------------------------------------------*/
/*-------------------------------------------------------LAYOUT------------------------------------------------------*/
/*-------------------------------------------------------------------------------------------------------------------*/

/*#region Portal Standard*/

body {
    margin: 0;
    padding: 0;
    font-size: 1em;
}

h3 {
    text-align: left;
    margin-bottom: 0.5em;
    font-size: 1.25em !important;
}

    h3 a {
        text-decoration: underline;
    }

        h3 a:hover {
            opacity: 0.6;
        }

.btn-primary {
    padding: 0.2em;
}

input[type=text],
input[type=password],
input[type=tel],
input[type=number],
input[type=email],
input[type=date],
select,
textarea {
    font-size: 1em;
    margin: 0.3em;
}

textarea {
    font-family: inherit;
    font-size: 0.8em;
    width: 20em;
    height: 5em;
    max-height: 5em;
    min-height: 1em;
}

.TextBoxDate {
    width: 11em !important;
}

.TimeSelect {
    width: 4em !important;
    display: inline !important;
}

.PortalTextBoxContainer {
}

.PortalTextBox, .PortalTextBoxPassword {
    font-size: 1em;
    /*Stops the red glow from firefox and chrome*/
    box-shadow: none;

}

.PortalTextBoxLabel {
    pointer-events: none;
    font-size: 0.8em;
    opacity: 1;
    margin-top: 0.5em;
    margin-bottom: 0;
}
.PortalTextBoxLabel label{
    margin-bottom:0;
}

a {
    text-decoration: none !important;
    cursor: pointer !important;
    color: inherit !important;
}

    a.hyperlink {
        text-decoration: underline;
    }

p {
    margin: 0;
}

.icon-calendar,
.icon-pencil,
.icon-arrow-left,
.icon-arrow-left5,
.icon-search2 {
    cursor: pointer;
}

table {
    width: 100%;
    border: none;
    border-collapse: collapse;
    font-size: 0.8em;
}

.trHeading {
    border-bottom: 1px solid rgba(100,100,100,0.5);
}

.tdNumber {
    text-align: right;
}

.tdCenter {
    text-align: center;
}

table td {
    padding: 0.3em;
}

.PortalSuccessMessage {
    margin-bottom: .5em;
}

.validation-summary-errors {    
    font-size: 0.8em;
    border: 1px solid;
    margin: .5em;
    padding: 1em 2em 1em 3em;
    border-radius: 2em;
}

    .validation-summary-errors ul {
        padding: 0;
        margin: 0;
        list-style: none;
    }

.CountdownMessage {
    font-size: 0.8em;
}

.Loading::after {
    content: "Loading...";
}
/*#endregion Portal Standard*/

/*#region Portal Header*/
.PortalHeader {
    padding: 0 !important;
    margin-bottom: .5em;
}

.PortalSettings {
    margin: 0.25em;
    margin-right: 0.5em;
    font-size: 1.5em;
    line-height: 1.5em;
    cursor: pointer;
}

#PortalLogo {
    max-height: 2em;
    cursor: pointer;
}

.SelectedCulture {
    line-height: 1.9em;
    text-align: center;
    width: calc(50% - 1em);
    max-width: 10em;
}

.selectableCulture {
    margin-top: 1px;
    border-top: 1px solid;
}

/*#endregion Portal Header*/

/*#region Portal Layout*/

.PortalContent {
    margin: auto;
    margin-top: 3em;
    overflow: auto;
    overflow-x: hidden;
}

.PortalContentInner {
    margin: 10px;
}

.PortalLeftContainer {
    position: relative;
    text-align: left;
    /*give a sense of center aligned*/
    max-width: 80em;
    margin: auto;
}

    .PortalCenterContainer, .PortalNewsItemContainer {
        position: relative;
        text-align: center;
        margin-bottom: 0.5em;
        padding-bottom: 0.5em;
        max-width: 80em;
        margin: auto;
    }

.PortalDialogContainer {
    text-align: center;
}

.PortalDialog {
    position: fixed;
    top: 20%;
    left: 50%;
    margin-left: -10em;
    width: 18em;
    text-align: center;
    z-index: 15;
    padding: 1em;
    word-wrap: break-word;
}

    .PortalDialog input[type="button"] {
        width: 8em;
    }

.PortalDialogOverlay {
    z-index: 14;
    top: 0;
    left: 0;
    position: fixed;
    height: 100%;
    width: 100%;
    background: rgba(55, 55, 55, 0.6)
}

.PortalVersionNumber {
    position: absolute;
    top: calc(100% - 2em);
    font-size: 0.5em;
    right: 0.5em;
}

/*#endregion Portal Layout*/

/*#region Portal Bar*/
.PortalBar, .PortalToolBar, .PortalBarFlip {
    margin: 0.25em;
    text-align: left;
    display: inline-block;
    cursor: pointer;
}

.PortalBar, .PortalBarFlip {
    width: calc(100% - 0.5em);
    max-width: 20em;
}

.PortalToolBar {
    width: calc(50% - 1em);
    max-width: 10em;
    overflow: hidden;
    text-overflow: ellipsis;
}

.PortalBarIcon, .PortalBarCaption {
    vertical-align: top;
    display: inline-block;
    cursor: pointer;
}

.PortalBarCaption {
    margin-left: 0.5em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-top: 0.2em;
    width: calc(100% - 3.1em);
}

.PortalBarNews, .PortalBarAnnouncement {
    display: none;
}

.PortalBarIcon {
    font-size: 1em;
    text-align: center;
    line-height: 2em;
    height: 2em;
    width: 2em;
}

.PortalBarFlip {
    text-align: left;
    position: relative;
    transform-style: preserve-3d;
    transition: 0.4s all ease;
    cursor: pointer;
    height: 2em;
}

.PortalBarStory {
    position: absolute;
    width: calc(100% - 0.5em);
    max-width: 20em;
}

.FlipX {
    transform: rotateX(360deg);
}
/*#endregion Portal Bar*/

/*#region Portal Tiles*/
/*Portal Tiles and Banner*/
.PortalBanner {
    text-align: left;
    display: inline-block;
    margin: 1em;
    cursor: pointer;
}

.PortalBannerIcon {
    display: inline-block;
    width: 2em;
    height: 2em;
    vertical-align: top;
    text-align: center;
    line-height: 2em;
}

.PortalBannerCaption {
    display: inline-block;
    vertical-align: top;
    padding-left: 1em;
}

.PortalBannerDescription {
    font-size: 0.8em;
}

.PortalTile {
    position: relative;
    display: inline-block;
    vertical-align: top;
    width: 5em;
    padding: 0.25em;
    margin: 0.2em 0.1em;
    cursor: pointer;
}

.PortalTileIcon {
    position: relative;
    font-size: 2em;
    width: 2em;
    height: 2em;
    margin: auto;
    line-height: 2em;
}

div.PortalTileNotificationNumber {
    position: absolute !important; /*these 2 are important because the divs in the diary have greater specificity*/
    margin: 0 !important;
    text-align: center;
    display: block;
    top: 0;
    right: 0;
    border-radius: 50%;
    width: 1.5em;
    height: 1.5em;
    font-size: 0.8em;
    z-index: 10;
    line-height: 1.5em; /*this makes it vertically centered*/
}

.PortalTileCaptionNoImage {
    margin-top: 1em;
}

@keyframes infinite-spinning {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.TileLoading {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    height: 100%;
    width: 100%;
    border-radius: 50%;
    border: 0.3em solid rgba(0,0,0, 0);
    border-right: 0.3em solid rgba(255, 255, 255, 0.2);
    animation: infinite-spinning 0.5s infinite linear;
}
/*#endregion Portal Tiles*/

/*#region Portal Forms*/
.PortalForm, .PortalFormLogin {
    text-align: left;
    margin-bottom: 0.5em;
    padding-top: 0.5em;
    padding-bottom: 0.5em;
    display: inline-block;
    vertical-align: top;
}

.PortalFormRow {
    display: block;
    position: relative;
}

.PortalFormPencil {
    position: absolute;
    top: 0;
    right: 0;
}

.PortalFormSelectWorkContainer {
    display: inline-block;
    vertical-align: top;
    vertical-align: top;
    margin-right: 10px;
}

    .PortalFormSelectWorkContainer span:before, .PortalDutyPanelSelected .PortalFormSelectWorkContainer span:before {
        position: relative;
        top: 0;
        right: 0;
        font-size: 1.5em;
        content: "\e2ab";
        font-family: 'InnoIcons' !important;
    }

.PortalDutyPanelSelected .PortalFormSelectWorkContainer span:before {
    content: "\e370";
    font-size: 1.5em;
}


.PortalFormCell {
    display: inline-block;
}

.PortalFormCellLeft {
    vertical-align: top;
    min-width: 10em;
}

.PortalFormCellRight {
    padding-left: 0.5em;
}
/*#endregion Portal Forms*/

/*#region Portal Diary*/
.PortalDiaryWeek div {
    text-align: center;
    position: relative;
}

.PortalDiaryHeader {
    text-align: center;
    position: relative;
    height: 2.6em;
    margin-bottom: 1em;
}

.PortalDiaryEvent {
    vertical-align: top;
    font-size: 0.8em;
}

.PortalDiaryToday {
    font-weight: bold;
}

.PortalDiaryEventDate {
    vertical-align: top;
    display: inline-block;
    text-align: center;
    margin: 0.25em;
    width: 10%;
    max-width: 6em;
}

    .PortalDiaryEventDate p:first-child {
        font-size: 2em;
    }

.PortalDiaryItems {
    display: inline-block;
    width: 80%;
    max-width: 24em;
}

.PortalDiaryEventInfo {
    cursor: pointer;
    margin-bottom: 0.2em;
    padding: 0.2em 0.2em 0.5em;
}

    .PortalDiaryEventInfo p:first-child {
        font-size: 1.5em;
    }

.DutyConfirmed p:first-child {
    font-weight: bold;
}

.PortalDutyPanel {
    transition: all 0.2s ease;
}

.PortalDutyPanelSelected {
    background: #646464;
    background: rgba(100, 100, 100, 0.2);
}

/*#endregion Portal Diary*/

/*#region Portal Holiday*/
.HolidayHelpText, .DaysEquivalent {
    font-size: 0.8em;
}

#HolidayInfoMore, #HolidayInfoLess {
    position: absolute;
    top: 3em;
    right: 0.5em;
    font-size: 1em;
    cursor: pointer;
    opacity: 0.7;
}

.TakenHoliday {
    opacity: 0.8;
}

.PortalDocumentHeader {
    margin: 1em auto 0;
}

.PortalHolidayPeriodText {
    border-bottom: 1px solid rgba(100,100,100,0.5);
    text-align: center;
    font-size: 0.8em;
}


#HolidayInfo {
    position: absolute;
    top: -1em;
    right: 0;
    font-size: 1.2em;
    cursor: pointer;
}

.PortalHolidayProgressWrapper {
    text-align: left;
    cursor: pointer;
    line-height: 0;
    width: calc(100% - 0.5em);
    overflow: hidden;
    height: 4em;
    padding: 0;
    margin: auto;
}

.PortalHolidayProgressSection {
    display: inline-block;
    font-size: 2em;
    height: 2em;
    line-height: 2em;
    margin: 0;
    padding: 0;
    text-align: center;
    transition: all 0.4s ease;
}

    .PortalHolidayProgressSection span {
        opacity: 0.5;
    }


.Section1 {
    background: rgba(255,255,255,0.05);
}

.Section2 {
    background: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.1) 0.5em, rgba(255, 255, 255, 0.2) 0.5em, rgba(255, 255, 255, 0.2) 1em);
}

.Section3 {
    background: rgba(255,255,255,0.7);
    color: rgba(0,0,0,0.9);
}

.Section3 span {
    opacity: 1;
}

.PortalHolidayLegend div {
    display: inline-block;
}

.PortalHolidayLegendItem {
    padding: 0.1em 0.5em;
}

.PortalHolidayLegendItemValue {
    padding-left: 0.3em;
    border-left: 1px solid;
    text-align: right;
}

.PortalTabs {
    margin-left: -0.3em; /*because of whitespace*/
    display: inline-block;
    padding: 0.1em 1em 0.2em;
    border-radius: 1em 1em 0em 0em !important;
    height: 1.5em;
    cursor: pointer;
}

.PortalHolidayHeader {
    text-align: center;
    position: relative;
    height: 1.6em;
}

.PortalHolidayTableContainer {
    margin-top: 0;
}
/*#endregion Portal Holiday*/

/*#region Portal Document*/
.PortalDocumentColumn {
    margin: 0.2em 0;
}

.PortalPinnedDocumentColumn, .PortalDocumentColumn {
    vertical-align: top;
    text-align: left;
}

.NestColumn {
    display: inline-block;
    vertical-align: top;
    margin: 0 0.2em;
}

.MobileDetector {
    padding: 0.1em;
    opacity: 0;
}

.PortalDocumentColumnChild {
    cursor: pointer;
    border-bottom: 1px solid rgba(100,100,100,0.2);
    transition: all 0.4s ease;
    position: relative;
    min-height: 2.5em;
    padding-bottom: 0.5em;
    padding-left: 0.5em;
    font-size: 0.8em;
    margin-top: 0.5em;
}

    .PortalDocumentColumnChild.PortalIconColour {
        opacity: 0.8;
    }

    .PortalDocumentColumnChild div {
        display: inline-block;
        max-width: 18em;
        vertical-align: top;
        margin-top: 0.8em;
    }

    .PortalDocumentColumnChild .SmallIcon {
        margin: 0.4em 1em 0 0;
    }


.PortalDocument {
    display: none;
}

.PortalDocumentSubCategory {
    display: none;
}

.DocumentPathContainer {
    text-align: left;
    min-height: 2em;
    direction: rtl;
}

.DocumentCategory {
    text-align: left;
    margin: 0.2em 0;
}

.CategoryName, .DocumentName {
    display: inline-block;
    text-overflow: ellipsis;
    max-width: 16em;
    min-width: 16em;
    white-space: nowrap;
    overflow: hidden;
    padding-right: 1em;
}

.MobileBreadcrumb {
    padding: 0.3em;
    opacity: 0.7;
    display: none;
}

    .MobileBreadcrumb span {
        margin: 0.3em;
    }

/*Same as tr.selectedrow*/
.SelectedCategory, .SelectedSubCategory {
    opacity: 1 !important;
}

.rotate {
    /* FF3.5+ */
    -moz-transform: rotate(90.0deg);
    /* Opera 10.5 */
    -o-transform: rotate(90.0deg);
    /* Saf3.1+, Chrome */
    -webkit-transform: rotate(90.0deg);
    /* IE6,IE7 */
    /* ReSharper disable InvalidValue */
    filter: progid: DXImageTransform.Microsoft.BasicImage(rotation=1);
    /* ReSharper restore InvalidValue */
    /* IE8 */
    -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=1)";
    /* Standard */
    transform: rotate(90.0deg);
}
/*#endregion Portal Document*/

/*#region Portal News*/
.PortalNewsItemConatiner {
    text-align: center;
}

.PortalNewsFeatured {
    font-weight: bold;
}

.PortalNewsPriority {
    font-style: italic;
}

.NewItem {
    font-weight: normal !important;
}
/*#endregion Portal News*/

/*#region Portal Message*/
.PortalDesktopPreview {
    position: fixed; /*fixed to keep the content scrolling separate to the list*/
    top: 3em;
    right: 0;
    width: calc(100% - 25em);
    padding: 0 2em;
    border-top: 1px solid rgba(100,100,100,0.2);
    border-left: 1px solid rgba(100,100,100,0.2);
    vertical-align: top;
    height: calc(100% - 4em);
    overflow: auto;
}

.PortalMessageContainer {
}

.PortalMessagesTable {
    vertical-align: top;
    width: 100%;
}

    .PortalMessagesTable tr {
        background: transparent !important;
        border-bottom: 1px solid rgba(100,100,100,0.2);
        transition: all 0.4s ease;
    }

        .PortalMessagesTable tr:last-child {
            border-bottom: none;
        }

    .PortalMessagesTable td {
        height: 3em;
        padding: 0.3em;
    }

.SmallIcon {
    display: inline-block;
    text-align: center;
    width: 2em;
    height: 2em;
    padding: 0.5em;
    transform-style: preserve-3d;
    transition: 0.4s all ease;
    cursor: pointer;
    margin-top: -0.2em;
}

td .SmallIcon {
    margin-top: -0.2em;
    position: absolute;
}

.SmallIconFront, .SmallIconBack {
    position: absolute;
}

.SmallIconFront {
    transform: translateZ(1px);
    opacity: 1;
    transition: 0.4s all ease;
}

.SmallIconBack {
    transform: translateZ(-1px) rotateY(180deg);
    opacity: 0;
    transition: 0.4s all ease;
}

.Flip {
    transform: rotateY(180deg);
}

    .Flip .SmallIconBack {
        opacity: 1;
    }

    .Flip .SmallIconFront {
        opacity: 0;
    }

tr.SelectedRow {
    background: rgba(100,100,100,0.3) !important;
    opacity: 1;
}

.PortalMessageCreate {
    display: none;
}

.HelpText {
    white-space: pre-line;
}

.DocumentHelpText {
    font-size: 0.9em;
    white-space: pre-line;
    max-width: 20em;
}
/*#endregion Portal Message*/

/*#region Portal Reports*/
/*Inline on the page for the PDF to pick up!*/
.PortalPayDetails, .PortalEmployeeSchedule {
    display: inline-block;
    display: none;
    margin-top: 2em;
}
/*#endregion Portal Reports*/

/*#region Desktop*/
@media screen and (min-width: 480px) {
    .PortalVideoNewsCarousel {
        background: #333;
        text-align: center;
        position: relative;
        display: inline-block;
        float: right;
        margin: 3em 2em;
        height: 286px;
        overflow: hidden;
    }

    .PortalVideoNewsCarouselItem {
        position: relative;
        width: 512px;
    }

    .PortalVideoNewsCarouselItemVideoContainer {
        position: relative;
        display: inline-block;
        margin: auto;
    }

    .PortalVideoNewsCarouselItemTitle {
        position: absolute;
        width: 100%;
        max-width: 300px;
        top: 0;
        left: 0;
        background: rgba(50, 50, 50, 0.3);
    }

    .PortalVideoNewsCarouselItemNext {
        right: .1em;
    }

    .PortalVideoNewsCarouselItemPrev {
        left: .1em;
    }

    .PortalCarouselControls {
        position: absolute;
        bottom: 50%;
        opacity: 0;
        transition: 0.4s ease;
        font-size: 2em;
        z-index: 10;
        background: rgba(255,255,255,0.5);
        height: 1.3em;
        width: 1.3em;
        border-radius: 50%;
        cursor: pointer;
    }

    .PortalVideoNewsCarouselItem:hover .PortalCarouselControls {
        opacity: 0.8;
    }

    .PortalVideoNewsCarouselItem video {
        height: 288px;
        margin: 0;
        width: 512px;
    }

    .PortalForm {
        margin: 1em;
        padding: 1em;
        min-width: 20em;
        border-left: 1px solid rgba(100, 100, 100, 0.2);
    }

    .PortalNewsItemContainer {
        margin-bottom: 0.5em;
    }

    .MobileBreadcrumb {
        display: none;
    }

    .MobileDetector {
        display: none;
    }

    .PortalTile {
        font-size: 1.5em;
    }

    .PortalTileCaption {
        font-size: 0.7em;
    }

    .PortalNewsItemContainer, .PortalBanner, #WelcomeText {
        font-size: 1.2em;
    }

    .PortalBarCaption {
        width: calc(100% - 4em);
    }

    .PortalBarEcard .PortalBarCaption {
        line-height: 3em; /*vertically centered*/
        margin-top: 0;
    }

    .PortalBarSnippet {
        font-size: 0.7em;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }



    .PortalBarStory .PortalBarIcon, .PortalBanner .PortalBarIcon {
        line-height: 3em;
        height: 3em;
        width: 3em;
        font-size: 1em;
        text-align: center;
    }

    .PortalBarFlip {
        height: 3em;
    }

    .PortalMessageTable {
        display: inline-block;
    }
}
/*#endregion Desktop*/

/*#region Mobile*/
@media screen and (max-width: 480px) {
    .PortalVideoNewsCarousel {
        display: none;
    }

    .PortalVideoNewsCarouselItem video {
        display: none;
    }

    .PortalDesktopPreview {
        display: none;
    }

    .PortalForm {
        width: 100%;
        border-top: 1px solid rgba(100, 100, 100, 0.2);
    }

    .PortalFormLogin {
        width: 100%;
    }

    .PortalForm:first-child {
        border-top: none; 
    }

    .PortalFormCell {
        width: 90%;
    }

    .PortalFormCellLeft {
        font-size: 0.8em;
        opacity: 1;
        vertical-align: bottom;
    }

    .PortalTextBoxContainer,
    .PortalTextBox,
    textarea,
    .PortalTextBoxPassword {
        width: 100%;
    }

    input[type="button"],
    input[type="submit"],
    button,
    .inputfile + label {
        width: calc(100% - 2em);
    }

    .DocumentHelpText {
        max-width: 100%;
    }

    .PortalPinnedDocumentColumn {
        margin-bottom: 1em;
    }

    .PortalPinnedDocumentColumn, .PortalDocumentColumn {
        width: 100%;
    }

    .PortalBarSnippet {
        display: none;
    }

    .PortalBarCaption {
        line-height: 2em; /*vertically centered*/
        margin-top: 0;
    }

    .PortalBanner {
        width: calc(100% - 1em);
    }

    .PortalMessagesTable, .PortalMessageContainer {
        max-width: 100%;
    }
}
/*#endregion Mobile*/


/*---------------------------------CSS Spinner----------------------------*/

/*LR> Ajax Spinner ensure that the Div has position:relative*/
.mustBeRelative {
    position: relative !important;
}

@keyframes spinner {
    to {
        transform: rotate(360deg);
    }
}

@-webkit-keyframes spinner {
    to {
        -webkit-transform: rotate(360deg);
    }
}

.spinner {
    min-width: 48px;
    min-height: 48px;
}

    .spinner:hover {
        cursor: wait;
    }

    .spinner:before {
        content: 'Loading…';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 32px;
        height: 32px;
        margin-top: -30px;
        margin-left: -20px;
    }

    .spinner:not(:required):before {
        content: '';
        border-radius: 50%;
        border-top: 4px solid #555;
        border-right: 4px solid #bbb;
        border-bottom: 4px solid #bbb;
        border-left: 4px solid #bbb;
        animation: spinner .6s linear infinite;
        -webkit-animation: spinner .6s linear infinite;
        opacity: 1;
        z-index: 5;
    }

.spinnerOverlay {
    background: #fff;
    height: 100%;
    width: 100%;
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0.6;
}

/*---------------------------------END CSS Spinner----------------------------*/
