/* ---------------------------------------------------------------------
   RELEASE  2026-09-24 · partner portal (Team Management Portal) · deploy as css/site.css
   Load order (unchanged): layout.css → site.css → tgt.css | techno.css
   Sections B: 1 brand buttons · 2 titles/alerts/links · 3 cards ·
   4 dashboard · 5 grids · 6 tabs · 7 attendance · 8 delight layer ·
   9 contacts spacing · 10 dashboard flat lists · 11 schedule wash ·
   12 pending hatch · 13 attendance status palette
   --------------------------------------------------------------------- */
/* =====================================================================
   portal-site.css – Team Management Portal · COMPONENTS & PAGES
   Drop-in replacement for the portal's  wwwroot/css/site.css
   CSS only – no Razor / .NET changes. Needs portal-layout.css (tokens).

     A. ORIGINAL site.css  (unchanged except 3 hard-coded TGT colours now
        read the brand tokens, with the old values as fallback)
     B. hs_comfort components (titles, cards, dashboard, grids, tabs,
        attendance)
     C. Delight layer (section 8) – remove it for the calm version
   ===================================================================== */


/* =====================================================================
   A. ORIGINAL site.css (as served by partner.tgtglobal.com)
   ===================================================================== */
@import url('open.iconic/font/css/open-iconic-bootstrap.min.css');

html, body {
/* font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;*/
}

html, body {
height: 100%;
display: flex;
flex-direction: column;
}

.valid.modified:not([type=checkbox]) {
outline: 1px solid #26b050;
}

.invalid {
outline: 1px solid red;
}

.validation-message {
color: red;
}

.button-link {
text-decoration: unset;
}

#blazor-error-ui {
background: lightyellow;
bottom: 0;
box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
display: none;
left: 0;
padding: 0.6rem 1.25rem 0.7rem 1.25rem;
position: fixed;
width: 100%;
z-index: 1000;
}

#blazor-error-ui .dismiss {
cursor: pointer;
position: absolute;
right: 0.75rem;
top: 0.5rem;
}

.title {
display: flex;
flex-direction: column;
gap: 0.5rem;
padding-bottom: 0.625rem;
}

.title.title-secondary {
padding-top: 0.313rem;
padding-bottom: 0;
color: var(--bs-secondary-color);
}

.title-header-text {
font-size: 2.5rem;
line-height: 3rem;
font-weight: 600;
letter-spacing: 0rem;
padding: 0.3125rem 0;
}

.title-content-text {
font-size: 1.75rem;
font-weight: 400;
line-height: 2.5rem;
letter-spacing: 0rem;
}

/* Login */
.main-content {
display: flex;
justify-content: center;
align-items: center;
height: 100%;
width: 100%;
}

.block-content {
width: 31.25rem;
height: auto;
display: flex;
flex-direction: column;
gap: 0.625rem;
max-width: 100%;
}

.login-box {
border: 1px solid #ccc;
border-radius: 15px;
padding: 20px;
max-width: 400px;
margin: 0 auto;
text-align: center;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
background-color: #fff;
}

.login-box .title-header-text {
font-family: 'Poppins', 'Helvetica Neue', Helvetica, Arial, sans-serif;
color: var(--brand-bg, #02145C);   /* was #02145C – now per brand */
font-size: 1.5rem;
line-height: 2.5rem;
font-weight: 600;
letter-spacing: 0rem;
padding: .5rem;
margin: 0 0 10px 0;
}

.login-logo {
width: 300px;
padding: 10px;
margin: 10px 20px;
}

.login-button {
font-family: 'Poppins', 'Helvetica Neue', Helvetica, Arial, sans-serif;
font-weight: 600;
background-color: #26b050;
color: #fff;
display: inline-block;
width: 100%;
padding: 10px;
font-size: 16px;
border: 0px;
border-radius: 10px;
}

/* Logout */
.logout-box {
border: 1px solid #ccc;
border-radius: 15px;
padding: 20px;
max-width: 1000px;
margin: 0 auto;
text-align: center;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
background-color: #fff;
}

/* Job Log */
div.privateJobLog {
background-color: #FF99FF;
}

div.automatedJobLog {
background-color: #CCCCFF;
}

.calendar {
height: 800px;
}

/* Add rounded corner to DxGrid */
/*dxbl-grid.dxbl-grid {
border-radius: 15px !important;
overflow: hidden;
}*/

/* Change DxAccordion Item active design */
.dxbl-accordion-item.dxbl-active {
background-color: var(--bs-primary);
color: white !important;
}

/* Remove NavMenu DxAccordion header rounded corner */
.nav-scroll-view .dxbl-accordion .dxbl-accordion-group:first-child:not(:last-child), .dxbl-accordion .dxbl-accordion-group:first-child:not(:last-child) > .dxbl-accordion-group-header {
border-radius: 0 !important;
}

/* Grid CSS Start */
.gridText-onHold {
color: red;
}

/* Remove DxGrid header row */
.dxGrid-hiddenHeader {
display: none;
}

/* Remove DxGrid Toolbar */
.dxGrid-hiddenToolbar > .dxbl-grid-toolbar-container {
display: none !important;
}

/* Remove DxGrid grid lines */
.no-grid-lines-td td {
border-left-width: 0px !important;
border-right-width: 0px !important;
}

.no-grid-lines-th th {
border-left-width: 0px !important;
border-right-width: 0px !important;
}

/* Adjusted grid font-size */
.dxbl-grid.dxbl-sm {
/* --dxbl-grid-font-size: 0.85rem;
--dxbl-grid-line-height: 2.5;*/
}

/* Remove DxGrid outside borders */
.no-borders-grid {
border: none !important;
}

/* Remove DxGrid row and header border */
.no-borders-grid-cell td, .no-borders-grid-cell th {
border: none !important;
}

/* If you need to remove header borders specifically */
.no-borders-grid thead th {
border-bottom: none !important;
}

/* If you need to remove borders from other elements like the card container */
.no-borders-grid > .card {
border: none !important;
}

.dxGrid-OnHoldRow:hover {
background: #FFC1C1 !important;
}
/* Grid CSS End */

/* required field css */
.required-field::after {
content: '*';
color: red;
white-space: pre;
padding-left: 2px;
}

/* ThemeSwitcher Menu */
.theme-template-container {
display: flex;
align-items: center;
}

.theme-template-icon {
width: 1rem;
height: 1rem;
margin-right: 0.375rem;
-webkit-mask-image: url("/images/theme-icon.svg");
mask-image: url("/images/theme-icon.svg");
-webkit-mask-repeat: no-repeat;
mask-repeat: no-repeat;
background-color: currentColor;
}

.dxbl-sm .theme-template-icon {
margin-right: 0.25rem;
}

.dxbl-lg .theme-template-icon {
margin-right: 0.5rem;
}

.theme-template-container > .blazing-berry {
color: #5c2d91;
}

.theme-template-container > .blazing-dark {
color: #46444a;
}

.theme-template-container > .office-white {
color: #fe7109;
}

.theme-template-container > .purple {
color: #7989ff;
}

.theme-template-container > .default {
color: #007bff;
}

.theme-template-container > .default-dark {
color: #212529;
}

.theme-template-container > .cerulean {
color: #2fa4e7;
}

.theme-template-container > .cyborg {
color: #060606;
}

.theme-template-container > .flatly {
color: #dce4ec;
}

.theme-template-container > .journal {
color: #eb6864;
}

.theme-template-container > .litera {
color: #4582ec;
}

.theme-template-container > .lumen {
color: #158cba;
}

.theme-template-container > .lux {
color: #1a1a1a;
}

.theme-template-container > .pulse {
color: #593196;
}

.theme-template-container > .simplex {
color: #d9230f;
}

.theme-template-container > .solar {
color: #b58900;
}

.theme-template-container > .superhero {
color: #df691a;
}

.theme-template-container > .united {
color: #e95420;
}

.theme-template-container > .yeti {
color: #008cba;
}

.theme-template-container > .fluent-light {
color: #0f6cbd;
}

.theme-template-container > .fluent-dark {
color: #282828;
}

/* Attendance */
.attendance-wholeDayLeave > td {
background-color: #FADBD8;
}

.attendance-restDay > td {
background-color: #F0F0F0;
color: #696969;
}

.allocation-highlight {
background-color: #C6EFCE !important;
}

.attendance-late {
background: #FF0000 !important;
color: #FFFFFF !important;
}

.attendance-undertime {
background: #FF0000 !important;
color: #FFFFFF !important;
}

.attendance-wholedayleave {
background: #FADBD8 !important;
}

.attendance-restday {
background: #f0f0f0 !important;
color: #696969 !important;
}

.attendance-group {
/* background: #ffffe0 !important;*/
background: var(--dxbl-grid-hover-bg) !important;
font-weight: bold;
}

.attendance-pendingleave {
background: #FADBD8 !important;
}

.attendance-leavehours-neg {
color: #FF0000 !important;
}

/* Schedule related styling
TODO: (Cleanup) Leave colors will be updated and unified into constants since its shared accross portal & TDB */
.schedule-cell {
text-align: center;
vertical-align: middle;
}

.schedule-cell-content {
width: 100%;
height: 100%;
box-sizing: border-box;
display: flex;
align-items: center;
justify-content: center;
text-align: center;
flex-direction: column;
gap: 0.25rem;
}

.schedule-rest-day,
.schedule-legend-swatch.schedule-rest-day {
background-color: #e6e6e6;
color: #696969;
}

.schedule-leave,
.schedule-legend-swatch.schedule-leave {
background-color: #FFAE00;
color: #212529;
}

.schedule-sick-leave,
.schedule-legend-swatch.schedule-sick-leave {
background-color: #FF5200;
color: #212529;
}

.schedule-til,
.schedule-legend-swatch.schedule-til {
background-color: #41FF13;
color: #212529;
}

.schedule-other,
.schedule-legend-swatch.schedule-other {
background-color: #1690FF;
color: #212529;
}

.schedule-leave-pending,
.schedule-legend-swatch.schedule-leave-pending {
background-color: #FFAE00;
color: #393d42;
background-image: repeating-linear-gradient( 135deg, rgba(0, 0, 0, 0.15) 0, rgba(0, 0, 0, 0.15) 3px, rgba(0, 0, 0, 0) 3px, rgba(0, 0, 0, 0) 6px );
}

.schedule-sick-leave-pending,
.schedule-legend-swatch.schedule-sick-leave-pending {
background-color: #FF5200;
color: #393d42;
background-image: repeating-linear-gradient( 135deg, rgba(0, 0, 0, 0.15) 0, rgba(0, 0, 0, 0.15) 3px, rgba(0, 0, 0, 0) 3px, rgba(0, 0, 0, 0) 6px );
}

.schedule-standard-shift,
.schedule-legend-swatch.schedule-standard-shift {
color: #212529;
background-color: var(--DS-color-surface-neutral-default-rest) !important;
}

.schedule-leave-label {
display: inline-block;
padding: 0.15rem 0.45rem;
border-radius: 999px;
background-color: rgba(255, 255, 255, 0.75);
font-weight: 600;
font-size: 0.75rem;
line-height: 1;
margin-bottom: 0.25rem;
}

/* Override Styles */
h5 {
font-size: 1.5rem !important;
font-weight: 600 !important;
}

.page-header-title-text {
font-size: 1.75rem !important;
line-height: 1.5 !important;
/* margin: 25px 0 0 0;*/
}

.btn-primary {
background-color: var(--brand-primary, #02145C);   /* was #02145C – now per brand */
border-color: var(--brand-primary, #02145C);
}

.btn-success {
background-color: var(--brand-success, #6BCB00);   /* was #6BCB00 – now per brand */
border-color: var(--brand-success, #6BCB00);
}

.schedule-legend {
display: flex;
flex-wrap: wrap;
gap: 0.75rem;
align-items: center;
margin: 0 0 0.5rem 0;
font-size: 0.85rem;
border:none;
padding: 0px 10px 0px 10px;
}

.schedule-legend-item {
display: inline-flex;
align-items: center;
gap: 0.35rem;
padding: 0.15rem 0.5rem;
/* background-color: #ffffff;*/
border: 1px solid #e0e0e0;
border-radius: 999px;
}

.schedule-legend-swatch {
width: 14px;
height: 14px;
border-radius: 4px;
display: inline-block;
border: 1px solid #cfcfcf;
}

.schedule-legend-rest {
background-color: #F1F3F5;
color: #6C757D;
}

.schedule-legend-leave {
background-color: #FFF3CD;
color: #664D03;
}

.schedule-legend-sick-leave {
background-color: #FDE2E4;
color: #842029;
}

.schedule-legend-leave-pending {

background-color: #FFF3CD;
color: #664D03;
background-image: repeating-linear-gradient( 135deg, rgba(0, 0, 0, 0.08) 0, rgba(0, 0, 0, 0.08) 2px, transparent 2px, transparent 6px );
}

.schedule-legend-sick-leave-pending {

background-color: #FDE2E4;
color: #842029;
background-image: repeating-linear-gradient( 135deg, rgba(0, 0, 0, 0.08) 0, rgba(0, 0, 0, 0.08) 2px, transparent 2px, transparent 6px );
}

.schedule-legend-standard {
background-color: #FFFFFF;
}

.daily-attendance-status {
width: 100%;
border: 1px solid #e0e0e0;
box-shadow: none;
}

.daily-attendance-cell {
text-align: center;
vertical-align: middle;
}

.daily-attendance-status-text {
width: 100%;
height: 100%;
box-sizing: border-box;
display: flex;
align-items: center;
justify-content: center;
text-align: center;
flex-direction: column;
gap: 0.25rem;

}

/* Define color variables for daily attendance statuses */
:root {
--daily-attendance-no-show-bg: #F8D7DA;
--daily-attendance-no-show-fg: #842029;
--daily-attendance-late-no-show-bg: #FDE2E6;
--daily-attendance-late-no-show-fg: #842029;
--daily-attendance-late-within-tardy-eta-bg: #FFF3CD;
--daily-attendance-late-within-tardy-eta-fg: #664D03;
--daily-attendance-notification-sick-bg: #DCEBFF;
--daily-attendance-notification-sick-fg: #084298;
--daily-attendance-late-or-undertime-bg: #E6D9F5;
--daily-attendance-late-or-undertime-fg: #4C2A85;
--daily-attendance-off-shift-bg: #F1F3F5;
--daily-attendance-off-shift-fg: #6C757D;
--daily-attendance-others-bg: #D9F2F4;
--daily-attendance-others-fg: #0F5132;
}

/* No Show (soft red) */
.daily-attendance-no-show {
background-color: var(--daily-attendance-no-show-bg);
color: var(--daily-attendance-no-show-fg);
}

/* No Show - Late Notification (lighter red) */
.daily-attendance-late-no-show {
background-color: var(--daily-attendance-late-no-show-bg);
color: var(--daily-attendance-late-no-show-fg);
}

/* Late within Tardy ETA (soft amber) */
.daily-attendance-late-within-tardy-eta {
background-color: var(--daily-attendance-late-within-tardy-eta-bg);
color: var(--daily-attendance-late-within-tardy-eta-fg);
}

/* Sick with Notification (soft blue) */
.daily-attendance-notification-sick {
background-color: var(--daily-attendance-notification-sick-bg);
color: var(--daily-attendance-notification-sick-fg);
}

/* Late or Undertime (soft purple) */
.daily-attendance-late-or-undertime {
background-color: var(--daily-attendance-late-or-undertime-bg);
color: var(--daily-attendance-late-or-undertime-fg);
}

/* Off Shift (neutral gray) */
.daily-attendance-off-shift {
background-color: var(--daily-attendance-off-shift-bg);
color: var(--daily-attendance-off-shift-fg);
}

/* Others (soft teal) */
.daily-attendance-others {
background-color: var(--daily-attendance-others-bg);
color: var(--daily-attendance-others-fg);
}

/* Dashboard Revamp */
.dashboard-container .card {
border-radius: 14px;
}

.dashboard-section {
border-radius: 14px;
}

.dashboard-hero {
background-color: #f8f9fb;
border: 1px solid #e5e7eb;
}

.dashboard-greeting {
font-size: 1.5rem;
font-weight: 600;
}

.dashboard-subtitle {
color: var(--bs-secondary-color);
font-size: 0.95rem;
}

.dashboard-stat-cards {
display: flex;
flex-wrap: wrap;
gap: 0.75rem;
}

.dashboard-stat-card {
min-width: 170px;
padding: 0.9rem 1.1rem;
border-radius: 12px;
border: 1px solid #e5e7eb;
background: #ffffff;
display: grid;
grid-template-columns: auto 1fr;
grid-template-rows: auto auto;
column-gap: 0.75rem;
row-gap: 0.1rem;
align-items: center;
}

.dashboard-stat-card > i {
width: 2.4rem;
height: 2.4rem;
border-radius: 0.75rem;
display: inline-flex;
align-items: center;
justify-content: center;
font-size: 1.2rem;
grid-row: 1 / span 2;
/* background-color: rgba(255, 255, 255, 0.7);*/
}

.dashboard-stat-card.is-info {
background-color: rgba(219, 232, 255, 0.7);
border-color: #bfd7ff;
color: #0b3d91;
}

.dashboard-stat-card.is-warning {
background: rgba(var(--bs-warning-rgb), 0.12);
color: var(--bs-warning-text-emphasis);
}

.dashboard-stat-card.is-success {
background-color: rgba(216, 242, 229, 0.7);
border-color: #cfe9dd;
color: #1e6b46;
}

.dashboard-stat-card.is-danger {
background: rgba(var(--bs-danger-rgb), 0.12);
color: var(--bs-danger-text-emphasis);
}

.dashboard-stat-value {
font-size: 1.35rem;
font-weight: 700;
line-height: 1.2;
}

.dashboard-stat-label {
font-size: 0.8rem;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.04em;
opacity: 0.9;
}

.dashboard-section-title > i {
font-size: 1.1rem;
}

.attendance-flag-list {
list-style: none;
margin: 0;
padding: 0;
display: flex;
flex-direction: column;
gap: 0.5rem;
}

.attendance-flag-item {
display: flex;
align-items: center;
justify-content: space-between;
/* gap: 0.75rem;*/
padding: 0.35rem 0.25rem;
border-bottom: 1px solid #eef0f3;
}

.attendance-flag-item:last-child {
border-bottom: none;
}

.attendance-flag-name {
font-weight: 600;
}

.attendance-flag-badge {
padding: 0.15rem 0.5rem;
border-radius: 999px;
font-size: 0.75rem;
font-weight: 600;
line-height: 2;
white-space: nowrap;
}

.dashboard-section-header {
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 1rem;
margin-bottom: 0.75rem;
}

.dashboard-section-title {
margin: 0;
display: inline-flex;
align-items: center;
gap: 0.5rem;
}

.dashboard-section-meta {
margin-left: auto;
white-space: nowrap;
align-self: flex-start;
}

.dashboard-hero-bar {
border-radius: 14px;
padding: 0.25rem;
color: #ffffff;
}

.dashboard-hero-bar .card-body {
padding: 1.25rem 1.75rem;
}

.dashboard-hero-bar .dashboard-greeting {
color: #ffffff;
}

.dashboard-hero-bar .dashboard-subtitle {
color: rgba(255, 255, 255, 0.75);
}

.dashboard-hero-bar .dashboard-stat-card {
background: rgba(255, 255, 255, 0.1);
border-color: rgba(255, 255, 255, 0.2);
color: #ffffff;
}

.dashboard-hero-bar .dashboard-stat-card > i {
background-color: rgba(255, 255, 255, 0.15);
}

.finance-container .card {
border-radius: 14px;
}

/* Hero */
.finance-hero-bar {
color: #ffffff;
border: none;
border-radius: 14px;
}

.finance-hero-bar .card-body {
padding: 1.25rem 1.75rem;
}

.finance-hero-title {
font-size: 1.7rem;
font-weight: 700;
line-height: 1.2;
color: #ffffff;
}

.finance-hero-subtitle {
color: rgba(255, 255, 255, 0.75);
font-size: 0.9rem;
margin-top: 0.2rem;
}

.finance-hero-meta {
display: flex;
flex-direction: column;
align-items: flex-end;
gap: 0.25rem;
text-align: right;
}

.finance-hero-meta-primary {
font-size: 0.95rem;
font-weight: 600;
color: #ffffff;
display: inline-flex;
align-items: center;
gap: 0.35rem;
}

.finance-hero-meta-secondary {
font-size: 0.78rem;
color: rgba(255, 255, 255, 0.65);
display: inline-flex;
align-items: center;
gap: 0.3rem;
}

/* Rate Cards */
.finance-rate-card {
border: 1px solid var(--bs-border-color);
background-color: var(--bs-body-bg);
box-shadow: var(--bs-box-shadow-sm);
}

.finance-rate-card .card-body {
padding: 1.25rem 1.5rem;
display: flex;
flex-direction: column;
gap: 1rem;
}

.finance-rate-header {
display: flex;
align-items: center;
justify-content: space-between;
}

.finance-rate-currency {
display: flex;
align-items: center;
gap: 0.5rem;
}

.finance-rate-flag {
width: 32px;
height: 22px;
border-radius: 3px;
object-fit: cover;
flex-shrink: 0;
}

.finance-rate-code {
font-weight: 700;
font-size: 1rem;
color: var(--bs-body-color);
}

.finance-rate-name {
font-size: 0.85rem;
color: var(--bs-secondary-color);
}

.finance-rate-pill {
background: rgba(var(--bs-success-rgb), 0.12);
color: var(--bs-success);
padding: 0.2rem 0.65rem;
border-radius: 999px;
font-size: 0.72rem;
font-weight: 600;
white-space: nowrap;
}

.finance-rate-main {
display: flex;
justify-content: space-between;
align-items: center;
gap: 1rem;
}

.finance-rate-left {
display: flex;
flex-direction: column;
gap: 0.1rem;
}

.finance-rate-base {
font-size: 1.05rem;
font-weight: 500;
color: var(--bs-secondary-color);
}

.finance-rate-equals {
font-size: 1rem;
color: var(--bs-secondary-color);
}

.finance-rate-converted {
font-size: 2rem;
font-weight: 700;
color: var(--bs-heading-color);
line-height: 1.1;
}

.finance-rate-unit {
font-size: 1rem;
font-weight: 500;
color: var(--bs-secondary-color);
}

/* Decorative PHP symbol accent replacing sparkline */
.finance-rate-accent {
font-size: 4rem;
font-weight: 800;
line-height: 1;
color: var(--bs-primary);
opacity: 0.06;
user-select: none;
letter-spacing: -2px;
flex-shrink: 0;
align-self: center;
}

.finance-rate-footer {
display: flex;
align-items: center;
gap: 0.5rem;
font-size: 0.85rem;
color: var(--bs-secondary-color);
padding-top: 0.25rem;
border-top: 1px solid var(--bs-border-color-translucent);
}

/* Disclaimer */
.finance-disclaimer {
border: 1px solid rgba(var(--bs-primary-rgb), 0.2);
background: rgba(var(--bs-primary-rgb), 0.05);
color: var(--bs-primary);
border-radius: 10px;
padding: 0.65rem 1rem;
display: flex;
align-items: center;
gap: 0.5rem;
font-size: 0.875rem;
}

/* Payment Details */
.finance-details-card {
border: 1px solid var(--bs-border-color);
background-color: var(--bs-body-bg);
box-shadow: var(--bs-box-shadow-sm);
}

.finance-details-card .card-body {
padding: 1.25rem 1.5rem;
}

.finance-details-header {
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 1rem;
margin-bottom: 1rem;
}

.finance-details-icon {
font-size: 1.25rem;
color: var(--bs-primary);
opacity: 0.7;
}

.finance-details-subtitle {
color: var(--bs-secondary-color);
font-size: 0.82rem;
margin-top: 0.1rem;
}

.finance-details-guide-link {
font-size: 0.8rem;
color: var(--bs-primary);
white-space: nowrap;
text-decoration: none;
display: inline-flex;
align-items: center;
gap: 0.25rem;
opacity: 0.8;
margin-top: 0.25rem;
}

.finance-details-guide-link:hover {
opacity: 1;
text-decoration: underline;
}

.finance-details-list {
display: flex;
flex-direction: column;
}

.finance-detail-row {
display: flex;
justify-content: space-between;
align-items: flex-start;
gap: 1rem;
padding: 0.55rem 0;
border-bottom: 1px solid var(--bs-border-color-translucent);
font-size: 0.875rem;
}

.finance-detail-row:last-child {
border-bottom: none;
}

.finance-detail-label {
display: inline-flex;
align-items: center;
gap: 0.45rem;
font-weight: 500;
color: var(--bs-secondary-color);
min-width: 145px;
}

.finance-detail-icon {
font-size: 0.9rem;
color: var(--bs-secondary-color);
opacity: 0.7;
flex-shrink: 0;
}

.finance-detail-value {
color: var(--bs-body-color);
text-align: right;
font-weight: 500;
word-break: break-word;
}

/* Help Card */
.finance-help-card {
border: 1px solid var(--bs-border-color);
background: var(--bs-body-bg);
box-shadow: var(--bs-box-shadow-sm);
}

.finance-help-icon-wrap {
width: 48px;
height: 48px;
border-radius: 12px;
background: rgba(var(--bs-primary-rgb), 0.08);
color: var(--bs-primary);
display: inline-flex;
align-items: center;
justify-content: center;
font-size: 1.35rem;
}

.finance-help-text {
font-size: 0.875rem;
color: var(--bs-secondary-color);
line-height: 1.5;
}

/* Responsive */
@media (max-width: 767.98px) {
.finance-hero-meta {
align-items: flex-start;
text-align: left;
}

.finance-rate-main {
flex-direction: row;
}

.finance-details-header {
flex-direction: column;
gap: 0.5rem;
}

.finance-detail-row {
flex-direction: column;
align-items: flex-start;
}

.finance-detail-value {
text-align: left;
}
}

.ellipsis-cell {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}

.schedule-shift-time {
width: 100%;
display: flex;
flex-wrap: nowrap;
gap: 0.25rem;
justify-content: center;
}

/* FormLayoutItem */
.layout-item-align-center .dxbl-fl-ctrl {
align-self: center !important;
}

.finance-copy-btn {
display: inline-flex;
align-items: center;
gap: 0.3rem;
font-size: 0.8rem;
font-weight: 500;
color: var(--bs-primary);
background: none;
border: 1px solid var(--bs-border-color);
border-radius: 6px;
padding: 0.2rem 0.6rem;
cursor: pointer;
white-space: nowrap;
transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.finance-copy-btn:hover {
background: rgba(var(--bs-primary-rgb), 0.06);
border-color: var(--bs-primary);
}

.finance-copy-btn.copied {
color: var(--bs-success);
border-color: var(--bs-success);
background: rgba(var(--bs-success-rgb), 0.06);
}

/* Celebrations / Work Anniversaries */
.celebration-icon-wrap {
width: 52px;
height: 52px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
font-size: 1.25rem;
}

.celebration-avatar {
width: 40px;
height: 40px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-size: 0.8rem;
font-weight: 600;
flex-shrink: 0;
}

.celebration-counter-value {
font-size: 1.35rem;
font-weight: 700;
line-height: 1.2;
}

.celebration-counter-label {
font-size: 0.8rem;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.04em;
color: var(--bs-secondary-color);
}

.celebration-counter-sub {
font-size: 0.75rem;
color: var(--bs-secondary-color);
}

.celebration-person-name {
font-size: var(--bs-body-font-size);
font-weight: 600;
}

.celebration-person-meta {
font-size: 0.8rem;
color: var(--bs-secondary-color);
}


/* =====================================================================
   B. HS_COMFORT COMPONENTS  (+ C. delight layer, section 8)
   ===================================================================== */

/* ---------------------------------------------------------------------
   1. Brand buttons (colours from tgt.css / techno.css, theme-aware)
   --------------------------------------------------------------------- */
.btn-primary,
.dxbl-upload-panel .dxbl-btn-primary,
.dxbl-grid-edit-form-buttons .dxbl-btn-primary {
    background-color: var(--brand-primary, #02145C) !important;
    border-color: var(--brand-primary, #02145C) !important;
    color: #fff !important;
}

.btn-success {
    background-color: var(--brand-success, #6BCB00) !important;
    border-color: var(--brand-success, #6BCB00) !important;
    color: #fff !important;
}

.btn, .dxbl-btn { border-radius: 4px !important; }


/* ---------------------------------------------------------------------
   2. Page titles, headings, alerts, links
   --------------------------------------------------------------------- */
article.content > h1, article.content > h2, article.content > h3,
article.content .page-header-title-text,
article.content h1, article.content h3 {
    color: var(--p-title) !important;
    font-weight: 600 !important;
    letter-spacing: 0;
}

article.content h1,
article.content .page-header-title-text { font-size: 24px !important; }

article.content h4,
article.content h5,
article.content .card-title { color: var(--p-title) !important; font-weight: 600 !important; }

article.content h5 { font-size: 18px !important; }

article.content .text-muted,
article.content small { color: var(--p-ink-2) !important; }

article.content .alert {
    border-radius: 4px !important;
    border: 1px solid var(--t-mint-bd) !important;
    border-left: 4px solid var(--p-teal) !important;
    background: var(--t-mint-bg) !important;
    color: var(--p-ink) !important;
    box-shadow: none !important;
    font-size: 13px;
}

article.content .alert-info { border-color: var(--t-blue-bd) !important; border-left-color: #3d7fd9 !important; background: var(--t-blue-bg) !important; }
article.content .alert-warning { border-color: var(--t-amber-bd) !important; border-left-color: #e0a100 !important; background: var(--t-amber-bg) !important; }
article.content .alert-danger { border-color: var(--t-red-bd) !important; border-left-color: #d9534f !important; background: var(--t-red-bg) !important; }

article.content a:not(.dxbl-btn):not(.btn) {
    color: var(--p-link) !important;
    text-decoration: none !important;
}

article.content a:not(.dxbl-btn):not(.btn):hover {
    text-decoration: underline !important;
    text-underline-offset: 3px;
}

/* icon-only links (e.g. Contacts phone / email) keep their own colours */
article.content a:has(> i.bi:only-child):not(.dxbl-btn):not(.btn) {
    color: inherit !important;
    text-decoration: none !important;
}

article.content a.tooltips { background: var(--p-teal) !important; color: #fff !important; border: 0 !important; }
article.content a.tooltips:hover { background: var(--p-link) !important; }
article.content a.tooltips i { color: #fff !important; }


/* ---------------------------------------------------------------------
   3. Cards – 6px corners, hairline border, whisper shadow
   --------------------------------------------------------------------- */
article.content .card,
article.content dxbl-grid.dxbl-grid,
article.content dxbl-tabs.dxbl-tabs + .card {
    background: var(--p-surface) !important;
    border: 1px solid var(--p-line) !important;
    border-radius: var(--p-radius) !important;
    box-shadow: var(--p-shadow) !important;
}

article.content .card .card { box-shadow: none !important; }

article.content .card-header,
article.content .card-footer {
    background: var(--p-band) !important;
    border-color: var(--p-line) !important;
}

/* dashboard section cards */
.dashboard-section-header {
    border-bottom: 1px solid var(--p-line);
    padding-bottom: 10px;
    margin-bottom: 12px;
    align-items: center !important;
}

article.content .dashboard-section-title {
    font-size: 16px !important;
    font-weight: 600 !important;
    color: var(--p-title) !important;
    margin: 0 !important;
}

.dashboard-section-title i,
.dashboard-section-header .bi { color: var(--p-ink-2) !important; font-size: 15px !important; }

.dashboard-section-meta {
    color: var(--p-ink-2) !important;
    font-size: 12px !important;
}

/* plain counts ("2 items", "Today") become a quiet pill; metas holding
   controls (e.g. "Show next 30 days") are left alone */
.dashboard-section-meta:not(:has(*)) {
    background: var(--p-band);
    border: 1px solid var(--p-line);
    border-radius: 999px;
    padding: 1px 8px;
}


/* ---------------------------------------------------------------------
   4. Dashboard – hero and stat tiles
   --------------------------------------------------------------------- */
article.content [class*="-hero-bar"].brand-bg,
article.content [class*="-hero-bar"].brand-bg-gradient,
.brand-bg-gradient {
    background: linear-gradient(100deg, var(--p-bar) 0%, #2b4a66 100%) !important;
    border-radius: var(--p-radius) !important;
    box-shadow: var(--p-shadow) !important;
    position: relative;
    overflow: hidden;
}

article.content [class*="-hero-bar"]::after {
    content: "";
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 4px;
    background: var(--p-coral);
}

article.content [class*="-hero-bar"],
article.content [class*="-hero-bar"] * { color: #fff; }
article.content [class*="-hero-bar"] { border: 0 !important; }

.dashboard-greeting,
article.content [class*="-hero-title"] { font-size: 22px !important; font-weight: 600 !important; color: #fff !important; }

.dashboard-subtitle,
article.content [class*="-hero-bar"] [class*="subtitle"],
article.content [class*="-hero-bar"] small { color: rgba(255, 255, 255, .78) !important; font-size: 14px !important; }

/* stat tiles: white tile, status-tinted icon chip, number carries the colour */
.dashboard-stat-card.is-info    { --tile-bg: var(--t-blue-bg);  --tile-fg: var(--t-blue-fg); }
.dashboard-stat-card.is-success { --tile-bg: var(--t-green-bg); --tile-fg: var(--t-green-fg); }
.dashboard-stat-card.is-danger  { --tile-bg: var(--t-red-bg);   --tile-fg: var(--t-red-fg); }
.dashboard-stat-card.is-warning { --tile-bg: var(--t-amber-bg); --tile-fg: var(--t-amber-fg); }

.dashboard-stat-card {
    background: var(--p-surface) !important;
    border: 1px solid var(--p-line) !important;
    border-radius: var(--p-radius) !important;
    box-shadow: none !important;
}

.dashboard-stat-card:hover {
    border-color: var(--p-line-2) !important;
    box-shadow: var(--p-shadow-hover) !important;
}

.dashboard-stat-card > i.bi {
    display: inline-grid !important;
    place-items: center;
    width: 38px !important;
    height: 38px !important;
    border-radius: 50% !important;
    background: var(--tile-bg, var(--p-band)) !important;
    color: var(--tile-fg, var(--p-ink-2)) !important;
    font-size: 17px !important;
    border: 0 !important;
}

.dashboard-stat-value {
    font-size: 24px !important;
    font-weight: 600 !important;
    color: var(--tile-fg, var(--p-title)) !important;
}

.dashboard-stat-label {
    font-size: 11.5px !important;
    font-weight: 600 !important;
    letter-spacing: .04em;
    color: var(--p-ink-2) !important;
}


/* ---------------------------------------------------------------------
   5. [dx-internal] Grids – header band, comfortable rows, light lines
   --------------------------------------------------------------------- */
article.content dxbl-grid.dxbl-grid { overflow: hidden; }

article.content .dxbl-grid-table,
article.content dxbl-scroll-viewer.dxbl-scroll-viewer,
article.content .dxbl-scroll-viewer-content { background-color: var(--p-surface) !important; }

article.content th.dxbl-grid-header,
article.content .dxbl-grid-table thead th {
    background: var(--p-band) !important;
    color: var(--p-ink-2) !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    letter-spacing: .02em;
    border-color: var(--p-line) !important;
    border-bottom: 1px solid var(--p-line-2) !important;
    padding: 9px 10px !important;
}

article.content th.dxbl-grid-header .dxbl-btn { opacity: .45; }
article.content th.dxbl-grid-header:hover .dxbl-btn,
article.content th.dxbl-grid-header .dxbl-btn.dxbl-active { opacity: 1; }

article.content .dxbl-grid-table tbody td {
    color: var(--p-ink) !important;
    padding: 8px 10px !important;
    line-height: 1.45;
    border-color: var(--p-row) !important;
}

/* hover = a faint tint laid OVER the cell, so coloured cells (leave, sick,
   schedule blocks) keep their colour instead of being replaced */
article.content .dxbl-grid-table tbody tr:hover > td {
    box-shadow: inset 0 0 0 9999px var(--p-hover-tint);
}

/* wide grids (7+ columns, e.g. Schedule) get slightly tighter cells */
article.content dxbl-grid.dxbl-grid:has(colgroup col:nth-child(7)) .dxbl-grid-table tbody td { padding: 6px 8px !important; }
article.content dxbl-grid.dxbl-grid:has(colgroup col:nth-child(7)) th.dxbl-grid-header { padding: 8px 8px !important; }

article.content .dxbl-grid-table tbody td a:not(.dxbl-btn) { font-weight: 500; }

/* toolbar / search / pager */
article.content .dxbl-grid-top-panel,
article.content .dxbl-grid-toolbar-container {
    background: var(--p-surface) !important;
    border-color: var(--p-line) !important;
}

article.content .dxbl-grid-search-box,
article.content .dxbl-text-edit,
article.content .dxbl-combobox,
article.content .dxbl-date-edit,
article.content .dxbl-spin-edit {
    border-radius: 4px !important;
}

article.content .dxbl-grid-bottom-panel,
article.content .dxbl-grid-pager-container,
article.content .dxbl-pager-container {
    background: var(--p-surface) !important;
    border-color: var(--p-line) !important;
}

article.content .dxbl-pager-container .dxbl-btn { border-radius: 4px !important; }


/* ---------------------------------------------------------------------
   6. [dx-internal] Tabs – quiet, ink active tab
   --------------------------------------------------------------------- */
article.content .dxbl-tabs-tablist { border-color: var(--p-line) !important; }
article.content .dxbl-tabs-item { color: var(--p-ink-2) !important; }
article.content .dxbl-tabs-item:hover { color: var(--p-ink) !important; }
article.content .dxbl-tabs-item.dxbl-active { color: var(--p-title) !important; font-weight: 600 !important; }


/* ---------------------------------------------------------------------
   7. Attendance – status cells become inset tags, legend as chips
   --------------------------------------------------------------------- */
.daily-attendance-no-show               { --tag-bg: var(--t-red-bg);    --tag-fg: var(--t-red-fg);    --tag-bd: var(--t-red-bd); }
.daily-attendance-late-no-show          { --tag-bg: var(--t-rose-bg);   --tag-fg: var(--t-rose-fg);   --tag-bd: var(--t-rose-bd); }
.daily-attendance-late-within-tardy-eta { --tag-bg: var(--t-amber-bg);  --tag-fg: var(--t-amber-fg);  --tag-bd: var(--t-amber-bd); }
.daily-attendance-notification-sick     { --tag-bg: var(--t-teal-bg);   --tag-fg: var(--t-teal-fg);   --tag-bd: var(--t-teal-bd); }
.daily-attendance-late-or-undertime     { --tag-bg: var(--t-violet-bg); --tag-fg: var(--t-violet-fg); --tag-bd: var(--t-violet-bd); }
.daily-attendance-off-shift             { --tag-bg: var(--t-slate-bg);  --tag-fg: var(--t-slate-fg);  --tag-bd: var(--t-slate-bd); }
.daily-attendance-others                { --tag-bg: var(--t-mint-bg);   --tag-fg: var(--t-mint-fg);   --tag-bd: var(--t-mint-bd); }

article.content td.daily-attendance-cell {
    background: var(--p-surface) !important;
    text-align: left !important;
}

article.content td.daily-attendance-cell br { display: none; }

article.content td.daily-attendance-cell .daily-attendance-status-text {
    display: inline-flex !important;
    width: auto !important;
    height: auto !important;
    max-width: 100%;
    justify-content: flex-start !important;
    text-align: left !important;
    padding: 1px 8px;
    border-radius: 3px;
    background: var(--tag-bg);
    color: var(--tag-fg) !important;
    border: 1px solid var(--tag-bd);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.6;
}

.schedule-legend-item {
    background: var(--p-surface) !important;
    border: 1px solid var(--p-line) !important;
    border-radius: 999px !important;
    color: var(--p-ink) !important;
    font-size: 12px !important;
}

.schedule-legend-swatch { width: 10px !important; height: 10px !important; border-radius: 3px !important; }

.schedule-legend-swatch[class*="daily-attendance-"] {
    background: var(--tag-bg) !important;
    border: 1px solid var(--tag-fg) !important;
}


/* ---------------------------------------------------------------------
   8. DELIGHT LAYER – small moments that make the portal feel alive
       (customer-facing; delete this section for the calm version)
   --------------------------------------------------------------------- */
/* uses the brand tokens from tgt.css / techno.css:
   --brand-accent-1 / --brand-accent-2 (glow, rings, edges),
   --brand-hero-1..3 (hero base), --brand-success (action glow) */

@keyframes x-rise  { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes x-drift { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }

/* hero: TGT green / teal glow that drifts slowly, dotted texture on the right */
article.content [class*="-hero-bar"].brand-bg,
article.content [class*="-hero-bar"].brand-bg-gradient {
    background:
        radial-gradient(600px 200px at 85% 120%, color-mix(in srgb, var(--brand-accent-1, #6BCB00) 35%, transparent), transparent 60%),
        radial-gradient(500px 220px at 60% -40%, color-mix(in srgb, var(--brand-accent-2, #00a4bd) 35%, transparent), transparent 60%),
        linear-gradient(110deg, var(--brand-hero-1, #162636), var(--brand-hero-2, #213343) 45%, var(--brand-hero-3, #1d4a5e)) !important;
    background-size: 100% 100%, 100% 100%, 200% 200% !important;
    animation: x-drift 18s ease-in-out infinite;
}

article.content [class*="-hero-bar"]::before {
    content: "";
    position: absolute;
    right: 0; top: 0; bottom: 0;
    width: 40%;
    background-image: radial-gradient(rgba(255, 255, 255, .14) 1px, transparent 1.5px);
    background-size: 14px 14px;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 70%);
    mask-image: linear-gradient(90deg, transparent, #000 70%);
    pointer-events: none;
}

article.content [class*="-hero-bar"]::after { background: linear-gradient(var(--brand-accent-1, #6BCB00), var(--brand-accent-2, #00a4bd)) !important; }

.dashboard-greeting { font-size: 26px !important; letter-spacing: -.01em; }

/* page entrance: cards rise in, lightly staggered */
article.content .card,
article.content .dashboard-stat-card,
article.content dxbl-grid.dxbl-grid { animation: x-rise .45s cubic-bezier(.2, .7, .2, 1) both; }

article.content .row > *:nth-child(2) .card,    article.content .dashboard-stat-card:nth-child(2)    { animation-delay: .05s; }
article.content .row > *:nth-child(3) .card,    article.content .dashboard-stat-card:nth-child(3)    { animation-delay: .10s; }
article.content .row > *:nth-child(4) .card,    article.content .dashboard-stat-card:nth-child(4)    { animation-delay: .15s; }
article.content .row > *:nth-child(n+5) .card,  article.content .dashboard-stat-card:nth-child(n+5)  { animation-delay: .20s; }

/* things you can act on lift on hover */
article.content .dashboard-stat-card,
article.content .card:has(img),
article.content .card:has(.btn),
article.content .finance-rate-card { transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease !important; }

article.content .dashboard-stat-card:hover,
article.content .card:has(img):hover,
article.content .card:has(.btn):hover,
article.content .finance-rate-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(33, 51, 67, .12) !important;
    border-color: var(--p-line-2) !important;
}

html:has(link[href*="fluent-dark"]) article.content .card:hover { box-shadow: 0 10px 24px rgba(0, 0, 0, .5) !important; }

.dashboard-stat-card > i.bi { transition: transform .18s ease; }
.dashboard-stat-card:hover > i.bi { transform: scale(1.1) rotate(-6deg); }

/* Shop: product image eases in on hover */
article.content .card:has(img) { overflow: hidden; }
article.content .card:has(img) img:not([class*="rounded-circle"]) { transition: transform .35s ease; }
article.content .card:has(img):hover img:not([class*="rounded-circle"]) { transform: scale(1.04); }

/* Contacts: TGT green → teal ring around each photo */
article.content img.rounded-circle {
    border: 3px solid transparent !important;
    background-image: linear-gradient(var(--p-surface), var(--p-surface)), linear-gradient(135deg, var(--brand-accent-1, #6BCB00), var(--brand-accent-2, #00a4bd)) !important;
    background-origin: border-box !important;
    background-clip: padding-box, border-box !important;
    box-shadow: 0 0 0 3px var(--p-surface);
    transition: transform .2s ease;
}

article.content .card:hover img.rounded-circle { transform: scale(1.04); }

/* rewarding actions: pill "Get" / "View" buttons with a soft brand glow */
article.content .btn-success {
    border-radius: 999px !important;
    padding-left: 14px !important;
    padding-right: 14px !important;
    font-weight: 600 !important;
    transition: box-shadow .18s ease, transform .18s ease !important;
}

article.content .btn-success:hover { box-shadow: 0 4px 14px color-mix(in srgb, var(--brand-success, #6BCB00) 35%, transparent) !important; transform: translateY(-1px); }

/* side menu: icon warms to teal, sub-items nudge on hover */
.sidebar-panel .dxbl-accordion-item-content:hover .dxbl-image,
.sidebar-panel .dxbl-accordion-item-content:hover i { color: var(--p-teal) !important; }
.sidebar-panel .dxbl-accordion-item-content { transition: background-color .15s ease, padding-left .15s ease !important; }
.sidebar-panel .dxbl-accordion-group-body .dxbl-accordion-item-content:hover { padding-left: 34px !important; }

@media (prefers-reduced-motion: reduce) {
    article.content *,
    article.content [class*="-hero-bar"] { animation: none !important; transform: none !important; }
}


/* ---------------------------------------------------------------------
   9. Contacts directory – room to breathe
      (targets the page's own .user-card cards; no Razor changes)
   --------------------------------------------------------------------- */
article.content .card-body:has(> .row .user-card) { padding: 20px 16px 4px !important; }

/* 20px gutters between cards, both across and down */
article.content .row:has(> [class*="col"] > .card > .user-card) {
    row-gap: 20px;
    margin-left: -10px !important;
    margin-right: -10px !important;
}

article.content .row:has(> [class*="col"] > .card > .user-card) > [class*="col"] {
    padding-left: 10px !important;
    padding-right: 10px !important;
}

/* equal-height cards; call / email buttons pinned to the bottom */
article.content .row:has(> [class*="col"] > .card > .user-card) > [class*="col"] > .card { height: 100%; }

article.content .card-body.user-card {
    padding: 22px 22px 18px !important;
    display: flex;
    flex-direction: column;
}

article.content .user-card > *:last-child { margin-top: auto; }

article.content .user-card h4 {
    font-size: 18px !important;
    margin-top: 14px !important;
    margin-bottom: 2px !important;
    color: var(--p-title) !important;
}

article.content .user-card hr { margin: 14px 0 !important; opacity: .6; }


/* ---------------------------------------------------------------------
   10. Dashboard – lists inside section cards sit flat
       (Notifications, Calendar: no box-in-a-box border around the grid
       or the "No data to display" message)
   --------------------------------------------------------------------- */
article.content .dashboard-section dxbl-grid.dxbl-grid {
    border: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    animation: none !important;
}

article.content .dashboard-section .dxbl-grid-table tbody tr:last-child td { border-bottom: 0 !important; }

article.content .dashboard-section .dxbl-grid-empty-data-area,
article.content .dashboard-section .dxbl-grid-empty-data { border: 0 !important; }


/* ---------------------------------------------------------------------
   11. Schedule & Location Schedule – easier to scan
       The app paints each shift cell with an INLINE location colour
       (style="background-color:#… !important"), which CSS cannot replace.
       Instead a soft wash is laid over the cell, leaving a solid 4px
       location strip on the left: the rows read as calm text, the colour
       still says where. Leave / sick blocks get a lighter wash (about half
       strength) plus a bold label, so they stay the stand-out exceptions
       without shouting. Works for both schedule pages.
   --------------------------------------------------------------------- */
:root {
    --sc-wash: rgba(255, 255, 255, .66);
    --sc-wash-leave: rgba(255, 255, 255, .52);
}

html:has(link[href*="fluent-dark"]) {
    --sc-wash: color-mix(in srgb, var(--p-surface) 72%, transparent);
    --sc-wash-leave: color-mix(in srgb, var(--p-surface) 58%, transparent);
}

article.content td.schedule-cell {
    position: relative;
    padding: 6px 5px 6px 9px !important;
    border-color: var(--p-surface) !important;
}

article.content td.schedule-cell::before {
    content: "";
    position: absolute;
    inset: 0 0 0 4px;              /* leave the left 4px as the location strip */
    background: var(--sc-wash);
    pointer-events: none;
}

article.content td.schedule-cell:not(.schedule-standard-shift):not(.schedule-rest-day)::before { background: var(--sc-wash-leave); }
article.content td.schedule-cell.schedule-rest-day::before { inset: 0; }

/* one line per shift: "07:00 - 16:00 (ECO)" */
article.content td.schedule-cell .schedule-cell-content {
    position: relative;
    z-index: 1;
    color: var(--p-ink) !important;
    font-size: 12px;
    white-space: nowrap;
}

article.content td.schedule-cell .schedule-shift-time { gap: 4px; }
article.content td.schedule-cell .tooltip-container { color: var(--p-ink-2); font-size: 11px; }

/* VL / SL / TIL labels */
article.content td.schedule-cell:not(.schedule-standard-shift):not(.schedule-rest-day) .schedule-cell-content {
    font-weight: 700;
    letter-spacing: .04em;
}

/* the schedule grids have an empty toolbar strip above the search box */
article.content dxbl-grid.dxbl-grid:has(td.schedule-cell) .dxbl-grid-toolbar-container:not(:has(.dxbl-toolbar-item)) { display: none !important; }


/* ---------------------------------------------------------------------
   12. Pending leave – clearer cross-hatch
       The app's hatch sits UNDER the wash from section 11, so it faded.
       Redraw the stripes on top of the wash (bolder, 3px on / 5px off).
   --------------------------------------------------------------------- */
:root { --sc-hatch: rgba(0, 0, 0, .20); }
html:has(link[href*="fluent-dark"]) { --sc-hatch: rgba(255, 255, 255, .22); }

article.content td.schedule-cell.schedule-leave-pending:not(.schedule-standard-shift):not(.schedule-rest-day)::before,
article.content td.schedule-cell.schedule-sick-leave-pending:not(.schedule-standard-shift):not(.schedule-rest-day)::before {
    background: repeating-linear-gradient(135deg, var(--sc-hatch) 0 3px, transparent 3px 8px), var(--sc-wash-leave);
}

/* legend swatches match */
.schedule-legend-swatch.schedule-leave-pending,
.schedule-legend-swatch.schedule-sick-leave-pending {
    background-image: repeating-linear-gradient(135deg, rgba(0, 0, 0, .35) 0 2px, transparent 2px 4px) !important;
}


/* ---------------------------------------------------------------------
   13. ATTENDANCE STATUS PALETTE – one colour per meaning, every page
       Source of truth: "Attendance Status Colour Map" doc.
         red     = no show            rose         = no show, late notice
         violet  = late / undertime   light violet = late within tardy ETA
         orange  = sick               amber        = leave (pending = hatched)
         slate   = off shift / rest   blue         = on shift / other leave
         green   = time in lieu / approved
   --------------------------------------------------------------------- */
:root {
    --st-red-bg: #fde0db;     --st-red-fg: #8a2a14;     --st-red-bd: #f8a9a0;
    --st-rose-bg: #fce8e5;    --st-rose-fg: #8a2a14;    --st-rose-bd: #f5c2ba;
    --st-violet-bg: #f0ebfa;  --st-violet-fg: #4a2b8c;  --st-violet-bd: #d3c4f0;
    --st-lviolet-bg: #f6f2fc; --st-lviolet-fg: #5b3fa0; --st-lviolet-bd: #e2d8f5;
    --st-orange-bg: #ffe8dc;  --st-orange-fg: #8a3a0a;  --st-orange-bd: #ffc2a1;
    --st-amber-bg: #fef4e3;   --st-amber-fg: #6b4a00;   --st-amber-bd: #f6d9a3;
    --st-slate-bg: #eaf0f6;   --st-slate-fg: #516f90;   --st-slate-bd: #cbd6e2;
    --st-blue-bg: #e6effc;    --st-blue-fg: #1d4f91;    --st-blue-bd: #b9cff0;
    --st-green-bg: #e8f6e0;   --st-green-fg: #2f6b12;   --st-green-bd: #bfe3a8;
    --st-hatch: repeating-linear-gradient(135deg, rgba(0, 0, 0, .12) 0 3px, transparent 3px 8px);

    /* the app's own daily-attendance variables (original site.css) follow the palette too */
    --daily-attendance-no-show-bg: var(--st-red-bg);                 --daily-attendance-no-show-fg: var(--st-red-fg);
    --daily-attendance-late-no-show-bg: var(--st-rose-bg);           --daily-attendance-late-no-show-fg: var(--st-rose-fg);
    --daily-attendance-late-within-tardy-eta-bg: var(--st-lviolet-bg); --daily-attendance-late-within-tardy-eta-fg: var(--st-lviolet-fg);
    --daily-attendance-notification-sick-bg: var(--st-orange-bg);    --daily-attendance-notification-sick-fg: var(--st-orange-fg);
    --daily-attendance-late-or-undertime-bg: var(--st-violet-bg);    --daily-attendance-late-or-undertime-fg: var(--st-violet-fg);
    --daily-attendance-off-shift-bg: var(--st-slate-bg);             --daily-attendance-off-shift-fg: var(--st-slate-fg);
    --daily-attendance-others-bg: var(--st-amber-bg);                --daily-attendance-others-fg: var(--st-amber-fg);
}

html:has(link[href*="fluent-dark"]) {
    --st-red-bg: rgba(220, 53, 69, .20);      --st-red-fg: #ff9aa3;     --st-red-bd: rgba(255, 154, 163, .35);
    --st-rose-bg: rgba(255, 130, 137, .14);   --st-rose-fg: #ffb3b8;    --st-rose-bd: rgba(255, 179, 184, .30);
    --st-violet-bg: rgba(140, 100, 220, .20); --st-violet-fg: #c9b3f5;  --st-violet-bd: rgba(201, 179, 245, .30);
    --st-lviolet-bg: rgba(140, 100, 220, .12); --st-lviolet-fg: #d6c6f7; --st-lviolet-bd: rgba(214, 198, 247, .25);
    --st-orange-bg: rgba(255, 110, 40, .18);  --st-orange-fg: #ffb088;  --st-orange-bd: rgba(255, 176, 136, .32);
    --st-amber-bg: rgba(255, 174, 0, .16);    --st-amber-fg: #f5c46a;   --st-amber-bd: rgba(245, 196, 106, .32);
    --st-slate-bg: rgba(160, 180, 200, .14);  --st-slate-fg: #b8c7d6;   --st-slate-bd: rgba(184, 199, 214, .28);
    --st-blue-bg: rgba(80, 140, 230, .18);    --st-blue-fg: #9cc2f5;    --st-blue-bd: rgba(156, 194, 245, .30);
    --st-green-bg: rgba(107, 203, 0, .16);    --st-green-fg: #a9e37a;   --st-green-bd: rgba(169, 227, 122, .30);
    --st-hatch: repeating-linear-gradient(135deg, rgba(255, 255, 255, .14) 0 3px, transparent 3px 8px);
}

/* Daily Attendance tags + legend (overrides section 7's mapping) */
.daily-attendance-no-show               { --tag-bg: var(--st-red-bg);     --tag-fg: var(--st-red-fg);     --tag-bd: var(--st-red-bd); }
.daily-attendance-late-no-show          { --tag-bg: var(--st-rose-bg);    --tag-fg: var(--st-rose-fg);    --tag-bd: var(--st-rose-bd); }
.daily-attendance-late-within-tardy-eta { --tag-bg: var(--st-lviolet-bg); --tag-fg: var(--st-lviolet-fg); --tag-bd: var(--st-lviolet-bd); }
.daily-attendance-late-or-undertime     { --tag-bg: var(--st-violet-bg);  --tag-fg: var(--st-violet-fg);  --tag-bd: var(--st-violet-bd); }
.daily-attendance-notification-sick     { --tag-bg: var(--st-orange-bg);  --tag-fg: var(--st-orange-fg);  --tag-bd: var(--st-orange-bd); }
.daily-attendance-others                { --tag-bg: var(--st-amber-bg);   --tag-fg: var(--st-amber-fg);   --tag-bd: var(--st-amber-bd); }
.daily-attendance-off-shift             { --tag-bg: var(--st-slate-bg);   --tag-fg: var(--st-slate-fg);   --tag-bd: var(--st-slate-bd); }

/* Dashboard tiles: the app reuses is-danger / is-success for different
   statuses, so each tile is matched by its icon instead */
.dashboard-stat-card:has(> i.bi-people)             { --tile-bg: var(--st-blue-bg);   --tile-fg: var(--st-blue-fg); }   /* On Shift  */
.dashboard-stat-card:has(> i.bi-person-exclamation) { --tile-bg: var(--st-slate-bg);  --tile-fg: var(--st-slate-fg); }  /* Off Shift */
.dashboard-stat-card:has(> i.bi-person-x)           { --tile-bg: var(--st-red-bg);    --tile-fg: var(--st-red-fg); }    /* No Show   */
.dashboard-stat-card:has(> i.bi-clock)              { --tile-bg: var(--st-violet-bg); --tile-fg: var(--st-violet-fg); } /* Late      */
.dashboard-stat-card:has(> i.bi-heart-pulse)        { --tile-bg: var(--st-orange-bg); --tile-fg: var(--st-orange-fg); } /* Sick      */

/* Schedule legend: the "Late" clock follows the late colour */
.schedule-legend-item .bi-clock,
.schedule-legend-item .bi-clock-history { color: var(--st-violet-fg) !important; }

/* Attendance Summary / Leave pages – class-based statuses the app already sets */
/* pending leave rows (Leave Details): amber tint, hatching only in the
   status cell so a long list of pending rows stays readable */
article.content tr.attendance-pendingleave { background: none !important; }

article.content tr.attendance-pendingleave > td {
    background: var(--st-amber-bg) !important;
    color: var(--p-ink) !important;
    border-color: var(--st-amber-bd) !important;
}

article.content tr.attendance-pendingleave > td:has(.bi) { background: var(--st-hatch), var(--st-amber-bg) !important; }

article.content tr.attendance-pendingleave .text-danger { color: var(--st-amber-fg) !important; }   /* pending ≠ rejected */

article.content tr.attendance-wholeDayLeave > td,
article.content .attendance-wholedayleave { background: var(--st-amber-bg) !important; color: var(--p-ink) !important; }

article.content .attendance-late,
article.content .attendance-undertime { background: var(--st-violet-bg) !important; color: var(--st-violet-fg) !important; font-weight: 600; }

article.content tr.attendance-restDay > td,
article.content .attendance-restday { background: var(--st-slate-bg) !important; color: var(--st-slate-fg) !important; }

article.content .attendance-leavehours-neg { color: var(--st-red-fg) !important; font-weight: 600; }

/* approved / rejected icons on leave pages */
article.content .bi-check-circle.text-success { color: var(--st-green-fg) !important; }
