/*
 * WhatsRay customer design system
 * Shared customer-area primitives only. The public site is intentionally out of scope.
 */
body.is-customer-system:not(.is-inbox) {
  --cs-green: #00a884;
  --cs-green-deep: #008069;
  --cs-green-soft: #eaf7f2;
  --cs-ink: #17211c;
  --cs-muted: #66746d;
  --cs-canvas: #f6f8f7;
  --cs-surface: #ffffff;
  --cs-subtle: #f8faf9;
  --cs-line: #e5ebe8;
  --cs-line-strong: #d5dfda;
  --cs-danger: #df3e49;
  --cs-radius-sm: 9px;
  --cs-radius: 12px;
  --cs-radius-lg: 16px;
  --cs-shadow-menu: 0 12px 32px rgba(20, 40, 30, .10);
  margin: 0;
  background: var(--cs-canvas) !important;
  color: var(--cs-ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body.is-customer-system:not(.is-inbox) .dashboard,
body.is-customer-system:not(.is-inbox) .dashboard__inner,
body.is-customer-system:not(.is-inbox) .dashboard__right,
body.is-customer-system:not(.is-inbox) .dashboard-body {
  background: var(--cs-canvas) !important;
}

/* Application sidebar */
body.is-customer-system:not(.is-inbox) .sidebar-menu {
  background: var(--cs-surface) !important;
  border-right: 1px solid var(--cs-line) !important;
  box-shadow: none !important;
}
body.is-customer-system:not(.is-inbox) .sidebar-menu__inner {
  scrollbar-color: #cfd8d4 transparent;
}
body.is-customer-system:not(.is-inbox) .sidebar-menu-list__title {
  margin: 22px 14px 8px !important;
  color: #7b8781 !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  letter-spacing: .09em !important;
  text-transform: uppercase;
}
body.is-customer-system:not(.is-inbox) .sidebar-menu-list__item {
  margin: 2px 8px !important;
}
body.is-customer-system:not(.is-inbox) .sidebar-menu-list__link {
  min-height: 44px !important;
  padding: 9px 12px !important;
  border: 1px solid transparent !important;
  border-radius: var(--cs-radius-sm) !important;
  background: transparent !important;
  color: #52645b !important;
  box-shadow: none !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease !important;
}
body.is-customer-system:not(.is-inbox) .sidebar-menu-list__link:hover {
  background: #f6f8f7 !important;
  color: var(--cs-ink) !important;
}
body.is-customer-system:not(.is-inbox) .sidebar-menu-list__item.active > .sidebar-menu-list__link,
body.is-customer-system:not(.is-inbox) .sidebar-menu-list__link.active {
  background: var(--cs-green-soft) !important;
  border-color: #d9eee5 !important;
  color: var(--cs-green-deep) !important;
  box-shadow: none !important;
}
body.is-customer-system:not(.is-inbox) .sidebar-menu-list__link .icon,
body.is-customer-system:not(.is-inbox) .sidebar-menu-list__link i {
  color: currentColor !important;
}
body.is-customer-system:not(.is-inbox) .sidebar-submenu {
  margin: 3px 0 7px !important;
  padding: 3px 0 3px 14px !important;
  border-left: 1px solid var(--cs-line) !important;
}
body.is-customer-system:not(.is-inbox) .sidebar-submenu-list__link {
  border-radius: 8px !important;
  color: var(--cs-muted) !important;
  font-size: 12.5px !important;
}
body.is-customer-system:not(.is-inbox) .sidebar-submenu-list__link:hover,
body.is-customer-system:not(.is-inbox) .sidebar-submenu-list__item.active .sidebar-submenu-list__link {
  background: #f6f8f7 !important;
  color: var(--cs-green-deep) !important;
}

/* Top bar */
body.is-customer-system:not(.is-inbox) .dashboard-header {
  min-height: 72px !important;
  padding: 0 24px !important;
  background: rgba(255, 255, 255, .96) !important;
  border-bottom: 1px solid var(--cs-line) !important;
  box-shadow: none !important;
  backdrop-filter: blur(12px);
}
body.is-customer-system:not(.is-inbox) .dashboard-header__shape { display: none !important; }
body.is-customer-system:not(.is-inbox) .dashboard-header .title {
  margin: 0 !important;
  color: var(--cs-ink) !important;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  font-size: 20px !important;
  font-weight: 650 !important;
  letter-spacing: -.025em;
}
body.is-customer-system:not(.is-inbox) .dashboard-body__bar-icon {
  width: 38px !important;
  height: 38px !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--cs-line) !important;
  border-radius: 10px !important;
  background: #fff !important;
  color: #52645b !important;
}
body.is-customer-system:not(.is-inbox) .user-info__button {
  padding: 5px 7px !important;
  border: 1px solid transparent !important;
  border-radius: 12px !important;
  background: transparent !important;
}
body.is-customer-system:not(.is-inbox) .user-info__button:hover {
  background: var(--cs-subtle) !important;
  border-color: var(--cs-line) !important;
}
body.is-customer-system:not(.is-inbox) .user-info__thumb {
  background: var(--cs-green-soft) !important;
  border: 1px solid #d8ebe3 !important;
  color: var(--cs-green-deep) !important;
  box-shadow: none !important;
}
body.is-customer-system:not(.is-inbox) .user-info__name { color: var(--cs-ink) !important; font-weight: 600 !important; }
body.is-customer-system:not(.is-inbox) .user-info__desc { color: var(--cs-muted) !important; }

/* Page shell */
body.is-customer-system:not(.is-inbox) .dashboard-body {
  padding: 24px !important;
}
body.is-customer-system:not(.is-inbox) .dashboard-container {
  width: 100%;
  max-width: 1560px;
  margin: 0 auto;
}
body.is-customer-system:not(.is-inbox) .container-top {
  min-height: 70px !important;
  margin: 0 0 18px !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
body.is-customer-system:not(.is-inbox) .container-top__title {
  color: var(--cs-ink) !important;
  font-size: 22px !important;
  font-weight: 650 !important;
  letter-spacing: -.025em;
}
body.is-customer-system:not(.is-inbox) .container-top__desc {
  margin-top: 5px !important;
  color: var(--cs-muted) !important;
  font-size: 13px !important;
}
body.is-customer-system:not(.is-inbox) .dashboard-container__body,
body.is-customer-system:not(.is-inbox) .card,
body.is-customer-system:not(.is-inbox) .preview-item,
body.is-customer-system:not(.is-inbox) .dash-v2-card {
  background: var(--cs-surface) !important;
  border: 1px solid var(--cs-line) !important;
  border-radius: var(--cs-radius-lg) !important;
  box-shadow: none !important;
}
body.is-customer-system:not(.is-inbox) .dashboard-container__body {
  padding: 20px !important;
}

/* Buttons */
body.is-customer-system:not(.is-inbox) .btn {
  min-height: 40px;
  padding: 9px 15px !important;
  border-radius: 9px !important;
  box-shadow: none !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: 20px !important;
  transform: none !important;
}
body.is-customer-system:not(.is-inbox) .btn--base,
body.is-customer-system:not(.is-inbox) .btn-primary,
body.is-customer-system:not(.is-inbox) .btn-success {
  background: var(--cs-green-deep) !important;
  border: 1px solid var(--cs-green-deep) !important;
  color: #fff !important;
}
body.is-customer-system:not(.is-inbox) .btn--base:hover,
body.is-customer-system:not(.is-inbox) .btn-primary:hover,
body.is-customer-system:not(.is-inbox) .btn-success:hover {
  background: #006c59 !important;
  border-color: #006c59 !important;
  color: #fff !important;
}
body.is-customer-system:not(.is-inbox) .btn--dark,
body.is-customer-system:not(.is-inbox) .btn-secondary,
body.is-customer-system:not(.is-inbox) .btn-outline--base {
  background: #fff !important;
  border: 1px solid var(--cs-line-strong) !important;
  color: #3e5047 !important;
}
body.is-customer-system:not(.is-inbox) .btn--dark:hover,
body.is-customer-system:not(.is-inbox) .btn-secondary:hover,
body.is-customer-system:not(.is-inbox) .btn-outline--base:hover {
  background: var(--cs-subtle) !important;
  border-color: #bfcec6 !important;
  color: var(--cs-green-deep) !important;
}
body.is-customer-system:not(.is-inbox) .action-buttons { gap: 6px !important; }
body.is-customer-system:not(.is-inbox) .action-btn {
  width: 34px !important;
  height: 34px !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--cs-line) !important;
  border-radius: 8px !important;
  background: #fff !important;
  box-shadow: none !important;
}
body.is-customer-system:not(.is-inbox) .action-btn:hover { background: var(--cs-subtle) !important; }

/* Forms */
body.is-customer-system:not(.is-inbox) .form-group > label,
body.is-customer-system:not(.is-inbox) .form--label {
  margin-bottom: 7px !important;
  color: #34463d !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
}
body.is-customer-system:not(.is-inbox) .form--control,
body.is-customer-system:not(.is-inbox) .form-control,
body.is-customer-system:not(.is-inbox) .form-select,
body.is-customer-system:not(.is-inbox) .select2-selection--single,
body.is-customer-system:not(.is-inbox) .select2-selection--multiple {
  min-height: 42px !important;
  padding: 9px 12px !important;
  border: 1px solid var(--cs-line-strong) !important;
  border-radius: 9px !important;
  background: #fff !important;
  color: var(--cs-ink) !important;
  box-shadow: none !important;
  font-size: 13px !important;
}
body.is-customer-system:not(.is-inbox) textarea.form--control,
body.is-customer-system:not(.is-inbox) textarea.form-control { min-height: 110px !important; }
body.is-customer-system:not(.is-inbox) .form--control:focus,
body.is-customer-system:not(.is-inbox) .form-control:focus,
body.is-customer-system:not(.is-inbox) .form-select:focus,
body.is-customer-system:not(.is-inbox) .select2-container--focus .select2-selection {
  border-color: rgba(0,128,105,.55) !important;
  box-shadow: 0 0 0 3px rgba(0,168,132,.09) !important;
  outline: 0 !important;
}
body.is-customer-system:not(.is-inbox) .search-form .form--control {
  padding-left: 40px !important;
  background: var(--cs-subtle) !important;
}
body.is-customer-system:not(.is-inbox) .search-form__icon { color: #7a8881 !important; }
body.is-customer-system:not(.is-inbox) .form-check-input:checked {
  background-color: var(--cs-green-deep) !important;
  border-color: var(--cs-green-deep) !important;
}

/* List and table surfaces */
body.is-customer-system:not(.is-inbox) .body-top {
  margin-bottom: 16px !important;
  padding: 0 0 16px !important;
  border-bottom: 1px solid var(--cs-line) !important;
}
body.is-customer-system:not(.is-inbox) .dashboard-table {
  overflow: hidden;
  border: 1px solid var(--cs-line) !important;
  border-radius: var(--cs-radius) !important;
  background: #fff !important;
  box-shadow: none !important;
}
body.is-customer-system:not(.is-inbox) .dashboard-table .table { margin: 0 !important; }
body.is-customer-system:not(.is-inbox) .dashboard-table thead th {
  padding: 12px 14px !important;
  border: 0 !important;
  border-bottom: 1px solid var(--cs-line) !important;
  background: #f7f9f8 !important;
  color: #596860 !important;
  font-size: 10.5px !important;
  font-weight: 700 !important;
  letter-spacing: .055em;
  text-transform: uppercase;
}
body.is-customer-system:not(.is-inbox) .dashboard-table tbody td {
  padding: 13px 14px !important;
  border-color: #edf1ef !important;
  background: #fff !important;
  color: #35463e !important;
  font-size: 13px !important;
  vertical-align: middle !important;
}
body.is-customer-system:not(.is-inbox) .dashboard-table tbody tr:hover td { background: #fafcfb !important; }
body.is-customer-system:not(.is-inbox) .table-thumb {
  border: 1px solid var(--cs-line) !important;
  box-shadow: none !important;
}
body.is-customer-system:not(.is-inbox) .tag-list__link,
body.is-customer-system:not(.is-inbox) .badge,
body.is-customer-system:not(.is-inbox) .status-badge {
  border-radius: 999px !important;
  box-shadow: none !important;
}

/* Menus, pagination, alerts and dialogs */
body.is-customer-system:not(.is-inbox) .dropdown-menu,
body.is-customer-system:not(.is-inbox) .user-info-dropdown {
  padding: 6px !important;
  border: 1px solid var(--cs-line) !important;
  border-radius: 12px !important;
  background: #fff !important;
  box-shadow: var(--cs-shadow-menu) !important;
}
body.is-customer-system:not(.is-inbox) .dropdown-item,
body.is-customer-system:not(.is-inbox) .user-info-dropdown__link {
  min-height: 38px !important;
  padding: 8px 10px !important;
  border-radius: 8px !important;
  color: #405148 !important;
  font-size: 12.5px !important;
}
body.is-customer-system:not(.is-inbox) .dropdown-item:hover,
body.is-customer-system:not(.is-inbox) .user-info-dropdown__link:hover {
  background: var(--cs-subtle) !important;
  color: var(--cs-green-deep) !important;
}
body.is-customer-system:not(.is-inbox) .pagination .page-link {
  min-width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 3px;
  border: 1px solid var(--cs-line) !important;
  border-radius: 8px !important;
  background: #fff !important;
  color: #53645b !important;
  box-shadow: none !important;
}
body.is-customer-system:not(.is-inbox) .pagination .active .page-link {
  background: var(--cs-green-deep) !important;
  border-color: var(--cs-green-deep) !important;
  color: #fff !important;
}
body.is-customer-system:not(.is-inbox) .alert {
  border-width: 1px !important;
  border-radius: var(--cs-radius) !important;
  box-shadow: none !important;
}
body.is-customer-system:not(.is-inbox) .modal-content {
  overflow: hidden;
  border: 1px solid var(--cs-line) !important;
  border-radius: var(--cs-radius-lg) !important;
  background: #fff !important;
  box-shadow: 0 20px 60px rgba(20,40,30,.16) !important;
}
body.is-customer-system:not(.is-inbox) .modal-header,
body.is-customer-system:not(.is-inbox) .modal-footer { border-color: var(--cs-line) !important; }
body.is-customer-system:not(.is-inbox) .modal-title { color: var(--cs-ink) !important; font-weight: 650 !important; }

@media (max-width: 991px) {
  body.is-customer-system:not(.is-inbox) .dashboard-header { min-height: 64px !important; padding: 0 14px !important; }
  body.is-customer-system:not(.is-inbox) .dashboard-body { padding: 16px !important; }
  body.is-customer-system:not(.is-inbox) .dashboard-container__body { padding: 14px !important; }
  body.is-customer-system:not(.is-inbox) .container-top { align-items: flex-start !important; gap: 12px !important; }
}

@media (max-width: 575px) {
  body.is-customer-system:not(.is-inbox) .dashboard-body { padding: 12px !important; }
  body.is-customer-system:not(.is-inbox) .dashboard-header .title { font-size: 17px !important; }
  body.is-customer-system:not(.is-inbox) .user-info__profile { display: none !important; }
  body.is-customer-system:not(.is-inbox) .container-top { margin-bottom: 14px !important; }
  body.is-customer-system:not(.is-inbox) .container-top__title { font-size: 19px !important; }
  body.is-customer-system:not(.is-inbox) .container-top__right,
  body.is-customer-system:not(.is-inbox) .btn--group { width: 100%; }
  body.is-customer-system:not(.is-inbox) .btn--group .btn { flex: 1 1 auto; }
  body.is-customer-system:not(.is-inbox) .body-top { gap: 10px !important; }
  body.is-customer-system:not(.is-inbox) .body-top__left,
  body.is-customer-system:not(.is-inbox) .body-top__right,
  body.is-customer-system:not(.is-inbox) .search-form,
  body.is-customer-system:not(.is-inbox) .filter-form { width: 100% !important; }
}

/* Integration corrections for legacy customer pages. */
body.is-customer-system:not(.is-inbox) .dashboard-container {
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
body.is-customer-system:not(.is-inbox) .dashboard-container .container-top {
  padding: 2px 2px 18px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
body.is-customer-system:not(.is-inbox) .dashboard-container__body {
  border: 1px solid var(--cs-line) !important;
  border-radius: var(--cs-radius-lg) !important;
  overflow: hidden;
}
body.is-customer-system:not(.is-inbox) .dashboard-container__body .dashboard-table {
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow-x: auto;
}
body.is-customer-system:not(.is-inbox) .dashboard-container__body .dashboard-table .table {
  width: 100% !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
}
body.is-customer-system:not(.is-inbox) .dashboard-container__body .dashboard-table thead,
body.is-customer-system:not(.is-inbox) .dashboard-container__body .dashboard-table thead tr,
body.is-customer-system:not(.is-inbox) .dashboard-container__body .dashboard-table thead th {
  border-radius: 0 !important;
  box-shadow: none !important;
}
body.is-customer-system:not(.is-inbox) .dashboard-container__body .body-top {
  padding-inline: 0 !important;
}
body.is-customer-system:not(.is-inbox) .container-top__right,
body.is-customer-system:not(.is-inbox) .container-top__right .btn--group {
  padding-inline: 0 !important;
}

/* Dashboard cards use the same flat system while retaining purposeful colour. */
body.is-customer-system:not(.is-inbox) .dashboard-v2-container {
  max-width: 1560px !important;
  padding: 24px !important;
}
body.is-customer-system:not(.is-inbox) .dashboard-v2-container .dash-v2-card {
  border: 1px solid var(--cs-line) !important;
  border-radius: var(--cs-radius-lg) !important;
  box-shadow: none !important;
  transform: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
body.is-customer-system:not(.is-inbox) .dashboard-v2-container .dash-v2-card:hover {
  border-color: var(--cs-line-strong) !important;
  box-shadow: none !important;
  transform: none !important;
}
body.is-customer-system:not(.is-inbox) .dashboard-v2-container .bg-animated-green,
body.is-customer-system:not(.is-inbox) .dashboard-v2-container .wallet-v2-card.bg-animated-green {
  background: #f2f8f5 !important;
  background-image: none !important;
  animation: none !important;
  color: var(--cs-ink) !important;
}
body.is-customer-system:not(.is-inbox) .dashboard-v2-container .bg-animated-luminous-green {
  background: #e8f6f0 !important;
  background-image: none !important;
  animation: none !important;
  color: var(--cs-ink) !important;
  -webkit-text-fill-color: var(--cs-ink) !important;
}
body.is-customer-system:not(.is-inbox) .dashboard-v2-container .bg-animated-luminous-green .dash-v2-label,
body.is-customer-system:not(.is-inbox) .dashboard-v2-container .bg-animated-luminous-green .dash-v2-value,
body.is-customer-system:not(.is-inbox) .dashboard-v2-container .bg-animated-luminous-green h2,
body.is-customer-system:not(.is-inbox) .dashboard-v2-container .bg-animated-luminous-green .fw-bold,
body.is-customer-system:not(.is-inbox) .dashboard-v2-container .bg-animated-luminous-green p,
body.is-customer-system:not(.is-inbox) .dashboard-v2-container .bg-animated-luminous-green span {
  color: var(--cs-ink) !important;
  -webkit-text-fill-color: var(--cs-ink) !important;
  text-shadow: none !important;
}
body.is-customer-system:not(.is-inbox) .dashboard-v2-container .bg-animated-luminous-green .dash-v2-label,
body.is-customer-system:not(.is-inbox) .dashboard-v2-container .bg-animated-luminous-green .small,
body.is-customer-system:not(.is-inbox) .dashboard-v2-container .wallet-v2-card .dash-v2-label {
  color: #5d6f66 !important;
  -webkit-text-fill-color: #5d6f66 !important;
}
body.is-customer-system:not(.is-inbox) .dashboard-v2-container .bg-animated-luminous-green .efficiency-item {
  padding: 16px !important;
  background: rgba(255,255,255,.68) !important;
  border: 1px solid #d8e9e1 !important;
  border-radius: 12px !important;
}
body.is-customer-system:not(.is-inbox) .dashboard-v2-container .bg-animated-luminous-green .progress {
  background: #d5e5de !important;
}
body.is-customer-system:not(.is-inbox) .dashboard-v2-container .bg-animated-luminous-green .progress-bar {
  background: var(--cs-green-deep) !important;
}

@media (max-width: 991px) {
  body.is-customer-system:not(.is-inbox) .dashboard-v2-container { padding: 16px !important; }
  body.is-customer-system:not(.is-inbox) .dashboard-container .container-top { padding-bottom: 14px !important; }
}
