body {
  min-width: 320px;
  font-size: 0.9rem;
}

a {
  text-decoration: none;
}

.crm-shell {
  min-height: 100vh;
}

.crm-topbar {
  position: sticky;
  top: 0;
  z-index: 1030;
  display: grid;
  grid-template-columns: var(--crm-rail-width) var(--crm-sidebar-width) minmax(0, 1fr);
  align-items: center;
  height: var(--crm-header-height);
  padding: 0;
  background: var(--crm-surface);
  border: 0;
}

.crm-topbar--no-submenu {
  grid-template-columns: var(--crm-rail-width) auto minmax(0, 1fr);
}

.topbar-menu {
  display: grid;
  place-items: center;
  grid-column: 1;
  grid-row: 1;
  width: var(--crm-rail-width);
  height: 100%;
  border: 0;
  color: var(--crm-text);
  background: var(--crm-page);
  font-size: 1.25rem;
}

.topbar-menu:hover {
  color: var(--crm-primary);
  background: var(--crm-surface-muted);
}

.topbar-brand {
  display: flex;
  grid-column: 2;
  grid-row: 1;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding-left: 20px;
  color: var(--crm-primary);
}

.topbar-actions {
  display: flex;
  grid-column: 3;
  grid-row: 1;
  align-items: center;
  gap: 12px;
  min-width: 0;
  height: 100%;
  padding: 0 24px;
}

.topbar-spacer {
  flex: 1;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  color: #fff;
  background: var(--crm-primary);
  font-size: 1.2rem;
}

.brand-name {
  font-size: 1.14rem;
  font-weight: 750;
  letter-spacing: -0.05em;
  white-space: nowrap;
}

.brand-name span {
  margin-left: 4px;
  color: #8584a0;
  font-weight: 450;
}

.breadcrumb-line {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--crm-text-muted);
  font-size: 0.7rem;
}

.breadcrumb-line a {
  color: var(--crm-text-muted);
}

.breadcrumb-line i {
  font-size: 0.9rem;
}

.breadcrumb-line span {
  color: var(--crm-text);
}

.page-heading {
  margin-bottom: 23px;
}

.page-heading .breadcrumb-line {
  gap: 9px;
  font-size: 0.9rem;
}

.page-heading .breadcrumb-line i {
  font-size: 1.15rem;
}

.page-title {
  margin: 7px 0 0;
  color: var(--crm-text);
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.035em;
}

.btn-icon {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 11px;
  color: #69758d;
  background: transparent;
  font-size: 1.15rem;
}

.btn-icon:hover {
  color: var(--crm-primary);
  background: var(--crm-surface-muted);
}

.notification-button {
  position: relative;
}

.notification-count {
  position: absolute;
  top: 1px;
  right: 0;
  display: grid;
  place-items: center;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 20px;
  color: #fff;
  background: var(--crm-accent);
  font-size: 0.58rem;
  font-weight: 700;
}

.notification-menu {
  width: 280px;
}

.notification-menu .dropdown-header {
  display: flex;
  justify-content: space-between;
  color: var(--crm-text);
  font-weight: 650;
}

.notification-menu .dropdown-header span {
  color: var(--crm-primary);
  font-size: 0.72rem;
}

.notification-menu .dropdown-item-text {
  color: var(--crm-text-muted);
  font-size: 0.78rem;
  white-space: normal;
}

.user-menu {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 0 0 8px;
  border: 0;
  color: var(--crm-text);
  background: transparent;
  text-align: left;
}

.avatar {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--crm-primary);
  background: #eeedff;
  font-size: 1.05rem;
}

.user-info strong, .user-info small {
  display: block;
}

.user-info strong {
  font-size: 0.76rem;
  font-weight: 650;
}

.user-info small {
  margin-top: 2px;
  color: var(--crm-text-muted);
  font-size: 0.66rem;
}

.user-chevron {
  color: var(--crm-text-muted);
}

.crm-workspace {
  display: grid;
  grid-template-columns: var(--crm-rail-width) var(--crm-sidebar-width) minmax(0, 1fr);
  min-height: calc(100vh - var(--crm-header-height));
  background: var(--crm-surface);
}

.crm-workspace--no-submenu {
  grid-template-columns: var(--crm-rail-width) minmax(0, 1fr);
}

.desktop-iconbar {
  position: sticky;
  top: var(--crm-header-height);
  align-self: start;
  height: calc(100vh - var(--crm-header-height));
  background: var(--crm-page);
  border: 0;
}

.crm-iconbar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  width: 100%;
  height: 100%;
  padding: 14px 8px;
}

.iconbar-item {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  color: #65718a;
  font-size: 1.24rem;
  transition: color var(--crm-transition), background var(--crm-transition), transform var(--crm-transition);
}

.iconbar-item:hover {
  color: var(--crm-primary);
  background: var(--crm-surface-muted);
}

.iconbar-item.active {
  color: #fff;
  background: var(--crm-primary);
  box-shadow: 0 5px 12px rgb(var(--crm-primary-rgb)/24%);
}

.iconbar-divider {
  width: 32px;
  margin: 4px 0;
  border-top: 1px solid var(--crm-border);
}

.crm-iconbar--mobile {
  align-items: stretch;
  gap: 5px;
  height: auto;
  padding: 12px;
}

.crm-iconbar--mobile .iconbar-item {
  display: flex;
  justify-content: flex-start;
  gap: 12px;
  width: 100%;
  padding: 0 13px;
  font-size: 0.88rem;
}

.crm-iconbar--mobile .iconbar-item i {
  width: 22px;
  font-size: 1.15rem;
  text-align: center;
}

.crm-iconbar--mobile .iconbar-divider {
  width: 100%;
  margin: 7px 0;
}

.desktop-sidebar {
  position: sticky;
  top: var(--crm-header-height);
  align-self: start;
  height: calc(100vh - var(--crm-header-height));
  overflow-y: auto;
  background: var(--crm-surface);
  border: 0;
}

.crm-sidebar {
  width: 100%;
  min-height: 100%;
  padding: 27px 14px 14px;
  color: var(--crm-text);
}

.crm-navigation {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar-label {
  margin: 0 9px 8px;
  color: var(--crm-text-muted);
  font-size: 0.64rem;
  font-weight: 750;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.crm-sidebar .nav-link {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  min-height: 40px;
  padding: 8px 10px;
  border: 0;
  border-radius: 10px;
  color: #647089;
  background: transparent;
  font-size: 0.79rem;
  font-weight: 520;
  text-align: left;
  transition: color var(--crm-transition), background var(--crm-transition);
}

.crm-sidebar .nav-link:hover {
  color: var(--crm-primary);
  background: var(--crm-surface-muted);
}

.crm-sidebar .nav-link.active {
  color: #fff;
  background: var(--crm-primary);
  box-shadow: 0 4px 10px rgb(var(--crm-primary-rgb)/20%);
}

.crm-sidebar .nav-icon {
  width: 19px;
  font-size: 1.05rem;
  text-align: center;
}

.crm-sidebar .nav-chevron {
  margin-left: auto;
  color: var(--crm-text-muted);
  font-size: 1rem;
  transition: transform var(--crm-transition);
}

.crm-sidebar .nav-parent[aria-expanded=true] .nav-chevron {
  transform: rotate(180deg);
}

.nav-submenu {
  position: relative;
  gap: 2px;
  margin: 4px 0 2px 18px;
  padding-left: 13px;
  border-left: 1px solid var(--crm-border);
}

.crm-sidebar .nav-submenu .nav-link {
  min-height: 34px;
  padding: 7px 9px;
  font-size: 0.74rem;
}

.sidebar-bottom {
  padding-top: 22px;
}

.sidebar-help {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 2px 16px;
  padding: 11px 10px;
  border: 1px solid var(--crm-border);
  border-radius: 12px;
}

.help-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 29px;
  height: 29px;
  border-radius: 9px;
  color: var(--crm-primary);
  background: rgb(var(--crm-primary-rgb)/10%);
}

.sidebar-help strong, .sidebar-help small {
  display: block;
}

.sidebar-help strong {
  font-size: 0.68rem;
  font-weight: 650;
}

.sidebar-help small {
  margin-top: 3px;
  color: var(--crm-text-muted);
  font-size: 0.59rem;
  line-height: 1.4;
}

.sidebar-help > a {
  margin-left: auto;
  color: var(--crm-primary);
}

.sidebar-version {
  display: flex;
  justify-content: space-between;
  padding: 11px 8px 0;
  border-top: 1px solid var(--crm-border);
  color: var(--crm-text-muted);
  font-size: 0.63rem;
}

.crm-main {
  display: flex;
  min-width: 0;
  min-height: calc(100vh - var(--crm-header-height) - 36px);
  flex-direction: column;
  margin: 18px 18px 18px 0;
  margin-left: 20px;
  overflow: hidden;
  border-radius: var(--crm-radius-lg);
  background: var(--crm-page);
}

.crm-main[aria-busy=true] {
  opacity: 0.68;
  pointer-events: none;
  transition: opacity var(--crm-transition);
}

.crm-navigation-loading {
  position: fixed;
  z-index: 1080;
  right: 24px;
  bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: min(440px, 100vw - 32px);
  padding: 13px 16px;
  border: 1px solid var(--crm-border);
  border-radius: var(--crm-radius);
  color: var(--crm-text);
  background: var(--crm-surface);
  box-shadow: var(--crm-shadow);
  font-size: 0.8rem;
}

.page-content {
  flex: 1;
  width: 100%;
  max-width: 1720px;
  margin: 0 auto;
  padding: 28px clamp(20px, 2.4vw, 42px) 26px;
}

.dashboard-welcome {
  position: relative;
  max-width: 780px;
  padding: clamp(24px, 4vw, 42px);
}

.dashboard-welcome-icon, .profile-avatar {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 22px;
  border-radius: 15px;
  color: var(--crm-primary);
  background: color-mix(in srgb, var(--crm-primary) 10%, var(--crm-surface));
  font-size: 1.4rem;
}

.dashboard-welcome .eyebrow, .profile-identity-card .eyebrow {
  color: var(--crm-primary);
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.12em;
}

.dashboard-welcome h2 {
  margin: 0 0 10px;
  color: var(--crm-text);
  font-size: clamp(1.55rem, 3vw, 2.1rem);
  font-weight: 720;
  letter-spacing: -0.045em;
}

.dashboard-welcome > p:not(.eyebrow) {
  margin: 0;
  color: var(--crm-text-muted);
}

.profile-settings-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  align-items: start;
  gap: 18px;
}

.profile-settings-grid .panel-card {
  padding: 24px;
}

.profile-identity-card h2 {
  margin: 0 0 5px;
  color: var(--crm-text);
  font-size: 1.35rem;
  font-weight: 700;
}

.profile-avatar {
  width: 58px;
  height: 58px;
  margin-bottom: 18px;
  border-radius: 50%;
}

.profile-details {
  display: grid;
  gap: 13px;
  margin-top: 24px;
}

.profile-details div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--crm-border);
}

.profile-details dt {
  color: var(--crm-text-muted);
  font-size: 0.76rem;
  font-weight: 500;
}

.profile-details dd {
  margin: 0;
  color: var(--crm-text);
  font-size: 0.76rem;
  font-weight: 600;
  text-align: right;
  overflow-wrap: anywhere;
}

.profile-preferences-card .panel-heading {
  margin-bottom: 20px;
}

.profile-preferences-card .panel-heading h3 {
  margin: 0 0 5px;
  color: var(--crm-text);
  font-size: 1rem;
  font-weight: 700;
}

.profile-preferences-card .panel-heading p {
  margin: 0;
  color: var(--crm-text-muted);
  font-size: 0.76rem;
}

.profile-sync-setting {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 17px;
  border: 1px solid var(--crm-border);
  border-radius: var(--crm-radius);
  background: var(--crm-surface-muted);
  cursor: pointer;
}

.profile-sync-setting strong, .profile-sync-setting small {
  display: block;
}

.profile-sync-setting strong {
  color: var(--crm-text);
  font-size: 0.85rem;
}

.profile-sync-setting small {
  max-width: 520px;
  margin-top: 5px;
  color: var(--crm-text-muted);
  font-size: 0.73rem;
  line-height: 1.55;
}

.profile-sync-setting .form-check-input {
  width: 2.5em;
  height: 1.35em;
  margin: 0;
  cursor: pointer;
}

.user-menu-name {
  max-width: 190px;
  overflow: hidden;
  color: var(--crm-text);
  font-size: 0.75rem;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-intro {
  position: relative;
  min-height: 190px;
  overflow: hidden;
  margin: 0 0 18px;
  padding: 26px 28px;
  border-radius: var(--crm-radius-lg);
  color: #fff;
  background: linear-gradient(115deg, #675cf8 0%, #6453ee 58%, #8278ff 100%);
  box-shadow: var(--crm-shadow);
}

.dashboard-intro::after {
  position: absolute;
  top: -105px;
  right: 12%;
  width: 300px;
  height: 300px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 50%;
  box-shadow: 0 0 0 26px rgba(255, 255, 255, 0.05), 0 0 0 56px rgba(255, 255, 255, 0.04);
  content: "";
  pointer-events: none;
}

.dashboard-intro > div {
  position: relative;
  z-index: 1;
}

.dashboard-intro .eyebrow {
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.65rem;
  font-weight: 750;
  letter-spacing: 0.12em;
}

.dashboard-intro h2 {
  margin: 0 0 7px;
  color: #fff;
  font-size: 1.5rem;
  font-weight: 680;
  letter-spacing: -0.04em;
}

.dashboard-intro > div > p:last-child {
  color: rgba(255, 255, 255, 0.74) !important;
  font-size: 0.82rem;
}

.dashboard-intro .btn {
  font-size: 0.77rem;
}

.dashboard-intro .btn-outline-secondary {
  --bs-btn-color: #fff;
  --bs-btn-border-color: rgb(255 255 255 / 42%);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: rgb(255 255 255 / 13%);
  --bs-btn-hover-border-color: #fff;
}

.dashboard-intro .btn-primary {
  --bs-btn-bg: #fff;
  --bs-btn-color: var(--crm-primary);
  --bs-btn-border-color: #fff;
  --bs-btn-hover-bg: #f1efff;
  --bs-btn-hover-color: var(--crm-primary);
  --bs-btn-hover-border-color: #f1efff;
}

.wave {
  color: #ffda80;
  font-size: 1rem;
}

.stats-grid {
  --bs-gutter-y: 1rem;
  margin-bottom: 3px;
}

.stat-card, .panel-card {
  min-width: 0;
  border: 1px solid var(--crm-border);
  border-radius: var(--crm-radius);
  background: var(--crm-surface);
  box-shadow: var(--crm-shadow-sm);
}

.stat-card {
  height: 100%;
  min-height: 132px;
  padding: 17px 18px 15px;
  transition: transform var(--crm-transition), box-shadow var(--crm-transition);
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--crm-shadow);
}

.stat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.stat-label {
  color: var(--crm-text-muted);
  font-size: 0.74rem;
}

.stat-icon {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border-radius: 11px;
  font-size: 1.05rem;
}

.icon-people {
  color: #6558f5;
  background: #efeeff;
}

.icon-briefcase {
  color: #1999bd;
  background: #e7f8fc;
}

.icon-check {
  color: #23966b;
  background: #e7f7f0;
}

.icon-chart {
  color: #d49023;
  background: #fff5e3;
}

.stat-value {
  margin: 8px 0 6px;
  color: var(--crm-text);
  font-size: 1.48rem;
  line-height: 1.2;
  font-weight: 720;
  letter-spacing: -0.045em;
}

.stat-change {
  color: var(--crm-success);
  font-size: 0.67rem;
  font-weight: 650;
}

.stat-period {
  margin-left: 4px;
  color: var(--crm-text-muted);
  font-weight: 400;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(270px, 0.9fr);
  gap: 17px;
  margin-top: 18px;
}

.panel-card {
  padding: 19px 20px 17px;
}

.teamleader-user-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
  padding: 18px;
}

.teamleader-user-card {
  color: inherit;
  transition: transform var(--crm-transition), box-shadow var(--crm-transition);
}

.teamleader-user-card:hover, .teamleader-user-card:focus-visible {
  color: inherit;
  transform: translateY(-2px);
  box-shadow: var(--crm-shadow);
}

.teamleader-user-card__identity {
  display: flex;
  min-width: 0;
  min-height: 58px;
  align-items: center;
  gap: 15px;
}

.teamleader-user-progress {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--crm-border);
}

.teamleader-user-progress .progress {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--crm-border);
}

.teamleader-user-progress .progress-bar {
  border-radius: inherit;
  background: linear-gradient(90deg, #20a77f, #41d7a9);
}

.teamleader-user-progress-count {
  min-width: 42px;
  color: var(--crm-text-muted);
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  text-align: right;
}

.maintenance-project-table {
  --bs-table-bg: transparent;
  --bs-table-border-color: var(--crm-border);
  min-width: 760px;
}

.maintenance-project-table th {
  padding: 13px 20px;
  border-bottom-width: 1px;
  color: var(--crm-text-muted);
  background: var(--crm-surface-muted);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.maintenance-project-table td {
  padding: 13px 20px;
  color: var(--crm-text);
  font-size: 0.77rem;
  vertical-align: middle;
}

.maintenance-project-table tbody tr {
  transition: background-color var(--crm-transition);
}

.maintenance-project-table tbody tr:hover {
  --bs-table-bg: color-mix(in srgb, var(--crm-primary) 4%, var(--crm-surface));
}

.maintenance-project-table th:first-child, .maintenance-project-table td:first-child {
  width: 28%;
}

.maintenance-project-table th:nth-child(2), .maintenance-project-table td:nth-child(2) {
  width: 19%;
}

.maintenance-project-table th:nth-child(3), .maintenance-project-table td:nth-child(3) {
  width: 14%;
  white-space: nowrap;
}

.maintenance-project-table th:nth-child(4), .maintenance-project-table td:nth-child(4) {
  width: 25%;
}

.maintenance-project-table th:nth-child(5), .maintenance-project-table td:nth-child(5) {
  width: 7%;
}

.maintenance-project-table th:last-child, .maintenance-project-table td:last-child {
  width: 7%;
}

.maintenance-project-group th {
  padding: 9px 18px;
  color: #fff;
  border: 0;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.maintenance-project-group th span {
  float: right;
  opacity: 0.85;
}

.maintenance-project-group--done th {
  background: #158766;
}

.maintenance-project-group--due th {
  background: #20b486;
}

.maintenance-project-group--next th {
  background: #f29a4a;
}

.maintenance-project-group--later th {
  background: var(--crm-primary);
}

.maintenance-project-group--undated th {
  background: var(--crm-text-muted);
}

.maintenance-project-note-cell {
  text-align: center;
}

.maintenance-project-complete-cell {
  text-align: center;
}

.maintenance-complete-button, .maintenance-complete-indicator {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 50%;
  color: #138363;
  background: transparent;
  font-size: 1.18rem;
}

.maintenance-complete-button {
  transition: color var(--crm-transition), background var(--crm-transition), transform var(--crm-transition);
}

.maintenance-complete-button:hover, .maintenance-complete-button:focus-visible {
  color: #0f6f53;
  background: rgba(32, 180, 134, 0.12);
  outline: none;
  transform: scale(1.08);
}

.maintenance-complete-button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.maintenance-complete-indicator {
  color: #138363;
}

.maintenance-hours {
  display: grid;
  min-width: 140px;
  gap: 6px;
}

.maintenance-hours .progress {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--crm-border);
}

.maintenance-hours .progress-bar {
  border-radius: inherit;
  background: linear-gradient(90deg, #20a77f, #41d7a9);
}

.maintenance-hours > span {
  color: var(--crm-text);
  font-size: 0.68rem;
  font-variant-numeric: tabular-nums;
}

.maintenance-note-button {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 9px;
  color: var(--crm-primary);
  background: transparent;
  font-size: 1.15rem;
  transition: color var(--crm-transition), background var(--crm-transition), border-color var(--crm-transition);
}

.maintenance-note-button:disabled {
  color: var(--crm-text-muted);
  opacity: 0.38;
  cursor: not-allowed;
}

.maintenance-note-button:hover, .maintenance-note-button:focus-visible {
  border-color: var(--crm-border);
  color: var(--crm-text);
  background: var(--crm-surface);
  outline: none;
}

.maintenance-note-button:hover i, .maintenance-note-button:focus-visible i {
  color: var(--crm-primary);
}

.maintenance-note-button:disabled:hover, .maintenance-note-button:disabled:focus-visible {
  border-color: transparent;
  color: var(--crm-text-muted);
  background: transparent;
}

[data-bs-theme=dark] .maintenance-project-table tbody tr:hover {
  --bs-table-bg: color-mix(in srgb, var(--crm-primary) 10%, var(--crm-surface));
}

.teamleader-user-photo {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  object-fit: cover;
}

.teamleader-user-initials {
  color: var(--crm-primary);
  background: rgb(var(--crm-primary-rgb)/11%);
  font-size: 1.05rem;
  font-weight: 700;
}

.teamleader-user-name {
  overflow: hidden;
  margin: 0;
  color: var(--crm-text);
  font-size: 0.88rem;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.teamleader-user-email {
  display: block;
  overflow: hidden;
  margin-top: 5px;
  color: var(--crm-text-muted);
  font-size: 0.72rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 15px;
}

.panel-heading h3 {
  margin: 0;
  color: var(--crm-text);
  font-size: 0.9rem;
  font-weight: 680;
  letter-spacing: -0.015em;
}

.panel-heading p {
  margin: 5px 0 0;
  color: var(--crm-text-muted);
  font-size: 0.7rem;
}

.panel-heading .btn {
  color: #727a8f;
  font-size: 0.68rem;
}

.crm-table {
  min-width: 670px;
  margin: 0;
  color: var(--crm-text);
  font-size: 0.7rem;
}

.crm-table thead th {
  padding: 9px 10px;
  border-bottom-color: var(--crm-border);
  color: var(--crm-text-muted);
  font-size: 0.63rem;
  font-weight: 620;
  white-space: nowrap;
}

.crm-table tbody td {
  padding: 12px 10px;
  border-bottom-color: var(--crm-border);
  color: #727f96;
  white-space: nowrap;
}

.crm-table tbody tr:last-child td {
  border-bottom: 0;
}

.crm-table tbody td:first-child {
  position: relative;
  padding-left: 25px;
  color: var(--crm-text);
}

.crm-table tbody td:first-child strong, .crm-table tbody td:first-child small {
  display: block;
}

.crm-table tbody td:first-child strong {
  font-size: 0.7rem;
  font-weight: 620;
}

.crm-table tbody td:first-child small {
  margin-top: 4px;
  color: var(--crm-text-muted);
  font-size: 0.63rem;
}

.activity-dot {
  position: absolute;
  top: 20px;
  left: 7px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.dot-blue {
  background: #6870e8;
}

.dot-green {
  background: #36b68a;
}

.dot-violet {
  background: #a47be8;
}

.dot-amber {
  background: #e8aa4d;
}

.table-avatar {
  display: inline-grid;
  place-items: center;
  width: 23px;
  height: 23px;
  margin-right: 5px;
  border-radius: 50%;
  font-size: 0.54rem;
  font-weight: 700;
  vertical-align: middle;
}

.avatar-indigo {
  color: #5c55d9;
  background: #e9e8ff;
}

.avatar-peach {
  color: #c66d46;
  background: #ffede5;
}

.avatar-mint {
  color: #31916a;
  background: #e4f7ed;
}

.avatar-blue {
  color: #397bb5;
  background: #e5f2ff;
}

.status-badge {
  padding: 5px 8px;
  border-radius: 20px;
  font-size: 0.61rem;
  font-weight: 600;
}

.status-progress {
  color: #5b54c8;
  background: #f0efff;
}

.status-done {
  color: #21835e;
  background: #eaf7f0;
}

.status-planned {
  color: #a7731c;
  background: #fff5e3;
}

.pipeline-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 16px 0;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--crm-border);
}

.pipeline-total strong {
  color: var(--crm-text);
  font-size: 1.48rem;
  letter-spacing: -0.04em;
}

.pipeline-total span {
  color: var(--crm-text-muted);
  font-size: 0.66rem;
}

.pipeline-row {
  margin: 14px 0;
  color: #737f95;
  font-size: 0.68rem;
}

.pipeline-row strong {
  color: var(--crm-text);
  font-size: 0.67rem;
  font-weight: 650;
}

.pipeline-row .progress {
  height: 5px;
  margin-top: 8px;
  background: var(--crm-surface-muted);
}

.pipeline-row .progress-bar {
  border-radius: 8px;
}

.pipeline-panel > .btn {
  font-size: 0.7rem;
  padding: 0.55rem;
}

.crm-footer {
  display: flex;
  justify-content: space-between;
  padding: 13px clamp(20px, 2.4vw, 42px) 17px;
  color: var(--crm-text-muted);
  font-size: 0.64rem;
}

.mobile-sidebar {
  width: min(300px, 88vw) !important;
  background: var(--crm-surface);
}

.mobile-sidebar .offcanvas-header {
  border-bottom: 1px solid var(--crm-border);
}

.mobile-sidebar .offcanvas-title {
  color: var(--crm-text);
  font-size: 0.9rem;
  font-weight: 650;
}

.mobile-sidebar .crm-sidebar {
  min-height: 100%;
}

[data-bs-theme=dark] .desktop-sidebar, [data-bs-theme=dark] .crm-topbar {
  background: var(--crm-surface);
}

[data-bs-theme=dark] .desktop-iconbar {
  background: var(--crm-page);
}

[data-bs-theme=dark] .avatar {
  color: #c7c2ff;
  background: #34304e;
}

[data-bs-theme=dark] .stat-card, [data-bs-theme=dark] .panel-card {
  color: var(--crm-text);
}

[data-bs-theme=dark] .crm-table tbody td {
  color: #b9c0d0;
}

[data-bs-theme=dark] .crm-table tbody td:first-child, [data-bs-theme=dark] .crm-table tbody td:first-child strong {
  color: var(--crm-text);
}

[data-bs-theme=dark] .status-progress {
  color: #c1bcff;
  background: #302c52;
}

[data-bs-theme=dark] .status-done {
  color: #8fe0bb;
  background: #183a31;
}

[data-bs-theme=dark] .status-planned {
  color: #f4d28b;
  background: #443924;
}

[data-sidebar-collapsed=true] .crm-workspace {
  grid-template-columns: var(--crm-rail-width) 0 minmax(0, 1fr);
}

[data-sidebar-collapsed=true] .desktop-sidebar {
  overflow: hidden;
  border: 0;
}

[data-sidebar-collapsed=true] .crm-workspace--no-submenu {
  grid-template-columns: var(--crm-rail-width) minmax(0, 1fr);
}

@media (max-width: 1199.98px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 991.98px) {
  .crm-topbar {
    grid-template-columns: 48px minmax(135px, auto) minmax(0, 1fr);
  }
  .topbar-menu {
    width: 48px;
  }
  .topbar-brand {
    padding-left: 13px;
  }
  .topbar-actions {
    gap: 4px;
    padding: 0 12px;
  }
  .topbar-search, .app-launcher {
    display: none;
  }
  .crm-workspace {
    display: block;
  }
  .crm-main {
    min-height: calc(100vh - var(--crm-header-height) - 24px);
    margin: 12px;
    border-radius: var(--crm-radius);
  }
}
@media (max-width: 991.98px) {
  .profile-settings-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 767.98px) {
  .crm-topbar {
    height: 60px;
    grid-template-columns: 44px minmax(115px, auto) minmax(0, 1fr);
  }
  .topbar-menu {
    width: 44px;
  }
  .topbar-brand {
    gap: 7px;
    padding-left: 9px;
  }
  .topbar-brand .brand-mark {
    width: 31px;
    height: 31px;
    font-size: 1rem;
  }
  .topbar-brand .brand-name {
    font-size: 1rem;
  }
  .topbar-actions {
    gap: 1px;
    padding: 0 8px;
  }
  .topbar-actions .btn-icon {
    width: 33px;
    height: 36px;
  }
  .page-content {
    padding: 22px 14px 20px;
  }
  .page-heading {
    margin-bottom: 18px;
  }
  .page-title {
    font-size: 1.55rem;
  }
  .dashboard-intro {
    min-height: 176px;
    padding: 20px;
  }
  .dashboard-intro h2 {
    font-size: 1.3rem;
  }
  .dashboard-intro > div:last-child {
    width: 100%;
  }
  .dashboard-intro .btn {
    flex: 1;
  }
  .stat-card {
    min-height: 122px;
    padding: 14px;
  }
  .panel-card {
    padding: 16px 13px;
  }
  .profile-settings-grid .panel-card {
    padding: 18px;
  }
  .profile-sync-setting {
    align-items: flex-start;
    padding: 14px;
  }
  .profile-sync-setting .form-check {
    flex: 0 0 auto;
  }
  .crm-footer {
    padding: 12px 14px 15px;
    font-size: 0.61rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
.crm-login-page {
  min-width: 320px;
  min-height: 100vh;
  color: var(--crm-text);
  background: var(--crm-surface);
}

.crm-login-layout {
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(340px, 0.95fr) minmax(420px, 1.05fr);
}

.crm-login-showcase {
  position: relative;
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  overflow: hidden;
  padding: clamp(28px, 5vw, 68px);
  color: #fff;
  background: radial-gradient(circle at 78% 73%, rgba(125, 111, 255, 0.58), transparent 28%), linear-gradient(145deg, #29245f 0%, #5144d8 53%, #7064fa 100%);
}

.crm-login-showcase::before {
  position: absolute;
  right: -180px;
  bottom: 8%;
  width: 540px;
  height: 540px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  content: "";
}

.crm-login-showcase::after {
  position: absolute;
  right: -95px;
  bottom: 17%;
  width: 370px;
  height: 370px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 50%;
  content: "";
}

.crm-login-brand, .crm-login-mobile-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.crm-login-brand .brand-mark, .crm-login-mobile-brand .brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  font-size: 1.35rem;
}

.crm-login-brand .brand-name, .crm-login-mobile-brand .brand-name {
  font-size: 1.35rem;
}

.crm-login-brand .brand-name span, .crm-login-mobile-brand .brand-name span {
  color: rgba(255, 255, 255, 0.65);
}

.crm-login-message {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  margin: auto 0;
  padding: 70px 0 92px;
}

.crm-login-eyebrow, .crm-login-welcome {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #c6c2ff;
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.14em;
}

.crm-login-message h1 {
  max-width: 500px;
  margin: 20px 0 16px;
  color: #fff;
  font-size: clamp(2.6rem, 4vw, 4rem);
  font-weight: 720;
  letter-spacing: -0.06em;
  line-height: 1.08;
}

.crm-login-message h1 span {
  color: #bcb6ff;
}

.crm-login-message > p {
  max-width: 410px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.02rem;
  line-height: 1.75;
}

.crm-login-benefit {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
}

.crm-login-benefit > span {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 1.1rem;
}

.crm-login-benefit strong, .crm-login-benefit small {
  display: block;
}

.crm-login-benefit strong {
  font-size: 0.88rem;
}

.crm-login-benefit small {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.75rem;
}

.crm-login-showcase-foot {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  min-height: 32px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.75rem;
}

.crm-login-showcase-foot i {
  margin: 0 7px;
  font-size: 0.35rem;
  vertical-align: middle;
}

.crm-login-orbit {
  position: absolute;
  right: 8%;
  bottom: 18%;
  width: 150px;
  height: 150px;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 50%;
}

.crm-login-orbit--two {
  right: 15%;
  bottom: 11%;
  width: 85px;
  height: 85px;
  background: rgba(255, 255, 255, 0.07);
}

.crm-login-main {
  display: grid;
  min-width: 0;
  grid-template-rows: minmax(0, 1fr) auto;
  align-items: center;
  justify-items: center;
  padding: 48px clamp(24px, 7vw, 100px) 24px;
  background: var(--crm-surface);
}

.crm-login-card {
  grid-row: 1;
  align-self: center;
  width: min(430px, 100%);
}

.crm-login-mobile-brand {
  display: none;
  margin-bottom: 42px;
  color: var(--crm-primary);
}

.crm-login-mobile-brand .brand-name span {
  color: var(--crm-text-muted);
}

.crm-login-welcome {
  color: var(--crm-primary);
}

.crm-login-card h2 {
  margin: 12px 0 8px;
  color: var(--crm-text);
  font-size: 2rem;
  font-weight: 720;
  letter-spacing: -0.045em;
}

.crm-login-description {
  margin-bottom: 30px;
  color: var(--crm-text-muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

.crm-login-button {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 11px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 650;
  box-shadow: 0 7px 16px rgb(var(--crm-primary-rgb)/18%);
}

.crm-login-button > i:first-child {
  font-size: 1.2rem;
}

.crm-login-button-arrow {
  margin-left: auto;
  font-size: 1rem;
}

.crm-login-security {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 18px;
  color: var(--crm-text-muted);
  font-size: 0.73rem;
  line-height: 1.55;
}

.crm-login-security i {
  flex: 0 0 auto;
  color: var(--crm-success);
  font-size: 1rem;
}

.crm-login-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 34px 0 18px;
  color: var(--crm-text-muted);
}

.crm-login-divider span {
  height: 1px;
  flex: 1;
  background: var(--crm-border);
}

.crm-login-divider small {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.crm-login-no-password {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 0;
  color: var(--crm-text-muted);
  font-size: 0.78rem;
}

.crm-login-no-password i {
  color: var(--crm-primary);
  font-size: 1rem;
}

.crm-login-footer {
  display: flex;
  grid-row: 2;
  width: min(430px, 100%);
  justify-content: space-between;
  gap: 12px;
  padding-top: 35px;
  color: var(--crm-text-muted);
  font-size: 0.68rem;
}

@media (max-width: 900px) {
  .crm-login-layout {
    grid-template-columns: minmax(300px, 0.85fr) minmax(360px, 1.15fr);
  }
  .crm-login-showcase {
    padding: 34px;
  }
  .crm-login-message h1 {
    font-size: 2.65rem;
  }
  .crm-login-main {
    padding-inline: 36px;
  }
}
@media (max-width: 700px) {
  .crm-login-layout {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
  }
  .crm-login-showcase {
    min-height: 260px;
    padding: 26px 24px;
  }
  .crm-login-showcase::before {
    right: -160px;
    bottom: -285px;
    width: 430px;
    height: 430px;
  }
  .crm-login-showcase::after {
    right: -90px;
    bottom: -220px;
    width: 290px;
    height: 290px;
  }
  .crm-login-message {
    padding: 36px 0 20px;
  }
  .crm-login-message h1 {
    max-width: 360px;
    margin: 13px 0 8px;
    font-size: 2rem;
  }
  .crm-login-message > p {
    margin-bottom: 0;
    font-size: 0.83rem;
  }
  .crm-login-benefit, .crm-login-showcase-foot {
    display: none;
  }
  .crm-login-main {
    display: grid;
    flex: 1;
    grid-template-rows: minmax(0, 1fr) auto;
    align-items: center;
    padding: 36px 24px 20px;
  }
  .crm-login-mobile-brand {
    display: inline-flex;
    margin-bottom: 30px;
  }
  .crm-login-card h2 {
    font-size: 1.75rem;
  }
  .crm-login-footer {
    padding-top: 55px;
  }
}

.site-monitoring-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.site-monitoring-toolbar > p { max-width: 680px; font-size: .8rem; line-height: 1.6; }
.site-monitoring-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 285px), 1fr)); gap: 16px; }
.site-monitor-card { display: flex; min-width: 0; min-height: 120px; align-items: center; gap: 14px; padding: 19px; color: var(--crm-text); text-decoration: none; transition: transform var(--crm-transition), border-color var(--crm-transition), box-shadow var(--crm-transition); }
.site-monitor-card:hover, .site-monitor-card:focus-visible { border-color: rgb(var(--crm-primary-rgb) / 30%); color: var(--crm-text); box-shadow: var(--crm-shadow); outline: none; transform: translateY(-2px); }
.site-monitor-card-icon, .site-monitor-detail-icon, .site-monitoring-empty-icon { display: grid; flex: 0 0 auto; place-items: center; border-radius: 14px; color: var(--crm-primary); background: rgb(var(--crm-primary-rgb) / 10%); }
.site-monitor-card-icon { width: 46px; height: 46px; font-size: 1.25rem; }
.site-monitor-card-content { display: grid; min-width: 0; flex: 1; gap: 4px; }
.site-monitor-card-content > strong { overflow: hidden; font-size: .84rem; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.site-monitor-card-content > span:nth-child(2) { overflow: hidden; color: var(--crm-text-muted); font-size: .72rem; text-overflow: ellipsis; white-space: nowrap; }
.site-monitor-card-meta { display: flex; align-items: center; gap: 8px; margin-top: 5px; color: var(--crm-text-muted); font-size: .65rem; }
.site-monitor-card-meta .badge { font-size: .61rem; font-weight: 600; }
.site-monitor-card-arrow { flex: 0 0 auto; color: var(--crm-text-muted); font-size: 1.15rem; }
.site-monitoring-empty { display: flex; min-height: 310px; flex-direction: column; align-items: center; justify-content: center; padding: 36px; text-align: center; }
.site-monitoring-empty-icon { width: 58px; height: 58px; margin-bottom: 16px; border-radius: 18px; font-size: 1.6rem; }
.site-monitoring-empty h2 { margin: 0 0 7px; font-size: 1rem; font-weight: 650; }
.site-monitoring-empty p { max-width: 490px; margin-bottom: 18px; color: var(--crm-text-muted); font-size: .78rem; line-height: 1.6; }
.site-monitor-detail-card { display: flex; align-items: center; gap: 18px; padding: 25px; }
.site-monitor-detail-icon { width: 60px; height: 60px; border-radius: 18px; font-size: 1.65rem; }
.site-monitor-detail-copy { min-width: 0; flex: 1; }
.site-monitor-detail-copy h2 { margin: 0 0 5px; font-size: 1.2rem; font-weight: 680; }
.site-monitor-detail-copy > a { color: var(--crm-primary); font-size: .8rem; }
.site-monitor-detail-status { align-self: flex-start; }
.site-monitor-detail-placeholder { display: flex; align-items: flex-start; gap: 13px; margin-top: 16px; padding: 20px; }
.site-monitor-detail-placeholder > span { color: var(--crm-primary); font-size: 1.3rem; }
.site-monitor-detail-placeholder h3 { margin: 0 0 5px; font-size: .86rem; font-weight: 650; }
.site-monitor-detail-placeholder p { color: var(--crm-text-muted); font-size: .75rem; line-height: 1.6; }

@media (max-width: 575.98px) {
  .site-monitoring-toolbar { align-items: flex-start; flex-direction: column; }
  .site-monitoring-toolbar .btn { width: 100%; }
  .site-monitor-detail-card { flex-wrap: wrap; padding: 18px; }
  .site-monitor-detail-status { margin-left: auto; }
  .site-monitoring-empty { padding: 28px 18px; }
}
