/*
 * Core: General Layout Style
 * -------------------------
 */

 :root {
  --preview-frame-bg: #fff;
  --preview-frame-checker: #e0e0e0;
  --main-bg-color: #000000;
  --primary-button-bg-color: #0d99ff;
  --primary-button-hover-bg-color: #007be5;
  --primary-button-text-color: #ffffff;
  --primary-link-button-bg-color: rgba(13, 153, 255, 0.14);
  --primary-link-button-hover-color: rgba(13, 153, 255, 0.2);
  --chocolate-dark: #502e15;
  --chocolate-milk: #8c5a3f;
  --chocolate-white: #ffeecc;
  --chocolate-ruby: #ac538e;
  --secondary-text-color: color-mix(in srgb, var(--foreground, var(--main-text-color, #333333)) 72%, var(--background, #ffffff));
 }
 :root.theme-light {
  --main-content-bg-color: #f5f5f7;
  --content-block-bg-color: #ffffff;
  --content-sidebar-bg-color: #efefef;
  --main-text-color: #333333;
  --input-bg-color: #f5f6fa;
  --input-border-color: #e5e6eb;
  --input-unit-text-color: #141414;
  --toolbar-menu-bg-color: #ffffff;
  --toolbar-menu-text-color: #000000;
  --toolbar-menu-shadow: 0 0.125rem 0.25rem rgba(26, 26, 26, 0.075);
 }
 :root.theme-dark {
  --preview-frame-bg: #fff;
  --preview-frame-checker: #e0e0e0;
  --main-content-bg-color: #151515;
  --content-block-bg-color: #2d2d2d;
  --content-sidebar-bg-color: #323232;
  --main-text-color: #f5f5f7;
  --input-bg-color: #444444;
  --input-border-color: #5d5d5d;
  --input-unit-text-color: #ffffff;
  --toolbar-menu-bg-color: #333333;
  --toolbar-menu-text-color: #ffffff;
  --toolbar-menu-shadow: 0 0.125rem 0.25rem rgba(26, 26, 26, 0.075); 
 }

html {
  font-family: 'Inter', 'Montserrat', sans-serif, Arial;
  font-size: unset; }

html,
body {
  height: auto; }

.layout-boxed html,
.layout-boxed body {
  height: 100%; }

body {
  font-family: "Inter", "Montserrat", sans-serif, Arial;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
  background-color: var(--background);
  color: var(--main-text-color);
  margin: 0;
}

body.sidebar-mini {
  background-color: var(--sidebar);
}

/* Layout */
.wrapper {
  height: 100%;
  position: relative;
  overflow-x: hidden;
  overflow-y: auto; }
  .theme-light .wrapper {
    /* background-color: #fff; */
    background-color: transparent; }
  .theme-dark .wrapper {
    /* background-color: #2D2D2D;  */
    background-color: transparent; }

.wrapper:before,
.wrapper:after {
  content: " ";
  display: table; }

.wrapper:after {
  clear: both; }

.layout-boxed .wrapper {
  max-width: 1250px;
  margin: 0 auto;
  min-height: 100%;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
  position: relative; }

.layout-boxed {
  background-color: #f9fafc; }

/*
 * Content Wrapper - contains the main content
 */
.content-wrapper,
.main-footer {
  margin-left: 0;
}

.layout-top-nav .content-wrapper,
.layout-top-nav .main-footer {
  margin-left: 0;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  position: fixed;
  inset: 8px 8px 8px 0;
  left: 56px;
  overflow: hidden;
  z-index: 20;
  background-color: var(--main-content-bg-color);
  border: 1px solid var(--input-border-color);
  border-radius: 20px;
  scrollbar-width: thin;
}

/* Prevent accidental text selection while clicking/dragging in app content. */
.content-wrapper,
.content-wrapper * {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Keep editable controls usable. */
.content-wrapper input,
.content-wrapper textarea,
.content-wrapper [contenteditable="true"],
.content-wrapper [contenteditable="plaintext-only"],
.content-wrapper [role="textbox"] {
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}

.content-wrapper > section.content {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
}

@media (min-width: 768px) {
  .sidebar-mini.sidebar-collapse .content-wrapper,
  .sidebar-mini.sidebar-collapse .right-side,
  .sidebar-mini.sidebar-collapse .main-footer {
    left: 56px !important;
    z-index: 20;
  }

  .sidebar-mini:not(.sidebar-collapse) .content-wrapper,
  .sidebar-mini:not(.sidebar-collapse) .right-side,
  .sidebar-mini:not(.sidebar-collapse) .main-footer {
    left: 250px !important;
    z-index: 20;
  }

  .sidebar-mini .content-wrapper,
  .sidebar-mini .right-side,
  .sidebar-mini .main-footer {
    transition: left 0.2s linear;
  }
}

.content-wrapper.filemanager {
  display: grid;
  grid-template-areas: "sidebar content";
  grid-template-columns: 300px 4fr;
  -ms-grid-columns: 300px 4fr;
  -ms-grid-rows: 1fr;
  height: calc(100dvh - 50px);
}

.filemanager-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  grid-gap: clamp(20px, 2vw, 40px);
  /* margin: clamp(0.75rem, 2vw, 2rem); */
  /* float: left; */
  /* width: 100%; */
}

@media (max-width: 1400px) {
  .filemanager-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 1100px) {
  .filemanager-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .filemanager-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 20px;
    margin: 1rem;
  }
}

@media (max-width: 480px) {
  .filemanager-grid {
    grid-template-columns: 1fr;
    grid-gap: 15px;
    margin: 0.75rem;
  }
}

.filemanager-box {
  position: relative;
  width: 100%;
  /* height: 217px; */
  transition: all 0.3s ease-out;
  display: flex;
  flex-direction: column;
  max-width: 285px;
}

.filemanager-box:hover {
  transform: translateY(-5px) scale(1.03) translateZ(0);
  cursor: pointer;
}

.filemanager-box-content {
  /* position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0; */
  width: 100%;
  display: -ms-grid;
  display: grid;
  grid-template-areas: "image" "text";
  grid-template-rows: minmax(0, 1fr) 30px;
  grid-template-columns: 1fr;
  -ms-grid-columns: 1fr;
  -ms-grid-rows: minmax(0, 1fr) 30px;
  border-radius: 10px;
}

.filemanager-image {
  grid-area: image;
  border-radius: 10px 10px 0px 0px;
  width: 100%;
  height: auto;
  opacity: 1;
  display: block;
  object-fit: cover;
  z-index: 10;
}

.filemanager-image img {
  max-width: 100%;
  max-height: 100%;
  width: 100%;
}

.filemanager-description {
  grid-area: text;
  text-align: center;
  align-self: center;
  border-radius: 0px 0px 10px 10px;
  overflow: hidden;
  min-height: 100%;
  margin-top: -30px;
  background-color: var(--content-block-bg-color);
  box-shadow: var(--toolbar-menu-shadow);
}

.filemanager-description p {
  font-size: 1rem;
  margin: 10px 0px 5px 0px;
  text-align: center;
  vertical-align: middle;
}

.filemanager-details {
  display: none;
}

.filemanager-grid .context-menu,
.template-grid .context-menu {
  display: none;
  z-index: 100;
  position: absolute;
  left: 0px;
  top: 0px;
}

.filemanager-grid .context-menu .menu,
.template-grid .context-menu .menu {
  display: flex;
  flex-direction: column;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 10px 20px rgb(64 64 64 / 5%);
  padding: 10px 0;
}

.filemanager-grid .context-menu ul,
.template-grid .context-menu ul,
.filemanager-grid .context-menu li,
.template-grid .context-menu li {
  list-style: none;
}

.filemanager-grid .context-menu .menu > li > a,
.template-grid .context-menu .menu > li > a {
  font: inherit;
  border: 0;
  padding: 10px 30px 10px 15px;
  gap: 8px;
  width: 100%;
  display: flex;
  align-items: center;
  position: relative;
  text-decoration: unset;
  color: #000;
  font-weight: 500;
  transition: 0.3s linear;
  -webkit-transition: 0.3s linear;
  -moz-transition: 0.3s linear;
  -ms-transition: 0.3s linear;
  -o-transition: 0.3s linear;
}

.filemanager-grid .context-menu .menu > li > a:hover,
.template-grid .context-menu .menu > li > a:hover {
  background: #f1f3f7;
  color: #5390f4;
}

.filemanager-grid .context-menu .menu > li.trash > a:hover,
.template-grid .context-menu .menu > li.trash > a:hover {
  color: red;
}

.filemanager-grid .context-menu .menu > li > a > i,
.filemanager-grid .context-menu .menu > li > a > svg,
.template-grid .context-menu .menu > li > a > i,
.template-grid .context-menu .menu > li > a > svg {
  padding-right: 0px;
}

.template-filter-container {
  display: flex;
  justify-content: center;
  width: 100%;
}

.template-filter {
  margin: 0;
  display: flex;
  gap: 2px;
  background: var(--content-sidebar-bg-color);
  padding: 4px;
  border-radius: 8px;
  width: fit-content;
  position: relative;
}

.template-filter button {
  padding: 8px 16px;
  border-radius: 6px;
  border: none;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  background: transparent;
  color: var(--main-text-color) !important;
  position: relative;
  z-index: 1;
}

.template-filter button:hover {
  background: var(--input-bg-color);
}

.template-filter button.active {
  background: var(--primary-button-bg-color);
  color: #fff !important;
  box-shadow: var(--toolbar-menu-shadow);
}

.template-filter button.active:hover {
  background: var(--primary-button-hover-bg-color);
}

/* Optional: Add a subtle animation on state change */
.template-filter button {
  position: relative;
  overflow: hidden;
}

.main-footer {
  background: #fff;
  padding: 15px;
  color: #444;
  border-top: 1px solid #d2d6de; }

/* Fixed layout */
/* .fixed .main-header,
.fixed .main-sidebar,
.fixed .left-side {
  position: fixed; } */

.fixed .main-header {
  top: 0;
  right: 0;
  left: 0; }

.fixed .content-wrapper,
.fixed .right-side {
  border-radius: 20px; }

@media (max-width: 767px) {
  .fixed .content-wrapper,
  .fixed .right-side {
    inset: 0;
    left: 0;
    border-radius: 0;
    border: unset; } }

.fixed.layout-boxed .wrapper {
  max-width: 100%; }

.fixed .wrapper {
  overflow: hidden; }

.hold-transition .content-wrapper,
.hold-transition .right-side,
.hold-transition .main-footer,
.hold-transition .main-sidebar,
.hold-transition .left-side,
.hold-transition .main-header .navbar,
.hold-transition .main-header .logo,
.hold-transition .menu-open .fa-angle-left {
  /* Fix for IE */
  -webkit-transition: none;
  -o-transition: none;
  transition: none; }

/* Content */
.content {
  min-height: 250px;
  padding: 16px 24px;
  height: auto;
  background-color: var(--main-content-bg-color);
  flex: 1; }

@media (max-width: 767px) {
  .content {
    min-height: 250px;
    padding: 16px 16px 24px 16px; } }

.content.deco {
  /* max-height: calc(100dvh - 50px); */
  width: 100%;
  position: relative; }

/* LINKS */

a:link, a:visited {
  color: var(--link-fg);
  text-decoration: none;
  transition: color 0.15s, background 0.15s;
}

a:focus, a:hover {
  color: var(--link-hover-color);
}

a:focus {
  text-decoration: underline;
}

a img {
  border: none;
}

a.section:link, a.section:visited {
  color: var(--header-link-color);
  text-decoration: none;
}

a.section:focus, a.section:hover {
  text-decoration: underline;
}

/* Page Header */
.page-header {
  margin: 10px 0 20px 0;
  font-size: 22px; }

.page-header > small {
  color: #666;
  display: block;
  margin-top: 5px; }

table, caption, tbody, tfoot, thead, tr, th, td {
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
  font-size: 100%;
  vertical-align: baseline; }

/**
 * Basic typography style for copy text
 */
body {
  font-family: "Inter", "Montserrat", sans-serif, Arial;
  font-weight: 400;
  line-height: 1.5;
  cursor: default; 
  /* color: var(--main-text-color); */
}

/* GLOBAL DEFAULTS */

p, ol, ul, dl {
  margin: .2em 0 .8em 0;
}

p {
  padding: 0;
  line-height: 140%;
}

h1,h2,h3,h4,h5 {
  font-weight: bold;
}

h1 {
  margin: 0 0 20px;
  font-weight: 300;
  font-size: 1.25rem;
}

h2 {
  font-size: 1rem;
  margin: 1em 0 .5em 0;
}

h2.subhead {
  font-weight: normal;
  margin-top: 0;
}

h3 {
  font-size: 0.875rem;
  margin: .8em 0 .3em 0;
  color: var(--body-medium-color);
  font-weight: bold;
}

h4 {
  font-size: 0.75rem;
  margin: 1em 0 .8em 0;
  padding-bottom: 3px;
  color: var(--body-medium-color);
}

h5 {
  font-size: 0.625rem;
  margin: 1.5em 0 .5em 0;
  color: var(--body-quiet-color);
  text-transform: uppercase;
  letter-spacing: 1px;
}

ul > li {
  list-style-type: disc;
  padding: 1px 0;
}

li ul {
  margin-bottom: 0;
}

li, dt, dd {
  font-size: 0.8125rem;
  line-height: 1.25rem;
}

dt {
  font-weight: bold;
  margin-top: 4px;
}

dd {
  margin-left: 0;
}

form {
  margin: 0;
  padding: 0;
}

fieldset {
  margin: 0;
  min-width: 0;
  padding: 0;
  border: none;
  border-top: 1px solid var(--hairline-color);
}

details summary {
  cursor: pointer;
}

blockquote {
  font-size: 0.6875rem;
  color: #777;
  margin-left: 2px;
  padding-left: 10px;
  border-left: 5px solid #ddd;
}

code, pre {
  font-family: var(--font-family-monospace);
  color: var(--body-quiet-color);
  font-size: 0.75rem;
  overflow-x: auto;
}

pre.literal-block {
  margin: 10px;
  background: var(--darkened-bg);
  padding: 6px 8px;
}

code strong {
  color: #930;
}

hr {
  clear: both;
  color: var(--hairline-color);
  background-color: var(--hairline-color);
  height: 1px;
  border: none;
  margin: 0;
  padding: 0;
  line-height: 1px;
}

.link-text {
  margin-bottom: 1rem; }

.box-text {
  font-family: "Inter", "Montserrat", sans-serif;
  font-weight: 400;
  font-size: 14px;
  /* letter-spacing: .05em; */
  line-height: auto;
  text-transform: none; 
  color: var(--main-text-color);
}

.center-text {
  display: block;
  text-align: center;
  width: 100%; }

.center-text.invalid {
  color: #b00020; }

.pageTitle {
  position: relative;
  box-sizing: border-box;
  margin: 0 auto;
  max-width: 800px;
  padding-top: 32px;
  padding-bottom: 48px;
  text-align: center; }
  .pageTitle .pageTitle-heading {
    font-size: 4em;
    font-weight: 600; }
    @media (max-width: 767px) {
      .pageTitle .pageTitle-heading {
        font-size: 3em; } }
  .pageTitle .pageTitle-intro {
    margin: 0 auto;
    margin-top: 16px;
    font-size: 22px;
    font-weight: 300; }
    @media (max-width: 767px) {
      .pageTitle .pageTitle-intro {
        font-size: 16px;
        padding-left: 20px;
        padding-right: 20px; } }
.section-header {
  text-align: center; }
  .section-header .section-text {
    max-width: 30em;
    margin: 0 auto; }

.section-heading {
  font-size: 3em;
  font-weight: 500;
  letter-spacing: .01em; }

.section-text {
  font-size: 22px;
  font-weight: 300; }

/**
 * Clear inner floats
 */
.clearfix::after {
  clear: both;
  content: '';
  display: table; }

/**
 * Main content containers
 * 1. Make the container full-width with a maximum width
 * 2. Center it in the viewport
 * 3. Leave some space on the edges, especially valuable on small screens
 */
.container {
  margin-left: auto;
  /* 2 */
  margin-right: auto;
  /* 2 */
  padding-left: 20px;
  /* 3 */
  padding-right: 20px;
  /* 3 */
  width: 100%;
  /* 1 */ }
  @media (min-width: 1200px) {
    .container {
      max-width: 1170px; } }
  @media (min-width: 992px) and (max-width: 1200px) {
    .container {
      max-width: 970px; } }
  @media (min-width: 768px) and (max-width: 992px) {
    .container {
      max-width: 750px; } }
  @media (max-width: 767px) {
    .container {
      max-width: auto; } }
/**
 * Hide text while making it readable for screen readers
 * 1. Needed in WebKit-based browsers because of an implementation bug;
 *    See: https://code.google.com/p/chromium/issues/detail?id=457146
 */
.hide-text {
  overflow: hidden;
  padding: 0;
  /* 1 */
  text-indent: 101%;
  white-space: nowrap; }

/**
 * Hide element while making it readable for screen readers
 * Shamelessly borrowed from HTML5Boilerplate:
 * https://github.com/h5bp/html5-boilerplate/blob/master/src/css/main.css#L119-L133
 */
.visually-hidden {
  border: 0;
  clip: rect(0 0 0 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px; }

/*
 * Component: Table
 * ----------------
 */
.table {
  border-collapse: separate;
  border-spacing: 0 7px; }

.table tr {
  background-color: var(--content-block-bg-color); }

tr .bold {
  font-weight: 700;
}

thead th {
  text-transform: unset; 
  color: var(--main-text-color);
  background-color: var(--content-block-bg-color);
}

.table > tbody > tr {
  height: 50px; }

.table > thead > tr > th:first-child,
.table > tbody > tr > td:first-child {
  padding-left: 20px;
  border-top-left-radius: 15px;
  border-bottom-left-radius: 15px; }

.table > thead > tr > th:last-child,
.table > tbody > tr > td:last-child {
  border-top-right-radius: 15px;
  border-bottom-right-radius: 15px; }

.tabcontent .table > thead > tr > th:first-child,
.tabcontent .table > tbody > tr > td:first-child {
  padding-left: 0px; }

.table > thead > tr > th,
.table > tbody > tr > th,
.table > tfoot > tr > th,
.table > thead > tr > td,
.table > tbody > tr > td,
.table > tfoot > tr > td {
  font-size: 15px;
  font-weight: 300;
  max-width: 250px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  /*border-top: 1px solid #f4f4f4;*/ }

.table > thead > tr > th {
  font-weight: 600;
  /*border-bottom: 2px solid #f4f4f4;*/ }

.table tr td .progress {
  margin-top: 5px; }

.table-bordered {
  border: none; }

.table-bordered > thead > tr > th,
.table-bordered > tbody > tr > th,
.table-bordered > tfoot > tr > th {
  border: none; }

.table-bordered > thead > tr > td,
.table-bordered > tbody > tr > td,
.table-bordered > tfoot > tr > td {
  border-left: 1px solid transparent;
  border-right: 1px solid transparent;
  border-top: 1px solid transparent;
  border-bottom: 1px solid transparent;
  vertical-align: middle; }

.table-bordered > tbody > tr > td a {
  font-weight: 400; }

.table-bordered > thead > tr > th,
.table-bordered > thead > tr > td {
  border-bottom-width: 2px; }

.table.no-border,
.table.no-border td,
.table.no-border th {
  border: 0; }

/* .text-center in tables */
table.text-center,
table.text-center td,
table.text-center th {
  text-align: center; }

.table.align th {
  text-align: left; }

.table.align td {
  text-align: right; }

.table-hover > tbody > tr:hover {
  border-width: 1px;
  border-style: solid; 
  background-color: var(--primary-link-button-hover-color);
  border-color: var(--primary-link-button-hover-color); }

/*
 * Component: Status
 * ----------------
 */
.status {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 4px;
  font-weight: 500;
  font-size: 10px;
  text-transform: uppercase;
  background: rgba(0, 0, 0, 0.05);
  color: #7F8FA4; }

.status-color-grey {
  background: rgba(0, 0, 0, 0.05);
  color: #7F8FA4; }

.status-color-blue {
  background: rgba(68, 97, 223, 0.1);
  color: #5776F6; }

.status-color-green {
  background: rgba(44, 202, 116, 0.1);
  color: #26C06C; }

.status-color-red {
  background: rgba(209, 47, 47, 0.1);
  color: #D12F2F; }

.status-color-orange {
  background: rgba(255, 171, 73, 0.1);
  color: #ff8105; }

.menu-icon {
  list-style-type: none;
  margin-top: 11px;
  margin-left: 10px;
  padding: 0px;
  position: absolute; }

.user-image {
  margin-right: 10px;
  width: 35px;
  height: 35px;
  vertical-align: middle; }

.three-dots-icon {
  display: inline-block;
  width: 100%;
  font-style: unset; }
  .three-dots-icon:before {
    content: '\2807'; }

.icon-shaper {
  margin-left: -3px; }
  .theme-light .icon-shaper {
    mask-image: url("/static/img/shaper.svg"); }
  .theme-dark .icon-shaper {
    mask-image: url("/static/img/shaper.svg"); }
  .theme-light .icon-shaper {
    -webkit-mask-image: url("/static/img/shaper.svg"); }
  .theme-dark .icon-shaper {
    -webkit-mask-image: url("/static/img/shaper.svg"); }

.icon-shaper-large {
  height: 100px;
  width: 100px;
  mask-size: contain;
  mask-repeat: no-repeat;
  display: inline-block; }
  .theme-light .icon-shaper-large {
    mask-image: url("/static/img/shaper.svg"); }
  .theme-dark .icon-shaper-large {
    mask-image: url("/static/img/shaper.svg"); }
  .theme-light .icon-shaper-large {
    -webkit-mask-image: url("/static/img/shaper.svg"); }
  .theme-dark .icon-shaper-large {
    -webkit-mask-image: url("/static/img/shaper.svg"); }
  .theme-light .icon-shaper-large {
    background-color: #888888; }
  .theme-dark .icon-shaper-large {
    background-color: #888888; }

.icon {
  width: 24px;
  height: 24px;
  display: inline-block; }

.icon-app {
  width: 80px;
  height: 80px;
  margin-left: auto !important;
  margin-right: auto !important;
  display: block;
  z-index: 1000; }

.icon-rotated-45 {
  transform: rotate(45deg); }

.icon-close {
  position: absolute;
  right: 0px;
  top: 12px;
  right: 10px; }

.icon-large {
  width: 48px;
  height: 48px;
  margin-left: auto !important;
  margin-right: auto !important;
  display: block;
  background-size: cover; }

.icon-text {
  margin: 0;
  margin-top: .3rem;
  font-size: 0.7rem; }

.theme-light .icon-design {
  stroke: #fff; }

.theme-dark .icon-design {
  stroke: #f5f5f7; }

.theme-light .icon-models {
  stroke: #fff; }

.theme-dark .icon-models {
  stroke: #f5f5f7; }

.theme-light .icon-recipes {
  stroke: #fff; }

.theme-dark .icon-recipes {
  stroke: #f5f5f7; }

.theme-light .icon-support {
  fill: #fff; }

.theme-dark .icon-support {
  fill: #f5f5f7; }

.avatar-icon {
  float: right; }

.arrowlink {
  padding-left: 16px;
  background: url(/static/img/rightarrow.svg) 0 1px no-repeat; }

.title-bar-full {
  padding-top: 13px;
  margin: auto;
  height: 100%;
  z-index: 200;
  border-bottom-width: 0px;
  border-bottom-style: solid; }
  .theme-light .title-bar-full {
    color: #141414; }
  .theme-dark .title-bar-full {
    color: #f5f6fa; }
  .theme-light .title-bar-full {
    border-color: #eeeff1; }
  .theme-dark .title-bar-full {
    border-color: #444444; }
  .title-bar-full h2 {
    font-family: "Inter", "Montserrat", sans-serif;
    font-weight: 300;
    font-size: 1.5em;
    cursor: pointer;
    letter-spacing: 0;
    width: 250px;
    margin: 0 auto; 
    text-align: center; 
    color: #ffffff;
  }

/*
 * Component: Main Header
 * ----------------------
 */
.main-header {
  position: relative;
  max-height: 100px;
  z-index: 1030; }

.main-header .navbar {
  -webkit-transition: margin-left 0.3s ease-in-out;
  -o-transition: margin-left 0.3s ease-in-out;
  transition: margin-left 0.3s ease-in-out;
  margin-bottom: 0;
  /* margin-left: 250px; */
  border: none;
  height: 50px;
  border-radius: 0; }
  .theme-light .main-header .navbar {
    /* background-color: #fff;  */
    background-color: transparent; }
  .theme-dark .main-header .navbar {
    /* background-color: #2D2D2D;  */
    background-color: transparent; }

.layout-top-nav .main-header .navbar {
  margin-left: 0; }

.main-header #navbar-search-input.form-control {
  background: rgba(255, 255, 255, 0.2);
  border-color: transparent; }

.main-header #navbar-search-input.form-control:focus,
.main-header #navbar-search-input.form-control:active {
  border-color: rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.9); }

.main-header #navbar-search-input.form-control::-moz-placeholder {
  color: #ccc;
  opacity: 1; }

.main-header #navbar-search-input.form-control:-ms-input-placeholder {
  color: #ccc; }

.main-header #navbar-search-input.form-control::-webkit-input-placeholder {
  color: #ccc; }

.main-header .navbar-custom-menu,
.main-header .navbar-right {
  right: 0px;
  top: 0px;
  display: block;
  position: absolute; }

@media (max-width: 991px) {
  .main-header .navbar-custom-menu a,
  .main-header .navbar-right a {
    color: inherit;
    background: transparent; } }

@media (max-width: 767px) {
  .main-header .navbar-right {
    float: none; }
  .navbar-collapse .main-header .navbar-right {
    margin: 7.5px -15px; }
  .main-header .navbar-right > li {
    color: inherit;
    border: 0; }
  .main-header .sidebar-toggle {
    position: absolute;
    z-index: 2000; } }

.main-header .sidebar-toggle {
  float: left;
  background-color: transparent;
  background-image: none;
  padding: 14px 28px;
  font-family: fontAwesome;
  opacity: 30%; }
  .theme-light .main-header .sidebar-toggle {
    color: #888888; }
  .theme-dark .main-header .sidebar-toggle {
    color: #888888; }

.main-header .sidebar-toggle:before {
  content: "\f0c9"; }

.main-header .sidebar-toggle:hover {
  color: #5390f4;
  opacity: 100%; }

.main-header .sidebar-toggle:focus,
.main-header .sidebar-toggle:active {
  background: transparent; }

.main-header .sidebar-toggle .icon-bar {
  display: none; }

.main-header .navbar .nav > li.user {
  padding: 0; }

.main-header .navbar .nav > li.user > a {
  padding: 7px; }

.main-header .navbar .nav > li.user > a > .fa,
.main-header .navbar .nav > li.user > a > .glyphicon,
.main-header .navbar .nav > li.user > a > .ion {
  margin-right: 5px; }

.main-header .navbar .nav > li.user > a > span {
  float: left;
  margin: 7px 15px 0px 15px;
  font-size: 15px;
  font-weight: 700; 
  color: var(--main-text-color);
}

.main-header .navbar .nav > li > a {
  color: var(--main-text-color); }

.main-header .navbar .nav > li > a > .label {
  position: absolute;
  top: 9px;
  right: 7px;
  text-align: center;
  font-size: 9px;
  padding: 2px 3px;
  line-height: .9; }

.main-header .logo {
  -webkit-transition: width 0.3s ease-in-out;
  -o-transition: width 0.3s ease-in-out;
  transition: width 0.3s ease-in-out;
  display: block;
  float: left;
  height: 50px;
  font-size: 20px;
  line-height: 50px;
  text-align: center;
  width: 182px;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  padding: 0 15px;
  font-weight: 300;
  overflow: hidden; }

.main-header .logo .logo-lg {
  display: block; }

.main-header .logo .logo-mini {
  display: none; }

.main-header .navbar-brand {
  color: #fff; }

.content-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  border-bottom: 1px solid var(--input-border-color);
  border-radius: 20px 20px 0 0;
  background-color: var(--content-block-bg-color);
}

@media (max-width: 767px) {
  .content-header {
    position: sticky;
    top: 0;
    padding: 12px 16px;
    border-radius: 0;
    gap: 8px;
    z-index: 1000;
  }
}

.content-header h1 {
  margin: 0;
  font-size: var(--font-size-lg, 1.125rem);
  line-height: var(--line-height-normal, 1.5);
  font-family: "Inter", "Montserrat", sans-serif;
  font-weight: 700;
}

.content-header > h1 > small {
  font-size: 15px;
  display: inline-block;
  padding-left: 4px;
  font-weight: 300; }

.content-header > .breadcrumb {
  float: right;
  background: transparent;
  margin-top: 0;
  margin-bottom: 0;
  font-size: 12px;
  padding: 7px 5px;
  position: absolute;
  top: 15px;
  right: 10px;
  border-radius: 2px; }

.content-header > .breadcrumb > li > a {
  color: #444;
  text-decoration: none;
  display: inline-block; }

.content-header > .breadcrumb > li > a > .fa,
.content-header > .breadcrumb > li > a > .glyphicon,
.content-header > .breadcrumb > li > a > .ion {
  margin-right: 5px; }

.content-header > .breadcrumb > li + li:before {
  content: '>\00a0'; }

@media (max-width: 991px) {
  .content-header > .breadcrumb {
    position: relative;
    margin-top: 5px;
    top: 0;
    right: 0;
    float: none;
    background: #d2d6de;
    padding-left: 10px; }
  .content-header > .breadcrumb li:before {
    color: #97a0b3; } }

.navbar-toggle {
  color: #fff;
  border: 0;
  margin: 0;
  padding: 15px 15px; }

@media (max-width: 991px) {
  .navbar-custom-menu .navbar-nav > li {
    float: left; }
  .navbar-custom-menu .navbar-nav {
    margin: 0;
    float: left; }
  .navbar-custom-menu .navbar-nav > li > a {
    padding-top: 15px;
    padding-bottom: 15px;
    line-height: 20px; } }

@media (max-width: 767px) {
  .main-header {
    position: relative; }
  .main-header .logo,
  .main-header .navbar {
    width: 100%;
    float: none; }
  .main-header .navbar {
    margin: 0; }
  .main-header .navbar-custom-menu {
    float: right; } }

@media (max-width: 991px) {
  .navbar-collapse.pull-left {
    float: none !important; }
  .navbar-collapse.pull-left + .navbar-custom-menu {
    display: block;
    position: absolute;
    top: 0;
    right: 40px; } }

/* Number bar Header */
.stat-header ul {
  margin-top: 28px;
  margin-bottom: 28px;
  padding: 0;
  height: 100%;
  overflow: hidden; }

.stat-header ul > li {
  list-style: none;
  height: 100%;
  width: 200px;
  border: 1px solid rgba(160, 188, 228, 0.5);
  border-radius: 5px;
  margin-left: 10px;
  float: left;
  position: relative;
  cursor: pointer; }
  .stat-header ul > li:first-child {
    margin-left: 0px; }
  .stat-header ul > li:hover {
    background-color: #6696fb;
    border-color: #6696fb; }
    .stat-header ul > li:hover .stat-box {
      color: #fff; }
      .stat-header ul > li:hover .stat-box .stat-count {
        background-color: #fff;
        color: #6696fb; }

.stat-header ul > li.active {
  background-color: #5390f4;
  border-color: #5390f4; }
  .stat-header ul > li.active .stat-box {
    color: #fff; }
    .stat-header ul > li.active .stat-box .stat-count {
      background-color: #fff;
      color: #5390f4; }

.stat-box {
  padding: 15px 20px 15px 20px;
  left: 0;
  right: 0; 
  color: var(--main-text-color);
}
  .stat-box .stat-title {
    font-size: 1.25em;
    display: flex;
    justify-content: center;
    align-items: center; }
    .stat-box .stat-title .stat-count {
      font-size: .8em;
      background-color: #a0bce4;
      color: #fff;
      border-radius: 15px;
      position: relative;
      display: inline-block;
      padding: 0 8px;
      line-height: 15px;
      margin-top: -2px;
      margin-left: 6px; }
  .stat-box .stat-value {
    margin-top: 10px;
    font-size: 1.5em;
    text-align: center; }

@media (max-width: 767px) {
  .stat-box {
    padding: 10px 0px 10px 0px; } }

/*
 * Component: Nav
 * --------------
 */
.nav > li > a:hover,
.nav > li > a:active,
.nav > li > a:focus {
  color: #444; }
  .theme-light .nav > li > a:hover, .theme-light .nav > li > a:active, .theme-light .nav > li > a:focus {
    background-color: #f0f0f0; }
  .theme-dark .nav > li > a:hover, .theme-dark .nav > li > a:active, .theme-dark .nav > li > a:focus {
    background-color: #444444; }

/* NAV PILLS */
.nav-pills > li > a {
  border-radius: 0;
  border-top: 3px solid transparent;
  color: #444; }

.nav-pills > li > a > .fa,
.nav-pills > li > a > .glyphicon,
.nav-pills > li > a > .ion {
  margin-right: 5px; }

.nav-pills > li.active > a,
.nav-pills > li.active > a:hover,
.nav-pills > li.active > a:focus {
  border-top-color: #3c8dbc; }

.nav-pills > li.active > a {
  font-weight: 600; }

/* NAV STACKED */
.nav-stacked > li > a {
  border-radius: 0;
  border-top: 0;
  border-left: 3px solid transparent;
  color: #444; }

.nav-stacked > li.active > a,
.nav-stacked > li.active > a:hover {
  background: transparent;
  color: #444;
  border-top: 0;
  border-left-color: #3c8dbc; }

.nav-stacked > li.header {
  border-bottom: 1px solid #ddd;
  color: #777;
  margin-bottom: 10px;
  padding: 5px 10px;
  text-transform: uppercase; }

/* NAV TABS */
.nav-tabs-custom {
  margin-bottom: 20px;
  background: #fff;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
  border-radius: 3px; }

.nav-tabs-custom > .nav-tabs {
  margin: 0;
  border-bottom-color: #f4f4f4;
  border-top-right-radius: 3px;
  border-top-left-radius: 3px; }

.nav-tabs-custom > .nav-tabs > li {
  border-top: 3px solid transparent;
  margin-bottom: -2px;
  margin-right: 5px; }

.nav-tabs-custom > .nav-tabs > li.disabled > a {
  color: #777; }

.nav-tabs-custom > .nav-tabs > li > a {
  color: #444;
  border-radius: 0; }

.nav-tabs-custom > .nav-tabs > li > a.muted-foreground {
  color: #999; }

.nav-tabs-custom > .nav-tabs > li > a,
.nav-tabs-custom > .nav-tabs > li > a:hover {
  background: transparent;
  margin: 0; }

.nav-tabs-custom > .nav-tabs > li > a:hover {
  color: #999; }

.nav-tabs-custom > .nav-tabs > li:not(.active) > a:hover,
.nav-tabs-custom > .nav-tabs > li:not(.active) > a:focus,
.nav-tabs-custom > .nav-tabs > li:not(.active) > a:active {
  border-color: transparent; }

.nav-tabs-custom > .nav-tabs > li.active {
  border-top-color: #3c8dbc; }

.nav-tabs-custom > .nav-tabs > li.active > a,
.nav-tabs-custom > .nav-tabs > li.active:hover > a {
  background-color: #fff;
  color: #444; }

.nav-tabs-custom > .nav-tabs > li.active > a {
  border-top-color: transparent;
  border-left-color: #f4f4f4;
  border-right-color: #f4f4f4; }

.nav-tabs-custom > .nav-tabs > li:first-of-type {
  margin-left: 0; }

.nav-tabs-custom > .nav-tabs > li:first-of-type.active > a {
  border-left-color: transparent; }

.nav-tabs-custom > .nav-tabs.pull-right {
  float: none !important; }

.nav-tabs-custom > .nav-tabs.pull-right > li {
  float: right; }

.nav-tabs-custom > .nav-tabs.pull-right > li:first-of-type {
  margin-right: 0; }

.nav-tabs-custom > .nav-tabs.pull-right > li:first-of-type > a {
  border-left-width: 1px; }

.nav-tabs-custom > .nav-tabs.pull-right > li:first-of-type.active > a {
  border-left-color: #f4f4f4;
  border-right-color: transparent; }

.nav-tabs-custom > .nav-tabs > li.header {
  line-height: 35px;
  padding: 0 10px;
  font-size: 20px;
  color: #444; }

.nav-tabs-custom > .nav-tabs > li.header > .fa,
.nav-tabs-custom > .nav-tabs > li.header > .glyphicon,
.nav-tabs-custom > .nav-tabs > li.header > .ion {
  margin-right: 5px; }

.nav-tabs-custom > .tab-content {
  background: #fff;
  padding: 10px;
  border-bottom-right-radius: 3px;
  border-bottom-left-radius: 3px; }

.nav-tabs-custom .dropdown.open > a:active,
.nav-tabs-custom .dropdown.open > a:focus {
  background: transparent;
  color: #999; }

.nav-tabs-custom.tab-primary > .nav-tabs > li.active {
  border-top-color: #3c8dbc; }

.nav-tabs-custom.tab-info > .nav-tabs > li.active {
  border-top-color: #00c0ef; }

.nav-tabs-custom.tab-danger > .nav-tabs > li.active {
  border-top-color: #dd4b39; }

.nav-tabs-custom.tab-warning > .nav-tabs > li.active {
  border-top-color: #f39c12; }

.nav-tabs-custom.tab-success > .nav-tabs > li.active {
  border-top-color: #00a65a; }

.nav-tabs-custom.tab-default > .nav-tabs > li.active {
  border-top-color: #d2d6de; }

/* PAGINATION */
.pagination > li > a {
  background: #fafafa;
  color: #666; }

.pagination > .active > a {
  background-color: #5390f4;
  color: #fff; }

.pagination.pagination-flat > li > a {
  border-radius: 0 !important; }

.app {
  display: -ms-grid;
  display: grid;
  grid-template-areas: "content sidebar";
  grid-template-columns: 4fr minmax(300px, 1fr);
  -ms-grid-columns: 4fr 1fr;
  -ms-grid-rows: 1fr;
  height: 100%; }
  .app .no-nav {
    height: 100vh;
    margin-right: -1.5rem; }
  .app .no-nav-sidebar {
    height: 100vh; }

.app-content {
  padding: 1.5rem; }
  .theme-light .app-content {
    background-color: #f5f5f7; }
  .theme-dark .app-content {
    background-color: #151515; }

.filemanager-sidebar {
  grid-area: sidebar;
  height: 100%;
  width: 16rem;
  padding: 0.75rem;
  background-color: var(--content-sidebar-bg-color);
  border-right: 1px solid var(--border);
}

.filemanager-sidebar-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.filemanager-sidebar-menu > li {
  margin: 0;
  padding: 0;
  list-style: none;
  position: relative;
  border-radius: 8px;
  height: 36px;
  border: 1px solid transparent;
  vertical-align: middle;
}

.filemanager-sidebar-menu > li::marker {
  content: "";
}

.filemanager-sidebar-menu > li.active {
  background-color: color-mix(in srgb, var(--primary) 12%, transparent);
  border-color: color-mix(in srgb, var(--primary) 24%, transparent);
}

.filemanager-sidebar-menu > li:hover {
  background-color: var(--accent);
}

.filemanager-sidebar-menu > li.active > a,
.filemanager-sidebar-menu > li:hover > a {
  color: var(--foreground);
}

.filemanager-sidebar-menu > li.active > a {
  color: var(--primary);
}

.filemanager-sidebar-menu > li > a {
  position: relative;
  margin: 0 auto;
  padding: 0.375rem 0.625rem;
  min-height: 36px;
  height: 36px;
  color: var(--muted-foreground);
  text-decoration: none;
  display: flex;
  gap: 0.5rem;
  align-items: center;
  border-radius: 8px;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.filemanager-sidebar-menu > li > a:link,
.filemanager-sidebar-menu > li > a:visited {
  color: var(--muted-foreground);
  text-decoration: none;
}

.filemanager-sidebar-menu > li.active > a:link,
.filemanager-sidebar-menu > li.active > a:visited {
  color: var(--primary);
}

.filemanager-sidebar-menu > li > a i {
  font-size: 0.95rem;
  width: 1rem;
  text-align: center;
}

.filemanager-sidebar-menu > li > a span {
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1;
}

.filemanager-content {
  display: flex;
  flex-direction: column;
  flex: 1 1 0%;
  grid-area: content;
  -ms-grid-column: 2;
  -ms-grid-row: 1;
  height: 100%;
  /* max-height: calc(100vh - 50px); */
  overflow: auto;
}

.nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-section {
  display: flex;
  flex-direction: column;
  margin-bottom: 15px;
  border-radius: 8px;
  background-color: var(--content-block-bg-color);
  /* box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); */
}

.filemanager-sidebar-menu > li.nav-section {
  height: unset;
}

.filemanager-sidebar-menu > li.nav-section:hover {
  background-color: transparent;
}


.nav-toggle {
  display: none;
}

.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 15px;
  font-weight: 700;
  color: var(--main-text-color);
  text-transform: uppercase;
  font-size: 0.85em;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--input-border-color);
  cursor: pointer;
}

.nav-icon {
  width: 20px;
  height: 20px;
  position: relative;
  transition: transform 0.2s;
}

.nav-icon:after {
  content: "";
  display: block;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--main-text-color);
  border-bottom: 2px solid var(--main-text-color);
  position: absolute;
  right: 6px;
  top: 4px;
  transform: rotate(45deg);
  transition: transform 0.2s;
}

.nav-toggle:checked + .section-title .nav-icon:after {
  transform: rotate(-135deg);
  top: 8px;
}

.nav-submenu {
  list-style: none;
  padding: 8px 0;
  margin: 0;
  display: none;
}

.nav-toggle:checked ~ .nav-submenu {
  display: block;
}

.nav-item {
  margin: 2px 8px;
  border-radius: 6px;
}

.nav-link {
  display: block;
  padding: 8px 12px;
  color: var(--main-text-color);
  text-decoration: none;
  font-size: 0.95em;
  font-weight: 700;
  transition: all 0.2s;
}

/* Base styles for links and spans */
.nav-link a:link,
.nav-link a:visited,
.nav-link a,
.nav-link a span {
  color: var(--main-text-color);
}

.nav-item a:link,
.nav-item a:visited {
  color: var(--main-text-color);
}

/* Hover states */
.nav-item:hover {
  background-color: var(--primary-link-button-hover-color);
}

.nav-item:hover .nav-link,
.nav-item:hover .nav-link a,
.nav-item:hover .nav-link a:link,
.nav-item:hover .nav-link a:visited,
.nav-item:hover .nav-link a span {
  color: var(--primary-button-bg-color);
  font-weight: 700;
}

/* Active states */
.nav-item.active {
  background-color: var(--primary-link-button-bg-color);
}

.nav-item.active .nav-link,
.nav-item.active .nav-link a,
.nav-item.active .nav-link a:link,
.nav-item.active .nav-link a:visited,
.nav-item.active .nav-link a span {
  color: var(--primary-button-bg-color);
  font-weight: 700;
}

.app-sidebar {
  padding: 0;
  grid-area: sidebar;
  -ms-grid-column: 2;
  -ms-grid-row: 1; 
  background-color: var(--content-block-bg-color);
}
  /* .sidebar {
    position: fixed;
    bottom: 52px;
    right: 0;
    z-index: 100;
    width: 100%;
  } */

.sidebar-sticky {
  position: relative;
  right: 0;
  bottom: 0;
  position: -webkit-sticky;
  position: sticky;
  height: calc(100vh - 3rem);
  overflow-x: hidden;
  overflow-y: auto;
  padding: 0px 15px 15px;
}

.sidebar .sidebar-panel {
  /* padding: 15px 30px 15px 30px; */
  border-bottom: 1px;
  border-bottom-style: solid;
  display: block;
}
.theme-light .sidebar-panel {
  border-bottom-color: #e5e6eb; }
.theme-dark .sidebar-panel {
  border-bottom-color: #444444; }

.sidebar-panel .panelTitle {
  position: relative;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  overflow: hidden;
  width: 100%;
  /* height: 50px; */
  padding: 0px;
  -webkit-flex-direction: row;
  -ms-flex-direction: row;
  flex-direction: row;
  -webkit-flex-shrink: 0;
  -ms-flex-negative: 0;
  flex-shrink: 0;
  -webkit-align-items: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: start;
  -webkit-justify-content: flex-start;
  -ms-flex-pack: start;
  justify-content: flex-start;
  cursor:default;
  font-size: 14px;
  font-weight: 700;
}
.theme-light .panelTitle {
  color: #333333; }
.theme-dark .panelTitle {
  color: #fff; }

.sidebar-panel .panelRow {
  position: relative;
  display: grid;
  width: 100%;
  padding-top: 5px;
  padding-bottom: 5px;
  -webkit-column-gap: 10px;
  column-gap: 10px;
  grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr));
  grid-template-rows: auto;
  font-family: "Inter", "Montserrat", sans-serif;
}

.sidebar-panel .panelRowMulti {
  position: relative;
  display: grid;
  width: 100%;
  padding-top: 5px;
  padding-bottom: 5px;
  padding-right: 10px;
  -webkit-column-gap: 10px;
  column-gap: 10px;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: auto;
  font-family: "Inter", "Montserrat", sans-serif;
}

.panelRow .panelRowTitle,
.panelRowMulti .panelRowTitle {
  position: relative;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  height: 26px;
  -webkit-align-items: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  padding-left: 0px;
  font-size: 12px;
  font-weight: 400;
}

.panelRow .panelRowInput,
.panelRowMulti .panelRowInput {
  height: 26px;
  width: 100%;
  padding: 0 8px 1px;
  border: 1px;
  border-style: solid;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 400;
  display: grid;
  grid-template-columns: 3fr 1fr;
  -webkit-align-items: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
}

.panelRow .panelRowInput {
  grid-column-start: 2;
  grid-column-end: -1;
  background-color: var(--input-bg-color);
  border-color: var(--input-border-color);
  color: var(--input-unit-text-color);
}

.panelRow .panelRowInput.panelRowInput--ui {
  height: auto;
  min-height: 26px;
  padding: 0;
  border: 0;
  background: transparent;
  display: block;
  grid-template-columns: 1fr;
}

.panelRow .panelRowInput.panelRowInput--ui .ui-field {
  gap: 0;
}

.panelRow .panelRowInput.panelRowInput--ui .ui-field__label {
  display: none;
}

.panelBox {
  background-color: #fff;
  border: 1px solid #e5e6eb;
  border-radius: 5px;
  position: relative;
  margin-bottom: 10px;
}

.panelBoxTitle {
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  color: #8c8c8c;
  padding: 5px;
}

.panelBoxClose {
  float: right;
  font-size: 21px;
  font-weight: 700;
  line-height: 1;
  color: #ff0000;
  text-shadow: 0 1px 0 #fff;
  filter: alpha(opacity=30);
  opacity: .3;
  -webkit-appearance: none;
  padding: 0;
  cursor: pointer;
  background: 0 0;
  border: 0;
  position: absolute;
  top: 2.5px;
  right: 5px;
}

.panelRowInput input[type="number"] {
  background-color: unset;
  border: unset;
  opacity: 1;
  font-size: 14px;
  font-weight: 700;
  width: 100%;
  text-align: right;
  box-sizing: border-box;
  -moz-appearance: textfield;
  text-align: left;
  color: var(--main-text-color);
}

.panelRowInput input[type="text"] {
  background-color: unset;
  border: unset;
  opacity: 1;
  font-size: 14px;
  font-weight: 700;
  width: 100%;
  text-align: right;
  box-sizing: border-box;
  -moz-appearance: textfield;
  text-align: left;
  color: var(--main-text-color);
}

.panelRowInput input::-webkit-outer-spin-button,
.panelRowInput input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.panelRowInput .value {
  text-align: right;
  color: #8c8c8c;
}

.panelRowSelect {
  appearance: none;
  border: 1px;
  border-style: solid;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 400;
  padding: 0 8px 0px;
  margin: 0;
  height: 26px;
  width: 100%;
  cursor: inherit;
  line-height: inherit;
  z-index: 1;
  outline: none;
  -webkit-align-items: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  display: grid;
  grid-template-areas: "select";
  position: relative;
}

.panelRowSelect select {
  appearance: none;
  background-color: transparent;
  border: none;
  padding: 0;
  margin: 0;
  width: 100%;
  cursor: inherit;
  line-height: inherit;
  z-index: 1;
  outline: none;
  -webkit-align-items: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  grid-area: select;
  font-size: 14px;
  font-weight: 700;
}

.panelRow .panelRowSelect {
  grid-column-start: 2;
  grid-column-end: -1;
  background-color: var(--input-bg-color);
  border-color: var(--input-border-color);
  color: var(--input-unit-text-color);
}

.panelRowSelect select::after {
  content: "";
  justify-self: end;
  width: 0.8em;
  height: 0.5em;
  background-color: #fff;
  background: url("data:image/svg+xml;charset=utf-8,%3Csvg width='10' height='5' viewBox='7 10 10 5' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' opacity='.54' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E") no-repeat 50%;
  grid-area: select;
}

/* .panelRowSelect .dropdown-icon {
  background: url("data:image/svg+xml;charset=utf-8,%3Csvg width='10' height='5' viewBox='7 10 10 5' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' opacity='.54' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E") no-repeat 50%;
  left: auto;
  right: 8px;
  position: absolute;
  bottom: 16px;
  width: 24px;
  height: 24px;
  -webkit-transition: -webkit-transform 150ms cubic-bezier(0.4, 0, 0.2, 1);
  transition: -webkit-transform 150ms cubic-bezier(0.4, 0, 0.2, 1);
  -o-transition: transform 150ms cubic-bezier(0.4, 0, 0.2, 1);
  transition: transform 150ms cubic-bezier(0.4, 0, 0.2, 1);
  transition: transform 150ms cubic-bezier(0.4, 0, 0.2, 1), -webkit-transform 150ms cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none; } */

.panelButton {
  padding: 15px 30px 15px 30px;
  width: 100%;
  border: none;
  border-top: 1px;
  border-top-style: solid;
}
.theme-light .panelButton {
  border-top-color: #e5e6eb; }
.theme-dark .panelButton {
  border-top-color: #444444; }

.panelButtonFull {
  background-color: unset;
  color: #4A90E2;
  border: 2px solid #4A90E2;
  font-family: "Inter", "Montserrat", sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
  border-radius: 5px;
  padding: 0.75rem 1rem;
  /* margin-bottom: 5px; */
  width: 100%;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.panelButtonFull:hover {
  background-color: #4A90E2;
  color: #fff;
}

.toggle-expert-settings {
  float: right;
  padding: 4px 8px;
  font-size: 0.9em;
  cursor: pointer;
  background: transparent;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.toggle-expert-settings:hover {
  background: #f0f0f0;
}

.expert-settings {
  border-top: 1px solid #eee;
  margin-top: 10px;
  padding-top: 10px;
}

/* .settings-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
} */

.settings-form:first-child {
  /* margin-right: 5px; */
}

.settings-form:last-child {
  /* margin-left: 5px; */
}

.settings-form.single {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
}

.settings-label {
  display: grid;
  grid-template-columns: 1fr 1fr 35px;
  margin-bottom: 10px;
  padding: 7px;
  border-radius: 5px;
  font-family: "Inter", "Montserrat", sans-serif;
  font-weight: 100;
  font-size: 14px;
  align-items: center;
  background-color: #f5f6fa;
  color: #141414;
  border: 1px solid #e5e6eb;
}

.settings-label:first-child {
  text-align: left;
  opacity: 0.6;
  padding-left: 10px;
}

.settings-label:last-child {
  text-align: left;
  padding-left: 10px;
  /* padding-right: 5px; */
}

.settings-label .value {
  text-align: right;
}

.settings-label input[type="number"] {
  background-color: unset;
  border: unset;
  opacity: 1;
  font-size: 14px;
  font-weight: 100;
  font-family: "Inter", "Montserrat", sans-serif;
  width: 100%;
  text-align: right;
  -moz-appearance: textfield;
  box-sizing: border-box;
  color: #141414;
}

.cursorPosition {
  position: absolute;
  top: 0px;
  right: 0px;
  width: 140px;
  font-size: 14px;
  font-family: "Inter", "Montserrat", sans-serif;
  padding: 15px;
  border-bottom-left-radius: 10px;
  border-top-right-radius: 20px;
  border: 0px;
  /* border-left: 1px;
  border-bottom: 1px;
  border-style: solid; */
  box-shadow: var(--toolbar-menu-shadow);
  border-color: var(--input-border-color);
  background-color: var(--toolbar-menu-bg-color);
}

.cursorPositionValue {
  text-align: left;
  color: #8c8c8c;
  font-weight: 700;
}

.cursorPositionUnit {
  text-align: right;
  color: #8c8c8c;
  font-weight: 400;
  font-size: 12px;
}

.sidemenu-toolbar {
  position: absolute;
  display: block;
  left: 50%;
  padding: 5px;
  bottom: 15px;
  transform: translateX(-50%);
  margin: 0 auto;
  border-radius: 15px;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  background-color: var(--toolbar-menu-bg-color);
  color: var(--toolbar-menu-text-color);
  z-index: 12;
}

.bottommenu-toolbar {
  position: absolute;
  display: none;
  left: 50%;
  padding: 5px;
  bottom: 15px;
  transform: translateX(-50%);
  margin: 0 auto;
  border-radius: 15px;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  background-color: var(--toolbar-menu-bg-color);
  color: var(--toolbar-menu-text-color);
  z-index: 12;
}

.template-transform-toolbar {
  display: block;
  z-index: 30;
  border: 1px solid var(--input-border-color);
  backdrop-filter: blur(6px);
  padding: 6px 8px;
}

.template-transform-tool__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.menu-tools.side {
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
  width: auto;
}

.menu-tools.side .tool .tooltip {
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  margin-left: 10px;
}

.menu-tools.side .tool .tooltip::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 100%;
  margin-top: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: transparent #333 transparent transparent;
}

.menu-tools.bottom {
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  align-items: center;
  width: auto;
}

.menu-tools.bottom .tool .tooltip {
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-bottom: 10px;
}

.menu-tools.bottom .tool .tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #333 transparent transparent transparent;
}

.menu-tools .tool {
  text-decoration: none;
  height: 50px;
  width: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: 0.2s ease;
  font-size: 20px;
  border-radius: 10px;
  color: var(--secondary-foreground);
  position: relative;
}

.menu-tools .tool:hover {
  background-color: var(--primary-button-bg-color);
  color: #fff;
}

.template-transform-tool.is-active {
  background-color: var(--primary-button-bg-color);
  color: #fff;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--primary-button-bg-color) 40%, transparent) inset;
}

.menu-tools.bottom .tool {
  height: 40px;
  width: 40px;
  outline: unset;
}

.designer-material-picker {
  position: relative;
}

.designer-material-picker__trigger {
  border: 0;
  background: transparent;
  cursor: pointer;
}

.designer-material-picker__menu {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  padding: 6px;
  border-radius: 10px;
  border: 1px solid var(--input-border-color);
  background: var(--toolbar-menu-bg-color);
  box-shadow: var(--toolbar-menu-shadow);
  z-index: 25;
}

.designer-material-option {
  width: 26px;
  height: 26px;
  border: 1px solid var(--input-border-color);
  border-radius: 999px;
  padding: 0;
  margin: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.designer-material-option:hover {
  border-color: var(--primary-button-bg-color);
}

.designer-material-dot {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  display: inline-block;
  /* border: 1px solid rgba(0, 0, 0, 0.2); */
}

.designer-material-dot--current {
  width: 20px;
  height: 20px;
}

.designer-material-dot--dark {
  background: #502e15;
}

.designer-material-dot--milk {
  background: #8c5a3f;
}

.designer-material-dot--white {
  background: #ffeccc;
}

.designer-material-dot--mixed {
  background: conic-gradient(#502e15 0 120deg, #8c5a3f 120deg 240deg, #ffeccc 240deg 360deg);
}

.menu-tools .tool:hover .tooltip {
  visibility: visible;
  opacity: 1;
}

.help-icon {
  width: 1rem;
  height: 1rem;
}

.menu-tools .tooltip {
  visibility: hidden;
  background-color: #333;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 5px 10px;
  position: absolute;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s, visibility 0.3s;
  white-space: nowrap;
  pointer-events: none;
  font-size: 12px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

#designer-draw-tool-btn.is-active {
  background-color: var(--primary-button-bg-color);
  color: #fff;
}

#designer-draw-disable-tool-btn.is-active {
  background-color: var(--primary-button-bg-color);
  color: #fff;
}

#designer-edit-path-btn.is-active {
  background-color: var(--primary-button-bg-color);
  color: #fff;
}

.designer-draw-popover {
  position: absolute;
  left: 50%;
  bottom: 72px;
  transform: translateX(-50%);
  z-index: 25;
  display: inline-flex;
  gap: 8px;
  padding: 8px;
  border-radius: 12px;
  border: 1px solid var(--input-border-color);
  background: color-mix(in srgb, var(--toolbar-menu-bg-color) 96%, transparent);
  box-shadow: var(--toolbar-menu-shadow);
  backdrop-filter: blur(6px);
}

.designer-draw-popover__btn.ui-btn {
  min-height: 2rem;
  padding: 0 10px;
  border-radius: 8px;
}

.designer-draw-popover__btn.ui-btn.is-active {
  background: var(--primary-button-bg-color);
  color: #fff;
  border-color: color-mix(in srgb, var(--primary-button-bg-color) 65%, #000 35%);
}

#canvas.designer-canvas--draw-mode {
  cursor: crosshair !important;
}

.designer-draw-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 40;
}

.designer-draw-overlay-line {
  stroke: color-mix(in srgb, var(--primary-button-bg-color) 88%, #ffffff 12%);
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: none;
  fill: none;
  opacity: 0.95;
  filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.35));
}

.designer-draw-overlay-anchor {
  fill: color-mix(in srgb, var(--primary-button-bg-color) 90%, #ffffff 10%);
  stroke: #fff;
  stroke-width: 1.5;
}

.designer-path-edit-overlay {
  position: absolute;
  inset: auto;
  pointer-events: none;
  z-index: 42;
  overflow: hidden;
}

.designer-path-edit-overlay[hidden] {
  display: none;
}

.designer-path-edit-overlay__actions {
  position: absolute;
  bottom: 14px;
  right: calc(var(--designer-right-sidebar-width, 240px) + 14px);
  display: inline-flex;
  gap: 8px;
  pointer-events: auto;
  z-index: 3;
}

.designer-path-edit-overlay__modes {
  display: inline-flex;
  gap: 6px;
  margin-right: 8px;
}

.designer-path-edit-overlay__mode-btn.is-active,
.designer-path-edit-overlay__grid-btn.is-active {
  background: var(--primary-button-bg-color);
  color: #fff;
  border-color: transparent;
}

.designer-path-edit-overlay__grid-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.designer-path-edit-overlay__grid-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.designer-path-edit-overlay__grid-icon svg {
  flex-shrink: 0;
}

/* Match .sidemenu-toolbar + .menu-tools.bottom styling */
.designer-path-edit-overlay__draw-toolbar.menu-tools.bottom {
  position: absolute;
  left: 50%;
  padding: 5px;
  bottom: 15px;
  transform: translateX(-50%);
  margin: 0 auto;
  border-radius: 15px;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  background-color: var(--toolbar-menu-bg-color);
  color: var(--toolbar-menu-text-color);
  pointer-events: auto;
  z-index: 3;
}

.designer-path-edit-overlay__draw-toolbar .tool {
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--secondary-foreground);
}

.designer-path-edit-overlay__draw-toolbar .tool .lucide,
.designer-path-edit-overlay__draw-toolbar .tool svg {
  flex-shrink: 0;
}

.designer-path-edit-overlay__draw-btn.is-active {
  background-color: var(--primary-button-bg-color);
  color: #fff;
}

.parameters-toolbar,
.settings-toolbar {
  position: absolute;
  display: none;
  right: 15px;
  padding: 5px;
  top: 50%;
  transform: translateY(-50%);
  margin: auto 0;
  border-radius: 15px;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  max-width: 350px;
  background-color: var(--toolbar-menu-bg-color);
  color: var(--toolbar-menu-text-color);
}

.parameters-tools,
.settings-tools {
  padding: 15px;
}

.help {
  position: absolute;
  bottom: 10px;
  left: calc(var(--designer-left-sidebar-width, 240px) + 12px);
  width: 40px;
  height: 50px;
  font-size: 30px;
  color: #8c8c8c;
  text-align: right;
  z-index: 12;
}

.help:hover {
  color: var(--primary-button-bg-color);
  cursor: pointer;
}

.deco-template {
  position: absolute; 
  right: 140px; 
  top: 0px; 
  padding-right: 15px;
  padding-top: 20px;
}

.deco-modelviewer {
  position: absolute;
  /* left: 140px; */
  top: 0px;
  padding-left: 15px;
  padding-top: 20px;
}

.deco-template a.btn-outline,
.deco-modelviewer a.btn-outline {
  background-color: unset;
  color: #8C8C8C !important;
  border-color: #8C8C8C;
  border-radius: 25px;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
}

.deco-template a.btn-outline:hover,
.deco-modelviewer a.btn-outline:hover {
  background-color: var(--primary-button-bg-color);
  color: #fff !important;
  border-color: var(--primary-button-bg-color);
}

.deco-download {
  position: absolute; 
  right: 0px; 
  bottom: 0px; 
  padding-right: 15px;
  padding-bottom: 20px;
}

/* Designer left object sidebar */
.designer-left-sidebar {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(var(--designer-left-sidebar-width, 240px), calc(100vw - 12px));
  min-width: 240px;
  max-width: min(450px, calc(100vw - 12px));
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--input-border-color);
  background: color-mix(in srgb, var(--toolbar-menu-bg-color) 96%, transparent);
  backdrop-filter: blur(6px);
  z-index: 8;
  transition:
    width 0.24s ease,
    min-width 0.24s ease,
    background-color 0.24s ease,
    border-color 0.24s ease;
}

body.designer-left-sidebar-collapsed .designer-left-sidebar {
  width: 44px;
  min-width: 44px;
}

body.designer-left-sidebar-collapsed .designer-left-sidebar__body,
body.designer-left-sidebar-collapsed .designer-left-sidebar__template-name,
body.designer-left-sidebar-collapsed .designer-left-sidebar__template-btn,
body.designer-left-sidebar-collapsed .designer-left-sidebar__title {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Designer canvas should not scroll at section level. */
.content-wrapper > section#canvasContainer.content {
  position: relative;
  overflow: hidden;
  overscroll-behavior: none;
  min-height: 0;
  height: 100%;
}

/* G-code path scrubber: vertical slider to scrub through print order */
.gcode-path-scrubber {
  position: absolute;
  top: 48px;
  bottom: 24px;
  right: calc(var(--designer-right-sidebar-width, 240px) + 12px);
  width: 24px;
  z-index: 12;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0;
  pointer-events: auto;
  gap: 8px;
}

.gcode-path-scrubber[hidden] {
  display: none !important;
}

.gcode-path-scrubber__controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  flex: 1;
  width: 100%;
  min-height: 0;
  gap: 8px;
  pointer-events: auto;
}

.gcode-path-scrubber__track {
  flex: 1;
  width: 6px;
  min-height: 80px;
  border-radius: 3px;
  background: color-mix(in srgb, var(--main-text-color) 18%, var(--input-bg-color));
  position: relative;
  display: flex;
  align-items: stretch;
  min-height: 0;
}

.gcode-path-scrubber__input {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-90deg);
  transform-origin: center center;
  width: calc(100vh - 120px);
  /* max-width: 600px; */
  height: 6px;
  margin: 0;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  cursor: pointer;
}

.gcode-path-scrubber__input::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 3px;
  background: color-mix(in srgb, var(--main-text-color) 12%, transparent);
}

.gcode-path-scrubber__input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--primary-button-bg-color);
  border: 2px solid var(--main-content-bg-color);
  box-shadow: var(--shadow-sm);
  cursor: grab;
  margin-top: -5px;
}

.gcode-path-scrubber__input::-moz-range-track {
  height: 6px;
  border-radius: 3px;
  background: color-mix(in srgb, var(--main-text-color) 12%, transparent);
}

.gcode-path-scrubber__input::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--primary-button-bg-color);
  border: 2px solid var(--main-content-bg-color);
  box-shadow: var(--shadow-sm);
  cursor: grab;
}

.gcode-path-scrubber__thumb {
  display: none;
}

.gcode-path-scrubber__play-btn {
  padding: 6px 12px;
  background-color: var(--primary-button-bg-color);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 150ms ease;
  white-space: nowrap;
  user-select: none;
  pointer-events: auto;
}

.gcode-path-scrubber__play-btn:hover {
  background-color: var(--primary-button-hover-bg-color);
}

.gcode-path-scrubber__play-btn:active {
  opacity: 0.8;
}

/* G-code panel: left side, shows g-code synced with path scrubber */
.gcode-path-panel {
  position: absolute;
  top: 48px;
  bottom: 24px;
  left: calc(var(--designer-left-sidebar-width, 240px) + 12px);
  width: min(280px, calc(100vw - var(--designer-left-sidebar-width, 240px) - var(--designer-right-sidebar-width, 240px) - 80px));
  z-index: 12;
  display: flex;
  flex-direction: column;
  background: color-mix(in srgb, var(--main-content-bg-color) 96%, transparent);
  backdrop-filter: blur(8px);
  border: 1px solid var(--input-border-color);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  overflow: visible;
}

.gcode-path-panel[hidden] {
  display: none !important;
}

.gcode-path-panel__header {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--secondary-text-color);
  border-bottom: 1px solid var(--input-border-color);
}

.gcode-path-panel__color-mode {
  font-size: 10px;
  padding: 2px 4px;
  border: 1px solid var(--input-border-color);
  border-radius: 4px;
  background: var(--input-bg-color, #1a1a2e);
  color: var(--secondary-text-color);
  cursor: pointer;
  outline: none;
}

.gcode-path-panel__legend {
  flex-shrink: 0;
  padding: 6px 12px;
  border-bottom: 1px solid var(--input-border-color);
}

.gcode-path-panel__legend[hidden] {
  display: none;
}

.gcode-path-panel__legend-bar {
  position: relative;
  height: 8px;
  border-radius: 4px;
  background: linear-gradient(to right, hsl(216, 100%, 50%), hsl(108, 100%, 50%), hsl(0, 100%, 50%));
}

.gcode-path-panel__legend-tick {
  position: absolute;
  top: -2px;
  bottom: -2px;
  width: 6px;
  margin-left: -3px;
  cursor: default;
  pointer-events: auto;
}

.gcode-path-panel__legend-tick::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(255, 255, 255, 0.98);
  border-radius: 4px;
  box-shadow:
    0 0 0 1px rgba(17, 24, 39, 0.65),
    0 0 0 2px rgba(255, 255, 255, 0.45);
  transition: transform 0.15s, background 0.15s, box-shadow 0.15s;
}

.gcode-path-panel__legend-tick:hover::before {
  background: #fff;
  box-shadow:
    0 0 0 1px rgba(17, 24, 39, 0.8),
    0 0 0 3px rgba(255, 255, 255, 0.55);
  transform: scaleX(1.5) scaleY(1.2);
}

.gcode-path-panel__legend-tick .tooltip {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-bottom: 6px;
  background-color: #333;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 11px;
  white-space: nowrap;
  pointer-events: none;
  z-index: 1000;
  transition: opacity 0.15s, visibility 0.15s;
}

.gcode-path-panel__legend-tick:hover .tooltip {
  visibility: visible;
  opacity: 1;
}

.gcode-path-panel__legend-labels {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  color: var(--secondary-text-color);
  margin-top: 2px;
}

.gcode-path-panel__content {
  flex: 1;
  margin: 0;
  padding: 8px 0;
  overflow-y: auto;
  overflow-x: auto;
  font-family: ui-monospace, "Cascadia Code", "Source Code Pro", Menlo, Consolas, monospace;
  font-size: 11px;
  line-height: 1.4;
  color: var(--main-text-color);
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--secondary-text-color) 38%, transparent) transparent;
}

.gcode-path-panel__content::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.gcode-path-panel__content::-webkit-scrollbar-track {
  background: transparent;
}

.gcode-path-panel__content::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--secondary-text-color) 34%, transparent);
  border: 2px solid transparent;
  border-radius: 999px;
  background-clip: padding-box;
}

.gcode-path-panel__content:hover::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--secondary-text-color) 52%, transparent);
  background-clip: padding-box;
}

.gcode-path-panel__stats {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  box-sizing: border-box;
  padding: 3px 6px;
  margin: 0;
  border-bottom: 1px solid var(--border-color, rgba(255, 255, 255, 0.15));
  font-size: 9px;
  z-index: 10;
}

.gcode-path-panel__stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
  grid-auto-rows: max-content;
  gap: 3px 4px;
  margin: 0;
}

.gcode-path-panel__stat-item {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 2px 4px;
  margin: 0;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 2px;
  /* border-left: 2px solid rgba(37, 99, 235, 0.3); */
  min-height: 0;
}

.gcode-path-panel__stat-item:hover {
  background: rgba(255, 255, 255, 0.05);
  /* border-left-color: rgba(37, 99, 235, 0.6); */
}

.gcode-path-panel__stat-item--interactive {
  cursor: pointer;
  transition: background-color 0.18s ease, box-shadow 0.18s ease;
}

.gcode-path-panel__stat-item--interactive:hover,
.gcode-path-panel__stat-item--interactive:focus-visible {
  background: color-mix(in srgb, var(--primary-button-bg-color, #60a5fa) 16%, rgba(255, 255, 255, 0.04));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--primary-button-bg-color, #60a5fa) 42%, transparent);
  outline: none;
}

.gcode-path-panel__stat-label {
  color: var(--secondary-text-color, rgba(255, 255, 255, 0.5));
  font-size: 7px;
  text-transform: uppercase;
  letter-spacing: 0.2px;
  font-weight: 600;
  line-height: 0.9;
  margin: 0;
  padding: 0;
  height: auto;
}

.gcode-path-panel__stat-value {
  color: var(--primary-button-bg-color, #60a5fa);
  font-weight: 700;
  font-size: 9px;
  line-height: 0.95;
  margin: 0;
  padding: 0;
  height: auto;
}

.gcode-path-panel__stat-unit {
  font-size: 7px;
  opacity: 0.8;
  margin: 0;
  padding: 0;
}

.gcode-path-panel__line {
  display: flex;
  gap: 12px;
  padding: 2px 12px;
  white-space: nowrap;
  min-width: fit-content;
  cursor: pointer;
  transition: background-color 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
  user-select: none;
}

.gcode-path-panel__line:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.gcode-path-panel__line-num {
  flex-shrink: 0;
  width: 2.5em;
  text-align: right;
  color: var(--secondary-text-color);
  user-select: none;
}

.gcode-flow-chart {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  width: min(720px, calc(100vw - var(--designer-left-sidebar-width, 240px) - var(--designer-right-sidebar-width, 240px) - 110px));
  min-width: 320px;
  max-width: calc(100vw - 48px);
  z-index: 14;
  padding: 12px 14px 14px;
  border: 1px solid color-mix(in srgb, var(--input-border-color) 85%, transparent);
  border-radius: 14px;
  background: color-mix(in srgb, var(--main-content-bg-color) 94%, rgba(10, 16, 30, 0.12));
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-lg);
}

.gcode-flow-chart[hidden] {
  display: none !important;
}

.gcode-flow-chart__loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  font-size: 13px;
  font-weight: 600;
  color: var(--secondary-text-color);
}

.gcode-flow-chart__summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.gcode-flow-chart__summary-right {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  gap: 8px;
}

.gcode-flow-chart__controls-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
}

.gcode-flow-chart__view-label {
  font-size: 11px;
  color: var(--secondary-text-color);
}

.gcode-flow-chart__view-select {
  min-width: 92px;
  height: 28px;
  padding: 0 10px;
  border: 1px solid color-mix(in srgb, var(--input-border-color) 82%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--main-content-bg-color) 90%, rgba(255, 255, 255, 0.04));
  color: var(--main-text-color);
  font-size: 11px;
}

.gcode-flow-chart__close {
  height: 28px;
  padding: 0 12px;
  border: 1px solid color-mix(in srgb, var(--input-border-color) 82%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--main-content-bg-color) 90%, rgba(255, 255, 255, 0.04));
  color: var(--main-text-color);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

.gcode-flow-chart__close:hover {
  background: color-mix(in srgb, var(--main-content-bg-color) 96%, rgba(255, 255, 255, 0.06));
}

.gcode-flow-chart__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 11px;
  color: var(--secondary-text-color);
}

.gcode-flow-chart__note {
  margin-top: 4px;
  font-size: 11px;
  color: var(--secondary-text-color);
}

.gcode-flow-chart__legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.gcode-flow-chart__legend-swatch {
  display: inline-block;
  width: 16px;
  height: 3px;
  border-radius: 999px;
}

.gcode-flow-chart__legend-swatch--target {
  background: #38bdf8;
}

.gcode-flow-chart__legend-swatch--actual {
  background: #f59e0b;
}

.gcode-flow-chart__viewport-shell {
  position: relative;
  height: 224px;
}

.gcode-flow-chart__viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--secondary-text-color) 38%, transparent) transparent;
  padding-bottom: 4px;
}

.gcode-flow-chart__track {
  height: 220px;
}

.gcode-flow-chart__viewport::-webkit-scrollbar {
  height: 10px;
}

.gcode-flow-chart__viewport::-webkit-scrollbar-track {
  background: transparent;
}

.gcode-flow-chart__viewport::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--secondary-text-color) 34%, transparent);
  border: 2px solid transparent;
  border-radius: 999px;
  background-clip: padding-box;
}

.gcode-flow-chart__viewport:hover::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--secondary-text-color) 52%, transparent);
  background-clip: padding-box;
}

.gcode-flow-chart__canvas {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: block;
  width: 100%;
  height: calc(100% - 12px);
  cursor: crosshair;
}

.gcode-flow-chart__grid-line {
  stroke: color-mix(in srgb, var(--secondary-text-color) 18%, transparent);
  stroke-width: 1;
}

.gcode-flow-chart__grid-line--vertical {
  stroke-dasharray: 3 5;
}

.gcode-flow-chart__line {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

.gcode-flow-chart__line--target {
  stroke: #38bdf8;
}

.gcode-flow-chart__line--actual {
  stroke: #f59e0b;
}

.gcode-flow-chart__shot-band {
  fill: rgba(56, 189, 248, 0.08);
  stroke: rgba(56, 189, 248, 0.22);
  stroke-width: 1;
  cursor: pointer;
  transition: fill 0.16s ease, stroke 0.16s ease;
}

.gcode-flow-chart__shot-band:hover {
  fill: rgba(56, 189, 248, 0.12);
  stroke: rgba(56, 189, 248, 0.34);
}

.gcode-flow-chart__shot-band--selected {
  fill: rgba(56, 189, 248, 0.16);
  stroke: rgba(56, 189, 248, 0.56);
}

.gcode-flow-chart__gap-band {
  fill: rgba(148, 163, 184, 0.08);
  stroke: rgba(148, 163, 184, 0.18);
  stroke-width: 1;
  pointer-events: none;
}

.gcode-flow-chart__gap-band--selected {
  fill: rgba(148, 163, 184, 0.14);
  stroke: rgba(148, 163, 184, 0.42);
}

.gcode-flow-chart__gap-edge {
  stroke: rgba(148, 163, 184, 0.45);
  stroke-width: 1.5;
  pointer-events: none;
}

.gcode-flow-chart__gap-edge--selected {
  stroke: rgba(148, 163, 184, 0.72);
  stroke-width: 2;
}

.gcode-flow-chart__shot-badge {
  pointer-events: none;
}

.gcode-flow-chart__shot-badge-bg {
  fill: color-mix(in srgb, var(--main-content-bg-color) 90%, rgba(56, 189, 248, 0.22));
  stroke: rgba(56, 189, 248, 0.28);
  stroke-width: 1;
}

.gcode-flow-chart__shot-label {
  fill: color-mix(in srgb, var(--main-text-color) 84%, #38bdf8);
  font-size: 10px;
  font-weight: 600;
  text-anchor: start;
}

.gcode-flow-chart__gap-badge {
  pointer-events: none;
}

.gcode-flow-chart__gap-badge-bg {
  fill: color-mix(in srgb, var(--main-content-bg-color) 90%, rgba(148, 163, 184, 0.22));
  stroke: rgba(148, 163, 184, 0.28);
  stroke-width: 1;
}

.gcode-flow-chart__gap-label {
  fill: color-mix(in srgb, var(--main-text-color) 82%, #cbd5e1);
  font-size: 10px;
  font-weight: 600;
  text-anchor: start;
}

.gcode-flow-chart__cursor {
  stroke: color-mix(in srgb, var(--primary-button-bg-color, #60a5fa) 85%, white);
  stroke-width: 2;
  pointer-events: none;
}

.gcode-flow-chart__point {
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
  pointer-events: none;
}

.gcode-flow-chart__point--target {
  fill: #38bdf8;
  stroke: color-mix(in srgb, #38bdf8 70%, white);
}

.gcode-flow-chart__point--actual {
  fill: #f59e0b;
  stroke: color-mix(in srgb, #f59e0b 70%, white);
}

.gcode-flow-chart__hover-label {
  pointer-events: none;
}

.gcode-flow-chart__shot-hit {
  fill: transparent;
  cursor: pointer;
}

.gcode-flow-chart__gap-hit {
  fill: transparent;
  cursor: pointer;
}

.gcode-flow-chart__tooltip-bg {
  fill: color-mix(in srgb, var(--main-content-bg-color) 92%, rgba(15, 23, 42, 0.4));
  stroke: color-mix(in srgb, var(--input-border-color) 78%, transparent);
  stroke-width: 1;
}

.gcode-flow-chart__tooltip-text {
  fill: var(--main-text-color);
  font-size: 10px;
}

.gcode-flow-chart__axis-label {
  fill: var(--secondary-text-color);
  font-size: 10px;
}

.gcode-flow-chart__axis-label--y {
  text-anchor: end;
}

.gcode-flow-chart__axis-label--x {
  text-anchor: middle;
}

.gcode-flow-chart__empty {
  padding: 24px 8px;
  text-align: center;
  font-size: 12px;
  color: var(--secondary-text-color);
}

.gcode-path-panel__line code {
  flex-shrink: 0;
  display: inline;
}

.gcode-path-panel__line--passed {
  opacity: 0.6;
}

.gcode-path-panel__line--highlighted {
  background: color-mix(in srgb, var(--primary-button-bg-color) 16%, transparent);
  opacity: 1;
}

.designer-left-sidebar__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 14px 12px;
  border-bottom: 1px solid var(--input-border-color);
}

.designer-left-sidebar__header-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.designer-sidebar-toggle-btn {
  width: 2rem;
  min-width: 2rem;
  height: 2rem;
  min-height: 2rem;
  border-radius: 8px;
  border: 1px solid var(--input-border-color);
  background: color-mix(in srgb, var(--main-content-bg-color) 86%, transparent);
  color: var(--secondary-text-color);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.designer-sidebar-toggle-btn:hover,
.designer-sidebar-toggle-btn:focus-visible {
  border-color: color-mix(in srgb, var(--primary-button-bg-color) 48%, var(--input-border-color));
  color: var(--main-text-color);
}

.designer-sidebar-toggle-btn--floating {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
}

.designer-left-sidebar__template-btn {
  width: 2rem;
  min-width: 2rem;
  height: 2rem;
  min-height: 2rem;
  padding: 0;
  justify-content: center;
  transition: opacity 0.16s ease, visibility 0.16s ease;
}

.designer-left-sidebar__template-name {
  max-width: 124px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--input-border-color);
  background: color-mix(in srgb, var(--main-content-bg-color) 72%, transparent);
  color: var(--secondary-text-color);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: opacity 0.16s ease, visibility 0.16s ease;
}

.designer-left-sidebar__title {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--main-text-color);
  transition: opacity 0.16s ease, visibility 0.16s ease;
}

.designer-left-sidebar__count {
  min-width: 24px;
  text-align: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: var(--main-text-color);
  background: color-mix(in srgb, var(--main-content-bg-color) 70%, transparent);
  border: 1px solid var(--input-border-color);
}

.designer-left-sidebar__body {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 8px 8px 10px;
  border-right: 1px solid var(--input-border-color);
  gap: 10px;
  transition: opacity 0.16s ease;
}

.designer-left-section {
  min-height: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--input-border-color);
  border-radius: 10px;
  background: color-mix(in srgb, var(--main-content-bg-color) 84%, transparent);
}

.designer-left-section--objects {
  flex: 1 1 auto;
}

.designer-left-section--assets {
  flex: 0 0 var(--designer-asset-section-height, 36%);
}

/* Vertical resize handle between object list and asset area */
.designer-section-resizer {
  flex: 0 0 auto;
  height: 6px;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: ns-resize;
  position: relative;
  z-index: 2;
  margin: -2px 0;
}

.designer-section-resizer::before {
  content: "";
  position: absolute;
  left: 25%;
  right: 25%;
  top: 50%;
  height: 2px;
  transform: translateY(-50%);
  border-radius: 1px;
  background: color-mix(in srgb, var(--primary-button-bg-color) 78%, transparent);
  opacity: 0;
  transition: opacity 0.15s ease, background-color 0.15s ease;
}

.designer-section-resizer:hover::before,
.designer-section-resizer:focus-visible::before {
  opacity: 1;
}

.designer-section-resizer:focus-visible::before {
  background: var(--primary-button-bg-color);
}

.designer-left-section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 10px 8px;
  border-bottom: 1px solid var(--input-border-color);
}

.designer-left-section__title {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.04em;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--secondary-text-color);
}

.designer-left-section__content {
  min-height: 0;
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 8px;
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--secondary-text-color) 38%, transparent) transparent;
}

.designer-left-section__content--assets {
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.designer-left-section__content::-webkit-scrollbar,
.designer-left-section__content--assets::-webkit-scrollbar {
  width: 10px;
}

.designer-left-section__content::-webkit-scrollbar-track,
.designer-left-section__content--assets::-webkit-scrollbar-track {
  background: transparent;
}

.designer-left-section__content::-webkit-scrollbar-thumb,
.designer-left-section__content--assets::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--secondary-text-color) 34%, transparent);
  border: 2px solid transparent;
  border-radius: 999px;
  background-clip: padding-box;
}

.designer-left-section__content:hover::-webkit-scrollbar-thumb,
.designer-left-section__content--assets:hover::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--secondary-text-color) 52%, transparent);
  background-clip: padding-box;
}

#designer-asset-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.designer-asset-section-title {
  margin: 0;
  padding: 0;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: var(--secondary-text-color);
}

.designer-asset-section-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

/* Compact asset tile for sidebar 2-column grid */
.designer-asset-tile {
  position: relative;
  aspect-ratio: 1;
  border-radius: 8px;
  border: 1px solid var(--input-border-color);
  background: #fff;
  overflow: hidden;
  cursor: grab;
  transition: border-color .15s ease, transform .12s ease, box-shadow .15s ease;
}

.designer-asset-tile:hover {
  border-color: color-mix(in srgb, var(--primary-button-bg-color) 35%, var(--input-border-color));
  transform: scale(1.03);
  box-shadow: 0 2px 8px rgb(0 0 0 / 0.12);
  z-index: 1;
}

.designer-asset-tile:active {
  cursor: grabbing;
  transform: scale(0.97);
}

.designer-asset-tile:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--primary-button-bg-color) 55%, transparent);
  outline-offset: 1px;
}

.designer-asset-tile.is-dragging {
  opacity: 0.4;
}

.designer-asset-tile__thumb {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.designer-asset-tile__fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 10px;
  font-weight: 700;
  color: var(--secondary-text-color);
  text-transform: uppercase;
}

.designer-asset-tile__type-dot {
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 1.5px solid color-mix(in srgb, var(--main-content-bg-color) 50%, transparent);
  background: var(--secondary-text-color);
}

.designer-asset-tile__type-dot--text {
  background: #8b5cf6;
}

.designer-asset-tile__type-dot--image {
  background: #0ea5e9;
}

.designer-asset-tile__type-dot--vector {
  background: #22c55e;
}

.designer-assets__header {
  gap: 8px;
}

.designer-assets__actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.designer-assets__filters {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.designer-assets__tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
  margin-top: 6px;
  margin-bottom: 6px;
}

.designer-assets__filter {
  min-height: 1.65rem;
  height: 1.65rem;
  padding: 0 8px;
  font-size: 11px;
}

.designer-assets__filters--modal {
  margin-left: auto;
  margin-right: 8px;
  min-width: 180px;
}

.designer-assets__filter.is-active {
  border-color: color-mix(in srgb, var(--primary-button-bg-color) 45%, var(--input-border-color));
  background: color-mix(in srgb, var(--primary-button-bg-color) 14%, var(--main-content-bg-color));
}

.designer-assets__action {
  min-height: 1.95rem;
  height: 1.95rem;
  padding: 0 8px;
}

.designer-assets__action .lucide {
  width: 14px;
  height: 14px;
}

.designer-assets__action--upload {
  min-width: 84px;
  justify-content: center;
}

.designer-object-empty {
  padding: 14px 12px;
  font-size: 13px;
  text-align: center;
  color: var(--secondary-text-color);
  /* border: 1px dashed var(--input-border-color);
  border-radius: 10px; */
}

.designer-object-item {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 4px;
  width: 100%;
  border-radius: 10px;
  border: 1px solid transparent;
  padding: 8px 0px;
  background: transparent;
  color: inherit;
  text-align: left;
  transition: background-color .15s ease, border-color .15s ease;
}

.designer-object-item + .designer-object-item {
  margin-top: 6px;
}

.designer-object-item:hover {
  background: color-mix(in srgb, var(--primary-button-bg-color) 8%, transparent);
  border-color: color-mix(in srgb, var(--primary-button-bg-color) 18%, transparent);
}

.designer-object-item.is-selected {
  background: color-mix(in srgb, var(--primary-button-bg-color) 13%, transparent);
  border-color: color-mix(in srgb, var(--primary-button-bg-color) 30%, transparent);
}

.designer-object-item.is-primary-selected {
  border-color: color-mix(in srgb, var(--primary-button-bg-color) 52%, var(--input-border-color));
  /* border-left: 3px solid var(--primary-button-bg-color); */
  /* padding-left: 7px; */
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--primary-button-bg-color) 48%, transparent);
}

.designer-object-item__main {
  flex: 1 1 0;
  min-width: 0;
}

.designer-object-item__type {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  margin-bottom: 3px;
  padding: 1px 8px 1px 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--secondary-text-color);
  border: 1px solid var(--input-border-color);
  background: color-mix(in srgb, var(--main-content-bg-color) 72%, transparent);
}

.designer-object-item__type::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--secondary-text-color);
}

.designer-object-item__type--text::before {
  background: #8b5cf6;
}

.designer-object-item__type--image::before {
  background: #0ea5e9;
}

.designer-object-item__type--vector::before {
  background: #22c55e;
}

.designer-object-item__title {
  font-size: 13px;
  font-weight: 600;
  color: var(--main-text-color);
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.designer-object-item__title-input {
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: unset;
  background: transparent;
  color: var(--main-text-color);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
  outline: none;
}

.designer-object-item__title-input:focus {
  border-color: unset;
}

.designer-object-item__meta {
  margin-top: 2px;
  font-size: 11px;
  color: var(--secondary-text-color);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.designer-object-item__actions {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  opacity: 0.35;
  transition: opacity .12s ease;
}

.designer-object-item:hover .designer-object-item__actions,
.designer-object-item:focus-within .designer-object-item__actions,
.designer-object-item.is-selected .designer-object-item__actions {
  opacity: 1;
}

.designer-inline-icon {
  display: block;
  flex-shrink: 0;
  pointer-events: none;
}

.designer-object-action {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  border: 1px solid var(--input-border-color);
  background: color-mix(in srgb, var(--main-content-bg-color) 74%, transparent);
  color: var(--secondary-text-color);
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.designer-object-action:hover {
  color: var(--main-text-color);
  border-color: color-mix(in srgb, var(--primary-button-bg-color) 45%, var(--input-border-color));
}

.designer-object-action.is-active {
  color: color-mix(in srgb, var(--primary-button-bg-color) 90%, var(--main-text-color));
  border-color: color-mix(in srgb, var(--primary-button-bg-color) 55%, var(--input-border-color));
  background: color-mix(in srgb, var(--primary-button-bg-color) 14%, transparent);
}

.designer-object-item.is-disabled .designer-object-item__title,
.designer-object-item.is-disabled .designer-object-item__meta {
  opacity: 0.55;
}

.designer-object-item__drag-handle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 18px;
  margin-top: 2px;
  color: var(--secondary-text-color);
  opacity: 0.3;
  cursor: grab;
  transition: opacity .12s ease, color .12s ease;
  touch-action: none;
}

.designer-object-item:hover .designer-object-item__drag-handle,
.designer-object-item:focus-within .designer-object-item__drag-handle {
  opacity: 0.65;
}

.designer-object-item__drag-handle:hover {
  opacity: 1 !important;
  color: var(--main-text-color);
}

.designer-object-item__drag-handle:active {
  cursor: grabbing;
}

.designer-object-item.is-dragging {
  opacity: 0.3;
}

.designer-object-list__drop-indicator {
  height: 2px;
  background: var(--primary-button-bg-color);
  border-radius: 1px;
  margin: 2px 8px;
  pointer-events: none;
}

.designer-z-offset-toast {
  position: fixed;
  left: 50%;
  bottom: 88px;
  transform: translate(-50%, 8px);
  z-index: 120;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid color-mix(in srgb, var(--primary-button-bg-color) 35%, var(--input-border-color));
  background: color-mix(in srgb, var(--toolbar-menu-bg-color) 92%, transparent);
  color: var(--main-text-color);
  font-size: 12px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity .12s ease, transform .12s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.16);
}

.designer-z-offset-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.designer-selection-marquee {
  position: fixed;
  z-index: 22;
  pointer-events: none;
  border: 1px solid color-mix(in srgb, var(--primary-button-bg-color) 58%, #ffffff);
  background: color-mix(in srgb, var(--primary-button-bg-color) 14%, transparent);
  border-radius: 8px;
}

.designer-resize-overlay {
  position: absolute;
  inset: 0;
  z-index: 7;
  pointer-events: none;
}

.designer-resize-handle {
  position: absolute;
  inline-size: 12px;
  block-size: 12px;
  width: 12px;
  height: 12px;
  min-width: 12px;
  min-height: 12px;
  padding: 0;
  margin: 0;
  transform: translate(-50%, -50%);
  border: 1px solid var(--primary-button-bg-color);
  border-radius: 999px;
  background: var(--primary-button-bg-color);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--main-content-bg-color) 70%, transparent), 0 1px 4px rgba(0, 0, 0, 0.25);
  pointer-events: auto;
  cursor: pointer;
  box-sizing: border-box;
  appearance: none;
  -webkit-appearance: none;
  line-height: 0;
  font-size: 0;
  z-index: 2;
}

.designer-resize-handle:hover,
.designer-resize-handle:focus-visible {
  background: color-mix(in srgb, var(--primary-button-bg-color) 82%, #ffffff);
  border-color: color-mix(in srgb, var(--primary-button-bg-color) 72%, #ffffff);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary-button-bg-color) 26%, transparent), 0 2px 8px rgba(0, 0, 0, 0.28);
}

.designer-resize-handle:active {
  transform: translate(-50%, -50%) scale(0.94);
  background: color-mix(in srgb, var(--primary-button-bg-color) 92%, #000000);
}

.designer-rotate-handle {
  position: absolute;
  inline-size: 28px;
  block-size: 28px;
  width: 28px;
  height: 28px;
  padding: 0;
  margin: 0;
  transform: translate(-50%, -50%);
  border: 1px solid color-mix(in srgb, var(--primary-button-bg-color) 58%, var(--input-border-color));
  border-radius: 999px;
  background: color-mix(in srgb, var(--main-content-bg-color) 92%, transparent);
  color: color-mix(in srgb, var(--primary-button-bg-color) 90%, var(--main-text-color));
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--main-content-bg-color) 66%, transparent), 0 1px 6px rgba(0, 0, 0, 0.24);
  pointer-events: auto;
  cursor: grab;
  box-sizing: border-box;
  appearance: none;
  -webkit-appearance: none;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
}

.designer-rotate-handle:hover,
.designer-rotate-handle:focus-visible {
  background: color-mix(in srgb, var(--primary-button-bg-color) 12%, var(--main-content-bg-color));
  border-color: color-mix(in srgb, var(--primary-button-bg-color) 72%, var(--input-border-color));
  color: color-mix(in srgb, var(--primary-button-bg-color) 98%, var(--main-text-color));
}

.designer-rotate-handle:active {
  cursor: grabbing;
  transform: translate(-50%, -50%) scale(0.96);
}

.designer-resize-dim.designer-rotate-dim {
  z-index: 3;
}

.designer-position-ref-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 2px;
  width: 48px;
  height: 48px;
  padding: 3px;
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--input);
  background: color-mix(in srgb, var(--main-content-bg-color) 85%, transparent);
  pointer-events: auto;
  flex-shrink: 0;
  transform: rotate(var(--designer-position-grid-rotation, 0deg));
  transform-origin: center;
  transition: transform 0.12s ease;
}

.designer-position-ref-grid__cell {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  padding: 0;
  margin: 0;
  border: none;
  border-radius: 2px;
  background: color-mix(in srgb, var(--main-text-color) 18%, var(--main-content-bg-color));
  cursor: pointer;
  transition: background 0.12s ease;
  appearance: none;
  -webkit-appearance: none;
}

.designer-position-ref-grid__cell:hover {
  background: color-mix(in srgb, var(--main-text-color) 28%, var(--main-content-bg-color));
}

.designer-position-ref-grid__cell.is-active {
  background: color-mix(in srgb, var(--primary-button-bg-color) 98%, white);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--primary-button-bg-color) 40%, transparent);
}

.designer-resize-dim__xy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.designer-resize-dim--position .designer-resize-dim__xy label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.designer-resize-dim__unit {
  font-size: 11px;
  color: var(--muted-foreground, var(--main-text-color));
  margin-right: 2px;
}

.designer-resize-dim__input--pos {
  min-width: 4ch;
  text-align: right;
}

.designer-resize-overlay__back {
  transform: translate(-50%, -50%);
  padding: 4px 8px;
  min-width: 28px;
  font-size: 14px;
  line-height: 1.2;
  cursor: pointer;
  border-radius: var(--border-radius-md);
  border: 1px solid var(--input);
  background: color-mix(in srgb, var(--main-content-bg-color) 92%, transparent);
  color: var(--main-text-color);
  box-shadow: var(--shadow-xs);
  pointer-events: auto;
  z-index: 2;
}

.designer-resize-overlay__back:hover {
  background: color-mix(in srgb, var(--primary-button-bg-color) 12%, var(--main-content-bg-color));
  border-color: color-mix(in srgb, var(--primary-button-bg-color) 58%, var(--input-border-color));
}

.designer-overlay-position-btn.is-active {
  background-color: color-mix(in srgb, var(--primary-button-bg-color) 18%, transparent);
  color: var(--primary-button-bg-color);
}

.designer-rotate-dim__input {
  min-width: 5.5ch;
  text-align: right;
}

.designer-resize-dim {
  position: absolute;
  transform: translate(-50%, -50%);
  padding: 4px 6px;
  border-radius: var(--border-radius-md);
  border: 1px solid var(--input);
  background: color-mix(in srgb, var(--main-content-bg-color) 92%, transparent);
  color: var(--main-text-color);
  font-size: 11px;
  line-height: 1.2;
  pointer-events: auto;
  white-space: nowrap;
  box-shadow: var(--shadow-xs);
  backdrop-filter: blur(4px);
  z-index: 2;
}

.designer-resize-dim--position {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  z-index: 12;
}

.designer-resize-dim label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.designer-resize-dim__input {
  /* Let input shrink and grow to fit its content; min-width for placeholder/short numbers. */
  width: auto;
  min-width: 24px;
  max-width: none;
  height: 24px;
  border: unset;
  border-radius: var(--border-radius-sm);
  background: transparent;
  color: var(--main-text-color);
  font-size: 11px;
  padding: 0 8px;
  pointer-events: auto;
  box-shadow: unset;
  outline: none;
  box-sizing: border-box;
  /* Dynamically grow/shrink width according to content */
  display: inline-block;
  /* Prevent user-resize that might break layout */
  resize: none;
  /* Hide browser number spinners to keep narrow input readable. */
  appearance: textfield;
  -moz-appearance: textfield;
}

.designer-resize-dim__input::-webkit-outer-spin-button,
.designer-resize-dim__input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.designer-resize-dim__input:focus {
  border-color: var(--ring);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ring) 28%, transparent);
}

.designer-asset-item {
  position: relative;
  display: grid;
  align-items: stretch;
  width: 100%;
  gap: 7px;
  border-radius: 10px;
  border: 1px solid var(--input-border-color);
  padding: 8px;
  background: color-mix(in srgb, var(--main-content-bg-color) 84%, transparent);
  color: inherit;
  text-align: left;
  transition: background-color .15s ease, border-color .15s ease, transform .15s ease;
  cursor: pointer;
  overflow: hidden;
}

.designer-asset-item:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--primary-button-bg-color) 55%, transparent);
  outline-offset: 1px;
}

.designer-asset-item + .designer-asset-item {
  margin-top: 0;
}

.designer-asset-item:hover {
  background: color-mix(in srgb, var(--primary-button-bg-color) 10%, transparent);
  border-color: color-mix(in srgb, var(--primary-button-bg-color) 25%, transparent);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgb(0 0 0 / 0.1);
}

.designer-asset-item.is-selected {
  background: color-mix(in srgb, var(--primary-button-bg-color) 16%, transparent);
  border-color: color-mix(in srgb, var(--primary-button-bg-color) 45%, var(--input-border-color));
}

.designer-asset-item.is-dragging {
  opacity: 0.45;
}

.designer-asset-drag-ghost {
  display: block;
  background: transparent;
}

.designer-asset-drag-ghost img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  display: block;
}

.designer-asset-item__thumb-wrap {
  position: relative;
  width: 100%;
  height: 142px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--input-border-color);
  background: color-mix(in srgb, var(--main-content-bg-color) 70%, transparent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.designer-asset-item__delete {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, #ffffff 35%, transparent);
  background: rgb(0 0 0 / 0.56);
  color: #fff;
  font-size: 16px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.96);
  transition: opacity .14s ease, transform .14s ease, background-color .14s ease;
  z-index: 2;
}

.designer-asset-item:hover .designer-asset-item__delete,
.designer-asset-item:focus-within .designer-asset-item__delete {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.designer-asset-item__delete:hover,
.designer-asset-item__delete:focus-visible {
  background: color-mix(in srgb, #c62828 82%, #000000 18%);
  border-color: color-mix(in srgb, #ffffff 50%, #c62828 50%);
  outline: none;
}

.designer-asset-item__delete.is-disabled,
.designer-asset-item__delete:disabled {
  opacity: 0.42;
  cursor: not-allowed;
  background: rgb(0 0 0 / 0.4);
  border-color: color-mix(in srgb, #ffffff 24%, transparent);
}

.designer-asset-item__thumb {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.designer-asset-item__thumb-fallback {
  font-size: 11px;
  font-weight: 700;
  color: var(--secondary-text-color);
  text-transform: uppercase;
}

.designer-asset-item__name {
  width: 100%;
  font-size: 12px;
  font-weight: 600;
  color: var(--main-text-color);
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0 1px;
}

.designer-asset-item__overlay {
  position: absolute;
  inset: 8px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--main-content-bg-color) 26%, #000000 74%);
  backdrop-filter: blur(2px);
  border: 1px solid color-mix(in srgb, var(--primary-button-bg-color) 24%, transparent);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  padding: 8px;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.97);
  transition: opacity .18s ease, transform .18s ease;
}

.designer-asset-item:hover .designer-asset-item__overlay,
.designer-asset-item:focus-within .designer-asset-item__overlay {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.designer-asset-item__details {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.designer-asset-item__meta {
  font-size: 11px;
  color: rgb(255 255 255 / 0.92);
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.designer-asset-item .designer-object-item__type {
  color: rgb(255 255 255 / 0.92);
  border-color: rgb(255 255 255 / 0.24);
  background: rgb(255 255 255 / 0.12);
}

.designer-asset-item__add {
  width: 100%;
  min-height: 30px;
  height: 30px;
  font-size: 12px;
  justify-content: center;
}

/* Confirmation and error modals stack above other modals */
#designerAssetDeleteModal,
#designerObjectDeleteModal,
#designerUploadErrorModal {
  z-index: 1060;
}

/* Asset library expand button */
.designer-assets__expand-btn {
  width: 24px;
  height: 24px;
  padding: 0;
}

/* Asset library modal grid */
.designer-asset-modal-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding-bottom: 12px;
}

.designer-asset-dialog.ui-modal__dialog {
  padding: 0;
  overflow: hidden;
  max-width: 980px;
  width: min(calc(100% - 2rem), 980px);
  max-height: min(78dvh, 760px);
  background: var(--background-color, var(--main-content-bg-color));
}

.designer-asset-dialog__shell {
  display: flex;
  width: 100%;
  min-height: 560px;
  align-items: stretch;
  background: var(--background-color, var(--main-content-bg-color));
}

.designer-asset-modal-sidebar[data-slot="sidebar"] {
  display: flex;
  flex-direction: column;
  width: 16rem;
  flex: 0 0 16rem;
  min-width: 0;
  background: var(--sidebar);
  color: var(--sidebar-foreground);
  border-right: 1px solid var(--sidebar-border, var(--input-border-color));
}

.designer-asset-modal-sidebar [data-sidebar="content"] {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 0;
  flex: 1 1 auto;
  gap: 8px;
  overflow: auto;
  padding: 0;
}

.designer-asset-modal-sidebar [data-sidebar="group"] {
  position: relative;
  display: flex;
  width: 100%;
  min-width: 0;
  flex-direction: column;
  padding: 8px;
}

.designer-asset-modal-sidebar__group--secondary {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid color-mix(in srgb, var(--sidebar-border, var(--input-border-color)) 72%, transparent);
}

.designer-asset-modal-sidebar__group-label {
  display: none;
}

.designer-asset-modal-sidebar [data-sidebar="group-content"] {
  width: 100%;
  font-size: 14px;
}

.designer-asset-modal-sidebar [data-sidebar="menu"] {
  display: flex;
  width: 100%;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.designer-asset-modal-sidebar [data-sidebar="menu-item"] {
  position: relative;
  list-style: none;
}

.designer-asset-modal-sidebar [data-sidebar="menu-button"] {
  width: 100%;
  min-height: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
  border: none;
  border-radius: 6px;
  padding: 8px;
  background: transparent;
  color: var(--sidebar-foreground);
  text-align: left;
  justify-content: flex-start;
  outline: none;
  box-shadow: none;
  font-size: 14px;
  font-weight: 500;
  transition: background-color .16s ease, color .16s ease, box-shadow .16s ease;
}

.designer-asset-modal-sidebar [data-sidebar="menu-button"] > svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.designer-asset-modal-sidebar [data-sidebar="menu-button"] > span {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.designer-asset-modal-sidebar [data-sidebar="menu-button"]:hover {
  background: var(--sidebar-accent);
  color: var(--sidebar-accent-foreground);
}

.designer-asset-modal-sidebar [data-sidebar="menu-button"]:focus-visible {
  box-shadow: 0 0 0 2px var(--sidebar-ring, color-mix(in srgb, var(--primary-button-bg-color) 28%, transparent));
}

.designer-asset-modal-sidebar [data-sidebar="menu-button"][data-active="true"],
.designer-asset-modal-sidebar [data-sidebar="menu-button"][aria-pressed="true"] {
  background: var(--sidebar-accent);
  color: var(--sidebar-accent-foreground);
  font-weight: 500;
}

.designer-asset-modal-sidebar__group--secondary [data-sidebar="menu-button"]:not([data-active="true"]):not([aria-pressed="true"]) {
  color: color-mix(in srgb, var(--sidebar-foreground) 60%, transparent);
}

.designer-asset-modal-sidebar__group--secondary [data-sidebar="menu-button"]:not([data-active="true"]):not([aria-pressed="true"]) > svg,
.designer-asset-modal-sidebar__group--secondary [data-sidebar="menu-button"]:not([data-active="true"]):not([aria-pressed="true"]) > span {
  opacity: 0.78;
}

.designer-asset-dialog__main {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  overflow: hidden;
}

.designer-asset-dialog__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 18px;
  border-bottom: 1px solid var(--input-border-color);
  background: color-mix(in srgb, var(--main-content-bg-color) 98%, transparent);
}

.designer-asset-dialog__header-inner {
  display: flex;
  align-items: center;
  min-width: 0;
}

.designer-asset-dialog__breadcrumb {
  min-width: 0;
}

.designer-asset-dialog__breadcrumb .ui-breadcrumb__list {
  margin: 0;
}

.designer-asset-dialog__close {
  flex: 0 0 auto;
}

.designer-asset-dialog__body {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  padding: 16px 18px 0;
}

.designer-asset-modal-content {
  min-width: 0;
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
  flex-direction: column;
  overflow: hidden;
}

.designer-asset-modal-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px 170px;
  gap: 8px;
  margin-bottom: 12px;
  flex: 0 0 auto;
}

#designer-asset-modal-category-wrap[hidden] {
  display: none;
}

#designer-asset-modal-sort {
  width: 100%;
  margin-right: 0;
}

.designer-asset-dialog__footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 14px 18px 18px;
  border-top: 1px solid var(--input-border-color);
  background: color-mix(in srgb, var(--main-content-bg-color) 98%, transparent);
}

.designer-asset-modal-section-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}

.designer-asset-modal-card {
  display: flex;
  flex-direction: column;
  border-radius: 10px;
  border: 1px solid var(--input-border-color);
  background: color-mix(in srgb, var(--main-content-bg-color) 84%, transparent);
  overflow: hidden;
  transition: border-color .15s ease, transform .15s ease;
}

.designer-asset-modal-card.is-selected {
  border-color: color-mix(in srgb, var(--primary-button-bg-color) 55%, var(--input-border-color));
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--primary-button-bg-color) 20%, transparent);
}

.designer-asset-modal-card:hover {
  border-color: color-mix(in srgb, var(--primary-button-bg-color) 35%, var(--input-border-color));
  transform: translateY(-1px);
}

.designer-asset-modal-card.is-trashed {
  opacity: 0.72;
}

.designer-asset-modal-card__thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-bottom: 1px solid var(--input-border-color);
}

.designer-asset-modal-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.designer-asset-modal-card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--main-content-bg-color) 60%, transparent);
  opacity: 0;
  transition: opacity .15s ease;
  pointer-events: none;
}

.designer-assets__bulk-actions {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

#designer-asset-bulk-footer {
  justify-content: flex-end;
}

.designer-asset-modal-card__select {
  position: absolute;
  left: 8px;
  top: 8px;
  z-index: 2;
}

.designer-asset-modal-card:hover .designer-asset-modal-card__overlay,
.designer-asset-modal-card:focus-within .designer-asset-modal-card__overlay {
  opacity: 1;
  pointer-events: auto;
}

.designer-asset-modal-card__delete-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  border: none;
  background: color-mix(in srgb, var(--main-content-bg-color) 85%, transparent);
  color: var(--secondary-text-color);
  cursor: pointer;
  transition: color .15s ease, background .15s ease;
}

.designer-asset-modal-card__delete-btn:hover {
  color: var(--danger-button-bg-color, #e53e3e);
  background: color-mix(in srgb, var(--main-content-bg-color) 95%, transparent);
}

@media (max-width: 980px) {
  .designer-asset-dialog.ui-modal__dialog {
    max-height: min(84dvh, 820px);
  }
  .designer-asset-dialog__shell {
    flex-direction: column;
    min-height: 0;
  }
  .designer-asset-modal-sidebar[data-slot="sidebar"] {
    width: 100%;
    flex-basis: auto;
    border-right: none;
    border-bottom: 1px solid var(--sidebar-border, var(--input-border-color));
    overflow-x: auto;
  }
  .designer-asset-modal-sidebar [data-sidebar="content"] {
    padding: 0;
  }
  .designer-asset-modal-sidebar [data-sidebar="menu"] {
    flex-direction: row;
    overflow-x: auto;
  }
  .designer-asset-dialog__header {
    min-height: 56px;
    padding: 12px 14px;
  }
  .designer-asset-dialog__body {
    padding: 12px 14px 0;
  }
  .designer-asset-modal-toolbar {
    grid-template-columns: 1fr;
  }
  .designer-asset-dialog__footer {
    padding: 12px 14px 14px;
  }
  .designer-asset-modal-sidebar [data-sidebar="menu-button"] {
    width: auto;
    min-width: max-content;
    white-space: nowrap;
  }
}

.designer-asset-modal-card__add-btn {
  font-size: 12px;
  min-height: 30px;
  padding: 0 14px;
}

.designer-asset-modal-card__info {
  padding: 10px 12px 8px;
}

.designer-asset-modal-card__name {
  font-size: 13px;
  font-weight: 600;
  color: var(--main-text-color);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.designer-asset-modal-card__meta {
  margin-top: 2px;
  font-size: 11px;
  color: var(--secondary-text-color);
}

.designer-project-name-shell {
  position: absolute;
  top: 12px;
  left: calc(var(--designer-left-sidebar-width, 240px) + 14px);
  z-index: 9;
  width: min(420px, calc(100vw - var(--designer-left-sidebar-width, 240px) - var(--designer-right-sidebar-width, 240px) - 42px));
  max-width: 60vw;
  min-width: 220px;
}

.designer-project-name-shell input.ui-input.designer-project-name-shell__input {
  width: 100%;
  height: auto;
  min-height: 2.1rem;
  padding: 4px 6px;
  border: 0;
  border-color: transparent;
  border-radius: 8px;
  background: transparent;
  background-color: transparent;
  box-shadow: none;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--body-text-color);
}

.designer-project-name-shell input.ui-input.designer-project-name-shell__input::placeholder {
  color: color-mix(in srgb, var(--body-text-color) 70%, transparent);
}

.designer-project-name-shell input.ui-input.designer-project-name-shell__input:focus {
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--primary-button-bg-color) 26%, transparent);
  background: color-mix(in srgb, var(--toolbar-menu-bg-color) 70%, transparent);
  background-color: color-mix(in srgb, var(--toolbar-menu-bg-color) 70%, transparent);
}

.designer-project-name-shell__status {
  margin-top: 3px;
  padding-left: 6px;
  font-size: 11px;
  line-height: 1.2;
  color: var(--secondary-text-color);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.14);
}

.designer-unsaved-modal__meta {
  margin-top: 10px;
  color: var(--secondary-text-color);
  font-size: 12px;
}

.template-designer-back-wrap {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 9;
}

.template-designer-back-btn {
  min-height: 2.3rem;
  border-radius: 10px;
}

/* Designer right sidebar */
.designer-right-sidebar {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(var(--designer-right-sidebar-width, 240px), calc(100vw - 12px));
  min-width: 240px;
  max-width: min(450px, calc(100vw - 12px));
  display: flex;
  flex-direction: column;
  border-radius: 0;
  background: color-mix(in srgb, var(--toolbar-menu-bg-color) 96%, transparent);
  border-left: 1px solid var(--input-border-color);
  box-shadow: var(--toolbar-menu-shadow);
  backdrop-filter: blur(6px);
  z-index: 8;
}

body.designer-right-sidebar-collapsed .designer-right-sidebar {
  width: 44px;
  min-width: 44px;
}

body.designer-right-sidebar-collapsed .designer-right-sidebar__top,
body.designer-right-sidebar-collapsed .designer-right-sidebar__bottom {
  display: none;
}

body.designer-right-sidebar-collapsed .designer-sidebar-toggle-btn--floating {
  right: 6px;
}

.designer-right-sidebar__top {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1 1 auto;
}

.designer-right-sidebar__actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  padding: 12px;
  border-bottom: 1px solid var(--input-border-color);
}

.designer-right-sidebar__actions .ui-btn {
  width: 100%;
  justify-content: center;
  min-height: 2.35rem;
}

.designer-right-sidebar__option-panels {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 12px;
}

.designer-right-sidebar .settings-toolbar,
.designer-right-sidebar .parameters-toolbar {
  position: static;
  right: auto;
  top: auto;
  transform: none;
  padding: 0;
  margin: 0;
  max-width: none;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}

.designer-right-sidebar .settings-tools,
.designer-right-sidebar .parameters-tools {
  padding: 0;
}

.designer-right-sidebar .sidebar-panel {
  border: 0;
  box-shadow: none;
  background: transparent;
}

.designer-right-sidebar .designer-panel {
  display: grid;
  gap: 10px;
}

.designer-right-sidebar .sidebar-panel .panelTitle {
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--input-border-color);
}

.designer-right-sidebar .sidebar-panel .panelTitle + .designer-form-grid {
  margin-bottom: 10px;
}

.designer-right-sidebar .designer-form-grid + .panelTitle {
  margin-top: 8px;
}

.designer-right-sidebar .designer-panel__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.designer-right-sidebar .designer-form-grid {
  display: grid;
  gap: 12px;
}

.designer-right-sidebar .designer-gcode-toggle {
  width: 100%;
  justify-content: flex-start;
}

.designer-right-sidebar .designer-gcode-toggle[aria-pressed="true"],
.designer-right-sidebar .designer-gcode-toggle.designer-gcode-toggle--active {
  background: color-mix(in srgb, var(--primary-button-bg-color) 18%, var(--input-bg-color));
  border-color: color-mix(in srgb, var(--primary-button-bg-color) 40%, var(--input-border-color));
}

.designer-right-sidebar #pattern-settings,
.designer-right-sidebar #expert-settings {
  display: grid;
  gap: 10px;
}

.designer-right-sidebar .ui-field--horizontal {
  display: grid;
  grid-template-columns: minmax(88px, 110px) minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.designer-right-sidebar .ui-field--horizontal .ui-field__label {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--secondary-text-color);
}

.designer-right-sidebar .ui-field--horizontal .ui-field__control {
  min-width: 0;
}

.designer-right-sidebar .ui-field--horizontal .ui-field__control-inner {
  display: flex;
  align-items: center;
  gap: 8px;
}

.designer-right-sidebar .ui-field--horizontal .ui-input,
.designer-right-sidebar .ui-field--horizontal .designer-select {
  width: 100%;
  min-height: 2rem;
  font-size: 12px;
}

.designer-right-sidebar .ui-field--horizontal .ui-field__unit {
  font-size: 11px;
  font-weight: 600;
  color: var(--secondary-text-color);
  letter-spacing: 0.01em;
}

.designer-right-sidebar .designer-replication {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--input-border-color);
  border-radius: 10px;
  background: color-mix(in srgb, var(--main-content-bg-color) 82%, transparent);
}

.designer-right-sidebar .designer-replication__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.designer-right-sidebar .designer-replication__title {
  margin: 0;
}

.designer-right-sidebar .designer-replication__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.3rem;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid var(--input-border-color);
  background: color-mix(in srgb, var(--main-content-bg-color) 72%, transparent);
  color: var(--secondary-text-color);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.designer-right-sidebar .designer-replication__hint {
  margin: 0;
  color: var(--secondary-text-color);
  font-size: 11px;
  line-height: 1.4;
}

.designer-right-sidebar .designer-replication__controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

.designer-right-sidebar .designer-replication__controls .designer-select {
  width: 100%;
  min-height: 2rem;
  font-size: 12px;
}

.designer-right-sidebar .designer-virtual-pattern-row {
  display: none;
}

.designer-right-sidebar .designer-virtual-pattern-card {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--input-border-color);
  border-radius: 10px;
  background: color-mix(in srgb, var(--main-content-bg-color) 84%, transparent);
}

.designer-right-sidebar .designer-virtual-pattern-title {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--secondary-text-color);
}

.designer-right-sidebar .designer-virtual-pattern-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  cursor: pointer;
  user-select: none;
}

.designer-right-sidebar .designer-virtual-pattern-checkbox {
  width: 15px;
  height: 15px;
  accent-color: var(--primary-button-bg-color);
  margin: 0;
  flex: 0 0 auto;
}

.designer-right-sidebar .designer-virtual-pattern-label {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary-text-color);
  line-height: 1.25;
}

.designer-right-sidebar .designer-virtual-pattern-help {
  margin: 0;
  font-size: 11px;
  line-height: 1.4;
  color: var(--secondary-text-color);
}

.designer-right-sidebar .select2-container {
  width: 100% !important;
}

.designer-right-sidebar .select2-container .select2-selection--single {
  min-height: 2rem;
  border-radius: 8px;
  border: 1px solid var(--input-border-color);
  background: color-mix(in srgb, var(--main-content-bg-color) 80%, transparent);
}

.designer-right-sidebar .select2-container .select2-selection__rendered {
  line-height: 2rem;
  font-size: 12px;
  padding-left: 10px;
}

.designer-right-sidebar .select2-container .select2-selection__arrow {
  height: 2rem;
}

.designer-right-sidebar__bottom {
  border-top: 1px solid var(--input-border-color);
  padding: 12px;
  display: grid;
  gap: 12px;
  background: color-mix(in srgb, var(--toolbar-menu-bg-color) 92%, transparent);
}

.designer-right-sidebar__highlights {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.designer-machine-warning {
  border: 1px solid color-mix(in srgb, #f59e0b 60%, var(--input-border-color));
  background: color-mix(in srgb, #f59e0b 10%, transparent);
  border-radius: 10px;
  padding: 10px;
  display: grid;
  gap: 6px;
}

.designer-machine-warning__title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #b45309;
}

.designer-machine-warning__text {
  margin: 0;
  font-size: 12px;
  line-height: 1.35;
  color: var(--main-text-color);
}

.designer-history-actions {
  display: inline-grid;
  grid-template-columns: repeat(2, auto);
  gap: 8px;
  width: auto;
}

.designer-canvas-history .designer-history-btn.ui-btn {
  width: auto;
  min-width: 88px;
  min-height: 2.25rem;
  justify-content: center;
  gap: 6px;
  border-radius: 10px;
  backdrop-filter: blur(4px);
  background: color-mix(in srgb, var(--toolbar-menu-bg-color) 86%, transparent);
  border-color: var(--input-border-color);
  color: var(--main-text-color);
  box-shadow: var(--shadow-xs);
}

.designer-canvas-history .designer-history-btn.ui-btn:hover:not(:disabled),
.designer-canvas-history .designer-history-btn.ui-btn:focus-visible {
  background: color-mix(in srgb, var(--toolbar-menu-bg-color) 78%, var(--main-content-bg-color));
  border-color: color-mix(in srgb, var(--primary-button-bg-color) 36%, var(--input-border-color));
  color: var(--main-text-color);
}

.designer-canvas-history .designer-history-btn.ui-btn:active:not(:disabled) {
  background: color-mix(in srgb, var(--toolbar-menu-bg-color) 72%, var(--main-content-bg-color));
}

.designer-history-btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.designer-canvas-history {
  position: absolute;
  top: 12px;
  right: calc(var(--designer-right-sidebar-width, 240px) + 14px);
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.designer-canvas-snap {
  display: inline-flex;
  align-items: center;
  min-height: 2.25rem;
  padding-left: 8px;
  border-radius: 10px;
  border: unset;
  background: unset;
  box-shadow: unset;
  backdrop-filter: blur(4px);
}

.designer-canvas-snap .ui-field {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.designer-canvas-snap .ui-field__label {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--secondary-text-color);
  white-space: nowrap;
}

.designer-canvas-snap .ui-field__control,
.designer-canvas-snap .ui-field__control-inner {
  min-width: 0;
}

.designer-canvas-snap__select {
  width: 92px;
  min-width: 92px;
}

.designer-canvas-snap__select .flow-select-trigger {
  width: 100%;
  min-height: 1.8rem;
  height: 1.8rem;
  padding: 0;
  border: unset;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  background: unset;
  color: var(--main-text-color);
  box-shadow: none;
}

.template-color-toolbar {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 2px 0;
}

.template-color-swatch {
  width: 26px;
  height: 26px;
  border: 1px solid color-mix(in srgb, var(--main-text-color) 22%, var(--input-border-color));
  border-radius: 999px;
  background: var(--swatch-color);
  cursor: pointer;
  position: relative;
  transition: transform 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
}

.template-color-swatch:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--primary-button-bg-color) 45%, var(--input-border-color));
}

.template-color-swatch.is-active {
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--primary-button-bg-color) 35%, transparent);
  border-color: color-mix(in srgb, var(--primary-button-bg-color) 70%, var(--input-border-color));
}

.template-color-swatch--custom {
  background: var(--swatch-color, linear-gradient(135deg, #ff8a5b 0%, #ffd166 48%, #77dd77 100%));
  color: #1f2937;
  font-weight: 700;
  font-size: 13px;
  line-height: 1;
}

.designer-color-input {
  width: 44px;
  height: 28px;
  padding: 2px;
  border: 1px solid var(--input-border-color);
  border-radius: 8px;
  background: var(--content-block-bg-color);
  cursor: pointer;
}

.designer-color-input--hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

#btn_download[aria-disabled="true"] {
  pointer-events: none;
  opacity: 0.55;
  cursor: not-allowed;
}

.designer-metric {
  padding: 9px 10px;
  border-radius: 10px;
  border: 1px solid var(--input-border-color);
  background: color-mix(in srgb, var(--main-content-bg-color) 70%, transparent);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

.designer-metric__icon {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--primary-button-bg-color) 36%, var(--input-border-color));
  background: color-mix(in srgb, var(--primary-button-bg-color) 10%, transparent);
  color: color-mix(in srgb, var(--primary-button-bg-color) 88%, var(--main-text-color));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.designer-metric__content {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.designer-metric__label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: var(--secondary-text-color);
}

.designer-metric__value {
  font-size: 13px;
  font-weight: 700;
  color: var(--main-text-color);
}

.designer-metric--muted .designer-metric__value {
  font-weight: 600;
}

.designer-right-sidebar .deco-download {
  position: static;
  right: auto;
  bottom: auto;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.designer-right-sidebar .deco-download .ui-btn {
  width: 100%;
  min-height: 2.6rem;
  border-radius: 12px;
}

.designer-download-btn {
  width: 100%;
  min-height: 2.5rem;
  justify-content: center;
  gap: 8px;
  border-radius: 12px;
}

.template-save-progress {
  position: absolute;
  top: 50%;
  left: calc((100% - var(--designer-right-sidebar-width, 240px)) / 2);
  transform: translate(-50%, -50%);
  z-index: 14;
  width: min(380px, calc(100% - var(--designer-right-sidebar-width, 240px) - 32px));
  display: grid;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--input-border-color);
  background: color-mix(in srgb, var(--toolbar-menu-bg-color) 93%, transparent);
  box-shadow: var(--toolbar-menu-shadow), 0 8px 24px color-mix(in srgb, #000 22%, transparent);
  backdrop-filter: blur(4px);
  pointer-events: none;
}

.template-save-progress__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 11px;
  line-height: 1.25;
}

.template-save-progress__status {
  color: var(--main-text-color);
  font-weight: 600;
}

.template-save-progress__percent {
  color: var(--secondary-text-color);
  font-weight: 600;
  min-width: 2.5rem;
  text-align: right;
}

.template-save-progress__track {
  position: relative;
  height: 7px;
  border-radius: 999px;
  overflow: hidden;
  background: color-mix(in srgb, var(--main-content-bg-color) 62%, var(--input-border-color));
}

.template-save-progress__bar {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, color-mix(in srgb, var(--primary-button-bg-color) 78%, #ffffff 6%), var(--primary-button-bg-color));
  transition: width 140ms linear;
}

.template-save-progress.is-indeterminate .template-save-progress__bar {
  width: 42%;
  animation: template-save-progress-indeterminate 1.05s ease-in-out infinite;
}

.template-boundary-toast {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: var(--z-index-toast, 1080);
  width: min(620px, calc(100% - 32px));
  pointer-events: none;
  box-shadow: var(--toolbar-menu-shadow), 0 8px 24px color-mix(in srgb, #000 20%, transparent);
}

.template-boundary-toast .ui-toast__message {
  font-size: 12px;
  line-height: 1.35;
}

@keyframes template-save-progress-indeterminate {
  0% { transform: translateX(-115%); }
  100% { transform: translateX(255%); }
}

@media (min-width: 640px) {
  .designer-right-sidebar .deco-download--template {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .designer-right-sidebar .deco-download--template .designer-download-btn {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 900px) {
  .template-save-progress {
    left: 50%;
    width: min(360px, calc(100% - 24px));
  }
}

.designer-sidebar-resizer {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 10px;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: ew-resize;
  z-index: 9;
}

.designer-sidebar-resizer::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2px;
  height: 48px;
  transform: translate(-50%, -50%);
  border-radius: 2px;
  background: color-mix(in srgb, var(--primary-button-bg-color) 78%, transparent);
  opacity: 0;
  transition: opacity 0.15s ease, background-color 0.15s ease;
}

.designer-sidebar-resizer:hover::before,
.designer-sidebar-resizer:focus-visible::before {
  opacity: 1;
}

.designer-sidebar-resizer:focus-visible::before {
  background: var(--primary-button-bg-color);
}

.designer-sidebar-resizer--left {
  right: -5px;
}

.designer-sidebar-resizer--right {
  left: -5px;
}

@media (max-width: 991px) {
  .designer-project-name-shell {
    left: 14px;
    width: min(420px, calc(100vw - 28px));
    max-width: calc(100vw - 28px);
  }

  .designer-left-sidebar {
    max-width: min(450px, calc(100vw - 8px));
  }

  .designer-right-sidebar {
    max-width: min(450px, calc(100vw - 8px));
  }
}

@media (max-width: 680px) {
  .designer-left-sidebar {
    display: none;
  }

  .designer-sidebar-resizer {
    display: none;
  }

  .help {
    left: 8px;
  }

  .designer-right-sidebar {
    left: auto;
    width: auto;
  }

  .designer-right-sidebar__highlights {
    grid-template-columns: 1fr;
  }

  .designer-right-sidebar .ui-field--horizontal {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .designer-right-sidebar .designer-replication__controls {
    grid-template-columns: 1fr;
  }
}

.template-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 20px;
}

.template-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: transform 0.2s;
}

.template-box:hover {
  transform: scale(1.05);
}

.template-thumbnail {
  width: 150px;
  height: 150px;
  border-radius: 8px;
  overflow: hidden;
  /* margin-bottom: 10px; */
  border: 1px solid #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f9fa;
  padding: 15px;
}

.template-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  max-width: 100%;
  max-height: 100%;
  display: block;
  aspect-ratio: auto;
}

.template-name {
  text-align: center;
  font-size: 14px;
  color: var(--main-text-color);
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 5px;
}

.no-preview {
  color: #999;
  font-size: 12px;
}

#templateContextMenu {
  position: fixed;  /* Change to absolute */
  z-index: 1100;   /* Ensure it's above other modal content */
}

.modal-content {
  position: relative; /* Ensure modal content is a positioning context */
}

.template-box.active .template-thumbnail {
  border: 2px solid var(--primary-button-bg-color);  /* Blue border */
  box-shadow: 0 0 5px rgba(74, 144, 226, 0.5);  /* Subtle blue glow */
}

.main-page {
  height: auto; }
  @media (max-width: 767px) {
    .main-page {
      height: auto; 
      background-color: var(--main-content-bg-color); } }
  .main-page .main-page-wrapper {
    padding: 6% 8% 6% 8%;
    height: calc(100vh - 3rem); }
    @media (max-width: 767px) {
      .main-page .main-page-wrapper {
        height: auto; } }
  .theme-light .main-page-wrapper {
    background-color: #fff;
    border-left: 1px solid #e5e6eb;
  }
  .theme-dark .main-page-wrapper {
    background-color: #2D2D2D;
    border-left: 1px solid #444444;
  }

.main-page-wrapper .breadcrumb {
  display: flex;
  align-items: center;
  /* gap: 0.5rem; */
  padding: 8px 0px;
  margin-bottom: 20px;
  list-style: none;
  background-color: transparent;
  font-weight: 700;
  /* border-radius: 4px; */
}

/* Style for breadcrumb items */
.main-page-wrapper .breadcrumb a {
    color: var(--main-text-color);
    text-decoration: none;
    font-weight: 700;
}

/* Add separator between items */
.main-page-wrapper .breadcrumb > *:not(:first-child):before {
    content: "";
    display: inline-block;
    width: 1.0rem;
    height: 1.0rem;
    background-color: var(--main-text-color);
    -webkit-mask-image: url("data:image/svg+xml;charset=utf-8,<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\"><path d=\"M8.59 16.58 13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.42Z\"/></svg>");
    mask-image: url("data:image/svg+xml;charset=utf-8,<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\"><path d=\"M8.59 16.58 13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.42Z\"/></svg>");
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    margin: 0 0.25rem;
    vertical-align: middle;
}

.align-left {
  text-align: left; }

.align-right {
  text-align: right; }

.block-info {
  overflow-x: auto;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
  margin-bottom: 20px;
  border-radius: 15px;
  min-height: 0px; }
  .theme-light .block-info {
    background-color: #fff; }
  .theme-dark .block-info {
    background-color: #2D2D2D; }

.block-content {
  overflow-x: auto;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
  padding-top: 15px;
  border-radius: 15px; }
  .theme-light .block-content {
    background-color: #fff; }
  .theme-dark .block-content {
    background-color: #2D2D2D; }

.glassplate {
  height: 90vh;
  max-width: 100vw; }

.content-scroll {
  overflow: auto; }

.login-logo a {
  color: var(--main-text-color); }

.login-page {
  background-repeat: no-repeat;
  background-size: 100%;
  background-position: center bottom;
  min-height: 100vh;
  text-align: center;
  background-color: #f5f6fa; }
  .login-page a {
    color: #444; }
  .login-page:before {
    content: "";
    display: block;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none; }
  .login-page .login-page-title {
    padding-top: 50px;
    position: relative; }
    .login-page .login-page-title h1 {
      color: #fff;
      text-shadow: 2px 4px 3px rgba(0, 0, 0, 0.3); }

.login-block {
  width: 400px;
  border-radius: 15px;
  box-shadow: 0 3px 20px 0px rgba(0, 0, 0, 0.1);
  -webkit-box-shadow: 0 3px 20px 0px rgba(0, 0, 0, 0.1);
  padding: 40px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: unset; 
  background-color: var(--toolbar-menu-bg-color);
}
.login-block h1 {
  font-family: "Inter", "Montserrat", sans-serif;
  font-weight: 900;
  font-size: 3em;
  letter-spacing: .05em;
  line-height: auto;
  color: var(--main-text-color);
}


.app-grid {
  display: -ms-grid;
  display: grid;
  grid-gap: 50px;
  margin-top: 50px; }
  @media (max-width: 767px) {
    .app-grid {
      grid-template-columns: 1fr; } }
  @media (min-width: 768px) and (max-width: 992px) {
    .app-grid {
      grid-template-columns: 1fr 1fr; } }
  @media (min-width: 992px) and (max-width: 1200px) {
    .app-grid {
      grid-template-columns: 1fr 1fr; } }
  @media (min-width: 1200px) {
    .app-grid {
      grid-template-columns: 1fr 1fr 1fr 1fr; } }
  .app-grid .app-box {
    display: -ms-grid;
    display: grid;
    grid-template-areas: "image" "text";
    grid-template-rows: 180px 1fr;
    -ms-grid-columns: 1fr;
    -ms-grid-rows: 180px 1fr;
    border-radius: 15px;
    box-shadow: 0 14px 26px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease-out; 
    background-color: var(--content-block-bg-color);
    color: var(--main-text-color);
  }
    .app-grid .app-box:hover {
      transform: translateY(-5px) scale(1.046) translateZ(0); }
    .app-grid .app-box .app-box-image {
      -ms-grid-row: 1;
      -ms-grid-column: 1;
      grid-area: image;
      padding: 50px 0px 50px;
      border-radius: 10px 10px 0px 0px; }
    .app-grid .app-box .app-box-text {
      -ms-grid-row: 2;
      -ms-grid-column: 1;
      grid-area: text;
      padding: 30px 1em 30px 1em;
      text-align: center;
      align-self: center;
      border-bottom-left-radius: 10px;
      border-bottom-right-radius: 10px; 
      background-color: var(--content-block-bg-color);
    }
      .app-grid .app-box .app-box-text h3 {
        font-size: 1.8em;
        font-weight: 700; 
        color: var(--main-text-color);
      }
      .app-grid .app-box .app-box-text p {
        font-size: 1.2em; 
        color: var(--main-text-color);
      }
  .app-grid a:hover {
    text-decoration: none; }

.two-column-grid {
  display: grid;
  grid-template-columns: 1fr 1fr; }
  @media (max-width: 767px) {
    .two-column-grid {
      grid-template-columns: 1fr; } }
.three-column-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr; }
  @media (max-width: 767px) {
    .three-column-grid {
      grid-template-columns: 1fr; } }
.model-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  grid-gap: 50px;
  margin-top: 50px; }
  @media (max-width: 767px) {
    .model-grid {
      grid-template-columns: 1fr; } }
  @media (min-width: 768px) and (max-width: 992px) {
    .model-grid {
      grid-template-columns: 1fr 1fr; } }
  @media (min-width: 992px) and (max-width: 1200px) {
    .model-grid {
      grid-template-columns: 1fr 1fr; } }
  .model-grid a:hover {
    text-decoration: none; }
  .model-grid .model-image {
    position: relative;
    opacity: 1;
    transition: .3s ease; }
    .model-grid .model-image .model-text {
      position: absolute;
      padding: 25px;
      top: 0px;
      opacity: 0;
      transition: .3s ease;
      text-align: center;
      width: 100%;
      height: 100%; }
      .model-grid .model-image .model-text h2 {
        text-transform: uppercase;
        font-size: 1.5em;
        letter-spacing: 4px;
        font-weight: 600; }
      .model-grid .model-image .model-text .small-divider {
        margin-top: 7px;
        margin-bottom: 0px;
        display: block;
        width: 50px;
        height: 2px;
        margin-left: auto;
        margin-right: auto; }
        .theme-light .model-grid .model-image .model-text .small-divider {
          background-color: #2ba8c2; }
        .theme-dark .model-grid .model-image .model-text .small-divider {
          background-color: #2ba8c2; }
      .model-grid .model-image .model-text .model-specs {
        display: grid;
        grid-template-columns: 1fr 1fr;
        margin-top: 10px; }
        .model-grid .model-image .model-text .model-specs .model-specs-left {
          float: right;
          text-align: right;
          margin-right: 5px; }
        .model-grid .model-image .model-text .model-specs .model-specs-right {
          float: left;
          text-align: left;
          margin-left: 5px; }
    .model-grid .model-image:hover img {
      opacity: 0.3; }
    .model-grid .model-image:hover .model-text {
      opacity: 1; }

.justify-content {
  display: flex;
  justify-content: center; }

.upload-image img {
  background-color: white;
  max-height: 60vh;
  max-width: 60vw; }

.main-background {
  background-repeat: no-repeat;
  background-position: right;
  background-size: 70%; }

.binary-images {
  display: grid;
  grid-template-columns: 1fr 1fr; }

.binary-1 {
  padding-left: 1rem;
  padding-right: 1rem; }

.binary-2 {
  padding-left: 1rem;
  padding-right: 1rem; }

.glass-circle {
  fill: var(--main-content-bg-color); }

.theme-light .background-light {
  background-color: #fff; }

.theme-dark .background-light {
  background-color: #292929; }

.theme-light .background-dark {
  background-color: #f5f6fa; }

.theme-dark .background-dark {
  background-color: #141414; }

.selection-box {
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease-out;
  margin-left: 10px;
  margin-right: 10px; }
  .theme-light .selection-box {
    background-color: #f0f0f0;
    color: #333333; }
  .theme-dark .selection-box {
    background-color: #4D4D4D;
    color: #f5f5f7; }
  .selection-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 36px rgba(0, 0, 0, 0.15); }
  @media (max-width: 767px) {
    .selection-box {
      margin-bottom: 30px; } }
.section-content {
  padding-top: 48px;
  padding-bottom: 48px; }
  .section-content .section-content-right {
    margin-left: 5%;
    align-self: center; }
  .section-content .section-content-left {
    margin-right: 5%;
    align-self: center; }
  .section-content .section-image-right {
    margin-left: 5%; }
    @media (max-width: 767px) {
      .section-content .section-image-right {
        margin-left: 0%;
        margin-top: 30px; } }
    .section-content .section-image-right img {
      max-width: 100%; }
  .section-content .section-image-left {
    margin-right: 5%; }
    @media (max-width: 767px) {
      .section-content .section-image-left {
        margin-right: 0%;
        margin-bottom: 30px; } }
    .section-content .section-image-left img {
      max-width: 100%; }
  .section-content .section-text-left {
    text-align: right;
    padding-right: 10px; }
  .section-content .section-text-right {
    text-align: left;
    padding-left: 10px; }

.manual-images {
  display: grid;
  grid-template-columns: 1fr 1fr; }

.manual-content {
  font-family: Montserrat, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--main-text-color);
}

.manual-content img {
  max-width: 100%;
  height: auto;
  border-radius: 0;
}

.manual-content p {
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  padding-block-start: 14px;
}

.manual-content > ul {
  padding-inline-start: 24px;
}

.manual-content > ul > :is(li) {
  padding-inline: 4px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
}

.manual-content > ul > :is(li):not(:last-of-type) {
  margin-block-end: 8px;
}

.manual-content .markdown-textarea {
  font-family: "Courier New", monospace;
  font-size: 14px;
  line-height: 1.5;
  white-space: pre-wrap;
  tab-size: 4;
  padding: 12px;
  resize: vertical;
}

.manual-content .form-control {
  background-color: var(--input-bg-color);
}

.manual-content .admin-actions {
  margin-top: 20px;
  padding: 10px;
  border-top: 1px solid #ddd;
}

.manual-content .safety-symbol {
  display: grid;
  grid-template-columns: 40px 1fr;
  grid-gap: 15px;
  margin: 1em 0;
  align-items: center;
  background-color: var(--main-content-bg-color);
  padding: 15px;
  border-radius: 5px;
}

.manual-content .safety-symbol-content {
  display: block;
  font-weight: 400;
  font-size: 14px;
}

.manual-content .safety-symbol-title {
  font-weight: 700;
  margin-bottom: 0.25em;
}

/* Manual page */
.manual-page {
  display: grid;
  grid-template-columns: minmax(250px, 18rem) minmax(0, 1fr);
  gap: 0;
  width: 100%;
  margin: 0 auto;
  padding: 0;
  min-height: 0;
  align-items: stretch;
}

.manual-page__sidebar {
  min-height: 0;
  border-right: 1px solid var(--input-border-color);
  background: color-mix(in srgb, var(--content-block-bg-color) 96%, transparent);
}

.manual-page__sidebar-inner {
  position: sticky;
  top: 0;
  padding: 1rem 0;
  max-height: calc(100dvh - 5.3rem);
  overflow-y: auto;
  overflow-x: hidden;
}

.manual-page__sidebar-head {
  margin-bottom: 0.8rem;
  padding: 0 1.15rem;
}

.manual-page__eyebrow {
  margin: 0;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted-foreground);
}

.manual-page__sidebar-title {
  margin: 0.25rem 0 0;
  font-size: 1rem;
  line-height: 1.3;
  color: var(--foreground);
}

.manual-nav,
.manual-nav__links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.manual-nav {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

/* .manual-page li {
  list-style-type: none;
} */

.manual-nav__section {
  margin: 0;
  padding: 0.2rem 0;
}

.manual-nav__summary {
  display: flex;
  align-items: center;
  margin: 0 0 0.35rem;
  padding: 0 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0.01em;
  color: var(--foreground);
}

.manual-nav__summary-label {
  min-width: 0;
}

.manual-nav__links {
  padding: 0;
  display: flex;
  flex-direction: column;
}

.manual-nav__item {
  border-radius: 0;
}

.manual-nav__link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.75rem 0.375rem 1.5rem;
  border-radius: 0;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--muted-foreground);
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.manual-nav__link:link,
.manual-nav__link:visited {
  color: var(--muted-foreground);
  text-decoration: none;
}

.manual-nav__link:focus {
  color: var(--foreground);
  text-decoration: none;
}

.manual-nav__link-label {
  display: block;
  min-width: 0;
}

.manual-nav__item:hover .manual-nav__link {
  background: color-mix(in srgb, var(--primary) 7%, transparent);
  color: var(--foreground);
}

.manual-nav__item:hover .manual-nav__link:link,
.manual-nav__item:hover .manual-nav__link:visited {
  color: var(--foreground);
}

.manual-nav__item.is-active .manual-nav__link {
  background: color-mix(in srgb, var(--primary) 9%, transparent);
  color: var(--foreground);
  font-weight: 600;
}

/* .manual-nav__item.is-active .manual-nav__link::before {
  content: "";
  position: absolute;
  left: 0.62rem;
  top: 50%;
  width: 0.38rem;
  height: 0.38rem;
  border-radius: 999px;
  background: var(--primary);
  transform: translateY(-50%);
} */

.manual-page__content {
  min-width: 0;
  min-height: calc(100dvh - 5.3rem);
  overflow-y: auto;
  padding: 1.4rem 1.2rem 2.5rem;
}

.manual-page__content-inner {
  width: 100%;
  max-width: 42rem;
  margin: 0 auto;
}

.manual-page__card {
  min-height: 100%;
  background: transparent;
  border: 0;
  border-radius: 0;
  overflow: visible;
  padding: 0;
}

.manual-page__breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.1rem;
  font-size: 0.8rem;
  color: var(--muted-foreground);
  width: 100%;
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
}

.manual-page__crumb--current {
  color: var(--foreground);
  font-weight: 600;
}

.manual-page__crumb-sep {
  opacity: 0.65;
}

.manual-controls {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.manual-controls .control-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--primary);
  text-decoration: none;
}

.manual-controls .control-link:hover {
  text-decoration: underline;
}

.manual-page__article-header {
  margin-bottom: 1.15rem;
  width: 100%;
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
}

.manual-page__title {
  margin: 0;
  font-size: clamp(1.7rem, 2.4vw, 2.25rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--foreground);
}

.manual-prose {
  color: var(--foreground);
  line-height: 1.68;
  font-size: 0.97rem;
  width: 100%;
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
}

.manual-prose h1,
.manual-prose h2,
.manual-prose h3,
.manual-prose h4 {
  margin-top: 1.5rem;
  margin-bottom: 0.7rem;
  color: var(--foreground);
}

.manual-prose h2 {
  font-size: 1.42rem;
}

.manual-prose h3 {
  font-size: 1.18rem;
}

.manual-prose p {
  margin: 0 0 1rem;
}

.manual-prose ul,
.manual-prose ol {
  margin: 0 0 1rem 1.25rem;
  padding: 0;
}

.manual-prose li {
  margin: 0.25rem 0;
}

.manual-prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.86em;
  background: color-mix(in srgb, var(--foreground) 8%, transparent);
  border-radius: 6px;
  padding: 0.1rem 0.3rem;
}

.manual-prose pre {
  overflow: auto;
  padding: 1rem 1.05rem;
  border-radius: 12px;
  background: color-mix(in srgb, var(--foreground) 7%, transparent);
  border: 1px solid var(--input-border-color);
}

.manual-prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}

.manual-prose table th,
.manual-prose table td {
  border: 1px solid var(--input-border-color);
  padding: 0.55rem 0.6rem;
  text-align: left;
}

.manual-page__empty-nav,
.manual-page__empty-state {
  color: var(--muted-foreground);
  font-size: 0.9rem;
  line-height: 1.5;
  padding: 0.75rem;
}

.manual-page__empty-state {
  width: 100%;
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
}

.manual-page__empty-state h2 {
  margin: 0 0 0.5rem;
  color: var(--foreground);
}

@media (max-width: 992px) {
  .manual-page {
    grid-template-columns: 1fr;
    padding: 0;
  }

  .manual-page__sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--input-border-color);
  }

  .manual-page__sidebar-inner {
    position: static;
    max-height: none;
    padding: 0.9rem 0;
  }

  .manual-page__content {
    min-height: auto;
    overflow: visible;
    padding: 1rem 0.75rem 2rem;
  }

  .manual-page__content-inner {
    max-width: 100%;
  }

  .manual-page__card {
    min-height: auto;
    max-height: none;
    padding: 0;
  }
}

/*
 * Component: Sidebar
 * ------------------
 */
/* .main-sidebar {
  position: absolute;
  top: 0;
  left: 0;
  margin-top: 49px;
  height: calc(100vh - 49px);
  width: 250px;
  z-index: 2;
  -webkit-transition: -webkit-transform 0.3s ease-in-out, width 0.3s ease-in-out;
  -moz-transition: -moz-transform 0.3s ease-in-out, width 0.3s ease-in-out;
  -o-transition: -o-transform 0.3s ease-in-out, width 0.3s ease-in-out;
  transition: transform 0.3s ease-in-out, width 0.3s ease-in-out;
  border-right-width: 0px;
  border-right-style: solid; 
  background-color: transparent;
}
  .theme-light .main-sidebar {
    border-color: #eeeff1; }
  .theme-dark .main-sidebar {
    border-color: #444444; }

@media (max-width: 767px) {
  .main-sidebar {
    padding-top: 100px; } }

@media (max-width: 767px) {
  .main-sidebar {
    -webkit-transform: translate(-250px, 0);
    -ms-transform: translate(-250px, 0);
    -o-transform: translate(-250px, 0);
    transform: translate(-250px, 0); } }

@media (min-width: 768px) {
  .sidebar-collapse .main-sidebar {
    -webkit-transform: translate(-250px, 0);
    -ms-transform: translate(-250px, 0);
    -o-transform: translate(-250px, 0);
    transform: translate(-250px, 0); } }

@media (max-width: 767px) {
  .sidebar-open .main-sidebar {
    -webkit-transform: translate(0, 0);
    -ms-transform: translate(0, 0);
    -o-transform: translate(0, 0);
    transform: translate(0, 0); } } */

.sidebar {
  padding-bottom: 10px; }

.theme-light .sidebar a {
  background-color: #000;
  color: #888888; }

.theme-dark .sidebar a {
  background-color: #000;
  color: #888888; }

.theme-light .sidebar a .icon {
  background-color: #888888; }

.theme-dark .sidebar a .icon {
  background-color: #888888; }

.sidebar-form input:focus {
  border-color: transparent; }

.user-panel {
  position: relative;
  width: 100%;
  padding: 10px;
  overflow: hidden; }

.user-panel:before,
.user-panel:after {
  content: " ";
  display: table; }

.user-panel:after {
  clear: both; }

.user-panel > .image > img {
  width: 100%;
  max-width: 45px;
  height: auto; }

.user-panel > .info {
  padding: 5px 5px 5px 15px;
  line-height: 1;
  position: absolute;
  left: 55px; }

.user-panel > .info > p {
  font-weight: 600;
  margin-bottom: 9px; }

.user-panel > .info > a {
  text-decoration: none;
  padding-right: 5px;
  margin-top: 3px;
  font-size: 11px; }

.user-panel > .info > a > .fa,
.user-panel > .info > a > .ion,
.user-panel > .info > a > .glyphicon {
  margin-right: 3px; }

/*
 * Component: Sidebar Mini
 */
@media (min-width: 768px) {
  .sidebar-mini.sidebar-collapse .content-wrapper,
  .sidebar-mini.sidebar-collapse .right-side,
  .sidebar-mini.sidebar-collapse .main-footer {
    margin-left: 0 !important;
    left: 56px !important;
    z-index: 20; }
  .sidebar-mini.sidebar-collapse .main-sidebar {
    -webkit-transform: translate(0, 0);
    -ms-transform: translate(0, 0);
    -o-transform: translate(0, 0);
    transform: translate(0, 0);
    width: 70px !important;
    z-index: 10; }
  .sidebar-mini.sidebar-collapse .main-sidebar .user-panel > .info,
  .sidebar-mini.sidebar-collapse .sidebar-form {
    display: none !important;
    -webkit-transform: translateZ(0); }
  .sidebar-mini.sidebar-collapse .main-header .sidebar-toggle {
    padding: 14px 28px; }
  .sidebar-mini.sidebar-collapse .main-header .logo {
    width: 50px; }
  .sidebar-mini.sidebar-collapse .main-header .logo > .logo-mini {
    display: block;
    margin-left: -15px;
    margin-right: -15px;
    font-size: 18px; }
  .sidebar-mini.sidebar-collapse .main-header .logo > .logo-lg {
    display: none; }
  .sidebar-mini.sidebar-collapse .main-header .navbar {
    /* margin-left: 70px;  */
  } }

.sidebar-expanded-on-hover .main-footer,
.sidebar-expanded-on-hover .content-wrapper {
  margin-left: 0;
  left: 56px; }

.sidebar-expanded-on-hover .main-sidebar {
  box-shadow: 3px 0 8px rgba(0, 0, 0, 0.125); }

.sidebar-form {
  overflow: hidden;
  text-overflow: clip; }

/*
 * Component: Control sidebar. By default, this is the right sidebar.
 */
.control-sidebar-bg {
  position: fixed;
  z-index: 1000;
  bottom: 0; }

.control-sidebar-bg,
.control-sidebar {
  top: 0;
  right: -250px;
  width: 250px;
  -webkit-transition: right 0.3s ease-in-out;
  -o-transition: right 0.3s ease-in-out;
  transition: right 0.3s ease-in-out; }

.control-sidebar {
  position: absolute;
  padding-top: 50px;
  z-index: 1010; }

@media (max-width: 767px) {
  .control-sidebar {
    padding-top: 100px; } }

.control-sidebar > .tab-content {
  padding: 10px 15px; }

.control-sidebar.control-sidebar-open,
.control-sidebar.control-sidebar-open + .control-sidebar-bg {
  right: 0; }

.control-sidebar-open .control-sidebar-bg,
.control-sidebar-open .control-sidebar {
  right: 0; }

@media (min-width: 768px) {
  .control-sidebar-open .content-wrapper,
  .control-sidebar-open .right-side,
  .control-sidebar-open .main-footer {
    margin-right: 250px; } }

.fixed .control-sidebar {
  position: fixed;
  height: 100%;
  overflow-y: auto;
  padding-bottom: 50px; }

.nav-tabs.control-sidebar-tabs > li:first-of-type > a,
.nav-tabs.control-sidebar-tabs > li:first-of-type > a:hover,
.nav-tabs.control-sidebar-tabs > li:first-of-type > a:focus {
  border-left-width: 0; }

.nav-tabs.control-sidebar-tabs > li > a {
  border-radius: 0; }

.nav-tabs.control-sidebar-tabs > li > a,
.nav-tabs.control-sidebar-tabs > li > a:hover {
  border-top: none;
  border-right: none;
  border-left: 1px solid transparent;
  border-bottom: 1px solid transparent; }

.nav-tabs.control-sidebar-tabs > li > a .icon {
  font-size: 16px; }

.nav-tabs.control-sidebar-tabs > li.active > a,
.nav-tabs.control-sidebar-tabs > li.active > a:hover,
.nav-tabs.control-sidebar-tabs > li.active > a:focus,
.nav-tabs.control-sidebar-tabs > li.active > a:active {
  border-top: none;
  border-right: none;
  border-bottom: none; }

@media (max-width: 768px) {
  .nav-tabs.control-sidebar-tabs {
    display: table; }
  .nav-tabs.control-sidebar-tabs > li {
    display: table-cell; } }

.control-sidebar-heading {
  font-weight: 400;
  font-size: 16px;
  padding: 10px 0;
  margin-bottom: 10px; }

.control-sidebar-subheading {
  display: block;
  font-weight: 400;
  font-size: 14px; }

.control-sidebar-menu {
  list-style: none;
  padding: 0;
  margin: 0 -15px; }

.control-sidebar-menu > li > a {
  display: block;
  padding: 10px 15px; }

.control-sidebar-menu > li > a:before,
.control-sidebar-menu > li > a:after {
  content: " ";
  display: table; }

.control-sidebar-menu > li > a:after {
  clear: both; }

.control-sidebar-menu > li > a > .control-sidebar-subheading {
  margin-top: 0; }

.control-sidebar-menu .menu-icon {
  float: left;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  text-align: center;
  line-height: 35px; }

.control-sidebar-menu .menu-info {
  margin-left: 45px;
  margin-top: 3px; }

.control-sidebar-menu .menu-info > .control-sidebar-subheading {
  margin: 0; }

.control-sidebar-menu .menu-info > p {
  margin: 0;
  font-size: 11px; }

.control-sidebar-menu .progress {
  margin: 0; }

.control-sidebar-dark {
  color: #b8c7ce; }

.control-sidebar-dark,
.control-sidebar-dark + .control-sidebar-bg {
  background: #222d32; }

.control-sidebar-dark .nav-tabs.control-sidebar-tabs {
  border-bottom: #1c2529; }

.control-sidebar-dark .nav-tabs.control-sidebar-tabs > li > a {
  background: #181f23;
  color: #b8c7ce; }

.control-sidebar-dark .nav-tabs.control-sidebar-tabs > li > a,
.control-sidebar-dark .nav-tabs.control-sidebar-tabs > li > a:hover,
.control-sidebar-dark .nav-tabs.control-sidebar-tabs > li > a:focus {
  border-left-color: #141a1d;
  border-bottom-color: #141a1d; }

.control-sidebar-dark .nav-tabs.control-sidebar-tabs > li > a:hover,
.control-sidebar-dark .nav-tabs.control-sidebar-tabs > li > a:focus,
.control-sidebar-dark .nav-tabs.control-sidebar-tabs > li > a:active {
  background: #1c2529; }

.control-sidebar-dark .nav-tabs.control-sidebar-tabs > li > a:hover {
  color: #fff; }

.control-sidebar-dark .nav-tabs.control-sidebar-tabs > li.active > a,
.control-sidebar-dark .nav-tabs.control-sidebar-tabs > li.active > a:hover,
.control-sidebar-dark .nav-tabs.control-sidebar-tabs > li.active > a:focus,
.control-sidebar-dark .nav-tabs.control-sidebar-tabs > li.active > a:active {
  background: #222d32;
  color: #fff; }

.control-sidebar-dark .control-sidebar-heading,
.control-sidebar-dark .control-sidebar-subheading {
  color: #fff; }

.control-sidebar-dark .control-sidebar-menu > li > a:hover {
  background: #1e282c; }

.control-sidebar-dark .control-sidebar-menu > li > a .menu-info > p {
  color: #b8c7ce; }

.control-sidebar-light {
  color: #5e5e5e; }

.control-sidebar-light,
.control-sidebar-light + .control-sidebar-bg {
  background: #f9fafc;
  border-left: 1px solid #d2d6de; }

.control-sidebar-light .nav-tabs.control-sidebar-tabs {
  border-bottom: #d2d6de; }

.control-sidebar-light .nav-tabs.control-sidebar-tabs > li > a {
  background: #e8ecf4;
  color: #444444; }

.control-sidebar-light .nav-tabs.control-sidebar-tabs > li > a,
.control-sidebar-light .nav-tabs.control-sidebar-tabs > li > a:hover,
.control-sidebar-light .nav-tabs.control-sidebar-tabs > li > a:focus {
  border-left-color: #d2d6de;
  border-bottom-color: #d2d6de; }

.control-sidebar-light .nav-tabs.control-sidebar-tabs > li > a:hover,
.control-sidebar-light .nav-tabs.control-sidebar-tabs > li > a:focus,
.control-sidebar-light .nav-tabs.control-sidebar-tabs > li > a:active {
  background: #eff1f7; }

.control-sidebar-light .nav-tabs.control-sidebar-tabs > li.active > a,
.control-sidebar-light .nav-tabs.control-sidebar-tabs > li.active > a:hover,
.control-sidebar-light .nav-tabs.control-sidebar-tabs > li.active > a:focus,
.control-sidebar-light .nav-tabs.control-sidebar-tabs > li.active > a:active {
  background: #f9fafc;
  color: #111; }

.control-sidebar-light .control-sidebar-heading,
.control-sidebar-light .control-sidebar-subheading {
  color: #111; }

.control-sidebar-light .control-sidebar-menu {
  margin-left: -14px; }

.control-sidebar-light .control-sidebar-menu > li > a:hover {
  background: #f4f4f5; }

.control-sidebar-light .control-sidebar-menu > li > a .menu-info > p {
  color: #5e5e5e; }

/*
 * Component: Button
 * -----------------
 */
.btn {
  border-radius: 3px;
  -webkit-box-shadow: none;
  box-shadow: none;
  border: 1px solid transparent;
  padding: 12px 30px;
  color: #fff !important; }

.btn.uppercase {
  text-transform: uppercase; }

.btn.btn-flat {
  border-radius: 0;
  -webkit-box-shadow: none;
  -moz-box-shadow: none;
  box-shadow: none;
  border-width: 1px; }

.btn:active {
  -webkit-box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
  -moz-box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
  box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125); }

.btn:focus {
  outline: none; }

.btn.btn-file {
  position: relative;
  overflow: hidden; }

.btn.btn-file > input[type='file'] {
  position: absolute;
  top: 0;
  right: 0;
  min-width: 100%;
  min-height: 100%;
  font-size: 100px;
  text-align: right;
  opacity: 0;
  filter: alpha(opacity=0);
  outline: none;
  background: white;
  cursor: inherit;
  display: block; }

.btn-default {
  background-color: #f4f4f4;
  color: #444;
  border-color: #ddd; }

.btn-default:hover,
.btn-default:active,
.btn-default.hover {
  background-color: #e7e7e7; }

.btn-primary {
  border-radius: 25px;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700; 
  background-color: var(--primary-button-bg-color); 
  border-color: var(--primary-button-bg-color); }

.btn-primary:hover,
.btn-primary:active,
.btn-primary.hover,
.btn-primary:active:hover {
  background-color: var(--primary-button-hover-bg-color); 
  border-color: var(--primary-button-hover-bg-color); }

.btn-success {
  background-color: #00a65a;
  border-color: #008d4c; }

.btn-success:hover,
.btn-success:active,
.btn-success.hover {
  background-color: #008d4c; }

.btn-info {
  background-color: #00c0ef;
  border-color: #00acd6; }

.btn-info:hover,
.btn-info:active,
.btn-info.hover {
  background-color: #00acd6; }

.btn-danger {
  background-color: #dd4b39;
  border-color: #d73925; }

.btn-danger:hover,
.btn-danger:active,
.btn-danger.hover {
  background-color: #d73925; }

.btn-warning {
  background-color: #f39c12;
  border-color: #e08e0b; }

.btn-warning:hover,
.btn-warning:active,
.btn-warning.hover {
  background-color: #e08e0b; }

.btn-outline {
  border: 1px solid #fff;
  background: transparent;
  color: #fff; }

.btn-outline:hover,
.btn-outline:focus,
.btn-outline:active {
  color: rgba(255, 255, 255, 0.7);
  border-color: rgba(255, 255, 255, 0.7); }

.btn-link {
  -webkit-box-shadow: none;
  box-shadow: none; }

.btn[class*='bg-']:hover {
  -webkit-box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.2);
  box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.2); }

.btn-app {
  border-radius: 3px;
  position: relative;
  padding: 15px 5px;
  margin: 0 0 10px 10px;
  min-width: 80px;
  height: 60px;
  text-align: center;
  color: #666;
  border: 1px solid #ddd;
  background-color: #f4f4f4;
  font-size: 12px; }

.btn-app > .fa,
.btn-app > .glyphicon,
.btn-app > .ion {
  font-size: 20px;
  display: block; }

.btn-app:hover {
  background: #f4f4f4;
  color: #444;
  border-color: #aaa; }

.btn-app:active,
.btn-app:focus {
  -webkit-box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
  -moz-box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
  box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125); }

.btn-app > .badge {
  position: absolute;
  top: -3px;
  right: -10px;
  font-size: 10px;
  font-weight: 400; }

.btn-secondary {
  border-radius: 25px;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid; }
  .theme-light .btn-secondary {
    border-color: #4A90E2; }
  .theme-dark .btn-secondary {
    border-color: #4A90E2; }

.btn.btn-secondary {
  color: #4A90E2 !important; }

.btn-secondary:hover {
  color: white !important; }
  .theme-light .btn-secondary:hover {
    background-color: #4A90E2; }
  .theme-dark .btn-secondary:hover {
    background-color: #4A90E2; }

/*
 * Component: Tabs
 * -----------------
 */
.tab-menu {
  height: 50px;
  margin-bottom: 28px; }
  .tab-menu a {
    float: left;
    position: relative;
    margin: 0px 10px;
    display: block;
    font-weight: 400;
    font-size: 1.1em;
    padding: 15px 0px; }
    .theme-light .tab-menu a {
      color: #333333; }
    .theme-dark .tab-menu a {
      color: #f5f5f7; }
  .tab-menu ul {
    height: 100%;
    margin: 0;
    padding: 0;
    border-bottom: 1px solid #c8d8ef; }
  .tab-menu ul > li {
    float: left;
    position: relative;
    cursor: pointer;
    list-style: none;
    height: 100%; }
    .tab-menu ul > li:first-child a {
      margin-left: 0px; }
  .tab-menu li > a::after {
    content: "";
    background: #6696fb;
    height: 2px;
    position: absolute;
    width: 100%;
    left: 0px;
    bottom: .5px;
    transition: all 250ms ease 0s;
    transform: scale(0); }
  .tab-menu li.active > a {
    font-weight: 500; }
  .tab-menu li.active > a::after,
  .tab-menu li:hover > a::after {
    transform: scale(1); }

.custom-control {
  position: relative;
  display: block;
  min-height: 1.5rem;
  padding-left: 1.5rem; }

.custom-control-input {
  position: absolute;
  z-index: -1;
  opacity: 0; }

.custom-control-label::before {
  position: absolute;
  top: .25rem;
  left: .5rem;
  display: block;
  width: 1rem;
  height: 1rem;
  pointer-events: none;
  content: "";
  background-color: #fff;
  border: #adb5bd solid 1px; }

.custom-control-label::after {
  position: absolute;
  top: .25rem;
  left: .5rem;
  display: block;
  width: 1rem;
  height: 1rem;
  content: "";
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 50% 50%; }

.custom-checkbox .custom-control-label:before {
  border-radius: .25rem; }

.custom-control-label::before {
  transition: background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out; }

.custom-checkbox .custom-control-input:checked ~ .custom-control-label:after {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3E%3Cpath fill='%23fff' d='M6.564.75l-3.59 3.612-1.538-1.55L0 4.26l2.974 2.99L8 2.193z'/%3E%3C/svg%3E"); }

.custom-control-input:checked ~ .custom-control-label::before {
  color: #fff;
  border-color: #007bff;
  background-color: #007bff; }

.custom-checkbox .custom-control-input:indeterminate ~ .custom-control-label:before {
  border-color: #5f27cd;
  background-color: #5f27cd; }

.custom-checkbox .custom-control-input:indeterminate ~ .custom-control-label:after {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 4'%3E%3Cpath stroke='%23fff' d='M0 2h4'/%3E%3C/svg%3E"); }

.custom-checkbox .custom-control-input:disabled:checked ~ .custom-control-label:before {
  background-color: rgba(95, 39, 205, 0.5); }

.custom-checkbox .custom-control-input:disabled:indeterminate ~ .custom-control-label:before {
  background-color: rgba(95, 39, 205, 0.5); }

.select-field-container {
  position: relative;
  margin-top: 1rem;
  margin-bottom: 1rem;
  width: 300px; }

.select-field-container.full {
  width: 100%; }

.select-field {
  border-radius: 4px 4px 0 0;
  position: relative;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  height: 56px;
  overflow: hidden;
  margin-bottom: 5px; }
  .theme-light .select-field {
    background-color: #fff; }
  .theme-dark .select-field {
    background-color: #2D2D2D; }
  .theme-light .select-field:hover {
    background-color: #f0f0f0; }
  .theme-dark .select-field:hover {
    background-color: #444444; }
  .select-field .dropdown-icon {
    background: url("data:image/svg+xml;charset=utf-8,%3Csvg width='10' height='5' viewBox='7 10 10 5' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' opacity='.54' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E") no-repeat 50%;
    left: auto;
    right: 8px;
    position: absolute;
    bottom: 16px;
    width: 24px;
    height: 24px;
    -webkit-transition: -webkit-transform 150ms cubic-bezier(0.4, 0, 0.2, 1);
    transition: -webkit-transform 150ms cubic-bezier(0.4, 0, 0.2, 1);
    -o-transition: transform 150ms cubic-bezier(0.4, 0, 0.2, 1);
    transition: transform 150ms cubic-bezier(0.4, 0, 0.2, 1);
    transition: transform 150ms cubic-bezier(0.4, 0, 0.2, 1), -webkit-transform 150ms cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none; }
  .select-field .select-control {
    padding: 20px 52px 4px 16px;
    font-family: "Inter", "Montserrat", sans-serif;
    font-size: 1rem;
    box-sizing: border-box;
    width: 100%;
    height: 56px;
    border: none;
    border-radius: 0;
    border-bottom: 1px solid;
    outline: none;
    white-space: nowrap;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appaerance: none;
    appearance: none; }
    .theme-light .select-field .select-control {
      background-color: #fff;
      border-color: #333333;
      color: #333333; }
    .theme-dark .select-field .select-control {
      background-color: #2D2D2D;
      border-color: #f5f5f7;
      color: #f5f5f7; }
    .theme-light .select-field .select-control:hover {
      background-color: #f0f0f0; }
    .theme-dark .select-field .select-control:hover {
      background-color: #444444; }
  .select-field label {
    color: #9e9e9e;
    position: absolute;
    top: 6px;
    left: 16px;
    right: auto;
    font-size: 1rem;
    font-weight: 400;
    cursor: text;
    -webkit-transition: color .2s ease-out, -webkit-transform .2s ease-out;
    transition: color .2s ease-out, -webkit-transform .2s ease-out;
    transition: transform .2s ease-out, color .2s ease-out;
    transition: transform .2s ease-out, color .2s ease-out, -webkit-transform .2s ease-out;
    -webkit-transform-origin: 0% 100%;
    transform-origin: 0% 100%;
    text-align: left;
    -webkit-transform: translateY(12px);
    transform: translateY(12px); }
  .select-field label:not(.label-icon).active {
    -webkit-transform: translateY(0px) scale(0.8);
    transform: translateY(0px) scale(0.8);
    -webkit-transform-origin: 0 0;
    transform-origin: 0 0; }
  .select-field select:not(.browser-default):focus:not([readonly]) {
    border-bottom: 2px solid #5390f4;
    -webkit-box-shadow: 0 1px 0 0 #5390f4;
    box-shadow: 0 1px 0 0 #5390f4; }
  .select-field select:not(.browser-default):focus:not([readonly]) + label {
    color: #5390f4; }

.select-menu {
  display: none; }

.select-menu.active {
  display: block; }

/*
 * Component: Dropdown menus top right
 * -------------------------
 */
.dropdown-menu {
  top: 100%;
  z-index: 1000;
  position: absolute;
  display: none;
  float: left;
  min-width: 10rem;
  padding: 15px 0;
  margin: 0.125rem 0 0;
  font-size: 1rem;
  text-align: left;
  list-style: none;
  background-clip: padding-box;
  border-radius: 15px;
  border-left: 1px solid;
  border-bottom: 1px solid; }
  .theme-light .dropdown-menu {
    background-color: #f5f6fa;
    color: #333333;
    border: 1px solid #eeeff1; }
  .theme-dark .dropdown-menu {
    background-color: #2D2D2D;
    color: #f5f5f7;
    border: 1px solid #444444; }

.open > .dropdown-menu {
  display: block; }

.dropdown-submenu {
  position: relative; }

.dropdown-submenu > .dropdown-menu {
  top: 0;
  margin-top: 0px;
  margin-left: 0px; }

.dropdown-submenu:hover > .dropdown-menu {
  display: block; }

.dropdown-item {
  display: block;
  width: 100%;
  padding: 0.5rem 1.75rem;
  clear: both;
  color: #212529;
  text-align: inherit;
  white-space: nowrap;
  background-color: transparent;
  border: 0;
  font-family: "Inter", "Montserrat", sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px; }
  .theme-light .dropdown-item {
    color: #333333; }
  .theme-dark .dropdown-item {
    color: #f5f5f7; }
  .theme-light .dropdown-item:hover {
    background-color: #e5e6eb;
    color: #333333; }
  .theme-dark .dropdown-item:hover {
    background-color: #151515;
    color: #f5f5f7; }

.dropdown-menu-left {
  left: 0;
  right: auto;
  position: absolute; }
  .theme-light .dropdown-menu-left {
    background-color: #f5f6fa;
    color: #333333; }
  .theme-dark .dropdown-menu-left {
    background-color: #2D2D2D;
    color: #f5f5f7; }

.dropdown-menu-right {
  left: auto;
  right: 0;
  position: absolute; }
  .theme-light .dropdown-menu-right {
    background-color: #f5f6fa;
    color: #333333; }
  .theme-dark .dropdown-menu-right {
    background-color: #2D2D2D;
    color: #f5f5f7; }
  .dropdown-menu-right .dropdown-menu-left {
    left: auto;
    right: 100%;
    position: absolute; }
    .theme-light .dropdown-menu-right .dropdown-menu-left {
      background-color: #f5f6fa;
      color: #333333; }
    .theme-dark .dropdown-menu-right .dropdown-menu-left {
      background-color: #2D2D2D;
      color: #f5f5f7; }
    .dropdown-menu-right .dropdown-menu-left .button {
      color: white; }

.navbar-nav > li > .dropdown-menu {
  margin: 0;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0; }

.dropdown-actions {
  color: #a9adb1;
  line-height: 31px;
  font-size: 1.5rem;
  cursor: pointer;
  transition: color .3s;
  margin: 0 2px;
  width: 30px;
  height: 30px;
  vertical-align: top;
  display: inline-block;
  text-align: center; }

/*
 * Component: Dropdown menus
 * -------------------------
 */
/*Dropdowns in general*/

.loader {
  position: absolute;  /* Change from fixed to absolute */
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  /* display: none; */
}

.loader-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--popup-overlay-bg);
  backdrop-filter: blur(4px);
}

.loader-content {
  align-items: center;
  background: color-mix(in srgb, var(--content-block-bg-color) 94%, transparent);
  border: 1px solid var(--input-border-color);
  border-radius: 14px;
  color: var(--main-text-color);
  box-shadow: 0 12px 34px color-mix(in srgb, #000 16%, transparent);
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: min(560px, calc(100vw - 2rem));
  min-width: min(360px, calc(100vw - 2rem));
  justify-content: center;
  left: 50%;
  min-height: 170px;
  padding: 26px 28px;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: max-content;
  z-index: 3;
}

.loader-headline {
  color: var(--main-text-color);
  font-size: 24px;
  font-weight: 700;
  margin: 0;
  max-width: 100%;
  text-align: center;
}

.loader-progress {
  background: color-mix(in srgb, var(--main-text-color) 18%, transparent);
  border-radius: 4px;
  height: 8px;
  margin-top: 12px;
  overflow: hidden;
  position: relative;
  width: min(338px, 100%);
  z-index: 2;
}

.loader-progress-indicator {
  background: var(--primary-button-bg-color);
  border-radius: 4px;
  height: 100%;
  left: 0;
  position: absolute;
  top: 0;
  transform: translateX(-100%);
  transform-origin: left;
  transition: transform 0.5s ease;
  width: 100%;
}

/*
 * Component: modal
 * ----------------
 */
.modal {
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(3px);
}

/* .modal_upload {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1050;
  display: none;
  overflow: hidden;
  -webkit-overflow-scrolling: touch;
  outline: 0;
}

.modal_upload .block {
  width: 400px;
  border-radius: 15px;
  box-shadow: 0 3px 20px 0px rgba(0, 0, 0, 0.1);
  -webkit-box-shadow: 0 3px 20px 0px rgba(0, 0, 0, 0.1);
  padding: 40px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.theme-light .modal_upload .block {
  background-color: #fff;
}

.theme-dark .modal_upload .block {
  background-color: #333;
} */

.modal-help {
  position: absolute;
  width: 40%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.modal-template {
  position: absolute;
  width: 50%;
  top: 50%;
  left: 50%;
  height:80vh;
  transform: translate(-50%, -50%);
}

@keyframes fadeInModal {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.modal-help .modal-content,
.modal-template .modal-content {
  border-radius: 15px;
  box-shadow: 0 11px 34px rgba(0,0,0,.16);
  -webkit-box-shadow: 0 11px 34px rgba(0,0,0,.16);
  transition: all 0.25s ease;
  animation: fadeInModal 0.3s ease-out;
}

.theme-light .modal-content {
  background-color: #fff;
  color: #000;
}

.theme-dark .modal-content {
  background-color: #333;
  color: #fff;
}

.modal-help .modal-header,
.modal-template .modal-header {
  padding: 15px 15px 15px 40px;
}

.theme-light .modal-header .close {
  color: #000;
  opacity: .5;
}

.theme-dark .modal-header .close {
  color: #fff;
  opacity: .5;
}

.modal-help .modal-title {
  font-size: 30px;
  font-weight: 700;
  position: absolute;
}

.modal-template .modal-title {
  font-size: 30px;
  font-weight: 700;
  position: absolute;
}

.modal-help .modal-body,
.modal-template .modal-body {
  padding: 0px 40px 40px 40px;
}

@media (min-width: 768px) {
  .modal-dialog {
    width: 80%; } }

.modal-content {
  border-radius: 0;
  -webkit-box-shadow: 0 2px 3px rgba(0, 0, 0, 0.125);
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.125);
  border: 0; }

.modal-template .modal-content {
  height: 100%;
}

.modal-template .modal-body {
  padding-bottom: 70px; 
  max-height: calc(80vh - 75px); 
  overflow-y: auto;
}

@media (min-width: 768px) {
  .modal-content {
    -webkit-box-shadow: 0 2px 3px rgba(0, 0, 0, 0.125);
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.125); } }

.modal-header {
  border-bottom-color: #f4f4f4; 
  border: none;
  display: flex;
  flex-direction: column;
}

.modal-header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.modal-footer {
  border-top-color: #f4f4f4; }

.modal-primary .modal-header,
.modal-primary .modal-footer {
  border-color: #307095; }

.modal-warning .modal-header,
.modal-warning .modal-footer {
  border-color: #c87f0a; }

.modal-info .modal-header,
.modal-info .modal-footer {
  border-color: #0097bc; }

.modal-success .modal-header,
.modal-success .modal-footer {
  border-color: #00733e; }

.modal-danger .modal-header,
.modal-danger .modal-footer {
  border-color: #c23321; }

.modal-with-preview {
  display: none;
  /* Hidden by default */
  position: fixed;
  /* Stay in place */
  z-index: 2000;
  /* Sit on top */
  left: 0;
  width: 100%;
  /* Full width */
  height: 100%;
  /* Full height */
  overflow: hidden;
  /* Enable scroll if needed */
  background-color: black;
  /* Fallback color */
  background-color: rgba(0, 0, 0, 0.8);
  /* Black w/ opacity */ }

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

.modal-with-preview .modal-dialog {
  position: relative;
  width: auto;
  margin: 0 !important; }

.modal-with-preview .modal-dialog-centered {
  min-height: 100%;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center; }

/* Modal Content */
.modal-with-preview .modal-content {
  padding: 0;
  width: 80%;
  margin: 0 auto; }

/* Modal Content/Box */
.modal-small {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 350px;
  /* Could be more or less, depending on screen size */ }

/* Modal Header */
.modal-with-preview .modal-header {
  height: 50px;
  background-color: #479da9;
  color: white;
  align-items: center;
  position: relative; }

.modal-title-bar {
  padding-top: 10px;
  margin: auto;
  text-align: center; }

/* Modal Body */
.modal-with-preview .modal-body {
  display: grid;
  grid-template-columns: 300px 1fr;
  text-align: center;
  height: 90vh; }

/* Modal Image */
.modal-image {
  padding: 15px; }

/* Modal Text */
.modal-text {
  padding: 30px 30px; }

.modal-text > p {
  text-align: left;
  text-transform: none; }

.modal-small-content {
  padding: 30px 30px 30px 30px;
  border-style: solid;
  border-width: 0px 1px 1px 1px;
  border-color: #fff; }
  .theme-light .modal-small-content {
    background-color: #f5f5f7;
    border-color: #fff; }
  .theme-dark .modal-small-content {
    background-color: #151515;
    border-color: #292929; }
  .theme-light .modal-small-content button {
    background-color: #fff; }
  .theme-dark .modal-small-content button {
    background-color: #2D2D2D; }

.shortcuts-container {
  padding: 10px;
}

.shortcut-group {
    margin-bottom: 20px;
}

.shortcut-group h4 {
    color: var(--main-text-color);
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 1px solid #eee;
    font-weight: 700;
    font-size: 16px;
}

.shortcut-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.shortcut-description {
    flex: 1;
    font-size: 14px;
}

.shortcut-keys {
    display: flex;
    align-items: center;
    gap: 4px;
}

.shortcut-key {
    display: inline-block;
    /* background-color: #f1f1f1; */
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 2px 8px;
    font-size: 12px;
    min-width: 20px;
    text-align: center;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.text-field-container {
  position: relative;
  margin-top: 1rem;
  margin-bottom: 1rem;
  width: 300px; }

.text-field-container.full {
  width: 100%; }

.text-field {
  border-radius: 4px 4px 0 0;
  position: relative;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  /* height: 56px; */
  overflow: hidden;
  margin-bottom: 5px; }
  /* .theme-light .text-field {
    background-color: #fff; }
  .theme-dark .text-field {
    background-color: #2D2D2D; }
  .theme-light .text-field:hover {
    background-color: #f0f0f0; }
  .theme-dark .text-field:hover {
    background-color: #444444; } */
  .text-field textarea:not(.browser-default),
  .text-field input[type=text]:not(.browser-default),
  .text-field input[type=email]:not(.browser-default),
  .text-field input[type=password]:not(.browser-default),
  .text-field input[type=number]:not(.browser-default) {
    background-color: transparent;
    border: none;
    border-bottom: 1px solid;
    border-radius: 0;
    outline: none;
    height: 56px;
    width: 100%;
    font-family: "Inter", "Montserrat", sans-serif;
    font-size: 16px;
    margin: 0;
    padding: 20px 16px 6px 16px;
    -webkit-box-shadow: none;
    box-shadow: none;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    -webkit-transition: border .3s, -webkit-box-shadow .3s;
    transition: border .3s, -webkit-box-shadow .3s;
    transition: box-shadow .3s, border .3s;
    transition: box-shadow .3s, border .3s, -webkit-box-shadow 3s; }
    .theme-light .text-field input:not(.browser-default) {
      background-color: #fff;
    }
    .theme-dark .text-field input:not(.browser-default) {
      background-color: #2D2D2D;
    }
    .theme-light .text-field input:not(.browser-default):hover {
      background-color: #f0f0f0;
    }
    .theme-dark .text-field input:not(.browser-default):hover {
      background-color: #444444;
    }
    .theme-light .text-field textarea:not(.browser-default), .theme-light .text-field input[type=text]:not(.browser-default), .theme-light .text-field input[type=email]:not(.browser-default), .theme-light .text-field input[type=password]:not(.browser-default), .theme-light .text-field input[type=number]:not(.browser-default) {
      border-color: #333333;
      color: #333333; }
    .theme-dark .text-field textarea:not(.browser-default), .theme-dark .text-field input[type=text]:not(.browser-default), .theme-dark .text-field input[type=email]:not(.browser-default), .theme-dark .text-field input[type=password]:not(.browser-default), .theme-dark .text-field input[type=number]:not(.browser-default) {
      border-color: #f5f5f7;
      color: #f5f5f7; }
  .text-field textarea:not(.browser-default):focus:not([readonly]),
  .text-field input[type=text]:not(.browser-default):focus:not([readonly]),
  .text-field input[type=email]:not(.browser-default):focus:not([readonly]),
  .text-field input[type=password]:not(.browser-default):focus:not([readonly]),
  .text-field input[type=number]:not(.browser-default):focus:not([readonly]) {
    border-bottom: 2px solid #5390f4 !important;
    -webkit-box-shadow: 0 1px 0 0 #5390f4 !important;
    box-shadow: 0 1px 0 0 #5390f4 !important; }
  .text-field textarea:not(.browser-default).validate + label,
  .text-field input[type=text]:not(.browser-default).validate + label,
  .text-field input[type=email]:not(.browser-default).validate + label,
  .text-field input[type=password]:not(.browser-default).validate + label,
  .text-field input[type=number]:not(.browser-default).validate + label {
    width: 100%; }
  .text-field textarea:not(.browser-default):focus:not([readonly]) + label,
  .text-field input[type=text]:not(.browser-default):focus:not([readonly]) + label,
  .text-field input[type=email]:not(.browser-default):focus:not([readonly]) + label,
  .text-field input[type=password]:not(.browser-default):focus:not([readonly]) + label,
  .text-field input[type=number]:not(.browser-default):focus:not([readonly]) + label {
    color: #5390f4;
    -webkit-transform: translateY(0px) scale(0.8);
    transform: translateY(0px) scale(0.8);
    -webkit-transform-origin: 0 0;
    transform-origin: 0 0; }
  .text-field textarea:not(.browser-default) + label:after,
  .text-field input[type=text]:not(.browser-default) + label:after,
  .text-field input[type=email]:not(.browser-default) + label:after,
  .text-field input[type=password]:not(.browser-default) + label:after,
  .text-field input[type=number]:not(.browser-default) + label:after {
    display: block;
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    opacity: 0;
    -webkit-transition: .2s opacity ease-out, .2s color ease-out;
    transition: .2s opacity ease-out, .2s color ease-out; }
  .theme-light .text-field textarea:not(.browser-default)[readonly], .theme-light .text-field input[type=text]:not(.browser-default)[readonly], .theme-light .text-field input[type=email]:not(.browser-default)[readonly], .theme-light .text-field input[type=password]:not(.browser-default)[readonly], .theme-light .text-field input[type=number]:not(.browser-default)[readonly] {
    background-color: #e5e6eb; }
  .theme-dark .text-field textarea:not(.browser-default)[readonly], .theme-dark .text-field input[type=text]:not(.browser-default)[readonly], .theme-dark .text-field input[type=email]:not(.browser-default)[readonly], .theme-dark .text-field input[type=password]:not(.browser-default)[readonly], .theme-dark .text-field input[type=number]:not(.browser-default)[readonly] {
    background-color: #e5e6eb; }
  .text-field label {
    color: #9e9e9e;
    position: absolute;
    top: 6px;
    left: 16px;
    right: auto;
    font-size: 1rem;
    font-weight: 400;
    cursor: text;
    -webkit-transition: color .2s ease-out, -webkit-transform .2s ease-out;
    transition: color .2s ease-out, -webkit-transform .2s ease-out;
    transition: transform .2s ease-out, color .2s ease-out;
    transition: transform .2s ease-out, color .2s ease-out, -webkit-transform .2s ease-out;
    -webkit-transform-origin: 0% 100%;
    transform-origin: 0% 100%;
    text-align: left;
    -webkit-transform: translateY(12px);
    transform: translateY(12px); }
  .text-field label:not(.label-icon).active {
    -webkit-transform: translateY(0px) scale(0.8);
    transform: translateY(0px) scale(0.8);
    -webkit-transform-origin: 0 0;
    transform-origin: 0 0; }

.text-field.textarea {
  height: auto; }

.text-field.invalid label {
  color: #5390f4; }

.text-field.invalid input[type=text]:not(.browser-default),
.text-field.invalid input[type=email]:not(.browser-default),
.text-field.invalid input[type=password]:not(.browser-default),
.text-field.invalid input[type=number]:not(.browser-default) {
  border-bottom: 2px solid #5390f4;
  -webkit-box-shadow: 0 1px 0 0 #5390f4;
  box-shadow: 0 1px 0 0 #5390f4; }

.text-field.invalid input[type=text]:not(.browser-default):focus:not([readonly]),
.text-field.invalid input[type=email]:not(.browser-default):focus:not([readonly]),
.text-field.invalid input[type=password]:not(.browser-default):focus:not([readonly]),
.text-field.invalid input[type=number]:not(.browser-default):focus:not([readonly]) {
  border-bottom: 2px solid #5390f4;
  -webkit-box-shadow: 0 1px 0 0 #5390f4;
  box-shadow: 0 1px 0 0 #5390f4; }

.text-field.invalid input[type=text]:not(.browser-default):focus:not([readonly]) + label,
.text-field.invalid input[type=email]:not(.browser-default):focus:not([readonly]) + label,
.text-field.invalid input[type=password]:not(.browser-default):focus:not([readonly]) + label,
.text-field.invalid input[type=number]:not(.browser-default):focus:not([readonly]) + label {
  color: #5390f4; }

.text-field-helper-text {
  position: relative;
  margin-left: 16px;
  margin-right: 16px;
  display: block;
  font-size: .75rem; }
  .theme-light .text-field-helper-text {
    color: #333333; }
  .theme-dark .text-field-helper-text {
    color: #f5f5f7; }

.text-field-helper-text.invalid {
  color: #5390f4; }

.text-field .form-text {
  font-size: .875em;
  color: var(--main-text-color);
  margin-top: .25rem;
}

.text-field .form-text a {
  color: var(--primary-button-bg-color);
  text-decoration: none;
}

.text-field .form-text a:hover {
  color: var(--primary-button-hover-bg-color); 
  text-decoration: underline;
}

.text-field input.is-invalid {
  border-color: rgb(220, 53, 69) !important;
  padding-right: calc(1.5em + .75rem);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right calc(.375em + .1875rem) center;
  background-size: calc(.75em + .375rem) calc(.75em + .375rem);
}

.text-field .invalid-feedback {
  width: 100%;
  margin-top: .25rem;
  font-size: .875em;
  color: rgb(220, 53, 69);
}

.search-form {
  border: none !important; }
  .theme-light .search-form {
    background-color: #fff; }
  .theme-dark .search-form {
    background-color: #2D2D2D; }
  .theme-light .search-form {
    color: #333333; }
  .theme-dark .search-form {
    color: #f5f5f7; }
  .search-form:focus {
    outline: none; }

/*
 * Component: Form
 * ---------------
 */
.form-control {
  border-radius: 0;
  box-shadow: none;
  border-color: #d2d6de;
  height: unset; }

.form-control:focus {
  border-color: #3c8dbc;
  box-shadow: none; }

.form-control::-moz-placeholder,
.form-control:-ms-input-placeholder,
.form-control::-webkit-input-placeholder {
  color: #bbb;
  opacity: 1; }

.form-control:not(select) {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none; }

input.form-control {
  padding: 12px;
  border: 1px solid #eeeff1; }

.form-group.has-success label {
  color: #00a65a; }

.form-group.has-success .form-control,
.form-group.has-success .input-group-addon {
  border-color: #00a65a;
  box-shadow: none; }

.form-group.has-success .help-block {
  color: #00a65a; }

.form-group.has-warning label {
  color: #f39c12; }

.form-group.has-warning .form-control,
.form-group.has-warning .input-group-addon {
  border-color: #f39c12;
  box-shadow: none; }

.form-group.has-warning .help-block {
  color: #f39c12; }

.form-group.has-error label {
  color: #dd4b39; }

.form-group.has-error .form-control,
.form-group.has-error .input-group-addon {
  border-color: #dd4b39;
  box-shadow: none; }

.form-group.has-error .help-block {
  color: #dd4b39; }

/* Input group */
.input-group .input-group-addon {
  border-radius: 0;
  border-color: #d2d6de;
  background-color: #fff; }

/* button groups */
.btn-group-vertical .btn.btn-flat:first-of-type,
.btn-group-vertical .btn.btn-flat:last-of-type {
  border-radius: 0; }

.icheck > label {
  padding-left: 0; }

/* support Font Awesome icons in form-control */
.form-control-feedback.fa {
  line-height: 34px; }

.input-lg + .form-control-feedback.fa,
.input-group-lg + .form-control-feedback.fa,
.form-group-lg .form-control + .form-control-feedback.fa {
  line-height: 46px; }

.input-sm + .form-control-feedback.fa,
.input-group-sm + .form-control-feedback.fa,
.form-group-sm .form-control + .form-control-feedback.fa {
  line-height: 30px; }

textarea {
  resize: none !important; }

select[multiple] {
  width: 100%;
  overflow: auto; }

.select2-dropdown {
  border-width: 1px;
  border-style: solid; }
  .theme-light .select2-dropdown {
    background-color: #fff; }
  .theme-dark .select2-dropdown {
    background-color: #2D2D2D; }
  .theme-light .select2-dropdown {
    border-color: #eeeff1; }
  .theme-dark .select2-dropdown {
    border-color: #444444; }

.theme-light .select2-container--default .select2-results__option[aria-selected=true] {
  background-color: #f5f5f7; }

.theme-dark .select2-container--default .select2-results__option[aria-selected=true] {
  background-color: #151515; }

.select2-container--default .select2-search--dropdown .select2-search__field {
  border-width: 1px;
  border-style: solid; }
  .theme-light .select2-container--default .select2-search--dropdown .select2-search__field {
    background-color: #f5f5f7; }
  .theme-dark .select2-container--default .select2-search--dropdown .select2-search__field {
    background-color: #151515; }
  .theme-light .select2-container--default .select2-search--dropdown .select2-search__field {
    border-color: #eeeff1; }
  .theme-dark .select2-container--default .select2-search--dropdown .select2-search__field {
    border-color: #444444; }

.email-field-input .select2-container--default .select2-selection--single {
  border-width: 1px;
  border-style: solid; }
  .theme-light .email-field-input .select2-container--default .select2-selection--single {
    background-color: #fff; }
  .theme-dark .email-field-input .select2-container--default .select2-selection--single {
    background-color: #2D2D2D; }
  .theme-light .email-field-input .select2-container--default .select2-selection--single {
    border-color: #eeeff1; }
  .theme-dark .email-field-input .select2-container--default .select2-selection--single {
    border-color: #444444; }
  .theme-light .email-field-input .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #333333; }
  .theme-dark .email-field-input .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #f5f5f7; }

.email-field-input .select2-container--default .select2-results > .select2-results__options {
  max-height: 300px !important; }

.email-field-input .select2-container--default.select2-container--focus .select2-selection--multiple.select2-blue {
  border: unset;
  outline: 0;
  border-radius: unset; }

.email-field-input .select2-container--default .select2-selection--multiple.select2-blue {
  border: unset;
  outline: 0;
  border-radius: unset;
  background-color: transparent; }

.email-field-input .select2-container--default .select2-selection.select2-blue .select2-selection__choice {
  border-radius: 11px;
  cursor: default;
  float: left;
  margin-right: 5px;
  margin-top: 5px;
  padding: 0 10px;
  border-width: 1px;
  border-style: solid;
  border-color: #5390f4;
  background: #5390f4;
  color: #fff;
  font-weight: 500; }

.email-field-input .select2-container--default .select2-selection.select2-blue .select2-selection__choice__remove {
  float: right;
  color: #fff;
  margin-left: 2px;
  margin-right: 0px; }

.select-field .select2-container--default .select2-selection--single {
  border-radius: 4px 4px 0 0;
  border: none;
  padding: unset;
  position: relative;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  height: 56px !important;
  overflow: hidden;
  margin-bottom: 5px; }
  .theme-light .select-field .select2-container--default .select2-selection--single {
    background-color: #fff; }
  .theme-dark .select-field .select2-container--default .select2-selection--single {
    background-color: #2D2D2D; }
  .theme-light .select-field .select2-container--default .select2-selection--single:hover {
    background-color: #f0f0f0; }
  .theme-dark .select-field .select2-container--default .select2-selection--single:hover {
    background-color: #444444; }
  .select-field .select2-container--default .select2-selection--single .select2-selection__rendered {
    margin-top: 0px;
    padding: 20px 52px 4px 16px;
    font-family: "Inter", "Montserrat", sans-serif;
    font-size: 1rem;
    box-sizing: border-box;
    width: 100%;
    height: 56px;
    border: none;
    border-radius: 0;
    border-bottom: 1px solid;
    outline: none;
    white-space: nowrap;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appaerance: none;
    appearance: none; }
    .theme-light .select-field .select2-container--default .select2-selection--single .select2-selection__rendered {
      background-color: #fff;
      border-color: #333333;
      color: #333333; }
    .theme-dark .select-field .select2-container--default .select2-selection--single .select2-selection__rendered {
      background-color: #2D2D2D;
      border-color: #f5f5f7;
      color: #f5f5f7; }
    .theme-light .select-field .select2-container--default .select2-selection--single .select2-selection__rendered:hover {
      background-color: #f0f0f0; }
    .theme-dark .select-field .select2-container--default .select2-selection--single .select2-selection__rendered:hover {
      background-color: #444444; }
  .select-field .select2-container--default .select2-selection--single .select2-selection__arrow {
    display: none; }

.slider {
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  background: #D2D2D2;
  outline: none;
  opacity: 0.7; }

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: white;
  cursor: pointer;
  -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4); }

.slider::-moz-range-thumb {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: white;
  cursor: pointer; }

.slider-style {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  height: 50px;
  border-radius: 5px;
  padding: 7px 15px 7px 15px; }
  .theme-light .slider-style {
    background-color: #f5f6fa;
    color: #333333;
    border: 1px solid #eeeff1; }
  .theme-dark .slider-style {
    background-color: #141414;
    color: #f5f5f7;
    border: 1px solid #444444; }

.slider-style .title {
  flex: 0.5; }

.slider-style .rangeslider {
  flex: auto;
  margin-top: 3px; }

.slider-style .percentage_value {
  flex: 0.3;
  text-align: right; }

div.rangeslider {
  box-sizing: content-box;
  height: 2em;
  position: relative; }

div.rangeslider * {
  box-sizing: content-box; }

div.rangeslider div {
  position: absolute; }

div.rangeslider .rangeouter, div.rangeslider .rangeinner {
  height: 0.3em;
  margin: 0.75em 0; }

div.rangeslider .rangeouter {
  width: 100%;
  opacity: 0.7; }
  .theme-light div.rangeslider .rangeouter {
    background-color: #e5e6eb; }
  .theme-dark div.rangeslider .rangeouter {
    background-color: #4D4D4D; }

div.rangeslider .rangeinner {
  width: 5em; }
  .theme-light div.rangeslider .rangeinner {
    background-color: #141414; }
  .theme-dark div.rangeslider .rangeinner {
    background-color: #f5f6fa; }

div.rangeslider .rangeselector {
  margin-left: -0.9em;
  border-radius: 1.5em;
  height: 1.5em;
  width: 1.5em;
  top: 1.5px;
  -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4); }
  .theme-light div.rangeslider .rangeselector {
    background-color: #141414; }
  .theme-dark div.rangeslider .rangeselector {
    background-color: #f5f6fa; }

div.rangeslider.disabled .rangeinner, div.rangeslider.disabled .rangeselector {
  background-color: #777 !important; }

/* Colour Animations */
div.rangeslider .rangeouter, div.rangeslider .rangeinner, div.rangeslider .rangeselector {
  -webkit-transition: background-color 200ms linear;
  -moz-transition: background-color 200ms linear;
  -o-transition: background-color 200ms linear;
  -ms-transition: background-color 200ms linear;
  transition: background-color 200ms linear; }

.ui-slider-handle {
  display: none; }

.pace {
  -webkit-pointer-events: none;
  pointer-events: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none; }

.pace-inactive {
  display: none; }

.pace .pace-progress {
  background: #2ba8c2;
  position: fixed;
  z-index: 2000;
  top: 2.7rem;
  right: 100%;
  width: 100%;
  height: 4px; }

/*
 * Component: Small Box
 * --------------------
 */
.small-box {
  border-radius: 2px;
  position: relative;
  display: block;
  margin-bottom: 20px;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1); }

.small-box > .inner {
  padding: 10px; }

.small-box > .small-box-footer {
  position: relative;
  text-align: center;
  padding: 3px 0;
  color: #fff;
  color: rgba(255, 255, 255, 0.8);
  display: block;
  z-index: 10;
  background: rgba(0, 0, 0, 0.1);
  text-decoration: none; }

.small-box > .small-box-footer:hover {
  color: #fff;
  background: rgba(0, 0, 0, 0.15); }

.small-box h3 {
  font-size: 38px;
  font-weight: bold;
  margin: 0 0 10px 0;
  white-space: nowrap;
  padding: 0; }

.small-box p {
  font-size: 15px; }

.small-box p > small {
  display: block;
  color: #f9f9f9;
  font-size: 13px;
  margin-top: 5px; }

.small-box h3,
.small-box p {
  z-index: 5; }

.small-box .icon {
  -webkit-transition: all 0.3s linear;
  -o-transition: all 0.3s linear;
  transition: all 0.3s linear;
  position: absolute;
  top: -10px;
  right: 10px;
  z-index: 0;
  font-size: 90px;
  color: rgba(0, 0, 0, 0.15); }

.small-box:hover {
  text-decoration: none;
  color: #f9f9f9; }

.small-box:hover .icon {
  font-size: 95px; }

@media (max-width: 767px) {
  .small-box {
    text-align: center; }
  .small-box .icon {
    display: none; }
  .small-box p {
    font-size: 12px; } }

/*
 * Component: Box
 * --------------
 */
.box {
  position: relative;
  border-radius: 15px;
  margin-bottom: 20px;
  width: 100%;
  box-shadow: 0 2px 2px rgba(0, 0, 0, 0.1); }
  .theme-light .box {
    background-color: #fff; }
  .theme-dark .box {
    background-color: #2D2D2D; }
  .theme-light .box {
    border-color: #eeeff1; }
  .theme-dark .box {
    border-color: #444444; }

.theme-light .box.box-primary {
  border-color: #eeeff1; }

.theme-dark .box.box-primary {
  border-color: #444444; }

.box.box-info {
  border-top-color: #00c0ef; }

.box.box-danger {
  border-top-color: #dd4b39; }

.box.box-warning {
  border-top-color: #f39c12; }

.box.box-success {
  border-top-color: #00a65a; }

.box.box-default {
  border-top-color: #d2d6de; }

.box.collapsed-box .box-body,
.box.collapsed-box .box-footer {
  display: none; }

.box .nav-stacked > li {
  border-bottom: 1px solid #f4f4f4;
  margin: 0; }

.box .nav-stacked > li:last-of-type {
  border-bottom: none; }

.box.height-control .box-body {
  max-height: 300px;
  overflow: auto; }

.box .border-right {
  border-right: 1px solid #f4f4f4; }

.box .border-left {
  border-left: 1px solid #f4f4f4; }

.box.box-solid {
  border-top: 0; }

.box.box-solid > .box-header .btn.btn-default {
  background: transparent; }

.box.box-solid > .box-header .btn:hover,
.box.box-solid > .box-header a:hover {
  background: rgba(0, 0, 0, 0.1); }

.box.box-solid.box-default {
  border: 1px solid #d2d6de; }

.box.box-solid.box-default > .box-header {
  color: #444444;
  background: #d2d6de;
  background-color: #d2d6de; }

.box.box-solid.box-default > .box-header a,
.box.box-solid.box-default > .box-header .btn {
  color: #444444; }

.box.box-solid.box-primary {
  border: 1px solid #3c8dbc; }

.box.box-solid.box-primary > .box-header {
  color: #ffffff;
  background: #3c8dbc;
  background-color: #3c8dbc; }

.box.box-solid.box-primary > .box-header a,
.box.box-solid.box-primary > .box-header .btn {
  color: #ffffff; }

.box.box-solid.box-info {
  border: 1px solid #00c0ef; }

.box.box-solid.box-info > .box-header {
  color: #ffffff;
  background: #00c0ef;
  background-color: #00c0ef; }

.box.box-solid.box-info > .box-header a,
.box.box-solid.box-info > .box-header .btn {
  color: #ffffff; }

.box.box-solid.box-danger {
  border: 1px solid #dd4b39; }

.box.box-solid.box-danger > .box-header {
  color: #ffffff;
  background: #dd4b39;
  background-color: #dd4b39; }

.box.box-solid.box-danger > .box-header a,
.box.box-solid.box-danger > .box-header .btn {
  color: #ffffff; }

.box.box-solid.box-warning {
  border: 1px solid #f39c12; }

.box.box-solid.box-warning > .box-header {
  color: #ffffff;
  background: #f39c12;
  background-color: #f39c12; }

.box.box-solid.box-warning > .box-header a,
.box.box-solid.box-warning > .box-header .btn {
  color: #ffffff; }

.box.box-solid.box-success {
  border: 1px solid #00a65a; }

.box.box-solid.box-success > .box-header {
  color: #ffffff;
  background: #00a65a;
  background-color: #00a65a; }

.box.box-solid.box-success > .box-header a,
.box.box-solid.box-success > .box-header .btn {
  color: #ffffff; }

.box.box-solid > .box-header > .box-tools .btn {
  border: 0;
  box-shadow: none; }

.box.box-solid[class*='bg'] > .box-header {
  color: #fff; }

.box .box-group > .box {
  margin-bottom: 5px; }

.box .knob-label {
  text-align: center;
  color: #333;
  font-weight: 100;
  font-size: 12px;
  margin-bottom: 0.3em; }

.box > .overlay,
.overlay-wrapper > .overlay,
.box > .loading-img,
.overlay-wrapper > .loading-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%; }

.box .overlay,
.overlay-wrapper .overlay {
  z-index: 50;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 3px; }

.box .overlay > .fa,
.overlay-wrapper .overlay > .fa,
.box .overlay > .overlay-spinner,
.overlay-wrapper .overlay > .overlay-spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  margin-left: -15px;
  margin-top: -15px;
  color: #000;
  font-size: 30px; }

.box .overlay > .overlay-spinner,
.overlay-wrapper .overlay > .overlay-spinner {
  width: 30px;
  height: 30px;
  border: 3px solid color-mix(in srgb, currentColor 20%, transparent);
  border-top-color: currentColor;
  border-radius: 999px;
  animation: overlay-spinner-rotate 0.8s linear infinite;
}

@keyframes overlay-spinner-rotate {
  to {
    transform: rotate(360deg);
  }
}

.box .overlay.dark,
.overlay-wrapper .overlay.dark {
  background: rgba(0, 0, 0, 0.5); }

.box-header:before,
.box-body:before,
.box-footer:before,
.box-header:after,
.box-body:after,
.box-footer:after {
  content: " ";
  display: table; }

.box-header:after,
.box-body:after,
.box-footer:after {
  clear: both; }

.box-header {
  color: #333;
  display: block;
  padding: 20px;
  position: relative; }

.box-header.with-border {
  border-bottom-style: solid;
  border-bottom-width: 1px; }
  .theme-light .box-header.with-border {
    border-color: #eeeff1; }
  .theme-dark .box-header.with-border {
    border-color: #444444; }

.collapsed-box .box-header.with-border {
  border-bottom: none; }

.box-header > .fa,
.box-header > .glyphicon,
.box-header > .ion,
.box-header .box-title {
  display: inline-block;
  font-size: 18px;
  margin: 0;
  line-height: 1; }

.box-header > .fa,
.box-header > .glyphicon,
.box-header > .ion {
  margin-right: 5px; }

.box-header > .box-tools {
  position: absolute;
  right: 10px;
  top: 5px; }

.box-header > .box-tools [data-toggle="tooltip"] {
  position: relative; }

.box-header > .box-tools.pull-right .dropdown-menu {
  right: 0;
  left: auto; }

.box-header > .box-tools .dropdown-menu > li > a {
  color: #444 !important; }

.btn-box-tool {
  padding: 5px;
  font-size: 12px;
  background: transparent;
  color: #97a0b3; }

.open .btn-box-tool,
.btn-box-tool:hover {
  color: #606c84; }

.btn-box-tool.btn:active {
  box-shadow: none; }

.box-body {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  border-bottom-right-radius: 3px;
  border-bottom-left-radius: 3px;
  padding: 20px; }

.no-header .box-body {
  border-top-right-radius: 3px;
  border-top-left-radius: 3px; }

.box-body > .table {
  margin-bottom: 0; }

.box-body .fc {
  margin-top: 5px; }

.box-body .full-width-chart {
  margin: -19px; }

.box-body.no-padding .full-width-chart {
  margin: -9px; }

.box-body .box-pane {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 3px; }

.box-body .box-pane-right {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  border-bottom-right-radius: 3px;
  border-bottom-left-radius: 0; }

.box-footer {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  border-bottom-right-radius: 3px;
  border-bottom-left-radius: 3px;
  border-top: 1px solid #f4f4f4;
  padding: 10px;
  background-color: transparent; }

.chart-legend {
  margin: 10px 0; }

@media (max-width: 991px) {
  .chart-legend > li {
    float: left;
    margin-right: 10px; } }

.box-comments {
  background: #f7f7f7; }

.box-comments .box-comment {
  padding: 8px 0;
  border-bottom: 1px solid #eee; }

.box-comments .box-comment:before,
.box-comments .box-comment:after {
  content: " ";
  display: table; }

.box-comments .box-comment:after {
  clear: both; }

.box-comments .box-comment:last-of-type {
  border-bottom: 0; }

.box-comments .box-comment:first-of-type {
  padding-top: 0; }

.box-comments .box-comment img {
  float: left; }

.box-comments .comment-text {
  margin-left: 40px;
  color: #555; }

.box-comments .username {
  color: #444;
  display: block;
  font-weight: 600; }

.box-comments .muted-foreground {
  font-weight: 400;
  font-size: 12px; }

/* Widget: TODO LIST */
.todo-list {
  margin: 0;
  padding: 0;
  list-style: none;
  overflow: auto; }

.todo-list > li {
  border-radius: 2px;
  padding: 10px;
  background: #f4f4f4;
  margin-bottom: 2px;
  border-left: 2px solid #e6e7e8;
  color: #444; }

.todo-list > li:last-of-type {
  margin-bottom: 0; }

.todo-list > li > input[type='checkbox'] {
  margin: 0 10px 0 5px; }

.todo-list > li .text {
  display: inline-block;
  margin-left: 5px;
  font-weight: 600; }

.todo-list > li .label {
  margin-left: 10px;
  font-size: 9px; }

.todo-list > li .tools {
  display: none;
  float: right;
  color: #dd4b39; }

.todo-list > li .tools > .fa,
.todo-list > li .tools > .glyphicon,
.todo-list > li .tools > .ion {
  margin-right: 5px;
  cursor: pointer; }

.todo-list > li:hover .tools {
  display: inline-block; }

.todo-list > li.done {
  color: #999; }

.todo-list > li.done .text {
  text-decoration: line-through;
  font-weight: 500; }

.todo-list > li.done .label {
  background: #d2d6de !important; }

.todo-list .danger {
  border-left-color: #dd4b39; }

.todo-list .warning {
  border-left-color: #f39c12; }

.todo-list .info {
  border-left-color: #00c0ef; }

.todo-list .success {
  border-left-color: #00a65a; }

.todo-list .primary {
  border-left-color: #3c8dbc; }

.todo-list .handle {
  display: inline-block;
  cursor: move;
  margin: 0 5px; }

/* Chat widget (DEPRECATED - this will be removed in the next major release. Use Direct Chat instead)*/
.chat {
  padding: 5px 20px 5px 10px; }

.chat .item {
  margin-bottom: 10px; }

.chat .item:before,
.chat .item:after {
  content: " ";
  display: table; }

.chat .item:after {
  clear: both; }

.chat .item > img {
  width: 40px;
  height: 40px;
  border: 2px solid transparent;
  border-radius: 50%; }

.chat .item > .online {
  border: 2px solid #00a65a; }

.chat .item > .offline {
  border: 2px solid #dd4b39; }

.chat .item > .message {
  margin-left: 55px;
  margin-top: -40px; }

.chat .item > .message > .name {
  display: block;
  font-weight: 600; }

.chat .item > .attachment {
  border-radius: 3px;
  background: #f4f4f4;
  margin-left: 65px;
  margin-right: 15px;
  padding: 10px; }

.chat .item > .attachment > h4 {
  margin: 0 0 5px 0;
  font-weight: 600;
  font-size: 14px; }

.chat .item > .attachment > p,
.chat .item > .attachment > .filename {
  font-weight: 600;
  font-size: 13px;
  font-style: italic;
  margin: 0; }

.chat .item > .attachment:before,
.chat .item > .attachment:after {
  content: " ";
  display: table; }

.chat .item > .attachment:after {
  clear: both; }

.box-input {
  max-width: 200px; }

.modal .panel-body {
  color: #444; }

/*
 * Component: Info Box
 * -------------------
 */
.info-box {
  display: block;
  min-height: 90px;
  background: #fff;
  width: 100%;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
  border-radius: 2px;
  margin-bottom: 15px; }

.info-box small {
  font-size: 14px; }

.info-box .progress {
  background: rgba(0, 0, 0, 0.2);
  margin: 5px -10px 5px -10px;
  height: 2px; }

.info-box .progress,
.info-box .progress .progress-bar {
  border-radius: 0; }

.info-box .progress .progress-bar {
  background: #fff; }

.info-box-icon {
  border-top-left-radius: 2px;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 2px;
  display: block;
  float: left;
  height: 90px;
  width: 90px;
  text-align: center;
  font-size: 45px;
  line-height: 90px;
  background: rgba(0, 0, 0, 0.2); }

.info-box-icon > img {
  max-width: 100%; }

.info-box-content {
  padding: 5px 10px;
  margin-left: 90px; }

.info-box-number {
  display: block;
  font-weight: bold;
  font-size: 18px; }

.progress-description,
.info-box-text {
  display: block;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis; }

.info-box-text {
  text-transform: uppercase; }

.info-box-more {
  display: block; }

.progress-description {
  margin: 0; }

.dashboard-item {
  position: relative;
  height: 100%;
  padding: 10px; }
  .dashboard-item .widget {
    height: 100%;
    padding: 10px;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
    border-radius: 15px; }
    .theme-light .dashboard-item .widget {
      background-color: #fff; }
    .theme-dark .dashboard-item .widget {
      background-color: #2D2D2D; }
    .dashboard-item .widget .widget-header .widget-title {
      font-size: 21px;
      font-weight: 500;
      padding: 0 20px;
      margin: 10px 0;
      float: left; }
      .theme-light .dashboard-item .widget .widget-header .widget-title {
        color: #405169; }
      .theme-dark .dashboard-item .widget .widget-header .widget-title {
        color: #f5f5f7; }
    .dashboard-item .widget .widget-body {
      position: absolute;
      top: calc(20px + 1em + 10px + 20px);
      right: 30px;
      bottom: 20px;
      left: 30px; }
      .dashboard-item .widget .widget-body .widget-info {
        position: absolute;
        top: 43%;
        left: 50%;
        display: inline-block;
        padding: 0;
        -webkit-transform: translate(-50%, -50%);
        transform: translate(-50%, -50%);
        text-align: center; }
        .dashboard-item .widget .widget-body .widget-info .widget-info-value {
          font-size: 20px;
          font-weight: 500;
          line-height: 1.35;
          white-space: nowrap; }
          .theme-light .dashboard-item .widget .widget-body .widget-info .widget-info-value {
            color: #405169; }
          .theme-dark .dashboard-item .widget .widget-body .widget-info .widget-info-value {
            color: #f5f5f7; }
    .dashboard-item .widget .widget-content {
      padding: 30px; }
      .dashboard-item .widget .widget-content .widget-grid-half-2 {
        display: grid;
        grid-template-columns: .5fr 2fr; }
      .dashboard-item .widget .widget-content .widget-grid-1-1 {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-gap: 10px; }
      .dashboard-item .widget .widget-content .widget-grid-1-1-half {
        display: grid;
        grid-template-columns: 1fr 1fr .5fr; }
      .dashboard-item .widget .widget-content .widget-grid-block {
        position: relative; }
      .dashboard-item .widget .widget-content .widget-grid-table table {
        width: 100%; }
      .dashboard-item .widget .widget-content .widget-grid-table tr {
        background-color: unset;
        height: 1.5vw; }
      .dashboard-item .widget .widget-content .widget-grid-table td.align-right {
        padding-right: 5px;
        text-align: right; }
      .dashboard-item .widget .widget-content .margin-top {
        margin-top: 20px; }
      .dashboard-item .widget .widget-content .margin-bottom {
        margin-bottom: 20px; }
      .dashboard-item .widget .widget-content .widget-text-data-title {
        font-size: .8vw;
        font-weight: 900;
        color: #405169; }
      .dashboard-item .widget .widget-content .widget-text-data-value {
        font-size: 1.2vw;
        font-weight: 900; }
        .dashboard-item .widget .widget-content .widget-text-data-value.light-green {
          color: #7eab55; }
        .dashboard-item .widget .widget-content .widget-text-data-value.green {
          color: #388659; }
        .dashboard-item .widget .widget-content .widget-text-data-value.blue {
          color: #618eec; }
        .dashboard-item .widget .widget-content .widget-text-data-value.purple {
          color: #977ab8; }
      .dashboard-item .widget .widget-content .widget-text-data-unit {
        font-size: .8vw;
        font-weight: 900;
        color: #b7b7b7;
        display: inline-block;
        width: 100%; }
    .dashboard-item .widget .widget-info {
      position: absolute;
      top: 50%;
      left: 50%;
      display: inline-block;
      padding: 0;
      -webkit-transform: translate(-50%, -50%);
      transform: translate(-50%, -50%);
      text-align: center; }
      .dashboard-item .widget .widget-info .widget-info-value {
        font-size: 34px;
        font-weight: 500;
        line-height: 1.35;
        white-space: nowrap; }
        .theme-light .dashboard-item .widget .widget-info .widget-info-value {
          color: #405169; }
        .theme-dark .dashboard-item .widget .widget-info .widget-info-value {
          color: #f5f5f7; }
      .dashboard-item .widget .widget-info .widget-info-label {
        font-size: 14px;
        font-weight: 500;
        margin-top: 6px; }
        .theme-light .dashboard-item .widget .widget-info .widget-info-label {
          color: #768191; }
        .theme-dark .dashboard-item .widget .widget-info .widget-info-label {
          color: #606060; }
      .dashboard-item .widget .widget-info .widget-info-small {
        font-size: 14px; }

.dashboard-item-width-2 {
  width: 20%;
  float: left; }
  @media (min-width: 768px) and (max-width: 992px) {
    .dashboard-item-width-2 {
      width: 100%; } }
  @media (max-width: 767px) {
    .dashboard-item-width-2 {
      width: 100%; } }
.dashboard-item-width-25 {
  width: 25%;
  float: left; }
  @media (min-width: 768px) and (max-width: 992px) {
    .dashboard-item-width-25 {
      width: 100%; } }
  @media (max-width: 767px) {
    .dashboard-item-width-25 {
      width: 100%; } }
.dashboard-item-width-3 {
  width: 30%;
  float: left; }
  @media (min-width: 768px) and (max-width: 992px) {
    .dashboard-item-width-3 {
      width: 100%; } }
  @media (max-width: 767px) {
    .dashboard-item-width-3 {
      width: 100%; } }
.dashboard-item-width-4 {
  width: 40%;
  float: left; }
  @media (min-width: 768px) and (max-width: 992px) {
    .dashboard-item-width-4 {
      width: 100%; } }
  @media (max-width: 767px) {
    .dashboard-item-width-4 {
      width: 100%; } }
.dashboard-item-width-5 {
  width: 50%;
  float: left; }
  @media (min-width: 768px) and (max-width: 992px) {
    .dashboard-item-width-5 {
      width: 100%; } }
  @media (max-width: 767px) {
    .dashboard-item-width-5 {
      width: 100%; } }
.dashboard-item-width-6 {
  width: 60%;
  float: left; }
  @media (min-width: 768px) and (max-width: 992px) {
    .dashboard-item-width-6 {
      width: 100%; } }
  @media (max-width: 767px) {
    .dashboard-item-width-6 {
      width: 100%; } }
.dashboard-item-height-2 {
  height: 200px; }

.dashboard-item-height-3 {
  height: 300px; }

.dashboard-item-height-4 {
  height: 400px; }

.grid-list-main {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* Four items per row */
  gap: 20px; }

.grid-list-item {
  border-radius: 15px;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
  height: 355px;
  transition: all 0.3s ease-out; }
  .theme-light .grid-list-item {
    background-color: #fff; }
  .theme-dark .grid-list-item {
    background-color: #2D2D2D; }

.grid-list-item:hover {
  transform: translateY(-5px) scale(1.03) translateZ(0);
  cursor: pointer; }

.grid-list-image-container {
    display: flex;
    justify-content: center;
    padding: 10px;
}

.grid-list-image {
    height: 250px;
    max-width: 100%;
    display: block;
}

.grid-list-details {
    height: 85px;
    padding: 10px 40px;
}

.grid-list-title {
    font-size: 12px;
    font-weight: 900;
    margin: 0;
    margin-bottom: 5px;
    padding: 0;
}

.grid-list-info {
    font-size: 14px;
    font-weight: 900;
    margin: 0;
    padding: 0;
}

.grid-list-info-value {
  font-size: 14px;
  font-weight: 900;
  margin: 0;
  padding: 0;
  color: #b7b7b7;
}

.grid-list-info + .grid-list-info,
.grid-list-info-value + .grid-list-info-value {
    margin-top: 5px;
}

.grid-list-item-left {
    float: left;
    width: 100%;
}

.grid-list-item-right {
    text-align: right;
    float: right;
}

.grid-list-item-right-margin {
    margin-left: 5px;
}

.chocolate-type-bottom {
  text-transform: uppercase;
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  height: 40px;
  width: 100%;
  border-radius: 0px 0px 15px 15px;
  padding: 8px 20px;
  display: inline-block; }

.chocolate-type-top {
  text-transform: uppercase;
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  height: 40px;
  width: 100%;
  border-radius: 15px 15px 0px 0px;
  padding: 8px 20px;
  display: inline-block; }

.chocolate-type-bottom.dark,
.chocolate-type-top.dark {
  background-color: #502E15;
  color: #c79571; }

.chocolate-type-bottom.milk,
.chocolate-type-top.milk {
  background-color: #8C5A3F;
  color: #f1a881; }

.chocolate-type-bottom.white,
.chocolate-type-top.white {
  background-color: #FFEECC;
  color: #ac9a68; }

.chocolate-type-bottom.ruby,
.chocolate-type-top.ruby {
  background-color: #ffccfc;
  color: #ac538e; }

.kanban {
  min-height: 79vh; }

.kanban-column {
  width: 25%;
  height: 100%;
  position: relative;
  float: left;
  padding: 10px;
  display: inline-block; }

.kanban-column-body {
  position: relative; }

.kanban-column-title {
  font-size: 21px;
  font-weight: 500;
  padding: 20px 28px; }
  .theme-light .kanban-column-title {
    color: #405169; }
  .theme-dark .kanban-column-title {
    color: #f5f5f7; }

.kanban-column-scroll {
  max-height: 68vh;
  overflow-y: auto; }

.kanban-column-content {
  min-height: 62px;
  padding: 5px; }

.kanban-column-content.hover {
  background-color: #c4cad6;
  border-radius: 12px; }

.kanban-column-empty {
  display: none;
  position: absolute;
  top: 70px;
  right: 0;
  left: 0;
  color: #768191;
  font-size: 18px;
  text-align: center;
  border-radius: 6px;
  padding: 20px;
  margin: 10px;
  pointer-events: none;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important; }
  .theme-light .kanban-column-empty {
    background-color: #fff; }
  .theme-dark .kanban-column-empty {
    background-color: #2D2D2D; }

.kanban-column-footer {
  padding: 4px 0 14px 0; }

.kanban-column-item {
  padding: 5px; }

.kanban-item {
  display: block;
  border-radius: 6px;
  padding: 20px;
  transition: opacity 0.3s ease;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important; }
  .theme-light .kanban-item {
    background-color: #fff; }
  .theme-dark .kanban-item {
    background-color: #2D2D2D; }

.kanban-item-date {
  color: #9FA9BA;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.22;
  float: right;
  margin-top: 6px; }

.kanban-item-title {
  color: #768191;
  font-size: 18px;
  line-height: 1.22;
  overflow: hidden;
  text-overflow: ellipsis; }

.kanban-item-subtitle {
  color: #9FA9BA;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.22;
  margin-top: 12px; }

.email-folder-column {
  width: 15%;
  height: calc(100vh - 51px);
  position: relative;
  float: left;
  display: inline-block;
  border-right-width: 1px;
  border-right-style: solid; }
  .theme-light .email-folder-column {
    border-color: #eeeff1; }
  .theme-dark .email-folder-column {
    border-color: #444444; }
  .theme-light .email-folder-column {
    background-color: #f5f5f7; }
  .theme-dark .email-folder-column {
    background-color: #151515; }

.email-folder-messages {
  height: 50px;
  padding: 10px 20px;
  border-bottom-width: 1px;
  border-bottom-style: solid; }
  .theme-light .email-folder-messages {
    border-color: #eeeff1; }
  .theme-dark .email-folder-messages {
    border-color: #444444; }
  .email-folder-messages span {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .05em;
    float: left;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%; }
    .theme-light .email-folder-messages span {
      color: #333333; }
    .theme-dark .email-folder-messages span {
      color: #f5f5f7; }
  .email-folder-messages .email-new-message {
    height: 30px;
    float: right; }
    .email-folder-messages .email-new-message .btn-action {
      display: inline-block;
      padding: 0px 12px;
      margin-bottom: 0;
      font-size: 14px;
      font-weight: 400;
      text-align: center;
      white-space: nowrap;
      vertical-align: middle;
      cursor: pointer;
      border: 1px solid transparent;
      border-radius: 5px;
      position: relative;
      float: left;
      height: 100%; }
    .theme-light .email-folder-messages .email-new-message .btn-default {
      background-color: #fff; }
    .theme-dark .email-folder-messages .email-new-message .btn-default {
      background-color: #2D2D2D; }
    .theme-light .email-folder-messages .email-new-message .btn-default {
      color: #333333; }
    .theme-dark .email-folder-messages .email-new-message .btn-default {
      color: #f5f5f7; }
    .theme-light .email-folder-messages .email-new-message .btn-default {
      border-color: #eeeff1; }
    .theme-dark .email-folder-messages .email-new-message .btn-default {
      border-color: #444444; }

.email-search-messages {
  padding: 10px 20px; }
  .theme-light .email-search-messages {
    background-color: #fff; }
  .theme-dark .email-search-messages {
    background-color: #2D2D2D; }
  .email-search-messages .fa {
    color: #7F8FA4;
    margin-right: 5px; }
  .email-search-messages .search-form {
    background-color: transparent; }
  .email-search-messages .search-form::placeholder {
    color: #7F8FA4; }

.email-folder-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 77%;
  overflow: auto;
  border-bottom-width: 1px;
  border-bottom-style: solid; }
  .theme-light .email-folder-menu {
    border-color: #eeeff1; }
  .theme-dark .email-folder-menu {
    border-color: #444444; }

.email-folder-title {
  padding: 10px 15px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .05em;
  margin: 0; }
  .theme-light .email-folder-title {
    color: #333333; }
  .theme-dark .email-folder-title {
    color: #f5f5f7; }

.email-folder-labels {
  height: calc(100vh - 475px); }

.email-folder-menu > li {
  position: relative;
  margin: 0;
  padding: 0;
  list-style-type: none; }

.email-folder-menu > li > a {
  margin-right: 0;
  padding: 10px 20px;
  position: relative;
  display: block;
  color: #c4cad6; }
  .email-folder-menu > li > a span {
    color: #7F8FA4;
    font-weight: 500; }

.email-folder-menu > li > a > .fa {
  width: 20px;
  font-size: 16px;
  margin-right: 10px; }

.email-folder-menu > li:hover > a,
.email-folder-menu > li.active > a,
.email-folder-menu > li.menu-open > a {
  color: #5390f4;
  border-right: 2px solid #5390f4; }
  .theme-light .email-folder-menu > li:hover > a, .theme-light .email-folder-menu > li.active > a, .theme-light .email-folder-menu > li.menu-open > a {
    background-color: #f5f5f7; }
  .theme-dark .email-folder-menu > li:hover > a, .theme-dark .email-folder-menu > li.active > a, .theme-dark .email-folder-menu > li.menu-open > a {
    background-color: #151515; }
  .email-folder-menu > li:hover > a span,
  .email-folder-menu > li.active > a span,
  .email-folder-menu > li.menu-open > a span {
    color: #5390f4; }

.email-folder-stat-count {
  font-size: .8em;
  background-color: #a0bce4;
  color: #fff;
  border-radius: 15px;
  position: relative;
  display: inline-block;
  padding: 0 8px;
  line-height: 16px;
  height: 100%;
  float: right;
  margin-top: 2px; }

.email-folder-accounts {
  position: absolute;
  padding-bottom: 10px;
  bottom: 0px;
  width: 100%; }
  .email-folder-accounts h3 {
    padding-left: 15px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .05em;
    margin: 0; }
    .theme-light .email-folder-accounts h3 {
      color: #333333; }
    .theme-dark .email-folder-accounts h3 {
      color: #f5f5f7; }

.email-folder-accounts table {
  display: block;
  table-layout: fixed;
  width: 100%;
  border-spacing: 0;
  padding: 0; }

.email-folder-accounts tbody {
  display: inline-block;
  width: 100%; }

.email-folder-account {
  display: flex;
  position: relative;
  padding: 5px 15px;
  -webkit-flex-wrap: wrap;
  flex-wrap: wrap;
  flex-direction: column;
  height: 45px;
  cursor: pointer; }
  .theme-light .email-folder-account:hover {
    background-color: #f5f5f7; }
  .theme-dark .email-folder-account:hover {
    background-color: #151515; }

.email-account-icon {
  width: 35px;
  height: 35px;
  background-color: #5390f4;
  border-radius: 17.5px; }
  .email-account-icon span {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 100%; }

.email-account-from {
  margin-left: 10px;
  width: calc(100% - 45px); }
  .email-account-from span {
    font-size: 13px;
    font-weight: 700;
    line-height: normal;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap; }

.email-account-adress {
  display: flex;
  margin-left: 10px;
  width: calc(100% - 45px); }
  .email-account-adress span {
    font-size: 12px;
    font-weight: 400;
    line-height: normal;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap; }

.email-messages-column {
  width: 25%;
  position: relative;
  float: left;
  display: inline-block;
  border-right-width: 1px;
  border-right-style: solid; }
  .theme-light .email-messages-column {
    border-color: #eeeff1; }
  .theme-dark .email-messages-column {
    border-color: #444444; }
  .theme-light .email-messages-column {
    background-color: #f5f5f7; }
  .theme-dark .email-messages-column {
    background-color: #151515; }

.email-messages-column-navbar {
  height: 30px;
  padding: 0px 5px;
  text-align: right;
  display: flex;
  -webkit-justify-content: flex-end;
  justify-content: flex-end;
  align-items: center;
  border-bottom-width: 1px;
  border-bottom-style: solid; }
  .theme-light .email-messages-column-navbar {
    border-color: #eeeff1; }
  .theme-dark .email-messages-column-navbar {
    border-color: #444444; }
  .email-messages-column-navbar span {
    font-size: 13px;
    font-weight: 500;
    color: #7F8FA4;
    line-height: 20px;
    margin-right: 5px; }

.email-messages-page-button {
  display: flex;
  -webkit-justify-content: flex-end;
  justify-content: flex-end;
  color: #7F8FA4;
  cursor: pointer;
  width: 20px;
  height: 20px;
  align-items: center;
  justify-content: center;
  border-radius: 50%; }
  .email-messages-page-button .fa {
    width: 20px;
    font-size: 20px;
    text-align: center; }
  .theme-light .email-messages-page-button:hover {
    background-color: #f5f5f7; }
  .theme-dark .email-messages-page-button:hover {
    background-color: #151515; }

.email-messages-column-messages {
  width: 100%;
  height: calc(100vh - 81px);
  overflow-y: auto;
  position: relative;
  float: left;
  display: inline-block;
  border-right-width: 1px;
  border-right-style: solid; }
  .theme-light .email-messages-column-messages {
    border-color: #eeeff1; }
  .theme-dark .email-messages-column-messages {
    border-color: #444444; }
  .theme-light .email-messages-column-messages {
    background-color: #f5f5f7; }
  .theme-dark .email-messages-column-messages {
    background-color: #151515; }

.email-messages-column table {
  display: block;
  table-layout: fixed;
  width: 100%;
  border-spacing: 0;
  padding: 0; }

.email-messages-column table tbody {
  display: inline-block;
  width: 100%; }

.email-messages-column tr {
  display: flex;
  position: relative;
  padding: 15px 15px;
  border-bottom-width: 1px;
  border-bottom-style: solid;
  -webkit-flex-wrap: wrap;
  flex-wrap: wrap; }
  .theme-light .email-messages-column tr {
    border-color: #eeeff1; }
  .theme-dark .email-messages-column tr {
    border-color: #444444; }

.theme-light .email-messages-column tr.email-read {
  background-color: #f5f5f7; }

.theme-dark .email-messages-column tr.email-read {
  background-color: #151515; }

.email-messages-column tr.email-read span {
  color: #7F8FA4; }

.theme-light .email-messages-column tr.email-unread {
  background-color: #fff; }

.theme-dark .email-messages-column tr.email-unread {
  background-color: #2D2D2D; }

.email-messages-column tr:hover,
.email-messages-column tr.active {
  cursor: pointer; }
  .theme-light .email-messages-column tr:hover, .theme-light .email-messages-column tr.active {
    background-color: #f5f5f7; }
  .theme-dark .email-messages-column tr:hover, .theme-dark .email-messages-column tr.active {
    background-color: #151515; }

.email-messages-email-icon {
  min-width: 35px;
  height: 35px;
  background-color: rgba(0, 0, 0, 0.05);
  border-radius: 17.5px; }
  .email-messages-email-icon span {
    font-size: 15px;
    font-weight: 700;
    color: #7F8FA4;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 100%; }

.email-messages-email-icon.green,
.email-messages-column tr.email-read .email-messages-email-icon.green,
.email-messages-column tr.email-unread .email-messages-email-icon.green {
  background: rgba(44, 202, 116, 0.1); }
  .email-messages-email-icon.green span,
  .email-messages-column tr.email-read .email-messages-email-icon.green span,
  .email-messages-column tr.email-unread .email-messages-email-icon.green span {
    color: #26C06C; }

.email-messages-email-icon.grey,
.email-messages-column tr.email-read .email-messages-email-icon.grey,
.email-messages-column tr.email-unread .email-messages-email-icon.grey {
  background: rgba(0, 0, 0, 0.05); }
  .email-messages-email-icon.grey span,
  .email-messages-column tr.email-read .email-messages-email-icon.grey span,
  .email-messages-column tr.email-unread .email-messages-email-icon.grey span {
    color: #7F8FA4; }

.email-messages-email-icon.blue,
.email-messages-column tr.email-read .email-messages-email-icon.blue,
.email-messages-column tr.email-unread .email-messages-email-icon.blue {
  background: rgba(68, 97, 223, 0.1); }
  .email-messages-email-icon.blue span,
  .email-messages-column tr.email-read .email-messages-email-icon.blue span,
  .email-messages-column tr.email-unread .email-messages-email-icon.blue span {
    color: #5776F6; }

.email-messages-email-icon.orange,
.email-messages-column tr.email-read .email-messages-email-icon.orange,
.email-messages-column tr.email-unread .email-messages-email-icon.orange {
  background: rgba(255, 171, 73, 0.1); }
  .email-messages-email-icon.orange span,
  .email-messages-column tr.email-read .email-messages-email-icon.orange span,
  .email-messages-column tr.email-unread .email-messages-email-icon.orange span {
    color: #ff8105; }

.email-messages-email-icon.red,
.email-messages-column tr.email-read .email-messages-email-icon.red,
.email-messages-column tr.email-unread .email-messages-email-icon.red {
  background: rgba(209, 47, 47, 0.1); }
  .email-messages-email-icon.red span,
  .email-messages-column tr.email-read .email-messages-email-icon.red span,
  .email-messages-column tr.email-unread .email-messages-email-icon.red span {
    color: #D12F2F; }

.email-messages-email-from {
  margin-left: 10px;
  max-width: 80%;
  height: 20px;
  display: flex;
  -webkit-justify-content: flex-start;
  justify-content: flex-start; }
  .email-messages-email-from span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #7F8FA4;
    font-size: 10px;
    font-weight: 500;
    line-height: normal; }

.email-messages-email-count {
  margin-left: 10px;
  height: 20px;
  display: flex;
  -webkit-justify-content: flex-start;
  justify-content: flex-start; }
  .email-messages-email-count span {
    font-size: 10px;
    font-weight: 500;
    line-height: normal; }

.email-message-email-attachment {
  height: 20px;
  display: flex;
  -webkit-justify-content: flex-end;
  justify-content: flex-end;
  margin-left: auto;
  color: #7F8FA4; }

.email-messages-email-date {
  height: 20px;
  display: flex;
  -webkit-justify-content: flex-end;
  justify-content: flex-end;
  margin-left: 5px; }
  .email-messages-email-date span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: right;
    color: #7F8FA4;
    font-size: 10px;
    font-weight: 500;
    line-height: normal; }

.email-messages-email-title {
  display: flex;
  -webkit-align-items: flex-start;
  align-items: flex-start;
  margin-left: 45px;
  margin-top: -15px;
  width: calc(100% - 40px); }
  .email-messages-email-title span {
    font-size: 15px;
    font-weight: 700;
    line-height: normal;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap; }

.email-messages-email-message {
  display: flex;
  -webkit-align-items: flex-start;
  align-items: flex-start;
  margin-left: 45px;
  width: calc(100% - 40px); }
  .email-messages-email-message span {
    font-size: 12px;
    font-weight: 400;
    line-height: normal;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; }

.email-messages-email-customer,
.email-messages-column tr.email-read .email-messages-email-customer {
  display: flex;
  -webkit-align-items: flex-start;
  align-items: flex-start;
  margin-left: 45px;
  width: calc(100% - 40px);
  margin-top: 3px; }
  .email-messages-email-customer span,
  .email-messages-column tr.email-read .email-messages-email-customer span {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 4px;
    font-weight: 500;
    font-size: 10px;
    line-height: normal;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: calc(100% - 40px);
    background: rgba(68, 97, 223, 0.1);
    color: #5776F6; }

.email-messages-column tr.email-active,
.email-messages-column tr.email-unread.email-active,
.email-messages-column tr.email-read.email-active {
  background-color: rgba(83, 144, 244, 0.1); }

.email-content-column {
  width: 60%;
  height: calc(100vh - 51px);
  overflow-y: auto;
  position: relative;
  float: left;
  display: inline-block; }
  .theme-light .email-content-column {
    background-color: #f5f5f7; }
  .theme-dark .email-content-column {
    background-color: #151515; }

.email-content-navbar {
  height: 60px; }
  .email-content-navbar .email-content-actions {
    height: 30px;
    margin-left: 10px;
    margin-top: 5px;
    display: none;
    -webkit-justify-content: flex-end;
    justify-content: flex-end; }
    .email-content-navbar .email-content-actions .btn-action {
      display: inline-block;
      padding: 0px 12px;
      margin-bottom: 0;
      font-size: 14px;
      font-weight: 400;
      text-align: center;
      white-space: nowrap;
      vertical-align: middle;
      cursor: pointer;
      border: 1px solid transparent;
      border-radius: 5px;
      position: relative;
      float: left;
      height: 100%; }
    .email-content-navbar .email-content-actions .btn-default {
      width: 40px; }
      .theme-light .email-content-navbar .email-content-actions .btn-default {
        color: #333333; }
      .theme-dark .email-content-navbar .email-content-actions .btn-default {
        color: #f5f5f7; }
      .theme-light .email-content-navbar .email-content-actions .btn-default {
        background-color: #fff; }
      .theme-dark .email-content-navbar .email-content-actions .btn-default {
        background-color: #2D2D2D; }
      .theme-light .email-content-navbar .email-content-actions .btn-default {
        border-color: #eeeff1; }
      .theme-dark .email-content-navbar .email-content-actions .btn-default {
        border-color: #444444; }
    .email-content-navbar .email-content-actions .btn-action:first-child:not(:last-child) {
      border-top-right-radius: 0;
      border-bottom-right-radius: 0; }
    .email-content-navbar .email-content-actions .btn-action:not(:first-child):not(:last-child) {
      border-radius: 0;
      margin-left: -1px; }
    .email-content-navbar .email-content-actions .btn-action:last-child:not(:first-child) {
      border-top-left-radius: 0;
      border-bottom-left-radius: 0;
      margin-left: -1px; }

.email-content-navbar table {
  display: block;
  table-layout: fixed;
  width: 100%;
  border-spacing: 0;
  padding: 0; }

.email-content-navbar table tbody {
  display: inline-block;
  width: 100%; }

.email-content-navbar tr {
  display: flex;
  position: relative;
  padding: 10px 20px;
  border-bottom-width: 1px;
  border-bottom-style: solid;
  -webkit-flex-wrap: wrap;
  flex-wrap: wrap;
  cursor: pointer; }
  .theme-light .email-content-navbar tr {
    border-color: #eeeff1; }
  .theme-dark .email-content-navbar tr {
    border-color: #444444; }

.email-content-navbar-email-icon {
  min-width: 40px;
  height: 40px;
  background-color: rgba(0, 0, 0, 0.05);
  border-radius: 20px;
  float: left;
  top: 0;
  margin-right: 10px; }
  .email-content-navbar-email-icon span {
    font-size: 15px;
    font-weight: 700;
    color: #7F8FA4;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 100%; }

.email-content-navbar-email-icon.green {
  background: rgba(44, 202, 116, 0.1); }
  .email-content-navbar-email-icon.green span {
    color: #26C06C; }

.email-content-navbar-email-icon.grey {
  background: rgba(0, 0, 0, 0.05); }
  .email-content-navbar-email-icon.grey span {
    color: #7F8FA4; }

.email-content-navbar-email-icon.blue {
  background: rgba(68, 97, 223, 0.1); }
  .email-content-navbar-email-icon.blue span {
    color: #5776F6; }

.email-content-navbar-email-icon.orange {
  background: rgba(255, 171, 73, 0.1); }
  .email-content-navbar-email-icon.orange span {
    color: #ff8105; }

.email-content-navbar-email-icon.red {
  background: rgba(209, 47, 47, 0.1); }
  .email-content-navbar-email-icon.red span {
    color: #D12F2F; }

.email-content-navbar-email-from {
  max-width: 80%;
  height: 20px;
  display: flex;
  -webkit-align-items: flex-start;
  align-items: flex-start; }
  .email-content-navbar-email-from span {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100%;
    font-size: 14px;
    font-weight: 700; }

.email-content-navbar-email-attachment {
  height: 20px;
  display: flex;
  -webkit-justify-content: flex-end;
  justify-content: flex-end;
  margin-left: auto;
  color: #7F8FA4; }

.email-content-navbar-email-date {
  height: 20px;
  display: flex;
  -webkit-justify-content: flex-end;
  justify-content: flex-end;
  margin-left: 5px; }
  .email-content-navbar-email-date span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: right;
    color: #7F8FA4;
    font-size: 14px;
    font-weight: 500;
    line-height: normal; }

.email-content-navbar-email-message {
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  margin-left: 50px;
  margin-top: -20px;
  width: calc(100% - 50px); }
  .email-content-navbar-email-message span {
    font-size: 12px;
    font-weight: 400;
    line-height: normal;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap; }

.email-content-navbar-email-to {
  display: none;
  -webkit-align-items: center;
  align-items: center;
  margin-left: 50px;
  margin-top: -20px;
  width: calc(100% - 170px); }
  .email-content-navbar-email-to span {
    font-size: 12px;
    font-weight: 400;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap; }

.email-content-navbar tr.open .email-content-navbar-email-message {
  display: none; }

.email-content-navbar tr.open .email-content-actions {
  display: flex; }

.email-content-navbar tr.open .email-content-navbar-email-to {
  display: flex; }

.email-iframe {
  width: 100%;
  height: calc(100vh - 51px - 60px);
  border: none;
  padding-left: 62px;
  background-color: #fff; }

.email-attachments {
  padding: 10px 20px 4px 62px;
  border-top-width: 1px;
  border-top-style: solid;
  border-bottom-width: 1px;
  border-bottom-style: solid; }
  .theme-light .email-attachments {
    border-color: #eeeff1; }
  .theme-dark .email-attachments {
    border-color: #444444; }

.email-attachments table {
  display: block;
  table-layout: fixed;
  width: 100%;
  border-spacing: 0;
  padding: 0;
  vertical-align: revert; }

.email-attachments tbody {
  display: inline-block;
  width: 100%; }

.email-attachment {
  display: flex;
  position: relative;
  padding: 5px 15px;
  -webkit-flex-wrap: wrap;
  flex-wrap: wrap;
  flex-direction: column;
  height: 45px;
  cursor: pointer;
  width: 200px;
  float: left;
  border-radius: 5px; }
  .theme-light .email-attachment:hover {
    background-color: #f5f5f7; }
  .theme-dark .email-attachment:hover {
    background-color: #151515; }

.email-attachment-icon {
  width: 35px;
  height: 35px;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 5px;
  font-size: 18px; }
  .email-attachment-icon i {
    color: #7F8FA4;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 100%; }

.email-attachment-icon.orange {
  background: rgba(255, 171, 73, 0.1); }
  .email-attachment-icon.orange i {
    color: #ff8105; }

.email-attachment-icon.red {
  background: rgba(209, 47, 47, 0.1); }
  .email-attachment-icon.red i {
    color: #D12F2F; }

.email-attachment-icon.blue {
  background: rgba(68, 97, 223, 0.1); }
  .email-attachment-icon.blue i {
    color: #5776F6; }

.email-attachment-icon.green {
  background: rgba(44, 202, 116, 0.1); }
  .email-attachment-icon.green i {
    color: #26C06C; }

.email-attachment-name {
  display: flex;
  margin-left: 10px;
  width: calc(100% - 45px); }
  .email-attachment-name span {
    font-size: 13px;
    font-weight: 700;
    line-height: normal;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap; }
  .email-attachment-name a {
    display: flex;
    width: 100%; }

.email-attachment-size {
  display: flex;
  margin-left: 10px;
  width: calc(100% - 45px); }
  .email-attachment-size span {
    font-size: 12px;
    font-weight: 400;
    line-height: normal;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap; }

.modal-dialog.modal-full-height {
  height: calc(100% - 60px); }

.email-content {
  padding: 0px;
  height: 100%; }
  .theme-light .email-content {
    background-color: #f5f5f7; }
  .theme-dark .email-content {
    background-color: #151515; }

.email-content .modal-header {
  font-weight: 500;
  border-bottom-width: 1px;
  border-bottom-style: solid; }
  .theme-light .email-content .modal-header {
    border-color: #eeeff1; }
  .theme-dark .email-content .modal-header {
    border-color: #444444; }
  .theme-light .email-content .modal-header {
    background-color: #fff; }
  .theme-dark .email-content .modal-header {
    background-color: #2D2D2D; }
  .theme-light .email-content .modal-header {
    color: #333333; }
  .theme-dark .email-content .modal-header {
    color: #f5f5f7; }
  .email-content .modal-header .close {
    opacity: .6; }
    .theme-light .email-content .modal-header .close {
      color: #333333; }
    .theme-dark .email-content .modal-header .close {
      color: #f5f5f7; }

.new-message-header table {
  display: block;
  table-layout: fixed;
  width: 100%;
  border-spacing: 0;
  padding: 0; }

.new-message-header tbody {
  display: inline-block;
  width: 100%; }

.new-message-header label {
  color: #7F8FA4;
  font-weight: 500; }

.email-field-bar {
  -webkit-align-items: center;
  align-items: center;
  display: -webkit-box;
  display: -webkit-flex;
  -webkit-justify-content: flex-start;
  justify-content: flex-start;
  display: flex;
  width: 100%; }

.email-field-bar.spacing {
  padding-top: 10px; }

.email-field-bar.email-field-hidden {
  display: none; }

.email-field-label {
  display: flex;
  width: 40px; }
  .email-field-label label {
    margin: 0; }

.email-field-input {
  display: flex;
  -webkit-justify-content: space-between;
  justify-content: space-between;
  width: 100%; }

.email-field-links {
  display: flex;
  align-items: center; }

.email-field-open-input {
  cursor: pointer;
  margin-left: 5px; }
  .email-field-open-input:hover {
    text-decoration: underline; }

.email-field-subject {
  display: flex;
  width: 100%;
  margin: 10px 0px;
  border-top-width: 1px;
  border-top-style: solid;
  border-bottom-width: 1px;
  border-bottom-style: solid; }
  .theme-light .email-field-subject {
    border-color: #eeeff1; }
  .theme-dark .email-field-subject {
    border-color: #444444; }
  .email-field-subject input {
    width: 100%; }

.email-field-subject input[type=text] {
  border: none;
  border-radius: unset;
  padding: 10px 0px;
  margin: 0;
  font-weight: 500;
  background-color: transparent; }
  .theme-light .email-field-subject input[type=text] {
    color: #333333; }
  .theme-dark .email-field-subject input[type=text] {
    color: #f5f5f7; }
  .email-field-subject input[type=text]:focus {
    border-color: transparent !important;
    outline-color: transparent !important; }
  .email-field-subject input[type=text]::placeholder {
    color: #7F8FA4;
    font-weight: 500; }

/*
 * Component: Timeline
 * -------------------
 */
.timeline {
  position: relative;
  margin: 0 0 30px 0;
  padding: 0;
  list-style: none; }

.timeline:before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 4px;
  background: #ddd;
  left: 31px;
  margin: 0;
  border-radius: 2px; }

.timeline > li {
  position: relative;
  margin-right: 10px;
  margin-bottom: 15px; }

.timeline > li:before,
.timeline > li:after {
  content: " ";
  display: table; }

.timeline > li:after {
  clear: both; }

.timeline > li > .timeline-item {
  -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
  border-radius: 3px;
  margin-top: 0;
  background: #fff;
  color: #444;
  margin-left: 60px;
  margin-right: 15px;
  padding: 0;
  position: relative; }

.timeline > li > .timeline-item > .time {
  color: #999;
  float: right;
  padding: 10px;
  font-size: 12px; }

.timeline > li > .timeline-item > .timeline-header {
  margin: 0;
  color: #555;
  border-bottom: 1px solid #f4f4f4;
  padding: 10px;
  font-size: 16px;
  line-height: 1.1; }

.timeline > li > .timeline-item > .timeline-header > a {
  font-weight: 600; }

.timeline > li > .timeline-item > .timeline-body,
.timeline > li > .timeline-item > .timeline-footer {
  padding: 10px; }

.timeline > li > .fa,
.timeline > li > .glyphicon,
.timeline > li > .ion {
  width: 30px;
  height: 30px;
  font-size: 15px;
  line-height: 30px;
  position: absolute;
  color: #666;
  background: #d2d6de;
  border-radius: 50%;
  text-align: center;
  left: 18px;
  top: 0; }

.timeline > .time-label > span {
  font-weight: 600;
  padding: 5px;
  display: inline-block;
  background-color: #fff;
  border-radius: 4px; }

.timeline-inverse > li > .timeline-item {
  background: #f0f0f0;
  border: 1px solid #ddd;
  -webkit-box-shadow: none;
  box-shadow: none; }

.timeline-inverse > li > .timeline-item > .timeline-header {
  border-bottom-color: #ddd; }

.datepicker-dropdown.datepicker-orient-bottom:before {
  bottom: 0px !important;
  border: none !important; }

.datepicker-dropdown.datepicker-orient-bottom:after {
  bottom: 0px !important;
  border: none !important; }

.datepicker-dropdown:after {
  content: none;
  display: inline-block;
  border: none;
  position: absolute; }

.datepicker {
  padding: 0px !important; }

.datepicker.dropdown-menu {
  border-style: solid !important;
  border-width: 1px !important;
  box-shadow: 0 2px 2px rgba(0, 0, 0, 0.1) !important; }
  .theme-light .datepicker.dropdown-menu {
    background-color: #fff; }
  .theme-dark .datepicker.dropdown-menu {
    background-color: #2D2D2D; }
  .theme-light .datepicker.dropdown-menu {
    border-color: #eeeff1; }
  .theme-dark .datepicker.dropdown-menu {
    border-color: #444444; }

.datepicker.dropdown-menu th,
.datepicker.dropdown-menu td {
  padding: unset !important; }

.datepicker-days .table,
.datepicker-months .table,
.datepicker-years .table {
  border-spacing: 2px; }

.datepicker-months .table > tbody > tr > td,
.datepicker-years .table > tbody > tr > td {
  max-width: 225px; }

.datepicker table tr th {
  height: 42px !important;
  line-height: 42px;
  padding: unset; }

.datepicker thead tr:first-child th:hover {
  background: none !important; }

.datepicker-days .table > thead > tr > th:first-child,
.datepicker-months .table > thead > tr > th:first-child,
.datepicker-years .table > thead > tr > th:first-child {
  padding: unset; }

.datepicker-days .table tr th,
.datepicker-days .table tr td,
.datepicker-months .table tr th,
.datepicker-years .table tr th {
  width: 40px;
  height: 40px;
  line-height: 40px;
  font-size: 13px;
  text-align: center;
  vertical-align: middle; }

.datepicker-months .table tr td span,
.datepicker-years .table tr td span {
  width: 73px;
  height: 73px;
  margin: 1px;
  line-height: 73px;
  font-size: 13px;
  text-align: center;
  vertical-align: middle; }

.datepicker-months .table tr td,
.datepicker-years .table tr td {
  width: unset;
  height: unset; }

.datepicker-days th.dow {
  color: #c4cad6; }

.datepicker-days .table > tbody > tr {
  height: unset; }

.datepicker-days .table tr td.day:hover,
.datepicker-days .table tr td.old:hover,
.datepicker-days .table tr td.new:hover,
.datepicker-months .table tr td span:hover,
.datepicker-years .table tr td span:hover {
  background: #c4cad6;
  border-radius: 50%;
  color: #405169 !important; }

.datepicker-days .table tr td.day {
  font-weight: 400; }
  .theme-light .datepicker-days .table tr td.day {
    color: #333333; }
  .theme-dark .datepicker-days .table tr td.day {
    color: #f5f5f7; }

.datepicker-days .table tr td.old.day,
.datepicker-days .table tr td.new.day {
  font-weight: 400;
  color: #c4cad6; }

.datepicker-days .table tr td.active.day,
.datepicker-months .table tr td span.active.month,
.datepicker-years .table tr td span.active.year {
  background: #5390f4;
  color: #fff;
  text-shadow: unset;
  border-radius: 50%; }

.datepicker-days .table tr td.active.day:hover,
.datepicker-months .table tr td span.active.month:hover,
.datepicker-years .table tr td span.active.year:hover {
  background: #5390f4;
  color: #fff !important;
  text-shadow: unset;
  border-radius: 50%; }

/*
 * Component: Progress Bar
 * -----------------------
 */
.progress,
.progress > .progress-bar {
  -webkit-box-shadow: none;
  box-shadow: none; }

.progress,
.progress > .progress-bar,
.progress .progress-bar,
.progress > .progress-bar .progress-bar {
  border-radius: 1px; }

/* size variation */
.progress.sm,
.progress-sm {
  height: 10px; }

.progress.sm,
.progress-sm,
.progress.sm .progress-bar,
.progress-sm .progress-bar {
  border-radius: 1px; }

.progress.xs,
.progress-xs {
  height: 7px; }

.progress.xs,
.progress-xs,
.progress.xs .progress-bar,
.progress-xs .progress-bar {
  border-radius: 1px; }

.progress.xxs,
.progress-xxs {
  height: 3px; }

.progress.xxs,
.progress-xxs,
.progress.xxs .progress-bar,
.progress-xxs .progress-bar {
  border-radius: 1px; }

/* Vertical bars */
.progress.vertical {
  position: relative;
  width: 30px;
  height: 200px;
  display: inline-block;
  margin-right: 10px; }

.progress.vertical > .progress-bar {
  width: 100%;
  position: absolute;
  bottom: 0; }

.progress.vertical.sm,
.progress.vertical.progress-sm {
  width: 20px; }

.progress.vertical.xs,
.progress.vertical.progress-xs {
  width: 10px; }

.progress.vertical.xxs,
.progress.vertical.progress-xxs {
  width: 3px; }

.progress-group .progress-text {
  font-weight: 600; }

.progress-group .progress-number {
  float: right; }

/* Remove margins from progress bars when put in a table */
.table tr > td .progress {
  margin: 0; }

.progress-bar-light-blue,
.progress-bar-primary {
  background-color: #3c8dbc; }

.progress-striped .progress-bar-light-blue,
.progress-striped .progress-bar-primary {
  background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
  background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
  background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); }

.progress-bar-green,
.progress-bar-success {
  background-color: #00a65a; }

.progress-striped .progress-bar-green,
.progress-striped .progress-bar-success {
  background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
  background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
  background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); }

.progress-bar-aqua,
.progress-bar-info {
  background-color: #00c0ef; }

.progress-striped .progress-bar-aqua,
.progress-striped .progress-bar-info {
  background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
  background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
  background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); }

.progress-bar-yellow,
.progress-bar-warning {
  background-color: #f39c12; }

.progress-striped .progress-bar-yellow,
.progress-striped .progress-bar-warning {
  background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
  background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
  background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); }

.progress-bar-red,
.progress-bar-danger {
  background-color: #dd4b39; }

.progress-striped .progress-bar-red,
.progress-striped .progress-bar-danger {
  background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
  background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
  background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); }


/* #saves_table tr td {
  border: 1px solid black;
} */
#canvas {
  cursor: none;
}

.text-field label, .select-field label {
  -webkit-user-select: none; /* Safari */
  -ms-user-select: none; /* IE 10 and IE 11 */
  user-select: none; /* Standard syntax */
}

.fancy-file-upload {
  display: inline-block;
  cursor: pointer;
  border-radius: 25px;
  -webkit-box-shadow: none;
  box-shadow: none;
  border: 1px solid #ccc;
  padding: 12px 30px;
}

/* Font select */
.font-select-option {
  font-size: 14px;
}
.select2-results__option {

  white-space: nowrap;

}
.select2.select2-container {

  width: 100% !important;

}

/* Customize the Select2 container */
.select2-container--default .select2-selection--single {
  background-color: unset; 
  border: none;
  border-radius: 0px; 
  display: flex;
  align-items: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--main-text-color);
}

.select2-container .select2-selection--single .select2-selection__rendered {
  padding-left: 0px;
  color: var(--main-text-color);
}

.select2-container--default .select2-dropdown {
  background-color: #fff; 
  border: 1px solid #ccc; 
  border-radius: 4px; 
}

.select2-container--default .select2-results__option {
  padding: 8px 10px; 
  font-family: inherit; 
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
  background-color: #e0e0e0; 
  color: #333; 
}

.select2-container--default .select2-selection__arrow b {
  border-color: #333 transparent transparent transparent; 
}

.select2-container--open .select2-dropdown {
  right: 15px !important;
  left: auto !important;
  position: fixed !important;
}

.select2-container--default .select2-results>.select2-results__options {
  max-height: 400px !important;
}

.designer-font-field .designer-font-select {
  width: 100%;
  min-height: 2rem;
}

.designer-font-field .flow-select-font-preview {
  display: grid;
  gap: 2px;
  min-width: 0;
  flex: 1 1 auto;
  width: 100%;
}

.designer-font-field .flow-select-font-preview__sample {
  display: block;
  font-size: 12px;
  line-height: 1.35;
  color: var(--main-text-color, currentColor) !important;
  -webkit-text-fill-color: transparent !important;
  -webkit-text-stroke: 0.85px currentColor !important;
  text-shadow: none !important;
}

.form-dropdown--font-preview .flow-select-font-preview__sample {
  display: block;
  font-size: 15px;
  line-height: 1.45;
  color: var(--foreground, currentColor) !important;
  -webkit-text-fill-color: transparent !important;
  -webkit-text-stroke: 1px currentColor !important;
  text-shadow: none !important;
  min-width: 0;
  flex: 1 1 auto;
}

.form-dropdown--font-preview .form-dropdown-option {
  min-height: 2.4rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.designer-font-field .flow-select-font-preview__name {
  display: block;
  font-size: 10px;
  line-height: 1.2;
  opacity: 0.8;
  color: var(--main-text-color, currentColor) !important;
  -webkit-text-fill-color: currentColor !important;
  -webkit-text-stroke: 0 !important;
}

/* -----------------------------------------------------------------------------
   Sidebar layout overrides from business_admin (wrapper + main sidebar behavior)
   ----------------------------------------------------------------------------- */

.main-sidebar-wrapper {
  position: relative;
}

@media (max-width: 767px) {
  .main-sidebar-wrapper {
    pointer-events: none;
  }

  .sidebar-open .main-sidebar-wrapper {
    z-index: 1060;
    pointer-events: auto;
  }
}

.main-sidebar {
  position: absolute;
  top: 8px;
  left: 0;
  height: calc(100dvh - 8px);
  width: 250px;
  z-index: 22;
  transition: transform 0.2s linear, width 0.2s linear;
  border-right-width: 0;
  border-right-style: solid;
  display: flex;
  flex-direction: column;
  background-color: var(--sidebar, transparent);
  overflow: visible;
}

@media (max-width: 767px) {
  .main-sidebar {
    transform: translate(-100%, 0);
    z-index: 1050;
    top: 0;
    left: 0;
    height: 100dvh;
    width: 100%;
    min-width: 100%;
    max-width: none;
    box-sizing: border-box;
    box-shadow: var(--shadow-xl, 0 12px 28px rgba(0, 0, 0, 0.2));
  }
}

@media (min-width: 768px) {
  .sidebar-collapse .main-sidebar {
    transform: translate(-280px, 0);
  }
}

@media (max-width: 767px) {
  .sidebar-open:is(.sidebar-mini.sidebar-collapse, :not(.sidebar-mini.sidebar-collapse)) .main-sidebar {
    transform: translate(0, 0) !important;
  }
}

@media (min-width: 768px) {
  .sidebar-mini.sidebar-collapse .main-sidebar {
    transform: translate(0, 0);
    width: 56px !important;
    z-index: 22;
    overflow-x: visible;
  }

  .sidebar-mini:not(.sidebar-collapse) .main-sidebar {
    transform: translate(0, 0);
    width: 250px !important;
    z-index: 22;
  }
}

.sidebar-expanded-on-hover .main-footer,
.sidebar-expanded-on-hover .content-wrapper {
  margin-left: 0 !important;
  left: 56px !important;
}

/* ── Image Trace Modal ────────────────────────────────────────────── */

#designerImageTraceModal .ui-modal__dialog {
  width: min(1240px, calc(100vw - 40px));
  max-width: min(1240px, calc(100vw - 40px));
}

#designerImageTraceModal .ui-modal__body {
  display: flex;
  flex-direction: column;
  min-height: 0;
  max-height: min(760px, calc(100vh - 220px));
  overflow: hidden;
  padding-right: 0;
}

.designer-trace-modal__split {
  display: flex;
  flex-wrap: nowrap;
  gap: 18px;
  align-items: stretch;
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  max-height: 100%;
}

.designer-trace-modal__split > * {
  min-width: 0;
}

.designer-trace-modal__grid {
  display: grid;
  gap: 18px;
}

.designer-trace-modal__settings {
  display: grid;
  gap: 14px;
}

.designer-trace-modal__wizard {
  display: flex;
  flex-direction: column;
  flex: 0 0 420px;
  width: 420px;
  min-width: 0;
  /* height: 100%; */
  max-height: none;
  overflow: hidden;
}

.designer-trace-modal__wizard .designer-trace-modal__settings {
  width: 100%;
  max-width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 10px;
  /* padding-bottom: 12px; */
  scrollbar-gutter: stable;
}

.designer-trace-modal__preview-col {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  flex-basis: 0;
  max-width: calc(100% - 438px);
  gap: 14px;
  align-self: stretch;
  min-width: 0;
  overflow: hidden;
}

.designer-trace-modal__preview-col--top {
  align-self: stretch;
}

.designer-trace-modal__preview-col--top > .designer-trace-modal__section {
  width: 100%;
  height: 100%;
  min-height: 0;
  grid-template-rows: minmax(0, 1fr) auto;
}

.designer-trace-modal__section {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--border-radius-xl);
  background: color-mix(in srgb, var(--card, #fff) 92%, var(--secondary, #f7f8fa));
  box-shadow: var(--surface-shadow-subtle, 0 1px 1px rgb(0 0 0 / 0.08));
}

.designer-trace-modal__section--review {
  background: color-mix(in srgb, var(--card, #fff) 88%, var(--secondary, #f7f8fa));
  min-height: 0;
}

.designer-trace-modal__stack {
  display: grid;
  gap: 10px;
}

.designer-trace-modal__step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.designer-trace-modal__step-number {
  width: 30px;
  height: 30px;
  border-radius: var(--border-radius-full);
  background: color-mix(in srgb, var(--primary-button-bg-color, #3b82f6) 14%, var(--card, #fff));
  color: var(--primary-button-bg-color, #3b82f6);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid color-mix(in srgb, var(--primary-button-bg-color, #3b82f6) 28%, var(--border));
}

.designer-trace-modal__step-copy {
  display: grid;
  gap: 3px;
}

.designer-trace-modal__step-title {
  font-size: 0.97rem;
  font-weight: 700;
  color: var(--text-color);
}

.designer-trace-modal__step-note {
  font-size: 0.81rem;
  color: var(--muted-foreground, #666);
  line-height: 1.45;
}

/* Preset cards */
.designer-trace-modal__preset-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.designer-trace-modal__preset-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 5px;
  border: 1px solid var(--border);
  border-radius: var(--border-radius-lg);
  background: color-mix(in srgb, var(--card, #fff) 94%, var(--secondary, #f7f8fa));
  cursor: pointer;
  transition: border-color .15s, background .15s, box-shadow .15s, transform .15s;
  text-align: center;
  font-size: 11px;
  line-height: 1.2;
  color: var(--muted-foreground, #666);
}

.designer-trace-modal__preset-card:hover {
  border-color: color-mix(in srgb, var(--primary-button-bg-color, #3b82f6) 45%, var(--border));
  background: color-mix(in srgb, var(--primary-button-bg-color, #3b82f6) 8%, var(--card, #fff));
  transform: translateY(-1px);
}

.designer-trace-modal__preset-card.is-active {
  border-color: var(--primary-button-bg-color, #3b82f6);
  background: color-mix(in srgb, var(--primary-button-bg-color, #3b82f6) 12%, var(--card, #fff));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--primary-button-bg-color, #3b82f6) 55%, transparent);
  color: var(--text-color);
  font-weight: 600;
}

.designer-trace-modal__preset-card svg {
  width: 20px;
  height: 20px;
  opacity: .65;
}

.designer-trace-modal__preset-card.is-active svg {
  opacity: 1;
  color: var(--primary-button-bg-color, #3b82f6);
}

.designer-trace-modal__detail-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.designer-trace-modal__detail-card {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 10px 8px;
  border: 1px solid var(--border);
  border-radius: var(--border-radius-lg);
  background: color-mix(in srgb, var(--card, #fff) 94%, var(--secondary, #f7f8fa));
  color: var(--muted-foreground, #666);
  cursor: pointer;
  text-align: center;
  transition: border-color .15s, background .15s, box-shadow .15s, transform .15s;
  font-size: 11px;
  line-height: 1.15;
}

.designer-trace-modal__detail-card:hover {
  border-color: color-mix(in srgb, var(--primary-button-bg-color, #3b82f6) 45%, var(--border));
  background: color-mix(in srgb, var(--primary-button-bg-color, #3b82f6) 8%, var(--card, #fff));
  transform: translateY(-1px);
}

.designer-trace-modal__detail-card.is-active {
  border-color: var(--primary-button-bg-color, #3b82f6);
  background: color-mix(in srgb, var(--primary-button-bg-color, #3b82f6) 12%, var(--card, #fff));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--primary-button-bg-color, #3b82f6) 55%, transparent);
  color: var(--text-color);
  font-weight: 600;
}

.designer-trace-modal__detail-card svg {
  width: 26px;
  height: 18px;
  opacity: .75;
}

.designer-trace-modal__detail-card.is-active svg {
  color: var(--primary-button-bg-color, #3b82f6);
  opacity: 1;
}

/* Guidance text */
.designer-trace-modal__guidance {
  font-size: 0.81rem;
  color: var(--muted-foreground, #666);
  margin: 0;
  line-height: 1.45;
}

/* Advanced section */
.designer-trace-modal__advanced {
  border: 1px solid var(--border);
  border-radius: var(--border-radius-lg);
  padding: 0;
  background: color-mix(in srgb, var(--card, #fff) 86%, var(--secondary, #f7f8fa));
}

.designer-trace-modal__advanced-title {
  font-weight: 600;
  padding: 9px 12px;
  font-size: 12px;
  border-bottom: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
}

.designer-trace-modal__advanced-body {
  display: grid;
  gap: 10px;
  padding: 0 12px 12px;
}

/* Recommendation banner */
.designer-trace-modal__recommendation {
  border: 1px solid color-mix(in srgb, var(--primary-button-bg-color, #3b82f6) 25%, var(--border));
  border-radius: var(--border-radius-xl);
  padding: 12px;
  background: color-mix(in srgb, var(--primary-button-bg-color, #3b82f6) 7%, var(--card, #fff));
}

.designer-trace-modal__recommendation-text {
  font-size: 12px;
  color: var(--muted-foreground, #666);
  margin-bottom: 8px;
}

.designer-trace-modal__recommendation-reason {
  font-size: 11px;
  color: var(--muted-foreground, #888);
  margin-top: 6px;
  font-style: italic;
}

/* Summary */
.designer-trace-modal__summary {
  font-size: 0.81rem;
  color: var(--muted-foreground, #666);
  line-height: 1.5;
}

/* Complexity feedback */
.designer-trace-modal__complexity {
  border-radius: var(--border-radius-xl);
  padding: 12px;
  border: 1px solid var(--border);
}

.designer-trace-modal__complexity--simple {
  background: color-mix(in srgb, #2e8b57 14%, var(--card, #fff));
}

.designer-trace-modal__complexity--balanced {
  background: color-mix(in srgb, var(--primary-button-bg-color, #3b82f6) 8%, var(--card, #fff));
}

.designer-trace-modal__complexity--detailed {
  background: color-mix(in srgb, #c26a3d 14%, var(--card, #fff));
}

.designer-trace-modal__complexity-title {
  font-weight: 600;
  margin-bottom: 4px;
}

.designer-trace-modal__complexity-note {
  font-size: 12px;
  color: var(--muted-foreground, #666);
}

/* Preview grid */
.designer-trace-modal__preview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

.designer-trace-modal__preview-grid--single {
  grid-template-columns: minmax(0, 1fr);
}

.designer-trace-modal__preview-label {
  font-weight: 600;
  margin-bottom: 6px;
}

/* Preview frame with checkerboard option */
.designer-trace-modal__preview-frame {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--border-radius-xl);
  background: var(--card, #fff);
  padding: 12px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.designer-trace-modal__preview-tools {
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  z-index: 6;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}

.designer-trace-modal__preview-tools-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.designer-trace-modal__preview-toggle,
.designer-trace-modal__zoom-reset {
  pointer-events: auto;
}

.designer-trace-modal__preview-toggle {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--card, #fff) 92%, transparent);
  color: var(--text-color);
  cursor: pointer;
  backdrop-filter: blur(4px);
}

.designer-trace-modal__preview-toggle.is-active {
  border-color: color-mix(in srgb, var(--primary-button-bg-color, #3b82f6) 50%, var(--border));
  background: color-mix(in srgb, var(--primary-button-bg-color, #3b82f6) 10%, var(--card, #fff));
}

.designer-trace-modal__inline-slider {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--card, #fff) 92%, transparent);
  color: var(--text-color);
  backdrop-filter: blur(4px);
  pointer-events: auto;
  font-size: 11px;
}

.designer-trace-modal__inline-slider input[type="range"] {
  width: 88px;
}

.designer-trace-modal__inline-slider span:last-child {
  min-width: 34px;
  text-align: right;
  color: var(--muted-foreground, #666);
}

.designer-trace-modal__preview-frame--checkerboard {
  background-color: var(--preview-frame-bg, #fff);
  background-image:
    linear-gradient(45deg, color-mix(in srgb, var(--preview-frame-checker, #e0e0e0) 42%, transparent) 25%, transparent 25%),
    linear-gradient(-45deg, color-mix(in srgb, var(--preview-frame-checker, #e0e0e0) 42%, transparent) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, color-mix(in srgb, var(--preview-frame-checker, #e0e0e0) 42%, transparent) 75%),
    linear-gradient(-45deg, transparent 75%, color-mix(in srgb, var(--preview-frame-checker, #e0e0e0) 42%, transparent) 75%);
  background-size: 16px 16px;
  background-position: 0 0, 0 8px, 8px -8px, -8px 0;
}


.designer-trace-modal__preview-img {
  max-width: 100%;
  max-height: 360px;
  object-fit: contain;
  position: relative;
  z-index: 1;
}

.designer-trace-modal__preview-img--overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 360px;
  object-fit: contain;
  z-index: 2;
  pointer-events: auto;
}

.designer-trace-modal__overlay-host {
  position: absolute;
  inset: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 2;
}

.designer-trace-modal__vector-host {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 3;
}

.designer-trace-modal__vector-host svg {
  max-width: 100%;
  max-height: 360px;
  width: 100%;
  height: auto;
}

.designer-trace-modal__crop-overlay {
  position: absolute;
  z-index: 5;
  pointer-events: none;
  overflow: visible;
}

.designer-trace-modal__crop-box {
  position: absolute;
  border: 2px solid color-mix(in srgb, var(--primary-button-bg-color, #3b82f6) 88%, white);
  border-radius: 10px;
  background: transparent;
  box-shadow: 0 0 0 9999px rgb(0 0 0 / 0.42);
  cursor: move;
  pointer-events: auto;
}

.designer-trace-modal__crop-handle {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 2px solid var(--card, #fff);
  background: var(--primary-button-bg-color, #3b82f6);
  box-shadow: 0 2px 8px rgb(0 0 0 / 0.25);
  pointer-events: auto;
  padding: 0;
}

.designer-trace-modal__crop-handle--nw {
  top: -7px;
  left: -7px;
  cursor: nwse-resize;
}

.designer-trace-modal__crop-handle--ne {
  top: -7px;
  right: -7px;
  cursor: nesw-resize;
}

.designer-trace-modal__crop-handle--sw {
  bottom: -7px;
  left: -7px;
  cursor: nesw-resize;
}

.designer-trace-modal__crop-handle--se {
  right: -7px;
  bottom: -7px;
  cursor: nwse-resize;
}

.designer-trace-modal__preview-inspect {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 6;
  pointer-events: none;
}

.designer-trace-modal__inspect-toggle {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--card, #fff) 92%, transparent);
  color: var(--text-color);
  cursor: pointer;
  backdrop-filter: blur(4px);
}

.designer-trace-modal__inspect-toggle.is-active {
  border-color: color-mix(in srgb, var(--primary-button-bg-color, #3b82f6) 55%, var(--border));
  background: color-mix(in srgb, var(--primary-button-bg-color, #3b82f6) 10%, var(--card, #fff));
  color: var(--primary-button-bg-color, #3b82f6);
}

.designer-trace-modal__node-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}

.designer-trace-modal__node-overlay-svg {
  max-width: 100%;
  max-height: 360px;
  width: 100%;
  height: auto;
  overflow: visible;
}

.designer-trace-modal__node-overlay-svg:not(:root) {
  overflow: visible;
}

/* Color swatch grid */
.designer-trace-modal__color-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.designer-trace-modal__color-header-actions {
  display: flex;
  gap: 4px;
  margin-left: auto;
}

.designer-trace-modal__color-count-indicator {
  display: inline-flex;
  align-items: center;
  padding: 0 6px;
  font-size: 11px;
  color: var(--muted-foreground, #666);
  white-space: nowrap;
}

.designer-trace-modal__color-header-actions .ui-btn {
  font-size: 11px;
  padding: 6px 8px;
}

.designer-trace-modal__color-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.designer-trace-modal__swatch {
  position: relative;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 2px solid var(--border);
  cursor: pointer;
  transition: border-color .12s, box-shadow .12s, transform .1s;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: none;
}

.designer-trace-modal__swatch:hover {
  transform: scale(1.12);
  z-index: 1;
}

.designer-trace-modal__swatch.is-active {
  border-color: var(--primary-button-bg-color, #3b82f6);
  box-shadow: 0 0 0 2px var(--primary-button-bg-color, #3b82f6);
}

.designer-trace-modal__swatch-color {
  width: 100%;
  height: 100%;
  border-radius: 4px;
}

.designer-trace-modal__swatch-check {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
}

.designer-trace-modal__swatch.is-active .designer-trace-modal__swatch-check {
  opacity: 1;
}

.designer-trace-modal__swatch-check svg {
  width: 14px;
  height: 14px;
  filter: drop-shadow(0 0 2px rgba(0,0,0,.5));
}

/* Preview loading */
.designer-trace-modal__loading {
  position: absolute;
  inset: 0;
  z-index: 5;
  border-radius: inherit;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: color-mix(in srgb, var(--card, #fff) 72%, transparent);
  backdrop-filter: blur(3px);
  pointer-events: none;
}

.designer-trace-modal__loading-bar {
  width: min(240px, 60%);
  height: 4px;
  border-radius: var(--border-radius-full);
  overflow: hidden;
  background: color-mix(in srgb, var(--border) 75%, transparent);
  position: relative;
}

.designer-trace-modal__loading-bar::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--primary-button-bg-color, #3b82f6);
  animation: designer-trace-progress 1.2s ease-in-out infinite;
  transform-origin: left;
}

.designer-trace-modal__loading-text {
  font-size: var(--text-sm, 0.875rem);
  color: var(--text-color);
  font-weight: 600;
}

@keyframes designer-trace-progress {
  0% { transform: translateX(-100%); }
  50% { transform: translateX(0); }
  100% { transform: translateX(100%); }
}

/* Wipe compare mode */
.designer-trace-modal__wipe {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--border-radius-xl);
  background: var(--card, #fff);
  min-height: 240px;
  overflow: hidden;
  cursor: ew-resize;
  user-select: none;
}

.designer-trace-modal__wipe-layer {
  position: absolute;
  inset: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.designer-trace-modal__wipe-layer img,
.designer-trace-modal__wipe-layer svg {
  max-width: 100%;
  max-height: 360px;
  object-fit: contain;
  width: 100%;
  height: auto;
}

.designer-trace-modal__wipe-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--primary-button-bg-color, #3b82f6);
  z-index: 5;
  pointer-events: none;
}

.designer-trace-modal__wipe-divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary-button-bg-color, #3b82f6);
  border: 2px solid var(--card, #fff);
  box-shadow: 0 1px 4px color-mix(in srgb, var(--text-color) 18%, transparent);
}

.designer-trace-modal__wipe-divider::after {
  content: "\2194";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 12px;
  font-weight: bold;
  z-index: 1;
}

/* Zoom/pan container */
.designer-trace-modal__zoom-container {
  overflow: hidden;
  position: relative;
  cursor: grab;
}

.designer-trace-modal__zoom-container:active {
  cursor: grabbing;
}

.designer-trace-modal__zoom-container-inner {
  transform-origin: 0 0;
  transition: none;
}

.designer-trace-modal__zoom-reset {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--card, #fff) 92%, transparent);
  color: var(--text-color);
  cursor: pointer;
  backdrop-filter: blur(4px);
  display: none;
}

.designer-trace-modal__zoom-container.is-zoomed .designer-trace-modal__zoom-reset {
  display: block;
}

.designer-trace-modal__wizard .ui-field__label {
  font-size: 12px;
}

.designer-trace-modal__wizard .ui-field__help {
  font-size: 11px;
  line-height: 1.4;
}

.designer-trace-modal__wizard .ui-btn {
  line-height: 1.2;
}

/* Range input with value display */
.designer-trace-modal__range-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.designer-trace-modal__range-row input[type="range"] {
  flex: 1;
  min-width: 0;
}

.designer-trace-modal__range-value {
  min-width: 36px;
  text-align: right;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: var(--muted-foreground, #666);
  white-space: nowrap;
}

/* Batch trace counter */
.designer-trace-modal__batch-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-sm, 0.875rem);
  color: var(--muted-foreground, #666);
}

/* Footer status */
.designer-trace-modal__status {
  font-size: 13px;
  color: var(--muted-foreground, #666);
}

.designer-trace-modal__footer-actions {
  display: flex;
  gap: 8px;
}

/* Session settings banner */
.designer-trace-modal__session-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: var(--border-radius-lg);
  background: color-mix(in srgb, var(--secondary, #f7f8fa) 72%, var(--card, #fff));
  border: 1px solid var(--border);
  font-size: var(--text-sm, 0.875rem);
  color: var(--muted-foreground, #666);
}

/* Responsive */
@media (max-width: 768px) {
  #designerImageTraceModal .ui-modal__body {
    display: block;
    max-height: none;
    overflow: visible;
  }

  .designer-trace-modal__split {
    flex-direction: column;
    min-height: 0;
  }

  .designer-trace-modal__wizard {
    flex: 1 1 auto;
    width: 100%;
    max-height: none;
    overflow: visible;
  }

  .designer-trace-modal__wizard .designer-trace-modal__settings {
    overflow: visible;
    padding-right: 0;
    padding-bottom: 0;
  }

  .designer-trace-modal__preview-col {
    max-width: 100%;
  }

  .designer-trace-modal__preview-col {
    position: static;
  }

  .designer-trace-modal__preset-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .designer-trace-modal__preview-grid {
    grid-template-columns: 1fr;
  }

  .designer-trace-modal__preview-frame {
    min-height: 160px;
  }

  .designer-trace-modal__preview-img,
  .designer-trace-modal__vector-host svg {
    max-height: 240px;
  }
}

@media (max-width: 480px) {
  .designer-trace-modal__section {
    padding: 14px;
  }

  .designer-trace-modal__preset-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .designer-trace-modal__detail-cards {
    grid-template-columns: 1fr;
  }

  .designer-trace-modal__step {
    grid-template-columns: 1fr;
  }
}
