/* prettier-ignore */

/* consIMS shell refresh */
:root {
  --consims-sidebar-width: 240px;
  --consims-sidebar-collapsed-width: 4rem;
  --consims-topbar-height: 88px;
  --consims-shell-transition: 260ms cubic-bezier(0.2, 0.8, 0.2, 1);
  --consims-ink: #1e2d5d;
  --consims-muted: #8a98bf;
  --consims-border: #edf0f7;
  --consims-active-bg: #e8ebf2;
}

body {
  background: #f8f9fb;
}

.consims-sidebar.navbar-vertical {
  top: 0 !important;
  bottom: 0 !important;
  width: var(--consims-sidebar-width);
  max-width: var(--consims-sidebar-width);
  height: 100vh !important;
  min-height: 100vh;
  padding: 0;
  border-right: 1px solid var(--consims-border);
  background: #fff;
  box-shadow: none;
  transition: width var(--consims-shell-transition), min-width var(--consims-shell-transition), max-width var(--consims-shell-transition);
  will-change: width, min-width, max-width;
}

.consims-sidebar-brand {
  height: 88px;
  display: flex;
  align-items: center;
  padding: 16px 8px;
  border-bottom: 1px solid var(--consims-border);
  overflow: hidden;
  transition: padding var(--consims-shell-transition);
}

.consims-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  min-width: 0;
  justify-content: flex-start;
  transition: gap var(--consims-shell-transition);
}

.consims-brand-logo {
  width: 50px;
  height: 50px;
  object-fit: contain;
  flex: 0 0 auto;
}

.consims-brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  color: var(--consims-ink);
  max-width: 140px;
  overflow: hidden;
  white-space: nowrap;
  transition: opacity 160ms ease, max-width var(--consims-shell-transition), transform var(--consims-shell-transition);
}

.consims-brand-copy strong {
  font-size: 16px;
  font-weight: 800;
}

.consims-brand-copy small {
  color: #8a98bf;
  font-size: 12px;
  margin-top: 5px;
}

.consims-sidebar-collapse {
  position: absolute;
  top: 31px;
  right: -14px;
  z-index: 1031;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--consims-border);
  border-radius: 999px;
  background: #fff;
  color: #8d94a7;
  transition: right var(--consims-shell-transition), transform var(--consims-shell-transition), color 160ms ease, background-color 160ms ease;
}

.consims-sidebar .navbar-collapse,
.consims-sidebar .navbar-vertical-content {
  height: calc(100vh - 88px);
}

.consims-sidebar-content {
  padding: 0 0 84px;
  overflow-y: auto;
}

.consims-nav-section {
  margin-bottom: 22px;
  padding: 0 8px;
  transition: padding var(--consims-shell-transition);
}

.consims-nav-section-general {
  padding-top: 14px;
  border-top: 0 !important;
}

.consims-nav-heading {
  margin: 0 0 8px;
  padding: 0 0;
  color: #a0a0a0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  white-space: nowrap;
  overflow: hidden;
  transition: color 160ms ease, text-align var(--consims-shell-transition);
}

.consims-nav-list {
  gap: 4px;
}

.consims-sidebar .nav-link.consims-nav-link {
  width: 100%;
  min-height: 48px;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  padding: 0 12px;
  border-radius: 8px;
  color: var(--consims-ink) !important;
  font-size: 15px;
  font-weight: 400;
  overflow: hidden;
  transition: padding var(--consims-shell-transition), background-color 160ms ease, color 160ms ease;
}

.consims-sidebar .nav-link.consims-nav-link:hover {
  background: var(--consims-active-bg);
  color: var(--consims-ink) !important;
}

.consims-sidebar .nav-link.consims-nav-link.active {
  background: var(--consims-active-bg);
  color: var(--consims-ink) !important;
  font-weight: 600;
}

.consims-sidebar .nav-link.consims-nav-link.active .consims-nav-icon,
.consims-sidebar .nav-link.consims-nav-link.active .nav-link-text {
  color: var(--consims-ink) !important;
}

.consims-nav-icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--consims-ink);
  flex: 0 0 auto;
}

.consims-sidebar .nav-link-text,
.consims-logout-link > span:last-child {
  display: inline-block !important;
  max-width: 150px;
  overflow: hidden;
  white-space: nowrap;
  opacity: 1;
  color: #1E2B58;
  transition: opacity 140ms ease, max-width var(--consims-shell-transition), transform var(--consims-shell-transition);
}

.consims-nav-icon .icon-filled,
.consims-logout-icon .icon-filled {
  display: none;
}

.consims-nav-link.active .icon-outline {
  display: none;
}

.consims-nav-link.active .icon-filled {
  display: block;
}

.consims-nav-icon svg,
.consims-sidebar-footer svg,
.consims-topbar svg {
  display: block;
  width: 20px;
  height: 20px;
  stroke-width: 2;
}

.consims-sidebar-footer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  margin: 0;
  padding: 8px 8px;
  background: #fff;
  border-top: 1px solid var(--consims-border);
  border-radius: 0;
  overflow: hidden;
  transition: padding var(--consims-shell-transition), border-color 280ms ease;
}

.consims-sidebar-footer:hover {
  background: #fff;
}

.consims-logout-link:hover,
.consims-logout-link:focus {
  background: #DC354520;
  color: #DC3545 !important;
  outline: none;
}

.consims-logout-link:hover span,
.consims-logout-link:focus span,
.consims-logout-link:hover svg,
.consims-logout-link:focus svg {
  color: #DC3545 !important;
}

.consims-logout-link:hover [stroke],
.consims-logout-link:focus [stroke] {
  stroke: #DC3545;
}

.consims-logout-link {
  width: 100%;
  min-height: 48px;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  text-decoration: none;
  color: var(--consims-ink) !important;
  font-size: 15px;
  font-weight: 400;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  transition: padding var(--consims-shell-transition), background-color 280ms ease, color 280ms ease;
}

.consims-logout-icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.consims-topbar.navbar-top {
  min-height: var(--consims-topbar-height);
  left: var(--consims-sidebar-width);
  padding: 0 24px;
  border-bottom: 1px solid var(--consims-border);
  background: #fff;
  box-shadow: none;
  transition: left var(--consims-shell-transition);
}

.consims-topbar-left {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 14px;
}

.consims-mobile-toggle {
  display: none;
}

.consims-page-title h1 {
  margin: 0;
  color: var(--consims-ink);
  font-size: 24px;
  line-height: 1.18;
  font-weight: 800;
  letter-spacing: 0;
}

.consims-page-title p {
  margin: 4px 0 0;
  color: var(--consims-muted);
  font-size: 14px;
}

.consims-topbar-actions {
  align-items: center;
  gap: 16px;
}

.consims-language-item {
  display: flex;
  align-items: center;
}

.consims-language-native {
  display: none;
}

.consims-language-switcher {
  --bs-dropdown-spacer: 4px;
  position: relative;
  width: 154px;
  height: 44px;
  display: flex;
  align-items: center;
}

.consims-language-switcher::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid #8d94a7;
  border-bottom: 1.5px solid #8d94a7;
  transform: translateY(-62%) rotate(45deg);
  pointer-events: none;
}

.consims-language-control {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 34px 0 10px;
  border: 1px solid #dfe3ec;
  border-radius: 8px;
  background: #fff;
  color: #333333;
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.consims-language-control:hover {
  border-color: #cfd6e4;
}

.consims-language-control:focus {
  border-color: #dfe3ec;
  outline: none;
  box-shadow: none;
}

.consims-language-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.consims-language-flag {
  width: 28px;
  height: 20px;
  flex: 0 0 28px;
  border-radius: 2px;
  box-shadow: inset 0 0 0 1px rgba(30, 43, 88, 0.12);
  pointer-events: none;
  background-position: center;
  background-size: cover;
}

.consims-language-flag-en {
  background-image: url("data:image/svg+xml,%3Csvg width='28' height='20' viewBox='0 0 28 20' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='28' height='20' fill='%23012169'/%3E%3Cpath d='M0 0L28 20M28 0L0 20' stroke='%23fff' stroke-width='4'/%3E%3Cpath d='M0 0L28 20M28 0L0 20' stroke='%23C8102E' stroke-width='2'/%3E%3Cpath d='M14 0V20M0 10H28' stroke='%23fff' stroke-width='7'/%3E%3Cpath d='M14 0V20M0 10H28' stroke='%23C8102E' stroke-width='4'/%3E%3C/svg%3E");
}

.consims-language-flag-vi {
  background-image: url("data:image/svg+xml,%3Csvg width='28' height='20' viewBox='0 0 28 20' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='28' height='20' fill='%23DA251D'/%3E%3Cpath d='M14 4L15.41 8.34H19.97L16.28 11.02L17.69 15.36L14 12.68L10.31 15.36L11.72 11.02L8.03 8.34H12.59L14 4Z' fill='%23FFDE00'/%3E%3C/svg%3E");
}

.consims-language-menu {
  width: 100%;
  min-width: 100%;
  max-width: 100%;
  margin-top: 0 !important;
  padding: 4px;
  border: 1px solid #dfe3ec;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(30, 43, 88, 0.08);
}

.consims-language-menu.show {
  position: absolute !important;
  inset: calc(100% + 4px) 0 auto auto !important;
  transform: none !important;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.consims-language-option {
  min-height: 36px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  border-radius: 6px;
  color: #333333;
  font-size: 14px;
  line-height: 1;
  transition: background-color 160ms ease, color 160ms ease;
}

.consims-language-option:hover,
.consims-language-option:focus {
  background: #edf3ff;
  color: var(--consims-ink);
}

.consims-language-option.active {
  background: #2f6dcc;
  color: #fff;
}

.constims-profile-link .nav-link {
    display: flex !important;
    padding: 12px !important;
}

.consims-select {
  --bs-dropdown-spacer: 4px;
  position: relative;
  min-width: 0;
  height: 38px;
}

.consims-select::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 50%;
  width: 16px;
  height: 16px;
  border: 0;
  background: #293759;
  transform: translateY(-50%);
  -webkit-mask: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 6L8 10L12 6' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px 16px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 6L8 10L12 6' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px 16px no-repeat;
  pointer-events: none;
}

.consims-select-native {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.consims-select-control {
  width: 100%;
  height: 38px;
  display: flex;
  align-items: center;
  padding: 0 34px 0 16px;
  border: 1px solid #dfe3ec;
  border-radius: 6px;
  background: #fff;
  color: #999a9f;
  font-size: 13px;
  line-height: 1.2;
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.consims-select-control:hover {
  border-color: #cfd6e4;
}

.consims-select-control:focus {
  border-color: #dfe3ec;
  outline: none;
  box-shadow: none;
}

.consims-select-label {
  min-width: 0;
  display: block;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.consims-select-menu {
  width: 100%;
  min-width: 100%;
  margin-top: 0px !important;
  padding: 4px;
  border: 1px solid #dfe3ec;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(30, 43, 88, 0.08);
}

.consims-select-menu.show {
  position: absolute !important;
  inset: calc(100% + 4px) auto auto 0 !important;
  transform: none !important;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.consims-select-option {
  min-height: 32px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 6px;
  color: #333333;
  font-size: 13px;
  line-height: 1.2;
  white-space: normal;
  transition: background-color 160ms ease, color 160ms ease;
}

.consims-select-option:hover,
.consims-select-option:focus {
  background: #edf3ff;
  color: var(--consims-ink);
}

.consims-select-option.active,
.consims-select-option:active {
  background: #2f6dcc;
  color: #fff;
}

.consims-select-sm {
  flex: 0 0 92px;
  width: 92px;
  height: 28px;
}

.consims-select-sm::after {
  right: 8px;
  width: 14px;
  height: 14px;
  -webkit-mask-size: 14px 14px;
  mask-size: 14px 14px;
}

.consims-select-sm .consims-select-control {
  height: 28px;
  min-height: 28px;
  display: flex;
  padding: 0 26px 0 10px;
  border-radius: 6px;
  font-size: 11px;
  line-height: 1;
  align-items: center;
}

.consims-select-sm .consims-select-label {
  height: 100%;
  display: flex;
  align-items: center;
  line-height: 1;
}

.consims-select-sm .consims-select-menu {
  min-width: 92px;
}

.consims-select-sm .consims-select-option {
  min-height: 28px;
  padding: 0 10px;
  font-size: 11px;
}

.consims-topbar .form-control:focus,
.consims-topbar .form-select:focus,
.consims-topbar .btn:focus,
.consims-topbar button:focus,
.dashboard-overview .form-control:focus,
.dashboard-overview .form-select:focus,
.dashboard-overview .btn:focus,
.dashboard-overview button:focus {
  border-color: #dfe3ec !important;
  outline: 0 !important;
  box-shadow: none !important;
}

.consims-topbar .form-control,
.consims-topbar .form-select,
.dashboard-overview .form-control,
.dashboard-overview .form-select {
  border-radius: 8px;
}

.consims-topbar .dropdown-menu,
.dashboard-overview .dropdown-menu {
  margin-top: 4px;
  border-radius: 8px;
}

.consims-icon-button.nav-link {
  position: relative;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 999px;
  background: #f6f8fc;
  color: var(--consims-ink);
}

.consims-notification-dot {
  position: absolute;
  top: 10px;
  right: 11px;
  width: 8px;
  height: 8px;
  border: 1px solid #fff;
  border-radius: 999px;
  background: #e43d4f;
}

.consims-avatar-link .avatar {
  width: 44px;
  height: 44px;
}

/* .content {
  margin-left: var(--consims-sidebar-width);
  padding-top: calc(var(--consims-topbar-height) + 20px);
  transition: margin-left var(--consims-shell-transition);
} */

.navbar-vertical-collapsed .consims-topbar.navbar-top {
  left: var(--consims-sidebar-collapsed-width);
}

.navbar-vertical-collapsed .content {
  margin-left: var(--consims-sidebar-collapsed-width);
}

.navbar-vertical-collapsed .consims-sidebar.navbar-vertical {
  width: var(--consims-sidebar-collapsed-width) !important;
  min-width: var(--consims-sidebar-collapsed-width) !important;
  max-width: var(--consims-sidebar-collapsed-width) !important;
  height: 100vh !important;
  min-height: 100vh !important;
  padding: 0 !important;
  overflow: visible;
}

.navbar-vertical-collapsed .consims-sidebar-brand {
  height: 88px;
  padding: 16px 7px;
}

.navbar-vertical-collapsed .consims-brand-link {
  justify-content: flex-start;
  gap: 10px;
}

.navbar-vertical-collapsed .consims-sidebar-collapse {
  top: 31px;
  right: -14px;
}

.navbar-vertical-collapsed .consims-sidebar-collapse svg {
  transform: rotate(180deg);
}

.navbar-vertical-collapsed .consims-sidebar .navbar-collapse {
  display: block !important;
  width: 100%;
}

.navbar-vertical-collapsed .consims-sidebar .navbar-vertical-content,
.navbar-vertical-collapsed .consims-sidebar-content {
  height: calc(100vh - 88px) !important;
  padding: 0 0 84px !important;
  overflow-x: visible;
  overflow-y: auto;
}

.navbar-vertical-collapsed .consims-nav-section {
  margin-bottom: 22px;
  padding: 0 8px !important;
}

.navbar-vertical-collapsed .consims-nav-section-general {
  padding-top: 14px;
}

.navbar-vertical-collapsed .consims-nav-list {
  align-items: stretch;
  gap: 4px;
}

.navbar-vertical-collapsed .consims-sidebar .nav-link.consims-nav-link {
  width: 100%;
  height: auto;
  min-height: 48px;
  margin: 0;
  padding: 0 14px !important;
  border-radius: 8px;
}

.navbar-vertical-collapsed .consims-nav-icon {
  width: 20px;
  height: 20px;
}

.navbar-vertical-collapsed .consims-sidebar-footer {
  min-height: 65px;
  padding: 8px 8px;
}

.navbar-vertical-collapsed .consims-logout-link {
  width: 100%;
  height: auto;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 8px;
}

.navbar-vertical-collapsed .consims-logout-link:hover {
  background: #DC354520;
  color: #DC3545 !important;
}

.navbar-vertical-collapsed .consims-brand-copy {
  max-width: 0;
  opacity: 0;
  transform: translateX(-4px);
}

.navbar-vertical-collapsed .consims-logout-link > span:last-child,
.navbar-vertical-collapsed .consims-sidebar .nav-link-text {
  max-width: 0;
  opacity: 0;
  transform: translateX(-4px);
}

.navbar-vertical-collapsed .navbar-vertical.navbar-expand-lg.consims-sidebar .nav-link-text,
.navbar-vertical-collapsed .navbar-vertical.navbar-expand-lg.consims-sidebar .consims-logout-link > span:last-child {
  display: inline-block !important;
}

.navbar-vertical-collapsed .consims-nav-heading {
  text-align: center;
  position: relative;
  color: transparent;
}

.navbar-vertical-collapsed .consims-nav-heading::after {
  content: attr(data-short);
  position: absolute;
  inset: 0;
  color: #a0a0a0;
  font-size: 14px;
  line-height: 1.5;
}

@media (max-width: 991.98px) {
  .consims-sidebar.navbar-vertical {
    width: var(--consims-sidebar-width);
    max-width: var(--consims-sidebar-width);
  }

  .consims-topbar.navbar-top {
    left: 0;
    min-height: 76px;
    padding: 0 14px;
  }

  .consims-mobile-toggle {
    display: inline-flex;
  }

  .consims-page-title h1 {
    font-size: 20px;
  }

  .consims-page-title p {
    display: none;
  }

  .consims-language-item {
    display: none;
  }

  .content {
    margin-left: 0;
    padding-top: 92px;
  }
}

.nav-link {
  margin: 0 !important;
  padding: 4px 8px !important;
}

/* Khung chứa nội dung chính của trang */
.main-content-wrapper {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.2s ease, transform 0.2s ease;
  will-change: opacity, transform;
}

/* Trạng thái tạm thời khi đang loading hoặc chuyển đổi dữ liệu */
.main-content-wrapper.fade-out {
  opacity: 0;
  transform: translateY(4px);
}

.navbar-vertical-collapsed .consims-sidebar .navbar-vertical-content {
  padding: 1rem 0;
}

.navbar-vertical-collapsed .consims-sidebar .nav-heading-text {
  display: inline-block;
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-width 0.3s ease, opacity 0.2s ease;
}


.dashboard-overview {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 0;
  color: var(--consims-ink);
}

.dashboard-view {
  display: none;
  flex-direction: column;
  gap: 20px;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.dashboard-view.active,
.dashboard-view.is-leaving {
  display: flex;
}

.dashboard-view.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.dashboard-view.is-entering,
.dashboard-view.is-leaving {
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
}

.dashboard-tabs {
  display: flex;
  align-items: flex-end;
  gap: 42px;
  height: 44px;
  border-bottom: 1px solid #dce1eb;
}

.dashboard-tabs button {
  position: relative;
  height: 44px;
  padding: 0 18px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: #8a98bf;
  font-size: 14px;
  font-weight: 600;
  transition: color 160ms ease, border-color 160ms ease, opacity 160ms ease;
}

.dashboard-tabs button.active {
  border-bottom-color: #1E2B58;
  color: var(--consims-ink);
}

.dashboard-overview .dashboard-tabs button.active,
.dashboard-overview .dashboard-tabs button[aria-selected="true"] {
  border-bottom-color: #1E2B58 !important;
}

.dashboard-overview .dashboard-tabs button.active::after,
.dashboard-overview .dashboard-tabs button[aria-selected="true"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  z-index: 2;
  height: 2px;
  background: #1E2B58;
}

.dashboard-filter-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(110px, 1fr)) minmax(210px, 1.2fr) minmax(190px, 0.85fr);
  align-items: stretch;
  gap: 20px;
}

#dashboard-overview section {
  padding: 0;
}

.dashboard-filter-row .form-select {
  border-color: #dfe3ec;
  border-radius: 6px;
  color: #999a9f;
  font-size: 13px;
  height: 38px;
  line-height: 1.2;
  outline: none;
}

.consims-date-range {
  min-width: 0;
  height: 38px;
  display: block;
  position: relative;
}

.consims-date-range span {
  color: #8a98bf;
  font-size: 12px;
  line-height: 1;
}

.consims-datepicker {
  position: relative;
  min-width: 0;
  height: 38px;
}

.consims-datepicker-range {
  width: 100%;
}

.consims-datepicker-input {
  width: 100%;
  height: 38px;
  padding: 0 38px 0 16px;
  border: 1px solid #dfe3ec;
  border-radius: 6px;
  outline: 0;
  background: #fff;
  color: transparent !important;
  font-size: 13px;
  line-height: 38px;
  caret-color: transparent;
  cursor: pointer;
  text-indent: -9999px;
}

.consims-datepicker-input::placeholder {
  color: transparent;
  opacity: 0;
}

.consims-datepicker-input:focus {
  border-color: #dfe3ec;
  outline: 0;
  box-shadow: none;
}

.consims-datepicker-display {
  position: absolute;
  left: 16px;
  right: 38px;
  top: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  min-width: 0;
  overflow: hidden;
  color: #454b5f;
  font-size: 13px;
  line-height: 1.2;
  white-space: nowrap;
  pointer-events: none;
}

.consims-datepicker-display-placeholder {
  color: #999a9f;
}

.consims-datepicker-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: #999a9f;
  transform: translateY(-50%);
}

.consims-datepicker-toggle::before {
  content: "";
  width: 18px;
  height: 18px;
  display: block;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6.25 2.5V5M13.75 2.5V5M3.75 7.5H16.25M5 4.16667H15C15.9205 4.16667 16.6667 4.91286 16.6667 5.83333V15C16.6667 15.9205 15.9205 16.6667 15 16.6667H5C4.07953 16.6667 3.33333 15.9205 3.33333 15V5.83333C3.33333 4.91286 4.07953 4.16667 5 4.16667ZM6.66667 10.4167H6.675M10 10.4167H10.0083M13.3333 10.4167H13.3417M6.66667 13.3333H6.675M10 13.3333H10.0083M13.3333 13.3333H13.3417' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6.25 2.5V5M13.75 2.5V5M3.75 7.5H16.25M5 4.16667H15C15.9205 4.16667 16.6667 4.91286 16.6667 5.83333V15C16.6667 15.9205 15.9205 16.6667 15 16.6667H5C4.07953 16.6667 3.33333 15.9205 3.33333 15V5.83333C3.33333 4.91286 4.07953 4.16667 5 4.16667ZM6.66667 10.4167H6.675M10 10.4167H10.0083M13.3333 10.4167H13.3417M6.66667 13.3333H6.675M10 13.3333H10.0083M13.3333 13.3333H13.3417' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.consims-datepicker-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  z-index: 1055;
  width: 320px;
  padding: 18px 20px 20px;
  border: 1px solid #dfe3ec;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(30, 43, 88, 0.14);
}

.consims-datepicker-panel[hidden] {
  display: none;
}

.consims-datepicker-head {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 28px 1fr 1fr 28px;
  align-items: center;
  gap: 6px;
  margin-bottom: 18px;
}

.consims-datepicker-nav,
.consims-datepicker-current {
  height: 28px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #333333;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  pointer-events: auto;
}

.consims-datepicker-current {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 16px;
  font-weight: 500;
}

.consims-datepicker-current::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 6px solid #1E2B58;
}

.consims-datepicker-nav:hover,
.consims-datepicker-current:hover {
  background: #f4f6fb;
}

.consims-datepicker-picker {
  min-height: 230px;
  display: grid;
  align-content: start;
  gap: 8px;
}

.consims-datepicker-month-picker {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.consims-datepicker-year-picker {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.consims-datepicker-picker-option {
  min-width: 0;
  height: 40px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: #333333;
  font-size: 13px;
  line-height: 1.2;
}

.consims-datepicker-picker-option:hover {
  border-color: #dfe3ec;
  background: #f8f9fb;
}

.consims-datepicker-picker-option.is-active {
  border-color: #1E2B58;
  background: #1E2B58;
  color: #fff;
}

.consims-datepicker-weekdays,
.consims-datepicker-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
}

.consims-datepicker-weekdays {
  margin-bottom: 14px;
  color: #333333;
  font-size: 14px;
  line-height: 1;
}

.consims-datepicker-day {
  width: 36px;
  height: 36px;
  justify-self: center;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: #333333;
  font-size: 14px;
  line-height: 1;
}

.consims-datepicker-day.is-muted {
  color: #b7b7b7;
}

.consims-datepicker-day.is-selected {
  border-color: #1E2B58;
  background: #1E2B58;
  color: #fff;
}

.consims-datepicker-day.is-in-range {
  background: #edf3ff;
  color: #1E2B58;
}

.consims-datepicker-day:not(.is-selected):hover {
  border-color: #dfe3ec;
  background: #f8f9fb;
}

.consims-last-updated {
  min-width: 0;
  height: 38px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 4px 12px;
  border: 1px solid #f1d273;
  border-radius: 6px;
  background: #ffe8a3;
  text-align: center;
}

.consims-last-updated span {
  color: #1E2B58;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.1;
}

.consims-last-updated strong {
  color: #333333;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.1;
  white-space: nowrap;
}

.dashboard-kpi-grid {
  display: grid;
  grid-template-columns: repeat(10, minmax(92px, 1fr));
  overflow: hidden;
  border: 1px solid #24a447;
  border-radius: 8px;
  background: #fff;
}

.dashboard-kpi {
  border-right: 1px solid #7EB876;
  text-align: center;
}

.dashboard-kpi:last-child {
  border-right: 0;
}

.dashboard-kpi h3 {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 8px 10px;
  background: #28a745;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
}

.dashboard-kpi strong {
  display: block;
  margin-top: 16px;
  color: #fb4e00;
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
}

.dashboard-kpi span {
  display: inline-block;
  margin-top: 8px;
  color: #3f4658;
  font-size: 13px;
}

.dashboard-kpi .positive {
  color: #23a844;
  font-weight: 800;
  margin-bottom: 8px;
}

.dashboard-kpi .negative {
  color: #ff233f;
  font-weight: 800;
}

.dashboard-section {
  overflow: hidden;
  border: 1px solid #dfe4ef;
  border-radius: 8px;
  background: #fff;
  padding: 0;
}

.dashboard-section h2 {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin: 0;
  padding: 0 16px;
  background: var(--consims-ink);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.dashboard-section h2 .dashboard-section-action {
  margin-left: auto;
  color: #1592ff;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  text-transform: none;
}

.dashboard-view[data-dashboard-view="company"] .dashboard-company-action-title {
  gap: 12px;
  padding: 0;
  background: transparent;
}

.dashboard-view[data-dashboard-view="company"] .dashboard-company-action-title > span {
  flex: 0 0 70%;
  width: 70%;
  max-width: 70%;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 16px;
  border-radius: 0 0 7px 0;
  background: var(--consims-ink);
  color: #fff;
}

.dashboard-view[data-dashboard-view="company"] .dashboard-company-action-title > .dashboard-section-action {
  flex: 0 0 auto;
  margin-left: auto;
  padding: 0 16px 0 0;
  color: #1592ff;
  line-height: 32px;
}

.dashboard-section-body {
  display: grid;
  gap: 16px;
  padding: 16px;
}

.dashboard-section-body.two-cols {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.dashboard-section-body.three-cols {
  grid-template-columns: minmax(260px, .78fr) minmax(320px, 1fr) minmax(300px, 1fr);
}

.dashboard-section-body.three-equal-cols {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dashboard-section-body.four-cols {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dashboard-panel {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 16px;
  border-radius: 8px;
  background: #fff;
}

.dashboard-panel-full {
  padding: 0;
}

.dashboard-panel-full th, 
.dashboard-panel-full td {
  text-align: center;
}

.dashboard-panel-full th:first-child,
.dashboard-panel-full td:first-child {
  padding-left: 16px;
  text-align: left;
}

.dashboard-panel-full th:last-child, 
.dashboard-panel-full td:last-child {
  padding: 0 16px;
  text-align: right;
}

.dashboard-panel-full .progress-strip {
  height: 20px;
}

.dashboard-panel-inside {
  border: 1px solid #dfe4ef;
}

.dashboard-panel h3 {
  margin: 0 0 10px;
  color: var(--consims-ink);
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
}

.consims-chart-panel-header {
  min-height: 28px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.consims-chart-panel-header h3 {
  margin: 0;
}

.dashboard-chart {
  width: 100%;
  min-height: 230px;
  flex: 1 1 230px;
}

.dashboard-chart.small {
  min-height: 190px;
  flex-basis: 190px;
}

.dashboard-table {
  width: 100%;
  border-collapse: collapse;
  color: #404653;
  font-size: 12px;
}

.dashboard-table th,
.dashboard-table td {
  padding: 0;
  vertical-align: middle;
}

.dashboard-table td {
  height: 32px;
}

.dashboard-table th, .dashboard-panel h3 {
  color: #1E2B58;
  font-weight: 800;
  height: 28px;
}

.dashboard-section h2 {
  height: 32px;
}

.dashboard-table tbody tr:last-child td {
  border-bottom: 0;
}

.dashboard-table.compact th,
.dashboard-table.compact td {
  height: 25px;
}

.dashboard-stat-row {
  display: grid;
  align-items: start;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  margin: 16px 16px 0 16px;
  padding: 12px 0;
  border: 1px solid #dfe4ef;
  border-radius: 8px;
  background: #f7f7f7;
}

.dashboard-stat-row.three {
  grid-template-columns: repeat(3, minmax(180px, 1fr));
}

.dashboard-stat-row.four {
  grid-template-columns: repeat(4, minmax(120px, 1fr));
}

.dashboard-stat-row.five {
  grid-template-columns: repeat(5, minmax(120px, 1fr));
}

.dashboard-stat-row.six {
  grid-template-columns: repeat(6, minmax(110px, 1fr));
}

.dashboard-stat-row.seven {
  grid-template-columns: repeat(7, minmax(100px, 1fr));
}

.dashboard-stat-row.eight {
  grid-template-columns: repeat(8, minmax(94px, 1fr));
}

.dashboard-stat-row.compact-row {
  margin: 0;
  border: 0;
  border-radius: 0;
  background: #fff;
}

.dashboard-stat-row div {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  border-right: 1px solid #dfe4ef;
  text-align: center;
}

.dashboard-stat-row div:last-child {
  border-right: 0;
}

.dashboard-stat-row span {
  color: #1E2B58 !important;
  font-size: 11px;
  font-weight: 800;
}

.dashboard-stat-row strong {
  margin-top: 4px;
  color: var(--consims-ink);
  font-size: 15px;
  font-weight: 800;
}

.dashboard-stat-row small {
  margin-top: 2px;
  color: #4a5060;
  font-size: 10px;
  font-weight: 700;
}

.dashboard-kpi-grid.company {
  grid-template-columns: repeat(8, minmax(110px, 1fr));
}

.dashboard-kpi-grid.company .dashboard-kpi {
  min-height: 118px;
}

.dashboard-kpi-grid.company .dashboard-kpi strong {
  color: var(--consims-ink);
}

.dashboard-kpi-grid.project {
  grid-template-columns: repeat(8, minmax(110px, 1fr));
  gap: 20px !important;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.dashboard-kpi-grid.project .dashboard-kpi {
  min-height: 94px;
  overflow: hidden;
  border: 1px solid var(--kpi-color, #dfe4ef);
  background: #fff;
}

.dashboard-kpi-grid.project .dashboard-kpi h3 {
  min-height: 28px;
  background: var(--kpi-color, #28a745);
  font-size: 11px;
}

.dashboard-kpi-grid.project .dashboard-kpi strong {
  margin-top: 14px;
  color: var(--kpi-color, var(--consims-ink));
  font-size: 22px;
}

.dashboard-kpi-grid.project .dashboard-kpi span {
  margin-top: 6px;
  font-size: 11px;
}

.project .dashboard-kpi {
  border-radius: 8px;
}

.kpi-blue {
  --kpi-color: #1592ff;
}

.kpi-green {
  --kpi-color: #2ab455;
}

.kpi-navy {
  --kpi-color: #1e2b58;
}

.kpi-orange {
  --kpi-color: #f15b20;
}

.kpi-purple {
  --kpi-color: #7777f2;
}

.kpi-red {
  --kpi-color: #f0414f;
}

.kpi-teal {
  --kpi-color: #55b2b4;
}

.dashboard-date-input {
  height: 32px;
  border-color: #dfe3ec;
  border-radius: 6px;
  color: #999a9f;
  font-size: 13px;
}

.dashboard-bordered-table {
  border: 1px solid #e8ebf2;
}

.dashboard-bordered-table th,
.dashboard-bordered-table td {
  border: 1px solid #edf0f5;
}

.dashboard-bordered-table th {
  background: #f8f9fc;
}

.project-portfolio-table td {
  height: 34px;
}

.project-portfolio-table {
  table-layout: fixed;
}

.project-portfolio-table th,
.project-portfolio-table td {
  width: 12.5%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.project-portfolio-table th {
  white-space: normal;
  line-height: 1.25;
}

.project-portfolio-table td {
  white-space: nowrap;
}

.dashboard-total-row td {
  font-weight: 800;
}

.total-blue {
  background: #d7efff;
  color: #1592ff;
}

.total-green {
  background: #dff4e5;
  color: #20a852;
}

.total-red {
  background: #f9d7dc;
  color: #e6374d;
}

.total-yellow {
  background: #fff3c4;
  color: #e4a000;
}

.dashboard-alert-table th {
  background: #e5eaf2;
}

.dashboard-alert-table img {
  width: 16px;
  height: 16px;
}

.dashboard-risk-table .risk-cell {
  min-width: 120px;
  height: 30px;
}

.progress-strip {
  --progress-color: #24b34b;
  --progress-width: 100%;
  position: relative;
  display: block;
  width: 100%;
  min-width: 96px;
  height: 24px;
  overflow: hidden;
  border-radius: 3px;
  background: #f0f0f0;
}

.progress-strip.green {
  --progress-color: #24b34b;
  --progress-width: 100%;
}

.progress-strip.red {
  --progress-color: #e6374d;
  --progress-width: 45%;
}

.progress-strip.orange {
  --progress-color: #f15b20;
  --progress-width: 66%;
}

.progress-strip.gray {
  --progress-color: #c9cdd5;
  --progress-width: 45%;
}

.progress-strip::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--progress-width);
  border-radius: inherit;
  background: var(--progress-color);
}

.priority-high {
  background: #fee3e7;
  color: #e6374d;
  font-weight: 800;
}

.priority-medium {
  background: #fff4d8;
  color: #e4a000;
  font-weight: 800;
}

.priority-low {
  background: #e8f7ee;
  color: #20a852;
  font-weight: 800;
}

.risk-matrix {
  display: grid;
  grid-template-columns: 64px repeat(3, 1fr);
  align-items: stretch;
  height: 120px;
  color: #454b5f;
  text-align: center;
  font-weight: 800;
}

.risk-matrix span {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.risk-matrix div {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #fff;
  color: var(--consims-ink);
  font-size: 16px;
}

.risk-green {
  background: #20bf1985;
}

.risk-yellow {
  background: #ffdb3285;
}

.risk-orange {
  background: #ff803e85;
}

.risk-red {
  background: #ff393985;
}

.dashboard-bottom-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.dashboard-bottom-grid .dashboard-section {
  min-width: 0;
}

.dashboard-view[data-dashboard-view="company"] .company-bottom-grid {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 20px;
}

.dashboard-view[data-dashboard-view="company"] .company-bottom-grid .company-span-6 {
  grid-column: span 6;
}

.dashboard-view[data-dashboard-view="company"] .company-bottom-grid .company-span-8 {
  grid-column: span 8;
}

.dashboard-view[data-dashboard-view="company"] .company-bottom-grid .company-span-4 {
  grid-column: span 4;
}

.dashboard-view[data-dashboard-view="company"] .company-bottom-grid .dashboard-section h2 {
  height: 32px;
  font-size: 13px;
}

.dashboard-view[data-dashboard-view="company"] .company-bottom-grid .dashboard-stat-row {
  min-height: 74px;
}

.status-ok {
  text-align: right;
  font-weight: 800;
  color: #1E2B58;
}

.consims-negative-value {
  color: #DC3545 !important;
}

@media (max-width: 1200px) {
  .dashboard-tabs {
    gap: 18px;
    overflow-x: auto;
  }

  .dashboard-filter-row {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }

  .consims-last-updated {
    align-items: flex-start;
    text-align: left;
  }

  .dashboard-kpi-grid {
    overflow-x: auto;
  }

  .dashboard-section-body.two-cols,
  .dashboard-section-body.three-cols,
  .dashboard-section-body.three-equal-cols,
  .dashboard-section-body.four-cols,
  .dashboard-bottom-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-view[data-dashboard-view="company"] .company-bottom-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-view[data-dashboard-view="company"] .company-bottom-grid .company-span-6,
  .dashboard-view[data-dashboard-view="company"] .company-bottom-grid .company-span-8,
  .dashboard-view[data-dashboard-view="company"] .company-bottom-grid .company-span-4 {
    grid-column: 1 / -1;
  }

  .dashboard-stat-row,
  .dashboard-stat-row.three,
  .dashboard-stat-row.four,
  .dashboard-stat-row.five,
  .dashboard-stat-row.six,
  .dashboard-stat-row.seven,
  .dashboard-stat-row.eight {
    grid-template-columns: repeat(2, minmax(160px, 1fr));
    row-gap: 10px;
  }

  .dashboard-stat-row div:nth-child(2n) {
    border-right: 0;
  }
}

@media (max-width: 992px) {

  .dashboard-overview {
    margin: 0;
  }

  .dashboard-filter-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .consims-last-updated {
    align-items: center;
    text-align: center;
  }

  .dashboard-kpi-grid {
    grid-template-columns: repeat(2, minmax(140px, 1fr));
  }

  .dashboard-kpi-grid.company,
  .dashboard-kpi-grid.project {
    grid-template-columns: repeat(2, minmax(140px, 1fr));
  }

  .dashboard-kpi:nth-child(2n) {
    border-right: 0;
  }

  .dashboard-section-body {
    padding: 16px;
  }

  .dashboard-panel {
    padding: 16px;
  }

  .dashboard-stat-row,
  .dashboard-stat-row.three,
  .dashboard-stat-row.four,
  .dashboard-stat-row.five,
  .dashboard-stat-row.six,
  .dashboard-stat-row.seven,
  .dashboard-stat-row.eight {
    grid-template-columns: 1fr;
  }

  .dashboard-stat-row div {
    border-right: 0;
    border-bottom: 1px solid #dfe4ef;
  }

  .dashboard-stat-row div:last-child {
    border-bottom: 0;
  }
}

.status-check img, .status-warning img {
  position: relative;
  width: 16px;
  height: 16px;
}

.text-danger, .text-warning {
  font-weight: 800;
}

.content {
    margin-left: var(--consims-sidebar-width) !important;
    padding-top: calc(var(--consims-topbar-height) + 20px) !important;
    transition: margin-left var(--consims-shell-transition);
    padding: calc(var(--phoenix-navbar-top-height) + 2rem) 1.5rem 1.5rem 1.5rem;
}

div.dropdown-menu.py-2{
  width: fit-content;
}
