/* Extra viewport height consumed by the top navbar after it became two-tier
   (utility row + primary row). Full-height page areas are sized as
   `calc(100vh - <page chrome>px - var(--top-nav-extra-height))`, so this single
   value corrects every one of them at once. It exists because those areas can't
   simply fill their parent: the shared Radzen body card (.mainBody-card) is
   auto-height and doesn't propagate height:100%. If the navbar height changes
   again, adjust this one value rather than re-tuning each page. */
:root {
  --top-nav-extra-height: 50px;
}

body #container {
  background: var(--body-bg);
}

#navbar {
  background: transparent;
}

.navbar.navbar-expand-sm.navbar-light {
  background-color: transparent;
}

/*Tooltip syle*/
.rz-tooltip-content {
  background: var(--tooltip-bg-color);
  color: var(--tooltip-text-color);
  border: 1px solid var(--tooltip-border-color);
  word-break: break-word;
  white-space: normal;
}

.dark-mode .rz-dialog-titlebar {
  background-color: var(--dialog-title-bg-dark) !important;
}

.rz-dialog,
.rz-dialog-content,
.rz-fileupload-buttonbar {
  background-color: var(--tile-bg) !important;
}

.rz-dialog-mask {
  background-color: transparent;
  opacity: 0.5 !important;
}

.login-parent {
  height: inherit;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.rz-card {
  padding: 1.25rem 1.5625rem;
  border-radius: 28px;
  box-shadow: unset;
  background-color: var(--tile-bg) !important;
}

.rz-fileupload-choose {
  border-radius: 28px;
}

.rz-navigation-item {
  background-color: var(--tile-bg);
}

.rz-tabview-nav .rz-tabview-selected,
.rz-tabview-panels {
  background-color: var(--tile-bg);
}

.theme-apply-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Loader must be consistent and readable across themes */
  background-color: #fff;
}

.theme-apply-overlay__panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.theme-apply-overlay__icon {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.theme-apply-overlay__spinner {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 3px solid var(--font-color-secondary);
  border-top-color: var(--rz-primary);
  animation: spin 0.9s linear infinite;
}

.theme-apply-overlay__text {
  font-size: 14px;
  font-weight: 600;
  color: #111;
}

.rz-colorpicker,
.rz-lookup-search input,
.rz-spinner,
.rz-calendar .rz-inputtext,
.rz-multiselect,
.mask,
.rz-textarea,
.rz-textbox {
  background-color: var(--body-bg) !important;
}

.rz-dropdown-panel,
.rz-multiselect-items li,
.rz-multiselect-header {
  background-color: var(--dropdown-bg) !important;
}

.rz-textbox.rz-state-disabled,
.rz-state-disabled.rz-paginator-element {
  opacity: 0.7;
}

.rz-tabview-top > .rz-tabview-nav .rz-tabview-selected {
  margin-bottom: -1px;
  border-top: 2px solid var(--rz-tabs-tab-selected-top-border-color);
  border-left: 2px solid var(--rz-tabs-tab-selected-top-border-color);
  border-right: 1px solid var(--tab-border-color);
  border-bottom: 1px solid var(--tab-border-color);
}

.rz-tabview-nav li:hover:not(.rz-tabview-selected):not(.rz-state-disabled) {
  background-color: unset;
  border-top: 2px solid var(--rz-tabs-tab-selected-top-border-color);
}

.dark-mode .rz-tabview-nav li {
  border: 1px solid transparent;
}

.rz-tabview-panels {
  border-top: 1px solid var(--tab-border-color);
}

.header {
  border-radius: 16px;
  border-bottom: unset;
}

@media (max-width: 1200px) {
  .header {
    border-radius: 16px;
    border-bottom: unset;
    font-size: 12px !important;
  }
}

.rz-sidebar {
  border-right: unset;
}

.rz-tabview-top > .rz-tabview-nav .rz-tabview-selected {
  border-top-left-radius: 12px;
}

.rz-datatable-thead th,
.rz-grid-table thead th {
  background-color: var(--table-header-bg);
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
}

.font-size-normal {
  font-size: 14px !important;
}

@media (max-width: 1350px) {
  .font-size-normal {
    font-size: 12px !important;
  }
}

.navbar-font-size {
  font-size: 14px !important;
}

@media (max-width: 1350px) {
  .navbar-font-size {
    font-size: 11px !important;
  }
}

.login-layout-container {
  background-color: transparent;
}

.content {
  padding-top: 0.5rem; /* 0.5rem means somewhere around 8 px, which is perfectly fitting for 4 grid system */
  padding-bottom: 0.5rem;
}

.rz-navigation-item-link {
  cursor: pointer;
}

.nav-menu {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  gap: 40px;
}

.rz-menu:not(.rz-profile-menu) {
  gap: 8px;
  background-color: var(--tile-bg);
}

@media (max-width: 1200px) {
  .rz-menu:not(.rz-profile-menu) {
    background-color: var(--tile-bg);
    gap: 4px !important;
  }
}

.vertical-seperator {
  opacity: 0.25;
  background-color: black;
  height: 1px;
  width: 99%;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 1800px) {
  .vertical-seperator {
    opacity: 0.25;
    background-color: black;
    height: 500px;
    width: 1px;
    margin-left: 1.5rem;
    margin-right: 1.5rem;
  }
}

.custom-flex {
  display: flex;
  flex-direction: column;
}

@media (min-width: 1800px) {
  .custom-flex {
    display: flex;
    flex-direction: row;
  }
}

.custom-dropzone {
  background-color: var(--drop-destination-color) !important;
  border: var(--drop-destination-border);
}

.custom-dropzone:hover {
  background-color: var(--drop-destination-hover-color) !important;
  border: var(--drop-destination-hover-border);
}

.items-50 .rz-category-axis .rz-tick-text {
  font-size: 8px;
}

.items-30 .rz-category-axis .rz-tick-text {
  font-size: 10px;
}

.items-10 .rz-category-axis .rz-tick-text {
  font-size: 12px;
}

.rz-value-axis .rz-tick-text {
  font-size: 10px;
}

@media (max-width: 1350px) {
  .items-50 .rz-category-axis .rz-tick-text {
    font-size: 6px;
  }

  .items-30 .rz-category-axis .rz-tick-text {
    font-size: 8px;
  }

  .items-10 .rz-category-axis .rz-tick-text {
    font-size: 10px;
  }

  .rz-value-axis .rz-tick-text {
    font-size: 8px;
  }
}

@media (max-width: 1030px) {
  .items-50 .rz-category-axis .rz-tick-text {
    font-size: 5px;
  }

  .items-30 .rz-category-axis .rz-tick-text {
    font-size: 6px;
  }

  .items-10 .rz-category-axis .rz-tick-text {
    font-size: 8px;
  }

  .rz-value-axis .rz-tick-text {
    font-size: 7px;
  }
}

.infographics-title {
  font-size: 16px;
}

@media (max-width: 1350px) {
  .infographics-title {
    font-size: 14px;
  }
}

.rz-axis,
.rz-textbox,
.rz-cell-data,
.rz-tabview-title,
.rz-label,
.rz-legend-item-text,
.rz-state-default,
.rz-dropdown-label,
.rz-chart-tooltip-content,
.rz-dropdown-item {
  font-size: 14px !important;
}

@media (max-width: 1350px) {
  .rz-axis,
  .rz-textbox,
  .rz-cell-data,
  .rz-tabview-title,
  .rz-label,
  .rz-legend-item-text,
  .rz-state-default,
  .rz-dropdown-label,
  .rz-chart-tooltip-content,
  .rz-dropdown-item {
    font-size: 12px !important;
  }
}

.rz-column-title,
.rz-legend-item-text {
  font-size: 12px !important;
}

@media (max-width: 1350px) {
  .rz-column-title,
  .rz-legend-item-text {
    font-size: 10px !important;
  }
}

.rz-dialog-title {
  font-size: 20px !important;
}

@media (max-width: 1350px) {
  .rz-dialog-title {
    font-size: 16px !important;
  }
}

.navbar-fusion-logo {
  height: 32px;
  width: 22px;
  margin: 12px;
  margin-left: 24px;
}

@media (max-width: 1350px) {
  .navbar-fusion-logo {
    height: 26px;
    width: 18px;
    margin: 12px;
    margin-left: 20px;
  }
}

.rz-menu:not(.rz-profile-menu) .rz-navigation-item-wrapper {
  padding-left: 20px;
  padding-right: 20px;
}

/* Top utility strip: compact the menu items (Processing / Organisations / Account)
   so they sit at the same visual weight as the language selector and theme toggle.
   The primary workflow row below keeps the full-size nav. */
.nav-utility-row .nav-menu {
  gap: 14px;
}
/* --- Utility strip item sizing (compact, content-height) ---
   In Radzen the inner .rz-navigation-item-link carries --nav-item-height, so the height
   must be reset THERE (not just the wrapper) or items stay full-height. */
.nav-utility-row .rz-navigation-item-link {
  height: auto !important;
  min-height: 0 !important;
  padding: 0 !important;
  line-height: 1.4 !important;
}
.nav-utility-row .rz-menu:not(.rz-profile-menu) .rz-navigation-item-wrapper {
  background: transparent !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 4px 10px !important;
}
/* selected-nav-item is on the <li>; keep it clear so the pill is drawn once, on the wrapper. */
.nav-utility-row .rz-menu .selected-nav-item {
  background: transparent !important;
  height: auto !important;
  padding: 0 !important;
}
/* The pill — identical for hover AND selected (same wrapper element, rounded, compact). */
.nav-utility-row .rz-menu:not(.impersonated-nav-item) .rz-navigation-item-wrapper:hover,
.nav-utility-row .rz-menu .selected-nav-item .rz-navigation-item-wrapper {
  background: var(--rz-primary) !important;
  color: #fff !important;
  border-radius: 8px !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 4px 10px !important;
}
.nav-utility-row .navbar-font-size,
.nav-utility-row .rz-navigation-item-text,
.nav-utility-row .rz-menuitem-text {
  font-size: 12px !important;
}
.nav-utility-row .rz-navigation-item-icon {
  font-size: 18px !important;
}
/* The utility strip sits on the gray page background, OUTSIDE the white island.
   Make the header transparent and move the island styling onto the workflow row only;
   drop the tile-bg from the utility-row menus so the page background shows through. */
.rz-header {
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}
.nav-utility-row .rz-menu:not(.rz-profile-menu),
.nav-utility-row .rz-navigation-menu,
.nav-utility-row .rz-navigation-item,
.nav-utility-row .rz-navigation-item-wrapper {
  background: transparent !important;
}
.nav-primary-row {
  background-color: var(--tile-bg);
  border-radius: 16px;
  padding: 6px 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.light-mode .rz-data-grid tr:first-child th {
  border-bottom: 1px solid #c0c0c0;
}
/*NabBar Styles*/
/* Hover styling to all nav-items, excluding profile-item */
.rz-menu:not(.impersonated-nav-item) .rz-navigation-item-wrapper:hover,
.selected-nav-item {
  background: var(--rz-primary);
  color: white !important;
  border-radius: var(--nav-border-radius);
  height: var(--nav-item-height);
  display: flex;
  justify-content: center;
  align-items: center;
}
/* distinct look for impersonated user's menu item */
.nav-menu .impersonated-nav-item > .rz-navigation-item-wrapper {
  background: var(--nav-impersonated-color);
  border-radius: var(--nav-border-radius);
  height: var(--nav-item-height);
  display: flex;
  justify-content: center;
  align-items: center;
}

.impersonated-nav-item > .rz-navigation-item-wrapper .rz-navigation-item-text,
.impersonated-nav-item > .rz-navigation-item-wrapper .rz-navigation-item-link {
  color: white !important;
}
/* Radzen paints the inner link with a light default background in the light
   theme, which covered the wrapper's --nav-impersonated-color and left the
   white text sitting on light grey (unreadable). Force the impersonated colour
   onto the link (and wrapper) so the white text always has contrast. */
.nav-menu .impersonated-nav-item > .rz-navigation-item-wrapper,
.impersonated-nav-item > .rz-navigation-item-wrapper .rz-navigation-item-link {
  background-color: var(--nav-impersonated-color) !important;
}
/* Prevent hover background change on impersonated item wrapper */
.impersonated-nav-item:hover > .rz-navigation-item-wrapper {
  background-color: var(--nav-impersonated-color) !important;
  color: white !important;
  border-radius: 16px;
}

/* Prevent hover text/icon color changes on impersonated item wrapper */
.impersonated-nav-item
  > .rz-navigation-item-wrapper
  .rz-navigation-item-link:hover,
.impersonated-nav-item > .rz-navigation-item-wrapper .rz-menuitem-text:hover,
.impersonated-nav-item
  > .rz-navigation-item-wrapper
  .rz-navigation-item-icon:hover {
  color: white !important;
  fill: white !important;
}
/*  Default hover behavior for child Log out menu items  inside impersonated parent*/
.impersonated-nav-item .rz-navigation-menu .rz-navigation-item-wrapper:hover {
  background: var(--rz-primary) !important;
  color: var(--nav-text-light) !important;
  border-radius: var(--nav-border-radius);
  height: var(--nav-item-height);
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Reset text colors for child Logout menu items */
.impersonated-nav-item .rz-navigation-menu .rz-navigation-item-link,
.impersonated-nav-item .rz-navigation-menu .rz-menuitem-text,
.impersonated-nav-item .rz-navigation-menu .rz-navigation-item-icon {
  color: var(--nav-text-dark) !important;
  fill: var(--nav-text-dark) !important;
}

/* Child Logout menu items hover text colors */
.impersonated-nav-item
  .rz-navigation-menu
  .rz-navigation-item-wrapper:hover
  .rz-navigation-item-link,
.impersonated-nav-item
  .rz-navigation-menu
  .rz-navigation-item-wrapper:hover
  .rz-menuitem-text,
.impersonated-nav-item
  .rz-navigation-menu
  .rz-navigation-item-wrapper:hover
  .rz-navigation-item-icon {
  color: var(--nav-text-light) !important;
  fill: var(--nav-text-light) !important;
}

/* Make parent white (direct child of selected-nav-item) */
.selected-nav-item > .rz-navigation-item-wrapper > .rz-navigation-item-link,
.selected-nav-item
  > .rz-navigation-item-wrapper
  > .rz-navigation-item-link
  .rz-navigation-item-icon,
.selected-nav-item
  > .rz-navigation-item-wrapper
  > .rz-navigation-item-link
  .rz-navigation-item-text {
  color: white !important;
}

@media (max-width: 1350px) {
  .rz-menu:not(.rz-profile-menu) .rz-navigation-item-wrapper {
    padding-left: 8px;
    padding-right: 8px;
  }
}

@media (max-width: 1350px) {
  .nav-menu .rzi.rz-navigation-item-icon {
    width: 10px;
    height: 10px;
    padding-right: 4px;
  }
}

.selected-nav-item .rz-navigation-menu {
  margin-top: 145px !important;
}

.nav-menu-left-content {
  float: left;
  width: 50%;
  display: flex;
  align-content: start;
}

.nav-menu-right-content {
  float: right;
  width: 50%;
  display: flex;
  justify-content: flex-end;
}

.main-container {
  width: 100%;
  overflow-y: hidden;
  background-color: var(--body-bg);
}

/*Theme Toggle Related styling*/
.theme-toggle {
  display: flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.toggle-track {
  width: 60px;
  height: 25px;
  border-radius: 16px;
  padding: 4px;
  display: flex;
  align-items: center;
  transition: background-color 0.3s ease;
  position: relative;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(5px);
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.toggle-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(145deg, #ffffff, #dcdcdc);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3), inset 0 -1px 1px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  left: 3px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
  transition: transform 0.25s linear;
}

.toggle-thumb:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4), inset 0 -1px 2px rgba(0, 0, 0, 0.15);
  cursor: pointer;
}

.toggle-track:hover {
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.25),
    0 0 5px rgba(255, 255, 255, 0.2);
}

.toggle-thumb:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(100, 149, 237, 0.4);
}

.icon {
  font-size: 14px;
  color: #333; /* dark icon on light background */
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.label {
  margin-left: 10px;
  font-weight: bold;
}

/*.username-tb::-webkit-input-placeholder { color: #555 !important; opacity: 0.8 !important;}*/
/*.username-tb::-moz-placeholder { color: #555 !important; opacity: 0.8 !important;}*/
/*.username-tb:-ms-input-placeholder { color: #555 !important; opacity: 0.8 !important;}*/
/*.username-tb:-moz-placeholder { color: #555 !important; opacity: 0.8 !important;}*/

/*.password-tb::-webkit-input-placeholder { color: #555 !important;}*/
/*.password-tb::-moz-placeholder { color: #555 !important; }*/
/*.password-tb:-ms-input-placeholder { color: #555 !important; }*/
/*.password-tb:-moz-placeholder { color: #555 !important; }*/

.main-content {
  width: 100%;
  height: 100%;
  min-height: 100%;
  overflow-y: auto;
}

.infographics {
  width: 500px;
  background-color: transparent;
  z-index: 0;
}

.responsive-grid {
  height: calc(100vh - 285px - var(--top-nav-extra-height));
  overflow-y: auto;
}

@media (max-height: 1000px) {
  .responsive-grid {
    height: calc(100vh - 296px - var(--top-nav-extra-height));
    overflow-y: auto;
  }
}
/* Footer container */
.app-footer {
  left: 0;
  bottom: 0;
  width: 100%;
  padding-top: 8px;
  border-radius: 12px;
  background-color: var(--title-bg);
  display: flex;
}

/* Responsive copyright text */
.app-footer .copyright-text {
  font-size: clamp(0.65rem, 0.8vw, 0.8rem);
  font-weight: 200;
}

ul[role="tablist"] {
  flex-wrap: wrap;
}

#blazor-error-ui {
  background: lightyellow;
  bottom: 0;
  box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
  display: none;
  left: 0;
  padding: 0.6rem 1.25rem 0.7rem 1.25rem;
  position: fixed;
  width: 100%;
  z-index: 1000;
}

#blazor-error-ui .dismiss {
  cursor: pointer;
  position: absolute;
  right: 0.75rem;
  top: 0.5rem;
}

.required-asterisk,
.container-fluid.dark-mode .required-asterisk {
  color: var(--required-asterisk-color) !important;
  font-weight: bolder;
}

.w-18 {
  width: 18%;
  min-width: 18%;
}

.w-30 {
  width: 30%;
  min-width: 30%;
}

.w-70 {
  width: 70%;
  min-width: 70%;
}

.w-82 {
  width: 82%;
  min-width: 82%;
}

.min-vh-80 {
  min-height: 80vh;
}

.min-vh-82 {
  min-height: 82vh;
}

.login-width {
  width: 540px;
  min-width: 540px;
  max-width: 540px;
}

@media (max-width: 1350px) {
  .login-width {
    width: 480px;
    min-width: 480px;
    max-width: 480px;
  }
}

.sign-in-margin {
  margin-bottom: 94px;
}

@media (max-width: 1350px) {
  .sign-in-margin {
    margin-bottom: 64px;
  }
}

.sign-in-fusion-logo {
  height: 64px;
  width: auto;
  max-width: 100%;
  display: block;
  margin: 0 auto 18px auto;
}

@media (max-width: 1350px) {
  .sign-in-fusion-logo {
    height: 50px;
    width: auto;
    max-width: 100%;
    display: block;
    margin: 0 auto 8px auto;
  }
}

.logo-image {
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
}

.sign-in-amarillo-logo {
  height: 52px;
  width: 31%;
}

@media (max-width: 1350px) {
  .sign-in-amarillo-logo {
    height: 46px;
    width: 31%;
  }
}

.h-20 {
  height: 20%;
  min-height: 20%;
  max-height: 20%;
}

.h-12 {
  height: 12%;
  min-height: 12%;
  max-height: 12%;
}

.h-88 {
  height: 88%;
  min-height: 88%;
  max-height: 88%;
}

.h-33 {
  height: 33%;
  min-height: 33%;
  max-height: 33%;
}

.h-67 {
  height: 67%;
  min-height: 67%;
  max-height: 67%;
}

.h-34 {
  height: 34%;
  min-height: 34%;
  max-height: 34%;
}

.h-68 {
  height: 68%;
  min-height: 68%;
  max-height: 68%;
}

.h-80 {
  height: 80%;
  min-height: 80%;
  max-height: 80%;
}

.valid.modified:not([type="checkbox"]) {
  outline: none !important;
}

.rz-expanded-row-template {
  padding: 0;
  border: 0;
  margin: 0;
}

.rz-expanded-row-content td {
  padding: 0;
}

.dark-mode .rz-data-grid {
  border-radius: 8px;
  border: 0.5px solid var(--data-grid-border-color); /*data grid outer border*/
}

#container.light-mode .rz-data-grid {
  border-radius: 8px;
  border: 1px solid var(--data-grid-border-color);
}

.dark-mode .rz-data-grid tr:first-child th {
  border-bottom: 1px solid var(--data-grid-bottom-border-color);
}

.rz-data-grid tr:first-child th:first-child {
  border-top-left-radius: 8px;
}

.rz-data-grid tr:first-child th:last-child {
  border-top-right-radius: 8px;
}

.rz-data-grid tr:last-child td:first-child {
  border-bottom-left-radius: 8px;
}

.rz-data-grid tr:last-child td:last-child {
  border-bottom-right-radius: 8px;
}

.rz-grid-table td {
  padding: 0;
  padding-left: 4px;
  padding-right: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  height: 50px;
  text-align: center;
  vertical-align: middle;
}

.rz-grid-table thead tr th {
  padding: 0;
  padding-left: 4px;
  padding-right: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  height: 50px;
}

.rz-grid-table tr.rz-datatable-even td {
  background: var(--table-row-bg);
}

.dark-mode .rz-grid-table tr:is(.rz-datatable-even, .rz-datatable-odd) td {
  background: var(--table-alternate-row-bg);
  border-bottom: 1px solid var(--tab-border-color);
}

.dark-mode .rz-datatable-data td,
.rz-grid-table td {
  border-bottom: 1px solid var(--tab-border-color) !important;
}

.light-mode .rz-grid-table tr:is(.rz-datatable-even, .rz-datatable-odd) td {
  background: var(--table-alternate-row-bg);
  border-bottom: 1px solid var(--tab-border-color) !important;
}

.light-mode .rz-datatable-data td,
.rz-grid-table td {
  border-bottom: 1px solid var(--tab-border-color) !important;
}

.rz-tabview-panel {
  height: 100%;
}

.calendar-height {
  height: calc(100vh - 354px - var(--top-nav-extra-height));
}

@media (max-height: 700px) {
  .calendar-height {
    height: calc(100vh - 320px - var(--top-nav-extra-height));
  }
}

.no-data-found {
  height: 150px;
  width: 150px;
}

@media (max-width: 1300px) {
  .no-data-found {
    height: 110px;
    width: 110px;
  }
}

.rz-tabview-top > .rz-tabview-panels {
  border-bottom-left-radius: 28px;
  border-bottom-right-radius: 28px;
}

.mapping-tabview-panel > .rz-tabview-top > .rz-tabview-panels,
.sidebar-tabs-container > .rz-tabview-top > .rz-tabview-panels {
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}

.rz-grid-table thead tr th .rz-column-title {
  padding: 0;
}
/* Grid Table header font style */
.rz-grid-table thead tr th .rz-column-title {
  color: var(--font-color-primary) !important;
  font-weight: 400;
}

.vertical-align {
  vertical-align: baseline;
}

td.rz-col-icon {
  vertical-align: baseline !important;
}

.rz-datalist-data,
.rz-datalist-data li {
  padding: 3px;
}

.documents-buttons {
  min-height: 4%;
}

.documents {
  height: calc(100vh - 185px - var(--top-nav-extra-height));
  min-height: 40%;
  border-top: 1px solid var(--tab-border-color);
}

.progress-terminal {
  width: 100%;
  min-height: 20vh;
  height: 20vh;
  overflow: auto;
  display: flex;
  flex-direction: column;
}

.plk-dd-inprogess > * {
  pointer-events: none;
}

/*dropzone style style*/
.plk-dd-dropzone {
  min-height: 30px;
}

/*drag drop styles*/

.plk-dd-spacing {
  height: 10px;
}

.plk-dd-spacing-dragged-over {
  padding: 25px;
}

.plk-dd-dragged-over {
  background-color: lightgray;
  opacity: 0.6;
  animation: blinker 1s linear infinite;
}

.plk-dd-dragged-over > div {
  background-color: lightgray;
  opacity: 0.6;
  animation: blinker 1s linear infinite;
}

.plk-dd-dragged-over-denied {
  background-color: red;
  opacity: 0.6;
  animation: blinker 1s linear infinite;
}

.plk-dd-in-transit {
  opacity: 0;
}

.plk-dd-in-transit > div {
  opacity: 0;
}

@keyframes blinker {
  50% {
    opacity: 0;
  }
}

.blink_me {
  animation: blinker 1s linear infinite;
}

/*for flex demo*/

.plk-flex .plk-dd-spacing {
  width: 20px;
  height: auto;
}

.plk-flex .plk-dd-dragged-over {
  background-color: lightgray;
  opacity: 0.6;
  animation: blinker 1s linear infinite;
}

.plk-flex .plk-dd-dragged-over > div {
  background-color: lightgray;
  opacity: 0.9;
  animation: blinker 1s linear infinite;
}

.plk-flex .plk-dd-in-transit {
  background-color: orangered;
}

.plk-flex .plk-dd-in-transit > div {
  background-color: orangered;
}

.plk-dd-noselect {
  -webkit-touch-callout: none; /* iOS Safari */
  -webkit-user-select: none; /* Safari */
  -khtml-user-select: none; /* Konqueror HTML */
  -moz-user-select: none; /* Old versions of Firefox */
  -ms-user-select: none; /* Internet Explorer/Edge */
  user-select: none; /* Non-prefixed version, currently
                                  supported by Chrome, Edge, Opera and Firefox */
}

/*for Login Page */
#video-bg {
  position: fixed;
  right: 0;
  bottom: 0;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  z-index: -1;
}

hr {
  border: 0;
  clear: both;
  display: block;
  width: 100%;
  background-color: silver;
  height: 1px;
}

.btn {
  transition: all 0.2s ease;
}

.btn:hover {
  filter: brightness(1.1) saturate(1);
}

.custom-btn-color {
  outline-color: var(--button-outline-color) !important;
}

.success-btn {
  background-color: var(--rz-success) !important;
}

.secondary-action-btn {
  background-color: var(--secondary-action-btn-bg) !important;
}

.rz-button.rz-state-disabled,
.rz-state-disabled.rz-paginator-element {
  opacity: 0.7;
}

.gap-4px {
  gap: 4px;
}

.gap-6px {
  gap: 6px;
}

.gap-8px {
  gap: 8px;
}

.gap-10px {
  gap: 10px;
}

.gap-12px {
  gap: 12px;
}

.gap-14px {
  gap: 14px;
}

.gap-16px {
  gap: 16px;
}

.col7-paddingtop {
  padding-top: 10px;
}

.col4-paddingtop {
  padding-top: 13px;
}

.term-condition {
  font-size: 12px;
  font-weight: 100;
}

@media (max-width: 1350px) {
  .term-condition {
    font-size: 10px;
    font-weight: 100;
  }
}

.panel-button-fontsize {
  font-size: 14px !important;
}

@media (max-width: 1350px) {
  .panel-button-fontsize {
    font-size: 12px !important;
  }
}

.paragraph-padding {
  padding: 8px;
  text-align: center;
}

.hr-padding-top {
  padding-top: 50px;
}

.file-upload-button i {
  margin-right: unset !important;
}

.tree-div {
  border-right: 1px solid var(--tab-border-color);
}

.rz-tabview.rz-tabview-top:not(.col-md-12):not(.p-0):not(.m-0) {
  display: flex;
  flex-direction: column;
  height: calc(100% - 130px);
}

.rz-tabview.rz-tabview-top.col-md-12.p-0.m-0 {
  height: 100% !important;
}

.rz-tabview.rz-tabview-top.organisation-tab {
  height: 100% !important;
}

.rz-tabview.rz-tabview-top.parties_tab {
  height: 100% !important;
}

.parties_tab {
  overflow-x: hidden !important;
}

.rz-tabview-nav {
  flex-shrink: 0; /*Prevent header from shrinking */
  background: var(--title-bg);
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 0 16px;
}

.rz-datalist-content {
  padding-bottom: 16px; /* added padding at the end of the data list in mapping engine*/
}

.rz-tabview-panels {
  flex-grow: 1;
  overflow-y: auto !important;
  scrollbar-width: thin;
  scrollbar-color: var(--rz-scrollbar-thumb) var(--rz-scrollbar-track);
}

/* WebKit scrollbar styling */
.rz-tabview-panels::-webkit-scrollbar {
  width: 8px;
  margin-bottom: 20px; /*Match bottom padding */
}

.rz-tabview-panels::-webkit-scrollbar-track {
  background: var(--rz-scrollbar-track);
  border-radius: 4px;
  margin-top: 40px; /*Aligns with content */
}

.rz-tabview-panels::-webkit-scrollbar-thumb {
  background: var(--rz-scrollbar-thumb);
  border-radius: 4px;
  border: 2px solid var(--rz-scrollbar-track);
}

.fields-area,
.rz-dialog-content,
.rz-dropdown-items-wrapper,
.org-documnet-tree {
  scrollbar-color: var(--rz-scrollbar-thumb) var(--rz-scrollbar-track) !important;
  scrollbar-width: thin !important;
}

.skip-dropdown-region {
  overflow: hidden !important;
}

/*for the document section scrollbar styling*/
.document-section-card {
  overflow-y: auto !important;
  scrollbar-color: var(--rz-scrollbar-thumb) var(--rz-scrollbar-track);
  scrollbar-width: thin;
}

.rz-dropdown-items-wrapper {
  overflow-x: auto !important;
}

.rz-data-grid-data {
  scrollbar-width: thin;
}

@media (width >= 1280px) {
  .fields-area {
    height: 50% !important;
  }
}

.rz-badge-secondary.rz-shade-default {
  background-color: var(--badge-secondary-bg-color);
  color: var(--rz-on-secondary);
}

.rz-multiselect-items-wrapper {
  scrollbar-color: var(--rz-scrollbar-thumb) var(--rz-scrollbar-track);
  scrollbar-width: thin;
}

.rz-month-view.rz-view .rz-view-content {
  overflow-x: hidden !important;
  scrollbar-color: var(--rz-scrollbar-thumb) var(--rz-scrollbar-track);
  scrollbar-width: thin;
}
/* Base mapping buttons */
.mapping-clone-button,
.business-clone-button {
  background-color: var(--map-clone-bg) !important;
  color: var(--map-clone-text) !important;
  transition: all 0.2s ease-in-out;
}

.mapping-policy-button,
.business-add-button {
  background-color: var(--map-policy-bg) !important;
  color: var(--map-policy-text) !important;
  transition: all 0.2s ease-in-out;
}

.mapping-premium-button {
  background-color: var(--map-premium-bg) !important;
  color: var(--map-premium-text) !important;
  transition: all 0.2s ease-in-out;
}

.mapping-claim-button {
  background-color: var(--map-claim-bg) !important;
  color: var(--map-claim-text) !important;
  transition: all 0.2s ease-in-out;
}

/* Light Theme - Hover Effects */
.light-mode .mapping-clone-button:hover,
.light-mode .business-clone-button:hover {
  background-color: var(--map-clone-hover-bg) !important;
  color: var(--map-clone-hover-text) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px var(--map-clone-hover-shadow);
}

.light-mode .mapping-policy-button:hover,
.light-mode .business-add-button:hover {
  background-color: var(--map-policy-hover-bg);
  color: var(--map-policy-hover-text);
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 8px var(--map-policy-hover-shadow) !important;
}

.light-mode .mapping-premium-button:hover {
  background-color: var(--map-premium-hover-bg) !important;
  color: var(--map-premium-hover-text) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px var(--map-premium-hover-shadow);
}

.light-mode .mapping-claim-button:hover {
  background-color: var(--map-claim-hover-bg) !important;
  color: var(--map-claim-hover-text) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px var(--map-claim-hover-shadow);
}

/* Dark Theme Buttons */
.dark-mode .mapping-clone-button,
.dark-mode .business-clone-button {
  background-color: var(--map-clone-bg-dark) !important;
}

.dark-mode .mapping-policy-button,
.dark-mode .business-add-button {
  background-color: var(--map-policy-bg-dark) !important;
  color: var(--map-policy-text-dark) !important;
}

.dark-mode .mapping-premium-button {
  background-color: var(--map-premium-bg-dark) !important;
  color: var(--map-premium-text-dark) !important;
}

.dark-mode .mapping-claim-button {
  background-color: var(--map-claim-bg-dark) !important;
  color: var(--map-claim-text-dark) !important;
}

/* Dark Theme Hover */
.dark-mode .mapping-clone-button:hover,
.dark-mode .business-clone-button:hover {
  background-color: var(--map-clone-hover-bg-dark) !important;
  color: var(--map-clone-hover-text-dark) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px var(--map-clone-hover-shadow-dark);
}

.dark-mode .mapping-policy-button:hover,
.dark-mode .business-add-button:hover {
  background-color: var(--map-policy-hover-bg-dark) !important;
  color: var(--map-policy-hover-text-dark) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px var(--map-policy-hover-shadow-dark);
}

.dark-mode .mapping-premium-button:hover {
  background-color: var(--map-premium-hover-bg-dark) !important;
  color: var(--map-premium-hover-text-dark) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px var(--map-premium-hover-shadow-dark);
}

.dark-mode .mapping-claim-button:hover {
  background-color: var(--map-claim-hover-bg-dark) !important;
  color: var(--map-claim-hover-text-dark) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px var(--map-claim-hover-shadow-dark);
}

.mapping-policy-button:disabled,
.mapping-premium-button:disabled,
.mapping-claim-button:disabled {
  opacity: 0.6;
}

/* Button Text weight */
.rz-button .rz-button-text {
  font-weight: 400 !important;
}

.documents-buttons,
.document-section-card {
  border-radius: 0px !important;
}

/* File Upload Icon Button Styling  */

.file-upload-button.custom-btn-color {
  /* Normal state */
  background-color: var(--file-upload-btn-bg) !important;
  border: 0px solid var(--file-upload-btn-border) !important;
  color: var(--file-upload-btn-color) !important;
  transition: all 0.2s ease-in-out;
  box-shadow: none !important;
  animation: fadeIn 0.3s ease-in-out;
}

.file-upload-button.custom-btn-color:hover {
  /* Hover state */
  background-color: var(--file-upload-btn-hover-bg) !important;
  border-color: var(--file-upload-btn-hover-border) !important;
  color: var(--file-upload-btn-hover-color) !important;
  transform: translateY(-1px);
  box-shadow: var(--file-upload-btn-hover-shadow) !important;
}

.file-upload-button.custom-btn-color:active,
.file-upload-button.custom-btn-color:focus {
  /* Active/Focus state */
  background-color: var(--file-upload-btn-active-bg) !important;
  border-color: var(--file-upload-btn-active-border) !important;
  color: var(--file-upload-btn-active-color) !important;
  transform: translateY(0);
  box-shadow: var(--file-upload-btn-focus-shadow) !important;
}

/* Icon styling within the button */
.file-upload-button.custom-btn-color .rz-button-icon {
  color: inherit;
  transition: color 0.2s ease-in-out;
  font-size: 14px;
  margin: 0;
}

/* Ensure proper spacing and sizing */
.file-upload-button.custom-btn-color .rounded-pill {
  padding: 8px;
  min-width: 32px;
  width: 32px;
  height: 32px;
  border-radius: 50% !important;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Animation keyframes For File Uplode Button*/
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}
/* document list items in document tab */
.document-section-h .rz-datalist-data .doc-list-item {
  width: 100%;
  padding: 4px;
  overflow: hidden;
  margin-bottom: 4px;
  background: var(--doc-item-card-bg) !important;
  border-radius: 12px;
  box-shadow: var(--rz-shadow-2);
}

.document-section-h .rz-datalist-data > li {
  background: transparent !important;
  box-shadow: none !important;
}

.document-section-h {
  width: 100%;
  overflow: auto;
  min-height: 43rem;
}

.files-replaced-btn {
  height: 29px;
  display: flex;
  justify-content: center;
  align-items: center;
}

#documents-section li {
  border-radius: 12px;
}

#documents-section {
  margin-top: 4px;
}

.light-mode .rz-g > div,
.rz-datalist-data > li {
  border: unset;
}

/* Base styling for all document status icons */
.replace-doc-icon,
.downlode-doc-icon,
.process-doc-icon,
.rollback-doc-icon {
  border: none !important;
  border-radius: 50% !important;
  padding: 8px !important;
  min-width: 32px !important;
  width: 32px !important;
  height: 32px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.2s ease-in-out !important;
  color: #ffffff !important;
  cursor: pointer !important;
  box-shadow: none !important;
}

/* Individual button colors - Normal state */
.rollback-doc-icon {
  background-color: var(--rollback-doc-icon-bg) !important;
}

.replace-doc-icon {
  background-color: var(--rollback-doc-icon-bg) !important;
}

.downlode-doc-icon {
  background-color: var(--downlode-doc-icon-bg) !important;
}

.process-doc-icon {
  background-color: var(--proccess-doc-icon-bg) !important;
}

/* Hover effects for enabled buttons */
.rollback-doc-icon:hover:not(.disabled),
.replace-doc-icon:hover:not(.disabled) {
  transform: translateY(-1px) !important;
  box-shadow: 0 2px 6px rgba(45, 153, 112, 0.3) !important;
}

.downlode-doc-icon:hover:not(.disabled) {
  transform: translateY(-1px) !important;
  box-shadow: 0 2px 6px rgba(99, 102, 241, 0.3) !important;
}

.process-doc-icon:hover:not(.disabled) {
  transform: translateY(-1px) !important;
  box-shadow: 0 2px 6px rgba(0, 71, 173, 0.3) !important;
}

/* Admistration tab styling */

/* Base styling for admin panel buttons */
.action-icon {
  background-color: var(--admin-btn-bg) !important;
  color: var(--admin-btn-icon) !important;
  border: 1px solid var(--admin-btn-border) !important;
  min-width: 32px !important;
  width: 32px !important;
  height: 32px !important;
  transition: all 0.2s ease-in-out !important;
  box-shadow: none !important;
  cursor: pointer !important;
}

/* Hover state for admin buttons */
.action-icon:hover {
  background-color: var(--admin-btn-hover-bg) !important;
  color: var(--admin-btn-hover-color) !important;
  border-color: var(--admin-btn-hover-border) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

/* Icon styling within admin buttons */
.rz-button-icon {
  color: inherit !important;
  font-size: 14px !important;
  margin: 0 !important;
  transition: color 0.2s ease-in-out !important;
}

.alert-warning {
  color: var(--alert-warning-text);
  background-color: var(--alert-warning-bg);
  border-color: var(--alert-warning-border);
}

/*tab view style in organisation tab*/
.rz-tabview-nav li {
  background-color: transparent;
  color: var(--font-color-primary);
}

.rz-tabview-nav .rz-tabview-selected {
  color: var(--rz-primary) !important;
}
/*Progress Bar Styling*/
.progress-bar {
  background-color: var(--progress-bar-bg) !important;
}

/*Progress Bar Styling*/
.progress-bar-left {
    background-color: var(--progress-bar-bg) !important;
}

.rz-progressbar-indeterminate.progress-bar .rz-progressbar-value:after,
.rz-progressbar-indeterminate.progress-bar .rz-progressbar-value:before {
  background-color: var(--progressbar-value-background-color);
}

.tooltip-txt-calender {
  color: var(--font-cross) !important;
}

.policy-ref-btn {
  background-color: var(--policy-ref-btn-bg) !important;
  color: var(--policy-ref-btn-text) !important;
  border-radius: 4px;
  padding: 4px 12px;
  font-weight: 500;
  font-size: 0.875rem;
  transition: all 0.2s ease-in-out;
  cursor: pointer;
}

.policy-ref-btn:hover {
  background-color: var(--policy-ref-btn-hover-bg) !important;
  color: var(--policy-ref-btn-hover-text) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
}

.show-policy-btn {
  background-color: var(--show-policy-btn-bg) !important;
  border: 1px solid var(--show-policy-btn-border) !important;
  color: var(--show-policy-btn-text) !important;
  transition: all 0.2s ease;
}

.show-policy-btn:hover:not(:disabled) {
  background-color: var(--show-policy-btn-hover-bg) !important;
}

.show-policy-btn:disabled {
  opacity: 0.7;
}

.dark-mode .rz-year-view .rz-slot .rz-slot-title.rz-has-appointments {
  color: var(--tile-bg) !important;
}

.rz-header {
  border-bottom: none !important;
}
/*Column Mapping styles*/
.column-mapping-container
  .tab-container
  > .rz-tabview
  > .rz-tabview-panels
  > .rz-tabview-panel {
  height: 50vh;
}

.column-mapping-container
  .tab-container
  > .rz-tabview
  > .rz-tabview-panels
  > .rz-tabview-panel
  .rz-tabview {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.column-mapping-container
  .tab-container
  > .rz-tabview
  > .rz-tabview-panels
  > .rz-tabview-panel
  .rz-tabview
  .rz-tabview-panels {
  flex: 1;
}

.excel-container {
  overflow: hidden; /* Prevent inner scroll conflict */
  height: 58vh;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Processing Mechanics Layout and Dividers */
.processing-mechanics-section {
  position: relative;
  border-right: 1px solid #dee2e6;
  min-height: 220px;
}

.processing-mechanics-section:last-child {
  border-right: none;
}

.dark-mode .processing-mechanics-section {
  border-right-color: rgba(255, 255, 255, 0.1);
}

/* Processing Mechanics Dropdown Styles */
.processing-mechanics-dropdown .rz-dropdown-item {
  white-space: normal !important;
  word-wrap: break-word !important;
  padding: 8px 12px !important;
  line-height: 1.4 !important;
  min-height: auto !important;
}

.processing-mechanics-dropdown .rz-dropdown-label {
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  display: block !important;
}

.processing-mechanics-dropdown .rz-dropdown-items-wrapper {
  max-height: 300px !important;
}

/* Responsive adjustments for Processing Mechanics */
@media (max-width: 1400px) {
  .processing-mechanics-dropdown {
    max-width: 240px !important;
  }
}

@media (max-width: 1200px) {
  .processing-mechanics-dropdown {
    max-width: 200px !important;
  }
}

.column-mapping-container
  .tab-container
  > .rz-tabview
  > .rz-tabview-panels
  > .rz-tabview-panel
  .rz-tabview
  .rz-tabview-panels,
.calculation-sidebar-content
  .tab-container
  > .rz-tabview
  > .rz-tabview-panels
  > .rz-tabview-panel
  .rz-tabview
  .rz-tabview-panels {
  border-bottom-left-radius: 0px;
  border-bottom-right-radius: 0px;
}

.calculation-custom-sidebar.calculation-sidebar-open {
  border-radius: 8px;
}

.required-asterisk {
  color: red;
  margin-left: 2px;
}

.form-group {
  margin-bottom: 16px;
  position: relative !important; /* Required for absolute positioning to work */
  padding-bottom: 8px !important; /* Reserve space for error messages */
}

.excel-container .rz-card {
  box-shadow: none !important;
  border: none !important;
}

/* Excel Viewer Component styling */

/* Header Container Styling */
.excel-container .header-dropzone-container {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  min-height: 45px;
  padding: 2px;
}

/* Dropzone Styling */
.excel-container .future-dropzone {
  min-height: 22px;
  border: 1px dashed var(--excel-dropzone-border);
  border-radius: 4px;
  margin-bottom: 6px;
  background: var(--excel-dropzone-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  padding: 2px 4px;
}

.excel-container .future-dropzone:hover {
  border-color: var(--excel-dropzone-hover-border);
  background: var(--excel-dropzone-hover-bg);
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Dropzone with content (mapped field) */
.excel-container .future-dropzone:has(.rz-badge) {
  border-style: solid;
  border-width: 1px;
  background: var(--excel-dropzone-active-bg);
  border-color: var(--excel-dropzone-active-border);
}

.excel-container .future-dropzone:has(.rz-badge):hover {
  background: var(--excel-dropzone-active-hover-bg);
  border-color: var(--excel-dropzone-active-hover-border);
}

/* Header Text Styling */
.excel-container .header-text {
  font-weight: 600;
  text-align: center;
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text-primary);
  padding: 2px;
}

/* Table Headers - Add Column Borders For Light Theme */
.light-mode .excel-container .rz-data-grid .rz-grid-table thead th {
  border-right: 1px solid #c0c0c0 !important;
}

.light-mode .excel-container .rz-data-grid .rz-grid-table thead th:last-child {
  border-right: none !important;
}

/* Table Cells - Add Column Borders */
.excel-container .rz-data-grid .rz-grid-table td {
  padding: 8px 12px;
  text-align: left;
  height: 20px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Badge Styling in Dropzone */
.excel-container .future-dropzone .rz-badge {
  font-size: 10px;
  font-weight: 500;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.excel-container .future-dropzone .rz-badge .rz-icon {
  margin-right: 4px;
  font-size: 12px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .excel-container .header-dropzone-container {
    min-height: 40px;
  }

  .excel-container .future-dropzone {
    min-height: 20px;
    margin-bottom: 4px;
  }

  .excel-container .header-text {
    font-size: 10px;
  }
}

/* Wizard Tab Container - Ensures sidebar stays within current tab */
.calculation-tab-container {
  position: relative;
  overflow: hidden;
  height: 100%;
  min-height: 60vh;
}

.calculation-custom-sidebar {
  position: absolute;
  top: 0;
  right: 0;
  width: 40%;
  min-width: 280px;
  height: 100%;
  background-color: var(--calculation-sidebar-bg);
  border: var(--calculation-sidebar-border);
  z-index: 1000;
  transition: transform 0.3s ease-in-out;
  display: flex;
  flex-direction: column;
}

.calculation-sidebar-open {
  transform: translateX(0);
}

.calculation-sidebar-closed {
  transform: translateX(100%);
}

.calculation-sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  border-bottom: var(--calculation-sidebar-border);
  background-color: var(--calculation-sidebar-header);
}

.calculation-sidebar-title {
  margin: 0;
  font-weight: 600;
  color: var(--font-color-primary);
}

.calculation-sidebar-content {
  padding: 1rem;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 1024px) and (min-width: 576px) {
  .calculation-custom-sidebar {
    width: 45% !important; /* Slightly wider on mobile */
    min-width: 250px;
  }
}

@media (max-width: 1280px) and (min-width: 720px) {
  .calculation-custom-sidebar {
    width: 35%;
  }
}

.add-headers-button {
  margin-left: auto; /* Pushes button to the right */
  margin-bottom: 10px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
}

.calculation-sidebar-content
  .tab-container
  > .rz-tabview
  > .rz-tabview-panels
  > .rz-tabview-panel {
  height: 100%;
}

.calculation-sidebar-content
  .tab-container
  > .rz-tabview
  > .rz-tabview-panels
  > .rz-tabview-panel
  .rz-tabview {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.calculation-sidebar-content
  .tab-container
  > .rz-tabview
  > .rz-tabview-panels
  > .rz-tabview-panel
  .rz-tabview
  .rz-tabview-panels {
  flex: 1;
  overflow: hidden;
}

/* 1st Dropzone - Calculation/Formula Badges */
.calculation-dropzone .rz-badge {
  background-color: var(--calc-badge-bg) !important;
  color: var(--calc-badge-text) !important;
  border: 1px solid var(--calc-badge-border) !important;
}

/* 1st Dropzone - Hardcode Badges */
.calculation-dropzone .rz-badge.hardcode {
  background-color: var(--hardcode-badge-bg) !important;
  color: var(--hardcode-badge-text) !important;
  border: 1px solid var(--hardcode-badge-border) !important;
}

/* 1st Dropzone - Mandatory Badges (both calculation and hardcode) */
.calculation-dropzone .rz-badge.mandatory {
  background-color: var(--calc-mandatory-badge-bg) !important;
  color: var(--calc-mandatory-badge-text) !important;
  border: 1px solid var(--calc-mandatory-badge-border) !important;
}

/* 2nd Dropzone - Mapping Badges */
.mapping-dropzone .rz-badge {
  background-color: var(--mapping-badge-bg) !important;
  color: var(--mapping-badge-text) !important;
  border: 1px solid var(--mapping-badge-border) !important;
}

/* 2nd Dropzone - Mandatory Mapping Badges */
.mapping-dropzone .rz-badge.mandatory {
  background-color: var(--mapping-mandatory-badge-bg) !important;
  color: var(--mapping-mandatory-badge-text) !important;
  border: 1px solid var(--mapping-mandatory-badge-border) !important;
}

/* Common badge hover effects */
.calculation-dropzone .rz-badge:hover,
.mapping-dropzone .rz-badge:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  transition: all 0.2s ease;
}

/* Badge icons styling */
.calculation-dropzone .rz-badge .rz-icon,
.mapping-dropzone .rz-badge .rz-icon {
  transition: all 0.2s ease;
}

.calculation-dropzone .rz-badge .rz-icon:hover,
.mapping-dropzone .rz-badge .rz-icon:hover {
  transform: scale(1.1);
}

.main-mapping-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.tabs-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding-bottom: 48px;
}

.wizard-tabs {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.wizard-tabs > .rz-tabview {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.wizard-tabs > .rz-tabview > .rz-tabview-nav {
  flex-shrink: 0; /* Prevent tab headers from scrolling */
}

.wizard-tabs > .rz-tabview > .rz-tabview-panels {
  flex: 1;
  overflow-y: auto;
  padding-bottom: 20px; /* Space for footer */
}

.tab-content {
  height: auto;
  overflow: visible;
}

.main-mapping-container .sticky-footer {
  padding: 1px 24px;
}

.sticky-footer {
  bottom: 7%;
  right: 6%;
  z-index: 100;
  padding: 10px 25px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
}

.footer-buttons-right {
  display: flex;
  gap: 10px;
}

.test-Sheet-Container
  .rz-grid-table.rz-grid-gridlines-vertical
  > tbody
  > tr:first-of-type
  > td {
  background-color: var(--testing-tab-first-header-bg) !important;
  border-right: 1px double #c0c0c0;
}

/*Expression builder and the Mapping CalculationZone related styling*/

.items-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.drop-item {
  display: inline-block; /* Allows seamless alignment */
  padding: 8px 12px;
  border-radius: 4px;
  font-weight: bold;
  text-align: left;
  color: white;
  min-width: 60px;
  transition: background 0.3s ease;
  text-transform: none !important;
}
.formula-zone .drop-item {
  padding: 4px 8px;
  font-size: 12px !important;
}
.dropzone-height {
  height: 220px !important;
  overflow: auto;
}

.custom-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 columns */
  gap: 10px; /* Spacing between items */
  padding: 10px;
  width: 50%;
}

/*@media(max-width: 768px){
    .rz-layout .rz-header{
        max-height:100%;
    }
}*/

/*Export radio button adjustment for the smaller screen size*/
@media (max-width: 1366px) {
  .export-radio-list .rz-stack {
    flex-direction: column !important;
    align-items: flex-start !important;
  }
}

/*Confirmation Modal styling*/
.modal {
  background-color: var(--modal-backdrop);
}

.modal-content {
  background-color: var(--modal-content-bg);
  border: none;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.modal-header {
  background-color: var(--modal-header-bg);
  border-bottom: 1px solid var(--modal-header-bg);
  border-radius: 8px 8px 0 0;
  padding: 1rem 1.5rem;
}

.modal-header .modal-title {
  color: var(--modal-title-color);
  font-weight: 600;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-body {
  background-color: var(--modal-content-bg);
  color: var(--modal-text-color);
  padding: 1.5rem;
  line-height: 1.5;
}

.modal-footer {
  background-color: var(--modal-footer-bg);
  border-top: 1px solid var(--modal-footer-bg);
  border-radius: 0 0 8px 8px;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

.tab-container.sidebar-tabs-container {
  height: 68vh;
}

@media screen and (max-width: 1280px) and (max-height: 720px) {
  .tab-container.sidebar-tabs-container {
    height: 66vh;
  }
}

/* 1440 x 810 */
@media screen and (max-width: 1440px) and (max-height: 810px) {
  .tab-container.sidebar-tabs-container {
    height: 65vh;
  }
}

/* 1920 x 950 */
@media screen and (max-width: 1920px) and (max-height: 950px) {
  .tab-container.sidebar-tabs-container {
    height: 64vh;
  }
}

/* 1920 x 1080 */
@media screen and (max-width: 1920px) and (max-height: 1080px) {
  .tab-container.sidebar-tabs-container {
    height: 64vh;
  }
}

.rz-tabview.rz-tabview-top.nested-tabs .rz-tabview-panels {
  overflow-x: auto !important;
  scrollbar-width: thin;
  scrollbar-color: var(--rz-scrollbar-thumb) var(--rz-scrollbar-track);
}

/* handling parties tab-view font and icons with media queries inside the sidebar and the column mapping tab */
@media (max-width: 1024px) {
  .tab-container.mapping-tabview-panel
    .rz-tabview
    .rz-tabview-panels
    .rz-tabview
    ul
    li
    a,
  .tab-container.sidebar-tabs-container
    .rz-tabview
    .rz-tabview-panels
    .rz-tabview
    ul
    li
    a {
    padding-inline: 0.3rem !important;
  }

  .tab-container.mapping-tabview-panel
    .rz-tabview
    .rz-tabview-panels
    .rz-tabview
    ul
    li
    a
    .rz-tabview-title,
  .tab-container.sidebar-tabs-container
    .rz-tabview
    .rz-tabview-panels
    .rz-tabview
    ul
    li
    a
    .rz-tabview-title {
    font-size: 10px !important;
  }
}

@media (min-width: 1280px) and (max-width: 1440px) {
  .tab-container.mapping-tabview-panel
    .rz-tabview
    .rz-tabview-panels
    .rz-tabview
    ul
    li
    a,
  .tab-container.sidebar-tabs-container
    .rz-tabview
    .rz-tabview-panels
    .rz-tabview
    ul
    li
    a {
    padding-inline: 0.5rem !important;
  }

  .tab-container.mapping-tabview-panel
    .rz-tabview
    .rz-tabview-panels
    .rz-tabview
    ul
    li
    a
    .rz-tabview-title,
  .tab-container.sidebar-tabs-container
    .rz-tabview
    .rz-tabview-panels
    .rz-tabview
    ul
    li
    a
    .rz-tabview-title {
    font-size: 12px !important;
  }
}

@media (max-width: 1280px) and (min-width: 1200px) {
  .tab-container.sidebar-tabs-container
    .rz-tabview
    .rz-tabview-panels
    .rz-tabview
    ul
    li
    a {
    padding-inline: 0.3rem !important;
  }

  .tab-container.sidebar-tabs-container
    .rz-tabview
    .rz-tabview-panels
    .rz-tabview
    ul
    li
    a
    .rz-tabview-title {
    font-size: 11px !important;
  }
}

/* Handling the scrollbars with below media queries*/
@media (width: 1024px) and (height: 576px) {
  .excel-container {
    height: 45vh !important;
  }

  .column-mapping-container
    .tab-container
    > .rz-tabview
    > .rz-tabview-panels
    > .rz-tabview-panel {
    height: 30vh !important;
  }
}

/* General case for mid-range (1280�720, 1440�810, 1366�768, 1440�900) */
@media (min-width: 1280px) and (max-width: 1440px) {
  .excel-container {
    height: 48vh !important;
  }

  .column-mapping-container
    .tab-container
    > .rz-tabview
    > .rz-tabview-panels
    > .rz-tabview-panel {
    height: 38vh !important;
  }
}

/* 6. Special override: 1280�720 only */
@media (max-width: 1280px) and (min-width: 1200px) {
  .excel-container {
    height: 46vh !important;
  }

  .column-mapping-container
    .tab-container
    > .rz-tabview
    > .rz-tabview-panels
    > .rz-tabview-panel {
    height: 32vh !important;
  }
}

/*Styling for the NEXT button highlight for human quick attention*/
.rz-button.pulse-next {
  position: relative;
  overflow: hidden;
  animation: sweepScale 2.4s ease-in-out infinite;
  transition: transform 0.2s ease;
}

@keyframes sweepScale {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.15),
      0 0 10px rgba(0, 71, 173, 0.35);
  }

  50% {
    transform: scale(1.05);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.25),
      0 0 20px rgba(0, 71, 173, 0.55);
  }
}

.rz-button.pulse-next::after {
  content: "";
  position: absolute;
  top: 0;
  left: -150%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.6) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  animation: sweepHighlight 2.4s ease-in-out infinite;
}

@keyframes sweepHighlight {
  0% {
    left: -150%;
  }

  60% {
    left: 120%;
  }

  100% {
    left: 120%;
  }
}

.calculation-body-content.rz-card {
  scrollbar-color: var(--rz-scrollbar-thumb) var(--rz-scrollbar-track) !important;
  scrollbar-width: thin !important;
}

@media (max-width: 1280px) and (min-width: 1200px) {
  .calculation-body-content .rz-card.rz-variant-outlined {
    max-height: 33vh !important;
  }

  .calculation-body-content .rz-card.rz-variant-outlined .plk-dd-spacing {
    height: 4px !important;
  }
}

.calculation-body-content .rz-card.rz-variant-outlined {
  scrollbar-width: thin !important;
  gap: 3px !important;
  padding-bottom: 12px !important;
  overflow-x: hidden;
}

.calc-row:hover {
  background-color: var(--rz-grid-hover-background-color);
}
.calc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  margin-bottom: 6px;
  border-radius: 6px;
}

.hover-badge {
  color: white !important;
  font-size: 14px !important;
  padding: 6px 12px !important;
  max-width: 70% !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.stored-exp-card {
  max-height: 40vh !important;
  overflow-y: auto !important;
  margin-top: 1rem !important;
  border-radius: 8px !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1) !important;
  padding: 1rem !important;
}

.rz-card.rz-variant-outlined.stored-exp-card .plk-dd-spacing {
  height: 4px;
}

.stored-exp-card-header {
  padding: 12px 16px 8px;
  margin: -16px -16px 12px;
  border-radius: 8px 8px 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--table-header-bg);
}
.stored-exp-card-header .header-title {
  font-size: 14px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stored-exp-card-header .header-count {
  font-size: 12px;
  color: var(--font-color-primary);
  font-weight: 500;
  opacity: 0.6;
}

.calc-row .stored-exp-buttons {
  flex-shrink: 0;
}

.empty-stored-exp-card {
  text-align: center;
  padding: 32px 16px;
  color: #6c757d;
}

.empty-stored-exp-card .icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.3;
}

.empty-stored-exp-card .title {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 8px;
}

.empty-stored-exp-card .subtitle {
  font-size: 14px;
  opacity: 0.8;
}

/* Responsiveness for Stored calculation expression */
@media (max-width: 1280px) and (min-width: 1200px) {
  .stored-exp-card {
    padding: 12px !important;
  }

  .stored-exp-card-header {
    padding: 10px 12px 6px;
  }

  .stored-exp-card-header .header-title {
    font-size: 12px;
  }

  .stored-exp-card-header .header-count {
    font-size: 12px;
  }

  .stored-exp-buttons .rz-button {
    width: 24px !important;
    height: 24px !important;
    font-size: 12px !important;
    margin-right: 4px !important;
  }

  .calc-row {
    padding: 4px 8px;
    margin-bottom: 4px;
  }

  .empty-stored-exp-card .icon {
    font-size: 40px;
  }

  .empty-stored-exp-card .title {
    font-size: 14px;
  }

  .empty-stored-exp-card .subtitle {
    font-size: 12px;
  }
}

@media (width: 1024px) and (height: 576px) {
  .stored-exp-card {
    padding: 8px !important;
  }

  .stored-exp-card-header {
    padding: 8px;
  }

  .stored-exp-card-header .header-title {
    font-size: 12px;
  }

  .stored-exp-card-header .header-count {
    font-size: 10px;
  }

  .stored-exp-buttons .rz-button {
    width: 24px !important;
    height: 24px !important;
    font-size: 12px !important;
  }

  .calc-row {
    padding: 4px 8px;
    margin-bottom: 4px;
  }

  .empty-stored-exp-card .icon {
    font-size: 36px;
  }

  .empty-stored-exp-card .title {
    font-size: 16px;
  }

  .empty-stored-exp-card .subtitle {
    font-size: 12px;
  }
}

.text-tolower {
  text-transform: lowercase !important;
}

#popup-member_id .rz-dropdown-item {
  text-transform: lowercase !important;
}

.rz-message {
  padding-left: 0.25rem !important;
  margin-top: 0.25rem;
}

.form-group .rz-message,
.form-group .rz-messages-error {
  position: absolute !important;
  display: block !important;
}

.custom-panel-color {
  border-radius: 40px;
  background-color: var(--tile-bg);
  box-shadow: 0 0px 30px rgb(0 0 0 / 0.2);
}

.document-state-badge {
  border: 2px solid var(--document-state-badge-border-color);
  color: var(--document-state-badge-color) !important;
  background-color: transparent !important;
  font-size: 12px;
  font-weight: 600;
}

/*Calculation Zone, Business Rules Badges*/
.arithmetic-badge {
  background-color: #366cf5 !important;
  color: white !important;
}
.logical-badge {
  background-color: #0047ad !important;
  color: white !important;
}

.customvalue-badge {
  background-color: #2cc7c7 !important;
  color: white !important;
}
.fusion-field-badge {
  background-color: #3ca0d6 !important;
  color: white;
}
.items-container .fusion-field-badge {
  font-size: 14px;
  width: 90%;
  height: auto;
  white-space: normal;
  overflow-wrap: break-word;
  display: inline-block;
  padding: 8px;
}
.vertical-divider {
  width: 1px;
  height: 100%;
  background-color: var(--vertical-divider-bg-color);
}

/* ========================================
   Power BI Reports Styles
   ======================================== */

/* Main reports container - full screen layout */
.reports-container {
    width: 100%;
    /* Was calc(100vh - 120px); the two-tier navbar pushed the Power BI page-tab
       strip below the viewport (clipped by overflow:hidden). See
       --top-nav-extra-height at the top of this file. */
    height: calc(100vh - 120px - var(--top-nav-extra-height));
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

/* Power BI embed container - full responsive view */
.powerbi-report-container {
    width: 100%;
    /* Fill the space left below the toolbar instead of taking 100% of the whole
       flex column. height:100% next to the toolbar overflowed the fixed-height
       parent by the toolbar's height, and the parent's overflow:hidden clipped
       that bottom strip — which is exactly where Power BI renders the page tabs. */
    flex: 1 1 auto;
    min-height: 0;
    border: none;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Loading state */
.reports-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
}

.reports-loading-text {
    margin-top: 1.5rem;
    font-size: 1.1rem;
    color: var(--body-text-color);
    font-weight: 500;
}

/* Error state */
.reports-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    padding: 2rem;
    max-width: 600px;
    margin: 0 auto;
}

.highlight {
    background-color: var(--badge-highlight-bg) !important;
    font-weight: 600;
    padding: 0 2px;
    border-radius: 2px;
    color: var(--badge-highlight-text) !important;
}
/* Export Toolbar */
.reports-toolbar {
    padding: 8px 16px 12px 16px;
}

/* Split Button Dropdown Styling */
.rz-splitbutton-menu {
    border-top-left-radius: 4px !important;
    border-bottom-left-radius: 4px !important;
    background-color: var(--rz-splitbutton-item-background) !important;
}

    .rz-splitbutton-menu .rz-menuitem:hover {
        background-color: var(--rz-splitbutton-item-hover-background) !important;
    }

/* Responsive Adjustments */
@media (max-width: 768px) {
    .reports-toolbar {
        padding: 0 0 12px 0;
    }
}

/* DatePicker: stretch trigger over full field; add icon back as pseudo-element at original position.
   Only applies when AllowInput="false" (readonly input), so typed input fields are unaffected. */
.rz-datepicker:has(input[readonly]) .rz-datepicker-trigger {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    width: auto !important;
    height: auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
    max-width: none !important;
    max-height: none !important;
    transform: none !important;
    opacity: 0 !important;
    cursor: pointer !important;
    z-index: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 0 !important;
}

.rz-datepicker:has(input[readonly])::after {
    content: "calendar_today";
    font-family: var(--rz-icon-font-family, "Material Symbols");
    font-feature-settings: "liga";
    font-style: normal;
    font-weight: normal;
    font-size: var(--rz-datepicker-trigger-icon-height, 1.25rem);
    font-variation-settings: "FILL" var(--rz-icon-fill, 0), "GRAD" var(--rz-icon-grade, 0), "opsz" var(--rz-icon-optical-size, 48);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    color: var(--rz-datepicker-trigger-icon-color);
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 2;
    line-height: 1;
    white-space: nowrap;
}

.rz-datepicker:has(input[readonly]):not(.rz-state-disabled):hover::after {
    color: var(--rz-datepicker-trigger-icon-hover-color);
}


