@font-face {
  font-family: Lamdanet;
  src: url('../font/segoeui.ttf') format('truetype');
  font-display: swap
}

:root {
  --color-primary: #066fd1;
  --color-primary-hover: #055fb3;
}

* {
  box-sizing: border-box
}

body {
  margin: 0;
  font-family: Lamdanet, 'Segoe UI', Arial, sans-serif;
  font-size: 13px;
  color: #383838;
  background: #fff
}

button,
input,
select {
  font: inherit
}

button,
a {
  -webkit-tap-highlight-color: transparent
}

button {
  cursor: pointer
}

a {
  color: inherit;
  text-decoration: none
}

button {
  border: 0;
  background: none;
  color: inherit
}

.app {
  min-height: 100vh
}

.sidebar {
  width: 220px;
  position: fixed;
  inset: 0 auto 0 0;
  background: #fff;
  border-right: 1px solid #e8e8e8;
  padding: 0 10px;
  z-index: 30;
  overflow-y: auto;
}

.brand {
  height: 50px;
  display: flex;
  align-items: center;
  gap: 9px;
  border-bottom: 1px solid #e9e9e9;
  margin: 0 -10px;
  padding: 0 14px
}

.brand img {
  width: 17px;
  height: 17px
}

.brand .chevron {
  color: #b1b1b1
}

.brand-tools {
  margin-left: auto;
  display: flex;
  gap: 10px;
  color: #777
}

.icon {
  width: 16px;
  height: 16px;
  vertical-align: middle;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0
}

.quick-nav {
  display: flex;
  gap: 10px;
  align-items: center;
  height: 42px;
  color: #929292
}

.quick-nav a {
  padding: 5px 7px;
  border-radius: 4px;
  display: flex;
  gap: 5px;
  align-items: center;
  color: #444;
  background: #eee
}

.nav-label {
  font-size: 11px;
  font-weight: 600;
  color: #aaa;
  margin: 16px 4px 7px
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 6px;
  min-height: 40px;
  border-radius: 4px;
  min-width: 0;
  font-size: 13px
}

.nav-link:hover,
.nav-link.active {
  background: var(--color-primary);
  color: #fff;
}

.nav-link:hover .menu-icon,
.nav-link.active .menu-icon {
  color: #fff;
}

.subnav .nav-link:hover {
  background: rgb(6 111 209 / 40%);
  color: inherit;
}

body:not(.sidebar-collapsed) .subnav .nav-link {
  border-radius: 0;
}

body:not(.sidebar-collapsed) .sidebar-nav > .nav-link,
body:not(.sidebar-collapsed) .nav-group > .nav-link {
  border-radius: 4px 0 0 4px;
}

@media (max-width: 700px) {
  .sidebar-nav > .nav-link,
  .nav-group > .nav-link {
    border-radius: 4px 0 0 4px;
  }

  .subnav .nav-link {
    border-radius: 0;
  }
}

.subnav .nav-link.active {
  background: rgb(6 111 209 / 40%);
  color: inherit;
}

.subnav .nav-link:hover .menu-icon {
  color: inherit;
}

.nav-link span {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis
}

.nav-link .icon {
  width: 18px;
  height: 18px
}

.sidebar-nav {
  padding-top: 12px;
}

.menu-icon {
  color: #777;
}

.submenu-toggle {
  width: 100%;
  text-align: left;
}

.submenu-chevron {
  margin-left: auto;
  transition: transform .2s;
}

.submenu-toggle[aria-expanded="false"] .submenu-chevron {
  transform: rotate(-90deg);
}

.subnav[hidden] {
  display: none;
}

.blue {
  color: #596bfa
}

.red {
  color: #ee4561
}

.green {
  color: #10a78d
}

.orange {
  color: #f68b43
}

.muted {
  color: #999
}

.badge-icon {
  width: 16px;
  height: 16px;
  background: #ffdf70;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ab7e13;
  font-size: 10px;
  flex-shrink: 0
}

.subnav {
  margin-left: 13px;
  border-left: 1px solid #d8d8d8
}

.subnav .nav-link {
  margin-left: 8px;
  padding-left: 6px;
  font-size: 12px;
  position: relative
}

.subnav .nav-link:before {
  content: '';
  width: 8px;
  height: 1px;
  background: #d8d8d8;
  position: absolute;
  left: -8px;
  top: 50%;
}

.main {
  margin-left: 220px;
  min-height: 100vh;
  background: #fff;
}

html[data-theme="dark"] .main {
  background: #181a1d;
}

.topbar {
  height: 50px;
  border-bottom: 1px solid #ececec;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 17px;
  background: #fff
}

.page-title {
  display: flex;
  gap: 7px;
  align-items: center;
  font-size: 13px;
  font-weight: 400;
  margin: 0
}

.breadcrumbs ol {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 13px;
}

.breadcrumbs li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.breadcrumbs li + li::before {
  content: '/';
  color: #999;
}

.breadcrumbs a {
  color: #777;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

html[data-theme="dark"] .breadcrumbs a {
  color: #a2a7b0;
}

.top-actions {
  display: flex;
  gap: 7px;
  align-items: center
}

.profile-menu {
  position: relative;
  margin-left: 6px;
}

.topbar > .theme-toggle,
.topbar > .profile-menu {
  position: relative;
  margin-left: 12px;
}

.topbar > .theme-toggle::before,
.topbar > .profile-menu::before {
  content: '';
  position: absolute;
  left: -6px;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 24px;
  background: #ddd;
  pointer-events: none;
}

html[data-theme="dark"] .topbar > .theme-toggle::before,
html[data-theme="dark"] .topbar > .profile-menu::before {
  background: #444850;
}

.theme-toggle {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-left: 6px;
  border-radius: 6px;
  flex-shrink: 0;
}

.theme-toggle:hover {
  background: #eee;
}

html:not([data-theme="dark"]) .theme-toggle .icon-tabler-moon {
  color: #777;
}

.theme-toggle .icon-tabler-brightness-up,
html[data-theme="dark"] .theme-toggle .icon-tabler-moon {
  display: none;
}

html[data-theme="dark"] .theme-toggle .icon-tabler-brightness-up {
  display: block;
}

html[data-theme="dark"] {
  --color-primary: rgb(6 111 209 / 50%);
  --color-primary-hover: rgb(6 111 209 / 65%);
  color-scheme: dark;
}

html[data-theme="dark"] body {
  background: #181a1d;
  color: #e0e0e0;
}

html[data-theme="dark"] .sidebar,
html[data-theme="dark"] .topbar {
  background: #202226;
  border-color: #34373d;
}

html[data-theme="dark"] .brand,
html[data-theme="dark"] .subnav {
  border-color: #34373d;
}

html[data-theme="dark"] .nav-link:hover,
html[data-theme="dark"] .nav-link.active {
  background: var(--color-primary);
  color: #fff;
}

html[data-theme="dark"] .subnav .nav-link:hover {
  background: rgb(6 111 209 / 25%);
}

html[data-theme="dark"] .subnav .nav-link.active {
  background: rgb(6 111 209 / 25%);
}

html[data-theme="dark"] .nav-link:hover .menu-icon,
html[data-theme="dark"] .nav-link.active .menu-icon {
  color: #fff;
}

html[data-theme="dark"] .profile-toggle:hover,
html[data-theme="dark"] .profile-toggle[aria-expanded="true"],
html[data-theme="dark"] .theme-toggle:hover,
html[data-theme="dark"] .logout-button:hover {
  background: #30333a;
}

html[data-theme="dark"] .menu-icon,
html[data-theme="dark"] .brand-tools,
html[data-theme="dark"] .muted,
html[data-theme="dark"] .brand .chevron,
html[data-theme="dark"] .logout-button .icon {
  color: #a2a7b0;
}

html[data-theme="dark"] .subnav .nav-link:before {
  background: #34373d;
}

html[data-theme="dark"] .profile-avatar {
  background: #fff;
}

html[data-theme="dark"] .profile-dropdown {
  background: #25282d;
  border-color: #34373d;
}

.profile-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 6px;
  border-radius: 6px;
  white-space: nowrap;
}

.profile-toggle:hover,
.profile-toggle[aria-expanded="true"] {
  background: #eee;
}

.profile-toggle strong {
  font-weight: 600;
}

.profile-avatar {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: #fff;
  border: 1px solid #e8e8e8;
  overflow: hidden;
  flex-shrink: 0;
}

.profile-photo {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.profile-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 160px;
  padding: 5px;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 7px;
  box-shadow: 0 5px 18px #00000012;
  z-index: 40;
}

.profile-dropdown[hidden] {
  display: none;
}

.logout-button {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 9px 10px;
  border-radius: 4px;
  text-align: left;
}

.logout-button:hover {
  background: #f3f3f3;
}

.logout-button .icon {
  color: #777;
}

.logout-button,
.logout-button .icon,
html[data-theme="dark"] .logout-button,
html[data-theme="dark"] .logout-button .icon {
  color: #ef4444;
}

.primary {
  background: var(--color-primary);
  color: #fff;
  padding: 5px 10px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 12px
}

.primary:hover {
  background: var(--color-primary-hover)
}

.round-button {
  width: 24px;
  height: 24px;
  border: 1px solid #e0e0e0;
  border-radius: 7px;
  color: #888;
  display: grid;
  place-items: center
}

.mobile-menu {
  display: none
}

.dashboard {
  padding: 9px;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 8px
}

.metrics {
  display: grid;
  gap: 8px
}

.card {
  border: 1px solid #e8e8e8;
  border-radius: 7px;
  background: #fff;
  padding: 12px
}

.card-title {
  font-size: 13px;
  font-weight: 400;
  margin: 0 0 8px
}

.metric {
  min-height: 96px;
  display: flex;
  flex-direction: column;
  justify-content: center
}

.metric-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between
}

.metric-value {
  font-size: 28px;
  font-weight: 600;
  line-height: 1.2
}

.trend {
  font-size: 11px;
  color: #23b5a1
}

.trend.negative {
  color: #f07482
}

.chart-card {
  min-height: 306px
}

.line-chart {
  height: 250px;
  width: 100%;
  display: block
}

.grid-line {
  stroke: #e7e7e7;
  stroke-dasharray: 3 4;
  stroke-width: 1
}

.lower-grid {
  grid-column: 1/-1;
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(250px, 1fr);
  gap: 8px
}

.stage-chart {
  height: 265px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-top: 0
}

.stage-grid {
  flex: 1;
  background: repeating-linear-gradient(to bottom, transparent 0, transparent calc(25% - 1px), #ededed calc(25% - 1px), #ededed 25%);
  border-top: 1px dashed #eee
}

.stage-labels {
  display: flex;
  justify-content: space-around;
  padding-top: 12px;
  font-size: 10px;
  color: #888
}

.industry-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 17px;
  height: 245px
}

.donut {
  width: 105px;
  height: 105px;
  border-radius: 50%;
  background: conic-gradient(#8aa1f5 0 35%, #b98be4 35% 57%, #4db9aa 57% 78%, #f7904f 78% 100%);
  display: grid;
  place-items: center;
  transform: rotate(-3deg)
}

.donut-center {
  width: 85px;
  height: 85px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: rotate(3deg)
}

.donut-center strong {
  font-size: 25px;
  line-height: 1.1
}

.donut-center small {
  color: #999;
  font-size: 11px
}

.legend {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 11px;
  color: #777
}

.legend li {
  margin: 7px 0;
  display: flex;
  align-items: center;
  gap: 6px
}

.legend i {
  width: 7px;
  height: 7px;
  border-radius: 1px
}

.table-toolbar {
  height: 41px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 14px;
  border-bottom: 1px solid #eee;
  color: #777
}

.table-controls {
  display: flex;
  gap: 15px;
  font-size: 12px
}

.table-controls button:hover {
  color: #4263eb
}

.table-wrap {
  overflow-x: auto
}

.workflow-table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
  table-layout: fixed
}

.workflow-table th,
.workflow-table td {
  height: 34px;
  border-bottom: 1px solid #eee;
  border-right: 1px solid #eee;
  text-align: left;
  padding: 6px 10px;
  font-weight: 400
}

.workflow-table th {
  color: #aaa;
  height: 32px
}

.workflow-table th:first-child {
  width: 35px
}

.workflow-table th:nth-child(2) {
  width: 250px
}

.workflow-table th:nth-child(3) {
  width: 135px
}

.workflow-table th:nth-child(4) {
  width: 200px
}

.workflow-table td:first-child,
.workflow-table th:first-child {
  border-right: 0;
  padding-right: 0
}

.workflow-table input {
  accent-color: #4263eb;
  width: 13px;
  height: 13px;
  margin: 0
}

.record-name {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  background: #f3f3f3;
  padding: 2px 4px;
  border-radius: 3px;
  max-width: 100%
}

.record-name span:last-child {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis
}

.status {
  padding: 2px 7px;
  border-radius: 3px;
  font-size: 12px;
  background: #f4f4f4;
  color: #888
}

.status.active {
  background: #e2f5e9;
  color: #159960
}

.calculate {
  padding: 10px 45px;
  color: #aaa;
  font-size: 12px
}

.board {
  padding: 13px;
  display: flex;
  gap: 12px;
  overflow-x: auto;
  min-height: calc(100vh - 91px)
}

.board-column {
  min-width: 230px;
  flex: 1
}

.board-heading {
  font-size: 12px;
  color: #999;
  margin-bottom: 12px
}

.stage-tag {
  padding: 3px 7px;
  background: #fce7f3;
  color: #d955a0;
  border-radius: 3px;
  margin-right: 6px
}

.stage-tag.screening {
  background: #fff0df;
  color: #c58932
}

.stage-tag.meeting {
  background: #e8eafe;
  color: #6b73c9
}

.stage-tag.proposal {
  background: #e4f5ef;
  color: #26a581
}

.deal-card {
  padding: 12px;
  border: 1px solid #e6e6e6;
  border-radius: 5px;
  margin-bottom: 8px;
  background: #fff;
  box-shadow: 0 1px 2px #00000003
}

.deal-title {
  font-size: 13px;
  color: #335f97;
  margin-bottom: 10px
}

.deal-detail {
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 8px 0;
  color: #38629a
}

.deal-detail .icon {
  color: #aaa;
  width: 13px;
  height: 13px
}

.chip {
  background: #f2f2f2;
  color: #444;
  padding: 1px 5px;
  border-radius: 3px
}

.empty-state {
  padding: 50px 25px;
  max-width: 750px
}

.empty-state h2 {
  font-size: 24px;
  font-weight: 600
}

.empty-state p {
  color: #888;
  line-height: 1.7
}

.dialog-backdrop {
  position: fixed;
  inset: 0;
  background: #0004;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 20px
}

.dialog-backdrop[hidden] {
  display: none
}

.dialog {
  background: white;
  padding: 24px;
  border-radius: 10px;
  width: 400px;
  max-width: 100%;
  box-shadow: 0 15px 60px #0002
}

.dialog h2 {
  font-size: 18px;
  margin: 0 0 20px
}

.dialog label {
  display: block;
  margin-bottom: 14px;
  font-size: 12px
}

.dialog input,
.dialog select {
  width: 100%;
  margin-top: 6px;
  border: 1px solid #ddd;
  border-radius: 5px;
  padding: 9px;
  background: white
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 20px
}

.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #333;
  color: #fff;
  padding: 12px 18px;
  border-radius: 7px;
  z-index: 60
}

.filter-panel {
  padding: 10px 14px;
  background: #fafafa;
  border-bottom: 1px solid #eee;
  display: flex;
  gap: 10px;
  align-items: center
}

.filter-panel[hidden] {
  display: none
}

.filter-panel select {
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 4px
}

.sidebar-overlay {
  display: none
}

@media(min-width:1400px) {
  .dashboard {
    grid-template-columns: 290px minmax(0, 1fr)
  }

  .metric {
    min-height: 120px
  }

  .chart-card {
    min-height: 378px
  }

  .line-chart {
    height: 322px
  }

  .stage-chart {
    height: 330px
  }

  .industry-content {
    height: 310px
  }
}

@media(max-width:1000px) {
  .sidebar {
    width: 185px
  }

  .main {
    margin-left: 185px
  }

  .dashboard {
    grid-template-columns: 200px minmax(0, 1fr)
  }

  .lower-grid {
    grid-template-columns: minmax(0, 1.6fr) minmax(220px, 1fr)
  }

  .industry-content {
    gap: 12px
  }

  .donut {
    width: 90px;
    height: 90px
  }

  .donut-center {
    width: 74px;
    height: 74px
  }
}

.mobile-header {
  display: none;
}

@media(max-width:700px) {
  .mobile-header {
    display: flex;
    align-items: center;
    gap: 12px;
    position: fixed;
    inset: 0 0 auto;
    height: 52px;
    padding: 0 10px;
    background: #fff;
    border-bottom: 1px solid #e8e8e8;
    z-index: 35;
  }

  .mobile-profile-menu {
    margin-left: 0;
    flex-shrink: 0;
  }

  .mobile-profile-menu .profile-toggle {
    padding: 0;
    border-radius: 7px;
  }

  .mobile-profile-menu .profile-dropdown {
    left: 0;
    right: auto;
    top: calc(100% + 12px);
    width: 180px;
  }

  .profile-greeting {
    padding: 9px 10px;
    border-bottom: 1px solid #e8e8e8;
    margin-bottom: 4px;
  }

  .profile-theme-toggle {
    display: flex;
    justify-content: flex-start;
    gap: 8px;
    width: 100%;
    height: auto;
    padding: 9px 10px;
    margin-left: 0;
    text-align: left;
  }

  .mobile-brand {
    display: flex;
    align-items: center;
    gap: 7px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    max-width: calc(100% - 120px);
    min-width: 0;
  }

  .mobile-brand img {
    width: 20px;
    height: 20px;
  }

  .mobile-brand span {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .mobile-menu {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    margin-left: auto;
    border-radius: 6px;
    flex-shrink: 0;
  }

  .mobile-menu .icon {
    width: 24px;
    height: 24px;
  }

  .mobile-menu .mobile-menu-close,
  .mobile-menu[aria-expanded="true"] .icon-tabler-menu-deep {
    display: none;
  }

  .mobile-menu[aria-expanded="true"] .mobile-menu-close {
    display: block;
  }

  .sidebar {
    inset: 52px 0 auto;
    width: 100%;
    max-height: calc(100vh - 52px);
    max-height: calc(100dvh - 52px);
    transform: translateY(calc(-100% - 52px));
    visibility: hidden;
    transition: transform .25s, visibility .25s;
    border-right: 0;
    border-bottom: 1px solid #e8e8e8;
    border-radius: 0 0 10px 10px;
    padding-bottom: 12px;
  }

  .sidebar.open {
    transform: translateY(0);
    visibility: visible;
  }

  .sidebar .brand,
  .topbar {
    display: none;
  }

  .main {
    margin-left: 0;
    padding-top: 52px;
  }

  .sidebar-overlay.visible {
    display: block;
    position: fixed;
    inset: 52px 0 0;
    background: #0004;
    z-index: 20;
  }

  html[data-theme="dark"] .mobile-header {
    background: #202226;
    border-color: #34373d;
  }

  html[data-theme="dark"] .profile-greeting {
    border-color: #34373d;
  }

  @media(prefers-reduced-motion: reduce) {
    .sidebar {
      transition: none;
    }
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.menu-search-box {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-left: auto;
  padding: 6px 9px;
  border: 1px solid #dedee3;
  border-radius: 8px;
  background: #f2f2f5;
  color: #777;
}

.menu-search-box input {
  width: 135px;
  border: 0;
  outline: none;
  background: transparent;
  color: inherit;
}

.menu-search-box:focus-within {
  border-color: #066fd1;
}

.menu-search-box kbd {
  font: inherit;
  font-size: 10px;
  white-space: nowrap;
  color: #999;
}

.menu-search-dialog {
  width: min(580px, calc(100% - 32px));
  max-height: min(540px, 80dvh);
  padding: 0;
  border: 1px solid #dedee3;
  border-radius: 14px;
  background: #fafafc;
  color: #383838;
  box-shadow: 0 24px 80px #0003;
  overflow: auto;
}

.menu-search-dialog::backdrop {
  background: #0004;
  backdrop-filter: blur(5px);
}

.spotlight-input-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px;
  border-bottom: 1px solid #e5e5e9;
}

.spotlight-input-row > .icon {
  width: 22px;
  height: 22px;
  color: #888;
}

.spotlight-input-row input {
  min-width: 0;
  flex: 1;
  font-size: 18px;
  border: 0;
  outline: none;
  background: transparent;
  color: inherit;
}

#menu-search-close {
  padding: 4px 6px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 11px;
  color: #888;
}

.search-results {
  padding: 8px;
}

.search-result {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 11px;
  border-radius: 7px;
  text-align: left;
}

.search-result small {
  margin-left: auto;
  opacity: .7;
}

.search-result:hover,
.search-result.selected {
  background: var(--color-primary);
  color: #fff;
}

.search-status,
.search-hint {
  margin: 0;
  padding: 8px 18px;
  color: #888;
  font-size: 12px;
}

.search-hint {
  border-top: 1px solid #e5e5e9;
  padding-bottom: 12px;
}

.mobile-search-button {
  display: none;
}

html[data-theme="dark"] .menu-search-box,
html[data-theme="dark"] .menu-search-dialog {
  background: #25282d;
  border-color: #34373d;
  color: #e0e0e0;
}

html[data-theme="dark"] .spotlight-input-row,
html[data-theme="dark"] .search-hint,
html[data-theme="dark"] #menu-search-close {
  border-color: #34373d;
}

@media(max-width:700px) {
  .mobile-search-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 8px;
    padding: 10px;
    margin-top: 8px;
    border: 1px solid #ddd;
    border-radius: 6px;
  }

  .mobile-search-button::after {
    content: 'Cari menu';
  }

  html[data-theme="dark"] .mobile-search-button {
    border-color: #34373d;
  }
}

.sidebar-toggle {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 5px;
}

.sidebar-toggle:hover {
  background: #e8e8e8;
}

.sidebar-toggle .icon-tabler-layout-sidebar-left-expand {
  display: none;
}

html[data-theme="dark"] .sidebar-toggle:hover {
  background: #30333a;
}

@media(min-width:701px) {
  body.sidebar-collapsed .sidebar {
    width: 64px;
    padding: 0 8px;
  }

  body.sidebar-collapsed .main {
    margin-left: 64px;
  }

  body.sidebar-collapsed .brand {
    position: relative;
    height: 50px;
    margin: 0 -8px;
    padding: 12px 0;
    flex-direction: column;
    justify-content: center;
    gap: 0;
    border-bottom-color: #ececec;
  }

  html[data-theme="dark"] body.sidebar-collapsed .brand {
    border-bottom-color: #34373d;
  }

  body.sidebar-collapsed .sidebar-nav {
    padding-top: 48px;
  }

  body.sidebar-collapsed .brand > span {
    display: none;
  }

  body.sidebar-collapsed .brand img {
    width: 24px;
    height: 24px;
  }

  body.sidebar-collapsed .brand-tools {
    position: absolute;
    top: 58px;
    left: 50%;
    transform: translateX(-50%);
    margin-left: 0;
  }

  body.sidebar-collapsed .sidebar-toggle .icon-tabler-layout-sidebar-right-expand {
    display: none;
  }

  body.sidebar-collapsed .sidebar-toggle .icon-tabler-layout-sidebar-left-expand {
    display: block;
    width: 18px;
    height: 18px;
  }

  body.sidebar-collapsed .sidebar-nav > .nav-link,
  body.sidebar-collapsed .nav-group > .nav-link {
    justify-content: center;
    min-height: 42px;
    padding: 8px;
  }

  body.sidebar-collapsed .sidebar-nav > .nav-link > span,
  body.sidebar-collapsed .nav-group > .nav-link > span,
  body.sidebar-collapsed .submenu-chevron {
    display: none;
  }

  body.sidebar-collapsed .nav-group > .subnav {
    display: none;
    position: fixed;
    left: 63px;
    top: var(--flyout-top, 100px);
    width: 200px;
    max-height: calc(100vh - 16px);
    overflow-y: auto;
    margin: 0;
    padding: 8px;
    border: 1px solid #e8e8e8;
    border-radius: 0 9px 9px 0;
    background: #fff;
    box-shadow: 5px 8px 22px #0002;
    z-index: 45;
  }

  body.sidebar-collapsed .nav-group.flyout-open > .subnav {
    display: block;
  }

  body.sidebar-collapsed .subnav::before {
    content: attr(data-label);
    display: block;
    padding: 5px 8px 9px;
    font-weight: 600;
  }

  body.sidebar-collapsed .subnav .nav-link {
    margin-left: 0;
    padding-left: 8px;
  }

  body.sidebar-collapsed .subnav .nav-link::before {
    display: none;
  }

  html[data-theme="dark"] body.sidebar-collapsed .nav-group > .subnav {
    background: #25282d;
    border-color: #34373d;
  }
}

@media(min-width:701px) {
  body.sidebar-collapsed .sidebar-nav > .nav-link:not(.active):hover,
  body.sidebar-collapsed .nav-group > .nav-link:not(.active):hover {
    background: transparent;
    color: inherit;
  }

  body.sidebar-collapsed .sidebar-nav > .nav-link:not(.active):hover .menu-icon,
  body.sidebar-collapsed .nav-group > .nav-link:not(.active):hover .menu-icon {
    color: #066fd1;
  }
}

@media(min-width:701px) {
  body.sidebar-collapsed .nav-group > .subnav,
  html[data-theme="dark"] body.sidebar-collapsed .nav-group > .subnav {
    background: #066fd1;
    border-color: #066fd1;
    color: #fff;
  }

  body.sidebar-collapsed .subnav .nav-link,
  body.sidebar-collapsed .subnav .nav-link .menu-icon,
  html[data-theme="dark"] body.sidebar-collapsed .subnav .nav-link,
  html[data-theme="dark"] body.sidebar-collapsed .subnav .nav-link .menu-icon {
    color: #fff;
  }

  body.sidebar-collapsed .subnav .nav-link:not(.active):hover,
  html[data-theme="dark"] body.sidebar-collapsed .subnav .nav-link:not(.active):hover {
    background: rgb(255 255 255 / 20%);
    color: #fff;
  }

  body.sidebar-collapsed .subnav .nav-link.active,
  body.sidebar-collapsed .subnav .nav-link.active:hover,
  html[data-theme="dark"] body.sidebar-collapsed .subnav .nav-link.active,
  html[data-theme="dark"] body.sidebar-collapsed .subnav .nav-link.active:hover {
    background: #fff;
    color: #066fd1;
  }

  body.sidebar-collapsed .subnav .nav-link.active .menu-icon,
  body.sidebar-collapsed .subnav .nav-link.active:hover .menu-icon,
  html[data-theme="dark"] body.sidebar-collapsed .subnav .nav-link.active .menu-icon,
  html[data-theme="dark"] body.sidebar-collapsed .subnav .nav-link.active:hover .menu-icon {
    color: #066fd1;
  }
}

.dashboard-overview {
  display: grid;
  grid-template-columns: minmax(0, 2.06fr) repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 20px 18px;
  background: #fff;
}

.overview-card {
  position: relative;
  min-width: 0;
  min-height: 262px;
  padding: 20px;
  border: 1px solid #e2e3e6;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 2px #00000008;
  overflow: hidden;
}

.welcome-card {
  display: flex;
  align-items: stretch;
  gap: 8px;
  background: linear-gradient(180deg, #deecfa 0%, #fff 45%);
  border-color: #c8d8e7;
}

.welcome-copy {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

.welcome-copy h1 {
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1.4;
  font-weight: 600;
  color: #111;
}

.welcome-copy p,
.users-card p {
  margin: 0;
  font-size: 13px;
  color: #718096;
  line-height: 1.6;
}

.welcome-copy p {
  max-width: 240px;
}

.welcome-art {
  width: 43%;
  max-width: 230px;
  align-self: center;
  height: 210px;
  object-fit: contain;
}

.welcome-stats {
  display: flex;
  gap: 28px;
  margin-top: auto;
  padding-bottom: 20px;
  padding-top: 28px;
}

.welcome-stats h2,
.overview-label {
  font-size: 12px;
  font-weight: 400;
  color: #718096;
  margin: 0 0 4px;
  white-space: nowrap;
}

.stat-line {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.stat-line strong {
  font-size: 15px;
  font-weight: 600;
  color: #151515;
}

.stat-up {
  color: #22b54d;
  font-size: 13px;
}

.stat-down {
  color: #ed4251;
  font-size: 13px;
}

.stat-track {
  width: 90px;
  height: 4px;
  border-radius: 2px;
  margin-top: 10px;
  background: #dedee1;
  overflow: hidden;
}

.stat-track span {
  display: block;
  height: 100%;
}

.sales-progress {
  width: 75%;
  background: #28b64b;
}

.growth-progress {
  width: 78.4%;
  background: #df3546;
}

.total-line {
  margin-bottom: 7px;
}

.total-line strong {
  font-size: 24px;
  line-height: 1.3;
}

.users-sparkline {
  position: absolute;
  bottom: 18px;
  left: 0;
  width: 100%;
  height: 80px;
  fill: none;
}

.sparkline-comparison {
  stroke: #b4b7bd;
  stroke-width: 1;
  stroke-dasharray: 3 3;
}

.sparkline-main {
  stroke: #2584e5;
  stroke-width: 1.8;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.active-gauge {
  position: relative;
  width: 100%;
  max-width: 220px;
  height: 170px;
  margin: 10px auto -10px;
}

.active-gauge svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.gauge-track,
.gauge-value {
  fill: none;
  stroke-width: 10;
  stroke-linecap: round;
}

.gauge-track {
  stroke: #e5e5e5;
}

.gauge-value {
  stroke: #2784db;
}

.gauge-caption {
  position: absolute;
  inset: 64px 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.gauge-caption span {
  font-size: 12px;
  color: #718096;
}

.gauge-caption strong {
  font-size: 30px;
  color: #444;
}

html[data-theme="dark"] .dashboard-overview {
  background: #181a1d;
}

html[data-theme="dark"] .overview-card {
  background: #202226;
  border-color: #34373d;
}

html[data-theme="dark"] .welcome-card {
  background: linear-gradient(180deg, #193b58, #202226 65%);
}

html[data-theme="dark"] .welcome-copy h1,
html[data-theme="dark"] .stat-line strong,
html[data-theme="dark"] .gauge-caption strong {
  color: #f1f1f1;
}

html[data-theme="dark"] .welcome-copy p,
html[data-theme="dark"] .users-card p,
html[data-theme="dark"] .welcome-stats h2,
html[data-theme="dark"] .overview-label,
html[data-theme="dark"] .gauge-caption span {
  color: #a2adbc;
}

html[data-theme="dark"] .stat-track {
  background: #42464d;
}

html[data-theme="dark"] .gauge-track {
  stroke: #42464d;
}

@media(min-width:701px) and (max-width:1100px) {
  .dashboard-overview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .welcome-card {
    grid-column: 1 / -1;
  }
}

@media(max-width:700px) {
  .dashboard-overview {
    grid-template-columns: 1fr;
    padding: 16px 12px;
    gap: 12px;
  }

  .welcome-card {
    padding: 18px;
  }

  .welcome-art {
    width: 38%;
    height: 180px;
  }

  .welcome-stats {
    gap: 20px;
    padding-bottom: 8px;
  }
}

@media(max-width:380px) {
  .welcome-card {
    flex-direction: column;
  }

  .welcome-art {
    width: 65%;
    height: 140px;
  }
}

@media(min-width:701px) {
  body.sidebar-collapsed .sidebar-nav > a.nav-link > span {
    position: fixed;
    left: 63px;
    top: var(--menu-tooltip-top, 100px);
    display: block;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    padding: 10px 14px;
    border-radius: 0 7px 7px 0;
    background: #066fd1;
    color: #fff;
    box-shadow: 5px 5px 16px #0002;
    font-size: 13px;
    z-index: 45;
  }

  body.sidebar-collapsed .sidebar-nav > a.nav-link:hover > span,
  body.sidebar-collapsed .sidebar-nav > a.nav-link:focus-visible > span {
    visibility: visible;
    opacity: 1;
  }
}

.dashboard-details {
  display: grid;
  grid-template-columns: minmax(0, 2.05fr) minmax(0, 1fr);
  gap: 16px;
  padding: 0 18px 20px;
}

.visited-card {
  min-width: 0;
  border: 1px solid #e2e3e6;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 1px 2px #00000008;
}

.visited-card h2 {
  margin: 0;
  padding: 22px 20px;
  font-size: 15px;
  font-weight: 600;
  color: #151515;
}

.visited-table-wrap {
  overflow-x: auto;
}

.visited-table {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
  font-size: 13px;
}

.visited-table th,
.visited-table td {
  text-align: left;
  padding: 11px 20px;
  border-top: 1px solid #e5e5e7;
  color: #718096;
}

.visited-table th {
  background: #fafafa;
  font-size: 12px;
  font-weight: 400;
  padding-top: 9px;
  padding-bottom: 9px;
}

.visited-table td:first-child {
  width: 40%;
  color: #192d45;
}

.visited-page {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.visited-page .icon {
  color: #066fd1;
  width: 15px;
  height: 15px;
}

.visit-trend {
  display: block;
  width: 50px;
  height: 22px;
  fill: none;
  stroke: #0674dd;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sponsor-card {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 368px;
  min-width: 0;
  border: 1px solid #1686ff;
  border-radius: 8px;
  background: #f4f9ff;
  overflow: hidden;
}

.sponsor-dots {
  position: absolute;
  top: 42px;
  right: 0;
  width: 67%;
  height: 30px;
  background-image: radial-gradient(#a5cff9 1.6px, transparent 1.6px);
  background-size: 11px 11px;
}

.sponsor-mascot {
  position: absolute;
  left: -26px;
  top: 42px;
  width: 52%;
  height: 270px;
  object-fit: contain;
}

.sponsor-copy {
  position: relative;
  margin-left: 44%;
  padding: 24px 20px 24px 0;
  z-index: 1;
}

.sponsor-copy h2 {
  margin: 0 0 12px;
  color: #111;
  font-size: 23px;
  line-height: 1.4;
  font-weight: 600;
}

.sponsor-copy p {
  margin: 0 0 24px;
  color: #192d45;
  line-height: 1.6;
  font-size: 14px;
}

.sponsor-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  background: #fff;
  color: #192d45;
  white-space: nowrap;
  box-shadow: 0 1px 2px #00000008;
  font-size: 12px;
}

.sponsor-button:hover {
  background: #eaf3ff;
  border-color: #85bafa;
}

.sponsor-button .icon {
  color: #df326a;
  fill: currentColor;
  stroke: none;
}

.sponsor-copy .sponsor-message {
  font-size: 12px;
  margin: 12px 0 0;
}

html[data-theme="dark"] .visited-card {
  background: #202226;
  border-color: #34373d;
}

html[data-theme="dark"] .visited-card h2,
html[data-theme="dark"] .visited-table td:first-child {
  color: #e0e0e0;
}

html[data-theme="dark"] .visited-table th {
  background: #25282d;
}

html[data-theme="dark"] .visited-table th,
html[data-theme="dark"] .visited-table td {
  border-color: #34373d;
  color: #a2adbc;
}

html[data-theme="dark"] .sponsor-card {
  background: #1c2c3d;
}

html[data-theme="dark"] .sponsor-copy h2,
html[data-theme="dark"] .sponsor-copy p {
  color: #e0e0e0;
}

@media(max-width:1100px) {
  .dashboard-details {
    grid-template-columns: 1fr;
  }

  .sponsor-card {
    min-height: 300px;
  }

  .sponsor-mascot {
    height: 250px;
    top: 20px;
  }
}

@media(max-width:700px) {
  .dashboard-details {
    padding: 0 12px 16px;
    gap: 12px;
  }

  .visited-table th,
  .visited-table td {
    padding-left: 14px;
    padding-right: 14px;
  }

  .sponsor-copy h2 {
    font-size: 20px;
  }
}

/* Hover menu utama saat sidebar terbuka. */
body:not(.sidebar-collapsed) .sidebar-nav > .nav-link:not(.active):hover,
body:not(.sidebar-collapsed) .nav-group > .nav-link:not(.active):hover {
  background: rgb(6 111 209 / 20%);
  color: inherit;
}

body:not(.sidebar-collapsed) .sidebar-nav > .nav-link:not(.active):hover .menu-icon,
body:not(.sidebar-collapsed) .nav-group > .nav-link:not(.active):hover .menu-icon {
  color: inherit;
}

@media(max-width:700px) {
  .sidebar-nav > .nav-link:not(.active):hover,
  .nav-group > .nav-link:not(.active):hover {
    background: rgb(6 111 209 / 20%);
    color: inherit;
  }

  .sidebar-nav > .nav-link:not(.active):hover .menu-icon,
  .nav-group > .nav-link:not(.active):hover .menu-icon {
    color: inherit;
  }
}

.profile-edit-link {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  border-radius: 5px;
}
.profile-edit-link:hover { background: rgb(6 111 209 / 15%); color: #066fd1; }
