/* ═══════════════════════════════════════════════════════
   WP ROSTER — Application Stylesheet v1.1.0
   Fonts: Syne (display/numerals) + Outfit (body)
   Theme: Deep navy shell · Electric blue accent · Clean whites
═══════════════════════════════════════════════════════ */

:root {
  --wpr-brand:      #1D4ED8;
  --wpr-brand-h:    #1E40AF;
  --wpr-brand-pale: #EFF6FF;
  --wpr-green:      #16A34A;
  --wpr-green-pale: #F0FDF4;
  --wpr-amber:      #D97706;
  --wpr-amber-pale: #FFFBEB;
  --wpr-red:        #DC2626;
  --wpr-red-pale:   #FEF2F2;
  --wpr-blue-lt:    #BFDBFE;
  --wpr-navy:       #0F172A;
  --wpr-navy-mid:   #1E293B;
  --wpr-navy-lt:    #334155;
  --wpr-slate-400:  #94A3B8;
  --wpr-slate-200:  #E2E8F0;
  --wpr-slate-100:  #F1F5F9;
  --wpr-slate-50:   #F8FAFC;
  --wpr-white:      #FFFFFF;
  --wpr-text:       #0F172A;
  --wpr-muted:      #64748B;
  --wpr-ff-head:    'Syne', sans-serif;
  --wpr-ff-body:    'Outfit', sans-serif;
  --wpr-r:          8px;
  --wpr-r-lg:       12px;
  --wpr-shadow-sm:  0 1px 4px rgba(15,23,42,.07);
  --wpr-shadow:     0 4px 16px rgba(15,23,42,.10);
  --wpr-shadow-lg:  0 12px 40px rgba(15,23,42,.16);
  --wpr-sidebar-w:  224px;
  --wpr-t:          .18s ease;

  /* ── Type scale ───────────────────────────────────────── */
  --wpr-text-xs:   .6875rem;  /* 11px — dense cell metadata     */
  --wpr-text-sm:   .75rem;    /* 12px — badges, th, labels      */
  --wpr-text-13:   .8125rem;  /* 13px — secondary text          */
  --wpr-text-base: .875rem;   /* 14px — body, inputs, buttons   */
  --wpr-text-md:   .9375rem;  /* 15px — card/modal titles       */
  --wpr-text-lg:   1.0625rem; /* 17px — elevated labels         */
  --wpr-text-xl:   1.25rem;   /* 20px — stat values             */
  --wpr-text-2xl:  1.5rem;    /* 24px — page titles             */
  --wpr-text-3xl:  1.875rem;  /* 30px — KPI/balance values      */

  /* ── Font weights ─────────────────────────────────────── */
  --wpr-fw-normal: 400;
  --wpr-fw-medium: 500;
  --wpr-fw-semi:   600;
  --wpr-fw-bold:   700;
  --wpr-fw-black:  800;

  /* ── Line heights ─────────────────────────────────────── */
  --wpr-lh-tight:   1.2;
  --wpr-lh-snug:    1.375;
  --wpr-lh-base:    1.5;
  --wpr-lh-relaxed: 1.625;

  /* ── Letter spacing (uppercase labels) ───────────────── */
  --wpr-ls-caps: .065em;
}

/* ── SHELL ────────────────────────────────────────────── */
.wpr-shell {
  font-family: var(--wpr-ff-body);
  font-size: var(--wpr-text-base);
  line-height: var(--wpr-lh-base);
  color: var(--wpr-text);
  display: flex;
  min-height: 82vh;
  background: var(--wpr-slate-50);
  border-radius: var(--wpr-r-lg);
  overflow: hidden;
  box-shadow: var(--wpr-shadow-lg);
}

.wpr-content {
  flex: 1;
  overflow-y: auto;
  padding: 1.75rem 2rem;
  max-height: 90vh;
  background: var(--wpr-slate-50);
}

/* ── SIDEBAR ──────────────────────────────────────────── */
.wpr-sidebar {
  width: var(--wpr-sidebar-w);
  flex-shrink: 0;
  background: var(--wpr-navy);
  color: rgba(255,255,255,.75);
  display: flex;
  flex-direction: column;
}

.wpr-sidebar__brand {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: 1.5rem 1.25rem 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.wpr-sidebar__logo {
  font-size: 1.35rem;
  color: var(--wpr-brand);
  line-height: 1;
}
.wpr-sidebar__name {
  font-family: var(--wpr-ff-head);
  font-size: var(--wpr-text-md);
  font-weight: var(--wpr-fw-bold);
  color: #fff;
  letter-spacing: -.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wpr-sidebar__nav {
  flex: 1;
  padding: .75rem 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.wpr-nav-item {
  display: flex;
  align-items: center;
  gap: .65rem;
  margin: 0 .6rem;
  padding: .6rem .85rem;
  border-radius: var(--wpr-r);
  text-decoration: none;
  color: var(--wpr-slate-400);
  font-size: var(--wpr-text-base);
  font-weight: var(--wpr-fw-medium);
  transition: background var(--wpr-t), color var(--wpr-t);
}
.wpr-nav-item:hover { background: rgba(255,255,255,.07); color: #fff; }
.wpr-nav-item--active { background: var(--wpr-brand); color: #fff; }
.wpr-nav-item__icon { font-size: 1rem; line-height: 1; flex-shrink: 0; }
.wpr-nav-item__label { font-family: var(--wpr-ff-body); }

.wpr-sidebar__foot {
  padding: 1rem 1.25rem 1.5rem;
  border-top: 1px solid rgba(255,255,255,.07);
  font-size: var(--wpr-text-sm);
  color: var(--wpr-slate-400);
}
.wpr-sidebar__user { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }

/* ── PAGE HEADER ──────────────────────────────────────── */
.wpr-page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.75rem;
}
.wpr-page-title {
  font-family: var(--wpr-ff-head);
  font-size: var(--wpr-text-2xl);
  font-weight: var(--wpr-fw-bold);
  line-height: var(--wpr-lh-tight);
  color: var(--wpr-text);
  margin: 0;
  letter-spacing: -.03em;
}
.wpr-page-sub { color: var(--wpr-muted); font-size: var(--wpr-text-md); margin: .2rem 0 0; }
.wpr-page-header__actions { display: flex; align-items: center; gap: .65rem; flex-wrap: wrap; }
.wpr-section-title {
  font-size: var(--wpr-text-sm);
  font-weight: var(--wpr-fw-bold);
  text-transform: uppercase;
  letter-spacing: var(--wpr-ls-caps);
  color: var(--wpr-muted);
  margin: 0 0 1rem;
}
.wpr-count {
  background: var(--wpr-slate-200);
  color: var(--wpr-muted);
  font-size: var(--wpr-text-sm);
  padding: .15rem .5rem;
  border-radius: 100px;
  font-family: var(--wpr-ff-body);
  vertical-align: middle;
}

/* ── BUTTONS ──────────────────────────────────────────── */
.wpr-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .5rem 1rem;
  border: 1.5px solid transparent;
  border-radius: var(--wpr-r);
  font-family: var(--wpr-ff-body);
  font-size: var(--wpr-text-base);
  font-weight: var(--wpr-fw-semi);
  cursor: pointer;
  transition: all var(--wpr-t);
  text-decoration: none;
  white-space: nowrap;
  line-height: var(--wpr-lh-tight);
}
.wpr-btn--primary { background: var(--wpr-brand);     color: #fff; }
.wpr-btn--primary:hover { background: var(--wpr-brand-h); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(29,78,216,.3); }
.wpr-btn--ghost   { background: var(--wpr-white);     color: var(--wpr-text);  border-color: var(--wpr-slate-200); }
.wpr-btn--ghost:hover { background: var(--wpr-slate-100); }
.wpr-btn--danger  { background: var(--wpr-red);       color: #fff; }
.wpr-btn--danger:hover { background: #B91C1C; }
.wpr-btn--success { background: var(--wpr-green);     color: #fff; }
.wpr-btn--success:hover { background: #15803D; }
.wpr-btn--lg  { padding: .7rem 1.4rem; font-size: var(--wpr-text-md); }
.wpr-btn--sm  { padding: .4rem .8rem;  font-size: var(--wpr-text-sm); }
.wpr-btn--xs  { padding: .25rem .6rem; font-size: var(--wpr-text-sm); border-radius: 5px; }

/* ── INPUTS ───────────────────────────────────────────── */
.wpr-input {
  display: block;
  width: 100%;
  padding: .55rem .8rem;
  border: 1.5px solid var(--wpr-slate-200);
  border-radius: var(--wpr-r);
  font-family: var(--wpr-ff-body);
  font-size: var(--wpr-text-base);
  color: var(--wpr-text);
  background: var(--wpr-white);
  box-sizing: border-box;
  transition: border-color var(--wpr-t), box-shadow var(--wpr-t);
}
.wpr-input:focus { outline: none; border-color: var(--wpr-brand); box-shadow: 0 0 0 3px var(--wpr-brand-pale); }
.wpr-input--sm   { width: auto; min-width: 130px; }
select.wpr-input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2394A3B8' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .75rem center; padding-right: 2rem; }

/* ── KPI GRID ─────────────────────────────────────────── */
.wpr-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}
.wpr-kpi {
  background: var(--wpr-white);
  border: 1px solid var(--wpr-slate-200);
  border-radius: var(--wpr-r-lg);
  padding: 1.25rem;
  box-shadow: var(--wpr-shadow-sm);
  position: relative;
  overflow: hidden;
}
.wpr-kpi::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--wpr-brand);
  opacity: .2;
}
.wpr-kpi--green::after { background: var(--wpr-green); opacity:.5; }
.wpr-kpi--amber::after { background: var(--wpr-amber); opacity:.5; }
.wpr-kpi--slate::after { background: var(--wpr-slate-400); opacity:.5; }
.wpr-kpi__label {
  font-size: var(--wpr-text-sm);
  font-weight: var(--wpr-fw-semi);
  text-transform: uppercase;
  letter-spacing: var(--wpr-ls-caps);
  color: var(--wpr-muted);
  margin-bottom: .5rem;
}
.wpr-kpi__val  { font-family: var(--wpr-ff-head); font-size: var(--wpr-text-3xl); font-weight: var(--wpr-fw-black); color: var(--wpr-text); line-height: var(--wpr-lh-tight); }
.wpr-kpi__unit { font-size: var(--wpr-text-md); font-weight: var(--wpr-fw-medium); color: var(--wpr-muted); margin-left: .15rem; }
.wpr-kpi__sub  { font-size: var(--wpr-text-13); color: var(--wpr-muted); margin-top: .35rem; }

/* ── SHIFT CARDS ──────────────────────────────────────── */
.wpr-shift-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1rem;
}
.wpr-scard {
  background: var(--wpr-white);
  border: 1px solid var(--wpr-slate-200);
  border-radius: var(--wpr-r-lg);
  box-shadow: var(--wpr-shadow-sm);
  overflow: hidden;
  display: flex;
  transition: box-shadow var(--wpr-t), transform var(--wpr-t);
}
.wpr-scard:hover { box-shadow: var(--wpr-shadow); transform: translateY(-2px); }
.wpr-scard__stripe { width: 5px; background: var(--scard-color, #2563EB); flex-shrink: 0; }
.wpr-scard__body   { padding: 1.1rem 1.15rem; flex: 1; }
.wpr-scard__top    { display: flex; justify-content: space-between; align-items: flex-start; gap: .5rem; margin-bottom: .6rem; }
.wpr-scard__title  { font-family: var(--wpr-ff-head); font-weight: var(--wpr-fw-bold); font-size: var(--wpr-text-md); line-height: var(--wpr-lh-snug); }
.wpr-scard__dept   { font-size: var(--wpr-text-xs); font-weight: var(--wpr-fw-bold); background: var(--wpr-brand-pale); color: var(--wpr-brand); padding: .15rem .55rem; border-radius: 100px; white-space: nowrap; }
.wpr-scard__meta   { display: flex; flex-wrap: wrap; gap: .3rem .85rem; font-size: var(--wpr-text-13); color: var(--wpr-muted); margin-bottom: .65rem; line-height: var(--wpr-lh-snug); }
.wpr-scard__staff  { display: flex; align-items: center; gap: .65rem; font-size: var(--wpr-text-13); margin-bottom: .65rem; flex-wrap: wrap; }
.wpr-scard__staffbar { height: 4px; width: 80px; background: var(--wpr-slate-200); border-radius: 2px; overflow: hidden; }
.wpr-scard__staffbar-fill { height: 100%; background: var(--scard-color, #2563EB); transition: width .4s ease; }
.wpr-scard__staffcount { font-weight: var(--wpr-fw-semi); color: var(--wpr-text); }
.wpr-scard__names  { font-size: var(--wpr-text-13); color: var(--wpr-muted); }
.wpr-scard__notes  { font-size: var(--wpr-text-13); color: var(--wpr-muted); font-style: italic; margin: .4rem 0 .65rem; }
.wpr-scard__actions { display: flex; gap: .4rem; padding-top: .75rem; border-top: 1px solid var(--wpr-slate-100); }

/* ── TABLE ────────────────────────────────────────────── */
.wpr-table-wrap { overflow-x: auto; }
.wpr-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--wpr-text-base);
}
.wpr-table th {
  text-align: left;
  padding: .75rem 1rem;
  font-size: var(--wpr-text-sm);
  font-weight: var(--wpr-fw-bold);
  text-transform: uppercase;
  letter-spacing: var(--wpr-ls-caps);
  color: var(--wpr-muted);
  border-bottom: 2px solid var(--wpr-slate-200);
  white-space: nowrap;
  background: var(--wpr-white);
}
.wpr-table td {
  padding: .75rem 1rem;
  border-bottom: 1px solid var(--wpr-slate-100);
  vertical-align: middle;
  line-height: var(--wpr-lh-snug);
}
.wpr-table tr:last-child td { border-bottom: 0; }
.wpr-table tr:hover td { background: var(--wpr-slate-50); }
.wpr-table__reason { max-width: 200px; color: var(--wpr-muted); font-style: italic; }
.wpr-table__reason-text { white-space: pre-line; word-break: break-word; max-height: 4.5rem; overflow-y: auto; }
.wpr-table__actions { white-space: nowrap; display: flex; gap:.35rem; }

/* ── BADGES ───────────────────────────────────────────── */
.wpr-badge {
  display: inline-block;
  padding: .2rem .6rem;
  border-radius: 100px;
  font-size: var(--wpr-text-sm);
  font-weight: var(--wpr-fw-bold);
  text-transform: uppercase;
  letter-spacing: var(--wpr-ls-caps);
}
.wpr-badge--green   { background: var(--wpr-green-pale);  color: #15803D; }
.wpr-badge--amber   { background: var(--wpr-amber-pale);  color: #92400E; }
.wpr-badge--red     { background: var(--wpr-red-pale);    color: #991B1B; }
.wpr-badge--blue    { background: var(--wpr-brand-pale);  color: var(--wpr-brand); }
.wpr-badge--neutral { background: var(--wpr-slate-100);   color: var(--wpr-muted); }
.wpr-badge--slate   { background: var(--wpr-slate-100);   color: var(--wpr-navy-lt); }

/* ── CLOCK PANEL ──────────────────────────────────────── */
.wpr-clock-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
  background: var(--wpr-white);
  border: 1px solid var(--wpr-slate-200);
  border-radius: var(--wpr-r-lg);
  padding: 2.5rem 2rem;
  max-width: 420px;
  box-shadow: var(--wpr-shadow);
  margin-bottom: 2rem;
}
.wpr-clock-dial {
  position: relative;
  width: 130px; height: 130px;
}
.wpr-clock-ring {
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 3px solid var(--wpr-slate-200);
}
.wpr-clock-dial--on .wpr-clock-ring {
  border-color: var(--wpr-green);
  box-shadow: 0 0 0 8px rgba(22,163,74,.1);
  animation: pulse-ring 2s infinite;
}
@keyframes pulse-ring {
  0%,100% { box-shadow: 0 0 0 8px rgba(22,163,74,.10); }
  50%      { box-shadow: 0 0 0 16px rgba(22,163,74,.04); }
}
.wpr-clock-inner {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  gap: .25rem;
}
.wpr-clock-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--wpr-slate-400);
}
.wpr-clock-dial--on     .wpr-clock-dot { background: var(--wpr-green); }
.wpr-clock-dial--locked .wpr-clock-ring { border-color: var(--wpr-amber); box-shadow: 0 0 0 8px rgba(217,119,6,.1); }
.wpr-clock-dial--locked .wpr-clock-dot  { background: var(--wpr-amber); }
.wpr-clock-status { font-family: var(--wpr-ff-head); font-size: var(--wpr-text-13); font-weight: var(--wpr-fw-bold); color: var(--wpr-text); }
.wpr-clock-since  { font-size: var(--wpr-text-sm); color: var(--wpr-muted); }
.wpr-clock-out-fields { display: flex; flex-direction: column; gap: .85rem; align-items: center; width: 100%; max-width: 280px; }
.wpr-clock-out-fields .wpr-field { width: 100%; }
.wpr-lockout-panel { display:flex; flex-direction:column; align-items:center; gap:.6rem; text-align:center; max-width:280px; }
.wpr-lockout-icon  { font-size:2rem; line-height:1; }
.wpr-lockout-title { font-family:var(--wpr-ff-head); font-size:var(--wpr-text-md); font-weight:var(--wpr-fw-bold); color:var(--wpr-amber); }
.wpr-lockout-body  { font-size:var(--wpr-text-13); color:var(--wpr-muted); line-height:var(--wpr-lh-relaxed); }

/* ── AVAILABILITY ─────────────────────────────────────── */
.wpr-avail-grid { display: grid; gap: .5rem; max-width: 600px; }
.wpr-avail-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: .75rem 1rem;
  border: 1.5px solid var(--wpr-slate-200);
  border-radius: var(--wpr-r);
  transition: border-color var(--wpr-t), background var(--wpr-t);
}
.wpr-avail-row--on  { border-color: var(--wpr-brand); background: var(--wpr-brand-pale); }
.wpr-avail-row--off { opacity: .55; }
.wpr-avail-check {
  display: flex;
  align-items: center;
  gap: .5rem;
  min-width: 130px;
  font-weight: var(--wpr-fw-semi);
  cursor: pointer;
}
.wpr-avail-times { display: flex; align-items: center; gap: .5rem; font-size: var(--wpr-text-base); }
.wpr-help { font-size: var(--wpr-text-base); color: var(--wpr-muted); margin-bottom: 1.25rem; }

/* ── ASSIGN LIST ──────────────────────────────────────── */
.wpr-assign-list { display: grid; gap: .4rem; max-height: 340px; overflow-y: auto; }
.wpr-assign-row {
  display: flex; align-items: flex-start; gap: .75rem;
  padding: .6rem .75rem;
  border: 1px solid var(--wpr-slate-200);
  border-radius: var(--wpr-r);
  cursor: pointer;
  transition: background var(--wpr-t);
}
.wpr-assign-row:hover { background: var(--wpr-slate-50); }
.wpr-assign-row:has(input:checked) { background: var(--wpr-brand-pale); border-color: var(--wpr-brand); }
.wpr-assign-info { flex: 1; display: flex; flex-direction: column; gap: .1rem; }
.wpr-assign-name { font-weight: var(--wpr-fw-semi); }
.wpr-assign-role { font-size: var(--wpr-text-13); color: var(--wpr-muted); }
.wpr-assign-info .wpr-skill-badges { margin-top: .2rem; }
.wpr-modal-meta  { font-size: var(--wpr-text-base); color: var(--wpr-muted); margin-bottom: 1rem; }

/* ── FORM GRID ────────────────────────────────────────── */
.wpr-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.wpr-field { display: flex; flex-direction: column; gap: .3rem; }
.wpr-field label { font-size: var(--wpr-text-sm); font-weight: var(--wpr-fw-semi); color: var(--wpr-muted); }
.wpr-field--full { grid-column: 1 / -1; }

/* ── COLOUR PICKER ────────────────────────────────────── */
.wpr-color-row { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .35rem; }
.wpr-color-swatch {
  width: 28px; height: 28px; border-radius: 50%;
  border: 2.5px solid transparent;
  cursor: pointer;
  transition: transform var(--wpr-t), border-color var(--wpr-t);
}
.wpr-color-swatch:hover { transform: scale(1.15); }
.wpr-color-swatch--sel  { border-color: var(--wpr-text); transform: scale(1.15); }

/* ── MODAL ────────────────────────────────────────────── */
.wpr-overlay {
  position: fixed; inset: 0;
  background: rgba(15,23,42,.55);
  display: flex; align-items: center; justify-content: center;
  z-index: 999990;
  opacity: 0;
  transition: opacity .2s ease;
  backdrop-filter: blur(4px);
}
.wpr-overlay--in { opacity: 1; }
.wpr-modal {
  background: var(--wpr-white);
  border-radius: var(--wpr-r-lg);
  box-shadow: var(--wpr-shadow-lg);
  width: min(520px, 96vw);
  max-height: 92vh;
  display: flex; flex-direction: column;
  transform: translateY(24px);
  transition: transform .22s cubic-bezier(.22,.68,0,1.2);
  overflow: hidden;
}
.wpr-overlay--in .wpr-modal { transform: none; }
.wpr-modal--lg { width: min(660px, 96vw); }
.wpr-modal__head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--wpr-slate-200);
}
.wpr-modal__title { font-family: var(--wpr-ff-head); font-size: var(--wpr-text-md); font-weight: var(--wpr-fw-bold); }
.wpr-modal__x { background: none; border: none; cursor: pointer; font-size: 1rem; color: var(--wpr-muted); padding: .25rem; border-radius: 4px; }
.wpr-modal__x:hover { background: var(--wpr-slate-100); }
.wpr-modal__body { padding: 1.5rem; overflow-y: auto; flex: 1; }
.wpr-modal__foot { display: flex; justify-content: flex-end; gap: .65rem; padding: 1rem 1.5rem; border-top: 1px solid var(--wpr-slate-200); }
.wpr-modal-section-divider {
  font-size: var(--wpr-text-sm);
  font-weight: var(--wpr-fw-bold);
  text-transform: uppercase;
  letter-spacing: var(--wpr-ls-caps);
  color: var(--wpr-muted);
  border-top: 1px solid var(--wpr-slate-200);
  padding-top: 1rem;
  margin: 1.25rem 0 .75rem;
}
.wpr-modal-section-divider span { font-weight: var(--wpr-fw-normal); text-transform: none; letter-spacing: 0; }

/* ── DATERANGE BAR ────────────────────────────────────── */
.wpr-daterange { display: flex; align-items: center; gap: .5rem; }

/* ── VIEW TOGGLE (Day / Week / Month) ────────────────── */
.wpr-view-toggle {
  display: flex;
  background: var(--wpr-slate-100);
  border-radius: 8px;
  padding: 3px;
}
.wpr-vt-btn {
  padding: .32rem .85rem;
  border: none;
  border-radius: 6px;
  font-size: var(--wpr-text-sm);
  font-weight: var(--wpr-fw-semi);
  font-family: var(--wpr-ff-body);
  background: transparent;
  color: var(--wpr-muted);
  cursor: pointer;
  transition: all var(--wpr-t);
  white-space: nowrap;
  line-height: 1;
}
.wpr-vt-btn--active { background: var(--wpr-white); color: var(--wpr-text); box-shadow: var(--wpr-shadow-sm); }
.wpr-vt-btn:hover:not(.wpr-vt-btn--active) { color: var(--wpr-text); }

/* ── ROSTER TABLE (Day / Week) ────────────────────────── */
.wpr-roster-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  border-radius: var(--wpr-r-lg);
  border: 1px solid var(--wpr-slate-200);
  background: var(--wpr-white);
}
.wpr-roster-table {
  border-collapse: collapse;
  min-width: 100%;
  width: 100%;
}
.wpr-roster-th {
  background: var(--wpr-navy);
  color: var(--wpr-slate-400);
  font-size: var(--wpr-text-xs);
  font-weight: var(--wpr-fw-bold);
  text-transform: uppercase;
  letter-spacing: var(--wpr-ls-caps);
  padding: .7rem .75rem;
  text-align: center;
  white-space: nowrap;
  position: sticky;
  top: 0;
  z-index: 2;
  min-width: 140px;
}
.wpr-roster-th--member {
  text-align: left;
  width: 180px;
  min-width: 180px;
  position: sticky;
  left: 0;
  z-index: 3;
  background: var(--wpr-navy-mid);
  color: var(--wpr-slate-400);
}
.wpr-roster-th--today { background: rgba(29,78,216,.5); }
.wpr-th-dow   { display: block; font-size: var(--wpr-text-xs); opacity: .75; margin-bottom: .25rem; }
.wpr-th-date  { display: flex; align-items: center; justify-content: center; gap: .35rem; font-size: var(--wpr-text-md); color: #fff; font-family: var(--wpr-ff-head); font-weight: var(--wpr-fw-bold); }
.wpr-th-date em { font-style: normal; font-weight: var(--wpr-fw-normal); font-size: var(--wpr-text-sm); color: var(--wpr-slate-400); }
.wpr-th-date--today { background: var(--wpr-brand); color: #fff; border-radius: 50px; padding: .1rem .55rem; }
.wpr-th-date--today em { color: rgba(255,255,255,.75); }
.wpr-roster-row { transition: background var(--wpr-t); }
.wpr-roster-row:hover .wpr-roster-cell         { background: var(--wpr-slate-50); }
.wpr-roster-row:hover .wpr-roster-cell--today  { background: #E8F0FE; }
.wpr-roster-row:hover .wpr-roster-member-cell  { background: var(--wpr-slate-50); }
.wpr-roster-member-cell {
  position: sticky;
  left: 0;
  background: var(--wpr-white);
  z-index: 1;
  width: 180px;
  min-width: 180px;
  vertical-align: top;
  padding: .55rem .7rem;
  border-bottom: 1px solid var(--wpr-slate-100);
  border-right: 2px solid var(--wpr-slate-200);
}
.wpr-roster-cell {
  vertical-align: top;
  padding: .6rem .65rem;
  border-bottom: 1px solid var(--wpr-slate-100);
  border-right: 1px solid var(--wpr-slate-100);
  min-width: 140px;
}
.wpr-roster-cell--off   { background: var(--wpr-slate-50); }
.wpr-roster-cell--today { background: #EEF4FF; }
.wpr-rmember__name {
  display: block;
  font-weight: var(--wpr-fw-bold);
  font-size: var(--wpr-text-13);
  font-family: var(--wpr-ff-head);
  color: var(--wpr-text);
  line-height: var(--wpr-lh-snug);
  overflow-wrap: break-word;
  word-break: break-word;
}
.wpr-rmember__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0 .3rem;
  margin-top: .22rem;
}
.wpr-rmember__role { font-size: var(--wpr-text-xs); color: var(--wpr-muted); }
.wpr-rmember__jt   { font-size: var(--wpr-text-xs); color: var(--wpr-muted); }
.wpr-rmember__rate { font-size: var(--wpr-text-xs); color: var(--wpr-muted); }
.wpr-rmember__role + .wpr-rmember__jt::before,
.wpr-rmember__jt + .wpr-rmember__rate::before {
  content: '·';
  margin-right: .3rem;
  opacity: .5;
}
.wpr-rmember__role + .wpr-rmember__rate::before {
  content: '·';
  margin-right: .3rem;
  opacity: .5;
}
.wpr-rmember__stats {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .2rem .3rem;
  margin-top: .28rem;
}
.wpr-rmember__hours {
  display: inline-flex;
  align-items: center;
  font-size: var(--wpr-text-xs);
  font-weight: var(--wpr-fw-bold);
  background: var(--wpr-brand-pale);
  color: var(--wpr-brand);
  padding: .1rem .45rem;
  border-radius: 100px;
}
.wpr-rmember__earnings {
  font-size: var(--wpr-text-xs);
  font-weight: var(--wpr-fw-bold);
  color: #15803d;
}
/* Skill badges (read-only display) */
.wpr-skill-badges {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem;
  margin-top: .3rem;
}
.wpr-skill-badge {
  display: inline-flex;
  align-items: center;
  font-size: var(--wpr-text-xs);
  font-weight: var(--wpr-fw-semi);
  padding: .15rem .4rem;
  border-radius: 100px;
  background: color-mix(in srgb, var(--wpr-brand) 12%, var(--wpr-white));
  color: var(--wpr-brand);
  border: 1px solid color-mix(in srgb, var(--wpr-brand) 25%, transparent);
  white-space: nowrap;
}
/* Skill tag input (editable) */
.wpr-skill-input-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .3rem;
  min-height: 2.4rem;
  padding: .35rem .55rem;
  border: 1px solid var(--wpr-slate-200);
  border-radius: 6px;
  background: var(--wpr-white);
  cursor: text;
  transition: border-color var(--wpr-t), box-shadow var(--wpr-t);
}
.wpr-skill-input-wrap:focus-within {
  border-color: var(--wpr-brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--wpr-brand) 15%, transparent);
}
.wpr-skill-tag {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  font-size: var(--wpr-text-sm);
  font-weight: var(--wpr-fw-semi);
  padding: .15rem .4rem .15rem .5rem;
  border-radius: 100px;
  background: color-mix(in srgb, var(--wpr-brand) 12%, var(--wpr-white));
  color: var(--wpr-brand);
  border: 1px solid color-mix(in srgb, var(--wpr-brand) 25%, transparent);
  white-space: nowrap;
}
.wpr-skill-tag__rm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1rem;
  height: 1rem;
  padding: 0;
  background: none;
  border: none;
  border-radius: 50%;
  color: var(--wpr-brand);
  font-size: .8rem;
  line-height: 1;
  cursor: pointer;
  opacity: .7;
  transition: opacity var(--wpr-t), background var(--wpr-t);
}
.wpr-skill-tag__rm:hover {
  opacity: 1;
  background: color-mix(in srgb, var(--wpr-brand) 20%, transparent);
}
.wpr-skill-input {
  flex: 1;
  min-width: 8rem;
  border: none;
  outline: none;
  background: transparent;
  font-size: var(--wpr-text-13);
  font-family: inherit;
  color: var(--wpr-text);
  padding: 0;
}
/* ── LEAVE REQUEST — BALANCE HINT ────────────────────── */
.wpr-leave-balance-hint {
  margin: 0;
  padding: .45rem .7rem;
  border-radius: var(--wpr-r);
  background: var(--wpr-green-pale);
  border: 1px solid #bbf7d0;
  color: var(--wpr-green);
  font-size: var(--wpr-text-13);
  font-weight: var(--wpr-fw-medium);
  transition: background var(--wpr-t), color var(--wpr-t), border-color var(--wpr-t);
}
.wpr-leave-balance-hint--err {
  background: var(--wpr-red-pale);
  border-color: #fecaca;
  color: var(--wpr-red);
}
/* ── LEAVE BALANCE CARDS ──────────────────────────────── */
.wpr-bal-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.wpr-bal-card {
  flex: 1 1 200px;
  background: var(--wpr-white);
  border: 1px solid var(--wpr-slate-200);
  border-radius: var(--wpr-r-lg);
  padding: 1.25rem;
  box-shadow: var(--wpr-shadow-sm);
  min-width: 0;
}
.wpr-bal-card__label {
  font-size: var(--wpr-text-sm);
  font-weight: var(--wpr-fw-semi);
  text-transform: uppercase;
  letter-spacing: var(--wpr-ls-caps);
  color: var(--wpr-muted);
  margin-bottom: .55rem;
}
.wpr-bal-card__val {
  font-family: var(--wpr-ff-head);
  font-size: var(--wpr-text-3xl);
  font-weight: var(--wpr-fw-bold);
  color: var(--wpr-navy);
  line-height: var(--wpr-lh-tight);
  margin-bottom: .65rem;
}
.wpr-bal-bar {
  height: 7px;
  background: var(--wpr-slate-100);
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: .55rem;
}
.wpr-bal-bar__fill {
  height: 100%;
  border-radius: 99px;
  background: var(--wpr-brand);
  transition: width .4s ease;
}
.wpr-bal-card__detail {
  font-size: var(--wpr-text-xs);
  color: var(--wpr-muted);
  line-height: var(--wpr-lh-base);
}
/* Manager all-staff balances table */
.wpr-bal-staff-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--wpr-text-base);
}
.wpr-bal-staff-table th {
  text-align: left;
  padding: .6rem .75rem;
  font-size: var(--wpr-text-sm);
  font-weight: var(--wpr-fw-semi);
  text-transform: uppercase;
  letter-spacing: var(--wpr-ls-caps);
  color: var(--wpr-muted);
  border-bottom: 1px solid var(--wpr-slate-200);
  background: var(--wpr-slate-50);
}
.wpr-bal-staff-table td {
  padding: .65rem .75rem;
  border-bottom: 1px solid var(--wpr-slate-100);
  vertical-align: middle;
}
.wpr-bal-staff-table tr:last-child td { border-bottom: none; }
.wpr-bal-staff-table tr:hover td { background: var(--wpr-slate-50); }
.wpr-roster-shift {
  background: color-mix(in srgb, var(--sc, #2563EB) 8%, var(--wpr-white));
  border: 1px solid color-mix(in srgb, var(--sc, #2563EB) 25%, var(--wpr-slate-200));
  border-left: 4px solid var(--sc, #2563EB);
  border-radius: 5px;
  padding: .45rem .55rem;
  margin-bottom: .3rem;
  cursor: pointer;
  transition: background var(--wpr-t), box-shadow var(--wpr-t);
}
.wpr-roster-shift:last-child { margin-bottom: 0; }
.wpr-roster-shift:hover { background: color-mix(in srgb, var(--sc, #2563EB) 14%, var(--wpr-white)); box-shadow: var(--wpr-shadow-sm); }
.wpr-rshift__title {
  display: block;
  font-size: var(--wpr-text-13);
  font-weight: var(--wpr-fw-semi);
  color: var(--wpr-text);
  line-height: var(--wpr-lh-snug);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wpr-rshift__time { display: block; font-size: var(--wpr-text-xs); color: var(--wpr-muted); margin-top: .15rem; }
.wpr-rshift__loc  { display: block; font-size: var(--wpr-text-xs); color: var(--wpr-muted); margin-top: .1rem; }
.wpr-rshift__dept { display: block; font-size: var(--wpr-text-xs); font-weight: var(--wpr-fw-semi); color: var(--sc, #2563EB); margin-top: .08rem; }
.wpr-rshift__dur  { display: block; font-size: var(--wpr-text-xs); font-weight: var(--wpr-fw-bold); color: var(--sc, #2563EB); margin-top: .1rem; }
.wpr-cell-total {
  font-size: var(--wpr-text-xs);
  font-weight: var(--wpr-fw-bold);
  color: var(--wpr-muted);
  text-align: right;
  margin-top: .3rem;
  padding-top: .2rem;
  border-top: 1px dashed var(--wpr-slate-200);
}

/* ── CALENDAR ─────────────────────────────────────────── */
.wpr-cal-nav {
  display: flex; align-items: center; gap: .5rem;
}
.wpr-cal-month {
  font-family: var(--wpr-ff-head);
  font-weight: var(--wpr-fw-bold);
  font-size: var(--wpr-text-md);
  min-width: 150px;
  text-align: center;
  color: var(--wpr-text);
}
.wpr-calendar {
  background: var(--wpr-white);
  border-radius: var(--wpr-r-lg);
  box-shadow: var(--wpr-shadow-sm);
  overflow: hidden;
  border: 1px solid var(--wpr-slate-200);
}
.wpr-calendar__scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.wpr-calendar__head {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  min-width: 700px;
  background: var(--wpr-navy);
}
.wpr-cal-dow {
  padding: .55rem;
  text-align: center;
  font-size: var(--wpr-text-sm);
  font-weight: var(--wpr-fw-bold);
  color: var(--wpr-slate-400);
  text-transform: uppercase;
  letter-spacing: var(--wpr-ls-caps);
}
.wpr-calendar__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  min-width: 700px;
  border-left: 1px solid var(--wpr-slate-100);
  border-top: 1px solid var(--wpr-slate-100);
}
.wpr-cal-cell {
  min-height: 108px;
  padding: .4rem;
  border-right: 1px solid var(--wpr-slate-100);
  border-bottom: 1px solid var(--wpr-slate-100);
  display: flex;
  flex-direction: column;
  gap: .18rem;
}
.wpr-cal-cell--out { background: var(--wpr-slate-50); }
.wpr-cal-cell--out .wpr-cal-cell__num { color: var(--wpr-slate-400); }
.wpr-cal-cell__num {
  font-size: var(--wpr-text-sm);
  font-weight: var(--wpr-fw-bold);
  color: var(--wpr-text);
  width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
}
.wpr-cal-cell--today .wpr-cal-cell__num {
  background: var(--wpr-brand);
  color: #fff;
}
.wpr-cal-cell__shifts {
  display: flex;
  flex-direction: column;
  gap: .2rem;
  overflow: hidden;
}
.wpr-cal-pill {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: color-mix(in srgb, var(--pill-color, #2563EB) 10%, var(--wpr-white));
  border: 1px solid color-mix(in srgb, var(--pill-color, #2563EB) 25%, var(--wpr-slate-200));
  border-left: 3px solid var(--pill-color, #2563EB);
  border-radius: 4px;
  padding: .25rem .45rem;
  font-size: var(--wpr-text-xs);
  font-family: var(--wpr-ff-body);
  color: var(--wpr-text);
  cursor: pointer;
  text-align: left;
  width: 100%;
  overflow: hidden;
  transition: background var(--wpr-t), transform var(--wpr-t);
}
.wpr-cal-pill:hover { background: color-mix(in srgb, var(--pill-color, #2563EB) 18%, var(--wpr-white)); transform: translateX(1px); }
.wpr-cal-pill__text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; width: 100%; }
.wpr-cal-pill__meta {
  font-size: var(--wpr-text-xs);
  color: var(--wpr-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: 100%;
  margin-top: .1rem;
}
.wpr-cal-pill__meta--staff {
  color: var(--wpr-text);
  font-weight: var(--wpr-fw-medium);
  margin-top: .08rem;
}

/* ── OPEN SHIFTS — ROSTER ROW (week / day) ───────────── */
.wpr-roster-row--open .wpr-roster-cell,
.wpr-roster-row--open .wpr-roster-member-cell {
  border-top: 2px solid var(--wpr-brand-pale);
  background: color-mix(in srgb, var(--wpr-brand) 4%, var(--wpr-white));
}
.wpr-roster-row--open:hover .wpr-roster-cell {
  background: color-mix(in srgb, var(--wpr-brand) 7%, var(--wpr-white));
}
.wpr-roster-row--open:hover .wpr-roster-cell--today { background: #E8F0FE; }
.wpr-roster-member-cell--open {
  background: var(--wpr-brand-pale) !important;
}
.wpr-roster-member-cell--open .wpr-rmember__name { color: var(--wpr-brand); }
.wpr-roster-shift--open { border-left-style: dashed; }
.wpr-rshift__open-action { margin-top: .4rem; display: flex; align-items: center; }

/* ── OPEN SHIFTS — CALENDAR PILLS (month view) ───────── */
.wpr-cal-pill--open { border-left-style: dashed; }
.wpr-cal-pill--joined { opacity: .72; }
.wpr-cal-pill--pending {
  background: color-mix(in srgb, var(--wpr-amber) 10%, var(--wpr-white));
  border-color: color-mix(in srgb, var(--wpr-amber) 25%, var(--wpr-slate-200));
  border-left-color: var(--wpr-amber);
  border-left-style: solid;
}
.wpr-cal-pill--pending:hover {
  background: color-mix(in srgb, var(--wpr-amber) 18%, var(--wpr-white));
}

/* ── LEAVE IN ROSTER / CALENDAR ──────────────────────── */
.wpr-roster-cell--on-leave { background: var(--wpr-green-pale); }
.wpr-roster-leave {
  background: var(--wpr-green-pale);
  border: 1px solid #BBF7D0;
  border-left: 4px solid var(--wpr-green);
  border-radius: 5px;
  padding: .45rem .55rem;
  margin-bottom: .3rem;
  cursor: default;
  transition: background var(--wpr-t), box-shadow var(--wpr-t);
}
.wpr-roster-leave:last-child { margin-bottom: 0; }
.wpr-rleave__type {
  display: block;
  font-size: var(--wpr-text-13);
  font-weight: var(--wpr-fw-semi);
  color: #15803D;
  line-height: var(--wpr-lh-snug);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wpr-rleave__name {
  display: block;
  font-size: var(--wpr-text-xs);
  font-weight: var(--wpr-fw-semi);
  color: #15803D;
  margin-top: .08rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wpr-rleave__reason {
  display: block;
  font-size: var(--wpr-text-xs);
  color: #166534;
  margin-top: .1rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── SHIFT DETAIL MODAL ───────────────────────────────── */
.wpr-shift-detail { display: flex; gap: 0; }
.wpr-shift-detail__stripe { width: 5px; border-radius: 4px 0 0 4px; flex-shrink: 0; }
.wpr-shift-detail__rows { flex: 1; padding-left: 1.1rem; }
.wpr-shift-detail__row {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 1rem; padding: .55rem 0;
  border-bottom: 1px solid var(--wpr-slate-100);
  font-size: var(--wpr-text-base);
  line-height: var(--wpr-lh-snug);
}
.wpr-shift-detail__row:last-child { border-bottom: none; }
.wpr-shift-detail__row > span { color: var(--wpr-muted); flex-shrink: 0; }
.wpr-shift-detail__row--notes { align-items: flex-start; flex-direction: column; gap: .35rem; }
.wpr-shift-detail__row--notes em { display: block; width: 100%; white-space: pre-line; word-break: break-word; max-height: 5rem; overflow-y: auto; }

/* ── PROFILE PAGE ─────────────────────────────────── */
.wpr-profile-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: var(--wpr-white);
  border: 1px solid var(--wpr-slate-200);
  border-radius: var(--wpr-r-lg);
  padding: 1.5rem 1.75rem;
  box-shadow: var(--wpr-shadow-sm);
}
.wpr-profile-avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--wpr-brand);
  color: #fff;
  font-family: var(--wpr-ff-head);
  font-weight: var(--wpr-fw-bold);
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  letter-spacing: -.02em;
  box-shadow: 0 0 0 4px var(--wpr-brand-pale);
}
.wpr-profile-info    { flex: 1; min-width: 0; }
.wpr-profile-name   { font-family: var(--wpr-ff-head); font-weight: var(--wpr-fw-bold); font-size: var(--wpr-text-lg); color: var(--wpr-text); margin: 0 0 .45rem; }
.wpr-profile-meta   { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .75rem; }
.wpr-profile-role   { font-size: var(--wpr-text-xs); font-weight: var(--wpr-fw-bold); background: var(--wpr-brand-pale); color: var(--wpr-brand); padding: .15rem .6rem; border-radius: 100px; }
.wpr-profile-detail { font-size: var(--wpr-text-13); color: var(--wpr-muted); }

/* ── STAFF PROFILE (modal) ────────────────────────── */
.wpr-profile__section-title {
  font-weight: var(--wpr-fw-bold);
  font-size: var(--wpr-text-sm);
  text-transform: uppercase;
  letter-spacing: var(--wpr-ls-caps);
  color: var(--wpr-muted);
  margin: 0 0 .6rem;
}

/* ── EMPTY STATE ──────────────────────────────────────── */
.wpr-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .75rem;
  padding: 3.5rem 1rem;
  color: var(--wpr-muted);
  text-align: center;
}
.wpr-empty span { font-size: 2rem; }
.wpr-empty p    { margin: 0; font-size: var(--wpr-text-md); }

/* ── SPINNER ──────────────────────────────────────────── */
.wpr-spin {
  display: flex; justify-content: center; align-items: center; gap: .4rem;
  padding: 4rem;
}
.wpr-spin div {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--wpr-brand);
  animation: wpr-bounce .8s ease-in-out infinite;
  opacity: .3;
}
.wpr-spin div:nth-child(2) { animation-delay: .15s; }
.wpr-spin div:nth-child(3) { animation-delay: .30s; }
.wpr-spin div:nth-child(4) { animation-delay: .45s; }
@keyframes wpr-bounce { 0%,80%,100%{transform:scale(.3);opacity:.2} 40%{transform:scale(1);opacity:1} }

/* ── SKELETON ─────────────────────────────────────────── */
.wpr-skel {
  height: 14px; background: linear-gradient(90deg, var(--wpr-slate-200) 25%, var(--wpr-slate-100) 50%, var(--wpr-slate-200) 75%);
  background-size: 200%; border-radius: 4px;
  animation: wpr-skel 1.4s ease infinite;
}
@keyframes wpr-skel { 0%{background-position:200%} 100%{background-position:-200%} }

/* ── TOAST ────────────────────────────────────────────── */
.wpr-toast {
  position: fixed; bottom: 1.5rem; right: 1.5rem;
  background: var(--wpr-navy);
  color: #fff;
  padding: .75rem 1.1rem;
  border-radius: var(--wpr-r);
  font-size: var(--wpr-text-base);
  font-family: var(--wpr-ff-body);
  font-weight: var(--wpr-fw-medium);
  z-index: 9999999;
  display: flex; align-items: center; gap: .6rem;
  box-shadow: var(--wpr-shadow-lg);
  transform: translateY(20px) scale(.96);
  opacity: 0;
  transition: all .3s cubic-bezier(.34,1.56,.64,1);
  max-width: 360px;
}
.wpr-toast--in    { transform: none; opacity: 1; }
.wpr-toast--err   { background: #3B0E0E; }
.wpr-toast--info  { background: var(--wpr-navy-mid); }
.wpr-toast--warn  { background: #451A03; }
.wpr-toast__icon  { font-size: 1rem; flex-shrink: 0; }
.wpr-toast--ok   .wpr-toast__icon { color: #4ADE80; }
.wpr-toast--err  .wpr-toast__icon { color: #F87171; }
.wpr-toast--info .wpr-toast__icon { color: #60A5FA; }
.wpr-toast--warn .wpr-toast__icon { color: #FCD34D; }

/* ── TIMESHEETS ───────────────────────────────────────── */
.wpr-ts-toolbar { display:flex; align-items:center; justify-content:space-between; gap:1rem; flex-wrap:wrap; margin-bottom:1.5rem; padding-bottom:1.25rem; border-bottom:1px solid var(--wpr-slate-200); }
.wpr-ts-toolbar-left { display:flex; align-items:center; gap:.75rem; flex-wrap:wrap; }
.wpr-ts-toolbar-right { display:flex; align-items:center; gap:.5rem; flex-wrap:wrap; }
.wpr-ts-gran-row { display:flex; align-items:center; gap:.65rem; margin-bottom:1.25rem; flex-wrap:wrap; }
.wpr-ts-gran-label { font-size:var(--wpr-text-sm); font-weight:var(--wpr-fw-bold); text-transform:uppercase; letter-spacing:var(--wpr-ls-caps); color:var(--wpr-muted); }
.wpr-ts-nav { display:flex; align-items:center; background:var(--wpr-white); border:1.5px solid var(--wpr-slate-200); border-radius:var(--wpr-r); overflow:hidden; }
.wpr-ts-nav-btn { width:2.1rem; height:2.1rem; display:flex; align-items:center; justify-content:center; border:none; background:transparent; font-size:1.15rem; line-height:1; color:var(--wpr-muted); cursor:pointer; transition:background .18s,color .18s; flex-shrink:0; }
.wpr-ts-nav-btn:hover { background:var(--wpr-slate-50); color:var(--wpr-text); }
.wpr-ts-period-label { font-size:var(--wpr-text-13); font-weight:var(--wpr-fw-semi); color:var(--wpr-text); min-width:185px; text-align:center; letter-spacing:-.01em; padding:0 .25rem; border-left:1px solid var(--wpr-slate-200); border-right:1px solid var(--wpr-slate-200); line-height:2.1rem; white-space:nowrap; }
.wpr-ts-export-group { display:flex; gap:.5rem; flex-wrap:wrap; }
.wpr-ts-stats { display:grid; grid-template-columns:repeat(auto-fit,minmax(130px,1fr)); background:var(--wpr-white); border:1px solid var(--wpr-slate-200); border-radius:var(--wpr-r-lg); overflow:hidden; margin-bottom:1.75rem; box-shadow:var(--wpr-shadow-sm); }
.wpr-ts-stat { padding:.9rem 1.15rem; border-right:1px solid var(--wpr-slate-200); position:relative; }
.wpr-ts-stat:last-child { border-right:none; }
.wpr-ts-stat::before { content:''; position:absolute; top:0; left:0; right:0; height:3px; background:var(--wpr-slate-200); }
.wpr-ts-stat--green::before { background:var(--wpr-green); }
.wpr-ts-stat--brand::before { background:var(--wpr-brand); }
.wpr-ts-stat--amber::before { background:var(--wpr-amber); }
.wpr-ts-stat--red::before   { background:var(--wpr-red); }
.wpr-ts-stat__lbl { font-size:var(--wpr-text-xs); font-weight:var(--wpr-fw-bold); text-transform:uppercase; letter-spacing:var(--wpr-ls-caps); color:var(--wpr-muted); margin-bottom:.35rem; }
.wpr-ts-stat__val { font-family:var(--wpr-ff-head); font-size:var(--wpr-text-xl); font-weight:var(--wpr-fw-black); color:var(--wpr-text); line-height:var(--wpr-lh-tight); }
.wpr-ts-stat--green .wpr-ts-stat__val { color:var(--wpr-green); }
.wpr-ts-stat--brand .wpr-ts-stat__val { color:var(--wpr-brand); }
.wpr-ts-stat--amber .wpr-ts-stat__val { color:var(--wpr-amber); }
.wpr-ts-stat--red   .wpr-ts-stat__val { color:var(--wpr-red); }
.wpr-ts-section-hd { display:flex; align-items:center; gap:.75rem; margin:2rem 0 1rem; }
.wpr-ts-section-hd__title { font-size:var(--wpr-text-sm); font-weight:var(--wpr-fw-bold); text-transform:uppercase; letter-spacing:var(--wpr-ls-caps); color:var(--wpr-muted); white-space:nowrap; }
.wpr-ts-section-hd::after { content:''; flex:1; height:1px; background:var(--wpr-slate-200); }
.wpr-ts-earnings-table { border-radius:var(--wpr-r-lg); overflow:hidden; border:1px solid var(--wpr-slate-200); }
.wpr-ts-earnings-table .wpr-table { border-radius:0; border:none; }
.wpr-ts-earnings-table thead th { background:var(--wpr-slate-50); }
.wpr-ts-earnings-table th:not(:first-child), .wpr-ts-earnings-table td:not(:first-child) { text-align:right; }
.wpr-ts-total-row td { background:var(--wpr-slate-50) !important; font-weight:var(--wpr-fw-bold); border-top:2px solid var(--wpr-slate-200) !important; color:var(--wpr-text); }
.wpr-ts-grand-total { display:flex; align-items:center; justify-content:space-between; margin-top:1rem; padding:1rem 1.25rem; background:var(--wpr-green-pale); border:1px solid #bbf7d0; border-radius:var(--wpr-r-lg); }
.wpr-ts-grand-total__lbl { font-size:var(--wpr-text-base); color:var(--wpr-muted); font-weight:var(--wpr-fw-medium); }
.wpr-ts-grand-total__val { font-family:var(--wpr-ff-head); font-size:var(--wpr-text-xl); font-weight:var(--wpr-fw-black); color:var(--wpr-green); line-height:var(--wpr-lh-tight); }
.wpr-ts-grand-total--tax { flex-direction:column; align-items:stretch; gap:.5rem; }
.wpr-ts-grand-total__row { display:flex; justify-content:space-between; align-items:center; }
.wpr-ts-grand-total__row--net { padding-top:.6rem; border-top:1px solid #bbf7d0; }
.wpr-ts-grand-total__sub-val { font-size:var(--wpr-text-base); font-weight:var(--wpr-fw-semi); color:var(--wpr-text); }
.wpr-ts-grand-total__sub-val--tax { color:var(--wpr-red); }
.wpr-ts-empty { text-align:center; padding:3.5rem 1.5rem; color:var(--wpr-muted); }
.wpr-ts-empty__icon { font-size:2rem; opacity:.35; margin-bottom:.6rem; }
.wpr-ts-empty__msg { font-size:var(--wpr-text-md); }
.wpr-c-green { color:var(--wpr-green); }
.wpr-c-brand { color:var(--wpr-brand); }
.wpr-c-muted { color:var(--wpr-muted); }
.wpr-fw-7 { font-weight:var(--wpr-fw-bold); }
@media (max-width:720px) {
  .wpr-ts-toolbar { justify-content:flex-start; }
  .wpr-ts-stats { grid-template-columns:repeat(2,1fr); }
  .wpr-ts-stat { border-right:none; border-bottom:1px solid var(--wpr-slate-200); }
  .wpr-ts-stat:last-child { border-bottom:none; }
  .wpr-ts-period-label { min-width:130px; font-size:var(--wpr-text-sm); }
}

/* ── ERROR BOX ────────────────────────────────────────── */
.wpr-err-box {
  background: var(--wpr-red-pale); color: var(--wpr-red);
  border: 1px solid #FECACA; border-radius: var(--wpr-r);
  padding: 1rem 1.25rem; font-size: var(--wpr-text-base); margin: 1rem 0;
}

/* ── LOGIN WALL ───────────────────────────────────────── */
.wpr-login-wall { text-align: center; padding: 3rem; color: var(--wpr-muted); }
.wpr-login-wall a { color: var(--wpr-brand); font-weight: var(--wpr-fw-semi); }

/* ── OPEN SHIFT REQUESTS (manager dashboard) ─────────────── */
.wpr-request-list { display: flex; flex-direction: column; gap: .75rem; }
.wpr-request-card {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--wpr-white);
  border: 1px solid var(--wpr-slate-200);
  border-radius: var(--wpr-r);
  box-shadow: var(--wpr-shadow-sm);
  overflow: hidden;
}
.wpr-request-card__stripe { width: 5px; flex-shrink: 0; align-self: stretch; }
.wpr-request-card__body { flex: 1; padding: .85rem 1rem; }
.wpr-request-card__name  { font-weight: var(--wpr-fw-bold); font-size: var(--wpr-text-md); margin-bottom: .2rem; }
.wpr-request-card__shift { font-size: var(--wpr-text-base); color: var(--wpr-text); margin-bottom: .2rem; }
.wpr-request-card__meta  { font-size: var(--wpr-text-13); color: var(--wpr-muted); }
.wpr-request-card__actions { display: flex; gap: .4rem; padding: .75rem 1rem; flex-shrink: 0; }

/* ── AVAILABLE OPEN SHIFTS (employee shifts view) ────────── */
.wpr-open-shift-list { display: flex; flex-direction: column; gap: .75rem; }
.wpr-open-card {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--wpr-white);
  border: 1px solid var(--wpr-slate-200);
  border-radius: var(--wpr-r);
  box-shadow: var(--wpr-shadow-sm);
  overflow: hidden;
}
.wpr-open-card__stripe { width: 5px; flex-shrink: 0; align-self: stretch; }
.wpr-open-card__body   { flex: 1; padding: .85rem 1rem; }
.wpr-open-card__title  { font-weight: var(--wpr-fw-bold); font-size: var(--wpr-text-md); margin-bottom: .25rem; }
.wpr-open-card__meta   { font-size: var(--wpr-text-13); color: var(--wpr-muted); margin-bottom: .35rem; }
.wpr-open-card__action { padding: .75rem 1rem; flex-shrink: 0; }

/* ── RESPONSIVE ───────────────────────────────────────── */
@media (max-width: 720px) {
  .wpr-shell { flex-direction: column; min-height: auto; }
  .wpr-sidebar { width: 100%; flex-direction: column; }
  .wpr-sidebar__nav { flex-direction: row; flex-wrap: wrap; padding: .5rem; gap: 2px; }
  .wpr-nav-item { padding: .45rem .7rem; }
  .wpr-content { padding: 1.25rem; max-height: none; }
  .wpr-form-grid { grid-template-columns: 1fr; }
  .wpr-kpi-grid  { grid-template-columns: repeat(2, 1fr); }
  .wpr-shift-cards { grid-template-columns: 1fr; }
  .wpr-cal-cell { min-height: 60px; padding: .25rem; }
  .wpr-cal-pill { font-size: var(--wpr-text-xs); padding: .15rem .3rem; }
  .wpr-cal-dow  { font-size: var(--wpr-text-xs); padding: .4rem .2rem; }
  .wpr-roster-th, .wpr-roster-cell { min-width: 90px; }
  .wpr-roster-th--member, .wpr-roster-member-cell { width: 130px; min-width: 130px; }
  .wpr-roster-member-cell { padding: .4rem .5rem; }
  .wpr-rmember__name { font-size: var(--wpr-text-sm); }
  .wpr-rmember__role, .wpr-rmember__rate { font-size: var(--wpr-text-xs); }
  .wpr-rmember__hours, .wpr-rmember__earnings { font-size: var(--wpr-text-xs); }
  .wpr-view-toggle { display: none; }
}

/* ── PHONE (≤ 480px) ───────────────────────────────────── */
@media (max-width: 480px) {
  .wpr-content { padding: .875rem 1rem; }

  /* Page header: stack title above actions */
  .wpr-page-header { flex-direction: column; align-items: flex-start; gap: .5rem; margin-bottom: 1rem; }
  .wpr-page-header__actions { width: 100%; gap: .4rem; }
  .wpr-page-header__actions > select.wpr-input { flex: 1; min-width: 0; }

  /* View toggle: restore on phones (overrides 720px display:none), compact */
  .wpr-view-toggle { display: flex; width: 100%; }
  .wpr-vt-btn { flex: 1; padding: .35rem .3rem; font-size: var(--wpr-text-xs); }

  /* Calendar navigation */
  .wpr-cal-nav { width: 100%; justify-content: space-between; }
  .wpr-cal-month { flex: 1; min-width: 0; text-align: center; font-size: var(--wpr-text-base); }
  .wpr-cal-nav .wpr-btn { min-width: 44px; min-height: 44px; padding: .5rem .9rem; font-size: 1.1rem; }

  /* ── Monthly calendar ────────────────────────── */
  .wpr-cal-cell { min-height: 72px; padding: .2rem; }
  .wpr-cal-cell__num { width: 19px; height: 19px; font-size: .65rem; }
  .wpr-cal-dow { padding: .3rem .1rem; font-size: .6rem; letter-spacing: 0; }
  .wpr-cal-pill { min-height: 20px; padding: .1rem .2rem; }

  /* Fade on right edge signals horizontal scroll */
  .wpr-calendar { position: relative; }
  .wpr-calendar::after {
    content: '';
    position: absolute; top: 0; right: 0; bottom: 0; width: 24px;
    background: linear-gradient(to right, transparent, rgba(255,255,255,.85));
    pointer-events: none; z-index: 2;
    border-radius: 0 var(--wpr-r-lg) var(--wpr-r-lg) 0;
  }

  /* ── Weekly / day roster ─────────────────────── */
  .wpr-roster-th, .wpr-roster-cell { min-width: 74px; padding: .4rem .35rem; }
  .wpr-roster-th--member, .wpr-roster-member-cell { width: 96px; min-width: 96px; padding: .35rem .4rem; }
  .wpr-rmember__name { font-size: .68rem; word-break: break-word; }
  .wpr-rmember__meta { display: none; }
  .wpr-rmember__stats { font-size: .6rem; }
  .wpr-roster-shift { padding: .25rem .3rem; }
  .wpr-rshift__title { font-size: .65rem; }
  .wpr-rshift__time  { font-size: .6rem; }
  .wpr-rshift__loc   { display: none; }

  /* ── Availability grid ───────────────────────── */
  .wpr-avail-grid { max-width: 100%; }
  .wpr-avail-row { flex-direction: column; align-items: flex-start; gap: .4rem; padding: .65rem .75rem; }
  .wpr-avail-check { min-height: 44px; display: flex; align-items: center; width: 100%; }
  .wpr-avail-times { width: 100%; padding-left: 1.75rem; gap: .4rem; }
  .wpr-avail-times .wpr-input { flex: 1; min-width: 0; }
  #wpr-save-avail { width: 100%; margin-top: .5rem; }

  /* ── Profile card ────────────────────────────── */
  .wpr-profile-card { flex-wrap: wrap; gap: .875rem; }
  .wpr-profile-card > .wpr-btn { order: 3; width: 100%; text-align: center; }
}
