.subtitle-table-container {
  width: 50%;
  margin-top: 30px;
  border-top: 1px solid rgba(0, 0, 0, 0.2);
  overflow-y: scroll;
  overflow-x: hidden;
  display: flex;
  justify-content: flex-end;
}

.subtitle-table-container table,
.subtitle-table-container table tr,
.subtitle-table-container table tr td {
  border: 1px solid var(--base-color);
  border-collapse: collapse;
  height: fit-content;
}

.subtitle-table-container table tr {
  height: 40px;
}

.subtitle-table-container table tr.active-subtitle {
  background-color: var(--selected-sub-color);
  overflow-y: scroll;
}

.subtitle-table-container table {
  /* width: 50%; */
  width: 100%;
  overflow: scroll;
  cursor: pointer;
  text-align: center;
}

.subtitle-text-container,
.subtitle-text-container-template {
  min-height: 40px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin: 10px auto;
  width: 90%;
  border: 1px solid var(--lighter-color);
  border-radius: 5px;
}

.subtitle-text,
.subtitle-text-template {
  width: 100%;
  outline: none;
  /* margin-bottom: 5px; */
  /* font-family: Arial; */
  /* font-family: "SimplerPro_V4"; */
  background-color: rgba(0, 0, 0, 0) !important;
  font-size: 1em !important;
  white-space: nowrap;
  min-height: 20px;
  max-height: 40px;
  /* display: block; */
  align-items: end;
  cursor: text;
  overflow-y: hidden;
  /* display: grid; */
}

.subtitle-text:focus,
.subtitle-text-template:focus {
  overflow-y: scroll;
}

.subtitle-text *,
.subtitle-text-template * {
  font-size: 1em !important;
}

.timecode-container,
.timecode-container-template {
  padding: 5px 5px 0 5px;
  /* display: flex; */
  font-size: 0.8em;
  margin: 0 5px;
  display: grid;
  grid-template-columns: 70px 10px 70px 6fr 6fr 6fr 2fr;
  color: var(--darker-font-color);
}

.subtitle-table-container table tr.active-subtitle .timecode-container,
.subtitle-table-container table tr.active-subtitle .timecode-container-template {
  color: var(--darker-color-hover);
}

.timecode-container input,
.timecode-container-template input {
  display: none;
}

.subtitleNumber,
.subtitleNumber-template {
  text-align: end;
}

.in-time-table,
.in-time-table-template,
.out-time-table,
.out-time-table-template {
  text-align: center;
  width: fit-content;
}

.delete-subtitle-icon span,
span.material-icons {
  font-weight: 200;
  font-size: x-large;
}

.delete-icon,
.material-icons {
  color: var(--darker-font-color);
  width: min-content;
}

.subtitle-table-container table tr.active-subtitle .delete-subtitle-icon,
.subtitle-table-container table tr.active-subtitle .material-icons {
  color: var(--darker-color-hover);
}

.subtitle-table-container table tr.active-subtitle .delete-icon:hover,
.delete-icon:hover {
  color: rgb(255, 70, 90);
}

.subtitle-table-container table tr.active-subtitle .add-icon:hover,
.add-icon:hover {
  color: rgb(60, 200, 100);
}
span.add-icon {
  font-size: larger;
}

.subtitle-icon-container,
.subtitle-icon-container-template {
  /* display: flex; */
  /* align-items: center; */
  /* flex-direction: column; */
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: min-content;
  align-items: start;
  justify-items: center;
}

.icons-text-container,
.icons-text-container-template {
  display: flex;
}

/* .subtitle-text-container-template {
    flex-direction: column;
    align-items: center;
  } */

/* .subtitle-table-container td:not(.template-cell) {
    width: 50%;
  } */

.subtitle-table-container td {
  width: var(--td-width);
}

*[font="SimplerPro_V4"] {
  font-family: "SimplerPro_V4";
}

*[font="Arial"] {
  font-family: Arial;
}

.duration-data,
.cps-data {
  text-align: center;
  white-space: nowrap;
}

.errors-data {
  color: rgb(255, 110, 110);
  white-space: nowrap;
}

.active-subtitle .errors-data {
  color: rgb(220, 50, 50);
  white-space: nowrap;
}

tr[vertical_align="bottom"] .align-icon {
  margin-top: 2px;
  background-image: url(align-bottom-svgrepo-com.svg);
  background-repeat: no-repeat;
  width: 22px;
  height: 20px;
}

tr[vertical_align="top"] .align-icon {
  margin-top: 2px;
  background-image: url(align-top-svgrepo-com.svg);
  background-repeat: no-repeat;
  width: 20px;
  height: 20px;
}

tr[vertical_align="top"] .subtitle-text-container {
  align-items: start;
}

tr[vertical_align="bottom"] .subtitle-text-container {
  align-items: end;
}

tr[row_position="center"] .subtitle-text-container {
  text-align: center;
}

tr[row_position="left"] .subtitle-text-container p[dir="rtl"] {
  text-align: right;
}
tr[row_position="left"] .subtitle-text-container p[dir="ltr"] {
  text-align: left;
}

tr[row_position="right"] .subtitle-text-container p[dir="rtl"] {
  text-align: left;
}

tr[row_position="right"] .subtitle-text-container p[dir="ltr"] {
  text-align: right;
}

.subtitle-table-container table tr.active-subtitle.raw-materials-error {
  background-color: rgb(130, 80, 90);
}

p.bold-gelem {
  font-weight: bold;
}

.subtitle-table-container table tr {
  height: var(--min-row-height);
}

.timing-arrows {
  display: flex;
  flex-direction: column;
  margin-top: -7px;
  z-index: 1;
}

.timing-arrow {
  width: 18px;
  height: 18px;
}

.down-arrow {
  margin-top: -7px;
}

.timing-arrow:hover {
  transform: scale(1.2);
}

.in-time-table,
.out-time-table {
  display: flex;
}

/* .subtitle-table-header-container {
    position: fixed;
    top: -1000px;
    left: -1000px;
  } */

.table-header {
  font-weight: bold;
  position: fixed;
  top: -1000px;
  /* z-index: 1; */
  text-decoration: underline;
}

tr[marked="true"] {
  border: 3px solid rgb(80, 160, 255) !important;
}

.annotation {
  width: 100%;
  /* height: 20px; */
  height: fit-content;
  display: flex;
  margin-left: 10px;
  justify-content: flex-start;
  margin-bottom: 5px;
  margin-top: -5px;
  margin-right: 5px;
  font-size: small;
}

.annotation div {
  background-color: rgb(80, 140, 220);
  display: flex;
  border-radius: 20px;
  border: none;
  outline: none;
  margin: 0 2px;
  padding: 0 10px;
  align-items: center;
}

.annotation p {
  border: none;
  outline: none;
  margin: 0 2px;
}

.annotation span {
  border: none;
  outline: none;
  margin: 0 2px;
}

.shot-change-right {
  border-right: 3px dashed rgb(255, 200, 50) !important;
}

.shot-change-left {
  border-left: 3px dashed rgb(255, 200, 50) !important;
}

.show-hide-column {
  width: 1em;
  height: 1em;
  position: absolute;
  top: 0.2em;
  right: 0.2em;
}
.show-hide-column-header {
  position: absolute;
  width: 15px;
  height: 15px;
  margin-left: -20px;
  cursor: pointer;
}

.subtitle-table-container tr td.template-cell {
  position: relative;
  min-width: 1.5em;
}

.subtitle-table-container tr td.template-cell:nth-child(2) {
  width: var(--td-template-middle-width);
}

.subtitle-table-container tr td.template-cell:nth-child(3) {
  width: var(--td-template-right-width);
}

.show-hide-column.hide,
.show-hide-column-header.hide {
  background-image: url(hide.svg);
}

.show-hide-column.show,
.show-hide-column-header.show {
  background-image: url(show.svg);
}

/* .template-cell.hide {
    width: fit-content;
  } */

.template-cell.hide *:not(.hide):not(.show) {
  display: none;
}

.fake-scrollbar {
  position: fixed;
  right: 2;
  background-color: rgb(60, 85, 120);
  z-index: 10;
  width: 10px;
  cursor: pointer;
}

.fake-scrollbar-indicator {
  right: 0;
  background-color: rgb(80, 140, 220);
  z-index: 10;
  width: 10px;
  height: 30px;
  position: relative;
  top: 10px;
}
