/* PassionWorkx HR Desk — brand layer on Bootstrap 5.3
   Look: "Warm Glow" (cream ground, white rounded cards, orange radial-glow heroes with
   charcoal text, charcoal pill navigation, PassionWorkx red for urgent actions, Outfit type). */

@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 300; font-display: swap; src: url('../fonts/outfit-latin-300-normal.woff2') format('woff2'); }
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/outfit-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/outfit-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/outfit-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/outfit-latin-700-normal.woff2') format('woff2'); }

:root {
  --pw-ground: #FBF3EC;
  --pw-sand: #FBF3EC;
  --pw-shell: transparent;
  --pw-surface: #FFFFFF;
  --pw-ink: #221D1C;
  --pw-charcoal: #221D1C;
  --pw-charcoal-2: #3A3331;
  --pw-muted: #6E6560;
  --pw-body: #4E4743;
  --pw-line: #E8DCD3;
  --pw-line-soft: #F1E8E1;
  --pw-red: #E3261C;
  --pw-red-dark: #C81E14;
  --pw-red-deep: #8C1A10;
  --pw-orange: #F57A2E;
  --pw-orange-soft: #F7A06B;
  --pw-peach: #FFE9DE;
  --pw-peach-2: #FFD7C2;
  --pw-green: #1F6B3A;
  --pw-green-soft: #E4F2E8;
  --pw-radius-card: 30px;
  --pw-radius-field: 18px;
  --pw-radius-pill: 60px;
  --pw-font: 'Outfit', 'Segoe UI', system-ui, sans-serif;
  --pw-glow: radial-gradient(120% 120% at 95% 0%, #FFB36B 0%, #F57A2E 50%, #EE5A24 100%);
  --pw-shadow: 0 12px 30px rgba(140, 26, 16, .08);

  --bs-body-font-family: var(--pw-font);
  --bs-body-color: var(--pw-ink);
  --bs-body-bg: var(--pw-ground);
  --bs-border-color: var(--pw-line);
  --bs-link-color: var(--pw-red-dark);
  --bs-link-hover-color: var(--pw-red-deep);
  --bs-link-color-rgb: 200, 30, 20;
  --bs-primary: var(--pw-red);
  --bs-primary-rgb: 227, 38, 28;
  --bs-danger: var(--pw-red-dark);
  --bs-secondary-color: var(--pw-muted);
  --bs-focus-ring-color: rgba(227, 38, 28, .25);
}

html, body { min-height: 100%; }
body { font-family: var(--pw-font); background: var(--pw-ground); color: var(--pw-ink); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5 { font-weight: 500; letter-spacing: -0.4px; text-wrap: balance; }
.text-muted, .text-body-secondary { color: var(--pw-muted) !important; }
.fw-light-num { font-weight: 300; font-variant-numeric: tabular-nums; letter-spacing: -1px; }
.tabular { font-variant-numeric: tabular-nums; }
a { text-underline-offset: 3px; }
:focus-visible { outline: 3px solid rgba(227, 38, 28, .45); outline-offset: 2px; }

/* ---------- Shell ---------- */
.pw-page { padding: 20px; padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
.pw-shell { max-width: 1400px; margin: 0 auto; background: var(--pw-shell); padding: 2px 4px 32px; min-height: calc(100vh - 40px); }
@media (max-width: 991.98px) {
  .pw-page { padding: 0; }
  .pw-shell { border-radius: 0; padding: 16px 16px 120px; min-height: 100vh; background: var(--pw-ground); }
}

/* Header (desktop) */
.pw-header { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 24px; }
.pw-brand { display: inline-flex; align-items: center; gap: 10px; border-radius: var(--pw-radius-pill); padding: 6px 18px 6px 6px; background: var(--pw-surface); color: var(--pw-ink); text-decoration: none; font-size: 17px; font-weight: 600; }
.pw-brand .mk { width: 44px; height: 44px; border-radius: 50%; background: var(--pw-ground); display: inline-flex; align-items: center; justify-content: center; }
.pw-brand img { width: 28px; height: 28px; object-fit: contain; }
.pw-brand small { font-size: 11px; font-weight: 500; color: var(--pw-ink); letter-spacing: 1.4px; text-transform: uppercase; }
.pw-nav { flex: 1; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; background: var(--pw-surface); border-radius: var(--pw-radius-pill); padding: 6px; }
.pw-nav a { border-radius: var(--pw-radius-pill); padding: 10px 16px; font-size: 14px; color: var(--pw-ink); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.pw-nav a:hover { background: var(--pw-sand); color: var(--pw-ink); }
.pw-nav a.active { background: var(--pw-charcoal); color: #fff; }
.pw-icon-btn { width: 52px; height: 52px; border-radius: 50%; border: 0; background: var(--pw-surface); display: inline-flex; align-items: center; justify-content: center; color: var(--pw-ink); position: relative; text-decoration: none; }
.pw-avatar { width: 52px; height: 52px; border-radius: 50%; background: var(--pw-peach); color: var(--pw-red-deep); display: inline-flex; align-items: center; justify-content: center; font-weight: 600; font-size: 15px; border: 0; flex-shrink: 0; }
.pw-avatar.sm { width: 36px; height: 36px; font-size: 12px; background: var(--pw-ground); color: var(--pw-ink); }
.pw-avatar.dark { background: var(--pw-charcoal-2); color: #fff; }

/* Mobile top bar + floating bottom nav (mockup phones) */
.pw-topbar { display: none; }
.pw-tabbar { display: none; }
@media (max-width: 991.98px) {
  .pw-header { display: none; }
  .pw-topbar { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
  .pw-topbar img { width: 40px; height: 40px; object-fit: contain; }
  .pw-tabbar { display: flex; position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(18px + env(safe-area-inset-bottom)); gap: 6px; background: var(--pw-charcoal); border-radius: 40px; padding: 7px; z-index: 1030; box-shadow: 0 10px 30px rgba(34, 29, 28, .25); }
  .pw-tabbar a { width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 21px; text-decoration: none; }
  .pw-tabbar a.active { background: var(--pw-red); }
}

/* ---------- Typography blocks ---------- */
.pw-eyebrow { font-size: 14px; color: var(--pw-body); }
.pw-title { font-size: 40px; font-weight: 500; letter-spacing: -.8px; margin: 0; line-height: 1.08; }
@media (max-width: 991.98px) { .pw-title { font-size: 28px; font-weight: 500; letter-spacing: -.5px; } }
.pw-pill-word { display: inline-block; border: 2px solid var(--pw-ink); border-radius: var(--pw-radius-pill); padding: 0 .4em; }
.pw-pill-word.red { background: var(--pw-charcoal); color: #fff; border-color: var(--pw-charcoal); }

/* ---------- Cards ---------- */
.pw-card { background: var(--pw-surface); border-radius: var(--pw-radius-card); padding: 22px; border: 0; }
.pw-card.dark { background: var(--pw-charcoal); color: #fff; }
.pw-card.dark .text-muted { color: #BFB4AE !important; }
.pw-card.peach { background: var(--pw-peach); }
.pw-card.orange, .pw-card.glow { background: var(--pw-glow); color: var(--pw-charcoal); position: relative; overflow: hidden; }
.pw-card.red { background: var(--pw-red); color: #fff; position: relative; overflow: hidden; }
.pw-card-title { font-size: 20px; font-weight: 400; margin: 0; }
.pw-card-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; }
.pw-stat { display: flex; flex-direction: column; }
.pw-stat .num { font-size: 52px; font-weight: 300; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -1px; }
.pw-stat .lbl { font-size: 13px; color: var(--pw-body); }
.pw-row { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--pw-line-soft); }
.pw-row:last-child { border-bottom: 0; }
.pw-card.dark .pw-row { border-color: var(--pw-charcoal-2); }

/* ---------- Buttons ---------- */
.btn { border-radius: var(--pw-radius-pill); font-weight: 500; padding: .6rem 1.2rem; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.btn-pw { background: var(--pw-orange); color: var(--pw-charcoal); border: 0; }
.btn-pw:hover, .btn-pw:focus { background: #EE5A24; color: var(--pw-charcoal); }
.btn-red { background: var(--pw-red-dark); color: #fff; border: 0; }
.btn-red:hover, .btn-red:focus { background: var(--pw-red-deep); color: #fff; }
.btn-dark-pill { background: var(--pw-charcoal); color: #fff; border: 0; }
.btn-dark-pill:hover { background: #000; color: #fff; }
.btn-line { background: var(--pw-surface); color: var(--pw-ink); border: 1.5px solid var(--pw-ink); }
.btn-white { background: var(--pw-surface); color: var(--pw-ink); border: 0; }
.btn-white:hover { background: #fff; color: var(--pw-ink); box-shadow: var(--pw-shadow); }
.btn-line:hover { background: var(--pw-sand); color: var(--pw-ink); }
.btn-soft { background: var(--pw-sand); color: var(--pw-ink); border: 0; }
.btn-soft:hover { background: var(--pw-line); }
.btn-arrow { justify-content: space-between; padding: 8px 8px 8px 26px; min-height: 60px; font-size: 17px; }
.btn-arrow .arrow { width: 44px; height: 44px; border-radius: 50%; background: #fff; display: inline-flex; align-items: center; justify-content: center; color: var(--pw-charcoal); font-size: 18px; }
.btn-dark-pill.btn-arrow .arrow { background: var(--pw-orange); color: var(--pw-charcoal); }
.btn-sm { min-height: 36px; padding: .35rem .9rem; font-size: 13px; }
.btn-danger-line { background: #fff; color: var(--pw-red-dark); border: 1.5px solid var(--pw-red-dark); }
.btn-danger-line:hover { background: #FFF4EE; color: var(--pw-red-deep); }

/* ---------- Chips ---------- */
.pw-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; border-radius: var(--pw-radius-pill); padding: 4px 11px; background: var(--pw-sand); color: var(--pw-ink); white-space: nowrap; }
.pw-chip.peach { background: var(--pw-peach); color: var(--pw-red-deep); }
.pw-chip.dark { background: var(--pw-charcoal); color: #fff; }
.pw-chip.red { background: transparent; border: 1.5px solid var(--pw-red-dark); color: var(--pw-red-dark); padding: 3px 10px; }
.pw-chip.green { background: var(--pw-green-soft); color: var(--pw-green); }
.pw-chip.orange { background: var(--pw-orange); color: var(--pw-charcoal); }
.pw-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; display: inline-block; }

/* ---------- Forms ---------- */
.form-label { font-size: 13px; font-weight: 500; color: var(--pw-body); margin-bottom: 6px; }
.form-control, .form-select { background-color: var(--pw-ground); border: 1.5px solid var(--pw-ground); border-radius: var(--pw-radius-field); min-height: 52px; font-size: 16px; color: var(--pw-ink); padding-left: 16px; }
.form-control:focus, .form-select:focus { border-color: var(--pw-ink); box-shadow: none; background-color: #fff; }
.form-control.is-invalid, .form-select.is-invalid { border-color: var(--pw-red-dark); }
.invalid-feedback { color: var(--pw-red-dark); font-size: 13px; }
.form-check-input:checked { background-color: var(--pw-red); border-color: var(--pw-red); }
.form-check-input:focus { box-shadow: 0 0 0 .25rem rgba(227, 38, 28, .2); border-color: var(--pw-red); }
.form-check-input { width: 1.25em; height: 1.25em; }
.form-switch .form-check-input { width: 2.4em; }
.pw-field-icon { position: relative; }
.pw-field-icon > .bi { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--pw-muted); pointer-events: none; }
.pw-field-icon > .form-control { padding-left: 44px; }
.pw-field-icon > .pw-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border: 0; border-radius: 50%; background: #fff; color: var(--pw-ink); }
.pw-field-icon > .pw-eye + .form-control, .pw-field-icon > .form-control:has(+ .pw-eye) { padding-right: 56px; }
.pw-help { font-size: 13px; color: var(--pw-muted); }

/* ---------- Tables ---------- */
.pw-table-wrap { overflow-x: auto; }
.pw-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.pw-table th { font-weight: 500; font-size: 12px; color: var(--pw-body); text-align: left; padding: 8px 8px; white-space: nowrap; }
.pw-table td { padding: 12px 8px; border-top: 1px solid var(--pw-line-soft); vertical-align: middle; }
.pw-table tr.flag td { background: #FFF4EE; }

/* ---------- Filters ---------- */
.pw-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 16px; }
.pw-filters .form-control, .pw-filters .form-select { background-color: #fff; border-color: #fff; min-height: 44px; border-radius: var(--pw-radius-pill); font-size: 14px; width: auto; }
.pw-seg { display: inline-flex; gap: 4px; background: var(--pw-surface); border-radius: var(--pw-radius-pill); padding: 4px; }
.pw-seg a { border-radius: var(--pw-radius-pill); padding: 8px 14px; font-size: 13px; color: var(--pw-body); text-decoration: none; }
.pw-seg a.active { background: var(--pw-charcoal); color: #fff; }

/* ---------- Alerts / flash ---------- */
.pw-flash { border-radius: 20px; padding: 12px 16px; display: flex; gap: 10px; align-items: flex-start; font-size: 15px; margin-bottom: 16px; }
.pw-flash.ok { background: var(--pw-green-soft); color: var(--pw-green); }
.pw-flash.err { background: #FFF4EE; color: var(--pw-red-deep); border: 1.5px solid var(--pw-red); }
.pw-flash.info { background: var(--pw-peach); color: var(--pw-red-deep); }
.pw-issued { background: var(--pw-charcoal); color: #fff; border-radius: 22px; padding: 16px 18px; margin-bottom: 16px; }
.pw-issued code { color: var(--pw-orange-soft); font-size: 16px; }

/* ---------- Auth (login) ---------- */
.pw-auth { min-height: 100vh; display: flex; flex-wrap: wrap; gap: 24px; padding: 28px; align-items: stretch; background: var(--pw-sand); }
.pw-auth-hero { flex: 999 1 560px; min-width: 0; background: var(--pw-surface); border-radius: 36px; padding: 40px 48px; display: flex; flex-direction: column; gap: 32px; position: relative; overflow: hidden; }
.pw-auth-hero .blob1 { position: absolute; right: -120px; bottom: -160px; width: 520px; height: 520px; border-radius: 50%; background: var(--pw-peach); }
.pw-auth-hero .blob2 { position: absolute; right: 120px; bottom: 140px; width: 160px; height: 160px; border-radius: 50%; background: var(--pw-peach-2); }
.pw-auth-hero > * { position: relative; }
.pw-auth-hero h1 { font-size: clamp(40px, 5vw, 64px); line-height: 1.04; font-weight: 400; letter-spacing: -1.5px; margin: 0; }
.pw-auth-form { flex: 1 1 420px; min-width: 0; max-width: 520px; background: var(--pw-surface); border-radius: 36px; padding: 48px 44px; display: flex; flex-direction: column; justify-content: center; gap: 20px; }
.pw-auth-form h2 { font-size: 34px; margin: 0; }
.pw-badge-pill { display: inline-flex; align-items: center; gap: 12px; border-radius: 60px; padding: 12px 22px 12px 12px; }
.pw-badge-pill .ic { width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 18px; }
@media (max-width: 767.98px) {
  .pw-auth { padding: 16px; gap: 16px; }
  .pw-auth-hero { padding: 24px 22px; border-radius: 32px; gap: 18px; }
  .pw-auth-hero h1 { font-size: 36px; letter-spacing: -1px; }
  .pw-auth-hero .blob1 { width: 260px; height: 260px; right: -90px; top: -90px; bottom: auto; }
  .pw-auth-hero .blob2, .pw-auth-hero .pw-hero-badges, .pw-auth-hero .pw-hero-copy { display: none !important; }
  .pw-auth-form { padding: 26px 22px; border-radius: 32px; max-width: none; }
  .pw-auth-form h2 { font-size: 28px; }
}

/* ---------- Install prompt ---------- */
.pw-install { position: fixed; left: 16px; right: 16px; bottom: calc(96px + env(safe-area-inset-bottom)); z-index: 1040; background: var(--pw-charcoal); color: #fff; border-radius: 28px; padding: 14px 14px 14px 18px; display: flex; align-items: center; gap: 14px; box-shadow: 0 14px 40px rgba(0,0,0,.25); max-width: 480px; margin: 0 auto; }
.pw-install .ic { width: 46px; height: 46px; border-radius: 16px; background: var(--pw-red); display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
@media (min-width: 992px) { .pw-install { bottom: 24px; left: auto; right: 24px; } }
.pw-offline-bar { position: fixed; top: 0; left: 0; right: 0; z-index: 1050; background: var(--pw-orange); color: var(--pw-charcoal); text-align: center; font-size: 14px; padding: 6px calc(12px + env(safe-area-inset-right)) 6px calc(12px + env(safe-area-inset-left)); padding-top: calc(6px + env(safe-area-inset-top)); }

/* ---------- Misc ---------- */
.pw-empty { border: 1.5px dashed var(--pw-line); border-radius: 22px; padding: 22px; text-align: center; color: var(--pw-muted); }
.pw-soon { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--pw-muted); background: var(--pw-sand); border-radius: 40px; padding: 4px 10px; white-space: nowrap; }
.modal-content { border-radius: 28px; border: 0; background: #fff; }
.dropdown-menu { background: #fff; }
.modal-header, .modal-footer { border: 0; }
.pagination { --bs-pagination-border-radius: 40px; --bs-pagination-active-bg: var(--pw-charcoal); --bs-pagination-active-border-color: var(--pw-charcoal); --bs-pagination-color: var(--pw-ink); }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* =====================================================================
   Phase 1 — masters, Task Bank, calendar, tasks
   ===================================================================== */
.min-w-0 { min-width: 0; }
.pw-chip.muted { background: var(--pw-line-soft); color: var(--pw-muted); }
.pw-ic { width: 40px; height: 40px; border-radius: 50%; background: var(--pw-peach); color: var(--pw-red-dark); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 17px; }
.pw-dl { display: grid; grid-template-columns: minmax(110px, auto) 1fr; gap: 10px 16px; margin: 0; font-size: 15px; }
.pw-dl dt { font-weight: 400; color: var(--pw-muted); font-size: 13px; padding-top: 2px; }
.pw-dl dt .bi-lock-fill { font-size: 11px; }
.pw-dl dd { margin: 0; }
@media (max-width: 575.98px) { .pw-dl { grid-template-columns: 1fr; gap: 2px; } .pw-dl dd { margin-bottom: 10px; } }

/* Day picker (digest days, weekly off) */
.pw-daypick { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.pw-daypick label { min-width: 46px; min-height: 40px; border-radius: 40px; background: var(--pw-sand); display: inline-flex; align-items: center; justify-content: center; font-size: 13px; cursor: pointer; padding: 0 10px; }
.pw-daypick .btn-check:checked + label { background: var(--pw-charcoal); color: #fff; }
.pw-daypick .btn-check:focus-visible + label { outline: 3px solid rgba(227, 38, 28, .45); }

/* Clients */
.pw-client-card { display: block; height: 100%; color: inherit; text-decoration: none; transition: box-shadow .15s; }
.pw-client-card:hover { box-shadow: 0 10px 28px rgba(34, 29, 28, .08); color: inherit; }
.pw-client-name { font-size: 19px; font-weight: 500; }
.pw-mono { width: 48px; height: 48px; border-radius: 16px; background: var(--pw-charcoal); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 600; font-size: 14px; letter-spacing: .5px; flex-shrink: 0; }
.pw-exec-list { max-height: 360px; overflow-y: auto; }
.pw-primary { font-size: 12px; color: var(--pw-muted); display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; cursor: pointer; }
.pw-map { width: 100%; height: 340px; border-radius: 22px; background: var(--pw-sand); overflow: hidden; }
.pw-map-off { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; color: var(--pw-muted); padding: 20px; height: 200px; border: 1.5px dashed var(--pw-line); }
.pw-map-off .bi { font-size: 32px; }
.pw-pac gmp-place-autocomplete { width: 100%; }
@media (max-width: 767.98px) { .pw-map { height: 300px; } }
.pw-date { width: 48px; flex-shrink: 0; border-radius: 14px; background: var(--pw-sand); display: inline-flex; flex-direction: column; align-items: center; padding: 6px 0; line-height: 1.1; }
.pw-date b { font-size: 18px; font-weight: 500; }
.pw-date span { font-size: 11px; color: var(--pw-muted); text-transform: uppercase; }

/* Month calendar */
.pw-cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.pw-cal-h { font-size: 12px; color: var(--pw-muted); text-align: center; padding: 4px 0; }
.pw-cal-d { min-height: 96px; border-radius: 14px; background: var(--pw-sand); padding: 6px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.pw-cal-d.out { opacity: .4; }
.pw-cal-d.off { background: repeating-linear-gradient(135deg, #FBF3EC 0 6px, #F1E5DB 6px 7px); }
.pw-cal-d.today { box-shadow: inset 0 0 0 2px var(--pw-orange); background: var(--pw-peach); }
.pw-cal-d .n { font-size: 13px; color: var(--pw-body); }
.pw-cal-d .hol { font-size: 10px; color: var(--pw-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pw-cal-d .ev { font-size: 11px; background: #fff; border-radius: 8px; padding: 2px 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pw-cal-d .ev.stat { background: var(--pw-red); color: #fff; }

/* Strip of counts */
.pw-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.pw-strip-item { background: var(--pw-surface); border-radius: 22px; padding: 14px 18px; text-decoration: none; color: inherit; display: flex; flex-direction: column; }
.pw-strip-item b { font-size: 34px; font-weight: 300; line-height: 1; font-variant-numeric: tabular-nums; }
.pw-strip-item span { font-size: 13px; color: var(--pw-body); }
.pw-strip-item.active { background: var(--pw-charcoal); color: #fff; }
.pw-strip-item.active span, .pw-strip-item.active b { color: #fff !important; }
@media (max-width: 767.98px) { .pw-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Task cards (mockup: sand cards, due pill, white quick-action pills) */
.pw-group-h { font-size: 15px; font-weight: 500; color: var(--pw-body); margin: 8px 0 8px 4px; }
.pw-group-h.late { color: var(--pw-red-dark); }
.pw-task { background: var(--pw-surface); border-radius: 22px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; position: relative; transition: transform .12s ease-out, background .12s; touch-action: pan-y; }
@media (max-width: 991.98px) { .pw-task { background: #fff; } }
.pw-task.late { box-shadow: inset 4px 0 0 var(--pw-red); }
.pw-task.swipe-done { background: var(--pw-green-soft); }
.pw-task.swipe-wait { background: var(--pw-peach); }
.pw-task-link { color: inherit; text-decoration: none; display: flex; flex-direction: column; gap: 6px; }
.pw-task-link:hover { color: inherit; }
.pw-task-top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.pw-task-title { font-size: 16px; font-weight: 500; line-height: 1.3; }
.pw-task-title .bi-lock-fill { font-size: 12px; color: var(--pw-muted); }
.pw-task-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; color: var(--pw-body); }
.pw-task-meta > span:first-child { min-width: 0; max-width: 100%; }
.pw-due { font-size: 12px; border: 1.5px solid var(--pw-line); border-radius: 40px; padding: 2px 9px; white-space: nowrap; flex-shrink: 0; }
.pw-due.today { border-color: var(--pw-charcoal); }
.pw-due.late { background: var(--pw-red-dark); border-color: var(--pw-red-dark); color: #fff; }
.pw-task-actions { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.pw-task-actions form { margin: 0; }
.pw-mini { border: 0; background: var(--pw-sand); color: var(--pw-ink); border-radius: 40px; padding: 0 14px; min-height: 38px; font-size: 13px; font-weight: 500; display: inline-flex; align-items: center; gap: 5px; }
.pw-mini:hover { background: var(--pw-line); }
.pw-mini.dark { background: var(--pw-charcoal); color: #fff; }
.pw-mini.dark:hover { background: #000; }
.pw-fab { width: 52px; height: 52px; border-radius: 50%; background: var(--pw-red); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 22px; text-decoration: none; flex-shrink: 0; }
.pw-fab:hover { background: var(--pw-red-dark); color: #fff; }
.pw-tabbar a.add { background: var(--pw-orange); color: var(--pw-charcoal); }
.pw-tabbar a.add.active { background: var(--pw-red); color: #fff; }

/* Add task */
.pw-chips { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.pw-chips::-webkit-scrollbar { display: none; }
.pw-chip-btn { border: 0; border-radius: 40px; background: var(--pw-sand); color: var(--pw-ink); padding: 0 14px; min-height: 38px; font-size: 13px; white-space: nowrap; }
.pw-chip-btn.active { background: var(--pw-charcoal); color: #fff; }
.pw-bank-item { display: flex; align-items: center; gap: 12px; padding: 12px 6px; border-bottom: 1px solid var(--pw-line-soft); color: inherit; text-decoration: none; min-height: 60px; }
.pw-bank-item:hover { background: var(--pw-sand); border-radius: 14px; color: inherit; }
.pw-bank-item[hidden] { display: none; }
.pw-picked { display: flex; align-items: center; gap: 12px; background: var(--pw-peach); border-radius: 20px; padding: 12px 14px; }
.pw-hint { background: #FFF4EE; color: var(--pw-red-deep); border-radius: 14px; padding: 8px 12px; font-size: 13px; }

/* Bottom sheets: Bootstrap modal anchored to the bottom on phones */
@media (max-width: 575.98px) {
  .pw-sheet .modal-dialog { margin: 0; position: fixed; bottom: 0; left: 0; right: 0; max-width: none; min-height: 0; align-items: flex-end; }
  .pw-sheet.fade .modal-dialog { transform: translateY(40px); }
  .pw-sheet.show .modal-dialog { transform: none; }
  .pw-sheet .modal-content { border-radius: 28px 28px 0 0; padding-bottom: env(safe-area-inset-bottom); max-height: 92vh; overflow-y: auto; }
}
.pw-sheet .modal-content { padding: 6px; }
.pw-sheet-task { font-weight: 500; background: var(--pw-sand); border-radius: 16px; padding: 10px 14px; }
.pw-proof-head { font-size: 13px; color: var(--pw-body); margin-bottom: 6px; }
[data-proof-box].required .pw-proof-head { color: var(--pw-red-dark); font-weight: 500; }
.pw-proof { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pw-proof-btn { border: 1.5px dashed var(--pw-line); border-radius: 18px; background: #fff; min-height: 72px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 13px; cursor: pointer; color: var(--pw-ink); margin: 0; }
.pw-proof-btn .bi { font-size: 20px; }
.pw-proof-btn:hover { border-color: var(--pw-ink); }
.pw-proof-btn.rec { border-style: solid; border-color: var(--pw-red); background: #FFF4EE; color: var(--pw-red-dark); animation: pw-pulse 1.2s infinite; }
@keyframes pw-pulse { 50% { box-shadow: 0 0 0 6px rgba(227, 38, 28, .12); } }
.pw-files { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; margin-top: 6px; }
.pw-ontime { font-size: 13px; border-radius: 14px; padding: 8px 12px; }
.pw-ontime.ok { background: var(--pw-green-soft); color: var(--pw-green); }
.pw-ontime.late { background: #FFF4EE; color: var(--pw-red-deep); }
.pw-choice { display: flex; flex-wrap: wrap; gap: 6px; }
.pw-choice label { border-radius: 40px; background: var(--pw-sand); min-height: 40px; padding: 0 14px; display: inline-flex; align-items: center; font-size: 14px; cursor: pointer; }
.pw-choice .btn-check:checked + label { background: var(--pw-charcoal); color: #fff; }
.pw-choice .btn-check:focus-visible + label { outline: 3px solid rgba(227, 38, 28, .45); }
fieldset legend.form-label { float: none; width: auto; }

/* Task detail */
.pw-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.pw-actions form { margin: 0; }
.pw-progress { height: 6px; border-radius: 6px; background: var(--pw-sand); overflow: hidden; }
.pw-progress span { display: block; height: 100%; background: var(--pw-green); border-radius: 6px; }
.pw-check { margin: 0; }
.pw-check-btn { width: 100%; border: 0; background: transparent; display: flex; align-items: center; gap: 12px; padding: 10px 2px; border-bottom: 1px solid var(--pw-line-soft); font-size: 15px; color: var(--pw-ink); min-height: 48px; }
.pw-check-btn:disabled { cursor: default; color: var(--pw-ink); }
.pw-check-btn .box { width: 26px; height: 26px; border-radius: 8px; border: 1.5px solid var(--pw-line); display: inline-flex; align-items: center; justify-content: center; color: transparent; flex-shrink: 0; }
.pw-check-btn.on .box { background: var(--pw-green); border-color: var(--pw-green); color: #fff; }
.pw-check-btn.on > span.flex-grow-1 { text-decoration: line-through; color: var(--pw-muted); }
.pw-timeline { list-style: none; margin: 0; padding: 0; }
.pw-timeline li { display: flex; gap: 12px; padding: 10px 0; position: relative; font-size: 14px; }
.pw-timeline li + li { border-top: 1px solid var(--pw-line-soft); }
.pw-timeline .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--pw-line); margin-top: 6px; flex-shrink: 0; }
.pw-timeline .t-status .dot, .pw-timeline .t-reopened .dot { background: var(--pw-charcoal); }
.pw-timeline .t-due .dot { background: var(--pw-orange); }
.pw-timeline .t-comment .dot { background: var(--pw-red); }
.pw-timeline .t-created .dot { background: var(--pw-green); }
.pw-bubble { background: var(--pw-sand); border-radius: 4px 16px 16px 16px; padding: 8px 12px; margin-top: 4px; font-size: 15px; }
.pw-attach { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 6px; font-size: 13px; background: #fff; border: 1.5px solid var(--pw-line); border-radius: 12px; padding: 6px 10px; color: var(--pw-ink); text-decoration: none; margin-right: 6px; }
.pw-attach:hover { border-color: var(--pw-ink); color: var(--pw-ink); }
.pw-comment textarea { border-radius: 18px; min-height: 64px; }
.pw-table tr[data-href] { cursor: pointer; }
.pw-table tr[data-href]:hover td { background: var(--pw-sand); }

/* =====================================================================
   Phase 2 — attendance
   ===================================================================== */
.pw-count { display: inline-flex; min-width: 20px; height: 20px; border-radius: 10px; background: var(--pw-red); color: #fff; font-size: 11px; align-items: center; justify-content: center; padding: 0 6px; margin-left: 4px; }
.pw-today { display: flex; flex-direction: column; gap: 6px; }

/* Check-in map / picture (mockup set 1) */
.pw-geo { position: relative; height: 240px; border-radius: 28px; overflow: hidden; background: #EDE6E0; }
.pw-geo-map { position: absolute; inset: 0; }
.pw-geo-art { position: absolute; inset: 0; background:
  linear-gradient(#fff, #fff) 0 70px / 100% 16px no-repeat, linear-gradient(#fff, #fff) 0 178px / 100% 10px no-repeat,
  linear-gradient(#fff, #fff) 22% 0 / 14px 100% no-repeat, linear-gradient(#fff, #fff) 72% 0 / 10px 100% no-repeat, #EDE6E0; }
.pw-geo-art .ring { position: absolute; left: 50%; top: 46%; width: 170px; height: 170px; transform: translate(-50%, -50%); border-radius: 50%; border: 2px dashed var(--pw-red); background: rgba(227, 38, 28, .12); }
.pw-geo-art .pin { position: absolute; left: 50%; top: 46%; transform: translate(-50%, -100%); color: var(--pw-red); font-size: 34px; line-height: 1; }
.pw-geo-art .me { position: absolute; width: 20px; height: 20px; border-radius: 50%; background: var(--pw-charcoal); border: 4px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,.25); left: 50%; top: 46%; opacity: 0; transition: left .6s, top .6s, opacity .3s; }
.pw-geo-art .me.in { opacity: 1; left: calc(50% + 26px); top: calc(46% + 22px); }
.pw-geo-art .me.out { opacity: 1; left: calc(50% + 120px); top: calc(46% + 70px); }
@media (max-width: 420px) { .pw-geo-art .me.out { left: calc(50% + 95px); } }
.pw-geo-pill { position: absolute; left: 12px; bottom: 12px; right: 12px; width: fit-content; max-width: calc(100% - 24px); background: #fff; border-radius: 40px; padding: 7px 14px; font-size: 13px; display: inline-flex; gap: 6px; align-items: center; box-shadow: 0 4px 14px rgba(0,0,0,.08); }
.pw-geo-pill.in { color: var(--pw-green); }
.pw-geo-pill.out { color: var(--pw-red-deep); }
.pw-big-btn { width: 168px; height: 168px; border-radius: 50%; border: 0; padding: 14px; background: conic-gradient(var(--pw-orange) 0 75%, var(--pw-sand) 75% 100%); display: flex; align-items: center; justify-content: center; }
.pw-big-btn > span { width: 140px; height: 140px; border-radius: 50%; background: var(--pw-red); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.pw-big-btn .bi { font-size: 28px; }
.pw-big-btn b { font-size: 19px; font-weight: 500; }
.pw-big-btn small { font-size: 13px; opacity: .9; }
.pw-big-btn:disabled { background: var(--pw-sand); cursor: not-allowed; }
.pw-big-btn:disabled > span { background: #CFC6C0; }
.pw-big-btn.busy > span { opacity: .7; }
.pw-big-btn:not(:disabled):hover > span { background: var(--pw-red-dark); }
.pw-inside { font-size: 14px; color: var(--pw-muted); }
.pw-inside.in { color: var(--pw-green); }
.pw-inside.out { color: var(--pw-red-deep); }
.pw-in-time { display: flex; flex-direction: column; align-items: center; background: var(--pw-sand); border-radius: 22px; padding: 12px 28px; }
.pw-in-time b { font-size: 34px; font-weight: 300; font-variant-numeric: tabular-nums; }
.pw-selfie { display: inline-flex; align-items: center; gap: 8px; border: 1.5px dashed var(--pw-line); border-radius: 40px; padding: 10px 18px; cursor: pointer; font-size: 14px; }
.pw-selfie.done { border-style: solid; border-color: var(--pw-green); color: var(--pw-green); }
.pw-sites summary { cursor: pointer; color: var(--pw-red-dark); }
.pw-site-opt { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 14px; background: var(--pw-sand); font-size: 14px; cursor: pointer; }
.pw-dot-state { width: 10px; height: 10px; border-radius: 50%; background: var(--pw-line); }
.pw-dot-state.in { background: var(--pw-green); }

/* Board, approvals */
.pw-strip-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 767.98px) { .pw-strip-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pw-approve { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-start; padding: 14px 0; border-top: 1px solid var(--pw-line-soft); }
.pw-approve:first-of-type { border-top: 0; }
.pw-decide { display: flex; flex-wrap: wrap; gap: 6px; align-items: flex-start; max-width: 360px; }
.pw-decide form { margin: 0; }
@media (max-width: 575.98px) { .pw-decide { max-width: none; width: 100%; } }

/* Day codes */
.c { display: inline-flex; align-items: center; justify-content: center; min-width: 26px; height: 26px; border-radius: 8px; font-size: 12px; font-weight: 600; font-style: normal; }
.c-p { background: var(--pw-green-soft); color: var(--pw-green); }
.c-w { background: #E7EEF8; color: #2B4E7E; }
.c-l, .c-h2 { background: var(--pw-peach); color: var(--pw-red-deep); }
.c-q { background: var(--pw-orange); color: var(--pw-charcoal); }
.c-a { background: var(--pw-red-dark); color: #fff; }
.c-h, .c-o { background: var(--pw-sand); color: var(--pw-muted); }
.c-n { color: var(--pw-muted); }
.pw-legend { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 12px; color: var(--pw-body); }
.pw-legend span { display: inline-flex; align-items: center; gap: 6px; }

/* Monthly sheet */
.pw-sheet-t { border-collapse: separate; border-spacing: 2px; font-size: 12px; }
.pw-sheet-t th { font-weight: 500; color: var(--pw-body); text-align: center; padding: 2px; min-width: 28px; }
.pw-sheet-t th span { display: block; font-size: 10px; color: var(--pw-muted); }
.pw-sheet-t th.off { color: var(--pw-muted); }
.pw-sheet-t th.today { color: var(--pw-red-dark); }
.pw-sheet-t td.c { width: 28px; height: 30px; display: table-cell; text-align: center; border-radius: 6px; }
.pw-sheet-t td.c-x { background: transparent; }
.pw-sheet-t .name { position: sticky; left: 0; background: #fff; text-align: left; min-width: 150px; padding-right: 8px; font-size: 14px; z-index: 1; }
.pw-sheet-t td.tot { text-align: center; font-size: 13px; padding: 0 6px; font-variant-numeric: tabular-nums; }

/* Visit schedule grid */
.pw-cell { width: 100%; min-height: 44px; border: 1.5px dashed var(--pw-line); border-radius: 14px; background: #fff; font-size: 13px; color: var(--pw-muted); padding: 4px 8px; }
.pw-cell.set { border-style: solid; border-color: transparent; background: var(--pw-peach); color: var(--pw-red-deep); font-weight: 500; }
.pw-sched td { padding: 6px 4px; }

/* Month calendar (executive) */
.pw-mcal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.pw-mcal .h { text-align: center; font-size: 12px; color: var(--pw-muted); }
.pw-mcal .d { min-height: 58px; border-radius: 14px; background: var(--pw-sand); padding: 5px; display: flex; flex-direction: column; align-items: center; gap: 3px; }
.pw-mcal .d.out { opacity: .35; }
.pw-mcal .d.today { background: var(--pw-orange); }
.pw-mcal .d.today .n { color: var(--pw-charcoal); font-weight: 600; }
.pw-mcal .n { font-size: 12px; color: var(--pw-body); }
.pw-mtot { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13px; color: var(--pw-body); }
.pw-mtot b { font-size: 20px; font-weight: 500; color: var(--pw-ink); margin-right: 4px; }

/* =====================================================================
   Phase 3 — stuck tasks, dashboards
   ===================================================================== */
.pw-days { display: inline-flex; align-items: baseline; gap: 1px; font-size: 13px; color: var(--pw-body); }
.pw-days b { font-size: 24px; font-weight: 300; color: var(--pw-ink); font-variant-numeric: tabular-nums; }
.pw-days.esc b { color: var(--pw-red-dark); font-weight: 500; }
.pw-strip-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.pw-strip-item b small { font-size: 18px; }
@media (max-width: 1199.98px) { .pw-strip-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 575.98px) { .pw-strip-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pw-bars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; height: 170px; align-items: end; }
.pw-bar { display: flex; flex-direction: column; justify-content: flex-end; height: 100%; text-decoration: none; color: inherit; gap: 6px; }
.pw-bar .v { background: var(--pw-orange); border-radius: 12px 12px 4px 4px; display: flex; align-items: flex-start; justify-content: center; min-height: 26px; }
.pw-bar .v b { font-weight: 500; font-size: 15px; padding-top: 4px; }
.pw-bar.hot .v { background: var(--pw-red); color: #fff; }
.pw-bar .l { font-size: 12px; color: var(--pw-body); text-align: center; }
.pw-trend { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; height: 150px; align-items: end; }
.pw-count-dot { position: absolute; top: 4px; right: 2px; margin: 0; }
.pw-nav .dropdown > a { border-radius: var(--pw-radius-pill); padding: 10px 16px; font-size: 14px; color: var(--pw-body); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.pw-nav .dropdown > a.active { background: var(--pw-charcoal); color: #fff; }
.pw-nav .dropdown > a:hover { background: var(--pw-sand); color: var(--pw-ink); }

/* =====================================================================
   Phase 4 — notifications
   ===================================================================== */
.pw-icon-btn .pw-count-dot { top: -2px; right: -4px; }
.pw-topbar .pw-icon-btn { background: var(--pw-surface); }
.pw-note { display: flex; gap: 12px; padding: 12px 4px; border-bottom: 1px solid var(--pw-line-soft); color: inherit; text-decoration: none; }
.pw-note:last-child { border-bottom: 0; }
.pw-note:hover { background: var(--pw-sand); border-radius: 14px; color: inherit; }
.pw-note b { font-weight: 500; }
.pw-note.unread b::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--pw-red); margin-right: 6px; vertical-align: middle; }
.pw-tpl { white-space: pre-wrap; font-family: var(--pw-font); font-size: 13px; background: #DCF8C6; border-radius: 4px 14px 14px 14px; padding: 10px 12px; margin: 0; color: #111; }
.pw-status-ok { color: var(--pw-green); }
.pw-status-off { color: var(--pw-red-dark); }

/* ---------- Phase 5: client portal ---------- */
.pw-ring { --p: 0; width: 124px; height: 124px; flex-shrink: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: conic-gradient(var(--pw-red) calc(var(--p) * 1%), var(--pw-sand) 0); }
.pw-ring > div { width: 94px; height: 94px; border-radius: 50%; background: var(--pw-surface); display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; }
.pw-ring b { font-size: 30px; font-weight: 400; letter-spacing: -.5px; font-variant-numeric: tabular-nums; }
.pw-ring span { font-size: 11px; color: var(--pw-muted); margin-top: 4px; }
.pw-rate { display: inline-flex; gap: 2px; }
.pw-rate button { border: 0; background: transparent; color: var(--pw-muted); width: 38px; height: 38px; border-radius: 50%; font-size: 17px; }
.pw-rate button:hover { background: var(--pw-sand); color: var(--pw-ink); }
.pw-rate button.on.up { color: var(--pw-green); }
.pw-rate button.on.down { color: var(--pw-red-dark); }
.pw-wait-box { border: 1.5px solid var(--pw-orange); background: #FFF8F3; border-radius: 22px; padding: 18px; }
.pw-quick { display: flex; flex-wrap: wrap; gap: 8px; }
.pw-quick input { position: absolute; opacity: 0; pointer-events: none; }
.pw-quick label { border-radius: 40px; background: var(--pw-sand); padding: 8px 14px; font-size: 14px; cursor: pointer; min-height: 40px; display: inline-flex; align-items: center; }
.pw-quick input:checked + label { background: var(--pw-charcoal); color: #fff; }
.pw-quick input:focus-visible + label { outline: 3px solid var(--pw-orange); outline-offset: 2px; }
.pw-digest-n { min-width: 36px; height: 30px; border-radius: 15px; display: inline-flex; align-items: center; justify-content: center; font-weight: 500; padding: 0 10px; background: var(--pw-sand); }
.pw-digest-n.orange { background: var(--pw-peach); color: var(--pw-red-deep); }
.pw-digest-n.red { background: var(--pw-red); color: #fff; }
.pw-digest-n.green { background: var(--pw-green-soft); color: var(--pw-green); }
/* Report card */
.pw-rc-head { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; justify-content: space-between; margin-bottom: 18px; }
.pw-rc-kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.pw-rc-kpi { background: var(--pw-surface); border-radius: 26px; padding: 18px 20px; display: flex; flex-direction: column; justify-content: flex-end; min-height: 120px; }
.pw-rc-kpi b { font-size: clamp(34px, 4vw, 52px); font-weight: 300; line-height: 1; letter-spacing: -1px; font-variant-numeric: tabular-nums; }
.pw-rc-kpi span { font-size: 13px; color: var(--pw-body); margin-top: 6px; }
.pw-rc-kpi.dark { background: var(--pw-charcoal); color: #fff; } .pw-rc-kpi.dark span { color: #D8CFC9; }
.pw-rc-kpi.orange { background: var(--pw-glow); } .pw-rc-kpi.orange span { color: var(--pw-charcoal); }
.pw-donut { width: 190px; height: 190px; border-radius: 50%; position: relative; margin: 0 auto; }
.pw-donut > div { position: absolute; inset: 38px; background: var(--pw-surface); border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; }
.pw-donut b { font-size: 34px; font-weight: 300; } .pw-donut span { font-size: 12px; color: var(--pw-muted); margin-top: 4px; }
.pw-sw { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.pw-wbars { display: flex; gap: 14px; height: 190px; align-items: flex-end; padding-top: 18px; border-bottom: 1px solid var(--pw-line); }
.pw-wbar { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 6px; }
.pw-wbar .v { width: 100%; max-width: 72px; background: var(--pw-orange); border-radius: 14px 14px 4px 4px; min-height: 6px; }
.pw-wbar.top .v { background: var(--pw-glow); }
.pw-wbar b { font-size: 13px; font-weight: 500; }
.pw-wlabels { display: flex; gap: 14px; } .pw-wlabels span { flex: 1; text-align: center; font-size: 12px; color: var(--pw-body); padding-top: 6px; }
@media (max-width: 991.98px) { .pw-rc-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pw-rc-kpis .pw-rc-kpi:first-child { grid-column: span 2; } }
@media print { .pw-header, .pw-topbar, .pw-tabbar, .pw-noprint { display: none !important; } .pw-page { padding: 0 !important; background: #fff; } }

/* ---------- Phase 6: points ---------- */
.pw-chip.gold { background: #FFE6A3; color: #6B4700; }
.pw-chip.silver { background: #E6E1DD; color: var(--pw-charcoal-2); }
.pw-chip.bronze { background: var(--pw-peach-2); color: var(--pw-red-deep); }
.pw-pts-hero { background: var(--pw-charcoal); color: #fff; border-radius: var(--pw-radius-card); padding: 20px 22px; }
.pw-pts-hero .big { font-size: clamp(56px, 9vw, 76px); font-weight: 300; line-height: 1; letter-spacing: -2px; font-variant-numeric: tabular-nums; }
.pw-pts-hero .pill { background: var(--pw-orange); color: var(--pw-charcoal); border-radius: 40px; padding: 5px 14px; font-size: 14px; white-space: nowrap; }
.pw-tierbar { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; margin-top: 18px; }
.pw-tierbar span { height: 10px; border-radius: 6px; background: var(--pw-charcoal-2); overflow: hidden; display: block; }
.pw-tierbar span i { display: block; height: 100%; background: var(--pw-orange); border-radius: 6px; }
.pw-tierlbl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; font-size: 12px; color: #D8CFC9; margin-top: 8px; }
.pw-tierlbl span:nth-child(2) { text-align: center; } .pw-tierlbl span:last-child { text-align: right; }
.pw-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.pw-tile { background: var(--pw-sand); border-radius: 22px; padding: 14px 14px; }
.pw-tile b { display: block; font-size: 24px; font-weight: 400; line-height: 1.1; font-variant-numeric: tabular-nums; }
.pw-tile span { font-size: 12px; color: var(--pw-body); }
.pw-tile.peach { background: var(--pw-peach); }
.pw-podium { display: grid; grid-template-columns: 1fr 1.1fr 1fr; gap: 10px; align-items: end; }
.pw-pod { display: flex; flex-direction: column; align-items: center; gap: 8px; text-decoration: none; color: inherit; min-width: 0; }
.pw-pod .av { width: 42px; height: 42px; border-radius: 50%; background: var(--pw-peach); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 500; }
.pw-pod .box { width: 100%; background: var(--pw-sand); border-radius: 18px 18px 6px 6px; text-align: center; padding: 12px 6px; }
.pw-pod .box b { display: block; font-size: 24px; font-weight: 500; line-height: 1.1; }
.pw-pod .box span { font-size: 12px; color: var(--pw-body); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pw-pod.first .av { background: var(--pw-red); color: #fff; width: 48px; height: 48px; }
.pw-pod.first .box { background: var(--pw-red); color: #fff; padding: 22px 6px; } .pw-pod.first .box span { color: #FFE9DE; }
.pw-pod.third .box { padding: 8px 6px; }
.pw-lbrow { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 16px; text-decoration: none; color: inherit; }
.pw-lbrow.me { background: #FFF4EE; }
.pw-lbrow .r { width: 22px; font-weight: 500; } .pw-lbrow .n { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pw-lbrow .pc { font-size: 13px; color: var(--pw-muted); width: 40px; text-align: right; } .pw-lbrow .p { font-weight: 500; width: 44px; text-align: right; font-variant-numeric: tabular-nums; }
.pw-log { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--pw-line-soft); }
.pw-log:last-child { border-bottom: 0; }
.pw-log .amt { min-width: 46px; text-align: right; font-weight: 500; font-variant-numeric: tabular-nums; }
.pw-log .amt.plus { color: var(--pw-green); } .pw-log .amt.minus { color: var(--pw-red-dark); } .pw-log .amt.zero { color: var(--pw-muted); }
.pw-badge { display: inline-flex; align-items: center; gap: 8px; border: 1.5px solid var(--pw-line); border-radius: 40px; padding: 6px 12px; font-size: 13px; background: var(--pw-surface); }
.pw-badge i { color: var(--pw-orange); }
.pw-ptsstrip { display: flex; align-items: center; gap: 14px; background: var(--pw-charcoal); color: #fff; border-radius: 24px; padding: 14px 16px; text-decoration: none; }
.pw-ptsstrip:hover { color: #fff; }
.pw-ptsstrip .ic { width: 40px; height: 40px; border-radius: 50%; background: var(--pw-orange); color: var(--pw-charcoal); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.pw-ptsstrip .bar { height: 6px; border-radius: 4px; background: var(--pw-charcoal-2); margin-top: 6px; overflow: hidden; } .pw-ptsstrip .bar i { display: block; height: 100%; background: var(--pw-orange); }
@media (max-width: 575.98px) { .pw-tile b { font-size: 20px; } }

/* =====================================================================
   Warm Glow theme — orange glow heroes, charcoal text on orange
   ===================================================================== */
.pw-card { box-shadow: none; }
.pw-card.orange::before, .pw-card.glow::before, .pw-pts-hero::before, .pw-auth-hero::before {
  content: ''; position: absolute; right: -40px; top: -40px; width: 200px; height: 200px; pointer-events: none;
  background: url('../images/mark-glow.png') no-repeat center / contain; }
.pw-card.orange > *, .pw-card.glow > *, .pw-pts-hero > * { position: relative; }
.pw-card.glow .text-muted, .pw-card.orange .text-muted { color: var(--pw-charcoal-2) !important; }
.pw-card.glow a:not(.btn) { color: var(--pw-charcoal); }
/* Rows on a glow card: white translucent pills */
.pw-card.glow .pw-row { background: rgba(255, 255, 255, .9); border: 0; border-radius: 20px; padding: 11px 14px; margin-bottom: 8px; color: var(--pw-charcoal); }
.pw-card.glow .pw-row:last-child { margin-bottom: 0; }
.pw-card.glow .pw-row .bi { color: var(--pw-red-dark) !important; }
.pw-card.glow .pw-row .small { font-weight: 500; }

/* Greeting header (phone home) */
.pw-hello { display: flex; align-items: center; gap: 12px; }
.pw-hello .date { font-size: 14px; color: var(--pw-muted); }

/* Visit hero on the executive home */
.pw-visit { min-height: 150px; flex-direction: column; align-items: stretch !important; }
.pw-visit .btn { align-self: flex-start; padding-left: 6px; }
.pw-visit .btn .ic { width: 34px; height: 34px; border-radius: 50%; background: #fff; color: var(--pw-red); display: inline-flex; align-items: center; justify-content: center; }
.pw-visit .where { font-size: 24px; font-weight: 500; line-height: 1.15; }

/* Points strip on home → peach tile */
.pw-ptsstrip { background: var(--pw-peach); color: var(--pw-charcoal); }
.pw-ptsstrip:hover { color: var(--pw-charcoal); box-shadow: var(--pw-shadow); }
.pw-ptsstrip .ic { background: #fff; color: var(--pw-red); }
.pw-ptsstrip .bar { background: #fff; } .pw-ptsstrip .bar i { background: var(--pw-red); }
.pw-ptsstrip .note { color: var(--pw-red-deep) !important; }

/* Points hero */
.pw-pts-hero { background: var(--pw-glow); color: var(--pw-charcoal); position: relative; overflow: hidden; }
.pw-pts-hero .pill { background: var(--pw-charcoal); color: #fff; }
.pw-pts-hero .who { color: var(--pw-charcoal-2) !important; }
.pw-pts-hero .warn { color: var(--pw-charcoal) !important; font-weight: 500; }
.pw-pts-hero .pw-tierbar span { background: rgba(255, 255, 255, .55); }
.pw-pts-hero .pw-tierbar span i { background: var(--pw-charcoal); }
.pw-pts-hero .pw-tierlbl { color: var(--pw-charcoal); }
.pw-tile { background: var(--pw-surface); }
.pw-tile.peach { background: var(--pw-peach); }

/* Leaderboard podium: #1 glows */
.pw-pod .box { background: var(--pw-surface); }
.pw-pod .av { background: var(--pw-peach); color: var(--pw-red-deep); }
.pw-pod.first .av { background: var(--pw-charcoal); color: #fff; }
.pw-pod.first .box { background: var(--pw-glow); color: var(--pw-charcoal); }
.pw-pod.first .box span { color: var(--pw-charcoal); }
.pw-lbrow.me { background: var(--pw-peach); }

/* Client home: on-time ring inside a glow card */
.pw-card.glow .pw-ring { background: conic-gradient(var(--pw-charcoal) calc(var(--p) * 1%), rgba(255, 255, 255, .55) 0); }
.pw-card.glow .pw-ring > div { background: #FFB36B; }
.pw-card.glow .pw-ring span { color: var(--pw-charcoal); }

/* Check-in button: glowing orange disc, charcoal text */
.pw-big-btn { background: conic-gradient(var(--pw-orange) 0 75%, var(--pw-peach) 75% 100%); }
.pw-big-btn > span { background: var(--pw-glow); color: var(--pw-charcoal); }
.pw-big-btn:not(:disabled):hover > span { background: radial-gradient(120% 120% at 95% 0%, #FFA458 0%, #EE5A24 60%, #E9501F 100%); }
.pw-geo-pill.in { background: var(--pw-charcoal); color: #fff; }
.pw-geo-pill.in .bi { color: var(--pw-orange-soft); }

/* Strip items, report KPIs on the cream ground */
.pw-strip-item { border-radius: 26px; }
.pw-rc-kpi { border-radius: 28px; }
.pw-rc-kpi.orange span { color: var(--pw-charcoal); }

/* ---------- Auth (login) ---------- */
.pw-auth { background: var(--pw-ground); }
.pw-auth-hero { background: var(--pw-glow); color: var(--pw-charcoal); }
.pw-auth-hero::before { right: -70px; top: 40px; width: 460px; height: 460px; background-image: url('../images/mark-white.png'); opacity: .5; }
.pw-auth-hero .blob1, .pw-auth-hero .blob2 { display: none; }
.pw-auth-hero .mk { width: 56px; height: 56px; border-radius: 50%; background: #fff; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.pw-auth-hero .mk img { width: 36px; height: 36px; object-fit: contain; }
.pw-auth-hero .pw-hero-copy { color: var(--pw-charcoal) !important; }
.pw-auth-hero .sub { font-size: 12px; font-weight: 500; letter-spacing: 1.6px; text-transform: uppercase; }
.pw-auth-hero .pw-badge-pill { background: rgba(255, 255, 255, .92) !important; border: 0 !important; color: var(--pw-charcoal) !important; border-radius: 26px; }
.pw-auth-hero .pw-badge-pill .small { color: var(--pw-body) !important; }
.pw-auth-hero .pw-pill-word { border-color: var(--pw-charcoal); }
.pw-auth-form { box-shadow: var(--pw-shadow); }
@media (max-width: 767.98px) {
  .pw-auth { padding: 12px; gap: 0; }
  .pw-auth-hero { min-height: 330px; padding: 22px 22px 66px; border-radius: 34px; justify-content: space-between; }
  .pw-auth-hero::before { right: -46px; top: 64px; width: 240px; height: 240px; opacity: .9; }
  .pw-auth-hero h1 { font-size: 36px; }
  .pw-auth-form { margin-top: -42px; position: relative; border-radius: 32px; }
}

/* Soft fills: white on the cream page, cream inside white cards */
.btn-soft, .pw-chip-btn, .pw-chip:not(.peach):not(.dark):not(.red):not(.green):not(.orange):not(.muted):not(.gold):not(.silver):not(.bronze), .pw-soon { background: var(--pw-surface); }
.btn-soft:hover { background: #fff; box-shadow: var(--pw-shadow); }
.pw-card .btn-soft, .modal .btn-soft, .pw-task .btn-soft, .pw-card .pw-chip-btn, .modal .pw-chip-btn,
.pw-card .pw-chip:not(.peach):not(.dark):not(.red):not(.green):not(.orange):not(.muted):not(.gold):not(.silver):not(.bronze), .pw-task .pw-chip:not(.peach):not(.dark):not(.red):not(.green):not(.orange):not(.muted):not(.gold):not(.silver):not(.bronze), .modal .pw-chip:not(.peach):not(.dark):not(.red):not(.green):not(.orange):not(.muted):not(.gold):not(.silver):not(.bronze), .pw-card .pw-soon { background: var(--pw-sand); }
.pw-card .btn-soft:hover, .modal .btn-soft:hover { background: var(--pw-line-soft); box-shadow: none; }
.pw-chip-btn.active { background: var(--pw-charcoal) !important; color: #fff; }
.pw-fab { background: var(--pw-orange); color: var(--pw-charcoal); }
.pw-fab:hover { background: #EE5A24; color: var(--pw-charcoal); }

/* Leaderboard top three: #1 in the middle, glowing */
.pw-lbtop .nm { font-size: 18px; font-weight: 500; }
.pw-lbtop .pt { font-size: 40px; font-weight: 300; line-height: 1.1; font-variant-numeric: tabular-nums; }
.pw-lbtop .first .text-muted { color: var(--pw-charcoal) !important; }
@media (max-width: 767.98px) {
  .pw-lbtop .pw-card { padding: 14px 8px; border-radius: 22px; }
  .pw-lbtop .nm { font-size: 14px; line-height: 1.2; }
  .pw-lbtop .pt { font-size: 28px; }
  .pw-lbtop .small { font-size: 11px; }
  .pw-lbtop .first { padding-top: 22px; padding-bottom: 22px; margin-top: -8px; }
}

/* Tables that sit straight on the page get their own white card */
.pw-table-wrap { background: var(--pw-surface); border-radius: 26px; padding: 6px 16px 10px; }
.pw-card .pw-table-wrap, .modal .pw-table-wrap { background: transparent; border-radius: 0; padding: 0; }
.pw-table tr.flag td { background: var(--pw-peach); }
.pw-table tr[data-href]:hover td { background: var(--pw-ground); }
