/* Global application rail is independent of the Scheduler template sidebar. */
.application-rail { display: none; }
.desktop-link-label { display: none; }
.ed-visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (min-width: 1100px) {
  body.desktop-app { padding-left: 60px; }
  .application-rail { position: fixed; z-index: 40; inset: 0 auto 0 0; display: flex; flex-direction: column; width: 60px; overflow: hidden; background: #1d211e; border-right: 1px solid #3a413c; transition: width 120ms ease-out; }
  .application-rail:focus-within, .application-rail:has([aria-pressed="true"]) { width: 248px; }
  .application-rail:focus-within { transition-delay: 0ms; }
  .ar-brand { min-height: 68px; display: flex; align-items: center; gap: 17px; padding: 0 15px; width: 248px; border-bottom: 1px solid #303b32; font-size: 16px; }
  .ar-brand .brand-mark { flex: 0 0 30px; }
  .ar-toggle { flex: 0 0 auto; display: flex; align-items: center; gap: 18px; width: 248px; min-height: 46px; padding: 10px 19px; color: #b8c1ba; background: none; border: 0; cursor: pointer; text-align: left; font-size: 12px; }
  .ar-toggle svg,.application-rail a > svg { width: 21px; height: 21px; flex: 0 0 21px; }
  .ar-links { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; padding-top: 10px; scrollbar-width: thin; scrollbar-color: #535a54 #1d211e; }
  .application-rail a { display: flex; align-items: center; gap: 18px; width: 248px; min-height: 50px; padding: 12px 19px; color: #b8c1ba; text-decoration: none; font-size: 13px; white-space: nowrap; }
  .application-rail a[aria-current="page"] { background: #c9a86a12; color: #e4c17f; box-shadow: inset 2px 0 #D7A35D; }
  .application-rail a:hover,.ar-toggle:hover { background-color: #ffffff06; color: #f3f1e9; }
  .application-rail :is(a,button,select,summary):focus-visible { outline: 2px solid #D7A35D; outline-offset: -3px; }
  .ar-label { white-space: nowrap; opacity: 0; }
  .application-rail:focus-within .ar-label,.application-rail:has([aria-pressed="true"]) .ar-label { opacity: 1; }
  .ar-footer { width: 248px; padding: 12px 14px 16px; border-top: 1px solid #303b32; }
  .ar-identity { display: flex; align-items: center; gap: 14px; min-height: 36px; }
  .ar-identity .em-avatar { width: 30px; height: 30px; flex: 0 0 30px; }
  .ar-identity a.em-avatar { display: grid; min-height: 30px; padding: 0; font-size: 12px; color: #c7d8c8; background: #354138; }
  :root[data-theme] .ar-identity a.em-avatar { color: var(--text); background: var(--panel-3); }
  .ar-identity span:last-child { font-size: 12px; white-space: nowrap; opacity: 0; }
  .application-rail:focus-within .ar-identity span:last-child,.application-rail:has([aria-pressed="true"]) .ar-identity span:last-child { opacity: 1; }
  .ar-controls { margin-top: 12px; font-size: 12px; color: #b2b8b1; }
  .ar-controls summary { cursor: pointer; min-height: 36px; display: flex; align-items: center; }
  .ar-controls label { display: grid; gap: 6px; margin: 10px 0; }
  .ar-controls select { width: 100%; min-height: 40px; background: #292e30; color: #f3f1e9; border: 1px solid #58615b; border-radius: 7px; padding: 6px; }
  .ar-controls p { font-size: 11px; line-height: 1.5; }
  .ar-controls button { min-height: 40px; }
  .application-rail:not(:hover):not(:focus-within):not(:has([aria-pressed="true"])) .ar-controls { visibility: hidden; }
  body.desktop-app .employee-mobile { padding-bottom: 32px; }
  body.desktop-app .employee-mobile .em-page { width: auto; margin: 0; }
  body.desktop-app .employee-mobile .em-topbar,body.desktop-app .employee-mobile .em-prototype,body.desktop-app .em-bottom-nav { display: none; }
  body.desktop-app .employee-mobile .em-content { padding: 32px; }
  body.desktop-app .em-content > .em-more-group,body.desktop-app .em-content > .em-screen-heading,body.desktop-app .em-content > .em-back { max-width: 760px; }
  body.desktop-app .ed-overview > .em-screen-heading { margin-bottom: 26px; }
  .ed-full-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 8px; }
  .ed-full-heading label { display: flex; align-items: center; gap: 10px; font-size: 12px; color: #b2b8b1; }
  .ed-full-heading select { min-height: 40px; min-width: 200px; background: #292e30; color: #f3f1e9; border: 1px solid #58615b; border-radius: 7px; padding: 8px; }
  .ed-full-section .em-week-navigation { margin-bottom: 12px; max-width: 640px; }
  .ed-grid-scroll { max-width: 100%; overflow-x: auto; border-radius: 7px; scrollbar-color: #535a54 #1b1e1b; }
  .ed-grid-scroll:focus-visible { outline: 2px solid #D7A35D; outline-offset: 3px; }
  .ed-grid-frame { position: relative; min-width: 1076px; }
  .ed-grid-frame::before { content: ""; position: absolute; z-index: 2; inset: 0 0 0 180px; pointer-events: none; border: 0 solid var(--brand); border-left-width: 4px; border-top-width: 3px; border-radius: 7px; opacity: .9; mask-image: linear-gradient(90deg,#000,#00000073 28%,transparent 58%); }
  .ed-full-grid { border-collapse: separate; border-spacing: 0; table-layout: fixed; width: 100%; background: #1b1e1b; font-size: 12px; }
  .ed-person-column { width: 180px; }
  .ed-full-grid th,.ed-full-grid td { border-right: 1px solid #ffffff06; border-bottom: 1px solid #ffffff09; padding: 9px; vertical-align: top; text-align: left; }
  .ed-full-grid thead th { height: 72px; background: #232723; font-weight: 600; text-align: center; }
  .ed-full-grid th:first-child { text-align: left; padding-left: 14px; background: #232723; }
  .ed-full-grid tbody th { height: 78px; vertical-align: middle; font-weight: 500; }
  .ed-full-grid th > span { display: block; font-size: 11px; font-weight: 400; color: #aeb7ae; margin-top: 7px; }
  .ed-full-grid th small { color: #D7A35D; font-size: 10px; font-weight: 500; margin-left: 4px; }
  .ed-own-row > th { background: #29302a !important; }
  .ed-grid-shift + .ed-grid-shift { margin-top: 7px; }
  .ed-grid-shift { display: block; border-radius: 7px; padding: 9px 7px 7px 11px; }
  /* Clear the legacy .shift-card strip so the inherited rounded border band
     spans the card, as it does in the approved Scheduler treatment. */
  .ed-grid-shift::before { width: auto; background: none; }
  .ed-grid-shift::after { display: none; }
  .ed-person { display: flex; align-items: center; gap: 8px; }
  .ed-person-copy { min-width: 0; }
  .ed-person-copy > span { display: block; font-size: 11px; font-weight: 400; color: var(--muted); margin-top: 7px; }
  .ed-date-events { display: flex; flex-wrap: wrap; justify-content: center; align-content: flex-start; gap: 4px; margin-top: 6px; max-height: 44px; overflow-y: auto; overflow-x: hidden; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
  .ed-date-events:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
  .ed-date-events .em-event-tag { display: flex; flex-wrap: nowrap; justify-content: center; min-width: 0; max-width: 100%; padding: 3px 4px; font-size: 12px; line-height: 16px; }
  .ed-date-events .ed-event-title { min-width: 0; font-size: inherit; font-weight: inherit; overflow-wrap: anywhere; }
  .ed-grid-empty { height: 78px; color: #b2b8b1; text-align: center !important; vertical-align: middle !important; }
  .ed-lower { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); align-items: start; gap: 28px; margin-top: 28px; }
  .ed-my,.ed-open { min-width: 0; padding: 16px; background: #1b1e1b; }
  .ed-my > h2,.ed-open > h2 { font-size: 18px; margin-bottom: 8px; }
  .ed-my .em-next { margin-top: 16px; }
  .ed-open > p { color: #b2b8b1; font-size: 13px; }
  .ed-open .em-open-list { margin-top: 16px; }
  body.desktop-app .toast { bottom: 24px; }
  body.desktop-app .em-scheduler-return { display: none; }
  .desktop-link-label { display: inline; }
  .mobile-link-label { display: none; }
}
@media (min-width: 1100px) and (hover: hover) {
  .application-rail:hover { width: 248px; transition-delay: 175ms; }
  .application-rail:hover .ar-label,.application-rail:hover .ar-identity span:last-child { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .application-rail { transition: none; }
}
@supports (corner-shape: superellipse(1.5)) {
  .ed-grid-frame::before { corner-shape: superellipse(1.5); }
}
