html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

.login-page {
  min-height: 100vh;
  margin: 0;
  color: #0f172a;
  background: #f8fafc;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(420px, 0.92fr);
  background: #f8fafc;
}

.login-shell-simple {
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-visual {
  position: relative;
  min-height: 100vh;
  background-image: url("https://images.unsplash.com/photo-1554224155-6726b3ff858f?auto=format&fit=crop&w=1600&q=80");
  background-position: center;
  background-size: cover;
  overflow: hidden;
}

.login-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.24);
}

.login-panel {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px;
}

.login-card {
  width: min(100%, 560px);
  padding: 34px 30px 30px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.14);
}

.login-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.login-logo {
  color: #009640;
  font-size: 40px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0;
}

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #111827;
}

.language-switch select {
  border: 0;
  background: transparent;
  color: #111827;
  font-size: 14px;
  outline: 0;
  cursor: pointer;
}

.language-flag {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 16px;
  border: 1px solid #d1d5db;
  background: repeating-linear-gradient(
    to bottom,
    #bf0a30 0,
    #bf0a30 1.25px,
    #ffffff 1.25px,
    #ffffff 2.5px
  );
  overflow: hidden;
}

.language-flag::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 10px;
  height: 8.8px;
  background: #002868;
}

.login-heading {
  margin-bottom: 18px;
}

.login-heading h1 {
  margin: 0 0 6px;
  color: #111827;
  font-size: 28px;
  font-weight: 750;
  letter-spacing: 0;
}

.login-heading p {
  margin: 0;
  color: #111827;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.login-field label {
  display: block;
  margin-bottom: 6px;
  color: #111827;
  font-size: 15px;
}

.login-field input {
  width: 100%;
  min-height: 38px;
  border: 0;
  border-radius: 7px;
  background: #e8f0fe;
  color: #111827;
  padding: 8px 14px;
  outline: 0;
}

.login-field input:focus {
  box-shadow: 0 0 0 2px rgba(0, 150, 64, 0.22);
}

.password-input {
  position: relative;
}

.password-input input {
  padding-right: 44px;
}

.password-input button {
  position: absolute;
  top: 50%;
  right: 12px;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  transform: translateY(-50%);
  color: #94a3b8;
  cursor: pointer;
}

.password-input svg {
  display: block;
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.password-input button.is-visible {
  color: #009640;
}

.login-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  min-height: 26px;
  margin-top: -2px;
}

.login-row a,
.login-footer a {
  color: #009640;
  text-decoration: none;
}

.remember-me {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #475569;
  font-size: 14px;
}

.login-submit {
  min-height: 46px;
  border: 0;
  border-radius: 7px;
  color: #ffffff;
  background: #009640;
  font-weight: 650;
}

.login-submit:hover {
  background: #00863a;
}

.sso-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  margin: 28px 0 18px;
  color: #111827;
}

.sso-divider span {
  height: 1px;
  background: #e5e7eb;
}

.sso-divider p {
  margin: 0;
  white-space: nowrap;
}

.azure-login,
.more-sso-options button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 40px;
  border: 1px solid #d1d5db;
  border-radius: 7px;
  background: #ffffff;
  color: #374151;
  text-decoration: none;
}

.azure-login:hover,
.more-sso-options button:hover {
  background: #f8fafc;
  color: #111827;
}

.azure-mark {
  display: grid;
  grid-template-columns: repeat(2, 8px);
  grid-template-rows: repeat(2, 8px);
  gap: 2px;
  margin-right: 12px;
}

.azure-mark span:nth-child(1) {
  background: #f25022;
}

.azure-mark span:nth-child(2) {
  background: #7fba00;
}

.azure-mark span:nth-child(3) {
  background: #00a4ef;
}

.azure-mark span:nth-child(4) {
  background: #ffb900;
}

.more-sso-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 14px;
  border: 0;
  background: transparent;
  color: #111827;
}

.more-sso-options {
  margin-top: 12px;
}

.login-alert,
.login-validation {
  margin-bottom: 12px;
  color: #b42318;
  font-size: 14px;
}

.field-validation {
  display: block;
  min-height: 18px;
  margin-top: 4px;
  color: #b42318;
  font-size: 12px;
}

.login-footer {
  width: min(100%, 560px);
  margin-top: 18px;
  color: #aab4c3;
  text-align: center;
  font-size: 13px;
}

@media (max-width: 900px) {
  .login-shell {
    display: flex;
    min-height: 100vh;
  }

  .login-visual {
    position: fixed;
    inset: 0;
    min-height: 100vh;
  }

  .login-visual::after {
    background: rgba(255, 255, 255, 0.5);
  }

  .login-panel {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 20px;
  }

  .login-card {
    padding: 26px 20px;
  }

  .login-logo {
    font-size: 34px;
  }

  .login-card-header {
    align-items: flex-start;
  }
}

.home-shell-page {
  min-height: 100vh;
  margin: 0;
  overflow: hidden;
  color: #111827;
  background: #eef0f2;
  font-family: Inter, Arial, sans-serif;
}

.home-shell-page .material-icons-round {
  font-family: "Material Icons Round", "Material Icons", sans-serif;
  font-weight: normal;
  font-style: normal;
  font-size: 20px;
  line-height: 1;
  letter-spacing: 0;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: "liga";
  -webkit-font-smoothing: antialiased;
}

.home-shell {
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: #ffffff;
}

.home-topbar {
  height: 58px;
  display: grid;
  grid-template-columns: 280px minmax(240px, 1fr) auto;
  align-items: center;
  border-bottom: 1px solid #e5e7eb;
  background: #ffffff;
  z-index: 20;
}

.home-brand-area {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 18px 0 38px;
  border-right: 1px solid #e5e7eb;
}

.home-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  color: var(--home-primary);
  text-decoration: none;
}

.home-brand-logo {
  display: block;
  object-fit: contain;
  object-position: center;
}

.home-brand-logo-expanded {
  width: min(190px, 100%);
  height: 44px;
}

.home-brand-logo-collapsed {
  display: none;
  width: 36px;
  height: 36px;
}

.home-brand-name {
  font-size: 38px;
  line-height: 0.9;
  font-weight: 800;
  letter-spacing: 0;
}

.home-brand-tagline {
  margin-top: 3px;
  font-size: 10px;
  line-height: 1;
  font-weight: 800;
}

.home-topbar-center {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
  padding-left: 22px;
}

.home-company-button {
  width: min(300px, 100%);
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid var(--home-primary);
  border-radius: 7px;
  background: #ffffff;
  color: var(--home-primary);
  font-size: 15px;
  font-weight: 800;
}

.home-company-button span:first-child {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.home-topbar-actions {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 18px;
}

.home-icon-button,
.home-profile-button,
.home-sidebar-collapse {
  border: 0;
  background: transparent;
  color: #5f6b7a;
  cursor: pointer;
}

.home-icon-button {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-left: 1px solid #e5e7eb;
}

.home-icon-button:first-child,
.home-mobile-menu {
  border-left: 0;
}

.home-icon-button:hover,
.home-profile-button:hover,
.home-sidebar-collapse:hover {
  color: var(--home-primary);
}

.home-mobile-menu {
  display: none;
}

.home-profile {
  position: relative;
}

.home-profile-button {
  position: relative;
  width: 38px;
  height: 38px;
  padding: 0;
}

.home-profile-button img {
  width: 34px;
  height: 34px;
  border: 2px solid var(--home-primary);
  border-radius: 50%;
  object-fit: cover;
}

.home-profile-status {
  position: absolute;
  right: 3px;
  bottom: 3px;
  width: 12px;
  height: 12px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  background: #22c55e;
}

.home-company-menu,
.home-profile-menu,
.home-settings-panel {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  width: 292px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.16);
  z-index: 40;
}

.home-company-menu {
  left: 30px;
  right: auto;
}

.home-company-option,
.home-profile-menu button,
.home-settings-panel button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  background: transparent;
  color: #374151;
  text-align: left;
  padding: 12px 14px;
}

.home-company-option:hover,
.home-company-option.is-active,
.home-profile-menu button:hover,
.home-settings-panel button:hover {
  background: #e8f7ef;
  color: var(--home-primary);
}

.home-company-option span:last-child,
.home-profile-summary {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.home-company-option small,
.home-profile-summary span {
  color: #6b7280;
  font-size: 12px;
}

.home-dropdown-empty,
.home-profile-summary {
  padding: 14px;
}

.home-shell-skeleton {
  display: block;
  min-height: 20px;
  border-radius: 8px;
  background: linear-gradient(90deg, #eef2f7, #f8fafc, #eef2f7);
  background-size: 200% 100%;
  animation: home-skeleton 1.1s ease-in-out infinite;
}

.home-company-skeleton {
  width: 300px;
  min-height: 38px;
}

.home-action-skeleton,
.home-avatar-skeleton {
  width: 34px;
  height: 34px;
  border-radius: 50%;
}

.home-sidebar-loading {
  display: grid;
  gap: 12px;
  padding: 16px 10px;
}

.home-sidebar-loading .home-shell-skeleton {
  min-height: 34px;
}

@keyframes home-skeleton {
  from {
    background-position: 100% 0;
  }

  to {
    background-position: -100% 0;
  }
}

@keyframes home-spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.home-settings-panel {
  top: 68px;
  right: 78px;
  padding: 14px;
}

.home-settings-panel h2 {
  margin: 0 0 8px;
  font-size: 16px;
}

.home-main {
  min-height: 0;
  flex: 1;
  display: flex;
  position: relative;
}

.home-sidebar {
  position: relative;
  width: 280px;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  border-right: 1px solid #e5e7eb;
  background: #ffffff;
  transition: width 160ms ease, transform 180ms ease;
  z-index: 18;
}

.home-sidebar-collapse {
  align-self: flex-end;
  width: 34px;
  height: 26px;
  margin: 4px 16px 0 0;
}

.home-nav {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 4px 10px 12px;
}

.home-menu-section {
  margin-bottom: 4px;
}

.home-menu-title,
.home-menu-link {
  width: 100%;
  min-height: 30px;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 6px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #5b6879;
  text-align: left;
  font-size: 13px;
  font-weight: 800;
}

.home-menu-title {
  padding: 0 7px;
  text-transform: uppercase;
}

.home-menu-title span:nth-child(2),
.home-menu-link span:nth-child(2) {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.home-menu-title .material-icons-round:first-child,
.home-menu-link .material-icons-round:first-child {
  color: var(--home-primary);
}

.home-menu-title:hover,
.home-menu-link:hover {
  background: #edf7f1;
  color: var(--home-primary);
}

.home-menu-title.is-active {
  background: #d8f0e2;
  color: var(--home-primary);
}

.home-menu-section.is-open .home-menu-caret {
  transform: rotate(180deg);
}

.home-menu-items {
  display: none;
  padding: 3px 0 3px 28px;
}

.home-menu-section.is-open .home-menu-items {
  display: block;
}

.home-menu-link {
  grid-template-columns: 24px minmax(0, 1fr);
  margin: 1px 0;
  padding: 0 10px;
  text-transform: none;
  color: #4b5563;
}

.home-menu-link.is-active {
  background: #d8f0e2;
  color: var(--home-primary);
}

.home-sidebar-footer {
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-top: 1px solid #e5e7eb;
  color: #64748b;
  font-size: 11px;
}

.home-sidebar-footer strong {
  color: var(--home-primary);
  font-size: 17px;
  letter-spacing: 0;
}

.home-workspace {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  position: relative;
}

.home-frame-surface {
  position: relative;
  flex: 1;
  min-height: 0;
  margin: 8px 8px 4px;
  border: 1px solid #e5e7eb;
  background: #ededed;
}

.home-frame-surface iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #ededed;
}

.home-frame-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--home-primary);
  background: rgba(255, 255, 255, 0.55);
  font-weight: 700;
  pointer-events: none;
}

.home-frame-loading[hidden] {
  display: none !important;
}

.home-frame-loading .material-icons-round,
.home-status-left.is-loading .material-icons-round {
  animation: home-spin 1s linear infinite;
}

.home-module-popup {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 30px;
  left: 0;
  z-index: 17;
  display: flex;
  flex-direction: column;
  background: #f3f4f6;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.14);
}

.home-module-popup[hidden] {
  display: none !important;
}

.home-module-popup-header {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 22px;
  border-bottom: 1px solid #e5e7eb;
  background: #ffffff;
}

.home-module-popup-title {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.home-module-popup-title h1 {
  margin: 0;
  color: var(--home-primary);
  font-size: 22px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.home-module-popup-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #e7f6ed;
  color: var(--home-primary);
  font-size: 28px;
}

.home-shell-page .home-module-popup-icon.material-icons-round,
.home-shell-page .home-module-card-icon.material-icons-round {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  line-height: 1;
  text-align: center;
}

.home-module-popup-header button {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #64748b;
  cursor: pointer;
}

.home-module-popup-header button:hover {
  background: #fee2e2;
  color: #dc2626;
}

.home-module-popup-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 14px 22px 34px;
}

.home-module-section {
  overflow: hidden;
  margin-bottom: 14px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
}

.home-module-section header {
  padding: 12px 22px;
  border-bottom: 1px solid #e5e7eb;
  color: var(--home-primary);
  font-size: 18px;
  font-weight: 800;
}

.home-module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px 18px;
  padding: 18px 22px;
}

.home-module-card {
  position: relative;
  min-height: 44px;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #111827;
  padding: 6px 8px;
  text-decoration: none;
}

.home-module-card:hover {
  border-color: #e5e7eb;
  background: #f8fafc;
  color: var(--home-primary);
}

.home-module-card-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #f1f3f6;
  color: #5f6b7a;
  font-size: 22px;
}

.home-module-card:hover .home-module-card-icon {
  background: #e7f6ed;
  color: var(--home-primary);
}

.home-module-card-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.home-module-card-title {
  min-width: 0;
  overflow: hidden;
  color: inherit;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.home-module-card-description {
  min-width: 0;
  overflow: hidden;
  color: #64748b;
  font-size: 11px;
  line-height: 1.25;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.home-module-favorite {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #c0c7d2;
  cursor: pointer;
}

.home-module-favorite:hover {
  background: #ffffff;
  color: #f59e0b;
}

.home-module-popup-empty {
  border: 1px dashed #d1d5db;
  border-radius: 8px;
  background: #ffffff;
  color: #64748b;
  padding: 28px;
}

.home-statusbar {
  height: 30px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  border-top: 1px solid #e5e7eb;
  background: #ffffff;
  color: #94a3b8;
  font-size: 12px;
}

.home-status-left,
.home-status-center,
.home-status-right {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  padding: 0 14px;
}

.home-status-center {
  justify-content: center;
  color: #16b957;
}

.home-status-right {
  justify-content: flex-end;
  color: #5b6879;
}

.home-status-left .material-icons-round {
  color: #aab2bf;
}

.home-status-left.is-loading {
  color: var(--home-primary);
}

.home-status-left.is-loading .material-icons-round {
  color: var(--home-primary);
}

.home-status-separator {
  width: 1px;
  height: 14px;
  background: #d1d5db;
}

.home-search-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-top: 12vh;
  background: rgba(15, 23, 42, 0.36);
  z-index: 60;
}

.home-search-overlay[hidden],
.home-company-menu[hidden],
.home-profile-menu[hidden],
.home-settings-panel[hidden],
.home-backdrop[hidden] {
  display: none !important;
}

.home-search-box {
  width: min(640px, calc(100vw - 32px));
  min-height: 58px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: center;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.28);
}

.home-search-box input,
.home-search-box button {
  border: 0;
  background: transparent;
  outline: 0;
}

.home-search-box input {
  width: 100%;
  font-size: 18px;
}

.home-search-results {
  width: min(640px, calc(100vw - 32px));
  max-height: 46vh;
  overflow-y: auto;
  margin-top: 10px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.18);
}

.home-search-result,
.home-search-empty {
  width: 100%;
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 0;
  border-bottom: 1px solid #f1f5f9;
  background: transparent;
  color: #374151;
  text-align: left;
  padding: 0 16px;
}

.home-search-result:hover {
  background: #edf7f1;
  color: var(--home-primary);
}

.home-search-empty {
  color: #94a3b8;
}

.home-frame-page {
  min-height: 100vh;
  margin: 0;
  background: #ededed;
  font-family: Arial, sans-serif;
}

.crm-dashboard-page { background: #f7f9fb; color: #162238; overflow-y: auto; }
.crm-dashboard-page .material-icons-round { font-family: "Material Icons Round", "Material Icons", sans-serif; font-weight: normal; font-style: normal; line-height: 1; letter-spacing: 0; text-transform: none; -webkit-font-feature-settings: "liga"; font-feature-settings: "liga"; -webkit-font-smoothing: antialiased; }
.crm-dashboard { max-width: 1500px; margin: 0 auto; padding: 28px 34px 48px; }
.crm-dashboard-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 20px; }
.crm-dashboard-eyebrow { margin: 0 0 6px; color: #009640; font-size: 12px; font-weight: 800; letter-spacing: .16em; }
.crm-dashboard-header h1 { margin: 0; font-size: clamp(26px, 3vw, 38px); letter-spacing: -.03em; }
.crm-dashboard-subtitle { margin: 8px 0 0; color: #718096; font-size: 13px; }
.crm-dashboard-toolbar { display: flex; align-items: center; gap: 10px; padding-top: 2px; }
.crm-dashboard-toolbar .dx-button { border-radius: 8px; min-height: 34px; }
.crm-dashboard-refresh { display: inline-flex; align-items: center; gap: 7px; border: 0; border-radius: 10px; padding: 11px 15px; background: #009640; color: #fff; font-weight: 700; cursor: pointer; }
.crm-dashboard-refresh:hover { background: #007b35; }
.crm-dashboard-kpis { display: grid; grid-template-columns: repeat(5, minmax(170px, 1fr)); gap: 12px; margin-bottom: 14px; }
.crm-dashboard-kpi { display: flex; align-items: flex-start; gap: 12px; min-height: 112px; padding: 18px 16px; border-radius: 12px; background: #fff; box-shadow: 0 4px 18px rgba(36, 55, 80, .06); border-top: 0; }
.crm-dashboard-kpi-icon { display: inline-flex; flex: 0 0 42px; width: 42px; height: 42px; align-items: center; justify-content: center; border-radius: 50%; background: #eaf8f0; color: #009640; }
.crm-dashboard-kpi-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.crm-dashboard-kpi small, .crm-dashboard-kpi em { display: block; color: #7a8798; font-style: normal; }
.crm-dashboard-kpi strong { display: block; margin: 7px 0 3px; font-size: 24px; letter-spacing: -.02em; }
.crm-dashboard-kpi.blue .crm-dashboard-kpi-icon { color: #3977d8; background: #edf3ff; }
.crm-dashboard-kpi.purple .crm-dashboard-kpi-icon { color: #8b5bd6; background: #f4efff; }
.crm-dashboard-kpi.orange .crm-dashboard-kpi-icon { color: #e58b26; background: #fff5e7; }
.crm-dashboard-kpi.teal .crm-dashboard-kpi-icon { color: #0c9e9b; background: #e8fbfa; }
.crm-dashboard-kpi.red .crm-dashboard-kpi-icon { color: #d75555; background: #fff0f0; }
.crm-dashboard-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 14px; }
.crm-dashboard-panel { min-width: 0; padding: 18px 20px; border-radius: 12px; background: #fff; box-shadow: 0 4px 18px rgba(36, 55, 80, .06); margin-bottom: 14px; }
.crm-dashboard-panel-wide { width: 100%; }
.crm-dashboard-grid > .crm-dashboard-panel-wide { width: auto; }
.crm-dashboard-panel-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 20px; }
.crm-dashboard-panel-heading h2 { margin: 0; font-size: 16px; }.crm-dashboard-panel-heading p { margin: 5px 0 0; color: #8290a4; font-size: 12px; }.crm-dashboard-panel-heading > .material-icons-round { color: #009640; }.crm-dashboard-panel-heading a { color: #009640; font-size: 12px; font-weight: 700; text-decoration: none; }
.crm-dashboard-funnel-layout { display: grid; grid-template-columns: minmax(260px, .9fr) minmax(240px, 1fr); align-items: center; gap: 18px; }
.crm-funnel-visual { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 205px; padding: 8px 0; }
.crm-funnel-segment { height: 29px; width: var(--funnel-width); max-width: 285px; min-width: 82px; background: #159e5b; border-bottom: 2px solid #fff; clip-path: polygon(0 0, 100% 0, 92% 100%, 8% 100%); }
.crm-funnel-segment:nth-child(even) { background: #159b59; }
.crm-dashboard-legend > div { display: grid; grid-template-columns: 12px 1fr auto auto; gap: 8px; align-items: center; padding: 7px 0; border-bottom: 1px solid #edf0f2; font-size: 12px; }.crm-dashboard-legend i { width: 7px; height: 7px; border-radius: 50%; }.crm-dashboard-legend b { font-weight: 600; }.crm-dashboard-legend small { color: #748096; }
.crm-dashboard-bar-row { margin: 15px 0; }.crm-dashboard-bar-row > div:first-child { display: flex; justify-content: space-between; margin-bottom: 7px; font-size: 13px; }.crm-dashboard-bar-row small { color: #8995a5; }.crm-dashboard-bar-track { height: 9px; border-radius: 99px; background: #edf1f3; overflow: hidden; }.crm-dashboard-bar-track i { display: block; height: 100%; border-radius: inherit; background: #009640; }.crm-dashboard-bar-track i.blue { background: #3977d8; }.crm-dashboard-bar-track i.orange { background: #e58b26; }.crm-dashboard-bar-track i.purple { background: #8b5bd6; }
.crm-dashboard-table-wrap { overflow-x: auto; } .crm-dashboard-panel table { width: 100%; border-collapse: collapse; font-size: 13px; }.crm-dashboard-panel th { padding: 0 8px 11px; color: #8793a3; text-align: left; font-weight: 700; }.crm-dashboard-panel td { padding: 12px 8px; border-top: 1px solid #edf0f2; white-space: nowrap; }.crm-dashboard-pill { display: inline-block; border-radius: 99px; padding: 4px 8px; background: #eaf8f0; color: #00833a; font-size: 11px; font-weight: 700; }
.crm-dashboard-list > div { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid #edf0f2; }.crm-dashboard-list > div:last-child { border-bottom: 0; }.crm-dashboard-list-icon { padding: 8px; border-radius: 9px; background: #eef8f2; color: #009640; }.crm-dashboard-list p { flex: 1; margin: 0; }.crm-dashboard-list p strong, .crm-dashboard-list p small { display: block; }.crm-dashboard-list p small { margin-top: 3px; color: #8793a3; }
.crm-dashboard-devexpress-chart { min-height: 245px; width: 100%; }
.crm-dashboard-devexpress-grid { min-height: 255px; width: 100%; }
.crm-dashboard-devexpress-grid .dx-datagrid { background: transparent; color: #172033; }
.crm-dashboard-devexpress-grid .dx-datagrid-headers, .crm-dashboard-devexpress-grid .dx-datagrid-rowsview { border-left: 0; border-right: 0; }
.crm-dashboard-devexpress-grid .dx-datagrid-headers { color: #718096; font-size: 11px; text-transform: uppercase; }
.crm-dashboard-devexpress-grid .dx-data-row > td { padding-top: 8px; padding-bottom: 8px; border-color: #edf0f2; font-size: 12px; }
@media (max-width: 1150px) { .crm-dashboard-kpis { grid-template-columns: repeat(3, minmax(150px, 1fr)); } }
@media (max-width: 760px) { .crm-dashboard { padding: 22px 16px 36px; }.crm-dashboard-header { flex-direction: column; }.crm-dashboard-kpis, .crm-dashboard-grid { grid-template-columns: 1fr; }.crm-dashboard-kpi { min-height: 95px; } }

.dashboard-empty-state {
  min-height: 100vh;
  display: grid;
  place-items: center;
  color: #000000;
  font-size: 16px;
}

.home-sidebar-is-collapsed .home-topbar {
  grid-template-columns: 68px minmax(240px, 1fr) auto;
}

.home-sidebar-is-collapsed .home-brand-area {
  padding: 0 12px;
  justify-content: center;
}

.home-sidebar-is-collapsed .home-brand-logo-expanded {
  display: none;
}

.home-sidebar-is-collapsed .home-brand-logo-collapsed {
  display: block;
}

.home-sidebar-is-collapsed .home-brand-name,
.home-sidebar-is-collapsed .home-brand-tagline,
.home-sidebar-is-collapsed .home-menu-title span:nth-child(2),
.home-sidebar-is-collapsed .home-menu-link span:nth-child(2),
.home-sidebar-is-collapsed .home-menu-caret,
.home-sidebar-is-collapsed .home-sidebar-footer {
  display: none;
}

.home-sidebar-is-collapsed .home-sidebar {
  width: 68px;
}

.home-sidebar-is-collapsed .home-menu-title,
.home-sidebar-is-collapsed .home-menu-link {
  grid-template-columns: 1fr;
  justify-items: center;
  padding: 0;
}

.home-sidebar-is-collapsed .home-menu-items {
  padding-left: 0;
}

@media (max-width: 980px) {
  .home-topbar {
    grid-template-columns: 1fr auto;
    height: 58px;
  }

  .home-brand-area {
    border-right: 0;
    padding-left: 16px;
  }

  .home-brand-name {
    font-size: 34px;
  }

  .home-brand-tagline,
  .home-topbar-center {
    display: none;
  }

  .home-mobile-menu {
    display: grid;
  }

  .home-sidebar {
    position: fixed;
    inset: 58px auto 0 0;
    transform: translateX(-100%);
    height: calc(100vh - 58px);
  }

  .home-sidebar.is-mobile-open {
    transform: translateX(0);
  }

  .home-backdrop {
    position: fixed;
    inset: 58px 0 0;
    background: rgba(15, 23, 42, 0.34);
    z-index: 16;
  }

  .home-frame-surface {
    margin: 0;
    border-left: 0;
    border-right: 0;
  }

  .home-module-popup-header {
    min-height: 58px;
    padding: 0 16px;
  }

  .home-module-popup-title h1 {
    font-size: 20px;
  }

  .home-module-popup-icon {
    width: 42px;
    height: 42px;
    font-size: 26px;
  }

  .home-module-popup-body {
    padding: 14px 14px 34px;
  }

  .home-module-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 16px;
  }

  .home-module-section header {
    padding: 14px 16px;
    font-size: 18px;
  }

  .home-statusbar {
    grid-template-columns: 1fr auto;
  }

  .home-status-center {
    display: none;
  }
}

@media (max-width: 620px) {
  .home-topbar-actions {
    gap: 6px;
    padding: 0 10px;
  }

  .home-brand-name {
    font-size: 31px;
  }

  .home-icon-button {
    width: 36px;
  }

  .home-statusbar {
    font-size: 12px;
  }

  .home-status-separator,
  #home-clock-time {
    display: none;
  }

  .home-module-grid {
    grid-template-columns: 1fr;
  }

  .home-module-card-title {
    font-size: 15px;
  }
}
