html,
body {
  display: flex;
  flex-direction: column;
}

body {
  padding-top: 65px;
  min-height: 100vh;
}

footer {
  padding: 10px;
}

.hits-content {
  flex: 1;
}

.dropdown-menu {
  z-index: 20;
}

.image {
  width: 100%;
  height: 100%;
  display: block;
}

.icon {
  color: white;
  font-size: 24px;
  transition: transform 0.3s;
}

.icon:hover {
  transform: scale(1.2);
}

.ais-SearchBox-input {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  xbackground-color: #EEF3F8;
  border: 1px solid #EEF3F8;
  border-radius: 0;
  box-shadow: none;
}

.ais-SearchBox-input {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  xbackground-color: #EEF3F8;
  xborder: 0;
  border-radius: 0;
  box-shadow: none;
  caret-color: #5a5e9a;
  color: #23263b;
  flex: 1 1 0%;
  font: inherit;
  xmax-width: 100%;
  padding-left: 2.5rem;
}

.input-border-none,
.input-border-none:focus,
.input-border-none:active {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-color: #fff;
  border: 1px solid #fff;
  border-radius: 0;
  box-shadow: none;
  outline: none;
}



.thumbnail-container {
  position: relative;
  display: inline-block;
}

.duration {
  position: absolute;
  bottom: 0px;
  right: 0px;
  background-color: black;
  color: white;
  padding: 0px 10px 0px 10px;
  border-radius: 0px;
  font-size: 12px;
  font-weight: bold;
}

.title-clamp {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  /* Limit to 2 lines */
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
}

.ais-InfiniteHits-item {
  padding: 0;
  margin: 0;
  display: inline-block;
  vertical-align: top;
  width: 100%;
  border: 0;
  box-sizing: none;
  box-shadow: none;
}

INPUT:-webkit-autofill,
SELECT:-webkit-autofill,
TEXTAREA:-webkit-autofill {
  animation-name: onautofillstart
}

INPUT:not(:-webkit-autofill),
SELECT:not(:-webkit-autofill),
TEXTAREA:not(:-webkit-autofill) {
  animation-name: onautofillcancel
}

@keyframes onautofillstart {}

@keyframes onautofillcancel {}


@media print {
  body * {
    visibility: hidden !important;
  }

  #analyticsModal,
  #analyticsModal * {
    visibility: visible !important;
  }

  #analyticsModal {
    position: absolute !important;
    left: 0;
    top: 0;
    display: block !important;
    opacity: 1 !important;
    height: auto !important;
    overflow: visible !important;
    background: white !important;
    /* optional for white background */
  }

  #export {
    display: none !important;
  }

  #chart {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
  }
}


#viewReport table th {
  font-size: 12px;
  line-height: 1.15;
  padding: 10px 25px 10px 15px !important;
  white-space: normal !important;
  word-wrap: break-word;
}

#viewReport table td {
  font-size: 12px;
  padding: 10px 25px 10px 25px !important;
}

#chart {
  width: 100%;
  height: 100%;
  max-height: 300px;
}

.daterangepicker {
  background-color: #000;
  z-index: 200 !important;
}

.analytics-charts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  /* 3 columns */
  gap: 20px;
  /* space between charts */
}


.analytics-charts>div {
  background: #fff;
  /* optional card-like background */
  padding: 10px;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

@keyframes generic-spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.modal-title {
  display: flex;
  gap: 5px;
}

.modal {
  z-index: 10000;
}

.tags-look {
  z-index: 11000;
}

.tags-look .tagify__dropdown__item {
  display: inline-block;
  vertical-align: middle;
  border-radius: 3px;
  padding: .3em .5em;
  border: 1px solid #000000;
  background: #F3F3F3;
  margin: .2em;
  font-size: .85em;
  color: black;
  transition: 0s;
}

.tags-look .tagify__dropdown__item--active {
  border-color: black;
}

.tags-look .tagify__dropdown__item:hover {
  background: lightyellow;
}

.tags-look .tagify__dropdown__item--hidden {
  max-width: 0;
  max-height: initial;
  padding: .3em 0;
  margin: .2em 0;
  white-space: nowrap;
  text-indent: -20px;
  border: 0;
}

.edit {
  cursor: pointer;
}

.thumbnail-wrapper {
  width: fit-content;
  max-width: none;
}


.thumbnail-background {
  height: 75px;
  min-width: 132px;
  background-repeat: no-repeat;
  background-size: cover;
}

.download-button {
  width: fit-content;
}

.edit-modal-thumbnail {
  width: 300px;
  height: 169px;
  background-color: #000;
  background-size: cover;
  background-position: center;
}

/* === Conversions / Messages Modal Table Styles === */
#conversions-modal {
  font-size: 0.9rem;
}

/* Allow wide table to scroll horizontally */
#conversions-modal .modal-body {
  overflow-x: auto !important;
}

/* Fix DataTables sizing inside MDB modal */
#conversions-modal table.dataTable {
  width: 100% !important;
  border-collapse: collapse;
  table-layout: auto;
}

/* Compact column layout */
#conversions-modal table.dataTable td,
#conversions-modal table.dataTable th {
  white-space: nowrap;
  vertical-align: middle;
  font-weight: normal;
  padding: 0.5rem 0.75rem;
}

/* Header styling */
#conversions-modal table.dataTable thead th {
  font-weight: normal;
  background-color: #f8f9fa;
  position: sticky;
  top: 0;
  z-index: 10;
}

/* Expand/collapse control cell */
#conversions-modal td.dt-control {
  text-align: center;
  cursor: pointer;
  width: 36px;
  padding: 0.5rem;
}

/* Rotate expand icon when open */
#conversions-modal tr.shown td.dt-control i {
  transform: rotate(90deg);
}

/* Subrow styling (child row details) */
#conversions-modal .subrow {
  background: #f8f9fa;
  font-size: 0.85rem;
  color: #6c757d;
  border-top: 1px solid #e9ecef;
}

#conversions-modal .subrow td {
  padding: 0.12rem 0.5rem;
  font-weight: normal;
}

/* Fixed width for first column in subrow */
#conversions-modal .subrow td:first-child {
  width: 150px;
}

/* Hidden video column fix */
#conversions-modal th.hidden-video {
  display: none !important;
}