﻿
/*#region GRID CONTROL */
.ui-jqgrid {
    /*width: 98%;*/    
}

/*----- Headers -----*/
/* Grid header */
.ui-jqgrid-labels * { 
    background-color: #D9D9D9;
    color: #000000;
    font-weight: bold;
    font-family: "Trebuchet MS", "Lucida Sans Unicode", "Lucida Grande", "Lucida Sans", Arial, sans-serif !important;
    padding-top: 8px;
    padding-bottom: 8px;
    font-size:1rem;
    height:auto !important;
}
/* Column headers */
th.ui-state-default { 
    background: #D9D9D9 !important;
    border-right: solid 1px #000000 !important;
    border-top: none !important;
    border-bottom: solid 1px #000000 !important;
}
/* Hovering over column headers (except left-most header) */
/*th[role="columnheader"]:not(#grid_subgrid):hover *, th.ui-state-hover:not(#grid_subgrid) {
    background-color: #ddd !important;
    text-shadow: none;
    border-color: #000000;
}*/
/* Hides the weird default sort icons */
.ui-grid-ico-sort {
    visibility: hidden; 
}

/*----- Body -----*/
div.ui-jqgrid {
    border-color: #000000;
    border-radius: 0px;
}
/* Blank space when grid is narrower than page */
.ui-jqgrid-hdiv, .ui-jqgrid-bdiv {
    background-color: #d9d9d9 !important;
    border-bottom: none !important;
}
/* Overriding thead default jQuery style, so the first column of the grid looks the same as the others */
.ui-state-default {
    background: white !important;
    color: #000 !important;
}

/*----- Rows -----*/
tr[role="row"] {
    background-color: white;
    color: #000000;
    border-top: solid 1px #000000 !important;
    border-bottom: solid 1px #000000 !important;
    font-size: 1rem;
}
td[role="gridcell"] {
    border-right: solid 1px #000000 !important;
    /* This line ensures that the text wraps in mobile view */
    white-space: normal !important;   
}
/* Hovering over rows (no response) */
tr[role="row"]:hover, tr.ui-state-hover { 
    background-color: white !important;
    color: #000000 !important;
    border: solid 1px #000000 !important;
}
/* Selected rows */
tr[role="row"].ui-state-highlight * { 
    background-color: #539bc9;
    color: white;
    font-size:1rem;
}
/* Override the plus icon (replace with RailView icon) for expanding subgrid */
span.ui-icon.ui-icon-plus { 
    background-image: url(themes/images/icons-png/plus-black.png);
    background-size: 10px 10px;
    background-position: 5px 3px;
}
/* Override the minus icon (replace with RailView icon) for minimising subgrid */
span.ui-icon.ui-icon-minus {
    background-image: url(themes/images/icons-png/minus-black.png);
    background-size: 10px 10px;
    background-position: 5px 3px;
}

/*----- Footer -----*/
.ui-jqgrid-pager {
    background-color: #d9d9d9 !important;
    border-top: solid 1px #000000 !important;
}
/* All elements within footer */
#pager *:not(input):not(select):not(option):not(.ui-pg-button):not(span) { 
    background-color: #D9D9D9;
    color: #000000;
    font-weight: bold !important;
    font-family: "Trebuchet MS", "Lucida Sans Unicode", "Lucida Grande", "Lucida Sans", Arial, sans-serif !important;
}
/* This is the same element as #pager below - but this class is added dynamically by jQuery with auto-padding - this will override the auto-padding */
table.ui-pg-table {
    padding-bottom: 0;
}
#pager {
    padding-top: 3px !important;
}
/* Pager buttons */
td.ui-pg-button.ui-corner-all { 
    background-color: #3e3e3e;
}
    td.ui-pg-button.ui-corner-all:hover {
        background-color: #000000;
        border-color: #000000;
    }
/* Replace pager button icons with RailView icons */
span.ui-icon-seek-first {
    background-image: url(themes/images/icons-png/caratdouble-l-white.png) !important;
}
span.ui-icon-seek-prev {
    background-image: url(themes/images/icons-png/carat-l-white.png) !important;
}
span.ui-icon-seek-next {
    background-image: url(themes/images/icons-png/carat-r-white.png) !important;
}
span.ui-icon-seek-end {
    background-image: url(themes/images/icons-png/caratdouble-r-white.png) !important;
}
td.ui-pg-button > span.ui-icon {
    background-size: 10px 10px;
    background-position: center;
}

/*--------- Sub-grid elements ---------------------*/
.tablediv, .subgrid-cell {
    background-color: #d9d9d9;
}
.ui-subgrid > td {
    border-bottom: solid 1px #000000;
}
/* Hides the weird default icon on left-most column */
span.ui-icon-carat-1-sw {
    visibility: hidden;
}
.ui-jqgrid .ui-subgrid td.subgrid-data {
    border-top: solid 0.5px #000000 !important;
}
td.subgrid-data > div > div.ui-jqgrid {
    border-top: none !important;
    border-bottom: none !important;
}
/*#endregion GRID CONTROL */

/*#region DATE PICKER OVERRIDE */

/* This block is to override the default datebox formatting, where the icons/labels on the prev/next/close buttons overlap 
   Also, the close button hangs over the top corner of the datebox by default - this brings it to back within the datebox */
@media screen and (min-width: 850px) {
    .ui-datebox-container .ui-btn-icon-notext:after { /* Icons */
        left: 0%;
        margin-left: 5px;
    }
    .ui-datebox-container .ui-btn-icon-notext { /* Labels */
        line-height: 24.5px;
        padding-left: 34px;
    }
    .ui-datebox-container.ui-popup .ui-btn-left { /* Close button */
        left: 2px;
        top: 2px;
    }    
}

@-moz-document url-prefix() { /*Display calendar properly in Mozilla Firefox when Zooming in/out */
    .ui-datebox-container {
        width: 313px !important;
    }
}

/*#endregion DATE PICKER OVERRIDE */

/*#region General Button */
.select {
    padding-top: 3px !important;
    padding-bottom: 3px !important;
}

#menu_navpanel a {
    padding-top: 8px;
    padding-bottom: 8px;
}

div.ui-select div span {
    line-height: 26px;
    text-align:left;
}

.ui-btn-icon-right {
    padding-right: 38px;
}

.ui-btn-icon-left {
    padding-left: 38px;
}

#railview_greeting  {
    text-align:center;
    padding-top:10px;
}

/*#endregion General Button */

/*#region standard text sizes */
/*throughout MI - do not change! */
.title_textsize{
    font-size:13pt !important;
}

.header_textsize{
    font-size:15px !important;
}

.subheader_textsize, .ui-btn { /* button text is all sub-header size */
    font-size:14px !important;
}

.content_textsize {
    font-size: 13px !important;
}
/*#endregion standard text sizes */

/*#region TABS */
ul.tabs {margin-bottom: 0.5em;
         padding-left:0;
}

ul.tabs {display: flex;}
ul.tabs > li {
	position: relative;
  flex: 1;
	list-style-type: none;
  text-align: center;
	text-transform: uppercase;
    text-shadow:none;
	padding: 0;
}

ul.tabs > li + li {border-left: 1px solid #FFF;}

ul.tabs a, ul.tabs a:link, ul.tabs a:visited {
	display: block;
	text-decoration: none;
	color: #332F32;
	background: #EEE;
	padding: 0.8em 1em;
}

ul.tabs a:hover, ul.tabs a:focus {
	color: #FFF;
	background: #539BC9;
}

ul.tabs a:focus {outline: 1px dotted #000;}

/* Active tab*/

ul.tabs a.active, ul.tabs a.active:link, ul.tabs a.active:visited {
	color: #FFF;
	background: #539BC9;
}
ul.tabs a.active:hover, ul.tabs a.active:focus {
	color: #FFF;
	background: #539BC9;
}

/* Disabled tab */

ul.tabs strong.off {
	display: block;
	font-family: droid_sansregular, "Helvetica Neue", Helvetica, Arial, sans-serif;
	font-weight: normal;
	text-decoration: none;
	color: #FFF;
	background: #0C5460;
	padding: 0.5em 1em;
	opacity: .25;
}

/* Content block */

.k-tabbed-data > .content {
	position: relative;
	padding: 1rem 0;
	border-top: 1px solid #332F32;
}

.k-tabbed-data h3 {
	font-family: sinkin_sans600_semibold, Arial, "Helvetica Neue", Helvetica, "Droid Sans", sans-serif;
	text-transform: none;
}

/*#endregion TABS */

/*#region Roster + RequestLeave Shared*/
.description {
    padding-top: 10px;
    padding-right: 10px;
    float: left;
    margin-top: 10px;
    margin-left: 0;
    text-align: left;
}
.work_details_button {
    margin: 0 !important;
    background-color: #ededed !important;
    border-color: #dddddd !important;
    color: #333333 !important;
    text-shadow: 0 1px 0 #f3f3f3 !important;
    display: block;
    height: 35px;
    padding-top: 0px;
}

.workTypeLabel {
    font-weight: bold;
    
}

.work_col {
    position: absolute;
    right: 0;
    top:0;
    vertical-align: middle;
    text-align: center;
    padding-top: 8px;
    padding-bottom: 8px;
}

/*#endregion Roster + RequestLeave Shared*/

/*#region Cordova Camera Buttons*/

.cordovaQR {
   background-color: rgba(255, 0, 0, 0) !important;
  
}

.cordovaQRFrame {
    background-image: url("images/qrFrame.png");
    background-repeat: no-repeat;
}
#cordovaQRButtons {
    width: 100%;
    height: 50px;
    position: absolute;
    bottom: 10px;
    border: none;
    display: flex;
    justify-content: space-around;
}
.QRFlashOn {
    height: 50px;
    width: 50px;
    background-image: url(images/flashOn.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center center;
}
.QRFlashOff {
    height: 50px;
    width: 50px;
    background-image: url(images/flashOff.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center center;
}
#QRSwitch {
    height: 50px;
    width: 50px;
    background-image: url(images/switchCamera.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center center;
}

@media screen and (orientation: portrait) {
    .cordovaQRFrame {
        background-position: center center;
        background-size: 75% auto;
    }    
}

@media screen and (orientation: landscape) {
    .cordovaQRFrame {
        background-position: bottom center;
        background-size: auto 75%;
    }
}

/*#endregion Cordova Camera Buttons*/

/*#region Documents List Edit / Upload depotCrewGrid*/

#depotCrewGridBeta td, #depotCrewGridBeta th {
        border: 1px solid #d5d2d2 !important;
        padding: 8px;
 }

#depotCrewGridBeta tr:nth-child(odd) {
        background-color: #EEE;
}

#depotCrewGridBeta tr:hover {
        background-color: #ddd;
}

#depotCrewGridBeta th {
        padding-top: 12px;
        padding-bottom: 12px;
        background-color: #ddd;
        text-align:center!important;
}

.temp, .tableheader {
    display: flex;
    flex-direction: row
}

.LocationName {
    width: 12.5%;
    display: flex;
    flex-direction: column;
}

@media screen and (max-width: 1600px) {
    .LocationCheckBoxRow {
        width: 115px !important;
        display: flex;
        flex-direction: column;
    }
}
 .LocationCheckBoxRow {
     width: 128px;
     display: flex;
     flex-direction: column;
}

.sticky {
      position: fixed !important;
      z-index: 90;
}

    /*#endregion Documents List Edit / Upload depotCrewGrid*/

    /*#region Station Simplifier Shared Classes*/
    .remarksTextStyle {
        margin-left: 0px !important;
        width: 60px;
        word-wrap: break-word;
        white-space: normal;
    }

    .one_line-height {
        line-height: 1;
    }

    .two_line-height {
        line-height: 2;
    }

    .label_remarks {
        text-shadow: 0 0 0;
        width: 80px;
        margin: auto !important;
    }

    .font_color_black {
        color: #333333 !important;
        text-shadow: none !important;
        font-weight: 700;
    }

        .font_color_black div {
            color: #333333 !important;
            text-shadow: none !important;
            font-weight: 700;
        }

    .font_color_white {
        color: white !important;
        text-shadow: none !important;
        font-weight: 600;
    }

        .font_color_white div {
            color: white !important;
            text-shadow: none !important;
            font-weight: 600;
        }

    .indeterminate.ui-btn:after {
        border-radius: 3px;
        background-image: url('themes/images/icons-png/minus-white.png') !important;
    }

    /*#endregion Station Simplifier Shared Classes*/

    /*********** Date filter buttons **************/

    .ui-icon-loading {
        background: none !important;
    }

    .ui-loader {
        display: none !important;
    }

    .mobile_padding {
        padding: 5px !important;
    }

    .center_text {
        text-align: center !important;
    }

    .right_text {
        text-align: right !important;
    }

    .full_width_table {
        width: 100%;
    }

    .quota_leave_counts {
        white-space: -moz-pre-wrap !important; /* Mozilla, since 1999 */
        white-space: -pre-wrap; /* Opera 4-6 */
        white-space: -o-pre-wrap; /* Opera 7 */
        white-space: pre-wrap; /* css-3 */
        word-wrap: break-word; /* Internet Explorer 5.5+ */
        white-space: -webkit-pre-wrap; /* Newer versions of Chrome/Safari*/
        word-break: break-all;
        white-space: normal;
    }

    /* This allows an icon to be ui-icon-bars-v for vertical sandwich icon */
    .ui-icon-bars-v:after {
        background-image: url(themes/images/icons-png/bars-v-white.png);
    }

    /* This allows an icon to be ui-icon-filter for filter icon */
    .ui-icon-filter:after {
        background-image: url(themes/images/icons-png/filter-white.png);
    }

    /* This allows an icon to be ui-icon-filter for filter icon */
    .ui-icon-signon:after {
        background-image: url(themes/images/icons-png/filter-signon.png);
    }

    #menu_placement {
        float: left;
    }

    .center-wrapper {
        text-align: center;
    }

        .center-wrapper * {
            margin: 0 auto;
        }

    .hide_element {
        display: none;
    }

    #version_bar {
        padding: 0 !important;
        margin: 0 !important;
    }

        #version_bar .ui-btn {
            margin-left: 1vw !important;
            margin-top: 0.5vh !important;
            margin-bottom: 0.5vh !important;
            font-size: small;
        }

    .highlight_blue { /*TODO move out of shared css or delete*/
        background: #00558E !important;
        text-shadow: none !important;
    }

    .darkGreyHighlight { /*TODO move out of shared css or delete*/
        background-color: #D9D9D9;
        color: black;
    }

    .lightGreyHighlight { /*TODO move out of shared css or delete*/
        background-color: #EDEDED !important;
        color: black;
    }

    .blueHighlight { /*TODO move out of shared css or delete*/
        background-color: #4a6491;
        color: white;
    }

    .darkBlueHighlight { /*TODO move out of shared css or delete*/
        background-color: #30395c;
        color: white;
    }

    .alt_row_even { /*2nd, 4th, 6th etc. items in list*/
        background-color: #FFFFFF;
        color: black;
    }

    .alt_row_odd { /*1st, 3rd, 5th etc. items in list*/
        background-color: #f2f2f2;
    }

    /*full calendar selected day -- override the fullcalendar.min.css*/
    .fc-highlight, .fc-highlight.fc-today {
        background: #F4B840 !important;
        opacity: 1 !important;
    }

    .online {
        display: none;
    }

    .offline {
    }

    /*Add some spacing onto the collapsible heading text */
    .ui-collapsible-heading span {
        margin-left: 0.5rem;
    }

    /*Add some spacing onto the collapsible heading text */
    .ui-collapsible-heading a.ui-btn.ui-btn {
        padding-left: 2.5rem;
        border-left-color: #ddd;
        border-right-color: #ddd;
        border-left-width: 1px;
        border-right-width: 1px;
    }

    .ui-collapsible-content {
        border-left-color: #ddd !important;
        border-right-color: #ddd !important;
        border-left-width: 1px !important;
        border-right-width: 1px !important;
    }

    #calendar_header .ui-controlgroup-controls {
        background-color: #30395c;
    }

    .darkGreyButtons, #hourlyDropdown-button, #dailyDropdown-button, #weeklyDropdown-button, #monthlyDropdown-button, #yearlyDropdown-button {
        background-color: #3E3E3E !important;
        text-shadow: none !important;
        color: white !important;
        font-weight: normal !important;
        border-color: #3E3E3E !important;
    }

    #dailyDropdown-button, #hourlyDropdown-button, #weeklyDropdown-button, #monthlyDropdown-button, #yearlyDropdown-button, .leftBorderCalendar {
        border-width: 1px;
        border-left-color: #dddddd !important;
    }

    .tableBorders {
        border: 1px solid black;
        border-collapse: collapse;
        padding-left: 15px;
        padding-right: 15px;
        padding-top: 0.5em;
        padding-bottom: 0.5em;
        text-align: center;
        text-shadow: none !important;
        color: #000000;
    }

    .tableNoBorders {
        border: none;
        padding-top: 0.5em !important;
        padding-bottom: 0.5em !important;
        text-shadow: none !important;
        color: #000000;
    }

    .tableNoBordersSides {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    .ui-controlgroup-controls .ui-btn-icon-notext {
        max-height: 100%;
        height: 1.1em;
    }

    .submenu_buttons.ui-mini .ui-btn-icon-notext {
        font-size: inherit !important;
    }

    .no_text_shadow {
        text-shadow: none !important;
    }

    #depot_crew_header, #unitid_orientation_header, #nodataofflinemessage {
        padding: 0.4em;
        margin-bottom: 0.4em;
    }

    .ui-input-text input {
        line-height: 1em !important;
        min-height: 1em !important;
    }

    .data_dialog_buttons {
        text-align: center;
        margin-top: 0.5em;
    }

    /*Make dialog padding consistent*/
    .dialog_padding {
        padding: 1rem !important;
        text-align: center;
    }

    #logoutMessage {
        margin-bottom: 0.7em;
    }
    /**/

    .capitalizeText {
        text-transform: capitalize;
    }

    .page_sides_padding {
        padding: 0 1em;
    }

    .topMargin_Dailogbox {
        margin-top: 60px;
    }

    .ui-datepicker, .ui-datepicker-next {
        right: 16px !important;
    }

    #back_button span {
        vertical-align: middle;
    }

    .centered {
        margin: 0 auto;
    }

    #depotCrewGridBeta {
        border-collapse: collapse;
        margin-top: 10px
    }

    #fileUploadButton {
        margin: 0px 0px 0px 0px !important;
        margin-top: 5px !important
    }

    #filename {
        padding: 13px;
        display: inline;
        float: left
    }

    .workDateLabel, .workTimesLabel, .workTypeLabel {
        text-shadow: none !important;
        color: #000000;
    }

    .workDateLabel, .viewWorkDetailsLabel {
        font-weight: bold;
        padding-left: 15px;
    }

    #other_crew_select_button, #other_depot_select_button, #CrewDropdown_button {
        text-align: left;
        font-weight: bold;
    }

    .disabled-element {
        pointer-events: none !important;
        opacity: 0.65 !important;
    }

.passwordButton {
    position: absolute !important;
    right: 1px;
    padding: 12px;
    border: 1px solid #ced4da;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
}

    .passwordButton:focus, .passwordButton:active, .passwordButton:hover {
        border: 1px solid #06A;
    }


    .passwordButton:hover {
        background: none !important;
    }

/* Removed the default ICON added for type=password in bootstrap */
input[type=password]::-ms-reveal,
input[type=password]::-ms-clear {
    display: none;
}