html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: #1f2937;
  background: #eff3f8;
}

body.user-theme-dark {
  --bs-body-bg: #0f172a;
  --bs-body-color: #e5edf7;
  color: #e5edf7;
  background: #0f172a;
}

.onboarding-highlight {
  position: relative;
  z-index: 1060;
  border-radius: 1rem;
  outline: 4px solid #dc3545;
  box-shadow: 0 0 0 0.55rem rgba(220, 53, 69, 0.24);
  scroll-margin-top: 7rem;
}

.onboarding-modal {
  border: 1px solid #d7e1ee;
  border-radius: 1.4rem;
  overflow: hidden;
  box-shadow: 0 1.5rem 3rem rgba(15, 23, 42, 0.18);
}

.onboarding-kicker {
  color: #64748b;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.onboarding-progress-copy {
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.onboarding-lead {
  color: #0f172a;
  font-size: 1rem;
  line-height: 1.65;
}

.onboarding-target-note {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid #d7e1ee;
  border-radius: 0.95rem;
  background: #f8fbff;
  color: #334155;
  font-size: 0.9rem;
  font-weight: 600;
}

#appOnboardingDisableWrap .form-check-label {
  color: #475467;
  font-size: 0.92rem;
  font-weight: 600;
}

body.user-theme-dark .onboarding-modal {
  background: #0f172a;
  border-color: #1e293b;
}

body.user-theme-dark .onboarding-lead,
body.user-theme-dark .modal-title {
  color: #e5edf7;
}

body.user-theme-dark .onboarding-kicker,
body.user-theme-dark .onboarding-progress-copy {
  color: #94a3b8;
}

body.user-theme-dark .onboarding-target-note {
  border-color: #334155;
  background: #111827;
  color: #cbd5e1;
}

body.user-theme-dark #appOnboardingDisableWrap .form-check-label {
  color: #cbd5e1;
}

html:has(body.user-theme-dark) {
  background: #0f172a;
}

a {
  color: inherit;
}

.bg-gradient {
  min-height: 100vh;
  background: #eff3f8;
}

body.user-theme-dark.bg-gradient {
  background:
    radial-gradient(circle at top, rgba(59, 130, 246, 0.14), transparent 28%),
    linear-gradient(180deg, #0b1220 0%, #111827 100%);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 1030;
  padding: 0.85rem 1rem;
  background: var(--company-brand, #0d6efd);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 0.125rem 0.75rem rgba(15, 23, 42, 0.12);
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--company-brand-contrast, #fff);
  font-weight: 700;
  text-decoration: none;
}

.brand-lockup:hover {
  color: var(--company-brand-contrast, #fff);
}

.brand-logo {
  display: inline-flex;
  align-items: center;
}

.brand-logo img {
  display: block;
  max-height: 3rem;
  max-width: 13rem;
  object-fit: contain;
}

.topnav-menu {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-inline: 1.25rem;
}

.topnav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.95rem;
  border: 1px solid transparent;
  border-radius: 0.5rem;
  color: var(--company-brand-contrast, #fff);
  background: transparent;
  font-weight: 600;
  text-decoration: none;
}

.topnav-link:hover,
.topnav-link:focus,
.topnav-link.active {
  color: var(--company-header-button-text, #122033);
  background: var(--company-header-button-bg, rgba(255, 255, 255, 0.96));
  border-color: var(--company-header-button-border, rgba(15, 23, 42, 0.12));
  box-shadow: 0 0.125rem 0.75rem rgba(15, 23, 42, 0.14);
}

.topnav-dropdown,
.account-menu-dropdown,
.topbar-utility-dropdown {
  border: 1px solid #d7e1ee;
  border-radius: 1.25rem;
  padding: 0.75rem;
  box-shadow: 0 1.2rem 2.8rem rgba(15, 23, 42, 0.18);
  background:
    linear-gradient(180deg, rgba(248, 251, 255, 0.98) 0%, rgba(255, 255, 255, 0.98) 26%),
    #ffffff;
}

.topnav-dropdown .dropdown-item,
.account-menu-dropdown .dropdown-item,
.topbar-utility-dropdown .dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.8rem 0.9rem;
  border-radius: 0.8rem;
  color: #1f2937;
  font-weight: 600;
  border: 1px solid transparent;
}

.topnav-dropdown .dropdown-item:hover,
.topnav-dropdown .dropdown-item:focus,
.topbar-utility-dropdown .dropdown-item:hover,
.topbar-utility-dropdown .dropdown-item:focus,
.topnav-dropdown .dropdown-item.active {
  color: var(--company-header-button-text, #122033);
  background: var(--company-header-button-bg, rgba(255, 255, 255, 0.96));
  border-color: var(--company-header-button-border, rgba(15, 23, 42, 0.12));
}

.topnav-dropdown .dropdown-item.active,
.topbar-utility-dropdown .dropdown-item.active {
  color: var(--company-action-text, #fff);
  background: var(--company-action-bg, #0d6efd);
  border-color: var(--company-action-border, #0b5ed7);
  box-shadow: 0 0.125rem 0.6rem rgba(15, 23, 42, 0.12);
}

.account-menu-dropdown .dropdown-item:hover,
.account-menu-dropdown .dropdown-item:focus,
.account-menu-dropdown .dropdown-item:active,
.account-menu-dropdown .dropdown-item.active {
  color: var(--company-header-button-text, #122033);
  background: var(--company-header-button-bg, rgba(255, 255, 255, 0.96));
  border-color: var(--company-header-button-border, rgba(15, 23, 42, 0.12));
}

.account-menu-dropdown {
  min-width: 18.75rem;
}

.topbar-utility-dropdown {
  min-width: 15rem;
}

.account-menu-header {
  padding: 0;
  margin-bottom: 0.75rem;
}

.account-menu-identity {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.95rem 1rem;
  border: 1px solid color-mix(in srgb, var(--company-brand, #1f3f75) 18%, #d7e1ee);
  border-radius: 1rem;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--company-brand, #1f3f75) 12%, white) 0%, #ffffff 58%),
    #ffffff;
}

.account-menu-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--company-brand-dark, #122949) 0%, var(--company-brand, #1f3f75) 100%);
  color: var(--company-brand-contrast, #fff);
  font-size: 1rem;
  font-weight: 800;
  box-shadow: 0 0.6rem 1.4rem rgba(15, 23, 42, 0.16);
}

.account-menu-name {
  color: #111827;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.25;
}

.account-menu-role {
  margin-top: 0.2rem;
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.account-menu-company {
  display: grid;
  gap: 0.2rem;
  margin: 0 0 0.75rem;
  padding: 0.9rem 1rem;
  border: 1px solid #dbe5f0;
  border-radius: 1rem;
  background: linear-gradient(180deg, #f7fbff 0%, #ffffff 100%);
  position: relative;
  padding-left: 3.3rem;
}

.account-menu-company-label,
.account-menu-section-label {
  color: #64748b;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.account-menu-company-name {
  color: #111827;
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1.45;
}

.account-menu-company-icon {
  position: absolute;
  top: 0.95rem;
  left: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 0.7rem;
  background: color-mix(in srgb, var(--company-brand, #1f3f75) 10%, white);
  color: var(--company-brand-dark, #122949);
  font-size: 0.9rem;
}

.account-menu-section-label {
  padding: 0 0.8rem 0.45rem;
}

.account-menu-actions,
.account-menu-footer {
  margin: 0 0 0.65rem;
  padding: 0;
}

.account-menu-actions {
  border: 1px solid #dbe5f0;
  border-radius: 1rem;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  overflow: hidden;
}

.account-menu-footer {
  border-top: 1px solid #e2e8f0;
  padding-top: 0.7rem;
}

.account-menu-action-link {
  justify-content: space-between;
  min-height: 3rem;
}

.account-menu-action-copy {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.account-menu-action-copy .bi {
  color: #64748b;
  font-size: 1rem;
}

.account-menu-company-switch {
  justify-content: space-between;
  align-items: center;
}

.account-menu-switch-copy {
  display: grid;
  gap: 0.18rem;
}

.account-menu-switch-indicator {
  color: #94a3b8;
  font-size: 1.15rem;
  line-height: 1;
}

.account-menu-logout {
  color: #a11f2f;
}

.account-menu-logout .account-menu-action-copy .bi,
.account-menu-logout .account-menu-switch-indicator {
  color: inherit;
}

.account-menu-dropdown .dropdown-divider {
  margin: 0.55rem 0.25rem;
}

.notification-toggle,
.account-menu-toggle {
  position: relative;
  border-color: var(--company-header-button-border, rgba(15, 23, 42, 0.12)) !important;
  background: var(--company-header-button-bg, rgba(255, 255, 255, 0.96)) !important;
  color: var(--company-header-button-text, #122033) !important;
  box-shadow: 0 0.125rem 0.75rem rgba(15, 23, 42, 0.14);
}

.notification-toggle .bi,
.account-menu-toggle .bi,
.topbar-utility-toggle .bi,
.account-menu-toggle,
.notification-toggle {
  color: var(--company-header-button-text, #122033) !important;
}

.notification-toggle:hover,
.notification-toggle:focus,
.topbar-utility-toggle:hover,
.topbar-utility-toggle:focus,
.account-menu-toggle:hover,
.account-menu-toggle:focus {
  color: var(--company-header-button-text, #122033) !important;
  filter: brightness(0.98);
}

.topbar-icon-button {
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.9rem;
}

.topbar-icon-button .bi {
  font-size: 1.15rem;
  line-height: 1;
}

.notification-badge {
  position: absolute;
  top: -0.3rem;
  right: -0.2rem;
  min-width: 1.1rem;
  height: 1.1rem;
  padding: 0 0.2rem;
  border-radius: 999px;
  background: #dc3545;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.layout-shell {
  min-height: calc(100vh - 4.75rem);
}

.sidebar-column {
  width: 17rem;
  flex: 0 0 17rem;
  background: linear-gradient(180deg, var(--company-brand-dark, #0b4ea2) 0%, var(--company-brand, #0d6efd) 100%);
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  transition: width 0.2s ease, flex-basis 0.2s ease;
}

.sidebar-nav {
  height: 100%;
  padding: 1rem 0.75rem;
  color: var(--company-sidebar-text, rgba(255, 255, 255, 0.92));
}

.sidebar-toggle-wrap {
  padding: 0 0.25rem 0.75rem;
}

.sidebar-toggle-button {
  width: 100%;
}

.nav-item-group {
  margin-bottom: 0.35rem;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.9rem;
  border-radius: 0.5rem;
  color: inherit;
  text-decoration: none;
}

.nav-link:hover,
.nav-link:focus,
.nav-link.active,
.nav-item-group.is-active > .nav-link {
  color: var(--company-sidebar-text, #fff);
  background: var(--company-sidebar-hover, rgba(255, 255, 255, 0.16));
}

.sidebar-nav .nav-item-group.is-active > .nav-link {
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.sidebar-nav .nav-link,
.sidebar-nav .nav-link-icon,
.sidebar-nav .nav-link-label,
.sidebar-nav .nav-link-caret,
.sidebar-nav .sidebar-toggle-button,
.sidebar-nav .sidebar-toggle-icon,
.sidebar-nav .sidebar-toggle-text {
  color: var(--company-sidebar-text, rgba(255, 255, 255, 0.92)) !important;
}

.offcanvas {
  display: flex;
  flex-direction: column;
  height: 100dvh;
  max-height: 100dvh;
  background: linear-gradient(180deg, var(--company-brand-dark, #0b4ea2) 0%, var(--company-brand, #0d6efd) 100%);
  color: var(--company-sidebar-text, rgba(255, 255, 255, 0.92));
  overflow-x: hidden;
  overflow-y: hidden;
}

.offcanvas .offcanvas-header,
.offcanvas .offcanvas-body {
  color: inherit;
}

.offcanvas .offcanvas-header {
  flex: 0 0 auto;
  height: 4.5rem;
}

.offcanvas .offcanvas-body {
  flex: 0 0 auto;
  height: calc(100dvh - 4.5rem);
  max-height: calc(100dvh - 4.5rem);
  overflow-y: scroll !important;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.offcanvas .sidebar-nav {
  min-height: auto;
  height: auto;
  padding-bottom: 2rem;
}

.offcanvas .nav-item-group,
.offcanvas .nav-submenu,
.offcanvas .collapse {
  overflow: visible;
}

.offcanvas .offcanvas-title,
.offcanvas .nav-link,
.offcanvas .nav-link-icon,
.offcanvas .nav-link-label,
.offcanvas .nav-link-caret,
.offcanvas .sidebar-toggle-button,
.offcanvas .sidebar-toggle-icon,
.offcanvas .sidebar-toggle-text {
  color: var(--company-sidebar-text, rgba(255, 255, 255, 0.92)) !important;
}

.offcanvas .btn-close {
  filter: var(--company-brand-close-filter, invert(1));
}

.offcanvas .nav-link,
.offcanvas .nav-link-toggle {
  justify-content: flex-start;
  width: 100%;
}

.offcanvas .nav-link-label,
.offcanvas .nav-link-caret,
.offcanvas .sidebar-toggle-text {
  display: inline !important;
}

.offcanvas .nav-link-icon {
  width: 1.1rem;
  flex: 0 0 1.1rem;
}

.offcanvas .nav-submenu {
  position: static !important;
  left: auto !important;
  top: auto !important;
  min-width: 0 !important;
  width: 100%;
  max-width: 100%;
  padding-left: 0.5rem;
  border: 0 !important;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible;
}

.offcanvas .nav-sublink {
  margin-left: 0;
}

body.sidebar-collapsed .offcanvas .sidebar-nav {
  padding-inline: 0.75rem;
}

body.sidebar-collapsed .offcanvas .sidebar-nav .nav-link {
  justify-content: flex-start;
  padding-inline: 0.9rem;
}

body.sidebar-collapsed .offcanvas .sidebar-nav .nav-link-icon {
  width: 1.1rem;
  flex: 0 0 1.1rem;
}

body.sidebar-collapsed .offcanvas .sidebar-nav .nav-submenu {
  position: static !important;
  left: auto !important;
  top: auto !important;
  min-width: 0 !important;
  width: 100%;
  max-width: 100%;
  padding: 0.25rem 0 0.25rem 0.5rem;
  border: 0 !important;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
}

body.sidebar-collapsed .offcanvas .sidebar-nav .nav-sublink {
  margin-left: 0;
}

.nav-link-toggle {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
}

.nav-link-icon {
  width: 1.1rem;
  text-align: center;
  flex: 0 0 1.1rem;
}

.nav-link-label {
  flex: 1 1 auto;
}

.nav-link-caret {
  margin-left: auto;
}

.nav-submenu {
  padding-left: 0.5rem;
}

.nav-sublink {
  margin-left: 0.35rem;
}

.sidebar-nav .nav-submenu {
  margin: 0.25rem 0 0.5rem 0.85rem;
  padding: 0.35rem 0 0.1rem 0.85rem;
  border-left: 1px solid rgba(255, 255, 255, 0.16);
}

.sidebar-nav .nav-sublink {
  margin: 0 0 0.25rem;
  border-radius: 0.7rem;
  background: rgba(255, 255, 255, 0.06);
}

.sidebar-nav .nav-sublink:hover,
.sidebar-nav .nav-sublink:focus {
  background: rgba(255, 255, 255, 0.12);
}

.sidebar-nav .nav-sublink.active {
  background: rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.content-column {
  min-width: 0;
}

body.sidebar-collapsed .sidebar-column {
  width: 5.25rem;
  flex-basis: 5.25rem;
}

body.sidebar-collapsed .sidebar-toggle-button {
  padding-inline: 0.5rem;
}

body.sidebar-collapsed .sidebar-toggle-text,
body.sidebar-collapsed .nav-link-label,
body.sidebar-collapsed .nav-link-caret {
  display: none;
}

body.sidebar-collapsed .sidebar-nav {
  padding-inline: 0.5rem;
}

body.sidebar-collapsed .sidebar-nav .nav-link {
  justify-content: center;
  padding-inline: 0.65rem;
}

body.sidebar-collapsed .sidebar-nav .nav-link-icon {
  width: auto;
  flex: 0 0 auto;
}

body.sidebar-collapsed .sidebar-nav .nav-submenu {
  position: absolute;
  left: calc(100% + 0.5rem);
  top: 0;
  z-index: 1040;
  min-width: 14rem;
  padding: 0.5rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  background: #fff;
  box-shadow: 0 0.75rem 2rem rgba(15, 23, 42, 0.12);
}

body.sidebar-collapsed .sidebar-nav .nav-submenu .nav-link,
body.sidebar-collapsed .sidebar-nav .nav-submenu .nav-link-icon,
body.sidebar-collapsed .sidebar-nav .nav-submenu .nav-link-label,
body.sidebar-collapsed .sidebar-nav .nav-submenu .nav-link-caret {
  color: #1f2937 !important;
}

body.sidebar-collapsed .sidebar-nav .nav-submenu .nav-link:hover,
body.sidebar-collapsed .sidebar-nav .nav-submenu .nav-link:focus,
body.sidebar-collapsed .sidebar-nav .nav-submenu .nav-link.active {
  color: #0f172a !important;
  background: #eef5ff;
}

body.sidebar-collapsed .sidebar-nav .nav-item-group {
  position: relative;
}

body.sidebar-collapsed .sidebar-nav .nav-sublink {
  margin-left: 0;
}

body.sidebar-collapsed .sidebar-nav .nav-submenu .nav-link {
  justify-content: flex-start;
  gap: 0.75rem;
  padding: 0.7rem 0.9rem;
}

body.sidebar-collapsed .sidebar-nav .nav-submenu .nav-link-icon {
  width: 1.1rem;
  flex: 0 0 1.1rem;
}

body.sidebar-collapsed .sidebar-nav .nav-submenu .nav-link-label {
  display: inline;
  flex: 1 1 auto;
}


.content-panel {
  min-height: calc(100vh - 4.75rem);
  padding-bottom: 2rem;
}

body.user-theme-dark .content-panel,
body.user-theme-dark .content-column,
body.user-theme-dark .layout-shell {
  background:
    radial-gradient(circle at top, rgba(59, 130, 246, 0.08), transparent 24%),
    linear-gradient(180deg, #0b1220 0%, #111827 100%);
}

body.user-theme-dark .container-fluid.layout-shell,
body.user-theme-dark .layout-shell > .row,
body.user-theme-dark main.content-column {
  background:
    radial-gradient(circle at top, rgba(59, 130, 246, 0.08), transparent 24%),
    linear-gradient(180deg, #0b1220 0%, #111827 100%);
}

.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.85rem;
}

.page-header h1,
.page-header h2 {
  margin: 0;
  font-weight: 700;
  color: #111827;
}

body.user-theme-dark .page-header h1,
body.user-theme-dark .page-header h2 {
  color: #f8fafc;
}

.page-eyebrow {
  display: inline-block;
  margin-bottom: 0.35rem;
  color: #6b7280;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.user-theme-dark .page-eyebrow,
body.user-theme-dark .page-subtitle,
body.user-theme-dark .text-muted,
body.user-theme-dark .small.text-muted,
body.user-theme-dark .form-text,
body.user-theme-dark .dashboard-list-copy,
body.user-theme-dark .dashboard-stat-meta {
  color: #94a3b8 !important;
}

.page-subtitle {
  max-width: 48rem;
  margin: 0.55rem 0 0;
  color: #6b7280;
  line-height: 1.6;
}

.page-header > .d-flex,
.page-header-actions {
  margin-left: auto;
  align-self: flex-start;
}

.billing-header-actions {
  justify-content: flex-end;
  align-items: flex-end;
  max-width: 32rem;
}

.billing-header-actions form {
  flex: 0 0 auto;
}

.upgrade-package-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}

.upgrade-package-card {
  display: grid;
  gap: 0.8rem;
  padding: 1.1rem 1.15rem;
  border: 1px solid #dbe4ee;
  border-radius: 1rem;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.upgrade-package-card.is-current {
  border-color: color-mix(in srgb, var(--company-action-bg, #0d6efd) 40%, #dbe4ee);
  box-shadow: 0 0.8rem 1.8rem rgba(13, 110, 253, 0.10);
}

.upgrade-package-header {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: flex-start;
}

.upgrade-package-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
}

.upgrade-package-price {
  margin-top: 0.15rem;
  color: #1f4f83;
  font-size: 1rem;
  font-weight: 700;
}

.upgrade-package-metric {
  color: #334155;
  font-size: 0.95rem;
}

.billing-addon-card.is-selectable {
  position: relative;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.billing-addon-card.is-selectable:hover,
.billing-addon-card.is-selectable:focus-visible {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--company-action-bg, #0d6efd) 34%, #dbe4ee);
  box-shadow: 0 1rem 2rem rgba(15, 23, 42, 0.1);
  outline: none;
}

.billing-addon-card.is-selectable::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(circle at top right, rgba(29, 78, 216, 0.08), transparent 28%),
    linear-gradient(135deg, rgba(37, 99, 235, 0.03), transparent 55%);
  pointer-events: none;
}

.billing-addon-card > * {
  position: relative;
  z-index: 1;
}

.billing-addon-card-action {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: fit-content;
  margin-top: 0.2rem;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  background: rgba(29, 78, 216, 0.08);
  color: #1d4ed8;
  font-size: 0.86rem;
  font-weight: 700;
}

.billing-addon-modal .modal-content {
  border: 1px solid #d8e3f0;
  background:
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.08), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.billing-addon-modal-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.1rem;
  padding: 1rem 1.05rem;
  border: 1px solid #dbe4ee;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.75);
}

.billing-addon-modal-price {
  font-size: 1.9rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1;
}

.billing-addon-modal-meta {
  margin-top: 0.4rem;
  color: #64748b;
  font-size: 0.95rem;
}

.billing-addon-modal-copy {
  margin-bottom: 1.1rem;
  color: #334155;
  line-height: 1.65;
}

.billing-addon-scale {
  margin-bottom: 1.15rem;
  padding: 1rem 1.05rem 0.9rem;
  border-radius: 1rem;
  background: #f8fbff;
  border: 1px solid #dbe4ee;
}

.billing-addon-scale-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.8rem;
  color: #0f172a;
  font-weight: 700;
}

.billing-addon-range {
  --track-fill: 0%;
  appearance: none;
  width: 100%;
  height: 0.65rem;
  border-radius: 999px;
  background: linear-gradient(90deg, #1d4ed8 0%, #2563eb var(--track-fill), #dbe4ee var(--track-fill), #dbe4ee 100%);
  outline: none;
}

.billing-addon-range::-webkit-slider-thumb {
  appearance: none;
  width: 1.2rem;
  height: 1.2rem;
  border: 3px solid #ffffff;
  border-radius: 50%;
  background: #1d4ed8;
  box-shadow: 0 0.35rem 0.9rem rgba(37, 99, 235, 0.32);
}

.billing-addon-range::-moz-range-thumb {
  width: 1.2rem;
  height: 1.2rem;
  border: 3px solid #ffffff;
  border-radius: 50%;
  background: #1d4ed8;
  box-shadow: 0 0.35rem 0.9rem rgba(37, 99, 235, 0.32);
}

.billing-addon-scale-markers {
  display: flex;
  justify-content: space-between;
  margin-top: 0.55rem;
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 700;
}

.billing-addon-quantity-row {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1.1fr) minmax(15rem, 0.9fr);
}

.billing-addon-total-field {
  justify-content: center;
}

.document-upload-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(22rem, 1fr);
  gap: 1.25rem;
  padding: 1.25rem 1.35rem;
  border-bottom: 1px solid #e5e7eb;
  background:
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.07), transparent 24%),
    linear-gradient(180deg, #fbfdff 0%, #f6faff 100%);
}

.document-upload-panel h6 {
  margin: 0.2rem 0 0.45rem;
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
}

.document-upload-panel p {
  margin: 0;
  color: #64748b;
  line-height: 1.65;
}

.document-upload-form {
  display: grid;
  grid-template-columns: minmax(12rem, 0.95fr) minmax(0, 1.15fr) auto;
  gap: 0.85rem;
  align-items: end;
}

.document-upload-form .form-label {
  margin-bottom: 0.35rem;
}

.document-upload-form .btn {
  min-width: 11rem;
}

.document-type-other-wrap.d-none {
  display: none !important;
}

.document-type-admin-hero {
  margin-bottom: 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid #dbe5f1;
  border-radius: 0.9rem;
  background:
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.08), transparent 24%),
    linear-gradient(180deg, #fbfdff 0%, #f6faff 100%);
}

.document-type-admin-hero h5 {
  margin: 0.2rem 0 0.45rem;
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
}

.document-type-admin-hero p {
  margin: 0;
  color: #64748b;
  line-height: 1.65;
}

.document-type-admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.document-type-admin-card {
  display: grid;
  gap: 0.9rem;
  padding: 1rem 1.05rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.9rem;
  background: linear-gradient(180deg, #ffffff 0%, #f9fbfd 100%);
}

.document-type-admin-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.document-type-admin-card-head h6 {
  margin: 0.2rem 0 0;
  font-size: 1rem;
  font-weight: 800;
  color: #0f172a;
}

.document-type-pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.document-type-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.42rem 0.7rem;
  border: 1px solid #d7e3f1;
  border-radius: 999px;
  background: #f8fbff;
  color: #26415f;
  font-size: 0.86rem;
  font-weight: 700;
}

.document-type-custom-list {
  display: grid;
  gap: 0.7rem;
}

.document-type-custom-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.8rem;
  background: #fff;
}

.document-type-add-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.8rem;
  align-items: end;
}

body.user-theme-dark .document-upload-panel {
  border-color: #334155;
  background:
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.1), transparent 24%),
    linear-gradient(180deg, #121c2e 0%, #101827 100%);
}

body.user-theme-dark .document-upload-panel h6 {
  color: #f8fafc;
}

body.user-theme-dark .document-upload-panel p {
  color: #cbd5e1;
}

body.user-theme-dark .document-type-admin-hero,
body.user-theme-dark .document-type-admin-card,
body.user-theme-dark .document-type-custom-item {
  border-color: #334155;
  background:
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.08), transparent 24%),
    linear-gradient(180deg, #121c2e 0%, #101827 100%);
}

body.user-theme-dark .document-type-admin-hero h5,
body.user-theme-dark .document-type-admin-card-head h6 {
  color: #f8fafc;
}

body.user-theme-dark .document-type-admin-hero p {
  color: #cbd5e1;
}

body.user-theme-dark .document-type-pill {
  border-color: #3b475c;
  background: #162234;
  color: #dbeafe;
}

body.user-theme-dark .billing-addon-card.is-selectable::after {
  background:
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.12), transparent 28%),
    linear-gradient(135deg, rgba(59, 130, 246, 0.05), transparent 55%);
}

body.user-theme-dark .billing-addon-card-action {
  background: rgba(59, 130, 246, 0.18);
  color: #bfdbfe;
}

body.user-theme-dark .billing-addon-modal .modal-content,
body.user-theme-dark .billing-addon-modal-hero,
body.user-theme-dark .billing-addon-scale {
  border-color: rgba(148, 163, 184, 0.18);
}

body.user-theme-dark .billing-addon-modal .modal-content {
  background:
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.12), transparent 28%),
    linear-gradient(180deg, #0f172a 0%, #111827 100%);
}

body.user-theme-dark .billing-addon-modal-hero,
body.user-theme-dark .billing-addon-scale {
  background: rgba(15, 23, 42, 0.72);
}

body.user-theme-dark .billing-addon-modal-price,
body.user-theme-dark .billing-addon-scale-head {
  color: #f8fafc;
}

body.user-theme-dark .billing-addon-modal-meta,
body.user-theme-dark .billing-addon-modal-copy,
body.user-theme-dark .billing-addon-scale-markers {
  color: #cbd5e1;
}

.card {
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  box-shadow: 0 0.35rem 1.1rem rgba(15, 23, 42, 0.05);
}

body.user-theme-dark .card,
body.user-theme-dark .profile-field,
body.user-theme-dark .dashboard-metric,
body.user-theme-dark .dashboard-list-item,
body.user-theme-dark .dashboard-activity-item,
body.user-theme-dark .quote-create-section,
body.user-theme-dark .quote-pipeline-summary-card,
body.user-theme-dark .quote-kanban-column,
body.user-theme-dark .quote-kanban-item,
body.user-theme-dark .quote-kanban-empty,
body.user-theme-dark .brand-preview-card,
body.user-theme-dark .company-edit-section,
body.user-theme-dark .calendar-entry-summary,
body.user-theme-dark .calendar-entry-notes,
body.user-theme-dark .calendar-type-chip,
body.user-theme-dark .calendar-side-item {
  border-color: #334155;
  background: linear-gradient(180deg, #111827 0%, #0f172a 100%);
  box-shadow: 0 0.6rem 1.5rem rgba(2, 6, 23, 0.32);
}

body.user-theme-dark .calendar-month-heading,
body.user-theme-dark .calendar-day-number,
body.user-theme-dark .calendar-pill-title,
body.user-theme-dark .calendar-side-item-title,
body.user-theme-dark .calendar-type-count,
body.user-theme-dark .calendar-view-tab-label,
body.user-theme-dark .calendar-week-day-name,
body.user-theme-dark .calendar-agenda-date strong,
body.user-theme-dark .calendar-agenda-title-row h4 {
  color: #f8fafc;
}

body.user-theme-dark .calendar-month-meta,
body.user-theme-dark .calendar-pill-time,
body.user-theme-dark .calendar-more,
body.user-theme-dark .calendar-entry-meta,
body.user-theme-dark .calendar-side-item-date,
body.user-theme-dark .calendar-side-item-status,
body.user-theme-dark .calendar-side-item-meta,
body.user-theme-dark .calendar-side-empty,
body.user-theme-dark .calendar-view-tab-copy,
body.user-theme-dark .calendar-week-day-date,
body.user-theme-dark .calendar-agenda-date,
body.user-theme-dark .calendar-agenda-meta {
  color: #94a3b8;
}

body.user-theme-dark .calendar-grid-head,
body.user-theme-dark .calendar-day.is-muted,
body.user-theme-dark .calendar-side-empty,
body.user-theme-dark .calendar-type-count,
body.user-theme-dark .calendar-week-day-head,
body.user-theme-dark .calendar-agenda-date,
body.user-theme-dark .calendar-view-tab {
  border-color: #334155;
  background: #172033;
}

body.user-theme-dark .calendar-day {
  border-color: #334155;
  background: #111827;
}

body.user-theme-dark .calendar-day.is-today {
  background: rgba(29, 78, 216, 0.18);
}

body.user-theme-dark .calendar-week-day,
body.user-theme-dark .calendar-agenda-card {
  border-color: #334155;
  background: linear-gradient(180deg, #111827 0%, #0f172a 100%);
  box-shadow: 0 0.6rem 1.5rem rgba(2, 6, 23, 0.32);
}

body.user-theme-dark .calendar-agenda-copy {
  color: #cbd5e1;
}

body.user-theme-dark .calendar-view-tab.is-active,
body.user-theme-dark .calendar-week-day.is-today {
  border-color: color-mix(in srgb, var(--company-brand, #60a5fa) 45%, #334155);
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.94) 0%, #111827 100%);
}

.card-header {
  padding: 1rem 1.15rem;
  background: linear-gradient(180deg, #fbfdff 0%, #f3f7fb 100%);
  border-bottom: 1px solid #e5e7eb;
  font-weight: 600;
}

body.user-theme-dark .card-header,
body.user-theme-dark .table thead th,
body.user-theme-dark .modal-header,
body.user-theme-dark .modal-footer {
  color: #e5edf7;
  border-color: #334155;
  background: linear-gradient(180deg, #172033 0%, #111827 100%);
}

.card-body {
  padding: 1.15rem;
}

.stat-label,
.profile-label {
  display: block;
  margin-bottom: 0.25rem;
  color: #6b7280;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stat-value {
  margin: 0;
  font-size: 2rem;
  font-weight: 700;
  color: #111827;
}

.dashboard-stat-meta {
  margin-top: 0.4rem;
  color: #6b7280;
}

.dashboard-customise-card {
  border-style: dashed;
}

.dashboard-customise-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.45rem;
}

.dashboard-customise-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.8rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  color: #0f172a;
  font-size: 0.85rem;
  font-weight: 600;
}

.dashboard-panel-picker {
  display: grid;
  gap: 0.85rem;
}

.dashboard-panel-option {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  align-items: start;
  padding: 1rem 1.05rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.9rem;
  background: linear-gradient(180deg, #ffffff 0%, #f9fbfd 100%);
  cursor: pointer;
}

.dashboard-panel-option strong {
  display: block;
  color: #111827;
  margin-bottom: 0.2rem;
}

.dashboard-panel-option small {
  display: block;
  color: #6b7280;
  line-height: 1.5;
}

.profile-field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-height: 100%;
  padding: 1rem 1.05rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  background: linear-gradient(180deg, #ffffff 0%, #f9fbfd 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.profile-value {
  color: #111827;
  font-weight: 600;
  line-height: 1.55;
}

body.user-theme-dark .profile-value,
body.user-theme-dark .dashboard-list-title,
body.user-theme-dark .dashboard-metric strong,
body.user-theme-dark .dashboard-panel-option strong,
body.user-theme-dark .modal-title,
body.user-theme-dark .table,
body.user-theme-dark .table td,
body.user-theme-dark .table th,
body.user-theme-dark .alert {
  color: #e5edf7;
}

body.user-theme-dark .text-dark,
body.user-theme-dark .compact-info-link h5,
body.user-theme-dark .card h5,
body.user-theme-dark .card h6 {
  color: #f8fafc !important;
}

body.user-theme-dark .compact-info-link:hover {
  border-color: #475569;
  box-shadow: 0 0.8rem 1.75rem rgba(2, 6, 23, 0.36);
}

.compact-info-card,
.company-profile-card {
  height: 100%;
}

.compact-info-card .card-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.35rem;
}

.compact-info-link h5 {
  color: #111827;
}

.compact-info-link:hover {
  border-color: #d7e3f1;
  box-shadow: 0 0.5rem 1.25rem rgba(15, 23, 42, 0.07);
  transform: translateY(-1px);
}

.company-profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: 1.15rem;
}

.company-profile-card .card-body {
  display: grid;
  align-content: start;
  gap: 0.85rem;
}

.company-profile-card .profile-field {
  min-height: 0;
}

.customer-profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 1rem;
  align-items: start;
}

.customer-profile-section {
  display: grid;
  gap: 0.9rem;
  padding: 1rem;
  border: 1px solid #dbe5f0;
  border-radius: 1rem;
  background: linear-gradient(180deg, #fbfdff 0%, #f7fbff 100%);
}

.customer-profile-section-head h6 {
  margin: 0.2rem 0 0;
  color: #0f172a;
  font-size: 1rem;
  font-weight: 800;
}

.customer-profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.customer-profile-field-full {
  grid-column: 1 / -1;
}

body.user-theme-dark .customer-profile-section {
  border-color: #334155;
  background: linear-gradient(180deg, #172033 0%, #111827 100%);
}

body.user-theme-dark .customer-profile-section-head h6 {
  color: #f8fafc;
}

.brand-colour-swatch {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  margin-right: 0.5rem;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 999px;
  vertical-align: middle;
}

.favicon-preview,
.brand-logo-preview {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  background: #fff;
  overflow: hidden;
}

.favicon-preview img {
  display: block;
  max-width: 2.5rem;
  max-height: 2.5rem;
  object-fit: contain;
}

.brand-logo-preview img {
  display: block;
  max-width: 100%;
  max-height: 4.5rem;
  object-fit: contain;
}

.company-logo-preview {
  min-width: 10rem;
  min-height: 5rem;
  padding: 0.9rem 1rem;
}

.company-logo-preview-dark {
  background: linear-gradient(135deg, #1f3f75 0%, #0f1f3a 100%);
  border-color: rgba(15, 23, 42, 0.18);
}

.brand-preview-card {
  display: grid;
  grid-template-columns: minmax(0, 14rem) 1fr;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.1rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.9rem;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
}

.brand-preview-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 5.5rem;
  max-height: 6rem;
  padding: 0.75rem;
  border: 1px solid #d8e2ee;
  border-radius: 0.8rem;
  background: rgba(255, 255, 255, 0.9);
  overflow: hidden;
}

.brand-preview-logo img {
  display: block;
  max-width: 100%;
  max-height: 4.5rem;
  object-fit: contain;
}

.brand-preview-meta {
  min-width: 0;
}

@media (max-width: 767.98px) {
  .brand-preview-card {
    grid-template-columns: 1fr;
  }

  .document-type-admin-grid,
  .document-type-add-form {
    grid-template-columns: 1fr;
  }
}

.dashboard-metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.dashboard-metric-grid-compact {
  gap: 0.75rem;
}

.dashboard-metric {
  padding: 1rem 1.05rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  background: linear-gradient(180deg, #ffffff 0%, #f9fbfd 100%);
}

.dashboard-section-subtitle {
  color: #6b7280;
  line-height: 1.6;
}

.dashboard-chart-card .card-body {
  display: flex;
  align-items: stretch;
}

.dashboard-donut-layout {
  display: grid;
  grid-template-columns: minmax(9rem, 11rem) 1fr;
  gap: 1rem;
  width: 100%;
  align-items: center;
}

.dashboard-donut-chart {
  position: relative;
  width: 11rem;
  height: 11rem;
  margin: 0 auto;
  border-radius: 50%;
  background: var(--donut-fill, conic-gradient(#cbd5e1 0% 100%));
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.14);
}

.dashboard-donut-chart::after {
  content: "";
  position: absolute;
  inset: 1.35rem;
  border-radius: 50%;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: inset 0 0 0 1px rgba(226, 232, 240, 0.9);
}

.dashboard-donut-center {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.dashboard-donut-center strong {
  font-size: 2rem;
  line-height: 1;
  color: #0f172a;
}

.dashboard-donut-center span {
  margin-top: 0.25rem;
  color: #64748b;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.dashboard-chart-legend {
  display: grid;
  gap: 0.7rem;
}

.dashboard-chart-legend-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.7rem;
  align-items: center;
  padding: 0.75rem 0.85rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.85rem;
  background: linear-gradient(180deg, #ffffff 0%, #f9fbfd 100%);
}

.dashboard-chart-legend-swatch {
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 999px;
}

.dashboard-bar-chart {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
  width: 100%;
  min-height: 16rem;
  align-items: end;
}

.dashboard-bar-group {
  display: grid;
  gap: 0.55rem;
  justify-items: center;
}

.dashboard-bar-value {
  color: #0f172a;
  font-weight: 800;
}

.dashboard-bar-track {
  position: relative;
  width: 100%;
  height: 11rem;
  border-radius: 999px;
  background: linear-gradient(180deg, #eef4fb 0%, #dbe7f4 100%);
  overflow: hidden;
}

.dashboard-bar-fill {
  position: absolute;
  inset: auto 0 0 0;
  border-radius: 999px;
  box-shadow: 0 0.75rem 1.35rem rgba(37, 99, 235, 0.18);
}

.dashboard-bar-label {
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 700;
}

.dashboard-line-chart-wrap {
  width: 100%;
}

.dashboard-line-chart {
  display: block;
  width: 100%;
  height: auto;
}

.dashboard-line-axis {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.35rem;
  margin-top: 0.2rem;
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 700;
  text-align: center;
}

.dashboard-line-summary {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.55rem;
  margin-top: 1rem;
}

.dashboard-line-summary-item {
  padding: 0.65rem 0.5rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  background: linear-gradient(180deg, #ffffff 0%, #f9fbfd 100%);
  text-align: center;
}

.dashboard-line-summary-item span {
  display: block;
  margin-bottom: 0.2rem;
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 700;
}

.dashboard-line-summary-item strong {
  color: #0f172a;
  font-size: 1rem;
}

.dashboard-metric-label {
  display: block;
  margin-bottom: 0.2rem;
  color: #6b7280;
  font-size: 0.78rem;
  font-weight: 700;
}

.dashboard-list {
  display: grid;
  gap: 0.9rem;
}

.dashboard-list-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.05rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  background: linear-gradient(180deg, #ffffff 0%, #f9fbfd 100%);
  text-decoration: none;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.dashboard-list-item:hover {
  background: #ffffff;
  border-color: #d7e3f1;
  box-shadow: 0 0.5rem 1.25rem rgba(15, 23, 42, 0.07);
  transform: translateY(-1px);
}

body.user-theme-dark .dashboard-list-item:hover {
  background: linear-gradient(180deg, #152033 0%, #111827 100%);
  border-color: #475569;
  box-shadow: 0 0.8rem 1.75rem rgba(2, 6, 23, 0.4);
}

body.user-theme-dark .dashboard-donut-chart::after,
body.user-theme-dark .dashboard-chart-legend-item,
body.user-theme-dark .dashboard-line-summary-item {
  background: linear-gradient(180deg, #152033 0%, #101827 100%);
  border-color: #334155;
}

body.user-theme-dark .dashboard-donut-center strong,
body.user-theme-dark .dashboard-bar-value,
body.user-theme-dark .dashboard-line-summary-item strong {
  color: #f8fafc;
}

body.user-theme-dark .dashboard-donut-center span,
body.user-theme-dark .dashboard-bar-label,
body.user-theme-dark .dashboard-line-axis,
body.user-theme-dark .dashboard-line-summary-item span {
  color: #cbd5e1;
}

body.user-theme-dark .dashboard-bar-track {
  background: linear-gradient(180deg, #1e293b 0%, #172233 100%);
}

body.user-theme-dark .knowledge-base-category-link,
body.user-theme-dark .knowledge-base-admin-item,
body.user-theme-dark .knowledge-base-list-item {
  border-color: #334155;
  background: linear-gradient(180deg, #111827 0%, #0f172a 100%);
  color: #e5edf7;
}

body.user-theme-dark .knowledge-base-category-link:hover,
body.user-theme-dark .knowledge-base-category-link.active,
body.user-theme-dark .knowledge-base-list-item.active,
body.user-theme-dark .knowledge-base-list-item:hover {
  border-color: #475569;
  box-shadow: 0 0.8rem 1.75rem rgba(2, 6, 23, 0.36);
}

body.user-theme-dark .knowledge-base-category-count {
  background: rgba(59, 130, 246, 0.18);
  color: #bfdbfe;
}

body.user-theme-dark .knowledge-base-list-title,
body.user-theme-dark .knowledge-base-article-title,
body.user-theme-dark .knowledge-base-article-body {
  color: #f8fafc;
}

body.user-theme-dark .knowledge-base-list-copy,
body.user-theme-dark .knowledge-base-article-summary,
body.user-theme-dark .knowledge-base-article-footer,
body.user-theme-dark .dashboard-section-subtitle {
  color: #94a3b8;
}

body.user-theme-dark .knowledge-base-article-footer {
  border-top-color: #334155;
}

body.user-theme-dark .knowledge-base-article-body blockquote {
  background: rgba(30, 41, 59, 0.65);
}

body.user-theme-dark .knowledge-base-editor-surface {
  color: #f8fafc;
  background: #0f172a;
}

body.user-theme-dark .dashboard-panel-option,
body.user-theme-dark .dashboard-customise-pill {
  border-color: #334155;
  background: linear-gradient(180deg, #172033 0%, #111827 100%);
}

body.user-theme-dark .dashboard-panel-option small,
body.user-theme-dark .dashboard-customise-card .text-muted,
body.user-theme-dark .dashboard-customise-pill {
  color: #cbd5e1 !important;
}

.dashboard-list-title {
  font-weight: 600;
  line-height: 1.35;
}

.dashboard-list-copy {
  color: #6b7280;
  margin-top: 0.25rem;
  line-height: 1.55;
}

.dashboard-timeline {
  display: grid;
  gap: 1rem;
}

.dashboard-timeline-item {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 1rem;
  align-items: start;
  padding: 0.2rem 0 1rem;
  border-bottom: 1px solid #e5e7eb;
}

.dashboard-timeline-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.dashboard-activity-list {
  display: grid;
  gap: 0.9rem;
}

.dashboard-activity-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  align-items: start;
  padding: 1rem 1.05rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.9rem;
  background: linear-gradient(180deg, #ffffff 0%, #f9fbfd 100%);
}

.dashboard-activity-link {
  color: inherit;
  text-decoration: none;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.dashboard-activity-link:hover {
  border-color: #d7e3f1;
  box-shadow: 0 0.5rem 1.25rem rgba(15, 23, 42, 0.07);
  transform: translateY(-1px);
}

.dashboard-activity-badge {
  width: 0.8rem;
  height: 0.8rem;
  margin-top: 0.35rem;
  border-radius: 999px;
  background: #94a3b8;
  box-shadow: 0 0 0 0.35rem rgba(148, 163, 184, 0.14);
}

.dashboard-activity-badge.status-success {
  background: #198754;
  box-shadow: 0 0 0 0.35rem rgba(25, 135, 84, 0.14);
}

.dashboard-activity-badge.status-warning {
  background: #f59e0b;
  box-shadow: 0 0 0 0.35rem rgba(245, 158, 11, 0.16);
}

.dashboard-activity-badge.status-danger,
.dashboard-activity-badge.status-error {
  background: #dc3545;
  box-shadow: 0 0 0 0.35rem rgba(220, 53, 69, 0.14);
}

.dashboard-activity-badge.status-info {
  background: var(--company-brand, #0d6efd);
  box-shadow: 0 0 0 0.35rem rgba(13, 110, 253, 0.12);
}

body.user-theme-dark .dashboard-activity-link:hover {
  border-color: #475569;
  box-shadow: 0 0.8rem 1.75rem rgba(2, 6, 23, 0.36);
}

.knowledge-base-category-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 0.35rem;
  padding: 0.75rem 0.9rem;
  padding-left: calc(0.9rem + (var(--kb-depth, 0) * 1rem));
  border: 1px solid #e5e7eb;
  border-radius: 0.8rem;
  background: linear-gradient(180deg, #ffffff 0%, #f9fbfd 100%);
  text-decoration: none;
  color: #1f2937;
  transition: border-color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.knowledge-base-category-link:hover,
.knowledge-base-category-link.active {
  border-color: #d7e3f1;
  box-shadow: 0 0.5rem 1.25rem rgba(15, 23, 42, 0.07);
  transform: translateY(-1px);
}

.knowledge-base-category-count {
  min-width: 1.8rem;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  background: #eef5ff;
  color: #34527a;
  font-size: 0.78rem;
  font-weight: 700;
  text-align: center;
}

.knowledge-base-admin-list,
.knowledge-base-list {
  display: grid;
  gap: 0.85rem;
}

.knowledge-base-admin-item,
.knowledge-base-list-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.05rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.9rem;
  background: linear-gradient(180deg, #ffffff 0%, #f9fbfd 100%);
}

.knowledge-base-list-item {
  text-decoration: none;
  color: inherit;
}

.knowledge-base-list-item.active,
.knowledge-base-list-item:hover {
  border-color: #d7e3f1;
  box-shadow: 0 0.5rem 1.25rem rgba(15, 23, 42, 0.07);
}

.knowledge-base-list-main {
  min-width: 0;
}

.knowledge-base-list-title,
.knowledge-base-article-title {
  color: #111827;
  font-weight: 700;
}

.knowledge-base-list-copy,
.knowledge-base-article-summary,
.knowledge-base-article-footer {
  color: #64748b;
  line-height: 1.6;
}

.knowledge-base-list-meta {
  flex: 0 0 auto;
  min-width: 8rem;
  text-align: right;
}

.knowledge-base-article-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.knowledge-base-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.8rem;
}

.knowledge-base-article-body {
  color: #1f2937;
  line-height: 1.8;
  white-space: normal;
}

.knowledge-base-article-body p,
.knowledge-base-article-body ul,
.knowledge-base-article-body ol,
.knowledge-base-article-body blockquote,
.knowledge-base-article-body h2,
.knowledge-base-article-body h3,
.knowledge-base-article-body h4 {
  margin-bottom: 1rem;
}

.knowledge-base-article-body ul,
.knowledge-base-article-body ol {
  padding-left: 1.4rem;
}

.knowledge-base-article-body blockquote {
  margin-left: 0;
  padding: 0.85rem 1rem;
  border-left: 4px solid var(--company-brand, #0d6efd);
  border-radius: 0.75rem;
  background: #f8fbff;
}

.knowledge-base-editor {
  display: grid;
  gap: 0.75rem;
}

.knowledge-base-editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.knowledge-base-editor-surface {
  min-height: 20rem;
  padding: 1rem 1.05rem;
  overflow: auto;
  line-height: 1.8;
  white-space: normal;
}

.knowledge-base-editor-surface:focus {
  outline: 0;
}

.knowledge-base-editor-surface:empty::before {
  content: "Start writing your article here...";
  color: #94a3b8;
}

.knowledge-base-article-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid #e5e7eb;
  font-size: 0.88rem;
}

.datatable-panel .table,
.panel-table .table {
  margin-bottom: 0;
}

.table thead th {
  background: #f8fafc;
  color: #374151;
  font-weight: 700;
  border-bottom-width: 1px;
}

.table tbody td {
  vertical-align: middle;
}

body.user-theme-dark .table-striped > tbody > tr:nth-of-type(odd) > * {
  color: #dbe5f0;
  background-color: rgba(30, 41, 59, 0.36);
}

body.user-theme-dark .table > :not(caption) > * > * {
  border-bottom-color: #334155;
}

.calendar-table-row {
  cursor: pointer;
}

.table-responsive {
  padding: 0.5rem 0.75rem 0.75rem;
}

body.user-theme-dark .table-responsive {
  background: transparent;
}

.datatable-panel .card-body,
.panel-table .card-body {
  padding: 0;
}

.user-audit-table {
  font-size: 0.88rem;
}

.user-audit-table th,
.user-audit-table td {
  padding-block: 0.55rem;
  vertical-align: top;
}

.user-audit-table td {
  line-height: 1.45;
}

.dataTables_wrapper {
  padding: 0.85rem 1rem 1rem;
}

.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_length {
  margin-bottom: 0.85rem;
}

.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate {
  margin-top: 0.85rem;
}

.dataTables_wrapper .paginate_button,
.dataTables_wrapper .dataTables_paginate .paginate_button {
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.dataTables_wrapper .page-link,
.pagination .page-link {
  color: var(--company-brand, #0d6efd);
}

.dataTables_wrapper .page-item.active .page-link,
.pagination .page-item.active .page-link {
  border-color: var(--company-brand, #0d6efd);
  background-color: var(--company-brand, #0d6efd);
  color: var(--company-brand-contrast, #fff);
}

.dataTables_wrapper .page-link:focus,
.pagination .page-link:focus {
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

.quote-create-section {
  padding: 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  background: linear-gradient(180deg, #ffffff 0%, #f9fbfd 100%);
}

.quote-template-library {
  display: grid;
  gap: 0.9rem;
}

.quote-template-library-item {
  display: grid;
  gap: 0.55rem;
  padding: 1rem;
  border: 1px solid #dbe5f0;
  border-radius: 0.95rem;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  color: inherit;
  box-shadow: 0 0.55rem 1.3rem rgba(15, 23, 42, 0.04);
}

.quote-template-library-item.is-active {
  border-color: color-mix(in srgb, var(--company-brand, #0d6efd) 45%, #dbe5f0);
  box-shadow: 0 0.75rem 1.6rem rgba(15, 23, 42, 0.07);
}

.quote-template-library-title {
  color: #0f172a;
  font-weight: 800;
  line-height: 1.35;
}

.quote-template-library-description {
  margin-top: 0.3rem;
  color: #475569;
  line-height: 1.55;
}

.quote-template-library-meta {
  color: #64748b;
  font-size: 0.84rem;
}

body.user-theme-dark .alert-light,
body.user-theme-dark .alert.alert-light.border {
  color: #dbe5f0;
  border-color: #334155 !important;
  background: linear-gradient(180deg, #172033 0%, #111827 100%);
}

body.user-theme-dark .alert-danger {
  color: #fecaca;
  border-color: #7f1d1d;
  background: linear-gradient(180deg, #3b1014 0%, #241316 100%);
}

body.user-theme-dark .alert-success {
  color: #bbf7d0;
  border-color: #14532d;
  background: linear-gradient(180deg, #0f2d1d 0%, #12231b 100%);
}

.quote-create-section-head {
  margin-bottom: 0.75rem;
}

.quote-pipeline-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.quote-pipeline-summary-card {
  display: grid;
  gap: 0.25rem;
  padding: 1rem 1.1rem;
  border: 1px solid #dce6f2;
  border-radius: 1rem;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  box-shadow: 0 0.65rem 1.6rem rgba(15, 23, 42, 0.06);
}

.quote-pipeline-summary-label {
  color: #64748b;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.quote-pipeline-summary-card strong {
  color: #0f172a;
  font-size: 1.65rem;
  font-weight: 800;
  line-height: 1.1;
}

.quote-pipeline-summary-meta {
  color: #475467;
  font-size: 0.88rem;
}

.quote-pipeline-card {
  margin-bottom: 1.25rem;
}

.quote-pipeline-card .card-body {
  padding: 1rem;
}

.quote-kanban-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(16rem, 1fr));
  gap: 1rem;
  align-items: start;
  overflow-x: auto;
  padding-bottom: 0.25rem;
}

.quote-kanban-column {
  min-width: 16rem;
  border: 1px solid #dbe5f0;
  border-radius: 1.1rem;
  background: linear-gradient(180deg, #f9fbfe 0%, #f3f7fb 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.quote-kanban-column.is-draft {
  background: linear-gradient(180deg, #f8fafc 0%, #eef3f8 100%);
}

.quote-kanban-column.is-sent {
  background: linear-gradient(180deg, #f5f9ff 0%, #ebf3ff 100%);
}

.quote-kanban-column.is-accepted {
  background: linear-gradient(180deg, #f3fbf5 0%, #e8f7ec 100%);
}

.quote-kanban-column.is-declined {
  background: linear-gradient(180deg, #fff7f7 0%, #fcecec 100%);
}

.quote-kanban-column-head {
  padding: 1rem 1rem 0.8rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.quote-kanban-column-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.quote-kanban-column h3 {
  margin: 0;
  color: #0f172a;
  font-size: 1rem;
  font-weight: 800;
}

.quote-kanban-column p {
  margin: 0.4rem 0 0;
  color: #64748b;
  font-size: 0.82rem;
  line-height: 1.45;
}

.quote-kanban-column-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.9rem;
  height: 1.9rem;
  padding: 0 0.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: #0f172a;
  font-size: 0.82rem;
  font-weight: 800;
  border: 1px solid rgba(148, 163, 184, 0.28);
}

.quote-kanban-column-body {
  display: grid;
  gap: 0.85rem;
  padding: 1rem;
}

.quote-kanban-item {
  display: grid;
  gap: 0.8rem;
  padding: 0.95rem;
  border: 1px solid #dbe5f0;
  border-radius: 0.95rem;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 0.65rem 1.5rem rgba(15, 23, 42, 0.06);
}

.quote-kanban-item-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.quote-kanban-item-number {
  color: #667085;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.quote-kanban-item h4 {
  margin: 0.2rem 0 0;
  color: #0f172a;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.35;
}

.quote-kanban-item-meta {
  display: grid;
  gap: 0.4rem;
  color: #475467;
  font-size: 0.84rem;
}

.quote-kanban-item-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.quote-kanban-item-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
}

.quote-kanban-item-value {
  color: #0f172a;
  font-size: 1rem;
  font-weight: 800;
}

.quote-kanban-item-dates {
  color: #667085;
  font-size: 0.76rem;
  text-align: right;
}

.quote-kanban-item-actions {
  display: flex;
  justify-content: flex-end;
}

.quote-kanban-empty {
  padding: 1.15rem 1rem;
  border: 1px dashed #cbd5e1;
  border-radius: 0.95rem;
  color: #64748b;
  font-size: 0.84rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.58);
}

.customer-activity-timeline {
  display: grid;
  gap: 1rem;
}

.customer-activity-timeline-compact {
  max-height: 42rem;
  overflow-y: auto;
  padding-right: 0.4rem;
}

.customer-activity-entry {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  align-items: start;
}

.customer-activity-dot {
  width: 0.8rem;
  height: 0.8rem;
  margin-top: 0.38rem;
  border-radius: 999px;
  background: #94a3b8;
  box-shadow: 0 0 0 0.24rem rgba(148, 163, 184, 0.14);
}

.customer-activity-dot-success {
  background: #22c55e;
  box-shadow: 0 0 0 0.24rem rgba(34, 197, 94, 0.14);
}

.customer-activity-dot-warning {
  background: #f59e0b;
  box-shadow: 0 0 0 0.24rem rgba(245, 158, 11, 0.14);
}

.customer-activity-dot-danger {
  background: #ef4444;
  box-shadow: 0 0 0 0.24rem rgba(239, 68, 68, 0.14);
}

.customer-activity-content {
  padding-bottom: 1rem;
  border-bottom: 1px solid #e5edf6;
}

.customer-activity-entry:last-child .customer-activity-content {
  padding-bottom: 0;
  border-bottom: 0;
}

.customer-activity-title {
  color: #0f172a;
  font-weight: 700;
  line-height: 1.4;
}

.customer-activity-meta {
  margin-top: 0.18rem;
  color: #64748b;
  font-size: 0.8rem;
}

.customer-activity-body {
  margin-top: 0.5rem;
  color: #334155;
  line-height: 1.6;
}

.customer-activity-more {
  margin-top: 0.2rem;
  color: #64748b;
  font-size: 0.84rem;
}

.customer-tag-list,
.customer-tag-picker,
.customer-tag-option,
.customer-task-card-head,
.customer-task-meta,
.customer-task-links,
.customer-task-actions,
.customer-call-card-head,
.customer-call-meta,
.customer-communication-head,
.customer-communication-meta {
  display: flex;
  gap: 0.65rem;
}

.customer-tag-list,
.customer-tag-picker,
.customer-task-meta,
.customer-task-links,
.customer-call-meta,
.customer-communication-meta {
  flex-wrap: wrap;
}

.customer-tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.38rem 0.72rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--tag-colour, #3D78D8) 12%, white);
  border: 1px solid color-mix(in srgb, var(--tag-colour, #3D78D8) 34%, white);
  color: #0f172a;
  font-weight: 700;
  font-size: 0.84rem;
}

.customer-tag-option {
  align-items: center;
}

.customer-tag-manager {
  display: grid;
  gap: 0.75rem;
}

.customer-task-list,
.customer-call-log-list,
.customer-communication-list {
  display: grid;
  gap: 0.85rem;
}

.customer-task-card,
.customer-call-card,
.customer-communication-card {
  padding: 1rem 1.05rem;
  border: 1px solid #dce6f2;
  border-radius: 0.95rem;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 0.55rem 1.25rem rgba(15, 23, 42, 0.04);
}

.customer-task-card-head,
.customer-call-card-head,
.customer-communication-head {
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  min-width: 0;
}

.customer-task-card-head > div:first-child,
.customer-call-card-head > div:first-child,
.customer-communication-head > div:first-child {
  min-width: 0;
  flex: 1 1 20rem;
}

.customer-thread-message-list {
  display: grid;
  gap: 0.6rem;
}

.customer-thread-message {
  padding-top: 0.7rem;
  border-top: 1px solid #e5edf6;
}

.customer-thread-message-top {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  color: #334155;
  font-size: 0.85rem;
  font-weight: 600;
}

.customer-task-title,
.customer-call-title,
.customer-communication-title {
  color: #0f172a;
  font-weight: 800;
  line-height: 1.35;
}

.customer-task-meta,
.customer-task-links,
.customer-call-meta,
.customer-communication-meta {
  margin-top: 0.35rem;
  color: #64748b;
  font-size: 0.88rem;
  flex-wrap: wrap;
  min-width: 0;
}

.customer-task-body,
.customer-call-body {
  margin-top: 0.85rem;
  color: #334155;
  line-height: 1.6;
}

.customer-task-actions {
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  margin-left: auto;
}

.customer-call-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: #e0f2fe;
  color: #0c4a6e;
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.customer-task-form,
.customer-call-form {
  display: grid;
  gap: 0.8rem;
}

.customer-directory-hero {
  border: 1px solid #dce6f2;
  border-radius: 1.1rem;
  background:
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.1), transparent 26%),
    linear-gradient(180deg, #ffffff 0%, #f6fbff 100%);
  box-shadow: 0 1rem 2rem rgba(15, 23, 42, 0.05);
}

.customer-directory-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(17rem, 0.8fr);
  gap: 1rem;
  align-items: stretch;
}

.customer-directory-hero h3 {
  margin: 0 0 0.55rem;
  color: #0f172a;
  font-size: 1.35rem;
  font-weight: 800;
}

.customer-directory-hero p {
  color: #475467;
  line-height: 1.65;
}

.customer-directory-hero-aside {
  display: grid;
  gap: 0.45rem;
  padding: 1rem 1.05rem;
  border: 1px solid #dce6f2;
  border-radius: 1rem;
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.customer-directory-hero-label {
  color: #64748b;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.customer-directory-hero-aside strong {
  color: #0f172a;
  font-size: 1.15rem;
}

.customer-directory-name-cell,
.customer-directory-meta {
  display: flex;
  gap: 0.75rem;
}

.customer-directory-name-cell {
  align-items: flex-start;
}

.customer-directory-meta {
  flex-wrap: wrap;
  margin-top: 0.3rem;
  color: #64748b;
  font-size: 0.84rem;
}

.customer-directory-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 0.85rem;
  background: linear-gradient(135deg, var(--company-brand, #1f3f75), color-mix(in srgb, var(--company-brand, #1f3f75) 50%, white));
  color: #ffffff;
  font-weight: 800;
  box-shadow: 0 0.7rem 1.4rem rgba(31, 63, 117, 0.2);
}

.customer-directory-count {
  display: inline-flex;
  min-width: 2rem;
  justify-content: center;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: #eef4fb;
  color: #0f172a;
  font-weight: 700;
}

.customer-directory-viewbar {
  display: flex;
  justify-content: flex-end;
}

.customer-directory-toggle .btn.active {
  background: var(--company-brand, #1f3f75);
  border-color: var(--company-brand, #1f3f75);
  color: #fff;
}

.customer-directory-panel {
  display: none;
}

.customer-directory-panel.is-active {
  display: block;
}

.customer-directory-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.customer-directory-card {
  display: grid;
  gap: 0.95rem;
  padding: 1.15rem;
  border: 1px solid #dce6f2;
  border-radius: 1.05rem;
  background:
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.08), transparent 24%),
    linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  box-shadow: 0 1rem 2rem rgba(15, 23, 42, 0.05);
}

.customer-directory-card-head {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  align-items: flex-start;
}

.customer-directory-card h3 {
  margin: 0;
  color: #0f172a;
  font-size: 1.05rem;
  font-weight: 800;
}

.customer-directory-card-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.customer-directory-card-metric {
  display: grid;
  gap: 0.2rem;
  padding: 0.75rem 0.8rem;
  border: 1px solid #e4ecf5;
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.88);
}

.customer-directory-card-metric span {
  color: #64748b;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.customer-directory-card-metric strong {
  color: #0f172a;
  font-size: 1.15rem;
  font-weight: 800;
}

.customer-directory-card-foot {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
  padding-top: 0.2rem;
}

.password-policy {
  border-radius: 0.75rem;
}

.company-edit-card > .card-body {
  padding: 1.35rem;
}

.company-edit-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.company-edit-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
  align-items: start;
}

.company-edit-section {
  height: 100%;
  padding: 1.2rem;
  border: 1px solid #dbe4ee;
  border-radius: 1rem;
  background:
    radial-gradient(circle at top right, rgba(13, 110, 253, 0.05), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.company-edit-card {
  background: transparent;
  border: 0;
  box-shadow: none;
}

.company-edit-card > .card-body {
  padding: 0;
}

.company-edit-section-wide {
  grid-column: 1 / -1;
}

.company-edit-section-head {
  margin-bottom: 1rem;
}

.company-edit-section-head h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #111827;
}

.company-edit-section-head p {
  margin: 0.45rem 0 0;
  color: #64748b;
  line-height: 1.6;
}

.company-edit-section .form-label {
  font-weight: 600;
  color: #1f2937;
}

body.user-theme-dark .company-edit-section .form-label,
body.user-theme-dark .company-edit-section label,
body.user-theme-dark .company-edit-card .form-label {
  color: #e5edf7 !important;
}

.company-edit-section .form-control,
.company-edit-section .form-select {
  min-height: 2.75rem;
  border-color: #d7e0eb;
  background: rgba(255, 255, 255, 0.96);
}

.form-select,
.form-select:focus,
.company-edit-section .form-select,
.company-edit-section .form-select:focus {
  padding-right: 2.5rem;
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%2364748b' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 16px 12px;
}

body.user-theme-dark .form-control,
body.user-theme-dark .form-select,
body.user-theme-dark .form-control:focus,
body.user-theme-dark .form-select:focus,
body.user-theme-dark textarea.form-control {
  color: #e5edf7;
  border-color: #475569;
  background: #0f172a;
}

body.user-theme-dark .form-select,
body.user-theme-dark .form-select:focus,
body.user-theme-dark .company-edit-section .form-select,
body.user-theme-dark .company-edit-section .form-select:focus {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23cbd5e1' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 16px 12px;
}

body.user-theme-dark input[type="file"].form-control {
  color: #cbd5e1;
  background: #0f172a;
}

body.user-theme-dark input[type="file"].form-control::file-selector-button {
  margin: -0.375rem 0.75rem -0.375rem -0.75rem;
  padding: 0.7rem 0.95rem;
  border: 0;
  border-right: 1px solid #475569;
  color: #e5edf7;
  background: linear-gradient(180deg, #172033 0%, #111827 100%);
}

body.user-theme-dark input[type="file"].form-control:hover::file-selector-button {
  color: var(--company-action-text, #fff);
  background: var(--company-action-bg, #0d6efd);
}

body.user-theme-dark .form-control::placeholder,
body.user-theme-dark textarea.form-control::placeholder {
  color: #64748b;
}

body.user-theme-dark .company-edit-section .form-check,
body.user-theme-dark .address-lookup.card,
body.user-theme-dark .company-edit-actions {
  border-color: #334155;
  background: rgba(17, 24, 39, 0.92);
}

body.user-theme-dark .btn-outline-secondary {
  border-color: #64748b;
  color: #e5edf7;
  background: transparent;
}

body.user-theme-dark .btn-outline-secondary:hover,
body.user-theme-dark .btn-outline-secondary:focus,
body.user-theme-dark .btn-outline-secondary:active {
  border-color: #94a3b8 !important;
  background: #1e293b !important;
  color: #ffffff !important;
}

body.user-theme-dark .btn-outline-primary {
  border-color: #60a5fa;
  color: #bfdbfe;
  background: rgba(30, 41, 59, 0.45);
}

body.user-theme-dark .btn-outline-primary:hover,
body.user-theme-dark .btn-outline-primary:focus,
body.user-theme-dark .btn-outline-primary:active {
  border-color: var(--company-action-border, #0b5ed7) !important;
  background: var(--company-action-bg, #0d6efd) !important;
  color: var(--company-action-text, #fff) !important;
}

body.user-theme-dark .dataTables_wrapper,
body.user-theme-dark .dropdown-menu,
body.user-theme-dark .topnav-dropdown,
body.user-theme-dark .account-menu-dropdown {
  color: #e5edf7;
  border-color: #334155;
  background: #111827;
}

body.user-theme-dark .dataTables_wrapper .form-control,
body.user-theme-dark .dataTables_wrapper .form-select {
  background: #0f172a;
}

body.user-theme-dark .dataTables_wrapper .dataTables_info,
body.user-theme-dark .dataTables_wrapper .dataTables_length,
body.user-theme-dark .dataTables_wrapper .dataTables_filter,
body.user-theme-dark .dataTables_wrapper .dataTables_paginate {
  color: #94a3b8 !important;
}

body.user-theme-dark .dataTables_wrapper .page-link,
body.user-theme-dark .pagination .page-link {
  color: #dbe5f0;
  border-color: #475569;
  background: #172033;
}

body.user-theme-dark .dataTables_wrapper .page-link:hover,
body.user-theme-dark .pagination .page-link:hover {
  color: var(--company-action-text, #fff);
  border-color: var(--company-action-border, #0b5ed7);
  background: var(--company-action-bg, #0d6efd);
}

body.user-theme-dark .dataTables_wrapper .page-item.active .page-link,
body.user-theme-dark .pagination .page-item.active .page-link {
  border-color: var(--company-brand, #0d6efd);
  background: var(--company-brand, #0d6efd);
  color: var(--company-brand-contrast, #fff);
}

body.user-theme-dark .dataTables_wrapper .page-item.disabled .page-link,
body.user-theme-dark .pagination .page-item.disabled .page-link {
  color: #64748b;
  border-color: #334155;
  background: #0f172a;
}

body.user-theme-dark .dataTables_wrapper .page-link:focus,
body.user-theme-dark .pagination .page-link:focus {
  box-shadow: 0 0 0 0.2rem color-mix(in srgb, var(--company-action-bg, #0d6efd) 22%, transparent);
}

body.user-theme-dark .table .btn,
body.user-theme-dark .dataTables_wrapper .btn {
  box-shadow: none;
}

body.user-theme-dark .dropdown-divider {
  border-color: #334155;
}

body.user-theme-dark .dropdown-header,
body.user-theme-dark .dropdown-item-text,
body.user-theme-dark .fw-semibold.text-dark {
  color: #cbd5e1 !important;
}

body.user-theme-dark .account-menu-name,
body.user-theme-dark .account-menu-company-name {
  color: #f8fafc !important;
}

body.user-theme-dark .account-menu-role,
body.user-theme-dark .account-menu-company-label,
body.user-theme-dark .account-menu-section-label {
  color: #94a3b8 !important;
}

body.user-theme-dark .quote-pipeline-summary-card strong,
body.user-theme-dark .quote-kanban-column h3,
body.user-theme-dark .quote-kanban-item h4,
body.user-theme-dark .customer-activity-title,
body.user-theme-dark .quote-kanban-item-value {
  color: #f8fafc;
}

body.user-theme-dark .quote-pipeline-summary-meta,
body.user-theme-dark .quote-kanban-column p,
body.user-theme-dark .quote-kanban-item-meta,
body.user-theme-dark .quote-kanban-item-dates,
body.user-theme-dark .quote-kanban-empty,
body.user-theme-dark .customer-activity-meta,
body.user-theme-dark .quote-kanban-item-number {
  color: #94a3b8;
}

body.user-theme-dark .quote-kanban-column-count {
  color: #e5edf7;
  background: rgba(15, 23, 42, 0.48);
  border-color: #475569;
}

body.user-theme-dark .customer-activity-body {
  color: #cbd5e1;
}

body.user-theme-dark .customer-activity-content {
  border-bottom-color: #334155;
}

body.user-theme-dark .customer-task-card,
body.user-theme-dark .customer-call-card,
body.user-theme-dark .customer-communication-card {
  border-color: #334155;
  background: linear-gradient(180deg, #172033 0%, #111827 100%);
  box-shadow: 0 16px 36px rgba(2, 6, 23, 0.28);
}

body.user-theme-dark .customer-task-title,
body.user-theme-dark .customer-call-title,
body.user-theme-dark .customer-communication-title,
body.user-theme-dark .customer-tag-chip {
  color: #f8fafc;
}

body.user-theme-dark .customer-task-meta,
body.user-theme-dark .customer-task-links,
body.user-theme-dark .customer-call-meta,
body.user-theme-dark .customer-communication-meta,
body.user-theme-dark .customer-task-body,
body.user-theme-dark .customer-call-body {
  color: #cbd5e1;
}

body.user-theme-dark .customer-thread-message {
  border-top-color: #334155;
}

body.user-theme-dark .customer-thread-message-top {
  color: #e2e8f0;
}

body.user-theme-dark .customer-tag-chip {
  background: color-mix(in srgb, var(--tag-colour, #3D78D8) 22%, #172033);
  border-color: color-mix(in srgb, var(--tag-colour, #3D78D8) 42%, #172033);
}

body.user-theme-dark .customer-call-badge {
  background: rgba(14, 116, 144, 0.28);
  color: #bae6fd;
}

body.user-theme-dark .customer-directory-hero,
body.user-theme-dark .customer-directory-hero-aside {
  border-color: #334155;
  background:
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.1), transparent 26%),
    linear-gradient(180deg, #172033 0%, #111827 100%);
  box-shadow: 0 18px 36px rgba(2, 6, 23, 0.28);
}

body.user-theme-dark .customer-directory-hero h3,
body.user-theme-dark .customer-directory-hero-aside strong,
body.user-theme-dark .customer-directory-count {
  color: #f8fafc;
}

body.user-theme-dark .customer-directory-hero p,
body.user-theme-dark .customer-directory-hero-label,
body.user-theme-dark .customer-directory-meta {
  color: #cbd5e1;
}

body.user-theme-dark .customer-directory-count {
  background: rgba(30, 41, 59, 0.9);
}

body.user-theme-dark .customer-directory-toggle .btn.active {
  background: color-mix(in srgb, var(--company-brand, #1f3f75) 80%, #0f172a);
  border-color: color-mix(in srgb, var(--company-brand, #1f3f75) 80%, #0f172a);
}

body.user-theme-dark .customer-directory-card,
body.user-theme-dark .customer-directory-card-metric {
  border-color: #334155;
  background:
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.08), transparent 24%),
    linear-gradient(180deg, #172033 0%, #111827 100%);
  box-shadow: 0 18px 36px rgba(2, 6, 23, 0.28);
}

body.user-theme-dark .customer-directory-card h3,
body.user-theme-dark .customer-directory-card-metric strong {
  color: #f8fafc;
}

body.user-theme-dark .customer-directory-card-metric span {
  color: #cbd5e1;
}

body.user-theme-dark .account-menu-company {
  border-color: #334155;
  background: linear-gradient(180deg, #172033 0%, #111827 100%);
}

body.user-theme-dark .account-menu-company-icon {
  background: color-mix(in srgb, var(--company-brand, #1f3f75) 24%, #172033);
  color: #dbeafe;
}

body.user-theme-dark .account-menu-identity,
body.user-theme-dark .account-menu-actions {
  border-color: #334155;
  background: linear-gradient(180deg, #172033 0%, #111827 100%);
}

body.user-theme-dark .account-menu-switch-indicator {
  color: #64748b;
}

body.user-theme-dark .account-menu-footer {
  border-top-color: #334155;
}

body.user-theme-dark .account-menu-action-copy .bi {
  color: #94a3b8;
}

body.user-theme-dark .account-menu-logout {
  color: #fca5a5;
}

body.user-theme-dark .notification-card-company {
  color: #cbd5e1 !important;
}

body.user-theme-dark .customer-create-modal .modal-content {
  background: linear-gradient(180deg, #111827 0%, #0f172a 100%);
}

body.user-theme-dark .customer-create-section {
  border-color: #334155;
  background: linear-gradient(180deg, #172033 0%, #111827 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

body.user-theme-dark .customer-create-section-kicker {
  color: #93c5fd;
}

body.user-theme-dark .customer-create-section-header h6 {
  color: #f8fafc;
}

body.user-theme-dark .customer-create-section-header p {
  color: #94a3b8;
}

body.user-theme-dark .customer-create-modal .address-lookup.card {
  border-color: #334155;
  background: linear-gradient(180deg, #172033 0%, #111827 100%);
  box-shadow: 0 0.8rem 1.8rem rgba(2, 6, 23, 0.24);
}

body.user-theme-dark .notification-dropdown,
body.user-theme-dark .notification-dropdown-shell,
body.user-theme-dark .notification-dropdown-entry {
  background: #111827 !important;
}

body.user-theme-dark .notification-dropdown-header {
  border-bottom-color: #334155 !important;
}

body.user-theme-dark .notification-dropdown-title,
body.user-theme-dark .notification-card-title,
body.user-theme-dark .notification-dropdown-empty-title {
  color: #f8fafc !important;
}

body.user-theme-dark .notification-dropdown-subtitle,
body.user-theme-dark .notification-card-message,
body.user-theme-dark .notification-dropdown-empty-text,
body.user-theme-dark .notification-card-meta,
body.user-theme-dark .notification-card-dismiss {
  color: #94a3b8 !important;
}

body.user-theme-dark .notification-dropdown-viewall,
body.user-theme-dark .notification-card-action {
  color: #93c5fd !important;
}

body.user-theme-dark .notification-card,
body.user-theme-dark .notification-card.unread {
  border-color: #334155 !important;
  background: linear-gradient(180deg, #172033 0%, #111827 100%) !important;
  box-shadow: 0 0.8rem 1.75rem rgba(2, 6, 23, 0.32) !important;
}

body.user-theme-dark .notification-card-link {
  color: #e5edf7 !important;
}

body.user-theme-dark .dropdown-item {
  color: #e5edf7;
}

body.user-theme-dark .dropdown-item:hover,
body.user-theme-dark .dropdown-item:focus,
body.user-theme-dark .dropdown-item.active {
  color: #ffffff;
  background: #1e293b;
}

body.login-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(13, 110, 253, 0.14), transparent 28%),
    linear-gradient(135deg, #eef4fb 0%, #f8fbff 45%, #eef2f7 100%);
}

.login-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.25rem;
}

.login-frame {
  width: min(1120px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(22rem, 28rem);
  overflow: hidden;
  border: 1px solid #d8e3ef;
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 1.5rem 4rem rgba(15, 23, 42, 0.12);
  backdrop-filter: blur(10px);
}

.login-brand {
  position: relative;
  padding: 3.25rem 3rem;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.18), transparent 24%),
    linear-gradient(160deg, #0f2647 0%, #173963 45%, #1f4f83 100%);
  color: #f8fbff;
}

.login-brand::after {
  content: "";
  position: absolute;
  inset: auto -3rem -4rem auto;
  width: 14rem;
  height: 14rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  filter: blur(4px);
}

.login-kicker {
  display: inline-block;
  margin-bottom: 0.85rem;
  padding: 0.4rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #dbeafe;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.login-brand h1 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.login-brand > p {
  max-width: 34rem;
  margin: 1.1rem 0 0;
  color: rgba(248, 251, 255, 0.84);
  font-size: 1rem;
  line-height: 1.75;
}

.login-points {
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 1rem;
}

.login-points li {
  padding: 1rem 1.05rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(248, 251, 255, 0.84);
  line-height: 1.65;
}

.login-points strong {
  display: block;
  margin-bottom: 0.2rem;
  color: #ffffff;
  font-weight: 700;
}

.login-panel {
  padding: 3rem 2.4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.login-panel h2 {
  margin: 0.2rem 0 0;
  color: #0f172a;
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.login-form {
  margin-top: 1.5rem;
  padding: 1.4rem;
  border: 1px solid #dbe4ee;
  border-radius: 1.15rem;
  background: #ffffff;
  box-shadow: 0 1rem 2rem rgba(15, 23, 42, 0.05);
}

.login-page .login-form .form-label {
  color: #334155;
  font-weight: 700;
}

.login-page .login-form .form-control {
  min-height: 3rem;
  border-color: #cfd9e5;
  border-radius: 0.9rem;
  background: #fbfdff;
}

.login-page .login-form .form-control:focus {
  border-color: #8cb4ea;
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.12);
}

.login-page .login-form .btn-primary {
  min-height: 3rem;
  border-radius: 0.95rem;
  font-weight: 700;
}

@media (max-width: 991.98px) {
  .login-frame {
    grid-template-columns: 1fr;
  }

  .login-brand,
  .login-panel {
    padding: 2rem 1.4rem;
  }
}

.company-edit-section .form-check {
  padding: 0.9rem 1rem 0.9rem 2.35rem;
  border: 1px solid #dbe4ee;
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.8);
}

.company-edit-section .form-text {
  color: #64748b;
  line-height: 1.5;
}

.company-edit-actions {
  position: sticky;
  bottom: 0;
  z-index: 5;
  padding: 1rem 1.1rem;
  border: 1px solid #dbe4ee;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 -0.25rem 1rem rgba(15, 23, 42, 0.06);
}

.password-policy-list {
  display: grid;
  gap: 0.45rem;
}

.password-policy-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.password-policy-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: #ced4da;
}

.password-policy-item.is-met .password-policy-dot {
  background: #198754;
}

.modal {
  z-index: 2055 !important;
  overflow-x: hidden;
  overflow-y: auto;
}

.modal-backdrop {
  z-index: 2050 !important;
  background: rgba(15, 23, 42, 0.45);
}

.modal-dialog {
  margin: 1rem auto;
}

.modal-dialog-scrollable {
  height: calc(100% - 2rem);
}

.modal-content {
  border: 1px solid #dbe4ee;
  border-radius: 1rem;
  box-shadow: 0 1.25rem 3rem rgba(15, 23, 42, 0.20);
  overflow: hidden;
  background: #ffffff;
}

.modal-content > form {
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
}

.modal-header,
.modal-footer {
  padding: 1rem 1.1rem;
  background: linear-gradient(180deg, #f8fbff 0%, #f2f6fb 100%);
  border-color: #e5e7eb;
}

.modal-title {
  color: #111827;
  font-weight: 700;
}

.modal-body {
  flex: 1 1 auto;
  min-height: 0;
  padding: 1rem 1.1rem;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.modal-dialog-scrollable .modal-content {
  max-height: 100%;
}

.modal-dialog-scrollable .modal-content > form {
  max-height: 100%;
}

.modal-dialog-scrollable .modal-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
}

.modal-open {
  overflow: hidden;
}

.modal-open .modal {
  overflow-x: hidden;
  overflow-y: auto;
}

.modal .profile-field,
.modal .quote-create-section {
  border-color: #d9e4f0;
  border-radius: 0.9rem;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.customer-create-modal .modal-content {
  background:
    linear-gradient(180deg, rgba(248, 251, 255, 0.98) 0%, rgba(255, 255, 255, 0.98) 18%),
    #ffffff;
}

.customer-create-layout {
  display: grid;
  gap: 1rem;
}

.customer-create-section {
  border: 1px solid #dbe5f0;
  border-radius: 1.1rem;
  padding: 1rem;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.customer-create-section-header {
  margin-bottom: 0.9rem;
}

.customer-create-section-kicker {
  display: inline-block;
  margin-bottom: 0.35rem;
  color: var(--company-brand-dark, #122949);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.customer-create-section-header h6 {
  margin: 0;
  color: #0f172a;
  font-size: 1rem;
  font-weight: 800;
}

.customer-create-section-header p {
  margin: 0.3rem 0 0;
  color: #64748b;
  font-size: 0.88rem;
  line-height: 1.5;
}

.customer-create-modal .address-lookup.card {
  border-color: #d6e3f2;
  border-radius: 1rem;
  background: linear-gradient(180deg, #f6faff 0%, #ffffff 100%);
  box-shadow: 0 0.8rem 1.8rem rgba(15, 23, 42, 0.05);
}

.customer-create-modal .modal-footer {
  gap: 0.65rem;
}

.customer-contact-modal .modal-body {
  background: linear-gradient(180deg, #fbfdff 0%, #f7fbff 100%);
}

.customer-contact-form {
  display: grid;
  gap: 1rem;
}

.customer-contact-panel {
  display: grid;
  gap: 1rem;
  padding: 1rem 1.05rem;
  border: 1px solid #dbe5f0;
  border-radius: 1rem;
  background:
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.05), transparent 32%),
    linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.customer-contact-panel-head {
  display: grid;
  gap: 0.3rem;
}

.customer-contact-panel-copy {
  margin: 0;
  color: #64748b;
  line-height: 1.55;
}

.customer-contact-toggle {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 100%;
  padding: 0.95rem 1rem;
  border: 1px solid #dbe5f0;
  border-radius: 0.9rem;
  background: linear-gradient(180deg, #ffffff 0%, #f9fbfd 100%);
}

.customer-contact-toggle .form-check-input {
  margin-top: 0;
  flex: 0 0 auto;
}

.customer-contact-toggle .form-check-label {
  margin: 0;
  font-weight: 600;
  color: #1f2937;
}

body.user-theme-dark .customer-contact-modal .modal-body {
  background: linear-gradient(180deg, #111827 0%, #0f172a 100%);
}

body.user-theme-dark .customer-contact-panel {
  border-color: #334155;
  background:
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.08), transparent 28%),
    linear-gradient(180deg, #172033 0%, #111827 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

body.user-theme-dark .customer-contact-panel-copy {
  color: #94a3b8;
}

body.user-theme-dark .customer-contact-toggle {
  border-color: #334155;
  background: linear-gradient(180deg, #172033 0%, #101827 100%);
}

body.user-theme-dark .customer-contact-toggle .form-check-label {
  color: #e5edf7;
}

.profile-company-switch-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.notification-dropdown a {
  text-decoration: none;
}

.btn-primary {
  border-color: var(--company-action-border, #0b5ed7);
  background-color: var(--company-action-bg, #0d6efd);
  color: var(--company-action-text, #fff);
  box-shadow: 0 0.125rem 0.45rem rgba(15, 23, 42, 0.10);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  border-color: var(--company-action-border, #0b5ed7) !important;
  background-color: var(--company-action-border, #0b5ed7) !important;
  color: var(--company-action-text, #fff) !important;
}

.btn-outline-primary {
  border-color: var(--company-action-border, #0b5ed7);
  color: var(--company-action-soft-text, #0d6efd);
  background: var(--company-action-soft-bg, #fff);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active {
  border-color: var(--company-action-border, #0b5ed7) !important;
  background-color: var(--company-action-bg, #0d6efd) !important;
  color: var(--company-action-text, #fff) !important;
}

.btn-outline-secondary {
  border-color: #94a3b8;
  color: #334155;
  background: #fff;
}

.btn-outline-secondary:hover,
.btn-outline-secondary:focus,
.btn-outline-secondary:active {
  border-color: #64748b !important;
  background: #e2e8f0 !important;
  color: #0f172a !important;
}

.btn-secondary {
  border-color: #64748b;
  background: #64748b;
  color: #fff;
}

.btn-secondary:hover,
.btn-secondary:focus,
.btn-secondary:active {
  border-color: #475569 !important;
  background: #475569 !important;
  color: #fff !important;
}

.calendar-month-heading {
  font-size: 1.15rem;
  font-weight: 700;
  color: #111827;
}

.calendar-summary-strip {
  margin-bottom: 1.5rem;
}

.calendar-nav-card {
  border-color: rgba(148, 163, 184, 0.24);
}

.calendar-view-switcher {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}

.calendar-view-tab {
  display: grid;
  gap: 0.2rem;
  padding: 0.95rem 1rem;
  border: 1px solid #d7e0eb;
  border-radius: 0.95rem;
  background: rgba(255, 255, 255, 0.86);
  color: inherit;
  text-decoration: none;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.04);
}

.calendar-view-tab.is-active {
  border-color: color-mix(in srgb, var(--company-brand, #0d6efd) 48%, #d7e0eb);
  background: linear-gradient(180deg, color-mix(in srgb, var(--company-brand, #0d6efd) 10%, #ffffff) 0%, #ffffff 100%);
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
}

.calendar-view-tab-label {
  font-size: 0.95rem;
  font-weight: 700;
  color: #111827;
}

.calendar-view-tab-copy {
  color: #64748b;
  font-size: 0.82rem;
}

.calendar-month-heading-wrap {
  display: grid;
  gap: 0.2rem;
  text-align: center;
}

.calendar-month-meta {
  color: #64748b;
  font-size: 0.9rem;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.calendar-grid-head {
  padding: 0.85rem 0.75rem;
  border-bottom: 1px solid #e5e7eb;
  background: #f8fafc;
  color: #6b7280;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.calendar-day {
  min-height: 10rem;
  padding: 0.75rem;
  border-right: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
  background: #fff;
}

.calendar-day:nth-child(7n) {
  border-right: 0;
}

.calendar-day.is-muted {
  background: #f8fafc;
  color: #9ca3af;
}

.calendar-day.is-today {
  background: #eef5ff;
}

.calendar-day-number {
  font-weight: 700;
  color: #111827;
}

.calendar-day-events {
  display: grid;
  gap: 0.4rem;
  margin-top: 0.6rem;
}

.calendar-pill {
  display: grid;
  gap: 0.15rem;
  width: 100%;
  padding: 0.45rem 0.55rem;
  border: 1px solid color-mix(in srgb, var(--event-color, #0d6efd) 25%, #e5e7eb);
  border-left: 0.3rem solid var(--event-color, #0d6efd);
  border-radius: 0.6rem;
  background: #fff;
  text-align: left;
}

.calendar-pill.is-complete {
  background: #f3f4f6;
  border-left-color: #98a2b3;
  opacity: 0.9;
}

.calendar-pill.is-complete .calendar-pill-time,
.calendar-pill.is-complete .calendar-pill-title {
  color: #6b7280;
}

.calendar-pill.is-complete .calendar-pill-title::before {
  content: "Completed \00B7 ";
  font-weight: 700;
}

.calendar-pill-time {
  color: #6b7280;
  font-size: 0.72rem;
  font-weight: 700;
}

.calendar-pill-title {
  color: #111827;
  font-size: 0.85rem;
  font-weight: 600;
}

.calendar-pill-vehicle {
  color: #4b5563;
  font-size: 0.72rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calendar-vehicle-availability {
  margin-bottom: 0;
}

.calendar-vehicle-booking-list {
  display: grid;
  gap: 0.6rem;
}

.calendar-more {
  color: #6b7280;
  font-size: 0.78rem;
  font-weight: 600;
}

.calendar-type-list {
  display: grid;
  gap: 0.65rem;
}

.calendar-type-chip {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  background: #fff;
}

.calendar-type-copy {
  display: grid;
  gap: 0.05rem;
  min-width: 0;
  flex: 1 1 auto;
}

.calendar-type-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  padding: 0.25rem 0.55rem;
  border: 1px solid #d7e0eb;
  border-radius: 999px;
  color: #334155;
  background: #f8fafc;
  font-size: 0.78rem;
  font-weight: 700;
}

.calendar-type-dot {
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 999px;
  flex: 0 0 auto;
}

.calendar-side-list {
  display: grid;
  gap: 0.75rem;
}

.calendar-side-item {
  display: grid;
  gap: 0.45rem;
  width: 100%;
  padding: 0.9rem 0.95rem;
  border: 1px solid color-mix(in srgb, var(--event-color, #0d6efd) 18%, #d7e0eb);
  border-left: 0.3rem solid var(--event-color, #0d6efd);
  border-radius: 0.9rem;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  text-align: left;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.05);
}

.calendar-side-item.is-complete {
  border-left-color: #94a3b8;
  opacity: 0.92;
}

.calendar-side-item-topline,
.calendar-side-item-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.calendar-side-item-date,
.calendar-side-item-status,
.calendar-side-item-meta {
  color: #64748b;
  font-size: 0.78rem;
}

.calendar-side-item-status {
  font-weight: 700;
}

.calendar-side-item-title {
  color: #111827;
  font-size: 0.95rem;
  font-weight: 700;
}

.calendar-side-empty {
  padding: 0.95rem 1rem;
  border: 1px dashed #cbd5e1;
  border-radius: 0.9rem;
  color: #64748b;
  background: #f8fafc;
  line-height: 1.55;
}

.calendar-week-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.calendar-week-day {
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  overflow: hidden;
}

.calendar-week-day.is-today {
  border-color: color-mix(in srgb, var(--company-brand, #0d6efd) 35%, #d7e0eb);
}

.calendar-week-day-head {
  padding: 0.95rem 1rem 0.85rem;
  border-bottom: 1px solid #e5e7eb;
  background: rgba(248, 250, 252, 0.88);
}

.calendar-week-day-name {
  color: #111827;
  font-size: 0.98rem;
  font-weight: 700;
}

.calendar-week-day-date {
  color: #64748b;
  font-size: 0.82rem;
}

.calendar-week-day-body {
  display: grid;
  gap: 0.6rem;
  padding: 1rem;
}

.calendar-agenda-list {
  display: grid;
  gap: 0.9rem;
}

.calendar-agenda-card {
  display: grid;
  grid-template-columns: 5.25rem minmax(0, 1fr);
  gap: 1rem;
  width: 100%;
  padding: 1rem;
  border: 1px solid color-mix(in srgb, var(--event-color, #0d6efd) 18%, #d7e0eb);
  border-left: 0.35rem solid var(--event-color, #0d6efd);
  border-radius: 1rem;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  text-align: left;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.05);
}

.calendar-agenda-card.is-complete {
  border-left-color: #94a3b8;
  opacity: 0.94;
}

.calendar-agenda-date {
  display: grid;
  align-content: start;
  gap: 0.1rem;
  padding-right: 0.4rem;
  border-right: 1px solid #e5e7eb;
  color: #64748b;
  font-size: 0.8rem;
  text-transform: uppercase;
}

.calendar-agenda-date strong {
  color: #111827;
  font-size: 1rem;
  text-transform: none;
}

.calendar-agenda-main {
  display: grid;
  gap: 0.45rem;
  min-width: 0;
}

.calendar-agenda-title-row {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.calendar-agenda-title-row h4 {
  margin: 0;
  color: #111827;
  font-size: 1rem;
  font-weight: 700;
}

.calendar-agenda-meta {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  color: #64748b;
  font-size: 0.82rem;
}

.calendar-agenda-copy {
  margin: 0;
  color: #475569;
  line-height: 1.55;
}

.calendar-entry-meta {
  color: #6b7280;
}

.calendar-entry-view {
  display: grid;
  gap: 1rem;
}

.calendar-entry-summary,
.calendar-entry-notes {
  padding: 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  background: #fff;
}

.calendar-entry-section-label,
.calendar-modal-type {
  color: #6b7280;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.suggestions-board {
  display: grid;
  gap: 1rem;
}

.suggestion-card {
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.86);
  padding: 1rem 1.1rem;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
}

.suggestion-card-head,
.suggestion-card-footer,
.suggestion-card-meta,
.suggestion-vote-group,
.suggestion-counts,
.suggestion-badge-row,
.suggestion-stage-list,
.suggestion-project-list {
  display: flex;
  gap: 0.75rem;
}

.suggestion-card-head,
.suggestion-card-footer {
  justify-content: space-between;
  align-items: flex-start;
}

.suggestion-card-meta,
.suggestion-counts,
.suggestion-badge-row,
.suggestion-stage-list,
.suggestion-project-list {
  flex-wrap: wrap;
}

.suggestion-card-title {
  margin: 0 0 0.4rem;
  font-size: 1.1rem;
}

.suggestion-badge-row {
  margin-bottom: 0.7rem;
}

.suggestion-card-meta {
  color: #64748b;
  font-size: 0.92rem;
}

.suggestion-card-body {
  margin: 0.95rem 0 1rem;
  color: #1e293b;
  line-height: 1.6;
}

.suggestion-vote-group {
  align-items: center;
}

.suggestion-stage-chip,
.suggestion-project-chip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.9rem;
  padding: 0.8rem 0.95rem;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.82);
  color: inherit;
  text-decoration: none;
}

.suggestion-stage-chip.active,
.suggestion-project-chip.active {
  border-color: rgba(37, 99, 235, 0.45);
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.22);
}

.suggestion-stage-list {
  flex-direction: column;
}

.suggestion-project-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.suggestion-management-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
  padding: 0.95rem 0 1rem;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  margin-top: 0.25rem;
}

.suggestion-management-action {
  display: flex;
  align-items: end;
}

.suggestion-note-list {
  display: grid;
  gap: 0.85rem;
}

.suggestion-note-card {
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.84);
  padding: 0.9rem 1rem;
}

.suggestion-note-card-internal {
  background: rgba(248, 250, 252, 0.96);
  border-style: dashed;
}

.bug-report-guidance-list,
.bug-report-list {
  display: grid;
  gap: 0.9rem;
}

.bug-report-intro-grid,
.bug-report-info-columns {
  display: grid;
  gap: 1rem;
}

.bug-report-intro-grid {
  grid-template-columns: minmax(240px, 0.9fr) minmax(0, 1.6fr);
  align-items: start;
}

.bug-report-info-columns {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.bug-report-guidance-item {
  padding: 0.85rem 0.95rem;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.84);
}

.bug-report-detail-grid,
.bug-report-review-grid {
  display: grid;
  gap: 0.9rem;
}

.bug-report-detail-grid {
  margin: 0.95rem 0 1rem;
}

.bug-report-review-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding-top: 1rem;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.bug-report-review-action {
  display: flex;
  align-items: end;
}

.bug-report-review-full {
  grid-column: 1 / -1;
}

.theme-dark .suggestion-card {
  background: rgba(15, 23, 42, 0.9);
  border-color: rgba(148, 163, 184, 0.2);
  box-shadow: 0 18px 40px rgba(2, 6, 23, 0.32);
}

.theme-dark .suggestion-stage-chip,
.theme-dark .suggestion-project-chip {
  background: rgba(15, 23, 42, 0.88);
  border-color: rgba(148, 163, 184, 0.2);
}

.theme-dark .suggestion-note-card,
.theme-dark .suggestion-note-card-internal {
  background: rgba(15, 23, 42, 0.88);
  border-color: rgba(148, 163, 184, 0.2);
}

.theme-dark .bug-report-guidance-item {
  background: rgba(15, 23, 42, 0.88);
  border-color: rgba(148, 163, 184, 0.2);
}

.theme-dark .suggestion-card-meta,
.theme-dark .suggestion-card-body {
  color: #cbd5e1;
}

@media (max-width: 991.98px) {
  .customer-profile-layout {
    grid-template-columns: 1fr;
  }

  .customer-profile-grid {
    grid-template-columns: 1fr;
  }

  .customer-directory-hero-grid {
    grid-template-columns: 1fr;
  }

  .customer-directory-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quote-pipeline-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-header {
    flex-direction: column;
  }

  .page-header > .d-flex,
  .page-header-actions {
    margin-left: 0;
  }

  .suggestion-management-grid {
    grid-template-columns: 1fr;
  }

  .bug-report-review-grid {
    grid-template-columns: 1fr;
  }

  .bug-report-intro-grid,
  .bug-report-info-columns {
    grid-template-columns: 1fr;
  }

  .billing-header-actions {
    align-items: stretch;
    max-width: none;
    width: 100%;
  }

  .billing-header-actions > * {
    width: 100%;
  }

  .billing-header-actions form,
  .billing-header-actions .btn {
    width: 100%;
  }

  .billing-addon-quantity-row {
    grid-template-columns: 1fr;
  }

  .document-upload-panel {
    grid-template-columns: 1fr;
  }

  .document-upload-form {
    grid-template-columns: 1fr;
  }

  .dashboard-metric-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-timeline-item {
    grid-template-columns: 1fr;
  }

  .company-edit-layout {
    grid-template-columns: 1fr;
  }

  .company-edit-section-wide {
    grid-column: auto;
  }

  .company-edit-card > .card-body,
  .company-edit-section {
    padding: 1rem;
  }

  .calendar-month-heading-wrap {
    width: 100%;
    text-align: left;
  }

  .calendar-view-switcher,
  .calendar-week-grid {
    grid-template-columns: 1fr;
  }

  .calendar-grid {
    grid-template-columns: 1fr;
  }

  .calendar-grid-head {
    display: none;
  }

  .calendar-day {
    min-height: auto;
    border-right: 0;
  }

  .calendar-side-item-topline,
  .calendar-side-item-meta,
  .calendar-agenda-title-row,
  .calendar-agenda-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .calendar-agenda-card {
    grid-template-columns: 1fr;
  }

  .calendar-agenda-date {
    border-right: 0;
    border-bottom: 1px solid #e5e7eb;
    padding-right: 0;
    padding-bottom: 0.75rem;
  }
}

@media (max-width: 767.98px) {
  .topbar {
    padding-inline: 0.75rem;
  }

  .content-panel {
    padding-inline: 0.85rem !important;
  }

  .stat-value {
    font-size: 1.75rem;
  }

  .company-edit-actions {
    padding: 0.9rem;
  }

  .notification-dropdown.dropdown-menu {
    position: fixed !important;
    inset-inline: 0.5rem !important;
    left: 0.5rem !important;
    right: 0.5rem !important;
    transform: none !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: calc(100vw - 1rem) !important;
    top: 4.5rem !important;
    margin-top: 0 !important;
  }
}

@media (max-width: 575.98px) {
  .quote-pipeline-summary {
    grid-template-columns: 1fr;
  }

  .quote-kanban-item-foot {
    flex-direction: column;
    align-items: flex-start;
  }

  .quote-kanban-item-dates {
    text-align: left;
  }

  .customer-task-card-head,
  .customer-call-card-head,
  .customer-communication-head {
    flex-direction: column;
  }

  .customer-directory-card-grid,
  .customer-directory-card-metrics {
    grid-template-columns: 1fr;
  }

  .customer-directory-card-foot {
    flex-direction: column;
    align-items: flex-start;
  }
}
