/*
All CSS is declared
*/

:root {
  font-family: "IBM Plex Sans", sans-serif;
}
.chatbot {
  display: block;
  background: #fff;
  position: absolute;
  right: 0;
  bottom: 365px !important;
  width: 530px;
  top: -23rem;
  max-height: 100vh;
  border-radius: 8px;
  box-shadow: 0 6px 16px #0003;
  border: 1px solid #d6d6d6;
}
.chatbot-panel {
  position: absolute;
  top: 30px;
  right: 0;
  width: 564px;

  border-radius: 8px;
  overflow: hidden;
  margin-right: -71px !important;
  display: none;
}
.chatbot-show {
  display: block !important;
}
.navbar {
  flex-wrap: nowrap !important;
  padding: 0 !important;
  justify-content: left !important;
  height: var(--nav-height);
  --item-hover-bg: #f4f4f4;
}

.navbar > .navbar-item {
  flex-grow: 0;
  flex-shrink: 0;
  padding: 12px;
}

.navbar-item {
  background-color: transparent;
  transition: background 300ms ease;
}
.navbar-item:hover {
  background-color: var(--item-hover-bg);
  cursor: pointer;
}

.spacer {
  flex-grow: 1;
  flex-shrink: 1;
  width: 100%;
}
.navbar > .navbar-item:has(m-user-profile) {
  padding: 8px;
  min-width: 240px;
}
.user-profile {
  display: flex;
  gap: 8px;
  align-items: center;
  --stroke-width: 1.5px;
}
.user-profile .user-profile-picture {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  flex-grow: 0;
}
.user-profile > svg {
  flex-shrink: 0;
  flex-grow: 0;
  --color1: var(--secondary);
  --color2: var(--secondary);
}

.user-profile .user-profile-info-grp {
  display: flex;
  flex-direction: column;
  width: 100%;
  flex-shrink: 1;
  flex-grow: 1;
}

.user-profile .user-profile-info-grp .user-profile-name {
  font-size: 14px;
  font-weight: 600;
  color: #404040;
  line-height: 20px;
  text-transform: capitalize;
}
.user-profile .user-profile-info-grp .user-profile-email {
  display: none;
}
.user-profile .user-profile-info-grp .user-profile-role {
  color: #717171;
  font-size: 12px;
  line-height: 12px;
}

.user-profile.loading {
  min-width: 160px;
  height: 32px;
  background-color: #00000024;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}

.user-profile.loading::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  animation: skeleton 1200ms ease-in-out infinite;
  display: block;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(
    105deg,
    #0000 0% 40%,
    #ffffffbd 50%,
    #0000 60% 100%
  );
}

.user-profile .user-profile-picture:has(.lettermark) {
  background-color: var(--primary);
  border-radius: 32px;
  display: flex;
  flex-direction: column;
  align-content: center;
  justify-content: center;
  align-items: center;
}

.user-profile .user-profile-picture .lettermark {
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 600;
  line-height: 20px;
  letter-spacing: 1.12px;
  text-transform: uppercase;
  color: white;
}

@keyframes skeleton {
  0% {
    transform: translateX(-80%);
  }

  100% {
    transform: translateX(80%);
  }
}

svg {
  --color1: var(--primary);
  --color2: var(--secondary);
  --stroke-width: 1.5px;
}

svg .uno-stroke {
  fill: none;
  stroke: var(--color1);
  stroke-width: var(--stroke-width);
}
svg .duo-stroke {
  stroke: var(--color2);
  fill: none;
  stroke-width: var(--stroke-width);
}

svg .uno-fill {
  fill: var(--color1);
}

svg .duo-fill {
  fill: var(--color2);
}

.user-option.menu {
  position: absolute;
  background: white;
  top: calc(100% + 8px);
  width: 100%;
  right: 0;
  border: 1px solid #d6d6d6;
  border-radius: 8px;
  box-shadow: rgba(0, 0, 0, 0.08) 0px 3px 6px;
  cursor: default;
  padding: 12px;
  gap: 12px;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(-8px);
  transition: all 300ms ease;
  visibility: hidden;
}

.user-option.menu .section {
  padding: 0;
  display: flex;
  gap: 8px;
  flex-direction: column;
}
.user-option.menu .section:last-child {
  border-bottom: none;
}

.menu-items {
  display: flex;
  padding: 6px;
  align-items: center;
  gap: 8px;
  align-self: stretch;
  border-radius: 8px;
  --menu-icon-color: var();
  --menu-icon-color: var(--secondary);
  transition: background-color 300ms ease;
}

.menu-items:hover {
  background-color: hsl(220 10% 96% / 1);
  --menu-icon-color: var(--secondary);
  /* --menu-label-color: var(--secondary); */
  cursor: pointer;
}
.menu-item-icon {
  display: inherit;
}
.menu-item-icon > svg {
  --color1: var(--menu-icon-color);
  --color2: var(--menu-icon-color);
  --stroke-width: 2px;
  width: 20px;
  height: 20px;
}
.menu-item-label {
  color: var(--menu-label-color, #404040);
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 20px;
}

.menu-item-label.logout {
  font-size: 16px;
  font-weight: 500;
}
.input-select {
  width: 100%;
  position: relative;
  cursor: pointer;
}

.input-select select {
  appearance: none;
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid var(--BG-White-4, #d6d6d6);
  color: var(--Text-0, #000);
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 20px;
  width: 100%;
  cursor: pointer;
}

.input-select select:focus,
.input-select select:focus-visible {
  border-color: transparent;
  outline: 2px solid var(--primary);
}

.input-select::after {
  --size: 10px;
  --border-width: 2px;
  --border-color: var(--secondary);
  content: "";
  display: block;
  position: absolute;
  top: 8px;
  right: 10px;
  width: var(--size);
  height: var(--size);
  border-bottom: var(--border-width) solid var(--border-color);
  border-right: var(--border-width) solid var(--border-color);
  border-bottom-right-radius: 3px;
  transform: rotate(45deg) skew(359deg, 359deg) scale(0.85);
}

.menu-items.selector {
  display: flex;
  gap: 8px;
  padding: 3px;
  padding-left: 6px;
}

.email-id {
  color: var(--Text-3, #595959);
  /* font-family: "IBM Plex Sans",sans-serif; */
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  line-height: 12px; /* 100% */
}

.divider {
  height: 1px;
  width: 100%;
  background-color: #d6d6d6;
}

.menu-items.primary {
  --menu-icon-color: var(--primary);
  --menu-label-color: var(--primary);
}
.user-option.menu.show {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}
.user-option.menu.show:hover {
  box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
}
dialog.drawer {
  border-radius: 8px;
  border: none;
  padding: 0;
  width: 640px; /* or your drawer width */
  max-width: 90%;
}

dialog::backdrop {
  background: rgba(0, 0, 0, 0.4);
  /* display: flex; */
  /* justify-content: flex-end; */
}

.drawer-header {
  display: flex;
  flex-direction: row;
  padding: 12px;
  border-bottom: 1px solid #d6d6d6;
}
.drawer-title {
  flex-grow: 1;
}
.drawer-content {
  padding: 12px;
}

dialog.drawer.drawer-right,
dialog.drawer.drawer-left {
  margin: 0;
  height: 100vh;
  max-height: 100vh !important;
  width: 480px;
  border-radius: 0;
  border-left: 1px solid #d6d6d6;
}

dialog.drawer.drawer-right {
  margin-left: auto;
}

dialog.drawer.drawer-left {
  margin-right: auto;
}

dialog.drawer .drawer-header .close {
  height: 24px;
  width: 24px;
  cursor: pointer;
}
