.block_type_menu ul .type_table,
.active .head_type_table,
.template_div .template_results .type_table {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%235F6369' stroke-width='1.7'%3E%3Crect x='3' y='4' width='18' height='16' rx='2'/%3E%3Cpath d='M3 9.5h18M3 14.5h18M9 4v16M15 4v16'/%3E%3C/svg%3E");
  background-size: 23px;
  background-repeat: no-repeat;
  background-position: 14px center;
}

.active .head_type_table {
  background-position: 8px center;
}

.form .block.table_block .spreadsheet_container {
  margin-top: 8px;
}

.tq {
  width: 100%;
  color: #222;
  font-size: 13px;
}

.tq_bar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 6px;
}

.tq_download {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: url("../../assets/more.png") center / 19px no-repeat;
  cursor: pointer;
  font-size: 0;
  opacity: 0.5;
}

.tq_download:hover {
  opacity: 1;
}

.tq_scroll {
  overflow: auto;
  max-width: 100%;
  border: 1px solid #e4e4e4;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 3px 8px -3px #0001;
  scrollbar-width: thin;
  scrollbar-color: #c4c7ce transparent;
}

.tq_scroll::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.tq_scroll::-webkit-scrollbar-thumb {
  background: #c4c7ce;
  border-radius: 6px;
}

.tq_scroll::-webkit-scrollbar-track {
  background: transparent;
}

.tq_table {
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  width: max-content;
}

.tq_cell {
  position: relative;
}

.tq_col_resize,
.tq_row_resize {
  position: absolute;
  z-index: 6;
  background: transparent;
}

.tq_col_resize {
  top: 0;
  right: 0;
  width: 3px;
  height: 100%;
  cursor: col-resize;
}

.tq_row_resize {
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  cursor: row-resize;
}

.tq_col_resize:hover,
.tq_row_resize:hover,
body.tq_resizing_col .tq_col_resize.is_active,
body.tq_resizing_row .tq_row_resize.is_active {
  background: rgba(38, 139, 210, 0.3);
}

body.tq_resizing_col,
body.tq_resizing_col * {
  cursor: col-resize !important;
}

body.tq_resizing_row,
body.tq_resizing_row * {
  cursor: row-resize !important;
}

.tq_table th,
.tq_table td {
  border-right: 1px solid #eee;
  border-bottom: 1px solid #eee;
  background: #fff;
  padding: 0;
  vertical-align: middle;
  font-weight: 500;
  overflow: hidden;
}

.tq_table thead th {
  position: sticky;
  top: 0;
  z-index: 3;
  background: #f6f7f9;
  height: 42px;
}

.tq_corner,
.tq_rowhead {
  position: sticky;
  left: 0;
  z-index: 2;
  min-width: 72px;
  width: 72px;
  background: #f6f7f9;
  text-align: left;
}

.tq_table thead .tq_corner {
  z-index: 4;
}

.tq_corner {
  /* text-align: center; */
}

.tq_corner_label {
  margin-left: 11px;
}

.tq_colhead {
  min-width: 0;
  text-align: left;
  padding: 4px 6px !important;
}

.tq_colhead.is_locked {
  background: #f3f4f6;
}

.tq_drag {
  display: inline-block;
  width: 18px;
  height: 22px;
  margin: 0 2px;
  cursor: grab;
  vertical-align: middle;
  background: url("../../assets/handle.png") center / 25px no-repeat;
  opacity: 0.8;
  border-radius: 4px;
}

.tq_drag:active {
  cursor: grabbing;
}

.tq_drag:hover {
  opacity: 1;
  background-color: #e8eef5;
}

.tq_col_title,
.tq_cell_input,
.tq_readonly {
  width: 100%;
  border: 0;
  background: transparent;
  outline: none;
  font: inherit;
  color: #222;
  padding: 8px 8px;
  box-sizing: border-box;
}

select.tq_cell_input {
  box-sizing: border-box;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  -moz-appearance: none;
  -webkit-appearance: none;
  appearance: none;
  padding-right: 28px;
  cursor: pointer;
  background-color: transparent;
  background-image: url("../../assets/dropdown_dark.png");
  background-size: 11px;
  background-repeat: no-repeat;
  background-position: calc(100% - 12px) center;
}

.tq_col_title {
  width: calc(100% - 78px);
  font-weight: 600;
  padding: 4px 4px;
  vertical-align: middle;
  border-bottom: 1px solid transparent;
}

.tq_col_title:focus {
  border-bottom: 1px solid #268bd2;
}

.tq_col_label {
  display: inline-block;
  max-width: calc(100% - 24px);
  padding: 4px 4px;
  font-weight: 650;
  vertical-align: middle;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tq_star {
  display: inline-block;
  margin-left: 0;
  padding: 1px 6px;
  border-radius: 999px;
  color: #2d6098;
  font-size: 16px;
  font-weight: 550;
  height: 12px;
  line-height: 16px;
  vertical-align: middle;
  color: #d4534a;
}

.tq_lock {
  display: inline-block;
  margin-left: 0;
  padding: 1px 6px;
  border-radius: 999px;
  color: #2d6098;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.01em;
  vertical-align: middle;
  width: 12px;
  height: 12px;
  background: #e7eef8 url("../../assets/locked_grey.png");
  background-size: 8px;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.5;
}

.tq_type_pill {
  display: none;
  /* display: inline-block; */
  width: 20px;
  height: 20px;
  margin-left: 4px;
  padding: 0;
  vertical-align: middle;
  background-color: transparent;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 24px;
  font-size: 0;
}

.tq_more {
  float: right;
  width: 24px;
  height: 24px;
  margin-top: 0;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: url("../../assets/more.png") center / 14px no-repeat;
  cursor: pointer;
  font-size: 0;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 4px;
  opacity: 0.5;
}

.tq_add_col:hover {
  border-color: #268bd2;
  background-color: #e8eef5;
}

.tq_more:hover{
   opacity: 1;
}

.tq_rowhead {
  padding: 0 4px !important;
  white-space: nowrap;
  /* text-align: center; */
}

.tq_rownum {
  display: inline-block;
  min-width: 16px;
  color: #6b7280;
  font-size: 12px;
  vertical-align: middle;
  margin-left: 8px;
}

.tq_rowhead .tq_more {
  float: none;
  margin-left: 2px;
}

.tq_cell {
  min-width: 0;
  min-height: 32px;
}

.tq_table thead th.tq_head_selected,
.tq_rowhead.tq_head_selected {
  background: #D3E3FD;
}

.tq_table thead th.tq_head_selected,
.tq_table thead th.tq_head_selected .tq_col_title,
.tq_rowhead.tq_head_selected,
.tq_rowhead.tq_head_selected .tq_rownum {
  font-weight: 600;
  color: #1f1f1f;
}

.tq_cell.tq_selected {
  background: #eef6fd;
  box-shadow: inset 0 0 0 1px #b9d7f2;
}

.tq_cell.tq_active {
  background: #fff;
  box-shadow: inset 0 0 0 1px #268bd2;
}

.tq_cell.tq_locked {
  background: #f7f7f8;
}

.tq_cell.tq_invalid {
  box-shadow: inset 0 0 0 2px #d4534a;
  background: #fff6f5;
}

.tq_readonly {
  color: #6b7280;
  min-height: 36px;
}

.tq_money {
  display: flex;
  align-items: center;
}

.tq_symbol {
  padding-left: 8px;
  color: #667085;
  font-weight: 650;
}

.tq_money .tq_cell_input {
  flex: 1;
}

.tq_file {
  padding: 4px 6px;
}

.tq_file_btn,
.tq_add_row,
.tq_add_col,
.tq_modal_cancel,
.tq_modal_save,
.tq_menu_item {
  font: inherit;
}

.tq_file_btn {
  border: 1px solid #d7dbe2;
  background: #fff;
  border-radius: 7px;
  padding: 4px 8px;
  cursor: pointer;
  color: #333;
}

.tq_file_btn:hover {
  border-color: #268bd2;
  color: #1d4f82;
}

.tq_file_picker {
  display: none !important;
}

.tq_file_list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
}

.tq_file_chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 100%;
  padding: 2px 4px 2px 6px;
  border-radius: 999px;
  background: #f2f4f7;
  color: #333;
}

.tq_file_empty {
  color: #ccc;
  font-size: 12px;
  font-style: italic;
  line-height: 1.4;
  padding: 4px 2px;
}

.tq_file_name {
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: inherit;
  text-decoration: none;
}

a.tq_file_name {
  color: #1a73e8;
  cursor: pointer;
}

a.tq_file_name:hover {
  text-decoration: underline;
}

.tq_file_progress {
  min-width: 32px;
  color: #1a73e8;
  font-size: 11px;
  text-align: right;
}

.tq_file_remove {
  border: 0;
  background: transparent;
  cursor: pointer;
  color: #888;
  line-height: 1;
}

.tq_add_col_cell,
.tq_add_col_gap {
  width: 42px;
  min-width: 42px;
  background: #fbfbfc;
  text-align: center;
}

.tq_add_col {
  width: 26px;
  height: 26px;
  border: 1px dashed #cfd4dc;
  border-radius: 7px;
  background: #fff;
  cursor: pointer;
  font-size: 16px;
  font-weight: 550;
  color: #268bd2;
}

.tq_add_row {
  display: block;
  min-width: 32px;
  margin-top: 8px;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  color: #666;
  cursor: pointer;
  font-weight: bold;
  padding: 12px 14px 12px 32px !important;
  background: transparent url('../../assets/save_template.png');
  background-size: 24px;
  background-repeat: no-repeat;
  background-position: 4px center;
  filter: invert(50%) sepia(19%) saturate(3123%) hue-rotate(172deg) brightness(89%) contrast(84%);
  opacity: 0.8;
}

.tq_add_row:hover {
  opacity: 1;
  /* border-color: #268bd2;
  color: #1d4f82;
  background: #f5faff; */
}

.tq_add_row.is_disabled {
  opacity: 0.55;
  cursor: default;
}

.tq_note,
.tq_limit {
  margin: 8px 2px 0;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.4;
}

.tq_note {
  color: #8a5a00;
  background: #fff8eb;
  border: 1px solid #f3e2b8;
}

.tq_limit {
  color: #9a3412;
  background: #fff4ed;
  border: 1px solid #fdba74;
}

.tq_limit.hide,
.tq_state {
  display: none;
}

.tq_drop {
  box-shadow: inset 0 -2px 0 #268bd2;
}

.tq_menu {
  position: fixed;
  z-index: 100000;
  min-width: 220px;
  padding: 4px;
  background: #fff;
  border: 1px solid #e4e4e4;
  border-radius: 4px;
  box-shadow: 0 8px 24px -8px #0005;
}

.tq_menu_item {
  display: flex;
  position: relative;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 0;
  background-color: transparent;
  background-repeat: no-repeat;
  background-position: 8px center;
  background-size: 20px;
  text-align: left;
  padding: 8px 8px 8px 36px;
  border-radius: 6px;
  cursor: pointer;
  color: #222;
}

.tq_menu_item:hover {
  background-color: #f4f7fb;
}

.tq_icon_text { background-image: url("../../assets/short_answer.png"); }
.tq_icon_date { background-image: url("../../assets/date_picker.png"); }
.tq_icon_email { background-image: url("../../assets/email.png"); }
.tq_icon_number { background-image: url("../../assets/numeric.png"); }
.tq_icon_currency { background-image: url("../../assets/currency.png"); }
.tq_icon_phone { background-image: url("../../assets/phone.png"); }
.tq_icon_file { background-image: url("../../assets/upload.png"); }
.tq_icon_dropdown { background-image: url("../../assets/dropdown_icon.png"); }
.tq_icon_settings { background-image: url("../../assets/settings_icon.png"); }
.tq_icon_required { 
  background-image: url("../../assets/required.png");
  background-position: 7px center;
  background-size: 22px;
}

.tq_icon_delete { 
  background-image: url("../../assets/delete.png");
  background-size: 13px;
  background-position: 12px center;
}
.tq_icon_lock { 
  background-image: url("../../assets/locked_grey.png");
  background-size: 12px;
  background-position: 12px center;
}
.tq_icon_download {
  /* background-image: none; */
  background-image: url("../../assets/download.png");
  background-size: 26px;
}
.tq_icon_download::before {
  /* content: "";
  position: absolute;
  left: 8px;
  top: 50%;
  width: 20px;
  height: 20px;
  transform: translateY(-50%);
  background: url("../../assets/download.png") center / 26px no-repeat;
  filter: invert(50%) sepia(19%) saturate(3123%) hue-rotate(172deg) brightness(89%) contrast(84%); */
}
.tq_icon_copy {
    border-top: 1px solid #e4e4e4;
  background-image: url("../../assets/copy.png");
  background-size: 24px;
  background-position: 9px center;
  background-image: none;
}

.tq_icon_copy::before {
    content: "";
    position: absolute;
    left: 11px;
    top: 50%;
    width: 20px;
    height: 20px;
    transform: translateY(-50%);
    background: url("../../assets/copy.png") center / 26px no-repeat;
    filter: invert(50%) sepia(19%) saturate(3123%) hue-rotate(172deg) brightness(89%) contrast(84%);
  }

.tq_menu_item.is_checked::after {
  content: "";
  width: 13px;
  height: 13px;
  border-radius: 2px;
  background: #268bd2 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='white' d='M6.2 11.2 2.9 7.9l1.1-1.1 2.2 2.2 5-5 1.1 1.1z'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.tq_menu_item.is_danger {
  color: #c2414b;
}

.tq_menu_sep {
  height: 1px;
  margin: 4px 6px;
  background: #eee;
}

.tq_menu_parent {
  position: relative;
}

.tq_submenu {
  display: none;
  position: absolute;
  left: calc(100% - 6px);
  top: 0;
  min-width: 200px;
  padding: 4px;
  background: #fff;
  border: 1px solid #e4e4e4;
  border-radius: 4px;
  box-shadow: 0 8px 24px -8px #0005;
}

.tq_submenu.tq_flip {
  left: auto;
  right: calc(100% - 6px);
}

.tq_menu_parent.is_open > .tq_submenu,
.tq_menu_parent:hover > .tq_submenu {
  display: block;
}

.tq_modal_back {
  position: fixed;
  inset: 0;
  z-index: 100001;
  background: rgba(15, 23, 42, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.form .block.table_block .more_options_div .more_options_valid.hide {
  display: none;
}

.tq_modal_back.hide {
  display: none;
}

.tq_modal {
  width: min(440px, 100%);
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e6e6e6;
  box-shadow: 0 16px 40px -16px #0006;
  padding: 18px 18px 14px;
}

.tq_modal_title {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 700;
}

.tq_field {
  display: block;
  margin-bottom: 10px;
}

.tq_field_label {
  display: block;
  margin-bottom: 4px;
  font-size: 12px;
  color: #555;
}

.tq_setting {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #e1e1e1;
  border-radius: 8px;
  padding: 8px 10px;
  font: inherit;
  outline: none;
}

.tq_setting:focus {
  border-color: #268bd2;
}

.tq_setting[type="checkbox"] {
  width: auto;
}

textarea.tq_setting {
  resize: vertical;
  min-height: 110px;
}

.tq_field_empty {
  margin: 0;
  color: #667085;
  font-size: 13px;
}

.tq_modal_actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 14px;
}

.tq_modal_cancel,
.tq_modal_save {
  border-radius: 8px;
  padding: 7px 12px;
  cursor: pointer;
}

.tq_modal_cancel {
  border: 1px solid #e1e1e1;
  background: #fff;
}

.tq_modal_save {
  border: 0;
  background: #268bd2;
  color: #fff;
}

.form .builder .block.table_block .tq_scroll input:not(.tq_phone),
.form .builder .block.table_block .tq_scroll select {
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 8px !important;
  min-height: 0 !important;
  height: auto !important;
  width: 100%;
}

.form .builder .block.table_block .tq_scroll input {
  background: transparent !important;
}

.form .builder .block.table_block .tq_scroll select.tq_cell_input {
  -moz-appearance: none !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  padding-right: 28px !important;
  cursor: pointer;
  background-color: transparent !important;
  background-image: url("../../assets/dropdown_dark.png") !important;
  background-size: 11px !important;
  background-repeat: no-repeat !important;
  background-position: calc(100% - 12px) center !important;
}

.form .builder .block.table_block .tq_scroll input:focus,
.form .builder .block.table_block .tq_scroll select:focus {
  border: 0 !important;
  box-shadow: none !important;
  outline: none !important;
}

.form .builder .block.table_block .tq_col_title {
  width: calc(100% - 36px) !important;
  padding: 4px 4px !important;
  font-weight: 600;
}

.form .builder .block.table_block .tq_money .tq_cell_input {
  width: auto;
  flex: 1;
}

.tq_date {
  display: flex;
  align-items: center;
  width: 100%;
  min-width: 0;
}

.tq_date .tq_cell_input {
  flex: 1;
  min-width: 0;
  width: auto;
}

.tq_date_native {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.tq_date_btn {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  margin-right: 8px;
  border: 0;
  padding: 0;
  background: transparent url("../../assets/date_picker.png") center / 24px no-repeat;
  opacity: 0.7;
  cursor: pointer;
}

.tq_date_btn:hover {
  opacity: 1;
  filter: invert(50%) sepia(19%) saturate(3123%) hue-rotate(172deg) brightness(89%) contrast(84%);
}

.tq_cell .iti {
  display: flex;
  align-items: center;
  width: 100%;
  min-width: 0;
}

.tq_cell .iti__country-container {
  position: relative;
  top: auto;
  right: auto;
  bottom: auto;
  left: auto;
  flex: 0 0 auto;
  padding: 0;
}

.tq_cell .iti__selected-country {
  height: auto;
  min-height: 32px;
  padding: 0 2px 0 6px;
}

.tq_cell .iti input.tq_cell_input,
.form .builder .block.table_block .tq_scroll input.tq_phone {
  flex: 1 1 auto;
  min-width: 0;
  width: auto !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 8px 8px 8px 6px !important;
  min-height: 0 !important;
  height: auto !important;
  background: transparent !important;
}

.block .more_options_div .more_options_rows img {
  
}