/*
 * WebTechs Employee Hub — application shell 1.13.0
 * A focused, full-screen workspace for the employee and HR portals.
 */

body.wteh-webapp-body {
  background: #f5f7fb !important;
  color: #182230;
  font-family: "Vazirmatn Variable", Vazirmatn, Tahoma, "Segoe UI", sans-serif;
  margin: 0 !important;
  min-height: 100svh;
  overflow-x: hidden;
  padding: 0 !important;
}

body.wteh-webapp-body #wpadminbar {
  display: none !important;
}

/* A portal is an isolated application surface; site-wide chat/WhatsApp/floating
 * widgets must not cover its controls. The standalone template applies the
 * same rule inline so late theme styles cannot reveal those widgets again. */
body.wteh-webapp-body > :not(.wteh-webapp-background):not(.wteh-webapp-view):not(.wteh-jalali-picker):not(.wteh-modal):not(.wteh-notification-toast):not(script):not(style):not(link):not(svg),
body.wteh-webapp-body .joinchat,
body.wteh-webapp-body .ht-ctc-chat,
body.wteh-webapp-body #qlwapp,
body.wteh-webapp-body .chaty-widget,
body.wteh-webapp-body .floating-whatsapp,
body.wteh-webapp-body .tawk-min-container,
body.wteh-webapp-body #tidio-chat,
body.wteh-webapp-body .crisp-client,
body.wteh-webapp-body .intercom-lightweight-app,
body.wteh-webapp-body .zsiq_floatmain,
body.wteh-webapp-body [class*="floating-button"],
body.wteh-webapp-body [class*="floating_icon"] {
  display: none !important;
}

.wteh-webapp-background {
  background: #f5f7fb;
  inset: 0;
  pointer-events: none;
  position: fixed;
}

.wteh-webapp-glow,
.wteh-webapp-grid {
  display: none;
}

.wteh-webapp-view {
  min-height: 100svh;
  padding: 0;
  position: relative;
}

.wteh-webapp-body .wteh-shell {
  --wteh-accent-strong: color-mix(in srgb, var(--wteh-accent) 78%, #20145f);
  --wteh-accent-soft: color-mix(in srgb, var(--wteh-accent) 9%, #fff);
  --wteh-accent-faint: color-mix(in srgb, var(--wteh-accent) 5%, transparent);
  --wteh-surface: #fff;
  --wteh-surface-2: #f7f9fc;
  --wteh-surface-3: #eef2f7;
  --wteh-canvas: #f3f6fb;
  --wteh-text: #101828;
  --wteh-text-2: #344054;
  --wteh-text-3: #526075;
  --wteh-accent-readable: color-mix(in srgb, var(--wteh-accent) 78%, #251a70);
  --wteh-border: #e4e7ec;
  --wteh-border-strong: #d0d5dd;
  --wteh-shadow-xs: 0 1px 2px rgba(16, 24, 40, .04);
  --wteh-shadow-sm: 0 2px 8px rgba(16, 24, 40, .055);
  --wteh-shadow-md: 0 12px 30px rgba(16, 24, 40, .09);
  --wteh-ink: var(--wteh-text);
  --wteh-muted: var(--wteh-text-2);
  --wteh-line: var(--wteh-border);
  --wteh-bg: var(--wteh-canvas);
  --wteh-card: var(--wteh-surface);
  color: var(--wteh-text);
  font-family: "Vazirmatn Variable", Vazirmatn, Tahoma, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.8;
  margin: 0;
  max-width: none;
  width: 100%;
}

.wteh-shell *,
.wteh-shell *::before,
.wteh-shell *::after {
  box-sizing: border-box;
}

.wteh-shell h1,
.wteh-shell h2,
.wteh-shell h3,
.wteh-shell h4 {
  color: var(--wteh-text);
  font-family: inherit;
  letter-spacing: -.025em;
}

.wteh-shell a:focus-visible,
.wteh-shell button:focus-visible,
.wteh-shell input:focus-visible,
.wteh-shell select:focus-visible,
.wteh-shell textarea:focus-visible,
.wteh-shell summary:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--wteh-accent) 30%, transparent);
  outline-offset: 2px;
}

/* Full-screen portal frame */
.wteh-webapp-body .wteh-portal {
  background: var(--wteh-canvas);
  border: 0;
  border-radius: 0;
  box-shadow: none;
  min-height: 100svh;
  overflow: visible;
  position: relative;
}

.wteh-portal-header {
  align-items: center;
  backdrop-filter: blur(18px) saturate(150%);
  background: rgba(255, 255, 255, .94);
  border: 0;
  border-bottom: 1px solid var(--wteh-border);
  box-shadow: 0 5px 20px rgba(16, 24, 40, .045);
  color: var(--wteh-text);
  display: flex;
  gap: 24px;
  height: 74px;
  justify-content: space-between;
  min-height: 74px;
  padding: 10px 24px;
  position: sticky;
  top: 0;
  z-index: 60;
}

.wteh-portal-header::after {
  display: none;
}

.wteh-portal-brand {
  align-items: center;
  display: flex;
  flex: 0 0 258px;
  gap: 11px;
  min-width: 0;
}

.wteh-portal-brand .wteh-brand-mark {
  background: linear-gradient(145deg, color-mix(in srgb, var(--wteh-accent) 80%, #8c7cff), var(--wteh-accent-strong));
  border: 0;
  border-radius: 13px;
  box-shadow: 0 7px 17px color-mix(in srgb, var(--wteh-accent) 22%, transparent), inset 0 1px rgba(255, 255, 255, .36);
  flex: 0 0 44px;
  font-size: 13px;
  height: 44px;
  letter-spacing: -.04em;
}

.wteh-portal-brand .wteh-brand-mark::after {
  border-color: rgba(255, 255, 255, .25);
  inset: 4px;
}

.wteh-portal-brand strong,
.wteh-portal-brand span {
  display: block;
}

.wteh-portal-brand strong {
  color: var(--wteh-text);
  font-size: 14px;
  font-weight: 850;
  line-height: 1.5;
}

.wteh-portal-brand span {
  color: var(--wteh-text-3);
  font-size: 10.5px;
  margin-top: 1px;
}

.wteh-header-context {
  align-items: center;
  background: var(--wteh-surface-2);
  border: 1px solid var(--wteh-border);
  border-radius: 12px;
  display: flex;
  gap: 8px;
  margin-inline: auto;
  min-height: 39px;
  padding: 6px 11px;
}

.wteh-header-context span {
  color: var(--wteh-text-3);
  font-size: 9.5px;
}

.wteh-header-context strong {
  color: var(--wteh-text-2);
  font-size: 11px;
  font-weight: 750;
}

.wteh-header-actions {
  align-items: center;
  display: flex;
  gap: 8px;
}

.wteh-theme-toggle,
.wteh-header-menu,
.wteh-notification-toggle {
  align-items: center;
  background: #fff;
  border: 1px solid var(--wteh-border);
  border-radius: 12px;
  box-shadow: var(--wteh-shadow-xs);
  color: var(--wteh-text-2);
  cursor: pointer;
  display: inline-flex;
  height: 42px;
  justify-content: center;
  padding: 0;
  position: relative;
  transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
  width: 42px;
}

.wteh-theme-toggle:hover,
.wteh-header-menu:hover,
.wteh-notification-toggle:hover,
.wteh-notification-toggle[aria-expanded="true"] {
  background: var(--wteh-accent-soft);
  border-color: color-mix(in srgb, var(--wteh-accent) 24%, var(--wteh-border));
  color: var(--wteh-accent-readable);
  transform: translateY(-1px);
}

.wteh-theme-toggle {
  background: linear-gradient(145deg, #fbfbff, var(--wteh-accent-soft));
  border-color: color-mix(in srgb, var(--wteh-accent) 17%, var(--wteh-border));
  color: var(--wteh-accent-readable);
}

.wteh-theme-icon,
.wteh-theme-icon svg {
  display: block;
  height: 20px;
  width: 20px;
}

.wteh-theme-icon svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.wteh-theme-sun {
  display: none !important;
}

.wteh-theme-dark .wteh-theme-moon {
  display: none !important;
}

.wteh-theme-dark .wteh-theme-sun {
  display: block !important;
}

.wteh-header-menu {
  display: none;
  gap: 6px;
  padding: 0 11px;
  width: auto;
}

.wteh-header-menu > svg {
  fill: none;
  height: 19px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.9;
  width: 19px;
}

.wteh-header-menu > .wteh-menu-label {
  color: inherit;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}

.wteh-bell-icon,
.wteh-bell-icon svg {
  display: block;
  height: 19px;
  width: 19px;
}

.wteh-bell-icon svg,
.wteh-user-chip > a svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.wteh-notification-toggle > b {
  align-items: center;
  background: #f04438;
  border: 2px solid #fff;
  border-radius: 999px;
  color: #fff;
  display: flex;
  font-size: 8px;
  font-weight: 850;
  height: 19px;
  justify-content: center;
  min-width: 19px;
  padding: 0 3px;
  position: absolute;
  right: -6px;
  top: -6px;
}

.wteh-user-chip {
  align-items: center;
  background: transparent;
  border: 0;
  border-right: 1px solid var(--wteh-border);
  border-radius: 0;
  display: flex;
  gap: 9px;
  margin-right: 3px;
  min-height: 44px;
  padding: 0 11px 0 0;
}

.wteh-avatar {
  align-items: center;
  background: color-mix(in srgb, var(--wteh-accent) 12%, #fff);
  border: 1px solid color-mix(in srgb, var(--wteh-accent) 18%, var(--wteh-border));
  border-radius: 11px;
  box-shadow: none;
  color: var(--wteh-accent-readable);
  display: inline-flex;
  flex: 0 0 38px;
  font-size: 13px;
  font-weight: 850;
  height: 38px;
  justify-content: center;
}

.wteh-user-chip strong,
.wteh-user-chip small {
  display: block;
  line-height: 1.45;
}

.wteh-user-chip strong {
  color: var(--wteh-text);
  font-size: 11.5px;
  font-weight: 780;
}

.wteh-user-chip small {
  color: var(--wteh-text-3);
  font-size: 9.5px;
  margin-top: 1px;
}

.wteh-user-chip > a {
  align-items: center;
  border-radius: 8px;
  color: var(--wteh-text-3);
  display: flex;
  height: 30px;
  justify-content: center;
  margin-right: 3px;
  width: 30px;
}

.wteh-user-chip > a svg {
  height: 17px;
  width: 17px;
}

.wteh-user-chip > a:hover {
  background: #fff1f3;
  color: #d92d20;
}

/* Sidebar and grouped navigation */
.wteh-portal-layout {
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
  min-height: calc(100svh - 74px);
}

.wteh-sidebar {
  background: #fff;
  border: 0;
  border-left: 1px solid var(--wteh-border);
  color: var(--wteh-text);
  display: flex;
  flex-direction: column;
  height: calc(100svh - 74px);
  overflow-x: hidden;
  overflow-y: auto;
  padding: 18px 15px 14px;
  position: sticky;
  top: 74px;
}

.wteh-sidebar::before {
  display: none;
}

.wteh-sidebar > * {
  position: relative;
  z-index: 1;
}

.wteh-sidebar-mobile-head {
  display: none;
}

.wteh-nav-list {
  display: flex;
  flex-direction: column;
  gap: 19px;
}

.wteh-nav-section {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.wteh-nav-section-label {
  color: #667085;
  display: block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .015em;
  padding: 0 11px 5px;
}

.wteh-sidebar .wteh-nav-list a,
.wteh-sidebar .wteh-nav-list a:link,
.wteh-sidebar .wteh-nav-list a:visited {
  align-items: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 10px;
  color: #344054 !important;
  display: flex;
  font-size: 13px;
  font-weight: 680;
  gap: 10px;
  min-height: 45px;
  padding: 7px 9px;
  position: relative;
  text-decoration: none !important;
  text-shadow: none;
  transition: background .16s ease, border-color .16s ease, color .16s ease;
}

.wteh-sidebar .wteh-nav-list a span,
.wteh-sidebar .wteh-nav-list a i {
  -webkit-text-fill-color: currentColor !important;
  color: inherit !important;
  opacity: 1 !important;
}

.wteh-nav-list i {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 8px;
  display: flex;
  flex: 0 0 30px;
  height: 30px;
  justify-content: center;
  transition: background .16s ease, color .16s ease;
  width: 30px;
}

.wteh-nav-list i svg {
  display: block;
  height: 18px;
  width: 18px;
}

.wteh-sidebar .wteh-nav-list a:hover {
  background: #f4f6fa;
  border-color: #e7ebf1;
  color: #101828 !important;
  transform: none;
}

.wteh-sidebar .wteh-nav-list a:hover i {
  background: #eef2f6;
}

.wteh-sidebar .wteh-nav-list a.is-active,
.wteh-sidebar .wteh-nav-list a.is-active:visited {
  background: linear-gradient(110deg, color-mix(in srgb, var(--wteh-accent) 12%, #fff), color-mix(in srgb, var(--wteh-accent) 6%, #fff));
  border-color: color-mix(in srgb, var(--wteh-accent) 22%, var(--wteh-border));
  box-shadow: 0 5px 14px color-mix(in srgb, var(--wteh-accent) 8%, transparent);
  color: var(--wteh-accent-readable) !important;
  font-weight: 780;
  transform: none;
}

.wteh-sidebar .wteh-nav-list a.is-active::before {
  background: var(--wteh-accent);
  border-radius: 4px;
  bottom: 9px;
  content: "";
  position: absolute;
  right: -10px;
  top: 9px;
  width: 3px;
}

.wteh-sidebar .wteh-nav-list a.is-active i {
  background: color-mix(in srgb, var(--wteh-accent) 15%, #fff);
  border: 0;
}

.wteh-nav-section-secondary {
  border-top: 1px solid var(--wteh-border);
  padding-top: 14px;
}

.wteh-nav-badge {
  align-items: center;
  background: #f04438;
  border: 0;
  border-radius: 999px;
  box-shadow: none;
  color: #fff !important;
  display: inline-flex;
  font-size: 8px;
  font-weight: 850;
  height: 19px;
  justify-content: center;
  margin-inline-start: auto;
  min-width: 19px;
  padding: 0 5px;
  -webkit-text-fill-color: #fff !important;
}

.wteh-sidebar-help {
  background: #f8fafc;
  border: 1px solid var(--wteh-border);
  border-radius: 12px;
  color: var(--wteh-text-2);
  margin-top: auto;
  padding: 13px;
}

.wteh-sidebar-help strong {
  color: var(--wteh-text);
  font-size: 10.5px;
  font-weight: 780;
}

.wteh-sidebar-help p {
  color: var(--wteh-text-3);
  font-size: 9.5px;
  line-height: 1.75;
  margin: 4px 0 0;
}

.wteh-sidebar-help a {
  color: var(--wteh-accent-readable);
  font-size: 9.5px;
  font-weight: 750;
  margin-top: 7px;
}

.wteh-sidebar-user {
  align-items: center;
  background: linear-gradient(120deg, color-mix(in srgb, var(--wteh-accent) 9%, #fff), #fff);
  border: 1px solid color-mix(in srgb, var(--wteh-accent) 14%, var(--wteh-border));
  border-radius: 14px;
  box-shadow: 0 6px 16px rgba(16, 24, 40, .055);
  display: grid;
  flex: 0 0 auto;
  gap: 10px;
  grid-template-columns: 40px minmax(0, 1fr) 32px;
  margin-top: 11px;
  padding: 10px;
}

.wteh-sidebar-avatar {
  align-items: center;
  background: linear-gradient(145deg, color-mix(in srgb, var(--wteh-accent) 82%, #9389ff), var(--wteh-accent-strong));
  border: 2px solid rgba(255, 255, 255, .72);
  border-radius: 12px;
  box-shadow: 0 6px 14px color-mix(in srgb, var(--wteh-accent) 20%, transparent);
  color: #fff !important;
  display: flex;
  font-size: 14px;
  font-weight: 900;
  height: 40px;
  justify-content: center;
  -webkit-text-fill-color: #fff !important;
  width: 40px;
}

.wteh-sidebar-user-copy {
  min-width: 0;
}

.wteh-sidebar-user-copy strong,
.wteh-sidebar-user-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wteh-sidebar-user-copy strong {
  color: var(--wteh-text);
  font-size: 11.5px;
  font-weight: 820;
  line-height: 1.55;
}

.wteh-sidebar-user-copy small {
  color: var(--wteh-text-3);
  font-size: 9.5px;
  line-height: 1.55;
  margin-top: 1px;
}

.wteh-sidebar-logout {
  align-items: center;
  border-radius: 9px;
  color: #b42318 !important;
  display: flex;
  height: 32px;
  justify-content: center;
  width: 32px;
}

.wteh-sidebar-logout:hover {
  background: #fff0f1;
}

.wteh-sidebar-logout svg {
  fill: none;
  height: 17px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  width: 17px;
}

/* Main application canvas */
.wteh-portal-main {
  background: var(--wteh-canvas);
  min-width: 0;
  padding: 32px clamp(22px, 3vw, 46px) 46px;
}

.wteh-portal-main > * {
  margin-left: auto;
  margin-right: auto;
  max-width: 1320px;
}

.wteh-page-title {
  align-items: center;
  background: linear-gradient(125deg, color-mix(in srgb, var(--wteh-accent) 8%, #fff), #fff 58%, color-mix(in srgb, #14b8a6 5%, #fff));
  border: 1px solid color-mix(in srgb, var(--wteh-accent) 10%, var(--wteh-border));
  border-radius: 18px;
  box-shadow: var(--wteh-shadow-xs);
  display: flex;
  gap: 20px;
  justify-content: space-between;
  margin-bottom: 24px;
  min-height: 112px;
  overflow: hidden;
  padding: 21px 23px;
  position: relative;
}

.wteh-page-title::after {
  background: linear-gradient(180deg, var(--wteh-accent), #14b8a6);
  border-radius: 4px;
  content: "";
  display: block;
  inset: 20px 0 20px auto;
  position: absolute;
  width: 4px;
}

.wteh-page-title h1 {
  color: var(--wteh-text);
  font-size: clamp(22px, 2.2vw, 29px);
  font-weight: 850;
  line-height: 1.45;
  margin: 1px 0 4px;
}

.wteh-page-title p {
  color: var(--wteh-text-3);
  font-size: 12px;
  line-height: 1.8;
  margin: 0;
  max-width: 760px;
}

.wteh-eyebrow {
  color: var(--wteh-accent-readable);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .01em;
  margin-bottom: 1px;
}

.wteh-back-link {
  color: var(--wteh-accent-readable);
  font-size: 10.5px;
  font-weight: 750;
}

/* Cards and metrics */
.wteh-stats-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
  margin-bottom: 20px;
}

.wteh-stat-card {
  align-items: center;
  background: var(--wteh-surface);
  border: 1px solid var(--wteh-border);
  border-radius: 14px;
  box-shadow: var(--wteh-shadow-xs);
  display: flex;
  gap: 11px;
  min-height: 96px;
  overflow: hidden;
  padding: 15px;
  position: relative;
  transition: border-color .17s ease, box-shadow .17s ease, transform .17s ease;
}

.wteh-stat-card::before {
  display: none;
}

.wteh-stat-card:hover {
  border-color: color-mix(in srgb, var(--wteh-accent) 18%, var(--wteh-border));
  box-shadow: var(--wteh-shadow-sm);
  transform: translateY(-2px);
}

.wteh-stat-card > i {
  align-items: center;
  border: 0;
  border-radius: 11px;
  display: flex;
  flex: 0 0 42px;
  font-size: 18px;
  font-style: normal;
  height: 42px;
  justify-content: center;
  opacity: 1;
}

.wteh-stat-card strong,
.wteh-stat-card span {
  display: block;
}

.wteh-stat-card strong {
  color: var(--wteh-text);
  font-size: 21px;
  font-weight: 850;
  line-height: 1.25;
}

.wteh-stat-card span {
  color: var(--wteh-text-3);
  font-size: 9.5px;
  margin-top: 4px;
}

.wteh-stat-card > a {
  background: transparent;
  bottom: 8px;
  color: var(--wteh-accent-readable);
  font-size: 8.5px;
  font-weight: 700;
  left: 10px;
  padding: 2px 5px;
  position: absolute;
}

.wteh-stat-purple > i { background: #f0efff; color: #6255d9; }
.wteh-stat-blue > i { background: #eaf5ff; color: #2176b9; }
.wteh-stat-amber > i { background: #fff4dd; color: #a86600; }
.wteh-stat-red > i { background: #fff0f2; color: #c83f56; }
.wteh-stat-green > i { background: #eaf8f2; color: #177456; }

.wteh-content-card,
.wteh-application-form .wteh-form-section {
  background: var(--wteh-surface);
  border: 1px solid var(--wteh-border);
  border-radius: 15px;
  box-shadow: var(--wteh-shadow-xs);
  margin-bottom: 18px;
  padding: clamp(18px, 2vw, 24px);
  transition: border-color .17s ease, box-shadow .17s ease;
}

.wteh-content-card:hover,
.wteh-application-form .wteh-form-section:hover {
  border-color: color-mix(in srgb, var(--wteh-accent) 12%, var(--wteh-border));
  box-shadow: var(--wteh-shadow-sm);
  transform: none;
}

.wteh-card-heading {
  align-items: flex-start;
  border-bottom: 1px solid var(--wteh-border);
  display: flex;
  gap: 14px;
  justify-content: space-between;
  margin-bottom: 17px;
  padding-bottom: 14px;
}

.wteh-card-heading h3 {
  color: var(--wteh-text);
  font-size: 14px;
  font-weight: 800;
  margin: 0;
}

.wteh-card-heading p {
  color: var(--wteh-text-3);
  font-size: 10px;
  line-height: 1.7;
  margin: 2px 0 0;
}

.wteh-card-heading > a {
  color: var(--wteh-accent-readable);
  font-size: 10px;
  font-weight: 750;
  white-space: nowrap;
}

.wteh-grid {
  gap: 16px;
}

.wteh-progress-card {
  align-items: center;
  background: linear-gradient(105deg, #101828, #25235d 60%, color-mix(in srgb, var(--wteh-accent) 55%, #173a4c));
  border: 0;
  border-radius: 14px;
  box-shadow: var(--wteh-shadow-sm);
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(180px, 1fr) minmax(150px, 260px) 44px;
  margin-bottom: 18px;
  padding: 18px 20px;
}

.wteh-progress-card strong {
  color: #fff;
  font-size: 11.5px;
}

.wteh-progress-card > div > span {
  color: #d0d5dd;
  font-size: 9.5px;
}

/* Buttons and compact application controls */
.wteh-button {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex;
  font-size: 11px;
  font-weight: 750;
  gap: 6px;
  justify-content: center;
  min-height: 42px;
  padding: 8px 15px;
  transition: background .17s ease, border-color .17s ease, box-shadow .17s ease, transform .17s ease;
}

.wteh-button:hover {
  box-shadow: var(--wteh-shadow-sm);
  transform: translateY(-1px);
}

.wteh-button-primary {
  background: var(--wteh-accent);
  border-color: var(--wteh-accent);
  box-shadow: 0 4px 10px color-mix(in srgb, var(--wteh-accent) 20%, transparent);
  color: #fff !important;
}

.wteh-button-primary:hover {
  background: var(--wteh-accent-strong);
  border-color: var(--wteh-accent-strong);
}

.wteh-button-soft {
  background: var(--wteh-surface);
  border-color: var(--wteh-border-strong);
  color: var(--wteh-text-2) !important;
}

.wteh-button-soft:hover {
  background: var(--wteh-surface-2);
}

.wteh-link-button {
  background: var(--wteh-surface);
  border: 1px solid var(--wteh-border-strong);
  border-radius: 8px;
  color: var(--wteh-accent-readable);
  font-size: 9.5px;
  font-weight: 700;
  padding: 5px 9px;
}

.wteh-link-button:hover {
  background: var(--wteh-accent-soft);
  border-color: color-mix(in srgb, var(--wteh-accent) 22%, var(--wteh-border));
  color: var(--wteh-accent-readable);
}

/* Forms */
.wteh-field > label,
.wteh-auth-card label {
  color: var(--wteh-text-2);
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 7px;
}

.wteh-field input:not([type="file"]):not([type="checkbox"]):not([type="radio"]),
.wteh-field select,
.wteh-field textarea,
.wteh-auth-card input[type="text"],
.wteh-auth-card input[type="password"] {
  background: var(--wteh-surface);
  border: 1px solid var(--wteh-border-strong);
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .025);
  color: var(--wteh-text);
  min-height: 46px;
  padding: 10px 12px;
}

.wteh-field textarea {
  min-height: 104px;
}

.wteh-field input:focus,
.wteh-field select:focus,
.wteh-field textarea:focus,
.wteh-auth-card input:focus {
  background: var(--wteh-surface);
  border-color: var(--wteh-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--wteh-accent) 13%, transparent);
}

.wteh-field input::placeholder,
.wteh-field textarea::placeholder {
  color: #98a2b3;
  opacity: 1;
}

.wteh-filter-form,
.wteh-report-filter {
  background: var(--wteh-surface);
  border: 1px solid var(--wteh-border);
  border-radius: 13px;
  box-shadow: var(--wteh-shadow-xs);
  margin-bottom: 16px;
  padding: 14px;
}

.wteh-file-picker,
.wteh-dropzone {
  background: var(--wteh-surface-2);
  border-color: var(--wteh-border-strong);
  border-radius: 11px;
}

.wteh-consent,
.wteh-privacy-note {
  background: #f0f7ff;
  border-color: #d7e9fb;
  border-radius: 11px;
  color: #344054;
}

/* Tables */
.wteh-table-wrap {
  background: var(--wteh-surface);
  border: 1px solid var(--wteh-border);
  border-radius: 11px;
  overflow: auto;
}

.wteh-table {
  border-collapse: separate;
  border-spacing: 0;
}

.wteh-table thead {
  background: #f8fafc;
}

.wteh-table th {
  border-bottom: 1px solid var(--wteh-border);
  color: #667085;
  font-size: 10px;
  font-weight: 720;
  padding: 11px 13px;
}

.wteh-table td {
  border-color: var(--wteh-border);
  color: var(--wteh-text-2);
  font-size: 11px;
  padding: 12px 13px;
}

.wteh-table td strong {
  color: var(--wteh-text);
  font-weight: 750;
}

.wteh-table tbody tr:not(.wteh-report-date-row):hover td {
  background: var(--wteh-surface-2);
}

.wteh-report-date-row td {
  background: var(--wteh-accent-soft);
  color: var(--wteh-accent-readable);
}

/* Task, training, employee and document cards */
.wteh-task-grid,
.wteh-training-grid,
.wteh-employee-grid {
  gap: 12px;
}

.wteh-task-card,
.wteh-training-card,
.wteh-employee-card {
  background: var(--wteh-surface);
  border: 1px solid var(--wteh-border);
  border-radius: 13px;
  box-shadow: none;
  color: var(--wteh-text-2);
  padding: 16px;
}

.wteh-task-card:hover,
.wteh-training-card:hover,
.wteh-employee-card:hover {
  border-color: color-mix(in srgb, var(--wteh-accent) 22%, var(--wteh-border));
  box-shadow: var(--wteh-shadow-sm);
  transform: translateY(-1px);
}

.wteh-task-card h3,
.wteh-training-card h3 {
  color: var(--wteh-text);
  font-size: 13px;
}

.wteh-task-card p,
.wteh-training-card p {
  color: var(--wteh-text-2);
  font-size: 10.5px;
}

.wteh-task-meta {
  border-color: var(--wteh-border);
  color: var(--wteh-text-3);
  font-size: 9px;
}

.wteh-task-card.is-overdue {
  border-color: #f4bdc6;
  box-shadow: inset -3px 0 #e54861;
}

.wteh-readonly-grid > div,
.wteh-detail-grid > div,
.wteh-document-item {
  background: var(--wteh-surface-2);
  border: 1px solid var(--wteh-border);
  border-radius: 10px !important;
}

.wteh-readonly-grid span,
.wteh-detail-grid span,
.wteh-document-item span {
  color: var(--wteh-text-3);
}

.wteh-readonly-grid strong,
.wteh-detail-grid strong,
.wteh-document-item strong {
  color: var(--wteh-text);
}

/* Notices and calendar state */
.wteh-notice,
.wteh-day-status {
  border-radius: 11px;
  box-shadow: none;
}

.wteh-day-status {
  margin-bottom: 18px;
  padding: 12px 14px;
}

.wteh-day-status > i {
  border: 0;
  border-radius: 9px;
  flex-basis: 36px;
  height: 36px;
}

.wteh-day-status strong {
  font-size: 11px;
}

.wteh-day-status span {
  font-size: 10px;
}

/* Notification popover and center */
.wteh-notification-bell {
  position: relative;
  z-index: 30;
}

.wteh-notification-popover {
  background: var(--wteh-surface);
  border: 1px solid var(--wteh-border);
  border-radius: 13px;
  box-shadow: 0 20px 50px rgba(16, 24, 40, .16);
  color: var(--wteh-text);
  left: 0;
  overflow: hidden;
  position: absolute;
  top: calc(100% + 9px);
  width: min(390px, calc(100vw - 24px));
  z-index: 100;
}

.wteh-notification-popover > header,
.wteh-notification-mark-all {
  background: var(--wteh-surface-2);
  border-color: var(--wteh-border);
}

.wteh-notification-mini-list > a {
  border-color: var(--wteh-border);
  color: var(--wteh-text-2);
}

.wteh-notification-mini-list > a:hover {
  background: var(--wteh-surface-2);
}

.wteh-notification-mini-list > a.is-unread {
  background: var(--wteh-accent-soft);
  box-shadow: inset -2px 0 var(--wteh-accent);
}

.wteh-notification-summary {
  background: var(--wteh-surface);
  border: 1px solid var(--wteh-border);
  border-radius: 13px;
  box-shadow: var(--wteh-shadow-xs);
  color: var(--wteh-text);
}

.wteh-notification-summary strong {
  color: var(--wteh-text);
}

.wteh-notification-summary small {
  color: var(--wteh-text-3);
}

.wteh-notification-summary > div > i {
  background: var(--wteh-accent-soft);
  color: var(--wteh-accent-readable);
}

.wteh-notification-summary nav a {
  border-color: var(--wteh-border);
  color: var(--wteh-text-2);
}

.wteh-notification-summary nav a.is-active {
  background: var(--wteh-accent);
  color: #fff;
}

.wteh-notification-card {
  background: var(--wteh-surface);
  border: 1px solid var(--wteh-border);
  border-radius: 13px;
  box-shadow: var(--wteh-shadow-xs);
}

.wteh-notification-card.is-unread {
  background: linear-gradient(100deg, var(--wteh-accent-soft), var(--wteh-surface));
  border-color: color-mix(in srgb, var(--wteh-accent) 20%, var(--wteh-border));
}

.wteh-notification-toast {
  background: #101828;
  border: 0;
  border-radius: 10px;
  bottom: 16px;
  box-shadow: 0 14px 34px rgba(16, 24, 40, .20);
  color: #fff;
  font-size: 10px;
  left: 16px;
  padding: 10px 13px;
}

/* Contracts, modals and signatures */
.wteh-modal-panel,
.wteh-contract-paper {
  background: var(--wteh-surface);
  border: 1px solid var(--wteh-border);
  border-radius: 16px;
}

.wteh-contract-paper > header,
.wteh-contract-meta,
.wteh-contract-paper > footer,
.wteh-signature-wrap,
.wteh-contract-disclosure > summary {
  background: var(--wteh-surface-2);
  border-color: var(--wteh-border);
}

.wteh-contract-content {
  color: var(--wteh-text-2);
}

/* Public application and login are also standalone app pages. */
.wteh-webapp-body .wteh-application-shell {
  background: var(--wteh-canvas);
  border: 0;
  border-radius: 0;
  box-shadow: none;
  margin: 0 auto;
  max-width: 1180px;
  min-height: 100svh;
}

.wteh-hero {
  background:
    radial-gradient(circle at 10% 0, rgba(255, 255, 255, .16), transparent 30%),
    linear-gradient(125deg, #101828, #29245f 58%, color-mix(in srgb, var(--wteh-accent) 68%, #174b59));
  min-height: 270px;
  padding: 52px 7%;
}

.wteh-hero::before {
  border-color: rgba(255, 255, 255, .12);
  box-shadow: 0 0 0 28px rgba(255, 255, 255, .025), 0 0 0 56px rgba(255, 255, 255, .018);
}

.wteh-hero h2 {
  font-size: clamp(29px, 4vw, 44px);
}

.wteh-application-form {
  padding: 36px 7% 52px;
}

.wteh-auth-shell {
  align-items: center;
  background: #f5f7fb;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  display: flex;
  justify-content: center;
  min-height: 100svh;
  padding: 24px;
}

.wteh-auth-card {
  background: var(--wteh-surface);
  border: 1px solid var(--wteh-border);
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(16, 24, 40, .10);
  max-width: 430px;
  padding: 34px;
}

/* Dark application theme */
.wteh-theme-dark body.wteh-webapp-body,
.wteh-theme-dark .wteh-webapp-background {
  background: #081321 !important;
  color: #f2f4f7;
}

.wteh-theme-dark .wteh-shell {
  --wteh-accent-soft: color-mix(in srgb, var(--wteh-accent) 18%, #111827);
  --wteh-accent-faint: color-mix(in srgb, var(--wteh-accent) 9%, transparent);
  --wteh-surface: #101b2b;
  --wteh-surface-2: #172437;
  --wteh-surface-3: #1d2c41;
  --wteh-canvas: #081321;
  --wteh-text: #f8fafc;
  --wteh-text-2: #d7e0eb;
  --wteh-text-3: #a8b5c5;
  --wteh-accent-readable: #d0cbff;
  --wteh-border: #28384d;
  --wteh-border-strong: #3b4d65;
  --wteh-shadow-xs: 0 1px 2px rgba(0, 0, 0, .18);
  --wteh-shadow-sm: 0 4px 14px rgba(0, 0, 0, .22);
  --wteh-shadow-md: 0 18px 44px rgba(0, 0, 0, .30);
}

.wteh-theme-dark .wteh-portal-header {
  background: rgba(16, 27, 43, .96);
}

.wteh-theme-dark .wteh-header-context,
.wteh-theme-dark .wteh-theme-toggle,
.wteh-theme-dark .wteh-header-menu,
.wteh-theme-dark .wteh-notification-toggle {
  background: #172437;
}

.wteh-theme-dark .wteh-theme-toggle {
  background: linear-gradient(145deg, rgba(245, 158, 11, .18), #172437);
  border-color: rgba(251, 191, 36, .28);
  color: #fbc85b;
}

.wteh-theme-dark .wteh-notification-toggle > b {
  border-color: #111827;
}

.wteh-theme-dark .wteh-avatar {
  background: color-mix(in srgb, var(--wteh-accent) 20%, #182230);
}

.wteh-theme-dark .wteh-sidebar {
  background: #101b2b;
}

.wteh-theme-dark .wteh-nav-section-label {
  color: #97a6b8;
}

.wteh-theme-dark .wteh-sidebar .wteh-nav-list a,
.wteh-theme-dark .wteh-sidebar .wteh-nav-list a:link,
.wteh-theme-dark .wteh-sidebar .wteh-nav-list a:visited {
  color: #cbd5e1 !important;
}

.wteh-theme-dark .wteh-sidebar .wteh-nav-list a:hover {
  background: #172437;
  border-color: #2d4056;
  color: #fff !important;
}

.wteh-theme-dark .wteh-sidebar .wteh-nav-list a:hover i,
.wteh-theme-dark .wteh-sidebar .wteh-nav-list a.is-active i {
  background: color-mix(in srgb, var(--wteh-accent) 20%, #182230);
}

.wteh-theme-dark .wteh-sidebar .wteh-nav-list a.is-active,
.wteh-theme-dark .wteh-sidebar .wteh-nav-list a.is-active:visited {
  background: linear-gradient(110deg, color-mix(in srgb, var(--wteh-accent) 24%, #172437), color-mix(in srgb, var(--wteh-accent) 12%, #172437));
  border-color: color-mix(in srgb, var(--wteh-accent) 35%, #2d4056);
  color: #f0eeff !important;
}

.wteh-theme-dark .wteh-sidebar-help {
  background: #172437;
}

.wteh-theme-dark .wteh-sidebar-user {
  background: linear-gradient(120deg, color-mix(in srgb, var(--wteh-accent) 20%, #172437), #132033);
  border-color: color-mix(in srgb, var(--wteh-accent) 25%, var(--wteh-border));
  box-shadow: 0 8px 20px rgba(0, 0, 0, .20);
}

.wteh-theme-dark .wteh-sidebar-logout {
  color: #ff9a9f !important;
}

.wteh-theme-dark .wteh-sidebar-logout:hover {
  background: rgba(244, 63, 94, .13);
}

.wteh-theme-dark .wteh-page-title {
  background: linear-gradient(125deg, color-mix(in srgb, var(--wteh-accent) 18%, #101b2b), #101b2b 58%, color-mix(in srgb, #14b8a6 10%, #101b2b));
  border-color: color-mix(in srgb, var(--wteh-accent) 18%, var(--wteh-border));
}

.wteh-theme-dark .wteh-table thead,
.wteh-theme-dark .wteh-table tbody tr:not(.wteh-report-date-row):hover td {
  background: #182230;
}

.wteh-theme-dark .wteh-stat-purple > i { background: rgba(109, 93, 252, .17); color: #b4adff; }
.wteh-theme-dark .wteh-stat-blue > i { background: rgba(49, 156, 255, .14); color: #86c6ff; }
.wteh-theme-dark .wteh-stat-amber > i { background: rgba(245, 158, 11, .14); color: #f8ca70; }
.wteh-theme-dark .wteh-stat-red > i { background: rgba(244, 63, 94, .14); color: #ff9aac; }
.wteh-theme-dark .wteh-stat-green > i { background: rgba(16, 185, 129, .14); color: #86e2c2; }

.wteh-theme-dark .wteh-consent,
.wteh-theme-dark .wteh-privacy-note {
  background: #17263a;
  border-color: #29405a;
  color: var(--wteh-text-2);
}

.wteh-theme-dark .wteh-notification-summary nav a.is-active {
  background: var(--wteh-accent);
  color: #fff;
}

.wteh-theme-dark .wteh-auth-shell {
  background: #0b1220;
}

/*
 * High-specificity application colour boundary.
 * Some themes apply gradient text or hard-coded navigation colours with
 * !important. Keep the standalone portal readable regardless of site CSS.
 */
body.wteh-webapp-body #wteh-webapp .wteh-portal-main h1,
body.wteh-webapp-body #wteh-webapp .wteh-portal-main h2,
body.wteh-webapp-body #wteh-webapp .wteh-portal-main h3,
body.wteh-webapp-body #wteh-webapp .wteh-portal-main h4 {
  -webkit-background-clip: border-box !important;
  background-image: none !important;
  -webkit-text-fill-color: currentColor !important;
}

body.wteh-webapp-body #wteh-webapp .wteh-page-title h1 {
  color: var(--wteh-text) !important;
  -webkit-text-fill-color: var(--wteh-text) !important;
}

body.wteh-webapp-body #wteh-webapp .wteh-page-title p {
  color: var(--wteh-text-3) !important;
  -webkit-text-fill-color: var(--wteh-text-3) !important;
}

body.wteh-webapp-body #wteh-webapp .wteh-page-title .wteh-eyebrow,
body.wteh-webapp-body #wteh-webapp .wteh-card-heading > a,
body.wteh-webapp-body #wteh-webapp .wteh-back-link {
  color: var(--wteh-accent-readable) !important;
  -webkit-text-fill-color: var(--wteh-accent-readable) !important;
}

body.wteh-webapp-body #wteh-webapp .wteh-sidebar .wteh-nav-list a,
body.wteh-webapp-body #wteh-webapp .wteh-sidebar .wteh-nav-list a:link,
body.wteh-webapp-body #wteh-webapp .wteh-sidebar .wteh-nav-list a:visited,
body.wteh-webapp-body #wteh-webapp .wteh-sidebar .wteh-nav-list a span,
body.wteh-webapp-body #wteh-webapp .wteh-sidebar .wteh-nav-list a i {
  color: #344054 !important;
  -webkit-text-fill-color: #344054 !important;
}

body.wteh-webapp-body #wteh-webapp .wteh-sidebar .wteh-nav-list a:hover,
body.wteh-webapp-body #wteh-webapp .wteh-sidebar .wteh-nav-list a:hover span,
body.wteh-webapp-body #wteh-webapp .wteh-sidebar .wteh-nav-list a:hover i {
  color: #101828 !important;
  -webkit-text-fill-color: #101828 !important;
}

body.wteh-webapp-body #wteh-webapp .wteh-sidebar .wteh-nav-list a.is-active,
body.wteh-webapp-body #wteh-webapp .wteh-sidebar .wteh-nav-list a.is-active span,
body.wteh-webapp-body #wteh-webapp .wteh-sidebar .wteh-nav-list a.is-active i {
  color: var(--wteh-accent-readable) !important;
  -webkit-text-fill-color: var(--wteh-accent-readable) !important;
}

html.wteh-theme-dark body.wteh-webapp-body #wteh-webapp .wteh-sidebar .wteh-nav-list a,
html.wteh-theme-dark body.wteh-webapp-body #wteh-webapp .wteh-sidebar .wteh-nav-list a:link,
html.wteh-theme-dark body.wteh-webapp-body #wteh-webapp .wteh-sidebar .wteh-nav-list a:visited,
html.wteh-theme-dark body.wteh-webapp-body #wteh-webapp .wteh-sidebar .wteh-nav-list a span,
html.wteh-theme-dark body.wteh-webapp-body #wteh-webapp .wteh-sidebar .wteh-nav-list a i {
  color: #d7e0eb !important;
  -webkit-text-fill-color: #d7e0eb !important;
}

html.wteh-theme-dark body.wteh-webapp-body #wteh-webapp .wteh-sidebar .wteh-nav-list a:hover,
html.wteh-theme-dark body.wteh-webapp-body #wteh-webapp .wteh-sidebar .wteh-nav-list a:hover span,
html.wteh-theme-dark body.wteh-webapp-body #wteh-webapp .wteh-sidebar .wteh-nav-list a:hover i,
html.wteh-theme-dark body.wteh-webapp-body #wteh-webapp .wteh-sidebar .wteh-nav-list a.is-active,
html.wteh-theme-dark body.wteh-webapp-body #wteh-webapp .wteh-sidebar .wteh-nav-list a.is-active span,
html.wteh-theme-dark body.wteh-webapp-body #wteh-webapp .wteh-sidebar .wteh-nav-list a.is-active i {
  color: #f7f5ff !important;
  -webkit-text-fill-color: #f7f5ff !important;
}

body.wteh-webapp-body #wteh-webapp .wteh-sidebar-user-copy strong,
body.wteh-webapp-body #wteh-webapp .wteh-card-heading h3,
body.wteh-webapp-body #wteh-webapp .wteh-stat-card strong,
body.wteh-webapp-body #wteh-webapp .wteh-table td strong {
  color: var(--wteh-text) !important;
  -webkit-text-fill-color: var(--wteh-text) !important;
}

body.wteh-webapp-body #wteh-webapp .wteh-sidebar-user-copy small,
body.wteh-webapp-body #wteh-webapp .wteh-stat-card span,
body.wteh-webapp-body #wteh-webapp .wteh-card-heading p {
  color: var(--wteh-text-3) !important;
  -webkit-text-fill-color: var(--wteh-text-3) !important;
}

body.wteh-webapp-body #wteh-webapp .wteh-nav-badge,
body.wteh-webapp-body #wteh-webapp .wteh-nav-badge * {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

body.wteh-webapp-body #wteh-webapp .wteh-sidebar .wteh-mobile-nav-toggle,
body.wteh-webapp-body #wteh-webapp .wteh-sidebar .wteh-mobile-nav-toggle span {
  color: var(--wteh-accent-readable) !important;
  -webkit-text-fill-color: var(--wteh-accent-readable) !important;
}

html.wteh-theme-dark body.wteh-webapp-body #wteh-webapp .wteh-sidebar .wteh-mobile-nav-toggle,
html.wteh-theme-dark body.wteh-webapp-body #wteh-webapp .wteh-sidebar .wteh-mobile-nav-toggle span {
  color: #f8fafc !important;
  -webkit-text-fill-color: #f8fafc !important;
}

/* Tablet and mobile application behavior */
@media (max-width: 1100px) {
  .wteh-portal-brand {
    flex-basis: 236px;
  }

  .wteh-portal-layout {
    grid-template-columns: 238px minmax(0, 1fr);
  }

  .wteh-portal-main {
    padding: 28px 22px 40px;
  }
}

@media (max-width: 860px) {
  body.wteh-nav-open {
    overflow: hidden !important;
  }

  .wteh-portal-header {
    gap: 10px;
    height: 64px;
    min-height: 64px;
    padding: 8px 12px;
  }

  .wteh-portal-brand {
    flex: 1 1 auto;
  }

  .wteh-portal-brand .wteh-brand-mark {
    flex-basis: 40px;
    height: 40px;
  }

  .wteh-portal-brand strong {
    font-size: 12px;
  }

  .wteh-portal-brand span,
  .wteh-header-context {
    display: none;
  }

  .wteh-header-actions {
    gap: 6px;
  }

  .wteh-theme-toggle,
  .wteh-notification-toggle {
    display: inline-flex;
    height: 40px;
    width: 40px;
  }

  .wteh-header-menu {
    display: inline-flex;
    height: 40px;
    padding: 0 10px;
    width: auto;
  }

  .wteh-user-chip {
    border: 0;
    margin: 0;
    min-height: 38px;
    padding: 0;
  }

  .wteh-user-chip > span:not(.wteh-avatar),
  .wteh-user-chip > a {
    display: none;
  }

  .wteh-avatar {
    flex-basis: 36px;
    height: 36px;
  }

  .wteh-portal-layout {
    display: block;
    min-height: 0;
  }

  .wteh-sidebar {
    background: #fff;
    border: 0;
    bottom: 0;
    box-shadow: -20px 0 60px rgba(16, 24, 40, .18);
    display: flex;
    height: 100svh;
    max-height: 100svh;
    max-width: 360px;
    min-height: 0;
    overflow: hidden;
    padding: 15px;
    position: fixed;
    right: 0;
    top: 0;
    transform: translateX(105%);
    transition: transform .24s cubic-bezier(.22, .8, .28, 1);
    width: min(92vw, 360px);
    z-index: 1002;
  }

  .wteh-theme-dark .wteh-sidebar {
    background: #101b2b;
  }

  .wteh-portal.is-nav-open .wteh-sidebar {
    transform: translateX(0);
  }

  .wteh-sidebar-mobile-head {
    align-items: center;
    border-bottom: 1px solid var(--wteh-border);
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    padding: 2px 2px 13px;
  }

  .wteh-sidebar-mobile-head strong,
  .wteh-sidebar-mobile-head span {
    display: block;
  }

  .wteh-sidebar-mobile-head strong {
    color: var(--wteh-text);
    font-size: 14px;
    font-weight: 850;
  }

  .wteh-sidebar-mobile-head > div > span {
    color: var(--wteh-text-3);
    font-size: 10px;
  }

  .wteh-mobile-nav-toggle {
    align-items: center;
    background: var(--wteh-surface-2);
    border: 1px solid var(--wteh-border);
    border-radius: 11px;
    color: var(--wteh-accent-readable) !important;
    display: flex;
    height: 36px;
    justify-content: center;
    padding: 0;
    width: 36px;
  }

  .wteh-sidebar .wteh-mobile-nav-toggle span {
    color: inherit !important;
    font-size: 22px;
    line-height: 1;
  }

  .wteh-nav-list,
  .wteh-sidebar.is-open .wteh-nav-list {
    display: flex;
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    padding-bottom: 8px;
    padding-top: 0;
  }

  .wteh-nav-backdrop {
    background: rgba(16, 24, 40, .48);
    border: 0;
    display: block;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    position: fixed;
    transition: opacity .18s ease;
    visibility: hidden;
    z-index: 1001;
  }

  .wteh-portal.is-nav-open .wteh-nav-backdrop {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
  }

  .wteh-sidebar-help {
    display: none;
  }

  .wteh-sidebar-user {
    margin-top: 10px;
  }

  .wteh-portal-main {
    min-height: calc(100svh - 64px);
    padding: 22px 13px 34px;
  }

  .wteh-page-title {
    align-items: flex-start;
    flex-direction: column;
    gap: 13px;
    min-height: 0;
    padding: 18px;
  }

  .wteh-page-title h1 {
    font-size: 21px;
  }

  .wteh-page-title .wteh-button,
  .wteh-page-title > form,
  .wteh-page-title > form .wteh-button {
    width: 100%;
  }

  .wteh-grid-2,
  .wteh-grid-3,
  .wteh-docs-layout,
  .wteh-detail-layout,
  .wteh-employee-grid,
  .wteh-task-grid,
  .wteh-training-grid,
  .wteh-filter-form,
  .wteh-report-filter {
    grid-template-columns: 1fr;
  }

  .wteh-detail-layout aside,
  .wteh-upload-card {
    position: static;
  }

  .wteh-notification-popover {
    left: 10px;
    max-height: calc(100svh - 76px);
    position: fixed;
    right: 10px;
    top: 64px;
    width: auto;
  }
}

@media (max-width: 640px) {
  .wteh-content-card,
  .wteh-application-form .wteh-form-section {
    border-radius: 13px;
    padding: 16px;
  }

  .wteh-stats-grid {
    gap: 9px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wteh-stat-card {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    min-height: 119px;
    padding: 13px;
  }

  .wteh-stat-card > i {
    flex-basis: 38px;
    height: 38px;
    width: 38px;
  }

  .wteh-stat-card strong {
    font-size: 18px;
  }

  .wteh-progress-card {
    grid-template-columns: 1fr 42px;
    padding: 16px;
  }

  .wteh-progress-card .wteh-progress {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .wteh-table-wrap {
    background: transparent;
    border: 0;
    border-radius: 0;
    overflow: visible;
  }

  .wteh-table,
  .wteh-table tbody,
  .wteh-table tr,
  .wteh-table td {
    display: block;
    min-width: 0;
    width: 100%;
  }

  .wteh-table thead {
    display: none;
  }

  .wteh-table tr:not(.wteh-report-date-row) {
    background: var(--wteh-surface);
    border: 1px solid var(--wteh-border);
    border-radius: 11px;
    box-shadow: var(--wteh-shadow-xs);
    margin-bottom: 10px;
    overflow: hidden;
    padding: 5px 11px;
  }

  .wteh-table td {
    align-items: flex-start;
    background: transparent !important;
    border-bottom: 1px solid var(--wteh-border);
    display: grid;
    gap: 9px;
    grid-template-columns: minmax(74px, 34%) 1fr;
    padding: 9px 0;
  }

  .wteh-table td:last-child {
    border-bottom: 0;
  }

  .wteh-table td::before {
    color: var(--wteh-text-3);
    content: attr(data-label);
    font-size: 9px;
    font-weight: 700;
  }

  .wteh-report-date-row {
    display: block;
    margin: 15px 0 8px;
  }

  .wteh-report-date-row td {
    border: 0;
    border-radius: 8px;
    display: block;
    padding: 7px 10px;
  }

  .wteh-report-date-row td::before {
    display: none;
  }

  .wteh-notification-card {
    grid-template-columns: 38px minmax(0, 1fr);
    padding: 13px;
  }

  .wteh-notification-actions {
    align-items: center;
    flex-direction: row;
    grid-column: 1 / -1;
    justify-content: flex-end;
  }

  .wteh-notification-summary {
    align-items: flex-start;
    flex-direction: column;
    gap: 11px;
  }

  .wteh-notification-summary nav {
    width: 100%;
  }

  .wteh-notification-summary nav a {
    flex: 1;
    text-align: center;
  }

  .wteh-hero {
    min-height: 0;
    padding: 36px 20px;
  }

  .wteh-application-form {
    padding: 20px 12px 34px;
  }

  .wteh-auth-shell {
    padding: 12px;
  }

  .wteh-auth-card {
    border-radius: 15px;
    padding: 27px 19px;
  }
}

/* Employment lifecycle and final settlement */
.wteh-employment-filters {
  margin: 0 0 20px;
}

.wteh-employment-filters a {
  align-items: center;
  display: inline-flex;
  gap: 7px;
}

.wteh-employment-filters a b {
  align-items: center;
  background: var(--wteh-surface-3);
  border-radius: 999px;
  display: inline-flex;
  font-size: 10px;
  height: 22px;
  justify-content: center;
  min-width: 22px;
  padding: 0 6px;
}

.wteh-employment-filters a.is-active b {
  background: color-mix(in srgb, var(--wteh-accent) 18%, var(--wteh-surface));
  color: var(--wteh-accent-readable);
}

.wteh-employee-card.is-former {
  background: color-mix(in srgb, #64748b 5%, var(--wteh-surface));
  border-color: color-mix(in srgb, #64748b 25%, var(--wteh-border));
}

.wteh-employee-card.is-former .wteh-avatar {
  background: color-mix(in srgb, #64748b 16%, var(--wteh-surface));
  color: color-mix(in srgb, #64748b 75%, var(--wteh-text));
}

.wteh-employee-card strong em {
  background: color-mix(in srgb, #64748b 15%, var(--wteh-surface));
  border: 1px solid color-mix(in srgb, #64748b 22%, var(--wteh-border));
  border-radius: 999px;
  color: var(--wteh-text-2);
  font-size: 9px;
  font-style: normal;
  margin-inline-start: 7px;
  padding: 2px 7px;
  vertical-align: 2px;
}

.wteh-employment-badge {
  align-items: center;
  border: 1px solid;
  border-radius: 999px;
  display: inline-flex;
  font-size: 10px;
  font-weight: 850;
  line-height: 1;
  padding: 7px 10px;
  white-space: nowrap;
}

.wteh-page-title h1 .wteh-employment-badge {
  font-size: 10px;
  margin-inline-start: 7px;
  vertical-align: middle;
}

.wteh-employment-badge.is-active {
  background: color-mix(in srgb, #10b981 12%, var(--wteh-surface));
  border-color: color-mix(in srgb, #10b981 30%, var(--wteh-border));
  color: color-mix(in srgb, #047857 82%, var(--wteh-text));
}

.wteh-employment-badge.is-former {
  background: color-mix(in srgb, #64748b 12%, var(--wteh-surface));
  border-color: color-mix(in srgb, #64748b 28%, var(--wteh-border));
  color: var(--wteh-text-2);
}

.wteh-offboarding-panel {
  border-top: 4px solid color-mix(in srgb, #f59e0b 72%, var(--wteh-accent));
  margin-top: 22px;
  overflow: hidden;
}

.wteh-offboarding-panel > .wteh-card-heading {
  align-items: flex-start;
  border-bottom: 1px solid var(--wteh-border);
  margin: -2px 0 18px;
  padding-bottom: 18px;
}

.wteh-offboarding-disclosure {
  background: var(--wteh-surface-2);
  border: 1px solid var(--wteh-border);
  border-radius: 18px;
  margin-top: 16px;
  overflow: hidden;
}

.wteh-offboarding-disclosure > summary {
  align-items: center;
  color: var(--wteh-text);
  cursor: pointer;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  list-style: none;
  padding: 17px 19px;
  user-select: none;
}

.wteh-offboarding-disclosure > summary::-webkit-details-marker { display: none; }
.wteh-offboarding-disclosure > summary span { display: grid; gap: 2px; }
.wteh-offboarding-disclosure > summary strong { color: var(--wteh-text); font-size: 14px; }
.wteh-offboarding-disclosure > summary small { color: var(--wteh-text-3); font-size: 11px; }
.wteh-offboarding-disclosure > summary i { color: var(--wteh-text-3); font-size: 20px; font-style: normal; transition: transform .2s ease; }
.wteh-offboarding-disclosure[open] > summary i { transform: rotate(45deg); }

.wteh-offboarding-form {
  background: var(--wteh-surface);
  border-top: 1px solid var(--wteh-border);
  padding: 20px;
}

.wteh-offboarding-form .wteh-field-label {
  color: var(--wteh-text-2);
  font-size: 11px;
  font-weight: 800;
}

.wteh-offboarding-form .wteh-consent {
  background: color-mix(in srgb, #f59e0b 9%, var(--wteh-surface));
  border: 1px solid color-mix(in srgb, #f59e0b 24%, var(--wteh-border));
  border-radius: 14px;
  margin: 18px 0;
  padding: 13px 14px;
}

.wteh-offboarding-summary {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 4px 0 18px;
}

.wteh-offboarding-summary > div {
  background: var(--wteh-surface-2);
  border: 1px solid var(--wteh-border);
  border-radius: 14px;
  display: grid;
  gap: 4px;
  padding: 13px 14px;
}

.wteh-offboarding-summary span { color: var(--wteh-text-3); font-size: 10px; }
.wteh-offboarding-summary strong { color: var(--wteh-text); font-size: 13px; }
.wteh-offboarding-history { border-top: 1px solid var(--wteh-border); margin-top: 20px; padding-top: 18px; }
.wteh-offboarding-history > h4 { margin: 0 0 12px; }
.wteh-status-ended { background: color-mix(in srgb, #f59e0b 13%, var(--wteh-surface)); color: color-mix(in srgb, #b45309 78%, var(--wteh-text)); }
.wteh-status-reactivated { background: color-mix(in srgb, #10b981 12%, var(--wteh-surface)); color: color-mix(in srgb, #047857 78%, var(--wteh-text)); }
.wteh-stat-slate > i { background: color-mix(in srgb, #64748b 14%, var(--wteh-surface)); color: #64748b; }
.wteh-former-job-card .wteh-security-badge { float: left; }
.wteh-help-text { color: var(--wteh-text-3); font-size: 11px; margin: 14px 0 0; }

@media (max-width: 760px) {
  .wteh-offboarding-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wteh-offboarding-form { padding: 16px; }
  .wteh-offboarding-panel > .wteh-card-heading { align-items: flex-start; gap: 12px; }
}

@media (max-width: 460px) {
  .wteh-offboarding-summary { grid-template-columns: 1fr; }
  .wteh-employment-filters { display: grid; grid-template-columns: 1fr 1fr; }
  .wteh-employment-filters a:last-child { grid-column: 1 / -1; }
}

@media (max-width: 460px) {
  .wteh-portal-brand > div:last-child {
    display: none;
  }

  .wteh-portal-brand {
    flex: 0 0 40px;
    gap: 0;
  }
}

@media (max-width: 370px) {

  .wteh-stats-grid {
    grid-template-columns: 1fr;
  }

  .wteh-stat-card {
    align-items: center;
    flex-direction: row;
    min-height: 88px;
  }
}

@media print {
  .wteh-sidebar,
  .wteh-portal-header,
  .wteh-button,
  .wteh-sticky-actions {
    display: none !important;
  }

  .wteh-portal-layout {
    display: block;
  }

  .wteh-portal-main {
    padding: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wteh-shell *,
  .wteh-shell *::before,
  .wteh-shell *::after {
    animation-duration: .01ms !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

/* Attendance workspace */
.wteh-attendance-clock {
  align-items: center;
  background:
    radial-gradient(circle at 88% 10%, color-mix(in srgb, var(--wteh-accent) 12%, transparent), transparent 34%),
    var(--wteh-surface);
  border: 1px solid var(--wteh-border);
  border-radius: 18px;
  box-shadow: var(--wteh-shadow-sm);
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  margin-bottom: 18px;
  overflow: hidden;
  padding: 20px 22px;
  position: relative;
}

.wteh-attendance-clock::before {
  background: var(--wteh-accent);
  content: "";
  inset: 0 0 0 auto;
  opacity: .8;
  position: absolute;
  width: 4px;
}

.wteh-attendance-clock.is-online {
  background:
    radial-gradient(circle at 88% 10%, rgba(16, 185, 129, .16), transparent 36%),
    var(--wteh-surface);
  border-color: color-mix(in srgb, #10b981 34%, var(--wteh-border));
}

.wteh-attendance-clock.is-online::before { background: #10b981; }
.wteh-attendance-clock.is-leave::before,
.wteh-attendance-clock.is-off::before { background: #94a3b8; }

.wteh-attendance-clock-main {
  align-items: center;
  display: flex;
  gap: 13px;
  min-width: 0;
}

.wteh-attendance-pulse {
  background: #94a3b8;
  border: 7px solid color-mix(in srgb, #94a3b8 13%, var(--wteh-surface));
  border-radius: 50%;
  box-shadow: 0 0 0 1px color-mix(in srgb, #94a3b8 20%, transparent);
  flex: 0 0 15px;
  height: 15px;
  width: 15px;
}

.is-online .wteh-attendance-pulse {
  animation: wteh-attendance-pulse 1.9s ease-out infinite;
  background: #10b981;
  border-color: color-mix(in srgb, #10b981 14%, var(--wteh-surface));
  box-shadow: 0 0 0 1px rgba(16, 185, 129, .24);
}

@keyframes wteh-attendance-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, .28); }
  55% { box-shadow: 0 0 0 9px rgba(16, 185, 129, 0); }
}

.wteh-attendance-clock-main h3 {
  font-size: 17px;
  font-weight: 850;
  line-height: 1.5;
  margin: 1px 0 0;
}

.wteh-attendance-clock-main p {
  color: var(--wteh-text-3);
  font-size: 11px;
  margin: 1px 0 0;
}

.wteh-attendance-today-metrics {
  align-items: center;
  display: flex;
  gap: 8px;
}

.wteh-attendance-today-metrics > div {
  background: color-mix(in srgb, var(--wteh-surface-2) 88%, transparent);
  border: 1px solid var(--wteh-border);
  border-radius: 12px;
  min-width: 102px;
  padding: 8px 11px;
}

.wteh-attendance-today-metrics span,
.wteh-attendance-today-metrics strong {
  display: block;
  white-space: nowrap;
}

.wteh-attendance-today-metrics span {
  color: var(--wteh-text-3);
  font-size: 9px;
  font-weight: 700;
}

.wteh-attendance-today-metrics strong {
  color: var(--wteh-text);
  direction: ltr;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  margin-top: 1px;
  text-align: right;
}

.wteh-attendance-today-metrics .is-late {
  background: color-mix(in srgb, #f59e0b 8%, var(--wteh-surface));
  border-color: color-mix(in srgb, #f59e0b 25%, var(--wteh-border));
}

.wteh-attendance-today-metrics .is-late strong { color: #b45309; }

.wteh-attendance-clock-action {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  justify-content: flex-end;
}

.wteh-attendance-clock-action form { margin: 0; }

.wteh-attendance-start,
.wteh-attendance-stop {
  align-items: center;
  border: 0 !important;
  border-radius: 12px !important;
  box-shadow: none !important;
  display: inline-flex;
  font-size: 12px !important;
  font-weight: 800 !important;
  gap: 8px;
  justify-content: center;
  min-height: 44px;
  min-width: 118px;
  padding: 9px 16px !important;
}

.wteh-attendance-start {
  background: linear-gradient(135deg, #10b981, #059669) !important;
  color: #fff !important;
}

.wteh-attendance-stop {
  background: color-mix(in srgb, #f43f5e 11%, var(--wteh-surface)) !important;
  border: 1px solid color-mix(in srgb, #f43f5e 25%, var(--wteh-border)) !important;
  color: #be123c !important;
}

.wteh-attendance-start > span,
.wteh-attendance-stop > span {
  background: currentColor;
  border-radius: 50%;
  flex: 0 0 8px;
  height: 8px;
  width: 8px;
}

.wteh-attendance-stop > span { border-radius: 2px; }

.wteh-attendance-details-link {
  color: var(--wteh-accent-readable) !important;
  font-size: 10px;
  font-weight: 750;
  text-decoration: none !important;
}

.wteh-attendance-disabled {
  background: var(--wteh-surface-2);
  border: 1px solid var(--wteh-border);
  border-radius: 10px;
  color: var(--wteh-text-3);
  font-size: 10px;
  padding: 8px 11px;
}

.wteh-attendance-auto-note {
  border-top: 1px solid var(--wteh-border);
  color: var(--wteh-text-3);
  font-size: 9.5px;
  grid-column: 1 / -1;
  padding-top: 9px;
}

.wteh-attendance-status {
  align-items: center;
  background: var(--wteh-surface-2);
  border: 1px solid var(--wteh-border);
  border-radius: 999px;
  color: var(--wteh-text-2);
  display: inline-flex;
  font-size: 9.5px;
  font-weight: 750;
  gap: 6px;
  padding: 4px 8px;
  white-space: nowrap;
}

.wteh-attendance-status i {
  background: #94a3b8;
  border-radius: 50%;
  height: 6px;
  width: 6px;
}

.wteh-attendance-status.is-online {
  background: color-mix(in srgb, #10b981 9%, var(--wteh-surface));
  border-color: color-mix(in srgb, #10b981 24%, var(--wteh-border));
  color: #047857;
}

.wteh-attendance-status.is-online i { background: #10b981; }
.wteh-attendance-status.is-completed i { background: #3b82f6; }
.wteh-attendance-status.is-absent { color: #be123c; }
.wteh-attendance-status.is-absent i { background: #f43f5e; }
.wteh-attendance-status.is-leave i { background: #8b5cf6; }

.wteh-live-label {
  color: #059669;
  font-size: 10px;
  font-weight: 800;
}

.wteh-auto-closed {
  color: var(--wteh-text-3);
  display: block;
  font-size: 8.5px;
  margin-top: 4px;
}

.wteh-attendance-filter {
  align-items: flex-end;
  grid-template-columns: minmax(220px, 340px) auto auto;
}

.wteh-attendance-filter .wteh-field { margin: 0; }
.wteh-attendance-table [data-wteh-attendance-elapsed] { direction: ltr; font-variant-numeric: tabular-nums; }

.wteh-theme-dark .wteh-attendance-status.is-online { color: #7ce3bc; }
.wteh-theme-dark .wteh-attendance-status.is-absent { color: #ff9aac; }
.wteh-theme-dark .wteh-attendance-stop { color: #ff9aac !important; }
.wteh-theme-dark .wteh-attendance-today-metrics .is-late strong { color: #f8ca70; }

@media (max-width: 1120px) {
  .wteh-attendance-clock { grid-template-columns: minmax(220px, 1fr) auto; }
  .wteh-attendance-clock-action { grid-column: 1 / -1; justify-content: flex-start; }
}

@media (max-width: 640px) {
  .wteh-attendance-clock {
    align-items: stretch;
    gap: 14px;
    grid-template-columns: 1fr;
    padding: 17px;
  }
  .wteh-attendance-clock-action { grid-column: auto; }
  .wteh-attendance-today-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wteh-attendance-today-metrics > div { min-width: 0; }
  .wteh-attendance-start,
  .wteh-attendance-stop { width: 100%; }
  .wteh-attendance-clock-action form { width: 100%; }
  .wteh-attendance-filter { align-items: stretch; display: flex; flex-direction: column; }
  .wteh-attendance-filter .wteh-button { width: 100%; }
}

/* Organizational units and middle-manager workspace. */
.wteh-org-units {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.wteh-org-editor { border-top: 3px solid var(--wteh-accent); }

.wteh-org-unit {
  overflow: hidden;
  position: relative;
}

.wteh-org-unit.is-inactive { opacity: .72; }

.wteh-org-unit .wteh-card-heading {
  align-items: flex-start;
  border-bottom: 1px solid var(--wteh-border);
  gap: 20px;
  margin: -2px -2px 18px;
  padding: 2px 2px 18px;
}

.wteh-org-status {
  background: color-mix(in srgb, #10b981 12%, var(--wteh-surface));
  border: 1px solid color-mix(in srgb, #10b981 30%, var(--wteh-border));
  border-radius: 999px;
  color: #047857;
  display: inline-flex;
  font-size: 10px;
  font-weight: 850;
  margin-bottom: 8px;
  padding: 4px 10px;
}

.wteh-org-unit.is-inactive .wteh-org-status {
  background: var(--wteh-surface-2);
  border-color: var(--wteh-border);
  color: var(--wteh-text-3);
}

.wteh-org-manager {
  background: var(--wteh-surface-2);
  border: 1px solid var(--wteh-border);
  border-radius: 16px;
  display: grid;
  min-width: 210px;
  padding: 12px 16px;
}

.wteh-org-manager span,
.wteh-org-manager small { color: var(--wteh-text-3); font-size: 10px; }
.wteh-org-manager strong { color: var(--wteh-text); font-size: 14px; margin: 3px 0; }
.wteh-org-members h4 { color: var(--wteh-text); margin: 0 0 12px; }
.wteh-org-members .wteh-table a { color: var(--wteh-accent); font-weight: 750; text-decoration: none; }
.wteh-link-button.is-danger { color: #dc2626; }

.wteh-org-add-member {
  align-items: flex-end;
  background: var(--wteh-surface-2);
  border: 1px dashed color-mix(in srgb, var(--wteh-accent) 34%, var(--wteh-border));
  border-radius: 16px;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(220px, 1fr) auto;
  margin-top: 16px;
  padding: 14px;
}

.wteh-org-add-member .wteh-field { margin: 0; }
.wteh-org-actions { align-items: center; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.wteh-org-actions form { margin: 0; }

.wteh-theme-dark .wteh-org-status { color: #7ce3bc; }
.wteh-theme-dark .wteh-link-button.is-danger { color: #ff9aac; }

@media (max-width: 720px) {
  .wteh-org-unit .wteh-card-heading { display: grid; }
  .wteh-org-manager { min-width: 0; width: 100%; }
  .wteh-org-add-member { align-items: stretch; grid-template-columns: 1fr; }
  .wteh-org-add-member .wteh-button { width: 100%; }
  .wteh-org-actions { display: grid; grid-template-columns: 1fr; }
  .wteh-org-actions .wteh-button { width: 100%; }
}


/* v1.16.1 mobile header refinement + WebTechs logo fit */
@media (max-width: 860px) {
  .wteh-portal-header {
    box-sizing: border-box;
    height: 60px;
    min-height: 60px;
    gap: 8px;
    padding-top: max(7px, env(safe-area-inset-top));
    padding-right: max(10px, env(safe-area-inset-right));
    padding-bottom: 7px;
    padding-left: max(10px, env(safe-area-inset-left));
  }

  .wteh-portal-brand {
    flex: 1 1 auto;
    gap: 8px;
    min-width: 0;
    overflow: hidden;
  }

  .wteh-portal-brand .wteh-company-logo {
    box-sizing: border-box;
    flex: 0 0 auto;
    height: 36px;
    max-width: 62px;
    padding: 2px;
    border-radius: 10px;
    object-fit: contain;
  }

  .wteh-portal-brand > div:last-child {
    min-width: 0;
    overflow: hidden;
  }

  .wteh-portal-brand strong {
    display: block;
    max-width: 118px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 11.5px;
  }

  .wteh-portal-brand span,
  .wteh-header-context {
    display: none !important;
  }

  .wteh-header-actions {
    flex: 0 0 auto;
    gap: 5px;
    margin-inline-start: auto;
  }

  .wteh-theme-toggle,
  .wteh-notification-toggle,
  .wteh-header-menu {
    box-sizing: border-box;
    height: 36px;
    min-height: 36px;
    border-radius: 10px;
  }

  .wteh-theme-toggle,
  .wteh-notification-toggle {
    width: 36px;
  }

  .wteh-header-menu {
    width: 36px;
    min-width: 36px;
    padding: 0;
  }

  .wteh-header-menu > .wteh-menu-label {
    display: none;
  }

  .wteh-theme-icon,
  .wteh-theme-icon svg {
    width: 18px;
    height: 18px;
  }

  .wteh-bell-icon,
  .wteh-bell-icon svg,
  .wteh-header-menu > svg {
    width: 18px;
    height: 18px;
  }

  .wteh-notification-toggle > b {
    top: -5px;
    right: -5px;
  }

  .wteh-portal-layout {
    min-height: calc(100svh - 60px);
  }

  .wteh-portal-main {
    min-height: calc(100svh - 60px);
  }

  .wteh-notification-popover {
    top: calc(60px + env(safe-area-inset-top));
    left: 8px;
    right: 8px;
    max-height: calc(100svh - 72px - env(safe-area-inset-top));
  }
}

@media (max-width: 420px) {
  .wteh-portal-header {
    gap: 6px;
    padding-right: max(8px, env(safe-area-inset-right));
    padding-left: max(8px, env(safe-area-inset-left));
  }

  .wteh-portal-brand {
    gap: 0;
  }

  .wteh-portal-brand .wteh-company-logo {
    height: 34px;
    max-width: 58px;
  }

  .wteh-portal-brand > div:last-child {
    display: none;
  }

  .wteh-header-actions {
    gap: 4px;
  }

  .wteh-theme-toggle,
  .wteh-notification-toggle,
  .wteh-header-menu {
    height: 34px;
    min-height: 34px;
  }

  .wteh-theme-toggle,
  .wteh-notification-toggle,
  .wteh-header-menu {
    width: 34px;
    min-width: 34px;
  }
}
