/* GENERAL */

:root {

  --spock-link-color: #0f69ff;
  --spock-text-very-dark-color: #1a1b24;
  --spock-text-dark-color: #2a2f45;
  --spock-text-normal-color: #4f566b;
  --spock-text-light-color: #697386;
  --spock-text-very-light-color: #a3acb9;
  --spock-text-danger-color: #d92d20;
  --spock-text-success-color: #039855;
  --spock-text-danger-dark-color: #b42318;

  --spock-bg-light-color: #f7fafc;
  --spock-bg-light-grey-color: #fcfcfd;
  --spock-bg-normal-color: #e4e7ed;
  --spock-bg-danger-color: #fef3f2;
  --spock-bg-selected-color: #eef4ff;
  --spock-bg-tooltip: #222222;

  --spock-border-light-color: #f1f1f1;

  --spock-table-header-bg-color: #f7fafc;
  --spock-form-bg-color: #f7fafc;

  --spock-upgrade-color: #6941C6;

  --spock-holiday-color: #B42318;
  --spock-holiday-border-color: #fda29b24;
  --spock-holiday-bg-color: #FEF3F2;
  /* Calendar event type accents (Calendars feature). Public Holiday reuses the holiday tokens above. */
  --spock-event-blackout-color: #B45309;
  --spock-event-blackout-bg-color: #FFFBEB;
  --spock-event-blackout-border-color: #FCD34D3D;
  --spock-event-other-color: #175CD3;
  --spock-event-other-bg-color: #EFF8FF;
  --spock-event-other-border-color: #B2DDFF66;

  --spock-special-day-color: #344054;
  --spock-special-day-bg-color: #F9FAFB;
  --spock-special-day-border-color: #EAECF0;

  /* Neutral structure lines used by the list/row designs (calendars, leave types, events).
     Hairline separates rows and section bands inside a card, card border outlines the card. */
  --spock-hairline-color: #EEF0F3;
  --spock-card-border-color: #EAECF0;

  /* Amber pill used for informational badges such as the "Default" calendar marker.
     Kept separate from the blackout event tokens: those track the event type accent
     and would drag every badge with them if that accent is ever retuned. */
  --spock-badge-amber-color: #B54708;
  --spock-badge-amber-bg-color: #FFFAEB;
  --spock-badge-amber-border-color: #FEDF89;

  --spock-video-icon-color: #E62E05;

  /* Request preview balance meter (spent | this request | remaining track) */
  --spock-meter-track-color: #e9edf2;
  --spock-meter-spent-color: #c9d0db;
  
  --spock-calendar-border-color: #FAC515;
  --spock-calendar-border-width-today: 2px;

  /*--spock-special-day-color: #C11574;*/
  /*--spock-special-day-bg-color: #FDF2FA;*/
  /*--spock-special-day-border-color: #FCCEEE;*/

  /*--spock-special-day-color: #6941C6;*/
  /*--spock-special-day-bg-color: #F9F5FF;*/
  /*--spock-special-day-border-color: #D6BBFB;*/

  /*--spock-special-day-color: #344054;*/
  /*--spock-special-day-bg-color: #F9FAFB;*/
  /*--spock-special-day-border-color: #D0D5DD;*/
}


body                                            { background-color: #e4e7ed; }
body                                            { background-color: #F3F4F6; }
/*body                                            { background-color: #F4F5F7; }*/
/*body                                            { background-color: #F2F3F5; }*/

a                                               { color: var(--spock-link-color); }
a:hover                                         { color: #1849A9; text-decoration: none;}
a:hover.underline                               { text-decoration: underline;}
a.gray                                          { color: var(--spock-text-normal-color); text-decoration: none; }
a.gray:hover                                    { color: var(--spock-text-dark-color); text-decoration: none; }
a.muted                                         { color: #738a94; }
a:hover.muted                                   { color: var(--spock-text-dark-color); }

hr                                              { border-top: 1px solid rgba(0, 0, 0, 0.05) }

.text-ideo-dark                                 { color: var(--spock-text-very-dark-color); }
.text-ideo-normal                               { color: var(--spock-text-normal-color); }
.text-ideo-light                                { color: var(--spock-text-light-color); }
.text-ideo-very-light                           { color: var(--spock-text-very-light-color); }
.text-small                                     { font-size: 13px; }
.text-ideo-danger                                    { color:var(--spock-text-danger-color); }


.bg-ideo-light                                  { background-color: #f7fafc !important; }
.bg-ideo-normal                                 { background-color: #e4e7ed !important; }

.text-success                                   { color: #039855 !important; }
.fw-medium                                      { font-weight: 500; }
.fw-bold                                        { font-weight: 600; }
label,
input[type=checkbox]                            { cursor: pointer; }

/* FIXES */
.fa                                             { text-rendering: optimizeLegibility; }

/* HEADER */
/* 15px side padding compensates Bootstrap .row negative margins — without it
   every .row overflows the mobile viewport by 15px per side. */
.main .container-fluid                          { padding: 12px 15px; }

@media (min-width: 768px) {
  .main .container-fluid                        { padding: 1.5rem 1.5rem; }
}
.app-header                                     { box-shadow: 0 3px 6px 0 rgba(60,66,87, 0.05); /*border-bottom: 1px solid #d9e0e5;*/ border-bottom: 0;  }
.app-header .workspace-logo                     { color: #999999; }
.app-header .workspace-logo strong              { color: #343f44; }
.app-header .navbar-nav                         { color:#738a94; }
.app-header .navbar-brand                       { color:#343f44; font-size: 13px; padding-left: 8px; justify-content: left; width:90px; }
.app-header .top-spacer                         { width:18px; }
.app-header .nav-item.active a.nav-link         { font-weight: 600; }
.app-header .nav-item a.nav-link                 { font-weight: 500; }
.badge.pending-requests-badge                   { position: absolute; top: 50%; right: 0%; left:auto; margin-top: -17px; margin-left: 0; background-color: #e53e3e; color: #ffffff; padding-right: 0.6em; padding-left: 0.6em; border-radius: 10rem; }
.badge.pending-requests-badge.top-menu-badge    { left:auto !important; }
.badge.pending-requests-badge.member            { left:100% !important; top: 0% !important; right: auto !important; margin-top: 1px; margin-left: 5px; }
.badge.pending-requests-badge.left-menu-badge   { left:100% !important; top: 0% !important; right: auto !important; margin-top: 3px; margin-left: 5px; }
.badge-wrap                                     { display: inline-block; position: relative; }
.app-header .request-button                     { margin-right: 1rem; }
.app-header .request-button i                   { color: var(--spock-link-color); }
/* Desktop widths: one header row. Between 992 and 1199px the full menu (7 links + search +
   Request Leave + avatar and name) is wider than the header, so it wrapped and pushed the user
   menu under the logo. Keep one row and make the pieces narrower instead. */
@media (min-width: 992px)                       { .app-header { flex-wrap: nowrap; } }
@media (min-width: 992px) and (max-width: 1199.98px) {
  .app-header .navbar-nav.d-md-down-none .nav-item { padding-left: 6px !important; padding-right: 6px !important; }
  .app-header .user-menu-name                   { display: none; }
  .app-header .navbar-nav.mr-4                  { margin-right: 12px !important; }
}
@media (min-width: 992px) and (max-width: 1099.98px) {
  /* Request Leave shows its + icon only; the link keeps the full name in its title */
  .app-header .request-button .request-label    { display: none; }
  .app-header .request-button                   { margin-right: 8px; }
}
/* TRIAL EXPIRED  */
.trial-info                         { margin-right: auto; margin-left: auto; text-align: center; margin-bottom: 1.5rem; }
.trial-info .trial-badge,
.trial-info .admin-info             { font-size: 12px; font-weight: normal; }
.trial-info .trial-badge i          { color: #fff033; }
.trial-info .badge.normal           { background-color: #fdf9ea; color: #8d3d19; }
.trial-info .badge.launch           { background-color: #F6FEF9; color: #027A48; }
.trial-info .badge.expired          { background-color: #FF453A; color: #ffffff; }

/* HelpScout Help */
.inline-help-icon                   { color: var(--spock-link-color); }
.inline-help-icon                   { color: #B3B8DB; }

/* Video Modal */
.video-modal.modal-dialog                       { width: 100%; height:100%; max-width:none; }
/* Wrapper sizes to its content: video_modal.html renders a pill button, not the
   old 18x18 svg icon, so a fixed box made the button overflow and sit off-centre
   next to the Help chip. The svg rule below still pins the icon size if one is
   ever rendered again. */
.video-modal-icon                               { display: inline-flex; align-items: center; cursor: pointer; }
.video-modal-icon #Solid                        { fill: var(--spock-video-icon-color); }
.video-modal-icon svg                           { width: 18px; height: 18px; }

/* CARD */
.card                                           { box-shadow: 0 1px 0 rgba(15, 19, 38, .04), 0 12px 40px -12px rgba(15, 19, 38, .18); border: 1px solid #E5E8F2; border-radius: 8px; }
.card.top-tabs                                  { box-shadow: 0 7px 7px 0 rgba(60,66,87, 0.1), 0 3px 3px 0 rgba(0, 0, 0, .07); border:0; border-radius: 0 0 0.25rem 0.25rem; }
.card.top-tabs .card-header                     { border-top-left-radius:0; }
.card.form-card                                 { background-color: var(--spock-bg-light-color); border: 1px solid #e7e9ee; border-radius: 12px; }
.card.form-card.bordered                        { box-shadow: none; border:1px solid var(--spock-border-light-color); }
.card.form-card hr                              { border-top:1px solid #e5e7eb; margin-top: 1.5rem; margin-bottom: 1.5rem; }
/* Outer form-card header: refined to match the new section aesthetic — white
   surface, 12px top corners, slightly heavier title typography. */
.card.form-card > .card-header                  { background-color: #ffffff; border-bottom: 1px solid #e7e9ee; border-top-left-radius: 12px; border-top-right-radius: 12px; padding: 1rem 1.25rem; font-size: 18px; font-weight: 600; letter-spacing: -0.01em; color: var(--spock-text-very-dark-color); }
.card-header                                    { padding: 1rem; font-size: 16px; font-weight: 500; line-height: 24px; color:#2a2f45; background-color: #ffffff; border-bottom: 1px solid #e3e8ee; border-top-left-radius: 8px; border-top-right-radius: 8px; }
.card-header:first-child                        { border-top-left-radius: 8px; border-top-right-radius: 8px;   }
.card-header.list-header                        { padding: 1rem 1.25rem; font-size: 18px; font-weight: 600; line-height: 36px; }
.card-header .desc                              { font-size: 14px; font-weight: 300; color:#4f566b; }
.card-header .desc strong                       { font-weight: 500; color: #2a2f45; }
.card-header.no-border                          { border-bottom: 0; }
.card-header .team-logo                         { margin-right: 6px; border-radius: 2px; height:24px; }
.card-footer                                    { background-color: #ffffff; border-top: 1px solid #e3e8ee;  }
.card-footer:last-child                         { border-bottom-left-radius: 8px; border-bottom-right-radius: 8px;}

.card-body                                      { padding-top: 1rem; padding-bottom: 1rem; }
.card-body.no-padding                           { padding:0; }
.app-footer                                     { border-top: 0; background-color:transparent; color: var(--spock-text-very-light-color); }
.app-footer a:hover                             { text-decoration: underline; }
.app-footer .footer-logo                        { height:36px; }
.app-footer .info                               { padding-left: 32px; }
.card-body.bg-people                            { background-color: #f9fafb; }



/* TABLES */
table.ideo-table                                { margin-bottom: 1.5rem; }
table.ideo-table.top-border                     { border-top: 1px solid #e3e8ee; }
table.ideo-table th                             { font-weight: 400; color: var(--spock-text-light-color); background-color: var(--spock-table-header-bg-color); text-align: center; border-bottom: 1px solid #e3e8ee; border-top: 0; padding: 8px; line-height: 20px; font-size: 13px; text-transform: capitalize; }
table.ideo-table td                             { border-bottom: 1px solid var(--spock-border-light-color); padding: 8px; color: #2a2f45;  border-top: 1px solid var(--spock-border-light-color); }
table.ideo-table.table-hover tbody tr:hover     { background-color: #F9FAFB; }
table.ideo-table tr.clickable-row:hover         { cursor: pointer; }
table.ideo-table tr.clickable-row:hover a       { color: #2a2f45;}
table.ideo-table.wrapped                        { margin-bottom: 0;}
table.ideo-table tr.table-warning>td            { background-color: #FEFCE9; }

table.ideo-data-table                           { }
table.ideo-data-table th                        { font-weight: 500; color: var(--spock-text-dark-color); text-align: right; padding: 8px; line-height: 20px; vertical-align: top; }
table.ideo-data-table td                        { padding: 8px; color: var(--spock-text-normal-color);  }
table caption                                   { caption-side: top; padding-left: 12px; border-top-right-radius: 8px; border-top-left-radius: 8px;  }
table caption.bg                                { background-color: var(--spock-bg-light-grey-color); }
table caption .title                            { font-size: 16px; color: var(--spock-text-dark-color); font-weight: 500; }
table caption .sub-title                        { font-size: 14px; color: var(--spock-text-very-light-color);  }
.table-wrap                                     { border-top: 1px solid var(--spock-border-light-color); border-left: 1px solid var(--spock-border-light-color); border-right: 1px solid var(--spock-border-light-color); border-top-left-radius: 8px; border-top-right-radius: 8px; }

table#absence-types-table td                    { padding: 12px 8px 9px; }


/* BADGES */
.color-badge                                     { display: inline-block; padding-top: 4px;  padding-bottom: 3px; font-size: 1em; line-height: 1em; font-weight: 600; text-align: center;  white-space: nowrap; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none;  border-radius:6px;  }
.color-badge.green                               { background-color:#d8f6ea; border: 1px solid #a2d9c5; color: #0e4833; }
.color-badge.yellow                              { background-color:#f9edc7; border: 1px solid #f9edc7; color: #63321c; }
.color-badge.red                                 { background-color:#ffe3e3; border: 1px solid #f2c7c7; color: #580e10; }
.color-badge.gray                                { background-color:#e8e8e8; border: 1px solid #e8e8e8; color: #2d2d2d; }
.yesno-badge                                     { width: 40px; }

.color2-badge                                     { display: inline-block; padding: 4px 6px 3px 6px; font-size: 1em; line-height: 1em; font-weight: 600; text-align: center;  white-space: nowrap; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none;  border-radius: 8px;  }
.color2-badge.green                               { background-color:#7ED321; border: 1px solid #7ED321; color: #fff; }
.color2-badge.yellow                              { background-color:#f9edc7; border: 1px solid #f9edc7; color: #63321c; }
.color2-badge.red                                 { background-color:#ffe0e0; border: 1px solid #ffe0e0; color: #6f2323; }
.color2-badge.gray                                { background-color:#e8e8e8; border: 1px solid #e8e8e8; color: #2d2d2d; }


.ideo-badge                                     { white-space:nowrap; display: inline-block; border: 1px solid #E9EAEB; border-radius: 6px; background-color: #F5F5F5; padding: 4px 8px 3px 8px; color: #4D4F5C; text-transform: uppercase; font-size: 12px; font-weight: 600; box-shadow:none; }
.ideo-badge.purple                              { background-color: #F4EBFF; color: #6941C6; border: 1px solid #E9D7FE; }
.ideo-badge.green                               { color: #027A48; background-color: #ECFDF3; border: 1px solid #ABEFC6; }
.ideo-badge.red                                 { background-color: #FEE4E2; color: #c9495f; border: 1px solid #FECDCA; }
.ideo-badge.orange                              { background-color:#FEF0C7; color: #B54708; border: 1px solid #FEDF89; }


.badge-std                                      { display: inline-block; margin-bottom: 4px; border-radius: 20px; padding: 2px 10px 3px 10px; background-color: #F2F4F7; line-height: 16px; font-weight: 500; font-size: 12px; color: #4f566b;  }
.badge-std.dark                                 { color:#f5f5f5; background-color: #73818F; }
.badge-std.administrator                        { color:#344054; background-color: #F9FAFB; border: 1px solid #EAECF0; }
.badge-std.items-count                          { color:#363F72; background-color: #F8F9FC; }
.badge-std.grey                                 { color:#363F72; background-color: #F8F9FC; }
.badge-std.general-manager                      { color:#6941C6; background-color: #F9F5FF; border: 1px solid #E9D7FE; }
.badge-std.purple                               { color:#6941C6; background-color: #F9F5FF; }
.badge-std.team-manager                         { color:#026AA2; background-color: #EFF8FF; border: 1px solid #B2DDFF; }
.badge-std.member                               { color:#067647; background-color: #ECFDF3; border: 1px solid #ABEFC6; }
/* Typed chip variants; default .holiday-name styling remains the Public Holiday look.
   The #absences-calendar selectors match the ID-scoped base rule's specificity -
   without them the red "#absences-calendar .holiday-name" rule wins over the type colors. */
.holiday-name.event-chip-blackout,
#absences-calendar .holiday-name.event-chip-blackout { color: var(--spock-event-blackout-color); background-color: var(--spock-event-blackout-bg-color); border-color: var(--spock-event-blackout-border-color); }
.holiday-name.event-chip-event,
#absences-calendar .holiday-name.event-chip-event    { color: var(--spock-event-other-color); background-color: var(--spock-event-other-bg-color); border-color: var(--spock-event-other-border-color); }
.wallchart-event-dot                            { display: inline-block; width: 8px; height: 8px; border-radius: 50%; }
.wallchart-event-dot.event-chip-blackout        { background-color: var(--spock-event-blackout-color); }
.wallchart-event-dot.event-chip-event           { background-color: var(--spock-event-other-color); }
/* Member year calendar: unified chip for calendar events (public holiday,
   blackout, company event). Leave-block footprint, but a distinct family:
   a small type emoji (🎉 / ⚫️ / 📅) on a soft tint - transparent for
   holidays, whose cell already carries the red tint. Leave blocks stay
   solid pastel chips with dark initials. Default look is Public Holiday. */
.member-cal-event-chip                          { display: block; width: 100%; box-sizing: border-box; margin-top: 1px; padding: 2px; border-radius: 4px; cursor: pointer; border: 1px solid transparent; background-color: transparent; }
.member-cal-event-chip.event-chip-blackout      { border-color: var(--spock-event-blackout-border-color); background-color: var(--spock-event-blackout-bg-color); }
.member-cal-event-chip.event-chip-event         { border-color: var(--spock-event-other-border-color); background-color: var(--spock-event-other-bg-color); }
.member-cal-event-chip .event-chip-icon         { display: block; font-size: 10px; line-height: 12px; text-align: center; }
/* Event type badges: color never the sole carrier, the label always names the type */
.badge-std.badge-type-public_holiday            { color: var(--spock-holiday-color); background-color: var(--spock-holiday-bg-color); border: 1px solid var(--spock-holiday-border-color); }
.badge-std.badge-type-blackout                  { color: var(--spock-event-blackout-color); background-color: var(--spock-event-blackout-bg-color); border: 1px solid var(--spock-event-blackout-border-color); }
.badge-std.badge-type-event                     { color: var(--spock-event-other-color); background-color: var(--spock-event-other-bg-color); border: 1px solid var(--spock-event-other-border-color); }
.badge-std.green                                { color:#2c6148; background-color: #d3f2cc; }
.badge-std.blue                                 { color:#494ca8; background-color: #daeafd; }
.badge-std.red                                  { color:#a94c6b; background-color: #f4e4df; }
.badge-std.yellow                               { color:#21201c; background-color: #ffea00; }
.badge-std.small                                { font-size: 10px; font-weight: 400; line-height: 15px; padding: 1px 6px; }
.badge-std.icon                                 { font-size: 10px; font-weight: 400; line-height: 15px; padding: 1px 4px; border-radius: 4px; }
.badge-std.bold                                 { font-weight: 600; }

.badge-role                                     { display:inline-block; padding: 3px 4px 3px 4px; border-radius: 4px; font-size: 10px; font-weight: 600; line-height: 12px; text-align: center; white-space: nowrap; color: #F9FAFB; background-color: #4263EB; user-select: none; -webkit-font-smoothing: antialiased; }
.badge-role.administrator                       { width: 32px; color: #0005119e; background-color: #F9FAFB; box-shadow: inset 0 0 0 1px #02022c26; }
.badge-role.general-manager                     { width: 24px; color: #953ea3; background-color: #8e00dd12; box-shadow: inset 0 0 0 1px #9600ad3c; }
.badge-role.team-manager                        { width: 24px; color: #0072de; background-color: #f2f9ffcc; box-shadow: inset 0 0 0 1px #006fe18c; }
.badge-role.member                              { width: 56px; color: #067647; background-color: #ecfdf3; box-shadow: inset 0 0 0 1px #abeec696; }
.badge-ampm                                     { color: #2a2f45; background-color: #e4e7ed; }

/* ICONS */

i.fas.danger                                    { color:var(--spock-text-danger-color); }

/* BUTTONS */
a.nxt-btn:hover                                 { color: #ffffff; }
.nxt-btn                                        { display: inline-block; outline: 0; border: 1px solid #ccdfeb; color: #738a94; text-decoration: none!important; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; fill: #738a94; border-radius: 5px; transition: none; -webkit-font-smoothing: subpixel-antialiased; }
.nxt-btn span                                   { display: block; padding: 0 14px; height: 37px; font-size: 13px; line-height: 37px; font-weight: 400; text-align: center; border-radius: 4px; }
.nxt-btn-blue                                   { padding: 1px; border: 0; color: #fff; text-shadow: 0 -1px 0 rgba(0,0,0,.1); fill: #fff; background: linear-gradient(#3da1d6,#2288bf); box-shadow: 0 1px 0 rgba(0,0,0,.12); transition: none!important; }
.nxt-btn-blue span                              { background: linear-gradient(#4fb7f0,#29a0e0 60%,#29a0e0 90%,#36a6e2); box-shadow: inset 0 1px 0 hsla(0,0%,100%,.1); }
.nxt-btn-green                                  { padding: 1px; border: 0; color: #fff; text-shadow: 0 -1px 0 rgba(0,0,0,.1); fill: #fff; background: linear-gradient(#99bf38,#83a333); box-shadow: 0 1px 0 rgba(0,0,0,.12); transition: none!important; }
.nxt-btn-green span                             { background: linear-gradient(#a9d145,#97bc38 60%,#97bc38 90%,#96ba3b); box-shadow: inset 0 1px 0 hsla(0,0%,100%,.1); }
.nxt-btn-red                                    { padding: 1px; border: 0; color: #fff; text-shadow: 0 -1px 0 rgba(0,0,0,.1); fill: #fff; background: linear-gradient(#bf4737,#a34033); box-shadow: 0 1px 0 rgba(0,0,0,.12); transition: none!important; }
.nxt-btn-red span                               { background: linear-gradient(#d15545,#bd4839 60%,#bd4839 90%,#ba4a3c); box-shadow: inset 0 1px 0 hsla(0,0%,100%,.1); }

.btn.btn-round                                  { font-size:12px; border-radius: 1rem; padding: 0.2rem 1rem !important; background-color: #0D8AC7; border-color: #0D8AC7; text-transform: uppercase; font-weight: 400; letter-spacing: 0.5px; }
.btn.btn-round.btn-shadow                       { box-shadow: 0 1px 3px hsla(0,0%,0%,.2); }
.btn.btn-round.dark-gray                        { background-color: #515863; border-color: #515863; color: #ffffff; }
.btn.btn-round.dark-gray-white                  { background-color: transparent; border-color: #515863; color: #515863; border-width: 2px; }
.btn.btn-round.green                            { background-color: #3c9c2c; border-color: #3c9c2c; color: #ffffff; font-weight: 600;}
.btn.btn-round.red                              { background-color: #d83135; border-color: #d83135; color: #ffffff; font-weight: 600;}
.btn.btn-round.light-blue                       { background-color: #64B1E5; border-color: #64B1E5; color: #ffffff; font-weight: 600; }
.btn.btn-round.blue                             { background-color: #0D8AC7; border-color: #0D8AC7; color: #ffffff; }
.btn.btn-round.blue-white                       { background-color: transparent; color: #0D8AC7; border-color: #0D8AC7; border-width: 2px; }

.btn-std                                        { border:0; background-color: #ffffff; color:#4f566b; line-height: 20px; min-height: 28px; font-size: 14px; font-weight: 500; padding: 5px 10px; border-radius: 4px; box-shadow: 0 0 0 1px rgba(42,47,69, 0.1), 0 2px 5px 0 rgba(42,47,69, 0.08), 0 1px 1.5px 0 rgba(0,0,0, 0.07), 0 1px 2px 0 rgba(0,0,0, 0.08); box-sizing: border-box; opacity: 0.99; white-space: nowrap; }
.btn-std:hover                                  { color: #2a2f45; box-shadow: 0 0 0 1px rgba(42,47,69, 0.1), 0 2px 5px 0 rgba(42,47,69, 0.1), 0 3px 9px 0 rgba(42,47,69, 0.08), 0 1px 1.5px 0 rgba(0,0,0, 0.08), 0 1px 2px 0 rgba(0,0,0, 0.08); }
.btn-std:active                                 { color: #2a2f45; box-shadow: 0 0 0 1px rgba(42,47,69, 0.08), 0 2px 5px 0 rgba(42,47,69, 0.06), 0 1px 1.5px 0 rgba(0,0,0, 0.05), 0 1px 2px 0 rgba(0,0,0, 0.06); }
.btn-std:focus                                  { box-shadow: 0 0 0 1px rgba(42,47,69, 0.1), 0 2px 5px 0 rgba(42,47,69, 0.08), 0 1px 1.5px 0 rgba(0,0,0, 0.07), 0 1px 2px 0 rgba(0,0,0, 0.08); outline: none; }
.btn-std:disabled                               { box-shadow: 0 0 0 1px rgba(42,47,69, 0.1), 0 2px 5px 0 rgba(42,47,69, 0.06), 0 1px 1px 0 rgba(0,0,0, 0.04), 0 1px 2px 0 rgba(0,0,0, 0.04); opacity: 0.5; pointer-events: none; }
.btn-std.submit-button                          { color: #e9f2f6; border: 1px solid #3373db; font-weight: 600; background-color: #3B86FF; box-shadow: 0 0 0 1px rgba(31,154,225, 0.1), 0 2px 5px 0 rgba(31,154,225, 0.08), 0 1px 1.5px 0 rgba(0,0,0, 0.07), 0 1px 2px 0 rgba(0,0,0, 0.08), 0 0 0 0 transparent; }
.btn-std.submit-button.red                      { color: #f6e9e9; border: 1px solid #db3333; background-color: #ff3b3b; box-shadow: 0 0 0 1px rgba(226, 40, 40, 0.1), 0 2px 5px 0 rgba(31,154,225, 0.08), 0 1px 1.5px 0 rgba(0,0,0, 0.07), 0 1px 2px 0 rgba(0,0,0, 0.08), 0 0 0 0 transparent; }
.btn-std.submit-button.red:hover                { color: #ffffff; background-color: #dc2626; border-color: #b91c1c; box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.2), 0 3px 8px 0 rgba(220, 38, 38, 0.2), 0 1px 1.5px 0 rgba(0,0,0, 0.14), 0 1px 2px 0 rgba(0,0,0, 0.16), 0 0 0 0 transparent; }
.btn-std.submit-button.pink                     { color: #fafafa; border: 1px solid #a933d5; background-color: #c63bf7; }
.btn-std.submit-button:hover                    { color: #ffffff; box-shadow: 0 0 0 2px rgba(60,107,144, 0.1), 0 3px 8px 0 rgba(144,60,60, 0.16), 0 1px 1.5px 0 rgba(0,0,0, 0.14), 0 1px 2px 0 rgba(0,0,0, 0.16), 0 0 0 0 transparent; }
.btn-std.skip-button                            { color: #999999; font-weight: 600; background-color: #ffffff; }
.btn-std.skip-button:hover                      { color: #666666; font-weight: 600; background-color: #ffffff; }
.btn-std.big                                    { min-height: 32px;  padding: 3px 20px 4px 20px; font-size: 14px; }
.btn-std.icon                                   { padding: 5px 12px; }
.btn-std.round-icon                             { border-radius: 10px; padding: 0px 5px; min-height: 14px;  }
.btn-std.selected                               { color: #2a2f45; font-weight: 600; }
.btn-std.small                                  { border-radius: 4px; min-height: 18px; line-height: 18px; font-size: 12px; padding: 3px 6px;}
.btn-std.smaller-text                           { font-size: 13px; }
.btn-std.bigger                                 { min-height: 36px;  padding: 5px 20px 6px 20px; font-size: 16px; font-weight: 600; }
.btn-std.biggest                                { min-height: 36px;  padding: 7px 24px 8px 24px; font-size: 18px; font-weight: 600; }
.btn-std.help,
.btn-std.mini                                   { border-radius: 4px; min-height: 16px; line-height: 16px; font-size: 11px; padding: 2px 6px;}
.btn-std.mini.orange                            { background-color: #FEF6EE; border-color: #F9DBAF; color: #B93815;}
.btn-std.mini.purple                            { background-color: #F4F3FF; border-color: #D9D6FE; color: #5925DC;}
.btn-std.help,
.btn-std.mini.sea                               { background-color: #F0F9FF; border-color: #B9E6FE; color: #026AA2;}
.btn-std.mini.gray                              { background-color: #FAFAFA; border-color: #E9EAEB; color: #414651;}
.btn-std.mini.red                               { background-color: #FEF3F2; border-color: #FECDCA; color: #B42318;}
.btn-std.primary-button                         { color: #fff; padding:3px 10px 4px 10px; font-size: 13px; border: 1px solid #3373db; font-weight: 600; background-color: #3B86FF;box-shadow: 0 0 0 1px rgba(31,154,225, 0.1), 0 2px 5px 0 rgba(31,154,225, 0.08), 0 1px 1.5px 0 rgba(0,0,0, 0.07), 0 1px 2px 0 rgba(0,0,0, 0.08), 0 0 0 0 transparent;}
.btn-std.primary-button:hover                   { color: #ffffff; box-shadow: 0 0 0 2px rgba(60,107,144, 0.1), 0 3px 8px 0 rgba(144,60,60, 0.16), 0 1px 1.5px 0 rgba(0,0,0, 0.14), 0 1px 2px 0 rgba(0,0,0, 0.16), 0 0 0 0 transparent; }
.btn-ideo                                       { font-weight: bold; height:35px; border:0; background: linear-gradient(#28a0e5,#015e94); box-shadow: 0 1px 1px rgba(0,0,0,.16); box-sizing: border-box; border-radius:6px; padding: 1px; display: inline-block; }
.btn-ideo span                                  { height:33px; line-height:14px; font-size: 14px; background: linear-gradient(#7dc5ee,#008cdd 85%,#30a2e4); color: #ffffff; text-shadow: 0 1px 1px rgba(0,0,0,.53); padding: 7px 24px 9px 24px; border-radius:5px; }
.btn-ideo.red                                   { background: linear-gradient(#d04d37,#bd4b38);  }
.btn-ideo.red span                              { background: linear-gradient(#d04d37,#bd4b38 85%,#e25842); }
.btn-ideo.green                                 { background: linear-gradient(#27e527,#019401);  }
.btn-ideo.green span                            { background: linear-gradient(#7eed7e,#00de00 85%,#30e330); }

.btn-rdx {
  background-color: color(display-p3 0.547 0.553 0.592); /* Grey */
  color: rgb(255, 255, 255); /* White text */
  padding: 0px 12px;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 32px;
  transition: all;
  box-shadow: 
    inset 0px 0px 0px 1px rgba(1, 1, 47, 0.091),
    inset 0px -2px 1px 0px rgba(1, 1, 52, 0.059),
    inset 0px 0px 0px 1px rgb(140, 141, 151),
    inset 0px 4px 2px -2px rgba(255, 255, 255, 0.7),
    inset 0px 2px 1px -1px rgba(255, 255, 255, 0.7);
}

/* FORMS */
/* Field labels sit one step below section titles on the text ramp — the
   very-dark tier is reserved for headings and values. */
form.ideo-form label                            { font-weight: 500; margin-bottom: 0.25rem; color: var(--spock-text-dark-color); }
form.ideo-form label.check-box-label            { font-weight: 400; color:#4f566b; cursor: pointer; }
form.ideo-form label.error                      { color:#dc3545; }
form.ideo-form label.section                    { color:var(--spock-text-very-dark-color); font-weight: 600; font-size: 16; }

form.ideo-form strong.required                  { color:#dc3545; }
form.ideo-form .help-block                      { font-style: italic; font-size: 12px; margin-left: 2px; }
form.ideo-form .label-desc                      { font-style: italic; font-size: 12px; }
form.ideo-form label.muted                      { font-weight: normal; }
form.ideo-form label .muted,
form.ideo-form label .optional                  { font-weight: 200; color: #697386; }
form.ideo-form .card-body                       { padding-top: 1rem; }
form.ideo-form .card-body.no-gutter             { padding: 0rem; }
form.ideo-form ul.errorlist                     { list-style-type: none; padding-left: 0; color: #ee0000; margin-bottom: 0; }
form.ideo-form .form-warning                    { color: #ec6b69; font-size: 13px; }
form.ideo-form .form-desc                       { color: #777777; font-size: 13px; }
form.ideo-form .form-desc.check-box-label       { margin-left: 19px; }
form.ideo-form .form-desc.select-label          { margin-left: 4px; margin-top: 4px; }
form.ideo-form .form-desc.explanation           { margin-bottom: 1rem; }
form.ideo-form label.radio-label                { font-weight: normal; margin-right: 18px; }
form.ideo-form label.radio-label input          { margin-right: 2px; }
form.ideo-form .form-control:disabled           { background-color: #f4f5f6; }
a.cancel-link                                   { color:#697386; margin-left: 16px; }
a.cancel-link:hover                             { color:#4f566b; }



.upgrade-notice                             { display: flex; margin-top: 4px; }
.upgrade-notice .upgrade-icon               { display: inline-block }
.upgrade-notice .upgrade-icon #Solid        { fill: var(--spock-upgrade-color); }
.upgrade-notice .upgrade-icon #Icon         { stroke: var(--spock-upgrade-color); }
.upgrade-notice .upgrade-text               { display: inline-block; margin-top: 4px; margin-left: 4px; }
.upgrade-notice .upgrade-text a             { color: var(--spock-upgrade-color); }
.upgrade-notice .upgrade-text               { color: var(--spock-upgrade-color); }
.upgrade-notice.request-leave-recurring,
.upgrade-notice.request-leave-form          { margin-bottom: 4px; }
.form-group.to-upgrade                      { margin-bottom: 0; }

.upgrade-alert                              { border: 1px solid #E9D7FE; background-color: #F9F5FF; color: #6941C6; padding:12px 12px 14px 12px; border-radius: 8px; }
.upgrade-alert .upgrade-text                { margin-left: 8px;}
.upgrade-alert .upgrade-text a              { font-weight: bold; text-decoration: underline; }

#member-work-form .upgrade-notice           { margin-top: 16px; margin-bottom: 8px;}

input[type="radio"].form-control                { display: inline-block; margin-right: 2px; width: auto; height:auto; }
ul.form-control                                 { list-style-type: none; padding-top: 8px; height:auto; border-radius: 0.5rem; }
ul.form-control li                              { margin-bottom: 2px; }
ul.form-control label.selected                  { color: #111; }

#settings-workspace .ical-items                 { padding-top: 1rem;}
#settings-workspace .ical-items li.form-group   { margin-bottom: 1.25rem;}
#settings-workspace .ical-items .form-check     { padding-left: 0.5rem;}

/* SECTION FORM */
.section-form                                   { }
.section-form .form-header                      { padding-top: 2rem; padding-bottom: 1rem; border-bottom: 1px solid var(--spock-border-light-color); }
.section-form .form-header .title               { font-size: 18px; font-weight: 600; color: var(--spock-text-dark-color); line-height: 27px; }
.section-form .form-header .description         { font-size: 14px; color: var(--spock-text-light-color); line-height: 27px; }
.section-form .form-section                     { padding-top: 1.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--spock-border-light-color); }
.section-form .form-section.no-border           { border-bottom: none; }
.section-form .form-section .caption            { font-size: 14px; font-weight: 600; color: var(--spock-text-very-dark-color);  }
.section-form .form-section .caption.error      { color: var(--spock-text-danger-color);  }
.section-form .form-section .label-description  { font-size: 13px; color: var(--spock-text-light-color); line-height: 18px; }
.section-form .form-section .input-wrap         {  }
.section-form .form-section .label-wrap         {  }
.section-form .error-message                    { color: var(--spock-text-danger-color); margin-top: 2px; }
.section-form ul.errorlist                      { list-style-type: none; padding-left: 0; color: #ee0000; margin-bottom: 0; }
.section-form .submit-section                   { padding-top: 1.5rem; display: flex; justify-content: space-between; align-items: center; }
.section-form label.label-select                { margin-bottom: 0; font-weight: 500; color: var(--spock-text-dark-color); }

.section-form .form-header-desc                 { font-size: 14px; color: var(--spock-text-normal-color); line-height: 18px; font-weight: 400;}

/* Delete Team Link */
.section-form #delete-team-link                 { color: #dc2626; text-decoration: none; font-weight: 500; }

/* Delete Section */
.section-form #delete-section                     { display: none; background-color: #f1000007; border: 1px solid #e8000040; margin-top: 1.5rem; padding-top: 1.5rem; padding-left: 1rem; border-radius: 8px;}
.section-form #delete-section .caption            { color: #991b1b; margin-bottom: 0.5rem; font-size: 16px; }
.section-form #delete-section .label-description  { color: #991b1b; margin-bottom: 0.5rem; }
.section-form #delete-section .form-check         { margin-bottom: 1rem; }
.section-form #delete-section .form-check-input   { margin-top: 0.25rem; }
.section-form #delete-section .form-check-label   { font-weight: 500; color: #991b1b; }
.section-form #delete-button-wrapper              { display: none; }

/* MISC */
.box-banner                                     { position: relative; }
.box-banner-fill                                { position: absolute; left: 0; right: 0; z-index: 5; border-top: 1px solid #a450b5; border-radius: 4px 4px 0 0; text-align: center; line-height: 0; pointer-events: none; }
.box-banner-data                                { position: relative; box-sizing: border-box; display: inline-block; height: 14px; padding: 2px; background-color: #a450b5; color: #fff; font-size: 10px; line-height: 10px; font-weight: 700; }

.alert                                          { border-width: 0; border-left-width: 0px; box-shadow: 0px 2px 2px -1px #0A0D120A; box-shadow: 0px 4px 6px -2px #0A0D1214; border-radius: 8px; }
.alert-success                                  { background-color: #ECFDF3;  color: #027A48; font-weight: 500; border-color: #027A48; }
.alert-error                                    { background-color: #FFFBFA;  color: #B42318; font-weight: 500; border-color: #B42318; }
.alert-warning                                  { background-color: #fdecc8;  color: #402c1b; border-color: #A15C07 }

/* Spock Callout (Radix UI style) */
.spock-callout {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 6px;
  margin-top: 1rem;
  font-size: 14px;
  line-height: 1.5;
  background-color: #06065d06;
  color: #0005119e;
  border: 1px solid var(--spock-border-light-color);
}

.spock-callout.blue {
  background-color: #002ae507;
  color: #1f2d5c;
  border: 1px solid #0036ff3b;
}

.spock-callout__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  color: var(--spock-text-normal-color);
}


.spock-callout__icon .fa {
  font-size: 16px;
}
.spock-callout__text {
  flex: 1;
  margin: 0;
  min-width: 0;
}
.spock-callout__text a,
.spock-callout__link {
  color: var(--spock-link-color);
  text-decoration: none;
}
.spock-callout__text a:hover,
.spock-callout__link:hover {
  text-decoration: underline;
}



/* LOGIN */
#login-with-slack .card                         { border-radius: 8px; }
#login-with-slack .help-text                    { font-size: 12px; }
#login-with-slack h3                            { font-size: 18px; font-weight: 600; }
#login-with-slack h4.logout-message             { font-size: 18px; font-weight: 400; margin-bottom: 2rem; }
#login-with-slack a.login-link                  { font-size: 16px;  }
body.login-page                                 { background-color: #fafafa; }

/* USER TOKEN AUTH */
#user-token-auth .card                          { width: 400px; }
#user-token-auth h5                             { font-size: 18px; color: var(--spock-text-dark-color); font-weight: 600; margin-bottom: 1rem;}
#user-token-auth .button-emoji                  { color: var(--spock-text-success-color); margin-right: 2px; }

/* SPOCK */
.bg-vacation                                    { background: linear-gradient(#a9d145,#97bc38 60%,#97bc38 90%,#96ba3b); border-bottom: 1px solid #83a333; }
.bg-homeoffice                                  { background: linear-gradient(#4fb7f0,#29a0e0 60%,#29a0e0 90%,#36a6e2); border-bottom: 1px solid #2288bf; }
.bg-sickday                                     { background: linear-gradient(#d15545,#bd4839 60%,#bd4839 90%,#ba4a3c); border-bottom: 1px solid #a34033; }
.bg-sickleave                                   { background: linear-gradient(#d15545,#bd4839 60%,#bd4839 90%,#ba4a3c); border-bottom: 1px solid #a34033; }
.bg-gray                                        { background: linear-gradient(#e1e1e1,#cdcdcd 60%,#cdcdcd 90%,#cacaca); border-bottom: 1px solid #b3b3b3; }

.border-vacation                                { border: 1px solid #83a333; }
.border-homeoffice                              { border: 1px solid #2288bf; }
.border-sickday                                 { border: 1px solid #a34033; }
.border-sickleave                               { border: 1px solid #a34033; }
.border-gray                                    { border: 1px solid #b3b3b3; }

/* LOGIN */
.app.login .card .title                         { margin-left: 40px; font-weight: bold; }
.app.login                                      { min-height: 30vh; }


/* REQUESTS */

#requests h1                                    { font-size: 20px; color: #43425D; font-weight: 600; margin-bottom: 0.75rem; margin-top: 2rem; }
#requests h1.first                              { margin-top: 0rem; margin-bottom: 1rem; }
#requests .status                               { margin-left: 2rem; }

.request-status                                 { text-align: right; align-content: flex-end; margin-left: auto; letter-spacing: 1px; padding-left: 8px; }
.user-status-box,
.request-status-box                             { white-space:nowrap; display: inline-block; border-radius: 4px; background-color: #EDF0F5; padding: 6px 24px; color: #4D4F5C; text-transform: uppercase; font-size: 14px; font-weight: 600; box-shadow: 0px 2px 1px 0px rgba(0,0,0,0.1); }
.user-status-box.as_badge,
.request-status-box.as-badge                    { white-space:nowrap; display: inline-block; border: 1px solid #EAECF0; border-radius: 6px; background-color: #F9FAFB; padding: 4px 8px 3px 8px; color: #4D4F5C; text-transform: uppercase; font-size: 11px; font-weight: 600; box-shadow:none; }
.request-status-box.pending                     { background-color: #F9F5FF; color: #6941C6; border: 1px solid #E9D7FE; }
.user-status-box.active,
.request-status-box.approved                    { color: #027A48; background-color: #ECFDF3; border: 1px solid #ABEFC6; }
.user-status-box.inactive,
.request-status-box.rejected                    { background-color: #fff5f5; color: #c9495f; border: 1px solid #FECDCA; }
#requests .pagination                           { margin-top: 1rem; }

/* -------------------------------------------------------------------------
   Pending leave requests v2 (spock_app_requests_pending.html)
   Matches the onboarding-v2 / section-card design language: white cards,
   #E5E8F2 borders, layered soft shadows, #0E1326 ink, #6B7396 muted text.
   ------------------------------------------------------------------------- */

#requests .pr-card                              { background: #ffffff; border: 1px solid #E5E8F2; border-radius: 8px; box-shadow: 0 1px 0 rgba(15,19,38,.04), 0 10px 28px -18px rgba(15,19,38,.18); margin-bottom: 1.25rem; overflow: hidden; }

/* Card header: who is asking + current status */
#requests .pr-head                              { display: flex; align-items: center; gap: 14px; padding: 18px 24px 16px; }
#requests .pr-avatar .img-avatar                { width: 44px; height: 44px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(15,19,38,.08); display: block; }
#requests .pr-identity                          { min-width: 0; }
#requests .pr-name                              { font-size: 15.5px; font-weight: 600; color: #0E1326; text-decoration: none; }
#requests .pr-name:hover                        { color: var(--spock-link-color); }
#requests .pr-subline                           { display: flex; flex-wrap: wrap; gap: 2px 10px; font-size: 13px; color: var(--spock-text-light-color); margin-top: 1px; }
#requests .pr-subline .pr-handle                { color: var(--spock-text-light-color); text-decoration: none; }
#requests .pr-subline .pr-handle:hover          { color: var(--spock-link-color); }
#requests .pr-status                            { margin-left: auto; padding-left: 12px; }
#requests .pr-status .request-status-box        { border-radius: 999px; padding: 4px 12px 3px; letter-spacing: .04em; }
#requests .pr-status .request-status-box.pending::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #6941C6; margin-right: 6px; vertical-align: 1px; }

/* Date-flow strip: the decision-critical band (type, dates, duration) */
#requests .pr-strip                             { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 24px; margin: 0 24px; padding: 14px 18px; border: 1px solid #EDF0F8; border-radius: 12px; background: linear-gradient(180deg, #FBFCFE 0%, #FFFFFF 100%); }
#requests .pr-block-label                       { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--spock-text-light-color); margin-bottom: 2px; }
#requests .pr-leave-type-name                   { font-size: 15px; font-weight: 600; color: #0E1326; line-height: 1.3; }
#requests .pr-balance                           { font-size: 12.5px; color: var(--spock-text-light-color); margin-top: 2px; }
#requests .pr-divider                           { width: 1px; align-self: stretch; background: #EDF0F8; }
#requests .pr-date-flow                         { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; }
#requests .pr-chip-date                         { font-size: 15px; font-weight: 600; color: #0E1326; white-space: nowrap; }
#requests .pr-connector                         { display: flex; align-items: center; gap: 8px; }
#requests .pr-connector::before,
#requests .pr-connector::after                  { content: ""; height: 2px; width: 22px; border-radius: 1px; background: #E5E8F2; }
#requests .pr-arrowhead                         { width: 0; height: 0; border-left: 6px solid #D5DAEA; border-top: 5px solid transparent; border-bottom: 5px solid transparent; margin-left: -12px; }
#requests .pr-duration-pill                     { font-size: 12px; font-weight: 600; color: #3149E5; background: #EEF0FF; border-radius: 999px; padding: 3px 10px; white-space: nowrap; box-shadow: inset 0 0 0 1px rgba(49,73,229,.14); }
#requests .pr-cal-link                          { margin-left: auto; width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; color: var(--spock-text-light-color); }
#requests .pr-cal-link:hover                    { background: #EEF0FF; color: #3149E5; }

/* Meta grid: context for the decision */
#requests .pr-meta                              { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 32px; padding: 14px 24px 18px; }
#requests .pr-meta-item                         { display: flex; gap: 12px; padding: 6px 0; font-size: 14px; }
#requests .pr-meta-item.wide                    { grid-column: 1 / -1; }
#requests .pr-meta-label                        { flex: 0 0 148px; color: var(--spock-text-light-color); }
#requests .pr-meta-value                        { color: #2a2f45; min-width: 0; }
#requests .pr-meta-value .pr-note               { font-style: italic; color: #3A4163; background: #FFF7DB; border-radius: 4px; padding: 1px 6px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
#requests .pr-meta-value .img-avatar            { width: 20px; height: 20px; border-radius: 50%; margin-right: 4px; vertical-align: -5px; }

/* Leave type rendered as its color badge inside the strip */
#requests .pr-leave-type .absence-type-wrap     { font-size: 14px; font-weight: 600; padding: 3px 10px !important; }

/* Action bar */
#requests .approve-form,
#requests .pr-actions                           { padding: 14px 24px 16px; background: #FBFCFE; border-top: 1px solid #EDF0F8; border-radius: 0; }
#requests .manager-alert                        { display: flex; align-items: baseline; gap: 9px; font-size: 13.5px; color: #8A5700; background: #FFF4DA; border-radius: 8px; padding: 8px 12px; margin-bottom: 12px; box-shadow: inset 0 0 0 1px rgba(185,112,0,.16); }
#requests .pr-action-row                        { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
#requests .pr-action-row .reason-text           { flex: 1 1 320px; min-width: 220px; height: 38px; padding: 8px 12px; font-size: 14px; color: #0E1326; background: #ffffff; border: 1px solid #E5E8F2; border-radius: 9px; box-shadow: 0 1px 2px rgba(15,19,38,.03); }
#requests .pr-action-row .reason-text:focus     { border-color: #AAB6F5; outline: none; box-shadow: 0 0 0 3px rgba(49,73,229,.12); }
#requests .pr-action-row .reason-text::placeholder { color: #A0A8C2; }
#requests .pr-cancel-caption                    { margin-right: auto; font-size: 14px; color: var(--spock-text-light-color); }

#requests .pr-btn                               { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 16px; border: 0; border-radius: 9px; font-size: 14px; font-weight: 600; white-space: nowrap; cursor: pointer; transition: background-color .15s ease, box-shadow .15s ease, color .15s ease; }
#requests .pr-btn:focus-visible                 { outline: none; box-shadow: 0 0 0 3px rgba(49,73,229,.25); }
#requests .pr-btn:disabled                      { opacity: 0.55; pointer-events: none; }
#requests .pr-btn-approve                       { background: #15A36E; color: #ffffff; box-shadow: 0 1px 2px rgba(15,19,38,.12); }
#requests .pr-btn-approve:hover                 { background: #128F61; color: #ffffff; }
#requests .pr-btn-reject                        { background: #ffffff; color: #B42318; box-shadow: inset 0 0 0 1px #E5E8F2, 0 1px 2px rgba(15,19,38,.05); }
#requests .pr-btn-reject:hover                  { background: #FEF3F2; box-shadow: inset 0 0 0 1px #F2C6C2, 0 1px 2px rgba(15,19,38,.05); }
#requests .pr-btn-cancel                        { background: #ffffff; color: #3A4163; box-shadow: inset 0 0 0 1px #E5E8F2, 0 1px 2px rgba(15,19,38,.05); }
#requests .pr-btn-cancel:hover                  { background: #FEF3F2; color: #B42318; box-shadow: inset 0 0 0 1px #F2C6C2, 0 1px 2px rgba(15,19,38,.05); }

/* Inline validation + two-step confirm: no blocking alert()/confirm() dialogs */
#requests .pr-action-row .reason-text.pr-invalid        { border-color: #FDA29B; box-shadow: 0 0 0 3px rgba(180,35,24,.10); }
#requests .pr-inline-error                      { display: flex; align-items: center; gap: 7px; margin-top: 8px; font-size: 13px; color: #B42318; }
#requests .pr-btn-approve.pr-confirming         { background: #0E7A52; box-shadow: 0 0 0 3px rgba(21,163,110,.28); }
#requests .pr-btn-cancel.pr-confirming,
#requests .pr-btn-delete.pr-confirming          { background: #FEF3F2; color: #B42318; box-shadow: inset 0 0 0 1px #F2C6C2, 0 0 0 3px rgba(180,35,24,.15); }

/* Request detail: header toolbar, section titles, history timeline */
#requests .pr-head-tools                        { margin-left: auto; display: flex; align-items: center; gap: 10px; padding-left: 12px; }
#requests .pr-head-tools .request-status-box    { border-radius: 999px; padding: 4px 12px 3px; letter-spacing: .04em; }
#requests .pr-head-tools .request-status-box.pending::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #6941C6; margin-right: 6px; vertical-align: 1px; }
#requests .pr-btn-delete                        { background: transparent; color: var(--spock-text-light-color); height: 34px; padding: 0 12px; font-size: 13px; }
#requests .pr-btn-delete:hover                  { background: #FEF3F2; color: #B42318; }

#requests .pr-section                           { margin: 0 24px; padding: 16px 0 18px; border-top: 1px solid #EDF0F8; }
#requests .pr-section-title                     { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--spock-text-light-color); margin-bottom: 14px; }

#requests .pr-timeline                          { position: relative; }
#requests .pr-timeline-item                     { position: relative; padding: 0 0 16px 24px; }
#requests .pr-timeline-item:last-child          { padding-bottom: 0; }
#requests .pr-timeline-item::before             { content: ""; position: absolute; left: 5px; top: 8px; bottom: -8px; width: 2px; background: #EDF0F8; }
#requests .pr-timeline-item:last-child::before  { display: none; }
#requests .pr-timeline-item::after              { content: ""; position: absolute; left: 0; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: #ffffff; border: 3px solid #C7CEE9; }
#requests .pr-timeline-name                     { font-size: 14px; font-weight: 600; color: #0E1326; }
#requests .pr-timeline-note                     { font-size: 13.5px; font-style: italic; color: #3A4163; background: #FFF7DB; border-radius: 4px; padding: 1px 6px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
#requests .pr-timeline-diff                     { font-size: 13.5px; color: #3A4163; margin-top: 2px; }
#requests .pr-timeline-diff .pr-old             { color: var(--spock-text-light-color); text-decoration: line-through; }
#requests .pr-timeline-diff .pr-new             { font-weight: 600; color: #0E1326; }
#requests .pr-timeline-time                     { font-size: 12.5px; color: var(--spock-text-light-color); margin-top: 2px; }

#requests .pr-cal-buttons                       { display: flex; flex-wrap: wrap; gap: 10px; }
#requests .pr-btn-ghost                         { background: #ffffff; color: #3A4163; box-shadow: inset 0 0 0 1px #E5E8F2, 0 1px 2px rgba(15,19,38,.05); text-decoration: none; }
#requests .pr-btn-ghost:hover                   { color: #3149E5; box-shadow: inset 0 0 0 1px #C9D4F7, 0 1px 2px rgba(15,19,38,.05); }
#requests .pr-foot-spacer                       { height: 6px; }

/* Empty state */
#requests .pr-empty                           { padding: 64px 24px; text-align: center; background: #ffffff; border: 1px solid #E5E8F2; border-radius: 14px; box-shadow: 0 1px 0 rgba(15,19,38,.04), 0 10px 28px -18px rgba(15,19,38,.18); }
#requests .pr-empty-icon                        { width: 48px; height: 48px; margin: 0 auto 14px; display: grid; place-items: center; border-radius: 14px; background: #E6F7EF; color: #15A36E; font-size: 20px; box-shadow: inset 0 0 0 1px rgba(21,163,110,.2); }
#requests .pr-empty-title                       { font-size: 17px; font-weight: 600; color: #0E1326; }
#requests .pr-empty-text                        { font-size: 14px; color: var(--spock-text-light-color); margin-top: 4px; }

@media (max-width: 767.98px) {
    #requests .pr-head                          { padding: 16px 16px 14px; }
    /* Strip: shorter connector lines + smaller dates so "from → to" stays on
       one line; calendar icon pinned top-right instead of wrapping below. */
    #requests .pr-strip                         { margin: 0 16px; padding: 14px 16px; position: relative; }
    #requests .pr-divider                       { display: none; }
    #requests .pr-chip-date                     { font-size: 14px; }
    #requests .pr-date-flow                     { gap: 8px; }
    #requests .pr-connector::before,
    #requests .pr-connector::after              { width: 12px; }
    #requests .pr-cal-link                      { position: absolute; top: 8px; right: 8px; margin-left: 0; }
    #requests .pr-meta                          { grid-template-columns: 1fr; padding: 12px 16px 16px; }
    #requests .pr-meta-label                    { flex-basis: 128px; }
    #requests .approve-form                     { padding: 12px 16px 14px; }
    #requests .pr-action-row .reason-text       { flex-basis: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    #requests .pr-btn                           { transition: none; }
}


.approve-form                         { padding: 0rem 1.5rem 1.5rem 1.5rem; background-color: #f7fafc; border-top: 1px solid #F6F6F9; border-bottom-left-radius: 0.25rem; border-bottom-right-radius: 0.25rem; }
.approve-form .caption                { font-weight: 500; color: #2a2f45; padding-bottom: 4px; font-size: 14px;   }
.approve-form .manager-alert          { color: #B83280; padding: 0 0 1rem;  }
.approve-form-wrap                    { border-top: 1px solid #F6F6F9; padding-top: 0.75rem; }
.approve-form .button-wrap            { padding-top: 1rem; }

#request .approve-form                { padding: 0; margin-bottom: 18px;}
#request .approve-form-wrap           { border-top: 0; padding-top: 0.75rem; }
#request .approval-form-wrap          { background-color: #f7fafc; border-bottom: 1px solid var(--spock-border-light-color); margin-bottom: 16px;}

#request .request-caption                           { font-weight: 600; text-transform: uppercase; color: var(--spock-text-dark-color); font-size: 13px; margin-right: 1rem; }
#request a.handle-link                              { font-weight: normal; font-size: 13px; }
#request a.name-link                                { color: var(--spock-text-very-dark-color); }
#request .request-detail-header                     { border-bottom: 1px solid var(--spock-border-light-color); padding-bottom: 24px; }
#request .heading                       { padding-top: 16px;}

/* PAGINATION */

.pagination .pagination-wrap                    { margin-left: auto; margin-right: auto; padding-bottom: 1.5rem; padding-right: 1.5rem; }
.pagination .current                            { color: var(--spock-text-light-color); }
.pagination .current strong                     { font-weight: 500; color: var(--spock-text-dark-color);}

/* SETTINGS */
#settings-base .pane                            { padding-top: 0.4rem; }
.menu-caption                                   { color:#85879c; text-transform: uppercase; font-size: 11px; padding: 1.5rem 0 0.5rem 1rem; letter-spacing: 1px; font-weight: 500; }
.settings-menu a                                { color:var(--spock-text-normal-color); }
.settings-menu a:hover                          { color:var(--spock-link-color); }
.settings-menu a:hover .nav-icon                { color:var(--spock-link-color); }
.settings-menu a.active                         { color:var(--spock-text-very-dark-color); font-weight: 600; }
.settings-menu a.active .nav-icon               { color:var(--spock-text-very-dark-color); }
.settings-menu .nav-icon                        { display: inline-block; width: 1.09375rem; margin: 0 0.5rem 0 0; font-size: 0.875rem; color: #73818f; text-align: center; }
.settings-menu a.nav-link                       { white-space: nowrap; }
.info-box                                       { background-color: #f8f9fa; border-radius: 8px; padding: 0.75rem 1rem; margin: 0 0.25rem; }
#settings-allowances .img-avatar                { height:32px !important; }
#settings-allowances #allowances td             { padding: 0.5rem; }
#settings-allowances #allowances                { margin-bottom: 1rem; }
#settings-managers .add-manager                 { margin-bottom: 4px; }

#working-days-settings ul.days-list             { list-style: none; padding-left: 0.25rem; margin-top: 8px; margin-bottom: 0; }
#working-days-settings ul.days-list input       { margin-right: 6px; }
#working-days-settings ul.days-list li          { padding-bottom: 6px; }
#working-days-settings #is_customized           { margin-right: 6px; }
#working-days-settings .form-group              { margin-bottom: 12px; }
#working-days-settings .working-days-badges                    { display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; }
#working-days-settings .working-days-badges .badge-std          { margin-bottom: 0; font-size: 11px; padding: 2px 8px; }
#working-days-settings .working-days-badges .day-badge          { display: inline-block; padding: 3px 8px; border-radius: 6px; font-size: 12px; font-weight: 500; }
#working-days-settings .working-days-badges .day-badge.active   { background: var(--spock-text-normal-color); color: #fff; }
#working-days-settings .working-days-badges .day-badge.inactive { background: #e8ecf3; color: var(--spock-text-light-color); }
#working-days-settings .wd-help-text                            { font-size: 12px; color: var(--spock-text-light-color); margin-left: 6px; }
#working-days-settings .section.all                              { margin-bottom: 12px; }
#working-days-settings .wd-customize-link                       { display: inline-block; font-size: 13px; margin-top: 10px; cursor: pointer; }
#working-days-settings .submit-button                           { margin-top: 8px; }

.form-card.hidden                               { display: none; }

.holiday-calendar-form .is-default              { padding-top: 8px;  }

/* ONBOARDING */
.number-circle                                  { border-radius:50%; width:36px; height:36px; padding:8px; background:#fff; border:2px solid #666; color:#666; text-align:center; font-size: 32px; }

span.step                                       { background: #cccccc; border-radius: 0.8em; -moz-border-radius: 0.8em; -webkit-border-radius: 0.8em; color: #ffffff; display: inline-block; font-weight: bold; line-height: 1.6em; margin-right: 5px; text-align: center; width: 1.6em; }
span.step.success                               { background-color: #6ec511; }
span.step.active                                { background-color: var(--spock-text-dark-color); }
.steps-caption                                  { color:#85879c; text-transform: uppercase; font-size: 14px; padding: 2.5rem 0 0.5rem 1rem; letter-spacing: 0px; font-weight: 600; word-spacing: 3px; }
#steps-menu a.active                            { color:#2a2f45; font-weight: bold; }
#steps-menu .nav-icon                           { display: inline-block; width: 1.09375rem; margin: 0 0.5rem 0 0; font-size: 0.875rem; color: #73818f; text-align: center; }
#country-settings #id_country                   { margin-bottom: 8px; }
#country-settings .help-block                   { margin-left: 4px; font-style: italic; }

img.shadow                                      { border-radius:4px; box-shadow: 0 13px 27px -5px rgba(50,50,93,.25), 0 8px 16px -8px rgba(0,0,0,.3), 0 -6px 16px -6px rgba(0,0,0,.025); }

.spock-in-slack                                 { margin-top: 2rem; margin-bottom: 4rem; text-align: center; }
.spock-in-slack .caption                        { margin-bottom: 1rem; font-size: 16px; font-weight: 600;  }


.onboarding.wrapper                             { padding: 1.5rem; }
.onboarding.wrapper.leave-types                 { padding: 1.5rem 0rem 1.5rem 0rem; }
.onboarding.wrapper.general form                { padding-left: 1.5rem;  padding-right: 1.5rem; }
.onboarding h3                                  { margin-bottom: 0.3rem; }

.onboarding.wrapper.managers                    { padding: 1.5rem 0rem 0 0rem; }
.onboarding.managers input                      { margin-right: 4px; }
.onboarding.managers label                      { cursor: hand; }
.onboarding.managers .members                   { padding:0px 0px 0px 0px; }
.onboarding.managers .submit-wrap               { padding: 1.5rem;  }
.onboarding.managers .submit-wrap.top           { }
.onboarding.managers .submit-wrap.bottom        { border-top: 1px solid #e3e8ee; }
.onboarding.managers .members                   { padding: 0rem 0; border-top: 1px solid #e3e8ee; }
.onboarding.general #id_discover_survey         { margin-bottom: 0;  }
.onboarding.general #id_discover_survey label   { font-weight: 400; }
.onboarding .skip-or                            { margin-left: 12px; color: var(--spock-text-very-light-color); }
.onboarding a.skip-link                         { color: var(--spock-text-light-color); margin-left: 8px; text-decoration: underline; }
.onboarding a.skip-link:hover                   { text-decoration: none; }
.onboarding .title-desc                         { color: var(--spock-text-light-color); }


/* USER ROLES TABLE — shared by Settings > Users and onboarding roles step */
.users-table-wrap                           { overflow-x: auto; }
.users-select-table                         { width: 100%; border-collapse: collapse; }
.users-select-table thead th                { text-align: center; background-color: #FCFCFD; padding: 10px 8px; border-bottom: 1px solid #e3e8ee; color: #667085; font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em; line-height: 16px; vertical-align: top; }
.users-select-table thead th.member-head    { text-align: left; padding-left: 18px; }
.users-select-table th .role-name           { display: block; white-space: nowrap; }
.users-select-table th .role-desc           { display: block; margin-top: 1px; font-size: 11px; font-weight: 400; color: var(--spock-text-very-light-color); text-transform: none; letter-spacing: 0; }
.users-select-table tbody td                { padding-top: 10px; padding-bottom: 10px; border-bottom: 1px solid #eef1f5; color: #2a2f45; vertical-align: middle; }
.users-select-table tbody tr:last-child td  { border-bottom: 0; }
.users-select-table tbody td.avatar-col     { padding-left: 18px; width: 60px; padding-right: 10px; }
.users-select-table tbody tr:hover td       { background-color: #f7fafc; }
.users-select-table tbody td.badge-col      { padding-right: 16px; padding-left: 16px; }
/* max-width: none exempts avatars from Bootstrap's responsive img rule so they
   don't get squeezed when the table compresses on narrow screens */
.users-select-table .avatar-col img         { height: 32px; width: 32px; max-width: none; border-radius: 50%; box-shadow: 0 0 0 1px rgba(16, 24, 40, 0.08); }
.users-select-table td.user                 { min-width: 180px; }
.users-select-table .member-name            { display: block; font-weight: 500; font-size: 14px; line-height: 18px; color: var(--spock-text-dark-color); }
.users-select-table .member-handle          { display: block; font-size: 12px; line-height: 16px; color: var(--spock-text-light-color); }
.users-select-table .you-chip               { display: inline-block; margin-left: 6px; padding: 0 6px; font-size: 10px; font-weight: 600; line-height: 16px; text-transform: uppercase; letter-spacing: 0.04em; color: #1849A9; background-color: var(--spock-bg-selected-color); border: 1px solid #d3e1fd; border-radius: 10px; vertical-align: 1px; }
.users-select-table .use-service,
.users-select-table .is-manager,
.users-select-table .is-admin               { width: 150px; text-align: center; }
.users-select-table .badge-col              { text-align: center; }
.users-select-table strong                  { font-weight: 600; }
/* Members without Spock access read as inactive (progressive enhancement — :has) */
.users-select-table tbody tr:has(.service-users:not(:checked)) .member-name,
.users-select-table tbody tr:has(.service-users:not(:checked)) .member-handle { color: var(--spock-text-very-light-color); }

/* Custom checkboxes — brand blue, visible focus, clear disabled state */
.users-select-table input[type=checkbox]                       { -webkit-appearance: none; appearance: none; width: 18px; height: 18px; margin: 0; border: 1.5px solid #d0d5dd; border-radius: 5px; background-color: #ffffff; cursor: pointer; position: relative; vertical-align: middle; transition: background-color 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease; }
.users-select-table input[type=checkbox]:hover:not(:disabled)  { border-color: var(--spock-link-color); }
.users-select-table input[type=checkbox]:checked               { background-color: var(--spock-link-color); border-color: var(--spock-link-color); }
.users-select-table input[type=checkbox]:checked::after        { content: ""; position: absolute; left: 5px; top: 1px; width: 5px; height: 10px; border: solid #ffffff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.users-select-table input[type=checkbox]:focus-visible         { outline: none; box-shadow: 0 0 0 3px rgba(15, 105, 255, 0.25); }
.users-select-table input[type=checkbox]:disabled              { background-color: #f7fafc; border-color: #e3e8ee; cursor: not-allowed; }

/* SETTINGS > USERS page chrome */
#settings-users .card-body                  { padding: 0; }
#settings-users .users-header               { padding: 20px 24px 16px; background-color: #ffffff; border-bottom: 0; }
#settings-users .users-title                { font-size: 18px; font-weight: 600; line-height: 24px; color: var(--spock-text-very-dark-color); }
#settings-users .users-subtitle             { margin-top: 2px; font-size: 13px; font-weight: 400; line-height: 20px; color: var(--spock-text-light-color); }
#settings-users .users-toolbar              { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 24px; background-color: var(--spock-bg-light-grey-color); border-top: 1px solid #eef1f5; border-bottom: 1px solid #e3e8ee; }
#settings-users .search-container           { position: relative; flex: 0 1 320px; min-width: 200px; }
#settings-users .search-container .search-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--spock-text-very-light-color); font-size: 13px; pointer-events: none; }
#settings-users #userSearch                 { width: 100%; height: 36px; padding: 0 12px 0 34px; font-size: 13px; color: var(--spock-text-dark-color); background-color: #ffffff; border: 1px solid #D0D5DD; border-radius: 8px; box-shadow: 0px 1px 2px rgba(16, 24, 40, 0.05); }
#settings-users #userSearch:focus           { border-color: var(--spock-link-color); box-shadow: 0 0 0 3px rgba(15, 105, 255, 0.12); outline: none; }
#settings-users #userSearch::placeholder    { color: var(--spock-text-very-light-color); }
/* Live role tally — counts update as roles are toggled; warns when a required role hits zero */
#settings-users .role-tally                 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
#settings-users .tally-chip                 { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; font-size: 12px; line-height: 16px; color: var(--spock-text-normal-color); background-color: #ffffff; border: 1px solid #e3e8ee; border-radius: 16px; white-space: nowrap; }
#settings-users .tally-chip strong          { font-weight: 600; color: var(--spock-text-dark-color); font-variant-numeric: tabular-nums; }
#settings-users .tally-chip .warn-icon      { display: none; }
#settings-users .tally-chip.warn            { color: var(--spock-text-danger-dark-color); background-color: var(--spock-bg-danger-color); border-color: #fecdca; }
#settings-users .tally-chip.warn strong     { color: var(--spock-text-danger-dark-color); }
#settings-users .tally-chip.warn .warn-icon { display: inline; font-size: 11px; }
#settings-users .card-footer                { position: sticky; bottom: 0; z-index: 5; display: flex; align-items: center; gap: 4px; padding: 12px 24px; background-color: #ffffff; border-top: 1px solid #e3e8ee; border-radius: 0 0 4px 4px; }
#settings-users .pending-note               { margin-left: auto; font-size: 12px; color: var(--spock-text-light-color); font-variant-numeric: tabular-nums; }
#settings-users .no-match-row td            { padding: 3rem 1rem; text-align: center; color: var(--spock-text-light-color); font-size: 13px; }

/* Bulk actions — deliberate two-step control; each menu item states its own blast radius */
#settings-users .bulk-actions                       { margin-right: auto; }
#settings-users .bulk-actions-toggle                { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; font-size: 13px; font-weight: 500; color: var(--spock-text-dark-color); background-color: #ffffff; border: 1px solid #D0D5DD; border-radius: 8px; box-shadow: 0px 1px 2px rgba(16, 24, 40, 0.05); }
#settings-users .bulk-actions-toggle:hover          { background-color: #f7fafc; border-color: var(--spock-link-color); }
#settings-users .bulk-actions-toggle i              { font-size: 10px; color: var(--spock-text-light-color); }
#settings-users .bulk-actions-menu                  { min-width: 300px; padding: 6px; border: 1px solid #e3e8ee; border-radius: 10px; box-shadow: 0 12px 24px rgba(16, 24, 40, 0.12); }
#settings-users .bulk-actions-menu .dropdown-item   { display: block; width: 100%; padding: 10px 12px; text-align: left; white-space: normal; background: none; border: 0; border-radius: 6px; cursor: pointer; }
#settings-users .bulk-actions-menu .dropdown-item:hover:not(:disabled) { background-color: var(--spock-bg-selected-color); }
#settings-users .bulk-actions-menu .dropdown-item:disabled             { cursor: not-allowed; opacity: 0.55; }
#settings-users .bulk-action-label                  { display: block; font-size: 13px; font-weight: 500; line-height: 18px; color: var(--spock-text-dark-color); }
#settings-users .bulk-action-detail                 { display: block; margin-top: 2px; font-size: 12px; line-height: 16px; color: var(--spock-text-light-color); }
#settings-users .bulk-actions-menu .dropdown-divider { margin: 4px 0; }

/* Undo bar — never auto-dismisses; a notice that disappears on a timer is not a safety net */
#settings-users .bulk-undo-bar                      { display: flex; align-items: center; gap: 8px; padding: 10px 24px; font-size: 13px; color: #1849A9; background-color: var(--spock-bg-selected-color); border-bottom: 1px solid #d3e1fd; }
#settings-users .bulk-undo-bar i                    { font-size: 12px; }
#settings-users .bulk-undo-button                   { margin-left: auto; padding: 4px 12px; font-size: 12px; font-weight: 600; color: #1849A9; background-color: #ffffff; border: 1px solid #d3e1fd; border-radius: 6px; cursor: pointer; }
#settings-users .bulk-undo-button:hover             { background-color: #f0f5ff; }

/* Required-role warning — shown the moment a role hits zero, however it happened */
#settings-users .bulk-warning-bar                   { display: flex; align-items: center; gap: 8px; padding: 10px 24px; font-size: 13px; color: var(--spock-text-danger-dark-color); background-color: var(--spock-bg-danger-color); border-bottom: 1px solid #fecdca; }
#settings-users .bulk-warning-bar i                 { font-size: 12px; }

/* Save confirmation — the heavy variant only appears when memberships get hard-deleted */
#confirmRemoveAccessModal .modal-title              { display: flex; align-items: center; gap: 8px; }
#confirmRemoveAccessModal .danger-icon              { color: var(--spock-text-danger-dark-color); font-size: 15px; }
#confirmRemoveAccessModal .destructive-warning      { padding: 12px 14px; font-size: 13px; line-height: 20px; color: var(--spock-text-danger-dark-color); background-color: var(--spock-bg-danger-color); border: 1px solid #fecdca; border-radius: 8px; }
#confirmRemoveAccessModal .reassurance              { margin-bottom: 0; font-size: 13px; line-height: 20px; color: var(--spock-text-light-color); }
#confirmRemoveAccessModal .type-to-confirm          { margin-top: 16px; }
#confirmRemoveAccessModal .type-to-confirm label    { display: block; margin-bottom: 6px; font-size: 12px; font-weight: 500; color: var(--spock-text-dark-color); }
#confirmRemoveAccessModal .type-to-confirm label strong { font-family: monospace; font-size: 13px; font-weight: 600; color: var(--spock-text-very-dark-color); letter-spacing: 0.04em; }
#confirmRemoveAccessModal #confirmRemoveAccessInput { height: 36px; font-size: 13px; border: 1px solid #D0D5DD; border-radius: 8px; }
/* Destructive confirm gets the weight of the action. Scoped to this modal and not reusing
   .submit-button, which the page JavaScript targets when saving. */
#confirmRemoveAccessModal .btn-std.danger           { color: #f6e9e9; font-weight: 600; background-color: #ff3b3b; border: 1px solid #db3333; }
#confirmRemoveAccessModal .btn-std.danger:hover     { color: #ffffff; background-color: #dc2626; border-color: #b91c1c; }
#confirmRemoveAccessModal .btn-std.danger:disabled  { opacity: 0.5; cursor: not-allowed; }

@media (max-width: 767px) {
  #settings-users .search-container         { flex-basis: 100%; }
  #settings-users .bulk-actions             { margin-right: 0; }
  #settings-users .bulk-actions-menu        { min-width: 260px; }
}

.onboarding.finnish h3                          { margin-bottom: 2rem; }
.onboarding.finnish .desc                       { color: #404B5A; margin-bottom: 2rem; font-style: normal; text-align: left; font-size:16px; }

.onboarding.notifications .desc                 { color: #404B5A; margin-bottom: 2rem; font-style: normal; }
.onboarding.notifications .help-text            { color: #6E7A8A; margin-top: 0.5rem; font-style: italic;}
.onboarding.notifications .welcome-message      { margin-bottom: 2rem; }

.onboarding.leave-types .leave-type                                 { background-color: #F8F9FA; border: 1px solid #f1f1f1; border-radius: 4px; margin-bottom: 1.5rem; padding: 1.0rem; }
.onboarding.leave-types .leave-type h3                              { font-size: 18px; font-weight: 600; margin-bottom: 1rem; color: #202833; }
.onboarding.leave-types .props th                                   { font-size: 14px; font-weight: 400; color: #6E7A8A; padding-right: 0.5rem; padding-bottom: 1rem; }
.onboarding.leave-types .props td                                   { font-size: 14px; font-weight: normal; padding-bottom: 1rem;}
.onboarding.leave-types .props .allowance                           { font-size: 14px; }
.onboarding.leave-types .leave-types-list th                        { font-size: 13px; border-top: 1px solid #e3e8ee; text-transform: none; }
.onboarding.leave-types .leave-types-list td                        { padding: 10px 8px; }

.onboarding .form-footer                        { border-top: 1px solid #E1E7EC; padding-top: 1rem; }
.onboarding .form-control                       { color: #404B5A; }
.onboarding .form-group                         { margin-bottom: 2rem; }
.onboarding .submit-wrap                        { padding-top: 1rem; }
.onboarding .groups-form .form-group            { margin-bottom: 1rem; }
.onboarding .groups-form .submit-wrap           { padding-top: 0rem; }
.onboarding .help-text                          { color: #666666; font-style: italic; font-size: 12px; }
.onboarding form label                          { font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.onboarding.groups input.team-input             { display: inline-block; }
.onboarding.groups .remove-team                 { margin-left: 4px; }

ul#id_activate_users_after_import   { margin-bottom: 8px; }

#user-selection-form .hidden                    { visibility: hidden; }
#user-selection-form .shown                     { visibility: visible; }
#user-selection-form label                      { font-weight: normal; }

.onboarding-nav a.nav-link                      { color: #85879c; }

.onboarding h3 {
  color: var(--spock-text-dark-color);
}

.onboarding ul.help li {
  color: var(--spock-text-normal-color);
  margin-bottom: 6px;
}

.onboarding ul.help li strong {
  color: var(--spock-text-dark-color);
  font-weight: 600;
}

.onboarding .user-help {
  text-align: left;
  background: linear-gradient(#FEFCF2, #fbf7e1);
  margin: 1.5rem 1.5rem 2rem 1.5rem;
  padding: 1rem 1rem 0rem 1rem;
  border-radius: 8px;
  border: 1px solid #FCEAC9;
}

.onboarding .select-all-label {
  color: var(--spock-link-color);
}

.onboarding .icon-success {
  color: #61DA37;
}


/* ALLOWANCES*/
#allowance-form .img-avatar                     { height:32px !important; margin-right: 4px; }
#allowance-form .last-updated                   { padding:8px 8px 16px 4px; font-size: 13px; font-family: monospace; margin-top: 16px; color: #999999;  }
#allowance-form .last-updated .text-ideo-dark   { font-weight: 600;  }
#allowance-form .previous-balances              { padding:8px 8px 16px 8px; background-color: #EBF2F6; font-size: 13px; display: none; border: 1px dashed #d2d7dB; border-radius: 4px; margin: 0px 0 32px 0; }
#allowance-form .previous-balances strong,
#allowance-form .previous-balances span         { font-family: monospace;  }
#allowance-form #display-link                   { margin-left: 4px; }



/* LEAVE TYPES */
.monthly-limit-toggle                           { margin-top: 1rem; }
.item-toggler                                   { margin-top: 1.5rem; }
.item-toggler .form-group                       { margin-bottom: 0; }
.item-toggled                                   {  }

/* TEAM REPORT */
.table-responsive-horizontal                              { overflow-x: auto; overflow-y: visible; }
#team-report-table                                      {  }
#team-report-table .bg-deleted                          { background-color: #fdf6f8; }
#team-report-table .border-left-light                   { border-left:1px solid #edf4fa; }
#team-report-table .border-bottom-light                 { border-bottom:1px solid #edf4fa; }
#team-report-table th                                   { text-transform: none; }
#team-report-table th.border-bottom-light               { border-bottom:1px solid #e3e8ee; }
#team-report-table .employee-header                     { width: 180px; min-width: 180px; text-align: left; padding: 12px 16px; font-weight: 600; color: var(--spock-text-dark-color); font-size: 13px; position: sticky; left: 0; background-color: var(--spock-table-header-bg-color); z-index: 10; }
#team-report-table .empty-avatar                        { height:32px; width:32px; display: inline-block; }
#team-report-table                                      { margin-bottom: 1rem; }
#team-report-table td                                   { font-size: 13px; }
#team-report-table tr.captions td                       { font-size: 11px; }
#team-report-table .employee-cell                        { text-align: left; padding: 8px 12px; position: sticky; left: 0; background-color: #ffffff; z-index: 5; white-space: nowrap; }
#team-report-table tr:hover .employee-cell               { background-color: #fafbfc; }
#team-report-table tr.bg-deleted .employee-cell          { background-color: #fdf6f8; }
#team-report-table tr.bg-deleted:hover .employee-cell   { background-color: #fdf6f8; }
#team-report-table tr.captions td:first-child            { position: sticky; left: 0; z-index: 5; background-color: var(--spock-bg-light-color); min-width: 180px; }
#team-report-table .employee-link                        { display: flex; align-items: center; text-decoration: none; color: var(--spock-text-dark-color); }
#team-report-table .employee-link:hover                  { color: var(--spock-link-color); }
#team-report-table .employee-link .img-avatar            { width: 28px; height: 28px; border-radius: 14px; margin-right: 10px; flex-shrink: 0; }
#team-report-table .employee-name                        { font-weight: 500; font-size: 13px; overflow: hidden; text-overflow: ellipsis; max-width: 140px; }
#team-report-table td.is-manager                        { text-align: center;}
#team-report-table .text-limit                          { font-weight: 600; color: var(--spock-text-danger-color); }

#team-report .yearly-report-button                      { margin-right: 8px; }
.group-page .section-title                              { font-size: 24px; line-height: 24px; margin-top: 4px; }
.group-page .section-title .year                        { font-weight: 400; }
.group-page .section-header                             { border-top: 1px solid #cad4dc; border-top-right-radius: 0; }
#report-nav                                             { font-size: 12px; margin-top: 4px; }

/* LEAVES REPORT */

#leaves-report .picker-wrap                             { width: 240px; }
#leaves-report .form-pane                               { padding: 1rem 1.5rem 1.5rem 1.5rem }

/* PEOPLE */
/*#people .member                                         { border:0; background-color: #ffffff; color:#4f566b; line-height: 20px; padding: 4px 8px; border-radius: 4px; box-shadow: 0 0 0 1px rgba(42,47,69, 0.1), 0 2px 5px 0 rgba(42,47,69, 0.08), 0 1px 1.5px 0 rgba(0,0,0, 0.07), 0 1px 2px 0 rgba(0,0,0, 0.08); box-sizing: border-box; opacity: 0.99; }
#people .member:hover                                   { color: #2a2f45; box-shadow: 0 0 0 1px rgba(42,47,69, 0.1), 0 2px 5px 0 rgba(42,47,69, 0.1), 0 3px 9px 0 rgba(42,47,69, 0.08), 0 1px 1.5px 0 rgba(0,0,0, 0.08), 0 1px 2px 0 rgba(0,0,0, 0.08); }
*/

#people .member                                         {   
  box-shadow:
    0px 2px 2px -1px rgba(10, 13, 18, 0.10),
    0px 4px 6px -2px rgba(10, 13, 18, 0.10)
    ; 
  border-radius: 4px; 
}

#people .member:hover                                   {   box-shadow:
  0px 2px 2px -1px rgba(10, 13, 18, 0.2),
  0px 4px 6px -2px rgba(10, 13, 18, 0.2),
  0px 12px 16px -4px rgba(10, 13, 18, 0.2);  cursor: pointer; }


#people .member img.img-avatar                          { border: 3px solid #fff;  box-shadow: 0px 2px 4px -2px rgba(10, 13, 18, 0.08), 0px 4px 6px -1px rgba(10, 13, 18, 0.08);  }

#people .member-pane                                    { padding:4px 12px 12px 12px; }
#people .member-wrap                                    { margin:12px; display: inline-block;  }
#people .member                                         { padding:8px 12px; width:250px; height:80px; background-color: #ffffff; border: 1px solid #f1f1f1; }
#people .member.selected                                { background-color: #f0f4fb; box-shadow: 0px 1px 2px rgba(32, 53, 84, 0.3); }
#people .member .member-avatar                          { width: 48px; height: 48px; margin-right: 12px; margin-top: 8px; }
#people .member .member-name                            { font-size: 15px; color: var(--spock-text-very-dark-color); font-weight: 600; }
#people .member .member-data                            { padding-top: 5px; }
#people .member .handle                                 { color:#3a97d4; font-size: 11px; width: 150px; text-overflow: ellipsis; white-space: nowrap; overflow: hidden; }
#people .member .title                                  { font-size: 11px; color:#697386; width: 150px; text-overflow: ellipsis; white-space: nowrap; overflow: hidden; }
#people .member-section                                 { font-weight: 500; font-size: 16px; color: #2a2f45; padding:24px 0 0px 24px; border-top: 1px solid #f1f1f1; }
#people .remove-member                                  { margin-top: 4px; margin-left: 2px; display: none;  }
#people .remove-member label                            { color:#697386; margin-left: 2px; cursor: pointer; }
#people-buttons .hidden                                 { display: none }
#people .no-members                                     { padding: 80px 0; text-align: center; font-size: 16px; }
#people #add-member-form .member-section                { background-color: #f4f0f5; border-top: 1px solid #eae1ed; border-bottom: 1px solid #eae1ed;}
#people #add-member-form .member-section                { background-color: #f4f4f4; border-top: 1px solid #e9e9e9; border-bottom: 1px solid #e9e9e9;}
/*#people #add-member-form .member:hover                  { cursor: auto;}*/
#people .add-member                                     { margin-top: 4px; margin-left: 2px; }
#people .role-container.hidden                          { visibility: hidden; }
#people .role-container.shown                           { visibility: visible; }
#people label                                           { color:#4f566b; cursor: pointer; }
#people .member-label                                   { margin-left: 2px; }
#people .role-label                                     { margin-left: 5px; }

/* CALENDAR */
#calendar-nav strong                            { color: #242628; }
#calendar-nav a                                 { color:#738a94; }
#calendar-nav                                   { font-size: 12px; margin-top: 6px; }
a.subscribe                                     { font-size: 12px; }
.team-calendar .calendar-nav-wrap               { font-size: 12px; margin-top: 6px; }
.team-calendar .export-button                   { margin-right: 10px; }
.team-calendar .month-nav                       { color: #000000; font-size: 14px; }
.team-calendar .cal-title                       { font-size: 24px; font-weight: bold; }
.team-calendar .cal-title .year                 { font-weight: normal; }
.team-calendar .cal-nav-wrap                    { margin: 12px 0px; }
.team-calendar .cal-buttons                     { padding-top: 4px; }
.team-calendar .card-header                     { padding-top: 0px; }

#absences-calendar                              { padding:0 1rem;}
#absences-calendar a.absence                    { font-size: 13px; font-weight: 500; display: inline-block; border-radius: 4px !important; text-overflow: clip !important; padding: 2px 4px 1px 6px !important; margin-bottom: 4px; text-rendering:optimizeLegibility; }
#absences-calendar a.absence span               { font-weight: 400;  }
#absences-calendar a.absence:hover              { color: #32302c;  }
#absences-calendar a.absence i                  { color: #a3acb9; }
#absences-calendar a.absence.pending-absence    { border-style: dashed !important; border-width: 1px !important; border-color: rgb(97, 97, 97) !important; }
#absences-calendar .day                         { border-top:1px solid #e5eff5; border-left:1px solid #e5eff5; padding: 4px 6px 2px 6px; background-color: #ffffff; }
#absences-calendar .day.monday                  { border-left: 0; }
#absences-calendar .day.sunday                  { border-right: 0; }
#absences-calendar .day.weekend                 { background-color: #f8fafc; }
#absences-calendar .day.today                   { background-color: #fefefe; border: 1px solid #aaaaaa; box-shadow: 0px 0px 30px 2px rgba(255,234,0,0.25), 0px 0px 1px 1px rgba(0,0,0,0.05); z-index: 100; }
#absences-calendar .day .date                   { color: var(--spock-text-very-dark-color); font-weight: bold; }
#absences-calendar .day.weekend .day-digit      { color: var(--spock-text-light-color); font-weight: bold; }
#absences-calendar .day .today                  { color: var(--spock-text-normal-color); font-weight: bold; font-size: 12px; }
#absences-calendar .day.not-current-month .date { color: #e1e1e1; }
#absences-calendar .day p                       { color: #cccccc; margin-bottom: 0; }
#absences-calendar #weekdays                    { border-top:1px solid #e5eff5; background-color: #fdfdff; }
#absences-calendar #weekdays h5                 { font-weight: 500; color: var(--spock-text-dark-color); line-height:21px; font-size: 14px; margin-top: 8px; padding:0 }
#absences-calendar h5                           { padding-left: 8px; padding-top: 2px;  }
#absences-calendar .pane                        { border-bottom:1px solid #e5eff5 !important; }
#absences-calendar .day-name                    { color:#999999; }
#absences-calendar .holiday-name                { padding: 2px 4px 2px 6px !important; color:var(--spock-holiday-color); border: 1px solid var(--spock-holiday-border-color); background-color: var(--spock-holiday-bg-color); border-radius: 4px; font-size: 12px; margin-bottom: 4px; font-weight: 500; font-style: normal; text-overflow: ellipsis; white-space: nowrap; overflow: hidden; }
#absences-calendar .special-day                 { padding: 2px 4px 2px 6px !important; color:var(--spock-special-day-color); border: 1px solid var(--spock-special-day-border-color); background-color: var(--spock-special-day-bg-color); border-radius: 4px; font-size: 12px; margin-bottom: 4px; font-weight: 500; font-style: normal; text-overflow: ellipsis; white-space: nowrap; overflow: hidden; }
#absences-calendar .day.holiday                 { background-color: #f8fafc; }
#absences-calendar .badge-ampm                  { background-color: #ffffff; font-weight: 500; }

#dashboard td.leave-type                        { white-space: nowrap; }
.absence-type-wrap                              { font-size: 13px; font-weight: 500; display: inline-block; border-radius: 4px !important; text-overflow: clip !important; padding: 2px 8px 2px 8px !important; text-rendering:optimizeLegibility; }
.absence-type-wrap.small                        { font-size: 11px; padding: 1px 4px 1px 4px !important; }
.absence-type-wrap.big                          { font-size: 16px; padding: 4px 12px 4px 12px !important; font-weight: 600; }
/* Green */
.absence-type-green                             { color: #1c3829; background-color:#dbeddb; }
/* Blue */
.absence-type-blue                              { color: #183347; background-color:#d3e5ef; }
/* Yellow */
.absence-type-yellow                            { color: #402c1b; background-color:#fdecc8; }
/* Red */

.absence-type-red                               { color: #5d1715; background-color:#ffe2dd; }
/* Purple */
.absence-type-purple                            { color: #412454; background-color:#e8deee; }
/* Light Gray */
.absence-type-light-gray                        { color: #32302c; background-color:#e3e2e080; }
/* Pink */
.absence-type-pink                              { color: #4c2337; background-color:#f5e0e9; }
/* Brown */
.absence-type-brown                             { color: #32302c; background-color:#eee0da; }
/* Orange */
.absence-type-orange                            { color: #49290e; background-color:#fadec9; }

/* EXPERIMENT: gradient variants of the leave-type chip colors - same text
   color as .absence-type-<color>; background fades from a 20%-lighter tone
   (top, base mixed 20% toward white) to the original background (bottom);
   1px border in the original background color */
.absence-type-gradient-green                    { color: #1c3829; background: linear-gradient(180deg, #e2f1e2 0%, #dbeddb 100%); border: 1px solid #dbeddb; }
.absence-type-gradient-blue                     { color: #183347; background: linear-gradient(180deg, #dceaf2 0%, #d3e5ef 100%); border: 1px solid #d3e5ef; }
.absence-type-gradient-yellow                   { color: #402c1b; background: linear-gradient(180deg, #fdf0d3 0%, #fdecc8 100%); border: 1px solid #fdecc8; }
.absence-type-gradient-red                      { color: #5d1715; background: linear-gradient(180deg, #ffe8e4 0%, #ffe2dd 100%); border: 1px solid #ffe2dd; }
.absence-type-gradient-purple                   { color: #412454; background: linear-gradient(180deg, #ede5f1 0%, #e8deee 100%); border: 1px solid #e8deee; }
.absence-type-gradient-light-gray               { color: #32302c; background: linear-gradient(180deg, #e9e8e680 0%, #e3e2e080 100%); border: 1px solid #e3e2e080; }
.absence-type-gradient-pink                     { color: #4c2337; background: linear-gradient(180deg, #f7e6ed 0%, #f5e0e9 100%); border: 1px solid #f5e0e9; }
.absence-type-gradient-brown                    { color: #32302c; background: linear-gradient(180deg, #f1e6e1 0%, #eee0da 100%); border: 1px solid #eee0da; }
.absence-type-gradient-orange                   { color: #49290e; background: linear-gradient(180deg, #fbe5d4 0%, #fadec9 100%); border: 1px solid #fadec9; }
/* Light Gray */
.date-portion                                   { color: #32302c; background-color:#2196f30f; }



/* BILLING */
img.credit-card-image                                                       { height: 20px; margin-left: 8px; }
#payment-form #calculation-wrap                                             { background-color: #fff; border: 1px solid #999; border-radius: 4px;  margin-top: 1rem; margin-bottom: 0.5rem; width: fit-content; }
#payment-form table#calculation                                             { margin-bottom: 0; }
#payment-form table#calculation td                                          { border-bottom: 0; font-size: 14px; padding-left: 12px; padding-right: 12px;  }
#payment-form table#calculation th                                          { background-color: #fcf9f7; border-bottom: 1px solid #ede9e4; font-size: 12px; padding-bottom: 6px; text-transform: none; }
#payment-form table#calculation td.total                                    { font-size: 17px; color: #000; font-weight: 600; }
#payment-form table#calculation tr:last-child td:first-child                { border-bottom-left-radius: 4px; }
#payment-form table#calculation tr:last-child td:last-child                 { border-bottom-right-radius: 4px; }
#payment-form table#calculation tr:first-child th:first-child               { border-top-left-radius: 4px; }
#payment-form table#calculation tr:first-child th:last-child                { border-top-right-radius: 4px; }
#payment-form table#calculation #plan_desc                                  { color: #111; font-weight: 600; }
#payment-form table#calculation td.total                                    { background-color: #fefcbf; }
#payment-form .payment-badge                                                { text-align: center; margin-top: 1.5rem; }



.billing-dashboard .plan-desc,
.billing-dashboard .plan-caption                                            { padding-top: 8px; }

.tooltip-inner                                  { background-color: #2a2f45; }
.tooltip.bs-tooltip-bottom .tooltip-inner       { background:#2a2f45 !important; }
.tooltip .arrow:before                          { border-bottom-color:#2a2f45 !important; border-top-color:#2a2f45 !important; }

.tooltip-inner                                  { background-color: var(--spock-bg-tooltip); color: #ffffff; }
.tooltip.bs-tooltip-bottom .tooltip-inner       { background:var(--spock-bg-tooltip) !important; }
.tooltip .arrow:before                          { border-bottom-color:var(--spock-bg-tooltip) !important; border-top-color:var(--spock-bg-tooltip) !important; }


/* GROUPS */
.section-tabs-wrap                              { background-color: #ffffff; border-top-right-radius: 3px; }
.section-tabs-wrap .button-wrap                 { text-align: right; padding: 11px 11px 0px 0px;  }
.group-tabs                                     { -ms-flex-direction: row; flex-direction: row; -ms-flex-align: center; align-items: center; margin-bottom: 0px; }
.group-tabs .tab-item                           { margin: 0 16px 0 0; padding: 11px 14px 4px 20px; background-color: #e4e7ea;  border-radius: 4px 4px 0px 0px; max-width: 230px; } /* 230 = padding 34 + name 150 + logo 46 so a full-width name with logo fits */
.group-tabs .tab-item .d-flex                   { min-width: 0; } /* allow the title column to shrink instead of pushing the logo past the tab edge */
.group-tabs .tab-item.active                    { background-color: #ffffff; box-shadow: 4px 4px 5px 0px rgba(0,0,0,0.25); position: relative; z-index: -1; }
.group-tabs .title                              { color: #6F6E83; font-size: 18px; font-weight: bold; line-height: 18px; padding-bottom: 4px; min-width: 0; flex: 1 1 auto; }
.group-tabs .tab-img                            { margin-left: 12px; flex: 0 0 auto; } /* logo keeps its size; the name ellipsizes instead */
.group-tabs .title .group-name                  { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-bottom: 2px; }
.group-tabs .title .desc                        { color: #A4AFB7; font-size: 12px; font-weight: normal; line-height: 16px; }
.group-tabs .active .title                      { color: var(--spock-text-dark-color); }
.group-tabs .tab-item a:hover .title            { color: #43425D; }
.group-tabs .tab-img img                        { width: 32px; height: 32px; border-radius: 3px; border: 1px solid #A4AFB7; display: inline-block; opacity:0.5; }
.group-tabs .active .tab-img img                { opacity:1; }
.group-tabs img.dropdown-img                    { height: 18px; width: 18px; border-radius: 3px; border: 1px solid #A4AFB7; }
.group-tabs .dropdown-item .desc                { color: #a3acb9; }

.section-tabs                                   { background-color: #ffffff; -ms-flex-direction: row; flex-direction: row; -ms-flex-align: center; align-items: center; margin-bottom: 0px; border-top-right-radius:3px; }
.section-tabs a.tab-link                        { font-size: 14px; color: var(--spock-text-normal-color); font-weight: normal; padding: 16px 32px 10px 32px; display: block; border-bottom: 2px solid #ffffff; }
.section-tabs a.tab-link:hover                  { border-bottom: 2px solid #cad4dc; color: #2a2f45; }
.section-tabs .active a.tab-link                { font-weight: bold; border-bottom: 2px solid #43425D; }


/* REQUEST LEAVE FORM — Request Preview pane
   The preview is the read-back of the form: hero (type + itinerary dates),
   balance ledger with a segmented meter, details, approval. Stat-cell idiom
   throughout: dark value over muted label. Pending states are neutral rings;
   red appears only for blocking states, never on a pristine form. */
.request-preview-wrap                           { border-left: 1px solid #e3e8ee; background-color: #ffffff; }
.request-form-pane                              { padding: 1.5rem; max-width: 550px; }
.request-form-pane  #id_absence_type            { width:70%; }
.request-preview-pane                           { background-color: #ffffff; }
.request-preview-pane .preview-section          { padding: 18px 22px; border-bottom: 1px solid var(--spock-hairline-color); background-color: #ffffff; }
.request-preview-pane .preview-section:last-child { border-bottom: 0; }

/* Header band: eyebrow title + live status chip naming the next step */
.request-preview-pane .preview-section.header   { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 22px; background-color: var(--spock-table-header-bg-color); }
.request-preview-pane .preview-section.header h3 { margin: 0; padding: 0; font-size: 11px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--spock-text-light-color); line-height: 20px; }
.request-preview .preview-status                { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; color: var(--spock-text-normal-color); white-space: nowrap; }
.request-preview .preview-status .status-dot    { width: 7px; height: 7px; border-radius: 50%; background: var(--spock-meter-spent-color); flex-shrink: 0; }
.request-preview .preview-status.tone-ok        { color: var(--spock-text-success-color); }
.request-preview .preview-status.tone-ok .status-dot { background: var(--spock-text-success-color); }
.request-preview .preview-status.tone-error     { color: var(--spock-text-danger-color); }
.request-preview .preview-status.tone-error .status-dot { background: var(--spock-text-danger-color); }

/* Section eyebrows ("BALANCE", "APPROVAL") */
.request-preview .section-eyebrow               { font-size: 11px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--spock-text-very-light-color); margin-bottom: 10px; }

/* Row state: quiet hollow ring while pending, semantic color once acted on */
.request-preview .state-icon                    { flex-shrink: 0; width: 18px; height: 18px; display: inline-flex; align-items: center; justify-content: center; margin-top: 2px; }
.request-preview .state-icon i                  { font-size: 16px; }
.request-preview .state-icon.state-ok           { color: var(--spock-text-success-color); }
.request-preview .state-icon.state-error        { color: var(--spock-text-danger-color); }
.request-preview .state-icon.state-pending      { width: 14px; height: 14px; margin: 4px 2px 0 2px; border: 1.5px solid var(--spock-meter-spent-color); border-radius: 50%; }

/* Hero: leave type + itinerary dates */
.request-preview .hero-type                     { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.request-preview .type-name                     { font-size: 16px; font-weight: 600; color: var(--spock-text-very-dark-color); line-height: 22px; }
.request-preview .type-name.placeholder         { color: var(--spock-text-very-light-color); font-weight: 500; }
.request-preview .type-availability             { font-size: 12px; margin-top: 1px; }
.request-preview .type-availability::first-letter { text-transform: uppercase; }
.request-preview .type-availability.tone-ok     { color: var(--spock-text-success-color); }
.request-preview .type-availability.tone-error  { color: var(--spock-text-danger-color); font-weight: 500; }
.request-preview .hero-tags                     { margin-top: 8px; }
.request-preview .quiet-tag                     { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 500; color: var(--spock-text-normal-color); background: var(--spock-bg-light-color); border: 1px solid var(--spock-hairline-color); border-radius: 999px; padding: 2px 10px; line-height: 18px; }
.request-preview .quiet-tag i                   { font-size: 10px; color: var(--spock-text-very-light-color); }
.request-preview .quiet-tag.placeholder         { color: var(--spock-text-very-light-color); }
.request-preview .am-pm                         { text-transform: uppercase; }

.request-preview .hero-dates                    { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-top: 14px; }
.request-preview .itinerary                     { display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; }
.request-preview .itin-eyebrow                  { font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--spock-text-very-light-color); margin-bottom: 2px; }
.request-preview .itin-value                    { font-size: 15px; font-weight: 600; color: var(--spock-text-very-dark-color); line-height: 20px; font-variant-numeric: tabular-nums; }
.request-preview .itin-value.placeholder        { color: var(--spock-text-very-light-color); font-weight: 500; }
.request-preview .itin-arrow                    { color: var(--spock-meter-spent-color); font-size: 13px; padding-bottom: 3px; }
.request-preview .hero-meta                     { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.request-preview .duration-pill                 { font-size: 12px; font-weight: 600; color: var(--spock-link-color); background: var(--spock-bg-selected-color); border-radius: 999px; padding: 2px 10px; line-height: 18px; font-variant-numeric: tabular-nums; }

/* Balance: flat segmented meter + typographic ledger + fact cells */
.request-preview .balance-meter                 { display: flex; height: 6px; border-radius: 3px; background: var(--spock-meter-track-color); overflow: hidden; margin-bottom: 12px; }
.request-preview .meter-seg                     { height: 100%; transition: width .25s ease; }
.request-preview .meter-seg.seg-spent           { background: var(--spock-meter-spent-color); }
.request-preview .meter-seg.seg-request         { background: var(--spock-link-color); }
.request-preview .ledger                        { margin: 0; }
.request-preview .ledger-row                    { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 3px 0; }
.request-preview .ledger-row dt                 { font-size: 13px; font-weight: 400; color: var(--spock-text-light-color); }
.request-preview .ledger-row dd                 { margin: 0; font-size: 13px; font-weight: 600; color: var(--spock-text-very-dark-color); font-variant-numeric: tabular-nums; }
.request-preview .ledger-row.cost dd            { color: var(--spock-link-color); }
.request-preview .ledger-row.after              { border-top: 1px solid var(--spock-hairline-color); margin-top: 4px; padding-top: 7px; }
.request-preview .ledger-row.after dt           { color: var(--spock-text-normal-color); font-weight: 500; }
.request-preview .ledger-row.after dd           { font-size: 14px; }
.request-preview .ledger-row dd.tone-error      { color: var(--spock-text-danger-color); }
.request-preview .balance-facts                 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; margin-top: 14px; padding-top: 12px; border-top: 1px solid #f4f6f9; }
.request-preview .fact-cell .fact-value         { font-size: 13px; font-weight: 600; color: var(--spock-text-dark-color); line-height: 18px; font-variant-numeric: tabular-nums; }
.request-preview .fact-cell .fact-value.tone-error { color: var(--spock-text-danger-color); }
.request-preview .fact-cell .fact-label         { font-size: 11px; color: var(--spock-text-very-light-color); line-height: 15px; margin-top: 1px; }
.request-preview .fact-cell .fact-label.tone-warn { color: var(--spock-event-blackout-color); }

/* Details: label-over-value read-back rows */
.request-preview .detail-row                    { display: flex; flex-direction: column; gap: 2px; padding: 7px 0; }
.request-preview .detail-row:first-child        { padding-top: 0; }
.request-preview .detail-row:last-child         { padding-bottom: 0; }
.request-preview .detail-row + .detail-row      { border-top: 1px solid #f4f6f9; }
.request-preview .detail-label                  { font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--spock-text-very-light-color); }
.request-preview .detail-label .detail-hint     { font-weight: 400; letter-spacing: 0; text-transform: none; }
.request-preview .detail-value                  { font-size: 13px; color: var(--spock-text-dark-color); overflow-wrap: anywhere; }
.request-preview .detail-value.empty            { color: var(--spock-text-very-light-color); }
.request-preview .detail-value.placeholder      { color: var(--spock-text-very-light-color); }
.request-preview .detail-value.person           { display: flex; align-items: center; gap: 7px; font-weight: 500; }
.request-preview .detail-value.person .img-avatar { width: 20px; height: 20px; border-radius: 50%; }

/* Approval: who this goes to */
.request-preview .approver                      { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: var(--spock-text-dark-color); padding: 3px 0; }
.request-preview .approver .img-avatar          { width: 24px; height: 24px; border-radius: 50%; }
.request-preview .approval-hint                 { font-size: 12px; color: var(--spock-text-light-color); margin-top: 6px; }

/* Blocking validation panel (also used inline under the picker on mobile) */
.validation-error                               { margin-top: 12px; margin-bottom: 4px; padding: 10px 14px; font-size: 13px; color: var(--spock-text-danger-dark-color); border: 1px solid #fae3de; border-radius: 6px; background-color: var(--spock-bg-danger-color); }
.validation-error .message                      { font-weight: 600; }
.validation-error ul                            { margin: 4px 0 0 0; padding-left: 18px; }
.validation-error .event-type                   { font-weight: 600; }
/* Amber advisory panel for warn behavior events; never red, submit stays enabled */
.validation-warning                             { margin-top: 12px; margin-bottom: 4px; padding: 10px 14px; font-size: 13px; color: var(--spock-event-blackout-color); background-color: var(--spock-event-blackout-bg-color); border: 1px solid var(--spock-event-blackout-border-color); border-radius: 6px; }
.validation-warning .message                    { font-weight: 600; }
.validation-warning ul                          { margin: 4px 0 0 0; padding-left: 18px; }
/* Event type prefix ("Blackout Day:") carries the weight so the kind of event scans first */
.validation-warning .event-type                 { font-weight: 600; }
/* Event description: what the event is, one step quieter than the line that says what to do about it */
.validation-error .event-description,
.validation-warning .event-description          { margin-top: 2px; font-size: 12px; opacity: 0.8; }

@media (min-width: 1200px) {
  /* Keep the preview in view while the (taller) form column scrolls */
  .request-preview-pane                          { position: sticky; top: 12px; }
}
@media (max-width: 1199.98px) {
  /* Bottom sheet: keep the status chip clear of the absolute close button */
  .request-preview-pane .preview-section.header  { padding-right: 56px; }
}
@media (prefers-reduced-motion: reduce) {
  .request-preview .meter-seg                    { transition: none; }
}

#request-leave-form #id_start_hour,
#request-leave-form #id_end_hour                { width: 100px; }
#request-leave-form .date-picker-part           { padding-right: 32px; }
#recurring-form #id_week_days                   { padding-inline-start: 24px;}
#recurring-form #id_week_days li                { list-style-type: none;}

/* v2 Spock App Design */
.v2.v2-list .user-avatar                            { width: 36px; height: 36px; margin: 0px; }
.v2.v2-list td.avatar-wrap                          { width: 38px; }
.v2.v2-list .item-count                             { color:#697386; }
.v2.v2-list .valign-middle                          { vertical-align: middle; }
.v2.v2-list td .handle                              { color: var(--spock-text-light-color); color: #667085; }
.v2 .card-header .badge-wrap                        { margin-top: -2px; margin-left: 6px; }
.v2 .card-header .card-title                        { margin-bottom: 0; color: var(--spock-text-very-dark-color); }
.v2 .card-header.list-header                        { padding: 1rem 1.5rem 1rem; font-size: 18px; font-weight: 600; }
.v2 .ideo-table a.item-link                         { color: var(--spock-text-very-dark-color); font-weight: 500; font-size: 14px; line-height: 20px; }
.v2 .ideo-table a.item-link.as-link                 { color: var(--spock-link-color); font-weight: 400; }
.v2 .list-filter                                    { padding: 1rem; border-bottom: 1px solid #e3e8ee; background-color: #f0f3f5; }
.v2 .list-filter .search-query                      { display: inline; background: #FFFFFF; border: 1px solid #D0D5DD; box-sizing: border-box; box-shadow: 0px 1px 2px rgba(16, 24, 40, 0.05); border-radius: 8px; width: 400px; height: 36px; }
.v2 .list-filter .search-button                     { line-height: 25px; }
.v2 .list-filter .filter-select                     { margin-right:6px; border: 1px solid #D0D5DD; background: #FFFFFF; color: var(--spock-text-light-color); box-sizing: border-box; box-shadow: 0px 1px 2px rgba(16, 24, 40, 0.05); padding: 6px 6px; border-radius: 8px; height: 36px; }
.v2 td.avatar-wrap                                  { padding: 12px 0px 12px 12px; }
.no-records                                         { padding:3rem; text-align: center; }
.v2.v2-list .member-name                            { line-height: 1; margin-left: 2px; }
.v2.v2-list td.avatar-wrap                          { padding: 12px 0px 12px 18px; }
.v2.v2-list .handle                                 { font-size: 12px; }
.v2.v2-list .member-title                           { color: var(--spock-text-normal-color); font-size: 12px; }
.v2.v2-list .member-groups                          { color: var(--spock-text-normal-color); font-size: 12px; }
.v2.v2-list td                                      { padding: 12px 8px; }


/* Tables */
.v2 table.ideo-table thead th                       { font-weight: 400; color: #2a2f45; background-color: #FCFCFD; text-align: center; border-bottom: 1px solid #e3e8ee; border-top: 0; padding: 12px; font-size: 11px; text-transform: uppercase; font-weight: 400; line-height: 18px; color: #667085; letter-spacing: 1px; }
.info-table th                                      { color: var(--spock-text-light-color); font-weight: 400; padding-right: 2rem; }
.info-table th, td                                  { padding-bottom: 1rem; }

.v2 table.form-table th                             { padding: 0 2px 2px 4px; font-weight: 500; font-size: 12px;}
.v2 table.form-table td                             { padding: 0 12px 0px 2px;}

/* Organization - Member */
.v2-card .card-header.small                              { padding: 1rem 2rem; }
.v2-card .card-header                                    { padding: 2rem; }
.v2-card .card-body                                      { padding: 0rem 2rem 2rem 2rem; }
.v2-card .card-body.form-body                            { background-color: #f7fafc; }

@media (max-width: 767px) {
    .v2-card .card-header                                { padding: 8px 0 0 0; }
    .v2-card .card-body                                  { padding: 0; }
}

.v2-card .text-value small                               { font-weight: normal; font-size: 50%; }
.v2-card .card-header .img-avatar                        { height:72px; width:72px; border: 3px solid #fff;  box-shadow: 0px 2px 4px -2px rgba(10, 13, 18, 0.08), 0px 4px 6px -1px rgba(10, 13, 18, 0.08); }
.v2-card .card-header .heading-wrap                      { margin-bottom: 1rem; }
.v2-card .card-header .heading                           { display: flex; -ms-flex-direction: row; flex-direction: row;  }
.v2-card .card-header .heading-avatar                    { margin-right: 16px; width: 72px; flex-shrink: 0; position: relative;}
.v2-card .card-header .heading-avatar .user-status-box   { position: absolute; top:60px; left:-14px; padding-top: 0px; padding-bottom: 0px; line-height: 18px; background-color: #111; color: #fff5f5; border: 1px solid #111; }
.v2-card .card-header .heading-group                     { line-height: 21px; padding-top: 0px; font-size: 14px;  }
.v2-card .card-header .heading-group-icon                { margin-right: 12px; }
.v2-card .card-header .header-icon                       { height: 44px; width: 44px; background-color: #5c6873; border-radius: 6px;  display: flex; justify-content: center; align-items: center; }
.v2-card .card-header .header-icon svg                   { fill: #fdfdfe; display: block;}
.v2-card .card-header .heading-group-desc strong         { color: var(--spock-text-dark-color); }
.v2-card .card-header .heading-group-desc                { line-height: 21px; font-size: 13px; font-weight: 400; color: var(--spock-text-light-color); }
.v2-card .card-header .heading-group-desc .group-description   { margin-bottom: 8px; }
.v2-card .card-header .heading-group-desc a.team-calendar-link         { color: var(--spock-text-light-color); }
.v2-card .card-header .heading-group-desc a.team-calendar-link:hover   { color: var(--spock-link-color); }
.v2-card .card-header .heading-group .group-name         { font-size: 21px; font-weight: 600; }
/* --- Member profile header: one identity column in strict reading order
   (name + availability pill / handle · title / team chips). Replaces the
   old two-column name|title split and its divider. --- */
#member .card-header .heading                            { align-items: center; }
#member .card-header .heading-avatar                     { width: 86px; }
#member .card-header .heading-avatar .img-avatar         { height: 86px; width: 86px; }
#member .card-header .heading-avatar .user-status-box    { top: 74px; }
#member .heading-identity                                { min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 3px; }
#member .identity-name-row                               { display: flex; align-items: center; column-gap: 10px; row-gap: 2px; flex-wrap: wrap; }
#member .identity-name-row .user-name                    { font-size: 20px; font-weight: 600; line-height: 26px; letter-spacing: -0.2px; color: var(--spock-text-very-dark-color); }
#member .identity-name-row .gm-status                    { padding: 2px 10px 2px 8px; border-radius: 999px; background: var(--spock-bg-light-grey-color); box-shadow: inset 0 0 0 1px var(--spock-border-light-color); }
#member .identity-meta                                   { display: flex; align-items: baseline; gap: 7px; min-width: 0; font-size: 13px; line-height: 18px; color: var(--spock-text-light-color); }
#member .identity-meta .title                            { color: var(--spock-text-normal-color); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#member .identity-meta .identity-sep                     { color: var(--spock-text-very-light-color); }
#member .heading-identity .team-chips                    { margin-top: 3px; }

@media (max-width: 575.98px) {
    #member .card-header .heading-avatar                 { width: 56px; margin-right: 12px; }
    #member .card-header .heading-avatar .img-avatar     { height: 56px; width: 56px; }
    #member .card-header .heading-avatar .user-status-box{ top: 44px; }
    #member .identity-name-row .user-name                { font-size: 18px; line-height: 24px; }
}
.v2-card .card-header .heading-tabs                      { padding: 0rem; border-top: 1px solid var(--spock-border-light-color); border-bottom: 1px solid var(--spock-border-light-color); }
.v2-card .card-header .heading-tabs li.nav-item          { margin-right: 1.5rem; }
.v2-card .card-header .heading-tabs a.nav-link           { color: var(--spock-text-light-color); font-size: 13px; font-weight: 400; border-bottom: 2px solid transparent; margin: 0.5rem 0.5rem 0.5rem 0.5rem;    }
.v2-card .card-header .heading-tabs a.nav-link.active:hover,
.v2-card .card-header .heading-tabs a.nav-link.active    { color: var(--spock-text-very-dark-color); background-color: #fbfbfb; border: 1px solid #f1f1f1; border-radius: 6px; font-weight: 500; border-bottom: 3px solid var(--spock-text-very-dark-color); }
.v2-card .card-header .heading-tabs a.nav-link:hover     { color: var(--spock-text-very-dark-color); background-color: #fafafa; border-bottom: 3px solid #f1f1f1; }

.v2-card .card-header .group-description                  { font-size: 14px; color: var(--spock-text-normal-color); font-style: ditalic;  margin-top: 0.5rem; margin-bottom: 0.5rem; }

/* Location detail tabs match member profile tab spacing */
#location-detail .location-detail-header                 { margin-top: 1.5rem; margin-bottom: 0.5rem; }
#location-detail .location-detail-header h3              { font-size: 18px; font-weight: 600;  }
#location-detail .heading-tabs                           { margin-top: 0.35rem; }
#location-detail .heading-tabs .nav                      { gap: 0.75rem; }
#location-detail .heading-tabs .nav-link                 { padding-left: 1.1rem; padding-right: 1.1rem; display: inline-flex; align-items: center; gap: 0.4rem; }
#location-detail .heading-tabs .nav-link i               { color: var(--spock-text-light-color); font-size: 13px; }
#location-detail .heading-tabs .nav-link .badge          { font-weight: 600; background-color: var(--spock-bg-normal-color); }
/* Location detail summary tiles */
#location-detail .location-summary                       { background-color: #f5f7fa; border-bottom: 1px solid var(--spock-border-light-color); }
#location-detail .location-summary .row                  { margin-left: -0.5rem; margin-right: -0.5rem; }
#location-detail .location-summary .row > [class^="col-"]{ padding-left: 0.5rem; padding-right: 0.5rem; }
#location-detail .summary-tile                           { background: #ffffff; border: 1px solid #e8ecf3; border-radius: 12px; padding: 16px 18px; box-shadow: 0 6px 16px -14px rgba(28, 34, 45, 0.35); height: 100%; display: flex; flex-direction: column; gap: 6px; }
#location-detail .summary-label                          { color: var(--spock-text-light-color); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 500; }
#location-detail .summary-value                          { color: var(--spock-text-dark-color); font-size: 16px; font-weight: 500; line-height: 1.35; }
#location-detail .summary-subtext                        { color: var(--spock-text-light-color); font-size: 12px; }
#location-detail .summary-icon                           { display: none; }
#location-detail .working-days-badges                    { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
#location-detail .working-days-badges .day-badge          { display: inline-block; padding: 2px 6px; border-radius: 6px; font-size: 11px; font-weight: 500; }
#location-detail .working-days-badges .day-badge.active   { background: var(--spock-text-normal-color); color: #fff; }
#location-detail .working-days-badges .day-badge.inactive { background: #e8ecf3; color: var(--spock-text-light-color); }
#location-detail .location-table-wrapper                  { border: 1px solid #f1f1f1; border-radius: 6px;}
#location-detail .location-table-wrapper .ideo-table tr:last-child td { border-bottom: 0;}
#location-detail .location-users-table                    {  margin-bottom: 0;}
#location-detail .location-table-wrapper .ideo-table thead th           { font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 500; padding: 12px 16px; }
#location-detail .location-users-table tbody td           { vertical-align: middle; padding: 14px 16px; }
#location-detail .location-users-table .avatar-sm         { width: 36px; height: 36px; border-radius: 50%; box-shadow: 0 4px 10px -8px rgba(0,0,0,0.35); }
#location-detail .location-users-table .user-name         { color: var(--spock-text-dark-color); font-weight: 500; line-height: 1.2; }
#location-detail .location-users-table tbody tr:hover     { background: #ffffff; }
#location-detail .location-users-table .btn-std.secondary { font-size: 12px; }
#location-detail .heading-tabs                            { border-top:0; }

/* tabs-nav: heading tabs component (pill + dark blue underline design) */
.tabs-nav                                                      { padding: 0; border-bottom: 1px solid var(--spock-border-light-color); }
.tabs-nav__list                                                { display: flex; gap: 0.75rem; list-style: none; margin: 0; padding: 0; }
.tabs-nav__item                                                { margin: 0; }
.tabs-nav__item--active                                        { border-bottom: 3px solid var(--spock-text-very-dark-color); margin-bottom: -1px; }
.tabs-nav__link                                                { display: inline-flex; align-items: center; gap: 0.4rem; margin-top:0.5rem; margin-bottom: 0.5rem; padding: 0.25rem 1rem; color: var(--spock-text-light-color); font-size: 13px; font-weight: 400; text-decoration: none; border-radius: 8px; }
.tabs-nav__link:hover                                          { color: var(--spock-text-very-dark-color); background-color: #fbfbfb; box-shadow: rgb(238, 239, 241) 0px 0px 0px 1px inset; }
.tabs-nav__link--active                                        { color: var(--spock-text-very-dark-color); font-weight: 500; background-color: #fbfbfb; box-shadow: rgb(238, 239, 241) 0px 0px 0px 1px inset; }
.tabs-nav__link--active:hover                                  { color: var(--spock-text-very-dark-color); background-color: #fbfbfb; }
.tabs-nav__icon                                                { display: inline-flex; color: var(--spock-text-light-color); font-size: 13px; }
.tabs-nav__link--active .tabs-nav__icon                        { color: var(--spock-text-very-dark-color); }
.tabs-nav__badge                                               { font-weight: 600; font-size: 12px; background-color: var(--spock-bg-light-color); color: var(--spock-text-very-dark-color); padding: 0rem 0.5rem; border-radius: 4px; }
/* Trailing redirect indicator on tabs that navigate to another section */
.tabs-nav__external                                            { display: inline-flex; margin-left: 2px; font-size: 9px; color: #A0A8C2; }
.section-tabs .tab-external-icon                               { font-size: 9px; color: #A0A8C2; margin-left: 2px; }
#location-detail .tabs-nav                                     { margin-top: 0.35rem; }
#location-detail .tabs-nav__list li:first-child .tabs-nav__link { margin-left: 0; }
#location-detail .card-header#location-detail-tabs .tabs-nav   { border-top: 0; }

#location-detail #location-leave-types                    { margin-bottom: 0;}
#location-detail #location-leave-types td                 { padding-top: 12px;}

#locations .card-body                                     { padding: 0; } 
#location-detail .card-header                             { padding: 24px 24px; } 
#location-detail .card-header .header-title               { font-size: 18px; font-weight: 600; }
#location-detail .card-header#location-detail-tabs        { padding: 0 0rem; }
#location-detail .card-header#location-detail-tabs ul li:first-child       { margin-left: 2rem; }


#locations table .badge-std                              { margin-bottom: 0; }  

#assignUsersModal .user-item                              { padding-left: 12px; border-top: 1px solid var(--spock-border-light-color); padding-top: 12px; padding-bottom: 12px; display: flex; align-items: center; gap: 0.5rem;}
#assignUsersModal .user-item > input[type="checkbox"]     { flex-shrink: 0; }
#assignUsersModal .user-item > img                        { flex-shrink: 0; }
#assignUsersModal .user-item > strong                     { flex: 0 1 auto; }
#assignUsersModal .user-item > .user-location             { margin-left: auto; flex-shrink: 0; text-align: right; }
#assignUsersModal .user-item > .user-location span        { font-weight: 600; font-size: inherit; }
#assignUsersModal .user-item.selected                     { background-color: #f9fbff; }
#assignUsersModal .modal-body                             { background-color: #fff;}

.v2-card .section-pane                                   { padding-left: 14px; padding-bottom: 4px; }
.v2-card .section-pane.info-pane                         { padding-top: 8px; margin-bottom: 2rem; }
.v2-card#request .section-pane.info-pane                 { margin-bottom: 0; }
.v2-card .section-title                                  { line-height: 21px; padding-bottom: 4px; color: var(--spock-text-very-dark-color); font-size: 16px; font-weight: 600; padding-left: 0.5rem; }
.v2-card#group .section-title                            { font-size: 15px; }
.v2-card .section-title .year                            { color: var(--spock-text-light-color); font-weight: 400; }
.v2-card .section-title.deleted-leaves                   { color: var(--spock-text-danger-dark-color); }
.v2-card .section                                        { padding-top: 1rem; }
.v2-card .section.all                                    { padding-left: 15px; }
.v2-card #absences td.month                              { font-weight: bold; font-style:italic; border-bottom: 1px solid #dae1e5; background-color: #f7f9fb; padding: 0.3rem;  }
.v2-card #absences th                                    { border-bottom: 1px solid #d4dbdf; }
.v2-card .year-selector                                  { font-size: 12px; line-height: 12px; margin-right: 6px; }
.v2-card .balances-pane                                  { margin-bottom: 2rem; }

.v2-card .ideo-badge,
.v2-card .notes-text                                { font-style: italic; background-color: rgba(255, 255, 0, 0.22);}
.v2-card .duration-text                             { color:#999999; font-size: 11px; }
.v2-card .date-text                                 { font-weight: bold; color:#343f44; }
.v2-card .date-day                                  { font-weight: bold; color:#738a94; }
.v2-card .absences-list td.notes                    { vertical-align: middle; width:20%; }
.v2-card .over-run                                  { color: var(--spock-text-danger-color); }
#month-summary .ideo-badge                          { width:80px; }
#month-summary .title-desc                          { color: var(--spock-text-very-light-color); font-weight: 400; }

.inline-avatar-small .img-avatar                    { width: 18px !important; height: 18px !important; margin-right: 4px;}

.absences-list .request-date                              { font-weight: 500; }
.absences-list .leave-dates,
.absences-list .leave-duration,
.absences-list .leave-type,
.absences-list .leave-action                        { white-space: nowrap; }

.brand-card                                     { box-shadow: 0 1px 0 rgba(0,0,0,.07);  }
.brand-card-header                              { height: 3rem; box-shadow: 0 1px 0 rgba(0,0,0,.08); }
.brand-card-header .brand-title                 { color: #111111; text-shadow: 0 -1px 0 rgba(255,255,255,.5); font-size: 18px; font-weight: 600; }

#group .remove-member                           { display: none; line-height: 1; }
#groups #groups-list td                         { padding: 14px; }


#group-add-member .member-label                 { margin-left: 2px; }
#group-add-member .role-label                   { margin-left: 5px; }
#group-add-member .add-member                   { margin-top: 4px; margin-left: 2px; }
#group-add-member .role-container.hidden        { visibility: hidden; }
#group-add-member .role-container.shown         { visibility: visible; }
#group-add-member label                         { color:#4f566b; cursor: pointer; }
#group-add-member .group-cohort-list td         { border-top: 1px solid #e1e1e1; border-bottom: 1px solid #e1e1e1; background-color: #fcfcfc; }


#member-allowances .allowance-wrap                                { border: 1px solid #00000014; background-color: #fcfcfc; border-radius: 8px; margin-bottom: 2rem; padding:0.25rem 0.5rem 0.5rem 0.5rem;  }
#member-allowances .allowances-heading                            { margin-bottom: 1em; margin-top: 1rem; padding-left: 8px; }
#member-allowances .allowances-heading .section-title             { font-size: 16px; }
#member-allowances .allowance-wrap .section                       { padding-top: 0.75rem; padding-bottom: 0.5rem; }
#member-allowances .allowance-wrap .section-title                 { font-size: 16px; font-weight:500; padding-top: 6px; }
#member-allowances .overriden-tag                                 { color: var(--spock-text-light-color); }
.change-history                                { padding: 15px; }
.change-history .change-history-title          { font-weight: 500; font-size: 14px; color: var(--spock-text-very-dark-color) }
.change-history hr                             { margin-top: 0.25rem; }
.change-history .change-history-items .bullet  { padding-top: 1px;  }
.change-history.status .change-history-items .bullet    { color: var(--spock-text-dark-color); }
.change-history.other .change-history-items .bullet     { color: var(--spock-text-success-color); }
.change-history .change-history-item           { margin-bottom: 1.5rem; }
.change-history .change-history-data           { margin-left: 8px; }
.change-history .change-desc                   { color: var(--spock-text-light-color); }
.change-history .change-time                   { color: var(--spock-text-light-color); }
.change-history .note                          { color: var(--spock-text-light-color); font-style: italic; }
.change-history .range                         { color: var(--spock-text-light-color); font-style: italic; }
.change-history em                             { background-color: rgba(255, 255, 0, 0.22); }
.change-history table                          { margin: 0.5rem 0; }
.change-history table td                       { padding-bottom: 0; font-style: italic; }
.change-history table th                       { color: var(--spock-text-light-color); font-weight: normal; padding-right: 1rem; }

.calendar-links                                { padding: 12px 16px 16px 16px; background-color: #FAFAFA; border-radius: 6px; }
.calendar-links .calendar-buttons button       { margin-right: 4px; }
.calendar-links .calendar-links-title          { font-weight: 500; font-size: 14px; color: var(--spock-text-dark-color); margin-bottom: 0.5rem;  }

#member-roles                                                     { margin-top: 8px;}
#member-roles .roles-pane                                         { margin-top: 8px;}
#member-roles .roles-pane label                                   { margin-left: 2px;}

#member-roles .remove-membership                                  { margin-top: 2rem; }
#member-roles .add_member_form                                    { margin-top: 2rem; }
#member-roles .add-membership-control                             { margin-top: 1rem; padding-left: 1px; }
#member-roles .add_member_form_wrap                               { display: none; }
#member-roles .help-text                                          { color: var(--spock-text-light-color); font-style: italic }

/* Card header on the leave type form: color badge on the left, help/video
   chips pushed to the right edge and vertically centered. */
#absence-type-form .form-card > .card-header                      { display: flex; align-items: center; gap: 0.5rem; }
#absence-type-form .form-card > .card-header .header-actions      { margin-left: auto; display: flex; align-items: center; gap: 0.5rem; }
/* The Help chip is a button inside an <a>. As a flex item the <a> is blockified,
   so its height becomes a line box — button plus the parent font's descender
   space — which pushes the chip above the video chip. inline-flex removes the
   line box so both chips are measured by their button height alone. The anchor
   must also clear its underline: an inline-flex child is a block-level flex item,
   so the link decoration would propagate into the chip, and a descendant cannot
   cancel a decoration inherited from an ancestor. */
#absence-type-form .form-card > .card-header .header-actions > a  { display: inline-flex; align-items: center; text-decoration: none; }
#absence-type-form .carryover-toggle                              { padding-left: 2rem; }
#absence-type-form .carryover-item                                { padding-bottom: 1rem; }
#absence-type-form .carryover-item label                          { margin-right: 0.5rem; font-weight: 400;}
#absence-type-form #id_carryover_limit_days,
#absence-type-form #id_carryover_expiration_days                  { width: 5rem;}
#absence-type-form #carryover-expiration-hide label               { margin-bottom: 0;}
#absence-type-form hr                                             { margin: 12px 0 16px 0; border-top: 1px solid #e6e8eb; }
#absence-type-form .form-group                                    { margin-bottom: 0.5rem; }
#absence-type-form #id_slack_status_emoji                         { display: inline-block; width: 60px;  }
#absence-type-form #id_slack_status_text                          { display: inline-block; width: 400px }



#id-adjustment-allowance                                          { width: 6rem; }
.adjustment-hours                                                 { display: inline-block; margin-left: 8px; border-radius: 4px; border: 1px solid #e4e7ea; padding: 4px 10px; background-color: #ffffff; }
#policy-app #id_carryover_limit_days                              { width: 4rem; }
#policy-app #id_carryover_expiration_days                         { width: 4rem; }
#policy-app .modal-container                                      { width: 550px; }
#policy-app #carryover-expiration-wrap label                      { font-weight: normal; }
#policy-app #id_carryover_policy                                  { width: 12rem; }

#approval-app .modal-container                                    { width: 550px; }
#approval-app .modal-footer a.cancel-link                         { margin-right: 0.5rem; }

/* Approval Policy Styles */
.policy-card {
    margin-bottom: 15px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.policy-card.selected {
    background-color: #f0f8ff;
    border-color: #4a90e2;
}

.policy-card:hover {
    border-color: #aaa;
}

.policy-card.selected:hover {
    border-color: #4a90e2;
}

.policy-form {
    margin-bottom: 20px;
}

.policy-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    margin-bottom: 0;
}

.policy-radio {
    margin-right: 10px;
    margin-top: 4px;
}

.policy-content {
    flex: 1;
}

.policy-title {
    font-size: 15px;
}

.policy-description {
    color: #666;
    font-size: 13px;
}

.policy-custom-section {
    margin-top: 15px;
    padding-top: 6px;
    margin-left: 22px;
    border-top: 1px solid #d0e7ff;
}

.policy-custom-section button {
    margin-top: 6px;
}

.policy-approvers-list {
    margin-top: 10px;
}

.policy-approvers-header {
    color: var(--spock-text-light-color);
    font-weight: 500;
    margin-bottom: 6px;
    display: block;
    font-size: 13px;
}

.policy-approver-item {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    padding: 8px;
    background: #ffffff;
    border-radius: 8px;
}

.policy-approver-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 10px;
    flex-shrink: 0;
}

.policy-approver-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.policy-approver-link {
    color: #4a90e2;
    text-decoration: none;
    font-size: 14px;
}

.policy-approvers-empty {
    color: #666;
    font-style: italic;
}

.current-status-title {
    margin-bottom: 15px;
}

.badge-no-approval {
    background-color: #f0f0f0;
    color: #666;
}

.badge-approval-required {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.status-note {
    color: #666;
    font-style: italic;
}

#member-holidays .calendar-info                                   { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-bottom: 0; }
#member-holidays .calendar-info .badge-std                        { margin-bottom: 0; vertical-align: baseline; }
#member-holidays .calendar-label                                  { color: var(--spock-text-light-color); font-weight: 400; }
#member-holidays .calendar-name                                   { font-weight: 600; }
#member-holidays .calendar-actions                                { margin-top: 8px; }
#member-holidays .calendar-actions .reset-form                    { display: inline; }
#member-holidays .calendar-actions .action-link                   { font-size: 13px; }
#member-holidays .reset-info                                      { display: block; font-size: 12px; color: #667085; margin-top: 4px; }
#member-holidays #change-calendar-form                            { margin-top: 8px; padding: 10px 14px; background: #F9FAFB; border: 1px solid #EAECF0; border-radius: 6px; display: none; }
#member-holidays #change-calendar-form form                       { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
#member-holidays #change-calendar-form .form-control              { max-width: 400px; flex-shrink: 1; }

/* ============================================================================
   Member — Holidays tab, events of the member's effective calendar.
   Same stat-cell rows as the settings calendar events list (dark value over
   muted label, gray bands with count pills), but read only and split by time:
   what is still ahead sits above what already happened, and only upcoming rows
   fill the relative-time rail on the right.
   ============================================================================ */
/* Line the panes up with their section titles (.section-title sits at 0.5rem) */
#member-holidays .section-pane                                    { padding-left: 8px; }
#member-holidays .events-card                                     { background: #ffffff; border: 1px solid var(--spock-card-border-color); border-radius: 10px; overflow: hidden; }

/* Time band: gray strip with a count pill, reused from the settings lists */
#member-holidays .events-band                                     { display: flex; align-items: center; gap: 8px; padding: 8px 20px; font-size: 11px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--spock-text-light-color); background: var(--spock-table-header-bg-color); border-bottom: 1px solid var(--spock-hairline-color); }
#member-holidays .events-band:not(:first-child)                   { border-top: 1px solid var(--spock-hairline-color); }
#member-holidays .events-band .band-count                         { padding: 0 7px; border-radius: 999px; font-size: 11px; font-weight: 600; letter-spacing: 0; line-height: 17px; background: #eaedf2; color: var(--spock-text-normal-color); font-variant-numeric: tabular-nums; }

/* Row grid: date | name | type | behavior | relative time. Slack space is split
   between the name and the trailing rail so the type/behavior cluster stays
   close to the event it describes instead of stranding mid row. */
#member-holidays .event-row                                       { display: grid; grid-template-columns: 96px minmax(140px, 0.55fr) 128px 148px minmax(92px, 0.45fr); align-items: center; gap: 14px; padding: 13px 20px; border-bottom: 1px solid var(--spock-hairline-color); }
#member-holidays .event-row:last-child                            { border-bottom: 0; }

/* Stat cell: value over label. Labels use the readable gray (5.4:1) rather than
   --spock-text-very-light-color, which does not clear the AA target. */
#member-holidays .fact-value                                      { font-size: 14px; font-weight: 500; color: var(--spock-text-very-dark-color); line-height: 20px; }
#member-holidays .fact-label                                      { margin-top: 1px; font-size: 12px; color: var(--spock-text-light-color); line-height: 16px; }
#member-holidays .event-date                                      { font-weight: 600; font-variant-numeric: tabular-nums; }
#member-holidays .event-name                                      { font-weight: 600; }
#member-holidays .event-desc                                      { max-width: 46ch; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#member-holidays .event-type-cell .badge-std                      { margin-bottom: 0; }
#member-holidays .behavior                                        { font-size: 13px; color: var(--spock-text-normal-color); }
#member-holidays .behavior i                                      { font-size: 11px; margin-right: 4px; }
#member-holidays .behavior-block i                                { color: var(--spock-text-danger-dark-color); }
#member-holidays .behavior-warn i                                 { color: var(--spock-event-blackout-color); }
#member-holidays .behavior-none                                   { color: var(--spock-text-light-color); }

/* Relative-time rail: the one fact this read-only view can state that the
   editable settings list cannot. Empty on past rows, on purpose. */
#member-holidays .event-when-cell                                 { text-align: right; }
#member-holidays .event-when                                      { font-size: 13px; color: var(--spock-text-light-color); white-space: nowrap; font-variant-numeric: tabular-nums; }
#member-holidays .event-when.is-today                             { color: var(--spock-link-color); font-weight: 600; }

/* Today is the single accent in the list; the rail also names it in words */
#member-holidays .event-row.is-today                              { background: var(--spock-bg-selected-color); }

/* Past events stay readable but drop one step down the neutral ramp */
#member-holidays .event-row.is-past .fact-value                   { color: var(--spock-text-light-color); }
#member-holidays .event-row.is-past .fact-label                   { color: var(--spock-text-very-light-color); }
#member-holidays .event-row.is-past .behavior                     { color: var(--spock-text-light-color); }
/* Semantic accents desaturate too, else the past block stays the loudest thing
   in the list. Same grayscale idiom as the inactive chips on the leave types page. */
#member-holidays .event-row.is-past .badge-std,
#member-holidays .event-row.is-past .behavior i                   { filter: grayscale(.6); }

#member-holidays .events-empty                                    { padding: 40px 20px; text-align: center; }
#member-holidays .events-empty i                                  { font-size: 24px; color: #c6cdd6; }
#member-holidays .events-empty h5                                 { margin: 12px 0 0; font-size: 15px; font-weight: 600; color: var(--spock-text-very-dark-color); }
#member-holidays .events-empty p                                  { margin: 4px auto 0; max-width: 380px; font-size: 13px; color: var(--spock-text-light-color); }
#member-holidays .events-empty a                                  { display: inline-block; margin-top: 10px; font-size: 13px; font-weight: 500; }

@media (max-width: 991.98px) {
    /* Behavior is the first fact to go; the calendar page states it in full */
    #member-holidays .event-row                                   { grid-template-columns: 92px 1fr 124px 92px; }
    #member-holidays .event-behavior-cell                         { display: none; }
}
@media (max-width: 767.98px) {
    /* Stack the cells; the relative time rides on the first row next to the date */
    #member-holidays .event-row                                   { grid-template-columns: 1fr auto; row-gap: 6px; padding: 14px 16px; }
    #member-holidays .event-date-cell,
    #member-holidays .event-name-cell,
    #member-holidays .event-type-cell                             { grid-column: 1; }
    #member-holidays .event-when-cell                             { grid-row: 1; grid-column: 2; }
    #member-holidays .events-band                                 { padding: 8px 16px; }
    #member-holidays .event-desc                                  { max-width: none; white-space: normal; }
}

#team-notifications-form #id_notification_channel_name            { width: 80%; display: inline-block; }
#team-notifications-form .status                                  { font-size: 14px; font-weight: normal; }
#team-notifications-form .status .active                          { color: var(--spock-text-success-color); }
#team-notifications-form .status .inactive                        { color: var(--spock-text-light-color); }

#settings-general #id_calendar_start_day                          { width: 200px;}
#setting_notifications #morning_report_content_wrap               { padding-left: 20px; padding-top: 12px;}
#setting_notifications #morning_report_hour_wrap                  { padding-left: 20px; padding-top: 8px;}
#setting_notifications #authorization-link-wrap                   { padding-left: 20px; padding-top: 8px; }
#setting_notifications #instant-notifications-warning             { padding-left: 20px; padding-top: 8px; }

/* MULTI SELECT */
body .multiselect__tag                                                { background: #3B86FF; }
body .multiselect__tag-icon                                           { background: #3B86FF; }
body .multiselect__tag-icon:hover                                     { background: #6c99ff; }
body .multiselect__option--highlight                                  { background: #3B86FF; }
body .multiselect__option--highlight:after                            { background: #3B86FF; }

@media (max-width:575px) {
  #absences-calendar .display-4      { font-size: 1.2rem; }
  #absences-calendar .day            { padding-bottom: 12px; }
  #absences-calendar .day h5         { padding: 8px 0px 5px 10px; margin: -8px -8px 8px -8px; }
  #absences-calendar .date           { padding-left: 4px; color: #333333 !important; }
}

@media (min-width: 576px) {
  #absences-calendar .day            { min-height: 14.2857vw; }
}


/* VUE Modal */
.modal-enter                                { opacity: 0; }
.modal-leave-active                         { opacity: 0; }
.modal-enter .modal-container,
.modal-leave-active .modal-container        { -webkit-transform: scale(1.1); transform: scale(1.1); }
.modal-mask {
  position: fixed;
  z-index: 9998;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: table;
  transition: opacity 0.3s ease;
}

.modal-wrapper {
  display: table-cell;
  vertical-align: middle;
}

.modal-container {
  width: 480px;
  margin: 0px auto;
  background-color: #fff;
  transition: all 0.3s ease;
  box-shadow: 0px 20px 24px -4px rgba(16, 24, 40, 0.1), 0px 8px 8px -4px rgba(16, 24, 40, 0.04);
  border-radius: 12px;
}

.modal-header                               { margin-top: 0; border-bottom: 1px solid var(--spock-border-light-color); }
.modal-body                                 { padding: 1rem 1.5rem; background-color: var(--spock-form-bg-color) ; }
.modal-default-button                       { float: left; }
.modal-title                                { color: var(--spock-text-dark-color); font-weight: 600; }

/* DASHBOARD */
#dashboard {
  padding: 0 4px;
}

@media (min-width: 768px) {
  #dashboard {
    padding: 0 18px;
  }
}

#dashboard .top-row {
  padding-bottom: 18px;
}

#dashboard .user-greeting {
  font-size: 21px;
  font-style: italic;
}

#dashboard .user-greeting .welcome-emoji {
  font-style: normal;
}

.report-card,
.dash-card {
  background: #FFFFFF;
  margin-bottom: 2rem;
  border-radius: 8px;
  border: 1px solid #DEDFE2;
  box-shadow: 0px 12px 16px -4px rgba(16, 24, 40, 0.08), 0px 4px 6px -2px rgba(16, 24, 40, 0.03);
}

.report-card-header,
.dash-card-header {
  padding: 18px 32px 18px 32px;
}

.report-card-header .title,
.dash-card-header .title {
  font-size: 20px;
  font-weight: 600;
  color: var(--spock-text-dark-color);
  line-height: 30px;
}

.report-card-header .sub-title,
.dash-card-header .sub-title {
  font-size: 13px;
  color: var(--spock-text-very-light-color);
  line-height: 20px;
  font-weight: 400;
}



























table.ideo-table.dash-table {
  margin-bottom: 0;
}

table.ideo-table.dash-table.with-bottom {
  margin-bottom: 1.5rem;
}
.dash-table .first-column {
  padding-left: 32px;
  text-align: left;
}

.table-container-overflow {
  overflow-x: auto;
  width: 100%;
}


.dash-table td {
  vertical-align: middle;
}

table.ideo-table.dash-table th {
  background-color: #FCFCFD;
}

/* ---------- Dashboard summary cards (on leave, balances, upcoming) ---------- */
/* The card itself is .sui-card; this block only spaces the cards on the page
   and styles the parts specific to each card. */
#dashboard .dash-summary {
  margin-bottom: 28px;
}
/* Team / company switch in the On leave today head */
/* Native arrow hidden; the chevron is drawn on the form so it sits inside the pill */
#dashboard .dash-summary #view-select-form {
  position: relative;
}
#dashboard .dash-summary #view-select-form::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 50%;
  width: 7px;
  height: 7px;
  margin-top: -5px;
  border-right: 1.5px solid var(--sui-muted);
  border-bottom: 1.5px solid var(--sui-muted);
  transform: rotate(45deg);
  pointer-events: none;
}
#dashboard .dash-summary #view-select-form select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  height: 32px;
  padding: 0 34px 0 14px;
  font-size: 14px;
  color: var(--sui-ink-2);
  background-color: var(--sui-card);
  border: 1px solid var(--sui-border);
  border-radius: 999px;
  cursor: pointer;
}
#dashboard .dash-summary #view-select-form select:focus {
  outline: none;
  border-color: var(--sui-accent);
  box-shadow: 0 0 0 3px var(--sui-focus-ring);
}

/* On leave today: avatar with presence dot and hover card */
/* Avatar sits on the vertical centre of the row (name, note, substitute) */
#dashboard-on-leave .user-avatar {
  position: relative;
  display: block;
  align-self: center;
  width: 40px;
  height: 40px;
}
#dashboard-on-leave .user-avatar .img-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: block;
}
#dashboard-on-leave .who-info {
  min-width: 0;
}
#dashboard-on-leave .who-info .member-name:hover {
  color: var(--sui-accent);
  text-decoration: none;
}
/* The note keeps the marker-highlight look, clamped to two lines; the tooltip carries the full text */
#dashboard-on-leave .member-note {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  width: fit-content;
  max-width: 100%;
  margin-top: 3px;
  /* Negative margin offsets the padding so the note text left-aligns with the name */
  margin-left: -6px;
  padding: 1px 6px;
  border-radius: 6px;
  font-style: italic;
  color: var(--sui-ink-2);
  background-color: rgba(255, 255, 0, 0.22);
}
#dashboard-on-leave .member-substitute a {
  color: var(--sui-ink-2);
  font-weight: 500;
}

/* Balances: one dense table of days. Head and rows share one grid so the number columns line up;
   every row is the same height (name line + bar) and the numbers sit on its vertical centre. */
#dashboard-balances .bal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 56px 80px 76px;
  column-gap: 16px;
  align-items: start;
  padding: 0 28px;
}
/* Extra Carryover column when any leave type has carryover */
#dashboard-balances.with-carryover .bal-grid {
  grid-template-columns: minmax(0, 1fr) 52px 72px 76px 68px;
  column-gap: 12px;
}
/* Carryover: number, then an (i) icon whose tooltip gives the expiry date */
#dashboard-balances .bal-carryover {
  font-size: 14px;
  color: var(--sui-muted);
}
#dashboard-balances .bal-info {
  margin-left: 4px;
  font-size: 11px;
  color: var(--sui-faint);
  vertical-align: 1px;
  cursor: help;
}
#dashboard-balances .bal-info:hover {
  color: var(--sui-accent);
}
#dashboard-balances .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  line-height: 24px;
}
#dashboard-balances .bal-head {
  padding-top: 12px;
  padding-bottom: 6px;
  font-size: 13px;
  line-height: 18px;
  color: var(--sui-muted);
}
#dashboard-balances .bal-head .num {
  line-height: 18px;
}
/* Values sit on the vertical centre of the row (name line + bar). Rows are links to the
   Profile: same hover as Upcoming leave rows (a.sui-row) */
#dashboard-balances .bal-row {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  align-items: center;
  padding-top: 12px;
  padding-bottom: 12px;
  border-top: 1px solid var(--sui-hair);
}
#dashboard-balances .bal-type {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  min-width: 0;
}
/* Leave type name: the row label */
#dashboard-balances .bal-name {
  flex: 0 0 auto;
  font-size: 15px;
  font-weight: 600;
  line-height: 24px;
  color: var(--sui-ink);
}
/* Name line: name, then one muted note that truncates (full text in the title) */
#dashboard-balances .bal-line {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
  height: 24px;
}
#dashboard-balances .bal-note {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 13px;
  color: var(--sui-muted);
}
#dashboard-balances .bal-note.warn {
  color: var(--sui-red);
}
/* Every row is the height of a row with a bar (name line + bar); rows without a bar
   centre the name on the same line as their numbers */
#dashboard-balances .bal-row {
  min-height: 63px;
}
#dashboard-balances a.bal-row:hover {
  background: var(--sui-row-hover);
  color: inherit;
  text-decoration: none;
}
#dashboard-balances a.bal-row:focus-visible {
  outline: 2px solid var(--sui-accent);
  outline-offset: -2px;
}
/* Spent and Allowance support the Available figure: smaller and grey */
#dashboard-balances .bal-spent,
#dashboard-balances .bal-total {
  font-size: 14px;
  color: var(--sui-muted);
}
/* Available is the number a skimmer reads: largest and darkest on the row */
/* Same size as Spent; weight and ink colour make it the figure a skimmer reads */
#dashboard-balances .bal-available {
  font-size: 14px;
  font-weight: 700;
  color: var(--sui-ink);
}
#dashboard-balances .bal-available.none {
  color: var(--sui-amber-ink);
}
#dashboard-balances .bal-available.neg {
  color: var(--sui-red);
}
/* No yearly limit: a muted dash, nothing to count against */
#dashboard-balances .bal-none {
  font-size: 12px;
  color: var(--sui-faint);
  opacity: .55;
}
/* Room under the last row so it does not sit on the card edge */
#dashboard-balances {
  padding-bottom: 6px;
}

/* Pending requests: avatar (photo or initials), waiting time */
#dashboard-pending .pending-avatar,
#dashboard .row-avatar {
  display: block;
  width: 40px;
  height: 40px;
}
#dashboard-pending .pending-avatar .img-avatar,
#dashboard .row-avatar .img-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: block;
}
#dashboard-pending .pending-avatar.initials {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 600;
}
#dashboard-pending .pending-row {
  align-items: center;
}
#dashboard-pending .pending-main .sui-ltype {
  margin-right: 4px;
}
#dashboard-pending .pending-old {
  color: var(--sui-amber-ink);
  font-weight: 600;
}

/* Getting started: step titles are the links */
#spock-setup-card .setup-link {
  color: var(--sui-ink);
  text-decoration: none;
}
#spock-setup-card .setup-link:hover {
  color: var(--sui-accent);
}
#spock-setup-card .setup-link i {
  font-size: 11px;
  color: var(--sui-faint);
  margin-left: 4px;
  vertical-align: 1px;
}
#spock-setup-card .s svg {
  width: 14px;
  height: 14px;
  vertical-align: -2px;
}
#spock-setup-card .s .warn {
  display: block;
  margin-top: 6px;
  font-size: 14px;
}

/* Upcoming leave */
/* On leave today: denser than other summary rows; name stays 16px, everything else 13px */
#dashboard-on-leave .on-leave-row {
  --cols: 40px minmax(0, 1fr) max-content;
  padding-top: 14px;
  padding-bottom: 14px;
}
#dashboard-on-leave .on-leave-row .t {
  line-height: 1.25;
}
#dashboard-on-leave .on-leave-row .s,
#dashboard-on-leave .on-leave-row .end {
  font-size: 13px;
  line-height: 1.3;
}
#dashboard-on-leave .on-leave-row .s {
  margin-top: 2px;
}
#dashboard-on-leave .on-leave-row .end {
  gap: 4px;
}

/* Dense list rows shared by My upcoming leave, My teams and Company calendar:
   row title 15px, everything else 13px, 14px row padding, 44px date tile */
#dashboard-upcoming .upcoming-row {
  --cols: 44px minmax(0, 1fr) max-content;
}
#dashboard-upcoming .sui-row,
#dashboard-my-groups .sui-row,
#dashboard-all-holidays .sui-row {
  align-items: center;
  padding-top: 14px;
  padding-bottom: 14px;
}
#dashboard-upcoming .sui-row .t,
#dashboard-my-groups .sui-row .t,
#dashboard-all-holidays .sui-row .t {
  font-size: 15px;
  line-height: 1.25;
}
#dashboard-upcoming .sui-row .s,
#dashboard-upcoming .sui-row .end,
#dashboard-my-groups .sui-row .s,
#dashboard-my-groups .sui-row .end,
#dashboard-all-holidays .sui-row .s,
#dashboard-all-holidays .sui-row .end {
  font-size: 13px;
  line-height: 1.3;
}
#dashboard-upcoming .sui-row .s,
#dashboard-my-groups .sui-row .s,
#dashboard-all-holidays .sui-row .s {
  margin-top: 3px;
}
/* Upcoming leave: a little more room above the leave type badge line */
#dashboard-upcoming .sui-row .s {
  margin-top: 5px;
}
#dashboard-upcoming .sui-row .end {
  gap: 4px;
}
#dashboard-upcoming .sui-row .sui-ltype {
  font-size: 12px;
  padding: 1px 8px 1px 7px;
}
/* Holidays & Events: info icon when an event has a description (shown on hover of the name),
   booking rule in the secondary line: "Blocks" stays grey (most public holidays), "Warns" is amber */
#dashboard-all-holidays .event-info {
  font-size: 11px;
  color: var(--sui-faint);
  margin-left: 2px;
  vertical-align: 1px;
}
#dashboard-all-holidays .event-rule {
  white-space: nowrap;
}
#dashboard-all-holidays .event-rule.warn {
  color: var(--sui-amber-ink);
}
/* Smaller calendar page to match the dense rows */
#dashboard-upcoming .sui-datetile,
#dashboard-all-holidays .sui-datetile {
  width: 44px;
  border-radius: 10px;
}
#dashboard-upcoming .sui-datetile .m,
#dashboard-all-holidays .sui-datetile .m {
  padding-top: 6px;
}
#dashboard-upcoming .sui-datetile .d,
#dashboard-all-holidays .sui-datetile .d {
  font-size: 17px;
  padding-bottom: 6px;
}
#dashboard-upcoming .when {
  min-width: 0;
}
/* Status pill: the requests list's .request-status-box colours, pill radius */
#dashboard-upcoming .request-status-box {
  border-radius: 999px;
  padding: 3px 10px 2px;
  font-size: 10px;
  letter-spacing: .04em;
}
#dashboard-upcoming .when .sui-ltype {
  margin-right: 4px;
}

@media (max-width: 575px) {
  #dashboard .dash-summary { margin-bottom: 20px; }
  /* Phone: the right column (leave type, status) moves under the text so names and dates keep the width */
  #dashboard-on-leave .on-leave-row { --cols: 40px minmax(0, 1fr); row-gap: 6px; }
  #dashboard-upcoming .upcoming-row { --cols: 44px minmax(0, 1fr); row-gap: 6px; }
  #dashboard-on-leave .on-leave-row .end,
  #dashboard-upcoming .upcoming-row .end { grid-column: 2; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px; text-align: left; }
  /* Phone: narrower number columns */
  #dashboard-balances .bal-grid { grid-template-columns: minmax(0, 1fr) 44px 70px 64px; column-gap: 10px; padding-left: 18px; padding-right: 18px; }
  #dashboard-balances.with-carryover .bal-grid { grid-template-columns: minmax(0, 1fr) 36px 60px 66px 54px; column-gap: 8px; }
}
table.member-list img.img-avatar {
  height: 32px; width: 32px;
  margin-right: 4px;
}

table.member-list .member-name {
  font-weight: 500;
  line-height: 32px;
}

































#welcome-message .title {
  font-size: 24px;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

#welcome-message .description {
  margin-bottom: 1.5rem;
  color: var(--spock-text-light-color);
}

#welcome-message #id_welcome_message_text {
  color: var(--spock-text-dark-color);
}

#welcome-message .card {
  padding: 2rem;
}

#welcome-message .submit-wrap {
  margin-top: 2rem;
}

#welcome-message .send-as-test {
  margin-top: 0.75rem;
}
















/* Reports */

#reports-home .top-row {
  padding-bottom: 8px;
}


.report-card-header {
    background: linear-gradient(180deg, #FCFCFC 0%, #F0F0F0 100%);

    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

#reports-home h1 {
  font-size: 21px;
}

.report-content-body {
  text-align: left;
  padding: 32px 0 32px 32px;
  border-top: 1px solid #e3e8ee;
  border-bottom: 1px solid #e3e8ee;
}

.report-card-header .description {
    font-size: 15px;
    color: var(--spock-text-light-color);
    margin-top: 6px;
}

.report-form .caption {
    font-weight: 500;
}

.report-icon {
    color: var(--spock-link-color);
}

/* BILLING CARD */
.billing-card                                   { max-width: 600px; margin: 2rem auto; }
.billing-card .button-group                     { display: flex; gap: 1rem; justify-content: center; margin-top: 1.5rem; }

/* MEMBERS FILTER FORM — matches the requests-list filter band (.rl-filters) */
.members-filter-form {
    background-color: #f0f3f5;
    padding: 12px 24px 14px;
    border-bottom: 1px solid #E5E8F2;
}

/* Single line on desktop: fields shrink proportionally instead of wrapping */
.filter-fields-row {
    display: flex;
    gap: 10px 14px;
    align-items: flex-end;
    flex-wrap: nowrap;
}

.filter-field {
    flex: 1 1 130px;
    min-width: 90px;
}

/* Search gets a slightly bigger share of the row than the selects */
.filter-field-search {
    flex: 1.5 1 170px;
    max-width: 320px;
}

/* Submit button keeps its natural width, never stretches */
.filter-field-submit {
    flex: 0 0 auto;
    min-width: auto;
}

.filter-field .form-label {
    display: block;
    margin-bottom: 3px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--spock-text-light-color);
}

.filter-field .form-control,
.filter-field .filter-select {
    width: 100%;
    height: 34px;
    padding: 5px 10px;
    font-size: 13.5px;
    color: #0E1326;
    background-color: #ffffff;
    border: 1px solid #E5E8F2;
    border-radius: 9px;
    box-shadow: 0 1px 2px rgba(15,19,38,.03);
}

.filter-field .form-control:focus,
.filter-field .filter-select:focus {
    border-color: #AAB6F5;
    outline: none;
    box-shadow: 0 0 0 3px rgba(49,73,229,.12);
}

.filter-field .form-control::placeholder {
    color: #A0A8C2;
}

.filter-field-submit .search-button {
    height: 34px;
    padding: 5px 14px;
    border-radius: 9px;
    line-height: 20px;
}

@media (max-width: 768px) {
    .members-filter-form {
        padding: 12px 16px;
    }

    .filter-fields-row {
        flex-direction: column;
        gap: 0.75rem;
    }

    .filter-field,
    .filter-field-search {
        /* In the column layout a flex-basis becomes vertical size - reset it */
        flex: 0 0 auto;
        min-width: auto;
        width: 100%;
        max-width: none;
    }
}


/* Team sections for organization members */
#member-list .team-section {
  margin-bottom: 2rem;
}

#member-list .team-header {
  background-color: var(--spock-bg-light-color);
  border: 1px solid var(--spock-border-light-color);
  border-radius: 8px 8px 0 0;
  padding: 0.5rem 1.5rem;
  margin-bottom: 0;
}

#member-list .team-title {
  margin: 0;
  color: var(--spock-text-dark-color);
  font-size: 16px;
  font-weight: 600;
}

#member-list .team-section table {
  border-radius: 0 0 8px 8px;
  margin-bottom: 0;
}

#member-list .team-header-row {
  background: linear-gradient(to bottom, #FCFCFD, #FFFFFF);
  border-top: 1px solid var(--spock-border-light-color);
  cursor: pointer;
}

#member-list .team-header-row td {
  cursor: pointer;
}

#member-list .team-header-row a.team-title-link {
  color: var(--spock-text-dark-color);
  text-decoration: none;
  cursor: pointer;
}

#member-list .team-header-row:hover .team-title-link {
  color: var(--spock-link-color);
  cursor: pointer;
}

#member-list .team-header-row:first-child {
  border-top: none;
}

#member-list .team-header-cell {
  padding: 12px 18px;
  text-align: left;
  font-weight: 600;
}

#member-list .team-title-count {
  font-weight: 400;
  font-size: 14px;
  color: var(--spock-text-light-color);
}

#member-list .team-title-icon {
  height: 18px;
  width: 18px;
  margin-left: 3px;
  border: 1px solid var(--spock-border-color);
  border-radius: 3px;
}

#member-list td.avatar-wrap {
  padding-left: 32px;
}

#member-list .location-info {
  color: var(--spock-text-dark-color);
  font-weight: 500;
}

#member-list .member-groups {
  line-height: 18px;
}

/* Approval Policy Toast Alert (Top Right Corner) */
.policy-toast-alert {
  position: fixed;
  top: 20px;
  right: 20px;
  min-width: 320px;
  max-width: 400px;
  padding: 16px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  z-index: 9999;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  animation: slideInRight 0.3s ease-out;
}

.policy-toast-alert.toast-success {
  background-color: #E3FBCC;
  border: 1px solid #0000001A;
  color: #3B7C0F;
}

.policy-toast-alert.toast-error {
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
}

.toast-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 16px;
}

.toast-success .toast-icon {
  background-color: #28a745;
  color: white;
}

.toast-error .toast-icon {
  background-color: #dc3545;
  color: white;
}

.toast-content {
  flex: 1;
  min-width: 0;
}

.toast-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

.toast-message {
  font-size: 13px;
  line-height: 1.4;
  opacity: 0.9;
}

.toast-close {
  flex-shrink: 0;
  background: none;
  border: none;
  font-size: 24px;
  line-height: 1;
  color: inherit;
  opacity: 0.5;
  cursor: pointer;
  padding: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
}

.toast-close:hover {
  opacity: 1;
}

/* Toast animations */
@keyframes slideInRight {
  from {
    transform: translateX(400px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.toast-fade-enter-active {
  animation: slideInRight 0.3s ease-out;
}

.toast-fade-leave-active {
  transition: all 0.3s ease-in;
}

.toast-fade-leave-to {
  transform: translateX(400px);
  opacity: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .policy-toast-alert {
    top: 10px;
    right: 10px;
    left: 10px;
    min-width: auto;
    max-width: none;
  }
}

/* Auto-approve notice */
.policy-auto-approve-notice {
  display: block;
  color: #067647;
  font-weight: 600;
  font-size: 14px;
  padding: 10px;
  background-color: #ECFDF3;
  border-radius: 4px;
  /* border-left: 4px solid #067647; */
  border: 1px solid #ABEFC6;
}

.auto-approve-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background-color: #28a745;
  color: white;
  border-radius: 50%;
  font-weight: bold;
  font-size: 14px;
  margin-right: 8px;
  vertical-align: middle;
}



/* WALLCHART */
#team-wallchart                                     { background-color: #ffffff; }
#team-wallchart .cal-title .year                    { font-weight: 400; color: var(--spock-text-light-color); }

.wallchart-container                                { overflow-x: auto; padding: 0; padding-bottom: 16px; }
.wallchart-wrapper                                  { min-width: 100%; position: relative; }

/* Today column ring: cells can't carry border-radius under
   border-collapse, so one absolutely positioned overlay draws a single
   continuous rounded outline around the whole column (positioned by the
   wallchart script from the today header's offsets). Leave bars/blocks
   sit at z-index 1+, above the ring; the amber tint stays on the cells. */
.wallchart-today-ring                               { position: absolute; border: 2px solid var(--spock-calendar-border-color); border-radius: 8px; box-shadow: 0 0 0 3px rgba(250, 197, 21, 0.12); pointer-events: none; z-index: 0; }

.wallchart-table                                    { width: 100%; border-collapse: collapse; table-layout: fixed; }
.wallchart-table th,
.wallchart-table td                                 { border: 1px solid #e5eff5; text-align: center; vertical-align: middle; }

/* Header styles */
.wallchart-table thead                              { background-color: #fcfcfd; }
.wallchart-table .employee-header                   { width: 180px; min-width: 180px; text-align: left; padding: 12px 16px; font-weight: 600; color: var(--spock-text-dark-color); font-size: 13px; position: sticky; left: 0; background-color: #fcfcfd; z-index: 10; }
.wallchart-table .day-header                        { width: 33px; min-width: 33px; padding: 8px 4px; font-size: 11px; font-weight: 500; color: var(--spock-text-normal-color); }
.wallchart-table .day-header .day-name              { display: block; font-size: 10px; color: var(--spock-text-light-color); text-transform: uppercase; }
.wallchart-table .day-header .day-num               { display: block; font-weight: 600; font-size: 13px; color: var(--spock-text-dark-color); }
.wallchart-table .day-header.weekend                { background-color: #f8fafc; }
.wallchart-table .day-header.weekend .day-num       { color: var(--spock-text-light-color); }
.wallchart-table .day-header.holiday                { background-color: #fff0f0; }
.wallchart-table .day-header.holiday .day-num       { color: #dc2626; }
.wallchart-table .day-header .holiday-indicator     { display: block; font-size: 8px; line-height: 1; margin-top: 2px; }
.wallchart-table .day-header.today                  { background-color: #fffbeb; }
.wallchart-table .day-header.today .day-num         { color: #d97706; font-weight: 700; }

/* Employee row styles */
.wallchart-table .employee-row                      { height: 44px; }
.wallchart-table .employee-row:hover                { background-color: #fafbfc; }
.wallchart-table .employee-cell                     { text-align: left; padding: 8px 12px; position: sticky; left: 0; background-color: #ffffff; z-index: 5; white-space: nowrap; }
.wallchart-table .employee-row:hover .employee-cell { background-color: #fafbfc; }
.wallchart-table .employee-link                     { display: flex; align-items: center; text-decoration: none; color: var(--spock-text-dark-color); }
.wallchart-table .employee-link:hover               { color: var(--spock-link-color); }
.wallchart-table .employee-link .img-avatar         { width: 28px; height: 28px; border-radius: 14px; margin-right: 10px; flex-shrink: 0; }
.wallchart-table .employee-name                     { font-weight: 500; font-size: 13px; overflow: hidden; text-overflow: ellipsis; max-width: 140px; }

/* Day cell styles */
.wallchart-table .day-cell                          { padding: 2px; height: 44px; background-color: #ffffff; }
.wallchart-table .day-cell.weekend                  { background-color: #f8fafc; }
.wallchart-table .day-cell.holiday                  { background-color: #fff8f8; }
.wallchart-table .day-cell.today                    { background-color: #fffbeb; }
/* Absence block styles */
.wallchart-table .absence-block                     { position: relative; z-index: 1; border-radius: 4px; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: transform 0.1s ease; }
.wallchart-table .absence-block:hover               { transform: scale(1.05); z-index: 20; position: relative; }
.wallchart-table .absence-block.full-day            { width: 100%; height: 36px; }
.wallchart-table .absence-block.half-day            { width: 100%; height: 18px; margin-top: 9px; }
.wallchart-table .absence-block.pending-absence     { border: 1px dashed #616161 !important; }

.wallchart-table .absence-initials                  { font-size: 10px; font-weight: 600; text-transform: uppercase; }
.wallchart-table .pending-icon                      { font-size: 8px; margin-left: 2px; }

/* Multiple absences on same day */
.wallchart-table .absence-multi                     { display: flex; flex-direction: column; gap: 2px; height: 100%; padding: 2px 0; }
.wallchart-table .absence-multi .multi-part         { flex: 1; min-height: 14px; width: 100%; }

/* No data message */
.wallchart-table .no-data-cell                      { padding: 40px 20px; text-align: center; color: var(--spock-text-light-color); font-size: 14px; }
.wallchart-table .no-data-cell p                    { margin: 0; }

/* Responsive adjustments for wallchart */
@media (max-width: 768px) {
    .wallchart-table .employee-header               { width: 150px; min-width: 150px; padding: 8px 10px; }
    .wallchart-table .employee-name                 { max-width: 100px; font-size: 12px; }
    .wallchart-table .employee-link .img-avatar     { width: 24px; height: 24px; margin-right: 6px; }
    .wallchart-table .day-header                    { width: 32px; min-width: 32px; padding: 6px 2px; }
    .wallchart-table .day-header .day-name          { font-size: 9px; }
    .wallchart-table .day-header .day-num           { font-size: 11px; }
    .wallchart-table .employee-row                  { height: 38px; }
    .wallchart-table .day-cell                      { height: 38px; }
    .wallchart-table .absence-block.full-day        { height: 30px; }
    .wallchart-table .absence-block.half-day        { height: 14px; margin-top: 7px; }
}

/* MEMBER YEAR CALENDAR */

.member-year-calendar .mini-calendar {
    border: 1px solid var(--spock-border-light-color);
    border-radius: 8px;
    box-shadow: 0px 1px 2px -1px rgba(10, 13, 18, 0.05), 0px 1px 3px 0px rgba(10, 13, 18, 0.05);

}

.member-year-calendar .mini-calendar .card-header {
    border-bottom: 1px solid #e6e8eb;
    font-size: 14px;
    padding: 12px 16px;
    background-color: #fcfcfc;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.member-year-calendar .mini-calendar-table {
    table-layout: fixed;
}

.member-year-calendar .mini-calendar-table th {
    font-size: 10px;
    font-weight: 500;
    padding: 4px 2px;
}

.member-year-calendar .mini-calendar-day {
    position: relative;
    vertical-align: top;
    
    height: auto;
    padding: 0px;
    border: 1px solid #f1f1f1;
}

.member-year-calendar .mini-calendar-day .day-content {
    min-height: 49px;
    border: 1px solid transparent;
    border-radius: 4px;
    padding: 2px;
}

.member-year-calendar .mini-calendar-day .day-number {
    font-size: 11px;
    line-height: 14px;
    width: 18px;
    height: 14px;
    margin: 0 auto 2px;
    display: inline-block;
}

.member-year-calendar .mini-calendar-day.not-current-month {
   background-color: #ffffff !important;
    
}

.member-year-calendar .mini-calendar-day.weekend {
  background-color: #f8f9fa;

}
.member-year-calendar .mini-calendar-day.holiday {
  background-color: #fef3f2;
  font-weight: 600;
}

.member-year-calendar .mini-calendar-day.today {
    background-color: #fffbeb;
}
.member-year-calendar .mini-calendar-day.today .day-content {
    border: 1px solid #CA8504;
}

.member-year-calendar .mini-calendar-day.today .bg-today {
    background-color: #CA8504;
}

.member-year-calendar .mini-calendar-day .day-number.bg-special-day {
    background-color: #E31B54;
}

.member-year-calendar .mini-calendar-day.holiday .day-number {
    color: #e74c3c;
}

.member-year-calendar .absence-block-link {
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    width: 100%;
}

.member-year-calendar .absence-block {
    font-size: 8px;
    font-weight: 500;
    display: inline-block;
    border-radius: 4px;
    text-overflow: clip;
    padding: 3px 2px;
    margin-top: 1px;
    cursor: pointer;
    line-height: 1.2;
    width: 100%;
    box-sizing: border-box;
}

.member-year-calendar .absence-block.half-day {
    width: 100%;
    display: inline-block;
}

.member-year-calendar .absence-block.full-day {
    width: 100%;
}

.member-year-calendar .absence-multi {
    display: flex;
    flex-direction: column;
    gap: 1px;
    margin-top: 1px;
}

.member-year-calendar .absence-block.multi-part {
    width: 100%;
    display: block;
}

.member-year-calendar .absence-initials {
    font-size: 10px;
    font-weight: 600;
    display: block;
    text-align: center;
    white-space: nowrap;
}

.member-year-calendar .absence-block.pending-absence {
    animation: pulse 1.5s infinite;
    border: 1px dashed rgba(0,0,0,0.2);
}

.member-year-calendar .absence-block.deleted-absence {
    opacity: 0.5;
    border: 1px dashed #666;
    text-decoration: line-through;
}

.member-year-calendar .special-day-indicator {
    font-size: 8px;
    line-height: 1;
    margin-top: 1px;
    padding: 3px 2px;
    cursor: pointer;
}


@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}


/* Global Search Component Styles */

/* Search button in header */
#global-search-btn {
  background: none;
  border: none;
  color: var(--spock-link-color);
  font-size: 16px;
  padding: 8px 12px;
  cursor: pointer;
  transition: color 0.2s ease;
}

#global-search-btn:hover {
  color: #0f69ff;
}

/* Modal styles */
#global-search-modal .modal-dialog {
  max-width: 600px;
  margin-top: 100px;
}

#global-search-modal .modal-content {
  border-radius: 8px;
  border: none;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

#global-search-modal .modal-header {
  border-bottom: 1px solid #e4e7ea;
  padding: 1rem 1.5rem;
}

#global-search-modal .modal-body {
  padding: 0;
  max-height: 500px;
  overflow-y: auto;
  border-radius: 0 0 8px 8px;
}

/* Search input */
.global-search-input-wrapper {
  position: relative;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #e4e7ea;
}

#global-search-input {
  width: 100%;
  border: 1px solid #e4e7ea;
  border-radius: 6px;
  padding: 10px 40px 10px 15px;
  font-size: 14px;
  transition: border-color 0.2s ease;
}

#global-search-input:focus {
  outline: none;
  border-color: #20a8d8;
  box-shadow: 0 0 0 3px rgba(32, 168, 216, 0.1);
}

.search-input-icon {
  position: absolute;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  color: #73818f;
  pointer-events: none;
}

/* Loading indicator */
#search-loading {
  padding: 2rem;
  text-align: center;
  color: #73818f;
}

#search-loading i {
  font-size: 24px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Empty state */
#search-empty {
  padding: 3rem 1.5rem;
  text-align: center;
  color: #73818f;
}

#search-empty i {
  font-size: 48px;
  margin-bottom: 1rem;
  opacity: 0.3;
}

#search-empty p {
  margin: 0;
  font-size: 14px;
}

/* Search results */
#search-results {
  padding: 0;
}

.search-section {
  padding: 1rem 0;
}

.search-section:not(:last-child) {
  border-bottom: 1px solid #e4e7ea;
}

.search-section-title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  color: #73818f;
  letter-spacing: 0.5px;
  margin: 0 0 0.5rem 0;
  padding: 0 1.5rem;
}

.search-results-list {
  padding: 0;
}

.search-result-item {
  display: flex;
  align-items: center;
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  transition: background-color 0.15s ease;
  border: none;
  text-decoration: none;
}

.search-result-item:hover {
  background-color: #f0f3f5;
}

.search-result-item.highlighted {
  background-color: #E0F2FE;
  border-left: 3px solid #0086C9;
  padding-left: calc(1.5rem - 3px);
}

.search-result-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  margin-right: 12px;
  background-color: #e4e7ea;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-result-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.search-result-avatar.group-avatar {
  background-color: #0f69ff;
  color: white;
}

.search-result-avatar.group-avatar i {
  font-size: 18px;
}

.search-result-info {
  flex: 1;
  min-width: 0;
}

.search-result-name {
  font-size: 14px;
  font-weight: 500;
  color: #23282c;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-result-title {
  font-size: 12px;
  color: #73818f;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-result-icon {
  color: #c8ced3;
  font-size: 14px;
  margin-left: 12px;
  flex-shrink: 0;
}

/* Keyboard shortcut hint */
.search-shortcut-hint {
  font-size: 11px;
  color: #73818f;
  background-color: #f0f3f5;
  padding: 2px 6px;
  border-radius: 3px;
  margin-left: 8px;
}

/* Responsive */
@media (max-width: 767px) {
  #global-search-modal .modal-dialog {
      margin: 20px;
      max-width: calc(100% - 40px);
  }

  #global-search-btn {
      font-size: 16px;
      padding: 6px 10px;
  }
}

/* Substitute Autocomplete Styles */
.substitute-autocomplete {
    position: relative;
}

.substitute-autocomplete input[type="text"] {
    width: 100%;
}

.substitute-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #c8ced3;
    border-top: none;
    border-radius: 0 0 4px 4px;
    max-height: 250px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.substitute-option {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    cursor: pointer;
    border-bottom: 1px solid #e4e7ea;
}

.substitute-option:last-child {
    border-bottom: none;
}

.substitute-option:hover {
    background-color: #f0f3f5;
}

.substitute-option .img-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    margin-right: 10px;
    flex-shrink: 0;
}

.substitute-option .substitute-name {
    font-weight: 500;
    color: #23282c;
    margin-right: 8px;
}

.substitute-option .substitute-display-name {
    font-size: 12px;
    color: #73818f;
}

.selected-substitute {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    background-color: #e8f4fd;
    border: 1px solid #a7d9f7;
    border-radius: 4px;
    margin-top: 8px;
}

.selected-substitute .img-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    margin-right: 10px;
}

.selected-substitute .substitute-name {
    font-weight: 500;
    color: #23282c;
    flex-grow: 1;
}

.btn-remove-substitute {
    background: none;
    border: none;
    color: #73818f;
    cursor: pointer;
    padding: 4px 8px;
    font-size: 14px;
}

.btn-remove-substitute:hover {
    color: #e55353;
}

/* Hide search input when substitute is selected */
.substitute-autocomplete .selected-substitute ~ input[type="text"] {
    display: none;
}

/* Required indicator */
.form-group label .required {
    color: #e55353;
    font-weight: bold;
}

/* ===========================================
   TEAM SETTINGS FORM
   =========================================== */

#team-settings-form .settings-card {
    background: #fff;
    border-radius: 12px;
    padding: 0;
    overflow: hidden;
}

#team-settings-form .settings-section {
    padding: 24px 32px;
}

#team-settings-form .settings-section-border {
    border-top: 1px solid #e5e7eb;
}

#team-settings-form .settings-section-title {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 4px 0;
}

#team-settings-form .settings-section-subtitle {
    font-size: 14px;
    color: #9ca3af;
    margin: 0 0 20px 0;
}

#team-settings-form .settings-field {
    margin-top: 8px;
}

#team-settings-form .settings-field-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 8px;
}

#team-settings-form .settings-field-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

#team-settings-form .settings-field-input {
    flex: 1;
}

#team-settings-form .settings-field-input .form-control {
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 16px;
    border: 1px solid #e5e7eb;
}

#team-settings-form .settings-field-input .form-control:focus {
    border-color: #4f6ef7;
    box-shadow: 0 0 0 3px rgba(79, 110, 247, 0.1);
}

#team-settings-form .settings-save-btn {
    background: #4f6ef7 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 12px 24px !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

#team-settings-form .settings-save-btn:hover {
    background: #3d5bd9 !important;
}

#team-settings-form .settings-field-help {
    font-size: 13px;
    color: #9ca3af;
    margin: 10px 0 0 0;
}

#team-settings-form .danger-zone-box {
    background: #fef2f2;
    border: 2px dashed #fca5a5;
    border-radius: 10px;
    padding: 20px 24px;
}

#team-settings-form .danger-zone-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

#team-settings-form .danger-zone-text {
    flex: 1;
}

#team-settings-form .danger-zone-title {
    font-size: 16px;
    font-weight: 600;
    color: #dc2626;
    margin: 0 0 4px 0;
}

#team-settings-form .danger-zone-description {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
}

#team-settings-form .danger-zone-btn {
    background: #fff !important;
    color: #dc2626 !important;
    border: 1px solid #dc2626 !important;
    border-radius: 8px !important;
    padding: 10px 20px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

#team-settings-form .danger-zone-btn:hover {
    background: #fef2f2 !important;
}

/* Organization Team List (Left Menu) */
.settings-menu.team-list                                {  }
.settings-menu.team-list .nav-item                      { margin-bottom: 2px; border: 1px solid transparent;  }
.settings-menu.team-list a.team-link                    { display: flex; align-items: center; gap: 0.3rem; padding: 0rem 0rem 4px 1rem; font-size: 13px; border: 1px solid transparent; border-radius: 8px; }
.settings-menu.team-list a.team-link:hover              { color: var(--spock-text-very-dark-color); background-color: #e8e8e8; border: 1px solid transparent; border-radius: 8px; }
.settings-menu.team-list a.team-link svg                { width: 18px; height: 18px; fill: var(--spock-text-light-color);   }
.settings-menu.team-list a.team-link.active svg         { fill: var(--spock-text-very-dark-color); }
.settings-menu.team-list a.team-link .team-name         { padding-top: 4px; }

.settings-menu.team-list .team-name                     { max-width: 150px; font-weight: 400; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex-shrink: 1; }
.settings-menu.team-list .team-member-count             { color: var(--spock-text-light-color); font-size: 11px; flex-shrink: 0; white-space: nowrap; }
.settings-menu.team-list .team-link:hover .team-name    { color: var(--spock-text-very-dark-color);  }
.settings-menu.team-list .team-link.active .team-name   { font-weight: 600; color: var(--spock-text-very-dark-color); }
.settings-menu.team-list .view-all-link                 { color: var(--spock-link-color); font-size: 12px; margin-top: 0.25rem; }
.settings-menu.team-list .view-all-link:hover           { text-decoration: underline; }

/* Webhook settings */
/* Webhook settings — header */
.wh-header-desc                 { font-size: 14px; font-weight: 400; color: var(--spock-text-light-color); margin-top: 2px; line-height: 20px; }

/* Webhook settings — sections */
.wh-section                     { margin-bottom: 24px; }
.wh-section:last-child          { margin-bottom: 0; }

/* Webhook settings — toggle switch */
.wh-toggle                      { position: relative; display: inline-block; width: 44px; height: 24px; cursor: pointer; }
.wh-toggle input[type=checkbox] { opacity: 0; width: 0; height: 0; position: absolute; }
.wh-toggle-slider               { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: #cdd5df; border-radius: 12px; transition: background 0.2s; }
.wh-toggle-slider::before       { content: ''; position: absolute; width: 18px; height: 18px; left: 3px; bottom: 3px; background: #fff; border-radius: 50%; transition: transform 0.2s; }
.wh-toggle input:checked + .wh-toggle-slider            { background: #3B86FF; }
.wh-toggle input:checked + .wh-toggle-slider::before    { transform: translateX(20px); }
.wh-toggle input:focus + .wh-toggle-slider              { box-shadow: 0 0 0 2px rgba(59,134,255,0.3); }
.wh-toggle-row                  { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.wh-toggle-label                { font-size: 14px; font-weight: 500; color: var(--spock-text-normal-color); }

/* Webhook settings — URL row with test button */
.wh-url-row                     { display: flex; gap: 10px; align-items: flex-start; }
.wh-url-input                   { flex: 1; min-width: 0; }
.wh-test-btn                    { flex-shrink: 0; white-space: nowrap; }
.wh-test-result                 { margin-top: 8px; padding: 6px 10px; border-radius: 4px; font-size: 13px; font-weight: 500; }
.wh-test-success                { background: #e6f9ee; color: #1a7f37; }
.wh-test-failure                { background: #fce8e8; color: #c33; }
.wh-test-result i               { margin-right: 4px; }

/* Webhook settings — signing secret */
.wh-secret-row                  { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; flex-wrap: wrap; }
.wh-secret-display              { background: #f5f5f5; padding: 6px 12px; border-radius: 4px; font-size: 13px; word-break: break-all; user-select: all; }
.wh-secret-action               { padding: 5px 8px; font-size: 13px; }
.wh-regen-btn                   { color: #dc3545; border-color: rgba(220,53,69,0.3); }
.wh-regen-btn:hover             { color: #fff; background: #dc3545; }

/* Webhook settings — event subscriptions */
.wh-events-desc                 { margin-bottom: 8px; }
.wh-events-header               { display: flex; gap: 6px; margin-bottom: 8px; }
.wh-events-list                 { display: flex; flex-direction: column; gap: 6px; }
.wh-event-item                  { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 4px; cursor: pointer; }
.wh-event-item:hover            { background: var(--spock-bg-light-color); }
.wh-event-checkbox              { width: 16px; height: 16px; accent-color: #3B86FF; cursor: pointer; }
.wh-event-name                  { font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace; font-size: 13px; color: var(--spock-text-dark-color); }

/* Webhook settings — footer with dirty state */
.wh-footer                      { display: flex; align-items: center; justify-content: space-between; }
.wh-footer-left                 { display: flex; align-items: center; }
.wh-dirty-indicator             { font-size: 13px; color: #b54708; font-weight: 500; }

/* Webhook settings — delivery log */
.wh-delivery-header             { display: flex; justify-content: space-between; align-items: center; }
.wh-delivery-chevron            { font-size: 14px; color: var(--spock-text-light-color); transition: transform 0.2s; }
.wh-delivery-log-wrap           { background: #fff; border: 1px solid var(--spock-border-light-color); border-radius: 8px; overflow: hidden; }
.webhook-delivery-log           { font-size: 13px; margin-bottom: 0; }
.webhook-delivery-log th        { font-weight: 600; color: var(--spock-text-light-color); font-size: 12px; text-transform: uppercase; }
.wh-delivery-time               { color: var(--spock-text-light-color); font-size: 13px; }
.wh-delivery-actions            { white-space: nowrap; }
.wh-delivery-actions .btn-std   { margin-right: 4px; }
.wh-response-text               { font-size: 13px; color: var(--spock-text-light-color); }
.wh-status-badge                { display: inline-block; padding: 2px 8px; border-radius: 3px; font-size: 12px; font-weight: 600; }
.wh-status-2xx                  { background: #e6f9ee; color: #1a7f37; }
.wh-status-3xx                  { background: #fef6ee; color: #b54708; }
.wh-status-4xx                  { background: #fce8e8; color: #c33; }
.wh-status-err                  { background: #f3f4f6; color: #697386; }
.wh-empty-state                 { text-align: center; padding: 32px 16px; color: var(--spock-text-light-color); }
.wh-empty-state i               { font-size: 28px; margin-bottom: 8px; display: block; }
.wh-empty-state p               { margin: 0; font-size: 14px; }

/* Webhook settings — payload modal */
.wh-modal-overlay               { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); z-index: 1050; display: flex; align-items: center; justify-content: center; }
.wh-modal                       { background: #fff; border-radius: 8px; width: 90%; max-width: 700px; max-height: 80vh; display: flex; flex-direction: column; box-shadow: 0 8px 30px rgba(0,0,0,0.15); }
.wh-modal-header                { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid #e3e8ee; font-size: 16px; font-weight: 600; }
.wh-modal-close                 { background: none; border: none; font-size: 22px; cursor: pointer; color: var(--spock-text-light-color); padding: 0 4px; }
.wh-modal-close:hover           { color: var(--spock-text-dark-color); }
.wh-modal-body                  { padding: 16px 20px; overflow: auto; font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace; font-size: 12px; line-height: 1.5; white-space: pre; background: #f8f9fa; margin: 0; }

/* Webhook: confirmation modal */
.wh-confirm-modal               { max-width: 480px; }
.wh-confirm-body                { font-family: inherit; font-size: 14px; white-space: normal; background: #fff; color: var(--spock-text-normal-color); }
.wh-confirm-body p              { margin: 0; }
.wh-modal-footer                { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 20px; border-top: 1px solid #e3e8ee; }

/* Webhook: status badge (Copy 1.4) */
.wh-badge                       { display: inline-block; padding: 2px 10px; border-radius: 10px; font-size: 12px; font-weight: 600; }
.wh-badge-active                { background: #e6f9ee; color: #1a7f37; }
.wh-badge-inactive              { background: #f3f4f6; color: #697386; }

/* Webhook: event descriptions (Copy 1.8a–f) */
.wh-event-info                  { display: flex; flex-direction: column; gap: 1px; }
.wh-event-desc                  { font-size: 12px; color: var(--spock-text-light-color); line-height: 1.4; }

/* Webhook: delivery subtext (Copy 1.9) */
.wh-delivery-subtext            { font-size: 12px; font-weight: 400; color: var(--spock-text-light-color); margin-top: 1px; }

/* Webhook: empty state title (Copy 1.21) */
.wh-empty-title                 { font-weight: 600; color: var(--spock-text-normal-color); margin-bottom: 4px; }

/* Webhook: error banner (Copy 1.13) */
.wh-error-banner                { font-size: 14px; }
.wh-error-link                  { display: inline-block; margin-top: 4px; font-weight: 500; text-decoration: underline; }

/* Webhook: toast notifications (Copy 1.15–1.20) */
.wh-toast-container             { position: fixed; top: 20px; right: 20px; z-index: 1060; display: flex; flex-direction: column; gap: 8px; }
.wh-toast                       { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-radius: 6px; font-size: 14px; font-weight: 500; box-shadow: 0 4px 12px rgba(0,0,0,0.15); animation: whToastIn 0.3s ease; max-width: 420px; }
.wh-toast-success               { background: #e6f9ee; color: #1a7f37; }
.wh-toast-error                 { background: #fce8e8; color: #c33; }
.wh-toast-fade-out              { opacity: 0; transition: opacity 0.3s ease; }
@keyframes whToastIn            { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

/* Legacy compat — keep old class names working */
.webhook-badge                  { display: inline-block; padding: 2px 8px; border-radius: 3px; font-size: 12px; font-weight: 600; }
.webhook-badge-success          { background: #e6f9ee; color: #1a7f37; }
.webhook-badge-failed           { background: #fce8e8; color: #c33; }

/* API key settings */
.api-key-new-alert              { border: 1px solid #c3e6cb; }
.api-key-full-display           { background: #f5f5f5; padding: 6px 12px; border-radius: 4px; font-size: 13px; word-break: break-all; user-select: all; }
.api-key-prefix                 { font-size: 13px; }
.api-key-table                  { font-size: 13px; }
.api-key-table th               { font-weight: 600; color: var(--spock-text-light-color); font-size: 12px; text-transform: uppercase; }
.api-key-revoke-btn             { background: none; border: 1px solid #dc3545; color: #dc3545; padding: 3px 10px; border-radius: 4px; font-size: 12px; cursor: pointer; }
.api-key-revoke-btn:hover       { background: #dc3545; color: #fff; }
.api-key-create-row             { display: flex; gap: 10px; align-items: flex-start; }
.api-key-create-input           { flex: 1; min-width: 0; }
.api-key-create-btn             { flex-shrink: 0; margin-top: 1px; }
@media (max-width: 640px) {
    .api-key-create-row         { flex-direction: column; }
    .api-key-create-btn         { width: 100%; }
}
/* Configure Leave Type modal – override fields */
#leaveTypeConfigModal .override-label                   { font-size: 12px; color: var(--spock-text-normal-color); white-space: nowrap; }
#leaveTypeConfigModal .override-inactive                { opacity: 0.4; pointer-events: none; }
#leaveTypeConfigModal .spock-callout                    { margin-top: 0; margin-bottom: 2rem;}
#leaveTypeConfigModal .override-default-tag             { font-size: 12px; color: var(--spock-text-very-light-color); }
#leaveTypeConfigModal .form-group label                 { font-weight: 500; }
#leaveTypeConfigModal .form-group                       { margin-bottom: 1.5rem; }
#leaveTypeConfigModal label#configIsActiveLabel         { margin-bottom: 0; }
#leaveTypeConfigModal #configIsActiveDescription        { margin-top: 0; }



/* Section titles and form labels (e.g. location edit form) */
#editLocationForm .form-section-title                                     { font-size: 17px; font-weight: 600; color: var(--spock-text-very-dark-color); margin-top: 2rem; margin-bottom: 1.5rem; border-bottom: 1px solid #f1f1f1; padding-bottom: 0.25rem; }
#editLocationForm .form-section-title:first-child                         { padding-top: 1rem; }
#editLocationForm .form-group > label:not(.form-check-label):not(.switch) { font-weight: 500; color: var(--spock-text-dark-color); }
#editLocationForm .form-group label                                       { margin-bottom: 0.25rem; }
#editLocationForm .delete-reason                                          { line-height: 32px; }


/* ═══════════════════════════════════════════════════════════════
   MEMBER ALLOWANCES - Enhanced Visual Hierarchy
   ═══════════════════════════════════════════════════════════════ */

/* Page Header */
.allowances-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 0.5rem 1rem;
    margin-bottom: 0.5rem;
}

.allowances-page-header .page-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.allowances-page-header .page-title h2 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--spock-text-very-dark-color);
    margin: 0;
}

.allowances-page-header .page-title .year-badge {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--spock-text-light-color);
    background: var(--spock-bg-light-color);
    padding: 0.25rem 0.625rem;
    border-radius: 4px;
}

.allowances-page-header .header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.year-selector-compact {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.year-selector-compact label {
    font-size: 0.75rem;
    color: var(--spock-text-light-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}

.year-selector-compact select {
    font-size: 0.8125rem;
    padding: 0.375rem 2rem 0.375rem 0.75rem;
    border: 1px solid #e3e8ee;
    border-radius: 6px;
    background-color: #fff;
    color: var(--spock-text-dark-color);
    cursor: pointer;
    transition: border-color 0.15s ease;
}

.year-selector-compact select:hover {
    border-color: #d0d5dd;
}

.year-selector-compact select:focus {
    outline: none;
    border-color: var(--spock-link-color);
    box-shadow: 0 0 0 3px rgba(15, 105, 255, 0.1);
}

/* Allowance Card Container */
.allowance-card {
    background: #fff;
    border: 1px solid #e3e8ee;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

.allowance-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* Leave type switched off at the member's location: muted card + status badge */
.allowance-card.location-unavailable {
    opacity: 0.65;
    background: #fafbfc;
}

.location-unavailable-badge {
    font-size: 0.6875rem;
    padding: 0.125rem 0.5rem;
    border-radius: 4px;
    font-weight: 500;
    background: #f1f3f5;
    color: var(--spock-text-light-color);
    white-space: nowrap;
}

/* Card Header with Leave Type */
.allowance-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    background: linear-gradient(to bottom, #fafbfc, #fff);
    border-bottom: 1px solid #f1f3f5;
}

.leave-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.leave-type-badge .type-indicator {
    width: 4px;
    height: 24px;
    border-radius: 2px;
}

.leave-type-badge .type-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--spock-text-very-dark-color);
}

.allowance-card-header .card-actions {
    display: flex;
    gap: 0.5rem;
}

/* Primary Stats Grid - The Hero Numbers */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    padding: 0;
    background: #fff;
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.stat-cell {
    padding: 1.25rem 1.5rem;
    border-right: 1px solid #f1f3f5;
    border-bottom: 1px solid #f1f3f5;
}

.stat-cell:last-child {
    border-right: none;
}

@media (max-width: 768px) {
    .stat-cell:nth-child(2n) {
        border-right: none;
    }
}

.stat-cell .stat-label {
    font-size: 0.6875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.75px;
    color: var(--spock-text-light-color);
    margin-bottom: 0.375rem;
}

.stat-cell .stat-value {
    font-size: 18px;
    font-weight: 600;
    color: var(--spock-text-very-dark-color);
    line-height: 1.2;
}

.stat-cell .stat-value.positive {
    color: var(--spock-text-success-color);
}

.stat-cell .stat-value.negative {
    color: var(--spock-text-danger-color);
}

.stat-cell .stat-value.muted {
    color: var(--spock-text-light-color);
}

.stat-cell .stat-subtext {
    font-size: 0.75rem;
    color: var(--spock-text-very-light-color);
    margin-top: 0.25rem;
}

.stat-cell.has-action {
    position: relative;
}

.stat-cell.has-action .stat-action {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
}

/* Configuration Panels */
.config-panels {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    /* background: var(--spock-bg-light-grey-color); */
    border-top: 1px solid #f1f3f5;
}

@media (max-width: 992px) {
    .config-panels {
        grid-template-columns: 1fr;
    }
}

.config-panel {
    padding: 1rem 1.25rem;
    border-right: 1px solid #f1f3f5;
}

.config-panel:last-child {
    border-right: none;
}

@media (max-width: 992px) {
    .config-panel {
        border-right: none;
        border-bottom: 1px solid #f1f3f5;
    }
    .config-panel:last-child {
        border-bottom: none;
    }
}

.config-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.config-panel-header .panel-title {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.75px;
    color: var(--spock-text-dark-color);
}

.config-panel-header .panel-status {
    font-size: 0.6875rem;
    padding: 0.125rem 0.5rem;
    border-radius: 4px;
    font-weight: 500;
}

.config-panel-header .panel-status.default {
    background: #f1f3f5;
    color: var(--spock-text-light-color);
}

.config-panel-header .panel-status.custom {
    background: #eef4ff;
    color: var(--spock-link-color);
}

.config-items {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.config-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 0.8125rem;
}

.config-item .item-label {
    color: var(--spock-text-light-color);
}

.config-item .item-value {
    color: var(--spock-text-dark-color);
    font-weight: 500;
    text-align: right;
}

.config-item .item-value.subtle {
    color: var(--spock-text-light-color);
    font-weight: 400;
}

/* Change History - Collapsible Timeline */
.history-section {
    border-top: 1px solid #f1f3f5;
    background: #fff;
}

.history-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 1.25rem;
    cursor: pointer;
    transition: background-color 0.15s ease;
    user-select: none;
}

.history-toggle:hover {
    background: #fafbfc;
}

.history-toggle .toggle-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--spock-text-dark-color);
}

.history-toggle .toggle-label .count-badge {
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 0.125rem 0.5rem;
    background: #f1f3f5;
    color: var(--spock-text-light-color);
    border-radius: 10px;
}

.history-toggle .toggle-icon {
    color: var(--spock-text-light-color);
    transition: transform 0.2s ease;
}

.history-toggle.expanded .toggle-icon {
    transform: rotate(180deg);
}

.history-content {
    padding: 0 1.25rem 1rem;
    display: none;
}

.history-content.show {
    display: block;
}

.timeline {
    position: relative;
    padding-left: 1.25rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 0.5rem;
    bottom: 0.5rem;
    width: 1px;
    background: #e3e8ee;
}

.timeline-item {
    position: relative;
    padding-bottom: 1rem;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -1.25rem;
    top: 0.375rem;
    width: 9px;
    height: 9px;
    background: #fff;
    border: 2px solid #d0d5dd;
    border-radius: 50%;
}

.timeline-item .event-title {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--spock-text-dark-color);
    margin-bottom: 0.125rem;
}

.timeline-item .event-title .note {
    font-weight: 400;
    font-style: italic;
    color: var(--spock-text-light-color);
}

.timeline-item .event-detail {
    font-size: 0.75rem;
    color: var(--spock-text-light-color);
    margin-bottom: 0.125rem;
}

.timeline-item .event-detail .highlight {
    background: rgba(255, 230, 0, 0.25);
    padding: 0 0.125rem;
    border-radius: 2px;
}

.timeline-item .event-meta {
    font-size: 0.6875rem;
    color: var(--spock-text-very-light-color);
}

.timeline-item .event-meta a {
    color: var(--spock-text-light-color);
}

.timeline-item .event-meta .automated-badge {
    display: inline-block;
    background: #e0f2fe;
    color: #0369a1;
    font-size: 0.625rem;
    font-weight: 600;
    padding: 0.125rem 0.375rem;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    margin-left: 0.25rem;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--spock-text-light-color);
}

.empty-state .empty-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    opacity: 0.5;
}

.empty-state .empty-text {
    font-size: 0.9375rem;
}

/* Button refinements for this context */
.btn-subtle {
    font-size: 0.6875rem;
    font-weight: 500;
    padding: 0.25rem 0.625rem;
    border: 1px solid #e3e8ee;
    border-radius: 4px;
    background: #fff;
    color: var(--spock-text-dark-color);
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-subtle:hover {
    background: #f7f9fc;
    border-color: #d0d5dd;
}

.btn-subtle.primary {
    background: var(--spock-link-color);
    border-color: var(--spock-link-color);
    color: #fff;
}

.btn-subtle.primary:hover {
    background: #0052cc;
    border-color: #0052cc;
}

/* Carryover Alert */
.carryover-alert {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: #fffbeb;
    border: 1px solid #fcd34d;
    border-radius: 6px;
    margin: 0.75rem 1.25rem;
    font-size: 0.8125rem;
    color: #92400e;
}

.carryover-alert i {
    color: #d97706;
}

/* Leave type color indicators */
.type-green { background-color: #22c55e; }
.type-red { background-color: #ef4444; }
.type-blue { background-color: #3b82f6; }
.type-yellow { background-color: #eab308; }
.type-purple { background-color: #a855f7; }
.type-pink { background-color: #ec4899; }
.type-orange { background-color: #f97316; }
.type-cyan { background-color: #06b6d4; }

/* Utility */
.badge-role.small { box-shadow: none; }
.fw-500 { font-weight: 500; }
.clr-999 { color: #999; }
.type-grey, .type-gray { background-color: #6b7280; }

/* ---------------------------------------------------------------------------
 * Leave-type form sections — modern/sleek redesign (shadcn/Radix-inspired).
 * Used by spock_app_absence_type_form.html. Structure is communicated through
 * whitespace, typography rhythm, and quiet borders — not chromatic ornament.
 * The previous blue left-edge accent strip has been removed in favor of a
 * calmer, more refined surface treatment.
 * --------------------------------------------------------------------------- */

/* Sub-card: a quiet panel resting on the form-card surface. The hairline
   border + 1px shadow override the global .card floating shadow, which is
   meant for the outer page card — inner sections must not cast a halo. */
.card.section-card                              { background-color: #ffffff; margin-bottom: 1.25rem; border: 1px solid #eceef2; border-radius: 10px; box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04); overflow: hidden; }
.card.section-card:last-child                   { margin-bottom: 0; }

/* Section header — no accent strip; title + description stacked in a tight
   typographic rhythm. Background matches the body so the header reads as
   editorial spacing rather than a chrome bar. */
.card.section-card > .card-header.section-card-header   { padding: 1.125rem 1.5rem 0.875rem; background-color: #ffffff; border-bottom: 1px solid #f0f1f3; border-left: none; border-radius: 0; }
.section-title                                  { margin: 0; font-size: 18px; font-weight: 600; letter-spacing: -0.01em; text-transform: none; color: var(--spock-text-very-dark-color); line-height: 1.35; }
.section-description                            { display: block; margin-top: 0.25rem; font-size: 13px; font-weight: 400; line-height: 1.55; color: var(--spock-text-light-color); }

/* Card body inside a section: roomier, calibrated padding so the form has
   breathing room without feeling cavernous. */
.card.section-card > .card-body                 { padding: 1.5rem; }

/* Within a section, dividers are near-invisible — they separate fields
   without competing with the section boundary itself. */
.card.section-card hr                           { border-top: 1px solid #f0f1f3; margin-top: 1.25rem; margin-bottom: 1.25rem; }

/* "Help" chip — refined pill used app-wide as the inline "Help" affordance.
   Overrides the older sky-blue chip rule at line ~280. Specificity (0,3,0)
   wins against the global (0,2,0) selector for .btn-std.help. */
.btn-std.help.sea                               { background: #f3f4f6; color: var(--spock-text-normal-color); border: 1px solid #e5e7eb; border-radius: 999px; padding: 0.125rem 0.625rem; font-size: 11.5px; font-weight: 500; line-height: 1.5; box-shadow: none; transition: background-color 140ms ease, color 140ms ease, border-color 140ms ease; }
.btn-std.help.sea:hover                         { background: #ffffff; color: var(--spock-link-color); border-color: #c7d2fe; }

/* "Video" chip — same pill treatment as the help chip, with a quiet red tint
   using Spock's existing danger tokens. Scoped to .video-modal-icon (semantic
   class) so it applies app-wide wherever a video button is rendered, while
   leaving the global .btn-std.mini.red (used for other red chips) untouched. */
.video-modal-icon .btn-std.mini.red             { background: var(--spock-bg-danger-color); color: var(--spock-text-danger-dark-color); border: 1px solid #fecdd6; border-radius: 999px; padding: 0.125rem 0.625rem; font-size: 11.5px; font-weight: 500; line-height: 1.5; box-shadow: none; transition: background-color 140ms ease, color 140ms ease, border-color 140ms ease; }
.video-modal-icon .btn-std.mini.red:hover       { background: #ffffff; color: var(--spock-text-danger-color); border-color: #fca5a5; }

/* ---------------------------------------------------------------------------
 * Sticky save bar.
 * Keeps Save / Cancel visible while the user scrolls. The frosted-glass
 * backdrop-filter is a subtle but unmistakable shadcn/Radix tell — it makes
 * the bar feel like a system surface rather than an opaque footer.
 * --------------------------------------------------------------------------- */
.card-footer.sticky-save-bar                    { position: sticky; bottom: 0; z-index: 5; background-color: rgba(255, 255, 255, 0.85); -webkit-backdrop-filter: saturate(140%) blur(8px); backdrop-filter: saturate(140%) blur(8px); border-top: 1px solid #e7e9ee; box-shadow: 0 -1px 0 rgba(16, 24, 40, 0.02); border-bottom-left-radius: 12px; border-bottom-right-radius: 12px; }

/* ---------------------------------------------------------------------------
 * Blank chrome — minimal page wrapper used by spock_app_blank.html. Carries
 * the gradient background and a small top-left wordmark; no app header,
 * sidebar, or footer. Reusable for any one-shot screen that should escape
 * the dashboard chrome.
 * --------------------------------------------------------------------------- */
.blank-page                                     { background: radial-gradient(1200px 600px at 80% -10%, #EEF2FF 0%, transparent 60%), radial-gradient(900px 500px at -5% 110%, #F1ECFF 0%, transparent 55%), #F6F7FB; min-height: 100vh; }
.blank-brandbar                                 { display: flex; align-items: center; padding: 22px 32px; }
.blank-wordmark                                 { display: inline-flex; align-items: center; text-decoration: none; opacity: .92; transition: opacity .15s ease; }
.blank-wordmark:hover                           { opacity: 1; text-decoration: none; }

/* ---------------------------------------------------------------------------
 * Onboarding v2 — single welcome screen.
 * Inspired by design/features/04-onboarding-v2/variants/variant-a-smart-defaults.
 * Tokens scoped under .welcome-v2-* so this surface stays isolated from the
 * rest of the dashboard chrome.
 * --------------------------------------------------------------------------- */
.welcome-v2-page                                { padding: 0 24px 80px; }
.welcome-v2-main                                { display: grid; place-items: start center; }
.welcome-v2-card                                { width: 100%; max-width: 640px; padding-bottom: 36px; background: #FFFFFF; border: 1px solid #E5E8F2; border-radius: 16px; box-shadow: 0 1px 0 rgba(15,19,38,.04), 0 12px 40px -12px rgba(15,19,38,.18); overflow: hidden; }

.welcome-v2-head                                { padding: 36px 40px 8px; }
.welcome-v2-eyebrow                             { display: inline-flex; gap: 8px; align-items: center; padding: 4px 10px; border-radius: 999px; background: #E6F7EF; color: #15A36E; font-size: 12px; font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase; }
.welcome-v2-eyebrow-dot                         { width: 6px; height: 6px; border-radius: 50%; background: #15A36E; box-shadow: 0 0 0 4px rgba(21,163,110,.18); }
.welcome-v2-title                               { margin: 14px 0 8px; font-size: 30px; line-height: 1.15; letter-spacing: -0.02em; font-weight: 700; color: #0E1326; }
.welcome-v2-wave                                { display: inline-block; transform-origin: 70% 70%; animation: welcomeV2Wave 2.6s ease-in-out 0.4s 2; }
@keyframes welcomeV2Wave                        { 0%, 60%, 100% { transform: rotate(0); } 10% { transform: rotate(14deg); } 20% { transform: rotate(-8deg); } 30% { transform: rotate(14deg); } 40% { transform: rotate(-4deg); } 50% { transform: rotate(10deg); } }
.welcome-v2-lede                                { margin: 0; color: #3A4163; font-size: 15px; line-height: 1.55; max-width: 52ch; }

.welcome-v2-checks                              { margin: 24px 40px 8px; padding: 6px; border: 1px solid #EDF0F8; border-radius: 12px; background: linear-gradient(180deg, #FBFCFE 0%, #FFFFFF 100%); }
.welcome-v2-row                                 { display: grid; grid-template-columns: 28px 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 8px; }
.welcome-v2-row + .welcome-v2-row               { border-top: 1px solid #EDF0F8; }
.welcome-v2-row--country                        { align-items: start; }
.welcome-v2-row-body                            { min-width: 0; }
.welcome-v2-check                               { width: 22px; height: 22px; border-radius: 7px; background: #E6F7EF; color: #15A36E; display: grid; place-items: center; box-shadow: inset 0 0 0 1px rgba(21,163,110,.22); }
.welcome-v2-check svg                           { width: 13px; height: 13px; }
.welcome-v2-check--needs-confirm                { background: #FFF4DA; color: #B97000; box-shadow: inset 0 0 0 1px rgba(185,112,0,.22); }
.welcome-v2-check--failed                       { background: #FEE4E2; color: #B42318; box-shadow: inset 0 0 0 1px rgba(180,35,24,.22); }
/* Import row swaps icon by state. Only the matching icon is rendered. */
.welcome-v2-check--state-pending,
.welcome-v2-check--state-done,
.welcome-v2-check--state-failed                 { display: none; }
[data-status="pending"] .welcome-v2-check--state-pending { display: grid; background: #EEF0FF; color: #3149E5; box-shadow: inset 0 0 0 1px rgba(49,73,229,.22); }
[data-status="done"] .welcome-v2-check--state-done       { display: grid; }
[data-status="failed"] .welcome-v2-check--state-failed   { display: grid; background: #FEE4E2; color: #B42318; box-shadow: inset 0 0 0 1px rgba(180,35,24,.22); }

.welcome-v2-label                               { font-size: 14.5px; color: #0E1326; font-weight: 500; }
.welcome-v2-meta                                { font-size: 13px; color: var(--spock-text-light-color); margin-top: 2px; }
.welcome-v2-error                               { color: #B42318; font-size: 13px; margin-top: 6px; }
.welcome-v2-tweak                               { font-size: 12.5px; color: var(--spock-text-light-color); text-decoration: none; padding: 6px 10px; border-radius: 8px; border: 1px solid transparent; align-self: center; white-space: nowrap; }
.welcome-v2-tweak:hover                         { color: #3149E5; background: #EEF0FF; border-color: #DDE2FF; }
.welcome-v2-tweak--hidden                       { display: none; }

/* Country dropdown sits inline in the row, styled to match. */
.welcome-v2-country-row                         { display: flex; align-items: center; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.welcome-country-select                         { width: 100%; max-width: 320px; padding: 10px 12px; border: 1px solid #E5E8F2; border-radius: 8px; background: #FFFFFF; font-size: 14px; color: #0E1326; transition: border-color .15s ease, box-shadow .15s ease; }
.welcome-country-select:focus                   { outline: none; border-color: #3149E5; box-shadow: 0 0 0 3px rgba(49,73,229,.18); }
/* Tiny status pill rendered next to the dropdown after auto-save fires.
   Fades through saving / saved / failed; cleared after ~2s by JS. */
.welcome-v2-save-feedback                       { font-size: 12.5px; font-weight: 500; padding: 4px 10px; border-radius: 999px; opacity: 0; transition: opacity .15s ease; }
.welcome-v2-save-feedback[data-state="saving"]  { opacity: 1; background: #EEF0FF; color: #1F2DB8; }
.welcome-v2-save-feedback[data-state="saved"]   { opacity: 1; background: #E6F7EF; color: #15A36E; }
.welcome-v2-save-feedback[data-state="failed"]  { opacity: 1; background: #FEE4E2; color: #B42318; }

.welcome-v2-actions                             { display: flex; gap: 14px; align-items: center; padding: 22px 40px 28px; flex-wrap: wrap; }
.welcome-v2-btn                                 { display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border-radius: 10px; font-size: 14.5px; font-weight: 600; line-height: 1; border: 1px solid transparent; cursor: pointer; transition: transform .12s ease, box-shadow .12s ease, background .12s ease; text-decoration: none; }
.welcome-v2-btn--primary                        { background: #3149E5; color: white; box-shadow: 0 1px 0 rgba(255,255,255,.4) inset, 0 6px 18px -6px rgba(49,73,229,.55); }
.welcome-v2-btn--primary:hover                  { background: #1F2DB8; transform: translateY(-1px); color: white; }
.welcome-v2-btn--primary:disabled               { background: #8E96B8; cursor: wait; transform: none; box-shadow: none; }
.welcome-v2-arrow                               { transition: transform .15s ease; }
.welcome-v2-btn--primary:hover .welcome-v2-arrow{ transform: translateX(2px); }
.welcome-v2-skip                                { color: var(--spock-text-light-color); font-size: 13.5px; text-decoration: none; border-bottom: 1px dotted #C2C8DC; padding-bottom: 1px; }
.welcome-v2-skip:hover                          { color: #3149E5; border-bottom-color: #3149E5; }

.welcome-v2-foot                                { padding: 14px 40px 22px; border-top: 1px solid #EDF0F8; color: var(--spock-text-light-color); font-size: 13px; background: #FCFCFD; }

@media (max-width: 640px) {
  .welcome-v2-head, .welcome-v2-actions, .welcome-v2-foot { padding-left: 22px; padding-right: 22px; }
  .welcome-v2-checks { margin-left: 22px; margin-right: 22px; }
  .welcome-v2-title { font-size: 26px; }
}

/* Dashboard banner for in-progress / failed Slack user import. */
.dashboard-import-banner                        { display: flex; align-items: center; gap: 10px; padding: 12px 16px; margin: 0 0 16px; border-radius: 10px; background: #EEF0FF; border: 1px solid #DDE2FF; color: #1F2DB8; font-size: 14px; }
.dashboard-import-banner i                      { color: #3149E5; }
.dashboard-import-banner--failed                { background: #FEE4E2; border-color: #FDA29B; color: #B42318; }
.dashboard-import-banner--failed i              { color: #B42318; }


/* ════════════════════════════════════════════════════════════════════════
   SPOCK CHEATSHEET
   Long-form setup manual. Calm editorial composition that codifies the
   Stripe-inspired tokens already in use elsewhere in the app. All classes
   are `cs-*` prefixed to avoid bleed into other dashboard cards.
   ════════════════════════════════════════════════════════════════════════ */

#cheatsheet                                     { color: var(--spock-text-dark-color); --cs-accent: #1570EF; --cs-accent-soft: #EEF4FF; --cs-accent-border: #B2DDFF; --cs-rule: #E4E7ED; --cs-page-bg: #F8FAFC; padding-bottom: 80px; }

/* ── Hero — compact, single-line ──────────────────────────────────────── */
.cs-hero                                        { padding: 20px 28px; margin-bottom: 24px; background: #FFFFFF; border-radius: 12px; border: 1px solid var(--cs-rule); box-shadow: 0 1px 2px rgba(16,24,40,0.04); }
.cs-hero__inner                                 { max-width: 100%; }
.cs-eyebrow                                     { display: inline-flex; align-items: center; gap: 8px; font-size: 10px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--spock-text-light-color); margin-bottom: 6px; }
.cs-eyebrow__dot                                { width: 5px; height: 5px; border-radius: 50%; background: var(--cs-accent); box-shadow: 0 0 0 3px rgba(21,112,239,0.12); }
.cs-hero__title                                 { font-size: 24px; line-height: 1.2; font-weight: 700; letter-spacing: -0.015em; color: var(--spock-text-very-dark-color); margin: 0 0 4px; }
.cs-hero__title-accent                          { color: var(--cs-accent); font-style: normal; font-weight: 600; }
.cs-hero__lede                                  { font-size: 13px; line-height: 1.5; color: var(--spock-text-light-color); margin: 0; }
.cs-hero__meta                                  { color: var(--spock-text-very-light-color); margin-left: 8px; padding-left: 10px; border-left: 1px solid var(--cs-rule); }

/* ── Layout: TOC rail + main column ───────────────────────────────────── */
.cs-layout                                      { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 64px; align-items: start; max-width: 1180px; margin: 0 auto; padding: 0 8px; }
@media (max-width: 991px) {
  .cs-layout                                    { grid-template-columns: 1fr; gap: 24px; }
  .cs-hero__inner                               { padding: 0 28px; }
  .cs-hero__title                               { font-size: 40px; }
}

/* ── Table of contents — sticky rail ──────────────────────────────────── */
.cs-toc                                         { position: sticky; top: 88px; align-self: start; }
@media (max-width: 991px) { .cs-toc            { position: static; top: auto; } }
.cs-toc__label                                  { font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--spock-text-very-light-color); margin: 0 0 16px; padding-left: 12px; }
.cs-toc__list                                   { list-style: none; padding: 0; margin: 0; border-left: 1px solid var(--cs-rule); }
.cs-toc__list li                                { margin: 0; }
.cs-toc__link                                   { display: flex; align-items: baseline; gap: 12px; padding: 9px 14px; font-size: 14px; color: var(--spock-text-light-color); font-weight: 500; border-left: 2px solid transparent; margin-left: -1px; transition: color 0.18s ease, border-color 0.18s ease; text-decoration: none; }
.cs-toc__link:hover                             { color: var(--spock-text-dark-color); text-decoration: none; }
.cs-toc__link.is-active                         { color: var(--cs-accent); border-left-color: var(--cs-accent); font-weight: 600; }
.cs-toc__num                                    { font-size: 11px; font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; color: var(--spock-text-very-light-color); font-weight: 600; min-width: 18px; }
.cs-toc__link.is-active .cs-toc__num            { color: var(--cs-accent); }
.cs-toc__aside                                  { margin-top: 28px; padding: 16px 14px; border-top: 1px solid var(--cs-rule); }
.cs-toc__aside-title                            { font-size: 12px; font-weight: 600; color: var(--spock-text-light-color); margin-bottom: 4px; }
.cs-toc__aside-link                             { font-size: 13px; color: var(--cs-accent); font-weight: 500; }
.cs-toc__aside-link i                           { font-size: 10px; margin-left: 4px; }

/* ── Main column & step containers ────────────────────────────────────── */
.cs-main                                        { min-width: 0; }
.cs-step                                        { background: #FFFFFF; border: 1px solid var(--cs-rule); border-radius: 16px; padding: 40px 44px 44px; margin-bottom: 28px; box-shadow: 0 1px 2px rgba(16,24,40,0.04); scroll-margin-top: 88px; }
@media (max-width: 767px) {
  .cs-step                                      { padding: 28px 22px; border-radius: 12px; }
}

/* ── Step head: oversized number + title block ───────────────────────── */
.cs-step__head                                  { display: flex; gap: 24px; align-items: flex-start; margin-bottom: 28px; padding-bottom: 28px; border-bottom: 1px solid var(--cs-rule); }
.cs-step__number                                { font-size: 76px; font-weight: 700; line-height: 0.9; color: #DBE5F2; font-variant-numeric: tabular-nums; font-feature-settings: "tnum","ss01"; letter-spacing: -0.03em; flex-shrink: 0; padding-top: 2px; }
.cs-step__head-text                             { flex: 1; min-width: 0; padding-top: 6px; }
.cs-step__kicker                                { font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cs-accent); margin-bottom: 6px; }
.cs-step__title                                 { font-size: 28px; font-weight: 600; line-height: 1.2; letter-spacing: -0.015em; color: var(--spock-text-very-dark-color); margin: 0 0 10px; }
.cs-step__lede                                  { font-size: 16px; line-height: 1.6; color: var(--spock-text-normal-color); margin: 0; }
.cs-step__lede em                               { color: var(--spock-text-dark-color); font-style: normal; font-weight: 600; }

/* ── Step grid: body + aside infographic ──────────────────────────────── */
.cs-step__grid                                  { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 40px; align-items: start; }
@media (max-width: 991px) {
  .cs-step__grid                                { grid-template-columns: 1fr; gap: 24px; }
}
.cs-step__body                                  { min-width: 0; }
.cs-step__aside                                 { min-width: 0; }

/* ── Inner typography ─────────────────────────────────────────────────── */
.cs-h3                                          { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--spock-text-light-color); margin: 0 0 14px; }
.cs-list                                        { padding-left: 22px; margin: 0 0 22px; }
.cs-list li                                     { font-size: 15px; line-height: 1.65; color: var(--spock-text-normal-color); margin-bottom: 10px; padding-left: 4px; }
.cs-list li strong                              { color: var(--spock-text-very-dark-color); font-weight: 600; }
.cs-list--flat                                  { list-style: none; padding-left: 0; }
.cs-list--flat li                               { padding-left: 22px; position: relative; }
.cs-list--flat li::before                       { content: ""; position: absolute; left: 0; top: 11px; width: 8px; height: 1px; background: var(--cs-accent); }

/* ── Callouts ─────────────────────────────────────────────────────────── */
.cs-callout                                     { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 10px; font-size: 14px; line-height: 1.55; margin: 18px 0 22px; }
.cs-callout i                                   { flex-shrink: 0; margin-top: 3px; font-size: 14px; }
.cs-callout--tip                                { background: #F6F9FE; border: 1px solid #DDEBFD; color: var(--spock-text-normal-color); }
.cs-callout--tip i                              { color: var(--cs-accent); }
.cs-callout--tip strong                         { color: var(--spock-text-very-dark-color); }
.cs-callout--tip em                             { color: var(--spock-text-dark-color); font-style: normal; font-weight: 600; }
.cs-callout--gate                               { background: #FEF6EE; border: 1px solid #FDDCAB; color: #93370D; }
.cs-callout--gate i                             { color: #DC6803; }
.cs-callout--gate strong                        { color: #7A2E0E; }

/* ── Action buttons ───────────────────────────────────────────────────── */
.cs-actions                                     { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.cs-cta                                         { display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px; background: var(--cs-accent); color: #FFFFFF; border-radius: 8px; font-size: 14px; font-weight: 600; text-decoration: none; transition: background 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease; box-shadow: 0 1px 2px rgba(21,112,239,0.16); }
.cs-cta:hover                                   { background: #1849A9; color: #FFFFFF; text-decoration: none; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(21,112,239,0.18); }
.cs-cta i                                       { font-size: 12px; }
.cs-cta--ghost                                  { background: #FFFFFF; color: var(--spock-text-dark-color); border: 1px solid var(--cs-rule); box-shadow: none; }
.cs-cta--ghost:hover                            { background: #F8FAFC; color: var(--spock-text-very-dark-color); border-color: #CBD2DA; box-shadow: 0 1px 2px rgba(16,24,40,0.04); }

/* ── Infogram base ────────────────────────────────────────────────────── */
.cs-infogram                                    { background: linear-gradient(180deg, #FBFCFE 0%, #F6F9FE 100%); border: 1px solid #E8EEF7; border-radius: 14px; padding: 22px; position: relative; }
.cs-infogram__title                             { font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--spock-text-light-color); margin-bottom: 16px; }
.cs-infogram__caption                           { font-size: 12px; color: var(--spock-text-light-color); line-height: 1.5; margin-top: 14px; font-style: italic; }
.cs-infogram__caption strong                    { color: var(--spock-text-dark-color); font-style: normal; }
.cs-svg                                         { display: block; width: 100%; height: auto; }

/* ── Step 1 — leave type cards ────────────────────────────────────────── */
.cs-typecard                                    { display: flex; align-items: center; gap: 12px; background: #FFFFFF; border: 1px solid #E8EEF7; border-radius: 10px; padding: 12px; margin-bottom: 10px; transition: transform 0.18s ease, box-shadow 0.18s ease; }
.cs-typecard:hover                              { transform: translateY(-1px); box-shadow: 0 6px 14px rgba(16,24,40,0.06); }
.cs-typecard__icon                              { width: 38px; height: 38px; border-radius: 9px; display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
.cs-typecard--vac .cs-typecard__icon            { background: #FEF6EE; color: #DC6803; }
.cs-typecard--sick .cs-typecard__icon           { background: #FEE4E2; color: #B42318; }
.cs-typecard--parental .cs-typecard__icon       { background: #F4F3FF; color: #6941C6; }
.cs-typecard__name                              { font-size: 14px; font-weight: 600; color: var(--spock-text-very-dark-color); margin-bottom: 4px; }
.cs-typecard__meta                              { display: flex; gap: 6px; flex-wrap: wrap; }
.cs-pill                                        { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 500; background: #EEF4FF; color: #1849A9; }
.cs-pill--muted                                 { background: #F2F4F7; color: var(--spock-text-light-color); }
.cs-pill--auto                                  { background: #ECFDF3; color: #027A48; }

/* ── Step 2 — roles ───────────────────────────────────────────────────── */
.cs-roles                                       { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-direction: column; gap: 14px; }
.cs-role                                        { display: flex; gap: 14px; align-items: flex-start; }
.cs-role__badge                                 { width: 36px; height: 36px; border-radius: 9px; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; flex-shrink: 0; letter-spacing: 0.02em; }
.cs-role__badge--member                         { background: #F2F4F7; color: #344054; }
.cs-role__badge--gm                             { background: #EEF4FF; color: #1849A9; }
.cs-role__badge--admin                          { background: var(--cs-accent); color: #FFFFFF; }
.cs-role__name                                  { font-size: 15px; font-weight: 600; color: var(--spock-text-very-dark-color); margin-bottom: 2px; }
.cs-role__desc                                  { font-size: 14px; line-height: 1.55; color: var(--spock-text-normal-color); }

/* ── Step 3 — locations ───────────────────────────────────────────────── */
.cs-locgrid                                     { display: grid; grid-template-columns: 1fr; gap: 10px; }
.cs-loccard                                     { background: #FFFFFF; border: 1px solid #E8EEF7; border-radius: 10px; padding: 12px 14px; display: flex; align-items: center; gap: 14px; }
.cs-loccard__flag                               { font-size: 22px; line-height: 1; }
.cs-loccard__name                               { font-size: 14px; font-weight: 600; color: var(--spock-text-very-dark-color); }
.cs-loccard__meta                               { font-size: 12px; color: var(--spock-text-light-color); margin-top: 2px; }

/* ── Step 5 — mini calendar ───────────────────────────────────────────── */
.cs-mini-cal                                    { background: #FFFFFF; border: 1px solid #E8EEF7; border-radius: 10px; padding: 14px; }
.cs-mini-cal__row                               { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-bottom: 4px; }
.cs-mini-cal__row span                          { aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 500; color: var(--spock-text-dark-color); border-radius: 6px; font-variant-numeric: tabular-nums; }
.cs-mini-cal__row--head span                    { color: var(--spock-text-very-light-color); font-size: 10px; font-weight: 600; letter-spacing: 0.04em; }
.cs-mini-cal__row span.we                       { color: var(--spock-text-very-light-color); background: #F8FAFC; }
.cs-mini-cal__row span.ho                       { color: var(--spock-holiday-color); background: var(--spock-holiday-bg-color); font-weight: 600; }
.cs-legend                                      { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 12px; font-size: 11px; color: var(--spock-text-light-color); }
.cs-legend__item                                { display: inline-flex; align-items: center; gap: 6px; }
.cs-legend__sw                                  { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.cs-legend__sw--ho                              { background: var(--spock-holiday-bg-color); border: 1px solid #FDA29B40; }
.cs-legend__sw--bo                              { background: var(--spock-event-blackout-bg-color); border: 1px solid var(--spock-event-blackout-color); }
.cs-legend__sw--ev                              { background: var(--spock-event-other-bg-color); border: 1px solid var(--spock-event-other-color); }
.cs-legend__sw--we                              { background: #F8FAFC; border: 1px solid #E4E7ED; }

/* ── Step 6 — request paths ───────────────────────────────────────────── */
.cs-paths                                       { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.cs-path                                        { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: #FFFFFF; border: 1px solid var(--cs-rule); border-radius: 10px; text-decoration: none; transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease; color: inherit; }
.cs-path:hover                                  { border-color: var(--cs-accent-border); transform: translateY(-1px); box-shadow: 0 6px 14px rgba(16,24,40,0.06); text-decoration: none; color: inherit; }
.cs-path__icon                                  { width: 36px; height: 36px; border-radius: 9px; display: flex; align-items: center; justify-content: center; font-size: 15px; flex-shrink: 0; }
.cs-path__icon--web                             { background: var(--cs-accent-soft); color: var(--cs-accent); }
.cs-path__icon--slack                           { background: #F4ECF7; color: #4A154B; }
.cs-path__name                                  { font-size: 14px; font-weight: 600; color: var(--spock-text-very-dark-color); margin-bottom: 2px; }
.cs-path__desc                                  { font-size: 13px; color: var(--spock-text-light-color); }
.cs-path__desc code                             { background: #F2F4F7; padding: 1px 6px; border-radius: 4px; font-size: 12px; color: var(--spock-text-dark-color); }
.cs-path__arrow                                 { margin-left: auto; color: var(--spock-text-very-light-color); font-size: 12px; }
.cs-path:hover .cs-path__arrow                  { color: var(--cs-accent); }

/* ── Step 6 — flow ────────────────────────────────────────────────────── */
.cs-flow                                        { list-style: none; padding: 0; margin: 0; position: relative; }
.cs-flow::before                                { content: ""; position: absolute; left: 9px; top: 12px; bottom: 12px; width: 2px; background: linear-gradient(180deg, var(--cs-accent) 0%, #B2DDFF 100%); border-radius: 1px; }
.cs-flow li                                     { position: relative; padding-left: 32px; padding-bottom: 18px; }
.cs-flow li:last-child                          { padding-bottom: 0; }
.cs-flow__dot                                   { position: absolute; left: 4px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--cs-accent); box-shadow: 0 0 0 4px #FFFFFF, 0 0 0 5px var(--cs-accent-border); }
.cs-flow__dot--mid                              { background: #FFFFFF; box-shadow: 0 0 0 0 #FFFFFF, inset 0 0 0 2px var(--cs-accent); }
.cs-flow__dot--end                              { background: #ECFDF3; box-shadow: 0 0 0 0 #FFFFFF, inset 0 0 0 3px #12B76A; }
.cs-flow strong                                 { display: block; font-size: 14px; font-weight: 600; color: var(--spock-text-very-dark-color); margin-bottom: 2px; }
.cs-flow small                                  { font-size: 12px; color: var(--spock-text-light-color); }

/* ── Step 7 — Slack message preview ───────────────────────────────────── */
.cs-slackmsg                                    { display: flex; gap: 12px; background: #FFFFFF; border: 1px solid #E8EEF7; border-radius: 10px; padding: 14px; }
.cs-slackmsg__avatar                            { width: 36px; height: 36px; border-radius: 8px; background: #F8FAFC; display: flex; align-items: center; justify-content: center; flex-shrink: 0; padding: 4px; }
.cs-slackmsg__avatar img                        { max-width: 100%; max-height: 100%; }
.cs-slackmsg__body                              { flex: 1; min-width: 0; }
.cs-slackmsg__head                              { display: flex; align-items: baseline; gap: 8px; margin-bottom: 4px; flex-wrap: wrap; }
.cs-slackmsg__head strong                       { font-size: 14px; color: var(--spock-text-very-dark-color); }
.cs-slackmsg__app                               { font-size: 9px; font-weight: 700; letter-spacing: 0.05em; background: #E0E0E0; color: #616161; padding: 2px 5px; border-radius: 3px; }
.cs-slackmsg__time                              { font-size: 11px; color: var(--spock-text-very-light-color); }
.cs-slackmsg__text                              { font-size: 13px; line-height: 1.5; color: var(--spock-text-normal-color); margin-bottom: 10px; }
.cs-slackmsg__btn                               { display: inline-block; padding: 5px 14px; background: #FFFFFF; border: 1px solid var(--cs-rule); border-radius: 4px; font-size: 12px; font-weight: 600; color: #007a5a; }

/* ── Step 8 — year ribbon ─────────────────────────────────────────────── */
.cs-yearbar                                     { background: #FFFFFF; border: 1px solid #E8EEF7; border-radius: 10px; padding: 22px 18px 14px; position: relative; }
.cs-yearbar__track                              { position: relative; height: 6px; background: linear-gradient(90deg, #EEF4FF 0%, #DDEBFD 50%, #EEF4FF 100%); border-radius: 999px; margin: 22px 0 8px; }
.cs-yearbar__tick                               { position: absolute; top: -6px; width: 18px; height: 18px; border-radius: 50%; background: #FFFFFF; border: 2px solid var(--cs-accent); transform: translateX(-50%); }
.cs-yearbar__labels                             { position: relative; height: 36px; font-size: 11px; color: var(--spock-text-dark-color); }
.cs-yearbar__labels span                        { position: absolute; transform: translateX(-50%); text-align: center; font-size: 18px; line-height: 1.1; }
.cs-yearbar__labels small                       { display: block; font-size: 10px; color: var(--spock-text-light-color); font-weight: 500; margin-top: 2px; }
.cs-yearbar__months                             { display: flex; justify-content: space-between; font-size: 10px; font-weight: 600; color: var(--spock-text-very-light-color); letter-spacing: 0.05em; text-transform: uppercase; }

/* ── All-set closer ───────────────────────────────────────────────────── */
.cs-allset                                      { background: linear-gradient(135deg, #FBFCFE 0%, #EEF4FF 100%); border: 1px solid var(--cs-accent-border); border-radius: 16px; padding: 48px 44px; text-align: center; margin-top: 36px; }
.cs-allset__inner                               { max-width: 520px; margin: 0 auto; }
.cs-allset__badge                               { width: 56px; height: 56px; border-radius: 50%; background: #15A36E; color: #FFFFFF; font-size: 26px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 18px; box-shadow: 0 6px 16px rgba(21,163,110,0.28); }
.cs-allset__title                               { font-size: 28px; font-weight: 600; letter-spacing: -0.015em; color: var(--spock-text-very-dark-color); margin: 0 0 10px; }
.cs-allset__text                                { font-size: 15px; line-height: 1.6; color: var(--spock-text-normal-color); margin: 0 0 26px; }
.cs-allset__actions                             { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }


/* ════════════════════════════════════════════════════════════════════════
   GETTING-STARTED FLOATING WIDGET
   Fixed bottom-left, persists across pages, opens the Cheatsheet.
   Collapsible into a compact pill. Dismissable via the same preference
   used by the dashboard widget.
   ════════════════════════════════════════════════════════════════════════ */

.gs-widget                                      { position: fixed; left: 24px; bottom: 24px; z-index: 1040; width: 304px; background: #FFFFFF; border: 1px solid #E4E7ED; border-radius: 14px; box-shadow: 0 18px 36px -8px rgba(16,24,40,0.18), 0 4px 8px -2px rgba(16,24,40,0.06); font-family: inherit; color: var(--spock-text-dark-color); overflow: hidden; transform: translateY(0); opacity: 1; transition: transform 0.22s ease, opacity 0.22s ease; }
.gs-widget--collapsed                           { width: auto; border-radius: 999px; }
@media (max-width: 575px) {
  .gs-widget                                    { left: 12px; right: 12px; bottom: 12px; width: auto; }
  .gs-widget--collapsed                         { left: auto; right: 12px; width: auto; }
}

/* Expanded state — header + body + footer ──────────────────────────── */
.gs-widget__header                              { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 8px; }
.gs-widget__brand                               { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--cs-accent, #1570EF); }
.gs-widget__brand-dot                           { width: 7px; height: 7px; border-radius: 50%; background: var(--cs-accent, #1570EF); box-shadow: 0 0 0 4px rgba(21,112,239,0.12); animation: gs-pulse 2.4s ease-in-out infinite; }
@keyframes gs-pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(21,112,239,0.12); }
  50%      { box-shadow: 0 0 0 7px rgba(21,112,239,0.04); }
}
.gs-widget__actions                             { display: inline-flex; gap: 2px; }
.gs-widget__icon-btn                            { width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center; background: transparent; border: 0; border-radius: 6px; color: var(--spock-text-very-light-color); cursor: pointer; font-size: 11px; transition: background 0.15s ease, color 0.15s ease; padding: 0; text-decoration: none; }
.gs-widget__icon-btn:hover                      { background: #F2F4F7; color: var(--spock-text-dark-color); text-decoration: none; }
.gs-widget__icon-btn i                          { font-size: 11px; }

.gs-widget__body                                { padding: 0 16px 14px; }
.gs-widget__title                               { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; color: var(--spock-text-very-dark-color); margin: 0 0 6px; line-height: 1.3; }
.gs-widget__subtitle                            { font-size: 13px; line-height: 1.5; color: var(--spock-text-light-color); margin: 0 0 14px; }

.gs-widget__progress                            { display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px; margin-bottom: 14px; }
.gs-widget__progress-pip                        { height: 4px; border-radius: 999px; background: #EEF4FF; }
.gs-widget__progress-pip:nth-child(odd)         { background: #DDEBFD; }
.gs-widget__progress-meta                       { display: flex; align-items: center; justify-content: space-between; font-size: 11px; color: var(--spock-text-very-light-color); font-weight: 500; letter-spacing: 0.02em; margin-bottom: 14px; }
.gs-widget__progress-meta strong                { color: var(--spock-text-dark-color); font-weight: 600; }

.gs-widget__cta                                 { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; padding: 11px 14px; background: var(--cs-accent, #1570EF); color: #FFFFFF; border: 0; border-radius: 9px; font-size: 14px; font-weight: 600; text-decoration: none; transition: background 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease; cursor: pointer; }
.gs-widget__cta:hover                           { background: #1849A9; color: #FFFFFF; text-decoration: none; transform: translateY(-1px); box-shadow: 0 6px 14px rgba(21,112,239,0.22); }
.gs-widget__cta i                               { font-size: 11px; }

.gs-widget__footer                              { padding: 10px 16px 14px; border-top: 1px solid #F1F3F7; font-size: 11px; color: var(--spock-text-very-light-color); display: flex; justify-content: space-between; align-items: center; }
.gs-widget__footer a                            { color: var(--spock-text-light-color); font-weight: 500; }
.gs-widget__footer a:hover                      { color: var(--cs-accent, #1570EF); text-decoration: none; }

/* Collapsed pill state ────────────────────────────────────────────────── */
.gs-widget--collapsed .gs-widget__header,
.gs-widget--collapsed .gs-widget__body,
.gs-widget--collapsed .gs-widget__footer        { display: none; }
.gs-widget__pill                                { display: none; align-items: center; gap: 10px; padding: 10px 16px 10px 14px; background: #FFFFFF; border: 0; cursor: pointer; font-family: inherit; font-size: 13px; font-weight: 600; color: var(--spock-text-dark-color); text-decoration: none; }
.gs-widget__pill:hover                          { background: #F8FAFC; color: var(--spock-text-very-dark-color); text-decoration: none; }
.gs-widget__pill-dot                            { width: 8px; height: 8px; border-radius: 50%; background: var(--cs-accent, #1570EF); box-shadow: 0 0 0 4px rgba(21,112,239,0.14); animation: gs-pulse 2.4s ease-in-out infinite; }
.gs-widget--collapsed .gs-widget__pill          { display: inline-flex; }

/* Hidden state — used after dismissal until next page load ──────────── */
.gs-widget--hidden                              { transform: translateY(20px); opacity: 0; pointer-events: none; }

/* Don't render the widget on the cheatsheet page itself ──────────────── */
#cheatsheet ~ .gs-widget,
body:has(#cheatsheet) .gs-widget                { display: none; }

/* Premium upgrade promo (billing dashboard) ─────────────────────────────
   Persuasive Professional-plan card shown while a team can still upgrade.
   Uses the app's established success green (#027A48 / #ECFDF3 / #ABEFC6)
   for accents; the surface stays quiet and Stripe-like per design context. */

#premium-promo-card                             { background: linear-gradient(180deg, #FAFAFA 0%, #F0F0F0 100%); }
#premium-promo-card .card-body                  { padding: 32px 32px 24px 32px; }

#premium-promo-card .promo-header               { max-width: 720px; margin-bottom: 28px; }
#premium-promo-card .promo-eyebrow              { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--spock-upgrade-color); margin-bottom: 8px; }
#premium-promo-card .promo-title                { font-size: 22px; font-weight: 700; line-height: 1.3; color: var(--spock-text-very-dark-color); margin-bottom: 8px; }
#premium-promo-card .promo-subtitle             { font-size: 14px; line-height: 1.6; color: var(--spock-text-normal-color); margin-bottom: 0; }

#premium-promo-card .promo-columns              { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 32px; align-items: start; }

/* Feature checklist */
#premium-promo-card .promo-features             { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; margin-top: 8px; }
#premium-promo-card .promo-feature              { display: flex; gap: 10px; align-items: flex-start; }
#premium-promo-card .feature-check              { flex: 0 0 auto; width: 20px; height: 20px; margin-top: 1px; border-radius: 50%; background-color: #84CC16; color: #F7FEE7; font-size: 10px; display: inline-flex; align-items: center; justify-content: center; }
#premium-promo-card .feature-text               { font-size: 13px; line-height: 1.5; color: var(--spock-text-light-color); }
#premium-promo-card .feature-text strong        { display: block; font-size: 13.5px; font-weight: 600; color: var(--spock-text-dark-color); }
#premium-promo-card .promo-features-more        { grid-column: 1 / -1; margin-top: 6px; font-size: 13px; line-height: 1.5; color: var(--spock-text-light-color); }

/* Pricing panel */
#premium-promo-card .promo-pricing              { background-color: #ffffff; border: 1px solid #EAECF0; border-radius: 10px; padding: 24px; text-align: center; box-shadow: 0 1px 2px rgba(15, 19, 38, 0.04), 0 4px 16px -4px rgba(15, 19, 38, 0.08); }
#premium-promo-card .price-plan-name            { font-size: 14px; font-weight: 600; color: var(--spock-text-dark-color); margin-bottom: 10px; }
#premium-promo-card .price-line                 { display: flex; align-items: baseline; justify-content: center; gap: 6px; }
#premium-promo-card .price-amount               { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; color: var(--spock-text-very-dark-color); }
#premium-promo-card .price-period               { font-size: 14px; font-weight: 500; color: var(--spock-text-light-color); }
#premium-promo-card .price-note                 { margin-top: 6px; font-size: 13px; line-height: 1.5; color: var(--spock-text-light-color); }
#premium-promo-card .price-yours                { margin: 16px 0; padding: 10px 12px; border-radius: 8px; background: linear-gradient(180deg, #F7FEE7 0%, #ECFCCB 100%); border: 1px solid #A3E635; font-size: 13px; color: #365314; }
#premium-promo-card .price-yours strong         { font-weight: 600; }
#premium-promo-card .price-yours-sum            { display: block; margin-top: 2px; font-size: 18px; font-weight: 700; }
#premium-promo-card .promo-cta .submit-button   { width: 100%; font-size: 15px; padding: 10px 16px; }
#premium-promo-card .promo-cta a                { text-decoration: none; }
#premium-promo-card .price-cancel-note          { margin-top: 10px; font-size: 12px; color: var(--spock-text-very-light-color); }

/* Trust strip — full-width white footer band of the card */
#premium-promo-card .promo-trust                { display: flex; gap: 28px; background-color: #ffffff; border-top: 1px solid #e7e9ee; padding: 20px 32px; border-bottom-left-radius: 12px; border-bottom-right-radius: 12px; }
#premium-promo-card .trust-item                 { display: flex; gap: 10px; align-items: flex-start; flex: 1 1 0; }
#premium-promo-card .trust-icon                 { flex: 0 0 auto; width: 32px; height: 32px; border-radius: 8px; background-color: var(--spock-bg-light-color); color: var(--spock-text-normal-color); font-size: 13px; display: inline-flex; align-items: center; justify-content: center; }
#premium-promo-card .trust-text                 { font-size: 12.5px; line-height: 1.5; color: var(--spock-text-light-color); }
#premium-promo-card .trust-text strong          { display: block; font-size: 13px; font-weight: 600; color: var(--spock-text-dark-color); }

/* Responsive: stack pricing under features, then single-column checklist */
@media (max-width: 1199.98px) {
    #premium-promo-card .promo-columns          { grid-template-columns: 1fr; }
    #premium-promo-card .promo-pricing          { max-width: 420px; }
}

@media (max-width: 767.98px) {
    #premium-promo-card .card-body              { padding: 24px 20px 20px 20px; }
    #premium-promo-card .promo-features         { grid-template-columns: 1fr; }
    #premium-promo-card .promo-trust            { flex-direction: column; gap: 16px; padding: 16px 20px; }
    #premium-promo-card .promo-pricing          { max-width: none; }
}

/* ============================================================================
   Approval reminders — Settings section (spec 28 §5.3 / §5.10)
   Scoped under #approval-reminders-settings so it can't leak into other forms.
   ============================================================================ */
#approval-reminders-settings .feature-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
#approval-reminders-settings .feature-title { display: flex; align-items: center; gap: 10px; }
#approval-reminders-settings .feature-title .t { font-weight: 600; color: var(--spock-text-very-dark-color); font-size: 15px; }
#approval-reminders-settings .badge-new { font-size: 10px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase;
  color: #fff; background: var(--spock-link-color); padding: 2px 7px; border-radius: 999px; }

/* Master toggle switch (an <input type=checkbox> under the hood) */
#approval-reminders-settings .switch { position: relative; display: inline-block; width: 42px; height: 24px; flex-shrink: 0; }
#approval-reminders-settings .switch input { opacity: 0; width: 0; height: 0; }
#approval-reminders-settings .slider { position: absolute; inset: 0; cursor: pointer; background: #cfd6e4; border-radius: 999px; transition: .15s; }
#approval-reminders-settings .slider::before { content: ""; position: absolute; height: 18px; width: 18px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .15s; box-shadow: 0 1px 2px rgba(0,0,0,.25); }
#approval-reminders-settings .switch input:checked + .slider { background: #3B86FF; }
#approval-reminders-settings .switch input:checked + .slider::before { transform: translateX(18px); }

/* Cadence sub-settings card */
#approval-reminders-settings .subsettings { margin-top: 16px; padding: 16px 18px; background: #fff; border: 1px solid #e7e9ee; border-radius: 10px; }
#approval-reminders-settings .subsettings.is-disabled { opacity: .45; pointer-events: none; filter: grayscale(.2); }
#approval-reminders-settings .field-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; color: var(--spock-text-dark-color); }
#approval-reminders-settings .field-row label { font-weight: 400; margin: 0; }
#approval-reminders-settings .field-row select.form-control {
  appearance: none; -webkit-appearance: none; width: auto; display: inline-block;
  border: 1px solid #dfe3eb; background: #fff; color: var(--spock-text-dark-color);
  font-size: 14px; font-weight: 500; padding: 7px 32px 7px 12px; border-radius: 7px; cursor: pointer; line-height: 20px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23697386' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center;
}
#approval-reminders-settings .field-row select.form-control:focus { outline: none; border-color: #3B86FF; box-shadow: 0 0 0 3px rgba(59,134,255,.15); }
#approval-reminders-settings .gm-row { margin-top: 16px; padding-top: 16px; border-top: 1px dashed #e5e7eb; }

/* Lightweight status summary */
#approval-reminders-settings .status-summary { margin-top: 16px; display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 12px 14px; background: var(--spock-bg-selected-color); border: 1px solid #d7e3fb; border-radius: 10px; }
#approval-reminders-settings .status-summary .lead { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--spock-text-dark-color); }
#approval-reminders-settings .dot-on { width: 8px; height: 8px; border-radius: 50%; background: var(--spock-text-success-color); box-shadow: 0 0 0 3px rgba(3,152,85,.15); }
#approval-reminders-settings .dot-off { width: 8px; height: 8px; border-radius: 50%; background: var(--spock-text-very-light-color); }
#approval-reminders-settings .stat-chips { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-left: auto; }
#approval-reminders-settings .chip { font-size: 12.5px; font-weight: 500; padding: 3px 10px; border-radius: 999px; background: #fff; border: 1px solid #d7e3fb; color: var(--spock-text-normal-color); white-space: nowrap; }
#approval-reminders-settings .chip strong { color: var(--spock-text-very-dark-color); }
#approval-reminders-settings .chip.warn { background: #fffaeb; border-color: #fedf89; color: #b54708; }
#approval-reminders-settings .chip.warn a { color: #b54708; font-weight: 600; text-decoration: underline; }
@media (max-width: 760px) { #approval-reminders-settings .status-summary .stat-chips { margin-left: 0; } }





























/* ============================================================================
   Settings — Leave types list. Scoped under #leave-types-page.
   Rows are stat cells: prominent dark value on top, muted label below.
   Sections separated by light gray bands; inactive chips desaturated.
   ============================================================================ */
#leave-types-page .leave-types-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; line-height: normal; padding: 20px 24px; border-bottom: 0; background: #ffffff; }
#leave-types-page .leave-types-heading { font-size: 18px; font-weight: 600; color: var(--spock-text-very-dark-color); }
#leave-types-page .leave-types-subtitle { margin-top: 3px; font-size: 13px; font-weight: 400; color: var(--spock-text-light-color); }
/* Normalize the two shared-component buttons (Help anchor + video modal pill) to one size and center them */
#leave-types-page .leave-types-header-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
#leave-types-page .leave-types-header-actions a { display: inline-flex; text-decoration: none; }
/* .video-modal-icon now sizes to its content globally — no local override needed */
#leave-types-page .leave-types-header-actions .btn-std { min-height: 30px; font-size: 13px; font-weight: 500; padding: 4px 14px; line-height: 20px; margin: 0; border-radius: 6px; }

/* Section band: full-width light gray strip with a count pill */
#leave-types-page .leave-types-section-label { display: flex; align-items: center; gap: 8px; padding: 9px 24px; font-size: 11px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--spock-text-light-color); background: var(--spock-table-header-bg-color); border-top: 1px solid var(--spock-hairline-color); border-bottom: 1px solid var(--spock-hairline-color); }
#leave-types-page .leave-types-section-label .section-count { font-size: 11px; font-weight: 600; letter-spacing: 0; padding: 0 7px; line-height: 17px; border-radius: 999px; background: #eaedf2; color: var(--spock-text-normal-color); }

/* Each row is a single <a> laid out as a grid: chip | approval | allowance | updated | chevron */
#leave-types-page .leave-type-row { display: grid; grid-template-columns: minmax(140px, 0.7fr) 1fr 1.4fr 150px 20px; align-items: center; gap: 16px; padding: 16px 24px; border-bottom: 1px solid var(--spock-hairline-color); text-decoration: none; }
#leave-types-page .leave-type-row:hover { background-color: #fafbfc; text-decoration: none; }
#leave-types-page .leave-type-row:focus-visible { outline: 2px solid var(--spock-link-color); outline-offset: -2px; border-radius: 4px; }
#leave-types-page .leave-types-list:last-child .leave-type-row:last-child { border-bottom: 0; }

#leave-types-page .leave-type-name-cell .absence-type-wrap { font-size: 14px; font-weight: 600; padding: 4px 12px !important; }

/* Stat cell: value over label */
#leave-types-page .leave-type-fact .fact-value { font-size: 14px; font-weight: 500; color: var(--spock-text-very-dark-color); line-height: 20px; }
#leave-types-page .leave-type-fact .fact-value.quiet { color: var(--spock-text-light-color); font-weight: 400; }
#leave-types-page .leave-type-fact .fact-value .allowance-days { font-weight: 600; font-variant-numeric: tabular-nums; }
#leave-types-page .leave-type-fact .fact-label { margin-top: 1px; font-size: 12px; color: var(--spock-text-very-light-color); line-height: 16px; }

#leave-types-page .leave-type-updated { text-align: right; }
#leave-types-page .leave-type-updated .fact-value { font-size: 13px; }

#leave-types-page .leave-type-chevron { color: #c6cdd6; font-size: 12px; text-align: center; transition: transform .15s ease-out, color .15s ease-out; }
#leave-types-page .leave-type-row:hover .leave-type-chevron { transform: translateX(2px); color: var(--spock-text-light-color); }

/* Inactive types: desaturated chips, denser rows, explicit "Set up" affordance */
#leave-types-page .leave-type-row-inactive { grid-template-columns: 1fr auto; padding-top: 11px; padding-bottom: 11px; }
#leave-types-page .leave-type-row-inactive .absence-type-wrap { font-size: 13px; font-weight: 500; filter: grayscale(1); opacity: .55; transition: filter .15s ease-out, opacity .15s ease-out; }
#leave-types-page .leave-type-row-inactive:hover .absence-type-wrap { filter: grayscale(0); opacity: 1; }
#leave-types-page .leave-type-setup { font-size: 12px; font-weight: 500; color: var(--spock-text-very-light-color); padding-right: 2px; }
#leave-types-page .leave-type-setup i { font-size: 10px; margin-left: 3px; }
#leave-types-page .leave-type-row-inactive:hover .leave-type-setup { color: var(--spock-link-color); }

#leave-types-page .leave-types-empty { padding: 40px 24px; text-align: center; font-size: 14px; color: var(--spock-text-light-color); }

@media (max-width: 991.98px) {
    #leave-types-page .leave-type-row { grid-template-columns: minmax(120px, 0.7fr) 1fr 1.4fr 20px; }
    #leave-types-page .leave-type-updated { display: none; }
}
@media (max-width: 575.98px) {
    #leave-types-page .leave-types-header { flex-direction: column; align-items: flex-start; }
    #leave-types-page .leave-type-row { grid-template-columns: 1fr 20px; row-gap: 8px; }
    /* Facts stack under the chip in the wide column; only the chevron sits in the 20px rail */
    #leave-types-page .leave-type-name-cell,
    #leave-types-page .leave-type-fact { grid-column: 1; }
    #leave-types-page .leave-type-chevron { grid-row: 1; grid-column: 2; }
    #leave-types-page .leave-type-row-inactive { grid-template-columns: 1fr auto; }
    #leave-types-page .leave-type-row-inactive .leave-type-setup { grid-column: 2; grid-row: 1; }
}
@media (prefers-reduced-motion: reduce) {
    #leave-types-page .leave-type-chevron,
    #leave-types-page .leave-type-row-inactive .absence-type-wrap { transition: none; }
    #leave-types-page .leave-type-row:hover .leave-type-chevron { transform: none; }
}


/* ============================================================================
   Settings — Calendars list. Scoped under #calendars-page.
   Same stat cell idiom as the leave types list (dark value over muted label,
   gray section bands). What is specific to calendars: the default calendar gets
   its own band because it covers everyone unassigned, and every row states the
   years it has events for, since calendars are filled in one year at a time and
   stop working silently once their last year passes.
   ============================================================================ */
#calendars-page .calendars-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; line-height: normal; padding: 20px 24px; border-bottom: 0; background: #ffffff; }
#calendars-page .calendars-heading { font-size: 18px; font-weight: 600; color: var(--spock-text-very-dark-color); }
#calendars-page .calendars-subtitle { margin-top: 3px; font-size: 13px; font-weight: 400; color: var(--spock-text-light-color); }
/* Normalize the shared .btn-std instances (Help anchor + New calendar) to one size and center them */
#calendars-page .calendars-header-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
#calendars-page .calendars-header-actions a { display: inline-flex; }
#calendars-page .calendars-header-actions .btn-std { min-height: 30px; font-size: 13px; font-weight: 500; padding: 4px 14px; line-height: 20px; margin: 0; border-radius: 6px; }
#calendars-page .calendars-header-actions .btn-std i { margin-right: 4px; font-size: 11px; }

/* Section bands: the default calendar is called out separately because it covers everyone unassigned */
#calendars-page .calendars-section-label { display: flex; align-items: center; gap: 8px; padding: 9px 24px; font-size: 11px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--spock-text-light-color); background: var(--spock-table-header-bg-color); border-top: 1px solid var(--spock-hairline-color); border-bottom: 1px solid var(--spock-hairline-color); }
#calendars-page .calendars-section-label .section-count { font-size: 11px; font-weight: 600; letter-spacing: 0; padding: 0 7px; line-height: 17px; border-radius: 999px; background: #eaedf2; color: var(--spock-text-normal-color); }

/* Rows are links so they stay keyboard focusable and middle clickable */
#calendars-page .calendar-row { display: grid; grid-template-columns: minmax(140px, 0.8fr) 1.35fr 1.25fr 105px 20px; align-items: center; gap: 18px; padding: 16px 24px; border-bottom: 1px solid var(--spock-hairline-color); text-decoration: none; }
#calendars-page .calendar-row:hover { background-color: #fafbfc; text-decoration: none; }
#calendars-page .calendar-row:focus-visible { outline: 2px solid var(--spock-link-color); outline-offset: -2px; border-radius: 4px; }
#calendars-page .calendars-list:last-child .calendar-row:last-child { border-bottom: 0; }

#calendars-page .fact-value { font-size: 14px; font-weight: 500; color: var(--spock-text-very-dark-color); line-height: 20px; }
#calendars-page .fact-value.quiet { color: var(--spock-text-light-color); font-weight: 400; }
#calendars-page .fact-label { margin-top: 1px; font-size: 12px; color: var(--spock-text-very-light-color); line-height: 16px; }
#calendars-page .calendar-name { font-weight: 600; }
#calendars-page .calendar-row:hover .calendar-name { color: var(--spock-link-color); }
#calendars-page .events-count { font-weight: 600; font-variant-numeric: tabular-nums; }

/* Year coverage, right aligned so the year spans line up down the column */
#calendars-page .calendar-scheduled { text-align: right; }
#calendars-page .calendar-scheduled .fact-value { font-size: 13px; font-variant-numeric: tabular-nums; }
#calendars-page .calendar-scheduled .fact-value.stale { color: var(--spock-event-blackout-color); font-weight: 600; }
#calendars-page .calendar-scheduled .fact-label.stale { color: var(--spock-event-blackout-color); }

#calendars-page .calendar-chevron { color: #c6cdd6; font-size: 12px; text-align: center; transition: transform .15s ease-out, color .15s ease-out; }
#calendars-page .calendar-row:hover .calendar-chevron { transform: translateX(2px); color: var(--spock-text-light-color); }

/* Missing default calendar: reported inside the Default band rather than floating under the list */
#calendars-page .calendars-no-default { display: flex; align-items: flex-start; gap: 10px; padding: 16px 24px; border-bottom: 1px solid var(--spock-hairline-color); background-color: var(--spock-event-blackout-bg-color); }
#calendars-page .calendars-no-default i { margin-top: 2px; font-size: 13px; color: var(--spock-event-blackout-color); }
#calendars-page .calendars-no-default-title { font-size: 14px; font-weight: 600; color: var(--spock-event-blackout-color); line-height: 20px; }
#calendars-page .calendars-no-default-text { margin-top: 1px; font-size: 12px; color: var(--spock-text-light-color); line-height: 16px; }

#calendars-page .calendars-empty { padding: 48px 24px; text-align: center; }
#calendars-page .calendars-empty i { font-size: 26px; color: #c6cdd6; }
#calendars-page .calendars-empty h5 { margin: 14px 0 0; font-size: 15px; font-weight: 600; color: var(--spock-text-very-dark-color); }
#calendars-page .calendars-empty p { margin: 4px auto 16px; max-width: 380px; font-size: 13px; color: var(--spock-text-light-color); }
#calendars-page .calendars-empty .btn-std { min-height: 30px; font-size: 13px; font-weight: 500; padding: 4px 14px; line-height: 20px; border-radius: 6px; }
#calendars-page .calendars-empty .btn-std i { margin-right: 4px; font-size: 11px; color: inherit; }

@media (max-width: 991px) {
    /* Year coverage is the first thing to go; the calendar detail page states it too */
    #calendars-page .calendar-row { grid-template-columns: minmax(120px, 0.8fr) 1.4fr 1.15fr 20px; gap: 14px; }
    #calendars-page .calendar-scheduled { display: none; }
}
@media (max-width: 767px) {
    #calendars-page .calendars-header { flex-direction: column; align-items: flex-start; gap: 12px; }
    /* Stack the cells; the chevron rides on the first row next to the calendar name */
    #calendars-page .calendar-row { grid-template-columns: 1fr 20px; row-gap: 10px; }
    #calendars-page .calendar-name-cell,
    #calendars-page .calendar-fact { grid-column: 1; }
    #calendars-page .calendar-chevron { grid-row: 1; grid-column: 2; }
}
@media (prefers-reduced-motion: reduce) {
    #calendars-page .calendar-chevron { transition: none; }
    #calendars-page .calendar-row:hover .calendar-chevron { transform: none; }
}


/* ============================================================================
   Settings — Calendar events list. Scoped under #calendar-events-page.
   Same stat-cell idiom as the calendars list one level up (dark value over
   muted label, gray section bands). Specific to this page: actions are split
   by scope — calendar-level actions in the header, year-level actions on the
   year toolbar next to the segmented year switcher.
   ============================================================================ */
#calendar-events-page .events-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; line-height: normal; padding: 20px 24px; border-bottom: 0; background: #ffffff; }
#calendar-events-page .events-heading { font-size: 18px; font-weight: 600; color: var(--spock-text-very-dark-color); }
#calendar-events-page .events-default-pill { display: inline-block; vertical-align: 2px; margin-left: 6px; padding: 1px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; line-height: 16px; color: var(--spock-badge-amber-color); background: var(--spock-badge-amber-bg-color); border: 1px solid var(--spock-badge-amber-border-color); }
#calendar-events-page .events-default-pill i { font-size: 9px; margin-right: 2px; }
#calendar-events-page .events-subtitle { margin-top: 3px; font-size: 13px; font-weight: 400; color: var(--spock-text-light-color); }
/* Normalize the shared .btn-std instances (Help pill + calendar actions) to one size and center them */
#calendar-events-page .events-header-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
#calendar-events-page .events-header-actions a { display: inline-flex; }
#calendar-events-page .events-header-actions .btn-std { min-height: 30px; font-size: 13px; font-weight: 500; padding: 4px 14px; line-height: 20px; margin: 0; border-radius: 6px; }
#calendar-events-page .events-header-actions .btn-std i { margin-right: 4px; font-size: 11px; }
#calendar-events-page .events-inline-form { display: inline-flex; }

/* Section band with an inline quiet action (band stays uppercase, the action does not) */
#calendar-events-page .events-section-label { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 24px; font-size: 11px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--spock-text-light-color); background: var(--spock-table-header-bg-color); border-top: 1px solid var(--spock-hairline-color); border-bottom: 1px solid var(--spock-hairline-color); }
#calendar-events-page .events-band-action { border: 0; background: transparent; padding: 2px 0; font-size: 12px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--spock-link-color); cursor: pointer; }
#calendar-events-page .events-band-action:hover { color: #1849A9; }
#calendar-events-page .events-band-action i { font-size: 10px; margin-right: 3px; }
#calendar-events-page .events-band-action:focus-visible { outline: 2px solid var(--spock-link-color); outline-offset: 2px; border-radius: 3px; }

/* Who the calendar applies to: direct assignments and location assignments side by side */
#calendar-events-page .events-assignments { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 32px; padding: 14px 24px 16px; }
#calendar-events-page .assignment-label { margin-bottom: 6px; font-size: 12px; color: var(--spock-text-very-light-color); line-height: 16px; }
#calendar-events-page .assignment-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
#calendar-events-page .assignment-member { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; color: var(--spock-text-dark-color); text-decoration: none; }
#calendar-events-page .assignment-member:hover span { color: var(--spock-link-color); }
#calendar-events-page .assignment-member .img-avatar { width: 20px; height: 20px; border-radius: 50%; overflow: hidden; }
/* Empty state sits in the chip slot, so it needs more contrast than the label above it */
#calendar-events-page .assignment-none { font-size: 13px; color: var(--spock-text-light-color); }
#calendar-events-page .assignment-location { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
#calendar-events-page .assignment-location-name { font-size: 12px; font-weight: 600; color: var(--spock-text-light-color); }
/* The fallback bucket on the default calendar is usually the longest, so it spans both columns */
#calendar-events-page .assignment-group-wide { grid-column: 1 / -1; }
#calendar-events-page .assignment-sublabel { color: var(--spock-text-very-light-color); opacity: .75; }
/* Overflow chips render hidden; d-none wins while hidden, display:contents keeps them in the flex row once revealed */
#calendar-events-page .assignment-overflow { display: contents; }
#calendar-events-page .assignment-show-more { font-size: 12px; font-weight: 500; color: var(--spock-link-color); text-decoration: none; }
#calendar-events-page .assignment-show-more:hover { color: #1849A9; text-decoration: underline; }
/* Member count in the uppercase band: quiet pill, not shouted like the label */
#calendar-events-page .events-band-count { display: inline-flex; align-items: center; margin-left: 4px; padding: 0 6px; border-radius: 8px; background: #e6e9ef; font-size: 11px; font-weight: 600; letter-spacing: 0; color: var(--spock-text-light-color); }

/* Year toolbar: segmented switcher left, year-scoped actions right */
#calendar-events-page .events-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 24px; border-top: 1px solid var(--spock-hairline-color); border-bottom: 1px solid var(--spock-hairline-color); background: #ffffff; }
#calendar-events-page .year-segment { display: inline-flex; gap: 2px; padding: 3px; background: #f1f3f7; border-radius: 8px; }
#calendar-events-page .year-pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 12px; border-radius: 6px; font-size: 13px; font-weight: 500; line-height: 20px; color: var(--spock-text-light-color); text-decoration: none; }
#calendar-events-page .year-pill:hover { color: var(--spock-text-dark-color); }
#calendar-events-page .year-pill:focus-visible { outline: 2px solid var(--spock-link-color); outline-offset: -2px; }
#calendar-events-page .year-pill.active { background: #ffffff; color: var(--spock-text-very-dark-color); font-weight: 600; box-shadow: 0 1px 2px rgba(26,31,54,.10), 0 0 0 1px rgba(26,31,54,.06); }
#calendar-events-page .year-pill .year-count { padding: 0 6px; border-radius: 999px; font-size: 11px; font-weight: 600; line-height: 16px; background: #e2e6ec; color: var(--spock-text-normal-color); font-variant-numeric: tabular-nums; }
#calendar-events-page .year-pill.active .year-count { background: var(--spock-bg-selected-color); color: var(--spock-link-color); }
#calendar-events-page .events-toolbar-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
#calendar-events-page .events-toolbar-actions a { display: inline-flex; }
#calendar-events-page .events-toolbar-actions .btn-std { min-height: 30px; font-size: 13px; font-weight: 500; padding: 4px 14px; line-height: 20px; margin: 0; border-radius: 6px; }
#calendar-events-page .events-toolbar-actions .btn-std i { margin-right: 4px; font-size: 11px; }
/* Destructive action stays quiet until hovered */
#calendar-events-page .events-delete-all { border: 0; background: transparent; margin-right: 4px; padding: 4px 8px; border-radius: 6px; font-size: 12px; font-weight: 500; color: var(--spock-text-very-light-color); cursor: pointer; }
#calendar-events-page .events-delete-all:hover { color: var(--spock-text-danger-color); background: var(--spock-bg-danger-color); }
#calendar-events-page .events-delete-all:focus-visible { outline: 2px solid var(--spock-link-color); outline-offset: 2px; }
#calendar-events-page .events-delete-all i { font-size: 11px; margin-right: 3px; }

/* Event rows: date | name | type | behavior | chevron */
#calendar-events-page .event-row { display: grid; grid-template-columns: 120px 1fr 150px 160px 20px; align-items: center; gap: 16px; padding: 13px 24px; border-bottom: 1px solid var(--spock-hairline-color); text-decoration: none; }
#calendar-events-page a.event-row:hover { background-color: #fafbfc; text-decoration: none; }
#calendar-events-page .event-row:focus-visible { outline: 2px solid var(--spock-link-color); outline-offset: -2px; border-radius: 4px; }
#calendar-events-page .events-list .event-row:last-child { border-bottom: 0; }

#calendar-events-page .fact-value { font-size: 14px; font-weight: 500; color: var(--spock-text-very-dark-color); line-height: 20px; }
#calendar-events-page .fact-label { margin-top: 1px; font-size: 12px; color: var(--spock-text-very-light-color); line-height: 16px; }
#calendar-events-page .event-date { font-weight: 600; font-variant-numeric: tabular-nums; }
#calendar-events-page .fact-label.today { color: var(--spock-link-color); font-weight: 600; }
#calendar-events-page .event-name { font-weight: 600; }
#calendar-events-page a.event-row:hover .event-name { color: var(--spock-link-color); }
#calendar-events-page .event-desc { max-width: 52ch; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#calendar-events-page .event-type-cell .badge-std { margin-bottom: 0; }
#calendar-events-page .behavior { font-size: 13px; color: var(--spock-text-normal-color); }
#calendar-events-page .behavior i { font-size: 11px; margin-right: 4px; }
#calendar-events-page .behavior-block i { color: var(--spock-text-danger-dark-color); }
#calendar-events-page .behavior-warn i { color: var(--spock-event-blackout-color); }
#calendar-events-page .behavior-none { color: var(--spock-text-very-light-color); }
#calendar-events-page .event-chevron { color: #c6cdd6; font-size: 12px; text-align: center; transition: transform .15s ease-out, color .15s ease-out; }
#calendar-events-page a.event-row:hover .event-chevron { transform: translateX(2px); color: var(--spock-text-light-color); }

#calendar-events-page .events-empty { padding: 48px 24px; text-align: center; }
#calendar-events-page .events-empty i { font-size: 26px; color: #c6cdd6; }
#calendar-events-page .events-empty h5 { margin: 14px 0 0; font-size: 15px; font-weight: 600; color: var(--spock-text-very-dark-color); }
#calendar-events-page .events-empty p { margin: 4px auto 16px; max-width: 400px; font-size: 13px; color: var(--spock-text-light-color); }
#calendar-events-page .events-empty .btn-std { min-height: 30px; font-size: 13px; font-weight: 500; padding: 4px 14px; line-height: 20px; border-radius: 6px; margin: 0 3px; }
#calendar-events-page .events-empty .btn-std i { margin-right: 4px; font-size: 11px; color: inherit; }

@media (max-width: 991px) {
    /* Behavior is the first fact to go; the event detail page states it too */
    #calendar-events-page .event-row { grid-template-columns: 105px 1fr 130px 20px; gap: 14px; }
    #calendar-events-page .event-behavior-cell { display: none; }
    #calendar-events-page .events-assignments { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
    #calendar-events-page .events-header { flex-direction: column; align-items: flex-start; gap: 12px; }
    #calendar-events-page .events-header-actions,
    #calendar-events-page .events-toolbar-actions { flex-wrap: wrap; }
    #calendar-events-page .events-toolbar { flex-direction: column; align-items: flex-start; gap: 12px; }
    /* Stack the cells; the chevron rides on the first row next to the date */
    #calendar-events-page .event-row { grid-template-columns: 1fr 20px; row-gap: 8px; }
    #calendar-events-page .event-date-cell,
    #calendar-events-page .event-name-cell,
    #calendar-events-page .event-type-cell { grid-column: 1; }
    #calendar-events-page .event-chevron { grid-row: 1; grid-column: 2; }
}
@media (prefers-reduced-motion: reduce) {
    #calendar-events-page .event-chevron { transition: none; }
    #calendar-events-page a.event-row:hover .event-chevron { transform: none; }
}


/* ============================================================================
   Settings — Calendar event form. Scoped under #event-form.
   Two column sections: the left column names the section, the right column
   holds the fields in one readable measure. Help text is readable gray rather
   than the .text-muted used before, which failed contrast at 12px.
   The warning message is indented under Booking behavior because it only
   exists as a consequence of that choice.
   ============================================================================ */
/* Fields sit on the standard settings form tint from .card.form-card; header and footer stay white */
/* form.ideo-form .card-body sets a 1rem top padding that out-specifies .no-padding */
#event-form > .card-body { padding: 0; }

#event-form > .card-header.event-form-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; line-height: normal; }
#event-form .event-form-heading { font-size: 18px; font-weight: 600; color: var(--spock-text-very-dark-color); }
#event-form .event-form-subtitle { margin-top: 3px; font-size: 13px; font-weight: 400; color: var(--spock-text-light-color); }
#event-form .event-form-header-actions { display: flex; align-items: center; flex-shrink: 0; }
#event-form .event-form-header-actions .btn-std { min-height: 30px; margin: 0; font-size: 13px; font-weight: 500; padding: 4px 14px; line-height: 20px; border-radius: 6px; }

/* Whole form problems, e.g. an event that already exists on this date */
#event-form .event-form-alert { display: flex; align-items: flex-start; gap: 10px; padding: 14px 24px; font-size: 13px; color: var(--spock-text-danger-dark-color); background-color: var(--spock-bg-danger-color); border-bottom: 1px solid var(--spock-hairline-color); }
#event-form .event-form-alert i { margin-top: 2px; font-size: 13px; }

/* Divider is the card border color, not the hairline, which disappears on the tinted body */
#event-form .event-form-section { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 32px; padding: 24px; border-bottom: 1px solid #e7e9ee; }
#event-form .event-form-section-title { font-size: 14px; font-weight: 600; color: var(--spock-text-very-dark-color); line-height: 20px; }
#event-form .event-form-section-text { margin: 4px 0 0; font-size: 12px; line-height: 17px; color: var(--spock-text-light-color); }
#event-form .event-form-section-fields { max-width: 460px; }

/* Labels darker and help text readable; both were too light to scan before */
#event-form .form-group { margin-bottom: 22px; }
#event-form label { display: block; margin-bottom: 5px; font-size: 13px; font-weight: 600; color: var(--spock-text-very-dark-color); }
#event-form .required-mark { color: var(--spock-text-danger-color); font-weight: 600; }
#event-form .optional-mark { margin-left: 2px; font-size: 12px; font-weight: 400; color: var(--spock-text-light-color); }
#event-form .form-text { display: block; margin-top: 5px; font-size: 12px; line-height: 17px; color: var(--spock-text-light-color); }
#event-form .form-control { font-size: 14px; color: var(--spock-text-very-dark-color); border-color: #d7dce3; border-radius: 6px; }
#event-form .form-control:focus { border-color: var(--spock-link-color); box-shadow: 0 0 0 3px rgba(15, 105, 255, .12); }
#event-form select.form-control { max-width: 280px; }
#event-form .form-control.is-invalid { border-color: var(--spock-text-danger-color); }
#event-form .field-error { margin-top: 5px; font-size: 12px; line-height: 17px; color: var(--spock-text-danger-dark-color); }

/* The date on an existing event is fixed, so it reads as a stated fact rather than a headline */
#event-form .holiday-date { font-size: 15px; font-weight: 600; color: var(--spock-text-very-dark-color); }
#event-form .holiday-date .holiday-weekday { margin-left: 6px; font-size: 13px; font-weight: 400; color: var(--spock-text-light-color); }
#event-form .selected-date { margin-top: 10px; font-size: 13px; color: var(--spock-text-light-color); }
#event-form .selected-date strong { color: var(--spock-text-very-dark-color); }

/* White on the tinted body, so the note still reads as a distinct block */
#event-form .event-form-note { margin: 8px 0 0; padding: 8px 12px; font-size: 12px; line-height: 17px; color: var(--spock-text-normal-color); background-color: #ffffff; border: 1px solid #e7e9ee; border-radius: 6px; }

/* Dependent field: belongs to the select above it, so it is indented and carries the warning accent */
#event-form .event-form-dependent { margin-top: 20px; padding-left: 14px; border-left: 2px solid var(--spock-event-blackout-color); }

#event-form .event-form-meta { padding: 14px 24px; font-size: 12px; color: var(--spock-text-light-color); }

#event-form > .card-footer.event-form-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 24px; }
#event-form .event-form-footer-primary { display: flex; align-items: center; gap: 16px; }
#event-form .cancel-link { font-size: 13px; color: var(--spock-text-light-color); }
#event-form .cancel-link:hover { color: var(--spock-text-very-dark-color); }
/* Destructive action stays available but quiet, so it never competes with Save */
#event-form .event-form-delete { min-height: 32px; margin: 0; padding: 5px 14px; font-size: 13px; font-weight: 500; line-height: 20px; border-radius: 6px; color: var(--spock-text-danger-dark-color); background-color: #ffffff; border: 1px solid #f2c8c3; box-shadow: none; }
#event-form .event-form-delete:hover { color: #ffffff; background-color: var(--spock-text-danger-color); border-color: var(--spock-text-danger-color); }

@media (max-width: 767px) {
    #event-form .event-form-section { grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 20px; }
    #event-form > .card-header.event-form-header,
    #event-form > .card-footer.event-form-footer { padding-left: 20px; padding-right: 20px; }
    #event-form select.form-control { max-width: none; }
}


/* ============================================================================
   MOBILE LAYER — Phase 1 mobile dashboard upgrade (shared shell)
   Mobile-first: base rules target small screens, min-width queries scale up.
   Desktop (≥992px) rendering is intentionally untouched by this section.
   ============================================================================ */

/* --- Mobile drawer (CoreUI .sidebar restyled as a light off-canvas panel) --- */
@media (max-width: 991.98px) {
  /* body.app scoping out-specifies CoreUI's html:not([dir=rtl]) .sidebar rules */
  body.app .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    height: 100vh;
    height: 100dvh;
    width: min(320px, 85vw);
    margin-left: 0;
    transform: translateX(-105%);
    transition: transform 0.25s ease;
    z-index: 1030; /* above the fixed .app-header (1020) */
    background: #ffffff;
    color: var(--spock-text-dark-color);
    box-shadow: 0 8px 40px rgba(26, 31, 54, 0.18);
    overflow-y: auto;
    padding: calc(8px + env(safe-area-inset-top)) 14px calc(16px + env(safe-area-inset-bottom)) calc(14px + env(safe-area-inset-left));
  }
  body.app.sidebar-show .sidebar { transform: translateX(0); }

  body.app .sidebar .sidebar-nav { width: 100%; background: transparent; display: flex; flex-direction: column; min-height: 100%; }
  /* CoreUI stretches the ul to full height, which would push the logout
     footer below the fold — keep the list natural-height instead */
  body.app .sidebar .nav { width: 100%; flex-wrap: nowrap; flex: 0 0 auto; min-height: 0; height: auto; }
  body.app .sidebar .nav-item { width: 100%; }
  body.app .sidebar .nav-link {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 12px;
    border-radius: 10px;
    background: transparent;
    color: var(--spock-text-dark-color);
    font-size: 16px;
    font-weight: 500;
  }
  body.app .sidebar .nav-link:hover { background: var(--spock-bg-light-color); color: var(--spock-text-very-dark-color); }
  body.app .sidebar .nav-link.active { background: var(--spock-bg-selected-color); color: var(--spock-link-color); }

  .sidebar-mobile-header { display: flex; align-items: center; justify-content: space-between; min-height: 48px; margin-bottom: 4px; }
  .sidebar-mobile-title { font-size: 13px; font-weight: 600; letter-spacing: 0.4px; text-transform: uppercase; color: var(--spock-text-light-color); padding-left: 12px; }
  .sidebar-mobile-close {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--spock-text-normal-color);
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
  }
  .sidebar-mobile-close:hover { background: var(--spock-bg-light-color); }

  .sidebar-request-leave { padding: 4px 0 12px; border-bottom: 1px solid var(--spock-border-light-color); margin-bottom: 8px; }
  .sidebar-request-leave-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    border-radius: 10px;
    background: var(--spock-link-color);
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
  }
  .sidebar-request-leave-btn:hover,
  .sidebar-request-leave-btn:focus { background: #0b5ae0; color: #ffffff; text-decoration: none; }

  .sidebar-mobile-footer { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--spock-border-light-color); }
  .sidebar-logout-link { display: flex; align-items: center; min-height: 48px; padding: 12px; border-radius: 10px; color: var(--spock-text-normal-color); font-size: 16px; text-decoration: none; }
  .sidebar-logout-link:hover { background: var(--spock-bg-light-color); color: var(--spock-text-dark-color); text-decoration: none; }

  .sidebar-mobile-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(26, 31, 54, 0.4);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 1029; /* just below the drawer */
  }
  body.sidebar-show .sidebar-mobile-backdrop { opacity: 1; pointer-events: auto; }
}

/* Drawer helpers must never appear on desktop where CoreUI keeps its own layout */
@media (min-width: 992px) {
  .sidebar-mobile-backdrop { display: none; }
}

/* --- Legacy select chevron: the native Chrome/Safari arrow ignores padding-right and sits on the border,
       so draw our own chevron with a 12px inset that matches the left text padding --- */
select.form-control:not([size]):not([multiple]) {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M3 4.5L6 7.5L9 4.5' stroke='%235c6873' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px 12px;
}
select.form-control::-ms-expand { display: none; }

/* --- Touch-friendly type & control floor (<768px) --- */
@media (max-width: 767.98px) {
  /* 16px inputs stop iOS Safari from zooming the page on focus */
  .form-control,
  select.form-control,
  textarea.form-control { font-size: 16px; min-height: 44px; }
  textarea.form-control { min-height: 88px; }

  .btn-std { min-height: 44px; font-size: 15px; }
  .btn-std.help { min-height: 32px; } /* small inline chip, keep visually light but bump slightly */

  /* Larger native radio/checkbox targets until components get custom controls */
  input[type="radio"],
  input[type="checkbox"] { width: 18px; height: 18px; }

  /* Give the fixed HelpScout beacon room so it never covers final actions */
  .main { padding-bottom: 96px; }
}

/* --- Swipeable tab strips (fixes clipped-unreachable profile tabs) --- */
.tabs-nav__list { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.tabs-nav__list::-webkit-scrollbar { display: none; }
.tabs-nav__link { white-space: nowrap; }
@media (max-width: 767.98px) {
  .tabs-nav { position: relative; }
  /* right-edge fade hints that more tabs are scrollable */
  .tabs-nav::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 28px;
    pointer-events: none;
    background: linear-gradient(to left, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0));
  }
}

/* --- Horizontal-scroll affordance for data tables (<768px) --- */
@media (max-width: 767.98px) {
  table.table-responsive-sm,
  table.table-responsive,
  .table-container-overflow {
    -webkit-overflow-scrolling: touch;
    /* scroll-shadow trick: white covers scroll with content, gray shadows stay at edges */
    background:
      linear-gradient(to right, #fff 30%, rgba(255, 255, 255, 0)) left / 40px 100% no-repeat,
      linear-gradient(to left, #fff 30%, rgba(255, 255, 255, 0)) right / 40px 100% no-repeat,
      linear-gradient(to right, rgba(26, 31, 54, 0.14), rgba(26, 31, 54, 0)) left / 12px 100% no-repeat,
      linear-gradient(to left, rgba(26, 31, 54, 0.14), rgba(26, 31, 54, 0)) right / 12px 100% no-repeat;
    background-attachment: local, local, scroll, scroll;
  }
}

/* --- Bootstrap modals become full-screen sheets on phones --- */
@media (max-width: 575.98px) {
  .modal .modal-dialog {
    margin: 0;
    max-width: none;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
  }
  .modal .modal-content {
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    border: 0;
    border-radius: 0;
    padding-bottom: env(safe-area-inset-bottom);
  }
  .modal .modal-header .close {
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: -8px -8px -8px auto;
  }
}

/* --- Footer: tidy centered stack on phones --- */
@media (max-width: 575.98px) {
  .app-footer .info { text-align: center; }
}

/* --- Visible focus for keyboard/switch users on the new controls --- */
.sidebar-mobile-close:focus-visible,
.sidebar-request-leave-btn:focus-visible,
.sidebar-logout-link:focus-visible,
body.app .sidebar .nav-link:focus-visible { outline: 2px solid var(--spock-link-color); outline-offset: 2px; }

/* --- Reduced motion: drawer/backdrop snap instead of sliding --- */
@media (prefers-reduced-motion: reduce) {
  body.app .sidebar,
  .sidebar-mobile-backdrop { transition: none; }
}


/* ============================================================================
   MOBILE LAYER — Request Leave form (<1200px gets sticky bar + bottom sheet;
   ≥1200px keeps the original two-column layout with the preview column)
   ============================================================================ */

@media (max-width: 1199.98px) {
  /* Card footer submit is replaced by the sticky bar */
  .request-footer-desktop { display: none; }

  /* Room for the fixed bar so the notes field is never hidden behind it */
  #request-leave-form { margin-bottom: 96px; }

  /* --- Sticky action bar --- */
  .mobile-request-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1029;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.96);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border-top: 1px solid var(--spock-border-light-color);
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  }
  .mobile-request-summary {
    flex: 1;
    min-width: 0;
    min-height: 48px;
    border: 0;
    background: transparent;
    text-align: left;
    padding: 2px 6px;
    cursor: pointer;
  }
  .mobile-request-summary .summary-primary {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: var(--spock-text-dark-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .mobile-request-summary .summary-secondary {
    display: block;
    font-size: 13px;
    color: var(--spock-text-light-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .mobile-request-summary .summary-muted { color: var(--spock-text-light-color); font-weight: 400; }
  .mobile-request-summary .summary-chevron { font-size: 11px; margin-left: 6px; transition: transform 0.2s ease; }
  .mobile-request-summary .summary-chevron.open { transform: rotate(180deg); }
  .mobile-request-submit { min-height: 48px; padding: 0 20px; flex-shrink: 0; font-size: 15px; }

  /* --- Request Preview as bottom sheet --- */
  .request-preview-wrap {
    position: fixed;
    left: 0;
    right: 0;
    bottom: calc(69px + env(safe-area-inset-bottom)); /* sits on top of the bar */
    z-index: 1028;
    max-width: none;
    width: 100%;
    max-height: 62vh;
    max-height: 62dvh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: #ffffff;
    border-left: 0;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -12px 40px rgba(26, 31, 54, 0.25);
    transform: translateY(115%);
    transition: transform 0.3s ease;
    visibility: hidden;
  }
  .request-preview-wrap.mobile-open { transform: translateY(0); visibility: visible; }

  .preview-sheet-close {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--spock-text-normal-color);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
  }
  .preview-sheet-close:hover { background: var(--spock-bg-light-color); }
  .request-preview-pane .preview-section.header { border-radius: 16px 16px 0 0; }
}

@media (min-width: 1200px) {
  /* Desktop keeps the always-visible preview column; sheet chrome hidden */
  .preview-sheet-close { display: none; }
}

/* Inline validation under the date picker (mobile/tablet only via d-xl-none) */
.mobile-inline-validation { margin-top: 10px; }

@media (max-width: 767.98px) {
  /* Form pane breathing room on phones */
  .request-form-pane { padding: 1rem; max-width: none; }
  .request-form-pane #id_absence_type { width: 100%; }

  /* --- Duration & AM/PM radios become a segmented control ---
     Progressive enhancement: without :has() support the native radios stay visible. */
  @supports selector(:has(*)) {
    #request-leave-form form.ideo-form label.radio-label,
    #request-leave-form label.radio-label {
      position: relative;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 44px;
      padding: 8px 14px;
      margin: 0 8px 8px 0;
      border: 1px solid var(--spock-border-light-color);
      border-radius: 10px;
      font-size: 15px;
      font-weight: 500;
      color: var(--spock-text-normal-color);
      cursor: pointer;
      user-select: none;
    }
    #request-leave-form label.radio-label input[type="radio"] {
      position: absolute;
      opacity: 0;
      pointer-events: none;
      width: 1px;
      height: 1px;
    }
    #request-leave-form label.radio-label:has(input[type="radio"]:checked) {
      border-color: var(--spock-link-color);
      background: var(--spock-bg-selected-color);
      color: var(--spock-link-color);
    }
    #request-leave-form label.radio-label:has(input[type="radio"]:focus-visible) {
      outline: 2px solid var(--spock-link-color);
      outline-offset: 2px;
    }
  }

  /* --- v-calendar: comfortable touch targets --- */
  #date-picker .vc-container { width: 100%; max-width: 420px; }
  #date-picker .vc-grid-cell { min-height: 44px; }
  #date-picker .vc-day-content {
    width: 42px;
    height: 42px;
    font-size: 16px;
  }
  #date-picker .vc-title { font-size: 18px; }
  #date-picker .vc-arrow { width: 44px; height: 44px; }
  .date-picker-part { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .request-preview-wrap,
  .mobile-request-summary .summary-chevron { transition: none; }
}

/* HelpScout beacon: lift above the sticky request bar so it never covers submit */
@media (max-width: 1199.98px) {
  body #beacon-container .BeaconFabButtonFrame { bottom: calc(84px + env(safe-area-inset-bottom)) !important; }
}


/* ============================================================================
   MOBILE LAYER — Profile / member detail
   ============================================================================ */

/* --- Balance cards (<576px replaces the balances table) --- */
.balance-cards { padding: 4px 16px 8px; }
.balance-card { padding: 14px 0; border-bottom: 1px solid var(--spock-bg-light-color); }
.balance-card:last-child { border-bottom: 0; }
.balance-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.balance-card-head .absence-type-wrap { flex-shrink: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.balance-available { text-align: right; white-space: nowrap; }
.balance-available-number { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; color: var(--spock-text-dark-color); }
.balance-available.ok .balance-available-number { color: #039855; }
.balance-available.over-run .balance-available-number { color: #d92d20; }
.balance-available-caption { display: block; font-size: 12px; color: var(--spock-text-light-color); }
.balance-card-sub { margin-top: 4px; font-size: 13px; color: var(--spock-text-light-color); }
.balance-card-details { margin-top: 6px; font-size: 13px; color: var(--spock-text-normal-color); }
.balance-card-details summary { color: var(--spock-link-color); font-weight: 500; cursor: pointer; min-height: 32px; display: flex; align-items: center; }
.balance-card-details summary::-webkit-details-marker { display: none; }
.balance-card-details summary::after { content: "\203A"; margin-left: 6px; transform: rotate(90deg); transition: transform 0.15s ease; }
.balance-card-details[open] summary::after { transform: rotate(-90deg); }
.balance-detail-line { padding: 2px 0; }

/* --- Requests tables stack into self-describing cards (<576px) ---
   Cells read naturally without headers: date, type chip, duration, badge, action. */
@media (max-width: 575.98px) {
  table.absences-list,
  table.absences-list tbody { display: block; width: 100%; }
  table.absences-list thead { display: none; }
  table.absences-list tr {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--spock-bg-light-color);
  }
  table.absences-list td { display: block; border: 0; padding: 0; }
  table.absences-list td.leave-dates { flex: 1 1 100%; padding-left: 0 !important; font-size: 15px; }
  table.absences-list td.notes { flex: 1 1 100%; }
  table.absences-list td.notes:empty { display: none; }
  table.absences-list td.leave-actions { margin-left: auto; }
  table.absences-list td.leave-actions:empty { display: none; }
  /* scroll-shadow backgrounds from the shared layer don't apply to stacked cards */
  table.absences-list { background: none; }
}

/* --- Profile misc (<768px) --- */
@media (max-width: 767.98px) {
  /* Year selector: comfortable native select */
  .year-selector select { min-height: 44px; font-size: 16px; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--spock-border-light-color); }
  .balances-title-pane .text-right { text-align: left !important; margin-top: 4px; }

  /* Work info tables: looser rows for touch reading */
  .info-table th, .info-table td { padding: 6px 8px 6px 0; }
}


/* ============================================================================
   MOBILE LAYER — Calendar (agenda list on phones)
   ============================================================================ */

/* --- Mobile month navigation header --- */
.mobile-cal-nav { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 2px 4px; }
.mobile-cal-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 10px;
  border: 1px solid var(--spock-border-light-color);
  background: #ffffff;
  color: var(--spock-text-dark-color);
  font-size: 26px;
  line-height: 1;
  text-decoration: none;
}
.mobile-cal-arrow:hover { background: var(--spock-bg-light-color); color: var(--spock-text-very-dark-color); text-decoration: none; }
.mobile-cal-title { font-size: 20px; font-weight: 700; color: var(--spock-text-very-dark-color); text-align: center; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mobile-cal-title .year { font-weight: 400; color: var(--spock-text-normal-color); }

.mobile-cal-tools { display: flex; align-items: center; gap: 10px; padding: 8px 4px 2px; }
.mobile-cal-today {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--spock-border-light-color);
  border-radius: 10px;
  background: #ffffff;
  color: var(--spock-link-color);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  flex-shrink: 0;
}
.mobile-cal-today:hover { background: var(--spock-bg-light-color); text-decoration: none; }
.mobile-cal-order-form { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.mobile-cal-order-form select { min-height: 40px; font-size: 14px; border: 1px solid var(--spock-border-light-color); border-radius: 10px; padding: 4px 8px; background: #ffffff; max-width: 55%; }
.mobile-cal-pending { display: inline-flex; align-items: center; margin: 0; min-height: 40px; }

/* --- Agenda rows (<576px, where days stack) --- */
@media (max-width: 575.98px) {
  #absences-calendar { padding: 0 4px; }
  #absences-calendar .day { border-left: 0; padding: 8px 10px; }
  #absences-calendar .day h5 { margin-bottom: 2px; }

  /* Leave entries become comfortable tap rows instead of dense chips */
  #absences-calendar a.absence {
    display: flex !important;
    align-items: center;
    min-height: 44px;
    padding: 8px 12px !important;
    font-size: 14px;
    white-space: normal;
    line-height: 1.3;
  }
  #absences-calendar .special-day { min-height: 36px; display: flex; align-items: center; padding: 4px 12px; }

  /* Empty days collapse to a thin quiet line (progressive: needs :has support) */
  @supports selector(:has(*)) {
    #absences-calendar .day:not(:has(a.absence, .holiday-name, .special-day)) { padding: 3px 10px; background: #fcfcfd; }
    #absences-calendar .day:not(:has(a.absence, .holiday-name, .special-day)) h5 { margin: 0; display: flex; align-items: baseline; }
    #absences-calendar .day:not(:has(a.absence, .holiday-name, .special-day)) .day-digit { font-size: 12px; font-weight: 500; color: var(--spock-text-very-light-color); }
    #absences-calendar .day:not(:has(a.absence, .holiday-name, .special-day)) p { display: none; }
    /* keep "today" prominent even when empty */
    #absences-calendar .day.today:not(:has(a.absence, .holiday-name, .special-day)) { padding: 8px 10px; background-color: #fefefe; }
    #absences-calendar .day.today:not(:has(a.absence, .holiday-name, .special-day)) .day-digit { font-size: inherit; color: var(--spock-text-very-dark-color); }
  }
}

/* --- Monthly summary: sticky member column while the table scrolls --- */
@media (max-width: 767.98px) {
  #team-report-table th:first-child,
  #team-report-table td.employee-cell { position: sticky; left: 0; background: #ffffff; z-index: 2; }
}

/* --- Group/team tab strips: swipeable single row on phones --- */
@media (max-width: 767.98px) {
  ul.group-tabs { display: flex; flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  ul.group-tabs::-webkit-scrollbar { display: none; }
  ul.group-tabs .tab-item { flex-shrink: 0; }
  .section-tabs-wrap .section-tabs { display: flex; flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .section-tabs-wrap .section-tabs::-webkit-scrollbar { display: none; }
  .section-tabs-wrap .section-tabs .tab-item { flex-shrink: 0; }
}


/* ============================================================================
   MOBILE LAYER — Members list
   ============================================================================ */

/* Desktop: the .filter-advanced wrapper must not affect the flex row */
@media (min-width: 768px) {
  .filter-advanced { display: contents; }
}

/* Phones: search-first, selects behind a Filters disclosure */
@media (max-width: 767.98px) {
  .filter-fields-row { flex-direction: column; gap: 0.75rem; }
  .filter-field-search { order: 1; width: 100%; }
  .filters-toggle { order: 2; width: 100%; min-height: 44px; }
  .filters-toggle[aria-expanded="true"] { color: var(--spock-link-color); border-color: var(--spock-link-color); }
  .filter-advanced { order: 3; display: none; width: 100%; }
  .filter-advanced.open { display: flex; flex-direction: column; gap: 0.75rem; }
  .filter-field-submit { order: 4; width: 100%; }
  .filter-field-submit .search-button { width: 100%; min-height: 44px; }
  .members-filter-form select { min-height: 44px; font-size: 16px; }
}

/* Member rows become tappable cards (<576px) */
@media (max-width: 575.98px) {
  #member-list table.ideo-table,
  #member-list table.ideo-table tbody { display: block; width: 100%; }
  #member-list table.ideo-table thead { display: none; }

  #member-list tr.clickable-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    column-gap: 12px;
    padding: 10px 16px;
    min-height: 64px;
    border-bottom: 1px solid var(--spock-bg-light-color);
  }
  #member-list tr.clickable-row td { display: block; border: 0; padding: 0; }
  #member-list td.avatar-wrap { flex-shrink: 0; }
  #member-list td.member-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  #member-list td.member-name .item-link { font-size: 15px; font-weight: 600; }
  /* location + teams drop to a quiet second line, indented past the avatar */
  #member-list td.member-groups { flex: 1 1 100%; padding-left: 60px; font-size: 13px; color: var(--spock-text-light-color); margin-top: 2px; }
  #member-list td.member-groups br { display: none; }
  /* job title is dropped at this width — it lives on the member detail page
     (selector must out-specify the tr.clickable-row td display:block rule) */
  #member-list tr.clickable-row td.member-title { display: none; }

  #member-list tr.team-header-row { display: block; padding: 10px 16px; background: var(--spock-bg-light-color); }
  #member-list tr.team-header-row td.team-header-cell { display: block; padding: 0; border: 0; }
  #member-list tr.team-header-row .team-title { margin: 0; font-size: 15px; }
}

/* ==========================================================================
   Spock Analytics page (spock_app_analytics.html)
   ========================================================================== */
.analytics-title { font-size: 22px; font-weight: 600; color: var(--spock-text-very-dark-color); margin-bottom: 2px; }
.analytics-subtitle { font-size: 13px; color: var(--spock-text-light-color); margin: 0; }
.analytics-filters { display: flex; gap: 10px; flex-wrap: wrap; margin: 16px 0 0; }
.analytics-filter { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid #E5E8F2; border-radius: 8px; padding: 4px 10px; font-size: 13px; margin-bottom: 0; }
.analytics-filter span { color: var(--spock-text-light-color); }
.analytics-filter select { border: 0; background: transparent; font-size: 13px; color: var(--spock-text-dark-color); }
.analytics-tabs { display: flex; gap: 2px; margin: 18px 0; border-bottom: 1px solid #EAECF0; }
.analytics-tab { padding: 9px 14px 11px; font-size: 14px; color: var(--spock-text-light-color); border: 0; background: none; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.analytics-tab.active { color: var(--spock-link-color); border-bottom-color: var(--spock-link-color); font-weight: 500; }
.analytics-panel { display: none; }
.analytics-panel.active { display: block; }
.analytics-kpis { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin-bottom: 18px; }
.kpi-tile { background: #fff; border: 1px solid #E5E8F2; border-radius: 8px; padding: 14px 16px; }
.kpi-caption { font-size: 12px; color: var(--spock-text-light-color); margin-bottom: 4px; white-space: nowrap; }
.kpi-value { font-size: 22px; font-weight: 600; color: var(--spock-text-very-dark-color); }
.kpi-sub { font-size: 14px; color: var(--spock-text-light-color); }
.analytics-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.chart-card { background: #fff; border: 1px solid #E5E8F2; border-radius: 8px; padding: 16px 18px 10px; min-width: 0; }
.chart-card h3 { font-size: 14px; font-weight: 600; color: var(--spock-text-dark-color); margin: 0 0 10px; }
.chart-card-wide { grid-column: 1 / -1; }
.chart-card-hint { font-size: 11px; font-weight: 400; color: var(--spock-text-light-color); margin-left: 6px; }
.chart-box { width: 100%; height: 260px; }
.chart-box-tall { height: 220px; }
.analytics-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.analytics-export-btn { font-size: 13px; color: var(--spock-text-dark-color); background: #fff; border: 1px solid #E5E8F2; border-radius: 8px; padding: 7px 14px; text-decoration: none; white-space: nowrap; }
.analytics-export-btn:hover { border-color: var(--spock-link-color); color: var(--spock-link-color); text-decoration: none; }
.analytics-note { font-size: 12px; color: var(--spock-text-light-color); margin: 0 0 12px; }
.balance-type-picker { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 18px; }
.balance-type-caption { font-size: 13px; color: var(--spock-text-light-color); margin-right: 4px; }
.balance-type-pill { font-size: 14px; font-weight: 500; color: var(--spock-text-dark-color); background: #fff; border: 1px solid #E5E8F2; border-radius: 18px; padding: 7px 16px; text-decoration: none; white-space: nowrap; }
.balance-type-pill:hover { border-color: var(--spock-link-color); color: var(--spock-link-color); text-decoration: none; }
.balance-type-pill.active { background: var(--spock-link-color); border-color: var(--spock-link-color); color: #fff; }
.balance-type-pill.active:hover { color: #fff; }
.analytics-kpis-3 { grid-template-columns: repeat(3, 1fr); }
.table-card { max-height: 420px; overflow-y: auto; }
.util-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.util-table th { text-align: left; font-weight: 500; color: var(--spock-text-light-color); padding: 8px 10px; border-bottom: 1px solid #EAECF0; position: sticky; top: 0; background: #fff; }
.util-table td { padding: 8px 10px; border-bottom: 1px solid #F2F4F7; color: var(--spock-text-dark-color); }
.util-table th.num, .util-table td.num { text-align: right; }
.util-bar { width: 90px; height: 6px; background: #EAECF0; border-radius: 3px; }
.util-bar-fill { height: 6px; border-radius: 3px; background: #47C2FE; max-width: 100%; }
.signal-badge { display: inline-block; font-size: 11px; padding: 2px 8px; border-radius: 10px; background: #FEF0C7; color: #93370D; margin: 0 4px 2px 0; white-space: nowrap; }
@media (max-width: 980px) {
    .analytics-kpis { grid-template-columns: repeat(3, 1fr); }
    .analytics-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Member profile Stats tab (spock_app_organization_member_stats.html)
   ========================================================================== */
.member-stats { padding: 18px 24px 28px; }
.member-stats .stats-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.member-stats .stats-title { font-size: 18px; font-weight: 600; color: var(--spock-text-very-dark-color); margin: 0; }
.member-stats .stats-title .year { color: var(--spock-text-light-color); font-weight: 400; }
.stats-signals { background: #fff; border: 1px solid #E5E8F2; border-radius: 8px; padding: 14px 18px; margin-bottom: 18px; }
.stats-signals h3 { font-size: 14px; font-weight: 600; color: var(--spock-text-dark-color); margin: 0 0 2px; }
.stats-signals-hint { font-size: 12px; color: var(--spock-text-light-color); margin: 0 0 12px; }
.stats-signal-row { display: flex; gap: 10px; flex-wrap: wrap; }
.stats-signal { border-radius: 8px; padding: 9px 12px; min-width: 170px; flex: 1 1 170px; border: 1px solid; }
.stats-signal-label { font-size: 13px; font-weight: 600; }
.stats-signal-detail { font-size: 11px; margin-top: 2px; opacity: 0.9; }
.stats-signal.risk { background: #FEF3F2; border-color: #FECDCA; color: var(--spock-text-danger-dark-color); }
.stats-signal.warn { background: #FFFAEB; border-color: #FEDF89; color: #B54708; }
.stats-signal.ok { background: #F6FEF9; border-color: #A6F4C5; color: var(--spock-text-success-color); }
.stats-kpis { grid-template-columns: repeat(5, 1fr); }
.kpi-bench { font-size: 11px; color: var(--spock-text-very-light-color); margin-top: 3px; }
.kpi-delta { font-size: 11px; margin-top: 2px; }
.kpi-delta.bad { color: var(--spock-text-danger-color); }
.kpi-delta.good { color: var(--spock-text-success-color); }
.stats-cal-legend { display: flex; gap: 14px; flex-wrap: wrap; margin: 0 0 10px; }
.stats-cal-legend-item { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--spock-text-normal-color); }
.stats-cal-legend-swatch { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.stats-calendar-card { margin-bottom: 16px; }
.stats-calendar-box { height: 180px; }
.stats-balances { margin: 16px 0; }
.stats-used-percent { font-size: 12px; color: var(--spock-text-light-color); margin-left: 6px; }
.stats-muted { color: var(--spock-text-very-light-color); font-size: 12px; }
.stats-request-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stats-request-tiles .kpi-tile { border: 0; padding: 8px 6px; }
.stats-lead-median { margin-bottom: 8px; }
@media (max-width: 980px) {
    .stats-kpis { grid-template-columns: repeat(2, 1fr); }
    .stats-request-tiles { grid-template-columns: 1fr; }
}

/* ============================================================
   Members directory + org chart (v2 design language)
   Matches the onboarding-v2 / section-card language: white cards,
   ink #0E1326, muted #6B7396, hairlines #EDF0F8, pill badges,
   indigo #3149E5 accents. Org chart connectors are pure CSS.
   ============================================================ */

/* --- Card header: title + count + view switcher --- */
#member-list .card-header.mlh                   { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; line-height: normal; padding: 18px 24px 14px; }
#member-list .mlh-left                          { display: flex; align-items: baseline; gap: 12px; min-width: 0; }
#member-list .mlh-left .card-title              { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; color: #0E1326; }
#member-list .mlh-left .items-count             { margin-bottom: 0; white-space: nowrap; font-size: 12.5px; font-weight: 600; color: #3A4163; background: #F7F9FD; border: 1px solid #EDF0F8; border-radius: 999px; padding: 2px 10px; line-height: 18px; }
#member-list .mlh-right                         { display: flex; align-items: center; gap: 12px; }

#member-list .view-switch                       { display: inline-flex; align-items: center; gap: 2px; padding: 3px; background: #EEF0F5; border-radius: 10px; }
#member-list .view-switch-btn                   { display: inline-flex; align-items: center; gap: 7px; padding: 5px 13px; border-radius: 8px; font-size: 13px; font-weight: 600; line-height: 20px; color: var(--spock-text-light-color); text-decoration: none; white-space: nowrap; transition: color .15s ease, background-color .15s ease; }
#member-list .view-switch-btn i                 { font-size: 11px; opacity: .8; }
#member-list .view-switch-btn:hover             { color: #0E1326; }
#member-list .view-switch-btn.active            { background: #ffffff; color: #0E1326; box-shadow: 0 1px 2px rgba(15,19,38,.10), 0 0 0 1px rgba(15,19,38,.03); }
#member-list .view-switch-btn:focus-visible     { outline: none; box-shadow: 0 0 0 3px rgba(49,73,229,.25); }

/* --- Directory rows: avatar-forward identity --- */
#member-list table.ideo-table td                { border-color: #EDF0F8; padding: 12px 8px; }
#member-list table.ideo-table td.avatar-wrap    { width: 58px; padding: 12px 12px 12px 24px; }
#member-list table.ideo-table td.member-name    { padding-left: 4px; }
#member-list .user-avatar                       { width: 42px; height: 42px; margin: 0; }
#member-list .user-avatar .img-avatar           { width: 42px; height: 42px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(15,19,38,.08); display: block; }
#member-list .member-name                       { line-height: 1.35; }
#member-list .member-name-line                  { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
#member-list .member-name .item-link            { font-size: 14.5px; font-weight: 600; color: #0E1326; }
#member-list tr.clickable-row:hover .item-link  { color: #3149E5; }
#member-list .member-name .handle               { display: block; font-size: 12.5px; color: var(--spock-text-very-light-color); }
#member-list .location-info                     { display: inline-flex; align-items: center; gap: 5px; margin-right: 8px; font-size: 12.5px; color: var(--spock-text-color); white-space: nowrap; }
#member-list .location-info i                   { font-size: 10.5px; color: #A0A8C2; }
#member-list .team-chips,
#member .team-chips,
#requests .team-chips                           { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
#member-list .team-chip,
#member .team-chip,
#requests .team-chip                            { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px 2px; border-radius: 999px; font-size: 11.5px; font-weight: 500; line-height: 16px; color: #3A4163; background: #F5F6FA; box-shadow: inset 0 0 0 1px #E5E8F2; white-space: nowrap; }
#member-list .team-chip i,
#member .team-chip i,
#requests .team-chip i                          { font-size: 8px; color: #3149E5; }
#member-list .team-chip-icon,
#member .team-chip-icon,
#requests .team-chip-icon                       { display: flex; color: #8A93B4; }
#member-list .team-chip-icon svg,
#member .team-chip-icon svg,
#requests .team-chip-icon svg                   { width: 11px; height: 11px; display: block; }
#member-list .team-chip.is-manager .team-chip-icon,
#member .team-chip.is-manager .team-chip-icon,
#requests .team-chip.is-manager .team-chip-icon { color: #3149E5; }
#member-list .team-chip.is-manager,
#member .team-chip.is-manager,
#requests .team-chip.is-manager                 { color: #3149E5; background: #EEF0FF; box-shadow: inset 0 0 0 1px rgba(49,73,229,.14); }
/* Chips rendered as links - keep chip colors on hover, no underline */
#member a.team-chip:hover,
#requests a.team-chip:hover                     { text-decoration: none; box-shadow: inset 0 0 0 1px #D7DCEE; }
#member a.team-chip.is-manager:hover,
#requests a.team-chip.is-manager:hover          { box-shadow: inset 0 0 0 1px rgba(49,73,229,.3); }
/* Title column: full-width CSS truncation (max-width: 0 lets the width % win in auto table layout) */
#member-list table.ideo-table td.member-title   { width: 26%; max-width: 0; padding-right: 32px; }
#member-list .member-title span                 { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; color: var(--spock-text-color); }
#member-list table.ideo-table.table-hover tbody tr:hover { background-color: #FBFCFE; }

/* --- Team section bands (grouped-by-team ordering) --- */
#member-list .team-header-row                   { background: linear-gradient(to bottom, #FCFCFD, #FFFFFF); }
#member-list .team-header-row td.team-header-cell { padding: 14px 12px 14px; border-bottom: 1px solid #EDF0F8; }
#member-list .team-header-row .team-title       { font-size: 16px; font-weight: 600; color: #0E1326; display: flex; align-items: center; gap: 6px; }
#member-list .team-title-count                  { font-size: 14px; font-weight: 400; color: var(--spock-text-light-color); }
#member-list .team-title-icon                   { height: 18px; border-radius: 4px; }
#member-list .team-title-svg                    { display: flex; color: var(--spock-text-very-dark-color); }
#member-list .team-title-svg svg                { width: 14px; height: 14px; display: block; }
#member-list .team-header-row:hover .team-title-svg { color: #3149E5; }

/* --- Org chart: canvas (vertical layout, never scrolls horizontally) --- */
#member-list .org-chart-wrap                    { padding: 26px 24px 34px; background: #F7FAFC; border-radius: 0 0 8px 8px; }
#member-list .org-chart                         { width: 100%; }

/* --- Org chart: workspace root node --- */
#member-list .oc-root                           { display: flex; }
#member-list .oc-company                        { display: inline-flex; align-items: center; gap: 13px; padding: 13px 20px; background: #ffffff; border: 1px solid #E5E8F2; border-radius: 14px; box-shadow: 0 1px 0 rgba(15,19,38,.04), 0 10px 28px -18px rgba(15,19,38,.18); position: relative; z-index: 1; }
#member-list .oc-company-logo                   { width: 42px; height: 42px; border-radius: 10px; box-shadow: 0 0 0 1px rgba(15,19,38,.08); }
#member-list .oc-company-eyebrow                { font-size: 10px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--spock-text-light-color); }
#member-list .oc-company-name                   { font-size: 16px; font-weight: 600; color: #0E1326; line-height: 1.3; }
#member-list .oc-company-count                  { font-size: 13px; color: var(--spock-text-light-color); }

/* --- Org chart: vertical spine + elbow connectors ---
   Teams stack under the workspace node along one vertical spine;
   each branch gets an elbow stub into its card. */
#member-list .oc-branches                       { list-style: none; margin: 0 0 0 40px; padding: 0; }
#member-list .oc-branch                         { position: relative; padding: 18px 0 0 36px; }
#member-list .oc-branch::before                 { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 2px; background: #DCE1EF; }
#member-list .oc-branch:last-child::before      { bottom: auto; height: 51px; }
#member-list .oc-branch::after                  { content: ""; position: absolute; top: 50px; left: 0; width: 36px; height: 2px; background: #DCE1EF; }

/* --- Org chart: team nodes ---
   Reading order inside a card: team name (title, 17px) > team manager
   (40px avatar, ink name) > members (small borderless chips on a tinted
   band). Manager and members rows indent to the team name (60px). */
#member-list .oc-node                           { width: 100%; max-width: 760px; background: var(--sui-card); border: 1px solid var(--sui-border); border-radius: 14px; box-shadow: var(--sui-shadow-card); overflow: hidden; transition: border-color .15s ease; }
/* Team name + manager row: lit from the top, white fading into the canvas tint */
#member-list .oc-node-top                       { background: linear-gradient(180deg, var(--sui-card) 0%, var(--sui-canvas) 100%); }
#member-list .oc-node:hover                     { border-color: var(--sui-accent-border); }
#member-list .oc-node-head                      { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px 0; text-decoration: none; }
#member-list a.oc-node-head:hover .oc-node-name { color: var(--sui-accent); }
#member-list a.oc-node-head:focus-visible       { outline: none; box-shadow: inset 0 0 0 3px rgba(49,73,229,.25); border-radius: 14px 14px 0 0; }
#member-list .oc-node-title                     { display: flex; align-items: center; gap: 10px; min-width: 0; }
/* Team icon sits in an accent tile so each card starts with a clear anchor */
#member-list .oc-node-svg                       { display: flex; align-items: center; justify-content: center; flex: none; width: 30px; height: 30px; border-radius: 8px; color: var(--sui-accent); background: var(--sui-accent-bg); }
#member-list .oc-node-svg svg                   { width: 16px; height: 16px; display: block; }
#member-list .oc-node-name                      { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; color: var(--sui-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#member-list .oc-node-count                     { flex: none; font-size: 13px; color: var(--sui-muted); white-space: nowrap; }

/* --- Org chart: team manager row (the team's lead) --- */
#member-list .oc-managers                       { display: flex; flex-wrap: wrap; gap: 8px 24px; padding: 12px 20px 16px 56px; }
#member-list .oc-manager,
#member-list .oc-manager-empty                  { display: inline-flex; align-items: center; gap: 10px; min-width: 0; max-width: 100%; padding: 4px 12px 4px 4px; border-radius: 12px; text-decoration: none; transition: background-color .15s ease; }
#member-list .oc-manager:hover                  { background: var(--sui-accent-bg); }
#member-list .oc-manager:focus-visible          { outline: none; box-shadow: 0 0 0 3px rgba(49,73,229,.25); }
#member-list .oc-manager .img-avatar            { flex: none; width: 40px; height: 40px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(15,19,38,.08); display: block; }
#member-list .oc-manager .oc-presence           { width: 12px; height: 12px; box-shadow: 0 0 0 2px var(--sui-canvas); }
#member-list .oc-manager-text                   { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
#member-list .oc-manager .oc-person-name        { max-width: 220px; font-size: 15px; font-weight: 600; color: var(--sui-ink); }
#member-list .oc-manager:hover .oc-person-name  { color: var(--sui-accent); }
#member-list .oc-person-role                    { font-size: 12px; color: var(--sui-muted); white-space: nowrap; }
/* No manager set: dashed placeholder avatar so the gap is visible */
#member-list .oc-manager-empty-avatar           { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1px dashed var(--sui-faint); }
#member-list .oc-manager-empty .oc-person-name  { font-size: 14px; color: var(--sui-faint); }

/* Presence dot on chart avatars: green = available today, amber = out today */
#member-list .oc-avatar-wrap                    { position: relative; flex: none; display: block; }
#member-list .oc-presence,
#dashboard-on-leave .oc-presence                { position: absolute; right: -1px; bottom: -1px; width: 10px; height: 10px; border-radius: 50%; background: #15A36E; box-shadow: 0 0 0 2px #FFFFFF; }
#member-list .oc-presence.is-out,
#dashboard-on-leave .oc-presence.is-out         { background: #E2AA43; }
/* Dashboard on-leave avatars share the presence treatment */
/* Presence dot on directory list avatars (48px) - same colors as the chart */
#member-list .user-avatar                       { position: relative; }
#member-list .user-avatar .oc-presence          { width: 12px; height: 12px; right: 1px; bottom: 1px; box-shadow: 0 0 0 2.5px #FFFFFF; }
#member-list .oc-person-name                    { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* --- Org chart: members band (quiet: small avatars, no borders) --- */
#member-list .oc-members                        { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 4px; padding: 10px 20px 12px 56px; border-top: 1px solid var(--sui-hair); background: var(--sui-card); }
#member-list .oc-members-label                  { width: 100%; padding: 0 0 4px 4px; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--sui-faint); }
#member-list .oc-member                         { display: inline-flex; align-items: center; gap: 7px; min-width: 0; max-width: 100%; padding: 3px 10px 3px 3px; border-radius: 999px; text-decoration: none; transition: background-color .15s ease; }
#member-list .oc-member:hover                   { background: var(--sui-accent-bg); }
#member-list .oc-member:focus-visible           { outline: none; box-shadow: 0 0 0 3px rgba(49,73,229,.25); }
#member-list .oc-member .img-avatar             { flex: none; width: 24px; height: 24px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(15,19,38,.08); display: block; }
#member-list .oc-member .oc-presence            { width: 8px; height: 8px; box-shadow: 0 0 0 2px var(--sui-card); }
#member-list .oc-member .oc-person-name         { max-width: 160px; font-size: 13px; color: var(--sui-ink-2); }
#member-list .oc-member:hover .oc-person-name   { color: var(--sui-accent); }
#member-list .oc-member-more                    { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; line-height: 24px; color: var(--sui-accent); text-decoration: none; white-space: nowrap; }
#member-list .oc-member-more:hover              { background: var(--sui-accent-bg); }
#member-list .oc-node-empty                     { padding: 0 20px 16px 60px; font-size: 13px; color: var(--sui-faint); }

/* Company-level node (people directly under the company - execs, unassigned):
   deliberately NOT styled like a team - eyebrow-caps title, no team icon,
   no tinted member band, no indent. */
#member-list .oc-node-company-level             { background: var(--sui-card); }
#member-list .oc-node-company-level .oc-node-name { font-size: 11px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--sui-muted); }
#member-list .oc-node-company-level .oc-node-head { padding: 14px 20px 4px; }
#member-list .oc-node-company-level .oc-node-count { font-size: 12px; }
#member-list .oc-node-company-level .oc-members { background: transparent; border-top: 0; padding: 4px 20px 12px 16px; }
#member-list .oc-node-company-level .oc-members:first-child { padding-top: 12px; }
#member-list .oc-node-company-level .oc-member .oc-presence { box-shadow: 0 0 0 2px var(--sui-card); }

/* --- Org chart: shared hover card ---
   position:fixed; filled + placed by the script in the chart template.
   pointer-events:none so it never steals the hover from the avatar. */
.oc-hovercard                                   { position: fixed; z-index: 1060; width: 272px; padding: 14px 16px 15px; background: #ffffff; border: 1px solid #E5E8F2; border-radius: 14px; box-shadow: 0 1px 0 rgba(15,19,38,.04), 0 18px 44px -16px rgba(15,19,38,.30); pointer-events: none; opacity: 0; visibility: hidden; transform: translateY(4px); transition: opacity .14s ease, transform .14s ease, visibility .14s; }
.oc-hovercard.is-visible                        { opacity: 1; visibility: visible; transform: translateY(0); }
.oc-hovercard .oc-hc-head                       { display: flex; align-items: center; gap: 12px; }
.oc-hovercard .oc-hc-avatar                     { flex: none; width: 54px; height: 54px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(15,19,38,.08); }
.oc-hovercard .oc-hc-identity                   { min-width: 0; }
.oc-hovercard .oc-hc-name                       { font-size: 15px; font-weight: 600; color: #0E1326; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.oc-hovercard .oc-hc-handle                     { font-size: 12.5px; color: var(--spock-text-light-color); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.oc-hovercard .oc-hc-title                      { margin-top: 9px; font-size: 13px; color: #3A4163; line-height: 1.4; }
.oc-hovercard .oc-hc-rows                       { display: grid; grid-template-columns: 16px 1fr; gap: 7px 9px; align-items: start; margin-top: 10px; }
.oc-hovercard .oc-hc-row                        { display: contents; }
.oc-hovercard .oc-hc-icon                       { display: flex; justify-content: center; padding-top: 2px; font-size: 11px; color: #A0A8C2; }
.oc-hovercard .oc-hc-icon-svg svg               { width: 14px; height: 14px; display: block; }
.oc-hovercard .oc-hc-value                      { min-width: 0; font-size: 12.5px; color: var(--spock-text-light-color); line-height: 1.45; }
.oc-hovercard .oc-hc-badges .oc-hc-value        { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
/* Leave row: amber like the "out today" status on member cards */
.oc-hovercard .oc-hc-leave .oc-hc-icon          { color: #E2AA43; }
.oc-hovercard .oc-hc-leave .oc-hc-value         { color: #B97000; font-weight: 600; }

/* Hover card: calendar leave detail section (type chip + dates/notes/substitute).
   Hairline dividers separate identity, the hovered leave's facts, and the
   person's location/teams rows into three readable groups. */
.oc-hovercard .oc-hc-leave-detail               { margin-top: 11px; padding-top: 11px; border-top: 1px solid var(--spock-border-light-color); }
.oc-hovercard .oc-hc-leave-rows                 { margin-top: 0; }
.oc-hovercard .oc-hc-typeline                   { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.oc-hovercard .oc-hc-typeline .absence-type-wrap { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.oc-hovercard .oc-hc-typeline-row .oc-hc-icon   { padding-top: 5px; }
.oc-hovercard .oc-hc-pending                    { font-size: 11px; font-weight: 600; color: #B97000; background: #FFFAEB; border: 1px solid #FEDF89; border-radius: 999px; padding: 1px 8px; }
.oc-hovercard .oc-hc-deleted                    { font-size: 11px; font-weight: 600; color: #B42318; background: #FEF3F2; border: 1px solid #FECDCA; border-radius: 999px; padding: 1px 8px; }
.oc-hovercard .oc-hc-dates .oc-hc-value         { color: var(--spock-text-dark-color); font-weight: 600; }
.oc-hovercard.oc-has-leave-detail .oc-hc-leave-detail + .oc-hc-rows { margin-top: 11px; padding-top: 11px; border-top: 1px solid var(--spock-border-light-color); }
/* Notes keep the dashboard's marker-highlight look: the negative margin
   offsets the padding so the note TEXT left-aligns with the other values
   while the highlight bleeds slightly left */
.oc-hovercard .oc-hc-notes .oc-hc-value         { font-style: italic; color: var(--spock-text-normal-color); margin-left: -6px; padding: 1px 6px; border-radius: 4px; background-color: rgba(255, 255, 0, 0.22); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.oc-hovercard .oc-hc-microlabel                 { display: block; font-size: 10px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--spock-text-very-light-color); }
.oc-hovercard .oc-hc-subname                    { color: var(--spock-text-normal-color); font-weight: 500; }

/* Hover card: holiday variant (calendar events) - red eyebrow rhymes with the
   holiday day cells, calendar + assigned members share the icon grid. */
.oc-hovercard .oc-hc-eyebrow                    { font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--spock-holiday-color); }
.oc-hovercard .oc-hc-holiday-name               { margin-top: 3px; margin-bottom: 10px; font-size: 15px; font-weight: 600; color: #0E1326; line-height: 1.3; }
.oc-hovercard .oc-hc-members-more               { color: var(--spock-text-very-light-color); }

/* --- Org chart: small screens --- */
@media (max-width: 768px) {
    #member-list .org-chart-wrap                { padding: 20px 14px 26px; }
    #member-list .oc-branches                   { margin-left: 20px; }
    #member-list .oc-branch                     { padding-left: 20px; }
    #member-list .oc-branch::after              { width: 20px; }
    #member-list .oc-company                    { width: 100%; }
    /* Narrow screens: drop the 60px indent under the team name */
    #member-list .oc-node-head                  { padding: 14px 14px 0; }
    #member-list .oc-managers                   { padding: 10px 14px 14px 10px; }
    #member-list .oc-members                    { padding: 10px 14px 12px 10px; }
    #member-list .oc-node-empty                 { padding: 0 14px 14px; }
    #member-list .mlh-right                    { width: 100%; justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
    #member-list .oc-node,
    #member-list .oc-manager,
    #member-list .oc-member,
    #member-list .view-switch-btn,
    .oc-hovercard                               { transition: none; }
    .oc-hovercard                               { transform: none; }
}


/* ============================================================================
   TEAM DETAIL — member cards + team pulse (#group-members, .gm-*)
   v2 design language: ink #0E1326, secondary #3A4163, muted #6B7396,
   borders #E5E8F2, hairlines #EDF0F8, tinted panel #FBFCFE
   ============================================================================ */

#group-members                                  { padding: 4px 0 2rem; }

/* --- Cohort sections --- */
#group-members .gm-cohort                       { margin-top: 26px; }
#group-members .gm-cohort-title                 { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 17px; font-weight: 650; letter-spacing: -0.01em; color: #0E1326; }
#group-members .gm-cohort-title::after          { content: ""; flex: 1; height: 1px; background: #EDF0F8; }
#group-members .gm-cohort-count                 { padding: 1px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: 0; color: #3A4163; background: #F5F6FA; box-shadow: inset 0 0 0 1px #E5E8F2; }

/* --- Member card grid: the whole card is the click target --- */
#group-members .gm-grid                         { display: grid; grid-template-columns: repeat(auto-fill, minmax(252px, 1fr)); gap: 12px; }
#group-members a.gm-card                        { display: flex; align-items: flex-start; gap: 14px; padding: 16px; background: linear-gradient(0deg, #FFFFFF 20%, #fcfcfc 100%); border: 1px solid #ebedf5; border-radius: 14px; color: inherit; text-decoration: none; box-shadow: 0 1px 0 rgba(15,19,38,.04); transition: box-shadow .15s ease, border-color .15s ease, transform .15s ease; }
#group-members a.gm-card:hover                  { text-decoration: none; border-color: #D7DCEE; box-shadow: 0 1px 0 rgba(15,19,38,.04), 0 10px 28px -18px rgba(15,19,38,.18); transform: translateY(-1px); }
#group-members a.gm-card:focus-visible          { outline: 2px solid #3149E5; outline-offset: 2px; }

/* --- Avatar with presence dot (today's availability) --- */
#group-members .gm-avatar                       { position: relative; flex: 0 0 auto; }
#group-members .gm-avatar img                   { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; display: block; }
#group-members .gm-presence                     { position: absolute; right: -3px; bottom: -3px; width: 13px; height: 13px; border-radius: 50%; background: #15A36E; box-shadow: 0 0 0 2.5px #FFFFFF; }
#group-members .gm-presence.is-out              { background: #E2AA43; }
/* #group-members .gm-card.is-out .gm-avatar img   { filter: grayscale(1); opacity: 0.72; }
#group-members .gm-card.is-manager .gm-avatar img { box-shadow: 0 0 0 2px #FFFFFF, 0 0 0 3.5px blue; } */

/* --- Profile header (#member) reuses the presence dot + status line --- */
#member .heading-avatar .gm-presence            { position: absolute; right: 2px; bottom: 2px; width: 14px; height: 14px; border-radius: 50%; background: #15A36E; box-shadow: 0 0 0 2.5px #FFFFFF; }
#member .heading-avatar .gm-presence.is-out     { background: #E2AA43; }

/* --- Card text --- */
#group-members .gm-info                         { display: flex; flex-direction: column; min-width: 0; }
#group-members .gm-name-line                    { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
#group-members .gm-name                         { font-size: 15px; font-weight: 600; line-height: 20px; color: #0E1326; }
#group-members .gm-role-pill                    { padding: 1.5px 8px; border-radius: 999px; font-size: 10.5px; font-weight: 600; line-height: 15px; color: #3149E5; background: #EEF0FF; white-space: nowrap; }
#group-members .gm-handle                       { font-size: 12.5px; line-height: 17px; color: var(--spock-text-light-color); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#group-members .gm-title                        { margin-top: 3px; font-size: 13px; line-height: 18px; color: #3A4163; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
#group-members .gm-meta                         { margin-top: 8px; }
#group-members .gm-status,
#member .gm-status                              { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; line-height: 16px; color: var(--spock-text-light-color); }
#group-members .gm-status-dot,
#member .gm-status-dot                          { width: 7px; height: 7px; border-radius: 50%; background: #15A36E; flex: 0 0 auto; }
#group-members .gm-status.is-out,
#member .gm-status.is-out                       { color: #B97000; font-weight: 600; }
#group-members .gm-status.is-out .gm-status-dot,
#member .gm-status.is-out .gm-status-dot        { background: #E2AA43; }
#group-members .gm-status.is-away,
#member .gm-status.is-away                      { color: #3149E5; }
#group-members .gm-status.is-away .gm-status-dot,
#member .gm-status.is-away .gm-status-dot       { background: #B9C1F5; }

/* --- Empty state --- */
#group-members .gm-empty                        { padding: 3.5rem 1rem; text-align: center; }
#group-members .gm-empty-title                  { font-size: 16px; font-weight: 600; color: #0E1326; }
#group-members .gm-empty-text                   { margin-top: 4px; font-size: 13.5px; color: var(--spock-text-light-color); }

/* --- Small screens: single column, tighter paddings, same big tap targets --- */
@media (max-width: 575.98px) {
    #group-members                              { padding: 4px 0 1.5rem; }
    #group-members .gm-grid                     { grid-template-columns: 1fr; gap: 10px; }
    #group-members a.gm-card                    { padding: 13px 14px; }
    #group-members .gm-avatar img               { width: 48px; height: 48px; border-radius: 14px; }
}

@media (prefers-reduced-motion: reduce) {
    #group-members a.gm-card                    { transition: none; }
    #group-members a.gm-card:hover              { transform: none; }
}


/* ============================================================================
   TEAM REPORT — yearly stats table (#team-report, .rt-*)
   v2 design language: colored leave-type pills as column group headers,
   utilization micro-bars (spent vs allowance), muted zeros, sticky member col
   ============================================================================ */

/* --- Header --- */
#team-report .rt-header                         { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; padding: 18px 20px 16px; background: linear-gradient(0deg, #FFFFFF 0%, #F7F9FD 100%); border-bottom: 1px solid #E5E8F2; }
#team-report .rt-title                          { font-size: 17px; font-weight: 650; letter-spacing: -0.01em; color: #0E1326; }
#team-report .rt-title-year                     { margin-left: 6px; font-weight: 500; color: var(--spock-text-light-color); }
#team-report .rt-subtitle                       { margin-top: 2px; font-size: 12.5px; color: var(--spock-text-light-color); }
#team-report .rt-header-controls                { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
#team-report .rt-year-form                      { display: inline-flex; align-items: center; gap: 7px; }
#team-report .rt-year-label                     { margin: 0; font-size: 12.5px; font-weight: 500; color: var(--spock-text-light-color); }
#team-report .rt-year-select                    { height: 34px; padding: 4px 10px; font-size: 13px; color: #0E1326; background: #FFFFFF; border: 1px solid #E5E8F2; border-radius: 9px; box-shadow: 0 1px 2px rgba(15,19,38,.04); }

/* --- Table reset (undo bootstrap .table chrome inside the report) --- */
#team-report .rt-table                          { margin: 0; font-variant-numeric: tabular-nums; }
#team-report .rt-table th,
#team-report .rt-table td                       { border: 0; }

/* --- Column group structure: hairline between groups, tinted alternate groups ---
   th./td. selectors needed to beat the border reset above */
#team-report .rt-table th.rt-group-start,
#team-report .rt-table td.rt-group-start        { border-left: 1px solid #E5E8F2; }
#team-report .rt-table thead th:last-child,
#team-report .rt-table tbody td:last-child,
#team-report .rt-table tfoot td:last-child      { border-right: 1px solid #EDF0F8; }

/* --- Header rows: one quiet tinted band across the whole thead --- */
#team-report .rt-table thead th                 { background: #F7F9FD; }
#team-report .rt-type-row th                    { padding: 14px 12px 4px; text-align: center; }
#team-report .rt-type-row .absence-type-wrap    { font-size: 12px; font-weight: 600; }
#team-report .rt-caption                        { padding: 6px 10px 9px; text-align: center; font-size: 10.5px; font-weight: 500; letter-spacing: 0.07em; text-transform: uppercase; color: var(--spock-text-light-color); border-bottom: 1px solid #E5E8F2 !important; white-space: nowrap; }

/* --- Member column: sticky so wide reports keep names in view --- */
#team-report .rt-member-col                     { position: sticky; left: 0; z-index: 2; background: #FFFFFF; box-shadow: inset -1px 0 0 #EDF0F8; min-width: 200px; }
#team-report th.rt-member-col.employee-header   { padding: 14px 16px 4px; font-size: 13px; font-weight: 600; color: #0E1326; vertical-align: bottom; }
#team-report td.employee-cell                   { padding: 10px 16px; }
#team-report .employee-link                     { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
#team-report .employee-link img                 { width: 32px; height: 32px; border-radius: 10px; object-fit: cover; display: block; }
#team-report .employee-name                     { font-size: 13.5px; font-weight: 600; color: #0E1326; white-space: nowrap; }
#team-report .employee-link:hover .employee-name { color: #3149E5; }

/* --- Data cells --- */
#team-report .rt-row                            { border-top: 1px solid #EDF0F8; cursor: pointer; }
#team-report .rt-row:hover td                   { background: #F5F7FC; }
#team-report .rt-row:hover td.rt-member-col     { background: #F5F7FC; }
#team-report .rt-cell                           { padding: 11px 14px; text-align: center; vertical-align: middle; min-width: 82px; }
#team-report .rt-num                            { font-size: 13.5px; line-height: 18px; color: #3A4163; }
#team-report .rt-spent                          { font-weight: 650; color: #0E1326; }
#team-report .rt-quiet                          { color: var(--spock-text-light-color); }
#team-report .rt-positive                       { color: #15A36E; font-weight: 550; }
#team-report .rt-negative                       { color: #B42318; font-weight: 650; }
#team-report .rt-zero                           { color: #C3C9DC; font-size: 13px; }

/* --- Utilization micro-bar: spent as share of allowance --- */
#team-report .rt-track                          { display: block; width: 46px; height: 4px; margin: 5px auto 0; border-radius: 999px; background: #EDF0F8; overflow: hidden; }
#team-report .rt-fill                           { display: block; height: 100%; max-width: 100%; border-radius: 999px; background: #3149E5; opacity: 0.75; }
#team-report .rt-fill.is-over                   { background: #B42318; opacity: 1; }

/* --- Team total row --- */
#team-report .rt-total-row td                   { padding: 11px 14px; background: #F7F9FD; border-top: 1px solid #E5E8F2; font-size: 13px; font-weight: 650; color: #3A4163; text-align: center; }
#team-report .rt-total-row td.rt-member-col     { background: #F7F9FD; text-align: left; padding-left: 16px; font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--spock-text-light-color); }

/* --- Inactive members (display_all mode) --- */
#team-report .rt-row.bg-deleted td,
#team-report .rt-row.bg-deleted td.rt-member-col { background: #FAFAFB; }
#team-report .rt-row.bg-deleted .employee-name  { color: var(--spock-text-light-color); font-weight: 500; }

/* --- Small screens --- */
@media (max-width: 767.98px) {
    #team-report .rt-header                     { padding: 14px 14px 12px; }
    #team-report .rt-member-col                 { min-width: 150px; }
    #team-report td.employee-cell               { padding: 9px 12px; }
    #team-report .rt-cell                       { padding: 9px 10px; min-width: 68px; }
}


/* ============================================================
   ALL LEAVE REQUESTS LIST (spock_app_requests_list.html)
   v2 design language: white card, hairline structure, pill badges.
   Rows are real links; date span rendered as a mini "date flow".
   ============================================================ */

/* --- Card shell --- */
#requests-list-v2 .rl-card                      { background: #ffffff; border: 1px solid #E5E8F2; border-radius: 8px; box-shadow: 0 1px 0 rgba(15,19,38,.04), 0 10px 28px -18px rgba(15,19,38,.18); overflow: hidden; }

/* --- Header: title + count --- */
#requests-list-v2 .rl-header                    { display: flex; align-items: baseline; gap: 12px; padding: 18px 24px 14px; }
#requests-list-v2 .rl-title                     { font-size: 20px; font-weight: 600; color: #0E1326; margin: 0; line-height: 36px; }
#requests-list-v2 .rl-count                     { font-size: 12.5px; font-weight: 600; color: #3A4163; background: #F7F9FD; border: 1px solid #EDF0F8; border-radius: 999px; padding: 2px 10px; white-space: nowrap; }

/* --- Filter band --- */
#requests-list-v2 .rl-filters                   { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 10px 14px; padding: 12px 24px 14px; background: #f0f3f5; border-top: 1px solid #E5E8F2; border-bottom: 1px solid #E5E8F2; }
#requests-list-v2 .rl-filter                    { display: flex; flex-direction: column; gap: 3px; }
#requests-list-v2 .rl-filter-label              { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--spock-text-light-color); margin: 0; }
#requests-list-v2 .rl-filter select             { min-width: 150px; max-width: 220px; height: 34px; padding: 5px 10px; font-size: 13.5px; color: #0E1326; background-color: #ffffff; border: 1px solid #E5E8F2; border-radius: 9px; box-shadow: 0 1px 2px rgba(15,19,38,.03); }
#requests-list-v2 .rl-filter select:focus       { border-color: #AAB6F5; outline: none; box-shadow: 0 0 0 3px rgba(49,73,229,.12); }
#requests-list-v2 .rl-clear-filters             { align-self: center; margin-left: auto; font-size: 13px; font-weight: 600; color: #3149E5; text-decoration: none; padding: 6px 10px; border-radius: 8px; }
#requests-list-v2 .rl-clear-filters:hover       { background: #EEF0FF; }

/* --- Grid template shared by header row and data rows --- */
#requests-list-v2 .rl-head-row,
#requests-list-v2 .rl-row                       { display: grid; grid-template-columns: minmax(190px, 1.35fr) minmax(120px, .9fr) minmax(200px, 1.35fr) 92px 104px 112px; gap: 0 16px; align-items: center; padding: 0 24px; }

/* --- Column header row --- */
#requests-list-v2 .rl-head-row                  { padding-top: 10px; padding-bottom: 9px; border-bottom: 1px solid #EDF0F8; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--spock-text-light-color); }
#requests-list-v2 .rl-col-duration,
#requests-list-v2 .rl-col-status                { text-align: left; }
#requests-list-v2 .rl-col-requested             { text-align: right; }
#requests-list-v2 .rl-sort                      { color: inherit; text-decoration: none; white-space: nowrap; }
#requests-list-v2 .rl-sort i                    { font-size: 10px; margin-left: 3px; color: #A0A8C2; }
#requests-list-v2 .rl-sort.active,
#requests-list-v2 .rl-sort.active i             { color: #3149E5; }
#requests-list-v2 .rl-sort:hover,
#requests-list-v2 .rl-sort:hover i              { color: #3149E5; }

/* --- Data rows: each row is one <a> --- */
#requests-list-v2 .rl-row                       { padding-top: 11px; padding-bottom: 11px; border-bottom: 1px solid #EDF0F8; text-decoration: none; transition: background-color .12s ease-out; }
#requests-list-v2 .rl-rows .rl-row:last-child   { border-bottom: 0; }
#requests-list-v2 .rl-row:hover                 { background: #FBFCFE; text-decoration: none; }
#requests-list-v2 .rl-row:focus-visible         { outline: none; box-shadow: inset 0 0 0 2px #AAB6F5; border-radius: 8px; }

/* Member cell */
#requests-list-v2 .rl-member                    { display: flex; align-items: center; gap: 12px; min-width: 0; }
#requests-list-v2 .rl-avatar .img-avatar        { width: 36px; height: 36px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(15,19,38,.08); display: block; }
#requests-list-v2 .rl-identity                  { min-width: 0; }
#requests-list-v2 .rl-name                      { display: block; font-size: 14px; font-weight: 500; color: var(--spock-text-dark-color); line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#requests-list-v2 .rl-row:hover .rl-name        { color: #3149E5; }
#requests-list-v2 .rl-handle                    { display: block; font-size: 12px; color: var(--spock-text-light-color); line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Leave type cell */
#requests-list-v2 .rl-type .absence-type-wrap   {  max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; vertical-align: middle; }

/* Date-flow cell: start —▸ end, the page's signature device */
#requests-list-v2 .rl-dates                     { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; font-size: 14px; }
#requests-list-v2 .rl-date                      { font-weight: 500; color: #3A4163; white-space: nowrap; }
#requests-list-v2 .rl-date-connector            { display: inline-flex; align-items: center; width: 18px; height: 2px; border-radius: 1px; background: #D5DAEA; position: relative; }
#requests-list-v2 .rl-date-connector::after     { content: ""; position: absolute; right: -1px; width: 0; height: 0; border-left: 5px solid #D5DAEA; border-top: 4px solid transparent; border-bottom: 4px solid transparent; }
#requests-list-v2 .rl-portion .absence-type-wrap,
#requests-list-v2 .rl-portion                   { font-size: 11px; color: var(--spock-text-light-color); }

/* Duration pill */
#requests-list-v2 .rl-duration-pill             { display: inline-block; font-size: 12px; font-weight: 600; color: #3149E5; background: #EEF0FF; border-radius: 999px; padding: 3px 10px; white-space: nowrap; box-shadow: inset 0 0 0 1px rgba(49,73,229,.14); }

/* Status pill: reuse global .request-status-box colors, pill radius here */
#requests-list-v2 .rl-status .request-status-box { border-radius: 999px; padding: 4px 12px 3px; letter-spacing: .04em; }

/* Requested cell */
#requests-list-v2 .rl-requested                 { text-align: right; font-size: 12.5px; color: var(--spock-text-light-color); white-space: nowrap; }

/* --- Pagination --- */
#requests-list-v2 .rl-pagination .pagination    { margin: 0; padding: 14px 24px; background: #FBFCFE; border-top: 1px solid #EDF0F8; }
#requests-list-v2 .rl-pagination .pagination-wrap { display: flex; align-items: center; justify-content: center; gap: 8px; }
#requests-list-v2 .rl-pagination .current       { font-size: 13px; color: var(--spock-text-light-color); }
#requests-list-v2 .rl-pagination .btn-std       { border-radius: 999px; }

/* --- Empty state --- */
#requests-list-v2 .rl-empty                     { text-align: center; padding: 56px 24px 60px; }
#requests-list-v2 .rl-empty-icon                { width: 52px; height: 52px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; font-size: 20px; color: var(--spock-text-light-color); background: #F7F9FD; box-shadow: inset 0 0 0 1px #EDF0F8; }
#requests-list-v2 .rl-empty-title               { font-size: 16px; font-weight: 600; color: #0E1326; margin-bottom: 4px; }
#requests-list-v2 .rl-empty-text                { font-size: 14px; color: var(--spock-text-light-color); }
#requests-list-v2 .rl-empty-action              { display: inline-block; margin-top: 14px; font-size: 13.5px; font-weight: 600; color: #3149E5; text-decoration: none; background: #EEF0FF; border-radius: 999px; padding: 7px 16px; }
#requests-list-v2 .rl-empty-action:hover        { background: #E2E6FF; }

/* --- Small screens: rows become self-labeling two-line cards --- */
@media (max-width: 767.98px) {
    #requests-list-v2 .rl-header                { padding: 16px 16px 12px; }
    #requests-list-v2 .rl-filters               { padding: 12px 16px; }
    #requests-list-v2 .rl-filter                { flex: 1 1 40%; }
    #requests-list-v2 .rl-filter select         { width: 100%; max-width: none; }
    #requests-list-v2 .rl-clear-filters         { margin-left: 0; }
    #requests-list-v2 .rl-head-row              { display: none; }
    /* Row becomes a flowing card: line 1 member + status, line 2 type/dates/duration, line 3 requested */
    #requests-list-v2 .rl-row                   { display: block; position: relative; padding: 12px 16px; }
    #requests-list-v2 .rl-member                { padding-right: 96px; }
    #requests-list-v2 .rl-status                { position: absolute; top: 14px; right: 16px; }
    #requests-list-v2 .rl-type,
    #requests-list-v2 .rl-dates,
    #requests-list-v2 .rl-duration              { display: inline-flex; align-items: center; vertical-align: middle; margin: 8px 10px 0 0; }
    #requests-list-v2 .rl-type                  { margin-left: 48px; }
    #requests-list-v2 .rl-requested             { display: block; text-align: left; margin: 4px 0 0 48px; }
    /* Without column headers the bare date needs a label to not read as a leave date */
    #requests-list-v2 .rl-requested time::before { content: "Requested "; }
}

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
    #requests-list-v2 .rl-row                   { transition: none; }
}

/* ---- Settings > Workspace: external calendar format (continuous multi-day leave) ---- */
.format-options                        { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.format-option                         { position: relative; display: block; background-color: #fff; border: 1px solid #dfe3ec; border-radius: 10px; padding: 14px 16px 16px; cursor: pointer; transition: border-color .12s ease, box-shadow .12s ease; margin-bottom: 0; }
.format-option:hover                   { border-color: #c2cbdd; }
.format-option:has(input:checked)      { border-color: var(--spock-link-color); background-color: #fcfdff; box-shadow: 0 0 0 3px rgba(15, 105, 255, .14); }
.format-option-head                    { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 10px; align-items: start; }
.format-option-head input              { margin: 4px 0 0; }
.format-option-title                   { grid-column: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--spock-text-very-dark-color); font-weight: 600; font-size: 15px; }
.format-option-head .form-desc         { grid-column: 2; }

/* ---- Wallchart: continuous multi-day spans (show_multiday_leave_as_one_event) ---- */
.wallchart-table .span-cell                        { padding: 0; }
/* One CSS grid per span: day underlays auto-flow into row 1, one column each;
   the bar overlays them via an explicit grid-column placement */
.wallchart-table .leave-span                       { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; grid-template-rows: 44px; position: relative; }
.wallchart-table .leave-span-day                   { grid-row: 1; border-right: 1px solid #e5eff5; }
.wallchart-table .leave-span-day:last-of-type      { border-right: 0; }
/* Non-working days stay visible beneath the bar via the top/bottom reveal (FR-31) */
.wallchart-table .leave-span-day.non-working       { background-color: #f8fafc; }
.wallchart-table .leave-span-day.today             { background-color: #fffbeb; }
.wallchart-table .leave-span-bar                   { grid-row: 1; align-self: center; height: 36px; margin: 0 2px; z-index: 1; border-radius: 4px; display: flex; align-items: center; justify-content: center; cursor: pointer; }
/* Clipped at a month boundary: flat edge reads as "continues" (FR-33) */
.wallchart-table .leave-span-bar.clipped-start     { border-top-left-radius: 0; border-bottom-left-radius: 0; margin-left: 0; }
.wallchart-table .leave-span-bar.clipped-end       { border-top-right-radius: 0; border-bottom-right-radius: 0; margin-right: 0; }
/* A half-day edge occupies only its own column, at half height (FR-32) */
.wallchart-table .leave-span-half                  { grid-row: 1; grid-column: 1; align-self: center; height: 18px; z-index: 1; border-radius: 4px; }
.wallchart-table .leave-span-half.start            { margin-left: 2px; border-top-right-radius: 0; border-bottom-right-radius: 0; }
.wallchart-table .leave-span-half.end              { margin-right: 2px; border-top-left-radius: 0; border-bottom-left-radius: 0; }
/* Join the bar flush to its half-day edge piece */
.wallchart-table .leave-span-bar.half-start        { margin-left: 0; border-top-left-radius: 0; border-bottom-left-radius: 0; }
.wallchart-table .leave-span-bar.half-end          { margin-right: 0; border-top-right-radius: 0; border-bottom-right-radius: 0; }
/* Half days at both ends of a two-day span: one slim full-width bar replaces
   the two half pieces so the leave keeps its initials and tooltip */
.wallchart-table .leave-span-bar.slim              { height: 18px; }
.wallchart-table .leave-span-bar.pending-absence,
.wallchart-table .leave-span-half.pending-absence  { border: 1px dashed #616161 !important; }

/* Bootstrap tooltips are display-only and must never intercept the mouse:
   a tall tooltip (e.g. a long note) that reaches the cursor otherwise
   steals the hover from its trigger and blinks in a hide/show loop */
.tooltip                                           { pointer-events: none; }

/* Small screens: match the compressed row heights (existing rules untouched, TR-56) */
@media (max-width: 768px) {
    .wallchart-table .leave-span                   { grid-template-rows: 38px; }
    .wallchart-table .leave-span-bar               { height: 30px; }
    .wallchart-table .leave-span-bar.slim          { height: 14px; }
}


/* FISCAL ALLOWANCE REPORT (spock_app_settings_fiscal_report.html) */
/* Grouped two-row header + compact type keep all 11 columns (buttons included) inside the card */
.fiscal-report-table-wrap                       { overflow-x: auto; }
table.fiscal-report-table                       { margin-bottom: 0; }
table.fiscal-report-table th,
table.fiscal-report-table td                    { font-size: 13px; padding: 6px 10px; vertical-align: middle; }
table.fiscal-report-table thead th              { font-size: 12px; line-height: 16px; }
table.fiscal-report-table thead th.group-label  { font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: 1px; color: var(--spock-text-light-color); background-color: var(--spock-bg-light-grey-color); border-bottom: 0; padding: 6px 10px 2px 10px; }
table.fiscal-report-table th.member-col         { text-align: left; }
table.fiscal-report-table td.member-col         { white-space: nowrap; }
table.fiscal-report-table th.num,
table.fiscal-report-table td.num                { text-align: right; font-variant-numeric: tabular-nums; }
/* Subtle vertical rules mark where each column group begins */
table.fiscal-report-table th.group-start,
table.fiscal-report-table td.group-start        { border-left: 1px solid #e3e8ee; }
table.fiscal-report-table td.status-col .badge  { white-space: nowrap; }
table.fiscal-report-table td.action-col         { text-align: right; white-space: nowrap; }
/* Bulk apply block under the report table */
.fiscal-report-apply                            { border-top: 1px solid var(--spock-border-light-color); padding-top: 16px; margin-top: 8px; }
.fiscal-report-apply .form-check                { display: flex; align-items: flex-start; gap: 8px; }
.fiscal-report-apply .form-check-label          { margin-bottom: 0; }

