/* =====================================================================
   JobFlow Scheduler — styles
   GB3D palette: navy + cyan, green accent. Clean, high-contrast.
   ===================================================================== */
:root {
  --navy:   #0b1f5b;
  --navy2:  #13306e;
  --cyan:   #2fc5e0;
  --cyan-d: #1b9fb8;
  --green:  #28c76f;
  --amber:  #ff8a3d;
  --ink:    #16233d;
  --muted:  #667694;
  --line:   #e4e9f2;
  --line2:  #eef2f8;
  --bg:     #f4f6fb;
  --card:   #ffffff;
  --wlabel-w: 190px;
  --radius: 12px;
  --shadow: 0 6px 24px rgba(11, 31, 91, 0.10);
  --shadow-sm: 0 2px 8px rgba(11, 31, 91, 0.08);
}
* , *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;
  background: var(--bg); color: var(--ink); -webkit-font-smoothing: antialiased;
}
#app { height: 100%; }
.loading { padding: 40px; text-align: center; color: var(--muted); font-size: .95rem; }
.loading.err { color: #c0392b; }
code { background: #eef2fb; padding: 1px 6px; border-radius: 5px; font-size: .82em; color: var(--navy); }

/* ---- buttons / inputs ------------------------------------------- */
.btn-primary {
  display: inline-flex; align-items: center; gap: 7px; justify-content: center;
  background: var(--navy); color: #fff; border: none; border-radius: 9px;
  padding: 10px 16px; font-size: .9rem; font-weight: 700; cursor: pointer;
  transition: background .15s, transform .05s;
}
.btn-primary:hover { background: var(--navy2); }
.btn-primary:active { transform: translateY(1px); }
.btn-primary:disabled { opacity: .6; cursor: default; }
.btn-primary .plus { font-size: 1.05rem; line-height: 1; }
.btn-primary.block { width: 100%; padding: 12px; }
.btn-primary.sm, .btn-ghost.sm { padding: 7px 12px; font-size: .82rem; }
.btn-danger { display: inline-flex; align-items: center; gap: 6px; justify-content: center;
  background: #fff; color: var(--st-fail, #e5484d); border: 1px solid #f0c2c4; border-radius: 9px;
  padding: 10px 16px; font-size: .9rem; font-weight: 700; cursor: pointer; transition: .15s; }
.btn-danger:hover { background: #fdeded; border-color: #e5a3a6; }
.mr-auto { margin-right: auto; }
.confirm-overlay { z-index: 150; }
.confirm-card { max-width: 400px; }
.confirm-body { padding: 20px 20px 4px; font-size: .95rem; color: var(--ink); line-height: 1.5; }
.confirm-card .form-actions { padding: 8px 20px 18px; }
.btn-ghost {
  background: transparent; color: var(--navy); border: 1px solid var(--line);
  border-radius: 9px; padding: 9px 13px; font-size: .86rem; font-weight: 600; cursor: pointer;
  transition: background .15s, border-color .15s;
}
.btn-ghost:hover { background: #f0f3fa; border-color: #d3ddee; }
.in {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line);
  border-radius: 9px; background: #fbfcfe; color: var(--ink);
  font-size: .9rem; font-family: inherit; outline: none; transition: border-color .15s, box-shadow .15s;
}
.in:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(47, 197, 224, .18); background: #fff; }
textarea.in { resize: vertical; min-height: 54px; }
.fld { display: block; }
.fld-l { display: block; font-size: .76rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 5px; }
.fld-h { display: block; font-size: .74rem; color: var(--muted); margin-top: 3px; }
.form-err { color: #c0392b; font-size: .84rem; min-height: 18px; margin: 6px 0; }

/* ===== LOGIN ====================================================== */
.login-wrap { min-height: 100%; display: grid; place-items: center; padding: 24px;
  background: radial-gradient(1200px 500px at 50% -10%, #e7f6fb 0%, var(--bg) 60%); }
.login-card { width: 100%; max-width: 380px; background: var(--card); border: 1px solid var(--line);
  border-radius: 18px; box-shadow: var(--shadow); padding: 30px 28px; display: flex; flex-direction: column; gap: 12px; }
.login-logo { height: 40px; align-self: flex-start; }
.login-sub { color: var(--muted); font-size: .9rem; margin-bottom: 6px; }
.login-card .fld + .fld { margin-top: 2px; }
.demo-hint { margin-top: 6px; background: #f0f9fc; border: 1px solid #d6eef4; border-radius: 10px;
  padding: 10px 12px; font-size: .8rem; color: var(--muted); line-height: 1.55; }
.demo-hint strong { color: var(--navy); display: block; margin-bottom: 3px; }
.login-foot { margin-top: 10px; display: flex; flex-direction: column; align-items: center; gap: 4px;
  color: var(--muted); font-size: .74rem; }
.lf-by { text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.gb3d-mini { height: 64px; width: auto; }

/* ===== TOP BAR (admin) =========================================== */
/* wraps at ANY width so nothing (esp. Log out) is ever pushed off-screen */
.topbar { min-height: 60px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px;
  padding: 8px 16px; background: var(--card); border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 30; flex: 0 0 auto; }
.tb-logo { height: 34px; display: block; }
.seg { display: inline-flex; background: #eef2f8; border-radius: 10px; padding: 3px; }
.seg-btn { border: none; background: transparent; color: var(--muted); font-weight: 700; font-size: .84rem;
  padding: 7px 14px; border-radius: 8px; cursor: pointer; transition: .15s; }
.seg-btn.active { background: #fff; color: var(--navy); box-shadow: var(--shadow-sm); }
.tb-nav { display: flex; align-items: center; gap: 8px; }
.nav-arrow { width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--line);
  background: #fff; color: var(--navy); font-size: 1.3rem; line-height: 1; cursor: pointer; transition: .15s; }
.nav-arrow:hover { background: #f0f3fa; }
.tb-range { font-weight: 800; font-size: .98rem; min-width: 120px; text-align: center; color: var(--navy); }
.tb-nav { flex-wrap: wrap; }
.today-btn { padding: 7px 12px; }
.date-jump { border: 1px solid var(--line); border-radius: 9px; padding: 7px 9px; font-family: inherit;
  color: var(--ink); background: #fff; font-size: .82rem; }
.tb-right { margin-left: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.user-menu { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
.um-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--navy); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: .82rem; flex-shrink: 0; }
.um-meta { line-height: 1.15; }
.um-name { font-weight: 700; font-size: .84rem; }
.um-role { font-size: .74rem; color: var(--muted); }

/* ===== CALENDAR ================================================== */
/* office layout is a flex column: top bar (any height) + calendar fills the rest,
   so a wrapped top bar never eats into or clips the calendar. */
body.mode-admin #app { display: flex; flex-direction: column; height: 100%; }
.admin-main { flex: 1 1 auto; min-height: 0; }
.cal-wrap { height: 100%; overflow: auto; position: relative; background: var(--card); }
.cal-content { display: grid; min-width: max-content; }
.cal-content.month { min-width: 100%; }   /* squeeze the whole month to the viewport */

.cal-corner { position: sticky; left: 0; top: 0; z-index: 20; background: #f7f9fd;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  display: flex; align-items: center; padding: 0 14px; }
.cal-corner-txt { font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.cal-colhead { position: sticky; top: 0; z-index: 10; background: #f7f9fd; border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line2); text-align: center; padding: 8px 4px; }
.cal-colhead.is-today { background: #e8f8fc; }
.ch-main { font-weight: 800; font-size: .82rem; color: var(--navy); }
.ch-sub { font-size: .7rem; color: var(--muted); margin-top: 1px; }

.cal-wlabel { position: sticky; left: 0; z-index: 15; background: var(--card);
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line2);
  display: flex; align-items: center; gap: 10px; padding: 0 12px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; color: #fff; display: grid; place-items: center;
  font-weight: 800; font-size: .78rem; flex-shrink: 0; }
.wl-meta { line-height: 1.2; min-width: 0; }
.wl-name { font-weight: 700; font-size: .86rem; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wl-role { font-size: .72rem; color: var(--muted); }

.cal-track { position: relative; border-bottom: 1px solid var(--line2);
  background-image: linear-gradient(to right, var(--line2) 0 1px, transparent 1px);
  background-size: calc(100% / var(--cols)) 100%; }

.job-block { position: absolute; border-radius: 8px; padding: 4px 8px; overflow: hidden; cursor: pointer;
  background: color-mix(in srgb, var(--jc) 15%, #fff); border: 1px solid color-mix(in srgb, var(--jc) 40%, #fff);
  border-left: 3px solid var(--jc); height: 48px; transition: box-shadow .15s, transform .05s; }
.job-block:hover { box-shadow: var(--shadow); z-index: 5; }
.jb-client { font-weight: 800; font-size: .78rem; color: var(--navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.25; }
.jb-time { font-size: .66rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.25; }
.jb-ref { font-size: .66rem; color: var(--cyan-d); font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.25; }
/* compact (monthly) bars stay slim regardless of the above */
.job-block.compact { height: 14px; }
.job-block.status-in_progress { border-left-color: var(--amber); }
.job-block.status-complete { opacity: .72; }

/* ===== MODAL ===================================================== */
.modal-overlay { position: fixed; inset: 0; background: rgba(11, 31, 91, .45); backdrop-filter: blur(2px);
  display: grid; place-items: center; padding: 20px; z-index: 100; }
.modal-card { width: 100%; max-width: 460px; background: #fff; border-radius: 16px; box-shadow: var(--shadow);
  max-height: 90vh; display: flex; flex-direction: column; overflow: hidden; }
.modal-card.wide { max-width: 640px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px;
  border-bottom: 1px solid var(--line); }
.modal-head h2 { font-size: 1.02rem; color: var(--navy); }
.modal-x { background: #f0f3fa; border: none; width: 30px; height: 30px; border-radius: 8px; cursor: pointer;
  color: var(--muted); font-size: .9rem; }
.modal-x:hover { background: #e3e9f4; }
.modal-body { padding: 18px 20px; overflow: auto; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.form-grid .span2 { grid-column: 1 / -1; }
.eng-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.eng-chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 12px 6px 8px; font-size: .84rem; font-weight: 600; cursor: pointer; user-select: none; }
.eng-chip:hover { border-color: #cfdbef; }
.eng-chip .dot { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.eng-chip input { accent-color: var(--cyan); }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 8px; }

.detail-row { display: grid; grid-template-columns: 130px 1fr; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line2); }
.detail-row:last-child { border-bottom: none; }
.dr-k { font-size: .76rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.dr-v { font-size: .9rem; color: var(--ink); }

/* ===== TOASTS ==================================================== */
#jf-toasts { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 200;
  display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast { background: var(--navy); color: #fff; padding: 11px 18px; border-radius: 10px; font-size: .86rem; font-weight: 600;
  box-shadow: var(--shadow); opacity: 0; transform: translateY(8px); transition: .22s; }
.toast.show { opacity: 1; transform: translateY(0); }
.toast-info { background: var(--cyan-d); }

/* ===== WORKER VIEW (mobile-first) =============================== */
.w-shell { max-width: 540px; margin: 0 auto; min-height: 100%; padding: 0 0 40px; background: var(--bg); }
.w-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px;
  background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.w-logo { height: 30px; }
.w-user { display: flex; align-items: center; gap: 10px; }
.w-greeting { padding: 18px 18px 4px; font-size: 1.15rem; font-weight: 800; color: var(--navy); }
.w-datebar { display: flex; align-items: center; justify-content: space-between; padding: 8px 18px 14px; }
.w-date { text-align: center; }
.w-date-main { font-weight: 800; font-size: 1rem; color: var(--ink); }
.w-date-sub { font-size: .78rem; color: var(--muted); }
.w-list { padding: 0 16px; display: flex; flex-direction: column; gap: 12px; }
.w-empty { text-align: center; color: var(--muted); padding: 48px 20px; font-size: .92rem; }
.w-empty-i { font-size: 2rem; margin-bottom: 8px; }
.w-card { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--jc);
  border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow-sm); }
.w-card.status-in_progress { border-left-color: var(--amber); }
.wc-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.wc-client { font-weight: 800; font-size: 1rem; color: var(--navy); }
.wc-time { font-size: .82rem; color: var(--muted); font-weight: 700; white-space: nowrap; }
.wc-ref { font-size: .78rem; color: var(--cyan-d); font-weight: 700; margin-top: 2px; }
.wc-desc { font-size: .88rem; color: var(--ink); margin-top: 8px; line-height: 1.45; }
.wc-actions { display: flex; gap: 8px; margin-top: 12px; }

/* ===== responsive ================================================ */
@media (max-width: 900px) {
  .topbar { padding: 8px 12px; gap: 8px 12px; }
  .tb-right { margin-left: 0; }
  .um-meta { display: none; }
  :root { --wlabel-w: 130px; }
}

/* =====================================================================
   Phase 2 — status colours, clock-in/outcomes, manage workers
   ===================================================================== */
:root {
  --st-onsite: #1f8fff;
  --st-done:   #28c76f;
  --st-fail:   #e5484d;
  --st-ext:    #ff8a3d;
  --st-sched:  #9aa7bd;
}
select.in { appearance: auto; }
input[type="color"] { -webkit-appearance: none; appearance: none; border: 1px solid var(--line);
  border-radius: 8px; width: 42px; height: 36px; padding: 3px; background: #fff; cursor: pointer; }

/* status dots */
.st-dot, .jb-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--st-sched); }
.jb-dot { margin-right: 5px; vertical-align: middle; }
.st-on_site { background: var(--st-onsite); }
.st-completed { background: var(--st-done); }
.st-failed { background: var(--st-fail); }
.st-needs_extend { background: var(--st-ext); }
.jb-dot.st-on_site { animation: pulse 1.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(31,141,255,.5); } 70% { box-shadow: 0 0 0 5px rgba(31,141,255,0); } 100% { box-shadow: 0 0 0 0 rgba(31,141,255,0); } }

/* calendar block status accents */
.job-block.status-on_site { border-left-color: var(--st-onsite); box-shadow: inset 0 0 0 1px rgba(31,141,255,.35); }
.job-block.status-completed { border-left-color: var(--st-done); }
.job-block.status-failed { border-left-color: var(--st-fail); }
.job-block.status-needs_extend { border-left-color: var(--st-ext); }

/* status badge (worker cards + detail) */
.badge-on_site, .badge-completed, .badge-failed, .badge-needs_extend {
  --bg: var(--st-sched);
}
.badge-on_site { --bg: var(--st-onsite); }
.badge-completed { --bg: var(--st-done); }
.badge-failed { --bg: var(--st-fail); }
.badge-needs_extend { --bg: var(--st-ext); }
.wc-status { display: inline-flex; align-items: center; gap: 7px; margin-top: 8px; padding: 5px 11px;
  border-radius: 999px; font-size: .78rem; font-weight: 700; color: #fff; background: var(--bg); }
.wc-status .st-dot { background: rgba(255,255,255,.9); }
.wc-status .st-note { font-weight: 500; opacity: .95; }
.detail-row.dr-status .dr-v { display: inline-block; padding: 2px 10px; border-radius: 999px; color: #fff;
  font-size: .8rem; font-weight: 700; background: var(--bg); }

/* worker: view toggle + agenda groups */
.w-seg { display: flex; margin: 0 16px 6px; }
.w-seg .seg-btn { flex: 1; }
.w-daygroup { display: flex; align-items: baseline; gap: 8px; margin: 14px 4px 2px; }
.wdg-dow { font-weight: 800; color: var(--navy); font-size: .92rem; }
.wdg-date { color: var(--muted); font-size: .82rem; }

/* worker: clock-in + outcome buttons */
.btn-clock { width: 100%; margin-top: 12px; padding: 12px; border-radius: 10px; border: none; cursor: pointer;
  font-size: .92rem; font-weight: 800; color: #fff; background: var(--navy); }
.btn-clock:hover { background: var(--navy2); }
.btn-clock.on { background: var(--st-onsite); }
.clk-since { font-weight: 500; font-size: .8rem; opacity: .92; }
.wc-outcomes { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.oc-btn { flex: 1; min-width: 92px; padding: 9px 8px; border-radius: 9px; cursor: pointer; font-size: .8rem; font-weight: 700;
  border: 1px solid var(--line); background: #fff; transition: .15s; }
.oc-done { color: var(--st-done); border-color: #b9ead0; }
.oc-done:hover { background: #eafaf1; }
.oc-fail { color: var(--st-fail); border-color: #f3c2c4; }
.oc-fail:hover { background: #fdeded; }
.oc-ext { color: #d97524; border-color: #f6d6b8; }
.oc-ext:hover { background: #fff3e8; }
.oc-lead { color: var(--muted); font-size: .86rem; margin-bottom: 12px; }

/* job detail activity timeline */
.tl-head { margin: 14px 0 8px; font-size: .74rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.tl-row { padding: 8px 0; border-bottom: 1px solid var(--line2); }
.tl-row:last-child { border-bottom: none; }
.tl-kind { display: inline-block; font-weight: 700; font-size: .82rem; padding-left: 16px; position: relative; color: var(--ink); }
.tl-kind::before { content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 9px; height: 9px; border-radius: 50%; background: var(--st-sched); }
.tl-kind.st-on_site::before { background: var(--st-onsite); }
.tl-kind.st-completed::before { background: var(--st-done); }
.tl-kind.st-failed::before { background: var(--st-fail); }
.tl-kind.st-needs_extend::before { background: var(--st-ext); }
.tl-when { color: var(--muted); font-size: .78rem; margin-left: 8px; }
.tl-note { font-size: .86rem; color: var(--ink); margin-top: 3px; padding-left: 16px; }

/* Manage Workers */
.mw-actions { margin-bottom: 14px; }
.mw-list { display: flex; flex-direction: column; gap: 8px; }
.mw-row { display: flex; align-items: center; gap: 10px; padding: 8px; border: 1px solid var(--line); border-radius: 10px; }
.avatar.sm { width: 30px; height: 30px; font-size: .72rem; }
.mw-name { flex: 1; min-width: 90px; }
.mw-role { font-size: .72rem; font-weight: 800; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.mw-role.role-admin { background: #e7edfb; color: var(--navy); }
.mw-role.role-engineer { background: #e8f8fc; color: var(--cyan-d); }
.mw-active { display: inline-flex; align-items: center; gap: 5px; font-size: .8rem; color: var(--muted); white-space: nowrap; }
.mw-active input { accent-color: var(--cyan); }

/* Add User */
.au-hint { font-size: .82rem; color: var(--muted); margin: 12px 0; line-height: 1.5; }
.au-result { display: none; }
.au-result.show { display: block; background: #f0f9fc; border: 1px solid #d6eef4; border-radius: 10px; padding: 12px; margin: 8px 0; font-size: .88rem; }
.au-temp { margin-top: 6px; font-size: .9rem; }
.au-temp code { font-size: 1rem; }
.au-sub { color: var(--muted); font-size: .8rem; margin-top: 4px; }

/* worker top-bar workers button spacing */
.user-menu .btn-ghost { white-space: nowrap; }

/* job-detail footer (Edit job button) */
.detail-foot { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 16px; }

/* ---- per-company branding + GB3D credit ---- */
.company-logo { max-height: 54px; max-width: 70%; align-self: flex-start; margin-bottom: 2px; }
.tb-company { font-weight: 800; color: var(--navy); font-size: .95rem; white-space: nowrap; }
.w-brand { display: flex; align-items: center; gap: 8px; }
.w-company { font-weight: 800; color: var(--navy); font-size: .9rem; }

.gb3d-credit { display: inline-flex; gap: 5px; align-items: center; color: var(--muted);
  font-size: .72rem; text-decoration: none; }
.gb3d-credit-logo { height: 20px; width: auto; }
.gb3d-credit strong { color: var(--navy); }
.gb3d-credit:hover { text-decoration: underline; }
.gb3d-credit.fixed { position: fixed; right: 10px; bottom: 10px; z-index: 40;
  background: rgba(255, 255, 255, .85); padding: 3px 10px; border-radius: 999px;
  box-shadow: var(--shadow-sm); backdrop-filter: blur(3px); }
@media (max-width: 900px) { .tb-company { display: none; } }

/* ---- monthly view: whole month squeezed to fit ---- */
/* min-width:0 + clip lets the day cells shrink below their text width so the
   whole month fits with no horizontal scroll (numbers clip on very small screens). */
.cal-content.month .cal-colhead,
.cal-content.month .cal-track { min-width: 0; overflow: hidden; }
.cal-content.month .cal-colhead { padding: 6px 1px; border-right-color: var(--line); }
.cal-content.month .ch-main { font-size: .72rem; }
.cal-content.month .ch-sub { font-size: .58rem; }
/* compact job bars (no text — hover/click for detail) */
.job-block.compact { height: 14px; padding: 0; border-radius: 4px;
  background: color-mix(in srgb, var(--jc) 55%, #fff);
  border: 1px solid color-mix(in srgb, var(--jc) 65%, #fff); border-left: 3px solid var(--jc); }
.job-block.compact:hover { box-shadow: var(--shadow); z-index: 5; filter: brightness(.97); }

/* ---- holidays ---- */
.holiday-block { position: absolute; top: 2px; bottom: 2px; z-index: 0; pointer-events: none;
  background: repeating-linear-gradient(45deg, #eef1f6, #eef1f6 6px, #e2e7f0 6px, #e2e7f0 12px);
  border: 1px dashed #c3ccdb; border-radius: 6px; display: flex; align-items: center; justify-content: center;
  overflow: hidden; }
.hb-label { color: #7a8699; font-size: .66rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.holiday-block:has(+ .job-block) { opacity: .9; }

/* holiday requests button + badge (office top bar) */
.hol-btn { position: relative; }
.hol-badge { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 6px;
  background: var(--st-fail); color: #fff; border-radius: 999px; font-size: .7rem; font-weight: 800; }

/* requests list (shared by office review + worker "my requests") */
.hr-list, .hol-mine { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.hr-row { display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; }
.hr-main { min-width: 0; }
.hr-who { font-weight: 800; color: var(--navy); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.hr-dates { font-size: .82rem; color: var(--ink); margin-top: 2px; }
.hr-note { font-size: .82rem; color: var(--muted); margin-top: 3px; }
.hr-decision { font-size: .82rem; color: var(--st-fail); margin-top: 4px; font-weight: 600; }
.hr-row.status-approved .hr-decision { color: var(--st-done); }

/* co-workers line (worker card) + activity author (office timeline) */
.wc-with { font-size: .82rem; color: var(--cyan-d); margin-top: 6px; font-weight: 700; }
.tl-who { font-weight: 800; color: var(--navy); font-size: .82rem; margin-right: 8px; }

/* ---- multi-tenant: signup, plans, tier usage ---- */
.login-signup { text-align: center; font-size: .82rem; color: var(--muted); margin-top: 4px; }
.login-signup a { color: var(--cyan-d); font-weight: 700; text-decoration: none; }
.login-signup a:hover { text-decoration: underline; }
.signup-card { max-width: 420px; }
.signup-confirm { color: var(--ink); font-size: .9rem; line-height: 1.5; }
.tier-list { border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px; margin: 6px 0 2px; }
.tier-row { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: baseline;
  padding: 6px 0; border-bottom: 1px solid var(--line2); font-size: .84rem; }
.tier-row:last-child { border-bottom: none; }
.tier-name { font-weight: 800; color: var(--navy); }
.tier-max { color: var(--muted); font-size: .8rem; }
.tier-price { font-weight: 800; color: var(--cyan-d); }
.mw-plan { display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: #f0f9fc; border: 1px solid #d6eef4; border-radius: 10px; padding: 8px 12px; margin-bottom: 12px; font-size: .86rem; }
.mw-plan.at-limit { background: #fff3e8; border-color: #f6d6b8; }
.mw-plan strong { color: var(--navy); }
.mw-limit-note { font-size: .78rem; color: #d97524; margin-left: 10px; }
.hr-actions { display: flex; gap: 6px; flex-shrink: 0; }
.hr-status { font-size: .66rem; font-weight: 800; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; letter-spacing: .03em; }
.badge-pending { background: #fff3e8; color: #d97524; }
.badge-approved { background: #eafaf1; color: var(--st-done); }
.badge-declined { background: #fdeded; color: var(--st-fail); }
.w-user { flex-wrap: wrap; justify-content: flex-end; }

/* email schedule modal */
.es-section { margin-bottom: 16px; }
.es-section .seg { margin-top: 6px; }
.es-range { margin-top: 8px; font-size: .88rem; color: var(--muted); }
.es-range strong { color: var(--navy); }
.es-head { display: flex; align-items: center; justify-content: space-between; }
.es-all { display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; color: var(--muted); font-weight: 600; }
.es-all input { accent-color: var(--cyan); }
