html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}
/* ============ Procare HR branding (procarehr.com palette) ============ */
:root {
  --piq-blue: #1b76bc;
  --piq-navy: #0f283f;
  --piq-gold: #ffcb3f;
  --piq-cream: #f2f0eb;
  --piq-blue-dark: #145a91;
}
body { font-family: 'Poppins', system-ui, -apple-system, sans-serif; color: #1d2b3a; }
h1, h2, h3, .piq-serif { font-family: 'DM Serif Text', Georgia, serif; }

.piq-navbar { background: #fff; }
.piq-navbar .nav-link { color: var(--piq-navy); font-weight: 500; }
.piq-navbar .nav-link:hover { color: var(--piq-blue); }
.piq-brand-suffix {
  font-family: 'DM Serif Text', Georgia, serif; font-size: 1.5rem; line-height: 1;
  color: var(--piq-blue); border-left: 2px solid var(--piq-gold); padding-left: .5rem;
}
.piq-footer {
  background: var(--piq-navy); color: rgba(255,255,255,.75);
  font-size: .85rem; position: absolute; bottom: 0; width: 100%; white-space: normal; line-height: 1.6;
}
.piq-footer a { color: var(--piq-gold); text-decoration: none; }

.piq-btn-primary {
  background: var(--piq-blue); border: none; color: #fff; font-weight: 600;
  padding-left: 1.6rem; padding-right: 1.6rem;
}
.piq-btn-primary:hover { background: var(--piq-blue-dark); color: #fff; }
.piq-btn-outline { border: 2px solid var(--piq-blue); color: var(--piq-blue); font-weight: 600; }
.piq-btn-outline:hover { background: var(--piq-blue); color: #fff; }

/* ---- landing hero ---- */
.piq-hero {
  background: linear-gradient(135deg, var(--piq-navy) 0%, #14385c 60%, var(--piq-blue) 140%);
  color: #fff; margin-top: -1rem;
}
.piq-eyebrow { text-transform: uppercase; letter-spacing: .18em; font-size: .75rem; color: var(--piq-gold); font-weight: 600; }
.piq-hero-title { font-size: clamp(2.2rem, 4.5vw, 3.4rem); line-height: 1.15; }
.piq-gold { color: var(--piq-gold); }
.piq-hero-sub { font-size: 1.05rem; color: rgba(255,255,255,.85); max-width: 560px; margin: 1.25rem 0 1.75rem; font-weight: 300; }
.piq-hero-note { font-size: .85rem; color: rgba(255,255,255,.7); }

.piq-hero-card {
  background: #fff; border-radius: 14px; padding: 1.1rem 1.25rem 1rem;
  box-shadow: 0 24px 60px rgba(0,0,0,.35); color: var(--piq-navy);
}
.piq-hero-card-header { display: flex; gap: 6px; margin-bottom: .9rem; }
.piq-hero-card-header span { width: 10px; height: 10px; border-radius: 50%; background: #e3e8ee; }
.piq-hero-card-header span:first-child { background: var(--piq-gold); }
.piq-kpi-row { display: flex; gap: .75rem; margin-bottom: 1rem; }
.piq-kpi { flex: 1; background: var(--piq-cream); border-radius: 8px; padding: .55rem .7rem; }
.piq-kpi-label { font-size: .58rem; letter-spacing: .06em; color: #6b7a89; font-weight: 600; }
.piq-kpi-value { font-size: 1.35rem; font-weight: 700; font-family: 'Poppins'; }
.piq-kpi-unit { font-size: .8rem; }
.piq-kpi-delta { font-size: .62rem; font-weight: 600; }
.piq-kpi-delta.good { color: #127a3d; }
.piq-kpi-delta.bad { color: #b42318; }
.piq-chart { display: flex; align-items: flex-end; gap: 7px; height: 90px; padding: 0 .25rem; }
.piq-bar { flex: 1; background: linear-gradient(180deg, var(--piq-blue), var(--piq-blue-dark)); border-radius: 3px 3px 0 0; }
.piq-bar:nth-child(2n) { background: linear-gradient(180deg, #8fc1e8, #6faedd); }
.piq-chart-caption { text-align: center; font-size: .68rem; color: #6b7a89; margin-top: .5rem; }

.piq-feature { text-align: center; padding: 1rem .75rem; }
.piq-feature-icon { font-size: 2rem; margin-bottom: .5rem; }
.piq-feature h5 { font-family: 'Poppins'; font-weight: 600; color: var(--piq-navy); }
.piq-feature p { font-size: .9rem; color: #5c6b7a; }

.piq-band { background: var(--piq-cream); }
.piq-stat { font-family: 'DM Serif Text', Georgia, serif; font-size: 2.2rem; color: var(--piq-blue); }
.piq-stat-label { font-size: .85rem; color: #5c6b7a; }

/* sign-in card inside the marketing hero */
.piq-signin-card { padding: 1.75rem 1.75rem 1.25rem; max-width: 430px; margin-left: auto; }
.piq-signin-card .form-control { padding: .65rem .8rem; }
.piq-signin-card .form-control:focus { border-color: var(--piq-blue); box-shadow: 0 0 0 .2rem rgba(27,118,188,.15); }

/* ---- branded auth pages ---- */
.piq-auth-wrap { max-width: 430px; margin: 2.5rem auto; }
.piq-auth-card {
  background: #fff; border: 1px solid #e5e9ef; border-radius: 14px;
  padding: 2rem 2rem 1.5rem; box-shadow: 0 12px 40px rgba(15,40,63,.08);
}
.piq-auth-card .form-control { padding: .65rem .8rem; }
.piq-auth-card .form-control:focus { border-color: var(--piq-blue); box-shadow: 0 0 0 .2rem rgba(27,118,188,.15); }
.piq-auth-logo { display: block; margin: 0 auto 1rem; height: 44px; }
.piq-auth-title { text-align: center; color: var(--piq-navy); margin-bottom: .25rem; }
.piq-auth-sub { text-align: center; font-size: .85rem; color: #6b7a89; margin-bottom: 1.5rem; }

/* ---- location/company tab strip (John 08/01, Zoho-style) ----
   Desktop: tabs wrap to additional lines when many are selected.
   Phones: one scrollable row (standard mobile tab pattern) + swipe on the dashboard body. */
.iq-tab-strip { flex-wrap: wrap; row-gap: 2px; }
.iq-tab-strip .nav-link { cursor: pointer; color: #45566a; }
.iq-tab-strip .nav-link.active { font-weight: 600; }
@media (max-width: 767.98px) {
  .iq-tab-strip { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .iq-tab-strip::-webkit-scrollbar { display: none; }
  .iq-tab-strip .nav-link { white-space: nowrap; }
}

/* John 08/01 bug: Bootstrap .sticky-top is z-index 1020, which paints sticky TABLE
   HEADERS over the nav dropdown menus (z-index 1000). Inside a scroll container the
   header only needs to clear the table body, so pin it far below the dropdowns. */
.table-responsive .sticky-top { z-index: 5; }

/* Zoho pages' sticky table headers sit directly on the page (no .table-responsive
   wrapper) and were painting over the Zoho nav dropdown again (John 08/02).
   Any sticky thead only needs to clear its own table body — never the nav (z-1000). */
thead.sticky-top { z-index: 5; }

/* ---- Zoho-design daily dashboard: date strip + grouped KPI rail (John 08/03) ---- */
.iq-date-strip .iq-date-chip {
  border: 1px solid #d6dde4; border-radius: 6px; padding: .35rem .9rem;
  font-weight: 700; font-size: .9rem; color: var(--piq-navy); background: #fff;
}
.iq-date-strip .iq-date-chip-primary { background: var(--piq-blue); color: #fff; border-color: var(--piq-blue); }
.iq-kpi-group { overflow: hidden; }
.iq-kpi-group-title {
  background: #e8f1f8; color: var(--piq-blue-dark); font-weight: 700; text-align: center;
  padding: .4rem .5rem; font-size: .95rem; border-bottom: 1px solid #d6dde4;
}
.iq-kpi-tiles { display: grid; }
.iq-kpi-tiles-2 { grid-template-columns: repeat(2, 1fr); }
.iq-kpi-tiles-3 { grid-template-columns: repeat(3, 1fr); }
.iq-kpi-tile { text-align: center; padding: .5rem .25rem; border: .5px solid #eceff2; }
.iq-kpi-tile-label { font-size: .74rem; color: #4a5764; font-weight: 600; }
.iq-kpi-tile-value { font-size: 1.5rem; font-weight: 700; font-family: 'Poppins', sans-serif; color: #111; }
.iq-kpi-tile.iq-drillable:hover { background: #f6fafd; }

/* ---- landing: new-capability band (John 08/03) ---- */
.piq-band-navy { background: var(--piq-navy); }
.piq-band-sub { color: rgba(255,255,255,.75); font-size: .95rem; }
.piq-highlight {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px; padding: 1rem .9rem; height: 100%;
}
.piq-highlight-icon { font-size: 1.5rem; margin-bottom: .35rem; }
.piq-highlight h6 { font-family: 'Poppins', sans-serif; font-weight: 600; color: var(--piq-gold); margin-bottom: .3rem; }
.piq-highlight p { font-size: .82rem; color: rgba(255,255,255,.8); margin-bottom: 0; }

/* ---- portal hub cards + help strip (Emily 08/13) ---- */
.piq-hub-card { transition: box-shadow .12s ease, transform .12s ease; }
.piq-hub-card:hover { box-shadow: 0 .5rem 1rem rgba(16,42,67,.12) !important; transform: translateY(-2px); }
.piq-hub-card .card-title { color: var(--piq-navy); }
.piq-hub-help { background: var(--piq-cream); }
.piq-hub-help-list li { margin-bottom: .45rem; }
.piq-hub-help-list li:last-child { margin-bottom: 0; }

/* ---- client branding (Emily 08/13) ---- */
.piq-brand-powered { font-size: .72rem; letter-spacing: .02em; white-space: nowrap; }

/* ============ Portal theme v2 (John 08/14 mockups) ============
   White navbar with blue underline tabs; white hero bands with big navy
   headlines; light filter bands; navy accent bands/footers. Tokens below are
   shared by client pages AND the global Bootstrap overrides further down. */
:root {
  --iq-slate: #64748b;
  --iq-slate-dark: #45566a;
  --iq-bg: #f6f8fa;
  --iq-band: #f3f5f7;
  --iq-border: #e5e9ef;
  --iq-amber-bg: #fff7e6;
  --iq-amber-border: #f4c752;
  --iq-muted-bg: #f1f3f5;
}

/* ---- navbar: white, blue underline on the active tab ---- */
.piq-navbar { border-bottom: 1px solid var(--iq-border); padding-top: 0; padding-bottom: 0; }
.piq-navbar .navbar-brand { padding: .55rem 0; }
.piq-navbar .nav-link {
  color: var(--iq-slate); font-weight: 500; padding: .95rem .85rem;
  border-bottom: 3px solid transparent; border-top: 3px solid transparent;
}
.piq-navbar .nav-link:hover { color: var(--piq-navy); }
.piq-navbar .nav-link.iq-active {
  color: var(--piq-navy); font-weight: 600; border-bottom-color: var(--piq-blue);
}
/* staff-only cluster: divider + tinted zone + micro-label. Clients never see
   these items (role-gated); the marker tells STAFF what clients can't see. */
.piq-nav-staff {
  display: flex; align-items: center; gap: .1rem;
  background: #eef2f6; border-radius: 8px; margin-left: .9rem; padding: 0 .5rem 0 .75rem;
  position: relative;
}
.piq-nav-staff::before {
  content: ""; position: absolute; left: -.55rem; top: 22%; height: 56%;
  border-left: 1px solid #d7dee6;
}
.piq-nav-staff-label {
  font-size: .6rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--iq-slate); margin-right: .35rem; user-select: none;
}
.piq-nav-staff .nav-link { padding-top: .7rem; padding-bottom: .7rem; border: none; color: var(--iq-slate-dark); }
.piq-nav-staff .nav-link:hover { color: var(--piq-blue); }
@media (max-width: 575.98px) {
  .piq-navbar .nav-link { padding: .55rem .25rem; border-bottom: none; }
  .piq-navbar .nav-link.iq-active { border-left: 3px solid var(--piq-blue); padding-left: .6rem; }
  .piq-nav-staff { margin: .35rem 0; padding: .25rem .6rem; flex-wrap: wrap; }
  .piq-nav-staff::before { display: none; }
}
.piq-nav-email { color: var(--iq-slate); font-size: .85rem; }
.piq-nav-signout { color: var(--piq-blue) !important; font-weight: 600; }

/* ---- white hero band ---- */
.iq-hero { padding: 2.4rem 0 1.9rem; }
.iq-eyebrow {
  text-transform: uppercase; letter-spacing: .16em; font-size: .74rem;
  color: var(--piq-blue); font-weight: 700; margin-bottom: .5rem;
}
.iq-hero-title {
  font-family: 'Poppins', sans-serif; font-weight: 700; color: var(--piq-navy);
  font-size: clamp(1.8rem, 4vw, 2.7rem); line-height: 1.12; letter-spacing: -.01em;
  margin-bottom: .6rem;
}
.iq-hero-sub { color: var(--iq-slate); font-size: 1.02rem; max-width: 720px; margin-bottom: 0; }
.iq-hero-sub .iq-accent { color: var(--piq-blue); }

/* ---- full-width light filter band ---- */
.iq-filter-band { background: var(--iq-band); border-top: 1px solid var(--iq-border); border-bottom: 1px solid var(--iq-border); padding: 1rem 0; }
.iq-filter-label {
  display: block; text-transform: uppercase; letter-spacing: .1em; font-size: .66rem;
  font-weight: 700; color: var(--iq-slate); margin-bottom: .3rem;
}
.iq-filter-band .form-select, .iq-filter-band .form-control { background-color: #fff; border-color: #d6dde4; }

/* ---- stat tiles ---- */
.iq-stat-row { display: flex; flex-wrap: wrap; gap: .75rem; }
.iq-stat {
  background: #fff; border: 1px solid var(--iq-border); border-radius: 10px;
  padding: .7rem 1.1rem; min-width: 9.5rem;
}
.iq-stat-num { font-size: 1.45rem; font-weight: 700; color: var(--piq-navy); line-height: 1.15; }
.iq-stat-label { font-size: .78rem; color: var(--iq-slate); }
.iq-stat.warn { background: var(--iq-amber-bg); border-color: #f3dfae; }
.iq-stat.warn .iq-stat-num { color: #8a5a00; }

/* ---- hub cards (Dashboards home) ---- */
.iq-card-grid .card { border: 1px solid var(--iq-border); border-radius: 12px; }
.iq-open-link { color: var(--piq-blue); font-weight: 600; font-size: .9rem; }
.iq-card-coach { background: var(--piq-navy); color: #fff; border: none !important; }
.iq-card-coach .card-title { color: #fff !important; }
.iq-card-coach p { color: rgba(255,255,255,.82); }
.iq-card-coach .iq-open-link { color: var(--piq-gold); }

/* ---- navy "More ways in" band ---- */
.iq-more-band { background: var(--piq-navy); color: #fff; }
.iq-more-band h4 { color: #fff; font-family: 'Poppins', sans-serif; font-weight: 700; }
.iq-more-band .iq-more-sub { color: rgba(255,255,255,.78); font-size: .95rem; }
.iq-more-tile {
  display: block; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px; padding: 1rem 1.1rem; height: 100%; text-decoration: none;
  transition: background .12s ease;
}
.iq-more-tile:hover { background: rgba(255,255,255,.12); }
.iq-more-tile h6 { color: var(--piq-gold); font-weight: 600; margin-bottom: .3rem; }
.iq-more-tile p { color: rgba(255,255,255,.8); font-size: .84rem; margin-bottom: 0; }

/* ---- day-grouped tables (Past Reports) ---- */
.iq-day-row td {
  background: var(--iq-muted-bg) !important; font-size: .72rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: var(--iq-slate-dark);
  padding-top: .45rem; padding-bottom: .45rem;
}
.iq-table-meta { font-size: .82rem; color: var(--iq-slate); }

/* ---- global Bootstrap overrides: every page inherits the theme ---- */
.btn-primary, .btn-primary:focus {
  background-color: var(--piq-blue); border-color: var(--piq-blue); font-weight: 600;
}
.btn-primary:hover, .btn-primary:active { background-color: var(--piq-blue-dark) !important; border-color: var(--piq-blue-dark) !important; }
.btn-outline-primary { color: var(--piq-blue); border-color: var(--piq-blue); font-weight: 600; }
.btn-outline-primary:hover { background-color: var(--piq-blue); border-color: var(--piq-blue); }
a { color: var(--piq-blue); }
a:hover { color: var(--piq-blue-dark); }
.text-primary { color: var(--piq-blue) !important; }
.bg-primary, .badge.text-bg-primary { background-color: var(--piq-blue) !important; }
.table > thead th {
  font-size: .72rem; text-transform: uppercase; letter-spacing: .07em;
  color: var(--iq-slate); font-weight: 700; border-bottom-width: 1px;
}
.form-control:focus, .form-select:focus {
  border-color: var(--piq-blue); box-shadow: 0 0 0 .2rem rgba(27,118,188,.12);
}
.nav-tabs .nav-link.active { color: var(--piq-navy); font-weight: 600; }
.card { border-color: var(--iq-border); }
