/* The shared employee visual system. Loaded last for every page rendered by layout_shell. */
body.app-has-sidebar {
  --brand: #102d57;
  --brand-2: #174773;
  --brand-3: #1a5d8e;
  --ink: #142e52;
  --muted: #546b88;
  --line: #dce9f4;
  --line-strong: #c9dced;
  --bg: #fff;
  --surface-muted: #fff;
  --shadow: 0 3px 14px rgba(16, 45, 87, .045);
  --shadow-lg: 0 8px 26px rgba(16, 45, 87, .07);
  background: var(--bg);
  color: var(--ink);
}

/* Navigation is the same access-filtered navigation on every authenticated page. */
.app-has-sidebar .app-sidebar {
  border-right: 1px solid #dbe5ed;
  background: #fff;
  box-shadow: none;
}
.app-has-sidebar .sidebar-brand {
  min-height: 106px;
  border-bottom-color: #dbe5ed;
}
.app-has-sidebar .sidebar-brand-caption {
  color: #3f6080;
  font-size: 12px;
  letter-spacing: .015em;
}
.app-has-sidebar .sidebar-section-label { color: #607c98; }
.app-has-sidebar .sidebar-home-nav { padding: 0 10px 4px; }
.app-has-sidebar .app-sidebar .nav-chip,
.app-has-sidebar .app-sidebar .nav-group-summary {
  min-height: 43px;
  color: #153967;
}
.app-has-sidebar .app-sidebar .nav-icon {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  align-items: center;
  justify-content: center;
  border: 1px solid #dbe5ed;
  border-radius: 8px;
  background: #fff;
  color: #315b82;
}
.app-has-sidebar .app-sidebar .nav-icon svg { display: block; width: 18px; height: 18px; }
.app-has-sidebar .app-sidebar .nav-group-menu .nav-icon { width: 24px; height: 24px; flex-basis: 24px; }
.app-has-sidebar .app-sidebar .nav-group-menu .nav-icon svg { width: 15px; height: 15px; }
.app-has-sidebar .app-sidebar .nav-chip:hover,
.app-has-sidebar .app-sidebar .nav-group-summary:hover {
  border-color: #b8cddd;
  background: #fff;
  color: #103765;
}
.app-has-sidebar .app-sidebar .nav-chip.is-active {
  border-color: #8eb1ce;
  background: #fff;
  box-shadow: inset 3px 0 0 #3478a9;
  color: #103765;
}
.app-has-sidebar .app-sidebar .nav-chip.is-active .nav-icon { border-color: #b8cddd; }
.app-has-sidebar .app-sidebar .nav-group[open] > .nav-group-summary {
  background: #fff;
  border-color: #b8cddd;
  color: #103765;
}
.app-has-sidebar .app-sidebar .nav-group-menu .nav-chip {
  height: auto;
  white-space: normal;
  line-height: 1.3;
}
.app-has-sidebar .app-sidebar .nav-group-menu .nav-label { white-space: normal; }
.app-has-sidebar .app-sidebar .nav-group-menu .nav-group-menu { padding-left: 8px; }
.app-has-sidebar .app-sidebar .nav-badge { border: 1px solid #dfb9b0; background: #fff; color: #a9442f; }
.app-has-sidebar .sidebar-version { border-top-color: #dbe5ed; color: #607c98; }
.app-has-sidebar .sidebar-motto {
  position: relative;
  flex: 0 0 auto;
  min-height: 148px;
  margin: 4px 17px 0;
  padding: 29px 4px 0;
  color: #3f6080;
  pointer-events: none;
}
.app-has-sidebar .sidebar-motto p {
  position: relative;
  z-index: 1;
  margin: 0;
  font-family: "Segoe Script", "Apple Chancery", "Brush Script MT", cursive;
  font-size: 23px;
  line-height: 1.16;
  transform: rotate(-8deg);
}
.app-has-sidebar .sidebar-motto__heart {
  position: absolute;
  top: 2px;
  right: 14px;
  width: 39px;
  height: 41px;
  fill: none;
  stroke: #3478a9;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3.4;
  transform: rotate(14deg);
}
.app-has-sidebar .sidebar-motto__wave {
  display: block;
  width: 100%;
  height: 37px;
  margin-top: 6px;
  fill: none;
  stroke: #8eb1ce;
  stroke-linecap: round;
  stroke-width: 5;
}
.app-has-sidebar .sidebar-version { margin-top: 0; }
.app-has-sidebar .sidebar-account-nav { display: none; }
@media (max-height: 700px) {
  .app-has-sidebar .sidebar-motto { min-height: 96px; padding-top: 16px; }
  .app-has-sidebar .sidebar-motto p { font-size: 18px; }
  .app-has-sidebar .sidebar-motto__heart { width: 27px; height: 29px; }
  .app-has-sidebar .sidebar-motto__wave { height: 21px; margin-top: 1px; }
}
@media (min-width: 1041px) {
  .app-has-sidebar .app-sidebar .nav-chip,
  .app-has-sidebar .app-sidebar .nav-group-summary { gap: 8px; }
  .app-has-sidebar .app-sidebar .nav-icon {
    display: inline-flex;
    width: 22px;
    height: 22px;
    flex-basis: 22px;
  }
  .app-has-sidebar .app-sidebar .nav-group-menu .nav-icon {
    width: 18px;
    height: 18px;
    flex-basis: 18px;
  }
  .app-has-sidebar .app-sidebar .nav-icon svg { width: 15px; height: 15px; }
  .app-has-sidebar .app-sidebar .nav-group-menu .nav-icon svg { width: 13px; height: 13px; }
}

/* A calm, consistent chrome across Legal, Supervision, Sales, People and tools. */
.app-has-sidebar .app-topbar.nav {
  min-height: 66px;
  border-bottom-color: #dbe5ed;
  background: #fff;
  box-shadow: none;
}
.app-has-sidebar .topbar-page-title { color: #14355c; }
.app-has-sidebar .app-topbar .nav-profile-link,
.app-has-sidebar .app-topbar .nav-exit {
  border-color: #d7e6f1;
  background: #fff;
  color: #174773;
}
.app-has-sidebar .app-topbar .nav-profile-link:hover,
.app-has-sidebar .app-topbar .nav-exit:hover { background: #e8f4fb; }
.app-has-sidebar .app-topbar .topbar-page-title { flex:1 1 auto; }
.app-has-sidebar .topbar-account-menu { position:relative; }
.app-has-sidebar .topbar-account-menu > summary {
  display:flex;
  align-items:center;
  gap:9px;
  max-width:245px;
  min-height:44px;
  padding:4px 8px;
  border-radius:8px;
  color:#14355c;
  cursor:pointer;
  list-style:none;
}
.app-has-sidebar .topbar-account-menu > summary::-webkit-details-marker { display:none; }
.app-has-sidebar .topbar-account-menu > summary:hover,
.app-has-sidebar .topbar-account-menu[open] > summary { background:#e8f4fb; }
.app-has-sidebar .topbar-account-menu .nav-user { min-width:0; overflow:hidden; }
.app-has-sidebar .topbar-account-menu .nav-user b,
.app-has-sidebar .topbar-account-menu .nav-user .small {
  display:block;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.app-has-sidebar .topbar-account-chevron { font-size:20px; line-height:1; }
.app-has-sidebar .topbar-account-links {
  position:absolute;
  top:calc(100% + 7px);
  right:0;
  z-index:80;
  display:grid;
  min-width:225px;
  padding:6px;
  border:1px solid #cbddeb;
  border-radius:8px;
  background:#fff;
  box-shadow:0 12px 28px rgba(16,45,87,.18);
}
.app-has-sidebar .topbar-account-links a {
  padding:9px 11px;
  border-radius:6px;
  color:#174773;
  font-weight:650;
  text-decoration:none;
}
.app-has-sidebar .topbar-account-links a:hover { background:#e8f4fb; }
.app-has-sidebar .topbar-account-links a:last-child { border-top:1px solid #e1e8f2; }
@media (max-width:700px) {
  .app-has-sidebar .topbar-account-menu > summary { max-width:48px; padding:4px; }
  .app-has-sidebar .topbar-account-menu .nav-user,
  .app-has-sidebar .topbar-account-chevron { display:none; }
}
.app-has-sidebar .wrap { padding-top: 20px; }
.app-has-sidebar .panel,
.app-has-sidebar .stat,
.app-has-sidebar .kpi-card {
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.app-has-sidebar :is(h1, h2, h3) { color: #142e52; }
.app-has-sidebar :is(input, select, textarea) { border-color: #cbddeb; }
.app-has-sidebar :is(input, select, textarea):focus-visible,
.app-has-sidebar :is(button, a, summary):focus-visible {
  outline: 3px solid #77b9e5;
  outline-offset: 2px;
}
.app-has-sidebar table:not([class]) th { background: #edf6fc; color: #254668; }

/* Existing domain pages keep their own semantic warning/error/success colors. */
.app-has-sidebar :is(.payments-rating-page, .task-center, .sales-plan-page,
    .month-close-overview-page, .au-workspace-page, .training-workspace-page,
    .training-lesson-page, .onboarding-page, .rd-calculator-page) {
  --workspace-navy: #142e52;
  --workspace-ink: #254668;
  --workspace-muted: #546b88;
  --workspace-gold: #5aa563;
  --workspace-line: #dce9f4;
}

/* Hero follows the reference composition, while all operational data stays live. */
.app-has-sidebar .home-page { gap: 14px; }
.app-has-sidebar .home-page .home-hero-identity > div {
  min-height: 265px;
  padding: 26px 32px;
  border-color: #cfe4f2;
  border-radius: 8px;
  background: #fff;
  box-shadow: none;
}
.app-has-sidebar .home-page .home-hero-identity > div::before {
  content: none;
}
.app-has-sidebar .home-page .home-hero-identity .home-eyebrow {
  color: #247355;
  letter-spacing: .07em;
}
.app-has-sidebar .home-page .home-hero-identity h1 {
  max-width: 54%;
  margin: 10px 0 8px;
  color: #102d57;
  font-size: clamp(26px, 2.5vw, 36px);
  line-height: 1.18;
}
.app-has-sidebar .home-page .home-hero-identity .home-identity-description {
  max-width: 45%;
  color: #254668;
  font-size: 15px;
}
.app-has-sidebar .home-overview { border-color: #dce9f4; border-radius: 8px; box-shadow: var(--shadow); }
.app-has-sidebar .home-workspaces { border-left-color: #dce9f4; background: #fff; }
.app-has-sidebar .home-workspaces__links {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: minmax(142px, auto);
  gap: 9px;
}
.app-has-sidebar .home-workspace-card {
  justify-content: flex-start;
  min-height: 142px;
  padding: 12px;
  border-color: #dce9f4;
  background-color: #fff;
  background-image: none;
  color: #142e52;
}
.app-has-sidebar .home-workspace-card::before { content: none; }
.app-has-sidebar .home-workspace-card__icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border: 1px solid #bcdbe9;
  border-radius: 8px;
  background: #eaf6fb;
  color: #27779c;
}
.app-has-sidebar .home-workspace-card__icon svg { width: 20px; height: 20px; }
.app-has-sidebar .home-workspace-card__title,
.app-has-sidebar .home-workspace-card__detail { max-width: 100%; }
.app-has-sidebar .home-workspace-card__title { margin-top: 10px; color: #214d70; }
.app-has-sidebar .home-workspace-card__detail {
  margin-top: auto;
  padding-top: 9px;
  color: #58768c;
  line-height: 1.25;
}
.app-has-sidebar .home-workspace-card:hover,
.app-has-sidebar .home-workspace-card:focus-visible { border-color: #a9cfde; }
.app-has-sidebar .home-workspace-card:focus-visible { outline-color: #27779c; }
.app-has-sidebar .home-page .home-summary-card { border-top-color: #84c4b5; }
.app-has-sidebar .home-page .home-employee-tasks,
.app-has-sidebar .home-page .home-workspaces,
.app-has-sidebar .home-page .month-close-panel,
.app-has-sidebar .home-page .home-summary-card { border-radius: 8px; }

@media (max-width: 1180px) {
  .app-has-sidebar .home-page .home-hero-identity h1,
  .app-has-sidebar .home-page .home-hero-identity .home-identity-description { max-width: 58%; }
  .app-has-sidebar .home-workspaces__links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .app-has-sidebar .home-page .home-hero-identity > div {
    min-height: 220px;
    padding: 22px 18px;
    background: #fff;
  }
  .app-has-sidebar .home-page .home-hero-identity h1,
  .app-has-sidebar .home-page .home-hero-identity .home-identity-description { max-width: 100%; }
  .app-has-sidebar .home-workspaces { border-top-color: #dce9f4; border-left: 0; }
  .app-has-sidebar .home-workspaces__links { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 700px) {
  .app-has-sidebar .sidebar-account-nav {
    display: block;
    padding: 0 10px 8px;
  }
  .app-has-sidebar .sidebar-account-nav .sidebar-section-label {
    padding: 12px 12px 6px;
  }
  .app-has-sidebar .sidebar-account-nav .nav-chip { padding-inline: 12px; }
}

/* One shared daily mascot slide across the home and legal workspaces. */
.app-has-sidebar .daily-mascot-hero { min-width: 0; margin: 0; }
.app-has-sidebar .reg-main > .daily-mascot-hero { margin-bottom: 18px; }
.app-has-sidebar .home-page .home-hero-mascot > div,
.app-has-sidebar .daily-mascot-hero > div {
  position: relative;
  display: flex;
  min-height: 320px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  overflow: hidden;
  padding: 26px 32px;
  border: 1px solid #cfe4f2;
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  background-color: #e2f4ff;
  background-image:
    linear-gradient(90deg, rgba(226,244,255,.99) 0%, rgba(226,244,255,.96) 31%, rgba(226,244,255,.72) 52%, rgba(226,244,255,.04) 68%),
    var(--home-hero-art);
  background-position: center, right center;
  background-repeat: no-repeat;
  background-size: cover, auto 110%;
}
.app-has-sidebar .daily-mascot-hero > div::before {
  content: "";
  position: absolute;
  inset: auto auto 0 0;
  width: 52%;
  height: 5px;
  border-radius: 0 100% 0 0;
  background: linear-gradient(90deg, #79ba65, #8fc9ef);
}
.app-has-sidebar .home-page .home-hero-mascot > div { background-color: #e2f4ff; box-shadow: none; }
.app-has-sidebar .home-page .home-hero-mascot > div::before { content: none; }
.app-has-sidebar .daily-mascot-hero .home-hero-greeting {
  margin: 0 0 14px;
  color: #247355;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.25;
}
.app-has-sidebar .daily-mascot-hero .home-hero-section {
  margin: 0 0 8px;
  color: #247355;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
}
.app-has-sidebar .daily-mascot-hero .home-hero-holiday {
  display: inline-block;
  margin: 0 0 14px;
  padding: 7px 12px;
  border: 1px solid #b3d9bd;
  border-radius: 999px;
  background: #effbee;
  color: #236846;
  font-size: 14px;
  font-weight: 750;
}
.app-has-sidebar .daily-mascot-hero .daily-mascot-title {
  max-width: 610px;
  margin: 0 0 13px;
  color: #102d57;
  font-size: clamp(25px, 2.55vw, 33px);
  font-weight: 750;
  line-height: 1.12;
}
.app-has-sidebar .daily-mascot-hero .home-hero-message {
  max-width: 570px;
  margin: 0;
  color: #174773;
  font-size: clamp(17px, 1.7vw, 22px);
  font-weight: 650;
  line-height: 1.3;
}
.app-has-sidebar .daily-mascot-hero .home-hero-message--quote {
  font-size: clamp(16px, 1.5vw, 20px);
  font-style: italic;
  font-weight: 570;
}
.app-has-sidebar .daily-mascot-hero .home-hero-message--long { font-size: clamp(15px, 1.35vw, 18px); }
.app-has-sidebar .daily-mascot-hero .home-hero-credit {
  display: block;
  margin-top: 13px;
  color: #31617e;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}
.app-has-sidebar .daily-mascot-hero--holiday > div,
.app-has-sidebar .daily-mascot-hero--special > div {
  border-color: #c9dbef;
  background-color: #e2f4ff;
}
.app-has-sidebar .daily-mascot-hero--holiday .daily-mascot-title { max-width: 590px; }
.app-has-sidebar .daily-mascot-hero:is(.daily-mascot-hero--holiday, .daily-mascot-hero--birthday) > div {
  min-height: 390px;
  border-color: #365a8b;
  background-color: #071c44;
  background-image:
    linear-gradient(90deg, rgba(4,17,48,.96) 0%, rgba(4,17,48,.91) 34%, rgba(4,17,48,.45) 65%, transparent 100%),
    var(--home-hero-art);
  background-position: center, right 30%;
  background-size: cover, auto 120%;
}
.app-has-sidebar .daily-mascot-hero:is(.daily-mascot-hero--holiday, .daily-mascot-hero--birthday) > div::before { content: none; }
.app-has-sidebar .daily-mascot-hero:is(.daily-mascot-hero--holiday, .daily-mascot-hero--birthday) .home-hero-greeting { color: #e0f0ff; }
.app-has-sidebar .daily-mascot-hero:is(.daily-mascot-hero--holiday, .daily-mascot-hero--birthday) .home-hero-section { color: #ffe09b; }
.app-has-sidebar .daily-mascot-hero:is(.daily-mascot-hero--holiday, .daily-mascot-hero--birthday) .daily-mascot-title {
  max-width: 58%;
  color: #fff;
  font-size: clamp(30px, 3vw, 43px);
  font-weight: 850;
}
.app-has-sidebar .daily-mascot-hero:is(.daily-mascot-hero--holiday, .daily-mascot-hero--birthday) .home-hero-message {
  max-width: 55%;
  color: #f1f7ff;
  font-size: clamp(16px, 1.5vw, 19px);
  font-weight: 550;
}
.app-has-sidebar .daily-mascot-hero--special > div::before {
  width: 100%;
  height: 6px;
  border-radius: 0;
  background: #d18b32;
}
.app-has-sidebar .daily-mascot-hero--special .home-hero-section {
  display: inline-flex;
  padding: 7px 12px;
  border-radius: 999px;
  background: #fff4db;
  color: #825115;
}
@media (max-width: 760px) {
  .app-has-sidebar .home-page .home-hero-mascot > div,
  .app-has-sidebar .daily-mascot-hero > div {
    min-height: 330px;
    padding: 22px 20px;
    background-image:
      linear-gradient(90deg, rgba(226,244,255,.99), rgba(226,244,255,.96) 68%, rgba(226,244,255,.65)),
      var(--home-hero-art);
    background-position: center, 66% center;
  }
  .app-has-sidebar .home-page .home-hero-mascot > div { background-color: #e2f4ff; }
  .app-has-sidebar .daily-mascot-hero .home-hero-greeting { font-size: 17px; }
  .app-has-sidebar .daily-mascot-hero .daily-mascot-title,
  .app-has-sidebar .daily-mascot-hero .home-hero-message { max-width: 100%; }
  .app-has-sidebar .daily-mascot-hero:is(.daily-mascot-hero--holiday, .daily-mascot-hero--birthday) > div {
    min-height: 520px;
    justify-content: flex-start;
    padding: 24px 18px 296px;
    background-image:
      linear-gradient(180deg, #071c44 0%, rgba(7,28,68,.98) 42%, rgba(7,28,68,.16) 60%, transparent 80%),
      var(--home-hero-art);
    background-position: center, right bottom;
    background-size: cover, auto 280px;
  }
  .app-has-sidebar .daily-mascot-hero:is(.daily-mascot-hero--holiday, .daily-mascot-hero--birthday) .daily-mascot-title,
  .app-has-sidebar .daily-mascot-hero:is(.daily-mascot-hero--holiday, .daily-mascot-hero--birthday) .home-hero-message { max-width: 100%; }
  .app-has-sidebar .daily-mascot-hero:is(.daily-mascot-hero--holiday, .daily-mascot-hero--birthday) .daily-mascot-title { font-size: clamp(25px, 6vw, 34px); }
  .app-has-sidebar .daily-mascot-hero:is(.daily-mascot-hero--holiday, .daily-mascot-hero--birthday) .home-hero-message { font-size: 16px; }
}
@media print {
  .app-has-sidebar .daily-mascot-hero > div { min-height: 0; background: #fff; }
}

/* The public sign-in screen uses the same colors and local imagery as the workspaces. */
body:has(.login-shell) { background: #eef6fd; color: #142e52; }
.login-hero {
  background:
    linear-gradient(100deg, rgba(16, 45, 87, .98) 0%, rgba(16, 45, 87, .92) 48%, rgba(16, 45, 87, .22) 100%),
    url('/assets/home-honesty-consultation-20261014.webp') right center / cover no-repeat;
  border-radius: 8px;
  box-shadow: 0 8px 26px rgba(16, 45, 87, .10);
}
.login-brand-pattern { display: none; }
.login-hero::after {
  right: 0;
  bottom: 0;
  width: 58%;
  height: 5px;
  background: linear-gradient(90deg, #79ba65, #8fc9ef);
  opacity: 1;
}
.login-hero .login-title { max-width: 460px; }
.login-hero .login-title p { color: #e1eff9; }
.login-motto {
  position: relative;
  z-index: 1;
  align-self: flex-start;
  margin: 0;
  color: #eaf7ff;
  font-family: "Segoe Script", "Apple Chancery", "Brush Script MT", cursive;
  font-size: 23px;
  line-height: 1.2;
  transform: rotate(-4deg);
}
.login-card.panel {
  border-color: #dce9f4;
  border-radius: 8px;
  box-shadow: 0 8px 26px rgba(16, 45, 87, .07);
}
.login-card .kicker { color: #247355; }
.login-submit-row button { border-color: #197b69; background: #197b69; }
.login-submit-row button:hover { background: #126454; }
.platform-about-hero {
  background: linear-gradient(145deg, #14365f, #0b2446);
  border-bottom: 4px solid #79ba65;
}
@media (max-width: 820px) {
  .login-hero { min-height: 245px; }
}
@media (max-width: 520px) {
  .login-shell { gap: 0; }
  .login-hero {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-height: 112px;
    padding: 20px 22px;
    gap: 8px;
    border-radius: 8px 8px 0 0;
  }
  .login-hero .login-logo { width: 170px; }
  .login-hero .login-title { display: none; }
  .login-hero .login-motto { font-size: 18px; }
  .login-hero + .login-card.panel { border-radius: 0 0 8px 8px; }
}
@media print {
  .app-has-sidebar .sidebar-motto { display: none; }
  .app-has-sidebar .home-page .home-hero-identity > div { min-height: 0; background: #fff; }
}
