@charset "UTF-8";@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@100;300;400;500;700;900&display=swap");@import url("https://fonts.googleapis.com/css2?family=Lato:wght@200;300;400&family=Roboto:wght@200;300;400;500&display=swap");.qng-legal-content h1 { font-size: 22px; font-weight: 700; margin: 0 0 16px; }
.qng-legal-content h2 { font-size: 18px; font-weight: 600; margin: 24px 0 12px; }
.qng-legal-content h3 { font-size: 15px; font-weight: 600; margin: 20px 0 8px; }
.qng-legal-content p { margin: 0 0 12px; }
.qng-legal-content ul, .qng-legal-content ol { margin: 0 0 12px; padding-left: 24px; }
.qng-legal-content li { margin-bottom: 6px; }
.qng-legal-content table { border-collapse: collapse; width: 100%; margin: 16px 0; }
.qng-legal-content th, .qng-legal-content td { border: 1px solid var(--border); padding: 8px 12px; text-align: left; font-size: 13px; }
.qng-legal-content th { background: var(--bg-secondary); font-weight: 600; }
.login__page {
  width: 100%;
  height: auto;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url("/assets/bg_login-xvZQ6iP8.svg");
  background-size: cover;
  position: fixed;
  top: 0px;
  left: 0px;
  z-index: 99;
  padding: 24px;
  box-sizing: border-box;
}
.login__page .login__page-text {
  width: 640px;
  max-width: 100%;
  height: auto;
  min-height: 400px;
  padding: 38px 40px;
  margin: 0px 15px;
  border: 1px solid #f9f9f9;
  border-radius: 10px;
  background-color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
  box-shadow: 0px 0px 12px 0px rgb(0 0 0 / 12%);
}
.login__page .login__page-text h4 {
  font-size: 20px;
  font-weight: 600;
  color: #ed8154;
  margin-block-end: 20px !important;
  margin-block-start: 20px !important;
}
.login__page .login__page-text p {
  font-size: 18px;
  font-weight: 400;
  color: #4f4f4f;
  line-height: 28px;
  margin: 0;
}
.login__page .login__page-form {
  width: 500px;
  max-width: 100%;
  height: auto;
  min-height: 400px;
  padding: 40px;
  border: 1px solid #f9f9f9;
  margin: 0px 15px;
  border-radius: 10px;
  background-color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
  box-shadow: 0px 0px 12px 0px rgb(0 0 0 / 12%);
}
.login__page .login__page-form form {
  width: 100%;
  height: auto;
}
.login__page .login__page-form h4 {
  font-size: 20px;
  font-weight: 600;
  color: #ed8154;
  margin: 0 0 32px;
}
.login__page .login__page-form input:not(.otp-digit):not(.ds-checkbox-input):not(.ds-switch-input),
.login__page select,
.login__page option {
  width: 100%;
  height: 40px;
  border-radius: 8px;
  border: 1px solid #bdbdbd;
  margin-bottom: 18px;
  padding-left: 44px;
  padding-top: 2px;
  box-sizing: border-box;
}

.login__page .otp-digit {
  width: 48px;
  height: 56px;
  text-align: center;
  font-size: 24px;
  font-weight: 600;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  outline: none;
  padding: 0;
  margin: 0;
  color: var(--text-main);
}

.login__page select {
  padding-left: 42px;
}

.fa-icon {
  position: relative;
  top: 30px;
  left: 20px;
  color: #828282;
  width: 20px;
  height: 16px;
}

.login__page select,
.login__page input {
  color: #828282;
  outline: 0;
}

.login__page .login__page-form button {
  width: 100%;
  height: 40px;
  border-radius: 8px;
  border: 0px;
  background-color: #ed8154;
  font-size: 16px;
  color: #fff;
  margin-top: 0;
}

.test_class {
  display: flex;
  gap: 30px;
}

.login__page .login__page-form ul {
  width: 100%;
  height: auto;
  border-top: 1px solid #bdbdbd;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
  margin: 20px 0 0;
  padding: 25px 0;
}

.end {
  justify-content: flex-end !important;
}

.bor {
  margin-top: 80px !important;
}

.login__page .login__page-form ul li {
  display: inline-flex;
}
.login__page .login__page-form ul li a {
  font-size: 14px;
  font-weight: 400;
  color: #417ac7;
}

.sb-button {
  margin-top: 16px;
  outline: 0;
  border: 0;
  cursor: pointer;
}

form {
  box-sizing: border-box;
}

.login__page button:disabled {
  opacity: 0.7;
  cursor: wait;
}

/* Responsive — tablet and below */
@media (max-width: 1100px) {
  .test_class {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .login__page .login__page-text {
    width: 500px;
    min-height: auto;
  }
}

@media (max-width: 560px) {
  .login__page {
    padding: 16px;
  }

  .login__page .login__page-text,
  .login__page .login__page-form {
    width: 100%;
    margin: 0;
    padding: 24px;
    min-height: auto;
  }

  .login__page .login__page-text p {
    font-size: 15px;
    line-height: 24px;
  }

  .login__page .otp-digit {
    width: 40px;
    height: 48px;
    font-size: 20px;
  }
}
.td_underline {
    text-decoration: underline;
}

.m-0 {
    margin: 0 !important;
}.ui-table {
  background-color: white;
  overflow: auto;
}
.ui-table table {
  border-collapse: collapse;
  border-style: hidden;
  width: 100%;
}
.ui-table table tr {
  transition: background-color 0.1s;
}
.ui-table table tr:hover {
  background-color: rgb(252.5, 237.8, 231.7);
}
.ui-table table th {
  font-weight: 500;
  text-align: left;
}
.ui-table table th, .ui-table table td {
  padding: 0 20px;
  height: 40px;
}
.ui-table.ui-table--scrollable table {
  border-collapse: separate;
  border-spacing: 0;
  position: relative;
  width: 100%;
  overflow: auto;
}
.ui-table.ui-table--scrollable th, .ui-table.ui-table--scrollable td {
  border: 1px solid #E4E4E4;
}
.ui-table.ui-table--scrollable table thead th {
  position: sticky;
  top: 0;
  background-color: white;
  z-index: 1;
}
.ui-table.ui-table--scrollable table td, .ui-table.ui-table--scrollable table th {
  padding: 10px;
  text-align: left;
}
.ui-table.ui-table--scrollable table td {
  white-space: nowrap;
}
.ui-table.ui-table--scrollable table tr:hover .sticky:not(th) {
  background-color: rgb(252.5, 237.8, 231.7);
}
.ui-table.ui-table--scrollable table tr th {
  transition: background-color 0s;
  background-color: white;
}
.ui-table.ui-table--scrollable .one-line {
  white-space: nowrap;
}
.ui-table.ui-table--scrollable .lock {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ui-table.ui-table--scrollable .sticky {
  position: sticky;
  background-color: white;
  transition: background-color 0.1s;
}
.ui-table.ui-table--scrollable .sticky:not(td) {
  z-index: 2;
}
/* Grid gap utilities (from old #ui) */
.ui--grid-gap {
  display: grid;
  gap: 10px;
}
.ui--grid-gap-columns-1 {
  grid-template-columns: 1fr;
}
.ui--grid-gap-columns-2 {
  grid-template-columns: 1fr 1fr;
}
.ui--grid-gap-columns-3 {
  grid-template-columns: 1fr 1fr 1fr;
}

.drawer-section {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border, #ddd);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.drawer-section:last-child {
  border: none;
}
.drawer-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.drawer-section-header h4 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main, #1a1a1a);
}
.drawer-section h3 {
  margin: 4px 0 0 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted, #666);
}

.new-update-survey-modal .new-update-survey-modal__content {
  display: flex;
  flex-direction: column;
}
.new-update-survey-modal h4 {
  font-size: 16px;
  font-weight: 500;
  margin: 0;
  margin-bottom: 10px;
  margin-top: 18px;
  color: #707070;
}
.new-update-survey-modal h4:first-of-type {
  margin-top: 0;
}
.new-update-survey-modal .ui-select {
  margin-top: 20px;
  font-weight: bold;
}

.new-update-results-modal .new-update-results-modal__content {
  display: flex;
  flex-direction: column;
}
.new-update-results-modal .new-update-results-modal__content h6 {
  padding: 3px;
  font-size: 14px;
  font-weight: 400;
}
.new-update-results-modal .new-update-results-modal__content .top {
  margin-top: 10px;
}
.new-update-results-modal .new-update-results-modal__content .ui-select {
  margin-top: 0;
}
.new-update-results-modal .new-update-results-modal__content .new-update-results-modal__content-url {
  display: flex;
  align-items: center;
  gap: 20px;
  fill: #ED8154;
  color: #ED8154;
}
.new-update-results-modal .new-update-results-modal__content .new-update-results-modal__content-url svg {
  cursor: pointer;
}
.new-update-results-modal .ui-modal__footer {
  justify-content: space-between;
  align-items: center;
}
.new-update-results-modal .ui-modal__footer .new-update-results-modal__footer-buttons {
  display: flex;
  gap: 20px;
}
.new-update-results-modal h4 {
  font-size: 16px;
  font-weight: 500;
  margin: 0;
  margin-bottom: 10px;
  margin-top: 18px;
  color: #707070;
}
.new-update-results-modal h4:first-of-type {
  margin-top: 0;
}
.new-update-results-modal .ui-select {
  margin-top: 20px;
  font-weight: bold;
}

.password-input-modal .password-input-modal__content {
  display: flex;
  flex-direction: column;
}
.password-input-modal .password-input-modal__content .password-input-error {
  margin-top: 20px;
  color: #C93E3E;
}
.password-input-modal .password-input-modal__content .ui-select {
  margin-top: 0;
}
.password-input-modal .password-input-modal__content .password-input-modal__content-url {
  display: flex;
  align-items: center;
  gap: 20px;
  fill: #ED8154;
  color: #ED8154;
}
.password-input-modal .password-input-modal__content .password-input-modal__content-url svg {
  cursor: pointer;
}
.password-input-modal .ui-modal__footer {
  justify-content: space-between;
  align-items: center;
}
.password-input-modal .ui-modal__footer .password-input-modal__footer-buttons {
  display: flex;
  gap: 20px;
}
.password-input-modal h4 {
  font-size: 16px;
  font-weight: 500;
  margin: 0;
  margin-bottom: 10px;
  margin-top: 18px;
  color: #707070;
}
.password-input-modal h4:first-of-type {
  margin-top: 0;
}
.password-input-modal .ui-select {
  margin-top: 20px;
  font-weight: bold;
}

.element-modal__content {
  display: flex;
  flex-direction: column;
}
.element-modal__content h4 {
  font-size: 16px;
  font-weight: 500;
  margin: 0;
  margin-bottom: 10px;
  margin-top: 20px;
  color: #707070;
}
.element-modal__content h4:first-of-type {
  margin-top: 0;
}
.element-modal__content .check {
  margin-top: 20px;
}
.element-modal__content .ui-select {
  font-weight: bold;
}
.element-modal__content .ui-select:last-child {
  margin-top: 20px;
}
.element-modal__content .element-modal__content-details {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}
.element-modal__content .element-modal__rte {
  border: 1px solid #ddd;
  border-radius: 8px;
  line-height: 1;
  padding: 10px 20px;
  color: #707070;
  font-size: 14px;
}
.element-modal__content .element-modal__rte:active:not(.ui-input--error), .element-modal__content .element-modal__rte:focus:not(.ui-input--error), .element-modal__content .element-modal__rte:focus-visible:not(.ui-input--error) {
  border-color: #ED8154;
  outline: 1px solid #ED8154 !important;
}
.element-modal__content .element-modal__rte.element-modal__rte--height-80 {
  min-height: 80px !important;
}

.element-drawer h4 {
  color: #707070;
}
.element-drawer .ds-drawer-header {
  margin-top: 10px;
}
.element-drawer .element-drawer__delete {
  background-color: #982727;
}
.element-drawer .element-drawer__delete:hover {
  background-color: rgb(172.2931937173, 44.2068062827, 44.2068062827);
}
.element-drawer .element-drawer__delete:active {
  background-color: rgb(111.4136125654, 28.5863874346, 28.5863874346);
}
.element-drawer .ds-btn.ds-btn-icon {
  color: #ED8154;
}

.element-drawer__content {
  display: flex;
  flex-direction: column;
}

.element-drawer__row {
  border-bottom: 2px solid rgba(0, 0, 0, 0.1);
  padding: 10px 10px;
  display: flex;
  justify-content: space-between;
}
.element-drawer__row > .code {
  display: inline-block;
  margin-right: 10px;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  min-width: 40px;
}
.element-drawer__row > .code:hover {
  font-weight: bold;
  cursor: pointer;
}
.element-drawer__row:active, .element-drawer__row:focus, .element-drawer__row:focus-visible, .element-drawer__row:focus-within, .element-drawer__row:hover {
  border-color: #ED8154;
}
.element-drawer__row .element-drawer__rte {
  border: 1px solid #ddd;
  border-radius: 8px;
  line-height: 1;
  padding: 10px 20px;
  color: #707070;
}
.element-drawer__row .element-drawer__rte:active, .element-drawer__row .element-drawer__rte:focus, .element-drawer__row .element-drawer__rte:focus-visible {
  border-color: #ED8154;
  outline: 1px solid #ED8154 !important;
}
.element-drawer__row .element-drawer__rte.element-drawer__rte--height-80 {
  min-height: 80px !important;
}
.element-drawer__row .element-drawer__section h4 {
  margin-bottom: 10px;
}
.element-drawer__row .element-drawer__separator {
  border-top: 2px solid rgba(0, 0, 0, 0.1);
}
.element-drawer__row .element-drawer__tabbar {
  margin: 0 -20px;
  display: flex;
}
.element-drawer__row .element-drawer__tabbar .element-drawer__tabbar-spacer {
  border-bottom: 2px solid rgba(0, 0, 0, 0.1);
  flex-grow: 1;
}
.element-drawer__row .element-drawer__tabbar .element-drawer__tabbar-button {
  border-bottom: 2px solid rgba(0, 0, 0, 0.1);
  padding: 8px 28px;
  font-weight: 500;
  cursor: pointer;
}
.element-drawer__row .element-drawer__tabbar .element-drawer__tabbar-button:hover {
  border-bottom: 2px solid #ED8154;
  color: #ED8154;
}
.element-drawer__row .element-drawer__tabbar .element-drawer__tabbar-button.element-drawer__tabbar-button--active {
  border-bottom: 4px solid #ED8154;
  color: #ED8154;
}

.survey-page {
  height: 100%;
}
.survey-page .survey-page__card {
  min-height: 260px;
}
.survey-page .survey-page__card.survey-overview__card .ui-card__header {
  padding: 0;
}
.survey-page .survey-page__card.survey-overview__card .ui-card__header a {
  text-decoration: none;
}
.survey-page .survey-page__card.survey-overview__card .ui-card__header:hover .ui--color-primary {
  transition: color 0.3s;
  color: #982727;
}
.survey-page .survey-page__card table {
  width: 100%;
}
.survey-page .survey-page__card table tr td {
  padding-bottom: 20px;
}
.survey-page .survey-page__card table tr td:first-child {
  width: 33%;
  font-weight: 500;
}
.survey-page .survey-page__card .ui-card__content {
  height: 100%;
}
.survey-page .survey-page__card .survey-page__card-results-overview {
  min-height: 130px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-content: center;
  flex-wrap: wrap;
}
.survey-page .survey-page__card .survey-page__card-results-overview h1 {
  margin-bottom: 10px;
  text-align: center;
}
.survey-page .survey-page__card .survey-collectors__card-overview {
  display: flex;
  justify-content: space-between;
  min-height: 120px;
  align-content: center;
  flex-wrap: wrap;
}
.survey-page .survey-page__card .survey-collectors__card-overview h1 {
  text-align: center;
}
.survey-page .survey-page__wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  height: 100%;
  overflow: auto;
  padding: 40px;
}
.survey-page .survey-page__wrapper .survey-page__content {
  max-width: 1600px;
  width: 100%;
  display: grid;
  grid-gap: 20px;
  grid-template-columns: repeat(1, minmax(0, 1fr));
}
@media (min-width: 62em) {
  .survey-page .survey-page__wrapper .survey-page__content {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 96em) {
  .survey-page .survey-page__wrapper .survey-page__content {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.survey-editor .survey-editor__header-right {
  display: flex;
  gap: 20px;
}
.survey-editor .survey-editor__header-right .survey-editor__search {
  display: flex;
}
.survey-editor .survey-editor__header-right .survey-editor__search input {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}
.survey-editor .survey-editor__header-right .survey-editor__search input:focus + div {
  border: 1px solid #ED8154;
  outline: 1px solid #ED8154;
}
.survey-editor .survey-editor__header-right .survey-editor__search > div {
  border: 1px solid #ddd;
  outline: 1px solid #ddd;
  background-color: #ED8154;
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  fill: white;
  color: white;
  width: 40px;
  height: 40px;
}
.survey-editor .survey-editor__header-right .survey-editor__search > div:hover {
  background-color: rgb(239.4285714286, 146, 107.0714285714);
  cursor: pointer;
}
.survey-editor .survey-editor__header-right .survey-editor__header-button {
  background-color: #ED8154;
  border-radius: 8px;
  border: none;
  fill: white;
  color: white;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.survey-editor .survey-editor__header-right .survey-editor__header-button:hover {
  background-color: rgb(239.4285714286, 146, 107.0714285714);
  cursor: pointer;
}

.survey-editor-layout {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}
.survey-editor-main {
  display: flex;
  flex: 1;
  overflow: hidden;
}
.survey-editor-workspace {
  flex: 1;
  overflow-y: auto;
  background-color: #eeeef0;
}

.survey-editor {
  height: 100%;
  overflow-x: hidden !important;
}
.survey-editor .survey-editor__wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  height: 100%;
  overflow: auto;
  padding: 40px;
}
.survey-editor .survey-editor__content {
  max-width: 1250px;
  width: 100%;
  margin: 0 auto;
  padding: 30px 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.survey-editor .survey-editor__center {
  display: flex;
  justify-content: center;
  align-items: center;
}
.survey-editor .modal-new-page {
  display: flex;
  flex-direction: column;
}
.survey-editor .modal-new-page > * {
  margin-bottom: 12px;
}
.survey-editor .survey-element {
  background-color: var(--bg-card);
  border-radius: calc(var(--radius) * 1.5);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
}
.survey-editor .survey-element > .survey-element__header {
  background-color: var(--brand);
  color: var(--text-on-brand);
  font-weight: 600;
  border-radius: calc(var(--radius) * 1.5) calc(var(--radius) * 1.5) 0 0;
  display: flex;
  font-size: 14px;
  align-items: center;
  padding: 8px 16px;
}
.survey-editor .survey-element > .survey-element__header > i {
  font-size: 13px;
  margin-left: 8px;
  font-weight: 400;
}
.survey-editor .survey-element > .survey-element__header button {
  color: var(--brand);
  background-color: #fff;
  margin-left: 6px;
  border-radius: var(--radius);
  padding: 4px;
  width: 28px;
  height: 28px;
  fill: var(--brand);
}
.survey-editor .survey-element > .survey-element__header button:hover {
  background-color: var(--bg-secondary);
}
.survey-editor .survey-element > .survey-element__header button.main {
  background-color: var(--brand);
  border: 2px solid #fff;
  fill: #fff;
  color: #fff;
}
.survey-editor .survey-element > .survey-element__header button.main:hover {
  background-color: var(--brand-active);
}
.survey-editor .survey-element .survey-element__spacer {
  flex-grow: 1;
}
.survey-editor .survey-element .survey-element__content {
  padding: 20px;
  padding-bottom: 12px;
  flex-grow: 1;
}
.survey-editor .survey-element-child {
  display: flex;
  margin-bottom: 12px;
}
.survey-editor .survey-element-child .survey-element-child__left, .survey-editor .survey-element-child > .survey-element-child__right {
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) * 1.5);
  overflow-wrap: anywhere;
  width: 290px;
  overflow: hidden;
  background-color: var(--bg-card);
}
.survey-editor .survey-element-child .survey-element-child__left > div, .survey-editor .survey-element-child > .survey-element-child__right > div {
  padding: 10px 16px;
  min-width: 184px;
}
.survey-editor .survey-element-child .survey-element-child__left {
  min-width: 220px;
}
.survey-editor .survey-element-child .survey-element-child__left h6 {
  font-size: 13px;
  font-weight: 600;
  color: var(--brand);
  margin-bottom: 8px;
}
.survey-editor .survey-element-child .survey-element-child__left table {
  width: 100%;
  border-collapse: collapse;
}
.survey-editor .survey-element-child .survey-element-child__left table td {
  padding: 3px 0;
  color: var(--text-muted);
  font-size: 13px;
}
.survey-editor .survey-element-child .survey-element-child__left table tr > td:first-child {
  font-weight: 500;
  color: var(--text-main);
}
.survey-editor .survey-element-child.error .error-message {
  color: #C93E3E;
  font-weight: bold;
  text-align: left;
  margin-bottom: 20px;
}
.survey-editor .survey-element-child.error .survey-element-child__left, .survey-editor .survey-element-child.error .survey-element-child__right {
  background-color: #fce8e8;
}
.survey-editor .survey-element-child .survey-element-child__bottom {
  border-radius: 0 0 calc(var(--radius) * 1.5) calc(var(--radius) * 1.5);
  background-color: var(--brand-light);
  padding: 8px 12px;
  border-top: 1px solid var(--border);
}
.survey-editor .survey-element-child .survey-element-child__bottom button {
  background-color: var(--bg-card);
  padding: 4px;
  width: 28px;
  height: 28px;
  fill: var(--brand);
  color: var(--brand);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.survey-editor .survey-element-child .survey-element-child__bottom button:first-of-type:not(.default), .survey-editor .survey-element-child .survey-element-child__bottom button.main {
  background-color: var(--brand);
  fill: #fff;
  color: #fff;
  border-color: var(--brand);
}
.survey-editor .survey-element-child .survey-element-child__bottom button.delete-button.ds-btn-outline {
  background-color: #c42020;
  fill: #fff;
  color: #fff;
  border-color: #c42020;
}
.survey-editor .survey-element-child .survey-element-child__bottom button.delete-button.ds-btn-outline:hover {
  background-color: #b91c1c;
  border-color: #b91c1c;
}
.survey-editor .survey-element-child .survey-element-child__right {
  flex-grow: 1;
  margin-left: 12px;
  padding: 16px;
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
}
.survey-editor .survey-element-child .survey-element-child__right > div {
  overflow: hidden;
  height: 100%;
}
.survey-editor .survey-element-child .survey-element-child__right h1 {
  padding-bottom: 16px;
  color: var(--brand);
}
.survey-editor .survey-element-child .survey-element-child__right > i {
  color: var(--text-muted);
  font-size: 13px;
}

/* --- Editor Sidebar (mirrors AppSidebar styles) --- */
.ds-editor-sidebar {
  width: var(--sidebar-width);
  min-width: var(--sidebar-width);
  height: 100%;
  background-color: #fff;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  overflow-y: auto;
  transition: width 0.2s;
}
.ds-editor-sidebar-collapsed {
  width: var(--sidebar-width-collapsed);
  min-width: var(--sidebar-width-collapsed);
}
.ds-editor-sidebar-nav {
  flex: 1;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ds-editor-sidebar-items {
  list-style: none;
  margin: 0;
  padding: 0;
}
.ds-editor-sidebar-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 14px;
  border: none;
  background: none;
  font-size: 14px;
  font-family: inherit;
  color: var(--text-muted);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.15s;
  text-align: left;
}
.ds-editor-sidebar-item:hover {
  background-color: var(--bg-secondary);
  color: var(--text-main);
}
.ds-editor-sidebar-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
}
/* Chevron toggle */
.ds-editor-sidebar-toggle {
  margin-left: auto;
  background: none;
  border: none;
  padding: 2px;
  cursor: pointer;
  color: inherit;
  opacity: 0.5;
  display: flex;
  align-items: center;
  border-radius: 4px;
  transition: opacity 0.15s;
}
.ds-editor-sidebar-toggle:hover {
  opacity: 1;
}
/* Sub-items container */
.ds-editor-sidebar-subitems {
  list-style: none;
  margin: 0;
  padding: 0;
  overflow: visible;
}
.ds-editor-sidebar-child-li {
  position: relative;
}
/* Connector from parent down into subitems */
.ds-editor-sidebar-li-open {
  position: relative;
}
.ds-editor-sidebar-li-open > .ds-editor-sidebar-item::after {
  content: '';
  position: absolute;
  left: 24px;
  bottom: 0;
  height: 8px;
  border-left: 1px solid var(--border);
}
/* Vertical trace line */
.ds-editor-sidebar-child-li::before {
  content: '';
  position: absolute;
  left: 24px;
  top: 0;
  height: 100%;
  border-left: 1px solid var(--border);
  z-index: 1;
  pointer-events: none;
}
/* Horizontal branch line */
.ds-editor-sidebar-child-li::after {
  content: '';
  position: absolute;
  left: 24px;
  top: 50%;
  width: 14px;
  border-top: 1px solid var(--border);
  z-index: 1;
  pointer-events: none;
}
/* Last child: L shape (cut vertical line at 50%) */
.ds-editor-sidebar-child-li:last-child::before {
  height: 50%;
}
/* Sub-item indented with space for trace lines */
.ds-editor-sidebar-item-sub {
  padding: 8px 14px 8px 48px;
  font-size: 13px;
}
/* Collapsed state */
.ds-editor-sidebar-collapsed .ds-editor-sidebar-item {
  justify-content: center;
  padding: 10px;
}
.ds-editor-sidebar-collapsed .ds-editor-sidebar-item-sub {
  padding: 8px;
}
.ds-editor-sidebar-collapsed .ds-editor-sidebar-child-li::before,
.ds-editor-sidebar-collapsed .ds-editor-sidebar-child-li::after,
.ds-editor-sidebar-collapsed .ds-editor-sidebar-li-open > .ds-editor-sidebar-item::after {
  display: none;
}

.survey-editor__survey-links-modal h3 {
  margin-bottom: 10px;
}
.survey-editor__survey-links-modal h3:first-of-type {
  margin-bottom: 20px;
}
.survey-editor__survey-links-modal div {
  margin-bottom: 5px;
}
.survey-editor__survey-links-modal .link {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
  color: #417bc7;
  fill: #417bc7;
  font-size: 16px;
  background-color: #f1f1f1;
  padding: 10px;
}
.survey-editor__survey-links-modal .link a {
  margin-left: 10px;
}
.survey-editor__survey-links-modal .link a svg:hover {
  stroke: rgb(143.7804878049, 177.7317073171, 222.2195121951);
  cursor: pointer;
}
.survey-editor__survey-links-modal .link a svg:active {
  stroke: rgb(42.6829268293, 86.8902439024, 144.8170731707);
}
.survey-editor__survey-links-modal .link span:hover {
  color: rgb(124.0853658537, 164.0487804878, 216.4146341463);
  cursor: pointer;
}
.survey-editor__survey-links-modal .link span:active {
  color: rgb(42.6829268293, 86.8902439024, 144.8170731707);
}

.page {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  height: 100%;
  overflow: auto;
  padding: 40px;
}

.page-block {
  width: 100%;
}
.page-block.page-block--center {
  max-width: 1600px;
}
.page-block.page-block--grow {
  flex-grow: 1;
}
.page-block.page-block--transparent {
  flex-grow: 1;
}
.page-block.page-block--grid {
  display: grid;
  grid-gap: 20px;
  grid-template-columns: repeat(1, minmax(0, 1fr));
}
@media (min-width: 62em) {
  .page-block.page-block--grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 96em) {
  .page-block.page-block--grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.page-block.page-block--grid .span-2 {
  grid-column: span 1;
}
@media (min-width: 62em) {
  .page-block.page-block--grid .span-2 {
    grid-column: span 2;
  }
}
@media (min-width: 96em) {
  .page-block.page-block--grid .span-2 {
    grid-column: span 2;
  }
}
.page-block.page-block--grid .span-3 {
  grid-column: span 1;
}
@media (min-width: 62em) {
  .page-block.page-block--grid .span-3 {
    grid-column: span 2;
  }
}
@media (min-width: 96em) {
  .page-block.page-block--grid .span-3 {
    grid-column: span 3;
  }
}

.survey-exports-format-modal .survey-exports-format-modal__content {
  display: flex;
  flex-direction: column;
}
.survey-exports-format-modal .survey-exports-format-modal__content h4 {
  font-size: 16px;
  font-weight: 500;
  margin: 0;
  margin-bottom: 10px;
  margin-top: 20px;
  color: #707070;
}
.survey-exports-format-modal .survey-exports-format-modal__content h4:first-of-type {
  margin-top: 0;
}
.survey-exports-format-modal .survey-exports-format-modal__content .check {
  margin-top: 20px;
}
.survey-exports-format-modal .survey-exports-format-modal__content .ui-select {
  font-weight: bold;
}
.survey-exports-format-modal .survey-exports-format-modal__content .ui-input {
  margin-top: 10px;
}
.survey-exports-format-modal .survey-exports-format-modal__content .ui-table {
  margin-top: 20px;
}
.survey-exports-format-modal .ui-modal__footer button {
  min-width: 0px;
}

.survey-exports {
  color: #828282;
}
.survey-exports .ui-table.ui-table--scrollable table td, .survey-exports .ui-table.ui-table--scrollable table th {
  padding: 0 20px;
}
.survey-exports .page-header__buttons button:first-child {
  margin-right: 0;
}
.survey-exports .survey-exports__format-table {
  width: 100%;
  max-width: 1600px;
}
.survey-exports .survey-exports__format-table thead tr:hover {
  background-color: white;
}
.survey-exports .survey-exports__format-table thead th {
  font-weight: 600;
}
.survey-exports .survey-exports__format-table .selected {
  background-color: rgb(247.6857142857, 203.8, 185.5142857143);
}
.survey-exports .survey-exports__format-table .selected:hover {
  color: #fff;
  background-color: rgb(239.4285714286, 146, 107.0714285714);
}
.survey-exports .survey-exports__format-table .selected:hover .survey-exports__format-element-order svg {
  stroke: #fff;
  fill: #fff;
}
.survey-exports .survey-exports__format-table .selected:hover .survey-exports__format-element-order:hover {
  color: #982727;
}
.survey-exports .survey-exports__format-table .selected:hover .survey-exports__format-element-order:hover svg {
  stroke: #982727;
  fill: #982727;
}
.survey-exports .survey-exports__format-table .event:hover {
  background-color: #fff;
}
.survey-exports .survey-exports__format-table .holding {
  background-color: rgb(253.5142857143, 244.6, 240.8857142857);
}
.survey-exports .survey-exports__format-table .dragging {
  background-color: lightgray;
}
.survey-exports .survey-exports__format-table .dragging input {
  background-color: lightgray;
}
.survey-exports .survey-exports__format-table .dragging td {
  border-color: gray;
}
.survey-exports .survey-exports__format-table .dragging .ui-checkbox__wrapper {
  background-color: lightgray;
  border-color: gray;
}
.survey-exports .survey-exports__format-table .dragging .ui-checkbox__wrapper.checked .ui-checkbox__checkmark {
  stroke: black;
}
.survey-exports .survey-exports__format-table .survey-exports__format-element-label {
  display: flex;
  gap: 15px;
  justify-content: space-between;
  align-items: center;
}
.survey-exports .survey-exports__format-table .survey-exports__format-element-label button {
  padding: 0;
  min-width: 25px;
  min-height: 25px;
  height: 30px;
  width: 30px;
}
.survey-exports .survey-exports__format-table .survey-exports__format-element-order {
  display: flex;
  align-items: center;
}
.survey-exports .survey-exports__format-table .survey-exports__format-element-order:hover {
  color: #ED8154;
  cursor: pointer;
}
.survey-exports .survey-exports__format-table .survey-exports__format-element-order:hover svg {
  stroke: #ED8154;
  fill: #ED8154;
}
.survey-exports .survey-exports__format-table .survey-exports__format-element-order svg {
  margin-right: 10px;
  stroke: #828282;
  fill: #828282;
}
.survey-exports .survey-exports__format-table .survey-exports__input {
  margin: 3px;
  display: flex;
  justify-content: space-between;
  gap: 5px;
}
.survey-exports .survey-exports__format-table .survey-exports__input .ui-input {
  min-height: 33px;
}
.survey-exports .survey-exports__no-templates {
  min-height: 80px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.survey-exports .survey-exports-card {
  background-color: #fff;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 4px 2px rgba(0, 0, 0, 0.1);
}
.survey-exports .survey-exports-card > .survey-exports-card__header {
  background-color: #ED8154;
  color: #fff;
  font-weight: bold;
  border-radius: 6px 6px 0 0;
  font-size: 14px;
  text-align: center;
  height: 40px;
  line-height: 40px;
}
.survey-exports .survey-exports-card > .survey-exports-card__header > i {
  font-size: 14px;
  margin-left: 10px;
}
.survey-exports .survey-exports__export-options {
  display: flex;
  justify-content: space-around;
  padding: 20px;
}
.survey-exports .survey-exports__export-options a, .survey-exports .survey-exports__export-options button {
  background-color: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 20px 40px;
  max-width: 300px;
  width: 100%;
  font-weight: 300;
  text-align: left;
  text-decoration: none;
}
.survey-exports .survey-exports__export-options a h1, .survey-exports .survey-exports__export-options button h1 {
  font-weight: 100;
  margin-bottom: 10px;
  color: #ED8154;
  font-weight: 400;
}
.survey-exports .survey-exports__export-options a p, .survey-exports .survey-exports__export-options button p {
  color: #828282;
  font-size: 11px;
}
.survey-exports .survey-exports__export-options a:hover, .survey-exports .survey-exports__export-options button:hover {
  border: 1px solid #ED8154;
  background-color: rgb(253.5142857143, 244.6, 240.8857142857);
  cursor: pointer;
  color: #ED8154;
}
.survey-exports .version-warning {
  color: #982727;
}
.survey-exports .copy-alert {
  animation: pulse-bg 1.6s ease-in-out 3;
  background-color: rgb(252.5428571429, 237.8, 231.6571428571);
}
@keyframes pulse-bg {
  0% {
    background-color: rgb(252.5428571429, 237.8, 231.6571428571);
  }
  50% {
    background-color: rgb(249.1428571429, 214, 199.3571428571);
  }
  100% {
    background-color: rgb(252.5428571429, 237.8, 231.6571428571);
  }
}
.survey-exports .survey-exports-card__actions {
  display: flex;
  grid-gap: 10px;
}
.survey-exports .survey-exports-card__actions .version-warning {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 28px;
  width: 28px;
}
.survey-exports .survey-exports-card__actions .version-warning svg {
  color: #982727;
  height: 20px;
  width: 20px;
}
.survey-exports .survey-exports-card__actions button, .survey-exports .survey-exports-card__actions a {
  background-color: #ED8154;
  border-radius: 4px;
  border: none;
  width: 28px;
  height: 28px;
  padding: 5px;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: normal;
}
.survey-exports .survey-exports-card__actions button:hover, .survey-exports .survey-exports-card__actions a:hover {
  background-color: rgb(239.4285714286, 146, 107.0714285714);
  cursor: pointer;
}
.survey-exports .survey-exports-card__actions button:disabled, .survey-exports .survey-exports-card__actions a:disabled {
  background-color: rgb(252.5428571429, 237.8, 231.6571428571);
  cursor: not-allowed;
}
.survey-exports .survey-exports-card__actions .remove-template {
  background-color: #982727;
}

.survey-exports__modal-export-button {
  border-radius: 8px;
  border: none;
  font-weight: bold;
  cursor: pointer;
  text-decoration: none;
  width: auto;
  min-width: 150px;
  min-height: 40px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  padding: 6px 12px;
  background-color: #ED8154;
  color: #fff;
}
.survey-exports__modal-export-button:hover {
  background-color: #ef926b;
}
.survey-exports__modal-export-button.disabled {
  background-color: rgb(252.5428571429, 237.8, 231.6571428571);
  cursor: not-allowed;
}

.live-report .ui-breadcrumb__item {
  cursor: default !important;
}

.report .question-filter-drawer .ui-checkbox__wrapper {
  border-color: var(--accent);
}
.report .question-filter-drawer .ui-checkbox__wrapper.checked {
  background-color: var(--accent);
}
.report .question-filter-drawer .ui-input:active:not(.ui-input--error), .report .question-filter-drawer .ui-input:focus:not(.ui-input--error), .report .question-filter-drawer .ui-input:focus-visible:not(.ui-input--error) {
  border-color: var(--accent);
  outline-color: var(--accent);
}
.report .ui-button--outline {
  border-color: var(--accent);
  color: var(--accent);
}
.report .ui-button--outline:hover {
  background-color: var(--hoverBright);
}

.survey-reports {
  color: #828282;
}
.survey-reports .ui-breadcrumb > ul > li .ui-breadcrumb__item {
  background-color: #fff;
  border: 2px solid var(--accent);
  color: var(--accent);
  fill: var(--accent);
}
.survey-reports .ui-breadcrumb > ul > li .ui-breadcrumb__item::before {
  background-color: #e4e4e4;
  border-bottom: 2px solid var(--accent);
  border-right: 2px solid var(--accent);
}
.survey-reports .ui-breadcrumb > ul > li .ui-breadcrumb__item::after {
  background-color: #fff;
  border-bottom: 2px solid var(--accent);
  border-right: 2px solid var(--accent);
}
.survey-reports .ui-breadcrumb > ul > li:last-child .ui-breadcrumb__item {
  color: #fff;
  background-color: var(--accent);
}
.survey-reports .ui-breadcrumb > ul > li:last-child .ui-breadcrumb__item::after {
  background-color: var(--accent);
}
.survey-reports .survey-reports__header-actions {
  display: flex;
  gap: 10px;
}
.survey-reports .survey-reports__header-actions .ui-button.ui-button--primary {
  background-color: var(--accent);
}
.survey-reports .survey-reports__header-actions .ui-button.ui-button--primary:hover {
  background-color: var(--accentHover);
}
.survey-reports .page-header__buttons .calculate {
  padding: 4px 9px;
}
.survey-reports .page-header__buttons button:first-child {
  margin-right: 0;
}
.survey-reports .question-result-page-button {
  border: 1px solid #ED8154;
  background-color: white;
  color: #ED8154;
  padding: 6px;
  border-radius: 4px;
}
.survey-reports .question-result-page-button:hover {
  cursor: pointer;
  background-color: rgb(252.5428571429, 237.8, 231.6571428571);
}
.survey-reports .question-result-page-button.active {
  background-color: #ED8154;
  color: white;
}
.survey-reports .survey-reports-counters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, auto));
  z-index: 2;
  gap: 20px;
  margin-bottom: 20px;
}
.survey-reports .survey-reports-counters .survey-reports-card {
  height: 125px;
  justify-content: center;
  align-items: center;
}
.survey-reports .survey-reports-counters .survey-reports-card > div {
  color: var(--accent);
  font-weight: 500;
}
.survey-reports .survey-reports-counters .survey-reports-card > div:first-of-type {
  font-weight: 300;
  font-size: 32px;
  margin-bottom: 20px;
}
.survey-reports .survey-reports-card {
  background-color: #fff;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 4px 2px rgba(0, 0, 0, 0.1);
}
.survey-reports .survey-reports-card.disabled i {
  color: #C93E3E;
  margin-right: 10px;
}
.survey-reports .survey-reports-card .question-entry {
  border-top: 1px solid #ddd;
  padding-top: 20px;
}
.survey-reports .survey-reports-card .question-entry .loop-controller {
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid #ddd;
}
.survey-reports .survey-reports-card .question-entry .loop-controller .loop-controller-details {
  display: flex;
  justify-content: space-between;
  align-content: center;
  border: 1px solid var(--accent);
  border-radius: 8px;
  padding: 10px;
}
.survey-reports .survey-reports-card .question-entry .loop-controller .loop-controller-details h2 {
  margin-bottom: 0;
  align-content: center;
}
.survey-reports .survey-reports-card .question-entry .loop-controller .loop-controller-details .ui-select {
  min-width: 15em;
}
.survey-reports .survey-reports-card .question-entry button:not(.ui-paginator__button) {
  min-height: 0;
  min-width: 0;
}
.survey-reports .survey-reports-card .question-entry .question-label {
  display: flex;
  justify-content: space-between;
}
.survey-reports .survey-reports-card .question-entry .essay {
  padding: 20px;
  border: 1px solid var(--accent);
  font-size: 14px;
  max-height: 200px;
  overflow: auto;
  white-space: pre-wrap;
}
.survey-reports .survey-reports-card .question-entry:first-child {
  border: 1px solid transparent;
  padding-top: 0;
}
.survey-reports .survey-reports-card .question-entry .bottom-locked-skeleton {
  border: none;
}
.survey-reports .survey-reports-card .question-entry .bottom-locked-skeleton td:before {
  position: absolute;
  content: "";
  right: 0;
  left: -2px;
  top: -1px;
  display: block;
  border-top: 1px solid gray;
}
.survey-reports .survey-reports-card .question-entry .bottom-locked {
  border: none;
}
.survey-reports .survey-reports-card .question-entry .bottom-locked td:before {
  position: absolute;
  content: "";
  right: 0;
  left: -2px;
  top: -1px;
  display: block;
  border-top: 1px solid var(--accent);
}
.survey-reports .survey-reports-card .question-entry .column-table tr:nth-last-child(2) {
  border: none;
}
.survey-reports .survey-reports-card .question-entry .matrix-numeric .column-table .ui-table--scrollable {
  margin-top: 10px;
}
.survey-reports .survey-reports-card .question-entry .ui-table table td, .survey-reports .survey-reports-card .question-entry .ui-table table th {
  padding: 5px 20px;
}
.survey-reports .survey-reports-card .question-result-disabled .checked {
  background-color: #FFAC89;
}
.survey-reports .survey-reports-card.questions {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 20px;
  margin-bottom: 20px;
}
.survey-reports .survey-reports-card.questions h2 {
  font-size: 20px;
  margin-bottom: 20px;
}
.survey-reports .survey-reports-card.questions h2 .skeleton-text {
  animation: skeleton-loading-text 2s linear infinite alternate;
}
@keyframes skeleton-loading-text {
  0% {
    color: #b5b5b5;
  }
  100% {
    color: #e8e8e8;
  }
}
.survey-reports .survey-reports-card.questions .top-bar {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
  align-items: center;
}
.survey-reports .survey-reports-card.questions .top-bar .skeleton {
  display: flex;
}
.survey-reports .survey-reports-card.questions .top-bar .skeleton .skeleton-item {
  background-color: #b5b5b5;
  border-radius: 8px;
  width: 80px;
  height: 20px;
}
.survey-reports .survey-reports-card.questions .top-bar .skeleton .skeleton-item:first-child {
  margin-right: 20px;
}
.survey-reports .survey-reports-card.questions .top-bar .right span {
  color: #417AC7;
}
.survey-reports .survey-reports-card.questions .graph-group {
  overflow: hidden;
  border-radius: 8px;
  border: 2px solid var(--accent);
  padding: 20px;
  margin-bottom: 20px;
}
.survey-reports .survey-reports-card.questions .graph-group .graph-legend {
  padding-top: 10px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, auto));
}
.survey-reports .survey-reports-card.questions .graph-group .graph-legend .legend {
  padding: 5px;
  display: flex;
  font-weight: 500;
}
.survey-reports .survey-reports-card.questions .graph-group .graph-legend .legend .legend-color {
  border-radius: 8px;
  margin-right: 10px;
  width: 14px;
  height: 14px;
  min-width: 14px;
  min-height: 14px;
  background-color: var(--accent);
}
.survey-reports .survey-reports-card.questions .graph-group .graph-legend .legend:hover, .survey-reports .survey-reports-card.questions .graph-group .graph-legend .legend.highlighted {
  font-weight: bold;
  color: var(--accentHover);
}
.survey-reports .survey-reports-card.questions .graph-group .graph-label {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
}
.survey-reports .survey-reports-card.questions .graph-group .graph-label .label {
  font-weight: 500;
  max-width: 150px;
  width: 100%;
  margin: 0 10px;
  text-align: center;
  max-height: 3em;
  overflow: hidden;
  display: -webkit-box;
  line-clamp: 3;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}
.survey-reports .survey-reports-card.questions .graph-group .graph {
  height: 210px;
  display: flex;
  justify-content: space-between;
}
.survey-reports .survey-reports-card.questions .graph-group .graph .bar {
  max-width: 150px;
  width: 100%;
  margin: 0 10px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  align-items: center;
}
.survey-reports .survey-reports-card.questions .graph-group .graph .bar .fill {
  background-color: var(--accent);
  width: 100%;
}
.survey-reports .survey-reports-card.questions .graph-group .graph .bar .ui-tooltip {
  z-index: 9999;
}
.survey-reports .survey-reports-card.questions .skeleton-table {
  border-color: gray;
}
.survey-reports .survey-reports-card.questions .skeleton-table th, .survey-reports .survey-reports-card.questions .skeleton-table td, .survey-reports .survey-reports-card.questions .skeleton-table tr {
  border-color: gray;
}
.survey-reports .survey-reports-card.questions .skeleton-table tr:hover:nth-child(even) {
  background-color: #f2f2f2;
}
.survey-reports .survey-reports-card.questions .skeleton-table tr:hover:nth-child(odd) {
  background-color: unset;
}
.survey-reports .survey-reports-card.questions .skeleton-table.ui-table--scrollable thead th:after {
  border-bottom: 1px solid gray;
}
.survey-reports .survey-reports-card.questions .quota-overall {
  font-size: 17px;
  font-weight: 500;
}
.survey-reports .survey-reports-card.questions .quota-results {
  padding-top: 20px;
  border-top: 1px solid #ddd;
}
.survey-reports .survey-reports-card.questions .quota-results:first-child {
  border: 1px solid transparent;
  padding-top: 0;
}
.survey-reports .survey-reports-card.questions .quota-header {
  display: flex;
  justify-content: space-between;
  padding-right: 20px;
}
.survey-reports .survey-reports-card.questions .quota-header div i {
  color: #C93E3E;
  margin-right: 10px;
}
.survey-reports .survey-reports-card.questions .quota-grid {
  max-height: 400px;
  overflow: hidden;
  overflow-y: auto;
  margin-top: 10px;
  box-shadow: 0 1px 0 0 rgba(0, 0, 0, 0.1);
}
.survey-reports .survey-reports-card.questions .quota-grid .cell-error {
  color: #C93E3E;
  background-color: rgb(247.8291497976, 229.3708502024, 229.3708502024);
  text-align: center;
}
.survey-reports .survey-reports-card.questions .quota-grid .cell-error > div {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}
.survey-reports .survey-reports-card.questions .quota-grid .cell-content {
  display: flex;
  justify-content: space-between;
}
.survey-reports .survey-reports-card.questions .quota-grid table {
  width: 100%;
  position: relative;
  border-collapse: collapse;
}
.survey-reports .survey-reports-card.questions .quota-grid table th {
  font-weight: 500;
  text-align: left;
  border-color: #982727;
}
.survey-reports .survey-reports-card.questions .quota-grid table th, .survey-reports .survey-reports-card.questions .quota-grid table td {
  height: 40px;
}
.survey-reports .survey-reports-card.questions .quota-grid table th:hover, .survey-reports .survey-reports-card.questions .quota-grid table td:hover {
  transition: background-color 0.1s;
  background-color: rgb(253.5142857143, 244.6, 240.8857142857);
}
.survey-reports .survey-reports-card.questions .quota-grid table th.highlighted, .survey-reports .survey-reports-card.questions .quota-grid table td.highlighted {
  transition: background-color 0.1s;
  background-color: rgb(253.5142857143, 244.6, 240.8857142857);
}
.survey-reports .survey-reports-card.questions .quota-grid table td {
  padding: 0 20px;
  border: 1px solid #ED8154;
}
.survey-reports .survey-reports-card.questions .quota-grid table .header-values {
  padding: 5px 20px 0 20px;
  background-color: #ED8154;
  color: #fff;
  width: 100%;
  height: calc(100% + 3px);
}
.survey-reports .survey-reports-card.questions .quota-grid table .header-values div {
  max-height: 2.5em;
  margin: 5px 0;
  padding: 0 5px;
}
.survey-reports .survey-reports-card.questions .quota-grid table .header-values, .survey-reports .survey-reports-card.questions .quota-grid table .cell-values {
  display: flex;
  justify-content: space-between;
}
.survey-reports .survey-reports-card.questions .quota-grid table .header-values div, .survey-reports .survey-reports-card.questions .quota-grid table .cell-values div {
  line-height: 1.5;
  overflow: hidden;
  text-align: center;
  display: flex;
  justify-content: center;
}
.survey-reports .survey-reports-card.questions .quota-grid table .header-values div:first-child, .survey-reports .survey-reports-card.questions .quota-grid table .cell-values div:first-child {
  justify-content: flex-start;
  text-align: left;
}
.survey-reports .survey-reports-card.questions .quota-grid table .header-values div:last-child, .survey-reports .survey-reports-card.questions .quota-grid table .cell-values div:last-child {
  justify-content: flex-end;
  text-align: right;
}
.survey-reports .survey-reports-card.questions .quota-grid table thead {
  padding-top: 2px;
}
.survey-reports .survey-reports-card.questions .quota-grid table thead th {
  position: sticky;
  top: 0px;
  background-color: white;
  z-index: 1;
  border-top: none;
  border: 1px solid #ED8154;
}
.survey-reports .survey-reports-card.questions .ui-table:not(.skeleton-table), .survey-reports .survey-reports-card.questions .ui-table--primary-horizontal:not(.skeleton-table) {
  border-color: var(--accent);
}
.survey-reports .survey-reports-card.questions table tbody {
  max-height: 200px;
}
.survey-reports .survey-reports-card.questions table thead th:last-of-type {
  text-align: center;
}
.survey-reports .survey-reports-card.questions table td:last-of-type {
  text-align: center;
}
.survey-reports .survey-reports-card.questions table tr {
  border-color: var(--accent);
}
.survey-reports .survey-reports-card.questions table tr:hover, .survey-reports .survey-reports-card.questions table tr.highlighted {
  background-color: var(--hoverBright);
}
.survey-reports .survey-reports-card.questions table td .highlighted {
  padding: 5px;
  border-radius: 8px;
  border: 1px solid var(--accent);
  background-color: var(--hoverBright);
}
.survey-reports .survey-reports-card.questions table td .not-highlighted {
  padding: 5px;
  border-radius: 8px;
  border: 1px solid transparent;
  background-color: transparent;
}
.survey-reports .survey-reports-card.questions table td .column-checkbox {
  padding-left: 1%;
}
.survey-reports .survey-reports-card > .survey-reports-card__header {
  padding: 20px;
  font-weight: bold;
  border-radius: 6px 6px 0 0;
  font-size: 16px;
}
.survey-reports .survey-reports-card > .survey-reports-card__header > i {
  font-size: 14px;
  margin-left: 10px;
}
.survey-reports .survey-reports-card .survey-reports-card__action-table {
  padding: 0 20px;
  width: 100%;
}
.survey-reports .survey-reports-card .survey-reports-card__action-table th {
  width: 30%;
  color: #417AC7;
  text-align: left;
}
.survey-reports .survey-reports-card .survey-reports-card__action-table td {
  text-align: left;
  font-weight: 500;
  padding: 5px 0;
}
.survey-reports .survey-reports-card .survey-reports-card__action-buttons {
  display: flex;
  gap: 20px;
  padding: 20px;
}
.survey-reports .survey-reports-card .survey-reports-card__action-buttons button {
  width: 100%;
}
.survey-reports .survey-reports-card__results-list {
  border-collapse: collapse;
}
.survey-reports .survey-reports-card__results-list td, .survey-reports .survey-reports-card__results-list th {
  border-bottom: 1px solid #ddd;
  text-align: left;
  min-height: 40px;
  padding: 10px;
}
.survey-reports .survey-reports-card__results-list .actions {
  padding: 0 20px;
  width: 10%;
}
.survey-reports .survey-reports-card__results-list .actions div {
  display: flex;
}
.survey-reports .survey-reports-card__results-list .actions button {
  margin: 0;
  margin-right: 20px;
  padding: 0;
  border: none;
  color: #ED8154;
  fill: #ED8154;
  cursor: pointer;
  background-color: transparent;
}
.survey-reports .survey-reports-card__results-list .actions button:hover {
  fill: rgb(239.4285714286, 146, 107.0714285714);
  color: rgb(239.4285714286, 146, 107.0714285714);
}
.survey-reports .delete-logs-button {
  border: 1px solid #ddd;
  border-radius: 4px;
  background-color: transparent;
  width: 30px;
  height: 30px;
  color: #828282;
  cursor: pointer;
}
.survey-reports .delete-logs-button:hover {
  color: #C93E3E;
  background-color: rgb(252.5428571429, 237.8, 231.6571428571);
}
.survey-reports .delete-logs-button:active {
  color: #982727;
}
.survey-reports .refresh-logs-button {
  border: 1px solid #ddd;
  border-radius: 4px;
  background-color: transparent;
  width: 30px;
  height: 30px;
  color: #828282;
  cursor: pointer;
}
.survey-reports .refresh-logs-button:hover {
  color: #ED8154;
  background-color: rgb(252.5428571429, 237.8, 231.6571428571);
}
.survey-reports .refresh-logs-button:active {
  color: #982727;
}

.survey-report__color-examples {
  color: #828282;
}
.survey-report__color-examples .title i {
  font-size: 14px;
}
.survey-report__color-examples .right {
  display: flex;
  width: 100%;
  justify-content: flex-end;
  padding: 0 20px;
}
.survey-report__color-examples .right button {
  min-width: 0;
}
.survey-report__color-examples .right button svg {
  transform: scaleX(-1);
  fill: #ED8154;
}
.survey-report__color-examples .grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.survey-report__color-examples table tbody {
  max-height: 200px;
}
.survey-report__color-examples table thead th:last-of-type {
  text-align: center;
}
.survey-report__color-examples table td:last-of-type {
  text-align: center;
}
.survey-report__color-examples table tr.highlighted {
  background-color: var(--primaryBright);
}
.survey-report__color-examples table td .highlighted {
  padding: 5px;
  border-radius: 8px;
  border: 1px solid var(--primary);
  background-color: var(--primaryBright);
}
.survey-report__color-examples table td .not-highlighted {
  padding: 5px;
  border-radius: 8px;
  border: 1px solid transparent;
  background-color: transparent;
}
.survey-report__color-examples .example-content {
  color: #828282;
  padding: 10px;
  margin-bottom: 10px;
}
.survey-report__color-examples .example-content .ui-table.ui-table--primary-horizontal tr, .survey-report__color-examples .example-content .ui-table.ui-table--primary-horizontal {
  border-color: var(--primary);
}
.survey-report__color-examples .example-content .ui-table.ui-table--striped tr:hover {
  background-color: var(--primaryBright);
}
.survey-report__color-examples .graph-group {
  overflow: hidden;
  border-radius: 8px;
  border: 2px solid var(--primary);
  padding: 20px;
  margin-bottom: 20px;
}
.survey-report__color-examples .graph-group .graph-legend {
  padding-top: 10px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, auto));
}
.survey-report__color-examples .graph-group .graph-legend .legend {
  padding: 5px;
  display: flex;
  font-weight: 500;
}
.survey-report__color-examples .graph-group .graph-legend .legend .legend-color {
  border-radius: 8px;
  margin-right: 10px;
  width: 14px;
  height: 14px;
  min-width: 14px;
  min-height: 14px;
  background-color: var(--primary);
}
.survey-report__color-examples .graph-group .graph-legend .legend:hover, .survey-report__color-examples .graph-group .graph-legend .legend.highlighted {
  font-weight: bold;
  color: var(--primary);
}
.survey-report__color-examples .graph-group .graph-label {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
}
.survey-report__color-examples .graph-group .graph-label .label {
  color: #828282;
  font-weight: 500;
  max-width: 150px;
  width: 100%;
  margin: 0 10px;
  text-align: center;
  max-height: 3em;
  overflow: hidden;
  display: -webkit-box;
  line-clamp: 3;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}
.survey-report__color-examples .graph-group .graph {
  height: 210px;
  display: flex;
  justify-content: space-between;
}
.survey-report__color-examples .graph-group .graph .bar {
  max-width: 150px;
  width: 100%;
  margin: 0 10px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  align-items: center;
}
.survey-report__color-examples .graph-group .graph .bar .fill {
  width: 100%;
  background-color: var(--primary);
}
.survey-report__color-examples .graph-group .graph .bar .ui-tooltip {
  z-index: 9999;
}
.survey-report__color-examples .sidebar-button {
  max-width: 70px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 50px;
  height: 100%;
  cursor: pointer;
  color: #828282;
  fill: #828282;
}
.survey-report__color-examples .sidebar-button:hover {
  background-color: var(--primaryBright);
  color: var(--primary);
  fill: var(--primary);
}
.survey-report__color-examples .sidebar-label {
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  color: #777;
  transition: all;
  justify-content: start;
  padding: 10px 25px;
}
.survey-report__color-examples .sidebar-label > div {
  line-height: 2;
  position: relative;
  left: 0;
  transition: left 0.3s, justify-content 0.3s, overflow 0.3s;
  transition-delay: -0.15s;
}
.survey-report__color-examples .sidebar-item {
  color: #828282;
  padding: 10px 25px;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 10px;
}
.survey-report__color-examples .sidebar-item:not(.label):hover {
  background-color: var(--primaryBright);
  cursor: pointer;
}
.survey-report__color-examples .sidebar-item > * {
  pointer-events: none;
}
.survey-report__color-examples h4 {
  font-size: 14px;
  font-weight: bold;
  margin: 0;
  color: #707070;
}
.survey-report__color-examples .ui-breadcrumb {
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}
.survey-report__color-examples .ui-breadcrumb ul {
  display: flex;
}
.survey-report__color-examples .ui-breadcrumb ul li {
  display: inline-flex;
  margin: 0px;
  padding: 0px;
  margin-right: 10px;
}
.survey-report__color-examples .ui-breadcrumb ul li .ui-breadcrumb__item {
  position: relative;
  padding: 0px 20px;
  height: 40px;
  background-color: #fff;
  border: 2px solid var(--primary);
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-left: 30px;
  color: var(--primary);
  fill: var(--primary);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  padding-right: 20px;
  cursor: default;
}
.survey-report__color-examples .ui-breadcrumb ul li .ui-breadcrumb__item::before {
  content: "";
  position: absolute;
  box-sizing: border-box;
  left: -15px;
  top: 4px;
  width: 28px;
  height: 28px;
  background-color: #fff;
  border-bottom: 2px solid var(--primary);
  border-right: 2px solid var(--primary);
  transform: rotate(-45deg);
  z-index: 8;
  flex-wrap: wrap;
}
.survey-report__color-examples .ui-breadcrumb ul li .ui-breadcrumb__item::after {
  content: "";
  position: absolute;
  box-sizing: border-box;
  left: 100%;
  top: 4px;
  width: 28px;
  height: 28px;
  background-color: #fff;
  border-bottom: 2px solid var(--primary);
  border-right: 2px solid var(--primary);
  transform: rotate(-45deg);
  margin-left: -12px;
  z-index: 9;
}
.survey-report__color-examples .ui-breadcrumb ul li:first-child .ui-breadcrumb__item {
  padding-left: 20px;
  border-top-left-radius: 2px;
  border-bottom-left-radius: 2px;
}
.survey-report__color-examples .ui-breadcrumb ul li:first-child .ui-breadcrumb__item::before {
  display: none;
}
.survey-report__color-examples .ui-breadcrumb ul li:last-child .ui-breadcrumb__item {
  color: #fff;
  background-color: var(--primary);
}
.survey-report__color-examples .ui-breadcrumb ul li:last-child .ui-breadcrumb__item::after {
  background-color: var(--primary);
}
.survey-report__color-examples .ui-button.ui-button--primary {
  min-width: 24px;
  background-color: var(--primary);
}
.survey-report__color-examples .ui-button.ui-button--primary:hover {
  background-color: var(--primaryHover);
}

.survey-results {
  color: #828282;
}
.survey-results .survey-results__header-actions {
  display: flex;
  gap: 10px;
}
.survey-results .page-header__buttons .calculate {
  padding: 4px 9px;
}
.survey-results .page-header__buttons button:first-child {
  margin-right: 0;
}
.survey-results .question-result-page-button {
  border: 1px solid #ED8154;
  background-color: white;
  color: #ED8154;
  padding: 6px;
  border-radius: 4px;
}
.survey-results .question-result-page-button:hover {
  cursor: pointer;
  background-color: rgb(252.5428571429, 237.8, 231.6571428571);
}
.survey-results .question-result-page-button.active {
  background-color: #ED8154;
  color: white;
}
.survey-results .survey-results-counters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, auto));
  z-index: 2;
  gap: 20px;
  margin-bottom: 20px;
}
.survey-results .survey-results-counters .survey-results-card {
  height: 125px;
  justify-content: center;
  align-items: center;
}
.survey-results .survey-results-counters .survey-results-card > div {
  color: #ED8154;
  font-weight: 500;
}
.survey-results .survey-results-counters .survey-results-card > div:first-of-type {
  font-weight: 300;
  font-size: 32px;
  margin-bottom: 20px;
}
.survey-results .survey-results-card {
  background-color: #fff;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 4px 2px rgba(0, 0, 0, 0.1);
}
.survey-results .survey-results-card.disabled i {
  color: #C93E3E;
  margin-right: 10px;
}
.survey-results .survey-results-card .question-entry {
  border-top: 1px solid #ddd;
  padding-top: 20px;
}
.survey-results .survey-results-card .question-entry .loop-controller {
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid #ddd;
}
.survey-results .survey-results-card .question-entry .loop-controller .loop-controller-details {
  display: flex;
  justify-content: space-between;
  align-content: center;
  border: 1px solid #ED8154;
  border-radius: 8px;
  padding: 10px;
}
.survey-results .survey-results-card .question-entry .loop-controller .loop-controller-details h2 {
  margin-bottom: 0;
  align-content: center;
}
.survey-results .survey-results-card .question-entry .loop-controller .loop-controller-details .ds-select-trigger {
  min-width: 15em;
}
.survey-results .survey-results-card .question-entry button:not(.ds-paginator-btn) {
  min-height: 0;
  min-width: 0;
}
.survey-results .survey-results-card .question-entry .question-label {
  display: flex;
  justify-content: space-between;
}
.survey-results .survey-results-card .question-entry .essay {
  padding: 20px;
  border: 1px solid #ED8154;
  font-size: 14px;
  max-height: 200px;
  overflow: auto;
  white-space: pre-wrap;
}
.survey-results .survey-results-card .question-entry:first-child {
  border: 1px solid transparent;
  padding-top: 0;
}
.survey-results .survey-results-card .question-entry .bottom-locked-skeleton {
  border: none;
}
.survey-results .survey-results-card .question-entry .bottom-locked-skeleton td:before {
  position: absolute;
  content: "";
  right: 0;
  left: -2px;
  top: -1px;
  display: block;
  border-top: 1px solid gray;
}
.survey-results .survey-results-card .question-entry .bottom-locked {
  border: none;
}
.survey-results .survey-results-card .question-entry .bottom-locked td:before {
  position: absolute;
  content: "";
  right: 0;
  left: -2px;
  top: -1px;
  display: block;
  border-top: 1px solid #ED8154;
}
.survey-results .survey-results-card .question-entry .column-table tr:nth-last-child(2) {
  border: none;
}
.survey-results .survey-results-card .question-entry .matrix-numeric .column-table .ds-table-wrapper {
  margin-top: 10px;
}
.survey-results .survey-results-card .question-entry .ds-table-wrapper table td, .survey-results .survey-results-card .question-entry .ds-table-wrapper table th {
  padding: 5px 20px;
}
.survey-results .survey-results-card .question-result-disabled .checked {
  background-color: #FFAC89;
}
.survey-results .survey-results-card.questions {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 20px;
  margin-bottom: 20px;
}
.survey-results .survey-results-card.questions h2 {
  font-size: 20px;
  margin-bottom: 20px;
}
.survey-results .survey-results-card.questions h2 .skeleton-text {
  animation: skeleton-loading-text 2s linear infinite alternate;
}
@keyframes skeleton-loading-text {
  0% {
    color: #b5b5b5;
  }
  100% {
    color: #e8e8e8;
  }
}
.survey-results .survey-results-card.questions .top-bar {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
  align-items: center;
}
.survey-results .survey-results-card.questions .top-bar .skeleton {
  display: flex;
}
.survey-results .survey-results-card.questions .top-bar .skeleton .skeleton-item {
  background-color: #b5b5b5;
  border-radius: 8px;
  width: 80px;
  height: 20px;
}
.survey-results .survey-results-card.questions .top-bar .skeleton .skeleton-item:first-child {
  margin-right: 20px;
}
.survey-results .survey-results-card.questions .top-bar .right span {
  color: #417AC7;
}
.survey-results .survey-results-card.questions .graph-group {
  overflow: hidden;
  border-radius: 8px;
  border: 2px solid #ED8154;
  padding: 20px;
  margin-bottom: 20px;
}
.survey-results .survey-results-card.questions .graph-group .graph-legend {
  padding-top: 10px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, auto));
}
.survey-results .survey-results-card.questions .graph-group .graph-legend .legend {
  padding: 5px;
  display: flex;
  font-weight: 500;
}
.survey-results .survey-results-card.questions .graph-group .graph-legend .legend .legend-color {
  border-radius: 8px;
  margin-right: 10px;
  width: 14px;
  height: 14px;
  min-width: 14px;
  min-height: 14px;
  background-color: #ED8154;
}
.survey-results .survey-results-card.questions .graph-group .graph-legend .legend:hover, .survey-results .survey-results-card.questions .graph-group .graph-legend .legend.highlighted {
  font-weight: bold;
  color: rgb(239.4285714286, 146, 107.0714285714);
}
.survey-results .survey-results-card.questions .graph-group .graph-label {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
}
.survey-results .survey-results-card.questions .graph-group .graph-label .label {
  font-weight: 500;
  max-width: 150px;
  width: 100%;
  margin: 0 10px;
  text-align: center;
  max-height: 3em;
  overflow: hidden;
  display: -webkit-box;
  line-clamp: 3;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}
.survey-results .survey-results-card.questions .graph-group .graph {
  height: 210px;
  display: flex;
  justify-content: space-between;
}
.survey-results .survey-results-card.questions .graph-group .graph .bar {
  max-width: 150px;
  width: 100%;
  margin: 0 10px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  align-items: center;
}
.survey-results .survey-results-card.questions .graph-group .graph .bar .fill {
  background-color: #ED8154;
  width: 100%;
}
.survey-results .survey-results-card.questions .graph-group .graph .bar .ds-tooltip {
  z-index: 9999;
}
.survey-results .survey-results-card.questions .skeleton-table {
  border-color: gray;
}
.survey-results .survey-results-card.questions .skeleton-table th, .survey-results .survey-results-card.questions .skeleton-table td, .survey-results .survey-results-card.questions .skeleton-table tr {
  border-color: gray;
}
.survey-results .survey-results-card.questions .skeleton-table tr:hover:nth-child(even) {
  background-color: #f2f2f2;
}
.survey-results .survey-results-card.questions .skeleton-table tr:hover:nth-child(odd) {
  background-color: unset;
}
.survey-results .survey-results-card.questions .skeleton-table.ds-table-wrapper thead th:after {
  border-bottom: 1px solid gray;
}
.survey-results .survey-results-card.questions .quota-overall {
  font-size: 17px;
  font-weight: 500;
}
.survey-results .survey-results-card.questions .quota-results {
  padding-top: 20px;
  border-top: 1px solid #ddd;
}
.survey-results .survey-results-card.questions .quota-results:first-child {
  border: 1px solid transparent;
  padding-top: 0;
}
.survey-results .survey-results-card.questions .quota-header {
  display: flex;
  justify-content: space-between;
  padding-right: 20px;
}
.survey-results .survey-results-card.questions .quota-header div i {
  color: #C93E3E;
  margin-right: 10px;
}
.survey-results .survey-results-card.questions .quota-grid {
  max-height: 400px;
  overflow: hidden;
  overflow-y: auto;
  margin-top: 10px;
  box-shadow: 0 1px 0 0 rgba(0, 0, 0, 0.1);
}
.survey-results .survey-results-card.questions .quota-grid .cell-error {
  color: #C93E3E;
  background-color: rgb(247.8291497976, 229.3708502024, 229.3708502024);
  text-align: center;
}
.survey-results .survey-results-card.questions .quota-grid .cell-error > div {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}
.survey-results .survey-results-card.questions .quota-grid .cell-content {
  display: flex;
  justify-content: space-between;
}
.survey-results .survey-results-card.questions .quota-grid table {
  width: 100%;
  position: relative;
  border-collapse: collapse;
}
.survey-results .survey-results-card.questions .quota-grid table th {
  font-weight: 500;
  text-align: left;
  border-color: #982727;
}
.survey-results .survey-results-card.questions .quota-grid table th, .survey-results .survey-results-card.questions .quota-grid table td {
  height: 40px;
}
.survey-results .survey-results-card.questions .quota-grid table th:hover, .survey-results .survey-results-card.questions .quota-grid table td:hover {
  transition: background-color 0.1s;
  background-color: rgb(253.5142857143, 244.6, 240.8857142857);
}
.survey-results .survey-results-card.questions .quota-grid table th.highlighted, .survey-results .survey-results-card.questions .quota-grid table td.highlighted {
  transition: background-color 0.1s;
  background-color: rgb(253.5142857143, 244.6, 240.8857142857);
}
.survey-results .survey-results-card.questions .quota-grid table td {
  padding: 0 20px;
  border: 1px solid #ED8154;
}
.survey-results .survey-results-card.questions .quota-grid table .header-values {
  padding: 5px 20px 0 20px;
  background-color: #ED8154;
  color: #fff;
  width: 100%;
  height: calc(100% + 3px);
}
.survey-results .survey-results-card.questions .quota-grid table .header-values div {
  max-height: 2.5em;
  margin: 5px 0;
  padding: 0 5px;
}
.survey-results .survey-results-card.questions .quota-grid table .header-values, .survey-results .survey-results-card.questions .quota-grid table .cell-values {
  display: flex;
  justify-content: space-between;
}
.survey-results .survey-results-card.questions .quota-grid table .header-values div, .survey-results .survey-results-card.questions .quota-grid table .cell-values div {
  line-height: 1.5;
  overflow: hidden;
  text-align: center;
  display: flex;
  justify-content: center;
}
.survey-results .survey-results-card.questions .quota-grid table .header-values div:first-child, .survey-results .survey-results-card.questions .quota-grid table .cell-values div:first-child {
  justify-content: flex-start;
  text-align: left;
}
.survey-results .survey-results-card.questions .quota-grid table .header-values div:last-child, .survey-results .survey-results-card.questions .quota-grid table .cell-values div:last-child {
  justify-content: flex-end;
  text-align: right;
}
.survey-results .survey-results-card.questions .quota-grid table thead {
  padding-top: 2px;
}
.survey-results .survey-results-card.questions .quota-grid table thead th {
  position: sticky;
  top: 0px;
  background-color: white;
  z-index: 1;
  border-top: none;
  border: 1px solid #ED8154;
}
.survey-results .survey-results-card.questions table tbody {
  max-height: 200px;
}
.survey-results .survey-results-card.questions table thead th:last-of-type {
  text-align: center;
}
.survey-results .survey-results-card.questions table td:last-of-type {
  text-align: center;
}
.survey-results .survey-results-card.questions table tr.highlighted {
  background-color: rgb(252.5428571429, 237.8, 231.6571428571);
}
.survey-results .survey-results-card.questions table td .highlighted {
  padding: 5px;
  border-radius: 8px;
  border: 1px solid #ED8154;
  background-color: rgb(252.5428571429, 237.8, 231.6571428571);
}
.survey-results .survey-results-card.questions table td .not-highlighted {
  padding: 5px;
  border-radius: 8px;
  border: 1px solid transparent;
  background-color: transparent;
}
.survey-results .survey-results-card.questions table td .column-checkbox {
  padding-left: 1%;
}
.survey-results .survey-results-card > .survey-results-card__header {
  padding: 20px;
  font-weight: bold;
  border-radius: 6px 6px 0 0;
  font-size: 16px;
}
.survey-results .survey-results-card > .survey-results-card__header > i {
  font-size: 14px;
  margin-left: 10px;
}
.survey-results .survey-results-card .survey-results-card__action-table {
  padding: 0 20px;
  width: 100%;
}
.survey-results .survey-results-card .survey-results-card__action-table th {
  width: 30%;
  color: #417AC7;
  text-align: left;
}
.survey-results .survey-results-card .survey-results-card__action-table td {
  text-align: left;
  font-weight: 500;
  padding: 5px 0;
}
.survey-results .survey-results-card .survey-results-card__action-buttons {
  display: flex;
  gap: 20px;
  padding: 20px;
}
.survey-results .survey-results-card .survey-results-card__action-buttons button {
  width: 100%;
}
.survey-results .survey-results-card__results-list {
  border-collapse: collapse;
}
.survey-results .survey-results-card__results-list td, .survey-results .survey-results-card__results-list th {
  border-bottom: 1px solid #ddd;
  text-align: left;
  min-height: 40px;
  padding: 10px;
}
.survey-results .survey-results-card__results-list .actions {
  padding: 0 20px;
  width: 10%;
}
.survey-results .survey-results-card__results-list .actions div {
  display: flex;
}
.survey-results .survey-results-card__results-list .actions button {
  margin: 0;
  margin-right: 20px;
  padding: 0;
  border: none;
  color: #ED8154;
  fill: #ED8154;
  cursor: pointer;
  background-color: transparent;
}
.survey-results .survey-results-card__results-list .actions button:hover {
  fill: rgb(239.4285714286, 146, 107.0714285714);
  color: rgb(239.4285714286, 146, 107.0714285714);
}
.survey-results .delete-logs-button {
  border: 1px solid #ddd;
  border-radius: 4px;
  background-color: transparent;
  width: 30px;
  height: 30px;
  color: #828282;
  cursor: pointer;
}
.survey-results .delete-logs-button:hover {
  color: #C93E3E;
  background-color: rgb(252.5428571429, 237.8, 231.6571428571);
}
.survey-results .delete-logs-button:active {
  color: #982727;
}
.survey-results .refresh-logs-button {
  border: 1px solid #ddd;
  border-radius: 4px;
  background-color: transparent;
  width: 30px;
  height: 30px;
  color: #828282;
  cursor: pointer;
}
.survey-results .refresh-logs-button:hover {
  color: #ED8154;
  background-color: rgb(252.5428571429, 237.8, 231.6571428571);
}
.survey-results .refresh-logs-button:active {
  color: #982727;
}

.survey-detailed-results {
  color: #828282;
}
.survey-detailed-results .survey-deteailed-results-top {
  display: flex;
  gap: 10px;
  white-space: nowrap;
  align-items: center;
}
.survey-detailed-results .survey-deteailed-results-top .ui-select {
  min-width: 150px;
}
.survey-detailed-results .survey-detailed-results__actions {
  display: flex;
  gap: 10px;
  padding: 10px 24px;
  align-items: center;
}
.survey-detailed-results .survey-detailed-results-card {
  background-color: #fff;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 4px 2px rgba(0, 0, 0, 0.1);
  height: 100%;
}
.survey-detailed-results .survey-detailed-results-card .ui-tabs__tabbar {
  min-height: 35px;
  width: 100%;
  overflow: auto;
  white-space: nowrap;
  scrollbar-width: thin;
}
.survey-detailed-results .survey-detailed-results-card .scheduler-overview-dates .ui-tabs__tabbar-button--active {
  background-color: rgb(252.5428571429, 237.8, 231.6571428571);
  border-bottom: none;
}
.survey-detailed-results .survey-detailed-results-card .scheduler-overview-times .ui-tabs__tabbar {
  background-color: rgb(252.5428571429, 237.8, 231.6571428571);
}
.survey-detailed-results .survey-detailed-results-card .scheduler-overview-times .ui-tabs__tabbar-button--active {
  border-bottom: 4px solid #ED8154;
}
.survey-detailed-results .survey-detailed-results-card .scheduler-overview-times .time-requested {
  max-height: 2em;
  overflow: hidden;
  color: #ED8154;
}
.survey-detailed-results .survey-detailed-results-card .scheduler-overview-times .time-requested:hover {
  color: #828282;
}
.survey-detailed-results .survey-detailed-results-card .links-header {
  width: 130px;
}
.survey-detailed-results .survey-detailed-results-card .links {
  max-width: 188px;
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: center;
}
.survey-detailed-results .survey-detailed-results-card .links button {
  min-width: 0px;
  min-height: 0px;
  width: 25px;
  height: 25px;
  border-radius: 4px;
  padding: 5px;
}
.survey-detailed-results .survey-detailed-results-card .links button svg {
  width: 20px;
}
.survey-detailed-results .survey-detailed-results__header {
  max-width: 1600px;
  margin-bottom: 20px;
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}
.survey-detailed-results .survey-detailed-results__header .header-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.survey-detailed-results .survey-detailed-results__header .header-item .header-item__filter {
  display: flex;
  flex-direction: row;
  gap: 20px;
  align-items: center;
}
.survey-detailed-results .survey-detailed-results__header .header-item .header-item__filter select {
  min-width: 200px;
}
.survey-detailed-results .survey-detailed-results__header .header-item .header-item__filter .header-item__search {
  display: flex;
}
.survey-detailed-results .survey-detailed-results__header .header-item .header-item__filter .header-item__search input {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}
.survey-detailed-results .survey-detailed-results__header .header-item .header-item__filter .header-item__search input:focus + div {
  border: 1px solid #ED8154;
  outline: 1px solid #ED8154;
}
.survey-detailed-results .survey-detailed-results__header .header-item .header-item__filter .header-item__search > div {
  border: 1px solid #ddd;
  outline: 1px solid #ddd;
  background-color: #ED8154;
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  fill: white;
  width: 40px;
  height: 40px;
}
.survey-detailed-results .survey-detailed-results__header .header-item .header-item__filter .header-item__search > div:hover {
  background-color: rgb(239.4285714286, 146, 107.0714285714);
  cursor: pointer;
}
.survey-detailed-results .survey-detailed-results__footer {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
}
.survey-detailed-results .survey-detailed-results__footer .survey-detailed-results__footer-counts div {
  margin-top: 5px;
}
.survey-detailed-results .survey-detailed-results__footer .survey-detailed-results__footer-resp {
  text-align: right;
}
.survey-detailed-results .survey-detailed-results__footer .survey-detailed-results__footer-paginator {
  width: 500px;
  overflow: auto;
  display: flex;
  gap: 10px;
  padding: 10px 0;
}
.survey-detailed-results .survey-detailed-results__footer .survey-detailed-results__footer-paginator .survey-detailed-result-page-button {
  border: 1px solid #ED8154;
  background-color: white;
  color: #ED8154;
  padding: 6px;
  border-radius: 4px;
}
.survey-detailed-results .survey-detailed-results__footer .survey-detailed-results__footer-paginator .survey-detailed-result-page-button:first-child {
  margin-left: auto;
}
.survey-detailed-results .survey-detailed-results__footer .survey-detailed-results__footer-paginator .survey-detailed-result-page-button:hover {
  cursor: pointer;
  background-color: rgb(252.5428571429, 237.8, 231.6571428571);
}
.survey-detailed-results .survey-detailed-results__footer .survey-detailed-results__footer-paginator .survey-detailed-result-page-button.active {
  background-color: #ED8154;
  color: white;
}

.wizard-section {
  background-color: #F7D8B4;
  border: 1px solid #ED8154;
  border-radius: 8px;
  text-align: left;
  width: 100%;
}
.wizard-section th, .wizard-section td {
  padding: 10px 20px;
}

.validation-wizard-section .validation__rule-header .validation__rule-header-content {
  width: 100%;
  display: flex;
  justify-content: space-between;
}
.validation-wizard-section .validation__rule-header .actions button {
  background-color: #ED8154;
  border: none;
  fill: white;
  width: 24px;
  height: 24px;
  border-radius: 4px;
  margin-left: 10px;
  font-size: 12px;
}
.validation-wizard-section .validation__rule-header .actions button:hover {
  cursor: pointer;
}
.validation-wizard-section .validation__rule-header .actions button:last-of-type {
  background-color: #982727;
}
.validation-wizard-section .validation__rule {
  padding: 10px 0;
  border-bottom: 1px solid #ddd;
}
.validation-wizard-section .validation__rule:last-of-type {
  border: none;
}
.validation-wizard-section .validation__rule table {
  width: 100%;
}
.validation-wizard-section .validation__rule table td {
  padding: 10px;
}
.validation-wizard-section .validation__rule table td h4 {
  font-weight: 400;
  margin-bottom: 10px;
}
.validation-wizard-section .validation__rule table td .page-tab-buttons__on-send {
  display: flex;
  gap: 10px;
}
.validation-wizard-section .validation__rule table td .page-tab-buttons__on-send button {
  background-color: #ED8154;
  fill: white;
  border: none;
  border-radius: 8px;
  width: 40px;
  height: 40px;
}

.guide-button {
  background-color: #ED8154;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 4px 16px;
  font-size: 10px;
  font-weight: bold;
  height: 20px;
}
.guide-button:hover {
  background-color: rgb(239.4285714286, 146, 107.0714285714);
  cursor: pointer;
}

.page-tab-general .page-tab-general__details {
  padding: 20px;
  display: flex;
  gap: 20px;
}
.page-tab-general .page-tab-general__details h4 {
  margin-bottom: 10px;
}
.page-tab-general .page-tab-general__section {
  border-top: 2px solid #ddd;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.page-tab-general .page-tab-general__details-left {
  display: flex;
  flex-grow: 1;
  gap: 20px;
}
.page-tab-general .page-tab-general__details-right {
  height: 100%;
  display: flex;
  gap: 20px;
}

.page-tab-buttons {
  height: 100%;
}
.page-tab-buttons .page-tab-buttons__item-header {
  border-bottom: 1px solid #ddd;
}
.page-tab-buttons .page-tab-buttons__item-header .page-tab-buttons__item-header-content {
  width: 100%;
  display: flex;
  justify-content: space-between;
}
.page-tab-buttons .page-tab-buttons__item-header .actions button {
  background-color: #ED8154;
  border: none;
  color: white;
  width: 24px;
  height: 24px;
  border-radius: 4px;
  margin-left: 10px;
  font-size: 12px;
}
.page-tab-buttons .page-tab-buttons__item-header .actions button:hover {
  cursor: pointer;
}
.page-tab-buttons .page-tab-buttons__item-header .actions button:last-of-type {
  background-color: #982727;
}
.page-tab-buttons .page-tab-buttons__item {
  padding: 10px;
  border-bottom: 2px solid #ddd;
}
.page-tab-buttons .page-tab-buttons__item table {
  width: 100%;
}
.page-tab-buttons .page-tab-buttons__item table td {
  padding: 10px;
}
.page-tab-buttons .page-tab-buttons__item table td h4 {
  font-weight: 400;
  margin-bottom: 10px;
}
.page-tab-buttons .page-tab-buttons__item table td .page-tab-buttons__on-send {
  display: flex;
  gap: 10px;
}
.page-tab-buttons .page-tab-buttons__item table td .page-tab-buttons__on-send > button {
  background-color: #ED8154;
  color: white;
  border: none;
  border-radius: 8px;
  width: 40px;
  min-width: 40px;
  height: 40px;
  cursor: pointer;
}

.page-tab-buttons__add {
  color: #417bc7;
  background-color: transparent;
  border: none;
  font-weight: bold;
  padding: 20px;
  font-size: 14px;
}
.page-tab-buttons__add:hover {
  color: #508ed9;
  cursor: pointer;
}

.page-tab-notes {
  padding: 20px;
}
.page-tab-notes h4 {
  margin-bottom: 10px;
}
.page-tab-notes .page-tab-notes__note-footer {
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
}
.page-tab-notes .page-tab-notes__list {
  margin-top: 20px;
}
.page-tab-notes .page-tab-notes__note {
  border-bottom: 1px solid #ddd;
  padding: 10px;
}
.page-tab-notes .page-tab-notes__note-content.solved {
  text-decoration: line-through;
}

.question-tab-general h4 {
  margin-bottom: 10px;
}
.question-tab-general p {
  margin-bottom: 10px;
  color: #828282;
}
.question-tab-general .question-tab-general__details {
  display: flex;
  justify-content: space-between;
  padding: 20px;
}
.question-tab-general .question-tab-general__details .question-tab-general__details-left {
  display: flex;
  gap: 20px;
}
.question-tab-general .question-tab-general__text {
  padding: 0 20px 20px 20px;
}
.question-tab-general .question-tab-general__instruction {
  padding: 0 20px 20px 20px;
}
.question-tab-general .question-tab-general__instruction .question-tab-general__instruction-options {
  margin-bottom: 10px;
}
.question-tab-general .question-tab-general__rte {
  border: 1px solid #ddd;
  border-radius: 8px;
  line-height: 1;
  padding: 10px 20px;
  color: #707070;
}
.question-tab-general .question-tab-general__rte:active, .question-tab-general .question-tab-general__rte:focus, .question-tab-general .question-tab-general__rte:focus-visible {
  border-color: #ED8154;
  outline: 1px solid #ED8154 !important;
}
.question-tab-general .question-tab-general__rte.question-tab-general__rte--large {
  min-height: 80px !important;
}

.question-tab-answers {
  height: 100%;
  display: flex;
  flex-direction: column;
}
.question-tab-answers .question-tab-answers__header {
  display: flex;
  justify-content: space-between;
  padding: 0 0 8px;
}
.question-tab-answers .question-tab-answers__header-actions {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-grow: 1;
}
.question-tab-answers .question-tab-answers__header-actions button {
  background-color: white;
  color: #ED8154;
  border: 1px solid #ED8154;
  fill: #ED8154;
  border-radius: 4px;
  padding: 6px;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 25px;
}
.question-tab-answers .question-tab-answers__header-actions button svg {
  margin-right: 6px;
}
.question-tab-answers .question-tab-answers__header-actions button span {
  line-height: 10px;
}
.question-tab-answers .question-tab-answers__header-actions button:hover {
  background-color: rgb(252.5428571429, 237.8, 231.6571428571);
  cursor: pointer;
}
.question-tab-answers .question-tab-answers__header-actions button.active {
  background-color: #ED8154;
  color: white;
}
.question-tab-answers .question-tab-answers__list {
  overflow: auto;
}

.element-drawer__row {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 4px;
  padding: 6px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  user-select: text;
}
.element-drawer__row > .code {
  display: inline-block;
  user-select: none;
  min-width: 40px;
  font-weight: 600;
  font-size: 13px;
  color: var(--text-main);
  white-space: nowrap;
}
.element-drawer__row > .code::selection {
  background: none;
  color: none;
}
.element-drawer__row > .code:hover {
  color: var(--brand);
  cursor: pointer;
}
.element-drawer__row > .code > * {
  background-color: white;
}
.element-drawer__row .code.open {
  min-width: 120px;
}
.element-drawer__row > .code.error > * {
  background-color: #fde8e8;
}
.element-drawer__row .edit-value {
  border: none;
  border-bottom: 2px solid var(--brand);
  outline: none;
  min-width: 200px;
}
.element-drawer__row > .editable {
  flex-grow: 1;
  line-break: anywhere;
  font-size: 14px;
  color: var(--text-main);
}
.element-drawer__row > .actions {
  display: flex;
  gap: 6px;
  font-size: 12px;
  user-select: none;
  flex-shrink: 0;
}
.element-drawer__row > .actions::selection {
  background: none;
  color: none;
}
.element-drawer__row > .actions button {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 24px;
  height: 24px;
  color: var(--brand);
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  user-select: none;
  cursor: pointer;
  transition: all 0.15s;
}
.element-drawer__row > .actions button::selection {
  background: none;
  color: none;
}
.element-drawer__row > .actions button:hover {
  background-color: var(--bg-secondary);
  border-color: var(--brand);
}
.element-drawer__row > .actions button.condition {
  padding: 0 5px;
  width: auto;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
}
.element-drawer__row > .actions button.condition:hover {
  color: var(--brand);
}
.element-drawer__row > .actions button.add {
  background-color: var(--brand);
  border-color: var(--brand);
  color: white;
}
.element-drawer__row > .actions button.add:hover {
  background-color: var(--brand-hover);
}
.element-drawer__row > .actions button.delete {
  background-color: #982727;
  border-color: #982727;
  color: white;
}
.element-drawer__row > .actions button.delete:hover {
  background-color: #C93E3E;
  border-color: #C93E3E;
}
.element-drawer__row:hover {
  border-color: var(--brand);
  background-color: var(--bg-secondary);
}
.element-drawer__row.active {
  border-color: var(--brand);
  box-shadow: 0 0 0 1px var(--brand);
}

span[data-slate-placeholder=true] {
  top: initial !important;
  width: initial !important;
}
.row-editor span[data-slate-placeholder=true] {
  top: .8em !important;
}

.label-right-rte .editor-text-rte__editable--small {
  padding-top: 10px !important;
}

.question-tab-logic .question-tab-logic__section {
  border-bottom: 2px solid #ddd;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.question-tab-logic .question-tab-logic__section:last-child {
  border: none;
}
.question-tab-logic .question-tab-logic__section .question-tab-logic__section-header {
  display: flex;
  justify-content: space-between;
}

.question-tab-validation .question-tab-validation__section {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-bottom: 2px solid #ddd;
}
.question-tab-validation .question-tab-validation__section:last-child {
  border: none;
}

.template-browser-list {
  width: 100%;
  border-collapse: collapse;
}
.template-browser-list tbody > tr.selected {
  background-color: rgb(252.5428571429, 237.8, 231.6571428571);
}
.template-browser-list tbody > tr:hover {
  background-color: rgba(0, 0, 0, 0.05);
}
.template-browser-list th {
  width: 50%;
  text-align: left;
}
.template-browser-list td {
  cursor: pointer;
}
.template-browser-list td .icon {
  fill: #828282;
}
.template-browser-list td .icon:hover {
  fill: #982727;
}
.template-browser-list td, .template-browser-list th {
  border-bottom: 1px solid #ddd;
  padding: 10px;
}

.randomization-settings {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.survey-translations .survey-translations__table {
  box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.1607843137);
  border-radius: 8px;
}
.survey-translations .survey-translations__table td {
  padding: 20px;
  word-break: break-word;
}
.survey-translations .survey-translations__table tr:hover {
  background-color: transparent;
}
.survey-translations .survey-translations__table .survey-translations__table-header {
  height: 60px;
  color: #707070;
  font-size: 16px;
}
.survey-translations .survey-translations__table .translation-row {
  border: 1px solid #ddd;
}
.survey-translations .survey-translations__table .translation-row td:first-of-type {
  height: 60px;
}
.survey-translations .survey-translations__table .translation-row.edit .translation-row__cell {
  font-weight: inherit;
  padding: 0;
}
.survey-translations .survey-translations__table .translation-row.edit .translation-row__cell > div {
  border-radius: 15px;
  outline: 2px solid #ED8154;
  outline-offset: -8px;
}
.survey-translations .survey-translations__table .translation-row.edit .translation-row__cell > div .translation-row__cell-text {
  line-height: 1.3rem;
}
.survey-translations .survey-translations__table .not-edit .translation-row__cell:hover {
  cursor: pointer;
  outline: dashed 2px #ED8154;
  outline-offset: -8px;
  border-radius: 15px;
}
.survey-translations .survey-editor__search {
  display: flex;
}
.survey-translations .survey-editor__search input {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}
.survey-translations .survey-editor__search input:focus + div {
  border: 1px solid #ED8154;
  outline: 1px solid #ED8154;
}
.survey-translations .survey-editor__search > div {
  border: 1px solid #ddd;
  outline: 1px solid #ddd;
  background-color: #ED8154;
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  fill: white;
  width: 40px;
  height: 40px;
}
.survey-translations .survey-editor__search > div:hover {
  background-color: rgb(239.4285714286, 146, 107.0714285714);
  cursor: pointer;
}

.editor-text-toolbar {
  padding-top: 10px;
  padding-bottom: 5px;
  margin: 0 10px;
  display: flex;
  flex-direction: column;
}
.editor-text-toolbar.editor-text-toolbar--floating {
  background-color: #fff;
  box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.3);
  border: 1px solid #ddd;
  border-radius: 8px;
  position: absolute;
  z-index: 1;
  padding: 5px;
  top: 0;
  left: 0;
  top: -10000px;
  left: -10000px;
  margin-top: -6px;
  opacity: 0;
  transition: opacity 0.2s;
  gap: 5px;
}
.editor-text-toolbar.editor-text-toolbar--border-bottom {
  border-bottom: 2px solid rgb(238, 238, 238);
  margin-bottom: 10px;
}
.editor-text-toolbar .editor-text-toolbar-button {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 18px;
  padding: 5px;
  background-color: transparent;
  color: #ddd;
  border: none;
}
.editor-text-toolbar .editor-text-toolbar-button:hover {
  cursor: pointer;
  color: #4f4f4f;
}
.editor-text-toolbar .editor-text-toolbar-button.active {
  color: #4f4f4f;
}

.editor-text-rte {
  border: 1px solid #ddd;
  border-radius: 8px;
}
.editor-text-rte .editor-text-rte__editable {
  min-height: 80px !important;
  padding: 10px 20px;
  line-height: 1.3rem;
  outline: none;
}
.editor-text-rte .editor-text-rte__editable.editor-text-rte__editable--small {
  min-height: inherit !important;
}
.editor-text-rte.editor-text-rte--no-border {
  border: none;
}
.editor-text-rte.editor-text-rte--toolbar .editor-text-rte__editable {
  padding-top: 0;
}

.code-editor {
  border: 1px solid #ddd;
  border-radius: 8px;
  width: 100%;
  font-family: ui-monospace, SFMono-Regular, SF Mono, Consolas, Liberation Mono, Menlo, monospace;
  font-size: 14px;
  background-color: #fff;
}
.code-editor:active, .code-editor:focus, .code-editor:focus-visible, .code-editor:focus-within {
  border-color: #ED8154;
  outline: 1px solid #ED8154;
}
.code-editor .cm-editor {
  background-color: transparent;
}
.code-editor .cm-editor .cm-scroller {
  min-height: inherit;
}
.code-editor .cm-editor .cm-content {
  min-height: inherit;
}
.code-editor .cm-editor .cm-gutters {
  background-color: #fff;
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
  border: none;
}
.code-editor .cm-editor .cm-activeLine {
  background-color: transparent;
}
.code-editor .cm-editor .cm-activeLineGutter {
  background-color: #fff2e8;
  background-color: #fff;
}
.code-editor .cm-editor .cm-selectionBackground {
  background-color: #fff2e8;
}
.code-editor .cm-editor.cm-focused {
  outline: none;
}

.row-editor.editor-text-rte .editor-text-rte__editable {
  padding: 0;
}

.end-pages-section {
  padding: 20px;
}
.end-pages-section > h3 {
  margin-bottom: 10px;
  color: #4f4f4f;
}
.end-pages-section > section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.end-pages h3 {
  color: #828282;
  padding: 10px;
}
.end-pages h3:first-of-type {
  padding-top: 0;
}
.end-pages h3:last-of-type {
  padding-bottom: 0;
}
.end-pages h3 span {
  font-weight: 400;
  font-style: italic;
}

.exit-pages-drawer .exit-pages-drawer__description {
  border-bottom: 2px solid #ddd;
  font-size: 16px;
  color: #828282;
  padding: 20px;
}

.drawer-border {
  border-bottom: 2px solid #ddd;
}

.quota-group {
  width: 100%;
  max-width: 1600px;
  background-color: #fff;
}
.quota-group .group-error {
  padding: 20px;
  color: #C93E3E;
  background-color: rgb(247.8291497976, 229.3708502024, 229.3708502024);
  border: 2px solid #E4E4E4;
  text-align: center;
}
.quota-group .cell-error {
  color: #C93E3E;
  background-color: rgb(247.8291497976, 229.3708502024, 229.3708502024);
  text-align: center;
}
.quota-group .cell-error > div {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}
.quota-group .header {
  background-color: #ED8154;
  color: #fff;
  height: 40px;
  line-height: 40px;
  padding: 0 20px;
  border: 2px solid #E4E4E4;
  border-bottom: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s;
}
.quota-group .header.disabled {
  background-color: #FFAC89;
}
.quota-group .header .action-button {
  display: flex;
  cursor: pointer;
}
.quota-group .header .action-button div {
  margin-left: 10px;
  fill: white;
}
.quota-group .header .action-button:hover {
  font-weight: bold;
}
.quota-group .header .ui-toggle input:checked + .ui-toggle__switch {
  background-color: rgba(0, 0, 0, 0.1);
}
.quota-group table {
  border-collapse: collapse;
  width: 100%;
}
.quota-group table td, .quota-group table th {
  text-align: left;
  border: 2px solid #E4E4E4;
}
.quota-group table td.quota-cell-td, .quota-group table th.quota-cell-td {
  position: relative;
  padding: 0;
}
.quota-group table .cell-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 40px;
  padding: 0 20px;
}

.quota-group-list {
  width: 100%;
  display: grid;
  grid-gap: 20px;
  justify-items: center;
}

.quota__select-answers-list {
  max-height: 200px;
  display: flex;
  flex-direction: column;
  margin-top: 20px;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: auto;
}

.quota-cell {
  height: 100%;
  min-height: 40px;
}
.quota-cell input {
  width: 100%;
  height: 100%;
  border: 2px solid #ED8154;
  text-align: center;
}
.quota-cell input:active, .quota-cell input:focus-within {
  outline: none;
}
.quota-cell .cell-value {
  color: #417AC7;
  font-weight: bold;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}
.quota-cell .cell-value:hover {
  border-radius: 2px;
  outline: 2px solid #ED8154;
  outline: none;
  cursor: pointer;
  color: #ED8154;
}
.quota-cell .cell-value.error {
  color: #982727;
}
.quota-cell.target input {
  height: 30px;
}
.quota-cell.target .cell-value:hover {
  color: #6d96cc;
}
.quota-cell.readonly .cell-value {
  color: #828282;
}
.quota-cell.readonly .cell-value:hover {
  color: #828282;
  cursor: auto;
}

.edit-button-code {
  display: inline-flex;
  margin-left: 10px;
  line-height: 1;
  color: #4f4f4f;
  letter-spacing: 1px;
}
.edit-button-code:hover {
  color: #ED8154;
  font-weight: bold;
  cursor: pointer;
}
.edit-button-code input {
  border: 2px solid #ED8154;
  border-radius: 4px;
  outline: none;
  padding: 4px;
}
.edit-button-code.small input {
  max-width: 80px;
}
.edit-button-code.is-quota span {
  font-weight: bold;
  color: #417bc7;
  min-width: 30px;
  padding-right: 10px;
}
.edit-button-code.is-quota:hover span {
  color: #ED8154;
}

.delete-image-button {
  position: absolute;
  top: 0.5em;
  left: 0.5em;
  background-color: #C93E3E;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  padding: 2px;
  color: white;
  font-size: 24px;
  transition: background-color 0.1s;
  z-index: 100;
}
.delete-image-button:hover {
  background-color: rgb(125.8016194332, 35.1983805668, 35.1983805668);
}

.theme-section {
  color: #333;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-bottom: 2px solid #ddd;
}
.theme-section .separator {
  margin: 10px 0;
  border-bottom: 2px dashed #ccc;
}
.theme-section .row-split-1 {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  grid-gap: 20px;
}
.theme-section .row-split-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-gap: 20px;
}
.theme-section .row-split-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-gap: 10px;
}
.theme-section .row-split-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-gap: 10px;
}
.theme-section .flex-grow {
  flex-grow: 1;
}
.theme-section .flex-row {
  display: flex;
  gap: 10px;
}
.theme-section .flex-row.column {
  flex-direction: column;
}
.theme-section .margin-top {
  margin-top: 10px;
}
.theme-section > h4 {
  margin-top: 10px;
}
.theme-section > .title {
  padding: 20px;
  font-weight: bold;
  color: #4f4f4f;
  font-size: 1.17em;
  display: flex;
  justify-content: space-between;
  cursor: pointer;
}
.theme-section > .title:hover {
  background-color: #f1f1f1;
}
.theme-section > .content {
  padding: 0 20px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.picker-component {
  position: relative;
}
.picker-component .picker-button {
  background-color: #f1f1f1;
  border: 4px solid rgba(0, 0, 0, 0.2);
  position: absolute;
  right: 40px;
  top: 5px;
  border-radius: 6px;
  width: 30px;
  height: 30px;
  min-width: 30px;
  cursor: pointer;
}
.picker-component .picker-button:hover {
  border: 4px solid rgba(0, 0, 0, 0.1);
}
.picker-component .picker-button:active {
  border: 4px solid rgba(0, 0, 0, 0.5);
}
.picker-component .picker-button.pick {
  position: absolute;
  right: 5px;
}

.theme-picker-buttons {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-gap: 20px;
  margin-bottom: 20px;
}
.theme-picker-buttons.col-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.theme-picker-buttons button {
  padding: 10px 20px;
  border: 2px solid rgba(0, 0, 0, 0.1);
  background-color: #f5f5f5;
  border-radius: 8px;
  color: #666;
  font-weight: bold;
  letter-spacing: 1px;
  cursor: pointer;
}
.theme-picker-buttons button:hover {
  border: 2px solid #ED8154;
}
.theme-picker-buttons button:active {
  background-color: #e1e1e1;
}

.theme-section {
  color: #333;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-bottom: 2px solid #ddd;
}
.theme-section .separator {
  margin: 10px 0;
  border-bottom: 2px dashed #ccc;
}
.theme-section .row-split-1 {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  grid-gap: 20px;
}
.theme-section .row-split-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-gap: 20px;
}
.theme-section .row-split-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-gap: 10px;
}
.theme-section .row-split-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-gap: 10px;
}
.theme-section .flex-grow {
  flex-grow: 1;
}
.theme-section .flex-row {
  display: flex;
  gap: 10px;
}
.theme-section .flex-row.column {
  flex-direction: column;
}
.theme-section .margin-top {
  margin-top: 10px;
}
.theme-section > h4 {
  margin-top: 10px;
}
.theme-section > .title {
  padding: 20px;
  font-weight: bold;
  color: #4f4f4f;
  font-size: 1.17em;
  display: flex;
  justify-content: space-between;
  cursor: pointer;
}
.theme-section > .title:hover {
  background-color: #f1f1f1;
}
.theme-section > .content {
  padding: 0 20px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.picker-component {
  position: relative;
}
.picker-component .picker-button {
  background-color: #f1f1f1;
  border: 4px solid rgba(0, 0, 0, 0.2);
  position: absolute;
  right: 40px;
  top: 5px;
  border-radius: 6px;
  width: 30px;
  height: 30px;
  min-width: 30px;
  cursor: pointer;
}
.picker-component .picker-button:hover {
  border: 4px solid rgba(0, 0, 0, 0.1);
}
.picker-component .picker-button:active {
  border: 4px solid rgba(0, 0, 0, 0.5);
}
.picker-component .picker-button.pick {
  position: absolute;
  right: 5px;
}

.theme-picker-buttons {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-gap: 20px;
  margin-bottom: 20px;
}
.theme-picker-buttons.col-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.theme-picker-buttons button {
  padding: 10px 20px;
  border: 2px solid rgba(0, 0, 0, 0.1);
  background-color: #f5f5f5;
  border-radius: 8px;
  color: #666;
  font-weight: bold;
  letter-spacing: 1px;
  cursor: pointer;
}
.theme-picker-buttons button:hover {
  border: 2px solid #ED8154;
}
.theme-picker-buttons button:active {
  background-color: #e1e1e1;
}

.survey-collectors {
  height: 100%;
}
.survey-collectors .page-header__buttons button {
  max-width: 100px;
}
.survey-collectors .survey-collectors__card {
  min-height: 260px;
  display: flex;
  flex-direction: column;
}
.survey-collectors .survey-collectors__card .ds-card-body {
  flex-grow: 1;
}

.survey-collectors .survey-collectors__card .ui-card__footer-button span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}
.survey-collectors .survey-collectors__card table {
  table-layout: fixed;
  width: 100%;
}
.survey-collectors .survey-collectors__card table tr td {
  padding-bottom: 20px;
}
.survey-collectors .survey-collectors__card table tr td:first-child {
  width: 33%;
  font-weight: 500;
}
.survey-collectors .survey-collectors__card .ui-card__content {
  height: 100%;
}
.survey-collectors .survey-collectors__card .ui-card__content .ui-card__table td:first-child {
  width: 15%;
  padding-left: 0;
}
.survey-collectors .survey-collectors__card .ui-card__content .ui-card__table td:last-child {
  position: relative;
  border-left: none;
  padding-right: 0;
}
.survey-collectors .survey-collectors__card .ui-card__content .ui-card__table td .url {
  width: calc(100% - 1.5em);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.survey-collectors .survey-collectors__card .ui-card__content .ui-card__table td svg {
  cursor: pointer;
  position: absolute;
  right: 0;
  top: 5px;
  fill: #ED8154;
  max-height: 14px;
}
.survey-collectors .survey-collectors__card .survey-collectors__card-overview {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}
.survey-collectors .survey-collectors__card .survey-collectors__card-overview h1 {
  text-align: center;
  margin-bottom: 10px;
}
.survey-collectors .survey-collectors__card-header {
  cursor: auto;
  display: flex;
  justify-content: space-between;
}
.survey-collectors .survey-collectors__card-header .ui-center {
  max-width: 80%;
  overflow: hidden;
  text-wrap: nowrap;
}
.survey-collectors .survey-collectors__card-header .ui-toggle {
  color: #ED8154;
  font-weight: normal;
  margin-top: 10px;
}
.survey-collectors .survey-collectors__card-header .ui-toggle.disabled {
  color: #C93E3E;
}
.survey-collectors .survey-collectors__card-header .ui-toggle.disabled .ui-toggle__switch {
  background-color: rgb(247.8291497976, 229.3708502024, 229.3708502024);
}
.survey-collectors .survey-collectors__wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  height: 100%;
  overflow: auto;
  padding: 40px;
}
.survey-collectors .survey-collectors__wrapper .survey-collectors__content {
  max-width: 1600px;
  width: 100%;
  display: grid;
  grid-gap: 20px;
  grid-template-columns: repeat(1, minmax(0, 1fr));
}
@media (min-width: 62em) {
  .survey-collectors .survey-collectors__wrapper .survey-collectors__content {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 96em) {
  .survey-collectors .survey-collectors__wrapper .survey-collectors__content {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.new-update-collector-modal .new-update-collector-modal__content {
  display: flex;
  flex-direction: column;
}
.new-update-collector-modal .new-update-collector-modal__content .error {
  margin-top: 10px;
  color: #982727;
}
.new-update-collector-modal h4 {
  font-size: 16px;
  font-weight: 500;
  margin: 0;
  margin-bottom: 10px;
  margin-top: 18px;
  color: #707070;
}
.new-update-collector-modal h4:first-of-type {
  margin-top: 0;
}
.new-update-collector-modal .ds-select-trigger {
  font-weight: bold;
}
.new-update-collector-modal .variable-matrix {
  max-height: 400px;
  margin-top: 20px;
  border: 1px solid #ddd;
  border-radius: 8px;
}
.new-update-collector-modal .variable-matrix th:first-child {
  min-width: 150px;
}
.new-update-collector-modal .variable-matrix .single-select .ds-checkbox-wrapper {
  border-radius: 50%;
}
.new-update-collector-modal .variable-matrix .single-select svg {
  display: none;
}
.new-update-collector-modal .variable-question {
  max-height: 200px;
  margin-top: 20px;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: auto;
}
.new-update-collector-modal .variable-question .variable-single_select {
  display: flex;
  flex-direction: column;
}
.new-update-collector-modal .variable-question .variable-single_select .ds-checkbox-wrapper {
  border-radius: 50%;
}
.new-update-collector-modal .variable-question .variable-single_select svg {
  display: none;
}
.new-update-collector-modal .variable-question .variable-matrix table {
  width: 100%;
  border-collapse: collapse;
}
.new-update-collector-modal .variable-question .variable-matrix table th {
  text-align: left;
}
.new-update-collector-modal .variable-question .variable-multi_select {
  display: flex;
  flex-direction: column;
}
.new-update-collector-modal .variable-question .variable-text_input {
  display: flex;
  flex-direction: column;
}
.new-update-collector-modal .variable-question .variable-text_input .input-row {
  display: flex;
  flex-direction: row;
}
.new-update-collector-modal .variable-question .variable-text_input .input-row .label {
  display: flex;
  width: 20%;
  align-content: center;
  flex-wrap: wrap;
}
.new-update-collector-modal .variable-question .variable-text_input .input-row input {
  width: 80%;
  margin-left: 10px;
}

.collector-drawer-tab .ds-tab {
  width: 50%;
  text-align: center;
}
.collector-drawer-tab .collector-drawer-section {
  padding: 20px;
  border-bottom: 1px solid #ddd;
}
.collector-drawer-tab .collector-drawer-section.url-settings {
  gap: 10px;
  display: flex;
  flex-direction: column;
}
.collector-drawer-tab .collector-drawer-section .collector-label {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}
.collector-drawer-tab .collector-drawer-section .collector-label h4 {
  width: 90%;
  word-wrap: break-word;
}
.collector-drawer-tab .collector-drawer-section .collector-label svg {
  color: #ED8154;
}
.collector-drawer-tab .collector-drawer-section .collector-label .collector-input {
  width: 100%;
  position: relative;
}
.collector-drawer-tab .collector-drawer-section .collector-label .collector-input input {
  margin-bottom: 10px;
  padding-right: 60px;
}
.collector-drawer-tab .collector-drawer-section .collector-label .collector-input button {
  border-top-left-radius: 0px;
  border-bottom-left-radius: 0px;
  min-width: 15px;
  min-height: 38px;
  width: 10%;
  right: 0;
  position: absolute;
  margin-bottom: 10px;
}
.collector-drawer-tab .collector-drawer-section .collector-label .collector-input button svg {
  color: #fff;
}
.collector-drawer-tab .collector-drawer-section input {
  width: 100%;
}
.collector-drawer-tab .collector-drawer-section .date-total-setup {
  display: flex;
  flex-direction: row;
}
.collector-drawer-tab .collector-drawer-section .date-total-setup .label {
  display: flex;
  align-items: center;
  width: 30%;
}
.collector-drawer-tab .collector-drawer-section .date-total-setup .date {
  width: 70%;
  display: flex;
  flex-direction: column;
}
.collector-drawer-tab .collector-drawer-section .date-total-setup input {
  width: 70%;
}
.collector-drawer-tab .collector-drawer-section .routing-setup {
  display: grid;
  grid-gap: 10px;
  margin-bottom: 20px;
}
.collector-drawer-tab .collector-drawer-section .variable-actions {
  color: #417bc7;
  fill: #417bc7;
  text-decoration-line: underline;
  margin-top: 20px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}
.collector-drawer-tab .collector-drawer-section .variable-actions div {
  cursor: pointer;
}
.collector-drawer-tab .collector-drawer-section .variable-actions svg {
  margin-right: 10px;
}
.collector-drawer-tab .collector-drawer-section .variable-actions .up-arrow {
  transform: rotate(180deg);
}
.collector-drawer-tab .collector-drawer-section .url-variables {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}
.collector-drawer-tab .collector-drawer-section .url-variables .actions {
  display: flex;
  gap: 15px;
}
.collector-drawer-tab .collector-drawer-section .url-variables .actions svg {
  cursor: pointer;
}
.collector-drawer-tab .collector-drawer-section .url-variables .actions svg:first-child {
  color: #ED8154;
}
.collector-drawer-tab .collector-drawer-section .url-variables .actions svg:last-child {
  color: #982727;
}
.collector-drawer-tab .collector-drawer-section:last-child {
  border: none;
}
.collector-drawer-tab .collector-drawer-section h4 {
  font-size: 17px;
  margin-bottom: 20px;
}

.edit-quota-dimension-trigger {
  border: 1px solid transparent;
  background-color: transparent;
  fill: #ED8154;
  margin-right: 10px;
  cursor: pointer;
  border-radius: 4px;
  max-width: 450px;
  color: #828282;
  font-size: 14px;
  font-weight: bold;
  padding: 4px 2px;
  min-width: 200px;
  text-align: left;
}
.edit-quota-dimension-trigger svg {
  margin-right: 10px;
}
.edit-quota-dimension-trigger:hover {
  background-color: rgb(253.5142857143, 244.6, 240.8857142857);
  border: 1px solid #ED8154;
}

.cell-remove-button {
  border: 2px solid #C93E3E;
  border-radius: 4px;
  padding: 4px;
  color: #C93E3E;
  cursor: pointer;
  background-color: transparent;
  margin: 0 10px;
}
.cell-remove-button:hover {
  background-color: rgb(234.4493927126, 181.5506072874, 181.5506072874);
}
.cell-remove-button:active {
  background-color: rgb(223.2995951417, 141.7004048583, 141.7004048583);
}

.question-filter-drawer {
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: auto;
  max-height: 200px;
}
.question-filter-drawer .text-query {
  margin-top: 5px;
  padding-top: 10px;
  border-top: 1px solid #ddd;
}
.question-filter-drawer .text-query .text-inputs {
  display: grid;
  grid-gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.question-filter-drawer .text-query .text-inputs label {
  display: flex;
  align-items: center;
}
.question-filter-drawer .text-query .numeric {
  border: 1px solid #ddd;
  border-radius: 8px;
  line-height: 1;
  padding: 10px 20px;
  color: #707070;
  min-height: 40px;
}
.question-filter-drawer .text-query .numeric:active, .question-filter-drawer .text-query .numeric:focus, .question-filter-drawer .text-query .numeric:focus-visible {
  border-color: #ED8154;
  outline: 1px solid #ED8154;
}
.question-filter-drawer table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}
.question-filter-drawer table th, .question-filter-drawer table td {
  padding: 0.2em 1em;
}

.scheduler-setup {
  padding: 10px;
}
.scheduler-setup > .header {
  border-bottom: 1px solid #ddd;
  display: flex;
  padding: 10px;
}
.scheduler-setup > .header .left {
  display: flex;
  align-items: center;
  flex-grow: 1;
}
.scheduler-setup > .header .actions {
  display: flex;
  gap: 10px;
}
.scheduler-setup > .header .actions button:not(.condition) {
  background-color: #ED8154;
  border: none;
  color: white;
  width: 24px;
  height: 24px;
  border-radius: 4px;
  cursor: pointer;
}
.scheduler-setup > .header .actions button:not(.condition):hover {
  background-color: rgb(241.8571428571, 163, 130.1428571429);
}
.scheduler-setup > .header .actions button.condition {
  height: 24px;
  min-height: 24px;
  min-width: 24px;
}
.scheduler-setup > .header .actions .delete-setup:not(.condition) {
  background-color: #982727;
  border: none;
  color: white;
  width: 24px;
  height: 24px;
  border-radius: 4px;
  font-size: 12px;
}
.scheduler-setup > .header .actions .delete-setup:not(.condition):hover {
  background-color: rgb(192.5863874346, 49.4136125654, 49.4136125654);
}
.scheduler-setup > .content {
  padding: 20px 10px;
  overflow-x: auto;
}
.scheduler-setup > .content .scheduler-setup-segment h4 {
  margin-bottom: 10px;
}
.scheduler-setup > .content .setup-rows {
  border-collapse: collapse;
  width: 100%;
  margin-top: 20px;
  border-radius: 8px;
}
.scheduler-setup > .content .setup-rows .setup-row:hover td {
  border-bottom: 2px solid #ED8154;
}
.scheduler-setup > .content .setup-rows td, .scheduler-setup > .content .setup-rows th {
  border-bottom: 2px solid #ddd;
  text-align: left;
  padding: 10px;
  color: #4f4f4f;
}
.scheduler-setup > .content .setup-rows th {
  color: #828282;
}
.scheduler-setup > .content .setup-rows th:last-of-type {
  text-align: right;
}
.scheduler-setup > .content .setup-rows td > .actions {
  display: flex;
  gap: 10px;
  font-size: 12px;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  justify-content: end;
}
.scheduler-setup > .content .setup-rows td > .actions::-moz-selection {
  background: none;
  color: none;
}
.scheduler-setup > .content .setup-rows td > .actions::selection {
  background: none;
  color: none;
}
.scheduler-setup > .content .setup-rows td > .actions button {
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 28px;
  height: 28px;
  color: #ED8154;
  background-color: white;
  border: 1px solid #ED8154;
  border-radius: 4px;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}
.scheduler-setup > .content .setup-rows td > .actions button::-moz-selection {
  background: none;
  color: none;
}
.scheduler-setup > .content .setup-rows td > .actions button::selection {
  background: none;
  color: none;
}
.scheduler-setup > .content .setup-rows td > .actions button:hover {
  background-color: rgb(252.5428571429, 237.8, 231.6571428571);
  cursor: pointer;
}
.scheduler-setup > .content .setup-rows td > .actions button.condition {
  padding: 0 5px;
}
.scheduler-setup > .content .setup-rows td > .actions button.add {
  background-color: #ED8154;
  color: white;
}
.scheduler-setup > .content .setup-rows td > .actions button.add:hover {
  background-color: rgb(239.4285714286, 146, 107.0714285714);
}
.scheduler-setup > .content .setup-rows td > .actions button.delete {
  background-color: #982727;
  color: white;
}
.scheduler-setup > .content .setup-rows td > .actions button.delete:hover {
  background-color: #C93E3E;
}
.scheduler-setup > .content .setup-rows td > .actions button.add tspan::-moz-selection {
  background: none;
  color: white;
}
.scheduler-setup > .content .setup-rows td > .actions button.add tspan::selection {
  background: none;
  color: white;
}
.scheduler-setup > .content .setup-rows td > .actions .more-menu {
  position: relative;
}
.scheduler-setup > .content .setup-rows td > .actions .more-menu__dropdown {
  position: absolute;
  top: calc(100% + 2px);
  right: -6px;
  z-index: 100;
  background: white;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
  padding: 4px;
  gap: 4px;
}

.select-time-pickers select {
  padding: 4px 5px;
  background: transparent;
  border: 2px solid transparent;
  border-radius: 4px;
  letter-spacing: 1px;
}
.select-time-pickers select:hover {
  cursor: pointer;
  border: 2px solid #ED8154;
}

.edit-button-condition button {
  min-width: 20px;
  height: 20px;
  color: #ED8154;
  background-color: white;
  border: 1px solid #ED8154;
  border-radius: 4px;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  padding: 0 5px;
}
.edit-button-condition button:hover {
  background-color: rgb(252.5428571429, 237.8, 231.6571428571);
  cursor: pointer;
}
.edit-button-condition input {
  border: none;
  outline: none;
  background: transparent;
  border-bottom: 2px solid #ED8154;
  min-width: 170px;
}

.reminder-trigger {
  display: flex;
  justify-content: space-between;
  padding: 5px 20px;
}
.reminder-trigger .left {
  display: flex;
  gap: 5px;
  align-items: center;
  color: #4f4f4f;
}
.reminder-trigger .left .first-part {
  display: flex;
  align-items: center;
}
.reminder-trigger .left .first-part svg {
  margin-right: 10px;
}
.reminder-trigger .left .select-time-pickers select {
  color: #4f4f4f;
  font-weight: bold;
  padding-bottom: 6px;
}
.reminder-trigger .delete {
  background-color: #982727;
  border: none;
  color: white;
  width: 28px;
  height: 28px;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.reminder-trigger .delete:hover {
  background-color: rgb(192.5863874346, 49.4136125654, 49.4136125654);
}
.reminder-trigger:hover {
  background-color: rgb(252.5428571429, 237.8, 231.6571428571);
}

/* ── Open End Encoder (new design system) ──────────────────────────── */
.encoder-page {
  padding: 24px 32px;
  height: calc(100vh - 120px);
  display: flex;
  flex-direction: column;
}

.encoder-body {
  display: flex;
  gap: 20px;
  flex: 1;
  min-height: 0;
}

/* Left panel — open-end responses */
.encoder-answers-card {
  flex: 0 0 45%;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.encoder-answers-filters {
  display: flex;
  gap: 12px;
  padding: 8px 16px;
  border-bottom: 1px solid var(--border);
}

.encoder-answers-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
}

.encoder-answers-list {
  flex: 1;
  overflow: auto;
  padding: 4px 0;
}

.encoder-answer-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 16px;
  transition: background-color 0.1s;
}

.encoder-answer-item:hover {
  background-color: var(--bg-secondary);
}

.encoder-answer-item.encoded {
  color: var(--brand);
}

.encoder-answer-item:not(.encoded) .encoder-answer-status svg {
  color: var(--border);
}

.encoder-answer-item.encoded .encoder-answer-status svg {
  color: var(--brand);
}

.encoder-answer-status {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  margin-left: 12px;
}

/* Right panel — answer options table */
.encoder-options-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: auto;
}

.survey-editor__logic-editor-modal {
  min-height: 500px;
  font-size: 18px;
}
.survey-editor__logic-editor-modal .logic-section {
  min-height: 100px;
  margin-bottom: 20px;
}
.survey-editor__logic-editor-modal .logic-section .title {
  font-weight: bold;
  color: #707070;
  border-bottom: 1px solid #ddd;
  padding-bottom: 10px;
}
.survey-editor__logic-editor-modal .logic-section .logic-list {
  padding: 10px 0;
  font-size: 16px;
  color: #333;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.survey-editor__logic-editor-modal .logic-section .add-logic-button {
  height: 40px;
  padding: 8px;
  background: #ddd;
  background: transparent;
  border: none;
  font-weight: bold;
  color: #666;
  display: flex;
  justify-content: start;
  align-items: center;
  fill: #666;
  cursor: pointer;
  width: 100%;
}
.survey-editor__logic-editor-modal .logic-section .add-logic-button span {
  margin-left: 10px;
}
.survey-editor__logic-editor-modal .logic-section .add-logic-button:hover {
  border-color: #999;
  background-color: rgb(252.5428571429, 237.8, 231.6571428571);
  color: #ED8154;
  fill: #ED8154;
}
.survey-editor__logic-editor-modal .logic-section .add-line-logic-button {
  padding: 4px 8px;
  background: #ddd;
  border: none;
  font-weight: bold;
  color: #666;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  fill: #666;
  cursor: pointer;
  border-radius: 4px;
}
.survey-editor__logic-editor-modal .logic-section .add-line-logic-button span {
  margin-left: 10px;
}
.survey-editor__logic-editor-modal .logic-section .add-line-logic-button:hover {
  border-color: #999;
  background-color: #eee;
}

.logic-line {
  padding: 8px;
  border-radius: 8px;
  min-height: 40px;
  display: flex;
  padding-bottom: 20px;
}
.logic-line:last-of-type {
  border: none;
}
.logic-line .logic-line-entry {
  display: flex;
  flex-direction: column;
  padding-right: 10px;
  gap: 10px;
}
.logic-line .logic-line-query {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.logic-line .query-group {
  border-left: 4px solid #ED8154;
}
.logic-line .logic-line-rules {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.logic-line-dropdown {
  background-color: transparent;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 0 12px;
  height: 30px;
  font-size: 14px;
  letter-spacing: 1px;
  cursor: pointer;
  outline: none;
  max-width: 200px;
}
.logic-line-dropdown.grow {
  flex-grow: 1;
  border-color: transparent;
  font-weight: bold;
  color: #555;
  text-align: right;
}
.logic-line-dropdown:hover {
  background-color: rgb(252.5428571429, 237.8, 231.6571428571);
}
.logic-line-dropdown:focus {
  background-color: rgb(252.5428571429, 237.8, 231.6571428571);
  border: 1px solid #ED8154;
  outline: 1px solid #ED8154;
}

.logic-editor-helpers {
  display: flex;
  width: 100%;
  gap: 10px;
  padding: 10px;
  justify-content: right;
}
.logic-editor-helpers button {
  border: 2px solid #ddd;
  background-color: #ddd;
  color: #333;
  padding: 4px 8px;
  cursor: pointer;
  font-weight: bold;
  text-transform: uppercase;
  outline: none;
  border-radius: 4px;
}
.logic-editor-helpers button:hover {
  background-color: rgb(252.5428571429, 237.8, 231.6571428571);
  border: 2px solid #ED8154;
}
.logic-editor-helpers button:active {
  background-color: #ccc;
  border: 2px solid #aaa;
}

.answer-picker-matrix-table {
  max-width: 600px;
  width: 100%;
  overflow: auto;
}
.answer-picker-matrix-table tbody th {
  min-width: 100px;
}
.answer-picker-matrix-table tbody tr:hover th {
  background-color: #ED8154;
  color: #fff;
}

.question-answer-picker {
  min-width: 600px;
  overflow-y: auto;
  max-height: 50vh;
}
.question-answer-picker .picker-option {
  display: block;
  background-color: #fff;
  color: #4f4f4f;
  text-decoration: none;
  border-radius: 4px;
  letter-spacing: 0.5px;
  border: none;
  padding: 10px;
  width: 100%;
  font-weight: 400;
  font-weight: 500;
  text-align: left;
  font-size: 14px;
  cursor: pointer;
}
.question-answer-picker .picker-option.cell {
  background-color: #ddd;
}
.question-answer-picker .picker-option:hover, .question-answer-picker .picker-option.selected {
  background-color: rgb(252.5428571429, 237.8, 231.6571428571);
}
.question-answer-picker .picker-option.selected.cell {
  background-color: #ED8154;
}
.question-answer-picker .picker-option:active {
  background-color: rgb(250.1142857143, 220.8, 208.5857142857);
}

.logic-question-query {
  padding-left: 10px;
}
.logic-question-query > * {
  border-radius: 0;
}
.logic-question-query > *:first-child {
  border-top-left-radius: 4px;
  border-bottom-left-radius: 4px;
}
.logic-question-query > *:last-child {
  border-top-right-radius: 4px;
  border-bottom-right-radius: 4px;
}

.question-picker-value,
.answer-picker-value {
  border: 1px solid #ccc;
  background: transparent;
  min-width: 250px;
  max-width: 340px;
  padding: 0 8px;
  height: 30px;
  border-top-left-radius: 4px;
  border-bottom-left-radius: 4px;
  border-right-color: transparent;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
}
.question-picker-value.error,
.answer-picker-value.error {
  background-color: rgb(247.8291497976, 229.3708502024, 229.3708502024);
  color: #C93E3E;
}
.question-picker-value:hover,
.answer-picker-value:hover {
  background-color: rgb(252.5428571429, 237.8, 231.6571428571);
}
.question-picker-value.open,
.answer-picker-value.open {
  border: 1px solid #ED8154;
  outline: 1px solid #ED8154;
}
.question-picker-value .label,
.answer-picker-value .label {
  flex-grow: 1;
  overflow: hidden;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.question-picker-value .case,
.answer-picker-value .case {
  text-transform: uppercase;
  font-size: 13px;
  padding: 2px 4px;
  margin-left: 4px;
  border-radius: 4px;
  background-color: #ccc;
}

.question-picker-value {
  max-width: 240px;
  overflow: hidden;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.answer-picker-value {
  border-radius: 0;
  max-width: 400px;
  width: 400px;
}
.answer-picker-value.expand {
  max-width: 480px;
  width: 480px;
}

.logic-line-condition-input {
  width: 80px;
  height: 30px;
  border: 1px solid #ccc;
  border-left: none;
  outline: none;
  text-align: center;
  font-size: 14px;
}
.logic-line-condition-input:focus {
  outline: 1px solid #ED8154;
  border: 1px solid #ED8154;
}

.question-answer-picker-header {
  display: flex;
  justify-content: space-between;
  padding-bottom: 10px;
}

.logic-question-query {
  display: flex;
}

.query-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.query-group .query-line {
  display: flex;
  gap: 10px;
}

.group-casses {
  display: inline-flex;
}
.group-casses button {
  border: 2px solid #ddd;
  background-color: #ddd;
  color: #333;
  padding: 4px 8px;
  cursor: pointer;
  font-weight: bold;
  text-transform: uppercase;
  outline: none;
}
.group-casses button:hover {
  background-color: rgb(252.5428571429, 237.8, 231.6571428571);
  border: 2px solid #ED8154;
}
.group-casses button.selected {
  background-color: #ED8154;
  border: 2px solid #ED8154;
  color: #fff;
}
.group-casses button:first-of-type {
  border-top-left-radius: 4px;
  border-bottom-left-radius: 4px;
}
.group-casses button:last-of-type {
  border-top-right-radius: 4px;
  border-bottom-right-radius: 4px;
}
.group-casses button:active {
  background-color: rgb(247.6857142857, 203.8, 185.5142857143);
}
.group-casses.delete {
  width: 100%;
  justify-content: right;
}

.add-query-group {
  margin-left: 14px;
}
.add-query-group button {
  font-size: 14px;
  background-color: transparent;
  border: none;
  font-weight: bold;
  color: #555;
  cursor: pointer;
}
.add-query-group button:hover {
  color: #ED8154;
}

.error-message-input {
  display: flex;
  padding-left: 14px;
  padding-right: 172px;
}
.error-message-input .label {
  background-color: #ddd;
  border-top-left-radius: 4px;
  border-bottom-left-radius: 4px;
  border: 1px solid #ddd;
  border-right-color: transparent;
  display: flex;
  align-items: center;
  padding: 0 12px;
  font-weight: bold;
  color: #333;
  font-size: 15px;
}
.error-message-input input {
  border-top-right-radius: 4px;
  border-bottom-right-radius: 4px;
  border: 1px solid #ddd;
  font-size: 15px;
  padding: 4px 12px;
  flex-grow: 1;
  outline-color: #ED8154;
}
.error-message-input input:focus, .error-message-input input:focus-visible, .error-message-input input:active {
  border-color: #ED8154;
  outline: 1px solid #ED8154;
}

.edit-logic-button {
  border: 2px solid #ddd;
  background-color: #ddd;
  color: #333;
  padding: 4px 8px;
  cursor: pointer;
  font-weight: bold;
  text-transform: uppercase;
  outline: none;
  border-radius: 4px;
}
.edit-logic-button:hover {
  background-color: rgb(252.5428571429, 237.8, 231.6571428571);
  border: 2px solid #ED8154;
}
.edit-logic-button:active {
  background-color: #ccc;
  border: 2px solid #aaa;
}

/* Publishing Progress Bar */
.publish-progress {
  margin-top: 20px;
  width: 100%;
}
.publish-progress__bar-container {
  width: 100%;
  height: 12px;
  background-color: #e0e0e0;
  border-radius: 6px;
  overflow: hidden;
}
.publish-progress__bar {
  height: 100%;
  background: linear-gradient(90deg, #ED8154 0%, #f5a67a 100%);
  border-radius: 6px;
  transition: width 0.3s ease-out;
}
.publish-progress__info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  font-size: 13px;
}
.publish-progress__percentage {
  font-weight: bold;
  color: #ED8154;
}
.publish-progress__message {
  color: #666;
  text-align: right;
  flex: 1;
  margin-left: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/*# sourceMappingURL=styles.css.map */


.ui-select-popup {
  z-index: 999999;
  padding: 0;
}
.ui-select-popup .ui-select-popup__children {
  max-height: 20em;
  overflow: auto;
}
.ui-select-popup .ui-select-popup__children input {
  width: 100%;
  border: none;
  border-bottom: 1px solid #ED8154;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}
.ui-select-popup .ui-select-popup__children input:active:not(.ui-input--error), .ui-select-popup .ui-select-popup__children input:focus:not(.ui-input--error), .ui-select-popup .ui-select-popup__children input:focus-visible:not(.ui-input--error) {
  outline: none;
}
.ui-select-popup .ui-select-popup__children .ui-select-popup__child {
  cursor: pointer;
  padding: 10px 20px;
}
.ui-select-popup .ui-select-popup__children .ui-select-popup__child:hover {
  background-color: #FCF6EF;
}
.ui-select-popup .ui-select-popup__children .ui-select-popup__child.child-selected {
  background-color: #ED8154;
  color: #fff;
}
.ui-select-popup .ui-select-popup__children .ui-select-popup__child.child-selected:hover {
  background-color: #ED8154;
}
.ui-select {
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  min-height: 40px;
  position: relative;
}
.ui-select.ui-select--borderless {
  border-color: transparent;
}
.ui-select > .text {
  position: relative;
  line-height: 1;
  display: flex;
  justify-content: center !important;
  flex-direction: column;
  padding: 0 20px;
  margin-right: 20px;
  height: 100%;
  min-height: 40px;
}
.ui-select.ui-select-reset {
  display: flex;
}
.ui-select.ui-select-reset .text {
  width: 100%;
}
.ui-select.ui-select-reset select {
  width: calc(100% - 3em - 1px);
}
.ui-select.ui-select-reset::after {
  right: 3em;
}
.ui-select.ui-select-reset button {
  position: absolute;
  right: -1px;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
  min-width: 3em;
}
.ui-select.ui-select--small select {
  padding: 5px 0;
}
.ui-select.ui-select--error {
  border: 1px solid #C93E3E;
  outline: 1px solid #C93E3E;
  background-color: rgb(247.8291497976, 229.3708502024, 229.3708502024);
}
.ui-select:active, .ui-select:focus, .ui-select:focus-within, .ui-select:hover {
  border-color: #ED8154;
  outline: 1px solid #ED8154;
  cursor: pointer;
}
.ui-select select {
  padding: 10px 20px;
  background-color: transparent;
  border: none;
  width: 100%;
  height: 100%;
  font-weight: inherit;
  color: #4f4f4f;
  outline: none;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  opacity: 0;
  position: absolute;
  top: 0;
  cursor: pointer;
}
.ui-select:after {
  content: "⏷";
  position: absolute;
  right: 2px;
  top: 12px;
  color: #4f4f4f;
  pointer-events: none;
}
.multi-select-drawer {
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: auto;
  max-height: 200px;
}
.multi-select-drawer .text-query {
  margin-top: 5px;
  padding-top: 10px;
  border-top: 1px solid #ddd;
}
.multi-select-drawer .text-query .text-inputs {
  display: grid;
  grid-gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.multi-select-drawer .text-query .text-inputs label {
  display: flex;
  align-items: center;
}
.multi-select-drawer .text-query .numeric {
  border: 1px solid #ddd;
  border-radius: 8px;
  line-height: 1;
  padding: 10px 20px;
  color: #707070;
  min-height: 40px;
}
.multi-select-drawer .text-query .numeric:active, .multi-select-drawer .text-query .numeric:focus, .multi-select-drawer .text-query .numeric:focus-visible {
  border-color: #ED8154;
  outline: 1px solid #ED8154;
}
.multi-select-drawer table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}
.multi-select-drawer table th, .multi-select-drawer table td {
  padding: 0.2em 1em;
}
.ui-button {
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  width: auto;
  min-width: 150px;
  min-height: 40px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  padding: 6px 12px;
  color: inherit;
  fill: inherit;
  font-size: inherit;
}
.ui-button:hover {
  background-color: #f5f5f5;
}
.ui-button:active {
  background-color: #ddd;
}
.ui-button:focus-visible {
  outline: 1px solid #ED8154;
}
.ui-button.ui-button--primary {
  background-color: #ED8154;
  border: none;
  color: #fff;
  fill: #fff;
}
.ui-button.ui-button--primary:hover {
  background-color: rgb(239.4285714286, 146, 107.0714285714);
}
.ui-button.ui-button--primary:active {
  background-color: rgb(225.8285714286, 83.2, 23.7714285714);
}
.ui-button.ui-button--primary:focus-visible {
  outline: 2px solid #ED8154;
  outline-offset: 2px;
}
.ui-button.ui-button--warning {
  background-color: #982727;
  border: none;
  color: #fff;
  fill: #fff;
}
.ui-button.ui-button--warning:hover {
  background-color: rgb(172.2931937173, 44.2068062827, 44.2068062827);
}
.ui-button.ui-button--warning:active {
  background-color: rgb(95.1790575916, 24.4209424084, 24.4209424084);
}
.ui-button.ui-button--warning:focus-visible {
  outline: 2px solid #982727;
  outline-offset: 2px;
}
.ui-button.ui-button--icon {
  min-width: auto;
  min-height: auto;
  padding: 6px;
  background-color: transparent;
  border: none;
}
.ui-button.ui-button--icon:hover {
  background-color: rgba(0, 0, 0, 0.1);
}
.ui-button.ui-button--outline, .ui-button.ui-button--icon.ui-button--outline {
  border: 1px solid #ED8154;
  color: #ED8154;
}
.ui-button.ui-button--outline:hover, .ui-button.ui-button--icon.ui-button--outline:hover {
  background-color: rgb(252.5428571429, 237.8, 231.6571428571);
}
.ui-button.ui-button--outline:active, .ui-button.ui-button--icon.ui-button--outline:active {
  background-color: rgb(248.6571428571, 210.6, 194.7428571429);
}
.ui-button.ui-button--outline:focus-visible, .ui-button.ui-button--icon.ui-button--outline:focus-visible {
  outline: 2px solid #ED8154;
  outline-offset: 2px;
}
.ui-button.ui-button--block {
  width: 100%;
}
.ui-button.ui-button--disabled {
  background-color: rgb(247.6857142857, 203.8, 185.5142857143);
  cursor: not-allowed;
}
.ui-button.ui-button--disabled:hover, .ui-button.ui-button--disabled:active {
  background-color: rgb(247.6857142857, 203.8, 185.5142857143);
}
.ui-checkbox {
  cursor: pointer;
  display: inline-flex;
  height: 20px;
}
.ui-checkbox .ui-checkbox__label, .ui-checkbox .ui-checkbox__label-left {
  display: inline-flex;
  align-items: center;
  margin-left: 1rem;
  flex-grow: 1;
}
.ui-checkbox .ui-checkbox__label-left {
  margin-left: 0;
  margin-right: 1rem;
}
.ui-checkbox .ui-checkbox__wrapper {
  display: inline-flex;
  position: relative;
  background-color: white;
  border: 2px solid #ED8154;
  border-radius: 4px;
  width: 18px;
  height: 18px;
  left: 0;
  top: 0;
  transition: all 140ms;
}
.ui-checkbox .ui-checkbox__wrapper.checked {
  background-color: #ED8154;
}
.ui-checkbox .ui-checkbox__wrapper.checked .ui-checkbox__checkmark {
  stroke: white;
}
.ui-checkbox input {
  width: 0;
  height: 0;
  opacity: 0;
  position: absolute;
}
.ui-checkbox .ui-checkbox__checkmark {
  fill: transparent;
  stroke-width: 3px;
  line-height: 1;
}
.ui-checkbox.disabled {
  cursor: not-allowed;
}
.ui-checkbox.disabled .ui-checkbox__wrapper {
  border: 2px solid #e7b472;
  background-color: #f5f5f5;
}
.ui-input {
  border: 1px solid #ddd;
  border-radius: 8px;
  line-height: 1;
  padding: 10px 20px;
  color: #707070;
  min-height: 40px;
}
.ui-input.ui-input--small {
  padding: 5px 20px;
}
.ui-input.ui-input--block {
  width: 100%;
}
.ui-input.ui-input--error {
  border: 1px solid #C93E3E;
  outline: 1px solid #C93E3E;
  background-color: rgb(247.8291497976, 229.3708502024, 229.3708502024);
}
.ui-input:active:not(.ui-input--error), .ui-input:focus:not(.ui-input--error), .ui-input:focus-visible:not(.ui-input--error) {
  border-color: #ED8154;
  outline: 1px solid #ED8154;
}/* ===================================================================
   QNG Design System — Component Styles
   Extracted from design-system/index.jsx
   Import once at app entry point: import '@/components/ui/styles/components.css'
   =================================================================== */

:root {
  /* Brand Colors */
  --brand-r: 237;
  --brand-g: 129;
  --brand-b: 84;
  --brand: rgb(var(--brand-r), var(--brand-g), var(--brand-b));
  --brand-hover: rgb(241, 147, 108);
  --brand-active: rgb(214, 110, 66);
  --brand-light: rgba(var(--brand-r), var(--brand-g), var(--brand-b), 0.15);

  /* Neutrals (Zinc-ish) */
  --bg-page: #ffffff;
  --bg-card: #ffffff;
  --bg-popover: #ffffff;
  --bg-secondary: #f4f4f5;
  --bg-secondary-hover: #e4e4e7;

  --text-main: #2d2d33;
  --text-muted: #71717a;
  --text-on-brand: #ffffff;

  --error: #dc2626;

  --border: #e4e4e7;
  --input-bg: #ffffff;

  /* Dimensions & Shape */
  --radius: 6px;
  --control-height: 40px;
  --control-height-sm: 32px;
  --control-height-lg: 48px;

  /* Layout */
  --sidebar-width: 300px;
  --sidebar-width-collapsed: 76px;

  /* Focus Rings */
  --focus-ring: 0 0 0 1px var(--brand);

  /* Fonts */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Reset & Base */
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
}

/* --- UTILITIES --- */
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.ui--table-cell-min { width: 1%; white-space: nowrap; }

/* --- BUTTONS --- */
.ds-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  height: var(--control-height);
  padding: 0 16px;
  transition: all 0.2s ease;
  cursor: pointer;
  border: 1px solid transparent;
  outline: none;
  user-select: none;
}

.ds-btn:focus-visible, .ds-btn:focus:not(:hover) { box-shadow: 0 0 0 2px var(--bg-page), 0 0 0 4px var(--brand); }
.ds-btn:disabled { opacity: 0.5; cursor: not-allowed; }
/* Button Variants */
.ds-btn-primary {
  background-color: var(--brand);
  color: var(--text-on-brand);
}
.ds-btn-primary:hover:not(:disabled) { background-color: var(--brand-hover); }
.ds-btn-primary:active:not(:disabled) { background-color: var(--brand-active); }

.ds-btn-secondary {
  background-color: var(--bg-secondary);
  color: var(--text-main);
}
.ds-btn-secondary:hover:not(:disabled) {
  background-color: var(--brand-light);
  color: var(--brand-active);
}
.ds-btn-secondary:active:not(:disabled) {
  background-color: #e5e5e5;
  color: var(--text-main);
}

.ds-btn-outline {
  background-color: #fff;
  border-color: var(--border);
  color: var(--text-main);
}
.ds-btn-outline:hover:not(:disabled) {
  background-color: var(--brand-light);
  border-color: var(--brand-light);
  color: var(--brand-active);
}
.ds-btn-outline:active:not(:disabled) {
  background-color: var(--brand-light);
  border-color: var(--brand);
  color: var(--brand-active);
}

.ds-btn-ghost {
  background-color: transparent;
  color: var(--text-main);
}
.ds-btn-ghost:hover:not(:disabled) { background-color: rgba(0, 0, 0, 0.06); }
.ds-btn-ghost:active:not(:disabled) { background-color: rgba(0, 0, 0, 0.1); }

/* Open/active state for triggers inside Dropdown/Popover */
[data-open] .ds-btn-primary { background-color: var(--brand-active); }
[data-open] .ds-btn-secondary { background-color: #e5e5e5; }
[data-open] .ds-btn-outline { background-color: #fff; border-color: var(--brand); color: var(--brand-active); }
[data-open] .ds-btn-ghost { background-color: rgba(0, 0, 0, 0.08); }

.ds-btn-icon { padding: 0; width: var(--control-height); }

/* Button Sizes */
.ds-btn-xs { height: 24px; font-size: 11px; padding: 0 8px; gap: 4px; }
.ds-btn-xs.ds-btn-icon { width: 24px; }
.ds-btn-sm { height: var(--control-height-sm); font-size: 12px; padding: 0 12px; }
.ds-btn-sm.ds-btn-icon { width: var(--control-height-sm); }
.ds-btn-lg { height: var(--control-height-lg); font-size: 16px; padding: 0 24px; }

/* Split Button */
.ds-split-btn-container {
  display: inline-flex;
  border-radius: var(--radius);
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.ds-split-btn-container .ds-btn { border-radius: 0; box-shadow: none; position: relative; }
.ds-split-btn-container .ds-btn:focus-visible { box-shadow: 0 0 0 2px var(--bg-page), 0 0 0 4px var(--brand); z-index: 1; }
.ds-split-btn-container .ds-btn:first-child {
  border-top-left-radius: var(--radius);
  border-bottom-left-radius: var(--radius);
  border-right: 1px solid rgba(255,255,255,0.2);
}
.ds-split-btn-container .ds-btn:last-child {
  border-top-right-radius: var(--radius);
  border-bottom-right-radius: var(--radius);
}

/* --- INPUTS & TEXTAREAS --- */
.ds-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.ds-input-base {
  display: flex;
  width: 100%;
  height: var(--control-height);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background-color: var(--input-bg);
  padding: 0 12px;
  font-size: 14px;
  color: var(--text-main);
  transition: all 0.2s;
  outline: none;
}
.ds-input-base::placeholder { color: var(--text-muted); }
.ds-input-base:hover { border-color: #d4d4d8; }
.ds-input-base:focus {
  border-color: var(--brand);
  box-shadow: var(--focus-ring);
  z-index: 1;
}

.ds-input-error {
  border-color: #ef4444;
  background-color: #fef2f2;
}
.ds-input-error:focus {
  border-color: #ef4444;
  box-shadow: 0 0 0 2px var(--bg-page), 0 0 0 4px #ef4444;
}

/* Input Addons */
.ds-input-icon-left { padding-left: 36px; }
.ds-input-icon-right { padding-right: 36px; }
.ds-input-icon {
  position: absolute;
  color: var(--text-muted);
  pointer-events: none;
  width: 16px;
  height: 16px;
  z-index: 2;
}
.ds-icon-left { left: 12px; }
.ds-icon-right { right: 12px; }

.ds-prepend, .ds-append {
  display: flex;
  align-items: center;
  justify-content: center;
  height: var(--control-height);
  padding: 0 12px;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
}
.ds-prepend {
  border-right: none;
  border-top-left-radius: var(--radius);
  border-bottom-left-radius: var(--radius);
}
.ds-append {
  border-left: none;
  border-top-right-radius: var(--radius);
  border-bottom-right-radius: var(--radius);
}

/* Grouped Input Borders */
.ds-input-group .ds-prepend + .ds-input-base {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}
.ds-input-group .ds-input-base:not(:first-child):not(:last-child) {
  border-radius: 0;
}
.ds-input-group .ds-input-base + .ds-append {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.ds-textarea {
  min-height: 80px;
  padding: 12px;
  line-height: 1.5;
  resize: vertical;
  font-family: inherit;
}
.ds-textarea-auto {
  overflow: hidden;
  resize: none;
}

/* --- SELECTION CONTROLS --- */
.ds-checkbox-wrapper, .ds-radio-wrapper, .ds-switch-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
  font-size: 14px;
}

/* Checkbox */
.ds-checkbox-input {
  appearance: none;
  width: 18px;
  height: 18px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background-color: white;
  transition: background-color 0.2s, border-color 0.2s;
  position: relative;
  display: grid;
  place-items: center;
  outline: none;
}
.ds-checkbox-input:checked {
  background-color: var(--brand);
  border-color: var(--brand);
}
.ds-checkbox-input:focus { outline: 2px solid var(--brand); outline-offset: 2px; }
.ds-checkbox-icon {
  color: white;
  width: 14px;
  height: 14px;
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.2s;
}
.ds-checkbox-input:checked + .ds-checkbox-icon { opacity: 1; transform: scale(1); }
.ds-checkbox-input:indeterminate { background-color: var(--brand); border-color: var(--brand); }
.ds-checkbox-input:indeterminate::after { content: ''; display: block; width: 10px; height: 2px; background-color: white; border-radius: 1px; }

/* Radio */
.ds-radio-input {
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background-color: white;
  position: relative;
  transition: background-color 0.2s, border-color 0.2s;
  outline: none;
}
.ds-radio-input:checked { border-color: var(--brand); }
.ds-radio-input:focus { outline: 2px solid var(--brand); outline-offset: 2px; }
.ds-radio-input:checked::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 8px; height: 8px;
  border-radius: 50%;
  background-color: var(--brand);
}

/* Switch (Toggle) */
.ds-switch-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
.ds-switch-track {
  width: 42px;
  height: 24px;
  background-color: var(--bg-secondary-hover);
  border-radius: 999px;
  position: relative;
  transition: background-color 0.2s;
}
.ds-switch-thumb {
  width: 18px;
  height: 18px;
  background-color: white;
  border-radius: 50%;
  position: absolute;
  top: 3px;
  left: 3px;
  transition: transform 0.2s;
  box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}
.ds-switch-input:checked + .ds-switch-track { background-color: var(--brand); }
.ds-switch-wrapper.ds-switch-bold .ds-switch-input:checked + .ds-switch-track { background-color: color-mix(in srgb, var(--brand), black 15%); }
.ds-switch-input:checked + .ds-switch-track .ds-switch-thumb { transform: translateX(18px); }
.ds-switch-input:focus-visible + .ds-switch-track { outline: 2px solid var(--brand); outline-offset: 2px; }

/* --- SELECT & POPOVER --- */
.ds-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  cursor: pointer;
  background-color: white;
}
.ds-select-open {
  border-color: var(--brand);
  box-shadow: var(--focus-ring);
}
.ds-popover-content {
  background-color: var(--bg-popover);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  padding: 4px;
  min-width: 180px;
  z-index: 1150;
  max-height: 300px;
  overflow-y: auto;
  animation: fadeIn 0.1s ease-out;
}
.ds-popover-panel {
  background-color: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  padding: 16px;
  z-index: 1150;
  animation: fadeIn 0.12s ease-out;
}
.ds-popover-arrow {
  position: absolute;
  width: 10px;
  height: 10px;
  background: #fff;
  border: 1px solid var(--border);
  transform-origin: center;
  pointer-events: none;
}
.ds-popover-arrow-bottom {
  border-bottom: none;
  border-right: none;
}
.ds-popover-arrow-top {
  border-bottom: none;
  border-right: none;
}
.ds-select-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  font-size: 14px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.1s;
}
.ds-select-item:hover, .ds-select-item.active {
  background-color: var(--bg-secondary);
}
.ds-select-item.focused {
  background-color: var(--brand-light);
  color: var(--brand-active);
}
.ds-select-item.selected {
  font-weight: 600;
}
.ds-dropdown-item-destructive:hover {
  background-color: #fef2f2;
  color: #ef4444;
}

/* --- TOOLTIP --- */
.ds-tooltip {
  background-color: #18181b;
  color: white;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 12px;
  z-index: 1200;
  pointer-events: none;
  white-space: nowrap;
  animation: fadeIn 0.15s;
}

/* --- MODAL --- */
.ds-modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0,0,0,0.6);
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  padding: 24px;
  animation: fadeIn 0.2s;
}
.ds-modal-content {
  background-color: var(--bg-card);
  border-radius: calc(var(--radius) * 1.5);
  padding: 24px;
  width: 100%;
  max-width: 500px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  position: relative;
  animation: slideUp 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.ds-modal-header-branded {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  background-color: var(--brand);
  color: #fff;
}
.ds-modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: var(--radius);
  transition: background 0.15s, color 0.15s;
}
.ds-modal-close--default {
  color: var(--text-muted);
}
.ds-modal-close--default:hover { background: var(--bg-secondary); color: var(--text-main); }
.ds-modal-close--default:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.ds-modal-close--branded { color: #fff; }
.ds-modal-close--branded:hover { background: rgba(255,255,255,0.2); }
.ds-modal-close--branded:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* --- PROGRESS & SPINNER --- */
.ds-spinner { animation: spin 1s linear infinite; color: var(--brand); }
.ds-progress-track {
  width: 100%;
  height: 8px;
  background-color: var(--bg-secondary);
  border-radius: 999px;
  overflow: hidden;
}
.ds-progress-fill {
  height: 100%;
  background-color: var(--brand);
  transition: width 0.5s ease;
}

/* --- BREADCRUMBS --- */
.ds-breadcrumbs {
  display: inline-flex;
  align-items: stretch;
  list-style: none;
  padding: 0;
  margin: 0;
  height: var(--control-height);
  font-size: 13px;
}
/* Outer item: carries the drop-shadow filter (must NOT be clipped itself) */
.ds-breadcrumb-item {
  display: inline-flex;
  align-items: center;
  position: relative;
  filter:
    drop-shadow(1px 0 0 var(--brand))
    drop-shadow(-1px 0 0 var(--brand))
    drop-shadow(0 1px 0 var(--brand))
    drop-shadow(0 -1px 0 var(--brand));
}
.ds-breadcrumb-item:not(:first-child) {
  margin-left: -2px;
}
/* Inner shape: carries the clip-path and background */
.ds-breadcrumb-shape {
  display: inline-flex;
  align-items: center;
  background: #fff;
  height: calc(var(--control-height) - 2px);
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%);
}
.ds-breadcrumb-item:first-child .ds-breadcrumb-shape {
  border-top-left-radius: var(--radius);
  border-bottom-left-radius: var(--radius);
}
.ds-breadcrumb-item:not(:first-child) .ds-breadcrumb-shape {
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%, 14px 50%);
}
.ds-breadcrumb-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 20px 0 16px;
  height: 100%;
  color: var(--brand);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.ds-breadcrumb-item:not(:first-child) .ds-breadcrumb-link {
  padding-left: 20px;
}
.ds-breadcrumb-item:not(.ds-breadcrumb-item-active) .ds-breadcrumb-shape:hover {
  background: #f9f0ec;
}
/* Active (last) item */
.ds-breadcrumb-item-active {
  filter: none;
}
.ds-breadcrumb-item-active:not(:first-child) {
  margin-left: -6px;
}
.ds-breadcrumb-item-active .ds-breadcrumb-shape {
  background: var(--brand);
  height: var(--control-height);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}
.ds-breadcrumb-item-active:not(:first-child) .ds-breadcrumb-shape {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 14px 50%);
  border-top-right-radius: var(--radius);
  border-bottom-right-radius: var(--radius);
}
.ds-breadcrumb-item-active:first-child .ds-breadcrumb-shape {
  border-radius: var(--radius);
}
.ds-breadcrumb-item-active .ds-breadcrumb-link {
  color: #fff;
}
.ds-breadcrumb-item-active:not(:first-child) .ds-breadcrumb-link {
  padding-left: 24px;
}

/* --- FORM LAYOUTS --- */
.ds-form-layout {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.ds-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}
.ds-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-main);
}
.ds-input-error-msg {
  font-size: 12px;
  color: #ef4444;
  margin-top: 2px;
}
.ds-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .ds-grid-2 { grid-template-columns: repeat(2, 1fr); }
  .ds-grid-3 { grid-template-columns: repeat(3, 1fr); }
  .ds-grid-span-2 { grid-column: span 2; }
}

/* ===================================================================
   PHASE 2 — Composed Components
   =================================================================== */

/* --- TABLE --- */
.ds-table-wrapper {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background-color: #fff;
}
.ds-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.ds-table th {
  text-align: left;
  padding: 12px 16px;
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  background-color: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
  white-space: nowrap;
}
.ds-table th:last-child { border-right: none; }
.ds-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
  color: var(--text-main);
  transition: background-color 0.15s;
}
.ds-table td:last-child { border-right: none; }
.ds-table tr:last-child td { border-bottom: none; }
.ds-table-hoverable tbody tr { cursor: pointer; }
.ds-table-hoverable tbody tr:hover td { background-color: var(--bg-secondary); }
.ds-table-striped tbody tr:nth-child(even) td { background-color: var(--bg-secondary); }
.ds-table-compact th,
.ds-table-compact td { padding: 8px 12px; }

/* Table variant: brand-tinted (subtle brand wash) */
.ds-table-brand th {
  color: var(--brand-active);
  background-color: rgba(var(--brand-r), var(--brand-g), var(--brand-b), 0.07);
  border-bottom-color: rgba(var(--brand-r), var(--brand-g), var(--brand-b), 0.2);
  border-bottom-width: 2px;
}
.ds-table-brand.ds-table-hoverable tbody tr:hover td {
  background-color: var(--brand-light);
}
.ds-table-brand.ds-table-striped tbody tr:nth-child(even) td {
  background-color: rgba(var(--brand-r), var(--brand-g), var(--brand-b), 0.04);
}

/* Table variant: brand-bold (solid brand header) */
.ds-table-brand-bold th {
  color: var(--text-on-brand);
  background-color: var(--brand);
  border-bottom: none;
}
.ds-table-brand-bold.ds-table-hoverable tbody tr:hover td {
  background-color: var(--brand-light);
}
.ds-table-brand-bold.ds-table-striped tbody tr:nth-child(even) td {
  background-color: rgba(var(--brand-r), var(--brand-g), var(--brand-b), 0.04);
}

/* --- CARD --- */
.ds-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) * 1.5);
  overflow: hidden;
}
.ds-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  color: var(--text-main);
}
.ds-card-header-title {
  font-size: 16px;
  font-weight: 600;
  color: inherit;
  margin: 0;
}
.ds-card-header-description {
  font-size: 13px;
  color: var(--text-muted);
  margin: 4px 0 0;
}
.ds-card-body { padding: 20px; }
.ds-card-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  background-color: var(--bg-secondary);
}

/* --- TABS --- */
.ds-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  gap: 0;
}
.ds-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  outline: none;
  white-space: nowrap;
  margin-bottom: -1px;
}
.ds-tab:hover { color: var(--text-main); }
.ds-tab-active {
  color: var(--brand);
  border-bottom-color: var(--brand);
}
.ds-tab:focus-visible { box-shadow: var(--focus-ring); }
.ds-tab-content { padding: 12px 0; }
.ds-tab-content-flush { padding: 0; }

/* --- DRAWER --- */
.ds-drawer-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0,0,0,0.6);
  z-index: 1000;
  animation: fadeIn 0.2s;
}
.ds-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  background-color: var(--bg-card);
  border-left: 1px solid var(--border);
  box-shadow: -4px 0 24px rgba(0,0,0,0.1);
  z-index: 1001;
  display: flex;
  flex-direction: column;
  animation: slideInRight 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.ds-drawer-sm { width: 380px; }
.ds-drawer-md { width: 600px; }
.ds-drawer-lg { width: 800px; }
.ds-drawer-xl { width: 900px; }
.ds-drawer-full { width: 100%; max-width: 100%; }
.ds-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.ds-drawer-header h3 { margin: 0; font-size: 18px; font-weight: 600; }
.ds-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}
.ds-drawer-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

/* --- PAGINATOR --- */
.ds-paginator {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
}
.ds-paginator-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: var(--control-height);
  height: var(--control-height);
  padding: 0 10px;
  border-radius: var(--radius);
  border: 1px solid var(--brand);
  background: var(--bg-card);
  color: var(--text-main);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s;
  outline: none;
}
.ds-paginator-btn:hover { background-color: var(--brand-light); }
.ds-paginator-btn:focus-visible { box-shadow: var(--focus-ring); }
.ds-paginator-btn:disabled { opacity: 0.4; pointer-events: none; }
.ds-paginator-btn-active {
  background-color: var(--brand);
  border-color: var(--brand);
  color: var(--text-on-brand);
}
.ds-paginator-btn-active:hover { background-color: var(--brand-hover); }
.ds-paginator-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: var(--control-height);
  height: var(--control-height);
  color: var(--text-muted);
  font-size: 13px;
}
.ds-paginator-info {
  font-size: 13px;
  color: var(--text-muted);
  margin-left: 12px;
}

/* --- BADGE --- */
.ds-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 10px;
  font-size: 12px;
  font-weight: 500;
  border-radius: 999px;
  white-space: nowrap;
  line-height: 20px;
}
.ds-badge-default {
  background-color: var(--bg-secondary);
  color: var(--text-main);
}
.ds-badge-brand {
  background-color: var(--brand-light);
  color: var(--brand-active);
}
.ds-badge-success {
  background-color: #dcfce7;
  color: #166534;
}
.ds-badge-warning {
  background-color: #fef3c7;
  color: #92400e;
}
.ds-badge-error {
  background-color: #fef2f2;
  color: #991b1b;
}
.ds-badge-info {
  background-color: #dbeafe;
  color: #1e40af;
}
.ds-badge-outline {
  background-color: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
}

/* --- SKELETON --- */
.ds-skeleton {
  background: linear-gradient(90deg, var(--bg-secondary) 25%, var(--bg-secondary-hover) 50%, var(--bg-secondary) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius);
}
.ds-skeleton-text { height: 14px; width: 100%; }
.ds-skeleton-heading { height: 24px; width: 60%; }
.ds-skeleton-avatar { width: 40px; height: 40px; border-radius: 50%; }
.ds-skeleton-button { width: 100px; height: var(--control-height); }

/* --- SEPARATOR --- */
.ds-separator {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}
.ds-separator-vertical {
  border: none;
  border-left: 1px solid var(--border);
  height: auto;
  align-self: stretch;
  margin: 0;
}
.ds-separator-spaced { margin: 16px 0; }
.ds-separator-label {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--text-muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.ds-separator-label::before,
.ds-separator-label::after {
  content: '';
  flex: 1;
  border-top: 1px solid var(--border);
}

/* --- ALERT --- */
.ds-alert {
  display: flex;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 14px;
  line-height: 1.5;
  border: 1px solid transparent;
}
.ds-alert-icon {
  flex-shrink: 0;
  margin-top: 1px;
}
.ds-alert-content { flex: 1; min-width: 0; }
.ds-alert-title { font-weight: 600; margin-bottom: 2px; }
.ds-alert-info {
  background-color: #dbeafe;
  border-color: #93c5fd;
  color: #1e40af;
}
.ds-alert-success {
  background-color: #dcfce7;
  border-color: #86efac;
  color: #166534;
}
.ds-alert-warning {
  background-color: #fef3c7;
  border-color: #fcd34d;
  color: #92400e;
}
.ds-alert-error {
  background-color: #fef2f2;
  border-color: #fca5a5;
  color: #991b1b;
}

/* --- EMPTY STATE --- */
.ds-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  text-align: center;
}
.ds-empty-state-icon {
  color: var(--text-muted);
  margin-bottom: 16px;
  opacity: 0.5;
}
.ds-empty-state-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-main);
  margin: 0 0 4px;
}
.ds-empty-state-description {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0 0 20px;
  max-width: 360px;
}

/* --- TOAST --- */
.ds-toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1300;
  display: flex;
  flex-direction: column-reverse;
  gap: 12px;
  max-width: 520px;
}
.ds-toast {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px 24px;
  border-radius: calc(var(--radius) * 1.5);
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: 0 6px 16px rgba(0,0,0,0.14);
  font-size: 15px;
  animation: slideInUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  min-width: 400px;
}
.ds-toast-icon { flex-shrink: 0; margin-top: 1px; }
.ds-toast-content { flex: 1; min-width: 0; }
.ds-toast-title { font-weight: 600; margin-bottom: 4px; font-size: 16px; }
.ds-toast-message { color: var(--text-muted); line-height: 1.5; font-size: 15px; word-break: break-word; }
.ds-toast-close {
  flex-shrink: 0;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  padding: 4px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ds-toast-close:hover { background-color: var(--bg-secondary); }
.ds-toast-success .ds-toast-icon { color: #16a34a; }
.ds-toast-error .ds-toast-icon { color: #dc2626; }
.ds-toast-warning .ds-toast-icon { color: #d97706; }
.ds-toast-info .ds-toast-icon { color: #2563eb; }
.ds-toast-success { border-left: 4px solid #16a34a; }
.ds-toast-error { border-left: 4px solid #dc2626; }
.ds-toast-warning { border-left: 4px solid #d97706; }
.ds-toast-info { border-left: 4px solid #2563eb; }

/* --- AVATAR --- */
.ds-avatar {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
}
.ds-avatar-sm { width: 28px; height: 28px; }
.ds-avatar-md { width: 36px; height: 36px; }
.ds-avatar-lg { width: 48px; height: 48px; }
.ds-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}
.ds-avatar-initials {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  text-transform: uppercase;
}
.ds-avatar-sm .ds-avatar-initials { font-size: 11px; }
.ds-avatar-md .ds-avatar-initials { font-size: 13px; }
.ds-avatar-lg .ds-avatar-initials { font-size: 16px; }
.ds-avatar-status {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--bg-card);
}
.ds-avatar-sm .ds-avatar-status { width: 8px; height: 8px; }
.ds-avatar-lg .ds-avatar-status { width: 12px; height: 12px; }
.ds-avatar-status-online { background-color: #16a34a; }
.ds-avatar-status-offline { background-color: #a1a1aa; }
.ds-avatar-status-busy { background-color: #dc2626; }

/* --- ACCORDION --- */
.ds-accordion {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.ds-accordion-item { border-bottom: 1px solid var(--border); }
.ds-accordion-item:last-child { border-bottom: none; }
.ds-accordion-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 16px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-main);
  text-align: left;
  transition: background-color 0.15s;
  outline: none;
}
.ds-accordion-trigger:hover { background-color: var(--bg-secondary); }
.ds-accordion-trigger:focus-visible { box-shadow: var(--focus-ring); }
.ds-accordion-chevron {
  color: var(--text-muted);
  transition: transform 0.2s;
  flex-shrink: 0;
}
.ds-accordion-item-open .ds-accordion-chevron { transform: rotate(180deg); }
.ds-accordion-content-wrapper {
  overflow: hidden;
  transition: height 0.2s ease;
}
.ds-accordion-content {
  padding: 0 16px 14px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* --- STEPPER --- */
.ds-stepper {
  display: flex;
  align-items: center;
}
.ds-stepper-step {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.ds-stepper-connector {
  flex: 1;
  height: 2px;
  background-color: var(--border);
  margin: 0 8px;
  min-width: 24px;
}
.ds-stepper-connector-done { background-color: var(--brand); }
.ds-stepper-indicator {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  flex-shrink: 0;
  background-color: var(--bg-secondary);
  color: var(--text-muted);
  border: 2px solid var(--border);
  transition: all 0.2s;
}
.ds-stepper-completed .ds-stepper-indicator {
  background-color: var(--brand);
  border-color: var(--brand);
  color: var(--text-on-brand);
}
.ds-stepper-active .ds-stepper-indicator {
  border-color: var(--brand);
  color: var(--brand);
  background-color: var(--brand-light);
}
.ds-stepper-label {
  display: flex;
  flex-direction: column;
  margin-left: 10px;
  min-width: 0;
}
.ds-stepper-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
}
.ds-stepper-active .ds-stepper-title { color: var(--text-main); font-weight: 600; }
.ds-stepper-completed .ds-stepper-title { color: var(--text-main); }
.ds-stepper-description {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
}

/* --- COPY BUTTON --- */
.ds-copy-btn-copied {
  border-color: #16a34a !important;
  color: #16a34a !important;
  background-color: #dcfce7 !important;
}

/* --- DATALIST --- */
.ds-datalist {
  margin: 0;
  padding: 0;
}
.ds-datalist-row {
  display: flex;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.ds-datalist-row:last-child { border-bottom: none; }
.ds-datalist-label {
  color: var(--text-muted);
  font-weight: 500;
  margin: 0;
}
.ds-datalist-value {
  color: var(--text-main);
  margin: 0;
}

/* Horizontal layout (side-by-side) */
.ds-datalist-horizontal .ds-datalist-row {
  align-items: center;
}
.ds-datalist-horizontal .ds-datalist-label {
  width: 180px;
  flex-shrink: 0;
}
.ds-datalist-horizontal .ds-datalist-value {
  flex: 1;
  min-width: 0;
}

/* Vertical layout (stacked) */
.ds-datalist-vertical .ds-datalist-row {
  flex-direction: column;
  gap: 2px;
}

/* Striped */
.ds-datalist-striped .ds-datalist-row {
  padding: 10px 12px;
  border-radius: 4px;
  border-bottom: none;
}
.ds-datalist-striped .ds-datalist-row:nth-child(even) {
  background-color: var(--bg-secondary);
}

/* --- CALENDAR --- */
.ds-calendar {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) * 1.5);
  padding: 16px;
  width: 300px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  animation: fadeIn 0.15s ease-out;
  user-select: none;
}
.ds-calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.ds-calendar-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
}
.ds-calendar-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: none;
  background: none;
  border-radius: var(--radius);
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.15s;
}
.ds-calendar-nav:hover {
  background-color: var(--bg-secondary);
  color: var(--text-main);
}
.ds-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}
.ds-calendar-weekday {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
}
.ds-calendar-day {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  width: 34px;
  margin: 0 auto;
  font-size: 13px;
  border: none;
  background: none;
  border-radius: var(--radius);
  cursor: pointer;
  color: var(--text-main);
  transition: all 0.1s;
  outline: none;
}
.ds-calendar-day:hover { background-color: var(--bg-secondary); }
.ds-calendar-day:focus-visible { box-shadow: var(--focus-ring); }
.ds-calendar-day-outside {
  color: var(--border);
  pointer-events: none;
}
.ds-calendar-day-today {
  font-weight: 600;
  background-color: var(--bg-secondary);
}
.ds-calendar-day-selected {
  background-color: var(--brand) !important;
  color: var(--text-on-brand) !important;
  font-weight: 600;
}
.ds-calendar-day-disabled {
  opacity: 0.3;
  pointer-events: none;
}

/* --- TIMEPICKER DROPDOWN --- */
.ds-time-dropdown {
  background-color: var(--bg-popover);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  z-index: 1100;
  padding: 4px;
  animation: fadeIn 0.1s ease-out;
  display: flex;
  flex-direction: column;
}
.ds-time-options {
  max-height: 220px;
  overflow-y: auto;
}
.ds-time-format-toggle {
  display: flex;
  gap: 2px;
  padding: 4px 4px 6px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 4px;
}
.ds-time-format-btn {
  flex: 1;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 500;
  font-family: inherit;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: none;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s;
}
.ds-time-format-btn:hover { background-color: var(--bg-secondary); }
.ds-time-format-btn-active {
  background-color: var(--brand);
  border-color: var(--brand);
  color: var(--text-on-brand);
}
.ds-time-format-btn-active:hover {
  background-color: var(--brand-hover);
}
.ds-time-option {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 8px 12px;
  font-size: 14px;
  font-family: inherit;
  border: none;
  background: none;
  border-radius: 4px;
  cursor: pointer;
  color: var(--text-main);
  transition: background 0.1s;
  text-align: left;
}
.ds-time-option:hover { background-color: var(--bg-secondary); }
.ds-time-option-selected {
  background-color: var(--brand-light);
  color: var(--brand-active);
  font-weight: 600;
}
.ds-time-option-selected:hover {
  background-color: var(--brand-light);
}

/* --- INPUT GROUP (joined inputs) --- */
.ds-input-group {
  display: flex;
}
.ds-input-group > * {
  min-width: 0;
}
.ds-input-group > *:not(:first-child) {
  margin-left: -1px;
}
.ds-input-group > *:not(:first-child) .ds-input-base,
.ds-input-group > *:not(:first-child) .ds-prepend,
.ds-input-group > *:not(:first-child).ds-btn,
.ds-input-group > *:not(:first-child) .ds-btn {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}
.ds-input-group > *:not(:last-child) .ds-input-base,
.ds-input-group > *:not(:last-child) .ds-append,
.ds-input-group > *:not(:last-child).ds-btn,
.ds-input-group > *:not(:last-child) .ds-btn {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}
.ds-input-group > *:focus-within,
.ds-input-group > *:has(.ds-select-open) {
  z-index: 1;
}
.ds-input-group > .ds-btn {
  flex-shrink: 0;
  white-space: nowrap;
}
.ds-input-group > .ds-btn:focus-visible {
  z-index: 1;
}

/* --- DATETIME GROUP (joined inputs) --- */
.ds-datetime-group {
  display: flex;
}
.ds-datetime-group > *:first-child { flex: 1.2; min-width: 160px; }
.ds-datetime-group > *:last-child { flex: 1; min-width: 160px; }
.ds-datetime-group > *:first-child .ds-input-base {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  border-right: none;
}
.ds-datetime-group > *:last-child .ds-input-base {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

/* ===================================================================
   COLOR PICKER
   =================================================================== */

.ds-color-picker {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ds-color-picker-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-main);
}
.ds-color-picker-field {
  display: flex;
  align-items: center;
  height: var(--control-height);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--input-bg);
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.ds-color-picker-field:hover {
  border-color: #d4d4d8;
}
.ds-color-picker-field:focus-within {
  border-color: var(--brand);
  box-shadow: var(--focus-ring);
}
.ds-color-picker-error {
  border-color: #ef4444;
  background: #fef2f2;
}
.ds-color-picker-error:focus-within {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}
.ds-color-picker-disabled {
  opacity: 0.5;
  pointer-events: none;
}

.ds-color-picker-swatch {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  margin-left: 5px;
  border-radius: calc(var(--radius) - 2px);
  border: 1px solid rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: box-shadow 0.15s;
  padding: 0;
}
.ds-color-picker-swatch:hover {
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
}

.ds-color-picker-input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: none;
  background: transparent;
  padding: 0 10px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text-main);
  outline: none;
}

.ds-color-picker-reset {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 100%;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0;
  transition: color 0.15s;
}
.ds-color-picker-reset:hover {
  color: var(--text-main);
}

.ds-color-picker-native {
  position: absolute;
  visibility: hidden;
  width: 0;
  height: 0;
  padding: 0;
  border: 0;
}

/* ===================================================================
   LAYOUTS — App Header & Sidebar
   =================================================================== */

/* --- APP HEADER --- */
.ds-app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  padding: 0 20px;
  background-color: var(--brand);
  border-bottom: none;
  flex-shrink: 0;
}
.ds-app-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.ds-app-header-right {
  display: flex;
  align-items: center;
  gap: 4px;
}
.ds-app-header-logo {
  display: flex;
  align-items: center;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.5px;
}
.ds-app-header-title {
  font-size: 15px;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
}
.ds-app-header-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  background: none;
  border-radius: var(--radius);
  cursor: pointer;
  color: rgba(255,255,255,0.8);
  transition: all 0.15s;
}
.ds-app-header-menu-btn:hover {
  background-color: rgba(255,255,255,0.15);
  color: #fff;
}
.ds-app-header-icon-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  background: none;
  border-radius: var(--radius);
  cursor: pointer;
  color: rgba(255,255,255,0.8);
  transition: all 0.15s;
}
.ds-app-header-icon-btn:hover {
  background-color: rgba(255,255,255,0.15);
  color: #fff;
}
.ds-app-header-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  font-size: 10px;
  font-weight: 600;
  line-height: 16px;
  text-align: center;
  color: var(--brand);
  background-color: #fff;
  border-radius: 999px;
}
.ds-app-header-user {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px 4px 4px;
  border: none;
  background: none;
  border-radius: var(--radius);
  cursor: pointer;
  color: #fff;
  transition: background-color 0.15s;
  margin-left: 8px;
}
.ds-app-header-user:hover { background-color: rgba(255,255,255,0.15); }
.ds-app-header-user-name {
  font-size: 13px;
  font-weight: 500;
}
/* Light header variant */
.ds-app-header-light {
  background-color: #fff;
  border-bottom: 1px solid var(--border);
}
.ds-app-header-light .ds-app-header-logo { color: var(--brand); }
.ds-app-header-light .ds-app-header-title { color: var(--text-main); }
.ds-app-header-light .ds-app-header-menu-btn { color: var(--text-muted); }
.ds-app-header-light .ds-app-header-menu-btn:hover { background-color: var(--bg-secondary); color: var(--text-main); }
.ds-app-header-light .ds-app-header-icon-btn { color: var(--text-muted); }
.ds-app-header-light .ds-app-header-icon-btn:hover { background-color: var(--bg-secondary); color: var(--text-main); }
.ds-app-header-light .ds-app-header-badge { color: #fff; background-color: var(--brand); }
.ds-app-header-light .ds-app-header-user { color: var(--text-main); }
.ds-app-header-light .ds-app-header-user:hover { background-color: var(--bg-secondary); }

/* --- APP SIDEBAR --- */
.ds-app-sidebar {
  width: var(--sidebar-width);
  height: 100%;
  background-color: #fff;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  overflow-y: auto;
}
.ds-app-sidebar-collapsed { width: var(--sidebar-width-collapsed); }
.ds-app-sidebar-nav {
  flex: 1;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ds-app-sidebar-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-muted);
}
.ds-sidebar-section { margin-bottom: 6px; }
.ds-sidebar-section-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 8px 14px;
  border: none;
  background: none;
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 4px;
}
.ds-sidebar-section-label:hover { background-color: var(--bg-secondary); }
.ds-sidebar-items {
  list-style: none;
  margin: 0;
  padding: 4px 0 0;
}
.ds-sidebar-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 14px;
  border: none;
  background: none;
  font-size: 15px;
  font-family: inherit;
  color: var(--text-muted);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.15s;
  text-align: left;
  text-decoration: none;
}
.ds-sidebar-item:hover {
  background-color: var(--bg-secondary);
  color: var(--text-main);
}
.ds-sidebar-item-active {
  background-color: var(--brand);
  color: #fff;
  font-weight: 500;
}
.ds-sidebar-item-active:hover {
  background-color: var(--brand-hover);
  color: #fff;
}
.ds-sidebar-item-badge {
  margin-left: auto;
  font-size: 12px;
  font-weight: 600;
  padding: 0 8px;
  height: 22px;
  line-height: 22px;
  border-radius: 999px;
  background-color: var(--bg-secondary);
  color: var(--text-muted);
}
.ds-sidebar-item-active .ds-sidebar-item-badge {
  background-color: rgba(255,255,255,0.25);
  color: #fff;
}
.ds-app-sidebar-collapsed .ds-sidebar-item {
  justify-content: center;
  padding: 10px;
}
.ds-sidebar-child-toggle {
  margin-left: auto;
  background: none;
  border: none;
  padding: 2px;
  cursor: pointer;
  color: inherit;
  opacity: 0.5;
  display: flex;
  align-items: center;
  border-radius: 4px;
  transition: opacity 0.15s;
}
.ds-sidebar-child-toggle:hover {
  opacity: 1;
}
.ds-sidebar-subitems {
  list-style: none;
  margin: 0;
  padding: 0;
  overflow: visible;
}
.ds-sidebar-subitems > li {
  position: relative;
}
/* Connector from parent item down into subitems */
.ds-sidebar-li-open {
  position: relative;
}
.ds-sidebar-li-open > .ds-sidebar-item::after {
  content: '';
  position: absolute;
  left: var(--sidebar-line-offset, 24px);
  bottom: 0;
  height: 8px;
  border-left: 1px solid var(--border);
}
/* Vertical line */
.ds-sidebar-subitems > li::before {
  content: '';
  position: absolute;
  left: var(--sidebar-line-offset, 24px);
  top: 0;
  height: 100%;
  border-left: 1px solid var(--border);
  z-index: 1;
  pointer-events: none;
}
/* Horizontal branch */
.ds-sidebar-subitems > li::after {
  content: '';
  position: absolute;
  left: var(--sidebar-line-offset, 24px);
  top: 20px;
  width: 14px;
  border-top: 1px solid var(--border);
  z-index: 1;
  pointer-events: none;
}
/* Active item: soft orange lines */
.ds-sidebar-subitems > li:has(> .ds-sidebar-item-active)::before {
  border-left-color: rgba(255, 255, 255, 0.2);
}
.ds-sidebar-subitems > li:has(> .ds-sidebar-item-active)::after {
  border-top-color: rgba(255, 255, 255, 0.2);
}
/* Last child: L shape */
.ds-sidebar-subitems > li:last-child::before {
  height: 20px;
}
/* Hide lines when collapsed */
.ds-app-sidebar-collapsed .ds-sidebar-subitems > li::before,
.ds-app-sidebar-collapsed .ds-sidebar-subitems > li::after {
  display: none;
}
.ds-sidebar-item-sub {
  padding: 10px 14px 10px 48px;
}
.ds-app-sidebar-collapsed .ds-sidebar-item-sub {
  padding: 8px;
}

/* --- BLOCK EXAMPLE PICKER --- */
.ds-block-picker {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  background-color: #18181b;
  border-bottom: 1px solid #27272a;
  overflow-x: auto;
}
.ds-block-picker-btn {
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  border: 1px solid #3f3f46;
  background: none;
  color: #a1a1aa;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
}
.ds-block-picker-btn:hover { border-color: #52525b; color: #d4d4d8; }
.ds-block-picker-btn-active {
  background-color: var(--brand);
  border-color: var(--brand);
  color: white;
}
.ds-block-picker-btn-active:hover {
  background-color: var(--brand-hover);
  border-color: var(--brand-hover);
}

/* --- ACTION CARD BUTTONS --- */
.ds-action-btn {
  flex: 1;
  height: 40px;
  padding: 0 12px;
  border: none;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: filter 0.15s, background-color 0.15s;
  background: var(--brand);
  color: #fff;
}
.ds-action-btn:hover { filter: brightness(1.08); }
.ds-action-btn:active { filter: brightness(0.92); }

.ds-action-btn-secondary {
  background: #fff;
  color: var(--brand);
}
.ds-action-btn-secondary:hover {
  filter: none;
  background-color: color-mix(in srgb, var(--brand) 8%, #fff);
}
.ds-action-btn-secondary:active {
  filter: none;
  background-color: color-mix(in srgb, var(--brand) 15%, #fff);
}

/* --- DROP ZONE --- */
.ds-dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 32px 24px;
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  background-color: var(--bg-secondary);
  cursor: pointer;
  transition: border-color 0.15s, background-color 0.15s;
  text-align: center;
}
.ds-dropzone:hover {
  border-color: var(--brand);
  background-color: rgba(var(--brand-r), var(--brand-g), var(--brand-b), 0.04);
}
.ds-dropzone-active {
  border-color: var(--brand);
  background-color: rgba(var(--brand-r), var(--brand-g), var(--brand-b), 0.08);
}
.ds-dropzone-disabled {
  opacity: 0.5;
  pointer-events: none;
}
.ds-dropzone-icon {
  color: var(--text-muted);
}
.ds-dropzone-active .ds-dropzone-icon {
  color: var(--brand);
}
.ds-dropzone-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-main);
}
.ds-dropzone-hint {
  font-size: 12px;
  color: var(--text-muted);
}

/* --- ANIMATIONS --- */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideInRight { from { transform: translateX(100%); } to { transform: translateX(0); } }
@keyframes slideInUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }


* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  line-height: inherit;
}

html,
body {
  background-color: #e4e4e4;
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  font-size: 14px;
  font-family: 'Roboto', 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* color: #444; */
  overflow: hidden;
  /* line-height: 1.5;
  line-height: 1; */
}

#root {
  /* display: flex; */
  height: 100%;
}

body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
table,
select {
  margin: 0;
}

input,
button {
  outline: 0;
  border: 0;
}

button {
  cursor: pointer;
}
