body {
  margin: 0;
  color: #000;
  font: 400 14px/1 "Open Sans","Arial", sans-serif;
  background: #bebebe;
  -webkit-font-smoothing: antialiased;
}

body.modal-open {
  overflow: hidden;
}

img {
  display: block;
  border-style: none;
  max-width: 100%;
}

button,
a {
  font-family: "Open Sans","Arial", sans-serif;
  line-height: 1;
  color: #000;
  outline: none;
  webkit-transition: all 200ms linear;
  -moz-transition: all 200ms linear;
  -ms-transition: all 200ms linear;
  -o-transition: all 200ms linear;
  transition: all 200ms linear;
}



a:hover {
  text-decoration: none;
}

* {
  outline: none;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  -ms-box-sizing: border-box;
  -o-box-sizing: border-box;
  box-sizing: border-box;
}

input, textarea, select {
  font: 100% "Open Sans", "Arial", sans-serif;
  vertical-align: middle;
  -webkit-appearance: none;
  -webkit-border-radius: 0;
}

input:not([type="radio"], [type="checkbox"]), textarea, select {
  font: 100% Open Sans, Arial, Helvetica, sans-serif;
  vertical-align: middle;
  -webkit-appearance: none;
}

input:disabled {
  background: #dfdfdf;
}

form, fieldset {
  margin: 0;
  padding: 0;
  border-style: none;
  min-width: 0;
}

fieldset {
  /*max-width: 100%;*/
  /*display: table-cell;*/
}

header,
nav,
section,
article,
aside,
footer,
figure,
menu,
dialog {
  display: block;
}

ul, ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

dl {
  margin: 0 0 10px;
}

nav ul, nav ol {
  list-style: none;
  list-style-image: none;
  margin: 0;
  padding: 0;
}

ul li {
  list-style: none;
  list-style: none outside;
}

p {
  margin: 0 0 10px;
}

h1 {
  font-size: 40px;
  line-height: 1;
  margin: 0 0 20px;
}

h2 {
  font-size: 30px;
  line-height: 1;
  margin: 0 0 18px;
}

h3 {
  font-size: 24px;
  line-height: 1;
  margin: 0 0 16px;
}

h4 {
  font-size: 22px;
  line-height: 1;
  margin: 0 0 14px;
}

h5 {
  font-size: 20px;
  line-height: 1;
  margin: 0 0 12px;
}

h6 {
  font-size: 18px;
  line-height: 1;
  margin: 0 0 10px;
}

a {
  text-decoration: none;
  outline: none;
}

button,
input[type="submit"],
input[type="file"]::-webkit-file-upload-button {
  cursor: pointer;
}

textarea:-moz-placeholder {
  color: #000000;
}

textarea::-moz-placeholder {
  color: #000000;
  opacity: 1;
}

textarea::-webkit-input-placeholder {
  color: #000000;
}

textarea:-ms-input-placeholder {
  color: #000000;
}

textarea::placeholder {
  color: #000000;
}

input:-moz-placeholder {
  color: #000000;
}

input::-moz-placeholder {
  color: #000000;
  opacity: 1;
}

input::-webkit-input-placeholder {
  color: #000000;
}

input:-ms-input-placeholder {
  color: #000000;
}

input::placeholder {
  color: #000000;
}

input:focus::-webkit-input-placeholder {
  color: transparent;
}

input:focus:-moz-placeholder {
  color: transparent;
}

input:focus:-ms-input-placeholder {
  color: transparent;
}

input:focus::-moz-placeholder {
  color: transparent;
}

/* =============================================================================
	MAIN
	========================================================================== */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  min-width: 1280px;
  -webkit-text-size-adjust: none;
}

#wrapper {
  overflow: hidden;
  position: relative;
  width: 100%;
  height: 100%;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
  -ms-flex-direction: column;
  flex-direction: column;
}

#main {
  margin: 0 17px;
  position: relative;
  -webkit-box-flex: 1;
  -webkit-flex: 1;
  -ms-flex: 1;
  flex: 1;
  overflow: hidden;
  display: flex;
}

* html #wrapper {
  height: 100%;
}

.container {
  width: 100%;
  padding: 0 17px;
  margin: 0 auto;
}


/* =============================================================================
	HEADER
	========================================================================== */
#header {
  padding: 8px 0;
  margin: 0 0 8px;
  background: #ffffff;
  border-bottom: 1px solid #d7d7d7;
}

.header-top {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo {
  display: block;
  background: url("../images/logo.png") no-repeat;
  width: 32px;
  height: 24px;
  overflow: hidden;
  text-indent: -9999px;
}

.logo strong {
  display: block;
  height: 100%;
}

.header-buttons {
  display: flex;
  gap: 9px;
}

.btn {
  min-height: 30px;
  padding: 4px 12px;
  background-color: #f9f9f9;
  border: 1px solid #d9d9d9;
  cursor: pointer;
  line-height: 1;
  display: inline-flex;
  font-size: 13px;
  border-radius: 3px;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  webkit-transition: all 200ms linear;
  -moz-transition: all 200ms linear;
  -ms-transition: all 200ms linear;
  -o-transition: all 200ms linear;
  transition: all 200ms linear;
}

.btn:hover {
  background-color: #f0f0f0;
}

button svg,
a svg {
  width: 1em;
  height: 1em;
  display: block;
}


.control-actions {
  text-align: center;
  padding-top: 14px!important;
}

.btn-read {
  margin: 0 0 13px;
  gap: 17px;
  padding: 13px 35px 13px 22px;
  color: #ffffff;
  border: none;
  background: linear-gradient(to bottom, #e54547 0%, #dc3c3e 50%, #d43336 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
}

.control-actions .btn {
  text-transform: uppercase;
}

.btn-read:hover {
  opacity: 0.8;
}

.action-link {
  border: none;
  padding: 0;
  background: transparent;
  text-decoration: underline;
  font-size: 13px;
  color: rgba(0, 0, 0, 0.75);
}

.action-link:hover {
  text-decoration: none;
}

.header-page-nav {
  display: flex;
  min-height: 30px;
  background-color: #f9f9f9;
  border: 1px solid #d9d9d9;
  font-size: 13px;
  border-radius: 3px;
}

.header-page-nav a:first-child {
  border-right: 1px solid #d9d9d9;
}

.header-page-nav a {
  display: flex;
  align-items: center;
  padding: 5px 11px;
  font-size: 15px;
}

.header-page-nav a.disabled {
  pointer-events: none;
  cursor: default;
  opacity: .6;
}

.header-page-nav a:hover {
  background-color: #f0f0f0;
}

.main-menu {
  flex: 1;
  padding: 0 4px;
}

.nav-menu {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 14px;
  font-weight: 600;
}

.main-menu ul > li {
  position: relative;
}

.main-menu > ul > li > a {
  display: inline-block;
  vertical-align: top;
  padding: 5px 10px;
  text-decoration: none;
  border-radius: 4px;
}

.main-menu > ul > li > a:hover,
.main-menu > ul > li.is-open > a {
  background-color: #dbdbdb;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  padding: 6px 0;
  background-color: #ffffff;
  border: 1px solid #919191;
  box-shadow: 0px 3px 7px rgba(0, 0, 0, 0.16);
  border-radius: 3px;
  display: none !important;
  z-index: 1000;
  list-style: none;
  margin-left: 0;
}

/* Menu opens via JavaScript by adding .is-open class */
.has-dropdown.is-open > .dropdown-menu {
  display: block !important;
}

.dropdown-menu li {
  white-space: nowrap;
  margin: 0;
  padding: 0;
}

.dropdown-menu > li > a {
  display: block;
  cursor: pointer;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 400;
  color: #000;
  text-decoration: none;
}

.dropdown-menu > li > a:hover {
  background-color: #f5f5f5;
}

.menu-divider {
  border-bottom: 1px solid #d9d9d9;
}

.menu-divider a {
  display: none;
}

.nav-menu .is-disabled > a {
  color: #919191;
  pointer-events: none;
  cursor: default;
}

.has-submenu {
  position: relative;
}

.has-submenu > a {
  position: relative;
  padding-right: 28px;
}

.has-submenu > a::after {
  content: "";
  position: absolute;
  right: 10px;
  top: 50%;
  width: 6px;
  height: 6px;
  border: solid #131313;
  border-width: 0 1px 1px 0;
  transform: translate(-50%, -50%) rotate(-45deg);
}

.dropdown-menu.submenu-right {
  top: 0;
  left: 99.9%;
  margin-top: 0;
  display: none !important;
}

/* Submenu opens via .is-open class */
.has-submenu.is-open > .dropdown-menu {
  display: block !important;
}

.btn-exit {
  padding: 6px 13px;
  background-color: #ffffff;
  border: 1px solid #cfcfcf;
  cursor: pointer;
  font-size: 13px;
  border-radius: 2px;
  color: #333;
}

.btn-exit:hover {
  background-color: #f0f0f0;
}

.control-bar {
  display: flex;
  gap: 20px;
  min-height: 99px;
  margin: 0 0 10px;
  background-color: #f9f9f9;
  padding: 0 19px;
  border-radius: 6px;
}

.control-section {
  display: flex;
  position: relative;
  flex-direction: column;
  padding: 17px 21px 10px 0;
  border-right: 1px solid #d3d3d3;
}

.control-section:last-child {
  flex: 0 0 auto;
}

.control-section .label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #333333;
  margin: 0 0 11px 0;
}

.sheet-length-label-trigger {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.sheet-length-label-trigger:hover {
  text-decoration: underline;
}

.input-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 50px;
}

.input-with-controls {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.sheet-length-input,
.eaves-input {
  width: 100%;
  padding: 5px 30px 5px 25px;
  border: 1px solid #b7b7b7;
  background-color: #ffffff;
  font-size: 13px;
  border-radius: 3px;
  height: 38px;
  box-sizing: border-box;
}

.sheet-length-input {
  padding-left: 45px;
  padding-right: 25px;
  width: 153px;
}

.sheet-length-input[readonly] {
  cursor: pointer;
}

.eaves-input {
  max-width: 130px;
  padding-left: 13px;
  padding-right: 30px;
}

.input-arrows {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 32px;
  background-color: #ffffff;
  border: 1px solid #d0d0d0;
  border-right: 1px solid #b7b7b7;
  border-top-left-radius: 3px;
  border-bottom-left-radius: 3px;
  display: flex;
  flex-direction: column;
  z-index: 1;
  justify-content: space-between;
  align-items: center;
  padding: 5px 0;
  box-sizing: border-box;
}

.input-arrows .arrow-up,
.input-arrows .arrow-down {
  position: relative;
  width: 100%;
  flex: 1;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.input-arrows .arrow-up::before,
.input-arrows .arrow-down::before {
  content: "";
  width: 5px;
  height: 5px;
  border: solid #131313;
  border-width: 0 1px 1px 0;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.input-arrows .arrow-up::before {
  transform: translate(-50%, -50%) rotate(-135deg);
}

.input-arrows .arrow-down::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.input-arrows .arrow-up:hover,
.input-arrows .arrow-down:hover {
  opacity: 0.7;
}

.input-dropdown {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1;
  line-height: 1;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.input-dropdown::before {
  content: "";
  width: 6px;
  height: 6px;
  border: solid #131313;
  border-width: 0 1px 1px 0;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
}

.input-dropdown:hover::before {
  border-color: #333;
}

.sheet-length-control--open .sheet-length-input,
.sheet-length-control--open .sheet-length-input:focus {
  border-color: #6c6c6c;
}

.sheet-length-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background-color: #ffffff;
  border: 1px solid #b7b7b7;
  border-radius: 4px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
  max-height: 220px;
  overflow-y: auto;
  padding: 6px 0;
  display: none;
  z-index: 20;
}

.sheet-length-control--open .sheet-length-dropdown {
  display: block;
}

.sheet-length-dropdown__item {
  width: 100%;
  padding: 6px 16px;
  text-align: left;
  background: none;
  border: none;
  font-size: 13px;
  color: #1c1c1c;
  cursor: pointer;
}

.sheet-length-dropdown__item:hover,
.sheet-length-dropdown__item:focus {
  background-color: #f3f3f3;
}

.sheet-length-dropdown__item.is-active {
  background-color: #e7eefc;
  font-weight: 600;
}

.sheet-length-dropdown::-webkit-scrollbar {
  width: 6px;
}

.sheet-length-dropdown::-webkit-scrollbar-track {
  background: transparent;
}

.sheet-length-dropdown::-webkit-scrollbar-thumb {
  background-color: #bcbcbc;
  border-radius: 3px;
}

.input-arrows .arrow-up.is-disabled,
.input-arrows .arrow-down.is-disabled {
  opacity: 0.4;
  pointer-events: none;
}

.input-gear {
  position: absolute;
  cursor: pointer;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 0;
  font-size: 19px;
  color: #000;
  z-index: 1;
  line-height: 1;
}

.input-gear:hover {
  opacity: 0.7;
}

.helper-block {
  position: relative;
}

.control-section .helper-block {
  position: absolute;
  right: 7px;
  bottom: 3px;
  display: flex;
  justify-content: end;
}

.help-icon {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid #e8e8e8;
  background-color: transparent;
  color: #828282;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: 0;
  webkit-transition: all 200ms linear;
  -moz-transition: all 200ms linear;
  -ms-transition: all 200ms linear;
  -o-transition: all 200ms linear;
  transition: all 200ms linear;
}

.help-icon:hover {
  background-color: #c0c0c0;
  color: #333;
}

.tippy-box[data-theme~='helper'] {
  background-color: #ffffff;
  padding: 0;
  box-shadow: 0 3px 7px rgba(0, 0, 0, 0.35);
  position: relative;
  border-radius: 0;
}

.tippy-content {
  max-width: 230px;
  padding: 9px 5px;
}

.tippy-content img {
  width: 100%;
}

.helper-template__body {
  padding: 0 8px;
  font-size: 12px;
  line-height: 1.5;
  color: #4a4a4a;
}

.helper-template__title {
  display: block;
  margin: 0 0 2px;
  font-size: 12px;
  font-weight: 600;
  color: #2a2a2a;
}

.helper-template__link {
  font-size: 13px;
  color: #1f66d1;
  text-decoration: underline;
}

.helper-template__close {
  position: absolute;
  top: 15px;
  right: 10px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: #3f3f3f;
  cursor: pointer;
  z-index: 2;
}

.helper-template__close::before,
.helper-template__close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 1px;
  background-color: #ffffff;
  transform-origin: center;
}

.helper-template__close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.helper-template__close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.helper-template__close:hover {
  background: rgba(29, 41, 63, 0.75);
}

.helper-template__footer {
  border-top: 1px solid #d5d5d5;
  margin: 18px 0 0;
  padding: 5px 0;
}

.helper-template__link {
  display: inline-block;
  vertical-align: top;
  font-size: 12px;
  color: #0078d7;
}

.content-modal {
  position: absolute;
  z-index: 9;
  left: 0;
  top: 100%;
  overflow: hidden;
  background: #ffffff;
  border-radius: 3px;
  border: 1px solid #919191;
  box-shadow: 0 3px 7px rgba(0, 0, 0, 0.16);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 200ms ease, visibility 200ms ease;
}

.content-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.alert-modal {
  width: 316px;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9999;
}

.content-alert {
  display: flex;
  gap: 30px;
}

.content-alert .holder-img {
  flex: 0 0 58px;
  width: 58px;
  font-size: 13px;
  line-height: 17px;
}

.content-alert p {
  margin: 0 0 15px;
}

.content-alert .modal-btn {
  width: 136px;
  border-color: #0078d7;
}

.content-modal__header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 15px;
  background: #efefef;
}

.content-modal-title {
  display: block;
  font-size: 13px;
  font-weight: 600;
}

.content-modal__close {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 33px;
  border: none;
  background: none;
  cursor: pointer;
  webkit-transition: all 200ms linear;
  -moz-transition: all 200ms linear;
  -ms-transition: all 200ms linear;
  -o-transition: all 200ms linear;
  transition: all 200ms linear;
}

.content-modal__close:hover {
  background: #cf2c2f;
}

.content-modal__close::before,
.content-modal__close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 1px;
  background-color: #5d5d5d;
  webkit-transition: all 200ms linear;
  -moz-transition: all 200ms linear;
  -ms-transition: all 200ms linear;
  -o-transition: all 200ms linear;
  transition: all 200ms linear;
}

.content-modal__close:hover:before,
.content-modal__close:hover:after {
  background-color: #ffffff;
}

.content-modal__close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.content-modal__close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.sheet-length-modal {
  width: 323px;
}

.main-modal {
  padding: 10px 15px 15px;
}

.sheet-length-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.sheet-length-grid--extra {
  display: none;
  margin-top: 6px;
}

.sheet-length-grid--extra.is-visible {
  display: grid;
}

.sheet-length-option {
  position: relative;
  cursor: pointer;
  display: block;
}

.sheet-length-option input {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.sheet-length-option span {
  display: block;
  border: 1px solid #cfd4dc;
  border-radius: 3px;
  padding: 7px 0;
  text-align: center;
  font-size: 12px;
  background-color: #fff;
  transition: border-color 200ms ease, box-shadow 200ms ease, color 200ms ease, background-color 200ms ease;
}

.sheet-length-option:hover span {
  border-color: #0078d7;
}

.sheet-length-option input:checked + span {
  border-color: #0078d7;
}

.sheet-length-more {
  border: 1px solid #cfd4dc;
  border-radius: 3px;
  background-color: #fff;
  font-size: 11px;
  cursor: pointer;
  padding: 3px 0;
  text-align: center;
  transition: border-color 200ms ease, background-color 200ms ease, color 200ms ease;
}

.sheet-length-more:hover {
  border-color: #9fb5d8;
  background-color: #f8f8f8;
}

.sheet-length-more[aria-expanded="true"] {
  border-color: #3b7ddd;
  color: #1f5ec9;
}

.list-radio {
  margin-bottom: 13px;
}

.list-radio label {
  display: flex;
  font-size: 13px;
  margin-bottom: 12px;
  gap: 8px;
}

.list-radio input {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  margin: 0;
  border: 1px solid #7d7d7d;
  border-radius: 50%;
  position: relative;
  cursor: pointer;
  background-color: #f4f4f4;
}

.list-radio input:checked {
  background-color: #1f5ec9;
  border-color: #1f5ec9;
}

.list-radio input:checked::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  background-color: #ffffff;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.list-radio span {
  flex: 1;
}

.checkbox {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
  font-size: 13px;
  color: #000;
}

.checkbox input[type="checkbox"] {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 15px;
  height: 15px;
  margin: 0;
  border: 1px solid #828282;
  position: relative;
  cursor: pointer;
  background-color: #ffffff;
  flex-shrink: 0;
  border-radius: 2px;
}

.checkbox input[type="checkbox"]:checked {
  background-color: #828282;
  border-color: #828282;
}

.checkbox input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 3px;
  height: 7px;
  border: solid #ffffff;
  border-width: 0 2px 2px 0;
  transform: translate(-50%, -60%) rotate(45deg);
}

.sheet-length-modal__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.sheet-length-modal__action-buttons {
  display: flex;
  gap: 10px;
}

.modal-btn {
  border-radius: 6px;
  border: 1px solid #c7c7c7;
  background-color: #f2f2f2;
  padding: 11px;
  font-size: 13px;
  cursor: pointer;
  transition: background-color 200ms ease;
}

.modal-btn:hover {
  background-color: #ffffff;
}

.modal-gear {
  border: none;
  background: transparent;
  padding: 0;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-gear:hover {
  opacity: 0.7;
}

.overhang-modal {
  display: block !important;
  width: 300px;
}

.tools-button {
  display: flex;
  gap: 8px;
  align-items: center;
}

.tool-button {
  width: 40px;
  height: 38px;
  border: 1px solid #d9d9d9;
  background-color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 23px;
  border-radius: 3px;
}

.tool-button:hover {
  background-color: #f0f0f0;
  webkit-transition: all 200ms linear;
  -moz-transition: all 200ms linear;
  -ms-transition: all 200ms linear;
  -o-transition: all 200ms linear;
  transition: all 200ms linear;
}

.tool-button.active {
  background-color: #0078d7;
  color: #fff;
  border-color: #0078d7;
}

/* Tool Checkbox Styles */
.tools-checkbox {
  display: flex;
  gap: 8px;
}

.tool-checkbox {
  display: block;
  cursor: pointer;
}

.tool-checkbox input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.tool-checkbox__icon {
  width: 40px;
  height: 38px;
  border: 1px solid #d9d9d9;
  background-color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 23px;
  border-radius: 3px;
  transition: all 200ms linear;
}

.tool-checkbox__icon svg {
  width: 20px;
  height: 20px;
}

.tool-checkbox:hover .tool-checkbox__icon {
  background-color: #f0f0f0;
}

.tool-checkbox input[type="checkbox"]:checked + .tool-checkbox__icon {
  background-color: #0078d7;
  color: #fff;
  border-color: #0078d7;
}

.tool-checkbox input[type="checkbox"]:checked + .tool-checkbox__icon svg path {
  fill: #fff;
}

.offset-block {
  margin: 0 14px -25px 0;
  display: flex;
  gap: 23px;
  justify-content: space-between;
}

.offset-controls {
  margin: -7px 0 0 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 180px;
}

.offset-title {
  display: block;
  margin: 0 0 2px;
  font-size: 13px;
  font-weight: 600;
  color: #333333;
}

.offset-field {
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.offset-field__label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #333333;
}

.offset-field__value {
  cursor: pointer;
  padding: 4px 12px;
  font-size: 12px;
  background: #e7e7e7;
  border: 1px solid #c1c1c1;
  border-radius: 3px;
}

.offset-field__alignment {
  position: relative;
  width: 95px;
  padding-left: 5px;
  padding-right: 20px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}


.btn-chevron {
  position: absolute;
  right: 3px;
  top: 0;
  bottom: 0;
  cursor: pointer;
  border-left: 1px solid #c1c1c1;
  padding: 0;
  z-index: 1;
  line-height: 1;
  width: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-chevron:before {
  content: "";
  width: 5px;
  height: 5px;
  border: solid #131313;
  border-width: 0 1px 1px 0;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
}

.offset-form {
  padding: 5px 0 3px;
}

.holder-form {
  display: flex;
  align-items: end;
  gap: 10px;
}

.offset-form .holder-input {
  flex: 1 1 auto;
}

.offset-form .label {
  display: inline-block;
  vertical-align: top;
  font-weight: 400;
  margin: 0 0 8px;
}

.offset-form input {
  width: 100%;
  height: 40px;
  padding: 0 10px;
  border: 1px solid #c7c7c7;
  border-radius: 3px;
}

.offset-form input:focus {
  border-color: #0078d7;
}

/* Diagram styles */
.offset-block__diagram {
  flex: 1 1 auto;
  margin: -28px 0 0 0;
}

.offset-diagram {
  position: relative;
  width: 160px;
  height: 120px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.offset-diagram__plate {
  position: relative;
  width: 130px;
  height: 76px;
  background-color: #5a5a5a;
  border: 1px solid #000000;
  border-radius: 2px;
  overflow: hidden;
  /* Diagonal lines simulating the cross */
  background-image: linear-gradient(to top right, transparent 50%, #888 50%, #888 51%, transparent 51%),
  linear-gradient(to bottom right, transparent 50%, #888 50%, #888 51%, transparent 51%);
}

.offset-sector {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  display: flex;
  transition: background-color 0.2s;
}

.offset-sector:hover {
  background-color: #404040;
}

.offset-sector:active {
  background-color: #404040
}

.offset-sector--top {
  clip-path: polygon(2% 0%, 100% 0%, 51% 49%);
  align-items: flex-start;
  justify-content: center;
  padding-top: 11px;
}

.offset-sector--bottom {
  clip-path: polygon(2% 100%, 100% 100%, 51% 51%);
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 11px;
}

.offset-sector--left {
  clip-path: polygon(0 0, 0 100%, 50% 50%);
  align-items: center;
  justify-content: flex-start;
  padding-left: 19px;
}

.offset-sector--right {
  clip-path: polygon(100% 2%, 100% 98%, 52% 50%);
  align-items: center;
  justify-content: flex-end;
  padding-right: 19px;
}

.offset-value {
  cursor: pointer;
  position: absolute;
  background: #e7f3ff;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  padding: 4px 6px;
  font-size: 12px;
  font-weight: 600;
  color: #333;
  white-space: nowrap;
  z-index: 2;
}

.offset-value:hover {
  border-color: #000000;
}

.offset-value--top {
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-bottom: -34px;
}

.offset-value--bottom {
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
}

.offset-value--left {
  left: -16px;
  top: 50%;
  transform: translateY(-50%);
}

.offset-value--right {
  right: -16px;
  top: 50%;
  transform: translateY(-50%);
}

/* Offset Context Menu */
.offset-context-menu {
  position: absolute;
  z-index: 99;
  display: none;
  min-width: 150px;
  padding: 4px 0;
  background-color: #fff;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.offset-context-menu.is-visible {
  display: block;
}

.offset-context-menu__item {
  display: block;
  width: 100%;
  padding: 8px 16px;
  border: none;
  background: none;
  text-align: left;
  font-size: 14px;
  color: #333;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.offset-context-menu__item:hover {
  background-color: #f3f4f6;
}

.offset-context-menu__item:active {
  background-color: #e5e7eb;
}

.fancybox-bg {
  background: rgba(0, 0, 0, 0.25);
}

.popup_page {
  display: none;
  width: 100%;
  max-width: 1285px;
  padding: 0;
  background: #f5f5f5;
  border-radius: 5px;
  overflow: hidden;
}

.popup_page .inner_popup {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 20px;
  border-bottom: 1px solid #d9d9d9;
  background: #fff;
  flex-shrink: 0;
}

.title_popup {
  font-size: 20px;
  font-weight: 600;
  color: #333;
}

.popup_page .fancybox-close-small {
  right: 10px;
  top: 8px;
  padding: 2px;
}

.popup_page .fancybox-button svg {
  color: #181818;
}

.popup-main {
  padding: 24px 22px;
  position: relative;
  flex-grow: 1;
  overflow: hidden;
  background: #f5f5f5;
  display: flex;
  flex-direction: column;
}

.popup-main .content-modal {
  width: 320px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.content-modal.modal-information {
  width: 426px;
}

.modal-info-content {
  display: flex;
  gap: 10px;
  row-gap: 15px;
  flex-wrap: wrap;
  font-size: 12px;
  font-weight: 600;
}

.modal-info-title {
  display: block;
  width: 100%;
}

.modal-info-label {
  display: inline;
}

.modal-info-value {
  display: inline;
  font-weight: normal;
}

.modal-delete .modal-btn {
  padding: 11px 8px;
}

/* Tabs */
.tabset {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
}

.popup-tabset {
  margin: 0 -21px;
}

.tab-control {
  list-style: none;
  padding: 0 21px 20px;
  margin: 0;
  border-bottom: 1px solid #d9d9d9;
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.tab-control li a {
  display: block;
  padding: 7px 8px;
  font-size: 14px;
  font-weight: 600;
  color: #333;
  text-decoration: none;
  transition: all 0.3s;
  border-radius: 4px;
}

.tab-control li a:hover,
.tab-control li.active a {
  background: #cf2c2f;
  color: #ffffff;
}

.tab-body {
  position: relative;
  flex-grow: 1;
  overflow: hidden;
}

.popup-tabset .tab-body {
  height: 100vh;
  max-height: 670px;
  overflow-y: auto;
}

.tab {
  padding: 24px 22px;
  box-sizing: border-box;
  display: none;
  transition: opacity 0.3s linear;
  z-index: 1;
}

.tab.active {
  display: block;
}

/* Grid Layout */
.skates-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 20px;
}

.skate-item {
  display: flex;
  flex-direction: column;
}

.skate-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 4px;
  height: 127px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.skate-item:hover .skate-card {
  border-width: 2px;
  border-color: #0078d7;
  box-shadow: 0 3px 2px rgba(0, 0, 0, 0.08);
}

.skate-info {
  padding: 13px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.skate-name {
  font-size: 14px;
  color: #333;
}

.skate-more {
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
}

.skate-more:hover {
  color: #000;
}

.skate-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 236px;
  background: #ffffff;
  border-radius: 4px;
  border: 1px solid #e1e1e1;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
  padding: 9px 1px;
  z-index: 10;
  display: none;
}

.skate-item.skate-item--last-in-row .skate-menu {
  left: auto;
  right: 0;
}

.skate-holder-more {
  position: relative;
}

.skate-holder-more:hover .skate-menu {
  display: block;
}

.skate-menu-item {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 9px 14px;
  background: none;
  border: none;
  text-align: left;
  font-size: 13px;
  color: #333333;
  cursor: pointer;
  white-space: nowrap;
}

.skate-menu-item:hover {
  background: #f5f5f5;
}

.skate-menu-icon {
  flex: 0 0 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.btn-direction {
  display: flex;
  align-items: center;
  white-space: nowrap;
  gap: 12px;
  margin: -3px 0 0;
  padding: 6px 9px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 3px;
  font-size: 13px;
  font-weight: 600;
  color: #262626;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
  width: 100%;
  position: relative;
}

.btn-direction + .btn-direction {
  margin-top: 13px;
}

.btn-direction__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 15px;
}


.btn-direction__text {
  flex: 1;
  color: inherit;
}

.btn-direction:hover,
.btn-direction.active {
  background: #e7e7e7;
  border: 1px solid #616161;
  color: #333;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.field-wrapper .control-label {
  display: none;
  max-width: 76px;
  font-size: 9px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Display Parameters Buttons */
.display-params-buttons {
  display: flex;
  gap: 10px;
  padding: 6px 0 0;
  align-items: center;
}

.display-param-btn {
  position: relative;
  width: 24px;
  height: 24px;
  font-size: 18px;
  color: #989898;
  padding: 0;
  border: none;
  background-color: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.display-param-btn.active,
.display-param-btn:hover {
  color: #3297ff;
}

.display-param-btn.media-screen img {
  display: block;
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.display-param-btn--active:hover {
  background-color: #0066c0;
  border-color: #0066c0;
}

.display-param-badge {
  position: absolute;
  top: -4px;
  right: -6px;
  background-color: #0078d7;
  color: #ffffff;
  font-size: 10px;
  font-weight: 600;
  line-height: 14px;
  padding: 1px;
  border-radius: 50%;
  height: 14px;
  min-width: 14px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

/* ================= SIDEBAR =================*/

.sidebar-right {
  display: block;
  position: relative;
  width: 310px;
  background-color: #f0f0f0;
  border-left: 1px solid #bfbfbf;
  padding: 57px 5px 10px 0;
}

.sidebar-right.active {
  display: none;
}

.widgets-header {
  position: absolute;
  z-index: 3;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 -5px 0 0;
  padding: 10px 22px 10px;
  border-bottom: 1px solid #bfbfbf;
  background-color: #f0f0f0;
}

.widgets-header h4 {
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin: 0;
}

.sidebar-content {
  height: 100%;
  padding: 0 16px 0 20px;
  overflow-y: auto;
}

.sidebar-content h4 {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 13px 0;
}

.drawing-elements-section {
  position: relative;
  margin: 0 0 20px;
}

#editing-text-modal {
  left: auto;
  right: 97%;
  top: 105px;
  width: 318px;
}

.editing-text-form .group-input {
  display: flex;
  gap: 10px;
  margin: 0 0 15px;
}

.editing-text-form input {
  width: 100%;
  height: 40px;
  padding: 0 10px;
  border: 1px solid #0078d7;
  border-radius: 3px;
}

.editing-text-form .label {
  display: inline-block;
  vertical-align: top;
  margin: 0 0 8px;
  font-size: 13px;
}

.editing-text-form .sheet-length-modal__action-buttons {
  justify-content: flex-end;
}

.elements-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border: 1px solid #e0e0e0;
  border-radius: 3px;
  box-shadow: 0 3px 2px rgba(0, 0, 0, 0.08);
}

.element-item {
  display: flex;
  align-items: center;
  padding: 10px 8px;
  border-bottom: 1px solid #e0e0e0;
  background-color: #fff;
}

.element-item:last-child {
  border-bottom: none;
}

.element-name {
  padding: 0 14px;
  flex: 1;
  font-size: 13px;
  font-weight: 600;
}

.element-item button {
  width: 20px;
  height: 20px;
  border: none;
  background: none;
  cursor: pointer;
  margin-left: 5px;
  font-size: 12px;
  color: #959595;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.element-item:not(.disabled) button:hover {
  color: #0179d7;
}

.element-item.disabled button {
  pointer-events: none;
}

.element-item .icon-eye {
  margin: -10px 0;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  border-right: 1px solid #bfbfbf;
  font-size: 16px;
  cursor: pointer;
}

.element-item.disabled .element-name {
  color: rgba(51, 51, 51, 0.4);
}

.element-item .icon-eye svg {
  width: 1em;
  height: 1em;
}

.element-item.disabled .icon-eye {
  color: rgba(51, 51, 51, 0.4);
}

/* Element Management Section */
.element-management-section {
  margin: 0 0 20px;
  background: #ffffff;
  border: 2px solid #0078d7;
  /*overflow-y: auto;*/
  /*max-height: 574px;*/
  font-size: 13px;
  padding: 11px 10px 10px 10px;
  border-radius: 3px;
  box-shadow: 0 3px 2px rgba(0, 0, 0, 0.08);
}

.element-management-section hr {
  display: block;
  margin: 0 -2px 12px -10px;
  border: none;
  border-bottom: 1px solid #dbdbdb;
}

.element-management-section h4 {
  font-size: 14px;
  font-weight: bold;
  margin: 0 0 15px 0;
  padding: 0;
}

/* Lengths and Angles Table */
.lengths-angles-table {
  margin-bottom: 9px;
}

.lengths-angles-table .table-header {
  display: grid;
  grid-template-columns: 28px 2fr 1fr 1fr;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 11px;
}

.lengths-angles-table .table-row {
  display: grid;
  grid-template-columns: 28px 1fr 1fr 1fr;
  gap: 8px;
  margin-bottom: 6px;
  align-items: center;
}

.lengths-angles-table .table-row > * {
  min-width: 0;
  overflow: hidden;
}

.lengths-angles-table .row-label {
  font-size: 12px;
}

.lengths-angles-table .table-input {
  width: 100%;
  height: 26px;
  padding: 4px 3px;
  border: 1px solid #d9d9d9;
  font-size: 12px;
  box-sizing: border-box;
}



.lengths-angles-table .table-input.error {
  border-color: #dd7375;
}

.lengths-angles-table .shorten-select {
  width: 100%;
  padding: 4px 8px;
  border: 1px solid #ccc;
  font-size: 12px;
  box-sizing: border-box;
  background-color: #fff;
}

/* Select2 Customization */

.element-management-section .select2-container {
  max-width: 100% !important;
  width: 100% !important;
}

.lengths-angles-table .select2-selection--single {
  height: 26px !important;
  border-radius: 0 !important;
  border: 1px solid #d9d9d9 !important;
}

.select2-container--default .select2-selection--single {
  border-radius: 0;
  padding: 4px 3px 4px 3px;
  font-size: 12px;
  overflow: hidden !important;
  max-width: 100% !important;
  min-width: 0 !important;
  position: relative !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
  padding: 0 20px 0 0 ;
  line-height: 1.4 ;
  color: inherit ;
  overflow: hidden ;
  white-space: nowrap ;
  text-overflow: ellipsis ;
  max-width: 100% ;
  display: flex;
  align-items: center;
  height: 100%;
  width: 100% ;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 100% !important;
  right: 1px !important;
  top: 0 !important;
  bottom: 0 !important;
  margin: auto 0 !important;
  position: absolute !important;
  width: 16px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Скрываем стандартную стрелку Select2 */
.select2-container--default .select2-selection--single .select2-selection__arrow b {
  display: none !important;
}

/* Добавляем CSS-стрелку через ::before */
.select2-container--default .select2-selection--single .select2-selection__arrow::before {
  content: "" !important;
  width: 6px !important;
  height: 6px !important;
  border: solid #131313 !important;
  border-width: 0 1px 1px 0 !important;
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) rotate(45deg) !important;
}

/* Поворачиваем стрелку вверх при открытом состоянии */
.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow::before {
  transform: translate(-50%, -50%) rotate(-135deg) !important;
}

.select2-dropdown {
  border: 1px solid #d9d9d9 !important;
  border-radius: 0 !important;
  font-size: 12px !important;
}

.select2-container--default .select2-results__option {
  padding: 8px 3px;
  line-height: 1.4;
}

.select2-container--default .select2-results__option--selected {
  background-color: #f9f9f9 ;
}

.select2-container--default .select2-results__option[aria-selected=true] {
  background-color: #f9f9f9 ;
  color: inherit;
}

/* Roll Section */
.roll-section {
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  gap: 17px;
}

.roll-section label {
  display: block;
  font-size: 13px;
  margin-bottom: 6px;
  font-weight: normal;
}

.roll-section input {
  width: 48px;
  padding: 4px 8px;
  border: 1px solid #d9d9d9;
  font-size: 12px;
  box-sizing: border-box;
}

.roll-section input[type="text"]:disabled,
.roll-section input[type="text"][disabled] {
  background-color: #e1e1e1;
}

/* Location Section */
.position-block {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.position-block .list-radio {
  display: flex;
  align-items: center;
  margin: 0;
  gap: 5px;
}

.position-block label {
  margin: 0;
  align-items: center;
  gap: 3px;
}

.position-block label span {
  display: flex;
  align-items: center;
  font-size: 20px;
}


/* Properties Section */
.properties-section {
  margin-bottom: 15px;
}

.properties-section .property-row {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  min-width: 0;
}

.properties-section .property-row > * {
  min-width: 0;
}

.properties-section .property-row label {
  width: 64px;
  font-size: 13px;
  margin-right: 10px;
  font-weight: normal;
  flex-shrink: 0;
}

.properties-section .property-select {
  flex: 1;
  padding: 4px 8px;
  border: 1px solid #ccc;
  font-size: 12px;
  box-sizing: border-box;
  background-color: #fff;
  min-width: 0;
}


/* Unfold Section */
.unfold-section {
  display: block;
  font-size: 13px;
}

/* Accordion Styles */
.accordion {
  margin: 0;
  padding: 0;
}

.accordion .item {
  margin-bottom: 0;
}

.accordion .heading {
  display: inline-block;
  vertical-align: top;
  position: relative;
  padding: 5px 15px 5px 0;
  font-weight: 600;
  font-size: 14px;
  color: #131313;
  cursor: pointer;
  user-select: none;
  transition: color 200ms linear;
}

.accordion .item .heading:hover {
  opacity: 0.8;
}

.accordion .item .heading:before {
  content: "";
  width: 4px;
  height: 4px;
  border: solid #000000;
  border-width: 0 1px 1px 0;
  position: absolute;
  top: 50%;
  margin: -1px 0 0 0;
  right: 0;
  transform: rotate(-135deg);
}

.accordion .item.active .heading::before {
  margin: -2px 0 0 0;
  transform: rotate(45deg);
}

.accordion .item .expanded {
  display: none;
  padding: 8px 0 12px 0;
  overflow: hidden;
}

.accordion .item.active .expanded {
  display: block;
}

/* Accordion Table Styles */
.accordion-table {
  background: #ffffff;
  border-radius: 4px;
  padding: 12px;
  box-shadow: 0 3px 2px rgba(0, 0, 0, 0.08);
}

.accordion-table table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 9px;
}

.accordion-table thead th {
  padding: 0 6px 0;
  text-align: left;
  font-weight: 600;
  font-size: 12px;
}

.accordion-table thead th:last-child {
  text-align: right;
}

.accordion-table tbody tr {
  background: #ffffff;
}

.accordion-table tbody td {
  padding: 3px 6px;
  font-size: 13px;
  color: #131313;
  border-bottom: 1px solid #d9d9d9;
  background: #ffffff;
}

.accordion-table tbody td:last-child {
  text-align: right;
}

/* Coord Editor */
.coord-editor {
  margin: 0 0 20px;
  background: #ffffff;
  border: 2px solid #0078d7;
  max-height: 574px;
  padding: 8px 10px;
  border-radius: 3px;
  box-shadow: 0 3px 2px rgba(0, 0, 0, 0.08);
}

.coord-point-selector {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  border: 1px solid #cccccc;
  background: #efefef;
  border-radius: 4px;
  overflow: hidden;
}

.coord-nav-btn {
  width: 40px;
  height: 20px;
  padding: 0;
  border: none;
  border-right: 1px solid #cccccc;
  background: #efefef;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  color: #333;
  transition: all 0.2s ease;
}

.coord-nav-btn:hover {
  background: rgba(239, 239, 239, 0.69);
}

.coord-nav-next {
  border-right: none;
  border-left: 1px solid #cccccc;
}

.coord-point-label {
  font-size: 12px;
  text-align: center;
}

.coord-content {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin: 0 -10px 0 -10px;
  padding: 15px 10px 0 14px;
  border-top: 1px solid #dbdbdb;
}

.coord-inputs {
  flex: 0 0 84px;
  width: 84px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.coord-input-row {
  display: flex;
  align-items: center;
}

.coord-label {
  flex: 0 0 25px;
  width: 25px;
  font-size: 12px;
  color: #333;
}

.coord-label sub {
  font-size: 10px;
}

.coord-input {
  width: 100%;
  height: 26px;
  padding: 0 5px;
  border: 1px solid #d9d9d9;
  font-size: 12px;
  background: #fff;
}

.coord-input:focus {
  border-color: #3b99fc;
  outline: none;
}

/* D-Pad */
.coord-dpad {
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: 41px 41px 42px;
  grid-template-rows: 44px 43px 44px;
  margin-left: auto;
}

.coord-dpad-btn {
  width: 42px;
  height: 44px;
  background: #efefef;
  font-size: 18px;
  border: 1px solid #d9d9d9;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.coord-dpad-btn:hover {
  opacity: 0.8;
}

.coord-dpad-up {
  grid-column: 2;
  grid-row: 1;
  border-radius: 3px 3px 0 0;
}

.coord-dpad-left {
  grid-column: 1;
  grid-row: 2;
  border-radius: 3px 0 0 3px;
}

.coord-dpad-center {
  grid-column: 2;
  grid-row: 2;
  width: 42px;
  height: 43px;
  font-size: 12px;
  line-height: 1;
  margin: 0 0 0 1px;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.coord-dpad-unit {
  font-size: 11px;
  line-height: 1;
  margin-top: 2px;
}

.coord-dpad-right {
  grid-column: 3;
  grid-row: 2;
  border-radius: 0 4px 4px 0;
}

.coord-dpad-down {
  grid-column: 2;
  grid-row: 3;
  border-radius: 0 0 4px 4px;
}

/* ========== SHEET LENGTH EDITOR ======*/
.sheet-length-editor {
  margin: 0 0 20px;
  background: #ffffff;
  border: 2px solid #0078d7;
  max-height: 574px;
  padding: 15px 19px;
  border-radius: 3px;
  box-shadow: 0 3px 2px rgba(0, 0, 0, 0.08);
}

.sheet-spinners-row {
  display: flex;
  gap: 16px;
  margin-bottom: 15px;
}

.sheet-spinners-group {
  flex: 1;
}

.sheet-spinners-label {
  display: block;
  font-size: 11px;
  color: #333;
  margin-bottom: 13px;
  text-align: center;
}

.sheet-spinners-controls {
  display: flex;
  gap: 5px;
  justify-content: center;
}

/* Spinner Component */
.spinner {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 30px;
  border: 1px solid #d9d9d9;
  border-radius: 3px;
  background: #efefef;
  overflow: hidden;
}

.spinner.disabled {
  opacity: 0.5;
  pointer-events: none;
}

.spinner a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 30px;
  color: #333;
  text-decoration: none;
  font-size: 14px;
  background: #f5f5f5;
  transition: background-color 0.2s ease;
  user-select: none;
}

.spinner a:hover {
  background: #e8e8e8;
}

.spinner a:active {
  background: #d9d9d9;
}

.spinner .increase {
  border-bottom: 1px solid #d9d9d9;
}

.spinner .decrease {
  border-top: 1px solid #d9d9d9;
}

.spinner input {
  width: 100%;
  height: 28px;
  border: none;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: #333;
  background: #fff;
  padding: 0;
  -moz-appearance: textfield;
}

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

.spinner input:focus {
  outline: none;
  background: #f0f7ff;
}

/* Sheet Actions */
.sheet-actions {
  margin: 0 -19px;
  padding: 23px 19px 6px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  border-top: 1px solid #e8e8e8;
}

.sheet-action-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 0;
  background: transparent;
  border: none;
  font-size: 13px;
  font-weight: 600;
}

.sheet-action-btn:hover .sheet-action-icon{
  color: #0078d7;
}


.sheet-action-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  font-size: 16px;
  color: #555;
}

/* ================= END SIDEBAR =================*/


/* =============================================================================
	MAIN CONTENT AREA
	========================================================================== */


#content {
  display: flex; /* добавить */
  flex-direction: column; /* добавить */
  flex: 1;
  background-color: #f0f0f0;
  position: relative;
  overflow: hidden;
  padding: 3px 0 0 0;
  border-radius: 5px 0 0 0;
}

.btn-sidebar {
  position: absolute;
  z-index: 4;
  right: 8px;
  top: 4px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 19px;
  font-weight: 600;
}

.btn-sidebar.active .right {
  display: none;
}

.btn-sidebar:not(.active) .left {
  display: none;
}

.canvas-area {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: #ffffff;
}

.canvas-area-img {
  min-width: 2000px;
  max-width: 100%;
}

.point {
  position: absolute;
}

.info-point {
  position: relative;
  padding: 2px 3px;
  max-width: 140px;
  min-width: 100px;
  font-size: 12px;
  text-align: center;
  color: rgba(0, 0, 0, 0.7);
  background: rgba(255, 255, 255, 0.70);
  border: 1px solid #e8e8e8;
  border-radius: 1px;
}

.point-icon {
  position: absolute;
  max-width: 10px;
  left: 50%;
  top: 100%;
  transform: translateX(-50%);
}

.info-point span {
  display: block;
}

.point .skate-menu {
  position: absolute;
  left: 0;
  top: 100%;
  margin: 5px 0 0 0;
  display: none;
}

.point .skate-menu.is-visible {
  display: block;
}

/* Canvas Tabs */
.canvas-tabs {
  display: flex;
  align-items: center;
  background-color: #f5f5f5;
  border-bottom: 1px solid #e0e0e0;
  padding: 0 3px;
  gap: 0;
  height: 32px;
  margin: 0 0 4px;
}

.canvas-tabs__list {
  display: flex;
  align-items: center;
  gap: 2px;
  overflow: hidden;
  min-width: 0;
}

.canvas-tabs__tab--hidden {
  display: none !important;
}

.canvas-tabs__tab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 30px;
  height: 33px;
  padding: 0 10px 0 10px;
  border: none;
  background-color: #838383;
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease;
  white-space: nowrap;
  flex-shrink: 0;
  border-radius: 5px 5px 0 0;
}

.canvas-tabs__tab:hover,
.canvas-tabs__tab.active {
  background-color: #e4373a;
  color: #fff;
}

.canvas-tabs__number {
  line-height: 1;
}

.canvas-tabs__close {
  display: none;
  font-size: 16px;
  line-height: 1;
  opacity: 0.7;
  transition: opacity 0.15s ease;
}

.canvas-tabs__tab.active .canvas-tabs__close {
  display: inline-flex;
}

.canvas-tabs__close:hover {
  opacity: 1;
}

.canvas-tabs__more {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 0 0 0 3px;
  min-width: 36px;
  height: 33px;
  padding: 0 10px;
  border: none;
  background-color: #474747;
  color: #ffffff;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.15s ease;
  flex-shrink: 0;
  border-radius: 5px 5px 0 0;
}

.canvas-tabs__more:hover {
  background-color: #e4373a;
}

.canvas-tabs__more span {
  display: inline-block;
  vertical-align: top;
  font-size: 18px;
}

.canvas-tabs__more span.more-number {
  margin: 0 0 -8px;
  font-size: 12px;
  color: #9f9f9f;
}

.canvas-tabs__more:hover .more-number {
  color: #ffffff !important;
}

.canvas-tabs__add {
  margin: 0 0 0 3px;
  min-width: 30px;
  height: 33px;
  padding: 0 10px 0 11px;
  border: none;
  background-color: #838383;
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease;
  white-space: nowrap;
  flex-shrink: 0;
  border-radius: 5px 5px 0 0;
}

.canvas-tabs__add:hover {
  background-color: #e4373a;
}

/* Canvas Tabs Body */
.canvas-tabs__body {
  flex: 1;
  overflow: hidden;
  position: relative;
  max-height: 100%;
}

.canvas-tabs__content {
  display: none;
  height: 100%;
}

.canvas-tabs__content.active {
  display: block;
}

/* Tab Hover Tooltip */
.tab-hover-tooltip {
  position: absolute;
  z-index: 100;
  background: #fff;
  border: 1px solid #919191;
  border-radius: 4px;
  padding: 15px 20px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.16);
  display: none;
  pointer-events: none;
}

.tab-hover-tooltip.is-visible {
  display: block;
}

.tab-hover-tooltip__label {
  font-size: 14px;
}

.tab-hover-tooltip__img {
  max-width: 116px;
  display: flex;
  justify-content: center;
  margin: 0 0 10px;
}

/* Tab Context Menu */
.tab-context-menu {
  position: absolute;
  z-index: 200;
  background: #fff;
  border: 1px solid #919191;
  border-radius: 4px;
  box-shadow: 0px 3px 10px rgba(0, 0, 0, 0.16);
  display: none;
  min-width: 236px;
}

.tab-context-menu.is-visible {
  display: block;
}

.tab-context-menu__body {
  padding: 8px 0;
}

.tab-context-menu__img {
  max-width: 184px;
  display: flex;
  justify-content: center;
  margin: 0 16px 10px;
}

.tab-context-menu__item {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 10px 16px;
  background: none;
  border: none;
  text-align: left;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.15s ease;
}

.tab-context-menu__item:hover {
  background: #f5f5f5;
}

.tab-context-menu__icon {
  flex: 0 0 20px;
  width: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/*Quick Shapes Panel*/
.quick-shapes-panel {
  position: absolute;
  left: 0;
  top: 2px;
  right: 0;
  z-index: 3;
  align-self: start;
  display: flex;
  gap: 4px;
  padding: 0 7px;
}

.quick-shapes-coords {
  height: 34px;
  display: flex;
  padding: 0 15px 0 10px;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  background: #f9f9f9;
  border: 1px solid #dedede;
  border-radius: 5px;
}

.quick-shapes-coords sub {
  font-size: 10px;
  vertical-align: baseline;
  position: relative;
  top: 2px;
}


.quick-shapes-list {
  display: flex;
  align-items: center;
  border: 1px solid #dedede;
  height: 34px;
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
}

.quick-shape-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 100%;
  padding: 3px;
  background: #f9f9f9;
  border: none;
  border-right: 1px solid #dedede;
  cursor: pointer;
  transition: all 0.15s ease;
  color: #444;
}
.quick-shape-btn:last-child {
  border-right: none;
}

.quick-shape-btn:hover {
  background: #f5f5f5;
}

.quick-shape-btn--more {
  position: relative;
  font-size: 18px;
  font-weight: bold;
  letter-spacing: 1px;
  color: #666;
}

.quick-shape-btn--more::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 0 6px 6px;
  border-color: transparent transparent #000 transparent;
}

.quick-shape-btn--more span {
  line-height: 1;
  position: relative;
  top: -3px;
}

.quick-shapes-toggle {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 4px;
  background: #f9f9f9;
  padding: 6px 12px;
  border: none;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s ease;
}

.quick-shapes-toggle:hover {
  background: #f5f5f5;
}

.quick-shapes-toggle .toggle-arrow {
  margin: 0 0 2px;
}

.quick-shapes-list .quick-shape-btn {
  max-width: 100px;
  opacity: 1;
  transition: max-width 0.3s ease, padding 0.3s ease, opacity 0.3s ease, border-right-width 0.3s ease;
}

.quick-shapes-list.is-collapsed .quick-shape-btn {
  max-width: 0;
  padding: 0;
  border-right-width: 0;
  opacity: 0;
  overflow: hidden;
}


/* Drawing Actions */

.drawing-actions {
  display: flex;
  gap: 8px;
}

.drawing-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  padding: 0 14px;
  border: none;
  text-transform: uppercase;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
}

.drawing-action-btn--close {
  background: #e53935;
  color: #fff;
}

.drawing-action-btn--finish {
  background: #333;
  color: #fff;
  border: 1px solid #555;
}

.drawing-action-btn:hover {
  opacity: 0.8;
}

/* Alerts */
.alert-list {
  position: absolute;
  right: 0;
  top: 0;
  margin-left: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.alert {
  min-width: 200px;
  display: flex;
  justify-content: center;
  padding: 11px 5px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 4px;
  border: 1px solid #f0f0f0;
}

.alert--success {
  background: #caffc1;
}

.alert--warning {
  background: #ffd7c1;
}





/* =============================================================================
	FOOTER / STATUS BAR
	========================================================================== */
#footer {
  background-color: #dfdfdf;
  display: flex;
  align-items: center;
  padding: 7px 22px;
  margin: 0 17px;
}

.status-bar {
  width: 100%;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 13px;
  font-size: 12px;
}

.status-bar li {
  display: flex;
  white-space: nowrap;
  flex-wrap: nowrap;
  align-items: center;
  gap: 5px;
}

.footer-controls {
  display: flex;
  flex-wrap: nowrap;
}

.footer-button {
  display: flex;
  align-items: center;
  gap: 30px;
  margin: 0 32px 0 0;
}

.footer-status-btn {
  display: flex;
  align-items: center;
  white-space: nowrap;
  gap: 15px;
  font-size: 12px;
  color: #333333;
  border: none;
  background: transparent;
  padding: 0;
}

.footer-status-btn .icon {
  width: 16px;
}

.footer-status-btn:hover {
  text-decoration: underline;
}

.zoom-control {
  display: flex;
  align-items: center;
  gap: 0;
  margin-left: auto;
}

.zoom-btn {
  width: 22px;
  height: 22px;
  border: none;
  background-color: #fff;
  cursor: pointer;
  font-size: 15px;
  color: #000;
  border-radius: 3px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
}

.zoom-btn:hover {
  background-color: #f5f5f5;
}

.zoom-btn:active {
  background-color: #eee;
}

.zoom-slider-wrap {
  width: 170px;
  display: flex;
  align-items: center;
}

/* jQuery UI Slider Custom Styles */
.zoom-slider.ui-slider {
  width: 100%;
  height: 1px;
  background: #7b7b7b;
  border: none;
  border-radius: 1px;
}

.zoom-slider.ui-slider .ui-slider-range {
  background: #d0d0d0;
}

.zoom-slider.ui-slider .ui-slider-handle {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  top: 50%;
  transform: translateY(-50%);
  margin-left: -12px;
  cursor: pointer;
  outline: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.zoom-slider.ui-slider .ui-slider-handle:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.zoom-slider.ui-slider .ui-slider-handle:focus {
  border-color: #555;
}

.zoom-slider.ui-slider .ui-slider-handle::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  background: #888;
  border-radius: 50%;
}

.zoom-value {
  min-width: 32px;
  font-size: 12px;
  color: #666666;
  margin-left: 8px;
}

/* Requirements Popup Styles */
#requirements_popup {
  max-width: 1040px;
}

.requirements-diagram {
  max-width: 328px;
  margin-bottom: 20px;
  background: #fafafa;
}

.requirements-diagram img {
  width: 100%;
  height: auto;
  display: block;
}

.requirements-section {
  margin-bottom: 16px;
}

.requirements-section__title {
  font-size: 14px;
  font-weight: 700;
  color: #cf2c2f;
  margin: 0 0 13px 0;
}

.requirements-section__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.requirements-section__list li {
  position: relative;
  padding-left: 21px;
  font-size: 14px;
  line-height: 20px;
  margin-bottom: 11px;
}

.requirements-section__list li::before {
  content: "–";
  position: absolute;
  left: 0;
  top: 0;
}

.requirements-warning {
  max-width: 925px;
  background: #fee9c1;
  padding: 15px 18px;
  border-radius: 4px;
  font-size: 14px;
  line-height: 24px;
}

.requirements-warning strong {
  display: block;
  margin-bottom: 1px;
}

.requirements-warning p {
  margin: 0;
}

.popup-footer {
  padding: 20px 28px;
  border-top: 1px solid #d9d9d9;
  text-align: right;
}

.btn-close-popup {
  padding: 14px 30px;
  font-size: 14px;
  color: #ffffff;
  background: #404040;
  border: none;
  border-radius: 4px;
}

.btn-close-popup:hover {
  opacity: 0.8;
}

/* Templates Popup Grid */

.templates_popup {
  max-width: 1040px;
}
.tpl-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 16px;
}

.tpl-item {
  height: 127px;
  position: relative;
}

.tpl-card {
  background: #fff;
  border: 1px solid #dedede;
  border-radius: 3px;
  overflow: hidden;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  transition: box-shadow 0.2s ease;
}

.tpl-card img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.tpl-actions {
  position: absolute;
  top: 4px;
  right: 8px;
}

.tpl-more-btn {
  opacity: 0;
  padding: 0 0 24px;
  font-size: 14px;
  color: #0078d7;
  transition: all 0.3s ease;
}

.tpl-more-btn svg {
  vertical-align: middle;
}

.tpl-item:hover .tpl-more-btn  {
  opacity: 1;
}


.tpl-dropdown {
  display: none;
  position: absolute;
  top: 23px;
  left: -11px;
  width: 148px;
  padding: 6px 0;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  min-width: 120px;
  z-index: 100;
  overflow: hidden;
}

.tpl-item:nth-child(7n+6) .tpl-dropdown,
.tpl-item:nth-child(7n) .tpl-dropdown {
  left: auto;
  right: -11px;
}


.tpl-actions:hover .tpl-dropdown {
  display: block;
}

.tpl-dropdown-item {
  display: block;
  width: 100%;
  padding: 9px 15px;
  border: none;
  background: transparent;
  text-align: left;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.15s ease;
}

.tpl-dropdown-item:hover {
  background: #f5f5f5;
}



/* =============================================================================
	calculator page
	========================================================================== */

/* Header */
.header {
  background: #fff;
  border-bottom: 1px solid #898989;
  padding: 0;
  margin: 0 0 10px;
  box-shadow: 0 3px 4px 0 rgba(0, 0, 0, 0.13);
}

.header .container {
  max-width: 100%;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 10px 0;
}

.header-logo {
  display: block;
  background: url("../images/logo.png") no-repeat;
  width: 32px;
  height: 24px;
  overflow: hidden;
  text-indent: -9999px;
}

.header-logo strong {
  display: block;
  height: 100%;
}

.header-nav {
  flex: 1;
}

.header-menu {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.header-menu li {
  position: relative;
}

.header-menu li a {
  display: block;
  font-size: 13px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 4px;
  text-decoration: none;
}

.header-menu li a:hover {
  background-color: #dbdbdb;
}

.header-menu li.disabled a {
  background: none;
  color: #959595;
  pointer-events: none;
}


/* Main Page Layout */
.main-page {
  flex: 1;
  overflow: auto;
  padding: 0;
}

.main-page .container {
  height: 100%;
}

/* Calculator Layout */
.calculator-layout {
  display: flex;
  height: 100%;
  padding: 0 0 0 267px;
  gap: 10px;
}

/* Sidebar */
.calculator-sidebar {
  position: fixed;
  left: 17px;
  top: 55px;
  bottom: 0;
  overflow-y: auto;
  width: 257px;
  min-width: 140px;
  background: #f9f9f9;
  padding: 30px 18px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  border-radius: 6px;
}

.sidebar-label {
  display: block;
  margin: 0 0 3px;
  font-size: 17px;
}

.sidebar-buttons {
  display: flex;
  flex-direction: column;
  gap: 17px;
}

.sidebar-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 13px;
  font-size: 13px;
  text-align: center;
  text-transform: uppercase;
  padding: 20px 10px;
  background: #fff;
  border: 1px solid #b7b7b7;
  border-radius: 3px;
  text-decoration: none;
  cursor: pointer;
}

.sidebar-btn:hover,
.sidebar-btn--active {
  background: #404040;
  color: #ffffff;
}

.sidebar-btn-icon {
  max-width: 29px;
}

/* Main Content */
.calculator-content {
  flex: 1;
  padding: 30px 62px;
  overflow: auto;
  background: #f9f9f9;
  border-radius: 6px;
}

.calculator-container {
  max-width: 1400px;
}

.page-title {
  font-size: 35px;
  font-weight: 600;
  margin: 0 0 33px;
}

/* Quick Create Section */
.quick-create {
  background: #3d3d3d;
  border-radius: 8px;
  padding: 27px 35px 17px;
  margin-bottom: 50px;
}

.quick-create-header {
  display: inline-block;
  vertical-align: top;
  padding: 0 25px 0 0;
  position: relative;
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  margin-bottom: 20px;
}

.quick-create-header:before {
  content: "";
  width: 5px;
  height: 5px;
  border: solid #ffffff;
  border-width: 0 1px 1px 0;
  position: absolute;
  top: 50%;
  right: 0;
  transform: translate(0, -50%) rotate(45deg);
}

.quick-create-header.collapsed:before {
  transform: rotate(-135deg);
}

/* Category Tabs */
.list-category {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.category-btn {
  padding: 5px 12px;
  background: #e7e7e7;
  border: none;
  border-radius: 5px;
  font-size: 13px;
}

.category-btn.active,
.category-btn:hover {
  background: #cf2c2f;
  color: #fff;
}

/* Forms Carousel */
.forms-carousel-wrapper {
  position: relative;
  margin: 0 -10px;
}

.carousel-nav {
  width: 36px;
  height: 34px;
  position: absolute;
  top: 30px;
  background: #000000;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  z-index: 10;
}

.carousel-nav--prev {
  left: -35px;
}

.carousel-nav--next {
  right: -35px;
}

.carousel-nav:hover {
  opacity: 0.8;
}

.carousel-nav svg {
  width: 20px;
  height: 20px;
  stroke: #fff;
}

.carousel-nav.swiper-button-disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.forms-carousel {
  flex: 1;
  overflow: hidden;
}

.form-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  padding: 10px;
  transition: all 0.2s;
}

.form-card:hover .form-card-icon {
  background: rgba(255, 255, 255, 0.15);
}

.form-card-icon {
  width: 118px;
  height: 74px;
  background: #2f2f2f;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.form-card-icon img {
  max-width: 100%;
  max-height: 100%;
}

.form-card-name {
  font-size: 13px;
  color: #d0d0d0;
  text-align: center;
}

/* Carousel Pagination */
.carousel-pagination {
  display: flex;
  justify-content: center;
  margin-top: 15px;
}

.carousel-pagination .pagination-dot,
.carousel-pagination .swiper-pagination-bullet {
  width: 7px;
  height: 7px;
  background: rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s;
}

.carousel-pagination .pagination-dot.active,
.carousel-pagination .swiper-pagination-bullet-active {
  background: #fff;
}

/* Calculations Section */
.calculations-section {
  padding: 0;
}

/* Section Tabs */
.section-tabs-wrapper {
  padding: 0 0 26px;
  gap: 10px;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #dbdbdb;
}

.section-tabs {
  display: flex;
  gap: 46px;
}

.section-tab {
  padding: 7px 0 12px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}

.section-tab.active,
.section-tab:hover {
  border-color: #cf2c2f;
}


.tab-badge {
  display: inline-block;
  color: #a4a4a4;
  font-size: 9px;
  margin-left: 5px;
  vertical-align: top;
}

.section-tabs-controls {
  display: flex;
  align-items: center;
  gap: 11px;
}



/* Search Box Select2 */
.search-box-select {
  position: relative;
  width: 260px;
}

.search-box-select .select2-container {
  width: 100% !important;
}



.search-box-select .select2-container--default .select2-selection--single {
  height: 38px;
  border: 1px solid #d9d9d9;
  padding: 0 30px 0 12px!important;
  border-radius: 4px;
  background-color: #fff;
  display: flex;
  align-items: center;
}

.search-box-select .select2-container.select2-container--focus .select2-selection--single{
  border-color: #0078d7;
}

.search-box-select .select2-container--default .select2-selection--single .select2-selection__rendered {
  font-size: 13px;
  height: auto;
  padding: 0!important;
}

.search-box-select .select2-container--default .select2-selection--single.select2-selection--clearable .select2-selection__placeholder {
  display: none !important;
}

.search-box-select .select2-container--default .select2-selection--single::after {
  content: '';
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='M21 21l-4.35-4.35'/%3E%3C/svg%3E");
  color: #ffffff;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 15px 15px;
  pointer-events: none;
  z-index: 1;
  border-radius: 50%;
}

/* При открытии селекта - меняем лупу на крестик */
.search-box-select .select2-container--default.select2-container--open .select2-selection--single::after {
  background-color: #3f3f3f;
  background-size: 12px 12px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2'%3E%3Cpath d='M18 6L6 18'/%3E%3Cpath d='M6 6l12 12'/%3E%3C/svg%3E");
}

/* Clear button - показывается когда есть выбранное значение */
.search-box-select .select2-container--default .select2-selection--single .select2-selection__clear {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  font-size: 0;
  margin: 0;
  padding: 0;
  background-color: #3f3f3f;
  background-size: 12px 12px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2'%3E%3Cpath d='M18 6L6 18'/%3E%3Cpath d='M6 6l12 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.search-box-select .select2-container--default .select2-selection--single .select2-selection__arrow {
  display: none !important;
}

/* Filter Button */
.filter-btn {
  position: relative;
  width: 40px;
  height: 38px;
  font-size: 18px;
  background: #ffffff;
  border: 1px solid #d9d9d9;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-btn:hover {
  background: #eee;
}

.filter-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 19px;
  height: 19px;
  background: #e33639;
  color: #fff;
  font-size: 12px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Tab Content */
.tab-content {
  display: none;
  padding: 0;
}

.tab-content.active {
  display: block;
}

.empty-tab {
  padding: 40px 20px;
  text-align: center;
  color: #999;
}

/* Calculations Table */
.calculations-table-wrapper {
  overflow-x: auto;
}

.calculations-table {
  width: 100%;
  border-collapse: collapse;
}

.calculations-table th {
  text-align: left;
  padding: 28px 15px;
  font-size: 13px;
  font-weight: 600;
  border-bottom: 1px solid #dbdbdb;
  white-space: nowrap;
}

.calculations-table th .sort-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.calculations-table th .sort-icon {
  width: 16px;
}

.calculations-table td {
  padding: 12px 15px;
  font-size: 14px;
  border-bottom: 1px solid #dbdbdb;
  vertical-align: middle;
  webkit-transition: all 200ms linear;
  -moz-transition: all 200ms linear;
  -ms-transition: all 200ms linear;
  -o-transition: all 200ms linear;
  transition: all 200ms linear;
}

.calculations-table tbody tr.active td,
.calculations-table tbody tr:hover td{
  cursor: pointer;
  border-color: #000000;
}

.col-number {
  width: 7%;
  padding-left: 0!important;
}

.col-name {
  width: 22%;
}

.name-city {
  display: block;
  font-size: 11px;
  color: #999;
  margin-bottom: 3px;
}

.name-title {
  display: block;
  color: #333;
  line-height: 1.4;
}

.col-type {
  width: 10%;
}

.col-nomenclature {
  min-width: 40%;
}

.nomenclature-code {
  display: block;
  font-size: 11px;
  color: #999;
  margin-bottom: 3px;
}

.nomenclature-name {
  display: block;
  color: #333;
  line-height: 1.4;
}

.col-date {
  width: 21%;
  padding-right: 19px !important;
  text-align: right!important;
}

.date-cell {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.favorite-btn {
  width: 24px;
  height: 24px;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.calculations-table tbody .favorite-btn{
  opacity: 0;
}

.calculations-table tbody .favorite-btn.active{
  opacity: 1;
}

.calculations-table tbody tr.active td .favorite-btn,
.calculations-table tbody tr:hover .favorite-btn{
  opacity: 1;
}

.favorite-btn svg {
  width: 16px;
  height: 16px;
  color: #b0b0b0;
  transition: all 0.2s;
}

.calculations-table tbody tr:hover .favorite-btn.active svg {
  color: #0078d7;
}

.favorite-btn.active svg {
  color: #4a9ee1;
}

.favorite-btn[data-title] {
  position: relative;
}

.favorite-btn[data-title]::after {
  content: attr(data-title);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 10px;
  background: #333;
  color: #fff;
  font-size: 12px;
  white-space: nowrap;
  border-radius: 4px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s, visibility 0.15s;
  pointer-events: none;
  z-index: 1000;
  margin-bottom: 5px;
}

.favorite-btn[data-title]:hover::after {
  opacity: 1;
  visibility: visible;
}

.calculations-table tbody tr .skate-holder-more {
  opacity: 0;
  transition: all 0.2s;
}

.calculations-table tbody tr.active td .skate-holder-more,
.calculations-table tbody tr:hover .skate-holder-more {
  opacity: 1;
}

.date-value {
  font-size: 14px;
}

.calculations-table .skate-menu {
  left: auto;
  right: 0;
}
.calculations-table .skate-more {
  font-size: 18px;
}

/* All Projects Link */
.all-projects-link {
  padding: 20px;
  text-align: right;
}

.all-projects-link a {
  color: #0078d7;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s;
}

.all-projects-link a:hover {
  opacity: 0.8;
}

/* News Table Styles */
.news-table .news-col-name {
  width: auto;
  padding: 25px 0;
}

.news-table .news-col-date {
  width: 150px;
  text-align: right;
  padding: 25px 0;
}

.news-title {
  display: block;
}

/* News Labels */
.news-label {
  display: inline-block;
  vertical-align: middle;
  margin: 0 0 8px;
  padding: 2px 5px;
  font-size: 13px;
  color: #fff;
}

.news-label--important {
  background-color: #e53935;
}

.news-label--new {
  background-color: #0078d7;
}

.program_popup {
  width: 564px;
}

.program_popup .popup-main {
  padding: 20px 11px;
}

.program-tabset {
  margin: 0;
}

.program-tabset .tab-control {
  border-bottom: none;
  padding-bottom: 0;
}

.program-tabset .tab-control a {
  font-size: 13px;
  font-weight: 400;
  padding: 5px 11px;
  border-radius: 6px;
  border: 1px solid #d2d2d2;
}

.tab-control li a:hover,
.tab-control li.active a {
  border-color: #cf2c2f;
}

.program-tabset .tab {
  padding: 20px 22px;
}

/* Program Section */
.program-section {
  margin-bottom: 12px;
  padding: 20px 28px;
  background: #ffffff;
  border: 1px solid #e3e3e3;
  border-radius: 4px;
}


.program-section__header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.program-section__title {
  font-size: 14px;
  font-weight: 700;
}

.program-section__desc {
  font-size: 13px;
  line-height: 19px;
  margin: 0 0 17px;
}

.program-section hr {
  display: block;
  margin: 15px 0;
  border: none;
  border-bottom: 1px solid #dbdbdb;
}

/* Autosave Row */
.program-autosave-row {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 8px;
}

.program-input-wrap {
  position: relative;
  flex: 1;
}

.error-label {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  font-size: 12px;
  color: #cf2c2f;
}

.program-input-wrap.error .error-label {
  display: block;
}

.program-input {
  width: 100%;
  height: 45px;
  padding: 8px 36px 8px 12px;
  font-size: 14px;
  color: #404040;
  background: #fff;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
}

.program-input-wrap.error .program-input {
  border-color: #cf2c2f;
}


.program-input:focus {
  border-color: #0078d7;
}

.program-input-clear {
  position: absolute;
  right: 11px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  padding: 0;
  font-size: 14px;
  line-height: 1;
  color: #ffffff;
  background: #979797;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.program-input-clear:hover {
  opacity: 0.8;
}

.program-input:disabled + .program-input-clear {
  display: none!important;
}

/* Program Buttons */
.program-btn {
  min-width: 132px;
  height: 45px;
  padding: 10px 24px;
  font-size: 14px;
  border: none;
  color: #fff;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.program-btn:hover {
  opacity: 0.8;
}

.program-btn--red {
  background: #cf2c2f;
}

.program-btn--gray {
  background: #404040;
}

/* Template Example */
.program-template-example {
  display: flex;
  align-items: center;
  gap: 30px;
  margin: 0 0 6px;
}

.program-template-label {
  font-size: 13px;
  color: #909090;
}

.program-template-clear {
  font-size: 13px;
  color: #0078d7;
  text-decoration: none;
}

.program-template-clear:hover {
  text-decoration: underline;
}

.program-template-preview {
  font-size: 13px;
  line-height: 23px;
  margin: 0 0 10px;
}

/* Template Options */
.program-template-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.program-option {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.program-option__info {
  flex: 1;
  padding: 6px 10px;
  min-width: 44px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: #dfdfdf;
  border: 1px solid #cecece;
  border-radius: 4px;
}

.program-option__btn--added .program-option__info{
  border-color: #0078d7;
}

.program-option__name {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #404040;
}

.program-option__value {
  display: block;
  padding: 3px 0;
  width: 100%;
  font-size: 12px;
  color: #868686;
  background: transparent;
  border: none;
}

.program-option__btn {
  height: 44px;
  width: 130px;
  padding: 8px 20px;
  font-size: 14px;
  color: #ffffff;
  background: #404040;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 110px;
}

.program-option__btn:hover {
  opacity: 0.8;
}

.program-option.program-option__btn--added .program-option__btn {
  background: #1a73e8;
  color: #fff;
}

/* Warning */
.program-template-warning {
  display: inline-block;
  vertical-align: top;
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 17px;
  padding: 5px 9px;
  background: #fee9c1;
  border-radius: 3px;
}

.program-footer {
  display: flex;
  justify-content: end;
  gap: 10px;
  padding: 9px 0 0;
  flex-shrink: 0;
}

/* Program Select */
.program-select-wrap {
  margin-bottom: 16px;
}

.program-select-wrap .select2-container {
  width: 100% !important;
}

.program-select-wrap .select2-container--default .select2-selection--single {
  height: 44px;
  border: 1px solid #e3e3e3;
  border-radius: 4px;
  background: #fff;
}

.program-select-wrap .select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 38px;
  padding-left: 10px;
  padding-right: 25px;
  font-size: 13px;
  color: #404040;
}

.program-select-wrap .select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 38px;
  right: 8px;
}

.program-select-wrap .select2-container--default .select2-selection--single .select2-selection__arrow b {
  border-color: #666 transparent transparent transparent;
  border-width: 6px 5px 0 5px;
}

.program-select-wrap .select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
  border-color: transparent transparent #666 transparent;
  border-width: 0 5px 6px 5px;
}

.program-select-wrap .select2-container--default.select2-container--focus .select2-selection--single,
.program-select-wrap .select2-container--default.select2-container--open .select2-selection--single {
  border-color: #0078d7;
}

/* Program Select Dropdown */
.program-select-dropdown.select2-dropdown {
  border-color: #d9d9d9;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.program-select-dropdown .select2-results__option {
  padding: 10px 12px;
  font-size: 13px;
}

/* Program Select Info */
.program-select-info {
  padding: 0;
}

.program-select-info__title {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 4px;
}

.program-select-info__text {
  font-size: 13px;
  line-height: 24px;
  margin: 0;
}

.inserting-shape_popup,
.trigonometric-calculator {
  width: 1044px;
}

.inserting-shape_popup  .popup-main,
.trigonometric-calculator .popup-main {
  padding: 24px 30px;
}

.trig-calc-layout {
  display: flex;
  gap: 18px;
  margin: 0 0 10px;
}

.trig-calc-left {
  width: 47%;
  flex-shrink: 0;
}

.trig-calc-diagram {
  max-width: 420px;
  margin: 0 auto 44px;
}

.trig-triangle-svg {
  width: 280px;
  height: 220px;
}

.trig-triangle-svg .trig-label-side {
  font-size: 18px;
  font-style: italic;
  fill: #333;
}

.trig-triangle-svg .trig-label-angle {
  font-size: 16px;
  fill: #333;
}

.trig-calc-stats {
  border-top: 1px solid #e5e5e5;
  padding: 27px 20px;
  display: flex;
}

.trig-calc-stats-title {
  display: block;
  font-size: 14px;
  margin-bottom: 14px;
}

.trig-calc-stats-values {
  display: flex;
  gap: 30px;
  font-size: 15px;
  color: #333;
}
.trig-calc-stats-values span {
  display: block;
}

.trig-calc-stats .program-btn {
  margin-left: auto;
}

.trig-calc-right {
  flex: 1;
}

.trig-calc-section {
  height: 100%;
  padding: 20px 32px 20px 20px;
  border: 1px solid #e3e3e3;
  border-radius: 4px;
  background: #fff;
}

.trig-calc-section .program-section__header{
  margin-bottom: 18px;
}

.trig-calc-inputs {
  display: flex;
  flex-direction: column;
  padding: 10px 0 5px;
  border-top: 1px solid #e3e3e3;
}

.trig-calc-inputs .program-autosave-row {
  margin-bottom: 10px;
  padding: 0 0 10px;
  gap: 15px;
  border-bottom: 1px solid #e5e5e5;
}

.trig-calc-section .label-input-wrap {
  min-width: 33px;
  font-weight: bold;
  flex-shrink: 0;
}

.trig-calc-section .label-input-wrap span {
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

.trig-calc-section .program-input {
  height: 32px;
}

.trig-calc-group {
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.trig-calc-group .checkbox {
  margin: 0;
}

/* Angles Table */
.trig-calc-table-wrap {
  overflow-x: auto;
  border-top: 2px solid #e3e3e3;
  padding: 12px 0 0;
}

.trig-calc-table {
  width: 100%;
  border-collapse: collapse;
}

.trig-calc-table th {
  font-size: 12px;
  font-weight: 400;
  padding: 0 5px 5px;
  white-space: nowrap;
}

.trig-calc-table td {
  padding: 5px 10px 5px 0;
  vertical-align: middle;
}

.trig-calc-table-label {
  font-size: 14px;
  color: #333;
  text-align: center;
  width: 25px;
}

.trig-calc-table-icon {
  width: 30px;
  text-align: center;
}

.trig-table-grid-btn {
  width: 18px;
  padding: 0;
  border: none;
}

.trig-table-grid-btn:hover {
  opacity: 0.8;
}

.trig-calc-table-input {
  width: 100%;
  min-width: 60px;
  height: 32px;
  padding: 0 7px;
  font-size: 12px;
  background: #f9f9f9;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
}

.trig-calc-table-input:focus {
  border-color: #0078d7;
  outline: none;
}

/* Angle Select Modal */
.right-angle {
  width: 1044px;
}

.angle-select-back {
  padding: 0 0 0 12px;
  position: relative;
  border: none;
  color: #0078d7;
  text-decoration: none;
  font-size: 13px;
  margin-bottom: 16px;
}

.angle-select-back:before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  margin: -4px 0 0;
  rotate: -45deg;
  width: 5px;
  height: 5px;
  border-top: 1px solid #0078d7;
  border-left: 1px solid #0078d7;
}

.angle-select-back:hover {
  opacity: 0.8;
}

.angle-select-back span {
  font-size: 12px;
}

.angle-select-tables {
  display: flex;
  gap: 29px;
}

.angle-select-table-wrap {
  flex: 1;
}

.angle-select-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
}

.angle-select-table th,
.angle-select-table td {
  padding: 8px 12px;
  text-align: center;
  border: 1px solid #cecece;
  border-left: none;
}

.angle-select-table th:first-child,
.angle-select-table td:first-child {
  border-left: 1px solid #cecece;
}

.angle-select-table th {
  font-size: 12px;
  font-weight: bold;
  color: #333;
  background: #e9e9e9;
}

.angle-select-table td {
  background: #fff;
  border-top-color: transparent;
}

.angle-select-table tbody tr {
  cursor: pointer;
}

.angle-select-table tbody tr:hover{
  position: relative;
  z-index: 1;
}

.angle-select-table tbody tr:hover td {
  border-top-color: #0088cc;
  border-bottom-color: #0088cc;
}

.angle-select-table tbody tr:hover td:first-child {
  border-left-color: #0088cc;
}

.angle-select-table tbody tr:hover td:last-child {
  border-right-color: #0088cc;
}

.angle-select-footer {
  display: flex;
  justify-content: flex-end;
  padding-top: 20px;
}

.inserting-shape_popup {
  width: 1044px;
}

.inserting-shape_popup .trig-calc-left {
  align-self: flex-start;
}

.inserting-shape_popup .program-autosave-row {
  border-bottom: none;
}

.inserting-shape_popup .program-section__header {
  justify-content: space-between;
}

.program-section__holder-header {
  display: flex;
  gap: 8px;
}

.btn-dotted {
  border: none;
  background: none;
  padding: 0;
  color: #636363;
  border-bottom: 1px dotted #636363;
}
.btn-dotted:hover {
  border-color: transparent;
}

.inserting-shape_popup .trig-calc-group {
  margin: 0 -32px 0 -20px;
  padding: 20px 65px;
  border-top: 1px solid #dbdbdb;
}

.coordinates-inputs {
  display: flex;
  gap: 20px;
}

.inserting-shape_popup .program-footer {
  border-top: 1px solid #dbdbdb;
  justify-content: space-between;
}

.border-btn {
  height: 45px;
  padding: 5px 35px;
  border: 1px solid #b7b7b7;
  background: #f9f9f9;
  color: #404040;
  border-radius: 4px;
}

.border-btn:hover {
  background: #ffffff;
}

.specification_popup {
  width: 1262px;
}

.spec-params {
  background: #fff;
}

.spec-params-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #e4e4e4;
}

.spec-params-table th,
.spec-params-table td {
  padding: 10px 28px;
  text-align: left;
  border-bottom: 1px solid #e4e4e4;
  font-size: 14px;
}

.spec-params-table td {
  vertical-align: top;
  padding-top: 18px;
  padding-bottom: 18px;
}

.spec-params-table thead th {
  font-weight: 600;
  text-transform: uppercase;
  font-size: 13px;
}

.spec-params-table thead th:first-child {
  width: 29%;
}

.spec-params-table tbody td:first-child {
  font-weight: 500;
  color: #333;
}

.spec-success-badge {
  display: inline-block;
  vertical-align: top;
  padding: 11px 20px;
  background: #caffc1;
  text-transform: none;
  color: #333333;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid #f0f0f0;
  border-radius: 4px;
}

.spec-attachment-row {
  display: flex;
  align-items: center;
  gap: 35px;
  margin-bottom: 10px;
}

.spec-attachment-row .checkbox {
  margin-top: 0;
}

.spec-generate-btn {
  padding: 6px 11px;
  background: #cf2c2f;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 13px;
}

.spec-generate-btn:hover {
  opacity: 0.8;
}

.spec-notices {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.spec-notices .program-template-warning {
  flex: none;
  margin: 0 0 5px;
  padding: 3px 10px;
}

.spec-skats-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 20px;
}

.spec-skats-row .checkbox {
  margin-top: 0;
}

.spec-skats-hidden {
  display: none;
  gap: 10px 20px;
}

.spec-skats-row.expanded .spec-skats-hidden {
  display: contents;
}

.spec-skats-row.expanded .spec-show-more-btn {
  display: none;
}

.spec-show-more-btn {
  padding: 6px 16px;
  background: #fafafa;
  border: 1px solid #d3d3d3;
  border-radius: 5px;
  font-size: 13px;
  cursor: pointer;
}

.spec-show-more-btn:hover {
  background: #ffffff;
}

.spec-section {
  background: #fff;
  padding: 20px 30px 0;
  border-left: 1px solid #e3e3e3;
  border-right: 1px solid #e3e3e3;
}

.spec-section-title {
  font-size: 14px;
  font-weight: 700;
  color: #cf2c2f;
  text-transform: uppercase;
  margin: 0 0 19px;
}

.spec-stats-table {
  width: 100%;
  border-collapse: collapse;
}

.spec-stats-table th,
.spec-stats-table td {
  padding: 13px 2px;
  text-align: right;
  font-size: 13px;
  border-bottom: 1px solid #e0e0e0;
  webkit-transition: all 200ms linear;
  -moz-transition: all 200ms linear;
  -ms-transition: all 200ms linear;
  -o-transition: all 200ms linear;
  transition: all 200ms linear;
}

.spec-stats-table tr:hover td {
  border-bottom-color: #919191;
}

.spec-stats-table th:first-child,
.spec-stats-table td:first-child {
  text-align: left;
}

.spec-stats-table thead th {
  font-weight: 700;
  font-size: 13px;
  border-top: 1px solid #e0e0e0;
}

.spec-lengths-table {
  width: 100%;
  border-collapse: collapse;
}

.spec-lengths-table th,
.spec-lengths-table td {
  padding: 8px 2px;
  text-align: right;
  font-size: 13px;
  border-bottom: 1px solid #e0e0e0;
  webkit-transition: all 200ms linear;
  -moz-transition: all 200ms linear;
  -ms-transition: all 200ms linear;
  -o-transition: all 200ms linear;
  transition: all 200ms linear;
}

.spec-lengths-table tr:last-child td{
  border: none;
}
.spec-lengths-table tr:hover td {
  border-bottom-color: #919191;
}

.spec-lengths-table th:first-child,
.spec-lengths-table td:first-child {
  text-align: left;
}

.spec-lengths-table th:last-child,
.spec-lengths-table td:last-child {
  width: 40%;
  padding-right: 15%;
  padding-left: 10px;
}

.spec-lengths-table thead th {
  font-weight: 700;
  font-size: 13px;
  border-top: 1px solid #e0e0e0;
}

.spec-lengths-table td:last-child {
  text-align: left;
}

.spec-rounding-header {
  display: flex;
  align-items: center;
  justify-content: end;
  gap: 8px;
}

.spec-rounding-header .tpl-actions {
  position: relative;
  top: auto;
  right: auto;
  left: auto;
}

.spec-rounding-header .tpl-more-btn {
  opacity: 1;
  color: #000000;
  font-size: 26px;
}
.spec-rounding-header .tpl-more-btn:hover {
  color: #0078d7;
  cursor: pointer;
}

.spec-settings-btn {
  width: 24px;
  height: 24px;
  padding: 0;
  background: transparent;
  border: none;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s;
}

.spec-settings-btn:hover {
  opacity: 1;
}

.spec-settings-btn img {
  width: 16px;
  height: 16px;
}

.spec-rounding-cell {
  display: flex;
  align-items: center;
  justify-content: end;
  gap: 10px;
}

table .checkbox {
  margin-top: 0;
}

table .program-input-wrap {
  display: inline-block;
  vertical-align: top;
  flex: none;
}

table .program-input {
  width: 102px;
  height: 31px;
}

table .program-input {
  width: 102px;
  height: 31px;
}

.spec-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid #e3e3e3;
}

.spec-link-row {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 14px;
}

.spec-link {
  max-width: 350px;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #0078d7;
  text-decoration: none;
}

.spec-link:hover {
  text-decoration: underline;
}

.spec-footer .group-btn {
  display: flex;
  gap: 10px;
}

.spec-footer .program-btn{
  min-width: 0;
  padding: 10px 30px;
}

.components_popup {
  width: 1262px;
}

.components_popup .popup-main {
  padding: 20px 30px;
}

.comp-warning-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  gap: 20px;
}

.comp-warning-row .program-template-warning {
  margin: 0;
}

.comp-params {
  background: #fff;
}

.comp-params-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #e4e4e4;
}

.comp-params-table th,
.comp-params-table td {
  padding: 16px 28px;
  text-align: left;
  border-bottom: 1px solid #e4e4e4;
  font-size: 14px;
}

.comp-params-table thead th {
  font-weight: 600;
  text-transform: uppercase;
  font-size: 13px;
  background: #fff;
}

.comp-params-table thead th:first-child {
  width: 29%;
}

.comp-params-table tbody td:first-child {
  font-weight: 500;
  color: #333;
}

.comp-section {
  background: #fff;
  padding: 20px 28px 0;
  margin-bottom: 20px;
  border: 1px solid #e4e4e4;
}

.components_popup .spec-section-title {
  margin: 0 0 31px;
}

.comp-section-subtitle {
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 13px;
}

.comp-section-title {
  font-size: 14px;
  font-weight: 700;
  color: #333;
  text-transform: uppercase;
  margin: 0 0 15px;
}

.comp-dimensions-table {
  width: 100%;
  border-collapse: collapse;
}

.comp-dimensions-table th {
  font-weight: 700;
}

.comp-dimensions-table th,
.comp-dimensions-table td {
  width: 33.3%;
  padding: 12px 5px;
  text-align: right;
  font-size: 13px;
  border-bottom: 1px solid #e0e0e0;
  webkit-transition: all 200ms linear;
  -moz-transition: all 200ms linear;
  -ms-transition: all 200ms linear;
  -o-transition: all 200ms linear;
  transition: all 200ms linear;
}

.comp-dimensions-table th:first-child,
.comp-dimensions-table td:first-child {
  text-align: left;
}

.comp-dimensions-table tr:hover td {
  border-bottom-color: #919191;
}

.comp-dimensions-table tr:last-child td{
  border: none;
}

.comp-dimensions-item {
  display: flex;
  align-items: center;
  justify-content: end;
  gap: 5px;
}

.comp-dimensions-unit {
  display: inline-block;
  vertical-align: top;
  min-width: 28px;
  text-align: left;
}

.accordion .comp-accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0;
  margin: 0 0 15px;
  text-decoration: none!important;
}

.comp-accordion-header::before {
  display: none !important;
}

.comp-accordion-title {
  font-size: 14px;
  font-weight: 700;
}

.comp-toggle-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: #0078d7;
  text-decoration: none;
}

.comp-toggle-link::after {
  content: "";
  width: 5px;
  height: 5px;
  border: solid #0078d7;
  border-width: 0 1px 1px 0;
  transform: rotate(-135deg);
}

.accordion .item:not(.active) .comp-toggle-link::after {
  transform: rotate(45deg);
}

.comp-accordion .item .expanded {
  padding: 0 0 20px;
}

.accordion .item.active .comp-toggle-link .show-text {
  display: none;
}

.accordion .item.active .comp-toggle-link .hide-text {
  display: inline;
}

.accordion .item:not(.active) .comp-toggle-link .show-text {
  display: inline;
}

.accordion .item:not(.active) .comp-toggle-link .hide-text {
  display: none;
}

.comp-details-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #e4e4e4;
}

.comp-details-table th,
.comp-details-table td {
  vertical-align: middle;
  padding: 12px 15px;
  text-align: left;
  font-size: 13px;
  border: 1px solid #e4e4e4;
}

.comp-details-table th {
  font-weight: 600;
}

.comp-details-table th:first-child {
  width: 25%;
}

.comp-details-table th:nth-child(2) {
  width: 18%;
}

.comp-details-table th:nth-child(3) {
  width: 27%;
}

.comp-details-table th:last-child {
  width: 30%;
}

.comp-details-table .spec-rounding-header {
  justify-content: start;
}

table .helper-block {
  display: inline-block;
  vertical-align: top;
}

.components_popup .spec-footer {
  margin: 0;
  padding: 0;
  border: none;
}

.comp-dimensions-row {
  display: flex;
  gap: 20px;
  margin: 0 0 20px;
}

.comp-dimensions-row > div {
  flex: 1;
  align-self: flex-start;
}

table .program-input-wrap {
  flex: 1;
}

table .program-select-wrap {
  flex-shrink: 0;
}

table .program-select-wrap {
  margin: 0;
}

table .program-select-wrap.small {
  width: 102px;
}

table .program-select-wrap .select2-container--default .select2-selection--single {
  height: 31px;
}

.search-calculation_popup .components_popup {
  width: 1262px;
}

.search-calculation_popup .popup-main {
  padding: 24px 31px
}

.search-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 0 0 30px;
  border-bottom: 1px solid #d9d9d9;
}

.search-form__row {
  display: flex;
  align-items: flex-end;
  gap: 16px;
}

.search-form__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.search-form__field--small {
  width: 17%;
  flex-shrink: 0;
}

.search-form__field--medium {
  flex: 1;
  flex-shrink: 0;
}

.search-form__field--large {
  flex: 1;
  min-width: 200px;
}

.search-form__field--period {
  width: 23%;
  flex-shrink: 0;
}

.search-form__field--select {
  width: 20%;
  flex-shrink: 0;
}

.search-form__field--code {
  width: 160px;
  flex-shrink: 0;
}

.search-form__label {
  display: block;
  font-size: 13px;
  font-weight: 400;
  color: #404040;
}

.search-form__input {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  background-color: #fff;
  font-size: 13px;
  color: #404040;
  outline: none;
  transition: border-color 0.2s ease;
}

.search-form__input:focus {
  border-color: #0078d7;
}

.search-form__row .group-btn {
  display: flex;
  gap: 8px;
  margin-left: auto;
  align-items: flex-end;
}

.program-btn {
  min-width: 100px;
}

.search-form .program-select-wrap {
  width: 100%;
  margin: 0;
}

/* Date Range */
.search-form__date-range {
  display: flex;
  gap: 8px;
}

.search-form__date-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.search-form__input--date {
  position: relative;
}

.input-date {
  position: relative;
}

.input-date .ui-datepicker-trigger {
  position: absolute;
  top: 50%;
  right: 10px;
  width: 16px;
  height: 17px;
  transform: translateY(-50%);
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
}

.input-date .ui-datepicker-trigger  img {
  object-fit: cover;
}

/* calendar start*/
.ui-datepicker {
  width: 17em;
  padding: .2em .2em 0;
  display: none;
}

.ui-datepicker .ui-datepicker-header {
  position: relative;
  padding: .2em 0;
}

.ui-datepicker .ui-datepicker-prev,
.ui-datepicker .ui-datepicker-next {
  position: absolute;
  top: 2px;
  width: 1.8em;
  height: 1.8em;
}

.ui-datepicker .ui-datepicker-prev-hover,
.ui-datepicker .ui-datepicker-next-hover {
  top: 1px;
}

.ui-datepicker .ui-datepicker-prev {
  left: 2px;
}

.ui-datepicker .ui-datepicker-next {
  right: 2px;
}

.ui-datepicker .ui-datepicker-prev-hover {
  left: 1px;
}

.ui-datepicker .ui-datepicker-next-hover {
  right: 1px;
}

.ui-datepicker .ui-datepicker-prev,
.ui-datepicker .ui-datepicker-next {
  cursor: pointer;
  font-size: 14px;
  line-height: 1.8em;
  text-align: center;
}

.ui-datepicker .ui-datepicker-prev span,
.ui-datepicker .ui-datepicker-next span {
  display: none;
}

/* CSS arrows for prev/next */
.ui-datepicker .ui-datepicker-prev::after,
.ui-datepicker .ui-datepicker-next::after {
  content: '';
  display: block;
  position: absolute;
  top: 50%;
  width: 8px;
  height: 8px;
  border: solid #333;
  border-width: 0 2px 2px 0;
}

.ui-datepicker .ui-datepicker-prev::after {
  left: 50%;
  transform: translate(-25%, -50%) rotate(135deg);
}

.ui-datepicker .ui-datepicker-next::after {
  right: 50%;
  transform: translate(25%, -50%) rotate(-45deg);
}

.ui-datepicker .ui-datepicker-prev:hover::after,
.ui-datepicker .ui-datepicker-next:hover::after {
  border-color: #cf2c2f;
}

.ui-datepicker .ui-datepicker-title {
  margin: 0 2.3em;
  line-height: 1.8em;
  text-align: center;
}

.ui-datepicker .ui-datepicker-title select {
  font-size: 1em;
  margin: 1px 0;
}

.ui-datepicker select.ui-datepicker-month,
.ui-datepicker select.ui-datepicker-year {
  width: 45%;
}

.ui-datepicker table {
  width: 100%;
  font-size: .9em;
  border-collapse: collapse;
  margin: 0 0 .4em;
}

.ui-datepicker th {
  padding: .7em .3em;
  text-align: center;
  font-weight: bold;
  border: 0;
}

.ui-datepicker td {
  border: 0;
  padding: 1px;
}

.ui-datepicker td span,
.ui-datepicker td a {
  display: block;
  padding: .2em;
  text-align: right;
  text-decoration: none;
}

.ui-datepicker .ui-datepicker-buttonpane {
  background-image: none;
  margin: .7em 0 0 0;
  padding: 0 .2em;
  border-left: 0;
  border-right: 0;
  border-bottom: 0;
}

.ui-datepicker .ui-datepicker-buttonpane button {
  float: right;
  margin: .5em .2em .4em;
  cursor: pointer;
  padding: .2em .6em .3em .6em;
  width: auto;
  overflow: visible;
}

.ui-datepicker .ui-datepicker-buttonpane button.ui-datepicker-current {
  float: left;
}
/* calendar end*/

.calculation_popup {
  width: 1262px;
  overflow: visible;
}

/* New Calculation Form */

.new-calc-form__row {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  margin: 0 0 16px;
}

.new-calc-form__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.new-calc-form__field--nomenclature {
  width: 406px;
  flex-shrink: 0;
}

.new-calc-form__folder-btn {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 75px;
  background-color: transparent;
  background-image: url("../icon/folder-gray.png");
  background-repeat: no-repeat;
  background-position: center;
  border: none;
  border-left: 1px solid #d9d9d9;
  border-radius: 0;
  transition: none;
}

.program-input-wrap .program-input:focus + .new-calc-form__folder-btn,
.program-input-wrap.active .new-calc-form__folder-btn {
  border-color: #0078d7;
  background-image: url("../icon/folder-active.png");
}

.program-input-wrap.active .program-input{
  border-color: #0078d7;
}

.new-calc-form__input-group .program-input {
  padding-right: 105px;
}

.new-calc-form__input-group .program-input-clear {
  right: 85px;
}

.new-calc-form__field--name {
  width: 243px;
  flex-shrink: 0;
}

.new-calc-form__field--shipping {
  flex: 1;
  flex-shrink: 0;
}

.new-calc-form__label {
  display: block;
  font-size: 13px;
  color: #404040;
}

.new-calc-form__input {
  width: 100%;
  height: 45px;
  padding: 0 12px;
  border: 1px solid #e3e3e3;
  border-radius: 4px;
  background-color: #fff;
  font-size: 14px;
  color: #404040;
  outline: none;
  transition: border-color 0.2s ease;
}

.new-calc-form__input:focus {
  border-color: #0078d7;
}

.new-calc-form__input-group {
  display: flex;
  gap: 8px;
  align-items: center;
}

.new-calc-form__input-group .program-input-wrap {
  flex: 1;
}

.new-calc-form .program-select-wrap {
  margin: 0;
}

.new-calc-form__buttons .program-btn {
  white-space: nowrap;
}

/* Folder Browser */

.folder-browser__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.folder-browser__title {
  font-size: 14px;
  font-weight: 400;
  color: #404040;
}

.folder-browser__close {
  display: flex;
  align-items: center;
  background: none;
  gap: 6px;
  border: none;
  color: #0078d7;
  font-size: 13px;
  cursor: pointer;
  padding: 0;
  transition: opacity 0.2s ease;
}

.folder-browser__close span {
  font-size: 16px;
}

.folder-browser__close:hover {
  opacity: 0.7;
}

.folder-browser__content {
  display: flex;
  gap: 0;
  border: 1px solid #e3e3e3;
  border-radius: 4px;
  background: #fff;
  height: 665px;
}

.folder-browser__tree {
  width: 485px;
  flex-shrink: 0;
  overflow-y: auto;
  padding: 12px 0;
}

.folder-browser__table {
  flex: 1;
  padding: 15px;
  overflow-y: auto;
}

/* Folder Tree */
.folder-tree {
  list-style: none;
  margin: 0;
  padding: 0;
}

.folder-tree__children {
  list-style: none;
  margin: 0;
  padding: 0 0 0 24px;
  display: none;
}

.folder-tree__item--parent.is-open > .folder-tree__children {
  display: block;
}

/* Tree lines */
.folder-tree__item {
  position: relative;
}

/* Vertical line connecting siblings */
.folder-tree__children > .folder-tree__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background-color: #d5d5d5;
}

/* Stop vertical line at middle of last item */
.folder-tree__children > .folder-tree__item:last-child::before {
  bottom: calc(100% - 17px);
}

.folder-tree__row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 1px 16px;
  cursor: pointer;
  transition: background-color 0.15s ease;
  font-size: 13px;
  color: #404040;
  position: relative;
}

.folder-tree__row:hover .folder-tree__name,
.folder-tree__row--active .folder-tree__name {
  background-color: #d3effb;
  transition: background-color 0.3s ease;
}

.folder-tree__icon {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.folder-tree__icon--open {
  background-image: url("../icon/folder-active.png");
}

.folder-tree__icon--closed {
  background-image: url("../icon/folder-more.png");
}

.folder-tree__icon--file {
  background-image: url("../icon/folder.png");
}

.folder-tree__name {
  flex: 1;
  padding: 8px 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.folder-tree__icon--open + .folder-tree__name {
  font-weight: 700;
}

/* Nomenclature Table */
.nomenclature-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.nomenclature-table thead {
  position: sticky;
  top: 0;
  background: #f9f9f9;
  z-index: 1;
}

.nomenclature-table th {
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  border-bottom: 1px solid #e3e3e3;
}

.nomenclature-table td {
  padding: 10px 16px;
  border-bottom: 1px solid #f0f0f0;
}

.nomenclature-table tbody tr:hover {
  background-color: #f9f9f9;
  cursor: pointer;
}

.nomenclature-table th:first-child,
.nomenclature-table td:first-child {
  width: 100px;
}

.product-config-section {
  margin-bottom: 20px;
}

/* Product params table extended styles */
.product-params-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #e3e3e3;
  background: #fff;
}

.product-params-table th,
.product-params-table td {
  padding: 16px 28px;
  text-align: left;
  border-bottom: 1px solid #e3e3e3;
  font-size: 14px;
  vertical-align: middle;
}

.product-params-table thead th {
  font-weight: 700;
  text-transform: uppercase;
  font-size: 13px;
  background: #fff;
}

.product-params-table thead th:first-child {
  width: 29%;
}

/* Color swatch */
.color-swatch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.color-swatch__box {
  width: 28px;
  height: 28px;
  border-radius: 4px;
  border: 1px solid #e3e3e3;
}

/* Direction toggle radio */
.direction-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.calc-type-selector__label {
  font-size: 14px;
  color: #333;
  margin-right: 10px;
}

.direction-toggle__radio {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  font-size: 13px;
  border: 1px solid #e3e3e3;
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
}

.direction-toggle__radio input[type="radio"] {
  display: none;
}

.direction-toggle__text {
  display: block;
}

.direction-toggle__radio:has(input:checked) {
  background: #1f8dd6;
  border-color: #1f8dd6;
  color: #fff;
}

.direction-toggle__radio:hover:not(:has(input:checked)) {
  background: #f5f5f5;
}

/* Allowed sizes row */
.allowed-sizes-row {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.allowed-sizes-row__label {
  font-size: 14px;
  color: #333;
}

.allowed-sizes-row__group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.product-params-table .program-input {
  padding: 8px 12px;
}

.allowed-sizes-row__input {
  position: relative;
}

.product-params-table .allowed-sizes-row__input .program-input {
  width: 78px;
  padding-right: 25px;
}

.allowed-sizes-row__input .helper-block {
  position: absolute;
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
}

/* Details toggle link */
.details-toggle-link {
  position: relative;
  display: inline-block;
  vertical-align: top;
  padding: 0 15px 0 0;
  color: #0078d7;
  font-size: 13px;
  cursor: pointer;
  margin-left: auto;
}

.details-toggle-link:hover {
  opacity: 0.8;
}

.details-toggle-link::after {
  position: absolute;
  top: 50% ;
  right: 0;
  content: "" ;
  width: 4px;
  height: 4px;
  border: solid #0078d7;
  border-width: 0 1px 1px 0;
  transform: translate(-50%, -50%) rotate(45deg);
}

.details-toggle-link.collapsed::after {
  transform: translate(-50%, -50%) rotate(-135deg) ;
}

/* Range filter radio buttons */
.range-filter {
  display: flex;
  white-space: nowrap;
  gap: 6px;
  margin-top: 20px;
  padding: 20px 0 0;
  border-top: 1px solid #e3e3e3;
  flex-wrap: wrap;
  margin-bottom: 15px;
  align-items: center;
}


/* Hidden items */
.range-filter__hidden {
  display: none;
  gap: 6px;
}

.range-filter.expanded .range-filter__hidden {
  display: contents;
}

.range-filter.expanded .range-filter__more-btn {
  display: none;
}

/* More button */
.range-filter__more-btn {
  padding: 5px 10px;
  font-size: 13px;
  border: 1px solid #e3e3e3;
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
}

.range-filter__more-btn:hover {
  opacity: 0.8;
}

/* Select all link */
.select-all-link {
  float: right;
  color: #0078d7;
  font-size: 13px;
  text-decoration: none;
  cursor: pointer;
  margin-bottom: 10px;
}

.select-all-link:hover {
  text-decoration: underline;
}

/* Value grid checkboxes */
.value-grid {
  display: grid;
  grid-template-columns: repeat(15, 1fr);
  gap: 6px;
  margin-bottom: 15px;
}

.value-grid__checkbox {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 4px;
  font-size: 12px;
  text-align: center;
  border: 1px solid #cecece;
  background: #fff;
  color: #333;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.value-grid__checkbox input[type="checkbox"] {
  display: none;
}

.value-grid__checkbox:hover {
  border-color: #0078d7;
}

.value-grid__checkbox:has(input:checked) {
  border-color: #0078d7;
}

.product-params-table .program-template-warning {
  float: right;
}

.calculation_popup .spec-footer {
  border: none;
  padding: 0;
}
/* =============================================================================
	HasLayot
	========================================================================== */
.group:after {
  display: block;
  content: "";
  clear: both;
}

/* =============================================================================
   Status Console
   ========================================================================== */




.label-status-console {
  border: none;
  padding: 0;
  margin: 0;
  background: none;
  font-weight: inherit;
  color: #0078d7;
  text-decoration: none;
}

.label-status-console--warning {
  color: #ff0000;
}

.btn-status-console:hover {
  opacity: 0.8;
}

.status-console__content {
  display: flex;
  align-items: center;
  padding: 10px 0 0;
  gap: 10px;
}

.status-console__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 27px;
  height: 27px;
  color: #989898;
}

.status-console__icon svg {
  width: 100%;
  height: 100%;
}

.status-console__text {
  font-size: 13px;
  color: #262626;
}



/* Status Console Expanded */

.status-console-list {
  display: grid;
  grid-template-columns: repeat(3, 0fr);
  gap: 7px 33px;
}

.status-console-list__item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-console-list__icon {
  flex-shrink: 0;
  width: 7px;
  height: 7px;
  background-color: #ffb58d;
  border-radius: 50%;
}

.status-console-list__text {
  font-size: 12px;
  font-weight: 600;
  color: #636363;
  white-space: nowrap;
}

.status-console-list__item--hidden {
  display: none;
}

.status-console-list.expanded .status-console-list__item--hidden {
  display: flex;
}

.status-console-list__toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
}

.status-console-list__toggle .status-console-list__text {
  border-bottom: 1px dotted #636363;
}

.status-console-list__toggle .status-console-list__text:hover {
  border-bottom-color: transparent;
}
.status-console-list.expanded .status-console-list__toggle {
  display: none;
}




