/* ===========================================================
   JPIP.SE — STYLESHEET
   =========================================================== */
:root {
    --primary-blue: #005090;
    --secondary-blue: #003366;
    --accent-gray: #f4f4f4;
    --text-dark: #333333;
    --text-light: #ffffff;
    --gold: #f5b400;
    --gold-hover: #ffc826;
    --border-color: #e2e2e2;
    --font-main: 'Open Sans', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: #fff;
}

a { color: var(--primary-blue); }

img { max-width: 100%; height: auto; }

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ===========================================================
   HEADER & NAVIGATION
   =========================================================== */
.main-header,
header {
    background-color: var(--primary-blue);
    color: var(--text-light);
    padding: 1rem 0;
}

.main-header .container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.main-header .logo img,
.logo img {
    height: 60px;
    width: auto;
    display: block;
}

.menu-toggle {
    display: none;
    background: rgba(255,255,255,0.18);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.3);
    padding: 8px 14px;
    border-radius: 4px;
    font-size: 1.4rem;
    cursor: pointer;
}

.main-nav ul,
nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 0;
}

.main-nav a,
nav a {
    display: inline-block;
    background: #fff;
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.74rem;
    letter-spacing: 0.4px;
    padding: 8px 12px;
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.5);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
    white-space: nowrap;
}

.main-nav a:hover,
nav a:hover {
    background: var(--accent-gray);
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0,0,0,0.18);
}

.main-nav a.active,
nav a.active {
    background: var(--secondary-blue);
    color: #fff;
    border-color: var(--secondary-blue);
}

/* Klientlogin – primary CTA in main nav */
.main-nav a.client-login,
nav a.client-login {
    background: var(--gold);
    color: var(--secondary-blue);
    border-color: var(--gold);
    margin-left: 8px;
}
.main-nav a.client-login:hover,
nav a.client-login:hover {
    background: var(--gold-hover);
    color: var(--secondary-blue);
    border-color: var(--gold-hover);
}

/* Dropdown menus */
.has-dropdown {
    position: relative;
}
.has-dropdown > .dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-radius: 4px;
    padding: 6px;
    display: none;
    flex-direction: column;
    min-width: 220px;
    z-index: 100;
    gap: 2px;
    margin-top: 4px;
}
.has-dropdown:hover > .dropdown,
.has-dropdown:focus-within > .dropdown {
    display: flex;
}
.has-dropdown > .dropdown li {
    list-style: none;
    width: 100%;
}
.has-dropdown > .dropdown a {
    display: block;
    width: 100%;
    background: transparent;
    color: var(--secondary-blue);
    border: none;
    text-transform: none;
    font-size: 0.85rem;
    padding: 8px 12px;
    letter-spacing: 0;
    font-weight: 500;
}
.has-dropdown > .dropdown a:hover {
    background: var(--accent-gray);
    color: var(--primary-blue);
    transform: none;
    box-shadow: none;
}

/* Sub-navigation row (admin / client area) */
.subnav {
    background-color: var(--secondary-blue);
    border-top: 1px solid rgba(255,255,255,0.15);
}
.subnav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
    margin: 0;
    padding: 0;
}
.subnav a {
    display: block;
    color: var(--text-light);
    text-decoration: none;
    padding: 12px 16px;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-right: 1px solid rgba(255,255,255,0.08);
    background: transparent;
    border-radius: 0;
    border-left: none;
    border-top: none;
    border-bottom: none;
    font-weight: 500;
}
.subnav a:hover {
    background-color: rgba(255,255,255,0.1);
    text-decoration: none;
    transform: none;
    box-shadow: none;
}
.subnav a.active {
    background-color: rgba(255,255,255,0.2);
    font-weight: 600;
    color: #fff;
    border-color: transparent;
}
.subnav-spacer { flex: 1; }
.subnav-logout { color: #ffd0d0 !important; }
.subnav-user {
    color: rgba(255,255,255,0.75);
    padding: 12px 16px;
    font-size: 0.82rem;
    display: block;
}

/* Page header (light bar between sub-nav and content) */
.page-header {
    background-color: var(--accent-gray);
    padding: 30px 0;
    border-bottom: 1px solid var(--border-color);
}
.page-header h1 {
    color: var(--secondary-blue);
    margin: 0;
    font-size: 1.8rem;
}
.page-header .breadcrumb {
    font-size: 0.85rem;
    color: #777;
    margin-top: 6px;
}
.page-header .breadcrumb a {
    color: var(--primary-blue);
    text-decoration: none;
}
.page-header .breadcrumb a:hover { text-decoration: underline; }

/* ===========================================================
   HERO SECTION
   =========================================================== */
.hero {
    background: linear-gradient(rgba(0, 80, 144, 0.85), rgba(0, 51, 102, 0.92)), url('images/meeting-bg.jpg');
    background-size: cover;
    background-position: center;
    color: var(--text-light);
    padding: 100px 0;
    text-align: center;
}
.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}
.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px auto;
}

/* ===========================================================
   BUTTONS
   =========================================================== */
.btn,
.cta-button {
    display: inline-block;
    background-color: var(--primary-blue);
    color: #fff;
    padding: 12px 28px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-family: inherit;
    transition: background 0.2s, transform 0.15s;
    line-height: 1.4;
}
.btn:hover,
.cta-button:hover {
    background-color: var(--secondary-blue);
    color: #fff;
}

.btn-light {
    background-color: #fff;
    color: var(--primary-blue);
}
.btn-light:hover { background-color: #eee; color: var(--primary-blue); }

.btn-primary  { background-color: var(--primary-blue); color: #fff; }
.btn-primary:hover { background-color: var(--secondary-blue); }

.btn-danger   { background-color: #d32f2f; color: #fff; }
.btn-danger:hover  { background-color: #b71c1c; color: #fff; }

.btn-success  { background-color: #2e7d32; color: #fff; }
.btn-success:hover { background-color: #1b5e20; color: #fff; }

.btn-info     { background-color: #1565c0; color: #fff; }
.btn-info:hover    { background-color: #0d47a1; color: #fff; }

.btn-warning  { background-color: #ef6c00; color: #fff; }
.btn-warning:hover { background-color: #c75300; color: #fff; }

.btn-purple   { background-color: #7b1fa2; color: #fff; }
.btn-purple:hover  { background-color: #4a148c; color: #fff; }

.btn-sm { padding: 8px 16px; font-size: 0.85rem; }
.btn-lg { padding: 16px 36px; font-size: 1.1rem; }

.card-actions {
    margin-top: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* ===========================================================
   CONTENT
   =========================================================== */
main { display: block; }

.section {
    padding: 40px 0;
}
.content-section {
    padding: 50px 0;
    min-height: 50vh;
}
.content-section h1 {
    color: var(--secondary-blue);
    margin-bottom: 25px;
    font-size: 2.2rem;
}
.bg-gray {
    background-color: var(--accent-gray);
}

h2 {
    color: var(--primary-blue);
    margin-bottom: 20px;
    font-size: 2rem;
}
h3 {
    margin-bottom: 15px;
    color: var(--secondary-blue);
}

p { margin-bottom: 12px; }

/* Grids */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.card {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Split layouts (text + image) used across many pages */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin: 20px 0;
}
.split-text { font-size: 1.05rem; }
.split-text p { margin-bottom: 14px; }
.split-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* News article card (used by news.php and client dashboard) */
.news-article {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 22px;
    margin-bottom: 18px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    transition: box-shadow 0.2s;
}
.news-article:hover { box-shadow: 0 3px 10px rgba(0,0,0,0.08); }
.news-article h3,
.news-article h3 a {
    margin-bottom: 8px;
    color: var(--secondary-blue);
    text-decoration: none;
}
.news-article h3 a:hover { text-decoration: underline; }
.news-article small { color: #777; }

/* ===========================================================
   FORMS
   =========================================================== */
form {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #ddd;
    margin-bottom: 20px;
}
form.inline-form {
    background: transparent;
    border: none;
    padding: 0;
}

.form-group {
    margin-bottom: 15px;
}
.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: var(--secondary-blue);
}
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
}
.form-group textarea { min-height: 100px; resize: vertical; }
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0,80,144,0.1);
}

input[type=file] {
    width: 100%;
    padding: 8px;
    border: 1px dashed #aaa;
    border-radius: 4px;
    background: #fff;
}

/* ===========================================================
   ALERTS
   =========================================================== */
.alert {
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 18px;
    border: 1px solid transparent;
}
.alert-error   { background: #ffebee; color: #b71c1c; border-color: #ffcdd2; }
.alert-info    { background: #e3f2fd; color: #0d47a1; border-color: #bbdefb; }
.alert-success { background: #e8f5e9; color: #1b5e20; border-color: #c8e6c9; }
.alert-warning { background: #fff8e1; color: #f57f17; border-color: #ffecb3; }

/* ===========================================================
   ADMIN: STATS, TABLES, CONSOLE
   =========================================================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}
.stat-box {
    background: #fff;
    border-left: 4px solid var(--primary-blue);
    padding: 16px 20px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.stat-box .stat-label {
    font-size: 0.75rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.stat-box .stat-value {
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--secondary-blue);
    line-height: 1.2;
    margin-top: 4px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}
.data-table thead th {
    background: var(--accent-gray);
    color: var(--secondary-blue);
    text-align: left;
    padding: 12px 16px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.78rem;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #ddd;
}
.data-table tbody td {
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}
.data-table tbody tr:hover { background: #fafafa; }
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table .muted { color: #888; }

.badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}
.badge-active   { background: #e8f5e9; color: #1b5e20; }
.badge-pending  { background: #fff8e1; color: #f57f17; }
.badge-error    { background: #ffebee; color: #b71c1c; }
.badge-neutral  { background: #eceff1; color: #455a64; }

.console-output {
    background: #1e1e1e;
    color: #4ec9b0;
    padding: 18px 20px;
    border-radius: 4px;
    font-family: Consolas, Monaco, "Courier New", monospace;
    font-size: 0.85rem;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-word;
    overflow-x: auto;
    margin: 0;
}

.auth-card { max-width: 440px; margin: 0 auto; }

/* ===========================================================
   LOADING / SPINNER (used by AI tools — klass-forslag, idea-koll)
   =========================================================== */
.loading-block {
    text-align: center;
    padding: 40px 20px;
    margin: 30px auto;
    max-width: 540px;
    background: #f4f8fc;
    border: 1px solid #d6e4f0;
    border-radius: 8px;
}
.spinner {
    display: inline-block;
    width: 48px;
    height: 48px;
    border: 4px solid #cfd8e3;
    border-top-color: var(--primary-blue);
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
    margin-bottom: 18px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.kf-result-card { margin-top: 30px; }
.kf-result-card h3 { color: var(--secondary-blue); margin-bottom: 14px; }
.kf-result-card .analysis { white-space: pre-wrap; line-height: 1.65; font-size: 1rem; }
.kf-result-card .analysis strong { color: var(--primary-blue); }

/* ===========================================================
   PROGRESS BAR (used by marketing-progress.php and admin
   batch-status displays in marketingadmin.php)
   =========================================================== */
.progress-bar {
    width: 100%;
    height: 28px;
    background: #e8edf2;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.08);
}
.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-blue), var(--secondary-blue));
    color: #fff;
    text-align: center;
    line-height: 28px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: width 0.6s ease-out;
    min-width: 28px;
    white-space: nowrap;
}
.badge-running {
    background: #fff8e1;
    color: #ef6c00;
    animation: pulse 1.4s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.6; }
}

/* ===========================================================
   COOKIE CONSENT BANNER
   =========================================================== */
.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    background: var(--secondary-blue);
    color: var(--text-light);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
    border-top: 3px solid var(--gold);
    animation: cookie-slide-up 0.4s ease-out;
}
@keyframes cookie-slide-up {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
}
.cookie-banner-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 25px;
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
        "text actions"
        "categories categories";
    gap: 18px;
    align-items: center;
}
.cookie-banner-text {
    grid-area: text;
    font-size: 0.95rem;
    line-height: 1.5;
}
.cookie-banner-text strong { color: #fff; font-size: 1.05rem; display: block; margin-bottom: 4px; }
.cookie-banner-text p { margin: 0; color: rgba(255,255,255,0.9); }
.cookie-banner-text a { color: var(--gold); text-decoration: underline; }
.cookie-banner-actions {
    grid-area: actions;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.cookie-banner-actions .btn {
    background: rgba(255,255,255,0.12);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.3);
}
.cookie-banner-actions .btn:hover {
    background: rgba(255,255,255,0.22);
    color: #fff;
}
.cookie-banner-actions .btn-success {
    background: var(--gold);
    color: var(--secondary-blue);
    border-color: var(--gold);
    font-weight: 700;
}
.cookie-banner-actions .btn-success:hover {
    background: var(--gold-hover);
    color: var(--secondary-blue);
}
#cookie-categories {
    grid-area: categories;
    background: rgba(0,0,0,0.18);
    padding: 16px 18px;
    border-radius: 6px;
}
.cookie-cat {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 10px;
    font-size: 0.9rem;
    line-height: 1.4;
    cursor: pointer;
}
.cookie-cat input[type="checkbox"] {
    margin-top: 3px;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    accent-color: var(--gold);
}
.cookie-cat span { color: rgba(255,255,255,0.92); }
.cookie-cat strong { color: #fff; }

@media (max-width: 768px) {
    .cookie-banner-inner {
        grid-template-columns: 1fr;
        grid-template-areas:
            "text"
            "actions"
            "categories";
    }
    .cookie-banner-actions {
        justify-content: stretch;
    }
    .cookie-banner-actions .btn {
        flex: 1;
        min-width: 0;
    }
}

/* ===========================================================
   FOOTER
   =========================================================== */
footer {
    background-color: var(--secondary-blue);
    color: var(--text-light);
    padding: 40px 0 30px 0;
    margin-top: 60px;
    text-align: center;
}
footer p {
    margin-bottom: 8px;
    font-size: 0.92rem;
}
footer .footer-links {
    margin-top: 12px;
    font-size: 0.85rem;
}
footer .footer-links a {
    color: var(--text-light);
    text-decoration: none;
    margin: 0 6px;
}
footer .footer-links a:hover { text-decoration: underline; }
footer strong { color: #fff; }

/* ===========================================================
   RESPONSIVE
   =========================================================== */
@media (max-width: 900px) {
    .main-nav,
    nav {
        display: none;
        width: 100%;
    }
    .main-nav.active,
    nav.active {
        display: block;
    }
    .main-nav.active ul,
    nav.active ul {
        flex-direction: column;
        width: 100%;
        gap: 4px;
    }
    .main-nav.active a,
    nav.active a {
        width: 100%;
        text-align: center;
    }
    .menu-toggle { display: inline-block; }
    .main-header .container {
        flex-direction: column;
        align-items: stretch;
    }
    .has-dropdown > .dropdown {
        position: static;
        box-shadow: none;
        margin-top: 0;
        background: rgba(0,0,0,0.1);
    }
    .has-dropdown:hover > .dropdown,
    .has-dropdown:focus-within > .dropdown { display: flex; }
}

@media (max-width: 768px) {
    .grid-2,
    .grid-3,
    .split-layout {
        grid-template-columns: 1fr;
    }
    .hero h1 { font-size: 2.1rem; }
    .hero p { font-size: 1rem; }
    .subnav ul { flex-direction: column; }
    .subnav a {
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }
    .subnav-spacer { display: none; }
    .content-section h1 { font-size: 1.6rem; }
    .page-header h1 { font-size: 1.5rem; }
}

/* ===========================================================
   MOBILE MENU v2 (Veillor portal) — matches the 900px nav breakpoint:
   login/account to the TOP, hide the logo when the menu is open, and
   collapsible tap-to-expand sub-menus (collapsed by default; .open expands).
   =========================================================== */
@media (max-width: 900px) {
    /* Login/account CTA + logout float to the TOP of the open menu */
    .main-nav li.nav-cta    { order: -1; margin: 2px 0 8px; }
    .main-nav li.nav-logout { order: -1; margin: 0 0 12px; }
    /* Hide the big logo while the menu is open (saves vertical space) */
    .main-header.menu-open .logo { display: none; }
    /* Sub-menus collapsed by default; only a tapped (.open) topic expands.
       Override the desktop hover/focus auto-show on touch devices. */
    .main-nav .has-dropdown > .dropdown { display: none; }
    .main-nav .has-dropdown:hover > .dropdown,
    .main-nav .has-dropdown:focus-within > .dropdown { display: none; }
    .main-nav .has-dropdown.open > .dropdown { display: flex; }
    /* caret affordance on dropdown topics */
    .main-nav .has-dropdown > a::after { content: " \25BC"; font-size: 0.7em; opacity: 0.7; }
    .main-nav .has-dropdown.open > a::after { content: " \25B2"; }
    /* tighter rows */
    .main-nav.active ul { gap: 3px; }
}

/* "Powered by Veillor" partner line in the footer */
.footer-partner { margin-top: 14px; font-size: 0.82rem; opacity: 0.85; }
.footer-partner a { color: var(--text-light); text-decoration: none; border-bottom: 1px dotted rgba(255,255,255,0.4); }
.footer-partner a:hover { opacity: 1; border-bottom-color: var(--gold); }

/* ===========================================================
   CLIENT PORTAL (Veillor) — left-sidebar layout, dashboard tables,
   alert triage badges/tabs/buttons. (Ported from cohenklein _portal.css.)
   =========================================================== */
.portal-layout { display: flex; gap: 28px; align-items: flex-start; }
.portal-sidebar { flex: 0 0 240px; position: sticky; top: 24px; }
.portal-sidebar-title { margin: 0 0 12px; padding: 0 2px; font-size: 0.78em; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #8a93a6; }
.portal-sidebar nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.portal-sidebar nav li { margin: 0; }
.portal-sidebar nav li a { display: block; padding: 12px 16px; color: var(--primary-blue, #0d214c); background: #fff; border: 1px solid #ddd; border-radius: 8px; text-decoration: none; font-weight: 600; line-height: 1.25; transition: background .15s, border-color .15s, color .15s, box-shadow .15s; text-transform: none; letter-spacing: 0; }
.portal-sidebar nav li a:hover { background: var(--accent-gray, #f4f7fc); border-color: var(--primary-blue, #0d214c); }
.portal-sidebar nav li.active a { background: var(--primary-blue, #0d214c); border-color: var(--primary-blue, #0d214c); color: #fff; box-shadow: 0 2px 6px rgba(13,33,76,0.18); }
.portal-content { flex: 1 1 auto; min-width: 0; }
.portal-content h1 { margin-top: 0; }
.portal-card { background: #fff; border: 1px solid #e0e0e0; border-radius: 6px; padding: 20px 22px; margin-bottom: 22px; }
.portal-muted { color: #667; }
.portal-pill { display: inline-block; background: var(--accent-gray, #f5f7fa); border-radius: 999px; padding: 3px 12px; font-size: 0.85em; }

/* Dashboard / alerts tables */
.dash-table { width: 100%; border-collapse: collapse; margin: 6px 0 8px; background: #fff; }
.dash-table th, .dash-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid #e6e8ee; font-size: 0.92rem; }
.dash-table th { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.4px; color: #66708a; background: #f7f9fc; }
.dash-table tbody tr:hover { background: #fafbfe; }
.dash-table a { color: var(--secondary-blue, #1b3a7a); font-weight: 600; text-decoration: none; }
.dash-table a:hover { text-decoration: underline; }

/* Alert triage badges */
.triage-badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 0.82em; font-weight: 600; line-height: 1.6; white-space: nowrap; }
.triage-badge.triage-pending { background: #eef1f6; color: #5a6478; }
.triage-badge.triage-confirmed { background: #fdecea; color: #b3261e; }
.triage-badge.triage-not_relevant { background: #e6f6ec; color: #1b7a3e; }

.field-badge { display: inline-block; padding: 2px 9px; border-radius: 10px; font-size: 0.85em; font-style: italic; }
.field-badge.field-gap-ours { background: #fff4e5; color: #8a5a00; }
.field-badge.field-gap-na { background: #eef1f6; color: #5a6478; }
.field-badge.field-gap-interim { background: #e7f0fd; color: #1a56b0; }

/* Alert filter tabs + triage buttons */
.alert-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.alert-filter-tab { display: inline-block; padding: 6px 14px; border-radius: 999px; border: 1px solid #ddd; text-decoration: none; color: #333; font-size: 0.9em; }
.alert-filter-tab:hover { border-color: var(--primary-blue, #0d214c); }
.alert-filter-tab.active { background: var(--primary-blue, #0d214c); color: #fff; border-color: var(--primary-blue, #0d214c); }
.triage-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.triage-btn { cursor: pointer; border-radius: 6px; padding: 10px 18px; font-weight: 600; font-size: 0.92em; font-family: inherit; background: #fff; border: 1px solid #ddd; }
.triage-btn-confirmed:hover, .triage-btn-confirmed.is-current { background: #fdecea; border-color: #b3261e; color: #b3261e; }
.triage-btn-not_relevant:hover, .triage-btn-not_relevant.is-current { background: #e6f6ec; border-color: #1b7a3e; color: #1b7a3e; }
.triage-btn.is-current { font-weight: 700; }

@media (max-width: 800px) {
    .portal-layout { flex-direction: column; gap: 16px; }
    .portal-sidebar { width: 100%; flex-basis: auto; position: static; }
    .portal-sidebar nav ul { flex-direction: row; flex-wrap: wrap; }
    .portal-sidebar nav li { flex: 1 1 140px; }
    .portal-sidebar nav li a { text-align: center; }
    .dash-table { display: block; overflow-x: auto; }
}
