.tvctm-shell {
  background: #fff;
  border: 1px solid #dcdcde;
  border-radius: 18px;
  padding: 18px;
  margin: 16px 0;
  font-family: Inter, system-ui, sans-serif;
  box-shadow: 0 10px 28px rgba(16, 24, 40, .06)
}

.tvctm-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 16px
}

.tvctm-head h2 {
  margin: 0;
  font-size: 1.45rem;
  color: #101828
}

.tvctm-subtle {
  color: #667085
}

.tvctm-toolbar,
.tvctm-admin-toolbar,
.tvctm-sidebar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center
}

.tvctm-badge {
  display: inline-flex;
  align-items: center;
  background: #f5f7fa;
  border: 1px solid #e4e7ec;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  color: #475467
}

.tvctm-badge-hidden {
  background: #fff1f3;
  border-color: #fecdd3;
  color: #be123c
}

.tvctm-empty {
  color: #667085;
  padding: 12px 0
}

.tvctm-hint {
  font-size: 12px;
  color: #667085
}

.tvctm-selectionbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 10px 12px;
  background: #f8fafc;
  border: 1px solid #eaecf0;
  border-radius: 12px;
  margin-bottom: 12px
}

.tvctm-copy-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ecfdf3;
  border: 1px solid #a6f4c5;
  color: #027a48;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px
}

.tvctm-admin-layout {
  display: grid;
  grid-template-columns: minmax(240px, 290px) minmax(0, 1fr);
  gap: 18px;
  align-items: start
}

.tvctm-admin-sidebar,
.tvctm-admin-main {
  min-width: 0
}

.tvctm-panel {
  border: 1px solid #dcdcde;
  border-radius: 14px;
  padding: 14px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(16, 24, 40, .04)
}

.tvctm-panel h3 {
  margin: 0 0 10px;
  font-size: 14px
}

.tvctm-tablelist {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 520px;
  overflow: auto;
  margin-top: 10px
}

.tvctm-top-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 8px;
  margin-bottom: 12px
}

.tvctm-tab {
  border: 1px solid #d0d5dd;
  background: #fff;
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
  white-space: nowrap
}

.tvctm-tab.active {
  background: #eef4ff;
  border-color: #155eef;
  color: #004ee8
}

.tvctm-admin-toolbar-clean {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid #eaecf0;
  border-radius: 12px
}

.tvctm-grid-host {
  border: 1px solid #eaecf0;
  border-radius: 12px;
  overflow: auto;
  background: #fff
}

#tvctm-hot {
  min-width: 720px
}

#tvctm-hot,
.handsontable,
.handsontable * {
  pointer-events: auto
}

.tvctm-front-accordion {
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  border-color: #e4e7ec
}

.tvctm-front-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 14px
}

.tvctm-front-pill {
  appearance: none;
  border: 1px solid #d0d5dd;
  background: #f8f8f8;
  color: #344054;
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 14px;
  line-height: 1.25;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .65)
}

.tvctm-front-pill.active {
  background: #eef4ff;
  border-color: #84adff;
  color: #175cd3
}

.tvctm-front-panels {
  display: block
}

.tvctm-front-panel {
  display: none
}

.tvctm-front-panel.active {
  display: block
}

.tvctm-front-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2px 2px 12px
}

.tvctm-front-panel-head h3 {
  margin: 0;
  font-size: 1.05rem;
  color: #101828
}

.tvctm-front-panel-head p {
  margin: 4px 0 0;
  color: #667085;
  font-size: 13px
}

.tvctm-front-description {
  margin: 0 0 12px;
  padding: 12px 14px;
  border: 1px solid #dbe4ff;
  background: #f5f8ff;
  border-radius: 12px;
  color: #344054;
  line-height: 1.55
}

.tvctm-front-table-card {
  position: relative;
  min-height: 120px
}

.tvctm-front-loader {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(255, 255, 255, .88);
  z-index: 5;
  color: #344054;
  font-weight: 600
}

.tvctm-front-table-card.is-loading .tvctm-front-loader {
  display: flex
}

.tvctm-spinner {
  width: 22px;
  height: 22px;
  border: 3px solid #d0d5dd;
  border-top-color: #175cd3;
  border-radius: 50%;
  animation: tvctm-spin .8s linear infinite;
  flex: 0 0 22px
}

@keyframes tvctm-spin {
  to {
    transform: rotate(360deg)
  }
}

.tvctm-shortcode-wrap .dataTables_wrapper {
  padding: 6px
}

.tvctm-shortcode-wrap .dataTables_wrapper .dataTables_length,
.tvctm-shortcode-wrap .dataTables_wrapper .dataTables_filter,
.tvctm-shortcode-wrap .dataTables_wrapper .dt-buttons {
  margin-bottom: 10px
}

.tvctm-shortcode-wrap .dt-button {
  font-size: 14px !important;
  border-radius: 10px !important;
  border: 1px solid #d0d5dd !important;
  background: #fff !important;
  color: #344054 !important
}

.tvctm-shortcode-wrap .dt-button:hover {
  background: #f8fafc !important
}

.tvctm-shortcode-wrap table.dataTable thead th,
.tvctm-shortcode-wrap table.dataTable thead td {
  font-size: 15px !important;
  font-weight: 700 !important;
  line-height: 1.35;
  color: #101828;
  padding-top: 14px !important;
  padding-bottom: 14px !important;
  white-space: nowrap;
  background: #f8fafc !important;
  text-transform: uppercase !important;
  letter-spacing: .06em
}

.tvctm-shortcode-wrap table.dataTable tbody td {
  font-size: 14px;
  line-height: 1.5;
  color: #101828
}

.tvctm-shortcode-wrap table.dataTable tbody tr:nth-child(even) {
  background: #fcfcfd
}

.tvctm-shortcode-wrap .dataTables_wrapper .dataTables_filter input,
.tvctm-shortcode-wrap .dataTables_wrapper .dataTables_length select {
  font-size: 14px;
  border-radius: 10px;
  border: 1px solid #d0d5dd;
  padding: 6px 10px
}

.handsontable .htCore td,
.handsontable .htCore th {
  font-size: 14px
}

.handsontable .currentRow,
.handsontable .currentCol {
  background: #f8fbff
}

.handsontable td.area,
.handsontable th.area {
  background: #eef4ff !important
}

.handsontable .wtBorder {
  background: #155eef !important
}

.handsontable td.tvctm-copied-cell {
  background: #ecfdf3 !important;
  box-shadow: inset 0 0 0 1px #6ce9a6
}

.handsontable td.tvctm-copied-cell.area {
  background: #d9fbe8 !important
}

.handsontable td.tvctm-copied-cell.current {
  box-shadow: inset 0 0 0 2px #12b76a !important
}

.handsontable .htContextMenu tbody tr td {
  font-size: 13px
}

.tvctm-save-state {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid #d0d5dd;
  background: #fff;
  color: #344054;
  font-size: 12px
}

.tvctm-save-state.dirty {
  background: #fff7ed;
  border-color: #fed7aa;
  color: #9a3412
}

.tvctm-save-state.saving {
  background: #eff8ff;
  border-color: #b2ddff;
  color: #175cd3
}

.tvctm-save-state.saved {
  background: #ecfdf3;
  border-color: #abefc6;
  color: #067647
}

.tvctm-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(16, 24, 40, .42);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px
}

.tvctm-modal {
  width: min(520px, 100%);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 30px 70px rgba(16, 24, 40, .25);
  padding: 20px;
  border: 1px solid #eaecf0
}

.tvctm-modal h3 {
  margin: 0 0 10px 0
}

.tvctm-modal p {
  margin: 0 0 14px 0;
  color: #475467
}

.tvctm-modal-input {
  width: 100%;
  border: 1px solid #d0d5dd;
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 16px
}

.tvctm-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px
}

.tvctm-admin-description-box {
  margin: 0 0 12px;
  padding: 12px;
  border: 1px solid #eaecf0;
  background: #f8fafc;
  border-radius: 12px
}

.tvctm-admin-description-box label {
  display: block;
  margin-bottom: 8px;
  color: #101828
}

.tvctm-description-textarea {
  width: 100%;
  min-height: 96px;
  border: 1px solid #d0d5dd;
  border-radius: 12px;
  padding: 12px 14px;
  resize: vertical;
  background: #fff;
  color: #101828;
  font: inherit
}

@media (max-width: 782px) {
  .tvctm-shell {
    padding: 14px
  }

  .tvctm-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px
  }

  .tvctm-toolbar,
  .tvctm-admin-toolbar-clean {
    width: 100%
  }

  .tvctm-tab,
  .tvctm-front-pill {
    font-size: 13px
  }

  #tvctm-hot {
    min-width: 640px
  }
}

@media (max-width: 1100px) {
  .tvctm-admin-layout {
    grid-template-columns: 1fr
  }
}

@media print {

  .tvctm-front-pills,
  .dt-buttons,
  .dataTables_filter,
  .dataTables_length,
  .dataTables_paginate,
  .dataTables_info {
    display: none !important
  }

  .tvctm-shell,
  .tvctm-tablewrap,
  .tvctm-front-table-card {
    border: none !important;
    padding: 0 !important;
    margin: 0 !important
  }

  .tvctm-front-description {
    padding: 6px 0 !important;
    border: none !important;
    background: none !important;
    margin: 0 0 6px !important
  }

  .tvctm-shortcode-wrap table.dataTable thead th,
  .tvctm-shortcode-wrap table.dataTable thead td {
    font-size: 10px !important;
    padding: 6px 4px !important;
    letter-spacing: .03em !important
  }

  .tvctm-shortcode-wrap table.dataTable tbody td {
    font-size: 9px !important;
    line-height: 1.25 !important;
    padding: 4px 4px !important
  }

  .tvctm-shortcode-wrap table.dataTable {
    width: 100% !important
  }

  .tvctm-shortcode-wrap table.dataTable td,
  .tvctm-shortcode-wrap table.dataTable th {
    white-space: normal !important
  }

  body {
    font-size: 10px !important
  }
}