@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
  font-family: 'Poppins', sans-serif;
  color: #101923;
  background: #f7f7f8;
  font-synthesis: none;
  --gradient-start: #07377f;
  --gradient-middle-one: #0f2c84;
  --gradient-middle-two: #0f2c84;
  --gradient-end: #07377f;
  --accent-color: #d7a02a;
  --accent-ink: #101923;
  --sidebar-start: #0f2c84;
  --sidebar-end: #07377f;
  --brand-gradient: linear-gradient(105deg, var(--gradient-start) 0%, color-mix(in srgb, var(--gradient-start) 30%, var(--gradient-middle-one)) 29%, color-mix(in srgb, var(--gradient-start) 30%, var(--gradient-middle-two)) 62%, color-mix(in srgb, var(--gradient-start) 30%, var(--gradient-end)) 100%);
  --page-header-image: url("assets/images/header-default.webp");
  --card-radius: 10px;
  --sidebar-width: 208px;
  --sidebar-rail-width: 68px;
  --active-sidebar-width: var(--sidebar-width);
  --header-height: 54px;
  --header-offset: var(--header-height);
  --anchor-offset: 76px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--anchor-offset); }
body { margin: 0; min-width: 320px; }
button, input, select, textarea, option { font: inherit; }
code, pre, kbd, samp { font-family: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
.icon-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.topbar {
  position: sticky; top: 0; z-index: 50; height: var(--header-height);
  display: flex; align-items: center; gap: 0;
  background: var(--brand-gradient);
  color: #fff;
  overflow: visible; box-shadow: inset 0 2px 0 var(--accent-color), 0 3px 7px #071a3b26;
}
.top-logo { width: var(--active-sidebar-width); height: var(--header-height); display: grid; place-items: center; flex: none; }
.top-logo-image { display: block; max-width: calc(100% - 20px); max-height: 42px; width: auto; height: auto; object-fit: contain; }
.top-logo-image.logo-on-white { max-height: 52px; background: transparent; border: 0; border-radius: 0; padding: 0; filter: invert(1) brightness(1.3); mix-blend-mode: screen; }
.top-logo .icon { width: 35px; height: 35px; background: #ffffff2b; border: 2px solid #ffffff42; border-radius: 50%; padding: 7px; }
.top-button { position: relative; border: 0; background: none; color: #fff; width: 39px; height: 36px; padding: 0; display: grid; place-items: center; flex: none; }
.top-button:hover, .top-profile:hover, .language-button:hover { background: #ffffff1b; }
.menu-button { margin-left: 0; }
.menu-button .icon { width: 20px; height: 20px; }
.top-brand { font-size: 18px; font-weight: 700; letter-spacing: -.4px; white-space: nowrap; margin-left: 8px; max-width: 245px; overflow: hidden; text-overflow: ellipsis; }
.top-brand span { font-size: 11px; font-weight: 600; letter-spacing: .5px; opacity: .76; margin-left: 2px; }
.top-spacer { flex: 1; }
.search-field { display: flex; align-items: center; gap: 8px; width: 215px; height: 34px; padding: 0 11px 0 14px; border-radius: 22px; background: #ffffff21; margin-right: 12px; }
.search-field:focus-within { background: #ffffff31; outline: 1px solid #ffffff73; }
.search-field input { width: 100%; min-width: 0; border: 0; outline: 0; color: #fff; background: transparent; font-size: 12px; }
.search-field input::placeholder { color: #ffffffc9; }
.search-field input::-webkit-search-cancel-button { filter: invert(1); }
.search-field .icon { width: 17px; height: 17px; }
.language-button { border: 0; background: none; color: #fff; display: flex; align-items: center; gap: 7px; height: var(--header-height); padding: 0 10px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.language-button .icon, .top-profile>.icon { width: 15px; height: 15px; }
.flag { font-size: 16px; line-height: 1; }
.badge-button { margin: 0 3px; }
.badge { position: absolute; top: -2px; right: 0; min-width: 17px; height: 17px; padding: 0 4px; display: grid; place-items: center; border-radius: 10px; background: var(--accent-color); color: var(--accent-ink); font-size: 11px; font-weight: 700; }
.top-profile { border: 0; background: none; color: #fff; height: var(--header-height); padding: 0 16px 0 8px; display: flex; align-items: center; gap: 7px; white-space: nowrap; font-size: 12px; font-weight: 700; }
.profile-wrap { position: relative; height: var(--header-height); }
.profile-dropdown { position: absolute; top: calc(100% - 2px); right: 8px; z-index: 80; min-width: 238px; padding: 14px; background: #fff; color: #17222b; border: 1px solid #e3e5e8; border-radius: 10px; box-shadow: 0 14px 32px #0a1b3440; }
.profile-dropdown[hidden] { display: none; }
.profile-dropdown strong, .profile-dropdown span { display: block; }
.profile-dropdown strong { font-size: 13px; }
.profile-dropdown span { margin-top: 3px; color: #697887; font-size: 12px; overflow-wrap: anywhere; }
.profile-dropdown form { margin-top: 13px; border-top: 1px solid #e9edf0; padding-top: 11px; }
.profile-dropdown button { width: 100%; border: 0; border-radius: 4px; background: #fce8ea; color: #cf3047; padding: 9px 12px; text-align: left; font-size: 13px; font-weight: 700; }
.profile-dropdown button:hover { background: #fbd6da; }
.profile-menu-link { display: block; margin-top: 10px; padding: 8px 0; border-top: 1px solid #eef0f2; color: var(--gradient-start); font-size: 12px; font-weight: 700; }
.profile-menu-link:hover { text-decoration: underline; }
.profile-avatar { position: relative; display: grid; place-items: center; width: 27px; height: 27px; border-radius: 50%; background: color-mix(in srgb,var(--gradient-start) 82%,var(--accent-color)); border: 1px solid #ffffff75; font-size: 10px; }
.profile-avatar i { position: absolute; right: -2px; bottom: -1px; width: 9px; height: 9px; background: #23c96c; border: 2px solid #fff; border-radius: 50%; }

.sidebar { position: fixed; z-index: 35; top: var(--header-offset); bottom: 0; left: 0; width: var(--active-sidebar-width); overflow-y: auto; background: var(--gradient-start); border-right: 1px solid #ffffff24; box-shadow: 8px 0 24px #071a3b30, inset -1px 0 0 #ffffff12; color: #e2edf6; scrollbar-width: thin; scrollbar-color: transparent transparent; }
.sidebar.scrollbar-active { scrollbar-color: #839ba8 transparent; }
.sidebar::-webkit-scrollbar { width: 7px; }
.sidebar::-webkit-scrollbar-track { background: transparent; }
.sidebar::-webkit-scrollbar-thumb { background: transparent; border-radius: 7px; }
.sidebar.scrollbar-active::-webkit-scrollbar-thumb { background: #839ba8; }
.sidebar-nav { padding: 13px 0 24px; }
.nav-section {
  margin: 0 8px 12px;
  padding: 0 6px;
}
.nav-section + .nav-section::before {
  content: "";
  display: block;
  height: 1px;
  margin: 0 6px 11px;
  background: #ffffff18;
}
.nav-section:last-child { margin-bottom: 0; }
.nav-section h2 { display: flex; align-items: center; gap: 8px; margin: 0 6px 8px; padding-top: 8px; color: #f3f8fb; font-size: 11px; line-height: 17px; font-weight: 800; letter-spacing: .85px; text-transform: uppercase; }
.nav-section h2::before { content: ""; width: 3px; height: 13px; flex: none; border-radius: 2px; background: var(--accent-color); }
.nav-item { position: relative; border: 0; border-radius: 6px; background: transparent; color: #e2edf6; width: 100%; height: 38px; padding: 0 8px; display: flex; align-items: center; gap: 9px; text-align: left; font-size: 13px; font-weight: 650; letter-spacing: .05px; white-space: nowrap; }
.nav-item:hover, .nav-item:focus-visible { color: #fff; background: #ffffff12; }
.nav-item.active { color: #fff; background: #ffffff25; font-weight: 750; }
.nav-item.active::before { content: ""; position: absolute; left: 0; top: 9px; bottom: 9px; width: 3px; border-radius: 2px; background: var(--accent-color); }
.nav-item>.icon:first-child { width: 19px; height: 19px; stroke-width: 1.9; color: #b9d7e9; }
.nav-item.active>.icon:first-child, .nav-item:hover>.icon:first-child { color: #fff; }
.nav-item span:nth-child(2) { flex: 1; }
.nav-item .nav-arrow { width: 14px; height: 14px; opacity: .8; }
.nav-dot { width: 8px; height: 8px; background: var(--accent-color); border-radius: 50%; flex: none!important; }
.nav-submenu { display: grid; grid-template-columns: minmax(0,1fr); min-width: 0; gap: 2px; padding: 5px 4px 0 25px; }
.nav-submenu[hidden] { display: none; }
.nav-submenu a { display: block; width: 100%; min-width: 0; min-height: 32px; line-height: 32px; overflow: hidden; text-overflow: ellipsis; padding: 0 6px; border-left: 2px solid #9bb5c73b; color: #d8e8f3; border-radius: 0 5px 5px 0; font-size: 12px; font-weight: 400; white-space: nowrap; }
.nav-submenu a:hover, .nav-submenu a.active { color: #fff; background: color-mix(in srgb,var(--accent-color) 22%,transparent); border-left-color: var(--accent-color); }
.nav-submenu a.active { font-weight: 400; }
.nav-item:focus-visible, .nav-submenu a:focus-visible { outline: 2px solid var(--accent-color); outline-offset: -2px; }
.search-hidden { display: none!important; }
.sidebar-scrim { display: none; }
html.sidebar-rail { --active-sidebar-width: var(--sidebar-rail-width); }

.main-content { margin-left: var(--active-sidebar-width); padding: 28px 30px 38px; min-height: calc(100vh - var(--header-offset)); }
.main-content [id] { scroll-margin-top: var(--anchor-offset); }
.page-title { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-bottom: 33px; }
.page-title h1 { font-size: 25px; line-height: 31px; margin: 0 0 6px; font-weight: 600; }
.page-title p { margin: 0; color: #617383; font-size: 15px; line-height: 19px; }
.period { font-size: 12px; color: #778490; white-space: nowrap; }
.panel { background: #fff; border: 1px solid #e2e5e8; border-radius: var(--card-radius); min-width: 0; box-shadow: 0 1px 1px #0000000e; }
.panel h2 { font-size: 19px; line-height: 25px; font-weight: 500; text-align: center; margin: 0; }
.dashboard-title { margin-bottom: 22px; }
.dashboard-eyebrow, .card-kicker { display: block; color: var(--gradient-start); font-size: 11px; line-height: 16px; font-weight: 800; letter-spacing: 1.1px; text-transform: uppercase; }
.dashboard-title h1 { margin-top: 5px; font-weight: 750; }
.dashboard-period { display: grid; gap: 5px; justify-items: end; white-space: nowrap; }
.dashboard-period span { color: #2b3c51; font-size: 13px; font-weight: 700; }
.dashboard-period small { color: #7a8999; font-size: 11px; }
.dashboard-kpis { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; margin-bottom: 18px; }
.kpi-card { min-height: 158px; padding: 17px 19px; }
.kpi-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.kpi-icon { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: color-mix(in srgb,var(--gradient-start) 10%,white); color: var(--gradient-start); }
.kpi-icon .icon { width: 20px; height: 20px; }
.kpi-card:nth-child(2) .kpi-icon, .kpi-card:nth-child(4) .kpi-icon { color: var(--accent-ink); background: color-mix(in srgb,var(--accent-color) 28%,white); }
.kpi-trend { display: inline-block; border-radius: 20px; padding: 5px 7px; font-size: 10px; line-height: 14px; font-weight: 750; white-space: nowrap; }
.kpi-trend.is-positive { color: #276448; background: #e7f6ed; }
.kpi-trend.is-neutral { color: #52657a; background: #f0f3f7; }
.kpi-card p { margin: 13px 0 2px; color: #637386; font-size: 12px; font-weight: 650; }
.kpi-card strong { display: block; color: #172638; font-size: 30px; line-height: 35px; letter-spacing: -.6px; }
.kpi-card small { display: block; margin-top: 5px; color: #84909d; font-size: 10px; line-height: 14px; }
.workforce-note { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; padding: 17px 22px; border-radius: var(--card-radius); color: #fff; background: linear-gradient(105deg,var(--gradient-start) 0%,color-mix(in srgb,var(--gradient-start) 18%,var(--gradient-middle-one)) 60%,color-mix(in srgb,var(--gradient-start) 18%,var(--gradient-end)) 100%); box-shadow: 0 5px 16px #112c6426; }
.workforce-note-icon { width: 42px; height: 42px; display: grid; place-items: center; flex: none; border-radius: 12px; color: var(--accent-color); background: #ffffff1c; }
.workforce-note-icon .icon { width: 22px; height: 22px; }
.workforce-note strong { display: block; font-size: 15px; line-height: 20px; }
.workforce-note p { margin: 4px 0 0; color: #e4eafa; font-size: 12px; line-height: 18px; }
.workforce-note-stat { margin-left: auto; color: var(--accent-color); font-size: 24px; font-weight: 800; white-space: nowrap; }
.workforce-note-stat small { display: block; color: #e2e8f5; font-size: 10px; font-weight: 600; text-align: right; }
.dashboard-chart-grid, .dashboard-table-grid { display: grid; grid-template-columns: minmax(0,1.18fr) minmax(0,1fr); gap: 18px; margin-bottom: 18px; }
.dashboard-chart-grid-secondary { grid-template-columns: repeat(2,minmax(0,1fr)); }
.dashboard-card { padding: 20px 22px; }
.dashboard-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 19px; }
.dashboard-card h2 { margin: 3px 0 0; color: #172638; font-size: 19px; line-height: 24px; font-weight: 750; text-align: left; }
.dashboard-card-head p { margin: 4px 0 0; color: #83909d; font-size: 11px; line-height: 16px; }
.summary-chip { padding: 6px 9px; border-radius: 20px; background: color-mix(in srgb,var(--accent-color) 18%,white); color: #4c3c17; font-size: 11px; font-weight: 750; white-space: nowrap; }
.dashboard-chart-scroll, .dashboard-table-scroll { max-width: 100%; overflow-x: auto; scrollbar-width: thin; }
.headcount-chart { display: block; width: 100%; min-width: 500px; height: auto; }
.dashboard-gridline { stroke: #e9edf2; stroke-width: 1; }
.dashboard-axis { fill: #8794a3; font: 11px 'Poppins',sans-serif; }
.headcount-line { fill: none; stroke: var(--gradient-start); stroke-width: 3.5; stroke-linejoin: round; stroke-linecap: round; }
.headcount-dot { fill: #fff; stroke: var(--gradient-start); stroke-width: 2.5; }
.headcount-dot.is-current { fill: var(--accent-color); stroke: #fff; stroke-width: 3; }
.dashboard-card-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 12px; color: #56677b; font-size: 11px; }
.dashboard-card-foot p { margin: 0; text-align: right; line-height: 16px; }
.dashboard-card-foot>span, .dashboard-legend span { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.dashboard-legend { display: flex; align-items: center; gap: 13px; }
.legend-dot { display: inline-block; width: 9px; height: 9px; flex: none; border-radius: 3px; }
.legend-dot.is-blue { background: var(--gradient-start); }
.legend-dot.is-gold { background: var(--accent-color); }
.legend-dot.is-soft-blue { background: color-mix(in srgb,var(--gradient-start) 47%,white); }
.flow-chart { display: flex; height: 228px; padding-top: 12px; }
.flow-grid { display: flex; flex-direction: column; justify-content: space-between; width: 21px; padding: 0 0 31px; color: #8c98a6; font-size: 10px; }
.flow-months { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 7px; flex: 1; min-width: 0; border-bottom: 1px solid #e5eaf0; background: repeating-linear-gradient(to top,transparent 0,transparent calc(20% - 1px),#e9edf2 calc(20% - 1px),#e9edf2 20%); background-size: 100% calc(100% - 31px); background-repeat: no-repeat; }
.flow-month { display: flex; flex-direction: column; align-items: center; min-width: 0; }
.flow-bars { display: flex; align-items: flex-end; justify-content: center; gap: 5px; height: calc(100% - 31px); width: 100%; }
.flow-bar { position: relative; width: min(22px,36%); height: var(--bar-height); min-height: 5px; border-radius: 5px 5px 0 0; }
.flow-bar.is-hire { background: var(--accent-color); }
.flow-bar.is-exit { background: color-mix(in srgb,var(--gradient-start) 47%,white); }
.flow-bar b { position: absolute; bottom: calc(100% + 4px); left: 50%; transform: translateX(-50%); color: #56677b; font-size: 10px; font-weight: 700; }
.flow-month-label { height: 31px; display: grid; place-items: center; color: #7c8997; font-size: 11px; }
.reason-list { display: grid; gap: 16px; margin: 24px 0 18px; }
.reason-row>div { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 7px; color: #45576b; font-size: 12px; }
.reason-row strong { color: #26374b; }
.reason-track { display: block; height: 8px; overflow: hidden; border-radius: 8px; background: #edf1f5; }
.reason-track i { display: block; height: 100%; border-radius: inherit; background: color-mix(in srgb,var(--gradient-start) 67%,white); }
.reason-track i.is-leading { background: var(--accent-color); }
.dashboard-insight { margin: 15px 0 0; padding-top: 13px; border-top: 1px solid #edf0f3; color: #617287; font-size: 11px; line-height: 17px; }
.tenure-layout { display: flex; align-items: center; justify-content: space-evenly; gap: 25px; min-height: 228px; }
.tenure-donut { display: grid; place-items: center; width: 176px; height: 176px; flex: none; border-radius: 50%; background: conic-gradient(var(--gradient-start) 0 var(--tenure-cut-1),color-mix(in srgb,var(--gradient-middle-one) 68%,white) var(--tenure-cut-1) var(--tenure-cut-2),var(--accent-color) var(--tenure-cut-2) var(--tenure-cut-3),color-mix(in srgb,var(--gradient-end) 37%,white) var(--tenure-cut-3) 100%); }
.tenure-donut>div { display: grid; place-content: center; width: 122px; height: 122px; border-radius: 50%; background: #fff; text-align: center; }
.tenure-donut strong { color: #182a3e; font-size: 28px; line-height: 33px; }
.tenure-donut span { color: #8a98a5; font-size: 11px; }
.tenure-legend { display: grid; gap: 14px; flex: 1; min-width: 175px; max-width: 280px; }
.tenure-legend>div, .tenure-legend>div>span { display: flex; align-items: center; gap: 7px; }
.tenure-legend>div { justify-content: space-between; gap: 12px; color: #45576b; font-size: 12px; }
.tenure-legend strong { color: #24374e; white-space: nowrap; }
.tenure-legend small { color: #9aa6b1; font-size: 10px; font-weight: 500; }
.tenure-swatch { width: 9px; height: 9px; flex: none; border-radius: 3px; }
.tenure-color-1 { background: var(--gradient-start); }
.tenure-color-2 { background: color-mix(in srgb,var(--gradient-middle-one) 68%,white); }
.tenure-color-3 { background: var(--accent-color); }
.tenure-color-4 { background: color-mix(in srgb,var(--gradient-end) 37%,white); }
.dashboard-table { width: 100%; min-width: 540px; border-collapse: collapse; text-align: left; }
.dashboard-table th, .dashboard-table td { padding: 12px 10px; border-bottom: 1px solid #edf0f3; }
.dashboard-table thead th { padding-top: 2px; color: #8c99a6; font-size: 10px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; white-space: nowrap; }
.dashboard-table tbody th { color: #2c3d51; font-size: 12px; font-weight: 650; }
.dashboard-table td { color: #617286; font-size: 12px; }
.dashboard-table td strong { color: #24374e; }
.dashboard-table tbody tr:hover { background: #f9fafc; }
.dashboard-table tfoot { background: color-mix(in srgb,var(--accent-color) 9%,white); }
.dashboard-table tfoot th, .dashboard-table tfoot td { border-bottom: 0; color: #20344d; font-size: 12px; font-weight: 800; }
.table-share { display: flex; align-items: center; gap: 9px; min-width: 115px; }
.table-share>span { width: 85px; height: 6px; display: block; overflow: hidden; flex: none; border-radius: 6px; background: #edf1f5; }
.table-share i { display: block; height: 100%; border-radius: inherit; background: var(--gradient-start); }
.table-share b { color: #52647a; font-size: 11px; font-weight: 650; }
.pipeline-table { min-width: 390px; }
.pipeline-table .table-share>span { width: 92px; }
.pipeline-table tbody tr:last-child .table-share i { background: var(--accent-color); }
.section-panel { padding: 45px 25px; min-height: 330px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.section-panel-icon { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 50%; background: color-mix(in srgb,var(--accent-color) 18%,white); color: var(--accent-color); margin-bottom: 18px; }
.section-panel-icon .icon { width: 29px; height: 29px; }
.section-panel h2 { font-size: 21px; font-weight: 600; }
.section-panel p { margin: 9px 0 22px; color: #687781; font-size: 14px; }
.section-panel a { display: inline-flex; padding: 10px 15px; border-radius: 4px; background: var(--accent-color); color: var(--accent-ink); font-size: 13px; font-weight: 700; }
.section-panel a:hover { filter: brightness(.9); }
.toast { position: fixed; right: 20px; bottom: 20px; z-index: 70; padding: 10px 14px; border-radius: 4px; color: #fff; background: #30424b; box-shadow: 0 7px 24px #0003; font-size: 13px; opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity .2s,transform .2s; }
.toast.show { opacity: 1; transform: translateY(0); }

.auth-page .top-logo { width: 124px; }
.auth-top-links { display: flex; align-items: center; gap: 8px; padding-right: 24px; }
.auth-top-links a { border: 1px solid #ffffff77; border-radius: 4px; padding: 8px 13px; font-size: 13px; font-weight: 700; }
.auth-top-links a:hover { background: #ffffff24; }
.auth-main { min-height: calc(100vh - var(--header-offset)); display: grid; place-items: center; padding: 34px 16px; background: radial-gradient(circle at 83% 22%,color-mix(in srgb,var(--accent-color) 8%,white) 0,transparent 22%),radial-gradient(circle at 8% 86%,color-mix(in srgb,var(--gradient-end) 6%,white) 0,transparent 24%),#f7f7f8; }
.auth-card { width: min(100%,440px); overflow: hidden; background: #fff; border: 1px solid #e3e5e8; border-radius: var(--card-radius); box-shadow: 0 18px 45px #29313f1a; }
.auth-card-header { padding: 25px 30px 22px; background: color-mix(in srgb,var(--accent-color) 15%,white); text-align: center; }
.auth-mark { width: 49px; height: 49px; margin: 0 auto 12px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: color-mix(in srgb,var(--gradient-start) 86%,var(--gradient-end)); }
.auth-mark .icon { width: 26px; height: 26px; }
.auth-card-header p { margin: 0 0 4px; color: var(--gradient-start); font-size: 12px; font-weight: 700; letter-spacing: .7px; text-transform: uppercase; }
.auth-card-header h1 { margin: 0 0 6px; color: #171f29; font-size: 25px; line-height: 31px; font-weight: 600; }
.auth-card-header>span:last-child { color: #66737f; font-size: 13px; }
.auth-form { display: grid; padding: 25px 30px 8px; }
.auth-form label { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 7px; color: #26343e; font-size: 13px; font-weight: 700; }
.auth-form label small { color: #7b8790; font-size: 11px; font-weight: 400; }
.auth-form input { width: 100%; height: 42px; margin-bottom: 17px; border: 1px solid #dce1e5; border-radius: 4px; padding: 0 12px; outline: 0; background: #fbfbfc; color: #17222b; font-size: 14px; }
.auth-form input:focus { border-color: var(--accent-color); box-shadow: 0 0 0 3px color-mix(in srgb,var(--accent-color) 18%,transparent); background: #fff; }
.auth-form input::placeholder { color: #98a2ab; }
.auth-submit { width: 100%; height: 43px; margin-top: 6px; border: 0; border-radius: 4px; color: var(--accent-ink); background: var(--accent-color); font-size: 14px; font-weight: 700; }
.auth-submit:hover { filter: brightness(.94); }
.auth-switch { margin: 6px 30px 27px; color: #677784; text-align: center; font-size: 13px; }
.auth-switch a { color: var(--gradient-start); font-weight: 700; }
.auth-switch a:hover { text-decoration: underline; }
.form-alert { margin: 18px 30px -8px; padding: 10px 12px; border: 1px solid #f0b3bc; border-radius: 4px; background: #fff2f3; color: #a82d3f; font-size: 12px; line-height: 1.5; }
.form-alert ul { margin: 0; padding-left: 18px; }
.form-success { padding: 10px 12px; border: 1px solid #aadfbd; border-radius: 4px; background: #edfbf1; color: #246b3c; font-size: 13px; }
.management-grid, .settings-grid { display: grid; grid-template-columns: minmax(0,1.4fr) minmax(260px,.8fr); gap: 24px; align-items: start; margin-bottom: 24px; }
.management-card { padding: 25px; }
.management-card h2, .accounts-panel h2 { text-align: left; font-size: 20px; font-weight: 600; }
.form-intro { margin: 7px 0 21px; color: #697783; font-size: 13px; line-height: 1.5; }
.management-card .form-alert { margin: 0 0 16px; }
.management-card .form-success { margin: 0 0 16px; }
.settings-form { display: grid; }
.settings-form label { display: flex; justify-content: space-between; gap: 8px; margin: 0 0 7px; color: #27343e; font-size: 13px; font-weight: 700; }
.settings-form label small { color: #788691; font-size: 11px; font-weight: 400; }
.settings-form input, .settings-form select { width: 100%; height: 41px; margin: 0 0 16px; padding: 0 11px; border: 1px solid #dce1e5; border-radius: 4px; background: #fbfbfc; color: #17222b; font-size: 13px; outline: 0; }
.settings-form input:focus, .settings-form select:focus { border-color: var(--accent-color); box-shadow: 0 0 0 3px color-mix(in srgb,var(--accent-color) 18%,transparent); background: #fff; }
.save-button { border: 0; border-radius: 4px; background: var(--accent-color); color: var(--accent-ink); padding: 11px 16px; font-size: 13px; font-weight: 700; }
.save-button:hover { filter: brightness(.91); }
.settings-form .save-button { justify-self: start; margin-top: 4px; }
.role-summary { border-top: 1px solid #e9edf0; padding: 17px 0 2px; }
.role-summary strong { font-size: 14px; }
.role-summary p { margin: 5px 0 10px; color: #687781; font-size: 13px; line-height: 1.45; }
.accounts-panel { padding: 22px 25px; }
.accounts-panel h2 span { margin-left: 4px; color: #81909a; font-size: 14px; }
.table-scroll { overflow-x: auto; width: 100%; }
.accounts-panel table { width: 100%; min-width: 540px; border-collapse: collapse; margin-top: 15px; text-align: left; font-size: 13px; }
.accounts-panel th, .accounts-panel td { padding: 12px 10px; border-bottom: 1px solid #edf0f2; }
.accounts-panel th { color: #687783; font-size: 11px; text-transform: uppercase; letter-spacing: .5px; }
.accounts-panel td:first-child { font-weight: 700; }
.role-pill { display: inline-block; padding: 5px 8px; border-radius: 20px; background: color-mix(in srgb,var(--accent-color) 14%,white); color: #463641; font-size: 11px; font-weight: 700; white-space: nowrap; }
.settings-notice { margin: -12px 0 22px; }
.settings-grid { grid-template-columns: minmax(0,1fr) minmax(320px,.8fr); }
.settings-subtitle { margin-top: 13px!important; }
.color-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin: 0 0 22px; }
.color-field { min-width: 0; padding: 10px 12px; border: 1px solid #e2e6e9; border-radius: 8px; display: flex; align-items: center; justify-content: space-between; gap: 7px; font-size: 12px; font-weight: 700; }
.color-field>span:first-child { min-width: 0; }
.color-control { display: inline-flex; align-items: center; gap: 5px; flex: none; }
.color-control input { width: 38px; height: 30px; border: 0; padding: 0; background: transparent; cursor: pointer; }
.color-control code { color: #687781; font-size: 10px; }
.theme-preview { --brand-gradient: linear-gradient(105deg, var(--gradient-start) 0%, color-mix(in srgb, var(--gradient-start) 30%, var(--gradient-middle-one)) 29%, color-mix(in srgb, var(--gradient-start) 30%, var(--gradient-middle-two)) 62%, color-mix(in srgb, var(--gradient-start) 30%, var(--gradient-end)) 100%); overflow: hidden; border: 1px solid #e5e8eb; border-radius: var(--card-radius); }
.theme-preview-header { height: 54px; padding: 0 15px; display: flex; align-items: center; gap: 9px; color: #fff; background: var(--brand-gradient); }
.theme-preview-header strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.theme-preview-logo, .theme-preview-avatar { width: 27px; height: 27px; border-radius: 50%; background: #ffffff38; display: grid; place-items: center; flex: none; }
.theme-preview-logo .icon { width: 17px; height: 17px; }
.theme-preview-avatar { margin-left: auto; font-size: 10px; }
.theme-preview-content { display: flex; min-height: 218px; }
.theme-preview-sidebar { width: 92px; padding: 19px 12px; background: var(--gradient-start); flex: none; }
.theme-preview-sidebar i { display: block; width: 63px; height: 8px; margin-bottom: 16px; border-radius: 8px; background: #c9dce7a3; }
.theme-preview-sidebar i:first-child { background: var(--accent-color); }
.theme-preview-main { flex: 1; padding: 22px 15px; background: #f7f7f8; }
.theme-preview-title { width: 46%; height: 13px; border-radius: 8px; background: #243342c9; margin-bottom: 23px; }
.theme-preview-cards { display: flex; gap: 10px; }
.theme-preview-cards i { flex: 1; height: 69px; background: #fff; border: 1px solid #e6e9eb; border-radius: 8px; }
.theme-preview-accent { width: 46%; height: 9px; margin-top: 22px; border-radius: 7px; background: var(--accent-color); }

@media (max-width: 1370px) {
  .main-content { padding: 26px 24px 34px; }
}
@media (max-width: 1240px) {
  .dashboard-chart-grid, .dashboard-table-grid, .dashboard-chart-grid-secondary { grid-template-columns: 1fr; }
}
@media (max-width: 1080px) {
  :root { --sidebar-width: 188px; }


  .search-field { width: 180px; }
  .dashboard-kpis { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .management-grid, .settings-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  :root { --sidebar-width: 200px; --header-height: 52px; --anchor-offset: 70px; }
  html.sidebar-rail { --active-sidebar-width: var(--sidebar-width); }
  .topbar { height: var(--header-height); }
  .top-logo { width: 78px; height: var(--header-height); }
  .top-logo-image { max-width: calc(100% - 12px); max-height: 35px; }
  .top-logo .icon { width: 31px; height: 31px; padding: 6px; }
  .menu-button { width: 35px; }
  .top-brand { margin-left: 5px; font-size: 16px; }
  .top-brand span { display: none; }
  .sidebar { top: var(--header-offset); width: var(--sidebar-width); transform: translateX(-100%); transition: transform .22s ease; box-shadow: 10px 0 22px #071a3b35; }
  .sidebar.open { transform: translateX(0); }
  .sidebar-scrim.show { display: block; position: fixed; inset: var(--header-offset) 0 0; z-index: 30; background: #18232b70; }
  .main-content { margin-left: 0; min-height: calc(100vh - var(--header-offset)); padding: 22px 18px 30px; }
  .language-button, .search-field, .profile-name, .top-profile>.icon { display: none; }
  .top-profile { padding: 0 12px 0 5px; height: var(--header-height); }
  .chat-button { margin-right: 0; }
  .page-title { margin-bottom: 22px; }
  .page-title h1 { font-size: 23px; }
  .dashboard-chart-grid, .dashboard-table-grid { gap: 14px; margin-bottom: 14px; }
  .dashboard-card { padding: 18px; }
  .tenure-layout { justify-content: flex-start; }
}
@media (max-width: 540px) {
  .main-content { padding: 20px 12px 26px; }
  .top-brand { font-size: 16px; }
  .top-button { width: 35px; }
  .top-profile { padding-right: 8px; }
  .page-title { align-items: flex-start; }
  .page-title h1 { font-size: 21px; line-height: 26px; }
  .page-title p { font-size: 13px; }
  .dashboard-title { flex-wrap: wrap; gap: 10px; }
  .dashboard-period { justify-items: start; gap: 1px; }
  .dashboard-kpis { gap: 10px; margin-bottom: 12px; }
  .kpi-card { min-height: 139px; padding: 12px; }
  .kpi-icon { width: 32px; height: 32px; border-radius: 9px; }
  .kpi-icon .icon { width: 18px; height: 18px; }
  .kpi-trend { padding: 4px 6px; font-size: 9px; }
  .kpi-card p { margin-top: 10px; font-size: 11px; }
  .kpi-card strong { font-size: 25px; line-height: 28px; }
  .kpi-card small { font-size: 9px; }
  .workforce-note { align-items: flex-start; flex-wrap: wrap; gap: 10px; padding: 15px; margin-bottom: 14px; }
  .workforce-note-icon { width: 34px; height: 34px; }
  .workforce-note>div { flex: 1; min-width: 185px; }
  .workforce-note strong { font-size: 13px; }
  .workforce-note-stat { margin-left: 44px; font-size: 19px; }
  .workforce-note-stat small { text-align: left; }
  .dashboard-card { padding: 15px 13px; }
  .dashboard-card h2 { font-size: 17px; line-height: 22px; }
  .summary-chip { font-size: 10px; }
  .dashboard-card-foot { align-items: flex-start; flex-wrap: wrap; }
  .dashboard-card-foot p { text-align: left; }
  .flow-chart { height: 205px; }
  .flow-bar { width: min(17px,38%); }
  .tenure-layout { flex-wrap: wrap; justify-content: center; gap: 18px; }
  .tenure-donut { width: 150px; height: 150px; }
  .tenure-donut>div { width: 104px; height: 104px; }
  .tenure-legend { min-width: 170px; }
  .reason-list { gap: 13px; }
  .auth-page .top-logo { width: 112px; }
  .auth-top-links { padding-right: 9px; gap: 5px; }
  .auth-top-links a { padding: 7px 8px; font-size: 11px; }
  .auth-main { padding: 18px 11px; }
  .auth-card-header { padding: 22px 20px 19px; }
  .auth-card-header h1 { font-size: 22px; }
  .auth-form { padding: 22px 20px 5px; }
  .auth-switch { margin: 6px 20px 23px; }
  .form-alert { margin: 16px 20px -6px; }
  .management-card, .accounts-panel { padding: 18px 15px; }
  .management-grid, .settings-grid { gap: 16px; margin-bottom: 16px; }
  .color-grid { grid-template-columns: 1fr; }
  .settings-notice { margin: 0 0 16px; }
}
@media (max-width: 370px) {
  .kpi-card { padding: 10px; }
  .kpi-trend { max-width: 85px; overflow: hidden; text-overflow: ellipsis; }
  .tenure-legend { min-width: 100%; }
  .top-brand { font-size: 15px; }
}

/* Branding and SMTP settings */
.branding-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; margin: 4px 0 27px; }
.branding-field { min-width: 0; padding: 14px; border: 1px solid #e2e6e9; border-radius: 9px; background: #fcfdfe; }
.branding-field label { display: block; margin-bottom: 11px; color: #27343e; font-size: 13px; font-weight: 700; }
.branding-image { width: 64px; height: 64px; display: grid; place-items: center; margin-bottom: 12px; overflow: hidden; border: 1px solid #d9e2ea; border-radius: 10px; color: var(--gradient-start); background: #f1f5f9; }
.branding-image.branding-logo { width: min(100%,180px); }
.branding-image img { max-width: 100%; max-height: 100%; object-fit: contain; }
.branding-field input { display: block; max-width: 100%; color: #495b6e; font-size: 11px; }
.branding-field input::file-selector-button { margin-right: 8px; padding: 7px 9px; border: 1px solid #d7dee6; border-radius: 6px; background: #fff; color: #233e62; font: inherit; font-weight: 700; cursor: pointer; }
.branding-field small { display: block; margin-top: 9px; color: #7c8995; font-size: 10px; }
.theme-preview-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.email-settings { margin: 0 0 25px; }
.email-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: 22px; }
.email-grid>div { min-width: 0; }
.email-grid label { display: flex; justify-content: flex-start; align-items: baseline; gap: 8px; }
@media (max-width: 760px) { .branding-grid, .email-grid { grid-template-columns: 1fr; } }
/* Optional focus layout: the header leaves the page while navigation and data stay in place. */
html.header-hidden { --header-offset: 0px; --anchor-offset: 18px; }
html.header-hidden .topbar { display: none; }
html.header-hidden .page-title { padding-right: 108px; }
.header-focus-button { width: 34px; height: 30px; display: inline-flex; align-items: center; justify-content: center; margin-right: 10px; padding: 0; border: 1px solid #ffffff46; border-radius: 6px; background: #ffffff13; color: #fff; font-size: 11px; font-weight: 650; }
.header-focus-button:hover, .header-focus-button:focus-visible { background: #ffffff26; }
.header-focus-button .icon { width: 16px; height: 16px; }
.header-reveal-button { display: none; position: fixed; top: 10px; right: 12px; z-index: 90; align-items: center; gap: 7px; padding: 8px 11px; border: 1px solid #ffffff67; border-radius: 7px; background: var(--gradient-start); color: #fff; box-shadow: 0 3px 10px #0a1b3433; font-size: 11px; font-weight: 700; }
html.header-hidden .header-reveal-button { display: inline-flex; }
.header-reveal-button:hover, .header-reveal-button:focus-visible { filter: brightness(1.12); }
.header-reveal-button .icon { width: 16px; height: 16px; }
@media (max-width: 760px) {
  .header-focus-button { width: 34px; justify-content: center; margin-right: 2px; padding: 0; }
  .header-reveal-button { top: 8px; right: 8px; padding: 8px; }
  .header-reveal-button span { display: none; }
  html.header-hidden .page-title { padding-right: 42px; }
}
/* Current navigation group and compact desktop rail. */
.sidebar-edge-toggle {
  position: fixed; z-index: 45;
  top: calc(var(--header-offset) + 20px);
  left: var(--active-sidebar-width);
  transform: translateX(-50%);
  width: 24px; height: 24px;
  display: flex; align-items: center; justify-content: center; padding: 0;
  border-radius: 50%;
  background: #ffffff;
  color: #173860;
  border: 1px solid #c8d8e8;
  box-shadow: 0 2px 6px rgba(10, 25, 45, 0.16), 0 1px 2px rgba(10, 25, 45, 0.08);
  cursor: pointer;
  transition: left .2s ease, top .2s ease, background-color .15s ease, color .15s ease, border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.sidebar-edge-toggle:hover, .sidebar-edge-toggle:focus-visible {
  background: var(--gradient-start);
  color: #ffffff;
  border-color: #ffffff44;
  box-shadow: 0 4px 10px rgba(10, 25, 45, 0.28);
  transform: translateX(-50%) scale(1.08);
  outline: none;
}
.sidebar-edge-toggle .icon { width: 12px; height: 12px; stroke-width: 2.2; }
.sidebar-nav { padding-top: 11px; padding-bottom: 24px; }
@media (min-width: 761px) {
  .sidebar, .main-content, .top-logo { transition: width .2s ease, margin-left .2s ease; }
  .menu-button { display: none; }
  .sidebar-edge-toggle { transition: left .2s ease, top .2s ease, transform .15s ease; }
  html.sidebar-rail .nav-section h2, html.sidebar-rail .nav-item span, html.sidebar-rail .nav-item .nav-arrow, html.sidebar-rail .nav-submenu { display: none; }
  html.sidebar-rail .nav-section { margin: 0 7px 8px; padding: 5px; }
  html.sidebar-rail .nav-item { height: 40px; justify-content: center; padding: 0; }
  html.sidebar-rail .nav-item.active::before { top: 8px; bottom: 8px; }
  html.sidebar-rail .sidebar-nav { padding-top: 9px; }
}
@media (max-width: 760px) {
  .sidebar-edge-toggle { display: none; }
}
/* CRM-inspired workspace surfaces: banner, compact cards, and sectioned forms. */
.app-page { background: #f3f5f7; }
.main-content {
  position: relative;
  min-width: 0;
  padding-top: 28px;
  background: #f3f5f7;
  isolation: isolate;
}
.main-content::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0 0 auto;
  height: 205px;
  background-image: linear-gradient(90deg, color-mix(in srgb, var(--gradient-start) 40%, transparent), transparent 82%), var(--page-header-image);
  background-position: center, center 37%;
  background-size: cover;
  box-shadow: inset 0 -25px 30px #071a3b1e;
  pointer-events: none;
}
.main-content > * { position: relative; z-index: 1; max-width: 1480px; margin-left: auto; margin-right: auto; }
.page-title { min-height: 116px; margin-bottom: 18px; align-items: flex-start; color: #fff; }
.page-title h1 { margin: 4px 0 5px; color: #fff; font-size: clamp(23px,2vw,30px); line-height: 1.25; font-weight: 700; letter-spacing: -.55px; }
.page-title p { max-width: 720px; color: #e4ebf4; font-size: 13px; line-height: 1.5; }
.page-eyebrow, .dashboard-eyebrow { display: block; color: #e1e8f0; font-size: 11px; font-weight: 700; line-height: 1.5; letter-spacing: 1px; text-transform: uppercase; }
.page-title-tag { display: inline-flex; align-items: center; padding: 7px 11px; border: 1px solid #ffffff47; border-radius: 7px; background: #ffffff18; color: #fff; font-size: 11px; font-weight: 650; white-space: nowrap; }
.dashboard-period { align-self: flex-start; padding: 7px 11px; border: 1px solid #ffffff45; border-radius: 7px; background: #ffffff16; }
.dashboard-period span, .dashboard-period small { color: #fff; }
.dashboard-period small { opacity: .74; }
.panel { border-color: #e1e6ec; border-radius: 10px; box-shadow: 0 2px 8px #1c31500d, 0 1px 2px #1c31500a; }
.panel:hover { box-shadow: 0 5px 16px #1c315012, 0 1px 2px #1c31500a; }
.dashboard-kpis { gap: 15px; }
.kpi-card { min-height: 156px; padding: 18px 19px 15px; }
.kpi-top { align-items: center; }
.kpi-icon { width: 42px; height: 42px; border-radius: 9px; }
.kpi-card p { margin: 14px 0 3px; color: #66758a; font-size: 10px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; }
.kpi-card strong { color: #14243a; font-size: 29px; font-weight: 750; }
.kpi-card small { margin-top: 7px; padding-top: 9px; border-top: 1px solid #edf0f3; color: #788699; font-size: 10px; }
.kpi-trend { font-weight: 700; }
.dashboard-card { padding: 20px 22px; }
.dashboard-card-head { margin: -20px -22px 18px; padding: 17px 22px 15px; border-bottom: 1px solid #edf0f3; align-items: center; }
.dashboard-card h2 { font-size: 16px; line-height: 1.35; font-weight: 700; }
.dashboard-card-head p { color: #788699; font-size: 11px; }
.card-kicker { color: var(--gradient-start); font-size: 10px; letter-spacing: .8px; }
.summary-chip { border-radius: 6px; color: var(--gradient-start); background: color-mix(in srgb,var(--gradient-start) 8%,white); }
.workforce-note { border-radius: 9px; }
.dashboard-table thead th, .accounts-panel th { color: #66758a; background: #f8fafc; }
.dashboard-table tbody tr:hover, .accounts-panel tbody tr:hover { background: #f8fafc; }
.management-grid, .settings-grid { gap: 18px; }
.settings-grid { grid-template-columns: minmax(0,1.45fr) minmax(290px,.8fr); }
.settings-card, .preview-card, .email-settings { padding: 0; overflow: hidden; }
.form-card-head { display: flex; align-items: flex-start; gap: 12px; padding: 18px 23px; border-bottom: 1px solid #edf0f3; background: #fff; }
.form-card-head h2 { margin: 0; color: #192a3d; font-size: 16px; line-height: 1.4; font-weight: 700; text-align: left; }
.form-card-head p { margin: 2px 0 0; color: #7b8898; font-size: 11px; line-height: 1.5; }
.form-card-icon { width: 34px; height: 34px; display: grid; place-items: center; flex: none; border-radius: 8px; background: color-mix(in srgb,var(--gradient-start) 9%,white); color: var(--gradient-start); }
.form-card-icon .icon { width: 18px; height: 18px; }
.settings-card-body, .preview-card-body { padding: 22px 23px; }
.settings-card-body > .settings-form { max-width: 680px; }
.settings-section-head { display: flex; align-items: flex-start; gap: 11px; margin: 8px 0 17px; padding-top: 23px; border-top: 1px solid #edf0f3; }
.settings-section-head h3 { margin: 0; color: #192a3d; font-size: 14px; font-weight: 700; }
.settings-section-head p { margin: 2px 0 0; color: #7b8898; font-size: 11px; }
.form-card-actions { display: flex; justify-content: flex-end; padding: 15px 23px; border-top: 1px solid #edf0f3; background: #fafbfd; }
.settings-form label, .branding-field label { color: #566579; font-size: 10px; font-weight: 700; letter-spacing: .72px; text-transform: uppercase; }
.settings-form label small { font-size: 10px; letter-spacing: 0; text-transform: none; }
.settings-form input, .settings-form select {
  height: 41px; margin-bottom: 17px; padding: 0 12px; border: 1px solid #d8dfe7;
  border-radius: 7px; background: #fff; color: #192a3d; font-size: 12px;
  transition: border-color .18s, box-shadow .18s;
}
.settings-form input:hover, .settings-form select:hover { border-color: #b9c5d2; }
.settings-form input:focus, .settings-form select:focus, .auth-form input:focus { border-color: var(--gradient-start); box-shadow: 0 0 0 3px color-mix(in srgb,var(--gradient-start) 13%,transparent); }
.settings-form input::placeholder { color: #9aa5b2; }
.save-button { display: inline-flex; align-items: center; justify-content: center; min-height: 39px; padding: 9px 16px; border-radius: 7px; background: var(--gradient-start); color: #fff; box-shadow: 0 2px 5px #1029501c; font-size: 12px; font-weight: 700; }
.save-button:hover { filter: brightness(1.1); }
.settings-form .save-button { justify-self: start; }
.color-grid { gap: 10px; margin-bottom: 0; }
.color-field { min-height: 54px; border-color: #dfe5eb; border-radius: 7px; background: #fff; color: #566579; font-size: 10px; font-weight: 700; letter-spacing: .35px; }
.color-field:hover { border-color: #bac8d6; background: #fbfcfd; }
.color-control code { color: #7c8a99; }
.branding-grid { margin: 6px 0 21px; }
.branding-field { border-color: #e1e6eb; border-radius: 8px; background: #fbfcfd; }
.branding-field input::file-selector-button { border-radius: 6px; color: var(--gradient-start); }
.preview-card-body { padding: 20px; }
.theme-preview { border-radius: 8px; box-shadow: 0 3px 12px #10253d12; }
.email-settings .form-intro { margin: 0 0 20px; font-size: 11px; }
.email-grid { column-gap: 20px; }
.management-card:not(.settings-card):not(.preview-card):not(.email-settings) { padding: 0; overflow: hidden; }
.management-card:not(.settings-card):not(.preview-card):not(.email-settings) > h2,
.accounts-panel > h2 { margin: 0; padding: 17px 22px; border-bottom: 1px solid #edf0f3; color: #192a3d; font-size: 16px; font-weight: 700; }
.management-card:not(.settings-card):not(.preview-card):not(.email-settings) > .form-intro { margin: 0; padding: 13px 22px 0; font-size: 11px; }
.management-card:not(.settings-card):not(.preview-card):not(.email-settings) > .settings-form { padding: 20px 22px 22px; }
.management-card:not(.settings-card):not(.preview-card):not(.email-settings) > .role-summary { margin: 0 22px; }
.management-card:not(.settings-card):not(.preview-card):not(.email-settings) > .role-summary:last-child { margin-bottom: 18px; }
.accounts-panel { padding: 0 0 6px; }
.accounts-panel .table-scroll { padding: 0 12px 10px; }
.accounts-panel table { margin-top: 0; }
.accounts-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 22px; border-bottom: 1px solid #edf0f3; }
.accounts-search { display: flex; align-items: center; gap: 8px; width: min(100%, 320px); height: 38px; padding: 0 11px; border: 1px solid #d8e1e9; border-radius: 7px; background: #fff; color: #697a8d; }
.accounts-search:focus-within { border-color: var(--gradient-start); box-shadow: 0 0 0 3px color-mix(in srgb,var(--gradient-start) 12%,transparent); }
.accounts-search .icon { width: 17px; height: 17px; flex: none; }
.accounts-search input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: #192a3d; font: inherit; font-size: 12px; }
.accounts-search input::placeholder { color: #929eab; }
.accounts-result-count { color: #788699; font-size: 11px; white-space: nowrap; }
.accounts-empty td { padding: 24px 12px; color: #788699; text-align: center; font-weight: 500!important; }
@media (max-width: 540px) { .accounts-toolbar { align-items: stretch; flex-direction: column; padding: 13px 15px; } .accounts-search { width: 100%; } }
.role-pill { border-radius: 6px; }
.section-panel { min-height: 310px; padding: 42px 25px; }
.section-panel-icon { border-radius: 12px; color: var(--gradient-start); background: color-mix(in srgb,var(--gradient-start) 9%,white); }
.section-panel a { border-radius: 7px; background: var(--gradient-start); color: #fff; }
.auth-main { background: radial-gradient(circle at 85% 12%,color-mix(in srgb,var(--accent-color) 10%,transparent),transparent 32%),#f3f5f7; }
.auth-card { border-radius: 11px; border-color: #e0e6ec; box-shadow: 0 15px 45px #1729421a; }
.auth-card-header { background: color-mix(in srgb,var(--gradient-start) 7%,white); }
.auth-card-header h1 { font-weight: 700; }
.auth-form label { color: #566579; font-size: 11px; letter-spacing: .4px; }
.auth-form input { border-radius: 7px; background: #fff; }
.auth-submit { border-radius: 7px; color: #fff; background: var(--gradient-start); }
@media (max-width: 1080px) {
  .settings-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .main-content { padding-top: 22px; }
  .main-content::before { height: 185px; background-position: center, 57% center; }
  .page-title { min-height: 110px; margin-bottom: 14px; }
  .page-title-tag { display: none; }
  .dashboard-card-head { margin: -18px -18px 17px; padding: 15px 18px; }
}
@media (max-width: 540px) {
  .main-content::before { height: 175px; }
  .page-title { min-height: 110px; }
  .page-title h1 { font-size: 22px; }
  .page-title p { font-size: 11px; }
  .page-eyebrow, .dashboard-eyebrow { font-size: 10px; }
  .dashboard-period { padding: 5px 8px; }
  .dashboard-kpis { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .kpi-card { min-height: 148px; padding: 13px; }
  .kpi-card strong { font-size: 24px; }
  .kpi-card small { line-height: 1.35; }
  .form-card-head { padding: 15px; }
  .settings-card-body, .preview-card-body { padding: 16px 15px; }
  .form-card-actions { padding: 13px 15px; }
  .color-grid, .branding-grid, .email-grid { grid-template-columns: 1fr; }
  .management-card:not(.settings-card):not(.preview-card):not(.email-settings) > h2,
  .accounts-panel > h2 { padding: 15px; }
  .management-card:not(.settings-card):not(.preview-card):not(.email-settings) > .form-intro { padding: 12px 15px 0; }
  .management-card:not(.settings-card):not(.preview-card):not(.email-settings) > .settings-form { padding: 16px 15px; }
  .dashboard-card-head { margin: -15px -13px 16px; padding: 14px 13px; }
}
.account-form { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: 18px; row-gap: 0; }
.account-form > div { min-width: 0; }
.account-form .account-form-full { grid-column: 1 / -1; }
.account-form input, .account-form select { margin-bottom: 17px; }
.account-create-card .settings-card-body > .form-intro { margin: 0 0 19px; color: #788699; font-size: 11px; }
.account-create-card .settings-card-body > .form-success,
.account-create-card .settings-card-body > .form-alert { margin: 0 0 18px; }
.required-mark { color: #da3d46; }
@media (max-width: 540px) { .account-form { grid-template-columns: 1fr; } .account-form .account-form-full { grid-column: auto; } }

/* Banner image control in Settings. */
.header-image-field { display: grid; grid-template-columns: minmax(0,1.3fr) minmax(210px,.8fr); gap: 16px; margin: 0 0 22px; }
.header-image-preview { min-height: 166px; display: flex; flex-direction: column; justify-content: flex-end; gap: 3px; overflow: hidden; padding: 19px; border: 1px solid #dfe5ec; border-radius: 8px; color: #fff; background-color: var(--gradient-start); background-image: linear-gradient(90deg,color-mix(in srgb,var(--gradient-start) 55%,transparent),transparent 85%),var(--preview-header-image); background-position: center; background-size: cover; box-shadow: inset 0 -45px 50px #0a1b3440; }
.header-image-preview span { font-size: 16px; font-weight: 700; line-height: 1.2; text-shadow: 0 1px 5px #071b3a66; }
.header-image-preview small { font-size: 10px; font-weight: 600; color: #ffffffdf; }
.header-image-controls { display: flex; flex-direction: column; justify-content: center; min-width: 0; padding: 13px 14px; border: 1px solid #e1e6eb; border-radius: 8px; background: #fbfcfd; }
.header-image-controls > label:first-child { color: #566579; font-size: 10px; font-weight: 700; letter-spacing: .72px; text-transform: uppercase; }
.header-image-controls input[type=file] { max-width: 100%; margin: 10px 0 0; color: #495b6e; font-size: 11px; }
.header-image-controls input[type=file]::file-selector-button { margin-right: 8px; padding: 7px 9px; border: 1px solid #d7dee6; border-radius: 6px; background: #fff; color: var(--gradient-start); font: inherit; font-weight: 700; cursor: pointer; }
.header-image-controls > small { margin-top: 7px; color: #7c8995; font-size: 10px; }
.header-image-reset { display: flex; align-items: center; gap: 8px; margin-top: 16px; padding-top: 13px; border-top: 1px solid #e6ebf0; color: #40566e; font-size: 11px; font-weight: 600; cursor: pointer; }
.header-image-reset input { width: 15px; height: 15px; margin: 0; accent-color: var(--gradient-start); }
@media (max-width: 760px) { .header-image-field { grid-template-columns: 1fr; } }
/* Role and permission management */
.role-workspace { display: grid; grid-template-columns: minmax(240px,.48fr) minmax(0,1.52fr); gap: 18px; align-items: start; margin-bottom: 28px; }
.role-list-card, .role-editor-card { overflow: hidden; }
.role-list { display: grid; gap: 7px; padding: 15px; }
.role-list-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 12px; border: 1px solid #e6ebf0; border-radius: 8px; color: #314359; background: #fff; }
.role-list-item:hover, .role-list-item.active { border-color: color-mix(in srgb,var(--gradient-start) 25%,white); background: color-mix(in srgb,var(--gradient-start) 7%,white); }
.role-list-item.active { box-shadow: inset 3px 0 var(--accent-color); }
.role-list-item strong, .role-list-item small { display: block; }
.role-list-item strong { font-size: 12px; font-weight: 700; }
.role-list-item small { margin-top: 3px; color: #7e8a99; font-size: 10px; }
.role-list-item .icon { width: 15px; height: 15px; color: #9ba9b8; }
.role-add-link { display: block; margin-top: 4px; padding: 10px 12px; border: 1px dashed #afbfce; border-radius: 8px; color: var(--gradient-start); font-size: 11px; font-weight: 700; text-align: center; }
.role-add-link:hover, .role-add-link.active { background: color-mix(in srgb,var(--gradient-start) 7%,white); }
.role-details { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; max-width: none!important; }
.role-details > div { min-width: 0; }
.role-details input { display: block; width: 100%; }
.permission-groups { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; }
.permission-group { min-width: 0; margin: 0; padding: 13px; border: 1px solid #e1e7ee; border-radius: 8px; background: #fbfcfe; }
.permission-group legend { padding: 0 5px; color: var(--gradient-start); font-size: 11px; font-weight: 800; letter-spacing: .55px; text-transform: uppercase; }
.permission-list { display: grid; gap: 3px; }
.permission-option { display: flex; align-items: flex-start; gap: 9px; min-width: 0; padding: 7px; border-radius: 6px; cursor: pointer; }
.permission-option:hover { background: #eef3f8; }
.permission-option input { width: 16px; height: 16px; margin: 2px 0 0; flex: none; accent-color: var(--gradient-start); }
.permission-option span { display: block; min-width: 0; }
.permission-option strong, .permission-option small { display: block; }
.permission-option strong { color: #2d3c50; font-size: 11px; font-weight: 700; }
.permission-option small { margin-top: 2px; color: #8391a1; font-size: 10px; line-height: 1.3; }
.owner-only-note { margin: 18px 0 0; padding: 11px 13px; border-radius: 7px; background: color-mix(in srgb,var(--accent-color) 13%,white); color: #67552e; font-size: 10px; line-height: 1.5; }
.role-delete-form { padding: 0 23px 18px; text-align: right; background: #fafbfd; }
.role-delete-form button { border: 0; background: none; color: #bd4355; font-size: 11px; font-weight: 700; }
.role-delete-form button:disabled { color: #a7afb8; cursor: not-allowed; }
.role-manage-link { display: inline-flex; align-items: center; gap: 7px; margin: 4px 22px 19px; color: var(--gradient-start); font-size: 11px; font-weight: 700; }
.role-manage-link .icon { width: 14px; height: 14px; }
.account-role-form { display: flex; align-items: center; gap: 7px; }
.account-role-form select { min-width: 125px; max-width: 165px; height: 32px; padding: 0 8px; border: 1px solid #d8e1e9; border-radius: 6px; background: #fff; color: #26384e; font-size: 11px; }
.account-role-form button { min-height: 32px; padding: 0 9px; border: 0; border-radius: 6px; background: var(--gradient-start); color: #fff; font-size: 10px; font-weight: 700; }
.account-role-locked { color: #8794a2; font-size: 11px; }
.accounts-panel table { min-width: 780px; }
@media (max-width: 1080px) { .role-workspace { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .role-details, .permission-groups { grid-template-columns: 1fr; } }
.access-settings-card { margin: 18px 0 26px; overflow: hidden; }
.access-settings-card .settings-card-body p { margin: 0 0 14px; color: #65768a; font-size: 12px; line-height: 1.5; }
.access-settings-links { display: flex; flex-wrap: wrap; gap: 10px; }
.access-settings-links a { display: inline-flex; align-items: center; gap: 8px; min-height: 35px; padding: 8px 11px; border: 1px solid #dfe6ed; border-radius: 7px; color: var(--gradient-start); background: #f8fafc; font-size: 11px; font-weight: 700; }
.access-settings-links a:hover { background: color-mix(in srgb,var(--gradient-start) 8%,white); }
.access-settings-links .icon { width: 14px; height: 14px; }

/* Navbar Notification Bell & Dropdown */
.notification-wrap { position: relative; display: flex; align-items: center; margin: 0 4px; }
.notification-button { position: relative; width: 38px; height: 38px; border: 0; background: transparent; border-radius: 8px; cursor: pointer; color: #ffffff; display: grid; place-items: center; transition: background 0.16s ease; }
.notification-button:hover, .notification-button[aria-expanded="true"] { background: rgba(255, 255, 255, 0.14); }
.notification-button .icon { width: 20px; height: 20px; }
.notif-badge { position: absolute; top: 3px; right: 3px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: #ef4444; color: #ffffff; font-size: 10px; font-weight: 750; display: grid; place-items: center; line-height: 1; border: 2px solid var(--gradient-start, #0f4c81); }
.notification-dropdown { position: absolute; top: calc(100% + 6px); right: -40px; z-index: 100; width: 390px; max-width: 92vw; background: #ffffff; color: #1e293b; border: 1px solid #e2e8f0; border-radius: 12px; box-shadow: 0 16px 38px rgba(15, 23, 42, 0.18); display: flex; flex-direction: column; overflow: hidden; }
.notification-dropdown[hidden] { display: none; }
.notif-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 10px; border-bottom: 1px solid #f1f5f9; background: #ffffff; }
.notif-head strong { font-size: 14px; color: #0f172a; font-weight: 700; }
.notif-unread-tag { display: inline-block; margin-left: 6px; padding: 2px 7px; border-radius: 10px; background: #eff6ff; color: #2563eb; font-size: 10px; font-weight: 700; }
.notif-mark-all { border: 0; background: none; color: var(--gradient-start, #0f4c81); font-size: 11px; font-weight: 600; cursor: pointer; padding: 4px 6px; border-radius: 4px; }
.notif-mark-all:hover { background: #f1f5f9; }
.notif-tabs { display: flex; gap: 4px; padding: 8px 12px; overflow-x: auto; border-bottom: 1px solid #f1f5f9; background: #f8fafc; scrollbar-width: none; }
.notif-tabs::-webkit-scrollbar { display: none; }
.notif-tab { border: 0; background: transparent; padding: 5px 9px; border-radius: 6px; font-size: 11px; font-weight: 600; color: #64748b; cursor: pointer; white-space: nowrap; transition: all 0.14s ease; }
.notif-tab:hover { background: #e2e8f0; color: #0f172a; }
.notif-tab.is-active { background: #ffffff; color: #0f172a; box-shadow: 0 1px 3px rgba(0,0,0,0.08); }
.notif-list { max-height: 360px; overflow-y: auto; display: flex; flex-direction: column; }
.notif-item { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border-bottom: 1px solid #f1f5f9; transition: background 0.14s ease; }
.notif-item:hover { background: #f8fafc; }
.notif-item.is-unread { background: #f0f7ff; }
.notif-icon-pill { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; flex: none; background: #eff6ff; color: #2563eb; margin-top: 2px; }
.notif-icon-pill .icon { width: 16px; height: 16px; }
.notif-sev-warning { background: #fef3c7; color: #d97706; }
.notif-sev-danger { background: #fee2e2; color: #dc2626; }
.notif-sev-success { background: #dcfce7; color: #16a34a; }
.notif-content { flex: 1; min-width: 0; }
.notif-item-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 2px; }
.notif-item-title { font-size: 12px; font-weight: 700; color: #0f172a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.notif-item-time { font-size: 10px; color: #94a3b8; white-space: nowrap; }
.notif-item-msg { font-size: 11px; color: #475569; margin: 0 0 6px 0; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.notif-item-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.notif-action-link { font-size: 11px; font-weight: 600; color: var(--gradient-start, #0f4c81); text-decoration: none; }
.notif-action-link:hover { text-decoration: underline; }
.notif-read-btn { border: 0; background: none; color: #94a3b8; font-size: 10px; cursor: pointer; padding: 2px 4px; }
.notif-read-btn:hover { color: #334155; }
.notif-foot { padding: 10px 14px; background: #f8fafc; border-top: 1px solid #e2e8f0; text-align: center; }
.notif-foot a { font-size: 11.5px; font-weight: 600; color: var(--gradient-start, #0f4c81); text-decoration: none; }
.notif-foot a:hover { text-decoration: underline; }
.notif-empty { padding: 36px 16px; text-align: center; color: #94a3b8; }
.notif-empty .icon { width: 32px; height: 32px; margin-bottom: 8px; color: #cbd5e1; }
.notif-empty p { margin: 0; font-size: 12px; }