﻿/*common.css*/
:root {
    --staffrota-primary: #33CC33; /*Green*/
    --staffrota-secondary: #949494; /*Grey  343a40;*/
}

.nav-link {
    color:white;
    font-weight:100;
}

.navbar-nav .dropdown-menu.show a {
    color: white;
    font-size:16px;
}

.nav-link:hover,
.dropdown-menu.show .dropdown-item:hover {
    color: var(--staffrota-secondary);
}

.nav-item .dropdown-menu {
    margin-top: -12px;
}

.logoimage {
    max-width: 200px;
    max-height: 58px;
    object-fit: contain;
}

.logoimage, #header-lang-img, .hamburgericon, .quickbookheadericon, .fullscreenicon, .notificationsicon, .header-profile-user, .usernamedropdown, .lightdarktoggleicon, .dropdown-icon-item, .headernotificationicon {
    font-size: 22px;
    color: var(--staffrota-primary);
    transition: all .2s ease-in-out;
}

.hamburgericon {
    color: var(--staffrota-primary);
}

.logoimage:hover {
    transform: scale(1.15);
}

.fullscreenicon:hover, .notificationsicon:hover, .lightdarktoggleicon:hover, .dropdown-icon-item:hover, usernamedropdown:hover, .headernotificationicon:hover {
    color: var(--staffrota-secondary);
    transform: scale(1.25);
}

.staffrota-spinner {
    width: 80px;
    height: 80px;
    -webkit-animation: spin 2s linear infinite;
    -moz-animation: spin 2s linear infinite;
    animation: spin 2s linear infinite;
}
.rounded-pill {
    min-width: 18px;
}


/* staffrota-spinner replaces: <i class="bx bx-loader bx-spin align-middle" style="font-size:50pt;"></i>*/
    .impersonation-warning {
    position: absolute;
    top: 0;
    left: 50%;
    padding: 5px 20px 0 20px;
    color: white;
    z-index: 99999999;
    border-radius: 0 0 10px 10px;
}

.siteResourceTypeIconWrapper {
    min-width: 60px;
    max-width: 60px;
    min-height: 60px;
    max-height: 60px;
    margin: 0 auto;
    transition: all .1s ease-in-out;
}
.siteResourceTypeIconWrapper:hover {
    transform:scale(1.1);
}

.siteResourceTypeIcon {
    margin: 10px;
    min-width: 40px;
    max-width: 40px;
    min-height: 40px;
    max-height: 40px;
    filter: invert(1) brightness(2);
}

.siteResourceTypeIconSmall {
    min-width: 20px;
    max-width: 20px;
    min-height: 20px;
    max-height: 20px;
}

/*Breadcrumb*/
.breadcrumb a:hover {
    color: var(--bs-primary);
}

/*datatables*/
.datatable tbody tr:nth-child(odd) td {
    background-color: rgba(0,0,0,.0375);
}

.datatable tbody tr {
    cursor: pointer;
}

.datatable tbody tr:hover td {
    /*background-color: lightslategray !important;*/
    background-color: var(--bs-primary);
    border: 2px solid var(--bs-primary);
    color: white;
}

/* List screens which follow the quieter Sites/Roles table treatment. */
.datatable.standard-list-table tbody tr:nth-child(odd) td {
    background-color: var(--bs-table-bg);
}

.datatable.standard-list-table tbody tr:hover td {
    background-color: var(--bs-table-bg);
    border-color: var(--bs-table-border-color);
    border-style: solid;
    border-width: 0 0 var(--bs-border-width);
    color: var(--bs-table-hover-color);
}

.copyicon {
    cursor: pointer;
    transition: all .2s ease-in-out;
}

.copyicon:hover {
    color: var(--bs-primary);
    transform: scale(1.25);
}

/*User Profile Pic*/
.user-profile-image, .user-profile-image-right {
    transition: all .2s ease-in-out;
    height: 36px;
    width: 36px;
    background-color: var(--bs-tertiary-bg);
    padding: 1px;
    border:none;
}

/*.user-profile-image:hover {
    position:absolute;
    z-index: 99999999999;
    transform: scale(4);
}

.user-profile-image-right:hover {
    position: absolute;
    z-index: 99999999999;
    transform-origin: center left;
    transform: scale(4);
}*/

.datepicker-days .today.day,
.datepicker-days .active.day {
    border-radius: 50%;
}

.datepicker table tr td.active {
    background-color: var(--staffrota-primary) !important;
    background-image: none !important;
}

.datepicker table tr td.today.day {
    background-color: var(--staffrota-secondary) !important;
    background-image: none !important;
    color: white !important;
}

.underlinelink {
    text-decoration: underline !important;
}


/*Favourite Button*/
.favButton {
    cursor: pointer;
    width: 24px !important;
    min-width: 24px !important;
    max-width: 24px !important;
    height: 24px !important;
    min-height: 24px !important;
    max-height: 24px !important;
    font-size: 12pt;
    padding: 5px 3px 3px 3px !important;
    transition: all .2s ease-in-out;
    /*border: 1px solid red;*/
    border-radius: 50%;
    background-color: transparent;
    color: red;
    text-align: center;
    border: 0;
}

.isFav {
    color: red;
}

/*.favButton.isFav {
    border-color:red;
}*/

.favButton:hover {
    transform: scale(1.25);
}

.favButton:disabled {
    cursor: wait;
    opacity: .65;
}

/* Shared green pill used by My Favourites and compact entity collections. */
.favourite-link,
.staffrota-entity-badge {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    margin: .15rem .35rem .15rem 0;
    border: 1px solid rgba(var(--bs-success-rgb), .25);
    border-radius: 999px;
    padding: .35rem .7rem;
    background: rgba(var(--bs-success-rgb), .1);
    color: var(--bs-success-text-emphasis);
    font-weight: 600;
    line-height: 1.2;
}

.favourite-link:hover,
.favourite-link:focus-visible,
.staffrota-entity-badge.entity-popup-trigger:hover,
.staffrota-entity-badge.entity-popup-trigger:focus-visible {
    background: var(--bs-success);
    color: #fff;
}

#scheduler .isFav {
    font-size: 10pt;
    color: red;
    padding-top: 3px;
}

#scheduler .isNotFav {
    display: none;
}


#resultsEntitySearch .isFav {
    font-size: 10pt;
    color: red;
    margin-right: 3px;
}

#resultsEntitySearch .isNotFav {
    display: none;
}

#inputEntitySearch {
    width: 275px;
    /*    position: absolute;
    top: 40px;
    font-size: 16px;
    border-radius: 5px;
    background-color: white;
    padding: 10px;
    z-index: 9999999;
    transition: all 0.2s ease-in-out;
    filter: drop-shadow(3px 5px 10px #000000);
    max-width: 100%;
    max-height: 200px;
    overflow-y: auto;*/
}

.autoentitysearch-listitem {
    color: var(--bs-body-color);
    white-space: nowrap;
    overflow-x: hidden;
    max-width: 100%;
    cursor: pointer;
    padding: 5px;
}

.autoentitysearch-listitem:hover {
    background-color: var(--bs-primary);
    color: white;
    border-radius: 10px;
}

.autoentitysearch-listitem:hover .autoentitysearch-highlight {
    background-color: black;
}

.autoentitysearch-listitem-type {
    white-space: nowrap;
    overflow-x: hidden;
}

.autoentitysearch-help-icon {
    color: var(--bs-primary);
    margin-right: 3px;
    vertical-align: middle;
}

.autoentitysearch-listitem-description {
    display: block;
    margin: 2px 0 0 20px;
    overflow: hidden;
    color: var(--bs-secondary-color);
    font-size: .75rem;
    text-overflow: ellipsis;
}

.autoentitysearch-listitem:hover .autoentitysearch-help-icon,
.autoentitysearch-listitem:hover .autoentitysearch-listitem-description {
    color: white;
}

.autoentitysearch-highlight {
    font-weight: bold;
    background-color: yellow;
    background-color: yellow;
}

#resultsEntitySearch {
    max-height: 200px;
    overflow-y: auto;
    background-color: var(--bs-body-bg);
    padding: 5px;
    position: absolute;
    margin: -16px 0 0 35px;
    border-radius: 0 0 10px 10px;
    border-left: 1px solid silver;
    border-bottom: 1px solid silver;
    border-right: 1px solid silver;
}

.userFavLocation {
    font-size:x-small;
}

/*UserPresence*/

.userPresence {
    /*margin-left: 5px;*/
    margin: 2px 0 0 5px;
    /*background-color: silver;*/
    border-radius: 50%;
    width: 14px;
    height: 14px;
    min-width: 14px;
    min-height: 14px;
    display: block;
}

/*Present Now*/
/*.userPresence[data-PresenceType="1"] 
{
    background-color: lawngreen !important;
}*/

/*Present Later*/
/*.userPresence[data-PresenceType="2"] {
    background-color: orange !important;
}*/

.userPresenceLabel {
    margin: 1px 0 0 3px;
    font-size:smaller;
}

/*ResourceInUse*/

.resourceInUse {
    margin-left: 5px;
    /*background-color: silver;*/
    border-radius: 50%;
    width: 14px;
    height: 14px;
    min-width: 14px;
    min-height: 14px;
    display: block;
}

/*In Use Now*/
/*.resourceInUse[data-InUseType="1"] {
    background-color: red !important;
}*/

/*Free for rest of Day*/
/*.resourceInUse[data-InUseType="2"] {
    background-color: lawngreen !important;
}*/

/*Free until HHMM*/
/*.resourceInUse[data-InUseType="3"] {
    background-color: orange !important;
}*/

/*Unavailable*/
/*.resourceInUse[data-InUseType="4"] {
    background-color: black !important;
}*/

.resourceInUseLabel {
    margin: -1px 0 0 3px;
    font-size: smaller;
}

.row-hover {
    cursor: pointer;
}

.row-hover:hover, .row-hover:hover td {
    border: 2px solid var(--bs-primary);
}

.row-hover:hover td {
    border:none;
}

.moreaction-button {
    border-radius:50% !important;
}

.idletimeout-container {
    margin-top: -9px;
    width: 190px;
}

.progress-container {
    width: 100%;
    height: 10px;
    background-color: #e0e0e0; /* Light gray background */
    border-radius: 5px; /* Rounded edges */
    margin-top: 5px; /* Spacing between countdown and progress bar */
    overflow: hidden; /* Ensure the progress bar doesn't exceed its bounds */
}

.timeout-progress-bar {
    height: 100%;
    width: 0%; /* Start with 0 width */
    background-color: var(--bs-primary);
    transition: width 0.1s linear; /* Smooth animation */
    border-radius: 5px 0 0 5px; /* Rounded edges for the leading end */
}

.badge 
{
    line-height:unset !important;
}



/*Loader - clock with spinning minute/hour hands*/

.staffrota-clock-loader {
    width: 75px;
    margin: 0 auto;
    color: #29cf38;
}

.staffrotaloader-nomargin .staffrota-clock-loader {
    margin: 0;
}

.staffrota-clock-loader svg {
    width: 72px;
    height: 72px;
    overflow: visible;
}

.staffrota-clock-loader .clock-face {
    fill: none;
    stroke: #333333;
    stroke-width: 13;
}

.staffrota-clock-loader .clock-hand {
    stroke: #00d51a;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.staffrota-clock-loader .clock-hand.hour {
    stroke-width: 8;
}

.staffrota-clock-loader .clock-hand.minute {
    stroke-width: 8;
}

.staffrota-clock-loader .clock-centre {
    fill: #333333;
}

/*
 * Keep the rotation centred on the middle of the clock.
 */
.staffrota-clock-loader .clock-hour-hand,
.staffrota-clock-loader .clock-minute-hand {
    transform-origin: 50px 50px;
    transform-box: view-box;
}


/*
 * Loader animation.
 *
 * Different speeds retain the impression of real clock hands rather
 * than simply spinning the entire logo.
 */
.staffrota-clock-loader .clock-minute-hand {
    animation: staffrota-clock-minute 1.4s linear infinite;
}

.staffrota-clock-loader .clock-hour-hand {
    animation: staffrota-clock-hour 8.4s linear infinite;
}

@keyframes staffrota-clock-minute {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes staffrota-clock-hour {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .staffrota-clock-loader .clock-hour-hand,
    .staffrota-clock-loader .clock-minute-hand {
        animation: none;
    }
}




/*StaffPickerPopup*/
#staffPickerGrowDialog {
    transform: scale(.80);
    opacity: 0;
    transform-origin: center center;
    transition: transform .22s ease, opacity .18s ease;
}

#staffPickerGrowDialog.staff-picker-open {
    transform: scale(1);
    opacity: 1;
}

#staffList {
    position: relative;
    height: 200px;
    overflow-y: auto;
}

.staff-card {
    padding: 5px 10px;
    margin-bottom: 8px;
    border: 1px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    background-color: #f9f9f9;
    color: #212529;
    font: inherit;
    appearance: none;
}

.staff-profile {
    transition: all .2s ease-in-out;
    height: 50px;
    width: 50px;
    background-color: var(--bs-tertiary-bg);
    padding: 1px;
    border: none;
}

.staff-card:hover,
.staff-card:focus-visible {
    background-color: #eef2f7;
}

.staff-name {
    font-size: 16px;
    font-weight: 400;
}

    .staff-name strong {
        color: var(--staffrota-primary);
        font-weight: bold;
    }

.staffrotaRow:hover {
    cursor: pointer;
}

.entity-popup-trigger {
    cursor: pointer;
}

.entity-popup-trigger:focus-visible {
    outline: 2px solid var(--staffrota-primary);
    outline-offset: 2px;
}

.entity-member-count {
    min-width: 2rem;
    font-weight: 600;
}
