/* =========================================================
   JoSAA Predictor Analytics - Responsive UI
   Replace your full style.css with this file.
   It keeps the same HTML/classes and makes it work on:
   Desktop, laptop, tablet, iPad, Android mobile, iPhone.
   ========================================================= */

:root {
    --bg-color: #0f172a;
    --bg: #0f172a;
    --panel-bg: #111827;
    --panel-bg-2: #1e293b;
    --panel-soft: rgba(255, 255, 255, 0.035);
    --border: rgba(148, 163, 184, 0.22);
    --border-strong: rgba(148, 163, 184, 0.38);
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --primary-soft: rgba(59, 130, 246, 0.13);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-soft: #cbd5e1;
    --safe: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --purple: #8b5cf6;
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
    --shadow-soft: 0 8px 25px rgba(0, 0, 0, 0.22);
    --border-radius: 16px;
    --radius-sm: 10px;
    --sidebar-width: 340px;
    --content-gap: 24px;
    --font: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* -------------------- Reset -------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    font-family: var(--font);
    color: var(--text-main);
    background:
        radial-gradient(circle at top left, rgba(59, 130, 246, 0.14), transparent 30%),
        radial-gradient(circle at bottom right, rgba(139, 92, 246, 0.13), transparent 30%),
        var(--bg-color);
    overflow-x: hidden;
}

body.modal-open,
body.menu-open {
    overflow: hidden;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

img,
svg,
canvas {
    max-width: 100%;
}

a {
    color: inherit;
}

/* Better mobile tap behavior */
button,
select,
input {
    -webkit-tap-highlight-color: transparent;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}
::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.7);
}
::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.35);
    border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(148, 163, 184, 0.55);
}

/* -------------------- Main Layout -------------------- */
.dashboard-container {
    width: 100%;
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(280px, var(--sidebar-width)) minmax(0, 1fr);
    gap: 0;
}

.sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    min-height: 0;
    overflow-y: auto;
    padding: 26px 22px;
    background:
        linear-gradient(180deg, rgba(17, 24, 39, 0.98), rgba(15, 23, 42, 0.98)),
        var(--panel-bg);
    border-right: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
    z-index: 40;
}

.main-content {
    min-width: 0;
    height: 100vh;
    overflow-y: auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* -------------------- Logo / Sidebar -------------------- */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 22px;
    margin-bottom: 22px;
    border-bottom: 1px solid var(--border);
}

.logo-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background:
        linear-gradient(135deg, #3b82f6, #8b5cf6);
    box-shadow: 0 12px 24px rgba(59, 130, 246, 0.28);
    position: relative;
    flex: 0 0 auto;
}

.logo-icon::after {
    content: "J";
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-weight: 800;
    color: #fff;
    font-size: 1.3rem;
}

.logo h1 {
    margin: 0;
    font-size: 1.25rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.filter-section,
.insights-panel {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    padding: 18px;
    box-shadow: var(--shadow-soft);
}

.filter-section h3,
.insights-panel h4 {
    margin: 0 0 16px;
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-soft);
}

.input-group,
.score-input-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-bottom: 14px;
    min-width: 0;
}

.input-group label,
.score-input-group label {
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.input-group input,
.input-group select,
.score-input-group input,
.score-input-group select,
#score-year-select {
    width: 100%;
    min-height: 42px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.82);
    color: var(--text-main);
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.input-group input:focus,
.input-group select:focus,
.score-input-group input:focus,
.score-input-group select:focus,
#score-year-select:focus {
    border-color: rgba(59, 130, 246, 0.8);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
    background: rgba(15, 23, 42, 0.96);
}

.input-group input::placeholder,
.score-input-group input::placeholder {
    color: rgba(148, 163, 184, 0.65);
}

.btn-primary {
    width: auto;
    border: 0;
    border-radius: 12px;
    padding: 11px 16px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    font-weight: 700;
    letter-spacing: -0.01em;
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.25);
    transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
    white-space: nowrap;
}

.filter-section .btn-primary {
    width: 100%;
    margin-top: 8px;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(37, 99, 235, 0.35);
    filter: brightness(1.04);
}

.btn-primary:active {
    transform: translateY(0);
}

.insights-panel {
    margin-top: 18px;
}

.insights-panel p {
    margin: 0 0 12px;
    color: var(--text-muted);
    font-size: 0.87rem;
    line-height: 1.55;
}

.insights-panel p:last-child {
    margin-bottom: 0;
}

/* -------------------- Tabs -------------------- */
.tabs-container {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    padding: 12px;
    background: rgba(17, 24, 39, 0.78);
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    position: sticky;
    top: 0;
    z-index: 30;
    backdrop-filter: blur(12px);
}

.tab-btn,
.sub-tab-btn,
.news-cat-btn {
    border: 1px solid var(--border);
    background: rgba(15, 23, 42, 0.72);
    color: var(--text-muted);
    padding: 9px 13px;
    border-radius: 999px;
    font-size: 0.86rem;
    font-weight: 700;
    white-space: nowrap;
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.tab-btn:hover,
.sub-tab-btn:hover,
.news-cat-btn:hover {
    color: var(--text-main);
    border-color: var(--border-strong);
    transform: translateY(-1px);
}

.tab-btn.active,
.sub-tab-btn.active,
.news-cat-btn.active {
    background: var(--primary-soft);
    color: #bfdbfe;
    border-color: rgba(59, 130, 246, 0.55);
}

/* -------------------- Header / Stats -------------------- */
header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 22px;
    background:
        linear-gradient(135deg, rgba(59, 130, 246, 0.10), rgba(139, 92, 246, 0.06)),
        rgba(17, 24, 39, 0.70);
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
}

header h2 {
    margin: 0;
    font-size: clamp(1.25rem, 2vw, 2rem);
    line-height: 1.15;
    letter-spacing: -0.04em;
}

.stats {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.45;
    text-align: right;
    max-width: 420px;
}

/* -------------------- Views -------------------- */
#predictor-view,
#score-view,
#trends-view,
#nirf-view,
#seats-view,
#mp-dte-view,
#news-view,
#decider-view,
#jargon-view,
#validator-view,
#timeline-view,
#quest-view {
    min-width: 0;
    width: 100%;
}

/* -------------------- Input Bars -------------------- */
.score-input-bar,
.news-filter-bar,
.sub-tabs {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 12px;
    padding: 16px;
    background: rgba(17, 24, 39, 0.70);
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
}

.score-input-bar .score-input-group {
    flex: 1 1 180px;
    margin-bottom: 0;
}

/* -------------------- Tables -------------------- */
.table-container {
    width: 100%;
    min-width: 0;
    overflow: auto;
    background: rgba(17, 24, 39, 0.78);
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
}

.table-container table {
    width: 100%;
    min-width: 860px;
    border-collapse: collapse;
}

.table-container th {
    position: sticky;
    top: 0;
    z-index: 5;
    background: #0f172a;
    color: #cbd5e1;
    font-size: 0.76rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-align: left;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.table-container td {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.13);
    color: #e2e8f0;
    font-size: 0.9rem;
    vertical-align: top;
}

.table-container tr:hover td {
    background: rgba(255, 255, 255, 0.025);
}

.table-container tr:last-child td {
    border-bottom: 0;
}

.empty-state td,
tr.empty-state td {
    text-align: center;
    padding: 54px 24px !important;
    color: var(--text-muted);
}

.empty-icon {
    font-size: 2.6rem;
    margin-bottom: 12px;
}

.empty-state h3 {
    margin: 0 0 8px;
    color: var(--text-main);
    font-size: 1.2rem;
}

.empty-state p {
    margin: 0 auto;
    max-width: 620px;
    line-height: 1.55;
}

/* -------------------- Conversion / KPI / Cards -------------------- */
.conversion-card {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 12px;
    padding: 16px;
    background: rgba(17, 24, 39, 0.76);
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
}

.conversion-item {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 12px;
}

.conversion-label {
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 700;
}

.conversion-value {
    color: #fff;
    font-size: 1.18rem;
    font-weight: 800;
    word-break: break-word;
}

.conversion-arrow {
    display: grid;
    place-items: center;
    color: var(--primary);
    font-weight: 800;
    font-size: 1.2rem;
}

.charts-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.chart-card,
.kpi-card,
.news-card,
.jargon-card {
    background: rgba(17, 24, 39, 0.78);
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--shadow-soft);
    min-width: 0;
}

.chart-card h3,
.kpi-card h4 {
    margin: 0 0 16px;
    font-size: 1rem;
    color: #fff;
}

.chart-card canvas {
    width: 100% !important;
    max-height: 360px;
}

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.kpi-value {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 800;
    color: #fff;
}

.kpi-subtext {
    color: var(--text-muted);
    margin: 8px 0 0;
}

/* -------------------- News / Glossary -------------------- */
.news-container {
    min-height: 0;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.news-cat-btn {
    border-radius: 12px;
}

.jargon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}

/* -------------------- Badges / Utilities -------------------- */
.badge-safe,
.badge-warning,
.badge-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 0.78rem;
    font-weight: 800;
}

.badge-safe {
    background: rgba(16, 185, 129, 0.14);
    color: #6ee7b7;
}

.badge-warning {
    background: rgba(245, 158, 11, 0.14);
    color: #fcd34d;
}

.badge-danger {
    background: rgba(239, 68, 68, 0.14);
    color: #fca5a5;
}

/* -------------------- Wizard / Quest Helpers -------------------- */
.wizard-container {
    width: min(100%, 840px);
}

.spinner {
    border-style: solid;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes holoShine {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* -------------------- Mobile Header created by helper JS -------------------- */
.mobile-topbar {
    display: none;
}

.mobile-filter-toggle {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 9px 12px;
    background: rgba(15, 23, 42, 0.92);
    color: #fff;
    font-weight: 800;
}

.sidebar-backdrop {
    display: none;
}

/* -------------------- Large Screens -------------------- */
@media (min-width: 1500px) {
    :root {
        --sidebar-width: 380px;
        --content-gap: 28px;
    }

    .main-content {
        padding: 30px;
    }

    .table-container td,
    .table-container th {
        padding-left: 18px;
        padding-right: 18px;
    }
}

/* -------------------- Laptop / Small Desktop -------------------- */
@media (max-width: 1280px) {
    :root {
        --sidebar-width: 310px;
    }

    .main-content {
        padding: 20px;
    }

    .tabs-container {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        scrollbar-width: thin;
    }

    .tab-btn {
        flex: 0 0 auto;
    }

    .charts-grid {
        grid-template-columns: 1fr;
    }

    .chart-card[style*="grid-column"] {
        grid-column: auto !important;
    }
}

/* -------------------- Tablet -------------------- */
@media (max-width: 1024px) {
    .dashboard-container {
        grid-template-columns: 1fr;
        min-height: 100vh;
    }

    .mobile-topbar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        position: sticky;
        top: 0;
        z-index: 80;
        padding: 12px 16px;
        background: rgba(15, 23, 42, 0.95);
        border-bottom: 1px solid var(--border);
        backdrop-filter: blur(12px);
    }

    .mobile-topbar-title {
        display: flex;
        align-items: center;
        gap: 10px;
        min-width: 0;
        font-weight: 800;
    }

    .mobile-topbar-title span {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .mobile-topbar .logo-icon {
        width: 34px;
        height: 34px;
        border-radius: 10px;
    }

    .sidebar {
        position: fixed;
        left: 0;
        top: 0;
        width: min(88vw, 370px);
        height: 100dvh;
        transform: translateX(-105%);
        transition: transform 0.22s ease;
        z-index: 100;
        border-right: 1px solid var(--border);
        padding: 22px 18px;
    }

    body.menu-open .sidebar {
        transform: translateX(0);
    }

    .sidebar-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(2, 6, 23, 0.65);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.2s ease;
        z-index: 90;
    }

    body.menu-open .sidebar-backdrop {
        opacity: 1;
        pointer-events: auto;
    }

    .main-content {
        height: auto;
        min-height: calc(100vh - 59px);
        overflow: visible;
        padding: 16px;
        gap: 16px;
    }

    .tabs-container {
        top: 59px;
        border-radius: 14px;
        padding: 10px;
        margin-inline: -2px;
    }

    header {
        flex-direction: column;
        align-items: stretch;
        padding: 18px;
    }

    .stats {
        text-align: left;
        max-width: none;
    }

    .score-input-bar,
    .news-filter-bar,
    .sub-tabs {
        align-items: stretch;
    }

    .score-input-bar .score-input-group {
        flex-basis: 220px;
    }

    #validator-view {
        flex-direction: column !important;
        overflow: visible !important;
    }

    #validator-view > div {
        width: 100% !important;
        flex: none !important;
    }

    #timeline-view .score-input-bar {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    #timeline-view .score-input-bar > div {
        max-width: none !important;
    }
}

/* -------------------- Mobile -------------------- */
@media (max-width: 768px) {
    body {
        background:
            radial-gradient(circle at top, rgba(59, 130, 246, 0.13), transparent 34%),
            var(--bg-color);
    }

    .main-content {
        padding: 12px;
        gap: 14px;
    }

    .logo h1 {
        font-size: 1.05rem;
    }

    .filter-section,
    .insights-panel {
        padding: 15px;
        border-radius: 14px;
    }

    .tabs-container {
        gap: 8px;
        padding: 9px;
        overflow-x: auto;
        scroll-snap-type: x proximity;
    }

    .tab-btn {
        scroll-snap-align: start;
        padding: 8px 11px;
        font-size: 0.8rem;
    }

    header {
        padding: 16px;
        border-radius: 14px;
    }

    header h2 {
        font-size: 1.25rem;
    }

    .stats {
        font-size: 0.84rem;
    }

    .score-input-bar,
    .news-filter-bar,
    .sub-tabs {
        flex-direction: column;
        align-items: stretch;
        padding: 14px;
        gap: 10px;
        border-radius: 14px;
    }

    .score-input-bar .score-input-group,
    .score-input-group,
    .input-group {
        width: 100% !important;
        max-width: none !important;
        min-width: 0 !important;
        flex: none !important;
    }

    .btn-primary {
        width: 100%;
        justify-content: center;
        white-space: normal;
        min-height: 42px;
    }

    .table-container {
        border-radius: 14px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .table-container table {
        min-width: 760px;
    }

    .table-container th,
    .table-container td {
        padding: 12px;
        font-size: 0.82rem;
    }

    .empty-state td,
    tr.empty-state td {
        padding: 38px 18px !important;
    }

    .empty-icon {
        font-size: 2.1rem;
    }

    .conversion-card {
        flex-direction: column;
        padding: 14px;
    }

    .conversion-arrow {
        transform: rotate(90deg);
        min-height: 20px;
    }

    .charts-grid,
    .kpi-grid,
    .news-grid,
    .jargon-grid {
        grid-template-columns: 1fr !important;
        gap: 14px;
    }

    .chart-card,
    .kpi-card {
        padding: 16px;
        border-radius: 14px;
    }

    .chart-card canvas {
        max-height: 280px;
    }

    #nirf-view,
    #seats-view,
    #mp-dte-view,
    #news-view,
    #jargon-view,
    #timeline-view {
        overflow: visible !important;
    }

    #decider-view,
    #quest-view {
        padding-right: 0 !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
    }

    .wizard-container,
    #quest-intro,
    #quest-play,
    #quest-result {
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 18px !important;
        border-radius: 14px !important;
    }

    #decider-flow > div[style*="display: flex; gap: 16px"],
    #decider-outcome > div[style*="display: flex; gap: 16px"] {
        flex-direction: column !important;
    }

    #decider-btn-yes,
    #decider-btn-no {
        max-width: none !important;
        width: 100% !important;
    }

    #quest-play > div:first-child {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px;
    }

    .quest-progress-bg {
        width: 100% !important;
    }

    #quest-result .holographic-card > div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }

    #quest-result .holographic-card > div:first-of-type {
        flex-direction: column !important;
        gap: 12px;
    }

    #countdown-clock-container {
        width: 100%;
        display: grid !important;
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    #countdown-clock-container > div {
        min-width: 0 !important;
        padding: 6px 4px !important;
    }

    #timeline-stepper {
        padding-left: 0;
    }

    #timeline-stepper > div[style*="position: absolute"] {
        left: 12px !important;
    }
}

/* -------------------- Small Mobile -------------------- */
@media (max-width: 480px) {
    .mobile-topbar {
        padding: 10px 12px;
    }

    .mobile-filter-toggle {
        padding: 8px 10px;
        font-size: 0.85rem;
    }

    .mobile-topbar-title span {
        max-width: 180px;
    }

    .sidebar {
        width: 92vw;
        padding: 18px 14px;
    }

    .main-content {
        padding: 10px;
    }

    .tabs-container {
        top: 55px;
    }

    .tab-btn {
        font-size: 0.78rem;
        padding: 8px 10px;
    }

    header h2 {
        font-size: 1.12rem;
    }

    .score-input-bar,
    .filter-section,
    .insights-panel,
    .chart-card,
    .kpi-card,
    .table-container {
        border-radius: 12px;
    }

    .input-group input,
    .input-group select,
    .score-input-group input,
    .score-input-group select {
        min-height: 44px;
        font-size: 16px; /* prevents iPhone zoom */
    }

    .table-container table {
        min-width: 700px;
    }

    .table-container th,
    .table-container td {
        padding: 10px;
        font-size: 0.78rem;
    }

    .conversion-value {
        font-size: 1rem;
    }

    #countdown-clock-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #timeline-view .score-input-bar > div[style*="linear-gradient"] {
        flex-direction: column !important;
        align-items: stretch !important;
        padding: 12px !important;
    }

    #timeline-view .score-input-bar > div[style*="linear-gradient"] > div:first-child {
        text-align: left !important;
    }

    #quest-intro {
        padding: 22px 16px !important;
    }

    #quest-intro h2 {
        font-size: 1.35rem !important;
    }

    #breathe-circle-container {
        width: 120px !important;
        height: 120px !important;
    }
}

/* -------------------- Very Small Mobile -------------------- */
@media (max-width: 360px) {
    .mobile-topbar-title span {
        max-width: 140px;
    }

    .tab-btn {
        font-size: 0.74rem;
    }

    .table-container table {
        min-width: 650px;
    }

    .btn-primary {
        font-size: 0.9rem;
        padding-left: 12px;
        padding-right: 12px;
    }
}

/* -------------------- Print -------------------- */
@media print {
    body {
        background: #fff;
        color: #000;
    }

    .sidebar,
    .mobile-topbar,
    .tabs-container,
    .btn-primary,
    .news-filter-bar,
    .sub-tabs {
        display: none !important;
    }

    .dashboard-container,
    .main-content {
        display: block;
        height: auto;
        overflow: visible;
        padding: 0;
    }

    .table-container {
        overflow: visible;
        border: 1px solid #aaa;
        box-shadow: none;
    }

    .table-container table {
        min-width: 0;
    }

    .table-container th,
    .table-container td {
        color: #000;
        background: #fff;
        border-color: #ddd;
    }
}
