/* ========================================
   RESET & BASE
   ======================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 14px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #fff;
    color: #1a1a1a;
    line-height: 1.5;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

/* ========================================
   HEADER
   ======================================== */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px;
    border-bottom: 1px solid #e5e5e5;
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 36px;
    width: auto;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    color: #888;
    transition: all 0.2s;
}

.header-social:hover {
    color: #e8574a;
    background: #fdf2f1;
}

.header-contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #e8574a;
    color: #fff;
    font-size: 12.5px;
    font-weight: 600;
    border-radius: 6px;
    transition: background 0.2s;
    white-space: nowrap;
    text-decoration: none;
}

.header-contact-btn:hover {
    background: #d14a3e;
}

/* ========================================
   TITLE SECTION
   ======================================== */
.title-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 28px 24px 20px;
    gap: 24px;
    flex-wrap: wrap;
}

.title-left {
    flex: 1;
    min-width: 400px;
}

.page-title {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 8px;
    color: #1a1a1a;
}

.page-subtitle {
    font-size: 12.5px;
    color: #555;
    line-height: 1.6;
}

.title-actions {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.action-btn {
    display: inline-block;
    padding: 10px 20px;
    background: #e8574a;
    color: #fff;
    font-size: 12.5px;
    font-weight: 600;
    border-radius: 6px;
    transition: background 0.2s;
    white-space: nowrap;
}

.action-btn:hover {
    background: #d14a3e;
}

/* ========================================
   TAB NAVIGATION
   ======================================== */
.tab-nav {
    display: flex;
    gap: 0;
    padding: 0 24px;
    border-bottom: 2px solid #e5e5e5;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.tab-btn {
    padding: 12px 20px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #555;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    white-space: nowrap;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tab-btn:hover {
    color: #1a1a1a;
}

.tab-btn.active {
    color: #e8574a;
    border-bottom-color: #e8574a;
}

.new-badge {
    background: #e8574a;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

/* ========================================
   CONTENT WRAPPER
   ======================================== */
.content-wrapper {
    display: flex;
    min-height: calc(100vh - 200px);
}

/* ========================================
   SIDEBAR
   ======================================== */
.sidebar {
    width: 200px;
    min-width: 200px;
    padding: 16px;
    border-right: 1px solid #e5e5e5;
    overflow-y: auto;
    max-height: calc(100vh - 200px);
    position: sticky;
    top: 55px;
    align-self: flex-start;
}

.filter-group {
    margin-bottom: 18px;
}

.filter-label {
    font-size: 12px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 6px;
    display: block;
}

.filter-input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 12px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
    background: #fff;
}

.filter-input:focus {
    border-color: #e8574a;
}

.filter-select {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 12px;
    font-family: inherit;
    outline: none;
    background: #fff;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 28px;
}

.filter-select:focus {
    border-color: #e8574a;
}

/* Price Chips */
.price-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.price-chip {
    padding: 8px 14px;
    border-radius: 20px;
    border: 1.5px solid #ddd;
    background: #fff;
    font-size: 13px;
    cursor: pointer;
    color: #333;
    transition: all 0.15s;
}
.price-chip:hover {
    border-color: #e8574a;
    color: #e8574a;
}
.price-chip.active {
    background: #e8574a;
    color: #fff;
    border-color: #e8574a;
}

/* Custom range inputs */
.price-custom-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    margin-top: 8px;
}
.price-custom-row.hidden {
    display: none;
}
.price-custom-input {
    flex: 1;
    min-width: 60px;
    padding: 8px;
    border: 1.5px solid #ddd;
    border-radius: 8px;
    font-size: 13px;
}
.price-custom-go {
    width: 100%;
    padding: 8px 14px;
    background: #e8574a;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-size: 13px;
}

/* Tag Chips */
.tag-group {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.tag-chip {
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s;
    user-select: none;
}

.tag-chip.inactive {
    background: #3a5a7c;
    color: #fff;
    border: 1px solid #3a5a7c;
}

.tag-chip.active {
    background: #e8574a;
    color: #fff;
    border: 1px solid #e8574a;
}

.tag-chip:hover {
    opacity: 0.85;
}

/* Custom Multi-Select Dropdown */
.multi-select {
    position: relative;
}

.multi-select-trigger {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 12px;
    font-family: inherit;
    background: #fff;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 34px;
    color: #999;
}

.multi-select-trigger .arrow {
    font-size: 10px;
    color: #999;
    transition: transform 0.2s;
}

.multi-select-trigger.open .arrow {
    transform: rotate(180deg);
}

.multi-select-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 50;
    max-height: 200px;
    overflow-y: auto;
    display: none;
    margin-top: 2px;
}

.multi-select-dropdown.open {
    display: block;
}

.multi-select-option {
    padding: 7px 10px;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.15s;
}

.multi-select-option:hover {
    background: #f5f5f5;
}

.multi-select-option input[type="checkbox"] {
    accent-color: #e8574a;
    width: 14px;
    height: 14px;
    cursor: pointer;
}

/* Radio Filter Group */
.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.radio-chip {
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s;
    user-select: none;
    background: #3a5a7c;
    color: #fff;
    border: 1px solid #3a5a7c;
}

.radio-chip.active {
    background: #e8574a;
    color: #fff;
    border-color: #e8574a;
}

.radio-chip:hover {
    opacity: 0.85;
}

/* ========================================
   MAIN CONTENT / TABLE
   ======================================== */
.main-content {
    flex: 1;
    overflow-x: hidden;
    padding: 0;
    min-width: 0;
}

.table-wrapper {
    overflow-x: auto;
    overflow-y: visible;
}

.showing-count {
    padding: 12px 16px;
    font-size: 12px;
    font-weight: 600;
    color: #888;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #eee;
}

.scroll-hint {
    display: none;
}

.desktop-hint {
    display: none;
}

.tab-scroll-hint {
    display: none;
}

/* Mobile tab dropdown – hidden on desktop */
.mobile-tab-select-wrapper {
    display: none;
}

.table-wrapper {
    overflow-x: auto;
}

#dataTable {
    width: 100%;
    border-collapse: collapse;
    font-size: 11.5px;
}

#dataTable td:nth-child(2),
#dataTable th:nth-child(2) {
    padding-left: 0;
}

#dataTable thead th {
    padding: 10px 6px;
    text-align: left;
    font-size: 11px;
    font-weight: 700;
    color: #e8574a;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #eee;
    white-space: nowrap;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 10;
}

#dataTable thead th .th-content {
    display: flex;
    align-items: center;
    gap: 4px;
}

#dataTable thead th .tooltip-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1px solid #ccc;
    font-size: 9px;
    color: #999;
    cursor: pointer;
    font-weight: 600;
    position: relative;
}

/* Custom tooltip popup for header icons */
.tooltip-trigger .tooltip-popup {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 999;
    pointer-events: none;
}

.tooltip-trigger:hover .tooltip-popup {
    display: block;
}

.custom-tooltip {
    background: #fff;
    color: #444;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 12px;
    white-space: nowrap;
    text-align: left;
    line-height: 1;
    font-weight: 400;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
    border: 1px solid #eee;
}

.custom-tooltip strong {
    color: #e74c3c;
    font-weight: 600;
    display: block;
    margin-bottom: 1px;
}

.custom-tooltip span {
    color: #444;
    font-size: 11px;
}

/* Image cell hover tooltip */
.image-icon-hover {
    position: relative;
    cursor: pointer;
}

.image-icon-hover::after {
    content: attr(data-image-tooltip);
    display: none;
    position: absolute;
    right: calc(100% + 8px);
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    color: #333;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 11px;
    white-space: nowrap;
    z-index: 999;
    pointer-events: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    border: 1px solid #e0e0e0;
}

.image-icon-hover:hover::after {
    display: block;
}

/* Genre info icon - pointer cursor */
.genre-count .info-icon {
    cursor: pointer;
}

#dataTable tbody tr {
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.15s;
}

#dataTable tbody tr:hover {
    background: #fafafa;
}

#dataTable tbody td {
    padding: 10px 6px;
    vertical-align: middle;
    white-space: nowrap;
}

#dataTable tbody td:first-child {
    white-space: normal;
}

/* Publication Cell */
.pub-cell {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.pub-logo {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
    overflow: hidden;
}

.pub-logo.square {
    border-radius: 6px;
}

.pub-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.pub-name-row {
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
    overflow: hidden;
}

.pub-name {
    font-weight: 500;
    color: #1a1a1a;
    white-space: nowrap;
}

.pub-name a {
    color: #1a1a1a;
    transition: color 0.2s;
}

.pub-name a:hover {
    color: #e8574a;
    text-decoration: underline;
}

.pub-fav {
    color: #ccc;
    cursor: pointer;
    font-size: 16px;
    transition: color 0.2s;
    flex-shrink: 0;
}

.pub-fav:hover,
.pub-fav.active {
    color: #e8574a;
}

/* Type Labels */
.pub-type-label {
    display: inline-block;
    padding: 1px 8px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.3px;
    width: fit-content;
    background: #f0f0f0;
    color: #666;
}

.pub-type-staff { background: #e8f5e9; color: #2e7d32; }
.pub-type-on-hold { background: #fff3e0; color: #e65100; }
.pub-type-press-release { background: #e3f2fd; color: #1565c0; }
.pub-type-raised { background: #fce4ec; color: #c62828; }
.pub-type-new { background: #e8eaf6; color: #283593; }
.pub-type-contributor { background: #f3e5f5; color: #6a1b9a; }
.pub-type-6-month-lifespan { background: #fff8e1; color: #f57f17; }
.pub-type-lowered { background: #e0f7fa; color: #00838f; }
.pub-type-mention { background: #fbe9e7; color: #bf360c; }
.pub-type-includes-social-posts { background: #e0f2f1; color: #00695c; }
.pub-type-guaranteed-impressions { background: #ede7f6; color: #4527a0; }

/* Genre Badges */
.genre-badge {
    display: inline-block;
    padding: 3px 10px;
    background: #f0f0f0;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    color: #444;
    white-space: nowrap;
}

.genre-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    align-items: center;
}

.genre-count {
    font-size: 11px;
    color: #888;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 2px;
}

.genre-count .info-icon {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    border: 1px solid #ccc;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    color: #999;
}

/* Price Cell */
.price-cell {
    font-weight: 600;
    color: #1a1a1a;
}

/* Niche Icons */
.niche-icons {
    display: flex;
    gap: 6px;
    align-items: center;
}

.niche-icon {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: default;
    opacity: 0.3;
    transition: opacity 0.2s;
}

.niche-icon.active {
    opacity: 1;
}

.niche-icon svg {
    width: 20px;
    height: 20px;
}

/* Example/Image icon */
.icon-link {
    color: #999;
    font-size: 16px;
    cursor: pointer;
    transition: color 0.2s;
}

.icon-link:hover {
    color: #e8574a;
}

.icon-link.has-content {
    color: #555;
}

/* Yes/No/Discrete badges */
.status-yes {
    color: #1a1a1a;
    font-weight: 500;
}

.status-no {
    color: #1a1a1a;
    font-weight: 500;
}

.status-discrete {
    color: #1a1a1a;
    font-weight: 500;
}

/* ========================================
   PR BUNDLES SPECIFIC
   ======================================== */
.bundle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    padding: 20px;
}

.bundle-card {
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    padding: 24px;
    transition: box-shadow 0.2s;
}

.bundle-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.bundle-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
    color: #1a1a1a;
}

.bundle-price {
    font-size: 24px;
    font-weight: 800;
    color: #e8574a;
    margin-bottom: 12px;
}

.bundle-desc {
    font-size: 13px;
    color: #666;
    margin-bottom: 16px;
    line-height: 1.6;
}

.bundle-features {
    list-style: none;
    padding: 0;
}

.bundle-features li {
    padding: 5px 0;
    font-size: 13px;
    color: #444;
    display: flex;
    align-items: center;
    gap: 8px;
}

.bundle-features li::before {
    content: '✓';
    color: #e8574a;
    font-weight: 700;
}

/* ========================================
   PRINT CARDS LAYOUT
   ======================================== */
.print-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
}

.print-card {
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    padding: 24px;
    transition: box-shadow 0.2s;
}

.print-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.print-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.print-card-name {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
}

.print-card-prices {
    margin-bottom: 16px;
    border-top: 1px solid #f0f0f0;
    padding-top: 12px;
}

.print-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
}

.print-price-label {
    font-size: 13px;
    color: #666;
    font-weight: 500;
}

.print-price-value {
    font-size: 18px;
    font-weight: 800;
    color: #e8574a;
}

.print-card-details {
    border-top: 1px solid #f0f0f0;
    padding-top: 12px;
}

.print-detail {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    font-size: 12.5px;
    color: #444;
}

.print-detail-label {
    font-weight: 600;
    color: #888;
}

.print-note {
    display: block;
    margin-top: 8px;
    font-size: 11px;
    color: #888;
    font-style: italic;
    line-height: 1.5;
}

/* ========================================
   PR BUNDLES CATEGORIES
   ======================================== */
.bundle-categories {
    padding: 20px;
}

.bundle-category {
    margin-bottom: 32px;
}

.bundle-category-title {
    font-size: 20px;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e8574a;
    letter-spacing: 0.5px;
}

.bundle-tier {
    font-size: 13px;
    font-weight: 600;
    color: #888;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.bundle-retail {
    font-size: 13px;
    color: #999;
    margin-bottom: 16px;
    text-decoration: line-through;
}

/* ========================================
   FAVICON-BASED LOGOS
   ======================================== */
.pub-favicon {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

.pub-logo.fallback {
    font-size: 11px;
    font-weight: 700;
    color: #fff;
}

/* ========================================
   SOCIAL POST PLATFORM BADGES
   ======================================== */
.platform-badges {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
}

.platform-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 6px;
    background: #f0f0f0;
    color: #555;
    transition: all 0.15s;
    cursor: pointer;
}

.platform-badge:hover {
    background: #e8574a;
    color: #fff;
}

.platform-badge-active {
    background: #e8574a;
    color: #fff;
}

.platform-badge svg {
    flex-shrink: 0;
}

/* ========================================
   SIDEBAR INFO NOTE
   ======================================== */
.sidebar-info-note {
    margin-top: 16px;
    padding: 12px;
    background: #f8f8f8;
    border-radius: 6px;
    font-size: 11px;
    color: #666;
    line-height: 1.6;
    border-left: 3px solid #e8574a;
}

/* ========================================
   LISTICLE PRICE FORMAT
   ======================================== */
.listicle-price {
    white-space: nowrap;
    font-size: 12px;
}

/* ========================================
   SCROLLBAR
   ======================================== */
.sidebar::-webkit-scrollbar,
.table-wrapper::-webkit-scrollbar,
.multi-select-dropdown::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.sidebar::-webkit-scrollbar-track,
.table-wrapper::-webkit-scrollbar-track,
.multi-select-dropdown::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar::-webkit-scrollbar-thumb,
.table-wrapper::-webkit-scrollbar-thumb,
.multi-select-dropdown::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover,
.table-wrapper::-webkit-scrollbar-thumb:hover,
.multi-select-dropdown::-webkit-scrollbar-thumb:hover {
    background: #999;
}

/* ========================================
   PUBLICATIONS & BEST SELLERS — compact 13-col layout (desktop only)
   ======================================== */
@media (min-width: 1025px) {
    .table-wrapper[data-tab="publications"] #dataTable,
    .table-wrapper[data-tab="best-sellers"] #dataTable {
        table-layout: fixed;
        width: 100%;
    }

    /* Column widths (13 columns) */
    .table-wrapper[data-tab="publications"] #dataTable thead th:nth-child(1),
    .table-wrapper[data-tab="best-sellers"] #dataTable thead th:nth-child(1)  { width: 22%; }   /* PUBLICATION */
    .table-wrapper[data-tab="publications"] #dataTable thead th:nth-child(2),
    .table-wrapper[data-tab="best-sellers"] #dataTable thead th:nth-child(2)  { width: 9%; }    /* GENRES */
    .table-wrapper[data-tab="publications"] #dataTable thead th:nth-child(3),
    .table-wrapper[data-tab="best-sellers"] #dataTable thead th:nth-child(3)  { width: 5%; }    /* PRICE */
    .table-wrapper[data-tab="publications"] #dataTable thead th:nth-child(4),
    .table-wrapper[data-tab="best-sellers"] #dataTable thead th:nth-child(4)  { width: 3.5%; }  /* DA */
    .table-wrapper[data-tab="publications"] #dataTable thead th:nth-child(5),
    .table-wrapper[data-tab="best-sellers"] #dataTable thead th:nth-child(5)  { width: 3.5%; }  /* DR */
    .table-wrapper[data-tab="publications"] #dataTable thead th:nth-child(6),
    .table-wrapper[data-tab="best-sellers"] #dataTable thead th:nth-child(6)  { width: 6%; }    /* TAT */
    .table-wrapper[data-tab="publications"] #dataTable thead th:nth-child(7),
    .table-wrapper[data-tab="best-sellers"] #dataTable thead th:nth-child(7)  { width: 10%; }   /* REGION */
    .table-wrapper[data-tab="publications"] #dataTable thead th:nth-child(8),
    .table-wrapper[data-tab="best-sellers"] #dataTable thead th:nth-child(8)  { width: 7%; }    /* SPONSORED */
    .table-wrapper[data-tab="publications"] #dataTable thead th:nth-child(9),
    .table-wrapper[data-tab="best-sellers"] #dataTable thead th:nth-child(9)  { width: 6%; }    /* INDEXED */
    .table-wrapper[data-tab="publications"] #dataTable thead th:nth-child(10),
    .table-wrapper[data-tab="best-sellers"] #dataTable thead th:nth-child(10) { width: 7.5%; }  /* DO FOLLOW */
    .table-wrapper[data-tab="publications"] #dataTable thead th:nth-child(11),
    .table-wrapper[data-tab="best-sellers"] #dataTable thead th:nth-child(11) { width: 5.5%; }  /* EXAMPLE */
    .table-wrapper[data-tab="publications"] #dataTable thead th:nth-child(12),
    .table-wrapper[data-tab="best-sellers"] #dataTable thead th:nth-child(12) { width: 6%; }    /* IMAGE */
    .table-wrapper[data-tab="publications"] #dataTable thead th:nth-child(13),
    .table-wrapper[data-tab="best-sellers"] #dataTable thead th:nth-child(13) { width: 9.5%; }  /* NICHES */

    /* Truncate long text in non-publication columns */
    .table-wrapper[data-tab="publications"] #dataTable tbody td,
    .table-wrapper[data-tab="best-sellers"] #dataTable tbody td {
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* Allow publication name column to wrap instead of truncating */
    .table-wrapper[data-tab="publications"] #dataTable tbody td:nth-child(1),
    .table-wrapper[data-tab="best-sellers"] #dataTable tbody td:nth-child(1) {
        overflow: visible;
        text-overflow: clip;
    }

    .table-wrapper[data-tab="publications"] .pub-name,
    .table-wrapper[data-tab="best-sellers"] .pub-name {
        white-space: normal;
        word-break: break-word;
        line-height: 1.3;
    }

    .table-wrapper[data-tab="publications"] .pub-name-row,
    .table-wrapper[data-tab="best-sellers"] .pub-name-row {
        overflow: visible;
    }

    /* Exempt icon cells (EXAMPLE, IMAGE) from overflow clipping */
    .table-wrapper[data-tab="publications"] #dataTable tbody td:nth-child(11),
    .table-wrapper[data-tab="publications"] #dataTable tbody td:nth-child(12),
    .table-wrapper[data-tab="best-sellers"] #dataTable tbody td:nth-child(11),
    .table-wrapper[data-tab="best-sellers"] #dataTable tbody td:nth-child(12) {
        overflow: visible;
    }

    /* Compact niche icons */
    .table-wrapper[data-tab="publications"] .niche-icons,
    .table-wrapper[data-tab="best-sellers"] .niche-icons {
        gap: 2px;
    }

    .table-wrapper[data-tab="publications"] .niche-icon,
    .table-wrapper[data-tab="best-sellers"] .niche-icon {
        width: 18px;
        height: 18px;
    }

    .table-wrapper[data-tab="publications"] .niche-icon svg,
    .table-wrapper[data-tab="best-sellers"] .niche-icon svg {
        width: 16px;
        height: 16px;
    }

    /* Tighter padding */
    .table-wrapper[data-tab="publications"] #dataTable thead th,
    .table-wrapper[data-tab="best-sellers"] #dataTable thead th {
        padding: 10px 4px;
    }

    .table-wrapper[data-tab="publications"] #dataTable tbody td,
    .table-wrapper[data-tab="best-sellers"] #dataTable tbody td {
        padding: 10px 4px;
    }
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
    .title-section {
        flex-direction: column;
    }
    .title-left {
        min-width: unset;
    }
    .sidebar {
        width: 180px;
        min-width: 180px;
    }
}

@media (max-width: 768px) {
    /* Mobile header — spacing only, keep original sizes */
    .header {
        padding: 10px 12px;
    }
    .header-right {
        gap: 6px;
    }

    .title-section {
        padding: 20px 8px 16px;
    }
    .page-subtitle {
        font-size: 8.3px;
    }
    .desktop-hint {
        display: block;
        color: #e8574a;
        font-weight: 600;
        margin-bottom: 16px;
    }
    .tab-scroll-hint {
        display: none;
    }
    .tab-nav {
        display: none;
    }
    .mobile-tab-select-wrapper {
        display: block;
        padding: 12px 16px;
        border-bottom: 2px solid #e5e5e5;
    }
    .mobile-tab-select {
        width: 100%;
        padding: 12px 16px;
        font-size: 14px;
        font-weight: 600;
        color: #e8574a;
        background: #fff;
        border: 2px solid #e8574a;
        border-radius: 10px;
        appearance: none;
        -webkit-appearance: none;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23e8574a' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 14px center;
        cursor: pointer;
        letter-spacing: 0.5px;
    }
    .content-wrapper {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
        min-width: unset;
        max-height: unset;
        position: static;
        border-right: none;
        border-bottom: 1px solid #e5e5e5;
    }

    .pub-logo {
        width: 28px;
        height: 28px;
        font-size: 9px;
    }

    /* Scroll hint for table tabs */
    .scroll-hint {
        display: block;
        font-size: 11px;
        font-weight: 400;
        color: #e8574a;
        font-weight: 600;
        margin-top: 4px;
    }

    /* Broadcast TV: wrap market column (4th col) & add space between affiliate and calls */
    .table-wrapper[data-tab="broadcast-tv"] #dataTable thead th,
    .table-wrapper[data-tab="broadcast-tv"] #dataTable tbody td {
        padding: 10px 8px;
    }
    .table-wrapper[data-tab="broadcast-tv"] #dataTable tbody td:nth-child(4) {
        white-space: normal;
        word-break: normal;
    }

    /* Social Post: more space between publication and platform */
    .table-wrapper[data-tab="social-post"] #dataTable thead th,
    .table-wrapper[data-tab="social-post"] #dataTable tbody td {
        padding: 10px 10px;
    }

    /* Digital TV: more space between all columns */
    .table-wrapper[data-tab="digital-tv"] #dataTable thead th,
    .table-wrapper[data-tab="digital-tv"] #dataTable tbody td {
        padding: 10px 10px;
    }
}

@media (max-width: 480px) {
    #dataTable {
        min-width: auto;
    }
    #dataTable thead th {
        padding: 8px 3px;
        font-size: 10px;
        letter-spacing: 0;
    }
    #dataTable tbody td {
        padding: 8px 3px;
        font-size: 12px;
    }
    .pub-name {
        font-size: 12px;
    }
    .pub-cell {
        gap: 5px;
    }
    .pub-logo {
        width: 24px;
        height: 24px;
        font-size: 8px;
    }
}

/* ========================================
   UTILITY
   ======================================== */
.text-center {
    text-align: center;
}

.text-muted {
    color: #999;
}

.fw-600 {
    font-weight: 600;
}

.no-results {
    padding: 40px 20px;
    text-align: center;
    color: #999;
    font-size: 14px;
}

/* Tooltip */
[data-tooltip] {
    position: relative;
}

[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    white-space: nowrap;
    z-index: 999;
    pointer-events: none;
}

/* ========================================
   FOOTER
   ======================================== */
.site-footer {
    border-top: 1px solid #e5e5e5;
    padding: 20px 24px;
    margin-top: 40px;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.footer-logo-icon {
    height: 28px;
    width: auto;
}

.footer-text {
    font-size: 15px;
    font-weight: 700;
    color: #2A2060;
    letter-spacing: 0.5px;
}
