/* =========================================================
   Insight Alpha – Responsive Stylesheet
   Mobile-first responsive design for all pages
   ========================================================= */

/* =========================================================
   MOBILE BREAKPOINTS
   ========================================================= */
/*
   - Desktop: > 1024px
   - Tablet: 768px - 1024px
   - Mobile: < 768px
   - Small Mobile: < 480px
*/

/* =========================================================
   NAVBAR RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
    .navbar {
        padding: 0 16px;
        flex-wrap: wrap;
        gap: 12px;
    }

    .navbar-brand {
        min-width: auto;
    }

    .navbar-search {
        max-width: 400px;
        order: 3;
        flex: 1 1 100%;
    }

    .navbar-explore-links {
        display: none !important;
    }

    .navbar-nav {
        gap: 2px;
    }

    .nav-link {
        padding: 6px 10px;
        font-size: 14px;
    }

    .nav-link span:not(.icon) {
        display: none;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 10px !important;
        height: auto;
        min-height: var(--nav-h);
        gap: 8px;
    }

    .navbar-brand-icon {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }

    .navbar-brand-name {
        font-size: 14px;
    }

    .navbar-brand-tag {
        display: none;
    }

    .navbar-search {
        margin: 2px 0 6px;
    }

    .navbar-search input {
        font-size: 14px;
        padding: 8px 12px 8px 36px;
    }

    .navbar-search .search-btn {
        padding: 9px 14px;
    }

    .nav-link .icon {
        font-size: 18px;
    }

    .profile-btn {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .profile-dropdown {
        right: -10px;
        min-width: 200px;
    }
	
	/*.header-view-all { 
		text-align:right;
		width: 100%;
	}*/
	
	.action-icons {
		background: #efefef;
	}

	.btn-ask-expert-hover {
		z-index: 1111 !important;
	}

	 
}

@media (max-width: 480px) {
    .navbar {
        padding: 8px !important;
    }

    .navbar-brand-name {
        font-size: 14px;
    }

    .navbar-search {
        max-width: 100%;
    }

    .navbar-search input {
        font-size: 14px;
    }
	
	/*.header-view-all { 
		text-align:right;
		width: 100%;
	}*/
	
	.action-icons {
		background: #efefef;
	}
	
	.btn-ask-expert-hover {
		z-index: 1111 !important;
	}
	
	 
}

/* =========================================================
   APP LAYOUT & SIDEBAR RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
    .sidebar {
        width: 200px;
    }
}

@media (max-width: 900px) {
    .app-layout {
        flex-direction: column;
    }

    .sidebar {
        display: none;
    }

    .main-content {
        padding: 12px;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .main-content {
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 8px;
    }
}

/* =========================================================
   WELCOME BANNER RESPONSIVE
   ========================================================= */
@media (max-width: 768px) {
    .welcome-banner {
        flex-direction: column;
        gap: 10px;
         margin-bottom: 14px !important;
        text-align: center;
    }

    .welcome-banner h2 {
        font-size: 17px;
    }

    .welcome-banner p {
        font-size: 14px;
    }

    .welcome-cta {
        width: 100%;
        text-align: center;
        padding: 8px 16px;
    }
}

@media (max-width: 480px) {
    .welcome-banner {
         gap: 8px;
        margin-bottom: 10px !important;
    }

    .welcome-banner h2 {
        font-size: 15px;
    }

    .welcome-banner p {
        font-size: 11px;
    }
}

/* =========================================================
   SECTION HEADERS RESPONSIVE
   ========================================================= */
@media (max-width: 768px) {
    .section-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        margin-bottom: 10px;
    }

    .section-head h3 {
        font-size: 15px;
    }

    .section-head a {
        font-size: 14px;
    }
}

/* =========================================================
   CARDS GRID RESPONSIVE
   ========================================================= */
@media (max-width: 1200px) {
    .cards-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 16px;
    }
}

@media (max-width: 900px) {
    .cards-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 14px;
    }
}

@media (max-width: 768px) {
    .cards-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .transcript-card {
        padding: 12px;
    }

    .card-title {
        font-size: 14px;
    }

    .card-meta {
        font-size: 11px;
    }
}

/* =========================================================
   TABLES RESPONSIVE - Convert to Cards on Mobile
   ========================================================= */
@media (max-width: 1024px) {
    .transcripts-table th,
    .transcripts-table td {
        padding: 12px;
        font-size: 14px;
    }

    .col-date {
        width: 90px;
        font-size: 14px;
    }

    .col-title {
        width: 30%;
    }

    .col-speaker {
        width: 25%;
    }

    .col-companies {
        width: 20%;
    }

    .col-actions {
        width: auto;
    }
}

@media (max-width: 900px) {
    /* Hide table headers */
    .transcripts-table thead {
        display: none;
    }

    /* Make each row a card */
    .transcripts-table tbody tr {
        display: block;
        margin-bottom: 10px;
        border: 1px solid var(--border, #e2e8f0);
        border-radius: 8px;
        background: var(--bg-white, #fff);
        padding: 12px;
    }

    .transcripts-table tbody tr:last-child {
        border-bottom: 1px solid var(--border, #e2e8f0);
    }

    .transcripts-table tbody tr:hover {
        background: var(--bg-white, #fff);
    }

    .transcripts-table td {
        display: block;
        padding: 8px 0;
        border: none;
        width: 100% !important;
        text-align: left !important;
    }

    .transcripts-table td::before {
        content: attr(data-label);
        display: block;
        font-weight: 600;
        color: var(--text-muted, #64748b);
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        margin-bottom: 4px;
    }

    .col-date {
        order: 1;
        padding-top: 0;
        white-space: normal;
    }

    .col-title {
        order: 2;
        padding-bottom: 8px;
        border-bottom: 1px solid var(--border, #e2e8f0);
        /*margin-bottom: 6px;*/
    }

    .col-speaker {
        order: 3;
    }

    .col-companies {
        order: 4;
    }

    .col-actions {
        order: 5;
        padding-top: 8px;
        padding-bottom: 0;
        border-top: 1px solid var(--border, #e2e8f0);
        margin-top: 6px;
        white-space: normal;
    }

    .col-actions .action-icons {
        justify-content: flex-start;
    }

    /* Fix for expert hover button on mobile */
    .ask-expert-wrapper {
        position: static;
    }

    .btn-ask-expert-hover {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        margin-top: 8px;
        display: block;
       /* width: 100%;*/
        padding: 10px 16px;		
		right: auto !important;
    }

    .icon-ask-expert {
        display: none;
    }
}

@media (max-width: 768px) {
    .transcripts-table tbody tr {
        padding: 10px;
        margin-bottom: 8px;
    }

    .transcripts-table td {
        font-size: 14px;
    }

    .transcript-title-link {
        font-size: 14px;
        line-height: 1.4;
    }

    .action-icons {
        flex-wrap: wrap;
        gap: 8px;
    }

    .icon-btn {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }
	.btn-ask-expert-hover {
		right: auto !important;
    }
}

/* =========================================================
   MODAL RESPONSIVE
   ========================================================= */
@media (max-width: 768px) {
    .modal-container {
        width: 95%;
        max-width: none;
        margin: 0 10px;
    }

    .modal-header {
        padding: 12px 16px;
    }

    .modal-title {
        font-size: 16px;
    }

    .modal-body {
        padding: 14px 16px;
        max-height: calc(90vh - 140px);
    }

    .modal-actions {
        flex-direction: column-reverse;
        gap: 8px;
        padding: 10px 16px;
    }

    .modal-actions .btn {
        width: 100%;
    }
	
	.btn-ask-expert-hover {
		right: auto !important;
    }
}

@media (max-width: 480px) {
    .modal-container {
        width: 100%;
        margin: 0;
        border-radius: 0;
        max-height: 100vh;
    }

    .modal-body {
        max-height: calc(100vh - 140px);
    }
	.btn-ask-expert-hover {
		right: auto !important;
    } 
}

/* =========================================================
   EXPLORE PAGE RESPONSIVE
   ========================================================= */
@media (max-width: 900px) {
    .explore-tiles-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 10px;
    }

    .explore-tile {
        padding: 10px 12px;
    }
}

@media (max-width: 768px) {
    .explore-main {
        max-width: 100%;
    }

    .explore-tabs {
        gap: 2px;
        margin-bottom: 16px;
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .explore-tabs::-webkit-scrollbar {
        display: none;
    }

    .explore-tab {
        padding: 7px 12px;
        font-size: 14px;
        white-space: nowrap;
    }

    .explore-tiles-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .explore-tile-icon {
        width: 32px !important;
        height: 32px !important;
    }

    .explore-tile-name {
        font-size: 14px;
    }
}

@media (max-width: 600px) {
    .explore-tab {
        padding: 6px 10px;
        font-size: 14px;
    }
}

/* =========================================================
   DETAIL PAGE RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
    .detail-main {
        max-width: 100% !important;
        width: 100% !important;
    }

    .detail-body {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .detail-card-sidebar {
        order: -1;
    }

    /* Parent Tabs - Enable horizontal scroll */
    .parent-tabs-container {
        padding: 0 10px !important;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }

    .parent-tabs {
        gap: 2px !important;
        min-width: min-content;
    }

    .parent-tab {
        padding: 10px 14px !important;
        font-size: 14px !important;
        white-space: nowrap;
        flex-shrink: 0;
    }

    /* Sub Tabs - Enable horizontal scroll */
    .sub-tabs-container {
        padding: 0 10px !important;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }

    .sub-tabs {
        gap: 2px !important;
        overflow-x: auto;
        flex-wrap: nowrap !important;
        min-width: min-content;
    }

    .sub-tab {
        padding: 8px 14px !important;
        font-size: 12px !important;
        white-space: nowrap;
        flex-shrink: 0;
    }
}

@media (max-width: 900px) {
    .detail-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        margin-bottom: 8px !important;
    }

    .detail-meta-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .detail-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }

    .detail-tabs::-webkit-scrollbar {
        height: 4px;
    }

    .detail-tabs::-webkit-scrollbar-track {
        background: var(--bg-main, #f3f6fb);
    }

    .detail-tabs::-webkit-scrollbar-thumb {
        background: var(--border, #d0dced);
        border-radius: 2px;
    }

    .detail-tab {
        white-space: nowrap;
    }

    /* Transcript with Sidebar Layout - Mobile Reordering */
    .transcript-with-sidebar {
        display: flex;
        flex-direction: column;
    }

    /* Move accordion sidebar before transcript content on mobile */
    .quotes-sidebar {
        order: -1;
        width: 100% !important;
        margin-bottom: 12px;
        position: static !important;
    }

    .transcript-main {
        order: 1;
        width: 100% !important;
    }

    /* Accordion sections styling for mobile */
    .accordion-section {
        margin-bottom: 10px !important;
        border-radius: 6px !important;
    }

    .accordion-header {
        padding: 10px 12px !important;
    }

    .accordion-title {
        font-size: 14px !important;
    }

    .accordion-title i {
        font-size: 14px !important;
    }

    .accordion-body {
        padding: 10px !important;
    }

    /* Quote cards in accordion */
    .quote-card {
        padding: 10px !important;
        margin-bottom: 8px !important;
    }

    .quote-card-number {
        width: 28px !important;
        height: 28px !important;
        font-size: 11px !important;
    }

    .quote-card-text {
        font-size: 14px !important;
        line-height: 1.5 !important;
    }

    .quote-card-tag {
        font-size: 10px !important;
        padding: 2px 6px !important;
    }

    /* Tables - Convert to cards on mobile */
    .entities-table {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .entities-table thead {
        display: none;
    }

    .entities-table tbody {
        display: block;
    }

    .entities-table tbody tr {
        display: block;
        margin-bottom: 10px;
        border: 1px solid var(--border, #e2e8f0);
        border-radius: 8px;
        padding: 10px;
        background: var(--bg-white, #fff);
    }

    .entities-table tbody tr:last-child {
        margin-bottom: 0;
    }

    .entities-table td {
        display: block;
        padding: 5px 5px !important;
        border: none !important;
        text-align: left !important;
    }

    .entities-table td::before {
        content: attr(data-label);
        display: block;
        font-weight: 600;
        /*color: var(--text-muted, #64748b);*/ 
        text-transform: uppercase;
        letter-spacing: 0.5px;
        margin-bottom: 4px;
    }

    .entities-table td:not(:last-child) {
        border-bottom: 1px solid var(--border, #e9ecef) !important;
        padding-bottom: 10px !important;
        margin-bottom: 2px;
    }

    .entities-table .col-name {
        font-size: 15px !important;
        color: var(--primary, #1a56a4) !important;
        padding-bottom: 12px !important;
        border-bottom: 2px solid var(--border, #e2e8f0) !important;
        margin-bottom: 8px !important;
    }
}

@media (max-width: 768px) {
    .detail-header h1,
    .detail-title-bar {
        font-size: 18px;
    }

    .detail-breadcrumb {
        font-size: 14px;
    }

    .detail-badges {
        gap: 6px;
        flex-wrap: wrap;
    }

    .badge-sector-detail,
    .badge-subsector {
        font-size: 11px;
        padding: 3px 10px;
    }

    .detail-card {
        padding: 12px !important;
    }

    .detail-section-title {
        font-size: 14px;
        margin-bottom: 8px;
    }

    .detail-section-body {
        font-size: 14px;
    }

    .detail-about-table th,
    .detail-about-table td {
        padding: 6px 8px;
        font-size: 14px;
    }

    .sidebar-section {
        padding: 10px 12px;
    }

    /* Parent tabs scrollbar */
    .parent-tabs-container::-webkit-scrollbar {
        height: 4px;
    }

    .parent-tabs-container::-webkit-scrollbar-track {
        background: var(--bg-main, #f3f6fb);
    }

    .parent-tabs-container::-webkit-scrollbar-thumb {
        background: var(--border, #d0dced);
        border-radius: 2px;
    }

    /* Sub tabs scrollbar */
    .sub-tabs-container::-webkit-scrollbar {
        height: 4px;
    }

    .sub-tabs-container::-webkit-scrollbar-track {
        background: var(--surface, #f8f9fa);
    }

    .sub-tabs-container::-webkit-scrollbar-thumb {
        background: var(--border, #cbd5e1);
        border-radius: 2px;
    }

    /* Content sections */
    .content-section {
        padding: 0 !important;
        margin-bottom: 14px !important;
    }

    .section-title {
        font-size: 14px !important;
        padding: 8px 0 !important;
        margin-bottom: 8px !important;
    }

    .section-title i {
        font-size: 14px !important;
    }

    /* Content lists */
    .content-bullet-list {
        padding-left: 18px !important;
    }

    .content-bullet-list li {
        font-size: 14px !important;
        line-height: 1.6 !important;
        margin-bottom: 6px !important;
    }

    /* Transcript body */
    .transcript-body {
        font-size: 14px !important;
        line-height: 1.65 !important;
        padding: 10px 12px !important;
        background: var(--surface, #f8f9fa) !important;
        border-radius: 6px !important;
    }

    /* Products list */
    .products-list li {
        padding: 8px 0 !important;
    }

    .prod-name {
        font-size: 14px !important;
    }

    .prod-desc {
        font-size: 12px !important;
    }

    /* Tag class */
    .tag-class {
        font-size: 9px !important;
        padding: 2px 6px !important;
        margin-left: 6px !important;
    }
}

@media (max-width: 480px) {
    .parent-tab {
        padding: 8px 12px !important;
        font-size: 12px !important;
    }

    .sub-tab {
        padding: 7px 10px !important;
        font-size: 11px !important;
    }

    .detail-card {
        padding: 10px !important;
    }

    .section-title {
        font-size: 14px !important;
    }

    .content-bullet-list li {
         margin-bottom: 4px !important;
    }

    .accordion-section {
        margin-bottom: 8px !important;
    }

    .quote-card {
        padding: 8px !important;
        margin-bottom: 6px !important;
    }

    .quote-card-number {
        width: 22px !important;
        height: 22px !important;
        font-size: 10px !important;
    }

    .quote-card-text {
        font-size: 12px !important;
    }

    .entities-table tbody tr {
        padding: 0px !important;
        margin-bottom: 3px !important;
    }
 
}

/* =========================================================
   PROFILE PAGE RESPONSIVE
   ========================================================= */
@media (max-width: 900px) {
    .profile-main {
        padding: 12px;
    }

    .profile-card-header {
        flex-direction: column;
        text-align: center;
        padding: 18px 16px;
    }

    .profile-avatar {
        width: 64px;
        height: 64px;
        font-size: 28px;
    }

    .profile-header-info h2 {
        font-size: 20px;
    }

    .profile-card-body {
        padding: 16px 14px;
    }

    .profile-details-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .profile-themes-grid,
    .profile-sectors-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
}

@media (max-width: 768px) {
    .profile-main {
        padding: 8px;
    }

    .profile-card-header {
        padding: 14px 12px;
    }

    .profile-avatar {
        width: 54px;
        height: 54px;
        font-size: 24px;
    }

    .profile-header-info h2 {
        font-size: 17px;
    }

    .profile-role {
        font-size: 14px;
    }

    .profile-card-body {
        padding: 14px 12px;
    }

    .profile-section-title {
        font-size: 14px;
        margin-bottom: 12px;
        padding-bottom: 8px;
    }

    .profile-detail-label {
        font-size: 11px;
    }

    .profile-detail-value {
        font-size: 14px;
    }

    .profile-themes-grid,
    .profile-sectors-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .profile-card-footer {
        padding: 10px 12px;
    }

    .profile-footer-note {
        font-size: 14px;
    }
}

/* =========================================================
   WATCHLIST MANAGE PAGE RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
    .wl-layout {
        grid-template-columns: 240px 1fr !important;
        gap: 16px !important;
    }
}

@media (max-width: 900px) {
    .wl-layout {
        grid-template-columns: 1fr !important;
        gap: 8px !important;
    }

    .wl-sidebar {
        margin-bottom: 0 !important;
        height: auto !important;
        position: relative;
    }

    .wl-sidebar-header {
        padding: 10px 12px !important;
    }

    .wl-sidebar-header h4 {
        font-size: 14px !important;
    }

    .btn-create-wl {
        padding: 8px 12px !important;
        font-size: 12px !important;
        margin-top: 8px !important;
    }

    /* Convert watchlist list to horizontal scroll */
    .wl-list {
       /* display: flex !important;*/
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        padding-bottom: 8px;
    }

    /* Show scrollbar on mobile for better UX */
    .wl-list::-webkit-scrollbar {
        height: 6px;
    }

    .wl-list::-webkit-scrollbar-track {
        background: var(--bg-main, #f3f6fb);
        border-radius: 3px;
    }

    .wl-list::-webkit-scrollbar-thumb {
        background: var(--border, #d0dced);
        border-radius: 3px;
    }

    .wl-list::-webkit-scrollbar-thumb:hover {
        background: var(--primary, #1a56a4);
    }

    .wl-list-item {
        white-space: nowrap !important;
        border-bottom: none !important;
        border-right: 1px solid var(--border, #e2e8f0) !important;
        min-width: 150px;
        flex-shrink: 0;
        border-left: none !important;
    }

    .wl-list-item:first-child {
        border-left: none !important;
    }

    .wl-list-item:last-child {
        border-right: none !important;
    }

    .wl-list-item.active {
        background: var(--primary-lt, #edf1f9) !important;
        border-left: none !important;
        border-bottom: 3px solid var(--primary, #1a56a4) !important;
        margin-bottom: -3px;
    }

    .wl-name {
        font-size: 12px !important;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .wl-count {
        font-size: 10px !important;
    }

    /* Always show actions on mobile */
    .wl-actions {
        display: flex !important;
    }

    .wl-action-btn {
        font-size: 11px !important;
        padding: 3px 6px !important;
    }

    /* Content area */
    .wl-content {
        padding: 12px !important;
        overflow-x: hidden;
    }

    .wl-content-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px !important;
    }

    .wl-content-header h3 {
        font-size: 16px !important;
        word-break: break-word;
    }

    .btn-add-transcript {
        width: 100%;
        padding: 10px 16px !important;
        font-size: 14px !important;
    }
}

@media (max-width: 768px) {
    .wl-layout {
        gap: 8px !important;
    }

    .wl-sidebar {
        border-radius: 6px !important;
    }

    .wl-content {
        padding: 12px !important;
        border-radius: 6px !important;
    }

    .wl-content-header h3 {
        font-size: 15px !important;
    }

    /* Form sections */
    .wl-form-section {
        margin-bottom: 16px !important;
    }

    .wl-form-section-title {
        font-size: 14px !important;
        margin-bottom: 8px !important;
    }

    .wl-form-input {
        font-size: 14px !important;
        padding: 5px 12px !important;
    }

    /* Companies section */
    .wl-company-input-wrapper {
        position: relative;
        width: 100%;
    }

    .wl-companies-selected {
        gap: 6px !important;
        min-height: 36px !important;
    }

    .wl-company-pill {
        font-size: 12px !important;
        padding: 5px 10px !important;
    }

    .wl-autocomplete-dropdown {
        max-height: 180px !important;
        font-size: 14px !important;
    }

    .wl-autocomplete-item {
        padding: 10px 12px !important;
        font-size: 12px !important;
    }

    /* Sectors grid */
    .wl-sectors-grid {
        gap: 6px !important;
        flex-wrap: wrap;
        display: flex !important;
    }

    .wl-sector-btn {
        padding: 7px 10px !important;
        font-size: 11px !important;
        flex: 1 1 auto;
        min-width: 80px;
    }

    /* Themes grid */
    .wl-themes-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }

    .wl-theme-checkbox {
        font-size: 14px;
    }

    .wl-theme-checkbox label {
        font-size: 11px !important;
        line-height: 1.3;
    }

    .wl-theme-checkbox input[type="checkbox"] {
        width: 14px !important;
        height: 14px !important;
    }

    /* Transcripts grid in content area */
    .transcripts-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    .transcript-card {
        padding: 14px !important;
    }

    /* Form actions */
    .wl-form-actions {
        flex-direction: column-reverse !important;
        gap: 10px !important;
        margin-top: 16px !important;
    }

    .wl-form-actions .btn-done,
    .wl-form-actions .btn-view-transcripts {
        width: 100% !important;
        padding: 12px 16px !important;
        font-size: 14px !important;
    }

    /* Transcripts section */
    .wl-transcripts-section {
        margin-top: 16px !important;
        padding-top: 16px !important;
    }

    .wl-transcripts-header h3 {
        font-size: 16px !important;
    }

    .wl-transcripts-count {
        font-size: 12px !important;
    }

    /* Search bar */
    .wl-search-bar {
        flex-direction: column !important;
        gap: 8px !important;
    }

    .wl-search-bar input {
        width: 100% !important;
        font-size: 14px !important;
    }
}

@media (max-width: 480px) {
    .wl-sidebar-header {
        padding: 12px 14px !important;
    }

    .wl-content {
        padding: 12px !important;
    }

    .wl-content-header h3 {
        font-size: 14px !important;
    }

    .wl-form-section-title {
        font-size: 14px !important;
    }

    .wl-themes-grid {
        grid-template-columns: 1fr !important;
    }

    .wl-list-item {
        min-width: 130px;
        padding: 10px 12px !important;
    }

    .wl-sector-btn {
        min-width: 70px;
        font-size: 10px !important;
    }

    /* Make company pills wrap better */
    .wl-company-pill {
        font-size: 11px !important;
        padding: 4px 8px !important;
    }

    /* Optimize empty state for small screens */
    .empty-state {
        padding: 20px 12px !important;
    }

    .empty-state i {
        font-size: 36px !important;
    }

    .empty-state p {
        font-size: 14px !important;
    }
}

/* Landscape mobile optimization */
@media (max-width: 900px) and (orientation: landscape) {
    .wl-layout {
        grid-template-columns: 200px 1fr !important;
    }

    .wl-sidebar {
        max-height: calc(100vh - 120px);
        overflow-y: auto;
    }

    .wl-content {
        max-height: calc(100vh - 120px);
        overflow-y: auto;
    }
}

/* Prevent horizontal scroll on entire page */
@media (max-width: 900px) {
    .main-content {
        overflow-x: clip !important;   /* clip doesn't create a scroll context; sticky works */
    }

    .wl-layout {
        width: 100%;
        max-width: 100%;
    }

    .wl-sidebar,
    .wl-content {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
}

/* =========================================================
   FILTER BAR RESPONSIVE
   ========================================================= */
@media (max-width: 768px) {
    .filter-bar {
        flex-wrap: wrap;
        gap: 4px 8px;
        padding: 10px 12px;
        font-size: 14px;
    }

    .filter-bar .filter-clear {
        margin-left: auto;
        margin-top: 0;
    }
}

@media (max-width: 480px) {
    .filter-bar {
        gap: 3px 6px;
        padding: 8px 10px;
    }
}

/* =========================================================
   BUTTONS & FORM CONTROLS RESPONSIVE
   ========================================================= */
@media (max-width: 768px) {
    .btn-primary-full,
    .btn-done,
    .btn-create-wl,
    .btn-add-transcript {
        padding: 10px 16px;
        font-size: 14px;
    }

    .form-control,
    .wl-form-input,
    .form-textarea {
        font-size: 14px;
        padding: 5px 12px;
    }
}

/* =========================================================
   AUTOCOMPLETE DROPDOWN RESPONSIVE
   ========================================================= */
@media (max-width: 768px) {
    .autocomplete-dropdown,
    .wl-autocomplete-dropdown {
        max-height: 300px;
    }

    .autocomplete-item {
        padding: 10px 14px;
    }

    .company-name {
        font-size: 14px;
    }

    .company-ticker {
        font-size: 11px;
    }
}

/* =========================================================
   EMPTY STATE RESPONSIVE
   ========================================================= */
@media (max-width: 768px) {
    .empty-state {
        padding: 24px 16px;
    }

    .empty-state i {
        font-size: 36px;
    }

    .empty-state p {
        font-size: 14px;
    }
}

/* =========================================================
   EXPERT BIO TOOLTIP RESPONSIVE
   ========================================================= */
@media (max-width: 768px) {
    .expert-bio-tooltip {
        max-width: 90vw;
        min-width: 250px;
        font-size: 14px;
        padding: 10px 14px;
    }
}

/* =========================================================
   RESULTS COUNT & SCROLL SENTINEL RESPONSIVE
   ========================================================= */
@media (max-width: 768px) {
    .results-count {
        font-size: 14px;
        margin-bottom: 12px;
    }

    .scroll-sentinel {
        height: 50px;
        font-size: 14px;
    }
}

/* =========================================================
   LOGIN PAGE RESPONSIVE
   ========================================================= */
@media (max-width: 768px) {
    .login-card {
        padding: 24px 20px;
        max-width: 100%;
        margin: 0 16px;
    }

    .login-logo-icon {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }

    .login-logo .brand-name {
        font-size: 20px;
    }

    .login-title {
        font-size: 20px;
    }

    .login-subtitle {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .login-card {
        padding: 20px 16px;
        margin: 0 10px;
    }
}

/* =========================================================
   UTILITY RESPONSIVE CLASSES
   ========================================================= */
@media (max-width: 768px) {
    .hide-mobile {
        display: none !important;
    }

    .show-mobile {
        display: block !important;
    }
}

@media (min-width: 769px) {
    .hide-desktop {
        display: none !important;
    }

    .show-desktop {
        display: block !important;
    }
}

/* =========================================================
   HORIZONTAL SCROLL FIX FOR MOBILE
   ========================================================= */
@media (max-width: 768px) {
    body {
        overflow-x: hidden;
    }

    .transcripts-table-wrapper {
        overflow-x: visible;
    }

    .transcripts-table {
        width: 100%;
        table-layout: auto;
    }
}

/* =========================================================
   TOUCH-FRIENDLY IMPROVEMENTS
   ========================================================= */
@media (max-width: 768px) {
    /* Increase tap target sizes for better mobile UX */
    a, button, .icon-btn, .nav-link, .sidebar-item {
        /*min-height: 44px;*/
        min-width: 44px;
    }

    /* Improve form control sizing */
    input[type="text"],
    input[type="email"],
    input[type="password"],
    textarea,
    select {
        min-height: 32px;
        font-size: 14px; /* Prevents iOS zoom on focus */
    }

    /* Better spacing for touch interactions */
    .wl-list-item,
    .profile-menu a,
    .sidebar-item {
        padding: 10px 14px;
    }
}

/* =========================================================
   PRINT STYLES
   ========================================================= */
@media print {
    .navbar,
    .sidebar,
    .welcome-banner,
    .section-head a,
    .col-actions,
    .modal-overlay,
    .profile-dropdown {
        display: none !important;
    }

    .main-content {
        padding: 0;
    }

    .transcripts-table thead {
        display: table-header-group !important;
    }

    .transcripts-table tbody tr {
        display: table-row !important;
        page-break-inside: avoid;
    }

    .transcripts-table td {
        display: table-cell !important;
    }
}

/* =========================================================
   NAVBAR – ICON-ONLY ON VERY SMALL SCREENS
   Hide text nodes in nav-links at ≤ 600px using font-size: 0
   trick; restore icon size explicitly so icons remain visible.
   ========================================================= */
@media (max-width: 600px) {
    .navbar-nav .nav-link {
        font-size: 0 !important;
        padding: 6px 8px !important;
        min-width: 36px;
        justify-content: center;
    }

    .navbar-nav .nav-link .icon {
        font-size: 17px !important;
    }

    .navbar-nav .nav-link .icon i {
        font-size: 17px !important;
    }
}

@media (max-width: 400px) {
    .navbar {
        padding:   6px !important;
        gap: 6px !important;
    }

    .navbar-brand {
        gap: 6px !important;
    }

    .navbar-brand-icon {
        width: 28px !important;
        height: 28px !important;
        font-size: 12px !important;
    }

    .navbar-brand-name {
       /* font-size: 12px !important;*/
    }

    .profile-btn {
        width: 30px !important;
        height: 30px !important;
    }

    .navbar-nav {
        gap: 0 !important;
    }
}

/* =========================================================
   DETAIL PAGE – PARENT & SUB TABS SCROLLBAR VISIBILITY
   ========================================================= */
@media (max-width: 768px) {
    .parent-tabs-container {
        padding: 0 8px !important;
    }

    .sub-tabs-container {
        padding: 0 8px !important;
    }

    /* Ensure tab containers don't cause page overflow */
    .parent-tabs-container,
    .sub-tabs-container {
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* =========================================================
   DETAIL PAGE – CONTENT SECTIONS
   ========================================================= */
@media (max-width: 900px) {
    /* Overflow-proof all content sections */
    .sub-tab-content {
        padding: 12px !important;
        overflow-x: hidden;
    }

    .content-section { 
        overflow-wrap: break-word;
        word-break: break-word;
    }

    .detail-title-bar {
        word-break: break-word;
        overflow-wrap: break-word;
    }
}

@media (max-width: 768px) {
    .sub-tab-content {
        padding: 12px !important;
    }

    

    .section-title {
        font-size: 14px !important;
        margin-bottom: 0px !important;
    }

    .content-bullet-list li {
         font-size: 14px !important;
        line-height: 1.5 !important;
    }

    .content-bullet-list li::before {
        top: 18px !important;
        width: 7px !important;
        height: 7px !important;
    }
}

@media (max-width: 480px) {
    .sub-tab-content {
        padding: 10px !important;
    }

     

    .section-title {
        font-size: 14px !important;
    }

     
}

/* =========================================================
   DETAIL PAGE – FINANCIAL INSIGHTS TABLE
   ========================================================= */
@media (max-width: 900px) {
    .fi-table-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 0 -4px;
        padding: 0 4px;
    }

    /* Make table itself scrollable as a block */
    .fi-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        min-width: 480px;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .fi-table td {
        font-size: 14px !important;
        padding: 8px 10px !important;
        line-height: 1.5 !important;
    }

    .fi-driver {
        font-size: 14px !important;
    }

    .fi-quote {
        font-size: 12px !important;
    }
}

/* =========================================================
   DETAIL PAGE – SIGNAL ANALYSIS SECTIONS
   ========================================================= */
@media (max-width: 900px) {
    /* Make signal details table scrollable as a block */
    .sig-details-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        width: 100%;
    }

    .sig-details-table thead,
    .sig-details-table tbody,
    .sig-details-table tr {
        display: table;
        width: 100%;
        table-layout: auto;
    }

    .sig-details-table thead {
        min-width: 460px;
    }
}

@media (max-width: 768px) {
    .sig-section {
        margin-top: 20px !important;
        padding-top: 16px !important;
    }

    .sig-header {
        gap: 6px !important;
        flex-wrap: wrap !important;
    }

    .sig-title {
        font-size: 14px !important;
    }

    .sig-score-badge {
        font-size: 12px !important;
        padding: 2px 8px !important;
    }

    .sig-class-low,
    .sig-class-medium,
    .sig-class-high,
    .sig-class-strong {
        font-size: 10px !important;
        padding: 2px 8px !important;
    }

    .sig-details-table thead th {
        font-size: 10px !important;
        padding: 6px 8px !important;
    }

    .sig-details-table tbody td {
        font-size: 12px !important;
        padding: 6px 8px !important;
    }

    .sig-points-cell {
        font-size: 12px !important;
    }

    .sig-summary-list {
        padding-left: 16px !important;
    }

    .sig-summary-list li {
        font-size: 12px !important;
        line-height: 1.5 !important;
        margin-bottom: 3px !important;
    }

    .sig-tags-wrap {
        gap: 6px !important;
    }

    .sig-tag-chip {
        font-size: 11px !important;
        padding: 3px 10px !important;
    }
}

@media (max-width: 480px) {
    .sig-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 4px !important;
    }

    .sig-section {
        margin-top: 16px !important;
        padding-top: 12px !important;
    }
}

/* =========================================================
   DETAIL PAGE – KEY TAKEAWAYS SECTION
   ========================================================= */
@media (max-width: 768px) {
    .kt-meta-row {
        font-size: 14px !important;
        gap: 4px !important;
        margin-bottom: 10px !important;
    }

    .kt-label {
        font-size: 14px !important;
    }

    .kt-value {
        font-size: 14px !important;
    }

    .kt-sentiment-badge {
        font-size: 11px !important;
        padding: 2px 8px !important;
        letter-spacing: 0.3px !important;
    }

    .kt-block {
        margin-top: 14px !important;
    }

    .kt-block-title {
        font-size: 14px !important;
    }

    .kt-sub-text {
        font-size: 12px !important;
    }

    .kt-sentiment-section {
        margin-top: 12px !important;
    }
}

@media (max-width: 480px) {
    .kt-meta-row {
        flex-direction: column !important;
        gap: 3px !important;
    }

    .kt-sentiment-badge {
        font-size: 10px !important;
    }
}

/* =========================================================
   DETAIL PAGE – OPERATING SNAPSHOT SECTION
   ========================================================= */
@media (max-width: 768px) {
    .os-category-block {
        margin-bottom: 14px !important;
    }

    .os-category-title {
        font-size: 11px !important;
        letter-spacing: 0.4px !important;
        margin-bottom: 6px !important;
        padding-bottom: 4px !important;
    }
}

/* =========================================================
   DETAIL PAGE – SPEAK TO EXPERT (STE) SECTION
   ========================================================= */
@media (max-width: 900px) {
    .ste-expert-card {
        flex-direction: column !important;
        gap: 12px !important;
    }

    .ste-expert-avatar {
        width: 40px !important;
        height: 40px !important;
        font-size: 16px !important;
    }
}

@media (max-width: 768px) {
    .ste-wrapper {
        gap: 10px !important;
    }

    .ste-header-card {
        padding: 12px 14px !important;
        border-radius: 8px !important;
    }

    .ste-company {
        font-size: 16px !important;
        margin-bottom: 4px !important;
    }

    .ste-meta {
        font-size: 11px !important;
        gap: 8px !important;
        flex-wrap: wrap !important;
    }

    .ste-signal-card {
        padding: 12px 14px !important;
        border-radius: 8px !important;
    }

    .ste-signal-top {
        gap: 6px !important;
        margin-bottom: 8px !important;
        flex-wrap: wrap !important;
    }

    .ste-signal-label {
        font-size: 10px !important;
    }

    .ste-score-badge {
        font-size: 11px !important;
        padding: 2px 8px !important;
    }

    .ste-confidence-badge {
        font-size: 10px !important;
        padding: 2px 8px !important;
    }

    .ste-signal-text {
        font-size: 14px !important;
        line-height: 1.6 !important;
    }

    .ste-metrics-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }

    .ste-metric-chip {
        font-size: 11px !important;
        padding: 8px 10px !important;
        border-radius: 6px !important;
    }

    .ste-section {
        margin-bottom: 14px !important;
    }

    .ste-section-title {
        font-size: 11px !important;
        margin-bottom: 8px !important;
    }

    .ste-takeaway-text {
        font-size: 14px !important;
        padding: 10px 12px !important;
        line-height: 1.5 !important;
    }

    .ste-applies-list {
        gap: 6px !important;
    }

    .ste-applies-chip {
        font-size: 11px !important;
        padding: 3px 10px !important;
    }

    .ste-questions-list {
        gap: 8px !important;
    }

    .ste-question-item {
        padding: 8px 12px !important;
        font-size: 14px !important;
        gap: 8px !important;
    }

    .ste-expert-title {
        font-size: 14px !important;
    }

    .ste-expert-tags {
        gap: 4px !important;
    }

    .ste-expert-tag {
        font-size: 10px !important;
        padding: 2px 7px !important;
    }

    .ste-expert-desc {
        font-size: 11px !important;
    }

    .ste-cta-box {
        padding: 12px 14px !important;
        border-radius: 8px !important;
    }

    .ste-cta-intro {
        font-size: 14px !important;
        margin-bottom: 10px !important;
    }

    .ste-cta-buttons {
        gap: 8px !important;
        flex-direction: column !important;
    }

    .ste-btn-primary,
    .ste-btn-secondary {
        width: 100% !important;
        padding: 10px 16px !important;
        font-size: 14px !important;
    }
}

@media (max-width: 480px) {
    .ste-metrics-grid {
        grid-template-columns: 1fr !important;
    }

    .ste-header-card {
        padding: 12px !important;
    }

    .ste-company {
        font-size: 14px !important;
    }
}

/* =========================================================
   DETAIL PAGE – EXPERT QUOTES (EQ) SECTION
   ========================================================= */
@media (max-width: 768px) {
    .eq-card {
        padding: 12px 14px !important;
        gap: 10px !important;
        border-radius: 6px !important;
    }

    .eq-top {
        flex-direction: column !important;
        gap: 6px !important;
        align-items: flex-start !important;
    }

    .eq-quote {
        font-size: 14px !important;
        line-height: 1.5 !important;
    }

    .eq-label {
        font-size: 10px !important;
        padding: 2px 7px !important;
    }

    .eq-num {
        font-size: 10px !important;
        min-width: 20px !important;
    }

    .eq-list {
        gap: 10px !important;
    }
}

/* =========================================================
   DETAIL PAGE – ENTITIES TABLE ON MOBILE
   Ensure entity/person tables are properly responsive
   ========================================================= */
@media (max-width: 768px) {
    .detail-about-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .detail-about-table th {
        width: 40%;
        font-size: 12px !important;
        padding: 8px 10px !important;
    }

    .detail-about-table td {
        font-size: 14px !important;
        padding: 8px 10px !important;
    }
}

/* =========================================================
   RESULTS COUNT – MOBILE LAYOUT
   Fix float-based layout on narrow screens
   ========================================================= */
@media (max-width: 600px) {
    .results-count {
        font-size: 14px;
        line-height: 1.6;
    }

    /* Override float:right on inline spans inside results-count */
    .results-count span[style*="float"] {
        float: none !important;
        display: block !important;
    }
}

/* =========================================================
   LONG CONTENT – OVERFLOW PROTECTION
   Prevent long words, URLs, titles from breaking layout
   ========================================================= */
@media (max-width: 768px) {
    .transcript-title-link,
    .card-title,
    .card-title-link,
    .detail-title-bar,
    .wl-content-header h3,
    .detail-section-body,
    .detail-bullet-list li,
    .sidebar-bullet-list li,
    .content-section p,
    .ste-signal-text,
    .ste-takeaway-text,
    .kt-value {
        overflow-wrap: break-word;
        word-break: break-word;
    }
}

.disclaimer-class { 
	 font-size: 11px !important;
 }

/* =========================================================
   TRANSCRIPTS TABLE – WRAPPER HORIZONTAL SCROLL FIX
   Ensure the table wrapper never causes horizontal overflow
   ========================================================= */
@media (max-width: 900px) {
    .transcripts-table-wrapper {
        max-width: 100%;
        box-sizing: border-box;
    }
}

/* =========================================================
   DISCLAIMER / ALERT BLOCKS
   ========================================================= */
@media (max-width: 768px) {
    .disclaimer-class { 
        margin-top: 14px !important;
        padding: 12px !important;
        font-size: 11px !important;
        line-height: 1.5 !important;
    }
}

/* =========================================================
   SEARCH RESULTS SCENARIO BLOCKS (Transcript index page)
   The inline-styled info blocks in results-count area
   ========================================================= */
@media (max-width: 768px) {
    .results-count > div[style] {
        padding: 12px !important;
        border-radius: 4px;
    }

    .results-count > div[style] p {
        font-size: 14px !important;
        line-height: 1.5 !important;
        margin-bottom: 8px !important;
    }
}

/* =========================================================
   WATCHLIST MANAGE – ADDITIONAL RESPONSIVE FIXES
   ========================================================= */
@media (max-width: 768px) {
    /* Transcripts section header */
    .wl-transcripts-section {
        border-top: 1px solid var(--border, #e2e8f0);
    }

    /* Transcript card grid in watchlist */
    .transcripts-grid {
        gap: 10px !important;
    }

    /* Remove card inline for transcripts grid */
    .transcript-card-header {
        flex-wrap: nowrap;
        gap: 8px;
    }

    .transcript-card-title {
        font-size: 14px !important;
        line-height: 1.5 !important;
        overflow-wrap: break-word;
        word-break: break-word;
    }

    /* Search bar in watchlist */
    .wl-search-bar {
        flex-direction: column !important;
        gap: 8px !important;
    }

    .wl-search-bar input {
        width: 100% !important;
    }
}

/* =========================================================
   DASHBOARD – WELCOME BANNER IMPROVEMENTS
   ========================================================= */
@media (max-width: 600px) {
    .welcome-banner {
         gap: 12px !important;
        border-radius: 8px !important;
    }

    .welcome-banner h2 {
        font-size: 16px !important;
        margin-bottom: 2px !important;
    }

    .welcome-banner p {
        font-size: 12px !important;
    }

    .welcome-cta {
        padding: 8px 16px !important;
        font-size: 12px !important;
    }
}

/* =========================================================
   EXPLORE PAGE – BULLET LIST RESPONSIVE
   ========================================================= */
@media (max-width: 768px) {
    .explore-bullet-list li {
        font-size: 14px !important;
        padding: 8px 0 8px 18px !important;
        line-height: 1.6 !important;
    }

    .explore-bullet-list li::before {
        top: 16px !important;
        width: 7px !important;
        height: 7px !important;
    }

    .explore-item-name {
        font-size: 14px;
    }

    .explore-item-count {
        font-size: 11px;
        margin-left: 8px;
    }
}

/* =========================================================
   PROFILE PAGE – ADDITIONAL RESPONSIVE
   ========================================================= */
@media (max-width: 600px) {
    .profile-tags-list {
        gap: 8px;
    }

    .profile-tag-badge {
        padding: 6px 12px;
        font-size: 14px;
    }

    .profile-theme-card,
    .profile-sector-card {
        padding: 10px 12px;
        font-size: 14px;
    }

    .profile-theme-card i,
    .profile-sector-card i {
        font-size: 14px;
    }
}

/* =========================================================
   MODAL – IMPROVED SMALL SCREEN BEHAVIOR
   ========================================================= */
@keyframes modalSlideUp {
    from { transform: translateY(100%); opacity: 0; }
    to   { transform: translateY(0);   opacity: 1; }
}

@media (max-width: 480px) {
    .modal-overlay {
        align-items: flex-end !important;
    }

    .modal-container {
        width: 100% !important;
        border-radius: 16px 16px 0 0 !important;
        max-height: 90vh !important;
        animation: modalSlideUp 0.3s ease !important;
    }

    .modal-header {
        padding: 12px 14px !important;
    }

    .modal-body {
        padding: 12px 14px !important;
        max-height: calc(90vh - 130px) !important;
    }

    .modal-actions {
        padding: 10px 14px !important;
        border-top: 1px solid var(--border, #e2e8f0);
    }
}

/* =========================================================
   PROFILE DROPDOWN – MOBILE POSITIONING
   Ensure dropdown doesn't overflow screen edges
   ========================================================= */
@media (max-width: 480px) {
    .profile-dropdown {
        right: -4px !important;
        min-width: 180px !important;
        max-width: calc(100vw - 16px);
    }

    .profile-header {
        padding: 10px 12px !important;
    }

    .profile-menu a {
        padding: 8px 12px !important;
        font-size: 12px !important;
    }
}

/* =========================================================
   GLOBAL – OVERFLOW PREVENTION
   Ensure nothing causes horizontal page scroll
   ========================================================= */
@media (max-width: 768px) {
    html {
        overflow-x: hidden;
    }

    /* Ensure all main containers stay within viewport */
    .app-layout,
    .main-content,
    .detail-main,
    .explore-main,
    .profile-main,
    .wl-layout {
        max-width: 100vw;
        box-sizing: border-box;
    }

    /* Prevent grid/flex items from overflowing */
    .cards-grid > *,
    .explore-tiles-grid > *,
    .profile-themes-grid > *,
    .profile-sectors-grid > * {
        min-width: 0;
        overflow: hidden;
    }
}

/* =========================================================
   GLOBAL – TOUCH-FRIENDLY MINIMUM SIZES
   Ensure safe zone for interactive elements on touch devices
   ========================================================= */
@media (max-width: 768px) {
    /* Prevent iOS font scaling on form inputs */
    .wl-form-input,
    .wl-search-bar input,
    .form-control {
        font-size: 14px !important;
    }

    /* Increase tap size for action buttons in tables */
    .icon-btn {
        min-width: 40px !important;
        min-height: 40px !important;
    }

    /* Ensure close buttons are tappable */
    .modal-close {
        min-width: 40px !important;
        min-height: 40px !important;
    }
}

/* =========================================================
   DETAIL PAGE – TYPOGRAPHY NORMALIZATION
   Many font-size values in the detail page inline <style>
   block are commented out, causing elements to inherit the
   body size (15px) instead of their intended sizes.
   This section restores consistent typographic hierarchy
   across all tabs and sub-tabs on the detail page.
   ========================================================= */

/* Tabs: sub-tabs must be smaller than parent tabs (14px) */
.sub-tab {
    font-size: 14px;
}

/* Section title: normalize to 15px to match .sig-title (inline has 16px) */
.section-title {
    font-size: 15px !important;
}

/* Financial Insights table body text */
.fi-table td {
    font-size: 14px;
}

/* Operating Snapshot – uppercase category labels */
.os-category-title {
    font-size: 11px;
}

/* Signal Analysis */
.sig-score-badge {
    font-size: 14px;
}
.sig-summary-list li {
    font-size: 14px;
}

/* Speak to Expert – body/paragraph text */
.ste-signal-text {
    font-size: 14px;
}
.ste-section-title {
    font-size: 11px;
}
.ste-takeaway-text {
    font-size: 14px;
}
.ste-question-item {
    font-size: 14px;
}
.ste-btn-primary,
.ste-btn-secondary {
    font-size: 14px;
}

/* Expert Quotes */
.eq-quote {
    font-size: 14px;
}

/* Company / Sector Primer */
.primer-list li {
    font-size: 14px;
}
.primer-improving-row {
    font-size: 14px;
}

/* Full Transcript tab – entities table and products */
.entities-table {
    font-size: 14px;
}
.products-list .prod-desc {
    font-size: 14px;
}

/* Quote sidebar cards */
.quote-card-text {
    font-size: 14px;
}

/* Action buttons */
.load-more-quotes-btn,
.back-to-original-btn {
    font-size: 14px;
}

/* =========================================================
   GLOBAL – LINE-HEIGHT STANDARDIZATION
   Unified scale applied site-wide via this file.
     Desktop body text : 1.6
     Long-form reading : 1.65  (transcript body only)
     Compact / tables  : 1.5   (data tables, mobile)
   ========================================================= */

/* ── Global default ── */
html, body {
    line-height: 1.6;
}

/* ── app.css overrides (same specificity; this file loads later) ── */
.explore-bullet-list li {
    line-height: 1.6;
}
.detail-section-body {
    line-height: 1.6;
}
.detail-bullet-list li {
    line-height: 1.6;
}
.sidebar-products-list p {
    line-height: 1.6;
}

/* ── detail.php inline <style> overrides (need !important) ── */
.content-bullet-list li {
    line-height: 1.6 !important;
}
.sig-summary-list li {
    line-height: 1.6 !important;
}
.ste-signal-text {
    line-height: 1.6 !important;
}
.ste-takeaway-text {
    line-height: 1.6 !important;
}
.ste-question-item {
    line-height: 1.6 !important;
}
.eq-quote {
    line-height: 1.6 !important;
}
.primer-list li {
    line-height: 1.6 !important;
}
.primer-improving-row {
    line-height: 1.6 !important;
}
.primer-closing {
    line-height: 1.6 !important;
}
/* Long-form transcript: slightly more leading for readability */
.transcript-body {
    line-height: 1.65 !important;
}
/* Modal how-it-works list */
.how-it-works-section li {
    line-height: 1.6 !important;
}

/* ── Other page inline <style> overrides (dashboard, transcripts, watchlist) ── */
.transcript-title-link {
    line-height: 1.6 !important;
}
.transcript-card-title {
    line-height: 1.6 !important;
}


.transcripts-table td {
	padding: 16px;
	font-size: 14px;
	color: var(--text, #000000);
	vertical-align: top;
}

/* ------CUSTOM Only for Mobile devices : START HERE ---*/
 .transcripts-table-wrapper {
 	border: 1px solid var(--border, #e2e8f0);			
 } 
 
 #transcriptSearchInput {
	margin-top:10px; 
 }
@media (max-width: 768px) {
	html, body {
		line-height: 1.3 !important;
	}
	 
	.welcome-banner {
		padding: 8px 8px !important;
	}
	
	.transcripts-table tbody tr {
        padding: 5px !important;
    }
	
	.transcripts-table td {
		padding: 5px !important;
	}
	
	.section-head {
        flex-direction: row; 
    }
	
	.transcripts-table-wrapper {
		border: 0px solid var(--border, #e2e8f0);			
	}
	
	.detail-meta-top {
        flex-direction: row !important;
	}
	
	.tag-class {
 		font-size: 11px !important;
	}
	
	.detail-title-bar {
		padding: 9px 14px !important;
	}
	
	.detail-expert-line {
		margin-bottom: 5px !important;
	}
	
	.disclaimer-class {
        margin-top: 1px !important;
		padding: 5px !important;
	}
	
	#transcriptSearchInput {
		margin-top:1px !important; 
	}
	
	.sub-tab-content {
        padding: 1px !important;
    }
	
	.content-section {
        padding: 5px 7px !important;
        margin-bottom: 5px !important;
    }
	
	.content-bullet-list {
        padding-left: 2px !important;
    } 
	
	.content-bullet-list li {
         padding: 0px 0 8px 17px !important;
    }
	
	.content-bullet-list li::before {
        top: 7px !important;
    }
	
	.parent-tabs-container {
		top: 2 !important; 
	}
	.sub-tabs-container {
 		top: 135px !important;
	}
	
	.transcript-with-sidebar {
		gap: 1px !important;
	}
	
	.quotes-sidebar {
		padding-bottom: 0px !important;
		margin-bottom: 0px !important; 
	}
	
	.primer-header {
		margin-bottom: 10px !important;
		padding-bottom: 5px !important; 
	}
	
	.primer-section {
		margin-bottom: 10px !important;
	}
	
	.primer-closing {
		padding: 5px 10px !important;
	}

}
 

@media (max-width: 600px) {
	html, body {
		line-height: 1.3 !important;
	}
	
	.welcome-banner {
		padding: 8px 8px !important;
	}
	
	.transcripts-table tbody tr {
        padding: 5px !important;
    }
	
	.transcripts-table td {
		padding: 5px !important;
	}
	
	.section-head {
        flex-direction: row; 
    }
	 
	.transcripts-table-wrapper {
		border: 0px solid var(--border, #e2e8f0);			
	}
	
	.detail-meta-top {
        flex-direction: row !important;
	}
	
	.tag-class {
 		font-size: 11px !important;
	}
	
	.detail-title-bar {
		padding: 9px 14px !important;
	}
	
	.detail-expert-line {
		margin-bottom: 5px !important;
	}
	
	.disclaimer-class {
        margin-top: 1px !important;
		padding: 5px !important;
	}
	
	#transcriptSearchInput {
		margin-top:1px !important; 
	}
	
	.sub-tab-content {
        padding: 1px !important;
    }
	
	.content-section {
        padding: 5px 7px !important;
        margin-bottom: 5px !important;
    }
	
	.content-bullet-list {
        padding-left: 2px !important;
    }
	
	.content-bullet-list li {
         padding: 0px 0 8px 17px !important;
    }
	
	.content-bullet-list li::before {
        top: 7px !important;
    }
	
	.parent-tabs-container {
		top: 110px !important; 
	}
	.sub-tabs-container {
 		top: 150px !important;
	}
	
	.transcript-with-sidebar {
		gap: 1px !important;
	}
	
	.quotes-sidebar {
		padding-bottom: 0px !important;
		margin-bottom: 0px !important;
	}
	
	.primer-header {
		margin-bottom: 10px !important;
		padding-bottom: 5px !important; 
	}
	
	.primer-section {
		margin-bottom: 10px !important;
	}
	
	.primer-closing {
		padding: 5px 10px !important;
	}

}


@media (max-width: 480px) {
	html, body {
		line-height: 1.3 !important;
	}
	
	.welcome-banner {
		padding: 8px 8px !important;
	}
	
	.transcripts-table tbody tr {
        padding: 5px !important;
    }
	
	.transcripts-table td {
		padding: 5px !important;
	}
	
	.section-head {
        flex-direction: row; 
    }
	
	.transcripts-table-wrapper {
		border: 0px solid var(--border, #e2e8f0);			
	}

	.detail-meta-top {
        flex-direction: row !important;
	}
	
	.tag-class {
 		font-size: 11px !important;
	}
	
	.detail-title-bar {
		padding: 9px 14px !important;
	}
	
	.detail-expert-line {
		margin-bottom: 5px !important;
	}
	
	.disclaimer-class {
        margin-top: 1px !important;
		padding: 5px !important;
	}
	
	#transcriptSearchInput {
		margin-top:1px !important; 
	}
	
	.sub-tab-content {
        padding: 1px !important;
    }
	
	.content-section {
        padding: 5px 7px !important;
        margin-bottom: 5px !important;
    }
	
	.content-bullet-list {
        padding-left: 2px !important;
    }
	
	.content-bullet-list li {
         padding: 0px 0 8px 17px !important;
    }
	
	.content-bullet-list li::before {
        top: 7px !important;
    }
	
	.parent-tabs-container {
		top: 97px !important; 
	}
	.sub-tabs-container {
 		top: 135px !important;
	}
	
	.transcript-with-sidebar {
		gap: 1px !important;
	}
	
	.quotes-sidebar {
		padding-bottom: 0px !important;
		margin-bottom: 0px !important;
	}
	
	.primer-header {
		margin-bottom: 10px !important;
		padding-bottom: 5px !important; 
	}
	
	.primer-section {
		margin-bottom: 10px !important;
	}
	
	.primer-closing {
		padding: 5px 10px !important;
	}

}

/* ------Only for Mobile devices : END HERE ---*/

/* =========================================================
   SITE FOOTER – Responsive
   ========================================================= */

/* ── Tablet (≤ 1024px) ── */
@media (max-width: 1024px) {
    .footer-inner {
        padding: 0 20px;
    }
    .footer-brand {
        flex: 0 0 28%;
        padding-right: 20px;
    }
    .footer-support {
        flex: 0 0 30%;
        padding-left: 20px;
    }
}

/* ── Small tablet (≤ 900px) ── */
@media (max-width: 900px) {
    .footer-brand {
        flex: 0 0 32%;
    }
    .footer-support {
        flex: 0 0 32%;
    }
    .footer-support-icon {
        width: 38px;
        height: 38px;
    }
    .footer-support-icon i {
        font-size: 16px;
    }
}

/* ── Mobile (≤ 768px) ── */
@media (max-width: 768px) {
    .footer-inner {
        padding: 0 16px;
    }

    .footer-main {
        flex-direction: column;
        align-items: center;
        padding: 20px 0 16px;
        gap: 10px;
    }

    .footer-brand,
    .footer-support {
        display: none;
    }

    .footer-nav {
        width: 100%;
        padding: 0;
        align-items: center;
        gap: 10px;
    }

    .footer-copy-mobile {
        display: block;
        font-size: 13px;
        font-weight: 500;
        color: var(--text-dark);
        text-align: center;
        line-height: 1.5;
    }

    .footer-links-mobile-only {
        display: flex;
    }

    .footer-links-row a {
        font-size: 13px;
        font-weight: 600;
    }

    .footer-pipe {
        color: var(--text-muted);
    }

    .footer-bottom {
        padding: 14px 0 20px;
    }

    .footer-disclaimer {
        font-size: 12px;
        text-align: center;
        line-height: 1.7;
    }
	
	.notif-btn {
		width: 30px !important;
		height: 30px !important; 
		min-width: 30px !important; 
	}
	
	 
}

/* ── Small mobile (≤ 480px) ── */
@media (max-width: 480px) {
    .footer-links-row {
        gap: 10px;
    }

    .footer-links-row a {
        font-size: 12.5px;
    }

    .footer-copy-mobile {
        font-size: 12.5px;
    }
}
