﻿
:root {
    --vita-primary: #56adaf; /*--vita-blue*/
    --vita-secondary: #949494; /*Grey  343a40;*/

    --vita-red: #aa3b5e;
    --vita-blue: #56adaf;
    --vita-green: #8d9e46;
    --vita-yellow: #eabb2c;
}


.btn-primary-vita-red {
    color:white;
    background-color: var(--vita-red);
}

.btn-primary-vita-blue {
    color: white;
    background-color: var(--vita-blue);
}

.btn-primary-vita-green {
    color: white;
    background-color: var(--vita-green);
}

.btn-primary-vita-yellow {
    color: white;
    background-color: var(--vita-yellow);
}

.btn-outline-vita-red {
    color: var(--vita-red);
    border-color: var(--vita-red);
    background-color: white;
}

.btn-outline-vita-blue {
    color: var(--vita-blue);
    border-color: var(--vita-blue);
    background-color: white;
}

.btn-outline-vita-green {
    color: var(--vita-green);
    border-color: var(--vita-green);
    background-color: white;
}

.btn-outline-vita-yellow {
    color: var(--vita-yellow);
    border-color: var(--vita-yellow);
    background-color: white;
}

.btn-primary-vita-red:hover {
    opacity: 0.75;
    color: white;
    background-color: var(--vita-red);
}
.btn-primary-vita-blue:hover {
    opacity: 0.75;
    color: white;
    background-color: var(--vita-blue);
}
.btn-primary-vita-green:hover {
    opacity: 0.75;
    color: white;
    background-color: var(--vita-green);
}
.btn-primary-vita-yellow:hover {
    opacity: 0.75;
    color: white;
    background-color: var(--vita-yellow);
}


.btn-outline-vita-red:hover {
    opacity: 0.75;
    color:white;
    background-color: var(--vita-red);
}

.btn-outline-vita-blue:hover {
    opacity: 0.75;
    color: white;
    background-color: var(--vita-blue);
}

.btn-outline-vita-green:hover {
    opacity: 0.75;
    color: white;
    background-color: var(--vita-green);
}

.btn-outline-vita-yellow:hover {
    opacity: 0.75;
    color: white;
    background-color: var(--vita-yellow);
}


.profile-btn {
    border-radius: 14px;
    box-shadow: 3px 3px 10px #949494;
}


.nav-link {
    color: var(--vita-secondary);
    font-weight: 100;
}

.navbar-nav .dropdown-menu.show a {
    color: var(--vita-secondary);
    font-size: 16px;
}

.nav-link:hover,
.dropdown-menu.show .dropdown-item:hover {
    color: var(--vita-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 {
    font-size: 22px;
    color: var(--vita-primary);
    transition: all .2s ease-in-out;
}

.vita-section-band {
    height: 8px;
    background: var(--vita-red);
}

.hamburgericon {
    color: var(--vita-primary);
}

.logoimage:hover {
    transform: scale(1.15);
}

.fullscreenicon:hover, .notificationsicon:hover, .lightdarktoggleicon:hover, .dropdown-icon-item:hover, usernamedropdown:hover {
    color: var(--vita-secondary);
    transform: scale(1.25);
}

.header-profile-user--initials {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    /* if header-profile-user already sets width/height, you can omit these */
    width: 36px;
    height: 36px;
    /* helps vertical centering in nav bars */
    line-height: 1;
    user-select: none;
}

.header-profile-user--initials {
    box-shadow: 0 0 0 1px rgba(255,255,255,0.25) inset;
}

.user-avatar-sm {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    display: inline-block;
    flex-shrink: 0;
}

.user-avatar-sm--initials {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    line-height: 1;
    flex-shrink: 0;
}

.user-avatar-sm,
.user-avatar-sm--initials {
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    border: 1px solid rgba(0,0,0,.08);
}

.user-avatar-sm:hover,
.user-avatar-sm--initials:hover {
    transform: scale(1.08);
    box-shadow: 0 4px 10px rgba(0,0,0,.15);
}

#datatableUsers tbody tr:hover .user-avatar-sm,
#datatableUsers tbody tr:hover .user-avatar-sm--initials {
    transform: scale(1.08);
    box-shadow: 0 4px 10px rgba(0,0,0,.15);
}

.user-avatar-sm,
.user-avatar-sm--initials {
    border: 1px solid rgba(0,0,0,.08);
}

.org-logo-sm {
    max-width: 44px;
    max-height: 28px;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: left center;
    display: inline-block;
}

.vita-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;
}


/* vita-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;
}

.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(--vita-primary) !important;
    background-image: none !important;
}

.datepicker table tr td.today.day {
    background-color: var(--vita-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: white;
    color: red;
    text-align: center;
}

.isFav {
    color: red;
}

/*.favButton.isFav {
    border-color:red;
}*/

.favButton:hover {
    transform: scale(1.25);
}


#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-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;
}


.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;
}




/* Fullscreen background fix (body is the fullscreen element in your code) */
body:fullscreen,
html:fullscreen,
#layout-wrapper:fullscreen,
.main-content:fullscreen,
.page-content:fullscreen {
    background: var(--bs-body-bg) !important;
}

/* Safari / older Chrome prefixes */
body:-webkit-full-screen,
html:-webkit-full-screen,
#layout-wrapper:-webkit-full-screen,
.main-content:-webkit-full-screen,
.page-content:-webkit-full-screen {
    background: var(--bs-body-bg) !important;
}

body:-moz-full-screen,
html:-moz-full-screen,
#layout-wrapper:-moz-full-screen,
.main-content:-moz-full-screen,
.page-content:-moz-full-screen {
    background: var(--bs-body-bg) !important;
}

/* Belt & braces: ensure your main containers always inherit theme bg */
html, body, #layout-wrapper, .main-content, .page-content, .container-fluid {
    background: var(--bs-body-bg);
}
