/* Overriding Self Service styles. 
* 
* Temporary until merged in
*/

.ess-main-content {
    width: calc(100% - 200px);
    margin: 0 auto;
    padding: 0 10px 30px 10px;
    overflow: auto;
    height: 100vh;
}

.ess-container-header {
    display: none;
}

.page-title {
    margin-top:6px;
    margin-bottom: 6px;
    font-size: 3rem;
}
.page-subtitle {
    font-weight: 300;
    /*    font-size: 2.4rem;*/
}

.page-title-post-name,
.page-title-user-name {
    margin-left: 0;
    font-weight: 300;
    /*    font-size: 1.5rem;*/
}

.home-tiles {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: minmax(50px, max-content) 3fr 2fr;
    grid-column-gap: 10px;
    grid-row-gap: 10px;
}

.home-tile {
    overflow-y: visible;
    background-color:var(--input-bg);
}

.home-tile h2 {
    font-size: 2rem;
}

.home-tile h3 {
    font-size: 1.5rem;
    text-transform: uppercase;
    margin-bottom: 2px;
    color: #999;
}

.home-tile h3 ~ hr {
    margin: 0 0 12px 0;
}

.home-tile section {
    margin-bottom: 18px;
}

/* row-start, col-start, row-end, col-end */
.person-tile {
    grid-area: 1 / 1 / 2 / 3;
}
.job-tile {
    grid-area: 2 / 1 / 4 / 2;
}
.leave-tile {
    grid-area: 2 / 2 / 3 / 3;
}
.requests-tile {
    grid-area: 3 / 2 / 4 / 3;
}

/* hide leave tile - expand requests tile to fill the gap */
.hide-leave-tile .leave-tile {
    display: none;
}
.hide-leave-tile .requests-tile {
    grid-area: 2 / 2 / 4 / 3;
}
/* hide requests tile - expand leave tile to fill the gap */
.hide-req-tile .requests-tile {
    display: none;
}
.hide-req-tile .leave-tile {
    grid-area: 2/2/4/3;
}
/* if leave and requests tile hidden - expand job tile to fill gap */
.hide-leave-tile.hide-req-tile .job-tile {
    grid-area: 2 / 1 / 4 / 4
}

.person-tile .page-subtitle {
    margin-top: 0px;
    margin-bottom: 2px;
}

.calendar-view-selector {
    margin-top: 30px;
}

.nav-tabs.calendar-buttonsbar .nav-btn,
.nav-tabs.calendar-buttonsbar li a,
.nav-tabs.ess-tabs li a{
    border-radius: 0;
}

.nav-tabs.calendar-buttonsbar-bottom {
    width: 80%;
    margin: 0 auto;
}

.nav-tabs.calendar-buttonsbar-top {
    width: 300px;
    margin: 0 auto;
}

.nav-tabs.calendar-buttonsbar-top-mob {
    width: 150px;
    margin: 0 auto;
}

.nav-tabs.calendar-buttonsbar li a,
.nav-tabs.ess-tabs li a{
    background-color: transparent;
    border-width: 0 0 1px 0;
    border-color: #ccc;
    color: #aaa;
    text-transform: uppercase;
    font-weight: bold;
    box-shadow: none;
}
.nav-tabs.calendar-buttonsbar li.active a,
.nav-tabs.ess-tabs li.active a,
.nav-tabs.ess-tabs li:visited a,
.nav-tabs.ess-tabs li:active a:hover,
.nav-tabs.ess-tabs li:active a:focus,
.nav-tabs.ess-tabs li:visited a:hover,
.nav-tabs.ess-tabs li.active:hover a,
.nav-tabs.ess-tabs li:hover a{
    background-color: transparent;
    /*    border-width: 0 0 3px 0 !important;
        border-color: #383b41 !important;*/
    border-width: 0 0 3px 0;
    border-color: var(--nav-dropdown-fg);
    color: var(--nav-dropdown-fg);
    cursor: pointer;
}

/* CALENDAR TABLE */

.calendar-table {
    background-color: #fff;
}

#calendar_table td {
    position: relative;
}

#calendar_table .fa-calendar-o {
    position: absolute;
    top: -2px;
    right: 0;
}
#calendar_table.calendar-table-yearly .fa-calendar-o {
    top: -6px;
    right: -6px;
}

#calendar_table_mob td {
    position: relative;
}

#calendar_table_mob .fa-calendar-o {
    position: absolute;
    top: -2px;
    right: 0;
}

.calendar-table .fa-calendar-o:before {
    content: '';
}

.calendar-table .month_row td {
    position: relative;
}

.calendar-table .month_row .fa-calendar-o {
    position: absolute;
    top: 0px;
    right: 0px;
}

.calendar-table .month_row .fa-calendar-o > span{
    position: absolute;
    top: 3px;
    right: 3px;
    color: #aaa;
}

.calendar-table-yearly .month_row .fa-calendar-o > span{
    position: absolute;
    top: 1px;
    right: 1px;
    color: #aaa;
}
.calendar-table .div_with_bg,
.calendar-table .div_without_bg {
    border-radius: 5px;
    margin: 12px 0 0 0;
    padding: 0 6px;
}
.calendar-table .div_without_bg:not(:first-child)
{
    margin-top:0px;
}

.calendar-buttonbar-button {
    position: absolute;
    right: 10px;
    margin-top: 10px;
    text-transform: uppercase;
}

.calendar-datepicker .pager-btn a {
    display: flex;
    align-items: stretch;
    background-color: #4d73a8;
    color: #fff;
    text-transform: uppercase;
    border: none;
    font-size: 1.2rem;
    white-space: nowrap;
}
.calendar-datepicker .pager-btn .fa {
    font-weight: bold;
    position: relative;
}
.calendar-datepicker .pager-btn-label {
    line-height: 18px;
}

.calendar-datepicker .pager-btn-prev .fa {
    left: -8px;
    top:1px;
}
.calendar-datepicker .pager-btn-next .fa {
    right: -8px;
    top:1px;
}

.calendar-datepicker .pager-btn:hover a {
    background-color: #383b41;
}

.calendar-datepicker .display-date {
    color: #999;
    text-transform: uppercase;
    font-size: 2rem;
    font-weight: bold;
}
.calendar-datepicker .display-date > span {
    background-color: transparent;
    border: none;
}
.selected-cal-tab  {
    background-color:#383b41;
    color:white;
    text-align:center;
    font-weight: bold;
    text-transform:uppercase;
    margin-bottom:15px;
    padding:0;
}

/* GENERAL ESS PAGE VIEWS (normal and mobile) )*/
.normal_view, li.normal-cal-tab
{
    display:block;
}
.mobile_view, li.mobile-cal-tab
{
    display:none !important;
}
.calendar-datepicker .pager-btn-mob .fa {
    font-size:18px;
}

/* CALENDAR PAGE - VIEW TYPE BUTTONS */
.calendar-buttonsbar-bottom li a {
    padding-top: 80px;
    position: relative;
}

.nav-tabs.ess-tabs li.active > a{
    color: var(--body-fg) !important;
    border-color: var(--body-fg) !important;
}

.calendar-buttonsbar-bottom li.active > a:hover {
    border-bottom-color: #383b41 !important;
    border-width: 0px 0px 3px 0px !important;
}

.calendar-buttonsbar-bottom li a:before {
    position: absolute;
    top: 0;
    left: calc(50% - 25px);

    content: '';
    width: 50px;
    height: 50px;
    display: block;
    background-image: url('/css/themes/primary/calendar-icons.svg');
    background-position: -200px 0px;

    -webkit-backface-visibility: hidden;
    transform: scale(2) translate3d(0);
}

.calendar-buttonsbar-bottom a.nav-btn-sched:before {
    background-position: 0 50px;
}
.calendar-buttonsbar-bottom li:hover .nav-btn-sched:before,
.calendar-buttonsbar-bottom a.nav-btn-sched:hover:before,
.calendar-buttonsbar-bottom a.nav-btn-sched.highlight:before {
    background-position: 0 0;
}

.calendar-buttonsbar-bottom a.nav-btn-req:before {
    background-position: -100px 50px;
}
.calendar-buttonsbar-bottom li:hover .nav-btn-req:hover:before,
.calendar-buttonsbar-bottom a.nav-btn-req:hover:before,
.calendar-buttonsbar-bottom a.nav-btn-req.highlight:before {
    background-position: -100px 0;
}

.calendar-buttonsbar-bottom a.nav-btn-openperiod:before {
    background-position: -200px 50px;
}
.calendar-buttonsbar-bottom li:hover .nav-btn-openperiod:hover:before,
.calendar-buttonsbar-bottom a.nav-btn-openperiod:hover:before,
.calendar-buttonsbar-bottom a.nav-btn-openperiod.highlight:before {
    background-position: -200px 0;
}

.calendar-buttonsbar-bottom a.nav-btn-clock:before {
    background-position: -50px 50px;
}
.calendar-buttonsbar-bottom li:hover .nav-btn-clock:hover:before,
.calendar-buttonsbar-bottom a.nav-btn-clock:hover:before,
.calendar-buttonsbar-bottom a.nav-btn-clock.highlight:before {
    background-position: -50px 0;
}

.calendar-buttonsbar-bottom a.nav-btn-bal:before {
    background-position: -150px 50px;
}
.calendar-buttonsbar-bottom li:hover .nav-btn-bal:hover:before,
.calendar-buttonsbar-bottom a.nav-btn-bal:hover:before,
.calendar-buttonsbar-bottom a.nav-btn-bal.highlight:before {
    background-position: -150px 0;
}

.calendar-buttonsbar-bottom a.nav-btn-flexi:before {
    background-position: -250px 50px;
}
.calendar-buttonsbar-bottom li:hover .nav-btn-flexi:hover:before,
.calendar-buttonsbar-bottom a.nav-btn-flexi:hover:before,
.calendar-buttonsbar-bottom a.nav-btn-flexi.highlight:before {
    background-position: -250px 0;
}

.calendar-buttonsbar-bottom a.nav-btn-avail:before {
    background-position: -300px 50px;
}
.calendar-buttonsbar-bottom li:hover .nav-btn-avail:hover:before,
.calendar-buttonsbar-bottom a.nav-btn-avail:hover:before,
.calendar-buttonsbar-bottom a.nav-btn-avail.highlight:before {
    background-position: -300px 0;
}

.calendar-buttonsbar-bottom a.nav-btn-payroll:before {
    background-position: -400px 50px;
}

.calendar-buttonsbar-bottom li:hover .nav-btn-payroll:hover:before,
.calendar-buttonsbar-bottom a.nav-btn-payroll:hover:before,
.calendar-buttonsbar-bottom a.nav-btn-payroll.highlight:before {
    background-position: -400px 0;
}

.calendar-buttonsbar-bottom a:hover:before {
    background-position-y: 0px !important;
}
.calendar-buttonsbar-bottom .nav-btn:before {
    content: '';
    width: 50px;
    height: 50px;
    display: block;
    background-image: url('/css/themes/primary/calendar-icons.svg');
    background-position: -200px 50px;
    transform: scale(calc(80 / 50));
}


/* Requests page grid */
.requests-list-table .table {
    background-color: #fff;
}

.requests-list-table .colour-cell {
    border-radius: 6px;
    padding: 0 10px !important;
    text-transform: uppercase;
    font-size: 1.5rem;
    text-align: center;
}

.page-colleague-schedule .date-picker .date-navigate-back,
.page-colleague-schedule .date-picker .date-navigate-fwd,
.page-requests-list .date-picker .date-navigate-back,
.page-requests-list .date-picker .date-navigate-fwd
{
    background-color: #4d73a8;
    border: none;
    color: #fff;
    border-radius: 50%;
    font-size: 2rem;
    line-height: 1rem;
    width: 30px;
    height: 30px;
    position: relative;
    top: 3px;
}

.page-colleague-schedule input.date-picker,
.page-requests-list input.date-picker {
    width:15rem;
}

.req_col_hidden  {
    display:none;
}

.day_reqs_nav  {
    margin:5px 10px 0 10px;
    font-weight:bold;
}

.filter-bar #update-button {
    height: 3rem;
    line-height: 2rem;
    padding: 0 2rem;
    margin-left: 10px;
}

/* tabular like info list - used in the home page */
.info-list {
    list-style: none;
    position: relative;
    padding-left: 0;
}

.info-list-item {
    display: flex;
    justify-content: space-between;
}

.info-list-item-desc {
    font-size: 1.4rem;
    margin-right: 1em;
}

.info-list-item-right {
    text-align: right;
    margin-right: 0;
}

.info-list .info-list-item {
    padding: 0 10px;
}

.info-list-requests .info-list-item {
    line-height: 3rem;
    border-bottom: solid 1px #d9e2ec;
}

.info-list-requests .info-list-item:nth-child(even) {
    background-color: var(--ess-info-list-even-row);
}

.info-list-requests-status.label {
    font-size: 1rem;
    padding: 0 10px;
    line-height: 2rem;
    display: block;
    height: 2rem;
    border-radius: 10px;
    margin-top: 0.5rem;
}

.info-list-item-val {
    font-size: 1.4rem;
    align-self: self-start;
    font-weight: 800;
}

/* requests section */
.info-list-requests .info-list-item-desc {
    flex-grow: 1;
    flex-basis: 10em;
}

.info-list-requests .info-list-item-val {
    flex-grow: 3;
    flex-basis: 65%;
}

.info-list-requests .info-list-requests-status {
    flex-grow: 2;
    flex-basis: 15em;
}

/* suffix maps to RequestStatusTypeEnum.php */
.info-list-requests-status.label-reqstatus-1 {
    background-color: #0066ff;  /*#44be8d;*/
} /* requested */
.info-list-requests-status.label-reqstatus-2 {
    background-color: #88dd55;
    color: #333; /*#ff3b30;*/
} /* accepted */
.info-list-requests-status.label-reqstatus-3 {
    background-color: #ff0000; /*#ff3b30;*/
} /* denied */
.info-list-requests-status.label-reqstatus-4 {
    background-color: #225577; /*#84bdcc;*/
} /* cancellation requested */
.info-list-requests-status.label-reqstatus-5 {
    background-color: #900000; /*#ff3b30;*/
} /* cancellation accepted */
.info-list-requests-status.label-reqstatus-6 {
    background-color: #ff9900;
    color: #333;  /*#ff3b30;*/
} /* cancellation denied */
.info-list-requests-status.label-reqstatus-7 {
    background-color: #00ffff;
    color: #333; /* #ff3b30;*/
} /* partially accepted */
.info-list-requests-status.label-reqstatus-8 {
    background-color: #00ffff;
    color: #333; /* #ff3b30;*/
} /* partially requested */
.info-list-requests-status.label-reqstatus-9 {
    background-color: #f85ea7;
    color: #333; /* #ff3b30;*/
} /* employee declined */
/* NB. There is a status RequestStatusTypeEnum::EmployeeAccepted but this is never shown client-side */



/* settings page */
.my-account-banner {
    position: relative;
    background-color: #4d73a8;
    color: #fff;
    border-radius: 5px;
}

.my-account-banner-avatar {
    position: absolute;
    width: 80px;
    height: 80px;
    left: calc(50% - 40px);
    top: -40px;
    background-color: #ccc;
    border: solid 2px #fff;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.25);
}

.my-account-banner-title {
    margin-top: 40px;
}

.my-account-tabs {
    margin: 0 auto;
    margin-bottom: 6px;
    width: 400px;
}

.my-account-info-section .form-group {
    margin-bottom: 15px;
}

.my-account #prefs .form-group:nth-child(n+3) > label
{
    margin-top:10px;
}


/* navigation toggle button */

/* Advanced Checkbox Hack */
/*body#layout-ss { -webkit-animation: bugfix infinite 1s; }
@-webkit-keyframes bugfix { from {padding:0;} to {padding:0;} }*/

input[type=checkbox].nav-toggle {
    position: absolute;
    top: -9999px;
    left: -9999px;
}

label.nav-toggle-label {
    position: fixed;
    left:0;
    display:none;
    width:2em;
    height:40px;
    /*padding:.35em;*/
    font-size:1.1em;
    color:#fff;
    transition:color .3s ease-in-out;
    cursor: pointer;
    user-select:none;
    margin:0;
    background:rgba(0, 0, 0, .4);
    z-index: 10000;
    top: 0;
    text-align: center;
}

label.nav-toggle-label--right {
    left: unset;
    right: 0;
}

.nav-toggle-icon {
    line-height: 40px;
}

/* Calendar - open shifts mode legend */
.open-shift-colours {
    font-size: 1.2rem;
}
.open-shift-colour {
    border-radius: 5px;
    border: solid 1px #aaa;
}

/* Links page */
.ess_links {
    width:50%;
    margin:30px 0 0 25%;
}
.ess_links a {
    font-size:1.6rem;
}

/*#region ESS Darkmode Button*/

.ess-btn {
    width: fit-content;
    list-style: none;
}

.ess-btn>li>a>span {
    padding: 1em;
    color: #fff;
    text-decoration: none;
}

.ess-btn>li>a:hover {
    transition: .5s;
    text-decoration: none;
}

/*#endregion*/

.calendar-table thead th,
.column-headers {
    background-color: var(--table-header-bg);
    color:var(--table-header-fg) !important;
}

.table-striped > thead > tr > th.highlight, 
.table-striped > tbody > tr > td.highlight,
.table-striped > thead > tr > th.highlight a, 
.table-striped > tbody > tr > td.highlight a {
    background-color:var(--ess-today-bg) !important;
    color:var(--ess-today-fg) !important;
}

.ess-only{
    display:block !important;
}

.non-ess-only{
    display: none !important;
}