body {
    font-size: 12px;
}

.panel-heading h3 {
    margin-top: 5px;
}

/* ========== Layout Structure ========== */
.parent {
    display: flex;
    flex-direction: row;
}

.child {
    flex-grow: 1;
    flex-basis: 0;
}

.container-fluid {
    margin: 0 20px;
    padding: 0 15px;
}

/* ========== Navbar & Header ========== */
.navbar-header {
    width: 100%;
}

.navbar-left {
    margin-top: 10px;
}

.nav>li>a:focus,
.nav>li>a:hover {
    background-color: #5bc0de;
}

.header-logo {
    float: left;
    padding-right: 32px;
}

.header-title-holder {
    margin: 10px 0 0 35px;
    float: left;
    color: #bbb;
    text-transform: uppercase;
    font-size: 1.2em;
}

/* ========== Branding ========== */
.brand-title,
.brand-name {
    text-align: center;
    text-transform: uppercase;
}

.brand-title {
    font-size: 2em;
    align-self: center;
}

.brand-name {
    font-size: 1.5em;
    font-weight: bold;
}

/* ========== Sidebar ========== */
.sidebar {
    background: #f0f0f0;
    min-height: 100vh;
    padding: 20px;
}

.sidebar-nav li a {
    padding: 5px;
    color: #444;
}

.sidebar-nav .submenu {
    display: none;
    padding-left: 15px;
}

.sidebar-nav .toggle-submenu {
    cursor: pointer;
    display: block;
}

/* ========== Panels / Cards ========== */
.panel-default {
    overflow: hidden;
}

.panel-heading {
    padding: 15px 15px;
}

.custom-panel-heading {
    padding: 20px 25px;
}

.panel-heading-flex {
    display: flex;
    align-items: center;
    gap: 15px;
}

.panel-icon {
    width: 50px;
    height: 50px;
}

.card-header {
    padding-bottom: 5px;
}

/* ========== Sticky Table Headers ========== */
.sticky-header-container th {
    background: #f9f9f9;
}

.floated-panel-header {
    padding-left: 20px;
    float: left;
}

/* ========== Link Lists ========== */
.link-list li a {
    display: block;
    padding: 10px 0;
    color: #337ab7;
    text-decoration: none;
}

.link-list li a:hover {
    text-decoration: underline;
}

/* ========== Audience Boxes & Sections ========== */
.audience-header {
    margin: 1em 0 20px 15px;
    font-weight: 300;
    color: #555;
}

.audience-box {
    color: white;
    padding: 20px;
    border-radius: 4px;
    border: 1px solid black;
    min-height: 160px;
    margin-bottom: 20px;
}

.audience-box hr {
    border-top: 2px solid white;
    width: 60%;
    margin: 10px auto;
}

.bg-association {
    background-color: #ec008c;
}

.bg-media {
    background-color: #00aeef;
}

.bg-expo {
    background-color: #161d27;
}

.bg-current-year {
    background-color: #00adee;
}
.bg-prev-year {
    background-color: #e80080;
}
.audience-title {
    font-weight: bold;
    font-size: 16px;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.audience-subtitle {
    font-size: 14px;
    font-style: italic;
    margin-top: 5px;
}

.audience-number {
    padding-left: 10px;font-size: 16px;
    display: inline-block;
    font-weight: bold;
    margin: 10px 0;
    color: #000;
}

.section-divider {
    border-top: 1px solid #ccc;
    margin: 1em 0;
}

.section-title {
    color: #d13138;
    font-size: 1.2em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.audience-section {
    margin-bottom: 20px;
}

/* ========== Spinner / Loading Overlay ========== */
.spinner-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.spinner-content {
    color: white;
    font-size: 20px;
    text-align: center;
}

.spinning {
    font-size: 40px;
    animation: spin 1s linear infinite;
    display: block;
    margin-bottom: 10px;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* ========== Utilities ========== */
.rotate {
    transform: rotate(180deg);
}

/* Accordion container and headers */
.ui-accordion .ui-accordion-header {
    cursor: pointer;
    position: relative;
    margin: 2px 0 0 0;
    padding: 0.5em 1em;
    font-size: 1.1em;
    font-weight: bold;
    background: #e6e6e6;
    border: 1px solid #cccccc;
    border-radius: 4px;
}

.ui-accordion .ui-accordion-header:hover {
    background: #d6d6d6;
}

.ui-accordion .ui-accordion-header.ui-state-active {
    background: #f6f6f6;
    border-bottom: none;
    border-radius: 4px 4px 0 0;
}

.ui-accordion .ui-accordion-content {
    display: none;
    padding: 1em;
    border: 1px solid #cccccc;
    border-top: none;
    border-radius: 0 0 4px 4px;
    background: #ffffff;
}

.ui-accordion .ui-accordion-content-active {
    display: block;
}

/* Audience Info Blocks */
.audience-block {
    margin-bottom: 20px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 15px;
}

.audience-icon {
    max-width: 40px;
    margin-top: 10px;
}

.audience-block-title {
    font-size: 1.1em;
    font-weight: bold;
    text-transform: uppercase;
    color: #d13138;
    margin-bottom: 2px;
}

.audience-block-subtitle {
    font-size: 0.95em;
    color: #555;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.audience-block-subtitle .audience-block-number {
    margin: 0;
    font-size: 1.4em;
    font-weight: bold;
    color: #222;
}

.audience-block-number {
    display: none;
    /* fallback hiding if outside subtitle */
}

.audience-block-meta {
    font-size: 0.85em;
    color: #333;
    margin-bottom: 3px;
}


/* scope to only our demographic tables */
.demographic-table {
    margin-bottom: 20px;
}

/* apply to every table under .demographic-table—original, header-clone, body-clone */
.demographic-table table {
    width: 100% !important;
    table-layout: fixed !important;
}

.demographic-table th,
.demographic-table td {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dz {
    display: inline-block;
    min-width: 260px;
    padding: 6px 10px;
    border: 1px dashed #999;
    background: #fafafa;
    cursor: pointer;
    user-select: none
}

.dz.is-dragover {
    background: #eee;
    border-color: #666
}

.dz-input {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden
}



.btn-info {
    background-color: #00adee;
}

.bootstraptable th,
.bootstraptable td {
    padding: 4px 6px;
    /* tighter */
    font-size: 12px;
    /* smaller text */
    white-space: nowrap;
    /* prevents wrapping */
}

.bootstraptable th[data-field="email"],
.bootstraptable td:nth-child(2) {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bootstraptable th[data-field="company"],
.bootstraptable td:nth-child(5) {
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bootstrap-table .table thead th {
    text-align: left;
}

.table-condensed th,
.table-condensed td {
    padding: 2px 4px;
}

.table-condensed {
    font-size: 11px;
}

/* Slightly tighter variant */
.override-table-styles .table-compact th,
.override-table-styles .table-compact td {
    padding: 2px 4px !important;
    font-size: 11px !important
}

.table-compact {
    table-layout: fixed;
    width: 100%;
}

.table-compact th,
.table-compact td {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Scope everything to the wrapper so nothing else on the page is affected */
.override-table-styles table {
    width: 100% !important;
    max-width: 100% !important;
    border-collapse: collapse !important;
    border: 1px solid #ddd !important;
    table-layout: auto;
}

.override-table-styles th,
.override-table-styles td {
    padding: 6px 8px !important;
    font-size: 12px !important;
    border: 1px solid #ddd !important;
    color: #222 !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Kill legacy presentational attributes like bgcolor/align */
.override-table-styles [bgcolor] {
    background-color: transparent !important;
}

.override-table-styles td[align],
.override-table-styles th[align] {
    text-align: inherit !important;
}

/* Make first row look like a header even if it’s <td> + inline bgcolor */
.override-table-styles table tr:first-child>* {
    background: #f5f5f5 !important;
    font-weight: 600 !important;
}

/* Numbers right-aligned (these tables are Month | Broadcasts | Emails) */
.override-table-styles table tr>*:nth-child(2),
.override-table-styles table tr>*:nth-child(3) {
    text-align: right !important;
}

/* Links inside cells should not have odd underlines/colors from legacy HTML */
.override-table-styles a {
    text-decoration: none;
}

.override-table-styles a:hover {
    text-decoration: underline;
}

/* allow horizontal scroll for bootstrap-table container */
.bootstrap-table .fixed-table-body {
    overflow-x: auto !important;
}

.bootstrap-table .fixed-table-container {
    width: 100% !important;
}

/* make long cells wrap instead of overflowing */
.bootstrap-table table td,
.bootstrap-table table th {
    white-space: normal !important;
    word-break: break-word;
}

/* optional: keep the top header from forcing huge width */
.bootstrap-table .fixed-table-header {
    overflow: hidden;
}

form.d-inline {
    display: inline-block;
    margin-right: 10px;
    /* adds space between form and next element */
}

form.d-inline button.btn {
    margin: 0;
    /* removes any default button margins */
}

.btn+.btn {
    margin-left: 5px;
    /* consistent spacing between buttons */
}

.breadcrumb {
    margin-bottom: 0px;
}

.borderless td{
    border: none !important;
}