/* ================================================================
   TalentHub — Redesign v3.3
   Sidebar layout + hover nav + dashboard styles
   ================================================================ */

:root {
  --c-accent:    #1e8c7c;
  --c-accent-dk: #155f56;
  --c-accent-bg: #edf7f5;
  --c-brand:     #10343a;
  --c-text:      #1c2b2e;
  --c-muted:     #738a8f;
  --c-border:    #e2ebe9;
  --c-bg:        #f5f7f7;
  --c-white:     #ffffff;
  --c-nav-width: 56px;
  --shadow-sm: 0 1px 4px rgba(0,0,0,0.08);
  --shadow-md: 0 3px 12px rgba(0,0,0,0.10);
  --r:    10px;
  --r-sm: 7px;
}

body { background: var(--c-bg) !important; }

/* ══════════════════════════════════════════
   SIDEBAR SHELL — override horizontal layout
   ══════════════════════════════════════════ */
.client-shell {
  display: flex !important;
  flex-direction: row !important;
  min-height: 100vh !important;
  background: var(--c-bg) !important;
}

/* Sidebar (was horizontal bar) */
.client-shell > .client-top,
.client-shell > header.client-top {
  position: sticky !important;
  top: 0 !important;
  height: 100vh !important;
  max-height: 100vh !important;
  width: var(--c-nav-width) !important;
  min-width: var(--c-nav-width) !important;
  max-width: var(--c-nav-width) !important;
  flex-shrink: 0 !important;
  background: var(--c-white) !important;
  border-right: 1px solid var(--c-border) !important;
  border-bottom: none !important;
  backdrop-filter: none !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  padding: 8px 0 !important;
  z-index: 100 !important;
  /* Overflow: hidden on y to prevent height growth, visible on x for flyout */
  overflow: visible !important;
}

/* Inner wrapper inside header — reset */
.client-top-inner,
.uxv080-top-inner,
.uxv081-top-inner,
.uxv082-top-inner,
.uxv083-top-inner,
.uxv084-top-inner,
.uxv085-top-inner {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  flex: 1 !important;
  height: 100% !important;
  overflow: visible !important;
}

/* Brand logo at top */
.client-brand,
.refined-client-brand {
  width: 40px !important;
  height: 40px !important;
  margin-bottom: 10px !important;
  flex-shrink: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.client-brand img { width: 34px !important; height: 34px !important; object-fit: contain !important; content: url('/assets/img/favicon.png') !important; }
.client-brand .brand-text-fallback { display: none !important; }

/* Main content area */
.client-main {
  flex: 1 !important;
  min-width: 0 !important;
  padding: 24px !important;
  overflow-x: hidden !important;
}

/* ══════════════════════════════════════════
   NAV — Sidebar vertical icon-only
   ══════════════════════════════════════════ */

/* The nav wrapper */
.client-shell .client-nav,
.client-shell .grouped-client-nav {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 2px !important;
  width: 100% !important;
  flex: 1 !important;
  overflow: visible !important;
  padding: 0 !important;
}

/* ── Direct nav items (Início, Relatórios) ── */
.client-shell .client-nav .nav-direct,
.client-shell .grouped-client-nav .nav-direct {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  width: 100% !important;
  height: 44px !important;
  border-radius: var(--r-sm) !important;
  color: var(--c-muted) !important;
  text-decoration: none !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  gap: 10px !important;
  padding: 0 16px !important;
  transition: all 0.15s !important;
  position: relative !important;
  overflow: hidden !important;
  flex-shrink: 0 !important;
}

/* Re-show SVG inside nav-direct */
.client-shell .client-nav .nav-direct svg,
.client-shell .grouped-client-nav .nav-direct svg {
  font-size: 16px !important; /* reset */
  width: 20px !important;
  height: 20px !important;
  flex-shrink: 0 !important;
  display: block !important;
}

/* ── Nav group button (Vagas, Candidaturas, Organização) ── */
.client-shell .client-nav .nav-group > button,
.client-shell .grouped-client-nav .nav-group > button {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  width: 100% !important;
  height: 44px !important;
  border-radius: var(--r-sm) !important;
  color: var(--c-muted) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  gap: 10px !important;
  padding: 0 16px !important;
  background: transparent !important;
  border: none !important;
  cursor: pointer !important;
  position: relative !important;
  transition: all 0.15s !important;
  overflow: hidden !important;
  flex-shrink: 0 !important;
}

/* Re-show SVG inside button */
.client-shell .client-nav .nav-group > button svg,
.client-shell .grouped-client-nav .nav-group > button svg {
  font-size: 16px !important;
  width: 20px !important;
  height: 20px !important;
  flex-shrink: 0 !important;
  display: block !important;
}

/* Hover states */
.client-shell .client-nav .nav-direct:hover,
.client-shell .grouped-client-nav .nav-direct:hover,
.client-shell .client-nav .nav-group:hover > button,
.client-shell .grouped-client-nav .nav-group:hover > button {
  background: var(--c-accent-bg) !important;
  color: var(--c-accent) !important;
}

/* Active states */
.client-shell .client-nav .nav-direct.active,
.client-shell .grouped-client-nav .nav-direct.active {
  background: var(--c-accent-bg) !important;
  color: var(--c-accent) !important;
}
.client-shell .client-nav .nav-direct.active::before,
.client-shell .grouped-client-nav .nav-direct.active::before,
.client-shell .client-nav .nav-group.active > button::before,
.client-shell .grouped-client-nav .nav-group.active > button::before {
  content: '' !important;
  position: absolute !important;
  left: -6px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 3px !important;
  height: 24px !important;
  background: var(--c-accent) !important;
  border-radius: 0 3px 3px 0 !important;
}

/* ── NAV GROUP container ── */
.client-shell .client-nav .nav-group,
.client-shell .grouped-client-nav .nav-group {
  position: relative !important;
  width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  align-items: stretch !important;
}

/* ── INLINE MENU — shown inline in sidebar ── */
.client-shell .client-nav .nav-group > .nav-menu,
.client-shell .grouped-client-nav .nav-group > .nav-menu,
.client-shell .client-nav .nav-group > ul,
.client-shell .grouped-client-nav .nav-group > ul,
.client-shell .client-nav .nav-group > div[class*="nav-"],
.client-shell .grouped-client-nav .nav-group > div[class*="nav-"] {
  display: none !important;
  position: static !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  min-width: 100% !important;
  width: 100% !important;
  z-index: 1 !important;
  padding: 0 0 4px 0 !important;
  pointer-events: auto !important;
}

/* Show flyout on group hover */
.client-shell .client-nav .nav-group:hover > .nav-menu,
.client-shell .grouped-client-nav .nav-group:hover > .nav-menu,
.client-shell .client-nav .nav-group:hover > ul,
.client-shell .grouped-client-nav .nav-group:hover > ul,
.client-shell .client-nav .nav-group:hover > div[class*="nav-"],
.client-shell .grouped-client-nav .nav-group:hover > div[class*="nav-"] {
  display: block !important;
}

/* Inline nav sub-links */
.client-shell .client-nav .nav-group .nav-menu a,
.client-shell .grouped-client-nav .nav-group .nav-menu a {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 6px 16px 6px 40px !important;
  border-radius: 6px !important;
  color: var(--c-text) !important;
  text-decoration: none !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  white-space: nowrap !important;
  gap: 8px !important;
  transition: background 0.12s !important;
  width: 100% !important;
}
.client-shell .client-nav .nav-group .nav-menu a:hover,
.client-shell .grouped-client-nav .nav-group .nav-menu a:hover {
  background: var(--c-accent-bg) !important;
  color: var(--c-accent) !important;
}
.nav-label { flex: 1 !important; }
.nav-count {
  background: var(--c-accent-bg) !important;
  color: var(--c-accent) !important;
  border-radius: 99px !important;
  padding: 1px 7px !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
}

/* ── USER / bottom area ── */
.uxv081-user-area {
  margin-top: auto !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  padding-bottom: 8px !important;
  gap: 4px !important;
  width: 100% !important;
  flex-shrink: 0 !important;
}
.uxv081-user-area > button {
  width: 44px !important; height: 44px !important;
  border: none !important; border-radius: var(--r-sm) !important;
  cursor: pointer !important; display: flex !important;
  align-items: center !important; justify-content: center !important;
  background: transparent !important; color: var(--c-muted) !important;
  font-size: 14px !important;
  overflow: hidden !important;
}
.uxv081-user-area > button svg { font-size: 16px !important; width: 20px !important; height: 20px !important; }
.uxv081-user-area > button:hover { background: var(--c-accent-bg) !important; color: var(--c-accent) !important; }

/* Hide language switcher, org/user text in header bar area */
.client-shell > .client-top .uxv082-header-bar,
.client-shell > .client-top .uxv083-header-top-bar,
.client-shell > .client-top [class*="header-bar"],
.client-shell > .client-top [class*="top-bar"] {
  display: none !important;
}

/* ══════════════════════════════════════════
   PAGE HEAD
   ══════════════════════════════════════════ */
.uxv082-page-head {
  display: flex !important; align-items: center !important;
  gap: 6px !important; margin-bottom: 20px !important;
}
.uxv082-page-head span {
  font-size: 0.72rem !important; color: var(--c-muted) !important;
  text-transform: uppercase !important; letter-spacing: 0.06em !important;
}
.uxv082-page-head span::after { content: " /"; }
.uxv082-page-head h1 {
  font-size: 1.25rem !important; font-weight: 700 !important;
  color: var(--c-text) !important; margin: 0 !important;
}

/* ══════════════════════════════════════════
   DASHBOARD WELCOME BANNER
   ══════════════════════════════════════════ */
.db-welcome {
  background: linear-gradient(135deg, var(--c-accent) 0%, var(--c-accent-dk) 100%);
  border-radius: var(--r) !important; padding: 20px 24px !important;
  margin-bottom: 16px !important; display: flex !important;
  align-items: center !important; justify-content: space-between !important;
  color: #fff !important;
}
.db-welcome-left h2 {
  font-size: 1.15rem !important; font-weight: 700 !important;
  margin: 0 0 3px 0 !important; color: #fff !important;
}
.db-welcome-left p {
  font-size: 0.82rem !important; opacity: 0.85 !important;
  margin: 0 !important; color: #fff !important;
}
.db-welcome-meta {
  display: flex !important; gap: 16px !important; margin-top: 8px !important;
}
.db-welcome-meta-item {
  display: flex !important; align-items: center !important; gap: 5px !important;
  font-size: 0.78rem !important; opacity: 0.9 !important; color: #fff !important;
}
.db-welcome-right {
  display: flex !important; gap: 10px !important; flex-shrink: 0 !important;
}
.db-welcome-stat {
  background: rgba(255,255,255,0.15) !important; border-radius: var(--r-sm) !important;
  padding: 10px 16px !important; text-align: center !important;
}
.db-welcome-stat strong {
  display: block !important; font-size: 1.5rem !important;
  font-weight: 800 !important; color: #fff !important; line-height: 1 !important;
}
.db-welcome-stat span {
  font-size: 0.68rem !important; opacity: 0.8 !important;
  text-transform: uppercase !important; letter-spacing: 0.05em !important;
  color: #fff !important;
}

/* ══════════════════════════════════════════
   KPI CARDS
   ══════════════════════════════════════════ */
.db-kpi-row {
  display: grid !important; grid-template-columns: repeat(4,1fr) !important;
  gap: 12px !important; margin-bottom: 14px !important;
}
.db-kpi-card {
  background: var(--c-white) !important; border: 1px solid var(--c-border) !important;
  border-radius: var(--r) !important; padding: 16px !important;
  display: flex !important; flex-direction: column !important; gap: 2px !important;
  text-decoration: none !important; color: var(--c-text) !important;
  box-shadow: var(--shadow-sm) !important; transition: box-shadow 0.15s, transform 0.15s !important;
}
.db-kpi-card:hover { box-shadow: var(--shadow-md) !important; transform: translateY(-1px) !important; }
.db-kpi-icon {
  width: 36px !important; height: 36px !important; border-radius: 8px !important;
  display: flex !important; align-items: center !important;
  justify-content: center !important; margin-bottom: 8px !important; flex-shrink: 0 !important;
}
.db-kpi-icon--blue   { background: #eff6ff !important; color: #3b82f6 !important; }
.db-kpi-icon--purple { background: #f5f3ff !important; color: #8b5cf6 !important; }
.db-kpi-icon--green  { background: #f0fdf4 !important; color: #22c55e !important; }
.db-kpi-icon--teal   { background: var(--c-accent-bg) !important; color: var(--c-accent) !important; }
.db-kpi-icon--orange { background: #fff7ed !important; color: #f97316 !important; }
.db-kpi-value { font-size: 1.6rem !important; font-weight: 800 !important; line-height: 1 !important; color: var(--c-text) !important; }
.db-kpi-label { font-size: 0.7rem !important; font-weight: 700 !important; color: var(--c-muted) !important; text-transform: uppercase !important; letter-spacing: 0.05em !important; margin-top: 2px !important; }
.db-kpi-sub { font-size: 0.72rem !important; color: var(--c-muted) !important; margin-top: 4px !important; }

/* ══════════════════════════════════════════
   MAIN GRID
   ══════════════════════════════════════════ */
.db-main-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr 280px !important;
  gap: 12px !important; margin-bottom: 14px !important;
}
.db-card {
  background: var(--c-white) !important; border: 1px solid var(--c-border) !important;
  border-radius: var(--r) !important; padding: 16px !important;
  box-shadow: var(--shadow-sm) !important;
}
.db-card--full { margin-bottom: 0 !important; }
.db-card-head {
  display: flex !important; align-items: center !important;
  justify-content: space-between !important; margin-bottom: 14px !important;
}
.db-card-title {
  font-size: 0.72rem !important; font-weight: 700 !important;
  color: var(--c-text) !important; text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
}
.db-btn-link { font-size: 0.75rem !important; color: var(--c-accent) !important; text-decoration: none !important; font-weight: 600 !important; }
.db-btn-link:hover { text-decoration: underline !important; }
.db-btn-primary {
  background: var(--c-accent) !important; color: #fff !important;
  border: none !important; border-radius: 6px !important;
  padding: 5px 12px !important; font-size: 0.78rem !important;
  font-weight: 600 !important; cursor: pointer !important;
  text-decoration: none !important; display: inline-block !important;
}
.db-btn-primary:hover { background: var(--c-accent-dk) !important; }

/* ── Pipeline bars ── */
.db-pipeline-bars { display: flex !important; flex-direction: column !important; gap: 10px !important; }
.db-pipe-row {
  display: grid !important; grid-template-columns: 90px 1fr 36px !important;
  align-items: center !important; gap: 8px !important;
  text-decoration: none !important; color: var(--c-text) !important;
}
.db-pipe-row:hover .db-pipe-label { color: var(--c-accent) !important; }
.db-pipe-label { font-size: 0.78rem !important; color: var(--c-muted) !important; font-weight: 500 !important; white-space: nowrap !important; }
.db-pipe-track { background: var(--c-bg) !important; border-radius: 99px !important; height: 8px !important; overflow: hidden !important; }
.db-pipe-fill { height: 100% !important; border-radius: 99px !important; transition: width 0.4s !important; min-width: 2px !important; }
.db-pipe-val { font-size: 0.78rem !important; font-weight: 700 !important; color: var(--c-text) !important; text-align: right !important; }

/* ── Alerts ── */
.db-alerts { display: flex !important; flex-direction: column !important; gap: 8px !important; }
.db-alert-item {
  display: flex !important; align-items: flex-start !important; gap: 8px !important;
  padding: 9px 10px !important; border-radius: 8px !important;
  text-decoration: none !important; color: var(--c-text) !important;
  font-size: 0.8rem !important; transition: opacity 0.15s !important;
}
.db-alert-item:hover { opacity: 0.85 !important; }
.db-alert--blue   { background: #eff6ff !important; }
.db-alert--orange { background: #fff7ed !important; }
.db-alert--purple { background: #f5f3ff !important; }
.db-alert--green  { background: #f0fdf4 !important; }
.db-alert-body strong { display: block !important; font-weight: 700 !important; }

/* ── Quick actions ── */
.db-quick-actions {
  display: grid !important; grid-template-columns: 1fr 1fr !important; gap: 7px !important;
}
.db-quick-btn {
  display: flex !important; align-items: center !important; gap: 7px !important;
  padding: 9px 10px !important; border-radius: var(--r-sm) !important;
  background: var(--c-bg) !important; border: 1px solid var(--c-border) !important;
  text-decoration: none !important; color: var(--c-text) !important;
  font-size: 0.76rem !important; font-weight: 600 !important;
  transition: all 0.15s !important; cursor: pointer !important;
  white-space: nowrap !important;
}
.db-quick-btn:hover { background: var(--c-accent-bg) !important; border-color: var(--c-accent) !important; color: var(--c-accent) !important; }
.db-quick-btn svg { width: 14px !important; height: 14px !important; flex-shrink: 0 !important; }

/* ── Table ── */
.db-table-wrap { overflow-x: auto !important; }
.db-table { width: 100% !important; border-collapse: collapse !important; font-size: 0.82rem !important; }
.db-table th {
  text-align: left !important; padding: 8px 10px !important;
  color: var(--c-muted) !important; font-size: 0.68rem !important;
  font-weight: 700 !important; text-transform: uppercase !important;
  letter-spacing: 0.06em !important; border-bottom: 1px solid var(--c-border) !important;
}
.db-table td { padding: 10px !important; border-bottom: 1px solid var(--c-bg) !important; vertical-align: middle !important; }
.db-table tbody tr:last-child td { border-bottom: none !important; }
.db-table tbody tr:hover td { background: var(--c-bg) !important; }
.db-th-num { text-align: right !important; }
.db-job-name { font-weight: 600 !important; color: var(--c-text) !important; }
.db-badge { display: inline-flex !important; align-items: center !important; padding: 2px 9px !important; border-radius: 99px !important; font-size: 0.72rem !important; font-weight: 600 !important; }
.badge-green  { background: #dcfce7 !important; color: #15803d !important; }
.badge-gray   { background: #f1f5f9 !important; color: #64748b !important; }
.badge-orange { background: #ffedd5 !important; color: #c2410c !important; }
.badge-blue   { background: #dbeafe !important; color: #1d4ed8 !important; }
.db-app-count { font-weight: 700 !important; color: var(--c-text) !important; }
.db-app-count.zero { color: var(--c-muted) !important; }
.db-btn-open {
  font-size: 0.72rem !important; color: var(--c-accent) !important;
  text-decoration: none !important; font-weight: 600 !important;
  padding: 3px 8px !important; border-radius: 5px !important;
  border: 1px solid var(--c-accent) !important; white-space: nowrap !important;
}
.db-btn-open:hover { background: var(--c-accent) !important; color: #fff !important; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--c-border); border-radius: 99px; }

/* ── OVERFLOW FIXES for flyout nav ── */
/* client-shell must allow overflow for flyout menus */
html body .client-shell {
  overflow: visible !important;
  overflow-x: visible !important;
  overflow-y: visible !important;
}
/* client-top sidebar must allow overflow */
html body .client-shell > .client-top,
html body .client-shell > header.client-top {
  overflow: visible !important;
  overflow-x: visible !important;
  overflow-y: visible !important;
}
html body .client-shell .client-top-inner,
html body .client-shell [class*="top-inner"] {
  overflow: visible !important;
}
html body .client-shell .client-nav,
html body .client-shell .grouped-client-nav {
  overflow: visible !important;
}
html body .client-shell .client-nav .nav-group,
html body .client-shell .grouped-client-nav .nav-group {
  overflow: visible !important;
  position: relative !important;
}
/* Scroll only on main content area */
html body .client-shell .client-main {
  overflow-y: auto !important;
  overflow-x: hidden !important;
}


/* ══════════════════════════════════════════
   FIX: Use position:fixed for flyout to bypass overflow:hidden on ancestors
   ══════════════════════════════════════════ */

/* Nav-menu inline in sidebar */
html body .client-shell.uxv085-shell .nav-group > .nav-menu,
html body .client-shell .client-nav .nav-group > .nav-menu,
html body .client-shell .grouped-client-nav .nav-group > .nav-menu {
  position: static !important;
  left: auto !important;
  right: auto !important;
  top: auto !important;
  width: 100% !important;
  min-width: 100% !important;
  max-height: none !important;
  overflow: visible !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 0 4px 0 !important;
  z-index: 1 !important;
  display: none !important;
}

/* Show on hover */
html body .client-shell .client-nav .nav-group:hover > .nav-menu,
html body .client-shell .grouped-client-nav .nav-group:hover > .nav-menu,
html body .client-shell.uxv085-shell .nav-group:hover > .nav-menu {
  display: block !important;
}

/* Override shell overflow-x to allow fixed children to show */
html body .client-shell,
html body .refined-client-shell,
html body .v043-shell {
  max-width: 100vw !important;
  overflow-x: visible !important;
}

/* Nav menu inline sub-links */
html body .client-shell .nav-group .nav-menu a {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 6px 16px 6px 40px !important;
  border-radius: 6px !important;
  color: #1c2b2e !important;
  text-decoration: none !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  white-space: nowrap !important;
  gap: 8px !important;
  background: transparent !important;
  position: static !important;
  left: auto !important;
  right: auto !important;
  top: auto !important;
  width: 100% !important;
  min-width: 0 !important;
  max-height: none !important;
  overflow: visible !important;
  transition: background 0.12s !important;
}
html body .client-shell .nav-group .nav-menu a:hover {
  background: #edf7f5 !important;
  color: #1e8c7c !important;
}

/* ═══ CONTEXTBAR HIDE (white box fix) ═══ */
.uxv084-contextbar, .uxv085-contextbar { display: none !important; }
.client-shell { }
.client-main { margin-left: 200px !important; }


.client-main {
  background: var(--c-bg) !important;
  width: 100% !important;
  flex: 1 1 0% !important;
}
.client-main > * {
  max-width: 1280px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  width: 100% !important;
  box-sizing: border-box !important;
}
/* ══════════════════════════════════════════════
   v3.6 — FULL-WIDTH + CENTRED LAYOUT + LOGO FIX
   ══════════════════════════════════════════════ */

/* 1. Force shell to fill full viewport */
html, body {
  width: 100% !important;
  min-width: 100% !important;
}
.client-shell,
.refined-client-shell {
  width: 100vw !important;
  min-width: 100vw !important;
  max-width: 100vw !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: stretch !important;
  min-height: 100vh !important;
  overflow-x: hidden !important;
}

/* 2. Sidebar — expanded to show logo + labels */
.client-shell > header.client-top,
.client-shell > .client-top {
  position: fixed !important;
  left: 0 !important;
  top: 0 !important;
  width: 200px !important;
  min-width: 200px !important;
  max-width: 200px !important;
  height: 100vh !important;
  z-index: 900 !important;
  background: #ffffff !important;
  border-right: 1px solid var(--c-border) !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  padding: 16px 0 !important;
  overflow: visible !important;
  box-shadow: 2px 0 8px rgba(0,0,0,0.04) !important;
}

/* 3. Main content pushed right of 200px sidebar */
.client-main,
.refined-client-main {
  margin-left: 200px !important;
  width: calc(100vw - 200px) !important;
  min-width: 0 !important;
  flex: none !important;
  padding: 32px 48px !important;
  background: var(--c-bg) !important;
  min-height: 100vh !important;
  box-sizing: border-box !important;
}

/* 4. Content wrapper — centred with max-width */
.client-main > * {
  max-width: 1240px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

/* 5. Logo — show full horizontal logo */
.client-brand,
.refined-client-brand {
  width: 100% !important;
  height: auto !important;
  min-height: 56px !important;
  padding: 0 16px 8px 16px !important;
  margin-bottom: 8px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  border-bottom: 1px solid var(--c-border) !important;
}
.client-brand img,
.refined-client-brand img {
  width: auto !important;
  height: 32px !important;
  max-width: 160px !important;
  object-fit: contain !important;
  content: initial !important;
}

/* 6. Nav items — show icon + text */
.client-nav .nav-group > a,
.client-nav .nav-group > button,
.grouped-client-nav .nav-group > a,
.grouped-client-nav .nav-group > button {
  width: 100% !important;
  height: 44px !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  padding: 0 16px !important;
  gap: 10px !important;
  font-size: 14px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
}

/* 7. Nav text nodes visible again */
.client-nav .nav-group,
.grouped-client-nav .nav-group {
  font-size: 14px !important;
  overflow: visible !important;
}

/* 8. Nav menu — inline in sidebar */
.client-nav .nav-group .nav-menu,
.grouped-client-nav .nav-group .nav-menu {
  left: auto !important;
  width: 100% !important;
}

/* 9. Variable update */
:root { --c-nav-width: 200px !important; }

/* ══════════════════════════════════════════════
   v3.6b — CRITICAL: override style.css max-width on client-main
   ══════════════════════════════════════════════ */
.client-main,
.refined-client-main,
html body .client-main,
html body .refined-client-main {
  width: calc(100vw - 200px) !important;
  max-width: calc(100vw - 200px) !important;
  min-width: 0 !important;
  flex: none !important;
}

/* ══ v3.7 — Padding & max-width for visual centering ══ */
.client-main,
.refined-client-main,
html body .client-main {
  padding: 32px 40px !important;
}
.client-main > *,
html body .client-main > * {
  max-width: 1120px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

/* ══ v3.8 FINAL — symmetric padding, no max-width on children ══ */
html body .client-main,
html body .refined-client-main {
  padding-top: 32px !important;
  padding-bottom: 48px !important;
  padding-left: clamp(40px, 5vw, 120px) !important;
  padding-right: clamp(40px, 5vw, 120px) !important;
}
html body .client-main > *,
html body .refined-client-main > * {
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* Codex responsive stabilization 2026-07-20
   Keeps the desktop sidebar fluid and turns the shell into a real mobile layout. */
:root {
  --talent-sidebar-w: clamp(176px, 14vw, 220px);
}

html,
body {
  max-width: 100% !important;
  overflow-x: hidden !important;
}

html body .client-shell,
html body .refined-client-shell,
html body .v043-shell,
html body .uxv080-shell,
html body .uxv081-shell,
html body .uxv082-shell,
html body .uxv083-shell,
html body .uxv084-shell,
html body .uxv085-shell {
  min-width: 0 !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

@media (min-width: 901px) {
  html body .client-shell,
  html body .refined-client-shell,
  html body .v043-shell,
  html body .uxv080-shell,
  html body .uxv081-shell,
  html body .uxv082-shell,
  html body .uxv083-shell,
  html body .uxv084-shell,
  html body .uxv085-shell {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  html body .client-shell > header.client-top,
  html body .client-shell > .client-top,
  html body .refined-client-top,
  html body .v043-top,
  html body .uxv080-top,
  html body .uxv081-top,
  html body .uxv082-top,
  html body .uxv083-top,
  html body .uxv084-top,
  html body .uxv085-top {
    width: var(--talent-sidebar-w) !important;
    min-width: var(--talent-sidebar-w) !important;
    max-width: var(--talent-sidebar-w) !important;
  }

  html body .client-main,
  html body .refined-client-main,
  html body .v043-main,
  html body .uxv080-main,
  html body .uxv081-main,
  html body .uxv082-main,
  html body .uxv083-main,
  html body .uxv084-main,
  html body .uxv085-main {
    margin-left: var(--talent-sidebar-w) !important;
    width: calc(100vw - var(--talent-sidebar-w)) !important;
    max-width: calc(100vw - var(--talent-sidebar-w)) !important;
    min-width: 0 !important;
    flex: 0 0 calc(100vw - var(--talent-sidebar-w)) !important;
    box-sizing: border-box !important;
    padding-left: clamp(24px, 4vw, 72px) !important;
    padding-right: clamp(24px, 4vw, 72px) !important;
  }
}

@media (max-width: 900px) {
  html,
  body {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  html body .client-shell,
  html body .refined-client-shell,
  html body .v043-shell,
  html body .uxv080-shell,
  html body .uxv081-shell,
  html body .uxv082-shell,
  html body .uxv083-shell,
  html body .uxv084-shell,
  html body .uxv085-shell {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    min-height: 100vh !important;
    overflow-x: hidden !important;
  }

  html body .client-shell > header.client-top,
  html body .client-shell > .client-top,
  html body .refined-client-top,
  html body .v043-top,
  html body .uxv080-top,
  html body .uxv081-top,
  html body .uxv082-top,
  html body .uxv083-top,
  html body .uxv084-top,
  html body .uxv085-top {
    position: sticky !important;
    top: 0 !important;
    left: auto !important;
    right: auto !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    padding: 10px 12px !important;
    border-right: 0 !important;
    border-bottom: 1px solid rgba(16, 52, 58, 0.12) !important;
    overflow: visible !important;
    z-index: 1000 !important;
  }

  html body .client-top-inner,
  html body .v043-top-inner,
  html body .uxv080-top-inner,
  html body .uxv081-top-inner,
  html body .uxv082-top-inner,
  html body .uxv083-top-inner,
  html body .uxv084-top-inner,
  html body .uxv085-top-inner {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 8px !important;
    overflow: visible !important;
  }

  html body .client-brand,
  html body .refined-client-brand,
  html body .v043-brand,
  html body .uxv081-brand,
  html body .uxv082-brand,
  html body .uxv083-brand,
  html body .uxv084-brand,
  html body .uxv085-brand {
    width: auto !important;
    min-width: 0 !important;
    max-width: 176px !important;
    height: 34px !important;
    margin: 0 !important;
    flex: 0 1 176px !important;
  }

  html body .client-brand img,
  html body .refined-client-brand img {
    max-width: 100% !important;
    max-height: 34px !important;
    object-fit: contain !important;
  }

  html body .client-nav,
  html body .grouped-client-nav,
  html body .v043-nav,
  html body .uxv080-nav,
  html body .uxv081-nav,
  html body .uxv082-nav,
  html body .uxv083-nav,
  html body .uxv084-nav,
  html body .uxv085-nav {
    order: 5 !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 6px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    padding: 2px 0 4px !important;
    margin: 0 !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: thin !important;
  }

  html body .client-nav .nav-direct,
  html body .grouped-client-nav .nav-direct,
  html body .client-nav .nav-group,
  html body .grouped-client-nav .nav-group,
  html body .client-nav .nav-group > button,
  html body .grouped-client-nav .nav-group > button {
    width: auto !important;
    min-width: max-content !important;
    max-width: none !important;
    height: 38px !important;
    flex: 0 0 auto !important;
    white-space: nowrap !important;
  }

  html body .client-nav .nav-direct,
  html body .grouped-client-nav .nav-direct,
  html body .client-nav .nav-group > button,
  html body .grouped-client-nav .nav-group > button {
    padding: 0 10px !important;
    font-size: 12px !important;
    line-height: 1 !important;
    border-radius: 8px !important;
  }

  html body .client-nav .nav-direct.active::before,
  html body .grouped-client-nav .nav-direct.active::before,
  html body .client-nav .nav-group.active > button::before,
  html body .grouped-client-nav .nav-group.active > button::before {
    left: 8px !important;
    top: auto !important;
    bottom: 2px !important;
    transform: none !important;
    width: calc(100% - 16px) !important;
    height: 2px !important;
    border-radius: 2px !important;
  }

  html body .client-main,
  html body .refined-client-main,
  html body .v043-main,
  html body .uxv080-main,
  html body .uxv081-main,
  html body .uxv082-main,
  html body .uxv083-main,
  html body .uxv084-main,
  html body .uxv085-main {
    position: relative !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    margin-left: 0 !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    flex: 1 1 auto !important;
    box-sizing: border-box !important;
    padding: 18px 12px 32px !important;
    overflow-x: hidden !important;
  }

  html body .client-main *,
  html body .refined-client-main * {
    box-sizing: border-box !important;
    max-width: 100% !important;
  }

  html body .client-main > *,
  html body .refined-client-main > * {
    min-width: 0 !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  html body .refined-page-head,
  html body .page-head,
  html body .page-header,
  html body .toolbar,
  html body .actions-row,
  html body .filters-row,
  html body .management-card-summary,
  html body .request-row,
  html body .candidate-row {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 12px !important;
    align-items: stretch !important;
  }

  html body .refined-page-head h1,
  html body .page-head h1,
  html body .page-header h1 {
    font-size: clamp(24px, 7vw, 32px) !important;
    line-height: 1.12 !important;
    letter-spacing: 0 !important;
    overflow-wrap: anywhere !important;
  }

  html body .client-main [class*="grid"],
  html body .refined-client-main [class*="grid"] {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  html body .client-main .card,
  html body .client-main .management-card,
  html body .client-main .dashboard-card,
  html body .client-main .panel,
  html body .client-main .table-card,
  html body .refined-client-main .card,
  html body .refined-client-main .management-card,
  html body .refined-client-main .dashboard-card,
  html body .refined-client-main .panel,
  html body .refined-client-main .table-card {
    width: 100% !important;
    min-width: 0 !important;
  }

  html body .client-main table,
  html body .refined-client-main table {
    display: block !important;
    width: 100% !important;
    min-width: 620px !important;
    overflow-x: auto !important;
  }

  html body .client-main .table-card,
  html body .client-main .table-responsive,
  html body .client-main .data-table-wrapper,
  html body .refined-client-main .table-card,
  html body .refined-client-main .table-responsive,
  html body .refined-client-main .data-table-wrapper {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  html body input,
  html body select,
  html body textarea,
  html body button {
    max-width: 100% !important;
  }
}

/* Codex mobile dashboard and nav refinement 2026-07-20 */
@media (max-width: 900px) {
  html body .client-nav .nav-group,
  html body .grouped-client-nav .nav-group {
    position: relative !important;
    flex-direction: row !important;
    overflow: visible !important;
  }

  html body .client-nav .nav-group > .nav-menu,
  html body .grouped-client-nav .nav-group > .nav-menu,
  html body .client-shell.uxv085-shell .nav-group > .nav-menu {
    display: none !important;
    position: fixed !important;
    left: 12px !important;
    right: 12px !important;
    top: 92px !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: calc(100vw - 24px) !important;
    max-height: min(60vh, 420px) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding: 8px !important;
    background: #fff !important;
    border: 1px solid rgba(16, 52, 58, 0.12) !important;
    border-radius: 10px !important;
    box-shadow: 0 18px 44px rgba(16, 52, 58, 0.18) !important;
    z-index: 3000 !important;
  }

  html body .client-nav .nav-group:hover > .nav-menu,
  html body .grouped-client-nav .nav-group:hover > .nav-menu,
  html body .client-nav .nav-group:focus-within > .nav-menu,
  html body .grouped-client-nav .nav-group:focus-within > .nav-menu,
  html body .client-shell.uxv085-shell .nav-group:hover > .nav-menu,
  html body .client-shell.uxv085-shell .nav-group:focus-within > .nav-menu {
    display: block !important;
  }

  html body .client-nav .nav-group .nav-menu a,
  html body .grouped-client-nav .nav-group .nav-menu a {
    width: 100% !important;
    max-width: 100% !important;
    padding: 10px 12px !important;
    border-radius: 8px !important;
    white-space: normal !important;
  }

  html body .db-welcome,
  html body .db-welcome-left,
  html body .db-welcome-right,
  html body .db-kpi-row,
  html body .db-main-grid {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }

  html body .db-welcome {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 14px !important;
    padding: 18px !important;
  }

  html body .db-welcome-left,
  html body .db-welcome-right {
    margin: 0 !important;
    transform: none !important;
  }

  html body .db-welcome-right {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  html body .db-welcome-stat {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    padding: 10px 8px !important;
    text-align: center !important;
  }

  html body .db-welcome-stat strong,
  html body .db-welcome-stat span,
  html body .db-kpi-value,
  html body .db-kpi-label,
  html body .db-kpi-sub {
    max-width: 100% !important;
    overflow-wrap: anywhere !important;
  }

  html body .db-kpi-row {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  html body .db-kpi-card {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }
}

@media (max-width: 460px) {
  html body .db-welcome-right,
  html body .db-kpi-row {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

/* Codex mobile nav specificity fix 2026-07-20 */
@media (max-width: 900px) {
  html body .client-shell .client-top-inner,
  html body .client-shell .v043-top-inner,
  html body .client-shell .uxv080-top-inner,
  html body .client-shell .uxv081-top-inner,
  html body .client-shell .uxv082-top-inner,
  html body .client-shell .uxv083-top-inner,
  html body .client-shell .uxv084-top-inner,
  html body .client-shell .uxv085-top-inner {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 0 !important;
    gap: 8px !important;
    padding: 0 !important;
  }

  html body .client-shell .client-nav,
  html body .client-shell .grouped-client-nav,
  html body .client-shell .v043-nav,
  html body .client-shell .uxv080-nav,
  html body .client-shell .uxv081-nav,
  html body .client-shell .uxv082-nav,
  html body .client-shell .uxv083-nav,
  html body .client-shell .uxv084-nav,
  html body .client-shell .uxv085-nav {
    order: 10 !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: 46px !important;
    gap: 6px !important;
    padding: 2px 0 4px !important;
    margin: 0 !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
  }

  html body .client-shell .client-nav .nav-direct,
  html body .client-shell .grouped-client-nav .nav-direct,
  html body .client-shell .client-nav .nav-group,
  html body .client-shell .grouped-client-nav .nav-group,
  html body .client-shell .client-nav .nav-group > button,
  html body .client-shell .grouped-client-nav .nav-group > button {
    width: auto !important;
    min-width: max-content !important;
    max-width: none !important;
    height: 38px !important;
    flex: 0 0 auto !important;
  }
}

