.wrapperPainter {
  display: flex;
}

.panelPaintBoxRight {
  position: relative;
  width: 100%;
}

.canvas-container-painter {
  width: auto !important;
  height: auto !important;
}

.canvas-container-painter canvas {
  width: 100% !important;
  height: auto !important;
  border: 1px solid #000000;
}

.panelPaintBoxLeft {
  display: flex;
  flex-direction: column;
}
.comfy-menu-btns button.active {
  color: var(--error-text) !important;
  font-weight: bold;
  border: 1px solid;
}
.alekpet_painter_manipulation_box > div {
  display: grid;
  gap: 2px;
  grid-template-columns: 0.1fr 0.1fr 0.1fr 0.1fr 0.1fr;
  justify-content: center;
  margin-bottom: 2px;
}
.alekpet_painter_manipulation_box > div button {
  font-size: 0.5rem;
  width: 80px;
}
.alekpet_painter_manipulation_box > div button[id^="zpos"]:active {
  background-color: #484848;
}
.alekpet_painter_drawning_box {
  min-width: 100px;
}

.panelPaintBoxRight_options {
  min-height: 55px;
}

.property_brushesBox > button,
.property_cropBox > button {
  width: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.alekpet_painter_drawning_box_property select {
  color: var(--input-text);
  background-color: var(--comfy-input-bg);
  border-radius: 4px;
  border-color: var(--border-color);
  border-style: solid;
}
.alekpet_painter_separator {
  width: 1px;
  height: 25px;
  background-color: var(--border-color);
  display: inline-block;
  vertical-align: middle;
  margin: 0 4px 0 4px;
}
.alekpet_painter_drawning_box > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: center;
}
.alekpet_painter_drawning_box input[type="number"] {
  width: 50px;
  color: var(--input-text);
  background-color: var(--comfy-input-bg);
  border-radius: 8px;
  border-color: var(--border-color);
  border-style: solid;
}
.alekpet_painter_drawning_box input[type="color"] {
  width: 1.5rem;
  height: 1.5rem;
  padding: 2px;
  margin-bottom: 5px;
  color: var(--input-text);
  background-color: var(--comfy-input-bg);
  border-radius: 8px;
  border-color: var(--border-color);
  border-style: solid;
}

.alekpet_painter_bg_setting button {
  width: 50px;
  height: 20px;
}
.alekpet_painter_bg_setting #bgColor:after {
  content: attr(data-label);
  position: absolute;
  color: var(--input-text);
  left: 5%;
  font-size: 0.5rem;
  margin-top: -15%;
}

.alekpet_painter_bg_setting_box {
  display: flex;
  gap: 5px;
  align-items: flex-start;
}

.alekpet_painter_bg_setting_box > button {
  width: 25px;
  height: 25px;
  margin: 0;
  padding: 4px;
}

.alekpet_painter_colors_box input[type="color"]::-webkit-color-swatch-wrapper,
.alekpet_painter_bg_setting input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 1px !important;
}
.alekpet_painter_grid_style {
  display: grid;
  gap: 3px;
  font-size: 0.55rem;
  text-align: center;
  align-items: start;
  justify-items: center;
}
.alekpet_painter_shapes_box {
  grid-template-columns: 1fr 1fr 1fr;
}
.alekpet_painter_shapes_box button,
.alekpet_property_textBox button,
.alekpet_painter_history_panel > button {
  width: 25px;
  height: 25px;
}

.alekpet_painter_settings_box {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.alekpet_painter_settings_box button,
.alekpet_painter_mode_box > button {
  width: 80px;
  height: 20px;
}

.painter_colors_alpha {
  grid-template-columns: 0.7fr 0.7fr;
}
.fieldset_box {
  padding: 2px;
  margin: 15px 0 2px 0;
  position: relative;
  text-align: center;
}
.fieldset_box:before {
  content: attr(f_name) ":";
  font-size: 0.6rem;
  position: absolute;
  top: -10px;
  color: yellow;
  left: 0;
  right: 0;
}
.alekpet_list_objects_panel {
  font-size: 0.7rem;
}
.alekpet_list_objects_panel__items {
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-y: auto;
  scrollbar-color: var(--descrip-text) var(--bg-color);
  scrollbar-width: thin;
  max-height: 350px;
}
.alekpet_list_objects_panel__items button {
  width: 80% !important;
}
.alekpet_list_objects_panel__items::-webkit-scrollbar,
.kistey__body::-webkit-scrollbar {
  width: 8px;
}
.alekpet_list_objects_panel__items::-webkit-scrollbar-track,
.kistey__body::-webkit-scrollbar-track {
  background-color: var(--descrip-text);
}
.alekpet_list_objects_panel__items::-webkit-scrollbar-thumb,
.kistey__body::-webkit-scrollbar-thumb {
  background-color: var(--fg-color);
}
.alekpet_list_objects_align {
  display: flex;
  flex-direction: column;
  text-align: center;
  justify-content: space-between;
  height: 430px;
}
.alekpet_list_objects_align > div {
  flex: 1;
}
.alekpet_viewlist__itembox {
  flex-direction: row;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2px;
}
.alekpet_viewlist__itembox > img {
  width: 12px;
  cursor: pointer;
}
.alekpet_viewlist__itembox > img:hover {
  opacity: 0.8;
}
.alekpet_painter_history_panel {
  position: absolute;
  padding: 4px;
  display: flex;
  gap: 4px;
  right: 0;
  opacity: 0.5;
  flex-direction: row;
  width: fit-content;
}
.alekpet_painter_history_panel > button {
  background: black;
}
.alekpet_painter_history_panel > button:hover:enabled {
  opacity: 1;
  border-color: var(--error-text);
  color: var(--error-text) !important;
}
.alekpet_painter_history_panel > button:disabled {
  opacity: 0.5;
}
.alekpet_painter_stroke_box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.alekpet_painter_stroke_box > label span {
  margin-right: 9px;
  vertical-align: middle;
  font-size: 10px;
  color: var(--input-text);
}
.property_brushesBox,
.property_brushesSecondBox {
  display: flex;
  gap: 5px;
  width: auto;
}

.property_brushesSecondBox > button {
  width: 30px;
  font-size: 0.5rem;
}
.property_brushesSecondBox svg {
  width: 100%;
  height: 100%;
}
.active svg > .cls-2 {
  fill: var(--error-text);
}
.active svg > * {
  stroke: var(--error-text);
}

/* -- Styles Kistey */
.viewMenuBrushes {
  position: absolute;
  opacity: 0.9;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  left: 101%;
}

.kistey__title {
  display: flex;
  gap: 5px;
  justify-content: space-evenly;
  width: 100%;
  align-items: center;
}

.kistey__body {
  display: grid;
  grid-auto-rows: auto;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
  background: #2d2d2d;
  padding: 5px;
  max-height: 230px;
  overflow-y: auto;
  min-width: 250px;
}

.kistey__img {
  width: 50px;
}

.kistey__img img {
  max-width: 100%;
}

.kistey__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: 0.6s all;
  cursor: pointer;
  user-select: none;
}

.kistey__item:hover,
.kistey__arrow:hover {
  transform: scale(1.05);
}

.kistey__selected {
  outline: 3px solid #4003fd;
}

.kistey__name {
  background: #2a272b;
  font-size: 0.5rem;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
  width: 50px;
}

.kistey__arrow {
  transition: 0.6s transform;
  cursor: pointer;
  user-select: none;
  color: silver;
}

.kistey__arrow:hover {
  color: white;
  transform: scale(1.25);
}

.kistey_dir__name {
  font-weight: bold;
  text-transform: capitalize;
  min-width: 150px;
  user-select: none;
  cursor: pointer;
}

.kistey_dir__name_wrapper {
  display: flex;
  max-width: 50%;
  flex: 1 0 0;
  overflow: hidden;
  align-items: center;
  justify-content: flex-start;
}

.kistey_directory_slider {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  position: relative;
  transition: 1s all;
}

.kistey_directory_popup {
  position: absolute;
  top: 35px;
  left: 70%;
  background: black;
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 10px 5px;
  border-radius: 6px;
  border: 2px solid #4300e7;
  opacity: 0.9;
  transform: translateX(-50%);
  z-index: 2;
  box-shadow: 4px 4px 8px #4300e7;
}

.kistey_dir__name-popup:hover {
  background: #4300e7;
}

.pop_active {
  color: #38ffc1;
}
/* -- end Styles Kistey -- */

/* -- Styles Settigs Kistey -- */
.kistey_setting__item {
  display: flex;
  align-items: center;
}

.kistey_settings_body input[type="range"] {
  width: 100px;
}

.kistey_settings_body input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  background: linear-gradient(
    to right,
    #15539e 0%,
    #15539e 50%,
    #282828 50%,
    #282828 100%
  );
  cursor: pointer;
  border-radius: 16px;
  border: 1px solid black;
  transition: background 400ms ease-in;
}

.kistey_settings_body input[type="range"]::-webkit-slider-runnable-track {
  -webkit-appearance: none;
  appearance: none;
  border-radius: 16px;
  height: 3.2px;
}

.kistey_settings_body input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  margin-top: -6.4px;
  background: #2b2b2b;
  border: 1px solid black;
  height: 1rem;
  width: 1rem;
  border-radius: 50%;
}

.kistey_settings_body input[type="range"]::-webkit-slider-thumb:hover {
  background-color: rgb(49 49 49);
}
/* -- end Styles Settigs Kistey -- */

/* Settings store managing data */
.painter_storage_box {
  width: 30vw;
  display: flex;
  flex-direction: column;
  gap: 20px;
  color: var(--primary-fg);
}

.painter_storage_header {
  display: flex;
  justify-content: space-around;
  background: var(--content-bg);
  padding: 3px;
  border-radius: 8px;
  align-items: center;
}

.painter_storage_body {
  text-align: center;
}

.painter_storage_items_box {
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: stretch;
  justify-content: center;
}

.painter_storage_workflows_item {
  cursor: pointer;
}

.painter_storage_workflows_item:hover {
  background: var(--primary-hover-bg) !important;
}

.painter_storage_grid {
  display: grid;
  grid-template-columns: 0.2fr 0.2fr repeat(3, 1fr);
  justify-content: center;
  place-items: center;
}

.painter_storage_items_header {
  background: var(--primary-bg);
  text-transform: uppercase;
}

.painter_storage_painters_item_preview_canvas {
  width: 60% !important;
  height: auto !important;
}

/* Workflows */

.painter_storage_painters_wrapper {
  border: 1px solid var(--border-color);
  background: var(--p-button-outlined-contrast-hover-background);
}

.painter_storage_painters_grid {
  grid-template-columns: 0.2fr repeat(4, 1fr);
}

.painter_storage_painters_header {
  background: var(--descrip-text);
}

.painter_storage_painters_item_name {
  text-wrap: nowrap;
  width: 90%;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* -- end Settings store managing data */
