/* ADMIN_REELS_LAYOUT_V1 */

#reelsTable {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.reels-admin-head {
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: stretch;
  padding: 18px;
}

.reels-admin-heading {
  min-width: 0;
}

.reels-admin-heading h2 {
  color: #f8fafc;
  font-size: 24px;
  line-height: 1.15;
}

.reels-admin-heading p {
  max-width: 720px;
  margin-top: 6px;
  color: #94a3b8;
  line-height: 1.5;
}

.reels-admin-filters {
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns:
    minmax(240px, 1.6fr)
    minmax(155px, .8fr)
    minmax(155px, .72fr)
    minmax(155px, .72fr)
    minmax(145px, .7fr);
  gap: 12px;
  align-items: end;
  justify-content: stretch;
}

.reels-filter {
  min-width: 0;
  display: grid;
  gap: 7px;
}

.reels-filter > span {
  color: #94a3b8;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  line-height: 1;
  text-transform: uppercase;
}

.reels-admin-filters .search,
.reels-admin-filters .select {
  width: 100%;
  min-width: 0 !important;
  max-width: none;
  height: 42px;
  min-height: 42px;
  padding: 9px 11px;
  border-radius: 11px;
  font-size: 12px;
}

.reels-date-filter {
  transition:
    opacity .18s ease,
    filter .18s ease;
}

.reels-date-filter.is-muted {
  opacity: .62;
}

.reels-filter-buttons {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  padding-top: 2px;
}

.reels-filter-buttons .btn {
  min-width: 112px;
  min-height: 39px;
  padding: 8px 13px;
  white-space: nowrap;
}

.reels-admin-table-wrap {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto !important;
  overflow-y: visible;
  border-radius: 18px;
  scrollbar-gutter: stable;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}

.reels-admin-table {
  width: 100%;
  min-width: 1480px;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
}

.reels-admin-table th,
.reels-admin-table td {
  box-sizing: border-box;
  vertical-align: middle;
}

.reels-admin-table th:nth-child(1),
.reels-admin-table td:nth-child(1) {
  width: 110px;
  min-width: 110px;
  max-width: 110px;
}

.reels-admin-table th:nth-child(2),
.reels-admin-table td:nth-child(2) {
  width: 190px;
}

.reels-admin-table th:nth-child(3),
.reels-admin-table td:nth-child(3) {
  width: 245px;
}

.reels-admin-table th:nth-child(4),
.reels-admin-table td:nth-child(4) {
  width: 125px;
}

.reels-admin-table th:nth-child(5),
.reels-admin-table td:nth-child(5) {
  width: 125px;
}

.reels-admin-table th:nth-child(6),
.reels-admin-table td:nth-child(6) {
  width: 165px;
}

.reels-admin-table th:nth-child(7),
.reels-admin-table td:nth-child(7) {
  width: 180px;
}

.reels-admin-table th:nth-child(8),
.reels-admin-table td:nth-child(8) {
  width: 430px;
  min-width: 430px;
}

.reels-admin-table th:first-child {
  position: sticky;
  left: 0;
  z-index: 6;
  border-right: 1px solid var(--line);
  background: #0c1324;
}

.reels-admin-table td:first-child {
  position: sticky;
  left: 0;
  z-index: 4;
  border-right: 1px solid var(--line);
  background: #0d1426;
}

.reels-admin-table tr:hover td:first-child {
  background: #101a31;
}

.reels-preview-cell {
  padding: 10px 14px;
  text-align: center;
}

.reels-preview-cell .story-row-thumb {
  width: 66px;
  height: 92px;
  display: block;
  margin: 0 auto;
  border: 1px solid rgba(148, 163, 184, .22);
  border-radius: 11px;
  background: #050914;
  object-fit: cover;
}

.reels-no-preview {
  width: 66px;
  min-height: 54px;
  display: inline-grid;
  place-items: center;
  padding: 7px;
  border: 1px dashed rgba(148, 163, 184, .24);
  border-radius: 10px;
  color: #64748b;
  font-size: 10px;
  line-height: 1.3;
  text-align: center;
}

.reels-admin-table .story-caption-cell {
  overflow: hidden;
  color: #cbd5e1;
  line-height: 1.45;
  overflow-wrap: anywhere;
  text-overflow: ellipsis;
}

.reels-admin-table td:nth-child(2) small {
  display: block;
  overflow: hidden;
  max-width: 165px;
  margin-top: 4px;
  color: #64748b;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reels-admin-controls {
  min-width: 430px;
  white-space: normal !important;
}

.reels-admin-controls .mini {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  margin-top: 3px;
  margin-bottom: 3px;
  padding: 7px 9px;
  line-height: 1.15;
  white-space: nowrap;
}

.reels-admin-table-wrap::-webkit-scrollbar {
  height: 11px;
}

.reels-admin-table-wrap::-webkit-scrollbar-track {
  border-radius: 999px;
  background: #090f1d;
}

.reels-admin-table-wrap::-webkit-scrollbar-thumb {
  border: 2px solid #090f1d;
  border-radius: 999px;
  background: #334155;
}

.reels-admin-table-wrap::-webkit-scrollbar-thumb:hover {
  background: #475569;
}

@media (max-width: 1380px) {
  .reels-admin-filters {
    grid-template-columns:
      minmax(220px, 1.35fr)
      minmax(145px, .8fr)
      minmax(145px, .75fr)
      minmax(145px, .75fr);
  }

  .reels-filter-status {
    grid-column: 1 / 2;
  }

  .reels-filter-buttons {
    grid-column: 2 / -1;
    align-self: end;
  }
}

@media (max-width: 1080px) {
  .reels-admin-filters {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

  .reels-filter-search {
    grid-column: 1 / -1;
  }

  .reels-filter-status,
  .reels-filter-buttons {
    grid-column: auto;
  }

  .reels-filter-buttons {
    align-self: end;
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

@media (max-width: 680px) {
  .reels-admin-head {
    padding: 14px;
  }

  .reels-admin-filters {
    grid-template-columns: 1fr;
  }

  .reels-filter,
  .reels-filter-search,
  .reels-filter-status,
  .reels-filter-buttons {
    grid-column: 1 / -1;
  }

  .reels-filter-buttons {
    display: grid;
    grid-template-columns: 1fr;
  }

  .reels-filter-buttons .btn {
    width: 100%;
  }

  .reels-admin-table {
    min-width: 1380px;
  }
}

/* ADMIN_REELS_LAYOUT_V1_END */


/* ADMIN_REELS_MODERATION_V3 */

.reels-admin-table {
  min-width: 1780px;
}

.reels-admin-controls {
  width: 680px;
  min-width: 680px;
  white-space: normal;
}

.reels-admin-controls .mini {
  margin: 3px 4px 3px 0;
  vertical-align: middle;
}

.reels-action-approve {
  border-color: rgba(34, 197, 94, 0.62) !important;
  background: rgba(22, 101, 52, 0.34) !important;
  color: #dcfce7 !important;
}

.reels-action-reject {
  border-color: rgba(245, 158, 11, 0.7) !important;
  background: rgba(146, 64, 14, 0.34) !important;
  color: #fef3c7 !important;
}

.reels-action-violation {
  border-color: rgba(249, 115, 22, 0.72) !important;
  background: rgba(154, 52, 18, 0.35) !important;
  color: #ffedd5 !important;
}

.reels-action-restore {
  border-color: rgba(56, 189, 248, 0.65) !important;
  background: rgba(3, 105, 161, 0.32) !important;
  color: #e0f2fe !important;
}

.reels-action-delete {
  border-color: rgba(248, 113, 113, 0.85) !important;
  background: rgba(153, 27, 27, 0.46) !important;
  color: #fee2e2 !important;
  font-weight: 700;
}

.reels-action-delete:hover {
  background: rgba(185, 28, 28, 0.72) !important;
}

@media (max-width: 900px) {
  .reels-admin-table {
    min-width: 1660px;
  }

  .reels-admin-controls {
    width: 620px;
    min-width: 620px;
  }
}
