@media (min-width: 800px) {

.main-table-group{

    width:min(1600px, calc(100vw - 32px))!important;

    max-width:1600px!important;

}

}

.tab {

  overflow: hidden;

  border: 1px solid #d8d8d8;

  border-radius: 8px 8px 0 0;

  background-color: #fff;

  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);

}

.tab-row {

  display: grid;

  grid-template-columns: 105px minmax(0, 1fr);

}

.tab-row + .tab-row {

  border-top: 1px solid #e3e3e3;

}

.tab-row__label {

  display: flex;

  align-items: center;

  padding: 0 14px;

  background: #f3f3f3;

  color: #555;

  font-size: 12px;

  font-weight: 700;

  letter-spacing: 0.04em;

  text-transform: uppercase;

}

.tab-row__buttons {

  display: flex;

  flex-wrap: nowrap;

  min-width: 0;

  overflow-x: auto;

  overflow-y: hidden;

  -webkit-overflow-scrolling: touch;

  scrollbar-width: thin;

}



/* Style the buttons inside the tab */

.tab button {

  background-color: #fff;

  float: none;

  flex: 0 0 auto;

  white-space: nowrap;

  border: none;

  outline: none;

  cursor: pointer;

  padding: 13px 16px;

  transition: background-color 0.15s ease, color 0.15s ease;

  font-size: 14px;

  font-weight: 600;

  color: #333;

  border-left: 1px solid #ededed;

}



/* Change background color of buttons on hover */

.tab button:hover {

  background-color: #fbe9e9;

  color: #8b0608;

}



/* Create an active/current tablink class */

.tab button.active {

  background-color: #b9090b;

  color: #fff;

}

@media (max-width: 600px) {

  .tab-row {

    grid-template-columns: 1fr;

  }

  .tab-row__label {

    padding: 8px 12px 6px;

    font-size: 10px;

    border-bottom: 1px solid #e8e8e8;

  }

  .tab-row__buttons {

    padding: 0 2px;

    scroll-snap-type: x proximity;

  }

  .tab button {

    padding: 11px 12px;

    font-size: 13px;

    scroll-snap-align: start;

  }

  .tab-row__buttons::-webkit-scrollbar {

    height: 3px;

  }

}



/* Style the tab content */

.tabcontent {

  display: none;

  padding: clamp(16px, 2vw, 24px);

  border: 1px solid #d8d8d8;

  border-top: none;

  border-radius: 0 0 8px 8px;

  background: #fff;

}

.report-section-title,
.entry.themeform .report-section-title,
.tabcontent .report-section-title,
#won-page-root h4.report-section-title {

  display: flex;

  align-items: center;

  gap: 10px;

  margin: 0 0 7px !important;

  color: #111 !important;

  -webkit-text-fill-color: #111 !important;

  font-size: clamp(1.05rem, 1.7vw, 1.3rem) !important;

  font-weight: 700 !important;

  line-height: 1.3 !important;

  text-shadow: none !important;

}

@media (prefers-color-scheme: dark) {

  .report-section-title,
  .entry.themeform .report-section-title,
  .tabcontent .report-section-title,
  #won-page-root h4.report-section-title {

    color: #111 !important;

    -webkit-text-fill-color: #111 !important;

  }

}

.report-section-title::before {

  content: "";

  flex: 0 0 4px;

  align-self: stretch;

  min-height: 1.3em;

  border-radius: 999px;

  background: #b9090b;

}

.tabcontent > p {

  margin: 0 0 16px;

  color: #686868;

  font-size: 13px;

  line-height: 1.45;

}

.tabcontent > p em {

  font-style: normal;

}

.table-container {

  position: relative;

  width: 100%;

  overflow-x: visible;

  padding: 12px;

  border: 1px solid #e4e4e4;

  border-radius: 7px;

  background: #fafafa;

  box-sizing: border-box;

  -webkit-overflow-scrolling: touch;

  /* Reserve space for export + length + ~25 rows + footer controls to cut CLS while JSON loads */
  min-height: 1100px;

}

.table-container__toolbar {

  display: flex;

  align-items: center;

  min-height: 38px;

  margin-bottom: 10px;

}

.table-container.is-loading::after {

  content: "Loading report data…";

  position: absolute;

  left: 50%;

  top: 72px;

  transform: translateX(-50%);

  z-index: 2;

  padding: 8px 14px;

  border-radius: 6px;

  background: rgba(255, 255, 255, 0.92);

  border: 1px solid #e2e2e2;

  color: #666;

  font-size: 13px;

  font-weight: 600;

  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);

  pointer-events: none;

}

.table-container.is-loading table tbody tr.won-dt-skeleton td {

  position: relative;

  color: transparent !important;

  pointer-events: none;

  user-select: none;

}

.table-container.is-loading table tbody tr.won-dt-skeleton td::before {

  content: "";

  display: block;

  height: 12px;

  border-radius: 4px;

  background: linear-gradient(90deg, #ececec 0%, #f7f7f7 50%, #ececec 100%);

  background-size: 200% 100%;

  animation: won-dt-shimmer 1.2s ease-in-out infinite;

}

.table-container.is-loading table tbody tr.won-dt-skeleton td:first-child::before {

  width: 72%;

}

.table-container.is-loading table tbody tr.won-dt-skeleton td:not(:first-child)::before {

  width: 58%;

  margin-left: auto;

  margin-right: auto;

}

@keyframes won-dt-shimmer {

  0% { background-position: 100% 0; }

  100% { background-position: -100% 0; }

}

.table-container table.dataTable {

  width: 100% !important;

  margin-top: 6px !important;

  border-collapse: collapse;

  white-space: normal;

  background: #fff;

}

.table-container .dataTables_wrapper {

  min-height: 1020px;

}

.table-container table.dataTable thead th {

  padding-top: 11px;

  padding-bottom: 11px;

  font-size: 12px;

  letter-spacing: 0.02em;

  white-space: normal;

  vertical-align: middle;

}

.table-container table.dataTable tbody td {

  padding-top: 10px;

  padding-bottom: 10px;

  white-space: nowrap;

  vertical-align: middle;

}

.table-container table.dataTable tbody td:first-child {

  min-width: 180px;

  white-space: normal;

  font-weight: 600;

}

.table-container table.dataTable tbody tr {

  border-bottom: 1px solid #ececec;

}

.table-container table.dataTable tbody tr:hover {

  background-color: #f7f7f7;

}

.table-container .dataTables_length,
.table-container .dataTables_info,
.table-container .dataTables_paginate {

  color: #666;

  font-size: 13px;

}

/* Engagement Analysis tab */
.won-analysis-lede {
  margin: 0 0 16px;
  color: #555;
  line-height: 1.45;
  max-width: 70ch;
}
.won-analysis {
  background: #fff;
  border: 1px solid #e4e4e4;
  border-radius: 8px;
  padding: 16px 16px 20px;
}
.won-analysis__loading,
.won-analysis__error {
  padding: 28px 12px;
  text-align: center;
  color: #666;
  font-weight: 600;
}
.won-analysis__error {
  color: #b9090b;
}
.won-analysis__cutbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 10px 12px;
  border: 1px solid #ebebeb;
  border-radius: 8px;
  background: #fafafa;
}
.won-analysis__cutbar-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #777;
  margin-right: 4px;
}
.won-analysis__cut-btn {
  appearance: none;
  border: 1px solid #d8d8d8;
  background: #fff;
  color: #333;
  font-size: 13px;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: 6px;
  cursor: pointer;
  min-height: 36px;
}
.won-analysis__cut-btn:hover {
  border-color: #b9090b;
  color: #b9090b;
}
.won-analysis__cut-btn.is-active {
  background: #b9090b;
  border-color: #b9090b;
  color: #fff;
}
.won-analysis__floor-hidden {
  display: none !important;
}
.won-analysis__kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}
.won-analysis__kpi {
  padding: 12px 14px;
  border: 1px solid #ebebeb;
  border-radius: 8px;
  background: #fafafa;
}
.won-analysis__kpi-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #777;
  margin-bottom: 6px;
}
.won-analysis__kpi-value {
  display: block;
  font-size: 1.35rem;
  font-weight: 700;
  color: #111;
  line-height: 1.15;
}
.won-analysis__kpi-delta {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 600;
}
.won-analysis__kpi-delta.is-up { color: #1b6b34; }
.won-analysis__kpi-delta.is-down { color: #a11a1a; }
.won-analysis__kpi-delta.is-flat { color: #666; }
.won-analysis__kpi-sub {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: #888;
}
.won-analysis__charts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}
.won-analysis__chart-block {
  border: 1px solid #ebebeb;
  border-radius: 8px;
  padding: 14px;
  background: #fff;
}
.won-analysis__chart-title {
  margin: 0 0 4px;
  font-size: 0.98rem;
  color: #111;
}
.won-analysis__chart-note {
  margin: 0 0 10px;
  font-size: 12px;
  color: #666;
  line-height: 1.4;
}
.won-analysis__canvas-wrap {
  position: relative;
  height: 260px;
}
.won-analysis__table-section {
  border-top: 1px solid #ececec;
  padding-top: 16px;
}
.won-analysis__table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.won-analysis__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  min-width: 720px;
}
.won-analysis__table th,
.won-analysis__table td {
  padding: 9px 10px;
  border-bottom: 1px solid #ececec;
  text-align: right;
  white-space: nowrap;
}
.won-analysis__table th:first-child,
.won-analysis__table td:first-child {
  text-align: left;
  font-weight: 600;
}
.won-analysis__table thead th {
  background: #b9090b;
  color: #fff;
  font-weight: 600;
  border-bottom: none;
}
.won-analysis__table .is-up { color: #1b6b34; font-weight: 600; }
.won-analysis__table .is-down { color: #a11a1a; font-weight: 600; }
.won-analysis__table .is-flat { color: #666; }
.won-analysis__dual-tables {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.won-analysis__subhead {
  margin: 0 0 8px;
  font-size: 0.85rem;
  color: #333;
}
.won-analysis__count {
  font-weight: 500;
  color: #777;
}
.won-analysis__table-scroll--tall {
  max-height: 420px;
  overflow: auto;
}
.won-analysis__persist-grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) minmax(0, 1.4fr);
  gap: 14px;
  align-items: start;
}
.won-analysis__persist-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}
.won-analysis__canvas-wrap--short {
  height: 220px;
}
.won-analysis__timeline {
  display: inline-flex;
  gap: 3px;
  align-items: center;
  vertical-align: middle;
}
.won-analysis__timeline-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ddd;
  display: inline-block;
}
.won-analysis__timeline-dot.is-on {
  background: #b9090b;
}
.won-analysis__table-section + .won-analysis__table-section {
  margin-top: 22px;
}
@media (max-width: 980px) {
  .won-analysis__kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .won-analysis__charts { grid-template-columns: 1fr; }
  .won-analysis__dual-tables { grid-template-columns: 1fr; }
  .won-analysis__persist-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .won-analysis { padding: 12px; }
  .won-analysis__kpis { grid-template-columns: 1fr; }
  .won-analysis__canvas-wrap { height: 220px; }
}

@media (max-width: 768px) {

  .tabcontent {

    padding: 14px 10px 16px;

  }

  .report-section-title,
  .entry.themeform .report-section-title,
  .tabcontent .report-section-title,
  #won-page-root h4.report-section-title {

    font-size: 1.05rem !important;

    gap: 8px;

    margin-bottom: 6px !important;

  }

  .tabcontent > p {

    font-size: 12px;

    margin-bottom: 12px;

    line-height: 1.4;

  }

  .table-container {

    max-width: 100%;

    overflow-x: auto;

    padding: 8px;

    -webkit-overflow-scrolling: touch;

    min-height: 0;

    border-radius: 6px;

  }

  .table-container .dataTables_wrapper {

    min-height: 0;

  }

  .table-container.is-loading::after {

    top: 52px;

    font-size: 12px;

    padding: 6px 10px;

  }

  .table-container__toolbar {

    position: static;

    margin-bottom: 8px;

  }

  .table-container .export-csv-btn {

    width: 100%;

    justify-content: center;

    margin-bottom: 0;

  }

  .table-container table.dataTable {

    min-width: 820px;

  }

  .table-container table.dataTable thead th,
  .table-container table.dataTable tbody td {

    padding: 9px 10px;

    font-size: 12px;

  }

  .table-container table.dataTable tbody td:first-child {

    min-width: 140px;

  }

  /* Keep DataTables chrome readable and in normal flow on mobile */
  .table-container .dataTables_length,
  .table-container .dataTables_info,
  .table-container .dataTables_paginate,
  .dataTables_wrapper .dataTables_length,
  .dataTables_wrapper .dataTables_info,
  .dataTables_wrapper .dataTables_paginate {

    float: none !important;

    clear: both !important;

    display: block !important;

    position: static !important;

    width: auto !important;

    max-width: 100% !important;

    text-align: left !important;

    margin: 10px 0 !important;

    padding: 0 !important;

    color: #444 !important;

    background: transparent !important;

    box-shadow: none !important;

  }

  .dataTables_wrapper .dataTables_processing {

    display: none !important;

  }

  .dataTables_wrapper .dataTables_paginate .paginate_button {

    min-height: 36px;

    padding: 0.45em 0.75em !important;

    margin: 2px !important;

  }

  .dataTables_wrapper .dataTables_length label,
  .dataTables_wrapper .dataTables_info {

    color: #444 !important;

    -webkit-text-fill-color: #444 !important;

  }

  .dataTables_wrapper .dataTables_length select {

    min-height: 36px;

    font-size: 16px;

    color: #222;

    background: #fff;

  }

}

@media (max-width: 480px) {

  .table-container {

    padding: 6px;

  }

  .table-container table.dataTable {

    min-width: 760px;

  }

  .table-container table.dataTable tbody td:first-child {

    min-width: 120px;

  }

}



td.report1 {

    background: #cbcbcb !important;

}



td.reporttotal {

    background: #000 !important;

    color:#fff!important;

}

#netflixlist7 td.combined-views {

    font-weight: 700;

}

td.strong {

    font-weight: bold;

}

th.year2023 {

    /* No background override for header, keep default */

}

td.year2023 {

    background-color: #e3f0ff !important;

}

th.year2024 {

    /* No background override for header, keep default */

}

td.year2024 {

    background-color: #fff !important;

}

th.year2025 {

    /* No background override for header, keep default */

}

td.year2025 {

    background-color: #fff5e6 !important;

}



th.year2026 {

    /* No background override for header, keep default */

}



td.year2026 {

    background-color: #e8f5e9 !important;

}



/* Alternating column colors for Tab9 - H1 and H2 views */

#netflixlist9 tbody td:nth-child(4),

#netflixlist9 tbody td:nth-child(6),

#netflixlist9 tbody td:nth-child(8),

#netflixlist9 tbody td:nth-child(10) {

    background-color: #e3f0ff !important; /* Light blue for H1 columns */

}



#netflixlist9 tbody td:nth-child(5),

#netflixlist9 tbody td:nth-child(7),

#netflixlist9 tbody td:nth-child(9) {

    background-color: #f0f0f0 !important; /* Light gray for H2 columns */

}



/* Alternating column colors for Tab10 - H1 and H2 hours */

#netflixlist10 tbody td:nth-child(4),

#netflixlist10 tbody td:nth-child(6),

#netflixlist10 tbody td:nth-child(8),

#netflixlist10 tbody td:nth-child(10) {

    background-color: #e3f0ff !important; /* Light blue for H1 columns */

}



#netflixlist10 tbody td:nth-child(5),

#netflixlist10 tbody td:nth-child(7),

#netflixlist10 tbody td:nth-child(9) {

    background-color: #f0f0f0 !important; /* Light gray for H2 columns */

}



/* Hide DataTables default search box */

.dataTables_filter {

    display: none !important;

}



/* Export button styling */

.export-csv-btn {

    background: #b9090b;

    color: white;

    border: 1px solid #b9090b;

    border-radius: 6px;

    padding: 8px 14px;

    cursor: pointer;

    font-size: 13px;

    font-weight: 700;

    margin-bottom: 12px;

    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);

    transition: background-color 0.15s ease, transform 0.15s ease;

}

.export-csv-btn:hover {

    background: #8b0608;

    transform: translateY(-1px);

}



.global-search-container {

    margin-bottom: 22px;

    padding: 20px;

    color: #e5e5e5;

    background: #1a1a1a;

    border: 1px solid #2a2a2a;

    border-radius: 12px;

    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);

}



.global-search-container__label,
.entry.themeform .global-search-container__label {

    display: block;

    margin-bottom: 10px;

    color: #fff !important;

    font-size: 17px;

    font-weight: 700;

}



.global-search-container__label i {

    margin-right: 6px;

    color: #b9090b;

}



.global-search-container__controls {

    display: flex;

    align-items: stretch;

    gap: 8px;

}



#globalSearch {

    flex: 1 1 auto;

    min-width: 0;

    height: 44px;

    box-sizing: border-box;

    padding: 10px 14px;

    color: #e5e5e5;

    background: #0d0d0d;

    border: 1px solid #3a3a3a;

    border-radius: 6px;

    font-size: 15px;

    transition: border-color 0.15s ease, box-shadow 0.15s ease;

}



#globalSearch:focus {

    outline: none;

    border-color: #b9090b;

    box-shadow: 0 0 0 3px rgba(185, 9, 11, 0.12);

}



#globalSearch::placeholder {

    color: #888;

}



.global-search-container__button {

    appearance: none;

    min-height: 44px;

    padding: 9px 16px;

    border-radius: 6px;

    font-size: 14px;

    font-weight: 700;

    cursor: pointer;

    transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;

}



.global-search-container__button:hover {

    transform: translateY(-1px);

}



.global-search-container__button--share {

    color: #fff;

    background: #b9090b;

    border: 1px solid #b9090b;

}



.global-search-container__button--share:hover {

    background: #8b0608;

    border-color: #8b0608;

}



.global-search-container__button--clear {

    display: none;

    color: #e5e5e5;

    background: transparent;

    border: 1px solid #555;

}



.global-search-container__button--clear:hover {

    color: #fff;

    border-color: #b9090b;

    background: rgba(185, 9, 11, 0.18);

}



.global-search-container__hint {

    display: block;

    margin-top: 8px;

    color: #999;

    font-size: 12px;

}



.won-type-filter {

    display: flex;

    flex-wrap: wrap;

    align-items: center;

    gap: 8px;

    margin-top: 14px;

}



.global-search-container .won-type-filter__label {

    font-weight: 700;

    font-size: 12px;

    color: #aaa;

    margin-right: 4px;

    text-transform: uppercase;

    letter-spacing: 0.05em;

}



.global-search-container .won-type-filter__btn {

    appearance: none;

    border: 1px solid #4a4a4a !important;

    background: #242424 !important;

    color: #ddd !important;

    border-radius: 999px;

    padding: 7px 16px;

    font-size: 14px;

    font-weight: 600;

    cursor: pointer;

    line-height: 1.2;

    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;

}



.global-search-container .won-type-filter__btn:hover {

    color: #fff !important;

    background: #303030 !important;

    border-color: #777 !important;

}



.global-search-container .won-type-filter__btn.is-active {

    background: #b9090b !important;

    color: #fff !important;

    border-color: #b9090b !important;

    box-shadow: 0 0 0 2px rgba(185, 9, 11, 0.2);

}



.global-search-container .won-type-filter__btn:focus-visible {

    outline: 2px solid #fff;

    outline-offset: 2px;

}



@media (max-width: 600px) {

    .global-search-container {

        padding: 14px;

        margin-bottom: 16px;

        border-radius: 10px;

    }

    .global-search-container__label {

        font-size: 15px;

        margin-bottom: 8px;

    }

    .global-search-container__controls {

        flex-wrap: wrap;

        gap: 8px;

    }

    #globalSearch {

        flex-basis: 100%;

        height: 44px;

        font-size: 16px; /* avoids iOS zoom on focus */

    }

    .global-search-container__button {

        flex: 1 1 calc(50% - 4px);

        min-height: 44px;

    }

    .global-search-container__hint {

        display: none;

    }

    .global-search-container .won-type-filter {

        margin-top: 12px;

        gap: 6px;

    }

    .global-search-container .won-type-filter__label {

        flex: 0 0 100%;

        margin: 0 0 2px;

    }

    .global-search-container .won-type-filter__btn {

        flex: 1 1 0;

        text-align: center;

        padding: 9px 10px;

        min-height: 40px;

    }

}
