/* 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: #eef6fd;
  --surface-muted: #f6faff;
  --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 {
  background: linear-gradient(165deg, #14365f 0%, #102b50 54%, #0b2446 100%);
  box-shadow: 6px 0 22px rgba(16, 45, 87, .08);
}
.app-has-sidebar .sidebar-brand {
  min-height: 106px;
  border-bottom-color: rgba(225, 242, 255, .16);
}
.app-has-sidebar .sidebar-brand-caption {
  color: #c9e3f4;
  font-size: 12px;
  letter-spacing: .015em;
}
.app-has-sidebar .sidebar-section-label { color: #bbd5e9; }
.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: #e2f0fa;
}
.app-has-sidebar .app-sidebar .nav-icon { color: #b1d8ef; }
.app-has-sidebar .app-sidebar .nav-chip:hover,
.app-has-sidebar .app-sidebar .nav-group-summary:hover {
  border-color: rgba(191, 230, 249, .22);
  background: rgba(231, 247, 255, .11);
  color: #fff;
}
.app-has-sidebar .app-sidebar .nav-chip.is-active {
  border-color: rgba(175, 219, 248, .48);
  background: #285783;
  box-shadow: inset 3px 0 0 #83c86b;
  color: #fff;
}
.app-has-sidebar .app-sidebar .nav-group[open] .nav-group-summary {
  background: rgba(231, 247, 255, .08);
}
.app-has-sidebar .app-sidebar .nav-badge { background: #b42318; color: #fff; }
.app-has-sidebar .sidebar-motto {
  position: relative;
  flex: 0 0 auto;
  min-height: 148px;
  margin: 4px 17px 0;
  padding: 29px 4px 0;
  color: #f0f8ff;
  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: #8bd46b;
  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: #9fd5f7;
  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: 11px; }
  .app-has-sidebar .app-sidebar .nav-icon { display: inline-flex; }
}

/* A calm, consistent chrome across Legal, Supervision, Sales, People and tools. */
.app-has-sidebar .app-topbar.nav {
  min-height: 66px;
  border-bottom-color: #d9e8f4;
  background: rgba(249, 253, 255, .97);
  box-shadow: 0 2px 12px rgba(16, 45, 87, .045);
}
.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:
    linear-gradient(90deg, rgba(226, 244, 255, .98) 0%, rgba(226, 244, 255, .95) 31%, rgba(226, 244, 255, .74) 51%, rgba(226, 244, 255, .05) 67%),
    url('/assets/home-honesty-consultation-20261014.webp') right center / cover no-repeat;
  box-shadow: var(--shadow-lg);
}
.app-has-sidebar .home-page .home-hero-identity > div::before {
  top: auto;
  right: 0;
  bottom: 0;
  left: 0;
  width: 52%;
  height: 5px;
  border-radius: 0 100% 0 0;
  background: linear-gradient(90deg, #79ba65, #8fc9ef);
}
.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-hero-actions .button {
  border-color: #197b69;
  background: #197b69;
  color: #fff;
}
.app-has-sidebar .home-hero-actions .button.secondary {
  border-color: #9bc9d8;
  background: rgba(255, 255, 255, .9);
  color: #174773;
}
.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: #f5fbff; }
.app-has-sidebar .home-workspace-card {
  border-color: #dce9f4;
  background-color: #fff;
  color: #142e52;
}
.app-has-sidebar .home-workspace-card::before { background: #5aa563; }
.app-has-sidebar .home-workspace-card__arrow { color: #187d69; }
.app-has-sidebar .home-workspace-card:hover,
.app-has-sidebar .home-workspace-card:focus-visible { border-color: #78bda9; }
.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%; }
}
@media (max-width: 760px) {
  .app-has-sidebar .home-page .home-hero-identity > div {
    min-height: 220px;
    padding: 22px 18px;
    background:
      linear-gradient(90deg, rgba(226, 244, 255, .98) 0%, rgba(226, 244, 255, .93) 68%, rgba(226, 244, 255, .62) 100%),
      url('/assets/home-honesty-consultation-20261014.webp') right center / cover no-repeat;
  }
  .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; }
}
@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; }
}

/* 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; }
}
